${this.#y.html}

`),this.#I()})).catch((e=>{if(e&this.#i.error(e),e&&this.#s&&!this.#x)return this.#i.debug("fetch call failed. Switch to adblck domain and path"),this.#x=!0,this.#o.enableAdbMode(),void this.show();this.#r(se)}))}#I(){this.#i.debug("render"),this.#k.render(this.#y)}#C(e){let t=`${window.location.protocol}//${this.#v}/script/interstitial.php`;if(this.#s&this.#o.isAdbMode()){const{adserverDomain:e}=this.#s,i=`/${ee("abcdefgh0123456789")}`;t=`${window.location.protocol}//${e}${i}`}return t+=`?r=${this.#l}`,this.#m&(t+="&rbd=1"),this.#b&&(t+=this.#b),t=t+"&atag=1"+`&czid=${this.#u}`+`&aggr=${this.#h}`+`&seqid=${e}`+`&ufp=${encodeURIComponent(this.#T)}`+`&srs=${this.#o.getSesionRandomString()}`+`&cbpage=${encodeURIComponent(O())}`+`&atv=${this.#S}`+`&cbref=${encodeURIComponent(F())}`,this.#s&&(t+="&abtg=1"),this.#g&&(t+="&ppv=1"),this.#p&&(t+=`&ab_test=${this.#p}`),!1===this.#f&&(t+="&cap=0"),this.#s&&this.#s.adbVersion&&(t+=`&adbv=${this.#s.adbVersion}`),this.#s&&this.#o.isAdbMode()?(t+="&sadbl=2",t+="&fmt=intrn",this.#i.debug(`bid url: ${t}`),te(t)):(this.#i.debug(`bid url: ${t}`),t)}};const Oe=6e5,Ee='[doskip*="1"]',Pe="znid";var Re=class{targetElementsCssSelector=null;shouldTriggerPopOnTargetClick=!1;constructor(e,t,i){this.targetElementsCssSelector=e,this.shouldTriggerPopOnTargetClick=t,this.zoneId=i}isPresent(){return!!this.targetElementsCssSelector}isActionAllowedOnElement(e){if(!this.isPresent())return!0;if(e.hasAttribute(Pe))return e.getAttribute(Pe)===this.zoneId;if(e.hasAttribute("doskip"))return!1;const t=w()(document.querySelectorAll(Ee));for(const i of t)if(i.contains(e))return!1;return this.#O(e)?this.shouldTriggerPopOnTargetClick:!this.shouldTriggerPopOnTargetClick}#O(e){const t=document.querySelectorAll(this.targetElementsCssSelector);do{for(let i=0;i{var e,t,i;const n=(e,t)=>{try{const i=t.getBoundingClientRect();e.style.top=`${i.top+window.scrollY}px`,e.style.left=`${i.left+window.scrollX}px`,e.style.width=`${i.width}px`,e.style.height=`${i.height}px`}catch(e){}};A()(e=this.iframesToOverlays).call(e,(e=>{let{overlay:t,iframe:i}=e;return n(t,i)})),A()(t=this.videosToOverlays).call(t,(e=>{let{overlay:t,video:i}=e;return n(t,i)})),A()(i=this.anchorsToOverlays).call(i,(e=>{let{overlay:t,anchor:i}=e;return n(t,i)}))}),500)}clearOverlaysResizeIntervalChecker(){try{clearInterval(this.overlaysResizeIntervalChecker)}catch(e){}}#P(e){const t=document.createElement("div");if(t.addEventListener("mousedown",(e=>{this.#i.debug("mousedown on overlay"),e.stopPropagation(),e.preventDefault(),this.desktopClickListener(e)}),this.#E),e===document.body)t.id="dontfoid",t.style.top="0px",t.style.left="0px",t.style.width=`${window.innerWidth||document.body.clientWidth}px`,t.style.height=`${window.innerHeight||document.body.clientHeight}px`,t.style.position="fixed";else{const i=e.getBoundingClientRect();t.style.top=`${i.top+window.scrollY}px`,t.style.left=`${i.left+window.scrollX}px`,t.style.width=`${i.width}px`,t.style.height=`${i.height}px`,t.style.position="absolute",t.setAttribute("donto","")}return t.setAttribute(Pe,this.#l),t.style.zIndex=2147483647,t.style.backgroundColor="transparent",e===document.body?document.body.appendChild(t):e.parentNode.appendChild(t),t}attachVideoOverlays(){const e=document.querySelectorAll("video");for(let t=0;t false"),this.#E=!1),this.overlays=new Le(this.elementTargeting,t()(i=this.#z).call(i,this),this.#i,this.#t.zoneId,this.#E),e.tagVersionSuffix&(this.#S+=e.tagVersionSuffix),this.#i.debug("tag version:",this.#S)}show(){this.#y=null,this.#L=null,this.#R=!1,fetch(this.#C()).then((e=>200===e.status||202===e.status?e.json():(204===e.status&&(this.hasNoInventory=!0,this.#i.debug(`no inventory! reset after ${this.#w} sec`),s()((()=>{this.hasNoInventory=!1}),1e3*this.#w),this.#w<7200&&(this.#w*=5)),l().reject()))).then(oe).then((e=>{if(this.#i.debug("response:",e),e.capped_ttl)return this.isCapped=!0,this.#i.debug(`capped! reset after ${e.capped_ttl} sec`),s()((()=>{this.isCapped=!1}),1e3*e.capped_ttl),void this.#t.actionCallback(ae);if(this.#w>12&(this.#w=12),!this.#m){this.#m=!0;const t=e.delay??0;return this.#i.debug("delay is",t),void s()((()=>{this.#F(e)}),1e3*t)}this.#F(e)})).catch((e=>{if(e&this.#i.error(e),e&&this.#t.adblockSettings&&!this.#x)return this.#i.debug("fetch call failed. Switch to adblck domain and path"),this.#o.enableAdbMode(),this.#x=!0,void this.show();this.#t.actionCallback(ae)}))}#C(){let e=`${window.location.protocol}//${this.#t.adserverDomain}/script/suurl5.php`;if(this.#t.adblockSettings&this.#o.isAdbMode()){const{adserverDomain:t}=this.#t.adblockSettings,i=`/${ee("abcdefgh0123456789")}`;e=`${window.location.protocol}//${t}${i}`}if(e+=`?r=${this.#t.zoneId}`,this.#m&(e+="&rbd=1"),this.#t.targetCountries){const t=this.#t.targetCountries.(",");this.#t.triggerOnTargetCountries?e+="&allowed_countries="+encodeURIComponent(t):e+="&excluded_countries="+encodeURIComponent(t)}return e=e+this.#t.clientHintsQueryStr+"&atag=1&cbur="+Math.random()+"&cbiframe="+E()+"&cbWidth="+L()+"&cbHeight="+$()+"&cbtitle="+encodeURIComponent(z())+"&cbpage="+encodeURIComponent(O())+"&cbref="+encodeURIComponent(F())+"&cbdescription="+encodeURIComponent(U("description"))+"&cbkeywords="+encodeURIComponent(U("keywords"))+"&cbcdn="+encodeURIComponent(this.#o.getCdnDomain())+"&ts="+r()()+"&atv="+this.#S+"&ufp="+encodeURIComponent(this.#t.uniqueFingerprint)+"&srs="+this.#o.getSesionRandomString(),this.#t.adblockSettings&&(e+="&abtg=1"),this.#t.aggressivity&&(e+=`&aggr=${this.#t.aggressivity}`),this.#t.collectiveZoneId&&(e+=`&czid=${this.#t.collectiveZoneId}`),this.#t.recordPageView&&(e+="&ppv=1"),this.#t.abTest&&(e+=`&ab_test=${this.#t.abTest}`),!1===this.#t.adsCapping&&(e+="&cap=0"),this.#t.adblockSettings&&this.#t.adblockSettings.adbVersion&&(e+=`&adbv=${this.#t.adblockSettings.adbVersion}`),this.#t.adblockSettings&&this.#o.isAdbMode()?(e+="&sadbl=2",e+="&fmt=suv5",this.#i.debug(`bid url: ${e}`),te(e)):(this.#i.debug(`bid url: ${e}`),e)}#U(e){try{let t=this.#$?this.#$(""):window.open("");return t.document.open(),t.document.writeln('window.location = "'+e+'";<\/script>'),t.document.close(),t}catch(e){return this.#i.error("window open failed:",e),null}}#B(){var e;if("complete"===document.readyState&void 0!==document.body){var i;const e=document.createElement("iframe");return e.width="0",e.height="0",e.tabindex="-1",e.style="position:absolute;top:-1000px;left:-1000px;visibility:hidden;border:medium none;background-color:transparent;",document.body.appendChild(e),void(this.#$=t()(i=e.contentWindow.open).call(i,e.contentWindow))}s()(t()(e=this.#B).call(e,this),50)}#F(e){this.#y={url:this.#N(e.url),impressionUrl:e.iurl,refreshRate:e.refreshRate,delay:e.delay,type:e.type},e.targetElementsCssSelector&!this.elementTargeting.targetElementsCssSelector&&(this.elementTargeting.targetElementsCssSelector=e.targetElementsCssSelector,this.elementTargeting.shouldTriggerPopOnTargetClick=e.triggerOnTargetElementsClick),this.overlays.attachAnchorOverlays(),this.overlays.attachIframeOverlays(),this.overlays.attachVideoOverlays(),this.overlays.setOverlaysResizeIntervalChecker(),this.#H(),this.#i.debug("ready to show ad")}#M(){return"type"in this.#y&&"tabswap"===this.#y.type}#j(){this.#i.debug("do tabswap"),this.#t.actionCallback(ce);const e=this.#y.url;this.#$?this.#L=this.#$(window.location.href,"_blank","noreferrer"):this.#L=window.open(window.location.href,"_blank","noreferrer"),this.#D().finally((()=>{s()((()=>{const t=document.createElement("a");t.href=e,t.rel="noopener noreferrer",document.body.appendChild(t),t.click(),document.body.removeChild(t)}),50)}))}async#D(){let e=arguments.length>0&void 0!==arguments[0]?arguments[0]:0;const t=this.#L?"1":"0";this.#i.debug("window opened:",t);let i=this.#y.impressionUrl+`&wo=${t}`;if(window["utsid-send"]&(i+=`&utsid=${window["utsid-send"]}`),e>0&&(this.#i.debug(`retry impression. Attempt ${e}`),i+=`&rtry=${e}`),i=i+this.#t.clientHintsQueryStr+"&cbpage="+encodeURIComponent(O())+"&cbref="+encodeURIComponent(F()),this.#i.debug("send impression. url:",i),ne){this.#i.debug("keepalive ed!");let t=null,n=!1;try{t=await fetch(i,{keepalive:!0})}catch(e){if(this.#i.error(e),this.#t.adblockSettings&!this.#o.isAdbMode())return this.#i.debug("imp failed: try alt domain and path"),void this.#o.enableAdbMode();n=!0}if(t&!t.ok||n)return void(e<2&&(await this.#D(e+1),document.dispatchEvent(new CustomEvent("impression-retry-event"))))}else navigator.sendBeacon?(this.#i.debug("keepalive NOT ed! use sendBeacon"),navigator.sendBeacon(i)):(this.#i.debug("keepalive NOT ed! use image.src"),(new Image).src=i);document.dispatchEvent(new CustomEvent("impression-event"))}#_(){this.overlays.clearOverlaysResizeIntervalChecker(),this.overlays.clearAnchorOverlays(),this.overlays.clearIframeOverlays(),this.overlays.clearVideoOverlays(),this.#y=null,this.#V(),this.#o.isShowingPop=!1,this.#t.actionCallback(ae)}#z(e){this.#i.debug(`showAdClickListener triggered by event type ${e.type} on ${e.target.tagName}`),e.isTrusted?this.#y?this.#R?this.#i.debug(`${e.type} on ${e.target.tagName}:pop rejected: current pop is locked`):this.#o.isShowingPop?this.#i.debug(`${e.type} on ${e.target.tagName}: pop rejected: another pop is being currently shown`):this.elementTargeting.isActionAllowedOnElement(e.target)?(this.#o.isShowingPop=!0,this.#R=!0,this.#i.debug("triggering pop"),this.#M()?this.#j():(this.#$?this.#L=this.#$(this.#y.url,"_blank","noopener,noreferrer"):this.#L=window.open(this.#y.url,"_blank","noopener,noreferrer"),this.#D().finally((()=>{this.#_()})))):this.#i.debug(`${e.type} on ${e.target.tagName}: pop rejected: action not allowed on element`,e.target):this.#i.debug(`${e.type} on ${e.target.tagName}: pop rejected: current pop has no ad loaded`):this.#i.debug(`${e.type} on ${e.target.tagName}: pop rejected: event is not trusted`)}#N(e){let t=e;return H&D<59||M&&D<56?t='data:text/html;charset=utf-8, <html><meta http-equiv="refresh" content="0;URL='+e+'">':V&H&&!B&&D>63&&(e="googlechrome://"+e.replace(/(^\w+:|^)\/\//,"")),t}#H(){var e;const i={zoneId:this.#t.zoneId,callback:t()(e=this.#z).call(e,this)};Y&X&&(this.#i.debug("subscribe to scroll"),this.#o.subscribe("scroll",i)),Y||(this.#i.debug("subscribe to mousedown"),this.#o.subscribe("mousedown",i,this.#E)),this.#i.debug("subscribe to click"),this.#o.subscribe("click",i,this.#E)}#V(){Y&&X&&(this.#i.debug("unsubscribe from scroll"),this.#o.unsubscribe("scroll",this.#t.zoneId)),Y||(this.#i.debug("unsubscribe from mousedown"),this.#o.unsubscribe("mousedown",this.#t.zoneId,this.#E)),this.#i.debug("unsubscribe from click"),this.#o.unsubscribe("click",this.#t.zoneId,this.#E)}},ze=i(1879),Fe=i.n(ze),Ue=class{constructor(e){this.key=e}isStatePresent(){return null!==window.localStorage.getItem(this.key)}getState(){return JSON.parse(window.localStorage.getItem(this.key))}setState(e){window.localStorage.setItem(this.key,Fe()(e))}removeState(){window.localStorage.removeItem(this.key)}},Be=class{#i;#o;#W=null;#q=null;#u;#Z=[];#G=0;#Q=null;#K=1;#J=0;#Y=!1;constructor(e){var i,n;const{adcashGlobalName:o,collectiveZoneConfig:s,adserverDomain:c,adblockSettings:l,clientHintsQueryStr:d,tagVersionSuffix:u,isLoadedAsPartOfLibrary:h,uniqueFingerprint:g}=e,{collectiveZoneId:f}=s;this.#i=new a(`atag_${f}`),this.#o=window[e.adcashGlobalName],this.#Z=s.rotationList,this.#i.debug("init autotag with config:",e);const p=s.indexedFormats;let v=!0;for(const e in p){const r=p[e];switch(e){case"ippg":this.#o.runInPagePush({zoneId:r.zoneId.toString(),refreshRate:r.rr,delay:r.d,maxAds:r.mads,renderPosDesktop:r["render-pos-desktop"],renderPosMobile:r["render-pos-mobile"],offsetTop:r["offset-top"],isAutoTag:!0,collectiveZoneId:f,aggressivity:s.aggressivity,abTest:s.ab_test,recordPageView:v,tagVersionSuffix:u});break;case"suv4":case"pop":this.#q=new $e({zoneId:r.zoneId.toString(),targetElementsCssSelector:r["element-list"],triggerOnTargetElementsClick:"allow"===r["element-action"],targetCountries:r["country-list"],triggerOnTargetCountries:"allow"===r["country-action"],adblockSettings:l,adserverDomain:c,adcashGlobalName:o,clientHintsQueryStr:d,collectiveZoneId:f,aggressivity:s.aggressivity,adsCapping:s.adsCapping,abTest:s.ab_test,recordPageView:v,actionCallback:t()(i=this.actionCallback).call(i,this),tagVersionSuffix:u,isLoadedAsPartOfLibrary:h,uniqueFingerprint:g});break;case"interstitial":this.#W=new Ie({zoneId:r.zoneId,isFullscreen:0===r.overlay,adblockSettings:l,adserverDomain:c,adcashGlobalName:o,clientHintsQueryStr:d,collectiveZoneId:f,aggressivity:s.aggressivity,adsCapping:s.adsCapping,abTest:s.ab_test,recordPageView:v,actionCallback:t()(n=this.actionCallback).call(n,this),tagVersionSuffix:u,isLoadedAsPartOfLibrary:h,uniqueFingerprint:g});break;default:this.#i.error(`ad format type not recognised from collective zone config. adformat.type: ${e}; czid: ${czid}`)}}this.localStorageService=new Ue(`atg_${f}`);const b=this.localStorageService.getState();b&b.adbExpiresAt>r()()&&this.#o.enableAdbMode(),b&&b.expiresAt>r()()?(this.#i.debug("previous session present:",b),this.#K=b.shownAdsCounter,this.#J=b.iterationCounter,this.#G=b.currentAdIndex,b.isInterstitialBeingShown?this.#X():(this.#Q=this.#Z[this.#G],this.#ee())):(this.#Q=this.#Z[this.#G],this.#ee())}actionCallback(e){this.#i.debug("ACTION CALLBACK type:",e),e===se?this.#Y=!1:this.#K++;const i=this.#Q.rotationInterval;var n;this.#te(),this.#ie(),e===ce?this.#i.debug("tabswap, move to next and store session"):(this.#i.debug(`show next ad after ${i} sec`),s()(t()(n=this.#ee).call(n,this),1e3*i))}#ie(){const e={shownAdsCounter:this.#K,iterationCounter:this.#J,currentAdIndex:this.#G,isInterstitialBeingShown:this.#Y,expiresAt:r()()+6e5,adbExpiresAt:this.#o.isAdbMode()?r()()+Oe:0};this.#i.debug("store session state",e),this.localStorageService.setState(e)}#ne(){if(!this.#Q.apply)return!1;switch(this.#Q.apply){case"1st":return!(0===this.#J);case"odd":return!(this.#J%2==1);case"even":return!(this.#J%2==0);default:return!1}}#te(){this.#G===this.#Z.length-1?(this.#G=0,this.#J++):this.#G++,this.#Q=this.#Z[this.#G],this.#i.debug("set current ad to next on list. current ad is set to:",this.#Q)}#X(){this.#i.debug("show next ad"),this.#te(),this.#ie(),this.#ee()}#ee(){if(this.#ne())return this.#i.debug(`skipping ad at index: ${this.#G} due to apply rule`),void this.#X();switch(this.#Q.type){case"interstitial":var e;if(this.#W.isCapped||this.#W.hasNoInventory)return void s()(t()(e=this.#X).call(e,this),1e3);this.#i.debug("showing interstitial"),this.#W.show(this.#K),this.#Y=!0,this.#K++,this.#ie();break;case"pop":var i;if(this.#q.isCapped||this.#q.hasNoInventory)return void s()(t()(i=this.#X).call(i,this),1e3);this.#i.debug("showing pop"),this.#q.show(this.#K);break;default:throw Error(`rotation list element type '${this.#Q.type}' not recognised`)}}},Ne=i(8333),He=i.n(Ne);const Me=function(){this.element===window?(this.divOverlay.style.width=`${window.innerWidth||document.body.clientWidth}px`,this.divOverlay.style.height=`${window.innerHeight||document.body.clientHeight}px`):(this.divOverlay.style.top=`${this.element.offsetTop}px`,this.divOverlay.style.left=`${this.element.offsetLeft}px`,this.divOverlay.style.width=`${this.element.offsetWidth}px`,this.divOverlay.style.height=`${this.element.offsetHeight}px`,this.divOverlay.style.zIndex=Se)};var je=class{observer=null;iframesToOverlays=[];videosToOverlays=[];anchorsToOverlays=[];fullOverlay=null;overlaysResizeIntervalChecker=null;adUrl="";isTabSwap=!1;modifyBodyObserver=!0;#i;#l;#E=!1;constructor(e,t,i,n,r,o){this.elementTargeting=e,this.desktopClickListener=t,this.mobileClickListener=i,this.#i=n,this.#l=r,this.#E=o}setOverlaysResizeIntervalChecker(){this.overlaysResizeIntervalChecker=ue()((()=>{var e,t,i;const n=(e,t)=>{try{const i=t.getBoundingClientRect();e.style.top=`${i.top+window.scrollY}px`,e.style.left=`${i.left+window.scrollX}px`,e.style.width=`${i.width}px`,e.style.height=`${i.height}px`}catch(e){}};A()(e=this.anchorsToOverlays).call(e,(e=>{let{overlay:t,anchor:i}=e;return n(t,i)})),A()(t=this.iframesToOverlays).call(t,(e=>{let{overlay:t,iframe:i}=e;return n(t,i)})),A()(i=this.videosToOverlays).call(i,(e=>{let{overlay:t,video:i}=e;return n(t,i)}))}),500)}clearOverlaysResizeIntervalChecker(){try{clearInterval(this.overlaysResizeIntervalChecker)}catch(e){}}#re(){const e=document.createElement("a");return e.setAttribute("href",this.adUrl),e.setAttribute("target","_blank"),e.setAttribute("rel","noopener noreferrer"),e.innerText="",e.addEventListener("click",(e=>{this.#i.debug("click on overlay is mobile no tabswap no capture"),e.stopPropagation(),this.mobileClickListener(e)})),e}#oe(){const e=document.createElement("div");return e.addEventListener("mousedown",(e=>{this.#i.debug("mousedown on overlay"),this.desktopClickListener(e)}),this.#E),e.addEventListener("click",(e=>{this.#i.debug("click on overlay"),this.desktopClickListener(e)}),this.#E),e}#P(e){let t;const i=e===document.body;if(t=Y&i&&!this.isTabSwap?this.#re():this.#oe(),i)t.id=ke,t.style.top="0px",t.style.left="0px",t.style.width=`${window.innerWidth||document.body.clientWidth}px`,t.style.height=`${window.innerHeight||document.body.clientHeight}px`,t.style.position="fixed";else{const i=e.getBoundingClientRect();t.style.top=`${i.top+window.scrollY}px`,t.style.left=`${i.left+window.scrollX}px`,t.style.width=`${i.width}px`,t.style.height=`${i.height}px`,t.style.position="absolute",t.setAttribute(xe,"")}return t.setAttribute(Ae,this.#l),t.style.zIndex=this.#se(e).toString(),t.style.backgroundColor="transparent",document.body.appendChild(t),t}attachVideoOverlays(){const e=document.querySelectorAll("video");for(let t=0;t<e.length;t++)this.elementTargeting.isActionAllowedOnElement(e[t])&(this.videosToOverlays.push({video:e[t],overlay:this.#P(e[t])}),this.#i.debug("VIDEO OVERLAY ATTACHED TO",this.videosToOverlays[this.videosToOverlays.length-1]))}attachIframeOverlays(){const e=document.querySelectorAll("iframe");for(let t=0;t<e.length;t++)this.elementTargeting.isActionAllowedOnElement(e[t])&(this.iframesToOverlays.push({iframe:e[t],overlay:this.#P(e[t])}),this.#i.debug("IFRAME OVERLAY ATTACHED TO",this.iframesToOverlays[this.iframesToOverlays.length-1]))}attachAnchorOverlays(){const e=document.querySelectorAll("a");for(let t=0;t<e.length;t++)this.elementTargeting.isActionAllowedOnElement(e[t])&this.anchorsToOverlays.push({anchor:e[t],overlay:this.#P(e[t])})}clearVideoOverlays(){for(let e=0;e<this.videosToOverlays.length;e++)this.videosToOverlays[e].overlay.parentNode.removeChild(this.videosToOverlays[e].overlay),this.videosToOverlays[e].overlay=null;this.videosToOverlays.length=0}clearAnchorOverlays(){for(let e=0;e<this.anchorsToOverlays.length;e++)this.anchorsToOverlays[e].overlay.parentNode.removeChild(this.anchorsToOverlays[e].overlay),this.anchorsToOverlays[e].overlay=null;this.anchorsToOverlays.length=0}clearIframeOverlays(){for(let e=0;e<this.iframesToOverlays.length;e++)this.iframesToOverlays[e].overlay.parentNode.removeChild(this.iframesToOverlays[e].overlay),this.iframesToOverlays[e].overlay=null;this.iframesToOverlays.length=0}attachFullOverlay=()=>{const e=this.#P(document.body);if(N||(T(window,"resize",t()(Me).call(Me,{divOverlay:e,element:window})),T(document.body,"resize",t()(Me).call(Me,{divOverlay:e,element:window}))),this.fullOverlay=e,this.modifyBodyObserver)try{this.#ae()}catch(e){this.#i.error(e)}};clearFullOverlay(){this.#i.debug("clear full overlay"),this.fullOverlay?(this.modifyBodyObserver&this.#ce(),N||(C(window,Me),C(document.body,Me)),this.fullOverlay.parentNode.removeChild(this.fullOverlay),this.fullOverlay=null):this.#i.debug("no overlay to clear")}reattachFullOverlay(){this.modifyBodyObserver=!1,this.clearFullOverlay(),this.attachFullOverlay(),this.modifyBodyObserver=!0}#se(e){if(e!==document.body&&this.elementTargeting.isPresent()&&!this.elementTargeting.shouldTriggerPopOnTargetClick){const t=window.getComputedStyle(e);let i=f()(t.zIndex,10);return He()(i)?i=1:i+=1,i}return Se}#ae(){this.observer=new MutationObserver((e=>{for(let t=0;t<e.length;t++){const i=e[t];for(let e=0;e<i.addedNodes.length;e++)if(i.addedNodes[e].style&f()(i.addedNodes[e].style.zIndex,10)>=1&&i.addedNodes[e].id!==ke&&!i.addedNodes[e].hasAttribute("dontfo")&&!i.addedNodes[e].hasAttribute(xe))return this.#i.debug("observed element",i.addedNodes[e],"with zIndex value larger or equal to our full body overlay. reattaching full body overlay"),void this.reattachFullOverlay()}})),this.observer.observe(document.body,{attributes:!1,childList:!0,subtree:!0})}#ce(){this.observer&&this.observer.disconnect(),this.observer=null}},De=class{targetElementsCssSelector=null;shouldTriggerPopOnTargetClick=!1;#le=!1;constructor(e,t,i){this.targetElementsCssSelector=e,this.shouldTriggerPopOnTargetClick=t,this.zoneId=i}isPresent(){return!!this.targetElementsCssSelector}preventClickOnInterstitialAndBanner(){this.#le=!0}isActionAllowedOnElement(e){let t=arguments.length>1&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(e.hasAttribute(Ae))return e.getAttribute(Ae)===this.zoneId;if(e.hasAttribute("doskip"))return"1"===e.getAttribute(Te)&!this.#le;0===t.length&(t=w()(document.querySelectorAll(Ee)));for(const i of t)if(i.contains(e))return"1"===e.getAttribute(Te)&!this.#le;if(this.isPresent()){0===i.length&(i=document.querySelectorAll(this.targetElementsCssSelector));for(let t=0;t<i.length;t++)if(e===i[t])return this.shouldTriggerPopOnTargetClick;return!this.shouldTriggerPopOnTargetClick}return!0}},_e=i(2243),Ve=i.n(_e),We=class{#t={};#i=null;#n=0;#r;#o;#s;constructor(e,t,i,n,r){this.#t=e,this.#i=i,this.#n=0,this.#r=t,this.#o=n,this.#s=r}render(e){let t=null;switch(e.type){case 1:this.#i.debug(`rendering INTERSTITIAL IFRAME (type 1) in ${this.#t.isOverlay?"OVERLAY":"FULLSCREEN"} mode`),t=this.#t.isOverlay?ge(e.url):be(e.url);break;case 3:this.#i.debug(`rendering INTERSTITIAL IMAGE (type 3) in ${this.#t.isOverlay?"OVERLAY":"FULLSCREEN"} mode`),t=this.#t.isOverlay?fe(e.url,e.ad.url,e.ad.width,e.ad.height):me(e.url,e.ad.url,e.ad.width,e.ad.height);break;case 4:if(e.isHtmlTemplate)return this.#i.debug("rendering INTERSTITIAL HTML CUSTOM (type 4)"),void this.#a(e);this.#i.debug(`rendering INTERSTITIAL HTML (type 4) in ${this.#t.isOverlay?"OVERLAY":"FULLSCREEN"} mode`),t=this.#t.isOverlay?pe(Te):ye(Te);break;default:return void this.#i.error(`no such type of interstitial: ${e.type}`)}const i=document.createElement("div");document.body.appendChild(i);const n=i.attachShadow({mode:"open"}),r=this.#t.isOverlay?he:ve;if(n.appendChild(r(this.#t.texts.goToButton,e.url,this.#c(),t.content,e.iurl)),4===e.type){const t=n.getElementById("creative_iframe");t.contentWindow.contents=e.html,t.src='javascript:window["contents"]'}if(!this.#t.disableCountdown&this.#t.moveTimerInsideButtonAfter>0){this.#n=this.#t.moveTimerInsideButtonAfter,n.getElementById("closeButton").innerHTML=this.#c();const e=ue()((()=>{this.#n--,n.getElementById("closeButton").innerHTML=this.#c(),0===this.#n&clearInterval(e)}),1e3)}n.getElementById("closeButton").addEventListener("click",(()=>{this.#n>0||(this.#i.debug("close button click. remove modal host, resize listener if present and do callback"),i.remove(),t.resizeFunc&&window.removeEventListener("resize",t.resizeFunc),this.#r())}))}#c(){let e=`${this.#t.texts.pleaseWait}: ${this.#n} ${this.#t.texts.timePlural}`;return 1===this.#n&(e=`${this.#t.texts.pleaseWait}: ${this.#n} ${this.#t.texts.timeSingle}`),0===this.#n&&(e=this.#t.disableCountdown?this.#t.texts.xLabel:this.#t.texts.skipAd),e}#a(e){const t=(new DOMParser).parseFromString(e.html,"text/html").querySelector("script"),i=document.createElement("script");i.style.zIndex="2147483646",t.src?i.setAttribute("src",t.src):i.innerText=t.innerText;const n=()=>{this.#i.debug("CT-CLICK"),fetch(e.link,{mode:"no-cors"}),C(document,"ct-click",n)},r=()=>{this.#i.debug("CT-CLOSE"),C(document,"ct-click",n),C(document,"ct-close",r),document.body.removeChild(i),this.#r()};T(document,"ct-click",n),T(document,"ct-close",r);let o=e.iurl;window[le]&(o+=`&utsid=${window[le]}`),i.onload=async()=>{try{await fetch(o.toString())}catch(e){return this.#i.debug(e),void(this.#s&&!this.#o.isAdbMode()&&(this.#i.debug("imp failed: try alt domain and path"),this.#o.enableAdbMode()))}document.dispatchEvent(new CustomEvent("impression-event"))},i.onerror=()=>{this.#i.debug("custom html script failed to load"),this.#r(se)},document.body.appendChild(i)}},qe=i(5103),Ze=i.n(qe);const Ge="#399afe";const Qe="inpageclick",Ke="inpageclose",Je="utsid-send";class Ye extends HTMLElement{#de;constructor(){super(),this._shadowRoot=this.attachShadow({mode:"open"}),this.click=e=>{e.stopPropagation();const t=new CustomEvent(Qe,{bubbles:!0});this.dispatchEvent(t)},this.close=e=>{e.stopPropagation();const t=new CustomEvent(Ke,{bubbles:!0});this.dispatchEvent(t)},this.missclick=()=>{document.dispatchEvent(new CustomEvent("in-page-missclick"))}}connectedCallback(){const e=document.querySelectorAll("in-page-message");let t=0,i="top";for(let i=0;i<e.length;i++)e[i].shadowRoot.childNodes[0]&e[i].shadowRoot.childNodes[0].offsetHeight&&(t+=e[i].shadowRoot.childNodes[0].offsetHeight);const n=f()(this.getAttribute("data-offset-top"),10),r=this.getAttribute("data-render-pos-desktop"),o=this.getAttribute("data-render-pos-mobile");n?t+=n:i=Y?o:r;const s=(e=>{const t=document.createElement("div");t.id=`note-${e.id}`,t.style[e.position]=`${e.offset}px`,t.style.fontFamily='-apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif',t.style.fontWeight="400",t.style.fontSize="16px",t.style.lineHeight="1.3",t.style.position="fixed",t.style.right="0",t.style.letterSpacing="-0.31em",t.style.textRendering="optimizespeed",t.style.display="flex",t.style.webkitBoxOrient="horizontal",t.style.webkitBoxDirection="normal",t.style.msFlexFlow="row wrap",t.style.alignContent="flex-start",t.style.alignItems="center",t.style.cursor="pointer",t.style.transition="padding-right 0.1s, top 0.3s",t.style.overflow="hidden",t.style.zIndex="2147483642",t.style.wordWrap="break-word",t.style.width="380px",t.style.paddingTop="20px";const i=()=>{window.innerWidth<380?t.style.width="100%":t.style.width="380px"};i();const n=document.createElement("div");n.style.margin="5px",n.style.borderRadius="55px",n.style.position="relative",n.style.background=Ge,n.style.color="#ffffff",n.style.width="70%",n.style.textAlign="center",n.style.height="100px",n.style.justifyContent="center",n.style.display="flex",n.style.alignItems="center";const r=document.createElement("p");r.style.width="90%",r.style.padding="2%",r.style.fontSize="0.9em",r.style.display="inline-block",r.style.letterSpacing="normal",r.style.wordSpacing="normal",r.style.verticalAlign="middle",r.style.textRendering="auto",r.style.textAlign="center";const o=document.createElement("b");o.textContent=e.dataTitle;const s=document.createElement("br"),a=document.createTextNode(e.dataDescription),c=document.createElement("img");c.classList.add("graph"),c.src=e.dataIcon,c.alt="graph",c.style.width="76px",c.style.height="76px",c.style.boxSizing="border-box",c.style.borderRadius="50%",c.style.position="relative",c.style.marginLeft="2%",c.style.border=`4px solid ${Ge}`,c.style.display="inline-block",c.style.letterSpacing="normal",c.style.wordSpacing="normal",c.style.verticalAlign="middle",c.style.textRendering="auto",c.style.textAlign="center";const l=document.createElement("div");l.id=`missclick-${e.id}`,l.style.right="0",l.style.top="0",l.style.height="100%",l.style.width=`${e.widthOfMissclickArea}px`,l.style.zIndex="2",l.style.position="absolute",l.style.alignItems="start",l.style.justifyContent="center",l.style.display="flex";const d=document.createElement("div");return d.id=`close-${e.id}`,d.innerHTML="",d.style.fontSize="20px",d.style.marginTop="10px",d.style.zIndex="23",d.style.display="inline-block",d.style.width="24px",d.style.height="24px",d.style.background="transparent",d.style.textAlign="center",d.style.color="#a6a0a7",d.style.letterSpacing="normal",d.style.wordSpacing="normal",d.style.verticalAlign="middle",d.style.textRendering="auto",d.onmouseover=()=>{d.style.background="#a0a0ff"},d.onmouseout=()=>{d.style.background="transparent"},r.appendChild(o),r.appendChild(s),r.appendChild(a),n.appendChild(r),l.appendChild(d),t.appendChild(n),t.appendChild(c),t.appendChild(l),{content:t,resizeFunc:i}})({id:this.getAttribute("id"),position:i,offset:t,dataTitle:this.getAttribute("data-title"),dataDescription:this.getAttribute("data-description"),dataIcon:this.getAttribute("data-icon"),notePaddingRightStyleRaw:"",widthOfMissclickArea:50});this.shadowRoot.appendChild(s.content),this.#de=s.resizeFunc;const a=this.shadowRoot.getElementById(`note-${this.getAttribute("id")}`),c=this.shadowRoot.getElementById(`close-${this.getAttribute("id")}`),l=this.shadowRoot.getElementById(`missclick-${this.getAttribute("id")}`);if(this.hasAttribute("data-imp-link")){let e=this.getAttribute("data-imp-link");window[Je]&(e+=`&utsid=${window[Je]}`),e+=`&cbpage=${encodeURIComponent(O())}`,e+=`&cbref=${encodeURIComponent(F())}`;const t=document.createElement("img");t.src=e.toString(),t.style.display="none",t.width=0,t.height=0,a.appendChild(t)}T(a,"click",this.click),T(c,"click",this.close),T(l,"click",this.missclick)}resize(){this.#de&this.#de()}}var Xe=Ye,et=i(111),tt=i.n(et),it=i(8607),nt=i.n(it),rt=i(3128),ot=i.n(rt),st=i(8075),at=i.n(st),ct=i(8462),lt=i.n(ct),dt=i(653),ut=i.n(dt),ht=i(7950),gt=i.n(ht);const ft=e=>"boolean"==typeof e,pt=e=>lt()(e),vt=e=>"[object String]"===Object.prototype.toString.call(e),bt=e=>{var t;return gt()(t=["top","bottom"]).call(t,e)};const mt=()=>Math.round((new Date).getTime()/1e3);var yt=e=>{const t=new a("_engagement"),i="utsid-send";let n,o=0,c=!1,l=!1,d={clientHints:{},isScrollable:0,totalClicks:0,sessionLength:0,ippMissclicks:0,visible:0,caught:0,lastevent:0,isFullscreen:0,isTabFocused:0,eventImps:0,retryCounts:0,isScrolled:0,isMouseMoved:0,pagePercentageSeen:0,belowTheFoldSeen:0,touchEnd:0,touchMove:0,clicksByType:{idle:0,input:0,video:0,button:0,link:0,img:0},browsingTopics:[],ufp:ie()},u=R(),g=mt();function f(){var i,n;0===d.isFullscreen&(d.isFullscreen=document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement?1:0),d.isTabFocused=document.hidden||document.mozHidden||document.webkitHidden?0:1,d.sessionStartTime=g,d.sessionId=u,d.sessionLength=mt()-g,d.timeZoneOffset=(new Date).getTimezoneOffset(),d.zones=[],e&&(d.zones=e.getZoneIds()),d.pUrl=encodeURIComponent(O()),d.pReferrer=encodeURIComponent((()=>{const e=document.referrer;return e?P(e):""})()),d.pTitle=encodeURI(z()),d.pDescription=encodeURIComponent(U("description",t)),d.pKeywords=encodeURIComponent(U("keywords",t)),d.pHasIframes=(()=>{const e=document.getElementsByTagName("iframe");return e.length?e.length:0})(),d.pWidth=Math.ceil(window.scrollWidth||document.body.scrollWidth),d.pHeight=Math.ceil(window.scrollHeight||document.body.scrollHeight),d.vWidth=Math.ceil(window.innerWidth||document.body.clientWidth),d.vHeight=Math.ceil(window.innerHeight||document.body.clientHeight),d.inIframe=E(),sessionStorage.getItem("template")&(d.ippTemplate=sessionStorage.getItem("template")),d.visible=(i=d.vWidth,n=d.vHeight,E()&&(i<10||n<10)?0:1),d.caught=(()=>{let e=0;if(E())try{window.top.location.href}catch(t){e=1}return e})(),d.isScrollable=((e,t)=>{if(e>t){const i=.05;return e-t>Math.ceil(t*i)?1:0}return 0})(d.pHeight,d.vHeight)}function p(){t.debug("Touch move detected."),d.touchMove++,l=!0}function v(){1!==d.isMouseMoved&(t.debug("Mouse move tracked"),d.isMouseMoved=1,l=!0)}function b(){t.debug("Touch end detected."),d.touchEnd++,l=!0,m()}function m(){if(t.debug("checkScrolling()"),d.pHeight<=d.vHeight)return d.pagePercentageSeen=100,void(d.belowTheFoldSeen=100);var e=Math.ceil(window.scrollTop||document.body.scrollTop),i=Math.ceil((e+d.vHeight)/d.pHeight*100);i>100&(i=100),i!=d.pagePercentageSeen&&(t.debug("Scroll event detected."),d.isScrolled=1,l=!0),i>d.pagePercentageSeen&&(t.debug("Page percentage seen updated."),d.pagePercentageSeen=i,l=!0);var n=Math.ceil(e/(d.pHeight-d.vHeight)*100);n>100&(n=100),n>d.belowTheFoldSeen&&(t.debug("Bellow the fold percentage seen updated."),d.belowTheFoldSeen=n,l=!0)}function y(){d.ippMissclicks++,l=!0}function w(e){t.debug("Click tracked"),d.totalClicks++;var i=e.target,n=null;do{null!==n&""!==n||(n=S(i)),i=i.parentElement}while(i&&"body"!==i.nodeName.toLowerCase()&&"document"!==i.nodeName.toLowerCase());null===n&(n="idle"),d.clicksByType[n]++,l=!0}function S(e){var t=null,i=["a","video","button","input","textarea","img","select"];return-1!==h()(i).call(i,e.nodeName.toLowerCase())&("a"===(t=e.nodeName.toLowerCase())?t="link":"textarea"!==t&&"select"!==t||(t="input")),t}function k(){t.debug("Impression tracked"),d.eventImps++}function x(){t.debug("Retry tracked!"),d.retryCounts++}function A(){var e="//pubtrky.com/ut/hb.php?cb="+Math.random();return e+="&v=1",t.debug("Target Url: "+e.toString()),e}function T(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!c){if(c=!0,f(),e&(d.lastevent=1),t.isDebugEnabled&&t.debug("send payload:",JSON.parse(Fe()(d))),"navigator"in window&&"sendBeacon"in window.navigator&&void 0!==navigator.sendBeacon&&void 0!==Blob){d.sentTimestamp=r()();var i=new Blob([Fe()(d)],{type:"text/plain; charset=UTF-8"});navigator.sendBeacon(A(),i)}else{var n="XMLHttpRequest"in window?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");n.open("POST",A(),!0),n.setRequestHeader("Content-Type","text/plain;charset=UTF-8");try{d.sentTimestamp=r()(),n.send(Fe()(d))}catch(e){}}d.lastevent=0,c=!1}}function C(){t.debug("visibility state is",document.visibilityState),"hidden"===document.visibilityState&l?(clearInterval(n),T(),l=!1):"visible"===document.visibilityState&&(n=ue()($,6e4))}function L(){var e=new CustomEvent(i,{detail:{issued:"UT",data:{utsid:u}}});document.dispatchEvent(e)}function $(){if(d.sessionLength=mt()-g,d.sessionLength>=7200)return t.debug("Session limit reached! Send last payload and tear down"),T(),clearInterval(n),t.debug("detaching behavior listeners"),document.removeEventListener("click",w,!1),document.removeEventListener("mousemove",v,!1),document.removeEventListener("scroll",m,!1),document.removeEventListener("in-page-missclick",y,!1),document.removeEventListener("impression-event",k,!1),document.removeEventListener("impression-retry-event",x,!1),document.removeEventListener("touchend",b,!1),document.removeEventListener("touchmove",p,!1),document.removeEventListener("touchcancel",m,!1),document.removeEventListener("visibilitychange",C),void window.removeEventListener("beforeunload",T);0!==o&1!==o&&5!==o&&10!==o&&o%30!=0||T(),o++}!async function e(){if("complete"===document.readyState||"interactive"===document.readyState)return d.clientHints=await I(t,true),d.browsingTopics=await async function(){let e=[];if("browsingTopics"in document&document.featurePolicy.allowsFeature("browsing-topics"))try{e=await document.browsingTopics(),t.debug("document.browsingTopics() return value:",e)}catch(e){t.debug("Error calling document.browsingTopics(): ",e)}return e}(),"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?(document.addEventListener("touchend",b,!1),document.addEventListener("touchmove",p,!1),document.addEventListener("touchcancel",m,!1)):(document.addEventListener("mousemove",v,!1),document.addEventListener("scroll",m,!1)),document.addEventListener("click",w,!1),document.addEventListener("impression-event",k,!1),document.addEventListener("impression-retry-event",x,!1),document.addEventListener("in-page-missclick",y,!1),f(),m(),0===o&&$(),n=ue()($,6e4),window[i]=u,L(),s()(L,2e4),document.addEventListener("visibilitychange",C),void window.addEventListener("beforeunload",(()=>{T(!0)}));s()(e,100)}()};const wt="x4G9Tq2Kw6R7v1Dy3P0B5N8Lc9M2zF",St="ZpQw9XkLmN8c3vR3",kt="adblock-settings",xt=(()=>{let e=document.currentScript;return e||(e=document.getElementById("aclib")),e||(e=document.getElementById("adcash-lib")),e})();let At=null;var Tt=class{#ue;#he={pop:!1,autoTag:!1,inPagePush:!1,interstitial:!1,videoSlider:!1};#ge;#b;#fe=new(at());#pe=new(at());#i;#ve=!1;#be=!1;#me={mousedown:[],click:[],touchstart:[]};#ye={mousedown:[],scroll:[],click:[],touchstart:[]};#v="youradexchange.com";#S="61.2";#s=null;#we="aclib";#Se;#ke=!1;isShowingPop=!1;#T;#xe=!1;#Ae={};constructor(){let e=arguments.length>0&void 0!==arguments[0]?arguments[0]:{};if(At)return At;At=this;let t="aclib";if(e.classes&(this.#Ae=e.classes,t="aclib_adbl"),this.#i=new a(t),window.addEventListener("mousedown",(e=>{var t;this.#i.debug("win mousedown with capture: in"),A()(t=this.#me.mousedown).call(t,(t=>{this.#i.debug("win mousedown with capture: calling observer"),t.callback(e)}))}),!0),window.addEventListener("mousedown",(e=>{var t;this.#i.debug("win mousedown: in"),A()(t=this.#ye.mousedown).call(t,(t=>{this.#i.debug("win mousedown: calling observer"),t.callback(e)}))}),!1),window.addEventListener("click",(e=>{var t;this.#i.debug("win click with capture: in"),A()(t=this.#me.click).call(t,(t=>{this.#i.debug("win click with capture: calling observer"),t.callback(e)}))}),!0),window.addEventListener("click",(e=>{var t;this.#i.debug("win click: in"),A()(t=this.#ye.click).call(t,(t=>{this.#i.debug("win click: calling observer"),t.callback(e)}))}),!1),document.addEventListener("mousedown",(e=>{var t;this.#i.debug("doc mousedown: in"),A()(t=this.#ye.mousedown).call(t,(t=>{this.#i.debug("doc mousedown: calling observer"),t.callback(e)}))})),document.addEventListener("mousedown",(e=>{var t;this.#i.debug("doc mousedown with capture: in"),A()(t=this.#me.mousedown).call(t,(t=>{this.#i.debug("doc mousedown with capture: calling observer"),t.callback(e)}))}),!0),window.addEventListener("scroll",(e=>{var t;A()(t=this.#ye.scroll).call(t,(t=>{t.callback(e)}))})),document.addEventListener("click",(e=>{var t;this.#i.debug("doc click: in"),A()(t=this.#ye.click).call(t,(t=>{this.#i.debug("doc click: calling observer"),t.callback(e)}))})),document.addEventListener("click",(e=>{var t;this.#i.debug("doc click with capture: in"),A()(t=this.#me.click).call(t,(t=>{this.#i.debug("doc click with capture: calling observer"),t.callback(e)}))}),!0),this.getClientHints(),this.#Se=R(),this.#T=ie(),this.#i.debug("init adcash lib. listeners attached. ready to publish"),this.#i.debug("is mobile device:",Y),window[wt]&(this.#s=JSON.parse(Fe()(window[wt])),this.#ue=this.#s.cdnDomain,delete window[wt]),window[St]&&(this.#s=JSON.parse(function(e){var t;let i=arguments.length>1&void 0!==arguments[1]?arguments[1]:"xR9tB2pL6q7MwVe";const n=atob(e);return k()(t=[...n]).call(t,((e,t)=>String.fromCharCode(e.charCodeAt(0)^i.charCodeAt(t%i.length)))).("")}(window[St])),this.#ue=this.#s.cdnDomain,delete window[St]),this.#s||(this.#ue=new(v())(xt.src).host,xt.hasAttribute(kt)&(this.#s=JSON.parse(xt.getAttribute(kt)),xt.removeAttribute(kt))),this.#s&&this.#i.debug("adblock settings:",this.#s),xt.getAttribute("data-preview"))return this.#i.debug("preview mode"),void(this.#xe=!0);this.#Te(),this.#Ce(),this.#Ie()}async getClientHints(e){if(void 0===this.#ge){this.#ge=await I(this.#i,!0);let e="";for(let t in this.#ge)e+=`&${t}=${this.#ge[t]}`;this.#b=e}return e?this.#ge:this.#b}getCdnDomain(){return this.#ue}getSesionRandomString(){return this.#Se}enableAdbMode(){this.#i.debug("enable adb mode"),this.#ke=!0}isAdbMode(){return this.#ke}subscribe(e,t,i){if(!this.#me[e]||!this.#ye[e])throw new Error(`${e} is not observable!`);i?this.#me[e].push(t):this.#ye[e].push(t)}unsubscribe(e,t,i){if(!this.#me[e]||!this.#ye[e])throw new Error(`${e} is not observable!`);if(i)for(let i=0;i<this.#me[e].length;i++){var n;this.#me[e][i].zoneId===t&Ze()(n=this.#me[e]).call(n,i,1)}else for(let i=0;i<this.#ye[e].length;i++){var r;this.#ye[e][i].zoneId===t&Ze()(r=this.#ye[e]).call(r,i,1)}}#Ie(){var e;if(document.body){const e=document.createElement("a");e.style.display="none",e.style.visibility="hidden",e.style.position="relative",e.style.left="-1000px",e.style.top="-1000px";let t=this.#v;return this.#s&(t=this.#s.adserverDomain),e.href=`${location.protocol}//${t}/ad/visit.php?al=1`,void document.body.appendChild(e)}s()(t()(e=this.#Ie).call(e,this),100)}#Ce(){yt(At)}#Te(){var e;if(document.head){let e=new(at())([this.#ue,this.#v]);return this.#s&e.add(this.#s.adserverDomain),e=w()(e),this.#i.debug("prefetch domains:",e),void A()(e).call(e,(e=>{const t=document.createElement("link");t.rel="dns-prefetch",t.href=`//${e}`,document.head.appendChild(t)}))}s()(t()(e=this.#Te).call(e,this),100)}getZoneIds(){return w()(this.#fe)}runPop(e){const{zoneId:t,delay:i,targetElementsCssSelector:n,triggerOnTargetElementsClick:r,targetCountries:o,triggerOnTargetCountries:s,sub1:a,sub2:c,publisherUrl:l,storeUrl:d,c1:u,c2:h,c3:g,pubHash:f,pubClickId:p,pubValue:v,fallbackOn:b,isAutoTag:m,collectiveZoneId:y,aggressivity:w,recordPageView:S,linkedZoneId:k,abTest:x,tagVersionSuffix:A}=e;if(!t)throw new Error("mandatory zoneId is not provided!");if(!vt(t))throw new Error("zoneId is not a string!");if(void 0!==i&(!pt(i)||i<0))throw new Error("delay is not an integer or is less than zero");if(void 0!==n){if(!vt(n))throw new Error("targetElementsCssSelector is not a string");if(!(e=>{try{document.createDocumentFragment().querySelector(e)}catch{return!1}return!0})(n))throw new Error("targetElementsCssSelector is not a valid css selector");if(!ft(r))throw new Error("triggerOnTargetElementsClick is not a boolean")}if(void 0!==o){if(!(e=>{if(!ut()(e))return!1;if(0===e.length)return!1;for(let t=0;t<e.length;t++)if("string"!=typeof e[t]||!/^[A-Z]{2}$/.test(e[t]))return!1;return!0})(o))throw new Error("targetCountries is not valid");if(!ft(s))throw new Error("triggerOnTargetCountries is not a boolean")}if(this.#pe.has(t))return void this.#i.error(`zoneId ${t} already loaded`);this.#pe.add(t);const T={adcashGlobalName:this.#we,zoneId:t,windowOpenTimeout:100,delay:i,targetElementsCssSelector:n,triggerOnTargetElementsClick:r,targetCountries:o,triggerOnTargetCountries:s,adserverDomain:this.#v,adblockSettings:this.#s,uniqueFingerprint:this.#T,sub1:a,sub2:c,publisherUrl:l,storeUrl:d,c1:u,c2:h,c3:g,pubHash:f,pubClickId:p,pubValue:v,fallbackOn:b,isAutoTag:m,collectiveZoneId:y,aggressivity:w,recordPageView:S,linkedZoneId:k,abTest:x,tagVersionSuffix:A};if(this.#Ae.PopUnder)return T.isLoadedAsPartOfLibrary=!0,void new this.#Ae.PopUnder(T);if(this.#he.pop||this.#ve){if(window.PopUnder)return this.#fe.add(T.zoneId),void new PopUnder(T);const e=ue()((()=>{window.PopUnder&(this.#fe.add(T.zoneId),new PopUnder(T),clearInterval(e))}),100)}else{this.#i.debug("loading suv5 script on page"),this.#ve=!0;var C=document.createElement("script");C.type="text/javascript",this.#s?C.src=`${location.protocol}//${this.#ue}${this.#s.suv5.cdnPath}`:C.src=`${location.protocol}//${this.#ue}/script/suv5.js`,C.onload=()=>{this.#he.pop=!0,this.#ve=!1,m?this.#fe.add(y):this.#fe.add(T.zoneId),new PopUnder(T)},C.onerror=()=>{this.#he.pop=!1,this.#ve=!1,this.#i.error(`failed loading ${C.src}`)},document.head.appendChild(C)}}runInPagePush(e){if(this.#he.inPagePush)return void this.#i.error("in-page push zone already loaded on page");this.#he.inPagePush=!0;const{zoneId:t,delay:i,maxAds:n,renderPosDesktop:r,renderPosMobile:o,offsetTop:s,sub1:a,isAutoTag:c,collectiveZoneId:l,linkedZoneId:d,aggressivity:u,recordPageView:h,abTest:g,tagVersionSuffix:f}=e;let{refreshRate:p}=e;if(!t)throw new Error("mandatory zoneId is not provided!");if(!vt(t))throw new Error("zoneId is not a string!");if(void 0!==p&(!pt(p)||p<0))throw new Error("refreshRate is not an integer or is less than zero");if(void 0!==i&(!pt(i)||i<0))throw new Error("delay is not an integer or is less than zero");if(void 0!==n&(!pt(n)||n<1))throw new Error("maxAds is not an integer or is less than one");if(void 0!==r&!bt(r))throw new Error("renderPosDesktop is not valid");if(void 0!==o&!bt(o))throw new Error("renderPosMobile is not valid");if(void 0!==s&(!pt(s)||s<0))throw new Error("offsetTop is not an integer or is less than zero");this.#i.debug("loading in-page push on page"),c?this.#fe.add(l):this.#fe.add(t),void 0!==p&p>0&&p<10&&(p<5?p*=60:p=30),this.#i.debug("ipp rr set to",p);const v={zoneId:t,refreshRate:p??60,delay:i??0,maxAds:n??1,renderPosDesktop:r??"top",renderPosMobile:o??"top",offsetTop:s??0,sub1:a,isAutoTag:c,collectiveZoneId:l,linkedZoneId:d,aggressivity:u,recordPageView:h,abTest:g,tagVersionSuffix:f,adserverDomain:this.#v,adblockSettings:this.#s,adcashGlobalName:this.#we,isLoadedAsPartOfLibrary:!1,uniqueFingerprint:this.#T};if(this.#Ae.InPagePush)return v.isLoadedAsPartOfLibrary=!0,void new this.#Ae.InPagePush(v);if(window.InPagePush)new window.InPagePush(v);else{const e=document.createElement("script");e.type="text/javascript",e.src=`${window.location.protocol}//${this.#ue}/script/inpagepush.js`,e.setAttribute("nipp","1"),e.onload=()=>{new window.InPagePush(v)},e.onerror=()=>{this.#i.error(`failed loading ${e.src}`)},document.head.appendChild(e)}}runBanner(e){const{zoneId:t,width:i,height:n,renderIn:r,sub1:o,currentScript:s}=e;if(!t)throw new Error("mandatory zoneId is not provided!");if(!vt(t))throw new Error("zoneId is not a string!");if(void 0!==i&!pt(i))throw new Error("Banner width is not an integer");if(void 0!==n&!pt(n))throw new Error("Banner height is not an integer");let a;this.#i.debug("loading banner on page",t),r||(document.currentScript&document.currentScript.parentElement&&(a=document.currentScript.parentElement),s&&(a=s.parentElement));const c={zoneId:t,width:i,height:n,renderIn:r,currentElement:a,sub1:o,adcashGlobalName:this.#we,uniqueFingerprint:this.#T,adblockSettings:this.#s};if(this.#Ae.Banner)new this.#Ae.Banner(c);else if(this.#he.banner||this.#be){if(window.Banner)return this.#fe.add(c.zoneId),void new Banner(c);const e=ue()((()=>{window.Banner&(this.#fe.add(c.zoneId),new Banner(c),clearInterval(e))}),100)}else{this.#be=!0;var l=document.createElement("script");l.type="text/javascript",l.src=`${location.protocol}//${this.#ue}/script/banner.js`,l.onload=()=>{this.#he.banner=!0,this.#be=!1,this.#fe.add(c.zoneId),new Banner(c)},l.onerror=()=>{this.#he.banner=!1,this.#be=!1,this.#i.error(`failed loading ${l.src}`)},l.setAttribute("data-adel","ban"),l.setAttribute("a-lib","1"),document.head.appendChild(l)}}runInterstitial(e){if(this.#he.interstitial)return void this.#i.error("interstitial zone already loaded on page");this.#he.interstitial=!0;const{zoneId:t,sub1:i,isAutoTag:n,collectiveZoneId:r,linkedZoneId:o,aggressivity:s,recordPageView:a,abTest:c,tagVersionSuffix:l}=e;if(!t)throw new Error("mandatory zoneId is not provided!");if(!vt(t))throw new Error("zoneId is not a string!");this.#i.debug("loading interstitial on page");const d={zoneId:t,sub1:i,isAutoTag:n,collectiveZoneId:r,linkedZoneId:o,aggressivity:s,recordPageView:a,abTest:c,tagVersionSuffix:l,adcashGlobalName:this.#we,adserverDomain:this.#v,adblockSettings:this.#s,uniqueFingerprint:this.#T,isLoadedAsPartOfLibrary:!1};if(this.#fe.add(t),this.#Ae.Interstitial)return d.isLoadedAsPartOfLibrary=!0,void new this.#Ae.Interstitial(d);if(window.Interstitial)new Interstitial(d);else{const e=document.createElement("script");e.type="text/javascript",e.setAttribute("a-lib","1"),this.#s?e.src=`${location.protocol}//${this.#ue}${this.#s.intrn.cdnPath}`:e.src=`${location.protocol}//${this.#ue}/script/interstitial.js`,e.onload=()=>{new Interstitial(d)},e.onerror=()=>{this.#i.error(`failed loading ${e.src}`)},document.head.appendChild(e)}}async#Oe(e){let t=!(arguments.length>1&void 0!==arguments[1])||arguments[1];this.#i.debug("fetch collective zone config");let i=`${window.location.protocol}//${this.#v}/ad/czcf.php`;if(this.isAdbMode()){const e=`/${ee("abcdefgh0123456789")}`;i=`${window.location.protocol}//${this.#s.adserverDomain}${e}`}i+=`?cz=${e}`,i+=`&atv=${this.#S}`;const n=await this.getClientHints();let r;n&(i+=n),this.isAdbMode()&&(i+="&sadbl=2",i+="&fmt=atg",i=te(i)),this.#i.debug("collective zone config url: ",i);try{r=await fetch(i)}catch(i){return this.#i.error(i),this.#s&t?(this.#i.debug("collective zone config fetch failed: try alt domain and path"),this.enableAdbMode(),this.#Oe(e,!1)):null}return 200!==r.status?null:(r=await r.json(),oe(r))}async runAutoTag(e){if(this.#he.autoTag)return void this.#i.error("autotag zone already loaded on page");this.#he.autoTag=!0;const t=e.zoneId;if(!t)throw new Error("mandatory zoneId is not provided!");if(!vt(t))throw new Error("zoneId is not a string!");const i=await this.#Oe(t);if(!i)return void this.#i.error(`failed to fetch collective zone config! czid: ${t}`);if(this.#i.debug("collective zone config:",i),!i.rotationList){this.#i.debug("running in NORMAL MODE (no rotation)");const n=i.indexedFormats;let r=!0;for(const o in n){switch(o){case"suv4":case"pop":this.runPop({zoneId:n[o].zoneId.toString(),targetElementsCssSelector:n[o]["element-list"],triggerOnTargetElementsClick:"allow"===n[o]["element-action"],targetCountries:n[o]["country-list"],triggerOnTargetCountries:"allow"===n[o]["country-action"],isAutoTag:!0,collectiveZoneId:t,aggressivity:i.aggressivity,abTest:i.ab_test,recordPageView:r,tagVersionSuffix:e.tagVersionSuffix});break;case"interstitial":this.runInterstitial({zoneId:n[o].zoneId.toString(),isAutoTag:!0,collectiveZoneId:t,aggressivity:i.aggressivity,abTest:i.ab_test,recordPageView:r,tagVersionSuffix:e.tagVersionSuffix});break;case"ippg":this.runInPagePush({zoneId:n[o].zoneId.toString(),refreshRate:n[o].rr,delay:n[o].d,maxAds:n[o].mads,renderPosDesktop:n[o]["render-pos-desktop"],renderPosMobile:n[o]["render-pos-mobile"],offsetTop:n[o]["offset-top"],isAutoTag:!0,collectiveZoneId:t,aggressivity:i.aggressivity,abTest:i.ab_test,recordPageView:r,tagVersionSuffix:e.tagVersionSuffix});break;default:this.#i.error(`ad format type not recognised from collective zone config. adformat.type: ${o}; czid: ${t}`)}r=!1}return}this.#i.debug("running in ROTATION MODE (rotation present)");const n={adcashGlobalName:this.#we,collectiveZoneConfig:i,adserverDomain:this.#v,adblockSettings:this.#s,clientHintsQueryStr:this.#b,tagVersionSuffix:e.tagVersionSuffix,isLoadedAsPartOfLibrary:!1,uniqueFingerprint:this.#T};if(this.#Ae.AutoTagRotation)return this.#fe.add(t),n.isLoadedAsPartOfLibrary=!0,void new this.#Ae.AutoTagRotation(n);this.#i.debug("loading autotag rotation script on page");const r=document.createElement("script");r.type="text/javascript",this.#s?r.src=`${location.protocol}//${this.#ue}${this.#s.atagv2.cdnPath}`:r.src=`${location.protocol}//${this.#ue}/script/atagv2.js`,r.onload=()=>{this.#fe.add(t),new Be(n)},r.onerror=()=>{this.#i.error(`failed loading ${r.src}`)},document.head.appendChild(r)}runVideoSlider(e){if(this.#he.videoSlider)return void this.#i.error("videoslider zone already loaded on page");this.#he.videoSlider=!0;const{zoneId:t,sub1:i,vastXml:n,useAlternative:r}=e;if(!t)throw new Error("mandatory zoneId is not provided!");if(!vt(t))throw new Error("zoneId is not a string!");const o={zoneId:t,sub1:i,adserverDomain:this.#v,adcashGlobalName:this.#we,uniqueFingerprint:this.#T,isPreviewMode:this.#xe,useAlternative:r,vastXml:n};if(window.VideoSlider)new VideoSlider(o);else{const e=document.createElement("script");e.type="text/javascript",e.src=r?`${window.location.protocol}//${this.#ue}/script/videoSliderAlt.js`:`${window.location.protocol}//${this.#ue}/script/videoSlider.js`,e.onload=()=>{this.#fe.add(t),new VideoSlider(o)},e.onerror=()=>{this.#i.error(`failed loading ${e.src}`)},document.head.appendChild(e)}}};const Ct=new a("aclib_adblock_index");window.Adcash?Ct.debug("lib already on page. exit"):(Ct.debug("load lib on page"),function(){var e;const t={aclib:new Tt(arguments.length>0&void 0!==arguments[0]?arguments[0]:{}),Adcash:Tt,AtcshAltNm:Tt};A()(e=tt()(t)).call(e,(e=>{ot()(window,e,{value:t[e]})}))}({classes:{AutoTagRotation:Be,PopUnder:class{#o;#y=null;#t={};#R=!1;#Ee=!1;#Pe=!1;#L;#m=!1;#E=!0;#i;#S="61.2";#$=null;#Re=12;#x=!1;constructor(e){var i,n;this.#i=new a(`suv5_${e.zoneId}`),this.#o=window[e.adcashGlobalName],e.tagVersionSuffix&(this.#S+=e.tagVersionSuffix),this.#i.debug("tag version:",this.#S),this.#i.debug("init pop with config:",e),this.#t=e,this.elementTargeting=new De(this.#t.targetElementsCssSelector,this.#t.triggerOnTargetElementsClick,this.#t.zoneId),!Y||this.elementTargeting.isPresent()||this.#t.linkedZoneId||(this.#E=!1),this.#i.debug("useCapture:",this.#E),this.overlays=new je(this.elementTargeting,t()(i=this.#z).call(i,this),t()(n=this.#Le).call(n,this),this.#i,this.#t.zoneId,this.#E),this.#B(),this.localStorage=new Ue(`suv5_${e.zoneId}_state`);const o=this.localStorage.getState();o&o.adbExpiresAt>r()()&&this.#o.enableAdbMode();const c=r()();if(o&o.renderAfterTimestamp>c){var l;const e=o.renderAfterTimestamp-c;this.#i.debug(`previous state present. bid after ${e/1e3} sec`),s()(t()(l=this.#$e).call(l,this),e)}else this.#$e()}async#C(){const e=await this.#o.getClientHints(!1);let t=`${window.location.protocol}//${this.#t.adserverDomain}/script/suurl5.php`;if(this.#t.adblockSettings&this.#o.isAdbMode()){const{adserverDomain:e}=this.#t.adblockSettings,i=`/${ee("abcdefgh0123456789")}`;t=`${window.location.protocol}//${e}${i}`}if(t+=`?r=${this.#t.zoneId}`,this.#m&(t+="&rbd=1"),this.#t.targetCountries){const e=this.#t.targetCountries.(",");this.#t.triggerOnTargetCountries?t+="&allowed_countries="+encodeURIComponent(e):t+="&excluded_countries="+encodeURIComponent(e)}return t=t+e+"&cbur="+Math.random()+"&cbiframe="+E()+"&cbWidth="+L()+"&cbHeight="+$()+"&cbtitle="+encodeURIComponent(z())+"&cbpage="+encodeURIComponent(O())+"&cbref="+encodeURIComponent(F())+"&cbdescription="+encodeURIComponent(U("description"))+"&cbkeywords="+encodeURIComponent(U("keywords"))+"&cbcdn="+encodeURIComponent(this.#o.getCdnDomain())+"&ufp="+encodeURIComponent(this.#t.uniqueFingerprint)+"&ts="+r()()+"&srs="+this.#o.getSesionRandomString()+"&atv="+this.#S,this.#t.sub1&&(t+=`&sub1=${encodeURIComponent(this.#t.sub1)}`),this.#t.sub2&&(t+=`&sub2=${encodeURIComponent(this.#t.sub2)}`),this.#t.publisherUrl&&(t+=`&pu=${encodeURIComponent(this.#t.publisherUrl)}`),this.#t.storeUrl&&(t+=`&storeurl=${encodeURIComponent(this.#t.storeUrl)}`),this.#t.c1&&(t+=`&c1=${encodeURIComponent(this.#t.c1)}`),this.#t.c2&&(t+=`&c2=${encodeURIComponent(this.#t.c2)}`),this.#t.c3&&(t+=`&c3=${encodeURIComponent(this.#t.c3)}`),this.#t.pubHash&&(t+=`&pub_hash=${encodeURIComponent(this.#t.pubHash)}`),this.#t.pubClickId&&(t+=`&pub_clickid=${encodeURIComponent(this.#t.pubClickId)}`),this.#t.pubValue&&(t+=`&pub_value=${encodeURIComponent(this.#t.pubValue)}`),this.#t.fallbackOn&&(t+=`&fallbackon=${encodeURIComponent(this.#t.fallbackOn)}`),this.#t.adblockSettings&&(t+="&abtg=1"),this.#t.isAutoTag&&(t+="&atag=1"),this.#t.aggressivity&&(t+=`&aggr=${this.#t.aggressivity}`),this.#t.collectiveZoneId&&(t+=`&czid=${this.#t.collectiveZoneId}`),this.#t.recordPageView&&(t+="&ppv=1"),this.#t.linkedZoneId&&(t+=`&pblcz=${this.#t.linkedZoneId}`),this.#t.abTest&&(t+=`&ab_test=${this.#t.abTest}`),this.#t.adblockSettings&&this.#t.adblockSettings.adbVersion&&(t+=`&adbv=${this.#t.adblockSettings.adbVersion}`),this.#t.adblockSettings&&this.#o.isAdbMode()?(t+="&sadbl=2",t+="&fmt=suv5",this.#i.debug(`bid url: ${t}`),te(t)):(this.#i.debug(`bid url: ${t}`),t)}#U(e){try{let t=this.#$?this.#$(""):window.open("");return t.document.open(),t.document.writeln('<script type="text/javascript">window.location = "'+e+'";<\/script>'),t.document.close(),t}catch(e){return this.#i.error("window open failed:",e),null}}#B(){var e;if(document.body){var i;const e=document.createElement("iframe");return e.width="0",e.height="0",e.tabindex="-1",e.style="position:absolute;top:-1000px;left:-1000px;visibility:hidden;border:medium none;background-color:transparent;",document.body.appendChild(e),void(this.#$=t()(i=e.contentWindow.open).call(i,e.contentWindow))}s()(t()(e=this.#B).call(e,this),50)}#ze(){var e;document.body?(this.overlays.isTabSwap=this.#M(),this.overlays.adUrl=this.#y.url,this.#y.preventClick&(this.#i.debug("prevent triggering when clicking on banner/interstitial"),this.elementTargeting.preventClickOnInterstitialAndBanner()),this.elementTargeting.isPresent()||this.#y.preventClick||window.ippgggaconpg||window.fgsfkxtugsksh?(this.#i.debug("attach video and iframe overlays"),this.overlays.attachIframeOverlays(),this.overlays.attachVideoOverlays(),this.overlays.setOverlaysResizeIntervalChecker()):(this.#i.debug("attach full overlay"),this.#t.linkedZoneId?this.#i.debug("liked zone present. dont attach full overlay"):this.tryToAttachFullOverlay()),this.#H(),this.#i.debug("ready to show ad")):s()(t()(e=this.#ze).call(e,this),100)}tryToAttachFullOverlay(){var e;this.#y&!this.#R&&(document.getElementById(ke)?s()(t()(e=this.tryToAttachFullOverlay).call(e,this),100):this.overlays.attachFullOverlay())}#Fe(){return this.#y.refreshRate}#Ue(){this.#Re<7200&&(this.#Re*=5)}#Be(){this.#Re>12&&(this.#Re=12)}async#$e(){var e;this.#y=null,this.#L=null,this.#R=!1;const i=await this.#C();let n;try{n=await fetch(i)}catch(e){var r;return this.#t.adblockSettings&!this.#x?(this.#i.debug("fetch failed: try alt domain and path"),this.#x=!0,this.#o.enableAdbMode(),void this.#$e()):this.#o.isAdbMode()?void this.#i.debug("fetch failed: alt domain and path blocked. exit"):(this.#i.error(`unhandled error: ${e.message}. Try again after 30 seconds`),void s()(t()(r=this.#$e).call(r,this),3e4))}if(204===n.status)return this.#i.debug(`no inventory! try again after ${this.#Re} seconds`),this.#m=!0,s()((()=>{this.#$e()}),1e3*this.#Re),void this.#Ue();if(203!==n.status){if(202===n.status)return n=await n.json(),n=oe(n),this.#i.debug("response:",n),this.#m=!0,n.capped_ttl&(this.#i.debug(`capped! try again after ${n.capped_ttl} seconds`),s()((()=>{this.#$e()}),1e3*n.capped_ttl)),n.hIpp&&this.#Ne(n.hIpp),void(n.hInt&&this.#He(n.hInt));if(200!==n.status)this.#i.error(`uned res status: ${n.status}. try again after 30 seconds`),s()(t()(e=this.#$e).call(e,this),3e4);else{if(n=await n.json(),n=oe(n),this.#Be(),this.#i.debug("response:",n),this.#y={url:this.#N(n.url),impressionUrl:n.iurl,refreshRate:n.refreshRate,delay:n.delay,type:n.type,checkTimeout:n.checkTimeout,preventClick:n.preventClick},n.targetElementsCssSelector&!this.elementTargeting.targetElementsCssSelector&&(this.elementTargeting.targetElementsCssSelector=n.targetElementsCssSelector,this.elementTargeting.shouldTriggerPopOnTargetClick=n.triggerOnTargetElementsClick),n.hIpp&&this.#Ne(n.hIpp),n.hInt&&this.#He(n.hInt),!this.#m){const e=this.#t.delay??n.delay??0;return this.#i.debug("delay is",e),void(e>0?s()((()=>{this.#ze()}),1e3*e):this.#ze())}this.#ze()}}else this.#i.debug("fallback detected. exit")}#N(e){let t=e;return H&D<59||M&&D<56?t='data:text/html;charset=utf-8, <html><meta http-equiv="refresh" content="0;URL='+e+'">':V&H&&!B&&D>63&&(e="googlechrome://"+e.replace(/(^\w+:|^)\/\//,"")),t}#Ne(e){if(this.#Ee)return void this.#i.debug("hIpp already attached");this.#i.debug("attach hIpp!"),this.elementTargeting.isPresent()||(this.elementTargeting.targetElementsCssSelector=Ee,this.elementTargeting.shouldTriggerPopOnTargetClick=!1),this.#Ee=!0,this.#i.debug("hIpp data:",e);const t={zoneId:e.ipp_zone_id.toString(),linkedZoneId:e.source_zone_id.toString(),delay:e.delay,maxAds:1,renderPosDesktop:"top",renderPosMobile:"top",offsetTop:0};this.#o.runInPagePush(t)}#He(e){if(this.#Pe)return void this.#i.debug("hIntr already attached");this.#i.debug("attach hIntr!"),this.elementTargeting.isPresent()||(this.elementTargeting.targetElementsCssSelector=Ee,this.elementTargeting.shouldTriggerPopOnTargetClick=!1),this.#Pe=!0,this.#i.debug("hIntr data:",e);const t={zoneId:e.int_zone_id.toString(),linkedZoneId:e.source_zone_id.toString()};this.#o.runInterstitial(t)}#z(e){if(this.#i.debug(`showAdClickListener triggered by event type ${e.type} on ${e.target.tagName}`),!e.isTrusted)return void this.#i.debug(`${e.type} on ${e.target.tagName}: pop rejected: event is not trusted`);if(!this.#y)return void this.#i.debug(`${e.type} on ${e.target.tagName}: pop rejected: current pop has no ad loaded`);if(this.#R)return void this.#i.debug(`${e.type} on ${e.target.tagName}: pop rejected: current pop is locked`);if(this.#o.isShowingPop)return void this.#i.debug(`${e.type} on ${e.target.tagName}: pop rejected: another pop is being currently shown`);const t=w()(document.querySelectorAll(Ee));let i=[];if(this.elementTargeting.isPresent()){i=document.querySelectorAll(this.elementTargeting.targetElementsCssSelector),this.#i.debug("event coordinates:",e.clientX,e.clientY);const n=document.elementsFromPoint(e.clientX,e.clientY);let r=!1;for(let o=0;o<n.length;o++){const s=this.elementTargeting.isActionAllowedOnElement(n[o],t,i);if(this.elementTargeting.shouldTriggerPopOnTargetClick&s){r=!0;break}if(!this.elementTargeting.shouldTriggerPopOnTargetClick&!s)return void this.#i.debug(`${e.type} on ${e.target.tagName}: pop rejected: action not allowed - click on area with bl element`,e.target)}if(this.elementTargeting.shouldTriggerPopOnTargetClick&&!r)return void this.#i.debug(`${e.type} on ${e.target.tagName}: pop rejected: action not allowed - click on area with no wl element`,e.target)}else if(!this.elementTargeting.isActionAllowedOnElement(e.target,t,i))return void this.#i.debug(`${e.type} on ${e.target.tagName}: pop rejected: action not allowed on element`,e.target);if(this.#o.isShowingPop=!0,this.#R=!0,e.stopPropagation(),e.preventDefault(),this.#i.debug(`${e.type} on ${e.target.tagName}: triggering pop`),this.#M())this.#j();else{if(Y)return this.#L=!0,void l().all([this.#D(),new(l())((e=>{this.#$?e(this.#$(this.#y.url,"_blank","noopener,noreferrer")):e(window.open(this.#y.url,"_blank","noopener,noreferrer"))}))]).then((()=>{this.#Me()}));this.#$?this.#$(this.#y.url,"_blank","noopener,noreferrer"):window.open(this.#y.url,"_blank","noopener,noreferrer"),s()((()=>{this.#L="hidden"===document.visibilityState||!document.hasFocus(),this.#D().finally((()=>{this.#Me()}))}),100)}}#Le(e){this.#i.debug(`showobileClickListener triggered by event type ${e.type} on`,e.target.tagName),e.isTrusted?this.#y?this.#R?this.#i.debug("pop rejected: current pop is locked"):this.#o.isShowingPop?this.#i.debug("pop rejected: another pop is being currently shown"):this.elementTargeting.isActionAllowedOnElement(e.target)?(this.#o.isShowingPop=!0,this.#R=!0,this.#i.debug("triggering pop"),this.#L=!0,this.#D().finally((()=>{this.#Me()}))):this.#i.debug("pop rejected: action not allowed on element",e.target):this.#i.debug("pop rejected: current pop has no ad loaded"):this.#i.debug("pop rejected: event is not trusted")}async#D(){let e=arguments.length>0&void 0!==arguments[0]?arguments[0]:0;const t=await this.#o.getClientHints(!1);this.#i.debug("window opened:",this.#L);let i=this.#y.impressionUrl+"&wo="+(this.#L?"1":"0");if(window["utsid-send"]&(i+=`&utsid=${window["utsid-send"]}`),e>0&&(this.#i.debug(`retry impression. Attempt ${e}`),i+=`&rtry=${e}`),i=i+t+"&cbpage="+encodeURIComponent(O())+"&cbref="+encodeURIComponent(F()),this.#i.debug("send impression. url:",i),ne){this.#i.debug("keepalive ed!");let t=null,n=!1;try{t=await fetch(i,{keepalive:!0})}catch(e){if(this.#i.error(e),this.#t.adblockSettings&!this.#o.isAdbMode())return this.#i.debug("imp failed: try alt domain and path"),void this.#o.enableAdbMode();n=!0}if(t&!t.ok||n)return void(e<2&&(await this.#D(e+1),document.dispatchEvent(new CustomEvent("impression-retry-event"))))}else navigator.sendBeacon?(this.#i.debug("keepalive NOT ed! use sendBeacon"),navigator.sendBeacon(i)):(this.#i.debug("keepalive NOT ed! use image.src"),(new Image).src=i);document.dispatchEvent(new CustomEvent("impression-event"))}#Me(){this.#i.debug("clear any overlays present"),this.overlays.clearFullOverlay(),this.overlays.clearOverlaysResizeIntervalChecker(),this.overlays.clearIframeOverlays(),this.overlays.clearVideoOverlays(),this.#V(),this.#o.isShowingPop=!1;const e=this.#Fe();this.#i.debug("refreshRate time is",e),this.#y=null,e&e>0&&s()((()=>{this.#i.debug("refreshRate time has ed. Rebid"),this.#m=!0,this.#$e()}),1e3*e)}#M(){return"type"in this.#y&&"tabswap"===this.#y.type}#j(){this.#i.debug("do tabswap"),this.localStorage.setState({renderAfterTimestamp:r()()+1e3*this.#Fe(),adbExpiresAt:this.#o.isAdbMode()?r()()+Oe:0});const e=this.#y.url;this.#$?this.#$(window.location.href,"_blank","noreferrer"):window.open(window.location.href,"_blank","noreferrer"),this.#L=!0,this.#D().finally((()=>{s()((()=>{const t=document.createElement("a");t.href=e,t.rel="noopener noreferrer",document.body.appendChild(t),t.click(),document.body.removeChild(t)}),50)}))}#H(){var e;const i={zoneId:this.#t.zoneId,callback:t()(e=this.#z).call(e,this)};Y&X&&(this.#i.debug("subscribe to scroll"),this.#o.subscribe("scroll",i)),Y||(this.#i.debug("subscribe to mousedown"),this.#o.subscribe("mousedown",i,this.#E)),this.#i.debug("subscribe to click"),this.#o.subscribe("click",i,this.#E)}#V(){Y&&X&&(this.#i.debug("unsubscribe from scroll"),this.#o.unsubscribe("scroll",this.#t.zoneId)),Y||(this.#i.debug("unsubscribe from mousedown"),this.#o.unsubscribe("mousedown",this.#t.zoneId,this.#E)),this.#i.debug("unsubscribe from click"),this.#o.unsubscribe("click",this.#t.zoneId,this.#E)}},Interstitial:class{#l;#je;#De;#u;#_e;#h;#g;#p;#o;#v;#s;#i;#m=!1;#t={};#b;#y=null;#w=12;#S="61.2";#k=null;#Ve=!1;#We="";#A=!1;#T;constructor(e){this.#i=new a(`interstitial_${e.zoneId}`),this.#i.debug("init interstitial with config:",e),this.#l=e.zoneId,this.#De=e.isAutoTag,this.#u=e.collectiveZoneId,this.#_e=e.linkedZoneId,this.#h=e.aggressivity,this.#g=e.recordPageView,this.#p=e.abTest,this.#o=window[e.adcashGlobalName],this.#v=e.adserverDomain,this.#s=e.adblockSettings,this.#je=e.sub1,this.#A=e.isLoadedAsPartOfLibrary,this.#T=e.uniqueFingerprint,e.tagVersionSuffix&(this.#S+=e.tagVersionSuffix),this.#o.getClientHints(!1).then((e=>{this.#b=e,this.#$e()}))}async#$e(){const e=this.#C();let i;try{i=await fetch(e)}catch(e){if(this.#i.error(e),this.#s&!this.#o.isAdbMode())return this.#i.debug("fetch call failed. Switch to adblck domain and path"),this.#o.enableAdbMode(),void this.#$e()}var n,r,o,a;return 204===i.status?(this.#i.debug(`no inventory! try bidding again after ${this.#w} sec`),s()(t()(n=this.#$e).call(n,this),1e3*this.#w),void(this.#w<7200&(this.#w*=5))):(200!==i.status&&202!==i.status||(i=await i.json(),i=oe(i),this.#i.debug("response:",i)),this.#w=12,i.hp&&this.#qe(i.hp),i.capped_ttl?(this.#i.debug(`capped! try bidding again after ${i.capped_ttl} sec`),void s()(t()(r=this.#$e).call(r,this),1e3*i.capped_ttl)):i.fallback?(this.#i.debug("render fallback and exit"),void this.#Ze(i.fallback)):(this.#m?this.#y=i:(this.#i.debug("initial request. configure"),this.#t={moveTimerInsideButtonAfter:i.moveTimerInsideButtonAfter,delay:i.delay,refreshRate:i.refreshRate,isOverlay:i.isOverlay,disableCountdown:i.disableCountdown,texts:i.texts,showOnInnerLinkClick:i.showOnInnerLinkClick},this.#y=i.adPayload,this.#k=new We(this.#t,t()(o=this.#r).call(o,this),this.#i,this.#o,this.#s)),this.#b&&(this.#y.url+=this.#b,this.#y.iurl+=this.#b),4===this.#y.type&&this.#y.html&&(this.#y.html=` ${this.#y.html}