(function(){"use strict";const E=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,D=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i;function U(t){let n=D,e=t.split("."),o=e[e.length-1];(o.length>4||o==="com"||o==="org"||o==="net")&&(n=E);let a=t.match(n);return a?a[0]:t}function b(t){let n="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("");t||(t=Math.floor(Math.random()*n.length));let e="";for(let o=0;o<t;o++)e+=n[Math.floor(Math.random()*n.length)];return e}function v(t,n){let e=n.createElement("img");return e.height=1,e.width=1,e.style.display="none",e.src=t,e.alt="",e}function N(t,n,e,o){let a=n.createElement(e);a.async=!0,a.crossorigin="anonymous",a.src=o;let s=n.getElementsByTagName(e)[0];s.parentNode.insertBefore(a,s)}const h="1d";function T(t){const n="au/test";try{return t.localStorage.setItem(n,n),t.localStorage.removeItem(n),!0}catch{return!1}}function A(t,n){const e=t.localStorage.getItem("au/"+n);return e?JSON.parse(e).v:null}function O(t,n,e){t.localStorage.setItem("au/"+n,JSON.stringify({v:e,e:0}))}function w(t,n){const e="_au_"+n+"=",o=decodeURIComponent(t.cookie).split(";");for(const a of o){const s=a.trimStart();if(s.startsWith(e))return s.substring(e.length,s.length)}return null}function m(t,n,e,o=31536e3){t.cookie="_au_"+n+"="+encodeURIComponent(e)+"; domain="+U(t.location.hostname)+"; secure; samesite=none; path=/; max-age="+o}const M="https://p.ad.gt",L="https://ids.ad.gt",z="https://ids4.ad.gt",J="https://cdn.hadronid.net",R={apn:[32,1,0],ttd:[21,1,0],adx:[755,1,0],ado:[565,1,0],pub:[76,1,0],son:[104,1,0],rub:[52,1,0],impr:[253,1,0],smart:[45,1,0],ppnt:[81,1,0],unruly:[36,1,0],openx:[69,1,0],tapad:[89,1,0],index:[10,1,1],onetag:[241,1,0]};function j(t,n,e){if(e)return A(t,"last_seen_pixels");{const o=w(n,"last_seen_pixels");return o?JSON.parse(atob(o)):null}}function B(t,n,e,o){e?(m(n,"last_seen_pixels","",0),O(t,"last_seen_pixels",o)):m(n,"last_seen_pixels",btoa(JSON.stringify(o)))}function H(t,n,e,o,a,s){const r=a.pixels,c=T(t),i=j(t,n,c)||{},g=57600,l=Math.round(new Date/1e3);let p=0;for(const _ of r){if(p>9)break;const d=_[0],[$,tt,nt]=R[d]||[void 0,void 0,void 0];let f=_[1];if(nt===1){if(o==null)continue;f=f.replace(/\[HID\]/g,o)}else f=f.replace(/\[AU1D\]/g,e),f=f.replace(/\[AU1D64\]/g,t.btoa(e));if(!(s?.gdprApplies===!0&&($===void 0||s.vendor.consents[$]!==!0))){if((parseInt(i[d])||0)+g<l){tt===1&&(s?.gdprApplies===!0?f+="&gdpr=1&gdpr_consent="+(s.tcString||""):f+="&gdpr=0");const et=v(f,n);n.body.appendChild(et),d!=="ip"&&(i[d]=l),p+=1}m(n,"last_seen_"+d,"",0)}}m(n,"last_seen_pixels","",0),B(t,n,c,i)}function G(t,n,e){const o=`${z}/api/v1/ip_match?id=${e}`,a=v(o,n);n.body.appendChild(a)}function S(t,n,e){return{consentString:t,consentType:n,consentStatus:e}}function y(t,n){t.au||(t.au=[]),t.au.push({category:"sendConsent",consented:n?.consentStatus,consentType:n?.consentType,consentString:n?.consentString})}function P(t){const{OptOutSale:n}=t||{};return n!="Y"}function u(t){const{Gpc:n,MspaCoveredTransaction:e,MspaOptOutOptionMode:o,TargetedAdvertisingOptOut:a,SaleOptOut:s,SharingOptOut:r}=t||{};return n===!0?!1:!(a===1||s===1||r===1)}const Y={uspv1:P,usnat:u,usca:u,usva:u,usco:u,usut:u,usct:u,usfl:u,usmt:u,usor:u,ustx:u,usde:u,usia:u,usne:u,usnh:u,usnj:u,ustn:u};function K(t,n,e,o,a){try{const s=a.pingData||{},r=s.gppString;if(r){let c;for(const[g,l]of Object.entries(s.parsedSections||{})){const p=Y[g];if(p){const _=Array.isArray(l)?l[0]:l;c=p(_);break}}const i=S(r,"gpp",c);y(t,i)}}catch{console.warn("[Audigent] Unable to retrieve/parse valid consent data from __gpp")}}function I(t,n,e,o,a){a&&(a.eventName==="listenerRegistered"&&a.data===!0||a.eventName==="cmpDisplayStatus"&&a.data==="hidden")&&(__gpp("removeEventListener",I),K(t,n,e,o,a))}function W(t,n,e,o){let a=0;const s=setInterval(()=>{typeof t.__gpp=="function"?(clearInterval(s),t.__gpp("addEventListener",function(r){I(t,n,o,e,r)})):a>=4&&(clearInterval(s),console.warn("[Audigent] cannot find __gpp framework")),a+=1},150);o(t,n,e,{gdprApplies:!1})}const k="tcunavailable";function C(t){return t&&t.trim()&&t!=k?t:void 0}function x(t){if(t?.gdprApplies===!0){const n=t.purpose.consents,e=Object.keys(n).filter(o=>n[o]===!0);return!!t.tcString&&t.tcString!=k&&t.vendor.consents[561]&&["1","2","3","4","9"].every(o=>e.includes(o))}return!1}function q(t,n,e,o,a,s){if(s&&a&&a.tcString){if(a.eventStatus==="tcloaded"){const r=x(a),c=S(C(a.tcString),"tcf",r);y(t,c),r&&e(t,n,o,a)}if(a.eventStatus==="useractioncomplete"){const r=x(a),c=S(C(a.tcString),"tcf",r);y(t,c),r&&e(t,n,o,a)}}}function F(t,n,e,o){let a=0;const s=setInterval(()=>{typeof t.__tcfapi=="function"?(clearInterval(s),t.__tcfapi("addEventListener",2,function(r,c){q(t,n,o,e,r,c)})):a>=10&&(clearInterval(s),console.warn("[Audigent] cannot find __tcfapi framework, halt execution")),a+=1},150)}function Q(t,n,e,o){const a=e.partner_id;if(t.auvars=t.auvars||{},t.auvars[a]=t.auvars[a]||{},t.auvars[a].a_loaded===!0){console.warn("[Audigent] script has already been initialised. Skip further execution");return}t.auvars[a].a_loaded=!0,t.auvars[a].p=a,["EU","GB"].includes(e.region)?F(t,n,e,o):["US"].includes(e.region)?W(t,n,e,o):o(t,n,e,{gdprApplies:!1})}function V(t,n,e,o){const a=t.hadron?.id;if(a){const s=`${L}/api/v1/halo_match?id=${e}&halo_id=${a}`,r=v(s,n);return n.body.appendChild(r),a}else return N(t,n,"script",`${J}/hadron.js?partner_id=${o}&sync=1&url=${encodeURIComponent(t.location.href)}`),null}function X(t){t.cookie="au_3p_check=1; Domain=.ad.gt; Path=/; SameSite=None; Secure; HttpOnly"}function Z(t,n,e){X(n),m(n,h,e),O(t,h,e)}(function(){function t(){const r=Math.round(Date.now()/1e3);return"AU1D-0100-"+String(r).padStart(12,"0")+"-"+b(8)+"-"+b(4)}function n(r,c){let i=A(r,h);return i!=null||(i=w(c,h),i!=null)?i:t()}function e(r,c,i,g){const l=i.partner_id,p=n(r,c),_=V(r,c,p,l);Z(r,c,p),r.auvars.a=p,r.auvars[l].a=p,r.auvars[l].tcdata=g,r.auvars[l].ga4=i.use_ga4,r.auvars[l].fbq=i.use_facebook,r.auvars[l].tgs=i.tagger_strategy,r.auvars[l].disable_ecommerce=i.disable_ecommerce,G(r,c,p),H(r,c,p,_,i,g);let d=c.createElement("script");d.src=`${M}/api/v1/p/${l}`,d.async=1,c.head.appendChild(d)}function o(){try{if(window.self!==window.top)return window.top}catch(r){console.warn("[Audigent] cannot access to window.top: skip check and continue",r)}return window}const a=o(),s=JSON.parse(a.atob("eyJwYXJ0bmVyX2lkIjogIjQ1NCIsICJ0YWdnZXJfc3RyYXRlZ3kiOiAiTk9ORSIsICJnZHByX2FwcGxpZXMiOiBmYWxzZSwgImRpc2FibGVfY29uc2VudF9tYW5hZ2VtZW50IjogZmFsc2UsICJ1c2VfZmJxIjogZmFsc2UsICJ1c2VfZ2E0IjogdHJ1ZSwgImRpc2FibGVfZWNvbW1lcmNlIjogdHJ1ZSwgInBpeGVscyI6IFtbImFwbiIsICJodHRwczovL3NlY3VyZS5hZG54cy5jb20vZ2V0dWlkP2h0dHBzOi8vaWRzLmFkLmd0L2FwaS92MS9tYXRjaD9pZD1bQVUxRF0mYWRueHNfaWQ9JFVJRCJdLCBbIm9wZW54IiwgImh0dHBzOi8vdS5vcGVueC5uZXQvdy8xLjAvY20/aWQ9OTk4ZWFmMDYtOTkwNS00ZWFlLTllMjYtOWZhYzc1OTYwYzUz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