function ALPHIX_TAG_INIT(e){if(void 0===window.AX_TAG_INIT_LOG&&(window.AX_TAG_INIT_LOG={}),!window.AX_TAG_INIT_LOG[e.CLIENT_ID]&&(!(window.AX_TAG_INIT_LOG[e.CLIENT_ID]=e).FMONLY||window.location.href.match(/([a-zA-Z]{2}\d{0,2}-)?(CA\d{8})((-\d*)*)(~\d*)?/i))&&!window.location.href.match(/^file:\/\//i))if(window.AX_TAG_INIT_UNIQUE_STORE||d(),a("pageLoad",{additional:i(),flag:e,logVersion:2,page:window.location.href,type:"load",unique:window.AX_TAG_INIT_UNIQUE_STORE.unique}),T(e),1<Object.keys(window.AX_TAG_INIT_LOG).length)for(var n=0;n<window.ALPHIX_TAG_MESSAGE_QUEUE.length;n++)u(window.ALPHIX_TAG_MESSAGE_QUEUE[n]);else document.addEventListener("visibilitychange",function(){"hidden"===document.visibilityState?(window.AX_TAG_INIT_UNIQUE_STORE.timeLastHidden=performance.now(),window.AX_TAG_INIT_UNIQUE_STORE.visibleTime+=window.AX_TAG_INIT_UNIQUE_STORE.timeLastHidden-window.AX_TAG_INIT_UNIQUE_STORE.timeLastVisible):(window.AX_TAG_INIT_UNIQUE_STORE.timeLastHidden=null,window.AX_TAG_INIT_UNIQUE_STORE.timeLastVisible=performance.now())}),document.addEventListener("scroll",function(){window.pageYOffset>window.AX_TAG_INIT_UNIQUE_STORE.maxScroll&&(window.AX_TAG_INIT_UNIQUE_STORE.maxScroll=window.pageYOffset)}),window.ALPHIX_TAG_MESSAGE_QUEUE=[],Object.defineProperty(window.ALPHIX_TAG_MESSAGE_QUEUE,"push",{value:function(){for(var e=0,n=this.length,t=arguments.length;e<t;e++,n++)this[n]=arguments[e],u(arguments[e])}}),Array.isArray(window.alphixMessageStore)&&window.alphixMessageStore.map(e=>w(e)),window.alphixMessageStore=[],Object.defineProperty(window.alphixMessageStore,"push",{value:function(){for(var e=0,n=(this.length,arguments.length);e<n;e++,0)w(arguments[e])}}),window.DELTA_TAG_EVENT=function(e){s(e,null,null)},window.DELTA_TAG_EVENT_AMOUNT=function(e,n){s(e,null,n)},window.DELTA_TAG_EVENT_VALUE=function(e,n,t=null){s(e,n,t)},window.ALPHIX_TAG_EVENT=function(e){s(e,null,null)},window.ALPHIX_TAG_EVENT_AMOUNT=function(e,n){s(e,null,n)},window.ALPHIX_TAG_EVENT_VALUE=function(e,n,t=null){s(e,n,t)},window.onpagehide=window.onbeforeunload=A,window.addEventListener("pagehide",A,{capture:!0}),new MutationObserver(()=>{if(window.location.href!==window.AX_TAG_INIT_UNIQUE_STORE.url){A(),d();for(var e=0;e<l().length;e++)a("pageLoad",{additional:i(),flag:l()[e],logVersion:2,page:window.location.href,type:"load",unique:window.AX_TAG_INIT_UNIQUE_STORE.unique}),T(l()[e])}}).observe(document,{subtree:!0,childList:!0});function i(){const n={meta:[],referer:document.referrer};if(!e.DISABLEMETA)try{const t=document.getElementsByTagName("meta");for(let e=0;e<t.length;e++){const i={};for(const o of t[e].getAttributeNames())i[o]=t[e].getAttribute(o);n.meta.push(i)}n.meta.push({documentPageTitle:document.title}),document.documentElement.lang&&n.meta.push({documentLang:document.documentElement.lang})}catch(e){_("Failed to get meta tags"),_(e)}return n}function _(e){console.error("Alphix Tag: "+e)}function t(){let n;try{n=crypto.randomUUID()}catch(e){try{n=([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}catch(e){n="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var n=16*Math.random()|0;return("x"==e?n:3&n|8).toString(16)})}}return n}function o(){return Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)}function a(e,n){var t=new XMLHttpRequest;t.open("POST","https://fml-x.com/"+e),t.setRequestHeader("Content-Type","application/json"),t.send(JSON.stringify(n))}function d(){window.AX_TAG_INIT_UNIQUE_STORE={maxScroll:0,unique:t(),visibleTime:0,timeLastHidden:null,timeLastVisible:performance.now(),timerStore:[],url:window.location.href}}function l(){var e=Object.keys(window.AX_TAG_INIT_LOG).map(function(e){return window.AX_TAG_INIT_LOG[e]});return 0===e.length&&_("Missing client flags for event"),e}function r(){return window.AX_TAG_INIT_UNIQUE_STORE.timeLastHidden?window.AX_TAG_INIT_UNIQUE_STORE.visibleTime:Math.round(window.AX_TAG_INIT_UNIQUE_STORE.visibleTime+performance.now()-window.AX_TAG_INIT_UNIQUE_STORE.timeLastVisible)}function T(e){var n=[10];e.TIMED_LOG&&(n=e.TIMED_LOG);for(var t=0;t<n.length;t++)window.AX_TAG_INIT_UNIQUE_STORE.timerStore.push(setTimeout(function(){a("pageActive",{additional:{meta:i().meta,time_on_page:r(),scroll_position:AX_TAG_INIT_UNIQUE_STORE.maxScroll,page_length:o(),window_height:window.innerHeight},flag:e,logVersion:1,page:window.location.href,type:"active",unique:window.AX_TAG_INIT_UNIQUE_STORE.unique})},1e3*n[t]))}function w(e){"object"==typeof e&&null!==e&&!Array.isArray(e)||_("Invalid Message store push, must contain object"),e.uuid=t(),e.sentClientIdList=[],window.ALPHIX_TAG_MESSAGE_QUEUE.push(e)}function u(e){if("object"==typeof e&&null!==e&&!Array.isArray(e)||_("Invalid Message store push, must contain object"),e.type||_("Invalid Message store push, missing type"),"event"===e.type)if(e.code)for(var n=0;n<l().length;n++){var t=l()[n];e.sentClientIdList.indexOf(t.CLIENT_ID)<0&&(I(t,e.code,e.value||null,e.amount||null),e.sentClientIdList.push(t.CLIENT_ID))}else _("Invalid Message store push, missing code for event");else _("Invalid Message store push, invalid type")}function I(e,n,t,i){a("event",{eventCode:n,eventValue:t,eventAmount:i,flag:e,page:window.location.href,logVersion:1,unique:AX_TAG_INIT_UNIQUE_STORE.unique})}function s(e,n,t){for(var i=0;i<l().length;i++)I(l()[i],e,n,t)}function A(){if(!window.AX_TAG_INIT_UNIQUE_STORE.unloaded){window.AX_TAG_INIT_UNIQUE_STORE.unloaded=!0;for(var e=0;e<window.AX_TAG_INIT_UNIQUE_STORE.timerStore.length;e++)clearTimeout(window.AX_TAG_INIT_UNIQUE_STORE.timerStore[e]);for(var n=0;n<l().length;n++){var t=l()[n];a("pageUnload",{additional:{time_on_page:r(),scroll_position:AX_TAG_INIT_UNIQUE_STORE.maxScroll,page_length:o(),window_height:window.innerHeight},flag:t,logVersion:1,page:window.AX_TAG_INIT_UNIQUE_STORE.url,type:"unload",unique:window.AX_TAG_INIT_UNIQUE_STORE.unique})}}}}
ALPHIX_TAG_INIT({"DISABLEIP":1,"CLIENT_ID":"b9733f10-2b33-406a-af68-9416d4fc434a","VERSION":2.9});