void 0===window.CleverCore&&(window.CC=(()=>{"use strict";var e=Object.defineProperty,t=Object.defineProperties,i=Object.getOwnPropertyDescriptors,r=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,n=(t,i,r)=>i in t?e(t,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[i]=r,l=(e,t)=>{for(var i in t||(t={}))s.call(t,i)&&n(e,i,t[i]);if(r)for(var i of r(t))o.call(t,i)&&n(e,i,t[i]);return e},a=(e,r)=>t(e,i(r)),c=(e,t)=>{var i={};for(var n in e)s.call(e,n)&&0>t.indexOf(n)&&(i[n]=e[n]);if(null!=e&&r)for(var n of r(e))0>t.indexOf(n)&&o.call(e,n)&&(i[n]=e[n]);return i},d=(e,t,i)=>n(e,"symbol"!=typeof t?t+"":t,i),u=(e,t,i)=>new Promise((r,s)=>{var o=e=>{try{l(i.next(e))}catch(e){s(e)}},n=e=>{try{l(i.throw(e))}catch(e){s(e)}},l=e=>e.done?r(e.value):Promise.resolve(e.value).then(o,n);l((i=i.apply(e,t)).next())}),h={Class:"clever-core-ads",OfferwallClass:"clever-core-ads-offerwall",LocalStorageKey:"clever-parameters",LocalStorageClickKeyStk:"clever-click",MultiClass:"clever-core-ads-multiproduct",CookieLastTrackerPrefix:"clever-last-tracker-",CookieCounterPrefix:"clever-counter-",UnloadReturnKey:"clever-unload",CookieLifeTime:720,maxLengthHref:1e3,maxLengthReferer:600,btnCss:{display:"block",right:"5px",top:"5px",width:"25px",cursor:"pointer","min-width":"auto",height:"25px",position:"absolute","z-index":99,margin:"0"},EEECountries:["AT","BE","BG","HR","CY","CZ","DK","EE","FI","FR","DE","GR","HU","IS","IE","IT","LV","LI","LT","LU","MT","NL","NO","PL","PT","RO","SK","SI","ES","SE"],AllowedCountriesStk:["IN","PK","LK","BD"],allowedDSPDomains:["aax-fe-sin.amazon-adsystem.com","aax-us-east.amazon-adsystem.com","ads.sportslocalmedia.com","c.amazon-adsystem.com","cdn.taboola.com","config.seedtag.com","ads.context2.ai","googleads.g.doubleclick.net","aax-eu.amazon-adsystem.com","xbid-prod.googleusercontent.com"],hideClickReferrer:["YmV0MzY1","c3Rha2U="],browserPVTSAllowed:["Chrome","Edge","Opera"],validTrackerIds:[1326404,1326408,1542192,1542193]},p=["PH","TH","IN","SG","BO","CL","CO","CR","DO","EC","SV","GT","HN","MX","PA","PY","PE","VE","BR"],g={76278:["MY"],76729:["IN","TH","BR","MY","SG","PH"],73756:["PH","MY","SG","TH"],76181:["PH"],80487:p,78447:p,85801:p,76912:p,77497:p,91041:p,79917:p,79764:p},m=[/adspreview\.googleusercontent\.com/i,/usrfiles\.com/i];function b(e,t,i,r){return(e/=r/2)<1?i/2*e*e*e*e+t:-i/2*((e-=2)*e*e*e-2)+t}function C(e=0,t=0,i=400){let r=window.scrollX||window.pageXOffset,s=window.scrollY||window.pageYOffset,o=e-r,n=t-s,l=new Date().getTime(),a=window.setInterval(function(){let e=new Date().getTime()-l,t=b(e,r,o,i),c=b(e,s,n,i);e>=i&&window.clearInterval(a),window.scrollTo(t,c)},1e3/60)}var f=e=>e.charAt(0).toUpperCase()+e.slice(1),k=()=>v("hostname"),v=e=>{var t,i,r;try{return null!=(r=null!=(i=null==(t=window.top)?void 0:t.location[e])?i:window.parent.location[e])?r:window.location[e]}catch(t){return window.location[e]}},w=e=>{var t;if(!e)return"";let i=/(android|iphone)\.(.+)\.adsenseformobileapps\.com$/i.exec(e);return null!=(t=null==i?void 0:i[2])?t:""},y=e=>btoa(e),D=(e,t="DOMContentLoaded")=>{"loading"!==document.readyState?e():document.addEventListener(t,()=>{e()})},T=e=>e.replace(/(.)([A-Z])/g,function(e,t,i){return t+"-"+i}).toLowerCase(),I=class{constructor(e){this.URL=e}static exists(){var e;if("undefined"!=typeof $sf&&"ext"in $sf||window.location.href.includes("safeframe.googlesyndication.com"))return!0;if([62958].includes(O.group.ID))try{return!(null==(e=window.top)?void 0:e.location.hostname)}catch(e){return!0}return!1}isEnabled(){return 1===O.group.SafeFrame}currentAncestor(){if("Firefox"===O.User.Browser){let e=window;try{for(;e!==window.top;){if(e.document.referrer){let t=new URL(e.document.referrer);return this.URL.FetchDomain(t.origin)}e=e.parent}}catch(e){return O._debug("ancestorOrigin is not supported in Firefox Browser"),null}}let e=window.location.ancestorOrigins;if(void 0===e||0===e.length)return null;let t=e[0],i=".cdn.ampproject.org";return t.includes("-")&&t.includes(i)&&(t=this.URL.FetchDomain(t).split(i)[0].replace(/[-]+/g,".")),this.URL.FetchDomain(t)}},M=class e{constructor(t,i,r,s,o,n){this.SafeFrame=i,this.AMP=r,this.URL=s,this.DOM=o,d(this,"BlockedBrandsByRegion",{stake:{US:["MI","NV","NY","ID","WA","VT","KY"]}}),d(this,"Start",new Date),d(this,"isMultiProduct"),d(this,"WhitelistApps",["com.example.flutter_ads_package","com.example.core_clever_core_app_gam_demo","com.example.coreCleverCoreAppGamDemo","com.clever.core_clever_core_app_gam_demo"]),d(this,"CurrentApp",""),d(this,"CallbackUrl"),d(this,"Timeout"),d(this,"Whitelist"),d(this,"SDK"),d(this,"IsWL"),d(this,"Latency",{Start:new Date,End:new Date}),d(this,"defaultOptions",{group:{ID:0,Expire:24,Subdomains:null,DisableMobile:null,DisableIframes:0,UseLink:0,DOMLoad:!0,AutoClose:0,TriggerTimer:0,TCF:0,last_build_date:0,ads_script_type:""},timeout:0,whitelistDomains:["partner.googleadservices.com","ads.localhost","adtester.yahooinc.com","jac.yahoosandbox.com","s.yimg.com","creative-preview-an.com","previewads.com","livepreview.adform.com","testadtag.com"],whitelistApps:["127.0.0.1"],callbackUrl:null}),t=this.prepareOptions(t),e.group=t.group,this.CallbackUrl=t.callbackUrl,this.isMultiProduct=n.some(e=>1===e.multiproduct),this.Timeout=t.timeout,this.Whitelist=t.whitelistDomains,this.WhitelistApps=this.WhitelistApps.concat(t.whitelistApps),this.SDK=this.getSDK(),this.IsWL=()=>this.IsWhitelist(n),this.IsWL()}get Group(){return e.group}set User(t){e.User=t}get User(){return e.User}static _debug(e){console.log("CLVR: "+e)}Debug(t){e._debug(t)}SSL(){return"https:"===location.protocol}getLocationHref(){var e;if(I.exists()&&this.SafeFrame.isEnabled())return null!=(e=this.SafeFrame.currentAncestor())?e:"";let t=v("href");return this.AMP.isEnabled()&&this.AMP.exists()&&(t=window.context.sourceUrl),t.length>h.maxLengthHref&&(t=t.slice(0,h.maxLengthHref)),t}get TimeSpent(){return(Date.now()-this.Start.getTime())/1e3}IsWhitelist(t){let i=this.DOM.Meta("gam-ref-url"),r=w(i);if(r)return!!this.WhitelistApps.includes(r)&&(this.CurrentApp=r,!0);let s=t.find(e=>e.publisher_app_id===i);if((null==s?void 0:s.bundleId)&&this.WhitelistApps.includes(s.bundleId))return this.CurrentApp=s.bundleId,!0;let o=this.AMP.fetchCurrentDomain();I.exists()&&this.SafeFrame.isEnabled()&&(o=null!=o?o:this.SafeFrame.currentAncestor());let n={"pubads.g.doubleclick.net":["msid"],"script.cleverwebserver.com":["bid","app"]};if((o=null!=o?o:this.URL.CurrentDomain())in n){let e=n[o],t=new URLSearchParams(window.location.search);if(e.every(e=>!t.has(e)))return!1;for(let i of e){let e=t.get(i);if(e&&this.WhitelistApps.includes(e))return this.CurrentApp=e,!0}return!1}for(let t of this.Whitelist)if(t.toLowerCase()===o.toLowerCase()||1===e.group.Subdomains&&RegExp("\\."+t+"$","i").exec(o))return!0;let l=this.URL.FetchDomain(this.URL.GetExternalReferer());return!!(l&&h.allowedDSPDomains.includes(o)&&this.Whitelist.includes(l))}getExpireTime(){return this.User.Mobile&&e.group.ExpireMobile?e.group.ExpireMobile:e.group.Expire}normalizeUser(){"d"in this.User&&(this.User.Mobile=this.User.d,delete this.User.d),"b"in this.User&&(this.User.Browser=this.User.b,delete this.User.b),"p"in this.User&&(this.User.Platform=this.User.p,delete this.User.p),"c"in this.User&&(this.User.CTR=this.User.c,delete this.User.c)}prepareOptions(e){var t,i,r,s;return{group:null!=(t=e.group)?t:this.defaultOptions.group,timeout:null!=(i=e.timeout)?i:this.defaultOptions.timeout,whitelistDomains:[...this.defaultOptions.whitelistDomains,...null!=(r=e.whitelistDomains)?r:[]],whitelistApps:[...this.defaultOptions.whitelistApps,...e.whitelistApps],callbackUrl:null!=(s=e.callbackUrl)?s:this.defaultOptions.callbackUrl}}getSDK(){var e;let t=new URLSearchParams(window.location.search);return t.has("sdk")?null!=(e=t.get("sdk"))?e:"":w(this.DOM.Meta("gam-ref-url"))?"GAM":""}getPostMessageSources(t){return!!e.postMessageRegex.exec(t)}};d(M,"MinimalVisibility",.5),d(M,"User",{ID:0,CTR:"AA",remote_addr:!1,LastGroup:!1,t:0,Browser:void 0,Platform:void 0,bot:void 0,Mobile:0,r:void 0,lastTracker:void 0,s:void 0,e:void 0,bv:void 0,cont:void 0}),d(M,"group"),d(M,"postMessageRegex",/^https?:\/\/(([a-zA-Z0-9-]+-)?sender(-[a-zA-Z0-9-]+)?\.cleverwebserver\.com|([a-zA-Z0-9-]+-)?view(-[a-zA-Z0-9-]+)?\.clvrads\.com)$/);var O=M,F=class{constructor(e,t){this.URL=e,this.DOM=t,d(this,"domains",["ampproject.net","ads.localhost"]),d(this,"isVisible",!1),d(this,"isAMP",!1)}exists(){for(let e of this.domains){let t=RegExp(e+"$"),i=this.URL.FetchDomain(k());if(null!==t.exec(i))return!0}return!1}isEnabled(){return void 0!==O.group.AMP&&1===O.group.AMP}fetchCurrentDomain(){let e=this.DOM.Meta("origin");return e?this.URL.FetchDomain(e):null}registerViewObserver(e){this.isAMP=!0,window.context.observeIntersection(t=>{t.forEach(t=>{!this.isVisible&&t.intersectionRatio>=O.MinimalVisibility&&(this.isVisible=!0,e())})})}},S=class{constructor(e,t){this.DOM=e,this.URL=t}Click(){let e=this.DOM.Meta("callback-url-click");if(null!==e&&"put-your-click-macro-here"!==e){if(!this.URL.IsValid(e)){O._debug("Callback: Invalid click URL");return}this.appendIframe(e)}}View(){let e=this.DOM.Meta("callback-url-view");if(null!==e&&"put-your-view-macro-here"!==e){if(!this.URL.IsValid(e)){O._debug("Callback: Invalid view URL");return}this.appendIframe(e)}}FailedToLoad(){let e=this.DOM.Meta("callback-no-load");if(null!==e&&"put-your-failedToLoad-macro-here"!==e){if(this.DOM.findFunctionInWindow(e)){this.DOM.runIsolatedFunctionInWindow(e);return}if(!this.URL.IsValid(e)){O._debug("Callback: Invalid no load URL");return}this.appendIframe(e)}}appendIframe(e){let t=document.createElement("iframe");t.setAttribute("style","width: 1px; height: 1px; border: none; bottom: 0; left: 0; display: none;"),t.setAttribute("src",e),document.body.appendChild(t)}processLandingAction(e,t,i="_blank"){if(this.Click(),h.hideClickReferrer.find(e=>atob(e)===t.Landing)&&"BR"===t.CTR){let t=document.createElement("a");t.href=e,t.target=i,t.rel="noreferrer",t.click()}else window.open(e,i)}},E=class{constructor(e){this.Registry=e,d(this,"cookieKeys"),this.cookieKeys={counter:h.CookieCounterPrefix+e.Group.ID,lastTracker:h.CookieLastTrackerPrefix+e.Group.ID}}Get(e){let t=RegExp(`(^| )${e}=([^;]+)`).exec(document.cookie);return t?t[2]:null}Set(e,t,i){if(!i)return;let r=new Date;r.setTime(r.getTime());let s=new Date(r.getTime()+1e3*i),o=e+"="+escape(t)+";expires="+s.toUTCString()+";path=/;";this.Registry.SSL()&&(o+=" SameSite=None; Secure;"),document.cookie=o}saveCookie(e,t,i){return this.Set(this.cookieKeys[e],t,3600*i)}deleteCookie(e){return this.Set(this.cookieKeys[e],"",-1)}readCookie(e){return this.Get(this.cookieKeys[e])}checkExpire(){let e=this.readCookie("counter");return!(!e&&this.Registry.getExpireTime()>0)&&null!=e}saveCounter(e,t){let i=this.Registry.getExpireTime();this.saveCookie("counter",e+"-"+t,i)}saveLastTracker(e){let t=this.Registry.getExpireTime(),i=t>0?t:h.CookieLifeTime;this.saveCookie("lastTracker",String(e),i)}deleteLastTracker(){this.deleteCookie("lastTracker")}readTrackerCap(e){return this.Get(`clever-cap-${e}`)}saveTrackerCap(e,t,i){this.Set(`clever-cap-${e}`,String(t),3600*i)}},L="https://assets.cleverwebserver.com/Close.png",R="https://assets.cleverwebserver.com/Clever.png",U=class{constructor(e){this.group=e,d(this,"events",new Map),d(this,"shortCuts",{overlay:{type:"img",attr:{src:"https://assets.cleverwebserver.com/Pixel.gif",alt:"overlay-clever"},style:{width:"100%",height:"100%",zIndex:"15",top:"0",left:"0",cursor:"pointer",border:"none",borderRadius:"none",backgroundColor:"transparent",boxShadow:"none",position:"absolute",margin:"0",padding:"0"}},bannerClose:{type:"img",attr:{src:L,alt:"close"},style:{display:"block",right:"2px",top:"0",width:"22px",position:"absolute",zIndex:"15",height:"22px",margin:"0",cursor:"pointer"}},anchorClever:{type:"a",attr:{href:"https://cleveradvertising.com",target:"_blank",rel:"nofollow"},style:{color:"#fff",textDecoration:"none",height:"15px",padding:"0",background:"unset",overflow:"unset"}},cleverLogo:{type:"img",attr:{src:"https://assets.cleverwebserver.com/CleverLogo.ico",alt:"Logo"},style:{left:"2px",top:"0",width:"22px",position:"absolute",zIndex:"15",height:"22px",margin:"0"}},cleverLogoWhite:{type:"img",attr:{src:R,alt:"Logo"},style:{left:"2px",top:"0",width:"15px",position:"absolute",zIndex:"15",height:"15px",margin:"0"}},iframe:{type:"iframe",attr:{title:"Clever-iframe",name:h.Class,frameBorder:"0",scrolling:"no",src:"about:blank",allowFullscreen:!0},style:{width:"100%",height:"100%",backgroundColor:"transparent",visibility:"visible",position:"absolute",top:"0",padding:"0",pointerEvents:"all",zIndex:"-1",display:"flex"}}})}getByTag(e){return document.getElementsByTagName(e)}clearEvents(){for(let[e,{element:t,event:i,callback:r}]of this.events)this.unbind(t,i,r)}wName(){return window.name?window.name:""}getByClass(e){return document.getElementsByClassName(e)}getByID(e){var t,i,r;let s=null;return document.getElementById?s=null!=(t=document.getElementById(e))?t:null:document.all?s=null!=(i=document.all[Number(e)])?i:null:document.layers&&(s=document.layers[e]),!s&&(parent.document.getElementById?s=null!=(r=parent.document.getElementById(e))?r:null:parent.document.all?s=parent.document.all[Number(e)]:parent.document.layers&&(s=parent.document.layers[e])),s}getElement(e){return e===document||e instanceof Document?document:e===window||e instanceof Window?window:e.id?document.querySelector(`#${e.id}`):void 0}bind(e,t,i){let r=this.getElement(e);(e=null!=r?r:e).addEventListener?e.addEventListener(t,i,!1):"attachEvent"in e&&e.attachEvent("on"+t,function(){i.apply(this)}),this.events.set(this.events.size+1,{element:e,callback:i,event:t})}unbind(e,t,i){e.removeEventListener&&e.removeEventListener(t,i),"detachEvent"in e&&e.detachEvent("on"+t,i)}remove(e){var t;null==(t=e.parentNode)||t.removeChild(e)}destroyElement(e){this.setHTML(e,""),this.css(e,"display","none"),this.remove(e)}css(e,t,i){let r;if(i=i?String(i):void 0,e){if("string"==typeof e){if(!(r=document.getElementById(e)))return}else{if("id"in e&&e.id){let t=document.getElementById(e.id);t&&(r=t)}r||(r=e)}if("object"==typeof t){Object.keys(t).forEach(e=>{this.css(r,e,t[e])});return}if(void 0!==i){if(i.includes("!important")){let e=i.replace("!important","").trim(),s=T(t);r.style.setProperty(s,e,"important")}else{let e=T(t);r.style.setProperty(e,i)}}}}attr(e,t,i){let r=e.id?document.getElementById(e.id):void 0;if(r&&(e=r),"object"==typeof t)for(let i in t)i in t&&this.attr(e,i,t[i]);else"id"===t?e.id=null!=i?i:"":"innerHTML"===t?e.innerHTML=null!=i?i:"":"src"===t?("iframe"===e.nodeName.toLowerCase()&&void 0!==e.location&&(e.location=i),"src"in e&&(e.src=null!=i?i:"")):"className"===t?e.setAttribute("class",null!=i?i:""):e.setAttribute(t,null!=i?i:"");return e}append(e,t){try{return e.innerHTML+=t,e}catch(e){return!1}}setHTML(e,t){if(!t)return e.innerHTML;let i=e.id?document.getElementById(e.id):void 0;return i?(i.innerHTML=t,i):(e.innerHTML=t,e)}getViewportWidth(){return window.innerWidth||document.documentElement.clientWidth||screen.availWidth||this.getByTag("body")[0].clientWidth}getViewportHeight(){return window.innerHeight||document.documentElement.clientHeight||screen.availHeight||this.getByTag("body")[0].clientHeight}height(e){return e.clientHeight||e.scrollHeight||e.offsetHeight||0}width(e){return e.clientWidth||e.scrollWidth||e.offsetWidth||0}create(e,t,i){let r=document.createElement(e);return t&&this.attr(r,t),i&&this.css(r,i),r}shortCutCreate(e,t,i,r){return this.create(null!=r?r:this.shortCuts[e].type,l(l({},this.shortCuts[e].attr),null!=t?t:{}),l(l({},this.shortCuts[e].style),null!=i?i:{}))}clone(e,t){let i={};for(let t=0;tNumber(t.opacity)||e.offsetWidth+e.offsetHeight+e.getBoundingClientRect().height+e.getBoundingClientRect().width===0)return!1;let i=e.getBoundingClientRect().left+e.offsetWidth/2;if(i<0||i>(document.documentElement.clientWidth||window.innerWidth))return!1;let r=e.getBoundingClientRect().top+e.offsetHeight/2;if(r<0||r>(document.documentElement.clientHeight||window.innerHeight))return!1;let s=document.elementFromPoint(i,r);if(s===e)return!0;for(;null!==s&&void 0!==s.parentNode;){if(s.parentNode===e)return!0;s=s.parentNode}return!1}isDisplayed(e){if(!e)return!1;let t=e.getBoundingClientRect(),i=document.documentElement,r=window.innerWidth||i.clientWidth,s=window.innerHeight||i.clientHeight;if("style"in e){let i=.2*parseInt(e.style.height,10);return t.top>=0&&t.left>=0&&t.bottom-i<=s&&t.right<=r}return t.top>=0&&t.left>=0&&t.right<=r}isCCMinimallyVisible(){let e=this.getByClass("clever-core-ads")[0];return this.isMinimallyVisible(e)}isMinimallyVisible(e,t,i){var r;let s,o,n;if(1===this.group.AMP||I.exists())return!0;if(!e)return O._debug("Visibility element not defined"),!1;if("object"!=typeof e)return O._debug("Visibility element must be object"),!1;if("frameElement"in e&&(e=e.frameElement),"offsetHeight"in e&&!e.offsetHeight&&!e.offsetWidth)return O._debug("Visibility element must have offset"),!1;let l=window.getComputedStyle(e);if("hidden"===l.visibility||!Number(l.opacity))return O._debug("Element is hidden or without opacity"),!1;let a=t||e.getBoundingClientRect();"style"in e&&(s=e.style.height?parseInt(e.style.height,10):e.hasAttribute("height")?parseInt(null!=(r=e.getAttribute("height"))?r:"",10):e.getBoundingClientRect().height),s&&(s*=O.MinimalVisibility),s=s||10,i?(o=i.width,n=i.height):(o=window.innerWidth,n=window.innerHeight);let c=a.bottom-s<=0,d=a.top-n+s>=0,u=a.right-s<0,h=a.left-o+s>=0;return!c&&!d&&!u&&!h}Meta(e){let t=this.getByID("CleverCoreLoader"+O.group.ID);return t?t.getAttribute("data-"+e):null}customFetch(e){let t=new Image;t.referrerPolicy="origin",t.style.display="none",t.src=e}findFunctionInWindow(e){let t=window[e];return"function"==typeof t?t:null}runIsolatedFunctionInWindow(e){(t=>{t[e]()})(window)}},x={open:["beforeOpen","afterOpen"],close:["beforeClose","afterClose"],openClose:["beforeOpen","afterOpen","beforeClose","afterClose"]},_=class{constructor(){d(this,"Queue",{}),d(this,"Events"),this.Events={Generic:l({},this.generateEvents(["generic:beforeRun","generic:afterRun","generic:afterUI"]).Generic),Formats:this.generateEvents(["interstitial:openClose","banner:beforeOpen","banner:beforeEach","banner:afterOpen","banner:afterCloseBind","banner:afterEach","banner:afterAll","bannerSponsorClick:openClose","interScroller:openClose","offerWall:openClose","pushDown:openClose","pushDownSponsorClick:openClose","topScroll:openClose","topScrollSponsorClick:openClose","miniScroller:openClose","superTopBoardScroll:openClose","leaderBoard:openClose","expandableBannerLeft:openClose","expandableBannerRight:openClose","bannerCube:openClose","cube:openClose","stickyClick:openClose","stickyFooter:openClose","stickyPop:openClose","stickySponsorClick:openClose","stickySponsorClickTop:openClose","stickyTest:openClose","mosaic:openClose","box3D:openClose","bannerApp:openClose","bannerAppVideo:openClose","bannerAppCountdown:openClose","interactiveBanner:openClose","interactiveSticky:openClose","mobilePull:openClose","scratchBanner:openClose"]),Garbage:l({},this.generateEvents(["garbage:afterRemove"]).Garbage)},this.Queue={}}Add(e,t){this.Queue[e]=t}Call(e,t){if(this.Queue[e]){let i=this.Queue[e];t=[O.group.ID,...t];try{return i(...t)}catch(e){return console.error(e),!1}}}generateEvents(e){return e.reduce((e,t)=>{let[i,r]=t.split(":");return x[r]?x[r].forEach(t=>{e[f(i)]=a(l({},e[f(i)]),{[t]:`${i}:${t}`})}):e[f(i)]=a(l({},e[f(i)]),{[r]:t}),e},{})}},A=class{constructor(e,t,i,r,s,o,n){this.Version=e,this.DOM=t,this.Registry=i,this.URL=r,this.AMP=s,this.TCF=o,this.Validator=n,d(this,"ExtraParam","")}buildURI(e,t){let i=[];for(let e in t.iv="-1",t)Object.prototype.hasOwnProperty.call(t,e)&&i.push(`${e}=${encodeURIComponent(t[e])}`);return`${e}?${i.join("&")}${this.ExtraParam}`}inject(e){return new Promise((t,i)=>{let r=this.DOM.create("script",{type:"text/javascript",src:e,async:!1});r.onerror=function(t,r,s,o,n){return i({errorMessage:t,injectUrl:r,url:e,lineNumber:s,column:o,errorObject:n})},r.onload=e=>t(!0),(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(r)})}getDefaultUrl(e){let t=this.fetchBaseUrl(e);return e.Landing&&""!=e.Landing&&(t+="&landing=1"),t}currentLocation(){let e;if(this.AMP.exists()){let t=new URL(JSON.parse(window.name).attributes._context.location.href);e=t.hostname+t.pathname}else e=I.exists()?document.referrer:window.location.host+window.location.pathname;return decodeURI(e)}getForbiddenUrlParam(){return this.URL.forbiddenURLs.length>0&&this.URL.IsForbiddenURL(this.currentLocation())?1:0}fetchBaseUrl(e,t){var i,r,s,o,n,a,c,d,u,h,p,g;let m={id:e.ID,ref:window.btoa(null!=(i=this.Registry.getLocationHref())?i:""),ruri:window.btoa(this.URL.GetExternalReferer()),t:O.User.t,cmpId:this.TCF.cmpId,fb:"Facebook App"===O.User.Browser?1:0,wl:this.Registry.IsWL()?1:0,furl:this.getForbiddenUrlParam(),sf:I.exists()?1:0,bw:window.btoa(null!=(r=O.User.Browser)?r:"").replace(/=+$/,""),b:null!=(s=O.User.bot)?s:0,m:null!=(o=O.User.Mobile)?o:0,p:window.btoa(null!=(n=O.User.Platform)?n:"").replace(/=+$/,""),res:this.DOM.getViewportWidth()+"x"+this.DOM.getViewportHeight(),app:this.Registry.CurrentApp,v:this.Version,s:null!=(a=O.User.s)?a:"",e:null!=(c=O.User.e)?c:"",bv:null!=(d=O.User.bv)?d:"",cont:null!=(u=O.User.cont)?u:"",st:null!=(h=O.group.ads_script_type)?h:"",sdk:null!=(p=this.Registry.SDK)?p:"",mng:this.Validator.isInGoogleAdManager()?"GAM":"",lg:null!=(g=navigator.language)?g:""};return t&&(m=l(l({},m),t)),this.buildURI(this.URL.BaseUrl(),m)}isDefaultScriptSrc(){var e,t;return(null==(t=null==(e=this.DOM.getByID(`CleverCoreLoader${this.Registry.Group.ID}`))?void 0:e.getAttribute("src"))?void 0:t.includes("cleverwebserver"))||!1}},B=class{constructor(){d(this,"TCFVendorId",1070),d(this,"version",2),d(this,"requiredCountries",["PT"]),d(this,"requiredBrands",["solverde"]),d(this,"cmpId","")}exists(){return"function"==typeof __tcfapi}isRequired(){return!!O.User.CTR&&this.requiredCountries.includes(O.User.CTR)}isEnabled(){return void 0!==O.group.TCF&&1===O.group.TCF}isValidConsents(e){let t=this.TCFVendorId;return("boolean"!=typeof e.gdprApplies?console.log("GDPR applies: Unknown"):console.log((e.gdprApplies,"Yes")),e.purpose.consents[1])?e.purpose.consents[2]?e.vendor.consents[this.TCFVendorId]?!!e.vendor.legitimateInterests[this.TCFVendorId]||(console.log("No "+t+" legitimateInterests vendor ID"),!1):(console.log("No "+t+" vendor ID"),!1):(console.log("No #2 consent"),!1):(console.log("No #1 consent"),!1)}registerEventListeners(e){let t=(t,i)=>i?!!("tcloaded"===t.eventStatus&&this.isValidConsents(t))&&(this.cmpId=t.cmpId,e&&e(),!0):(O._debug("TCF: Failed on page load"),!1),i=(t,i)=>i?"useractioncomplete"===t.eventStatus&&!!this.isValidConsents(t)&&(this.cmpId=t.cmpId,e&&e(),__tcfapi("removeEventListener",this.version,function(){},t.listenerId),!0):(O._debug("TCF: Failed on UI load"),!1);__tcfapi("addEventListener",this.version,(e,r)=>{t(e,r)||i(e,r)})}},V=class{constructor(e){d(this,"tracker"),d(this,"trackers"),d(this,"DOM"),d(this,"Net"),d(this,"AMP"),d(this,"Registry"),d(this,"Callback"),d(this,"TrackerUtils"),d(this,"Hooks"),d(this,"TCF"),d(this,"Translation"),d(this,"URL"),d(this,"Tracker"),d(this,"Validator");let{tracker:t,Registry:i,DOM:r,AMP:s,Net:o,Callback:n,TrackerUtils:l,Hooks:a,TCF:c,Translation:u,URL:h,Tracker:p,trackers:g,Validator:m}=e;this.tracker=t,this.trackers=g,this.DOM=r,this.Net=o,this.AMP=s,this.Registry=i,this.Callback=n,this.TrackerUtils=l,this.Hooks=a,this.TCF=c,this.Translation=u,this.URL=h,this.Tracker=p,this.Validator=m}getInitialState(e){return{body:e&&document.querySelector(e)||document.body.querySelector(".GoogleActiveViewElement")||document.body.querySelector(".GoogleActiveViewInnerContainer")||document.body,baseUrl:this.Net.fetchBaseUrl(this.tracker),defaultUrl:this.Net.getDefaultUrl(this.tracker)||""}}getBlock(e){var t;let i=h.Class;if(1===this.tracker.multiproduct&&this.Registry.isMultiProduct){let t=this.TrackerUtils.getMultiProductDiv(this.tracker);return!!t&&(e?[t.div]:t.div)}let r=e?this.DOM.getByClass(i):this.AMP.exists()?this.DOM.getByID("c"):this.DOM.getByClass(i)[0];if(!r){O._debug("No .clever-core-ads detected");let s=this.DOM.Meta("target");if(s&&window.name!==s){O._debug("Placeholder found by target");let o=this.DOM.getByID(s);if(!o)return O._debug("No sourceBannerFrame found"),!1;let n=this.DOM.create("div");n.className=i,o.setAttribute("style","z-index:1; position:absolute; margin: auto; left: 0px; right: 0px"),null==(t=o.parentNode)||t.appendChild(n),r=e?this.DOM.getByClass(i):this.DOM.getByClass(i)[0]}if(e){if((null==r?void 0:r.length)===0)return!1}else if(!r)return!1}return r}createId(e){if(e.includes("_"))throw Error("Invalid character in id");return`clever-${O.group.ID}-${this.tracker.ID}-${e}`}handleFormatClick(e={}){let t=l({ts:this.Registry.TimeSpent},e);return"sponsored"in e||"btnclick"in e||"skip"in e||(t.frominter=1,t.click=1),this.isStkBrand()&&(t.stkclick=this.stkClickCounter()),this.Net.fetchBaseUrl(this.tracker,t)}partialDelete(e){e.remove()}delete(e){this.DOM.setHTML(e,""),this.DOM.css(e,"display","none"),this.DOM.remove(e)}isStkBrand(){return"stake"===this.tracker.Landing&&h.AllowedCountriesStk.includes(this.Registry.User.CTR)}stkClickCounter(){var e;let t=h.LocalStorageClickKeyStk,i=parseInt(null!=(e=localStorage.getItem(t))?e:"0");return i<3?i++:i=1,localStorage.setItem(t,i.toString()),i}},H=class extends V{constructor(e,t){super(t),this.config=e,d(this,"wasShown"),d(this,"autoCloseTimeout",null),this.wasShown=!1,this.config=a(l({},e),{closable:void 0===e.closable||e.closable})}Close(e=!0){let{baseUrl:t}=this.getInitialState();if(!1===this.config.closable){O._debug(`Format: ${this.config.name} is not closable`);return}return(e&&this.DOM.customFetch(t+"&closed=1"),this.DOM.clearEvents(),"base"===this.config.closeFormat)?this.closeBase():"banner"===this.config.closeFormat?this.closeBanner():"other"===this.config.closeFormat?this.closeOther():void 0}closeBase(){let e=`#${this.GetId()}`,t=document.querySelector(e);t?t.remove():O._debug(`element: ${e} not found`)}closeBanner(){"unknown"!==this.config.hook&&this.Hooks.Call(this.Hooks.Events.Formats[this.config.hook].beforeClose,[]);let e=this.DOM.getByClass(h.Class);if(0===e.length)return!1;let t=e=>{this.DOM.setHTML(e,""),this.DOM.css(e,"display","none"),this.DOM.remove(e)};for(let i in e){let r=e[i];this.DOM.css(r,{height:"0",opacity:"0",marginTop:"0"}),setTimeout(t,500,r)}return"unknown"!==this.config.hook&&this.Hooks.Call(this.Hooks.Events.Formats[this.config.hook].afterClose,[]),!0}closeOther(){"unknown"!==this.config.hook&&this.Hooks.Call(this.Hooks.Events.Formats[this.config.hook].beforeClose,[]);let e=this.DOM.getByID(this.GetId());return e?(setTimeout(()=>{this.delete(e)},500),"unknown"!==this.config.hook&&this.Hooks.Call(this.Hooks.Events.Formats[this.config.hook].afterClose,[]),!0):(O._debug(`Element ${this.GetId()} not found`),!1)}GetId(e,t){if(this.config.requiredPosition&&void 0===e)throw Error("Position is required for this format");let i=this.createId(`${this.config.name}`);return e&&(i+=`-${e}`),t&&(i+=`-${t}`),i}addScrollListener(e=!1,t,i,r){if(this.wasShown)return;let s=o=>{this.isMinimallyVisible(o,t,e,i,()=>{window.removeEventListener("scroll",s),r&&r()})};window.addEventListener("scroll",s)}isMinimallyVisible(e,t=250,i=!1,r,s){let o=r?r():document.getElementById(this.GetId());if(null===o)return;let{defaultUrl:n}=this.getInitialState();if(this.DOM.isMinimallyVisible(o)){if(this.wasShown)return;if(this.wasShown=!0,i){let e=o.querySelectorAll("iframe");for(let i=0;i{if("hidden"===document.visibilityState){e=setTimeout(()=>{this.imageUnload("&unload=1"),sessionStorage.setItem(h.UnloadReturnKey,"1")},1e3);return}"1"===sessionStorage.getItem(h.UnloadReturnKey)&&this.imageUnload("&return=1"),clearTimeout(e)})}this.DOM.bind(window,"beforeunload",()=>this.imageUnload("&unload=1"))}}autoCloseValidation(){if(!O.group.AutoClose)return;let{baseUrl:e}=this.getInitialState();this.autoCloseTimeout=window.setTimeout(()=>{this.DOM.customFetch(e+"&autoclose=1"),this.Close(!1)},1e3*O.group.AutoClose)}clearAutoClose(){this.autoCloseTimeout&&(clearTimeout(this.autoCloseTimeout),this.autoCloseTimeout=null)}imageUnload(e){let{baseUrl:t}=this.getInitialState(),i=new Image;i.style.display="none",i.src=t+e}},N=class extends H{constructor(e){super({name:"banner-cube",hook:"BannerCube",closeFormat:"base"},e)}Open(){var e,t,i,r;this.Hooks.Call(this.Hooks.Events.Formats.BannerCube.beforeOpen,[this.tracker.ID]);let s=this.getBlock(!1);if(!s)return!1;let o=this.Validator.isInGoogleAdManager(),n=this.GetId(""),a=this.DOM.create("div",{id:n},{cursor:"pointer",width:"300px",height:"250px",margin:"auto",perspective:"800px",perspectiveOrigin:"50% 225px"}),c=this.GetId("overlay"),d=this.DOM.shortCutCreate("overlay",{id:c},{zIndex:"14"}),u=this.DOM.create("div",{id:this.GetId("stage")},{transition:"transform 4s",transformStyle:"preserve-3d",position:"relative"}),h=this.GetId("close"),p=this.DOM.shortCutCreate("bannerClose",{id:h},o&&this.Validator.isEEECountry()?{display:"none"}:{}),g=this.DOM.shortCutCreate("anchorClever"),m=this.DOM.shortCutCreate("cleverLogo"),b=this.DOM.create("div",{id:this.GetId("shape")},{animation:"spin_Cube 14s infinite linear",position:"relative",top:"46px",margin:"0 auto",height:"200px",width:"200px",transformStyle:"preserve-3d"}),C={position:"absolute",height:"200px",width:"200px","box-sizing":"border-box","background-color":"rgba(255, 255, 255, 0.6)",transition:"-webkit-transform 1s ease-in-out","backface-visibility":"visible"},f={width:"100%","max-width":"300px",height:"100%","max-height":"250px",border:"none"},k=-90;for(let e=1;e<=4;e++){let t=this.DOM.create("div",{id:this.GetId("side-"+e)},l(l({},C),{transform:`rotateY(${k}deg) translateZ(100px)`}));k+=90;let i=this.DOM.create("iframe",{id:this.GetId("frame-"+e)},f);this.DOM.append(t,i.outerHTML),this.DOM.append(b,t.outerHTML)}let v=this.DOM.create("style");return v.type="text/css",v.appendChild(document.createTextNode("@keyframes spin_Cube { from {transform: rotateY(0);} to { transform: rotateY(-360deg); } }")),this.DOM.append(u,b.outerHTML),this.DOM.append(a,p.outerHTML),this.DOM.append(g,m.outerHTML),this.DOM.append(a,g.outerHTML),this.DOM.append(a,d.outerHTML),this.DOM.append(a,u.outerHTML),this.DOM.append(s,v.outerHTML),this.DOM.append(s,a.outerHTML),null==(e=s.querySelector("#"+h))||e.addEventListener("click",()=>{this.Close()}),null==(t=s.querySelector("#"+c))||t.addEventListener("click",()=>{this.Callback.processLandingAction(this.handleFormatClick(),this.tracker);let e=s.querySelector("#"+b.id);e&&(e.style.animationPlayState="running")}),null==(i=s.querySelector("#"+n))||i.addEventListener("mouseenter",()=>{let e=s.querySelector("#"+b.id);e&&(e.style.animationPlayState="paused")}),null==(r=s.querySelector("#"+n))||r.addEventListener("mouseleave",()=>{let e=s.querySelector("#"+b.id);e&&(e.style.animationPlayState="running")}),"loading"!==document.readyState?this.isMinimallyVisible(void 0,250,!0):document.addEventListener("DOMContentLoaded",e=>this.isMinimallyVisible(e,250,!0)),this.addScrollListener(!0),this.Hooks.Call(this.Hooks.Events.Formats.BannerCube.afterOpen,[this.tracker.ID]),!0}},P={BannerCube:N,Cube:class extends H{constructor(e){super({name:"cube",hook:"Cube",closeFormat:"base"},e)}Open(){var e,t,i,r;this.Hooks.Call(this.Hooks.Events.Formats.Cube.beforeOpen,[this.tracker.ID]);let s=this.getBlock(!1);if(!s)return!1;let o=this.Validator.isInGoogleAdManager(),n=this.GetId(""),l=this.DOM.create("div",{id:n},{cursor:"pointer",width:"300px",height:"250px",margin:"auto",position:"relative"}),a=this.GetId("overlay"),c=this.DOM.shortCutCreate("overlay",{id:a}),d=this.GetId("close"),u=this.DOM.shortCutCreate("bannerClose",{id:d},o&&this.Validator.isEEECountry()?{display:"none"}:{}),h=this.DOM.shortCutCreate("anchorClever"),p=this.DOM.shortCutCreate("cleverLogo",{id:this.GetId("logo")}),g=this.DOM.create("iframe",{id:this.GetId("iframe"),title:"Clever-iframe"},{width:"100%",maxWidth:"300px",height:"100%",maxHeight:"250px",minHeight:"200px",border:"none"});this.DOM.append(l,c.outerHTML),this.DOM.append(l,u.outerHTML),this.DOM.append(h,p.outerHTML),this.DOM.append(l,h.outerHTML),this.DOM.append(l,g.outerHTML),this.DOM.append(s,l.outerHTML);let m=document.getElementById(this.GetId("iframe"));return null==(e=s.querySelector("#"+d))||e.addEventListener("click",()=>{this.Close()}),null==(t=s.querySelector("#"+a))||t.addEventListener("mouseenter",()=>{var e;null==(e=null==m?void 0:m.contentWindow)||e.postMessage({in:!0},"*")}),null==(i=s.querySelector("#"+a))||i.addEventListener("mouseleave",()=>{var e;null==(e=m.contentWindow)||e.postMessage({in:!1},"*")}),null==(r=s.querySelector("#"+a))||r.addEventListener("click",()=>{this.Callback.processLandingAction(this.handleFormatClick(),this.tracker)}),"loading"!==document.readyState?this.isMinimallyVisible():document.addEventListener("DOMContentLoaded",e=>this.isMinimallyVisible(e)),this.addScrollListener(),this.Hooks.Call(this.Hooks.Events.Formats.Cube.afterOpen,[this.tracker.ID]),!0}},PushDown:class extends H{constructor(e){super({hook:"PushDown",name:"pushdown",closeFormat:"other"},e)}Open(){let e;this.Hooks.Call(this.Hooks.Events.Formats.PushDown.beforeOpen,[this.tracker.ID]);let t=this.Validator.isInGoogleAdManager(),i=.3*this.DOM.getViewportHeight()+"px",{defaultUrl:r,body:s}=this.getInitialState(),o="100%";this.tracker.FileW&&this.tracker.FileW>0&&(o=this.tracker.FileW+"px");let n=this.DOM.create("div",{className:this.GetId(),id:this.GetId()},{position:"relative",display:"block",minHeight:"250px",height:i,overflow:"hidden",boxSizing:"unset",top:"0",transition:"margin 0ms ease, height 0ms ease, opacity 0ms ease, padding 0ms ease",zIndex:"10",textAlign:"left",flex:"none"}),c=this.DOM.create("div",{className:this.GetId("info-pushdown"),id:this.GetId("info-pushdown")},{width:"150px",height:"30px",color:"#fff",padding:"0",boxSizing:"unset",top:"5px",left:"5px",fontSize:"9px",position:"relative",zIndex:"20",textShadow:"-1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000",marginBottom:"-40px",fontFamily:"verdana"}),d=this.DOM.shortCutCreate("anchorClever"),u=this.DOM.shortCutCreate("cleverLogoWhite",{},{position:"unset"});if(this.DOM.shortCutCreate("anchorClever"),this.DOM.append(d,u.outerHTML),this.DOM.append(c,d.outerHTML),O.User.Mobile){let i=this.DOM.create("div",{id:this.GetId("pushdown-close")},t&&this.Validator.isEEECountry()?{display:"none"}:{});e=this.DOM.setHTML(i,this.DOM.create("img",{src:L,alt:"close"},{width:"25px",height:"25px"}).outerHTML)}else e=this.DOM.create("img",{id:this.GetId("pushdown-close"),src:L,alt:"close"});Object.assign(e.style,h.btnCss);let p=this.DOM.shortCutCreate("overlay",{id:this.GetId("pushdown-img")},{position:"relative"}),g={width:o,height:"100%",backgroundColor:"#fff",top:"0",left:"0",cursor:"pointer",frameBorder:"0",border:"none",boxSizing:"unset",zIndex:"-1",position:"absolute",margin:"0 auto",display:"block"};O.User.Mobile&&(g=a(l({},g),{minHeight:"250px"}));let m=this.DOM.create("iframe",{className:this.GetId("push-frame"),id:this.GetId("push-frame"),title:"Clever-iframe",name:h.Class,src:r+"&hei="+(.3*this.DOM.getViewportHeight()).toFixed(2)+"px&ts="+this.Registry.TimeSpent,scrolling:"no"},g);if(m.addEventListener("load",()=>{this.DOM.css(n,"height",i),O.group.AutoClose>0&&setTimeout(()=>{this.Close(!1)},1e3*O.group.AutoClose)}),n.appendChild(c),n.appendChild(p),n.appendChild(e),n.appendChild(m),s.insertBefore(n,s.firstChild),p){let e=this.handleFormatClick({id:this.tracker.ID,ref:window.btoa(this.Registry.getLocationHref()),ruri:window.btoa(document.referrer),cmpId:this.TCF.cmpId});C(0,0,500),"loading"!==document.readyState?C():document.addEventListener("DOMContentLoaded",()=>C()),this.DOM.bind(p,"click",()=>{this.Callback.processLandingAction(e+"&ts="+this.Registry.TimeSpent,this.tracker),this.clearAutoClose(),this.Close(!1)})}return this.DOM.bind(e,"click",()=>{this.clearAutoClose(),this.Close()}),this.TrackerUtils.DoCallback(this.tracker,n&&n.offsetWidth>0&&n.offsetHeight>0),window.onresize=()=>{this.DOM.css(n,"height",.3*this.DOM.getViewportHeight()+"px")},O.group.AutoClose>0&&setTimeout(()=>{this.Close(!1)},1e3*O.group.AutoClose),this.Hooks.Call(this.Hooks.Events.Formats.PushDown.afterOpen,[this.tracker.ID]),this.autoCloseValidation(),!0}},StickyFooter:class extends H{constructor(e){super({hook:"StickyFooter",name:"sticky-footer",closeFormat:"other"},e),d(this,"Config",{CustomBody:void 0})}Open(){this.Hooks.Call(this.Hooks.Events.Formats.StickyFooter.beforeOpen,[this.tracker.ID]);let e=this.Validator.isInGoogleAdManager(),{defaultUrl:t,body:i}=this.getInitialState(this.Config.CustomBody),r=.3*this.DOM.getViewportHeight(),s=this.DOM.create("div",{id:this.GetId()},{cursor:"pointer",position:"fixed",display:"flex",width:"100%",height:"30vh",justifyContent:"center",background:"rgba(30, 30, 30, 0.9)",bottom:"0",zIndex:"100000",transition:"1s",left:"0"}),o=this.DOM.create("img",{id:this.GetId("logo"),src:R,alt:"Close"},{left:"10px",top:"10px",width:"15px",minWidth:"auto",position:"absolute",zIndex:"4500",margin:"0"}),n=this.DOM.create("img",{id:this.GetId("stickyfooter-close"),src:L,alt:"close"},e&&this.Validator.isEEECountry()?{display:"none"}:h.btnCss),l=this.DOM.create("div",{id:this.GetId("arrow")},{position:"absolute",display:"flex",justifyContent:"center",top:"0px",zIndex:"15",width:"30vw",minWidth:"auto",height:"5vh",maxHeight:O.User.Mobile?"auto":"5vh"}),a=this.DOM.create("img",{src:"https://assets.cleverwebserver.com/ArrowMinimal.png",alt:"arrow",id:this.GetId("arrowimg")},{top:"5px",height:O.User.Mobile?"1.6vh":"1.8vh",maxHeight:O.User.Mobile?"auto":"1.8vh",width:"auto",minWidth:"auto",position:"absolute",zIndex:"40",transition:"1s"}),c=this.DOM.shortCutCreate("anchorClever"),d=this.DOM.create("div",{id:this.GetId("shadow")},{position:"absolute",width:"100%",height:"100%",boxShadow:"rgba(0, 0, 0, 0.3) 0 -180px 100px -110px inset",zIndex:"9"}),u=this.DOM.create("iframe",{id:this.GetId("iframe"),name:h.Class,src:"about:blank",title:"Clever-iframe",frameBorder:"0",scrolling:"no"},{bottom:"0",left:"0",width:"100%",position:"relative",height:"100%",transition:"1s",border:"none"});this.DOM.append(s,n.outerHTML),this.DOM.append(s,d.outerHTML),this.DOM.append(l,a.outerHTML),this.DOM.append(s,l.outerHTML),this.DOM.append(s,u.outerHTML),this.DOM.append(c,o.outerHTML),this.DOM.append(s,c.outerHTML),i.insertBefore(s,i.firstChild);let p=e=>{this.DOM.css(s,"height",e?"30vh":"100px"),this.DOM.css(a,"transform","rotate("+(e?0:180)+"deg)")},g=!0;this.DOM.bind(l,"click",()=>{p(g=!g)});let m=()=>{g=!1,this.DOM.css(s,"height","100px"),this.DOM.css(u,"height","100%"),this.DOM.css(a,"transform","rotate(180deg)")};window.addEventListener("scroll",()=>m()),O._debug("Do Callback: StickyFooter"),this.TrackerUtils.DoCallback(this.tracker,!0);let b=t+"&hei="+r.toFixed(2);return this.DOM.attr(u,{src:b}),this.DOM.bind(d,"click",()=>{this.Callback.processLandingAction(this.handleFormatClick(),this.tracker),this.clearAutoClose(),this.Close(!1)}),O.group.AutoClose>0&&setTimeout(()=>{this.Close(!1)},1e3*O.group.AutoClose),this.DOM.bind(n,"click",()=>{this.clearAutoClose(),this.Close(),window.removeEventListener("scroll",m)}),this.Hooks.Call(this.Hooks.Events.Formats.StickyFooter.afterOpen,[this.tracker.ID]),this.autoCloseValidation(),!0}}},G=class{constructor(e,t,i,r,s,o,n,l,a,c,u,h,p,g=!1){this.Registry=e,this.DOM=t,this.Net=i,this.TrackerUtils=r,this.Cookie=s,this.Hooks=o,this.Callback=l,this.Validator=h,this.allowMainPage=g,d(this,"args"),d(this,"isForbiddenURL"),d(this,"isMainPage"),d(this,"trackerFormats",new Map),d(this,"current",null),d(this,"getNextTracker"),d(this,"getMultiproductTracker"),d(this,"getOrCreateFormat"),d(this,"getTracker"),this.isForbiddenURL=a.IsForbiddenURL(i.currentLocation()),this.isMainPage=a.IsMainPage(),this.args={Registry:e,Validator:h,DOM:t,AMP:n,Net:i,TrackerUtils:r,Hooks:o,Callback:l,URL:a,TCF:c,Translation:u,Tracker:this},this.getNextTracker=(e=p,t=!1)=>this._getNextTracker(e,t),this.getMultiproductTracker=e=>this._getMultiproductTracker(p,e),this.getOrCreateFormat=(e,t)=>this._getOrCreateFormat(p,e,t),this.getTracker=(e,t)=>this._getTracker(e,e,t)}initialize(){var e;if(this.current=null,this.Net.ExtraParam+=`&ctr=${O.User.CTR}&sz=${this.DOM.getViewportHeight()}`,!this.Validator.isAllowedToGetTrackers())return!1;let t=this.getNextTracker();t&&this.bindEvents(t),(null==t?void 0:t.multiproduct)&&(t=this.getMultiproductTracker(t))&&this.bindEvents(t);let i=this.Cookie.checkExpire();if(!t)return i&&(this.TrackerUtils.handleCalbackWithValidation("alternative",e=>u(this,null,function*(){(yield this.Net.inject(e).catch(()=>(O._debug("Alternative "+e+" Url"),!1)))&&O._debug("Alternative "+e+" Url")}),t),O.User.Mobile&&window.postMessage("clever|alternative","*")),O.User.Mobile&&window.postMessage("clever|callback","*"),!1;i||this.isForbiddenURL||this.skipOfferwallTracker(t)||(O.User.lastTracker=t.Sort,this.Cookie.saveLastTracker(t.Sort));let r=this.getNextTracker(void 0,!0);if(this.offerwallWasClicked()&&"offerwall"===t.Type){let t=JSON.parse(null!=(e=localStorage.getItem("clever-parameters"))?e:"");this.Cookie.saveLastTracker(t.lastTracker),O._debug("Offerwall clicked")}return r||(t&&!i&&this.Cookie.saveCounter(0,1),this.Cookie.deleteLastTracker()),this.addGarbageListener(t),localStorage.removeItem("clever-parameters"),t.ID}bindEvents(e){if(this.trackerFormats.has(e.ID)||this.Cookie.checkExpire()&&!this.DOM.Meta("alternative")&&e.cap&&this.Cookie.readTrackerCap(e.ID))return;let t={popunder:"popUnder",banner:"banner",bannerSponsorClick:"bannerSponsorClick",interscroller:"interScroller",miniscroller:"miniScroller",leaderboard:"leaderBoard",expandablebannerleft:"expandableBannerLeft",expandablebannerright:"expandableBannerRight",supertopboardscroll:"superTopBoardScroll",bannercube:"bannerCube",cube:"cube",box3d:"box3d",mosaic:"mosaic",interactivebanner:"interactiveBanner",scratchbanner:"scratchBanner"},i={},r=e.Type;if(t[r]&&(O._debug(`${r} format detected`),i[t[r]]=!0),Object.values(i).every(e=>!e))for(let e of this.DOM.getByClass(h.Class))this.DOM.remove(e);this.openTracker(e)}openTracker(e){O._debug(`Format '${e.Type}' will try to execute`);let t=e.Type;if(!t){O._debug("No format was detected");return}if(!this.Cookie.checkExpire()||e.cap&&!this.Cookie.readTrackerCap(e.ID)){if(["scratchinterstitial","inter","interclick","interclose","interonclose","internotime","layerleft","layerright","pushdown"].includes(t)&&O.group.DisableIframes&&top!==self)return this.TrackerUtils.handleDisabledIframe();if(("layerleft"===t||"layerright"===t)&&(!O.User.Mobile||e.FileW>0&&this.DOM.getViewportWidth()>e.FileW))return this.getOrCreateFormat(e,P.LayerOver).Open();let i=this.findFormatByTrackerType(t);return i?this.getOrCreateFormat(e,i).Open():(this.Callback.FailedToLoad(),O.User.Mobile&&window.postMessage("clever|callback","*"),O._debug("No tracker was loaded"))}O._debug("CAP")}_getNextTracker(e,t){let i=this.Cookie.readCookie("lastTracker");O.User.lastTracker=i?Number(i):void 0;let r=this.getTracker(e,t);if(r)return t||(this.current=r),r}_getMultiproductTracker(e,t){if(this.Registry.isMultiProduct){let i=e.filter(e=>1===e.multiproduct&&e.ID!==t.ID);return this.getNextTracker(i)}}_getOrCreateFormat(e,t,i){let r=this.trackerFormats.get(t.ID);if(r)return r;let s=new i(l({tracker:t,trackers:e},this.args));return this.trackerFormats.set(t.ID,s),this.isForbiddenURL||!t.cap||this.offerwallWasClicked()||this.Cookie.saveTrackerCap(t.ID,t.Sort,t.cap),s}findFormatByTrackerType(e){var t;if(["interScroller","interScroller-iframe","topScroll","topScrollSponsorClick","miniScroller","superTopBoardScroll","leaderBoard","expandableBannerLeft","expandableBannerRight","bannerCube","cube","scratchBanner","stickyClick","stickyFooter","stickyPop","stickySponsorClick","stickySponsorClickTop","stickyTest","mosaic","offerwall","box3D","banner-app","banner-app-video","banner-app-countdown","interactiveBanner","interactiveSticky","mobilePull","pushDown","pushdownSponsorClick","inter","interclick","interclose","interonclose","internotime","scratchinterstitial","layerleft","layerright","banner","bannerSponsorClick"].find(t=>t.toLowerCase()===e.toLowerCase())){let i={"interScroller-iframe":{className:"IframeInterScroller"},"banner-app":{className:"BannerApp"},"banner-app-video":{className:"BannerAppVideo"},"banner-app-countdown":{className:"BannerAppCountdown"},scratchinterstitial:{className:"ScratchInterstitial"},inter:{className:"Interstitial"},interclose:{className:"Interstitial"},interclick:{className:"Interstitial"},interonclose:{className:"Interstitial"},internotime:{className:"Interstitial"},layerleft:{className:"Interstitial"},layerright:{className:"Interstitial"}}[e.toLowerCase()],r=null!=(t=null==i?void 0:i.className)?t:e,s=Object.keys(P).find(e=>e.toLowerCase()===r.toLowerCase());if(!s)return;return O._debug(`Format ${s} found`),P[s]}}_getTracker(e,t,i){if(0===t.length)return;let r=!!O.User.Mobile&&O.User.Mobile>0,s=r&&2===O.group.DisableMobile,o=e.length!==t.length,n=O.User.lastTracker;for(let t of e=e.filter(e=>void 0===n||e.Sort>n)){if(this.Validator.isInvalidTracker(t)||(this.Validator.adjustTrackerForItaly(t),!o&&void 0!==n&&t.Sort<=n))continue;if(this.skipOfferwallTracker(t)&&!i){O._debug("Skipping offerwall tracker...");continue}let l=t.CTR===O.User.CTR;if(t.OnlyMobile>=1){let i=this.handleTrackerForBothDevices(l,t,e,r);if(i)return i;continue}if(l){if(t.Region){if(t.Region===O.User.r)return t}else if(!this.Validator.isTrackerFromUserRegion(e))return t}if(!s&&(l&&t.Region&&t.Region===O.User.r||"AA"===t.CTR)||l&&!t.Region&&!this.Validator.isTrackerFromUserRegion(e))return t}}addGarbageListener(e){window.addEventListener("message",t=>{var i;if("string"!=typeof t.data||!this.Registry.getPostMessageSources(t.origin)||!t.data.startsWith("garbage"))return;O._debug("Garbage: "+t.data.replace("garbage-clever|",""));let r=O.group.ID,s=[`div[class="${h.Class}"]`,`div[class="${h.MultiClass}"]`,`div[id^="clever-${r}-"]`,`img[id^="clever-${r}-"]`];for(let e of(this.DOM.clearEvents(),this.Callback.FailedToLoad(),s))null==(i=document.querySelector(e))||i.remove();if("offerwall"===e.Type){let e=this.DOM.getByTag("body")[0];this.DOM.css(e,{overflow:"unset"})}this.Hooks.Call(this.Hooks.Events.Garbage.afterRemove,[])})}skipOfferwallTracker(e){var t,i,r,s;if(this.isForbiddenURL||!e||"offerwall"!==e.Type||(null==(t=window.location.search)?void 0:t.includes("?google_preview=")))return!1;let o=this.DOM.getByClass(h.OfferwallClass)[0];if(!o&&this.Validator.isInGoogleAdManager()&&!I.exists()){let e=this.DOM.getByID(this.DOM.Meta("target"));o=null!=(s=null==(r=null==(i=null==e?void 0:e.contentWindow)?void 0:i.document)?void 0:r.querySelector(`.${h.OfferwallClass}`))?s:o}return!o||this.isMainPage&&!this.allowMainPage}offerwallWasClicked(){return null!==localStorage.getItem(h.LocalStorageKey)}handleTrackerForBothDevices(e,t,i,r){if(1!==t.OnlyMobile||r){if(e){if(t.Region){if(t.Region===O.User.r)return t}else if(!this.Validator.isTrackerFromUserRegion(i))return t}if("AA"===t.CTR)return t}}},W=class{constructor(e,t,i){this.DOM=e,this.Callback=t,this.URL=i,d(this,"multiProductDivs",[])}getMultiProductDiv(e){var t;let i=this.DOM.getByClass(h.MultiClass);if(0===i.length){let e=this.DOM.Meta("target");if(e&&window.name!==e){let i=this.DOM.getByID(e);if(!i)return O._debug("No sourceBannerFrame found"),this.Callback.FailedToLoad(),!1;O._debug("Placeholder found by target");let r=this.DOM.create("div");r.className=h.MultiClass,i.setAttribute("style","z-index:1; position:absolute; margin: auto; left: 0px; right: 0px"),null==(t=i.parentNode)||t.appendChild(r),this.multiProductDivs.push({div:r})}let i=this.DOM.getByClass(h.Class)[0];i&&this.multiProductDivs.push({div:i,isMain:!0})}for(let e of i)this.multiProductDivs.push({div:e});let r=this.multiProductDivs.findIndex(t=>!t.isMain&&(!t.trackerId||t.trackerId===e.ID));return!!this.multiProductDivs[r]&&(this.multiProductDivs[r].trackerId=e.ID,this.multiProductDivs[r])}handleCalbackWithValidation(e,t,i){let r=this.DOM.Meta(e);if(r){if(O._debug(`Type: ${typeof r}`),this.URL.validateUrl(r)){O._debug(`${r} is Url`),t(r=(r=r.replace("{hstpuser}",y(JSON.stringify(O.User)))).replace("{hstpurl}",y(JSON.stringify(i))));return}if("function"==typeof r){var s;O._debug(`Callback ${r} is function`),s=O.User,r(s,i);return}if(r&&"string"==typeof r){if("function"==typeof window[r]){O._debug("Callback "+r+" is in main window"),function(e,t,i){(0,e[r])(t,i)}(window,O.User,i);return}O._debug("Callback "+r+" try to eval"),function(e,t){try{let i=(0,eval)(r);"function"==typeof i&&i(e,t)}catch(e){}}(O.User,i)}}}DoCallback(e,t){this.Callback.View(),t&&this.handleCalbackWithValidation("callback",e=>{let t=new Image(1,1);t.style.display="none",setTimeout(()=>{t.src=e},0)},e)}handleDisabledIframe(){let e=window.location.href+"?wn="+encodeURIComponent(window.name)+"&r1="+encodeURIComponent(document.referrer);try{setTimeout(function(){top&&(top.location.href=e)},1e3),O._debug("Iframe Acess")}catch(t){setTimeout(function(){parent.location.href=e},1e3)}return!1}},z=class{constructor(e,t,i="staging-sender.cleverwebserver.com"){this.forbiddenURLs=e,this.DOM=t,this.senderUrl=i,d(this,"urlRegex",/^(https?|s?ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i)}IsForbiddenURL(e){return this.forbiddenURLs.some(t=>{try{let i=decodeURIComponent(decodeURIComponent(t));return e.startsWith(i)||e.startsWith("www."+i)||e.includes(i)}catch(e){console.log("Forbidden URL is incorrect")}return!1})}FetchDomain(e){return e.replace("http://","").replace("https://","").replace("capacitor://","").replace("www.","").split(/[/?#]/)[0].replace(/^[./ ]+/g,"").replace(/[./ ]+$/g,"")}CurrentDomain(){return this.FetchDomain(k())}BaseUrl(){return`${this.senderUrl}/group/${O.group.ID}`}validateUrl(e){return this.urlRegex.test(e)}IsValid(e){try{return new URL(e),!0}catch(e){return!1}}GetExternalReferer(){var e;let t;return this.DOM.Meta("gam-ref-url")&&(t=null==(e=this.DOM.Meta("gam-ref-url"))?void 0:e.replace("%%REFERRER_URL_UNESC%%","")),t||(t=document.referrer),t.length>h.maxLengthReferer&&(t=t.slice(0,h.maxLengthReferer)),t}IsMainPage(){let e=v("pathname");return"/"===e||""===e}},$=class{constructor(e,t,i,r,s){this.Registry=e,this.TCF=t,this.Cookie=i,this.DOM=r,d(this,"specificBrands",["snai","quigioco"]),d(this,"isTrackerFromUserRegion"),d(this,"isInGoogleAdManager",()=>{var e;let t=window.location.href,i=document.referrer;return!!(["doubleclick.net","googlesyndication.com","googleadservices.com"].some(e=>t.includes(e)||i.includes(e))||(null==(e=this.DOM.Meta("target"))?void 0:e.includes("google_ads_iframe_")))}),this.isTrackerFromUserRegion=()=>this._isTrackerFromUserRegion(s)}isAllowedToGetTrackers(){return 1===O.group.DisableMobile&&O.User.Mobile||1===O.User.bot?(O._debug("Bot"),!1):"file:"!==document.location.protocol||(O._debug("Try to access local"),!1)}isInvalidTracker(e){return!!this.isAllowedBundleId(e)||this.isBlockedByMobileOnly(e)||this.isBlockedByRegion(e)||this.isBlockedByTCF(e)||this.isTrackerOnCap(e)||this.isInvalidPVTSorPCTS(e)}isAllowedBundleId(e){return"A"===O.group.ads_script_type&&(O.User.Platform!==e.script_type||this.Registry.CurrentApp&&this.Registry.CurrentApp!==e.bundleId)}isBlockedByMobileOnly(e){return 2!==e.OnlyMobile&&!!O.User.Mobile&&0===e.OnlyMobile&&(O._debug("Tracker is desktop only"),!0)}isBlockedByRegion(e){if(!e.brand)return!1;let t=this.Registry.BlockedBrandsByRegion[e.brand];return!!(e.brand in this.Registry.BlockedBrandsByRegion&&O.User.CTR in t&&O.User.r&&t[O.User.CTR].includes(O.User.r))&&(O._debug(`Blocked Brand: ${e.brand} for Region: ${O.User.r}`),!0)}adjustTrackerForItaly(e){var t;if("IT"===e.CTR&&"cube"===e.Type&&"888"!==e.Landing){let i="bannercube";this.specificBrands.includes(null!=(t=e.Landing)?t:"")&&"casino"==e.Vertical&&(i="cube"),e.Type=i}}isBlockedByTCF(e){return!!(e.brand&&this.TCF.requiredBrands.includes(e.brand)&&this.TCF.isRequired())&&!this.TCF.exists()&&(O._debug(e.brand+" can be shown only via TCF"),!0)}isTrackerOnCap(e){return this.Cookie.checkExpire()?!e.cap||!!this.Cookie.readTrackerCap(e.ID):!!(e.cap&&this.Cookie.readTrackerCap(e.ID))&&(O._debug(`Tracker ${e.ID} on cap`),!0)}_isTrackerFromUserRegion(e){return e.some(e=>e.Region&&e.Region===O.User.r&&e.CTR===O.User.CTR&&e.OnlyMobile===O.User.Mobile)}isEEECountry(){let e=O.User.CTR;return!!e&&h.EEECountries.includes(e)}isInvalidPVTSorPCTS(e){var t;let i=null==(t=g[O.group.ID])?void 0:t.includes(O.User.CTR);if(77175===O.group.ID&&"BR"===e.CTR){let t=h.browserPVTSAllowed.includes(O.User.Browser),i="iOS"===O.User.Platform,r=e.Type.includes("SponsorClick");return t?!!i&&!r:!r}if(!h.validTrackerIds.includes(e.ID)&&!i)return!1;let r=e.Type.includes("SponsorClick");return h.browserPVTSAllowed.includes(O.User.Browser)&&"iOS"!==O.User.Platform?r:!r}},j={IT:{CLOSE:"Chiudi",CLOSE_AD:"Chiudi l'annuncio",CLOSE_VISIT_SITE:"Chiudi e torna al sito",VISIT_SITE:"Visita il sito",CONTINUE:"Continue"},EN:{CLOSE:"Close",CLOSE_AD:"Close the Ad",CLOSE_VISIT_SITE:"Skip and Visit Site",VISIT_SITE:"Visit Site",CONTINUE:"Continue"},CN:{CLOSE:unescape("%u5173%u95ED"),CLOSE_AD:unescape("%u5173%u95ED%u5E7F%u544A"),CLOSE_VISIT_SITE:unescape("%u8DF3%u8FC7%uFF0C%u8BBF%u95EE%u7F51%u7AD9"),VISIT_SITE:unescape("%u8BBF%u95EE%u7F51%u7AD9"),CONTINUE:"Continue"},ES:{CLOSE:"Cerrar",CLOSE_AD:"Cerrar el anuncio",CLOSE_VISIT_SITE:"Visitar Anunciante",VISIT_SITE:"Visitar la web",CONTINUE:"Continue"},MX:{CLOSE:"Cerrar",CLOSE_AD:"Cerrar el anuncio",CLOSE_VISIT_SITE:"Visitar Anunciante",VISIT_SITE:"Visitar la web",CONTINUE:"Continue"},PT:{CLOSE:"Fechar",CLOSE_AD:"Fechar An\xfancio",CLOSE_VISIT_SITE:"Fechar e visitar",VISIT_SITE:"Visitar pagina",CONTINUE:"Continue"},BR:{CLOSE:"Fechar",CLOSE_AD:"Fechar Pub",CLOSE_VISIT_SITE:"Fechar e visitar",VISIT_SITE:"Visitar pagina",CONTINUE:"Continue"},HU:{CLOSE:"Bezár",CLOSE_AD:"Zárja be a hirdetést",CLOSE_VISIT_SITE:"Tovább az oldalra",VISIT_SITE:"Oldal megtekintése",CONTINUE:"Continue"},TR:{CLOSE:"kapat",CLOSE_AD:"Reklamı Kapat",CLOSE_VISIT_SITE:"Kapa ve siteye git",VISIT_SITE:"Bu siteyi ziyaret et",CONTINUE:"Continue"},PL:{CLOSE:"Zamknij",CLOSE_AD:"Zamknij ogłoszenie",CLOSE_VISIT_SITE:"Pomiń i odwiedź stronę",VISIT_SITE:"Zobacz portal",CONTINUE:"Continue"},SE:{CLOSE:"Close",CLOSE_AD:"St\xe4ng annonsen",CLOSE_VISIT_SITE:"Skip and visit Advertiser",VISIT_SITE:"Visit Site",CONTINUE:"Continue"},FR:{CLOSE:"Fermer",CLOSE_AD:"Fermez l'annonce",CLOSE_VISIT_SITE:"Acc\xe8der directement \xe0 la publicit\xe9",VISIT_SITE:"Acc\xe9der au site",CONTINUE:"Continue"},BE:{CLOSE:"Fermer",CLOSE_AD:"Fermez l'annonce",CLOSE_VISIT_SITE:"Acc\xe9der directement au site",VISIT_SITE:"Acc\xe9der au site",CONTINUE:"Continue"},CZ:{CLOSE:unescape("Zav%u0159%EDt"),CLOSE_AD:unescape("Zav%u0159ete%20reklamu"),CLOSE_VISIT_SITE:unescape("P%u0159esko%u010Dit%20a%20nav%u0161t%EDvit%20str%E1nku"),VISIT_SITE:unescape("Nav%u0161t%EDvit%20str%E1nku"),CONTINUE:"Continue"},RU:{CLOSE:"Закрыть",CLOSE_AD:"Закрыть рекламу",CLOSE_VISIT_SITE:"Пропустить и зайти на сайт",VISIT_SITE:"Зайти на сайт",CONTINUE:"Продолжить"}},q=class{Get(e,t="EN"){return j[t]?j[t][e]:j.EN[e]}getTranslation(e){return j[e]?j[e]:j.EN}};return class e{constructor(e){var t;d(this,"Version","2.39.6"),d(this,"Registry"),d(this,"Hooks"),d(this,"SafeFrame"),d(this,"AMP"),d(this,"URL"),d(this,"DOM"),d(this,"TCF"),d(this,"Net"),d(this,"Tracker"),d(this,"TrackerUtils"),d(this,"Validator"),d(this,"Translation"),d(this,"Cookie"),d(this,"Callback"),e.trackers=this.normalizeTrackers(Object.values(null!=(t=e.trackers)?t:{})),0===e.trackers.length&&console.warn("No trackers created");let{forbiddenUrls:i,senderUrl:r}=e,s=c(e,["forbiddenUrls","senderUrl"]);this.DOM=new U(s.group),this.URL=new z(i,this.DOM,r),this.AMP=new F(this.URL,this.DOM),this.Callback=new S(this.DOM,this.URL),this.SafeFrame=new I(this.URL),this.Registry=new O(s,this.SafeFrame,this.AMP,this.URL,this.DOM,e.trackers),this.TCF=new B,this.Cookie=new E(this.Registry),this.Validator=new $(this.Registry,this.TCF,this.Cookie,this.DOM,e.trackers),this.Net=new A(this.Version,this.DOM,this.Registry,this.URL,this.AMP,this.TCF,this.Validator),this.Hooks=new _,this.Translation=new q,this.TrackerUtils=new W(this.DOM,this.Callback,this.URL),this.Tracker=new G(this.Registry,this.DOM,this.Net,this.TrackerUtils,this.Cookie,this.Hooks,this.AMP,this.Callback,this.URL,this.TCF,this.Translation,this.Validator,e.trackers),this.dynamicUrl()}static get Init(){return class extends e{constructor(...e){super({trackers:e[0],group:e[1],timeout:e[2],whitelistDomains:e[3],whitelistApps:e[4],forbiddenUrls:e[5],callbackUrl:e[6],senderUrl:e[7]})}}}dynamicUrl(){if("undefined"!=typeof window){let e=window.location.hostname;for(let t of m)t.test(e)&&(this.Registry.Whitelist=this.Registry.Whitelist.concat(e))}}exec(){return u(this,null,function*(){if(this.Hooks.Call(this.Hooks.Events.Generic.beforeRun,[]),this.Registry.Latency.Start=new Date,!this.Registry.CallbackUrl)return this.Hooks.Call(this.Hooks.Events.Generic.afterRun,[]),!1;if(!(yield this.Net.inject(this.Registry.CallbackUrl))){O._debug("UI failed to load");return}if(this.Registry.normalizeUser(),O._debug("UI Loaded"),this.Registry.Latency.End=new Date,this.Hooks.Call(this.Hooks.Events.Generic.afterUI,[]),this.AMP.isEnabled()&&this.AMP.exists())return O._debug("Loading via AMP observer"),this.AMP.registerViewObserver(()=>this.LoaderCode()),!0;let e=(this.TCF.isRequired()||this.TCF.isEnabled())&&this.TCF.exists();return O.group.DOMLoad?(e?(O._debug("Loading via event TCF"),D(()=>this.TCF.registerEventListeners())):(O._debug("Loading via listener"),D(()=>this.LoaderCode())),!0):e?(O._debug("Loading via TCF"),this.TCF.registerEventListeners(()=>this.LoaderCode()),!0):(this.Hooks.Call(this.Hooks.Events.Generic.afterRun,[]),this.LoaderCode())})}LoaderCode(){return u(this,null,function*(){var e,t,i,r,s,o,n,l,a,c;let d=window.CLEVER_CALLBACK_LOAD;d&&("string"==typeof d&&this.URL.validateUrl(d)?yield this.Net.inject(d):"function"==typeof d&&d());let u=this.Net.buildURI("https://call.cleverwebserver.com",{id:O.group.ID,c:null!=(e=O.User.CTR)?e:"",r:null!=(t=O.User.r)?t:"",l:this.Registry.Latency.End.getTime()-this.Registry.Latency.Start.getTime(),b:null!=(i=O.User.Browser)?i:"",bv:null!=(r=O.User.bv)?r:"",os:null!=(s=O.User.Platform)?s:"",mob:null!=(o=O.User.Mobile)?o:0,v:this.Version,lg:navigator.language,ref:window.btoa(null!=(n=this.Registry.getLocationHref())?n:""),ruri:window.btoa(this.URL.GetExternalReferer()),s:null!=(l=O.User.s)?l:"",e:null!=(a=O.User.e)?a:"",st:null!=(c=O.group.ads_script_type)?c:""});return this.DOM.customFetch(u),!!this.Tracker.initialize()||(console.warn("Tracker ID not found"),this.Callback.FailedToLoad(),!1)})}normalizeTrackers(e){return e.map((e,t)=>{var i,r,s,o,n,c,d;return a(l({},e),{FileW:Number(null!=(i=e.FileW)?i:0),FileH:Number(null!=(r=e.FileH)?r:0),multiproduct:Number(null!=(s=e.multiproduct)?s:0),OnlyMobile:Number(null!=(o=e.OnlyMobile)?o:0),DisallowOnTarget:Number(null!=(n=e.DisallowOnTarget)?n:0),CTR:null!=(c=e.CTR)?c:"AA",Sort:Number(null!=(d=e.Sort)?d:t)})})}}})(),window.CleverCore=new window.CC.Init([{AllowMobile:1,CTR:"BR",DOMLoad:0,Expires:0,FileH:250,FileW:300,GroupID:66436,ID:1097166,Iframe:null,Landing:"esportesdasorte",OnlyMobile:0,Region:"",Sort:2,TrackerID:792612,Type:"cube",Vertical:"sports",brand:"esportesdasorte",bundleId:null,cap:null,is_forbidden_enabled:1,is_random:0,multiproduct:0,publisher_app_id:null,script_type:null},{AllowMobile:1,CTR:"BR",DOMLoad:0,Expires:0,FileH:250,FileW:300,GroupID:66436,ID:1097167,Iframe:null,Landing:"esportesdasorte",OnlyMobile:1,Region:"",Sort:3,TrackerID:792613,Type:"cube",Vertical:"sports",brand:"esportesdasorte",bundleId:null,cap:null,is_forbidden_enabled:1,is_random:0,multiproduct:0,publisher_app_id:null,script_type:null},{AllowMobile:1,CTR:"BR",DOMLoad:0,Expires:0,FileH:250,FileW:300,GroupID:66436,ID:1106254,Iframe:null,Landing:"novibet",OnlyMobile:0,Region:"",Sort:4,TrackerID:801699,Type:"cube",Vertical:"sports",brand:"novibet",bundleId:null,cap:null,is_forbidden_enabled:1,is_random:0,multiproduct:0,publisher_app_id:null,script_type:null},{AllowMobile:1,CTR:"BR",DOMLoad:0,Expires:0,FileH:250,FileW:300,GroupID:66436,ID:1106255,Iframe:null,Landing:"novibet",OnlyMobile:1,Region:"",Sort:5,TrackerID:801700,Type:"cube",Vertical:"sports",brand:"novibet",bundleId:null,cap:null,is_forbidden_enabled:1,is_random:0,multiproduct:0,publisher_app_id:null,script_type:null},{AllowMobile:1,CTR:"AO",DOMLoad:0,Expires:0,FileH:250,FileW:300,GroupID:66436,ID:1097172,Iframe:null,Landing:"888africa",OnlyMobile:0,Region:"",Sort:6,TrackerID:792618,Type:"cube",Vertical:"casino",brand:"888africa",bundleId:null,cap:null,is_forbidden_enabled:1,is_random:0,multiproduct:0,publisher_app_id:null,script_type:null},{AllowMobile:1,CTR:"AO",DOMLoad:0,Expires:0,FileH:250,FileW:300,GroupID:66436,ID:1097173,Iframe:null,Landing:"888africa",OnlyMobile:1,Region:"",Sort:7,TrackerID:792619,Type:"cube",Vertical:"casino",brand:"888africa",bundleId:null,cap:null,is_forbidden_enabled:1,is_random:0,multiproduct:0,publisher_app_id:null,script_type:null},{AllowMobile:1,CTR:"MZ",DOMLoad:0,Expires:0,FileH:250,FileW:300,GroupID:66436,ID:1097174,Iframe:null,Landing:"888africa",OnlyMobile:0,Region:"",Sort:8,TrackerID:792620,Type:"cube",Vertical:"sports",brand:"888africa",bundleId:null,cap:null,is_forbidden_enabled:1,is_random:0,multiproduct:0,publisher_app_id:null,script_type:null},{AllowMobile:1,CTR:"MZ",DOMLoad:0,Expires:0,FileH:250,FileW:300,GroupID:66436,ID:1097175,Iframe:null,Landing:"888africa",OnlyMobile:1,Region:"",Sort:9,TrackerID:792621,Type:"cube",Vertical:"sports",brand:"888africa",bundleId:null,cap:null,is_forbidden_enabled:1,is_random:0,multiproduct:0,publisher_app_id:null,script_type:null},{AllowMobile:1,CTR:"AO",DOMLoad:0,Expires:0,FileH:250,FileW:300,GroupID:66436,ID:1106250,Iframe:null,Landing:"bantubet",OnlyMobile:0,Region:"",Sort:10,TrackerID:801695,Type:"cube",Vertical:"sports",brand:"bantubet",bundleId:null,cap:null,is_forbidden_enabled:1,is_random:0,multiproduct:0,publisher_app_id:null,script_type:null},{AllowMobile:1,CTR:"AO",DOMLoad:0,Expires:0,FileH:250,FileW:300,GroupID:66436,ID:1106251,Iframe:null,Landing:"bantubet",OnlyMobile:1,Region:"",Sort:11,TrackerID:801696,Type:"cube",Vertical:"sports",brand:"bantubet",bundleId:null,cap:null,is_forbidden_enabled:1,is_random:0,multiproduct:0,publisher_app_id:null,script_type:null}],{AMP:0,AutoClose:0,DOMLoad:0,DisableIframes:1,DisableMobile:0,Disabled:1,Expire:0,ExpireMobile:0,ID:66436,SafeFrame:0,Subdomains:0,TCF:0,TriggerTimer:0,UseLink:0,ads_script_type:"W",last_build_date:"2025-05-27T05:32:42Z",view:1},0,[],[],[],"https://ui.cleverwebserver.com","https://view.clvrads.com"),window.CleverCore.Registry.Debug("v"+window.CleverCore.Version),window.CleverCore.Registry.Debug(window.CleverCore.Registry.Group.ID),window.CleverCore.Registry.Debug("2025-05-27 05:32:42"),window.CleverCore.Registry.Group.Disabled?window.CleverCore.Registry.Debug("Script disabled"):window.CleverCore.Registry.Group.TriggerTimer>0?(window.CleverCore.Registry.Debug("Waiting for "+window.CleverCore.Registry.Group.TriggerTimer+" millisecond(s)..."),setTimeout(function(){window.CleverCore.exec()},window.CleverCore.Registry.Group.TriggerTimer)):window.CleverCore.exec());