function ALPHIX_TAG_INIT(_){var e="https://fml-x.com/";const o={active:e+"page/active",event:e+"page/event",load:e+"page/load",unload:e+"page/unload"};if(void 0===window.AX_TAG_INIT_LOG&&(window.AX_TAG_INIT_LOG={}),!window.AX_TAG_INIT_LOG[_.CLIENT_ID]&&(!(window.AX_TAG_INIT_LOG[_.CLIENT_ID]=_).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||t(),_.REAL_TIME?d(o.load,i()):T("pageLoad",{additional:i(),clientAdditional:a(),flag:_,logVersion:2,page:window.location.href,type:"load",unique:window.AX_TAG_INIT_UNIQUE_STORE.unique}),_.IPV4_RECORD){const m=new XMLHttpRequest;m.open("GET","https://v4.fml-x.com/v4/"+window.AX_TAG_INIT_UNIQUE_STORE.unique),m.send()}if(s(_),1<Object.keys(window.AX_TAG_INIT_LOG).length)for(let e=0;e<window.ALPHIX_TAG_MESSAGE_QUEUE.length;e++)A(window.ALPHIX_TAG_MESSAGE_QUEUE[e]);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(let e=0,n=this.length,t=arguments.length;e<t;e++,n++)this[n]=arguments[e],A(arguments[e])}}),Array.isArray(window.alphixMessageStore)&&window.alphixMessageStore.map(e=>c(e)),window.alphixMessageStore=[],Object.defineProperty(window.alphixMessageStore,"push",{value:function(){for(let e=0,n=this.length,t=arguments.length;e<t;e++,n++)c(arguments[e])}}),window.DELTA_TAG_EVENT=function(e){f(e,null,null)},window.DELTA_TAG_EVENT_AMOUNT=function(e,n){f(e,null,n)},window.DELTA_TAG_EVENT_VALUE=function(e,n,t=null){f(e,n,t)},window.ALPHIX_TAG_EVENT=function(e){f(e,null,null)},window.ALPHIX_TAG_EVENT_AMOUNT=function(e,n){f(e,null,n)},window.ALPHIX_TAG_EVENT_VALUE=function(e,n,t=null){f(e,n,t)},window.onpagehide=window.onbeforeunload=g,window.addEventListener("pagehide",g,{capture:!0}),setInterval(()=>{let e=window.location.href,n=window.AX_TAG_INIT_UNIQUE_STORE.urlCurrent;if(window.AX_TAG_INIT_UNIQUE_STORE.urlCurrent=window.location.href,void 0!==_.RECORD_HASH_CHANGE&&_.RECORD_HASH_CHANGE||(e=w(e,"#"),n=w(n,"#")),_.IGNORE_QUERY_CHANGE&&(e=w(e,"?"),n=w(n,"?")),e!==n){g(),t();for(let e=0;e<u().length;e++)_.REAL_TIME?d(o.load,i(),u()[e]):T("pageLoad",{additional:i(),flag:u()[e],logVersion:2,page:window.location.href,type:"load",unique:window.AX_TAG_INIT_UNIQUE_STORE.unique}),s(u()[e])}},100)}function i(){const n={meta:[],referer:document.referrer};if(!_.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){l("Failed to get meta tags"),l(e)}return n}function a(){const e={};if(Array.isArray(_.SC_LIST)){var n=document.cookie.split("; ").reduce((e,n)=>{var[t,n]=n.split("=");return e[t]||(e[t]=n),e},{});e.sc={};for(const t of _.SC_LIST)e.sc[t]=n[t]}return e}function l(e){console.error("Alphix Tag: "+e)}function n(){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){const n=16*Math.random()|0,t="x"==e?n:3&n|8;return t.toString(16)})}}return n}function d(e,n,t=_){const i=new XMLHttpRequest;i.open("POST",e),i.setRequestHeader("Content-Type","application/json"),i.send(JSON.stringify({additional:{...n,client:a(),performance:window.performance,screen:{...window.screen||{},devicePixelRatio:window.devicePixelRatio}},core:{tagTimestamp:(new Date).toISOString(),tagTimestampTimezoneOffset:(new Date).getTimezoneOffset(),page:window.location.href,random:window.AX_TAG_INIT_UNIQUE_STORE.unique},flag:t}))}function r(){return Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)}function T(e,n){const t=new XMLHttpRequest;t.open("POST","https://fml-x.com/"+e),t.setRequestHeader("Content-Type","application/json"),t.send(JSON.stringify(n))}function t(){window.AX_TAG_INIT_UNIQUE_STORE={maxScroll:0,unique:n(),visibleTime:0,timeLastHidden:null,timeLastVisible:performance.now(),timerStore:[],url:window.location.href,urlCurrent:window.location.href}}function w(e,n){return e.includes(n)?e.substring(0,e.indexOf(n)):e}function u(){var e=Object.keys(window.AX_TAG_INIT_LOG).map(function(e){return window.AX_TAG_INIT_LOG[e]});return 0===e.length&&l("Missing client flags for event"),e}function I(){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 s(n){let t=[10];n.TIMED_LOG&&(t=n.TIMED_LOG);for(let e=0;e<t.length;e++)window.AX_TAG_INIT_UNIQUE_STORE.timerStore.push(setTimeout(function(){n.REAL_TIME?d(o.active,{meta:i().meta,time_on_page:I(),scroll_position:AX_TAG_INIT_UNIQUE_STORE.maxScroll,page_length:r(),window_height:window.innerHeight}):T("pageActive",{additional:{meta:i().meta,time_on_page:I(),scroll_position:AX_TAG_INIT_UNIQUE_STORE.maxScroll,page_length:r(),window_height:window.innerHeight},flag:n,logVersion:1,page:window.location.href,type:"active",unique:window.AX_TAG_INIT_UNIQUE_STORE.unique})},1e3*t[e]))}function c(e){"object"==typeof e&&null!==e&&!Array.isArray(e)||l("Invalid Message store push, must contain object"),e.uuid=n(),e.sentClientIdList=[],window.ALPHIX_TAG_MESSAGE_QUEUE.push(e)}function A(n){if("object"==typeof n&&null!==n&&!Array.isArray(n)||l("Invalid Message store push, must contain object"),n.type||l("Invalid Message store push, missing type"),"event"===n.type)if(n.code)for(let e=0;e<u().length;e++){var t=u()[e];n.sentClientIdList.indexOf(t.CLIENT_ID)<0&&(E(t,n.code,n.value||null,n.amount||null),n.sentClientIdList.push(t.CLIENT_ID))}else l("Invalid Message store push, missing code for event");else l("Invalid Message store push, invalid type")}function E(e,n,t,i){e.REAL_TIME?d(o.event,{eventCode:n,eventValue:t,eventAmount:i}):T("event",{eventCode:n,eventValue:t,eventAmount:i,flag:e,page:window.location.href,logVersion:1,unique:AX_TAG_INIT_UNIQUE_STORE.unique})}function f(n,t,i){for(let e=0;e<u().length;e++)E(u()[e],n,t,i)}function g(){if(!window.AX_TAG_INIT_UNIQUE_STORE.unloaded){window.AX_TAG_INIT_UNIQUE_STORE.unloaded=!0;for(let e=0;e<window.AX_TAG_INIT_UNIQUE_STORE.timerStore.length;e++)clearTimeout(window.AX_TAG_INIT_UNIQUE_STORE.timerStore[e]);for(let e=0;e<u().length;e++){var n=u()[e];n.REAL_TIME?d(o.unload,{time_on_page:I(),scroll_position:AX_TAG_INIT_UNIQUE_STORE.maxScroll,page_length:r(),window_height:window.innerHeight}):T("pageUnload",{additional:{time_on_page:I(),scroll_position:AX_TAG_INIT_UNIQUE_STORE.maxScroll,page_length:r(),window_height:window.innerHeight},flag:n,logVersion:1,page:window.AX_TAG_INIT_UNIQUE_STORE.url,type:"unload",unique:window.AX_TAG_INIT_UNIQUE_STORE.unique})}}}}
ALPHIX_TAG_INIT({"DISABLEUA":0,"FMONLY":0,"IGNORE_QUERY_CHANGE":1,"SC_LIST":["request_id"],"CLIENT_ID":"30cc3550-92fc-4727-8967-93418d254a51","VERSION":3.5});