(()=>{"use strict";var e={};e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}();var t="cc_dm";const r={tagConfigUrl:"/p5ah48ed5m/08t8ze7xxo.json?",version:"3.134.0",devModeQueryStringParameter:t,adManagerWindowNamespace:"AdManager",helpersWindowNamespace:"_CAdM",overrideConfigWindowNamespace:"__adm_override",tagIdIdentifier:"data-kur8gb3d76",clickIdIdentifier:"data-clickId",noAutostartIdentifier:"data-admman",customDomainIdentifier:"data-custom-domain",devMode:window.location.search.includes("".concat(t,"=1")),auctionUrl:"https://ssp.zog.link/get/",initTrackingUrl:"https://metricswpsh.com",subCookieName:"source",subQueryStringKey1:"promo",subQueryStringKey2:"source",vastProxyAuctionRoute:"/a/",vastProxyWrappedUrlPath:"/c/",adManagerTrackingProxyPath:"/api/track",sentryDSNUrl:"MISSING_ENV_VAR".SENTRY_DSN,buildEnv:"production",buildUrl:"https://js.wpadmngr.com/static/adManager",isMB:!!parseInt("0",10),isOnCl:!!parseInt("0",10),sharedStorageUrl:"https://storage.multstorage.com/log/count.html",keywordsServiceUrl:"https://ntvpforever.com/keywords",cabsId:parseInt("1",10),utmSource:"data-utm-source",utmMedium:"data-utm-medium",utmContent:"data-utm-content",utmCampaign:"data-utm-campaign"};class n{constructor(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.logPrefix=e,this.silentMode=t}info(){for(var e=arguments.length,t=new Array(e),r=0;r1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length-1;if(!e.length||t>r)return null;var n=e.slice(t,r+1);return n[Math.floor(Math.random()*n.length)]}function o(e){return new Promise((t=>{e||t({status:"error"});var r=new Image;r.crossOrigin="anonymous",r.src=e,r.onload=()=>t({status:"ok"}),r.onerror=()=>t({status:"error"})}))}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:250,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2e3;return new Promise((n=>{var i=0,o=setInterval((()=>{try{var a=document.querySelectorAll(e);a&&(clearInterval(o),n(a)),(i+=t)>=r&&(clearInterval(o),n(null))}catch(e){clearInterval(o),n(null)}}),t)}))}function s(e){return"[object Array]"===Object.prototype.toString.call(e)}function c(e){return null!==e&&"object"==typeof e}function u(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function l(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),s(e))for(var r=0,n=e.length;r0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;return Math.floor(Math.random()*(t-e)+e)}var m=function(){return m=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]=i+r?(i=a,[4,g(0)]):[3,3]):[3,4];case 2:s.sent(),s.label=3;case 3:return++o,[3,1];case 4:return[2,n]}}))}))}function y(e){e.then(void 0,(function(){}))}function S(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var r=[0,0,0,0];return r[3]+=e[3]+t[3],r[2]+=r[3]>>>16,r[3]&=65535,r[2]+=e[2]+t[2],r[1]+=r[2]>>>16,r[2]&=65535,r[1]+=e[1]+t[1],r[0]+=r[1]>>>16,r[1]&=65535,r[0]+=e[0]+t[0],r[0]&=65535,[r[0]<<16|r[1],r[2]<<16|r[3]]}function k(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var r=[0,0,0,0];return r[3]+=e[3]*t[3],r[2]+=r[3]>>>16,r[3]&=65535,r[2]+=e[2]*t[3],r[1]+=r[2]>>>16,r[2]&=65535,r[2]+=e[3]*t[2],r[1]+=r[2]>>>16,r[2]&=65535,r[1]+=e[1]*t[3],r[0]+=r[1]>>>16,r[1]&=65535,r[1]+=e[2]*t[2],r[0]+=r[1]>>>16,r[1]&=65535,r[1]+=e[3]*t[1],r[0]+=r[1]>>>16,r[1]&=65535,r[0]+=e[0]*t[3]+e[1]*t[2]+e[2]*t[1]+e[3]*t[0],r[0]&=65535,[r[0]<<16|r[1],r[2]<<16|r[3]]}function _(e,t){return 32===(t%=64)?[e[1],e[0]]:t<32?[e[0]<>>32-t,e[1]<>>32-t]:(t-=32,[e[1]<>>32-t,e[0]<>>32-t])}function C(e,t){return 0===(t%=64)?e:t<32?[e[0]<>>32-t,e[1]<>>1]),e=A(e=k(e,[4283543511,3981806797]),[0,e[0]>>>1]),e=A(e=k(e,[3301882366,444984403]),[0,e[0]>>>1])}function T(e){return parseInt(e)}function I(e){return parseFloat(e)}function O(e,t){return"number"==typeof e&&isNaN(e)?t:e}function P(e){return e.reduce((function(e,t){return e+(t?1:0)}),0)}function E(e){return e&&"object"==typeof e&&"message"in e?e:{message:e}}function N(e,t,r){var n=Object.keys(e).filter((function(e){return!function(e,t){for(var r=0,n=e.length;r=4}function U(){var e=window,t=navigator;return P(["webkitPersistentStorage"in t,"webkitTemporaryStorage"in t,0===t.vendor.indexOf("Google"),"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function L(){var e=window,t=navigator;return P(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,0===t.vendor.indexOf("Apple"),"getStorageUpdates"in t,"WebKitMediaKeys"in e])>=4}var H={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]};var F={fonts:function(){var e=this;return D((function(t,r){return f(e,[t,r],void 0,(function(e,t){var r,n,i,o,a,s,c,u,l,d,p,h=t.document;return v(this,(function(e){switch(e.label){case 0:return(r=h.body).style.fontSize="48px",(n=h.createElement("div")).style.setProperty("visibility","hidden","important"),i={},o={},a=function(e){var t=h.createElement("span"),r=t.style;return r.position="absolute",r.top="0",r.left="0",r.fontFamily=e,t.textContent="mmMwWLliI0O&1",n.appendChild(t),t},s=function(e,t){return a("'".concat(e,"',").concat(t))},c=function(){for(var e={},t=function(t){e[t]=j.map((function(e){return s(t,e)}))},r=0,n=M;r')}((function(e,t){for(var r={},n={},i=0,o=Object.keys(H);i=3||r.push(t.languages);else if("string"==typeof t.languages){var i=t.languages;i&&r.push(i.split(","))}return r},colorDepth:function(){return window.screen.colorDepth},deviceMemory:function(){return O(I(navigator.deviceMemory),void 0)},screenResolution:function(){var e=screen,t=function(e){return O(T(e),null)},r=[t(e.width),t(e.height)];return r.sort().reverse(),r},hardwareConcurrency:function(){return O(T(navigator.hardwareConcurrency),void 0)},timezone:function(){var e,t=null===(e=window.Intl)||void 0===e?void 0:e.DateTimeFormat;if(t){var r=(new t).resolvedOptions().timeZone;if(r)return r}var n,i=(n=(new Date).getFullYear(),-Math.max(I(new Date(n,0,1).getTimezoneOffset()),I(new Date(n,6,1).getTimezoneOffset())));return"UTC".concat(i>=0?"+":"").concat(Math.abs(i))},sessionStorage:function(){try{return!!window.sessionStorage}catch(e){return!0}},localStorage:function(){try{return!!window.localStorage}catch(e){return!0}},indexedDB:function(){var e,t;if(!(R()||(e=window,t=navigator,P(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in t,"msSaveBlob"in t])>=3&&!R())))try{return!!window.indexedDB}catch(e){return!0}},platform:function(){var e,t=navigator.platform;return"MacIntel"!==t||!L()||P(["safari"in(e=window),!("DeviceMotionEvent"in e),!("ongestureend"in e),!("standalone"in navigator)])>=3?t:function(){if("iPad"===navigator.platform)return!0;var e=screen,t=e.width/e.height;return P(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,t>.65&&t<1.53])>=2}()?"iPad":"iPhone"},plugins:function(){var e=navigator.plugins;if(e){for(var t=[],r=0;r=4}()?null:r.getExtension("WEBGL_debug_renderer_info");return n?null===(t=r.getParameter(n.UNMASKED_RENDERER_WEBGL))||void 0===t?void 0:t.toString():""}};function q(e){return JSON.stringify(e,(function(e,t){return t instanceof Error?m({name:(r=t).name,message:r.message,stack:null===(n=r.stack)||void 0===n?void 0:n.split("\n")},r):t;var r,n}),2)}function B(e){return function(e,t){t=t||0;var r,n=(e=e||"").length%16,i=e.length-n,o=[0,t],a=[0,t],s=[0,0],c=[0,0],u=[2277735313,289559509],l=[1291169091,658871167];for(r=0;r>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)+("00000000"+(a[0]>>>0).toString(16)).slice(-8)+("00000000"+(a[1]>>>0).toString(16)).slice(-8)}(function(e){for(var t="",r=0,n=Object.keys(e).sort();r'
'))).join(""),t.setAttribute("style","width: 1px !important; height: 1px !important; position: absolute !important; left: -10000px !important; top: -1000px !important;"),document.body.appendChild(t),e))if(!document.querySelector("#".concat(r)))return!0;return!1}();return document.querySelectorAll("._adbchkr").forEach((e=>document.body.removeChild(e))),e}function K(){return Y.apply(this,arguments)}function Y(){var e;return e=function*(){var{useScriptLoadCheck:e=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(window.self!==window.top)return!1;var t=W(),r=e&&(yield new Promise((e=>{var t=document.createElement("script");t.async=!0,t.src="https://js.capndr.com/advertising.js";var r=setTimeout((()=>{t.onerror=null,e(!1)}),4e3);t.onload=()=>{clearTimeout(r),e(!1)},t.onerror=()=>{clearTimeout(r),e(!0)},document.head.appendChild(t)})));return r||t},Y=function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){J(o,n,i,a,s,"next",e)}function s(e){J(o,n,i,a,s,"throw",e)}a(void 0)}))},Y.apply(this,arguments)}function Q(e){return"string"==typeof e}var $={write:function(e,t,r,n,i,o){var a=[];a.push("".concat(e,"=").concat(encodeURIComponent(t))),"number"==typeof r&&a.push("expires="+new Date(r).toUTCString()),Q(n)&&a.push("path="+n),Q(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}};function X(e){var t,r="0123456789abcdef";function n(e){var t,n="";for(t=0;t<=3;t++)n+=r.charAt(e>>8*t+4&15)+r.charAt(e>>8*t&15);return n}function i(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function o(e,t,r,n,o,a){return i(function(e,t){return e<>>32-t}(i(i(t,e),i(n,a)),o),r)}function a(e,t,r,n,i,a,s){return o(t&r|~t&n,e,t,i,a,s)}function s(e,t,r,n,i,a,s){return o(t&n|r&~n,e,t,i,a,s)}function c(e,t,r,n,i,a,s){return o(t^r^n,e,t,i,a,s)}function u(e,t,r,n,i,a,s){return o(r^(t|~n),e,t,i,a,s)}var l,d,p,h,m=function(e){var t,r=1+(e.length+8>>6),n=new Array(16*r);for(t=0;t<16*r;t++)n[t]=0;for(t=0;t>2]|=e.charCodeAt(t)<>2]|=128<localStorage.setItem(e,t),get:e=>localStorage.getItem(e),remove:e=>localStorage.removeItem(e)};try{ee.set("__try",1),ee.get("__try"),ee.remove("__try")}catch(e){ee=Z}var te=ee;class re{constructor(){this.localStoreKey="_ytbaсс",this.betweenUpdateDelayMins=60,this.authStatus=!1,this.nextUpdate=null}lazyAccountCheck(){return!!this.authStatus||(this.detectYouTubeAuth().then((e=>{this.setYoutubeAuthMarker(e,e?null:Date.now())})).catch((()=>null)),!1)}setYoutubeAuthMarker(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.authStatus=e,this.nextUpdate=t,te.set(this.localStoreKey,JSON.stringify({authStatus:e,nextUpdate:t}))}isUpdatePossible(){return!this.nextUpdate||function(e,t){if(!e||!t)return null;var r=60*t*1e3;return Date.now()-e>r}(this.nextUpdate,this.betweenUpdateDelayMins)}loadYoutubeAuthMarker(){var e=te.get(this.localStoreKey);if(e)try{var t=JSON.parse(e);this.authStatus=t.authStatus,this.nextUpdate=t.nextUpdate}catch(e){}}detectYouTubeAuth(){var e=document.createElement("img");return e.referrerPolicy="no-referrer",e.src="https://accounts.google.com/ServiceLogin?passive=true&continue=https%3A%2F%2Fm.youtube.com%2Ffavicon.ico&uilel=3&hl=en&service=youtube",new Promise((t=>{e.onload=()=>{t(!0)},e.onerror=()=>{t(!1)}}))}}function ne(e){var t,r="0123456789abcdef";function n(e){var t,n="";for(t=0;t<=3;t++)n+=r.charAt(e>>8*t+4&15)+r.charAt(e>>8*t&15);return n}function i(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function o(e,t,r,n,o,a){return i(function(e,t){return e<>>32-t}(i(i(t,e),i(n,a)),o),r)}function a(e,t,r,n,i,a,s){return o(t&r|~t&n,e,t,i,a,s)}function s(e,t,r,n,i,a,s){return o(t&n|r&~n,e,t,i,a,s)}function c(e,t,r,n,i,a,s){return o(t^r^n,e,t,i,a,s)}function u(e,t,r,n,i,a,s){return o(r^(t|~n),e,t,i,a,s)}var l,d,p,h,m=function(e){var t,r=1+(e.length+8>>6),n=new Array(16*r);for(t=0;t<16*r;t++)n[t]=0;for(t=0;t>2]|=e.charCodeAt(t)<>2]|=128<sessionStorage.setItem(e,t),get:e=>sessionStorage.getItem(e),remove:e=>sessionStorage.removeItem(e)};try{he.set("__try",1),he.get("__try"),he.remove("__try")}catch(e){he=pe}var me=he;var fe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e.g?e.g:"undefined"!=typeof self?self:{};var ve,ge,we=(ve=function(e,t){!function(r,n){var i="function",o="undefined",a="object",s="string",c="major",u="model",l="name",d="type",p="vendor",h="version",m="architecture",f="console",v="mobile",g="tablet",w="smarttv",b="wearable",y="embedded",S="Amazon",k="Apple",_="ASUS",C="BlackBerry",A="Browser",x="Chrome",T="Firefox",I="Google",O="Huawei",P="LG",E="Microsoft",N="Motorola",D="Opera",j="Samsung",M="Sharp",R="Sony",U="Xiaomi",L="Zebra",H="Facebook",F="Chromium OS",q="Mac OS",B=" Browser",z=function(e){for(var t={},r=0;r0?2===c.length?typeof c[1]==i?this[c[0]]=c[1].call(this,l):this[c[0]]=c[1]:3===c.length?typeof c[1]!==i||c[1].exec&&c[1].test?this[c[0]]=l?l.replace(c[1],c[2]):n:this[c[0]]=l?c[1].call(this,l,c[2]):n:4===c.length&&(this[c[0]]=l?c[3].call(this,l.replace(c[1],c[2])):n):this[c]=l||n;d+=2}},K=function(e,t){for(var r in t)if(typeof t[r]===a&&t[r].length>0){for(var i=0;i2&&(e[u]="iPad",e[d]=g),e},this.getEngine=function(){var e={};return e[l]=n,e[h]=n,W.call(e,w,y.engine),e},this.getOS=function(){var e={};return e[l]=n,e[h]=n,W.call(e,w,y.os),S&&!e[l]&&b&&b.platform&&"Unknown"!=b.platform&&(e[l]=b.platform.replace(/chrome os/i,F).replace(/macos/i,q)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return w},this.setUA=function(e){return w=typeof e===s&&e.length>500?J(e,500):e,this},this.setUA(w),this};$.VERSION="1.0.39",$.BROWSER=z([l,h,c]),$.CPU=z([m]),$.DEVICE=z([u,p,d,f,v,w,g,b,y]),$.ENGINE=$.OS=z([l,h]),e.exports&&(t=e.exports=$),t.UAParser=$;var X=typeof r!==o&&(r.jQuery||r.Zepto);if(X&&!X.ua){var Z=new $;X.ua=Z.getResult(),X.ua.get=function(){return Z.getUA()},X.ua.set=function(e){Z.setUA(e);var t=Z.getResult();for(var r in t)X.ua[r]=t[r]}}}("object"==typeof window?window:fe)},ve(ge={exports:{}},ge.exports),ge.exports);var be=function(e,t,r,n,i,o){var a=[];a.push("".concat(e,"=").concat(encodeURIComponent(t))),"number"==typeof r&&a.push("expires="+new Date(r).toUTCString()),ue(n)&&a.push("path="+n),ue(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},ye=function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},Se="source",ke="promo",_e="source",Ce="pubsource";var Ae="_adm_erd";function xe(e,t){var r;try{r=window.top!==window&&window.location.origin===window.top.location.origin&&3826===t}catch(e){r=!1}Ae=r?"_adm_erdso":Ae;var{referrer:n}=document,i=e.getItem(Ae),o=n.split("/")[2]||"",a="";return a=""===i||i?i:o,e.setItem(Ae,a),a}var Te=new de,Ie={set:(e,t)=>localStorage.setItem(e,t),get:e=>localStorage.getItem(e),remove:e=>localStorage.removeItem(e)};try{Ie.set("__try",1),Ie.get("__try"),Ie.remove("__try")}catch(e){Ie=Te}var Oe=Ie;function Pe(){var e="cb_gyro",t=Oe.get(e)||0;return t||window.addEventListener("deviceorientation",(t=>{null!==t.alpha&&Oe.set(e,1)})),Number(t)}function Ee(e){var t,r;return{plugins:(null===(t=e.components.plugins.value)||void 0===t?void 0:t.reduce(((e,t)=>(e.push(t.name),e)),[]))||[],languages:(null===(r=e.components.languages.value)||void 0===r?void 0:r.reduce(((e,t)=>(t.forEach((t=>{e.includes(t)||e.push(t)})),e)),[]))||[],fonts:e.components.fonts.value||[],fontPreferences:e.components.fontPreferences.value||{},platform:e.components.platform.value||"",colorDepth:e.components.colorDepth.value||0,deviceMemory:e.components.deviceMemory.value||0,hardwareConcurrency:e.components.hardwareConcurrency.value||0,indexedDB:e.components.indexedDB.value||!1,sessionStorage:e.components.sessionStorage.value||!1,localStorage:e.components.localStorage.value||!1,cookiesEnabled:e.components.cookiesEnabled.value||!1,colorGamut:e.components.colorGamut.value||""}}function Ne(e,t,r,n,i){var o=new Error(e);return o.config=t,r&&(o.code=r),o.request=n,o.response=i,o.isHttpError=!0,o.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},o}function De(e){return new Promise((function(t,r){var n,i,o=e.data,a=e.headers,s=new XMLHttpRequest,c=(n=e.baseURL,i=e.url,n&&!function(e){return/^([a-z][a-z\d\\+\-\\.]*:)?\/\//i.test(e)}(i)?function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}(n,i):i);if(s.open(e.method.toUpperCase(),function(e,t){if(!t)return e;var r=Object.keys(t).reduce(((e,r,n,i)=>{var o="".concat(e).concat(r,"=").concat(encodeURIComponent(t[r]));return n!==i.length-1&&(o+="&"),o}),"");return"".concat(e,"?").concat(r)}(c,e.params),!0),s.timeout=e.timeout,s.onreadystatechange=function(){if(s&&4===s.readyState&&(0!==s.status||s.responseURL&&0===s.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in s?s.getAllResponseHeaders().split("\r\n").reduce(((e,t)=>{var[r,n]=t.split(": ");return r?ce(ce({},e),{},{[null==r?void 0:r.toLowerCase()]:n}):e}),{}):null,i={data:e.responseType&&"text"!==e.responseType?s.response:s.responseText,status:s.status,statusText:s.statusText,headers:n,config:e,request:s};!function(e,t,r){!r.status||r.status>=200&&r.status<300?e(r):t(Ne("Request failed with status code "+r.status,r.config,null,r.request,r))}(t,r,i),s=null}},s.onabort=function(){s&&(r(Ne("Request aborted",e,"ECONNABORTED",s)),s=null)},s.onerror=function(){r(Ne("Network Error",e,null,s)),s=null},s.ontimeout=function(){var t="timeout of ".concat(e.timeout,"ms exceeded");e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(Ne(t,e,"ECONNABORTED",s)),s=null},"setRequestHeader"in s&&le(a,(function(e,t){void 0===o&&"content-type"===t.toLowerCase()?delete a[t]:s.setRequestHeader(t,e)})),void 0!==e.withCredentials&&(s.withCredentials=!!e.withCredentials),e.responseType)try{s.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}o||(o=null),s.send(o)}))}function je(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}var Me=new class{constructor(e){this.defaults={timeout:0}}dispatchRequest(e){var t;return null!==(t=e.data)&&"object"==typeof t&&(e.headers||(e.headers={}),e.headers["Content-Type"]="application/json;charset=utf-8",e.data=JSON.stringify(e.data)),De(e).then((function(e){return e.data=je(e.data),e}),(function(e){return e&&e.response&&(e.response.data=je(e.response.data)),Promise.reject(e)}))}get(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.dispatchRequest(ce(ce({},t),{},{url:e,method:"get"}))}post(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.dispatchRequest(ce(ce({},r),{},{url:e,method:"post",data:r.data?r.data:t}))}};function Re(e,t){if(!e||!t)return null;var r=60*t*1e3;return Date.now()-e>r}function Ue(){return new Promise((function(e,t){var r,n,i="Unknown";function o(t){e({isPrivate:t,browserName:i})}function a(e){return e===eval.toString().length}function s(){void 0!==navigator.maxTouchPoints?function(){try{var e=window.indexedDB.open("test",1);e.onupgradeneeded&&(e.onupgradeneeded=function(e){var t=e.target.result;try{t.createObjectStore("test",{autoIncrement:!0}).put(new Blob),o(!1)}catch(e){/BlobURLs are not yet supported/.test(e.message)?o(!0):o(!1)}}),o(!1)}catch(e){o(!1)}}():function(){var e=window.openDatabase,t=window.localStorage;try{e(null,null,null,null)}catch(e){return o(!0)}try{t.setItem("test","1"),t.removeItem("test")}catch(e){return o(!0)}o(!1)}()}function c(){navigator.webkitTemporaryStorage.queryUsageAndQuota((function(e,t){var r;o(t<(void 0!==(r=window).performance&&void 0!==r.performance.memory&&void 0!==r.performance.memory.jsHeapSizeLimit?performance.memory.jsHeapSizeLimit:1073741824))}),(function(e){t(new Error("detectIncognito somehow failed to query storage quota: "+e.message))}))}function u(){void 0!==Promise&&void 0!==Promise.allSettled?c():(0,window.webkitRequestFileSystem)(0,1,(function(){o(!1)}),(function(){o(!0)}))}void 0!==(n=navigator.vendor)&&0===n.indexOf("Apple")&&a(37)?(i="Safari",s()):function(){var e=navigator.vendor;return void 0!==e&&0===e.indexOf("Google")&&a(33)}()?(r=navigator.userAgent,i=r.match(/Chrome/)?void 0!==navigator.brave?"Brave":r.match(/Edg/)?"Edge":r.match(/OPR/)?"Opera":"Chrome":"Chromium",u()):void 0!==document.documentElement&&void 0!==document.documentElement.style.MozAppearance&&a(37)?(i="Firefox",o(void 0===navigator.serviceWorker)):void 0!==navigator.msSaveBlob&&a(39)?(i="Internet Explorer",o(void 0===window.indexedDB)):t(new Error("detectIncognito cannot determine the browser"))}))}var Le="__adm-vid",He="__adm-vid_new",Fe=10080;function qe(){var e;return e=function*(e,t,r){var n=window.Intl&&Intl.DateTimeFormat().resolvedOptions().timeZone,i=yield Ue();try{var o,{browserFamily:a,browserName:s}=function(e){var t=e.browser.name||"",r=(e.browser.version||"").split(".")[0];return{browserFamily:t,browserName:"".concat(t," ").concat(r).trim()}}(r),c=yield Me.post("https://fp.metricswpsh.com/fp?tag_id=".concat(e),ce(ce({timezoneOlson:n,incognito:i.isPrivate},t.components),{},{brand:r.device.vendor||"",device:r.device.model||"",os_type:r.device.type,os_family:r.os.name,front_browser_family:a,front_browser_name:s}),{withCredentials:!0});return{fp:c.data.fp,fp_str:(null==c||null===(o=c.data)||void 0===o?void 0:o.fp_str)||""}}catch(e){return console.warn(e),null}},qe=function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){oe(o,n,i,a,s,"next",e)}function s(e){oe(o,n,i,a,s,"throw",e)}a(void 0)}))},qe.apply(this,arguments)}function Be(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=function(){var e=JSON.parse(Oe.get(Le)),t=JSON.parse(Oe.get(He));return t&&!Re(t.createdAt,Fe)?{fp:t.fpValue,fp_str:t.fpValueStr||""}:e&&"object"==typeof e.fpValue&&null!==e.fpValue&&!Re(e.createdAt,Fe)?{fp:e.fpValue.fp,fp_str:e.fpValue.fp_str||""}:e&&"number"==typeof e.fpValue&&!Re(e.createdAt,Fe)?{fp:e.fpValue,fp_str:e.fpValueStr||""}:null}();return n||function(e,t,r){return qe.apply(this,arguments)}(e,t,r).then((e=>{return t=e,Oe.remove(Le),void Oe.set(He,JSON.stringify({fpValue:t.fp,fpValueStr:t.fp_str,createdAt:Date.now()}));var t})),n}var ze={utm_source:"utm1",utm_medium:"utm2",utm_campaign:"utm3",utm_content:"utm4",campaign:"camp"};function Ve(e){return function(e){try{return new URL(e),!0}catch(e){return!1}}(e)&&"t.co"===new URL(e).hostname.toLowerCase()}function Ge(e){var{ua:t}=e,r=Ve(document.referrer),n=/android-app/i.test(document.referrer),i=/MicroMessenger|WeChat|Weixin/i.test(t),o=/snapchat/i.test(t),a=/FBAN|FBIOS|FBAV|FB_IAB|FB4A/i.test(t),s=/instagram/i.test(t);return r||n||i||o||a||s}var Je="cc_dm",We={devModeQueryStringParameter:Je,utm_mapping:!1,iabcat:25,iab_extended:"25-3",label:1,script_defer:!1,tagId:null,default_keywords:[]};function Ke(e){var t,{visitorId:r,isAdBlock:n,isTubeSite:i,fingerprint:o,userAgentData:a={},tagAbVersion:s="a",magmaClickResolverEnable:c,config:u=We,v2:l=0,siteId:d=null,isGoogleTopicsDisallowed:p=!1,sessionService:h}=e,m=(t=location.search.split("?"))[t.length-1].split("&").reduce(((e,t)=>{var[r,n]=t.split("=");return r&&(e[r]=n),e}),{}),f=Boolean(window.web3||window.ethereum),v=function(){var{title:e}=document,t=document.head.querySelector("meta[name=keywords]"),r=document.head.querySelector("meta[name=description]"),n=e;return[t,r].forEach((e=>{n+=e?" ".concat(e.content):""})),n.trim().replace(/\s?[,.:;!?/|&-]?\s/g,(e=>"&"===e||"|"===e?"":","))}(),g=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n="_tp_",i={};return e.forEach((e=>{var o=Oe.get(n+e),a=t[e]||t[ze[e]]||t[r[e]];i[e]=a||o||"",a&&Oe.set(n+e,a)})),i}(["utm_source","utm_medium","utm_campaign","utm_content","campaign"],m,u.utm_mapping),w=function(e){if(null!==ye(Ce))return Number(ye(Ce));var t=0;return null!==ye(Se)&&(t=ye(Se)),[ke,_e].forEach((r=>{e[r]&&(be(Se,e[r],Date.now()+31536e6),t=e[r])})),Number(t)}(m);c&&0===w&&g.campaign&&(g.utm_source="mck",g.utm_medium=g.campaign,g.utm_campaign=d,w=Number(d));var b,y,S,k,_,C,A,x,T,I,O=p?[]:function(){try{var e,t="topsids";if("browsingTopics"in document&&null!==(e=document)&&void 0!==e&&null!==(e=e.featurePolicy)&&void 0!==e&&e.allowsFeature("browsing-topics")){document.browsingTopics().then((e=>{var r=e.map((e=>e.topic));Oe.set(t,JSON.stringify(r))}));var r=Oe.get(t);return r&&JSON.parse(r)||[]}return[]}catch(e){return[]}}(),P=((b=(new we).getResult()).device.type=b.device.type||"desktop",b),E=Be(u.tagId,o,P);return{userId:r,isAdBlock:n,isMetaMaskActive:f,isSslProtocol:"https:"===window.location.protocol,resolution:[+(screen&&screen.width||window.outerWidth),+(screen&&screen.height||window.outerHeight)],labels:me.get("labels")||"",sub:w,title:window.document.title,tags:"",debugMode:"1"===m[Je],holdableQSParams:g,qs:m,ua:P,timezone:Math.trunc((new Date).getTimezoneOffset()/-60),timezoneOlson:window.Intl&&Intl.DateTimeFormat().resolvedOptions().timeZone,entryReferrerDomain:xe(h,u.tagId),magmaSourceId:ye("magma_source"),keywords:encodeURIComponent(v),isAccelerometer:(T="cb_acce",I=Oe.get(T)||0,I||window.addEventListener("devicemotion",(e=>{null!==e.accelerationIncludingGravity.x&&Oe.set(T,1)})),Number(I)),isGyroscope:Pe(),isTubeSite:i,fingerprintParams:Ee(o),page:encodeURIComponent(window.location.href).replace(/%2F/g,"/"),userAgentData:a,visitorId:E?E.fp:null,visitorIdString:E?E.fp_str:"",v2:l,iabCategory:u.iabcat,iabCategoryExtended:u.iab_extended,mainCategory:u.label,scriptDefer:u.script_defer,tagAbVersion:s,defaultKeywords:u.default_keywords,topics:O,isWebView:(y=navigator.userAgent||navigator.vendor||window.opera,S=/safari/i.test(y)&&!/chrome/i.test(y),k=/iPhone|iPod|iPad/i.test(y)&&!window.MSStream&&!S,_=!(!window.webkit||!window.webkit.messageHandlers),C=S&&void 0===navigator.standalone,A=/android/i.test(y)&&(/wv/.test(y)||/Android.*Version\/[0-9]+\.[0-9]+/.test(y)),x=!(!window.Android&&!window.JSInterface),k||_||C||A||x),isInApp:Ge(P)}}function Ye(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function Qe(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Ye(o,n,i,a,s,"next",e)}function s(e){Ye(o,n,i,a,s,"throw",e)}a(void 0)}))}}var $e=new class{constructor(){this.state={}}set(e,t){this.state[e]=t}get(e){return this.state[e]||null}remove(e){delete this.state[e]}},Xe={set:(e,t)=>localStorage.setItem(e,t),get:e=>localStorage.getItem(e),remove:e=>localStorage.removeItem(e)};try{Xe.set("__try",1),Xe.get("__try"),Xe.remove("__try")}catch(e){Xe=$e}var Ze=Xe;class et{constructor(e){this.iframeUrl=e,this.iframe=null,this.iframeLoaded=!1,this.eventsQueue=[],this.messagesQueue={}}init(){this.iframe=document.createElement("iframe"),this.iframe.style.display="none",this.iframe.src=this.iframeUrl,document.body.appendChild(this.iframe),this.iframe.onload=()=>{this.iframeLoaded=!0,this.eventsQueue.forEach((e=>{this.iframe.contentWindow.postMessage(e,"*")})),this.eventsQueue=[]},window.addEventListener("message",(e=>this.handleIframeResponse(e.data)))}handleIframeResponse(e){var{messageId:t,value:r}=e;t&&this.messagesQueue[t]&&(this.messagesQueue[t].resolve(r),clearTimeout(this.messagesQueue[t].rejectTimeout),delete this.messagesQueue[t])}send(e,t,r){return new Promise(((n,i)=>{var o=(Math.random()+1).toString(36).substring(5);this.iframeLoaded?this.iframe.contentWindow.postMessage({action:e,messageId:o,key:t,value:r},"*"):this.eventsQueue.push({action:e,messageId:o,key:t,value:r}),this.messagesQueue[o]={resolve:e=>n(e),rejectTimeout:setTimeout((()=>i(new Error("iFrame did not respond"))),50)}}))}set(e,t){var r=this;return Qe((function*(){Ze.set(e,JSON.stringify(t)),yield r.send("SET",e,t)}))()}get(e){var t=this;return Qe((function*(){return yield t.synchronize(e)}))()}remove(e){var t=this;return Qe((function*(){Ze.remove(e),yield t.send("REMOVE",e),yield t.synchronize(e)}))()}clear(){return this.send("CLEAR")}synchronize(e){var t=this;return Qe((function*(){var r,n;try{r=yield t.send("GET",e);var i=Ze.get(e)||null;n=i?JSON.parse(i):null}catch(e){n=null}if(!r&&n){try{yield t.send("SET",e,n)}catch(e){}return n}return r?(Ze.set(e,JSON.stringify(r)),r):null}))()}}function tt(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function rt(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){tt(o,n,i,a,s,"next",e)}function s(e){tt(o,n,i,a,s,"throw",e)}a(void 0)}))}}function nt(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function it(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ot(e){for(var t=1;t{var o="".concat(e).concat(r,"=").concat(encodeURIComponent(t[r]));return n!==i.length-1&&(o+="&"),o}),"");return"".concat(e,"?").concat(r)}(c,e.params),!0),s.timeout=e.timeout,s.onreadystatechange=function(){if(s&&4===s.readyState&&(0!==s.status||s.responseURL&&0===s.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in s?s.getAllResponseHeaders().split("\r\n").reduce(((e,t)=>{var[r,n]=t.split(": ");return r?ot(ot({},e),{},{[null==r?void 0:r.toLowerCase()]:n}):e}),{}):null,i={data:e.responseType&&"text"!==e.responseType?s.response:s.responseText,status:s.status,statusText:s.statusText,headers:n,config:e,request:s};!function(e,t,r){!r.status||r.status>=200&&r.status<300?e(r):t(at("Request failed with status code "+r.status,r.config,null,r.request,r))}(t,r,i),s=null}},s.onabort=function(){s&&(r(at("Request aborted",e,"ECONNABORTED",s)),s=null)},s.onerror=function(){r(at("Network Error",e,null,s)),s=null},s.ontimeout=function(){var t="timeout of ".concat(e.timeout,"ms exceeded");e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(at(t,e,"ECONNABORTED",s)),s=null},"setRequestHeader"in s&&st(a,(function(e,t){void 0===o&&"content-type"===t.toLowerCase()?delete a[t]:s.setRequestHeader(t,e)})),void 0!==e.withCredentials&&(s.withCredentials=!!e.withCredentials),e.responseType)try{s.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}o||(o=null),s.send(o)}))}function ut(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}var lt=new class{constructor(e){this.defaults={timeout:0}}dispatchRequest(e){var t;return null!==(t=e.data)&&"object"==typeof t&&(e.headers||(e.headers={}),e.headers["Content-Type"]="application/json;charset=utf-8",e.data=JSON.stringify(e.data)),ct(e).then((function(e){return e.data=ut(e.data),e}),(function(e){return e&&e.response&&(e.response.data=ut(e.response.data)),Promise.reject(e)}))}get(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.dispatchRequest(ot(ot({},t),{},{url:e,method:"get"}))}post(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.dispatchRequest(ot(ot({},r),{},{url:e,method:"post",data:r.data?r.data:t}))}},dt="_kwrds",pt={keywords:{},pages_count:0};class ht{constructor(e){this.keywordsHistory=pt,this.sharedStorage=e}mapForAuction(e){var t={keywords:[],pages_count:e.pages_count};return t.keywords=Object.keys(e.keywords).map((t=>({keyword:t,counter:e.keywords[t].length||0}))),t}mapForManager(e){var t=Date.now();return{keywords:e.reduce(((e,r)=>(e[r]||(e[r]=[]),e[r].push(t),e)),{}),pages_count:1}}filterHistoryFromExpired(e){var t=new Set,{keywords:r}=e;return Object.keys(r).forEach((e=>{var n=r[e];r[e]=n.filter((e=>{var r=e+2592e5{var[t,n]=e;r[t]||(r[t]=[]),r[t].push(...n)})),r}getCurrentHistory(){var e=this;return rt((function*(){if(!e.keywordsHistory.pages_count){var t=yield e.getFromStorage();e.keywordsHistory=t}return e.mapForAuction(e.keywordsHistory)}))()}asyncProcessKeywords(e,t,r){var n=this;return rt((function*(){try{var i=yield n.getFromAuctionAndMap(e,t,r),o=yield n.getFromStorage(),a=n.mergeKeywords(o.keywords,i.keywords),s=o.pages_count+i.pages_count;n.keywordsHistory={keywords:a,pages_count:s},n.sharedStorage.set(dt,JSON.stringify(n.keywordsHistory)).catch((()=>null))}catch(e){return null}}))()}getFromStorage(){var e=this;return rt((function*(){var t,r=yield e.sharedStorage.get(dt).catch((()=>null));try{t=JSON.parse(r)||pt,t=e.filterHistoryFromExpired(t)}catch(e){t=pt}return t}))()}getFromAuctionAndMap(e,t,r){var n=this;return rt((function*(){var{data:i}=yield lt.post(e,{ad_tags:t,page:r}).catch((()=>({}))),o=pt;return i&&i.keywords&&i.keywords.length&&(o=n.mapForManager(i.keywords)),o}))()}}var mt,ft=864e5;!function(e){e.JS="js",e.AUCTION="auction"}(mt||(mt={}));var vt,gt={popunder:{js:"pjs.$domain/popunder-admanager/build.js",auction:"p.$domain/get"},in_stream_ad:{js:"vjs.$domain/in-stream-ad-admanager/build.js",auction:"v.$domain/vast"},banner:{js:"bjs.$domain/banner-admanager/build.js",auction:"b.$domain/get"},interstitial:{js:"sjs.$domain/interstitial-admanager/build.js",auction:"s.$domain/get"},native:{js:"njs.$domain/npc/sdk/native.js",auction:"n.$domain/in/multy"},inpage:{js:"ijs.$domain/npc/sdk/wpu/npush.js",auction:"i.$domain/in/multy"},push:{js:"wjs.$domain/npc/sdk/push.js?v=1",auction:"w.$domain/in/multy"}},wt=["inpage","native","push","popunder","resale-popunder","banner","extension","calendar","interstitial","direct_link"];function bt(e,t,r){if(r&&!wt.includes(r)||e.includes(".m.js")||e.includes(".l.js"))return e;return e.replace(".js",{modern:".m.js",legacy:".l.js"}[t])}function yt(e){var t=e.part,r=e.domain,n=e.scriptType,i=e.adFormatType,o=gt[i];if(!r||!o)return"";var a=o[t],s="".concat(r.protocol,"//").concat(a.replace("$domain",r.host));return t===mt.JS&&n?bt(s,n,i):s}function St(e,t){return{main:e,fallback:e===t?null:t}}!function(e){e.JS_BUNDLE="jsBundle",e.TAG_CONFIG="tagConfig",e.CDN_ORIGIN="cdnOrigin",e.SHARED_STORAGE="sharedStorage",e.CLOAKING_CONFIG="cloakingConfig",e.PRIMARY_AUCTION="primaryAuction"}(vt||(vt={}));var kt=function(){function e(){}return e.init=function(t){e.customDomain=t},e.getUrl=function(t,r){switch(t){case vt.JS_BUNDLE:return e.getJSBundleURL(r);case vt.TAG_CONFIG:return e.getTagConfigURL(r);case vt.CLOAKING_CONFIG:return e.getCloakingConfigURL();case vt.SHARED_STORAGE:return e.getSharedStorageURL();case vt.PRIMARY_AUCTION:return e.getPrimaryAuctionUrl(r);case vt.CDN_ORIGIN:return e.getCDNOrigin(r);default:return{main:"",fallback:null}}},e.getJSBundleURL=function(t){var r=t.scriptSrc,n=t.scriptType,i=t.adFormatType,o=r;return e.customDomain&&(o=yt({part:mt.JS,domain:e.customDomain,scriptType:n,adFormatType:i})),St(o,r)},e.getTagsCustomUrl=function(t){if(void 0===t&&(t=!1),!e.customDomain)return"";var r=t?"v2":"v1";return"".concat(e.customDomain.protocol,"//").concat(r,".").concat(e.customDomain.host,"/tags")},e.getTagConfigURL=function(t){var n=t.createHashTagUrl,i=n?n():r.tagConfigUrl,o=i;return e.customDomain&&(o=e.getTagsCustomUrl()),St(o,i)},e.getCloakingConfigURL=function(){var t="https://notification.tubecup.net/tags",r=t;return e.customDomain&&(r=e.getTagsCustomUrl(!0)),St(r,t)},e.getSharedStorageURL=function(){var t=r.sharedStorageUrl,n=t;return e.customDomain&&(n="".concat(e.customDomain.protocol,"//ajs.").concat(e.customDomain.host,"/log/count.html")),St(n,t)},e.getPrimaryAuctionUrl=function(t){var r="";return e.customDomain&&(r=yt({part:mt.AUCTION,domain:e.customDomain,adFormatType:t})),{main:r,fallback:null}},e.getCDNOrigin=function(t){var r,n=t.source,i=t.isTubeSite,o=t.adFormatType,a=null;try{if(e.customDomain){var s=yt({part:mt.JS,domain:e.customDomain,adFormatType:o});r=new URL(s).origin,a=new URL(n).origin}else r=i?"":new URL(n).origin}catch(e){r=""}return{main:r,fallback:a}},e.customDomain=null,e}(),_t=["inpage","native","calendar","popunder"],Ct=[360974],At="noModule"in document.createElement("script");function xt(e){var{label:t,iabcat:r,isPhpLoaderActive:n,adFormats:i,hashHelpers:o,isAdBlock:a,legacySpotsExtend:c,hashService:u,isTubeSite:l}=e;return i.map((e=>{var{createHashPath:i}=o,p=At?"modern":"legacy",h=e.assets["".concat(p,"_js")],m=null!=h?h:function(e,t,r){return!wt.includes(e.type)||r?e.assets.js:e.assets.js.map((e=>e.includes(".m.js")||e.includes(".l.js")?e:bt(e,t)))}(e,p,n),f=kt.getUrl(vt.CDN_ORIGIN,{source:m[0],isTubeSite:l,adFormatType:e.type}).main;e.assets.js=m.map((t=>{var r={src:t,type:p};return!n&&i&&_t.includes(e.type)&&(r.src=u.convertToHashedUrl(r.src,i)),r}));var v=c[e.type];return e.spots=e.spots.map(((o,c)=>(o.config.label=t,o.config.iabcat=r,o.config.adm_loader=!!i||n,"banner"===e.type&&"1x1"===o.config.options.size&&(o.delay_ms=3e3),Ct.includes(o.config.spot_id)&&"in_stream_ad"===e.type&&(o.delay_ms=24e4),a&&"popunder"===e.type&&(o.config.options.bind_to=null,o.config.options.ignore_to=null),i&&"popunder"===e.type&&(o.config.scripts.interstitial=u.convertToHashedUrl(o.config.scripts.interstitial)),"inpage"===e.type&&(o.config.origin=f),v?s(v)&&v[c]?d(o,v[c]):d(o,v):o))),e}))}for(var Tt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",It=new Uint8Array(256),Ot=0;Ot<64;Ot++)It[Tt.charCodeAt(Ot)]=Ot;It[45]=62,It[95]=63;var Pt,Et=[..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="],Nt=(Pt={},Et.forEach(((e,t)=>Pt[e]=t)),String.fromCharCode.bind(String),e=>{for(var t,r,n,i,o="",a=e.length%3,s=0;s255||(n=e.charCodeAt(s++))>255||(i=e.charCodeAt(s++))>255)throw new TypeError("invalid character found");o+=Et[(t=r<<16|n<<8|i)>>18&63]+Et[t>>12&63]+Et[t>>6&63]+Et[63&t]}return a?o.slice(0,a-3)+"===".substring(a):o});class Dt{constructor(e){var{wrappedUrlPath:t}=e;this.wrappedUrlPath=t}extendedEncode(e){return p(Nt(e),{sw:"gu1",Sw:"gu2",sW:"gu3",SW:"gu4"})}wrapVastUrl(e,t){var r=e.includes("http")?e:"https://".concat(e);return"".concat(r).concat(this.wrappedUrlPath).concat(this.extendedEncode(t))}}function jt(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Mt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Rt(e){for(var t=1;t{var o="".concat(e).concat(r,"=").concat(encodeURIComponent(t[r]));return n!==i.length-1&&(o+="&"),o}),"");return"".concat(e,"?").concat(r)}(c,e.params),!0),s.timeout=e.timeout,s.onreadystatechange=function(){if(s&&4===s.readyState&&(0!==s.status||s.responseURL&&0===s.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in s?s.getAllResponseHeaders().split("\r\n").reduce(((e,t)=>{var[r,n]=t.split(": ");return r?Rt(Rt({},e),{},{[null==r?void 0:r.toLowerCase()]:n}):e}),{}):null,i={data:e.responseType&&"text"!==e.responseType?s.response:s.responseText,status:s.status,statusText:s.statusText,headers:n,config:e,request:s};!function(e,t,r){!r.status||r.status>=200&&r.status<300?e(r):t(Ut("Request failed with status code "+r.status,r.config,null,r.request,r))}(t,r,i),s=null}},s.onabort=function(){s&&(r(Ut("Request aborted",e,"ECONNABORTED",s)),s=null)},s.onerror=function(){r(Ut("Network Error",e,null,s)),s=null},s.ontimeout=function(){var t="timeout of ".concat(e.timeout,"ms exceeded");e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(Ut(t,e,"ECONNABORTED",s)),s=null},"setRequestHeader"in s&&Lt(a,(function(e,t){void 0===o&&"content-type"===t.toLowerCase()?delete a[t]:s.setRequestHeader(t,e)})),void 0!==e.withCredentials&&(s.withCredentials=!!e.withCredentials),e.responseType)try{s.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}o||(o=null),s.send(o)}))}function Ft(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}var qt=new class{constructor(e){this.defaults={timeout:0}}dispatchRequest(e){var t;return null!==(t=e.data)&&"object"==typeof t&&(e.headers||(e.headers={}),e.headers["Content-Type"]="application/json;charset=utf-8",e.data=JSON.stringify(e.data)),Ht(e).then((function(e){return e.data=Ft(e.data),e}),(function(e){return e&&e.response&&(e.response.data=Ft(e.response.data)),Promise.reject(e)}))}get(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.dispatchRequest(Rt(Rt({},t),{},{url:e,method:"get"}))}post(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.dispatchRequest(Rt(Rt({},r),{},{url:e,method:"post",data:r.data?r.data:t}))}};var Bt=new class{constructor(){this.state={}}set(e,t){this.state[e]=t}get(e){return this.state[e]||null}remove(e){delete this.state[e]}},zt={set:(e,t)=>localStorage.setItem(e,t),get:e=>localStorage.getItem(e),remove:e=>localStorage.removeItem(e)};try{zt.set("__try",1),zt.get("__try"),zt.remove("__try")}catch(e){zt=Bt}var Vt=zt,Gt="__adm_user_id";function Jt(){var e=Vt.get(Gt);if(e)return e;var t=h(1,0x10000000000000000);return Vt.set(Gt,t),String(t)}window.__adFormats=window.__adFormats||{},window.__formatsGetters=window.__formatsGetters||{};var Wt=window.__adFormats,Kt=window.__formatsGetters;function Yt(e,t){if(Wt[e])return t(Wt[e]);Kt[e]||(Kt[e]=[]),Kt[e].push(t)}function Qt(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=Object.keys(e).filter((t=>{var r=e[t];return!(!s(r)||!r.length)||!!c(r)&&Object.keys(r).filter((e=>void 0!==r[e])).length}));return n.length?n.every((r=>t[r]&&t[r](e[r]))):r}function $t(e,t){var{env:r,Logger:n}=t,i=function(e){var{ua:t,qs:r,entryReferrerDomain:n}=e;return{platforms:e=>e.includes(t.device.type||"desktop"),browsers:e=>e.includes(t.browser.name),urls:e=>e.some((e=>{if(0===e.indexOf("[regExp]")){var t=e.replace(/^\[regExp]\s*/,"");return new RegExp(t).test(window.location.href)}return window.location.href.includes(e)})),ls:e=>Object.keys(e).every((t=>localStorage.getItem(t)===e[t])),ss:e=>Object.keys(e).every((t=>localStorage.getItem(t)===e[t])),qs:e=>Object.keys(e).every((t=>r[t]===e[t])),cookies:e=>(e=Array.isArray(e)?e:[e]).some((e=>Object.keys(e).every((t=>e[t]===$.read(t))))),vars:e=>Object.keys(e).every((t=>window[t]===e[t])),entry_referrer:e=>e.some((e=>(":direct:"===e||""===e)&&""===n||e&&n.includes(e)))}}(r);return e.filter((e=>e.ignore&&e.ignore.length&&e.ignore.some((e=>Qt(e,i)))?(n.warn("spot was excluded by ignore rules",e),!1):!e.bind||!e.bind.length||e.bind.some((t=>{var r=Qt(t,i,!0);return r||n.warn("spot was not bind by conditions",e),r}))))}function Xt(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}class Zt{constructor(e){this.script=e}start(){return(e=function*(){return!1},function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Xt(o,n,i,a,s,"next",e)}function s(e){Xt(o,n,i,a,s,"throw",e)}a(void 0)}))})();var e}runScript(){var e=document.createElement("div");return e.innerHTML=this.script,e.childNodes.forEach((e=>{var t=e.cloneNode(!0);if("SCRIPT"===e.nodeName){for(var r=document.createElement("script"),n=0;n{if(!t)return Vt.remove(sr),e;try{var r=JSON.parse(Vt.get(sr));if(r&&r.ttl+ft>Date.now())return[e[r.version]]}catch(e){Vt.remove(sr)}var n=(e=>Math.floor(Math.random()*e.length))(e);return Vt.set(sr,JSON.stringify({version:n,ttl:Date.now()})),[e[n]]};function ur(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function lr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function dr(e){for(var t=1;t{var r,n,i=dr(dr({},e),{},{autostart:null===(r=null!==(n=e.autostart)&&void 0!==n?n:t.autostart)||void 0===r||r});return i.config.primary_auction_url=kt.getUrl(vt.PRIMARY_AUCTION,t.type).main||null,i})).filter((e=>e.autostart));n.length&&(t.loadAssets(),t.provideSpotsToLibrary(n))}},function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){ur(o,n,i,a,s,"next",e)}function s(e){ur(o,n,i,a,s,"throw",e)}a(void 0)}))})()}runSpot(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{spot_id:t}=e;if(t){var r=this.spots.find((e=>e.config.spot_id===t));r&&(e=dr(dr({},r),e)),this.filterSpots([r]).length&&(this.loadAssets(),Yt(this.connectionName,(t=>{this.Logger.info("Run ".concat(this.type," spot"),e),this.provideSpotToLibrary(e,t)})))}}provideSpotsToLibrary(e){var t=t=>e.forEach((e=>this.provideSpotToLibrary(e,t)));Yt(this.connectionName,(e=>t(e)));try{new Event("try"),window.addEventListener(this.connectionName,(e=>{"function"==typeof e._init&&t(e._init)}),!1)}catch(e){var r=window[this.connectionName];"function"!=typeof r&&(r=function(e,t,n){r._list.forEach((r=>{"function"==typeof r&&r(e,t,n)}))}),r._list||(r._list=[]),r._list.push((e=>{"function"==typeof e&&t(e)})),window[this.connectionName]=r}}applySpotConfigTests(e){var t,r,n=null==e||null===(t=e.options)||void 0===t?void 0:t.split_test;if(null==e||null===(r=e.options)||void 0===r||!r.has_split_tests||!n)return e;var o=h(1,100),a=i(e.test_options);return n.traffic_volumet(o,this.env,this.providedDependencies,i);r?setTimeout(a,r):a()}filterSpots(e){return $t(e,{env:this.env,Logger:this.Logger})}loadAssets(){if(!this.isAssetsLoaded){this.isAssetsLoaded=!0;var e=this.jsLinks;"inpage"===this.type&&(e=cr(this.jsLinks,this.isSplitTestActive));var t=document.querySelector("head, body");e.forEach((e=>{var r,n,i,o;r={node:t,urls:kt.getUrl(vt.JS_BUNDLE,{scriptSrc:e.src,scriptType:e.type,adFormatType:this.type}),scriptDefer:this.env.scriptDefer},n=r.node,i=r.urls,o=r.scriptDefer,function e(t){if(t&&!document.querySelector('[src="'.concat(t,'"]'))){var r=document.createElement("script");r.src=t,o?r.defer=!0:r.async=!0,r.onerror=function(){t===i.main&&i.fallback&&e(i.fallback)},n.append(r)}}(i.main)}))}}}var mr=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))},fr=function(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]sessionStorage.setItem(e,t),get:e=>sessionStorage.getItem(e),remove:e=>sessionStorage.removeItem(e)};try{wr.set("__try",1),wr.get("__try"),wr.remove("__try")}catch(e){wr=gr}var br=wr;class yr{constructor(){this.SESSION_KEY="a_s_ts",this.SESSION_KEY_DATA="_ses_dt",this.INITIAL_SESSION_KEY="lastId",this.SESSION_END_TIME_KEY="_ses_tmend",this.initialSessionId=Vt.get(this.INITIAL_SESSION_KEY)||"",this.localStorageExpiresMS=6e4,this.sessionState={id:null,startTs:null}}isSessionTheSame(){return this.initialSessionId===this.getSessionId()}replaceLastSessionData(){var e=this.getSessionId();Vt.set(this.INITIAL_SESSION_KEY,e),this.initialSessionId=e}getItem(e){if(!this.isSessionTheSame())return this.replaceLastSessionData(),this.removeItem(this.SESSION_KEY_DATA),null;try{var t=Vt.get(this.SESSION_KEY_DATA),r=JSON.parse(t);return"object"==typeof r?r[e]:null}catch(e){return null}}setItem(e,t){var r;this.isSessionTheSame()||(this.replaceLastSessionData(),this.removeItem(this.SESSION_KEY_DATA));try{var n,i=null!==(n=Vt.get(this.SESSION_KEY_DATA))&&void 0!==n?n:"{}";r=JSON.parse(i)}catch(e){r={}}r[e]=t,Vt.set(this.SESSION_KEY_DATA,JSON.stringify(r))}removeItem(e){Vt.remove(e)}getFromStorage(e){try{var t=e.get(this.SESSION_KEY),r=JSON.parse(t);return"object"==typeof r?r:null}catch(e){return null}}setToStorage(e,t){e.set(this.SESSION_KEY,JSON.stringify(t))}startSession(){var e=Date.now(),t=this.getFromStorage(br),r=this.getFromStorage(Vt),n=Vt.get(this.SESSION_END_TIME_KEY);!t&&r&&n&&n>e&&(this.setToStorage(br,r),t=r),this.sessionState=t||{id:Math.random().toString(36).substring(2),startTs:e},t||(this.setToStorage(br,this.sessionState),this.setToStorage(Vt,this.sessionState)),setInterval((()=>{var e=Date.now()+this.localStorageExpiresMS;Vt.set(this.SESSION_END_TIME_KEY,e)}),5e3)}getDurationTime(e){var t=Date.now()-this.sessionState.startTs;return"min"===e?Number((t/1e3/60).toFixed(2)):t}getSessionId(){return this.sessionState.id}}var Sr=function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;ie?t.margin:e}),0);r.forEach((function(e,i){t.setWidgetPosition(e,r[i-1],n)}))},e}();function Cr(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function Ar(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Cr(o,n,i,a,s,"next",e)}function s(e){Cr(o,n,i,a,s,"throw",e)}a(void 0)}))}}var xr=[1411,1410],Tr="pxlsStrSnt",Ir="pxlsSnt";function Or(e){return Vt.get(e)}function Pr(e){Vt.set(e,"1")}function Er(e){var t=document.createElement("iframe");t.referrerPolicy="no-referrer",t.src=e,t.width="1px",t.height="1px",t.setAttribute("allowtransparency",!0),t.setAttribute("style","padding:0;margin:0;border:0;position:absolute;width:1px!important;height:1px!important;top:0!important;"),t.marginheight="0",t.marginwidth="0",document.body.appendChild(t)}function Nr(e){return Dr.apply(this,arguments)}function Dr(){return(Dr=Ar((function*(e){e&&(xr.forEach((t=>Er("https://s.uuidksinc.net/match/".concat(t,"/?remote_uid=").concat(e)))),Er("https://lbs-eu1.ads.betweendigital.com/match?bidder_id=46084&external_user_id=".concat(e,"&external_matching=1&forward=1")))}))).apply(this,arguments)}function jr(){return(jr=Ar((function*(e){var t;if(e)return Or(Tr)||Or(Ir)?void(Or(Ir)&&Math.random()<.5&&(Nr(e),Pr(Tr),t=Ir,Vt.remove(t))):(Nr(e),void Pr(Tr))}))).apply(this,arguments)}class Mr{constructor(){this.generalParameters={imp:[{secure:"https:"===window.location.protocol?1:0,ext:{v2:!1,tag_ab:"",mm:0,st:0,ad_tags:""},pext:{},banner:{w:0,h:0}}],site:{id:"",cat:[],page:""},device:{w:0,h:0},ext:{dt:Date.now()},user:{fp:0,id:""}}}fillGeneralParameters(e){var{iabCategoryExtended:t,visitorId:r,userId:n,isMetaMask:i,sessionTime:o,tagAbVersion:a,publisherKeywords:s,cloaking:c,width:u,height:l,userAgentData:d}=e,p=window.top!==window.self;this.generalParameters.site.cat[0]=t,this.generalParameters.site.page=p?document.referrer:document.URL,this.generalParameters.user.fp=r,this.generalParameters.user.id=n,this.generalParameters.imp[0].ext.v2=c,this.generalParameters.imp[0].ext.mm=i,this.generalParameters.imp[0].ext.tag_ab=a,this.generalParameters.imp[0].ext.st=o,this.generalParameters.imp[0].ext.ad_tags=s,this.generalParameters.device.w=u,this.generalParameters.device.h=l,this.generalParameters.user.ua_data=d}createRequestData(e){var t=this.generalParameters,r=d(t.imp[0].ext,e.imp[0].ext),n=d(t.imp[0].pext,e.imp[0].pext),i=e.imp[0].banner||null;return t.imp[0].ext=r,t.imp[0].pext=n,t.imp[0].banner=i,t.fp_params=e.fp_params||null,t.site.id=e.site.id,t}}function Rr(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function Ur(){return Lr.apply(this,arguments)}function Lr(){var e;return e=function*(){if(!navigator.userAgentData||!navigator.userAgentData.getHighEntropyValues)return null;try{return yield navigator.userAgentData.getHighEntropyValues(["uaFullVersion","architecture","bitness","brands","mobile","model","platform","platformVersion","fullVersionList","wow64"])}catch(e){return null}},Lr=function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Rr(o,n,i,a,s,"next",e)}function s(e){Rr(o,n,i,a,s,"throw",e)}a(void 0)}))},Lr.apply(this,arguments)}var Hr="t_v_a";function Fr(){var e="";try{e=JSON.parse(Vt.get(Hr))}catch(e){}if(e&&e.ttl+6048e5>Date.now())return e.version;var t=i(["a","b","c","d"]);return Vt.set(Hr,JSON.stringify({version:t,ttl:Date.now()})),t}var qr="in_stream_ad",Br="popunder",zr=function(){function e(){this.handlers=[]}return e.prototype.init=function(){var e=this;document.addEventListener("click",(function(t){return e.handleClick(t)}))},e.prototype.addHandler=function(e){this.handlers.push(e)},e.prototype.removeHandler=function(e){this.handlers=this.handlers.filter((function(t){return t!==e}))},e.prototype.handleClick=function(e){this.handlers.forEach((function(t){return t(e)}))},e}(),Vr=function(){function e(e,t){var r,n,i=this;this.LSfield="usCC",this.handler=function(e){i.clickHandler(),i.emptyClicksHandler(e)},this.globalClickHandler=e,this.sessionService=t;var o=this.sessionService.getItem(this.LSfield);this.clickCount=null!==(r=null==o?void 0:o.cls)&&void 0!==r?r:0,this.emptyClicks=null!==(n=null==o?void 0:o.emt)&&void 0!==n?n:0,this.setHandler()}return e.prototype.setHandler=function(){this.globalClickHandler.addHandler(this.handler)},e.prototype.clickHandler=function(){this.firstActionTS||(this.firstActionTS=Date.now()),this.clickCount+=1,this.saveToLS()},e.prototype.emptyClicksHandler=function(e){var t=e.target,r=t.parentElement,n=["a","input","img","svg","path","label","button","video","textarea"],i=["button","textbox"],o=!1;[t,r,null==r?void 0:r.parentElement].forEach((function(e){e&&!o&&(n.includes(e.tagName.toLowerCase())||e.className.match(/btn|button|jw-|player-/gi)||e.hasAttribute("contenteditable")||i.includes(e.getAttribute("role")||""))&&(o=!0)})),o||(this.emptyClicks+=1,this.saveToLS())},e.prototype.saveToLS=function(){var e={cls:this.clickCount,emt:this.emptyClicks};this.sessionService.setItem(this.LSfield,e)},Object.defineProperty(e.prototype,"count",{get:function(){return this.clickCount||0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"emptyCount",{get:function(){return this.emptyClicks||0},enumerable:!1,configurable:!0}),e}(),Gr=function(){function e(e){var t=this;this.isTracking=!1,this.LSfield="maxScP",this.maxScrollPercentage=0,this.prevPixelScrolled=0,this.totalPixelScrolled=0,this.totalPercentScrolled=0,this.computeScrollPercentage=function(){var e=window.pageYOffset||document.documentElement.scrollTop,r=document.documentElement.scrollHeight-window.innerHeight;return e>t.prevPixelScrolled&&(t.totalPixelScrolled+=e-t.prevPixelScrolled,t.totalPercentScrolled=Math.round(t.totalPixelScrolled/r*100)),t.prevPixelScrolled=e,Math.round(Math.min(100,Math.max(0,e/r*100)))},this.sessionService=e;var r=this.sessionService.getItem(this.LSfield)||{};this.maxScrollPercentage=r.maxScrollPercentage||0,this.totalPercentScrolled=r.totalPercentScrolled||0,this.totalPixelScrolled=r.totalPixelScrolled||0,setTimeout((function(){return t.startTracking()}),100)}return e.prototype.throttle=function(e,t){var r,n;return function(){for(var i=[],o=0;o{this.sessionService.setItem(this.ClickCounterLSfield,this.clickCount+=1)}))}get count(){var e;return null!==(e=this.sessionService.getItem(this.ClickCounterLSfield))&&void 0!==e?e:0}}function Kr(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function Yr(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Kr(o,n,i,a,s,"next",e)}function s(e){Kr(o,n,i,a,s,"throw",e)}a(void 0)}))}}class Qr{constructor(){this.storageKey="_shrdstrg"}init(){}setToStorage(e){Vt.set(this.storageKey,JSON.stringify(e))}getFromStorage(){try{return JSON.parse(Vt.get(this.storageKey)||"{}")}catch(e){return{}}}set(e,t){var r=this;return Yr((function*(){var n=r.getFromStorage();n[e]=t,r.setToStorage(n)}))()}get(e){var t=this;return Yr((function*(){return t.getFromStorage()[e]}))()}remove(e){var t=this;return Yr((function*(){var r=t.getFromStorage();delete r[e],t.setToStorage(r)}))()}clear(){var e=this;return Yr((function*(){e.setToStorage({})}))()}}function $r(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function Xr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=document.createElement("div");return r.style="".concat(e),t&&(r.className=t),r}function Zr(){var e;return e=function*(e,t){if(e&&t){var r=yield a("#qrrc");if(r.length){var n=t.slice(-6).split("").map((e=>Number(e))),i=Xr("width: 60px; height: 10px; overflow: hidden;"),[o,s]=function(e){var t="width: 60px; height: 5px; overflow: hidden; display: flex; justify-content: space-between",r=Xr(t),n=Xr(t);return e.forEach((e=>{var t=e<=5;e%2==0?r.appendChild(Xr("width: 8px; height: 4px; background-color: black; opacity: 0.6","_blackSquare")):r.appendChild(Xr("width: 8px; height: 4px; background-color: white","_whiteSquare")),t?n.appendChild(Xr("width: 8px; height: 4px; background-color: black; opacity: 0.6","_blackSquare")):n.appendChild(Xr("width: 8px; height: 4px; background-color: white","_whiteSquare"))})),[r,n]}(n);i.appendChild(o),i.appendChild(s),r[0].appendChild(i)}}},Zr=function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){$r(o,n,i,a,s,"next",e)}function s(e){$r(o,n,i,a,s,"throw",e)}a(void 0)}))},Zr.apply(this,arguments)}var en=function(){return en=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]this.HashService.generateCdnDomain(),generateAuctionUrl:e=>this.HashService.generateAuctionUrl(e),generateNativeAuctionUrl:()=>this.HashService.generateNativeAuctionUrl(),convertToHashedUrl:e=>this.HashService.convertToHashedUrl(e)},DisplayAdblockService:new vr({hashedDomain:this.HashService.generateHashedProxyDomain()}),metrics:this.metrics.trackers,SessionService:this.SessionService,PositionService:this.PositionService,AuctionService:this.AuctionService,cookies:$,ytAuthDetector:this.ytAuthDetector},this.hashHelpers={},this.Logger.info("version ".concat(r.version)),this._paramReconciler={},this.adformatsUrls=[null===(e=document.currentScript)||void 0===e?void 0:e.src],this.tagIdsLiteVersion=[123481,114039,83975,26075,41577],this.tagIdsDisabledTopics=[83571],this.tagIdsDisabledAdBlockCheck=[123481,114039,83975,26075,41577],this.tagIdsDisabledTracking=[224955,224953,224949]}addReconsileParams(e){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(this._paramReconciler[t]=e[t])}getLocalConfig(){var e=window["_ckgrhacgg4"];return this.getActualConfig(e)}getActualConfig(e){return e.tag_configs?e.tag_configs[this.tagAbVersion]:e}loadTagConfig(e){var t=this;return an((function*(){return nn.getTagConfig(t.hashHelpers.createHashTagUrl,t.tagAbVersion,e)}))()}runFormatSpot(e,t){var r=this.adFormats.find((t=>t.type===e));r?r.runSpot(t):this.Logger.warn("AdFormat ".concat(r," no found in config"))}getConfigHelpers(e){var t=t=>e.adformats.find((e=>e.type===t));return{findFormat:t,addSpotToFormat:(e,r)=>{var n=t(e);n&&n.spots.push(r)},findFormatSpot:(e,r)=>{var n=t(e);return n&&n.spots.length?n.spots.find((e=>e.config.spot_id===r)):(this.Logger.warn("Spot ".concat(r," doesn't exist in config")),{config:{},ignore:[],bind:[]})}}}push(e){"function"==typeof e&&e()}enableMagmaClickResolver(e){if(!e)throw Error("siteId - must be passed for magma click resolver proper work");this.magmaClickResolverEnable=!0,this.siteId=e}changeAdFormatOrder(e,t){var r=this.adFormats.findIndex((t=>t.type===e));if(-1!==r){var[n]=this.adFormats.splice(r,1);this.adFormats.splice(t,0,n)}}runAdFormats(){this.adFormats.length&&(this.Logger.info("run tag formats"),(10149===this.tagId||this.customSettings.isInstreamFirst)&&this.changeAdFormatOrder(qr,0),([23106,58635].includes(this.tagId)||this.customSettings.isPopunderFirst)&&this.changeAdFormatOrder(Br,0),this.adFormats=this.adFormats.map((e=>{var t=new hr(e,this.env,this.providedDependencies,this.Logger,this.tagId,this.tagAbVersion,this.formatMediationScript);return t.start(),t})))}ph(){var e=this;this.hashHelpers={createHashPath:function(){return e.HashService.createHashPath(...arguments)},createHashTagUrl:function(){return e.HashService.createHashTagUrl(...arguments)},domainHashed:function(){return e.HashService.generateCdnDomain(...arguments)},date:function(){return e.HashService.getDateForHash(...arguments)},md5:X}}getAdformatsUrls(){return this.adFormats.reduce(((e,t)=>{var r=t.assets.js.map((e=>{var{src:t}=e;return t}));if("in_stream_ad"===t.type){var n=Object.values(t.spots[0].config.scripts);return e.concat([...n,...r])}return e.concat(r)}),[])}initializeSharedStorageAndKeywordsManager(e){this.isDonnyFriendly=e=>("31134"===this.env.qs.promo||"10146"===this.env.qs.campaign)&&e,this.isDonnyFriendly(e)?this.SharedStorage=new Qr:this.SharedStorage=new et(kt.getUrl(vt.SHARED_STORAGE).main),this.SharedStorage.init(),this.KeywordsManager=new ht(this.SharedStorage),this.providedDependencies.KeywordsManager=this.KeywordsManager,this.providedDependencies.SharedStorage=this.SharedStorage}init(){var e=arguments,t=this;return an((function*(){var n=e.length>0&&void 0!==e[0]?e[0]:t.tagId,i=e.length>1?e[1]:void 0;if(!n)throw new Error("[Admanager] - method init accept only string | number | object param");var o=Date.now(),a=performance.now();kt.init(t.customDomain);var u=c(n);t.tagId=c(n)?n.tagId:n;var l=Number(t.tagId),d=u?t.getActualConfig(n):t.loadTagConfig(n),p=r.isMB||r.isOnCl||u&&d.is_tnet||t.tagIdsDisabledAdBlockCheck.includes(l),[h,m,f,v]=yield Promise.all([d,G().then((e=>e.get())).then((e=>e)),Ur(),K({useScriptLoadCheck:!p})]);if(!c(h)||!s(h.adformats))throw new Error("[Admanager] - tag config must be object type and its adformats field must be an array type");var g=!!h.is_tnet,w=window.Intl&&Intl.DateTimeFormat().resolvedOptions().timeZone;h.v2&&(t.cloakingConfig=yield nn.getCloakingConfig(h.tagId,w,t.tagAbVersion,t.SessionService));var b,y=t.cloakingConfig||h;t.cloakingConfig&&!t.cloakingConfig.med_script_url&&h.med_script_url&&(y.med_script_url=h.med_script_url),t.customSettings=(b=y.custom_settings||{},en({isLiteVersion:!1,areTopicsDisabled:!1,isInstreamFirst:!1,isPopunderFirst:!1},b));var S,k,_=t.tagIdsLiteVersion.includes(l)||t.customSettings.isLiteVersion;t.env=Ke({visitorId:m.visitorId,isAdBlock:v,sessionService:t.SessionService,isTubeSite:g,fingerprint:m,userAgentData:f,tagAbVersion:(S=t.tagAbVersion,k=y.testId,k?"".concat(S,"_").concat(k):"".concat(S)),magmaClickResolverEnable:t.magmaClickResolverEnable,config:y,v2:t.cloakingConfig?1:0,siteId:t.siteId,isGoogleTopicsDisallowed:t.tagIdsDisabledTopics.includes(l)||t.customSettings.areTopicsDisabled}),t.env.isMB=r.isMB,t.env.cabsId=r.cabsId,t.env.loadedAt=o,t.env.clickId=t.clickId,t.env.pushUTMParams=t.pushUTMParams,t.formatMediationScript=y.o_script,t.initializeSharedStorageAndKeywordsManager(g),_||function(e){jr.apply(this,arguments)}(t.env.visitorIdString),function(e,t){Zr.apply(this,arguments)}(g,t.env.visitorIdString),t.PositionService.deviceType=t.env.ua.device.type,t.AuctionService.fillGeneralParameters({iabCategoryExtended:"IAB".concat(t.env.iabCategoryExtended),visitorId:t.env.visitorId,isMetaMask:t.env.sessionTime,tagAbVersion:t.env.tagAbVersion,sessionTime:t.SessionService.getDurationTime("min"),publisherKeywords:t.env.keywords,cloaking:t.env.v2,width:t.env.resolution[0],height:t.env.resolution[1],userId:t.env.userId,userAgentData:f});var C=t.HashService.generateHashedProxyDomain(),A=(g||r.isMB||r.isOnCl?null:t.HashService.generateMetricHashDomain())||r.initTrackingUrl,x=performance.now();t.adFormats=xt({tagId:t.tagId,label:y.label,iabcat:y.iabcat,isPhpLoaderActive:!!y.adm_loader,adFormats:y.adformats,hashHelpers:t.hashHelpers,isAdBlock:t.env.isAdBlock,hashedProxyDomain:C,legacySpotsExtend:t._paramReconciler,hashService:t.HashService,tagAbVersion:t.tagAbVersion,isTubeSite:g}),i&&i(),t.tagIdsDisabledTracking.includes(l)||function(e,t){var n=t.label,i=t.subId,o=t.userId,a=t.timezone,s=t.adManagerVersion,c=t.tagId,u=t.screenResolution,l=t.isAdBlock,d=t.timezoneOlson,p=t.utmSource,h=t.utmMedium,m=t.utmCampaign,f=t.utmContent,v=t.isMetaMaskActive,g=t.initToStartLatency,w=t.isCloaking,b=t.isCloakingResponseEmpty,y={wl:n,subid:i,user_id:o,timezone:a,ver:s,tag_id:Number(c||0),screen_resolution:u.join("x"),adblock:Number(l),timezone_olson:d,utm_source:p,utm_medium:h,utm_campaign:m,utm_content:f,mm:Number(v),init_start_latency:Number(g),is_v2:Number(w||!1),is_v2_empty:Number(b||!1)},S="/in/track?data=".concat(Nt(JSON.stringify(y))),k="".concat(e).concat(S),_="".concat(r.initTrackingUrl).concat(S);qt.get(k).catch((function(){qt.get(_)}))}(A,{label:y.label,subId:t.env.sub,userId:Jt(),timezone:t.env.timezone,adManagerVersion:r.version,tagId:y.tagId,screenResolution:t.env.resolution,isAdBlock:t.env.isAdBlock,timezoneOlson:t.env.timezoneOlson,utmSource:t.env.holdableQSParams.utm_source,utmMedium:t.env.holdableQSParams.utm_medium,utmCampaign:t.env.holdableQSParams.utm_campaign,utmContent:t.env.holdableQSParams.utm_content,isMetaMaskActive:t.env.isMetaMaskActive,initToStartLatency:((x-a)/1e3).toFixed(2),isCloaking:h.v2,isCloakingResponseEmpty:t.cloakingConfig,userKeywords:t.env.keywords});var T=t.getAdformatsUrls();t.adformatsUrls=[...t.adformatsUrls,...T];var I=new ar({formatMediationScript:t.formatMediationScript,mediationTrackingUrl:y.med_script_url});yield I.start(),t.runAdFormats()}))()}}var cn=document.querySelector("script[".concat(r.tagIdIdentifier,"]")),un=Array.isArray(window[r.adManagerWindowNamespace])?window[r.adManagerWindowNamespace]:[];if(window[r.adManagerWindowNamespace]=window[r.adManagerWindowNamespace]instanceof sn||new sn,window.a3klsam=window[r.adManagerWindowNamespace],window[r.adManagerWindowNamespace]._paramReconciler=window[r.overrideConfigWindowNamespace]||{},un.forEach((e=>e())),cn){var ln=cn.getAttribute(r.tagIdIdentifier);cn.removeAttribute(r.tagIdIdentifier);var dn=cn.getAttribute(r.clickIdIdentifier);cn.removeAttribute(r.clickIdIdentifier);var pn=cn.hasAttribute(r.noAutostartIdentifier),hn=cn.hasAttribute(r.customDomainIdentifier);if(ln&&(window[r.adManagerWindowNamespace].tagId=ln),dn&&(window[r.adManagerWindowNamespace].clickId=dn),hn){var mn=new URL(cn.getAttribute("src"));window[r.adManagerWindowNamespace].customDomain={host:mn.host.replace("ajs.",""),protocol:mn.protocol}}[r.utmSource,r.utmMedium,r.utmContent,r.utmCampaign].forEach((e=>{var t=cn.getAttribute(e);if(t){var n=e.replace("data-","").replace("-","_");window[r.adManagerWindowNamespace].pushUTMParams[n]=t}})),ln&&!pn&&window[r.adManagerWindowNamespace].init()}})();