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