/*! * * Copyright (C) Yolla Media 2026 * https://portal.yollamedia.com * Version: 3.19.8 / 10.29.1 / prod / newpreroll * Release: 2026-08-03T12:55:02.521Z * */(()=>{"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}}();const t="ON_LOCATION_CHANGED",n="ON_BEFORE_AD_UNIT_REQUEST",o="ON_AD_UNIT_REQUEST_COMPLETE";const i="object"==typeof e.g&&e.g&&e.g.Object===Object&&e.g;var r="object"==typeof self&&self&&self.Object===Object&&self;const a=i||r||Function("return this")();var s=/\s/;const c=function(e){for(var t=e.length;t--&&s.test(e.charAt(t)););return t};var u=/^\s+/;const d=function(e){return e?e.slice(0,c(e)+1).replace(u,""):e};const l=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};const f=a.Symbol;var p=Object.prototype,v=p.hasOwnProperty,_=p.toString,h=f?f.toStringTag:void 0;const m=function(e){var t=v.call(e,h),n=e[h];try{e[h]=void 0;var o=!0}catch(e){}var i=_.call(e);return o&&(t?e[h]=n:delete e[h]),i};var y=Object.prototype.toString;const w=function(e){return y.call(e)};var g=f?f.toStringTag:void 0;const b=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":g&&g in Object(e)?m(e):w(e)};const E=function(e){return null!=e&&"object"==typeof e};const O=function(e){return"symbol"==typeof e||E(e)&&"[object Symbol]"==b(e)};var D=/^[-+]0x[0-9a-f]+$/i,R=/^0b[01]+$/i,A=/^0o[0-7]+$/i,S=parseInt;const I=function(e){if("number"==typeof e)return e;if(O(e))return NaN;if(l(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=l(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=d(e);var n=R.test(e);return n||A.test(e)?S(e.slice(2),n?2:8):D.test(e)?NaN:+e};var T=1/0;const C=function(e){return e?(e=I(e))===T||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0};const P=function(e){var t=C(e),n=t%1;return t==t?n?t-n:t:0};const L=function(e,t){for(var n=-1,o=null==e?0:e.length,i=Array(o);++n2&&void 0!==arguments[2]?arguments[2]:"floor";if(t<=0)throw new Error("invalid roundTo");if(e<=t)return e;let o=e,i=1,r=0;for(;!Number.isSafeInteger(t);)i*=10,t*=10,r++;let a=Math[n](e*i/t);return a>0&&(o=a*t/i),V(o,r)}function F(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};o.eventCategory="TCF_"+t.replace(/[\W\.]+/g,"_"),o.eventLabel=n,o.eventValue=1,window.yaq("event",e,o)}const x={cls:{score:""}};function $(e){return $="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$(e)}function k(e){var t=function(e,t){if("object"!=$(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=$(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==$(t)?t:t+""}function G(e,t,n){return(t=k(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function H(e){let t=(e=e.toString()).match(/^(https?\:\/\/)?([^\/?#]+)(?:[\/?#]|$)/i);return t?t[2].replace(/^www\./,""):""}const W=window.location!==window.parent.location,K=H(window.location)||window.location.hostname,J=window.location.ancestorOrigins&&window.location.ancestorOrigins.length>0?window.location.ancestorOrigins[0]:"",Q=W?J||H(window.document.referrer):K;/^https:/.test(window.location.href),encodeURIComponent(window.location.host);function Z(e){return t=e,n="String",Object.prototype.toString.call(t)==="[object "+n+"]";var t,n}function X(e){if(!e)return!0;if((t=e)&&Array.isArray(t)||Z(e))return!(e.length>0);var t;for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}function ee(e){return"tcloaded"===e.eventStatus||"useractioncomplete"===e.eventStatus}function te(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ee;return new Promise((n,o)=>{window.__tcfapi?window.__tcfapi("addEventListener","2",function(i,r){i&&r?t(i)&&(e&&e(i),n(i),i.listenerId&&window.__tcfapi("removeEventListener","2",()=>{},i.listenerId)):o(null)}):(e&&e(null),o(null))})}async function ne(){let e=await te(),t="unknown";return e&&(!1===e.gdprApplies?t="notapply":(t=e.eventStatus+"|","tcloaded"!==e.eventStatus&&"useractioncomplete"!==e.eventStatus?t+="pending":!function(e){if(X(e))return!0;const t=X(e.publisher)||X(e.publisher.consents)&&X(e.publisher.legitimateInterests),n=X(e.purpose)||X(e.purpose.consents)&&X(e.purpose.legitimateInterests),o=X(e.vendor)||X(e.vendor.consents);return t&&n&&o}(e)?t+="accecpt_some":t+="reject_all")),t}function oe(){return"hidden"===document.visibilityState||document.hidden?0:1}function ie(){return 0===oe()}function re(e){const t=(new TextEncoder).encode(e);return String.fromCharCode(...t)}function ae(e,t,n){let o="";try{for(let i=0;i>1^t,o+=String.fromCharCode(r)}}catch(e){}return o}function se(e,t){let n="";try{n=ae(function(e){const t=new Uint8Array(e.length);for(let n=0;n0&&void 0!==arguments[0]?arguments[0]:8);return crypto.getRandomValues(e),Array.from(e).map(e=>e.toString(16).padStart(2,"0")).join("")}async function Ae(e){const t=e.ts||Date.now();e.ts=t;const n=Re(),o=De(n,+e.domain_id),i=pe(pe({},e),{},{rn:o}),r=Object.keys(i).sort().reduce((e,t)=>(e[t]=i[t],e),{}),a="".concat(e.session_id,"_").concat(n);try{const e=await async function(e,t){const n=ge[we](t),o=ge[we](JSON.stringify(e)),i=await window[ce][ue][de](me,n,be,!1,Ee),r=await window[ce][ue][he](Oe,i,o);return le(String.fromCharCode(...new Uint8Array(r)))}(r,a);i[_e]=e}catch(e){i[_e]=""}return i}const Se={sendBeacon:(e,t)=>(fetch(e,{mode:"no-cors",method:"POST",headers:{"Content-Type":"application/json"},body:t}),!0)},Ie=["v","uuid","session_id","language","country","browser_size","domain_id","hostname","dimension3","dimension7","dimension8","dimension10","dimension11","dimension22","utm_id","utm_source","utm_medium","utm_campaign","utm_term","utm_content","utm_source_platform"],Te={pageviewId:"pvid",userId:"uid",hitType:"t",hostname:"dh",page_location:"dl",page_title:"dt",page_referrer:"ref",document_referrer:"dr",eventCategory:"category",eventAction:"action",eventLabel:"label",eventValue:"value"};function Ce(e){let t="";return Te.hasOwnProperty(e)?t=Te[e]:/^dimension\d+$/.test(e)?(t=e.replace("dimension","cd"),Te[e]=t):/^metric\d+$/.test(e)&&(t=e.replace("metric","cm"),Te[e]=t),t}const Pe=Ie.map(e=>Ce(e)||e);function Le(e){return["dimension20","pageviewId"].indexOf(e)>-1||Ie.indexOf(e)>-1||/^p(d|m)\d+$/.test(e)}function Me(e){let t=Object.assign({},e);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){let o=Ce(n);o?(t[o]=e[n]+"",delete t[n]):t[n]=e[n]+""}return["ts","domain_id"].forEach(e=>{t[e]=+t[e]}),t}const Ne=class{constructor(){G(this,"_name","yolla"),G(this,"_url","https://analytics.yollamedia.com:8443/v0/pv"),G(this,"_adapter",Se),window.addEventListener("beforeunload",()=>{this._adapter=navigator.sendBeacon?navigator:Se})}get name(){return this._name}_sendBeacon(e){e.rd=Re();const t=JSON.stringify(e);this._adapter.sendBeacon(this._url,t),this._adapter.sendBeacon("https://analytics2.yollamedia.com:8443/v0/pv",t)}config(e,t){}pageview(e){Object.assign(e,{eventCategory:"pageview",eventLabel:"pageview",eventValue:1}),this.send("pageview",e)}set(){}get(){}consent(){}exec(){}async send(e,t){Object.assign(t,{eventAction:e,ts:Date.now()});let n=await Ae(Me(t));this._sendBeacon(n)}};var je=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Be=/^\w*$/;const Ye=function(e,t){if(M(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!O(e))||(Be.test(e)||!je.test(e)||null!=t&&e in Object(t))};const Ue=function(e){if(!l(e))return!1;var t=b(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t};const qe=a["__core-js_shared__"];var Ve,ze=(Ve=/[^.]+$/.exec(qe&&qe.keys&&qe.keys.IE_PROTO||""))?"Symbol(src)_1."+Ve:"";const Fe=function(e){return!!ze&&ze in e};var xe=Function.prototype.toString;const $e=function(e){if(null!=e){try{return xe.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var ke=/^\[object .+?Constructor\]$/,Ge=Function.prototype,He=Object.prototype,We=Ge.toString,Ke=He.hasOwnProperty,Je=RegExp("^"+We.call(Ke).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Qe=function(e){return!(!l(e)||Fe(e))&&(Ue(e)?Je:ke).test($e(e))};const Ze=function(e,t){return null==e?void 0:e[t]};const Xe=function(e,t){var n=Ze(e,t);return Qe(n)?n:void 0};const et=Xe(Object,"create");const tt=function(){this.__data__=et?et(null):{},this.size=0};const nt=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t};var ot=Object.prototype.hasOwnProperty;const it=function(e){var t=this.__data__;if(et){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return ot.call(t,e)?t[e]:void 0};var rt=Object.prototype.hasOwnProperty;const at=function(e){var t=this.__data__;return et?void 0!==t[e]:rt.call(t,e)};const st=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=et&&void 0===t?"__lodash_hash_undefined__":t,this};function ct(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1};const mt=function(e,t){var n=this.__data__,o=ft(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this};function yt(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991};const Xt=function(e,t,n){for(var o=-1,i=(t=jt(t,e)).length,r=!1;++o0&&o(c)?n>1?e(c,n-1,o,i,r):nn(r,c):i||(r[r.length]=c)}return r};const sn=function(e){return(null==e?0:e.length)?an(e,1):[]};const cn=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)};var un=Math.max;const dn=function(e,t,n){return t=un(void 0===t?e.length-1:t,0),function(){for(var o=arguments,i=-1,r=un(o.length-t,0),a=Array(r);++i0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(pn);const hn=function(e){return _n(dn(e,void 0,sn),e+"")}(function(e,t){return null==e?{}:tn(e,t)});function mn(e){return new URLSearchParams(e).toString()}const yn=class{constructor(){G(this,"_name","debug"),G(this,"_url","https://analytics.yollamedia.com:8443/v1/de"),G(this,"_que",[]),G(this,"_adapter",Se),G(this,"_timer",null),this._send=this._send.bind(this),this.checkReady()||this.init()}get name(){return this._name}checkReady(){return!!this._timer}_sendBeacon(e){if(e.length<1)return;const t=hn(e[0],Pe),n=this._url+"?".concat(mn(t)),o="https://analytics2.yollamedia.com:8443/v1/de"+"?".concat(mn(t));e.forEach(e=>{e.rd=Re()});const i=JSON.stringify(e);this._adapter.sendBeacon(n,i),this._adapter.sendBeacon(o,i)}_send(){const e=this._que.slice();this._que.length=0,e.length>0&&this._sendBeacon(e)}init(){this._timer=setInterval(this._send,5e3),window.addEventListener("beforeunload",()=>{navigator.sendBeacon.bind(this),this._adapter=navigator.sendBeacon?navigator:Se,this._send()})}config(e,t){}pageview(e){Object.assign(e,{eventCategory:"pageview",eventLabel:"pageview",eventValue:1}),this.send("pageview",e)}set(){}get(){}consent(){}exec(){}async send(e,t){Object.assign(t,{eventAction:e});let n=await Ae(Me(t));["ympbReady","onPlayerRequestVast","onVideoStarted"].indexOf(e)>-1?this._sendBeacon([n]):(this._que.push(n),this._que.length>=20&&this._send())}};const wn=class{get name(){return this._name}constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"console";G(this,"_name",void 0),G(this,"_adapter",null),this._name=e}_sendBeacon(e){e.rd=Re();let t=hn(e,Pe),n="/?".concat(mn(t));window.console.log("Yolla Tracker:: ".concat(n," | ").concat(e.category," | ").concat(e.label," | ").concat(e.action," | ").concat(e.value),e)}config(e,t){}pageview(e){Object.assign(e,{eventCategory:"pageview",eventLabel:"pageview",eventValue:1}),this.send("pageview",e)}set(){}get(){}consent(){}exec(){}async send(e,t){Object.assign(t,{eventAction:e});let n=await Ae(Me(t));this._sendBeacon(n)}};function gn(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Promise(function(n){fetch(e,{method:"HEAD",cache:"no-store"}).then(o=>{let i=["cors","basic"].indexOf(o.type)<0||!t&&o.url!==e||o.status<200||o.status>303;n(!i)}).catch(()=>n(!1))})}function bn(e,t){var n=function(e){for(var t=e.split(/([.#])/),n="",o="",i=1;i0;)n[o]=arguments[o+1];var i=typeof e;if("string"===i)t=bn(e);else{if("function"!==i)throw new Error("At least one argument required");var r=e;t=new(Function.prototype.bind.apply(r,[null].concat(n)))}return Bn(Un(t),n,!0),t}function zn(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];for(var o=Fn(e,t,Un(e).firstChild);o;){var i=o.nextSibling;En(e,o),o=i}}function Fn(e,t,n){for(var o=n,i=Array(t.length),r=0;r0;)n[o]=arguments[o+1];var i=typeof e;if("string"===i)t=bn(e,Hn);else{if("function"!==i)throw new Error("At least one argument required");var r=e;t=new(Function.prototype.bind.apply(r,[null].concat(n)))}return Bn(Un(t),n,!0),t}function Kn(){let e=document.createElement("div");return e.innerHTML=" ",e.className="ads ad adsbox doubleclick ad-placement carbon-ads ad_container text-ad text_ad pub_",Tn(e,{width:"1px",height:"1px",position:"absolute",left:"-10px",top:"-10px"}),document.body?(document.body.appendChild(e),new Promise(function(t,n){window.setTimeout(function(){let o=!e||0===e.offsetHeight||!function(e){const t=e.getBoundingClientRect();let n=t.width||t.right-t.left,o=t.height||t.top-t.bottom;return!(n<=0&&o<=0)&&"visible"===window.getComputedStyle(e).visibility}(e);if(null!==e)try{En(document.body,e)}catch(e){}o?n(new Error("AdBlock Enabled")):t(!0)},400)})):Promise.resolve(!0)}Wn.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return Wn.bind.apply(Wn,[this].concat(e))},Wn.ns=Hn;class Jn{constructor(){G(this,"_startedAt",Date.now()),G(this,"_configs",{api:"v1",id:"",allowed_categories:[]}),G(this,"_sharedParams",null),G(this,"$options",null),G(this,"$wrappers",[]),window.yaqData=window.yaqData||[],window.yaq=window.yaq||function(){window.yaqData.push(arguments)},this.initial()}get initialed(){return this.$wrappers.length>0}getCommonParams(){let e=[window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth||0,window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight||0].join("x"),t={document_referrer:document.referrer,page_referrer:Q,browser_size:e,bs:e,sp:[Math.floor(document.documentElement.scrollLeft),Math.floor(document.documentElement.scrollTop)].join(","),ts:Date.now(),dimension27:oe(),metric12:Math.round((Date.now()-this._startedAt)/1e3)};return Object.assign(t,this._sharedParams),t}async _consent(e,t){let n=t&&t.cmpStatus?t.cmpStatus:await ne();this._set({dimension10:n})}_config(e){for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&this._configs.hasOwnProperty(t)&&(this._configs[t]=e[t])}_set(e){for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&Le(t)&&(this._sharedParams[t]=e[t])}addWrapper(e){this.$wrappers.push(e)}getWrapper(e){return this.$wrappers.find(t=>t.name===e)}async send(e,t,n){let o=this.getWrapper(e);if(!o)return!1;if(this._configs.allowed_categories.length>0){const e=n.eventCategory||t;if(this._configs.allowed_categories.indexOf(e)<0)return!1}let i=Object.assign({page_path:document.location.pathname,page_location:document.location.href,page_title:document.title||""},n||{},this.getCommonParams());if("page_view"===t){i.type="pageview";try{const e=await async function(){return gn("https://securepubads.g.doubleclick.net/tag/js/gpt.js")}();i.dimension16=e?1:0;const t=await async function(){return gn("https://imasdk.googleapis.com/js/sdkloader/ima3.js")}();i.dimension17=t?1:0;const n=await async function(){return new Promise(function(e){Kn().then(()=>e(!0)).catch(()=>e(!1))})}();i.dimension15=n?1:0}catch(e){}o.pageview(i)}else i.type="event",o.send(t,i);return!0}execQue(){if(!(window.yaqData.length<1)&&this.initialed){window.yaqData.sort(e=>"event"===e[0]&&"page_view"===e[1]?-1:0),window.yaqData.sort(e=>"set"===e[0]?-1:0),window.yaqData.sort(e=>"init"===e[0]?-1:0),window.yaqData.sort(e=>"config"===e[0]?-1:0);for(let e=0;e"init"===e[0]);if(e>-1){let t=window.yaqData.splice(e,1);this.init(t[0][1])}}}}window.YMPB.const&&window.YMPB.const.ALL_SUPPORTED_DISPLAY_SIZES&&window.YMPB.const.ALL_SUPPORTED_DISPLAY_SIZES.length>0&&window.YMPB.const.ALL_SUPPORTED_DISPLAY_SIZES,window.YMPB.const&&window.YMPB.const.DEFAULT_MOBILE_LEADERBODARD_SIZES&&window.YMPB.const.DEFAULT_MOBILE_LEADERBODARD_SIZES.length>0&&window.YMPB.const.DEFAULT_MOBILE_LEADERBODARD_SIZES;const Qn=1,Zn=2,Xn=3,eo=4;[960,540].slice(),[400,225].slice();const to=function(){this.__data__=new wt,this.size=0};const no=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};const oo=function(e){return this.__data__.get(e)};const io=function(e){return this.__data__.has(e)};const ro=function(e,t){var n=this.__data__;if(n instanceof wt){var o=n.__data__;if(!gt||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new Tt(o)}return n.set(e,t),this.size=n.size,this};function ao(e){var t=this.__data__=new wt(e);this.size=t.size}ao.prototype.clear=to,ao.prototype.delete=no,ao.prototype.get=oo,ao.prototype.has=io,ao.prototype.set=ro;const so=ao;const co=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};const uo=function(e){return this.__data__.has(e)};function lo(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Tt;++ts))return!1;var u=r.get(e),d=r.get(t);if(u&&d)return u==t&&d==e;var l=-1,f=!0,p=2&n?new fo:void 0;for(r.set(e,t),r.set(t,e);++l-1?i[r?t[a]:a]:void 0}};const ji=function(e,t,n,o){for(var i=e.length,r=n+(o?1:-1);o?r--:++r5?z(t-1,5):0,e>1?"".concat(t+1,"-").concat(t+5):0}function Fi(e){return e.map(e=>"".concat(Math.round(e.y),",").concat(Math.round(e.y+e.height),",").concat(Math.round(e.x),",").concat(Math.round(e.x+e.width))).join("|")}function xi(e){var t,n,o,i,r;let a=e.bidWon||e.bid,s=(null==a?void 0:a.bidder)||(e.isAdxWon?"AdX":""),c=(null==a?void 0:a.parentBidderCode)||(e.isAdxWon?"AdX":""),u=qi(e.adUnitCode).map(e=>e.join("x")),d={tp:Fi([e.position]),dimension1:s,dimension2:(null==a||null===(t=a.adserverTargeting)||void 0===t?void 0:t.hb_pb)||0,dimension4:e.refreshCounter,dimension5:e.slotFillType,dimension14:e.inviewDuration>=2,dimension17:zi(e.inviewDuration),dimension23:e.isImpOnSwap?1:0,dimension24:e.adUnitCode,dimension25:e.ympbId,dimension26:e.status,dimension28:JSON.stringify(e.targetings),dimension30:Fi(e.lastSwapPosition),dimension31:e.isSwapping?1:0,dimension33:e.creativeType,dimension34:c,dimension35:e.closeReason||-1,dimension37:e.slotSize?e.slotSize.join("x"):"",dimension38:e.groupType,dimension39:a&&a.__retry?a.__retry:0,dimension40:e.refreshType||0,dimension41:e.formatType,dimension42:u.join(","),dimension43:e.isUseGAM?1:0,dimension44:e.gid||"",dimension45:a?a.adId:"",dimension46:a?a.size:"",dimension47:e.advertiserId||"",dimension48:e.blockStatus||0,metric3:e.isUsePrebidRender?1:0,metric4:e.isDfpEmpty?1:0,metric5:a?a.originalCpm||a.cpm:0,metric6:e.hasError?1:0,metric8:e.inviewDuration,metric11:e.swapCounter,metric13:e.counter,metric14:e.isAdxWon?1:0};if(e.hasError&&(d.dimension6=e.errorMessage||"unknown"),e.isImpressed&&(d.dimension19=e.isAdxWon?"AdX":null==a?void 0:a.bidder),e.isVideoAdData){let t=-1;var l,f;if(t=e.autoplay?e.muted||0===e.volume?Zn:Qn:e.muted||0===e.volume?eo:Xn,Object.assign(d,{dimension12:e.videoAdStatus,dimension13:t,dimension15:zi(e.videoAdInViewDuration),dimension16:zi(e.currentTime),dimension21:e.waterfallIndex,metric7:Math.floor(e.videoAdDuration),metric8:Math.floor(e.videoAdInViewDuration),metric9:Math.floor(e.currentTime)}),e.adSystem)d.dimension19="".concat(e.adSystem,"|").concat(null===(l=e.adWrapperSystems)||void 0===l?void 0:l.join(","),"|").concat(null===(f=e.adWrapperIds)||void 0===f?void 0:f.join(","))}let p=YMPB.getSlotPositions(e.adUnitCode);return d.dimension32=Fi(p),d.dimension49=(null===(n=e.imaError)||void 0===n?void 0:n.getType())||(null===(o=e.error)||void 0===o?void 0:o.getType())||"",d.dimension50=(null===(i=e.imaError)||void 0===i?void 0:i.getErrorCode())||(null===(r=e.error)||void 0===r?void 0:r.getErrorCode())||"",W||(d.dimension29=YMPB.checkSlotIsCovered(e.adUnitCode)),d}function $i(e){let t=e.parentBidderCode,n=e.ymAlias||e.alias||e.bidder,o="mediaTypes"in e?Object.keys(e.mediaTypes):[e.mediaType],i=qi(e.adUnitCode).map(e=>e.join("x")),r={dimension1:n,dimension5:o.join("|"),dimension24:e.adUnitCode,dimension25:e.auctionId,dimension34:t,dimension42:i.join(",")},a=function(e){return Vi.hasOwnProperty(e)?Vi[e]:Vi[e]=YMPB.checkBidderConsent(e)}(e.bidder);return a?(r.dimension19=a.gvlid,r.dimension26=a.consents?"true":"false",r.dimension28=a.legitimateInterests?"true":"false"):r.dimension19=0,r}var ki,Gi,Hi,Wi,Ki,Ji,Qi,Zi,Xi,er,tr,nr,or,ir,rr,ar,sr,cr,ur,dr,lr,fr;!function(e){e.BIDDER_LABELS_INITING="initing",e.BIDDER_LABELS_PRECACHING="precaching",e.BIDDER_LABELS_PRECACHING_2="precaching_2",e.BIDDER_LABELS_REFRESHING="refreshing",e.BIDDER_LABELS_INITCACHING="initcaching",e.BIDDER_LABELS_PREFETCHING="prefetching"}(ki||(ki={})),function(e){e.UNSET="",e.NORMAL="normal",e.FULLSCREEN="fullscreen"}(Gi||(Gi={})),function(e){e.UNSET="",e.ACTIVE="active",e.INVISIBLE="invisible"}(Hi||(Hi={})),function(e){e.UNSET="",e.IDLE="idle",e.ACTIVE="active"}(Wi||(Wi={})),function(e){e.IN_ARTICLE="inarticle",e.STICKY="sticky",e.FLOAT="float",e.OVERLAY="overlay"}(Ki||(Ki={})),function(e){e.DISPLAY="display",e.VIDEO="video"}(Ji||(Ji={})),function(e){e[e.INITIAL=1]="INITIAL",e[e.REFRESH=2]="REFRESH",e[e.ERROR_RETRY=3]="ERROR_RETRY",e[e.NO_BID_RETRY=4]="NO_BID_RETRY",e[e.STALL_REFRESH=5]="STALL_REFRESH",e[e.FORCE_REFRESH=6]="FORCE_REFRESH",e[e.VIDEO_FORCE_REFRESH=7]="VIDEO_FORCE_REFRESH"}(Qi||(Qi={})),function(e){e.BANNER="banner",e.NATIVE="native",e.VIDEO="video"}(Zi||(Zi={})),function(e){e.UNSET="",e.LEADERBOARD="leaderboard",e.INARTICLE="inarticle",e.ADHESION="adhesion",e.OUTSTREAM="outstream",e.PREROLL="preroll",e.MEDREC="medrec",e.STICKY="sticky",e.OOP="oop",e.GMI="gmi"}(Xi||(Xi={})),function(e){e.TARGET="target",e.ANCHOR="anchor",e.MULTI="target_multi",e.DYNAMIC="target_dynamic",e.VIDEO="target_video",e.DELAY="target_delay",e.MULTIFORMAT="target_multiformat"}(er||(er={})),function(e){e.OOP="Oop",e.DISPLAY="Banner",e.VIDEO="Video",e.PREROLL_FALLBACK="Fallback",e.PREROLL="Preroll",e.INTERSTITIAL="Interstitial",e.GAME_INTERSTITIAL="GMI",e.GAME_INTERSTITIAL_FALLBACK="GMI_FB",e.OUTSTREAM="Outstream",e.HYBRID_OUTSTREAM="Outstream_HYB",e.FLOATING_OUTSTREAM="Outstream_FLT",e.FLOATING_OUTSTREAM_IDLE="Outstream_FLT_IDL",e.OVERLAY_OUTSTREAM="Outstream_OVL"}(tr||(tr={})),function(e){e.PREROLL="preroll",e.INSTREAM="instream",e.OUTSTREAM="outstream"}(nr||(nr={})),function(e){e.STATIC="static",e.DYNAMIC="dynamic",e.SKIPPED="skipped",e.DISABLED="disabled"}(or||(or={})),function(e){e.VERTICAL="vertical",e.HORIZONTAL="horizontal"}(ir||(ir={})),function(e){e.PENDDING="pendding",e.READY="ready",e.PAUSED="paused",e.STOPPED="stopped"}(rr||(rr={})),function(e){e.PENDDING="pendding",e.READY="ready",e.AUCTIONING="auctioning",e.REQUESTING="requesting",e.PLAYER_REQUEST_ADS="player_request_ads",e.RENDERING="rendering",e.DFP_RENDERED="dfp_rendered",e.DFP_RENDER_EMPTY="dfp_empty",e.PREBID_DIRECT_RENDER="prebid_render",e.DFP_IMPRESSED="dfp_impressed",e.PREBID_IMPRESSED="prebid_impressed",e.ERROR="error",e.CLOSED="closed",e.DISABLED="disabled",e.DESTROYED="destroyed"}(ar||(ar={})),function(e){e[e.UNSET=0]="UNSET",e[e.BY_USER=1]="BY_USER",e[e.DYNAMIC_DESTORY=2]="DYNAMIC_DESTORY",e[e.ELEMENT_NOT_FOUND=3]="ELEMENT_NOT_FOUND",e[e.PLAYER_ERROR=4]="PLAYER_ERROR",e[e.AD_ERROR=5]="AD_ERROR",e[e.CREATIVE_ERROR=6]="CREATIVE_ERROR"}(sr||(sr={})),function(e){e[e.UNSET=0]="UNSET",e[e.ADX=1]="ADX",e[e.HB=2]="HB",e[e.HB_WITHOUT_AD_SERVER=3]="HB_WITHOUT_AD_SERVER",e[e.DISPLAY_FALLBACK=4]="DISPLAY_FALLBACK",e[e.GMI_FALLBACK=6]="GMI_FALLBACK"}(cr||(cr={})),function(e){e.PREVENT_WRITING_ON_MAIN_DOCUMENT="preventWritingOnMainDocument",e.NO_AD="noAd",e.EXCEPTION="exception",e.CANNOT_FIND_AD="cannotFindAd",e.MISSING_DOC_OR_ADID="missingDocOrAdid",e.UNSET="",e.NO_AD_PROVIDED="noAdProvided",e.MISSING_DOC="missingDoc",e.DIRECT_RENDER_FAIL="directRenderFail",e.UNKNOWN="unkown"}(ur||(ur={})),function(e){e.UNSET="",e.COMPANION="companion",e.MULTI="multi",e.DISPLAY_FALLBACK="display_fallback",e.DYNAMIC_INSERTED="dynamic_inserted",e.OVERLAY="dynamic_overlay",e.MULTIFORMAT="multiformat"}(dr||(dr={})),function(e){e.UNSET="",e.BID_TARGETING_SET="targetingSet",e.RENDERED="rendered",e.BID_REJECTED="bidRejected"}(lr||(lr={})),function(e){e[e.UNSET=0]="UNSET",e[e.NETWORK=1]="NETWORK",e[e.CPU=2]="CPU"}(fr||(fr={}));let pr="",vr=0;const _r={};function hr(e,t){let n=_r[e];if(!n)return 0;const o=t.replace(/-\d+$/,"");return n[t]||n[o]||0}function mr(e){let t="";if(!e)return t;for(let n=0;n1&&void 0!==arguments[1]?arguments[1]:{};if(e<=0){if(Date.now()-vr<18e5)return;vr=Date.now()}Object.assign(t,{eventCategory:"Yolla",eventLabel:Q,eventValue:Math.round(100*e)}),window.yaq("event",pr,t)}function wr(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=xi(t);Object.assign(o,{eventCategory:"Debug",eventLabel:t.adUnitCode.replace(/-\d+$/,""),eventValue:1},n),window.yaq("event.debug",e,o)}function gr(){YMPB.$e.on("YMPB_ALL_SET",e=>{let t="n/a";e&&e.detail&&(t=e.detail.blocker?"blocker":"normal",e.detail.blockthroughMode&&(t="blockthrough"));let n={eventCategory:"Debug",eventLabel:t,eventValue:1,dimension20:""};e.detail&&e.detail.options.GDPR_ENABLED&&!e.detail.blocker?te().then(e=>{n.dimension20=e.tcString,window.yaq("event.debug","ympbReady",n)}).catch(()=>{n.dimension20="(error)",window.yaq("event.debug","ympbReady",n)}):window.yaq("event.debug","ympbReady",n)}),YMPB.onEvent("auctionInit",function(e){var t;let n=null===(t=window.YMPB.getConfig("floors"))||void 0===t||null===(t=t.data)||void 0===t?void 0:t.values;_r[e.auctionId]=Object.assign({},n||{})}),YMPB.onEvent("auctionEnd",function(e){"completed"===e.auctionStatus&&(e.bidderRequests.forEach(t=>{t.bids.forEach(t=>{let n=t.adUnitCode.replace(/-\d+$/,""),o=$i(t);o.metric7=e.auctionStart,o.dimension36=hr(e.auctionId,t.adUnitCode),Object.assign(o,{eventCategory:"Debug",eventLabel:n,eventValue:1}),window.yaq("event.debug","bidRequested",o)})}),e.bidsReceived.forEach(t=>{if(!t.__adUnitCode){let n=t.adUnitCode.replace(/-\d+$/,""),o=function(e){let t=$i(e);return Object.assign(t,{dimension2:e.cpm.toFixedNoRounding(2),dimension16:e.timeToRespond,dimension45:e.adId,dimension46:e.size,metric5:e.originalCpm||e.cpm,metric7:e.responseTimestamp}),t}(t);o.metric8=e.auctionEnd,o.dimension36=hr(e.auctionId,t.adUnitCode),Object.assign(o,{eventCategory:"Debug",eventLabel:n,eventValue:1}),window.yaq("event.debug","bidResponse",o)}}),delete _r[e.auctionId])}),YMPB.$e.on("ON_AD_UNIT_ERROR",e=>{wr("onAdUnitError",e.detail.statusData,{})}),YMPB.$e.on(o,e=>{wr("slotRequestComplete",e.detail.statusData,{})}),YMPB.$e.on("ON_PREBID_RENDER_SUCCESS",e=>{let t=e.detail.statusData,n=t.bidWon||t.bid;if(n){let e=xi(t);Object.assign(e,{eventCategory:"RenderWithoutPlatform",eventLabel:Q,eventValue:Math.floor(100*n.cpm)}),window.yaq("event",YMPB.getOption("YMPB_VARIANT"),e)}}),YMPB.$e.on("ON_PREBID_RENDER_ERROR",e=>{let t=e.detail.statusData,n=xi(t);Object.assign(n,{eventCategory:"Error",eventLabel:Q,eventValue:1,dimension6:t.prebidRenderError||t.errorMessage||"unknown"}),window.yaq("event","Prebid Render Error",n)})}let br=0,Er=Date.now(),Or=0,Dr={requestCount:0,renderCount:0,hbRenderCount:0,emptyRenderCount:0,errorCount:0,swapCount:0,cmpCount:0,adxCount:0,clsScore:0,inview:0,videoCount:0,videoDuration:0,videoInview:0};function Rr(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=br>0?Date.now()-br:0;if(Or+=t,br=ie()?0:Date.now(),t<100)return;let n=Object.assign({eventCategory:"Duration",eventLabel:"duration",eventValue:t,dimension15:Math.floor(Or/1e3),dimension16:Math.floor((Date.now()-Er)/1e3),metric1:Dr.requestCount,metric2:Dr.renderCount,metric3:Dr.hbRenderCount,metric4:Dr.emptyRenderCount,metric5:Dr.cmpCount.toFixed(4),metric6:Dr.errorCount,metric7:Dr.videoDuration,metric8:Dr.inview.toFixed(2),metric9:Dr.videoInview,metric11:Dr.swapCount,metric14:Dr.adxCount,metric15:x.cls.score,metric16:Dr.videoCount},e);window.yaq("event","Duration",n)}function Ar(){ie()?Rr():br=Date.now()}function Sr(){Rr({eventLabel:"leave"})}let Ir=location.href,Tr=0;if(window.YMPB=window.YMPB||{},window.YMPB.que=window.YMPB.que||[],window.YMPB.command=window.YMPB.command||[],function(e){if("undefined"==typeof window||!("PerformanceObserver"in window))return null;let t=0,n=[],o=0,i=[];const r=e=>e<=.1?"good":e<=.25?"needs-improvement":"poor",a=()=>{"function"==typeof e&&e({value:t,rating:r(t),entries:n})};try{const e=new PerformanceObserver(e=>{const r=e.getEntries();for(const e of r){if(e.hadRecentInput)continue;const r=i[0],s=i[i.length-1];o&&s&&r&&e.startTime-s.startTime<1e3&&e.startTime-r.startTime<5e3?(o+=e.value,i.push(e)):(o=e.value,i=[e]),o>t&&(t=o,n=[...i],a())}});return e.observe({type:"layout-shift",buffered:!0}),{getCurrentCLS:()=>({value:t,rating:r(t),entries:n}),disconnect:()=>e.disconnect()}}catch(e){return null}}(e=>{x.cls.score=e.value.toFixed(4)}),!0!==window.yaq.ready){!function(){const e=new MutationObserver(function(e){const n=new URL(Ir);if(location.pathname!==n.pathname){let e={$prevURL:n,$currentURL:new URL(location.href),counter:++Tr};Ir=location.href,window.YMPB&&window.YMPB.$e&&window.YMPB.$e.qd(t,e)}});e.observe(document,{subtree:!0,childList:!0}),window.addEventListener("beforeunload",function(t){e.disconnect()})}();new Jn;window.YMPB.que.push(function(){window.addEventListener("visibilitychange",Ar),window.addEventListener("beforeunload",Sr),Ar(),window.YMPB.$e.addEventListener(n,e=>{let t=e.detail.statusData;Dr.requestCount+=1,Dr.swapCount+=t.swapCounter,Dr.inview+=t.inviewDuration||0,t.isVideoAds&&(Dr.videoCount+=1)}),window.YMPB.$e.addEventListener(o,e=>{let t=e.detail.statusData;Dr.videoDuration+=t.videoAdDuration&&t.videoAdDuration>0?t.videoAdDuration:0,Dr.videoInview+=t.videoAdInViewDuration&&t.videoAdInViewDuration>0?t.videoAdInViewDuration:0,t.isFail&&(Dr.errorCount+=1),t.isEmpty&&(Dr.emptyRenderCount+=1),t.isDfpOrHbRendered&&(Dr.renderCount+=1),t.isAdxWon&&(Dr.adxCount+=1),t.isPrebidWon&&(Dr.hbRenderCount+=1),t.bid&&(Dr.cmpCount+=t.bid.cpm)}),YMPB.$e.on("ON_TCF_LOADED",function(){window.yaq("consent","update",{})}),YMPB.$e.on("ON_TCF_TIMEOUT",function(e){window.yaq("consent","update",{cmpLoaded:!1,cmpStatus:"timeout",eventStatus:"stub"});let t=e.detail;F("timeout",t.version,t.layout,{dimension17:z(Date.now()-t.createdAt,1e3)})}),YMPB.$e.on("ON_TCF_LOAD_ERROR",function(e){window.yaq("consent","update",{cmpLoaded:!1,cmpStatus:"error",eventStatus:"stub"});let t=e.detail;F("error",t.version,t.layout,{dimension17:z(Date.now()-t.createdAt,1e3)})}),YMPB.$e.on("ON_TCF_RESET",e=>{let t=e.detail;F("TCF Reset",t.version,t.layout,{dimension17:z(Date.now()-t.createdAt,1e3)})}),YMPB.$e.on("ON_TCF_SHOW",e=>{let t=e.detail;F("Saw Choice",t.version,t.layout,{dimension17:z(Date.now()-t.createdAt,1e3)})}),YMPB.$e.on("ON_TCF_REJECTED_ALL",e=>{let t=e.detail;F("Reject All",t.version,t.layout)}),YMPB.$e.on("ON_TCF_ACCEPTED_SOME",e=>{let t=e.detail;F("Accept Some",t.version,t.layout)})}),window.YMPB.command.push(function(){YMPB.$e.on("ON_STORAGE_ERROR",e=>{let t=e.detail;window.yaq("event","Storage Error",{eventCategory:"Error",eventLabel:Q,eventValue:Math.round(t.usedStorageSize),dimension6:t.message.replace(/(YOLLA_CACHE).[0-9a-z]+/,"")})}),YMPB.$e.on("ON_HEAVY_ADS_ERROR",e=>{let t=e.detail,n=t.type||"(empty)",o=t.message;window.yaq("event","Heavy Ads",{eventCategory:"Error",eventLabel:Q,eventValue:1,dimension6:n,dimension18:o})}),YMPB.$e.on("ON_YOLLA_AUCTION_ERROR",e=>{let t=e.detail.message;e.detail.datas.forEach(e=>{window.yaq("event","Auction Error",{eventCategory:"Error",eventLabel:Q,eventValue:1,dimension5:e.slotFillType,dimension6:t||"(empty)",metric6:1})})}),YMPB.$e.on("ON_AD_UNIT_STALLED",e=>{let t=e.detail.statusData,n=xi(t);Object.assign(n,{eventCategory:"Error",eventLabel:Q,eventValue:1,dimension6:t.errorMessage||"stalled"}),window.yaq("event","Stalled",n)}),pr=YMPB.getOption("YMPB_EVENT_CATEGORY"),YMPB.$e.on("ON_SET_BID",function(e){let t=e.detail.statusData;if(!t.isUseGAM&&t.bid){let e=xi(t);e.metric1=1,yr(t.bid.cpm,e)}}),YMPB.onEvent("setTargeting",function(e){let t=0,n=0,o=0;for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)){let r=YMPB.getStatusData?YMPB.getStatusData(i):null;const a=e[i],s=a&&a.hb_pb?+a.hb_pb:0;if(r&&r.isVideoAdData){let e=xi(r);e.metric1=1,yr(s,e)}else o+=1,t+=s,r&&r.bid&&(n+=r.bid.originalCpm||r.bid.cpm)}o>0&&yr(t,{metric1:o,metric5:n})}),gr(),async function(){YMPB.$e.on("ads-request",e=>{wr("onPlayerRequestVast",e.detail.statusData)}),YMPB.$e.on("ON_PLAYER_ADS_LOADED",e=>{wr("onVideoLoaded",e.detail.statusData,{dimension24:mr(e.detail.statusData.adWrapperIds)})}),YMPB.$e.on("ON_PLAYER_ADS_STARTED",e=>{wr("onVideoStarted",e.detail.statusData,{dimension24:mr(e.detail.statusData.adWrapperIds)})})}(),YMPB.$e.on(n,e=>{let t=e.detail.statusData,n="beforeSlotRequest";t.refreshType===Qi.NO_BID_RETRY&&(n+="__noBidRetry"),wr(n,t)}),YMPB.$e.on("ON_DFP_RENDER_ENDED",e=>{wr("slotRenderEnded",e.detail.statusData)}),YMPB.$e.on("ON_DFP_IMPRESSION",e=>{wr("impressionViewable",e.detail.statusData)}),YMPB.$e.on("ON_PREBID_IMPRESSION",e=>{wr("prebidViewable",e.detail.statusData)}),YMPB.$e.on("ON_AD_UNIT_ENDED",e=>{wr("onAdUnitEnded",e.detail.statusData)}),YMPB.$e.on("ON_USER_CLICK_CLOSE",e=>{wr("onUserClickClose",e.detail.statusData)}),window.YMPB.$e.addEventListener(t,function(e){var t;Rr({eventLabel:"path_changed",page_path:(t=e.detail).$prevURL.pathname,page_location:t.$prevURL.href}),br=0,Er=Date.now(),Or=0,Dr={requestCount:0,renderCount:0,hbRenderCount:0,emptyRenderCount:0,errorCount:0,swapCount:0,cmpCount:0,adxCount:0,clsScore:0,inview:0,videoCount:0,videoDuration:0,videoInview:0},Ar(),window.yaq("set","yaq",{pageviewId:Date.now()}),window.yaq("event","page_view",{dimension4:e.detail.counter||0})})})}})();