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(),_("pageLoad",{additional:{referer:document.referrer},flag:e,logVersion:2,page:window.location.href,type:"load",unique:window.AX_TAG_INIT_UNIQUE_STORE.unique}),l(e),1<Object.keys(window.AX_TAG_INIT_LOG).length)for(var n=0;n<window.ALPHIX_TAG_MESSAGE_QUEUE.length;n++)w(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,i=arguments.length;e<i;e++,n++)this[n]=arguments[e],w(arguments[e])}}),Array.isArray(window.alphixMessageStore)&&window.alphixMessageStore.map(e=>T(e)),window.alphixMessageStore=[],Object.defineProperty(window.alphixMessageStore,"push",{value:function(){for(var e=0,n=(this.length,arguments.length);e<n;e++,0)T(arguments[e])}}),window.DELTA_TAG_EVENT=function(e){u(e,null,null)},window.DELTA_TAG_EVENT_AMOUNT=function(e,n){u(e,null,n)},window.DELTA_TAG_EVENT_VALUE=function(e,n,i=null){u(e,n,i)},window.ALPHIX_TAG_EVENT=function(e){u(e,null,null)},window.ALPHIX_TAG_EVENT_AMOUNT=function(e,n){u(e,null,n)},window.ALPHIX_TAG_EVENT_VALUE=function(e,n,i=null){u(e,n,i)},window.onunload=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<r().length;e++)_("pageLoad",{additional:{referer:document.referrer},flag:r()[e],logVersion:2,page:window.location.href,type:"load",unique:window.AX_TAG_INIT_UNIQUE_STORE.unique}),l(r()[e])}}).observe(document,{subtree:!0,childList:!0});function o(e){console.error("Alphix Tag: "+e)}function i(){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 t(){return Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)}function _(e,n){var i=new XMLHttpRequest;i.open("POST","https://fml-x.com/"+e),i.setRequestHeader("Content-Type","application/json"),i.send(JSON.stringify(n))}function d(){window.AX_TAG_INIT_UNIQUE_STORE={maxScroll:0,unique:i(),visibleTime:0,timeLastHidden:null,timeLastVisible:performance.now(),timerStore:[],url:window.location.href}}function r(){var e=Object.keys(window.AX_TAG_INIT_LOG).map(function(e){return window.AX_TAG_INIT_LOG[e]});return 0===e.length&&o("Missing client flags for event"),e}function a(){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 l(e){var n=[10];e.TIMED_LOG&&(n=e.TIMED_LOG);for(var i=0;i<n.length;i++)window.AX_TAG_INIT_UNIQUE_STORE.timerStore.push(setTimeout(function(){_("pageLoad",{additional:{time_on_page:a(),scroll_position:AX_TAG_INIT_UNIQUE_STORE.maxScroll,page_length:t(),window_height:window.innerHeight},flag:e,logVersion:1,page:window.location.href,type:"active",unique:window.AX_TAG_INIT_UNIQUE_STORE.unique})},1e3*n[i]))}function T(e){"object"==typeof e&&null!==e&&!Array.isArray(e)||o("Invalid Message store push, must contain object"),e.uuid=i(),e.sentClientIdList=[],window.ALPHIX_TAG_MESSAGE_QUEUE.push(e)}function w(e){if("object"==typeof e&&null!==e&&!Array.isArray(e)||o("Invalid Message store push, must contain object"),e.type||o("Invalid Message store push, missing type"),"event"===e.type)if(e.code)for(var n=0;n<r().length;n++){var i=r()[n];e.sentClientIdList.indexOf(i.CLIENT_ID)<0&&(I(i,e.code,e.value||null,e.amount||null),e.sentClientIdList.push(i.CLIENT_ID))}else o("Invalid Message store push, missing code for event");else o("Invalid Message store push, invalid type")}function I(e,n,i,o){_("event",{eventCode:n,eventValue:i,eventAmount:o,flag:e,page:window.location.href,logVersion:1,unique:AX_TAG_INIT_UNIQUE_STORE.unique})}function u(e,n,i){for(var o=0;o<r().length;o++)I(r()[o],e,n,i)}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<r().length;n++){var i=r()[n];_("pageLoad",{additional:{time_on_page:a(),scroll_position:AX_TAG_INIT_UNIQUE_STORE.maxScroll,page_length:t(),window_height:window.innerHeight},flag:i,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,"CLIENT_ID":"3b89217c-d9e3-4448-8b71-3cb7b4e11a77","VERSION":2.6});