(function(){"use strict";var O=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Q(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var R={exports:{}};function Y(r){throw new Error('Could not dynamically require "'+r+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var B={exports:{}};B.exports;var $;function Z(){return $||($=1,(function(r,e){(function(t,n){r.exports=n()})(O,function(){var t=t||(function(n,s){var h;if(typeof window!="undefined"&&window.crypto&&(h=window.crypto),typeof self!="undefined"&&self.crypto&&(h=self.crypto),typeof globalThis!="undefined"&&globalThis.crypto&&(h=globalThis.crypto),!h&&typeof window!="undefined"&&window.msCrypto&&(h=window.msCrypto),!h&&typeof O!="undefined"&&O.crypto&&(h=O.crypto),!h&&typeof Y=="function")try{h=require("crypto")}catch(a){}var y=function(){if(h){if(typeof h.getRandomValues=="function")try{return h.getRandomValues(new Uint32Array(1))[0]}catch(a){}if(typeof h.randomBytes=="function")try{return h.randomBytes(4).readInt32LE()}catch(a){}}throw new Error("Native crypto module could not be used to get secure random number.")},u=Object.create||(function(){function a(){}return function(l){var g;return a.prototype=l,g=new a,a.prototype=null,g}})(),b={},E=b.lib={},T=E.Base=(function(){return{extend:function(a){var l=u(this);return a&&l.mixIn(a),(!l.hasOwnProperty("init")||this.init===l.init)&&(l.init=function(){l.$super.init.apply(this,arguments)}),l.init.prototype=l,l.$super=this,l},create:function(){var a=this.extend();return a.init.apply(a,arguments),a},init:function(){},mixIn:function(a){for(var l in a)a.hasOwnProperty(l)&&(this[l]=a[l]);a.hasOwnProperty("toString")&&(this.toString=a.toString)},clone:function(){return this.init.prototype.extend(this)}}})(),S=E.WordArray=T.extend({init:function(a,l){a=this.words=a||[],l!=s?this.sigBytes=l:this.sigBytes=a.length*4},toString:function(a){return(a||o).stringify(this)},concat:function(a){var l=this.words,g=a.words,f=this.sigBytes,m=a.sigBytes;if(this.clamp(),f%4)for(var w=0;w<m;w++){var A=g[w>>>2]>>>24-w%4*8&255;l[f+w>>>2]|=A<<24-(f+w)%4*8}else for(var C=0;C<m;C+=4)l[f+C>>>2]=g[C>>>2];return this.sigBytes+=m,this},clamp:function(){var a=this.words,l=this.sigBytes;a[l>>>2]&=4294967295<<32-l%4*8,a.length=n.ceil(l/4)},clone:function(){var a=T.clone.call(this);return a.words=this.words.slice(0),a},random:function(a){for(var l=[],g=0;g<a;g+=4)l.push(y());return new S.init(l,a)}}),d=b.enc={},o=d.Hex={stringify:function(a){for(var l=a.words,g=a.sigBytes,f=[],m=0;m<g;m++){var w=l[m>>>2]>>>24-m%4*8&255;f.push((w>>>4).toString(16)),f.push((w&15).toString(16))}return f.join("")},parse:function(a){for(var l=a.length,g=[],f=0;f<l;f+=2)g[f>>>3]|=parseInt(a.substr(f,2),16)<<24-f%8*4;return new S.init(g,l/2)}},c=d.Latin1={stringify:function(a){for(var l=a.words,g=a.sigBytes,f=[],m=0;m<g;m++){var w=l[m>>>2]>>>24-m%4*8&255;f.push(String.fromCharCode(w))}return f.join("")},parse:function(a){for(var l=a.length,g=[],f=0;f<l;f++)g[f>>>2]|=(a.charCodeAt(f)&255)<<24-f%4*8;return new S.init(g,l)}},i=d.Utf8={stringify:function(a){try{return decodeURIComponent(escape(c.stringify(a)))}catch(l){throw new Error("Malformed UTF-8 data")}},parse:function(a){return c.parse(unescape(encodeURIComponent(a)))}},p=E.BufferedBlockAlgorithm=T.extend({reset:function(){this._data=new S.init,this._nDataBytes=0},_append:function(a){typeof a=="string"&&(a=i.parse(a)),this._data.concat(a),this._nDataBytes+=a.sigBytes},_process:function(a){var l,g=this._data,f=g.words,m=g.sigBytes,w=this.blockSize,A=w*4,C=m/A;a?C=n.ceil(C):C=n.max((C|0)-this._minBufferSize,0);var x=C*w,L=n.min(x*4,m);if(x){for(var H=0;H<x;H+=w)this._doProcessBlock(f,H);l=f.splice(0,x),g.sigBytes-=L}return new S.init(l,L)},clone:function(){var a=T.clone.call(this);return a._data=this._data.clone(),a},_minBufferSize:0});E.Hasher=p.extend({cfg:T.extend(),init:function(a){this.cfg=this.cfg.extend(a),this.reset()},reset:function(){p.reset.call(this),this._doReset()},update:function(a){return this._append(a),this._process(),this},finalize:function(a){a&&this._append(a);var l=this._doFinalize();return l},blockSize:16,_createHelper:function(a){return function(l,g){return new a.init(g).finalize(l)}},_createHmacHelper:function(a){return function(l,g){return new v.HMAC.init(a,g).finalize(l)}}});var v=b.algo={};return b})(Math);return t})})(B,B.exports)),B.exports}R.exports,(function(r,e){(function(t,n){r.exports=n(Z())})(O,function(t){return(function(n){var s=t,h=s.lib,y=h.WordArray,u=h.Hasher,b=s.algo,E=[],T=[];(function(){function o(v){for(var a=n.sqrt(v),l=2;l<=a;l++)if(!(v%l))return!1;return!0}function c(v){return(v-(v|0))*4294967296|0}for(var i=2,p=0;p<64;)o(i)&&(p<8&&(E[p]=c(n.pow(i,1/2))),T[p]=c(n.pow(i,1/3)),p++),i++})();var S=[],d=b.SHA256=u.extend({_doReset:function(){this._hash=new y.init(E.slice(0))},_doProcessBlock:function(o,c){for(var i=this._hash.words,p=i[0],v=i[1],a=i[2],l=i[3],g=i[4],f=i[5],m=i[6],w=i[7],A=0;A<64;A++){if(A<16)S[A]=o[c+A]|0;else{var C=S[A-15],x=(C<<25|C>>>7)^(C<<14|C>>>18)^C>>>3,L=S[A-2],H=(L<<15|L>>>17)^(L<<13|L>>>19)^L>>>10;S[A]=x+S[A-7]+H+S[A-16]}var At=g&f^~g&m,Ct=p&v^p&a^v&a,Et=(p<<30|p>>>2)^(p<<19|p>>>13)^(p<<10|p>>>22),Tt=(g<<26|g>>>6)^(g<<21|g>>>11)^(g<<7|g>>>25),K=w+Tt+At+T[A]+S[A],Lt=Et+Ct;w=m,m=f,f=g,g=l+K|0,l=a,a=v,v=p,p=K+Lt|0}i[0]=i[0]+p|0,i[1]=i[1]+v|0,i[2]=i[2]+a|0,i[3]=i[3]+l|0,i[4]=i[4]+g|0,i[5]=i[5]+f|0,i[6]=i[6]+m|0,i[7]=i[7]+w|0},_doFinalize:function(){var o=this._data,c=o.words,i=this._nDataBytes*8,p=o.sigBytes*8;return c[p>>>5]|=128<<24-p%32,c[(p+64>>>9<<4)+14]=n.floor(i/4294967296),c[(p+64>>>9<<4)+15]=i,o.sigBytes=c.length*4,this._process(),this._hash},clone:function(){var o=u.clone.call(this);return o._hash=this._hash.clone(),o}});s.SHA256=u._createHelper(d),s.HmacSHA256=u._createHmacHelper(d)})(Math),t.SHA256})})(R,R.exports);var tt=R.exports,et=Q(tt);const I=document,U=(r,e)=>{const t=I.createElement("img");return t.height=1,t.width=1,t.style.display="none",t.src=r,t.onload=e,t.alt="",I.body.appendChild(t)},rt=(r,e=!0)=>{const t=I.createElement("script");return t.type="text/javascript",t.src=r,t.async=e,I.body.appendChild(t)},nt=r=>{let e="_au_"+r+"=",t=decodeURIComponent(document.cookie).split(";");for(let n=0;n<t.length;n++){let s=t[n];for(;s.charAt(0)==" ";)s=s.substring(1);if(s.indexOf(e)==0)return s.substring(e.length,s.length)}return null},q=r=>{const e=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i;let t=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,n=r.split("."),s=n[n.length-1];(s.length>4||s==="com"||s==="org"||s==="net")&&(t=e);let h=r.match(t);return h?h[0]:r},st=(r,e)=>{document.cookie="_au_"+r+"="+e+"; domain="+q(document.location.hostname)+"; path=/; max-age=31536000"};function N(r){let e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("");r||(r=Math.floor(Math.random()*e.length));let t="";for(let n=0;n<r;n++)t+=e[Math.floor(Math.random()*e.length)];return t}function it(){const r=Math.round(Date.now()/1e3);return"AU1S-0100-"+String(r).padStart(12,"0")+"-"+N(8)+"-"+N(4)}function at(r){function e(p,v){var a,l,g,f,m;return g=p&2147483648,f=v&2147483648,a=p&1073741824,l=v&1073741824,m=(p&1073741823)+(v&1073741823),a&l?m^2147483648^g^f:a|l?m&1073741824?m^3221225472^g^f:m^1073741824^g^f:m^g^f}function t(p,v,a,l,g,f,m){return p=e(p,e(e(v&a|~v&l,g),m)),e(p<<f|p>>>32-f,v)}function n(p,v,a,l,g,f,m){return p=e(p,e(e(v&l|a&~l,g),m)),e(p<<f|p>>>32-f,v)}function s(p,v,a,l,g,f,m){return p=e(p,e(e(v^a^l,g),m)),e(p<<f|p>>>32-f,v)}function h(p,v,a,l,g,f,m){return p=e(p,e(e(a^(v|~l),g),m)),e(p<<f|p>>>32-f,v)}function y(p){var v="",a="",l;for(l=0;3>=l;l++)a=p>>>8*l&255,a="0"+a.toString(16),v+=a.substr(a.length-2,2);return v}var u=[],b,E,T,S,d,o,c,i;for(r=(function(p){p=p.replace(/\r\n/g,`
`);for(var v="",a=0;a<p.length;a++){var l=p.charCodeAt(a);128>l?v+=String.fromCharCode(l):(127<l&&2048>l?v+=String.fromCharCode(l>>6|192):(v+=String.fromCharCode(l>>12|224),v+=String.fromCharCode(l>>6&63|128)),v+=String.fromCharCode(l&63|128))}return v})(r),u=(function(p){var v,a=p.length;v=a+8;for(var l=16*((v-v%64)/64+1),g=Array(l-1),f=0,m=0;m<a;)v=(m-m%4)/4,f=m%4*8,g[v]|=p.charCodeAt(m)<<f,m++;return v=(m-m%4)/4,g[v]|=128<<m%4*8,g[l-2]=a<<3,g[l-1]=a>>>29,g})(r),d=1732584193,o=4023233417,c=2562383102,i=271733878,r=0;r<u.length;r+=16)b=d,E=o,T=c,S=i,d=t(d,o,c,i,u[r+0],7,3614090360),i=t(i,d,o,c,u[r+1],12,3905402710),c=t(c,i,d,o,u[r+2],17,606105819),o=t(o,c,i,d,u[r+3],22,3250441966),d=t(d,o,c,i,u[r+4],7,4118548399),i=t(i,d,o,c,u[r+5],12,1200080426),c=t(c,i,d,o,u[r+6],17,2821735955),o=t(o,c,i,d,u[r+7],22,4249261313),d=t(d,o,c,i,u[r+8],7,1770035416),i=t(i,d,o,c,u[r+9],12,2336552879),c=t(c,i,d,o,u[r+10],17,4294925233),o=t(o,c,i,d,u[r+11],22,2304563134),d=t(d,o,c,i,u[r+12],7,1804603682),i=t(i,d,o,c,u[r+13],12,4254626195),c=t(c,i,d,o,u[r+14],17,2792965006),o=t(o,c,i,d,u[r+15],22,1236535329),d=n(d,o,c,i,u[r+1],5,4129170786),i=n(i,d,o,c,u[r+6],9,3225465664),c=n(c,i,d,o,u[r+11],14,643717713),o=n(o,c,i,d,u[r+0],20,3921069994),d=n(d,o,c,i,u[r+5],5,3593408605),i=n(i,d,o,c,u[r+10],9,38016083),c=n(c,i,d,o,u[r+15],14,3634488961),o=n(o,c,i,d,u[r+4],20,3889429448),d=n(d,o,c,i,u[r+9],5,568446438),i=n(i,d,o,c,u[r+14],9,3275163606),c=n(c,i,d,o,u[r+3],14,4107603335),o=n(o,c,i,d,u[r+8],20,1163531501),d=n(d,o,c,i,u[r+13],5,2850285829),i=n(i,d,o,c,u[r+2],9,4243563512),c=n(c,i,d,o,u[r+7],14,1735328473),o=n(o,c,i,d,u[r+12],20,2368359562),d=s(d,o,c,i,u[r+5],4,4294588738),i=s(i,d,o,c,u[r+8],11,2272392833),c=s(c,i,d,o,u[r+11],16,1839030562),o=s(o,c,i,d,u[r+14],23,4259657740),d=s(d,o,c,i,u[r+1],4,2763975236),i=s(i,d,o,c,u[r+4],11,1272893353),c=s(c,i,d,o,u[r+7],16,4139469664),o=s(o,c,i,d,u[r+10],23,3200236656),d=s(d,o,c,i,u[r+13],4,681279174),i=s(i,d,o,c,u[r+0],11,3936430074),c=s(c,i,d,o,u[r+3],16,3572445317),o=s(o,c,i,d,u[r+6],23,76029189),d=s(d,o,c,i,u[r+9],4,3654602809),i=s(i,d,o,c,u[r+12],11,3873151461),c=s(c,i,d,o,u[r+15],16,530742520),o=s(o,c,i,d,u[r+2],23,3299628645),d=h(d,o,c,i,u[r+0],6,4096336452),i=h(i,d,o,c,u[r+7],10,1126891415),c=h(c,i,d,o,u[r+14],15,2878612391),o=h(o,c,i,d,u[r+5],21,4237533241),d=h(d,o,c,i,u[r+12],6,1700485571),i=h(i,d,o,c,u[r+3],10,2399980690),c=h(c,i,d,o,u[r+10],15,4293915773),o=h(o,c,i,d,u[r+1],21,2240044497),d=h(d,o,c,i,u[r+8],6,1873313359),i=h(i,d,o,c,u[r+15],10,4264355552),c=h(c,i,d,o,u[r+6],15,2734768916),o=h(o,c,i,d,u[r+13],21,1309151649),d=h(d,o,c,i,u[r+4],6,4149444226),i=h(i,d,o,c,u[r+11],10,3174756917),c=h(c,i,d,o,u[r+2],15,718787259),o=h(o,c,i,d,u[r+9],21,3951481745),d=e(d,b),o=e(o,E),c=e(c,T),i=e(i,S);return(y(d)+y(o)+y(c)+y(i)).toLowerCase()}const D=6e4,M=36e5,ot=864e5;function ct(r){var e="au/test";try{return r.localStorage.setItem(e,e),r.localStorage.removeItem(e),!0}catch(t){return!1}}class ut{constructor(e){this.w=e,this.now=1*new Date,this.useCookie=!ct(this.w)}getCookie(e){return nt(e)}get(e,t=!1){if(this.useCookie||t)return this.getCookie(e);let n=this.w.localStorage.getItem("au/"+e);if(n){if(n=JSON.parse(n),n.e>this.now)return n.v;this.w.localStorage.removeItem("au/"+e)}return null}setCookie(e,t,n=D){st(e,t)}set(e,t,n=D,s=!1){this.useCookie||s?this.setCookie(e,t,n):this.w.localStorage.setItem("au/"+e,JSON.stringify({v:t,e:this.now+n}))}}const z="https://a.ad.gt",k="https://p.ad.gt",dt="https://pixels.ad.gt",ht="https://seg.ad.gt",lt="https://ids.ad.gt";function V(r,e,t,n){r.au_seg=t,(n||[]).forEach(h=>h(r,e,t.segments));const s=new CustomEvent("auSegReady",{detail:t});e.dispatchEvent(s)}function pt(r,e,t){r.googletag=r.googletag||{},r.googletag.cmd=r.googletag.cmd||[],r.googletag.cmd.push(function(){r.googletag.pubads().setTargeting("AU_SEG",t)})}var gt=Object.defineProperty,ft=Object.defineProperties,vt=Object.getOwnPropertyDescriptors,W=Object.getOwnPropertySymbols,yt=Object.prototype.hasOwnProperty,mt=Object.prototype.propertyIsEnumerable,G=(r,e,t)=>e in r?gt(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,_=(r,e)=>{for(var t in e||(e={}))yt.call(e,t)&&G(r,t,e[t]);if(W)for(var t of W(e))mt.call(e,t)&&G(r,t,e[t]);return r},P=(r,e)=>ft(r,vt(e));const j=window,F=document,J={"og:title":"title","og:description":"description","og:image":"image","og:url":"url","og:type":"type","og:name":"name","og:locale":"locale"},X={description:"description",keywords:"keywords"},wt="meta[name='audigent:tags']";class bt{constructor(e){const{auvars:t,decoratorTarget:n,taggerStrategy:s}=e||{};this.w=j,this.u=F.location||j.location,this.d=F,this.auvars=t,this.dataStore=new ut(j),this.customOptions={},this.isIndexPage=this.u.pathname==="/",this.customTags=[],this.customAttributes={},this.userDefinedTags=[],this.userDefinedAttributes={},this.internalLinks=[],this.GlobalHandlers={},this.randNum=Math.random(),this.decoratorTarget=n||(this.isIndexPage?.95:.97),this.u.hostname.toLowerCase().endsWith("lnk.to")?this.taggerStrategy="FULL_PATH":this.taggerStrategy=s||this.auvars.tgs||"NONE",this.setupSessionId(),this.setupHadron()}docReady(){this.customOptions.autoPageView!==!1&&this.sendPageView(),this.ListenerIterator("a",this.clickHandler),this.w.addEventListener("hashchange",()=>{this.sendOffsiteClick({url:this.u.href}),this.sendPageView(),this.pixels()})}clearOptions(){this.customOptions={}}setOptions(e){const{options:t}=e||{};return typeof t=="object"?(this.customOptions=_(_({},this.customOptions),t),!0):!1}observeDom(e,t,n={childList:!0}){const s=window.MutationObserver||window.WebKitMutationObserver;if(!(!e||e.nodeType!==1))if(s){const h=new s(t);return h.observe(e,n),h}else window.addEventListener&&(e.addEventListener("DOMNodeInserted",t,!1),e.addEventListener("DOMNodeRemoved",t,!1))}push(e,t,n){if(typeof e=="string")return t&&t!==this.auvars.p?(console.warn("[Audigent] skip .push("+e+"), p is not a match"),!1):(console.warn('[Audigent] deprecated use of "push": please use .push( object )'),(this[e]||(()=>!1)).call(this,n),!0);if(e&&typeof e=="object"){const{fn:s,category:h,partnerId:y}=e,u=s||h;if(y&&y!==this.auvars.p)return console.warn("[Audigent] skip .push("+u+"), partnerId is not a match"),!1;if(s){const b=e.args;return Array.isArray(b)?(b.map(E=>(this[u]||(()=>!1)).call(this,E)),!0):((this[u]||(()=>!1)).call(this,b),!0)}return(this[u]||(()=>!1)).call(this,e),!0}return console.warn("[Audigent] could not execute the required command: please check your syntax"),!1}setupHadron(){var e;const t=(e=this.w.hadron)==null?void 0:e.id;this.auvars.h=t||null}getAudigentId(e){if(e instanceof Function)return e(this.auvars.a),this.auvars.a;const{callback:t}=e||{};return t instanceof Function&&t(this.auvars.a),this.auvars.a}setupSessionId(){let e=this.dataStore.get("sid");e==null&&(e=it()),this.auvars.s=e,this.dataStore.set("sid",e,30*D)}getTaggerComponents(){return null}setupTaggerId(){const e=this.u.hostname.toLowerCase(),t=this.getTags();let n=this.getTaggerComponents();Array.isArray(n)&&n.length>0||(this.taggerStrategy=="FULL_PATH"?n=[e,this.u.pathname,this.auvars.p]:Array.isArray(t)&&t.length>0?n=[e,"["+t.join(",").toLowerCase()+"]",this.auvars.p]:n=[e,"/",this.auvars.p]);const s=at(n.join("")).toLowerCase();return this.auvars.t=s,this.dataStore.set("tid",s,M),s}getMetaAttributes(){const e=this.d.querySelectorAll("meta");let t={url:this.u.href,title:this.d.title};for(const n of e){let s;const h=n.getAttribute("property");if(h!==void 0)h in J&&(s=J[h]);else{const y=n.getAttribute("name");y in X&&(s=X[y])}if(s!==void 0){const y=n.getAttribute("content");y!==void 0&&typeof y=="string"&&(s==="keywords"?t[s]=y.split(",").map(u=>u.trim()).filter(u=>u.length>0):(!(s in t)||t[s].length<y.length)&&(t[s]=y))}}return t}getCustomAttributes(){return{}}getAttributes(){return _(_(_(_({},this.customAttributes),this.userDefinedAttributes),this.getCustomAttributes()),this.getMetaAttributes())}clearAttributes(){this.userDefinedAttributes={}}setAttributes(e){const{attributes:t}=e||{};return typeof t=="object"?(this.userDefinedAttributes=t,!0):!1}addAttributes(e){const{attributes:t}=e||{};return typeof t=="object"?(this.userDefinedAttributes=_(_({},this.userDefinedAttributes),t),!0):!1}getMetaTags(){const e=document.head.querySelectorAll(wt)[0];return e?e.content.split("|").map(t=>t.trim()).filter(t=>t.length>0).map(t=>(this.u.hostname+" > "+t).toUpperCase()):[]}getCustomTags(){return[]}getTags(){return[...this.customTags,...this.userDefinedTags,...this.getCustomTags(),...this.getMetaTags()].filter(e=>typeof e=="string"||e instanceof String).map(e=>e.replace(/,/g,"")).map(e=>e.trim()).filter(e=>e.length>0).map(e=>e.toUpperCase())}clearTags(){this.userDefinedTags=[]}setTags(e){const{tags:t}=e||{};return Array.isArray(t)?(this.userDefinedTags=t,!0):typeof t=="string"?(this.userDefinedTags=[t],!0):!1}addTags(e){const{tags:t}=e||{};return Array.isArray(t)?(this.userDefinedTags=[...t,...this.userDefinedTags],!0):typeof t=="string"?(this.userDefinedTags=[t,...this.userDefinedTags],!0):!1}writeDecoratorRecord(e){const{tags:t,decor_dict:n,attributes:s}=e;this.customTags=[...this.customTags,...t||[]],this.customAttributes=_(_(_({},this.customAttributes),n||{}),s||{})}sendDecoratorRecord(){if(!(this.randNum>=this.decoratorTarget))return null;const e=this.getAttributes(),t=this.getTags(),n=P(_({},e),{tags:t.join(),tagger_id:this.auvars.t,partner_id:this.auvars.p});let s=new XMLHttpRequest,h=`${k}/api/v1/dec`;return s.open("POST",h,!0),s.setRequestHeader("Content-type","application/json"),s.send(JSON.stringify(n)),s}ListenerIterator(e,t){Array.prototype.forEach.call(this.d.querySelectorAll(e),n=>{this.ListenerAttacher({input:n,method:t})})}ListenerAttacher(e){const{input:t,method:n}=e;t!=null&&(t.addEventListener?t.addEventListener("mousedown",n.bind(this),!1):t.attachEvent&&t.attachEvent("mousedown",n))}GlobalListenerHandler(e){this.GlobalHandlers[e.type].forEach(t=>{if(e.target.matches(t.selector))t.method(e);else{let n=e.target,s=!1;for(;n.parentElement&&!s;)n=n.parentElement,s=n.matches(t.selector),s&&t.method(P(_({},e),{target:n}))}})}GlobalListenerAttacher(e,t,n){typeof e=="string"&&(e=[e]),e.forEach(s=>{this.GlobalHandlers[s]=this.GlobalHandlers[s]||[],this.GlobalHandlers[s].push({selector:t,method:n}),document.addEventListener?(document.removeEventListener(s,window.au.l),document.addEventListener(s,window.au.l)):document.attachEvent&&(document.detachEvent(s,window.au.l),document.attachEvent(s,window.au.l))})}sendOffsiteClick(e){const{url:t}=e;U(`${z}/api/v1/off-site-click/${this.auvars.p}?tagger_id=${this.auvars.t}&url=${t}`)}clickHandler(e){let t=e.currentTarget.getAttribute("href");t!==null&&this.internalLinks.includes(this.u.hostname)&&(this.sendOffsiteClick({url:t}),this.sendPageView())}sendUserBehaviour(e){const{action:t}=e,n={click_url:t,tagger_id:this.auvars.t,audigent_id:this.auvars.a,partner_id:this.auvars.p},s=new Blob([JSON.stringify(n)],{type:"application/json"});this.w.navigator.sendBeacon(`${k}/api/v1/ubh`,s)}behavior(e){const t=encodeURIComponent(`${this.u.protocol}//${this.u.hostname}${this.u.pathname}__audigent-behavior-${e.action}${this.u.search}${this.u.hash}`);this.sendOffsiteClick({url:t}),this.sendCustomEvent({eventCategory:"audigent-behavior",eventAction:e.action,eventLabel:this.auvars.t})}sendEvent(e){let{event:t,events:n,type:s}=e;if(t=t||n,!t){if(!s)return null;t=_({},e),delete t.category,delete t.partnerId}const h={tagger_id:this.auvars.t,partner_id:this.auvars.p,audigent_id:this.auvars.a,events:Array.isArray(t)?t:[t]};let y=new XMLHttpRequest,u=`${k}/api/v1/event`;return y.open("POST",u,!0),y.setRequestHeader("Content-type","application/json"),y.send(JSON.stringify(h)),""}sendCustomEvent(e){const{eventCategory:t,eventAction:n,eventLabel:s,skipSQS:h}=e;h||this.sendEvent({event:{type:t,eventAction:n,eventLabel:s}})}sendConsent(e){const{consented:t,consentType:n,consentString:s}=e,h="consent_"+n.toLowerCase(),y=this.dataStore.get("consent_"+e.consentType.toLowerCase());if(y&&s==y)return;const u={audigent_id:this.auvars.a,tagger_id:this.auvars.t,partner_id:this.auvars.p,consented:t,consent_type:n,consent_string:s},b=new Blob([JSON.stringify(u)],{type:"application/json"});return this.w.navigator.sendBeacon(`${k}/api/v1/con`,b)&&this.dataStore.set(h,s||"n/a",ot),""}pixels(){const e=`${dt}/api/v1/getpixels?tagger_id=${this.auvars.t}&url=${encodeURIComponent(this.u.href)}&code='none'`;rt(e,!0)}tags(e){return!1}conversion(e){return!1}sendPageView(e){this.randNum=Math.random(),this.setupTaggerId();const t=1*new Date,n={event_timestamp:t,url:this.u.href,referrer:this.d.referrer,partner_id:this.auvars.p,tagger_id:this.auvars.t,audigent_id:this.auvars.a,session_id:this.auvars.s,p_s_f:this.psf};this.auvars.h&&(n.hadron_id=this.auvars.h);const s=(e==null?void 0:e.data)||{},h={category:"pageView",version:"v2",created_at:t,properties:_(_({},n),s)};let y=new XMLHttpRequest,u=`${z}/api/v1/collect`;y.open("POST",u,!0),y.withCredentials=!0,y.setRequestHeader("Content-type","text/plain"),y.send(this.w.btoa(JSON.stringify(h))),this.pixels(),this.sendDecoratorRecord()}beopEvent(e){const t=e.partnerId||this.auvars.p;this.sendEvent({event:P(_({},e.data||{}),{partner_id:t,type:"beop"})})}trackEvent(e){return!1}DispatchEvent(e){const{eventName:t}=e,n=(s=>{if(typeof window.CustomEvent=="function")return new CustomEvent(s);const h={bubbles:!1,cancelable:!1,detail:void 0},y=document.createEvent("CustomEvent");return y.initCustomEvent(s,h.bubbles,h.cancelable,h.detail),y})(t);window.dispatchEvent(n)}optout(){U(`${lt}/api/v1/optout?au_id=${this.auvars.a}`)}segCapture(e,t){const n=(e==null?void 0:e.segments)||[];if(n.length>0&&this.randNum>=.9){const s={tagger_id:this.auvars.t,partner_id:this.auvars.p,audigent_id:this.auvars.a,segment_ids:n.join("|"),is_cached:t},h=new Blob([JSON.stringify(s)],{type:"application/json"});return this.w.navigator.sendBeacon(`${k}/api/v1/segs`,h),!0}return!1}setupInPageTaxonomy(e){const t=this,n=this.dataStore.get("seg");if(n!=null){V(t.w,t.d,n,e),this.segCapture(n,!0);return}let s=new URL(`${ht}/api/v2/segments`);if(s.searchParams.set("url",encodeURIComponent(this.u.href)),s.searchParams.set("partner_id",this.auvars.p),this.auvars.t!==void 0)s.searchParams.set("tagger_id",this.auvars.t);else{const y=this.setupTaggerId();s.searchParams.set("tagger_id",y)}s.searchParams.set("au_id",this.auvars.a);let h=new XMLHttpRequest;h.timeout=1e4,h.onload=function(){if(h.readyState==XMLHttpRequest.DONE&&h.status==200){const y=JSON.parse(h.response);V(t.w,t.d,y,e),t.dataStore.set("seg",y,M*6),t.segCapture(y,!1)}},h.ontimeout=function(){console.log("[Audigent] Taxonomy Service > Timeout")},h.onerror=function(){console.log("[Audigent] Taxonomy Service > Invalid Response")},h.open("GET",s,!0),h.send()}addUserIdentity(e){if(!e)return!1;const{identityType:t,identityValue:n}=e;if(t===void 0||n===void 0)return!1;if(t==="email"){const s=window.btoa(n);return this.sendEvent({event:{type:"e",value:s}})}else return this.sendEvent({event:{type:"u",[t]:n,identityType:t,identityValue:n}})}addUserEmailAddress(e){if(!e)return!1;const{identityValue:t}=e;if(t===void 0)return!1;let n=t.toLowerCase().trim();if(n.endsWith("@gmail.com")){let h=n.split("@")[0];h=h.split("+")[0],h=h.replace(/\./g,""),n=h+"@gmail.com"}const s=et(n).toString();return this.addUserIdentity({identityType:"hem_sha256",identityValue:s})}addUserProperty(e){if(!e)return!1;const{propertyName:t,propertyValue:n}=e;return t===void 0||n===void 0?!1:t==="email"?this.addUserIdentity({identityType:"email",identityValue:n}):this.sendEvent({event:{type:"user.property",propertyName:t,propertyValue:n}})}}(function(r,e){r=r||"docReady",e=e||window;var t=[],n=!1,s=!1;function h(){if(!n){n=!0;for(var u=0;u<t.length;u++)t[u].fn.call(window,t[u].ctx);t=[]}}function y(){document.readyState==="complete"&&h()}e[r]=function(u,b){if(typeof u!="function")throw new TypeError("callback for docReady(fn) must be a function");if(n){setTimeout(function(){u(b)},1);return}else t.push({fn:u,ctx:b});document.readyState==="complete"||!document.attachEvent&&document.readyState==="interactive"?setTimeout(h,1):s||(document.addEventListener?(document.addEventListener("DOMContentLoaded",h,!1),window.addEventListener("load",h,!1)):(document.attachEvent("onreadystatechange",y),window.attachEvent("onload",h)),s=!0)}})("docReady",window);function _t(r,e){const t="720";let n=r.au&&Array.isArray(r.au)?[...r.au]:[];r.auvars.autag_objs=[...(r.auvars.autag_objs||[]).filter(s=>s!=="autag"),"autag"],r.au={push:(...s)=>{r.auvars.autag_objs.forEach(h=>Object.values(r[h]||{}).forEach(y=>y.push(...s)))},l:s=>{r.auvars.autag_objs.forEach(h=>Object.values(r[h]||{}).forEach(y=>y.GlobalListenerHandler(s)))},init:()=>{r.auvars[t].hist=r.auvars[t].hist||[];const s=r.auvars[t].hist.slice(-1)[0];r.autag=r.autag||{},(!r.autag[t]||s!==r.location.href)&&(r.auvars[t].hist.push(r.location.href),r.autag[t]=e({auvars:r.auvars[t]}))}},r.au.init(),n.forEach(s=>r.au.push(s))}docReady(()=>window.au.push({category:"docReady"}));class St extends bt{docReady(){super.docReady(),this.setupInPageTaxonomy([pt])}getCustomTags(){return[q(this.u.hostname).toUpperCase()]}}(function(r){_t(r,function(e){return new St(e)})})(window)})();