/*! For license information please see mol-adverts-delayed.js.LICENSE.txt */ (()=>{var __webpack_modules__={7613:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>l});var r=n(9796);const i={},o=(e,t)=>{let n=(e.match(t)||[])[1]||"";return n=n.split(/[._]/g),{build:parseInt(n[2]||-1,10),major:parseInt(n[0]||-1,10),minor:parseInt(n[1]||-1,10)}},s=()=>{const e=navigator.userAgent;i.ua=e,i.isWindows=Boolean(e.match(/Windows Phone|iemobile|WPDesktop/i));try{i.isIPad=(Boolean(e.match(/iPad/i))||"iPad"===navigator.platform||"MacIntel"===navigator.platform&&"ontouchend"in document)&&!i.isWindows}catch(e){i.isIPad=!1}i.isIDevice=(Boolean(e.match(/(iPad|iPhone|iPod)/i))||i.isIPad)&&!i.isWindows,i.isIPhone=Boolean(e.match(/iPhone/i))&&!i.isWindows,i.isAndroid=Boolean(e.match(/Android/i))&&!i.isWindows,i.isChrome=Boolean(e.match(/Chrome/i)),i.isFirefox=Boolean(e.match(/Firefox/i)),i.isKindleSilk=Boolean(e.match(/Silk|Kindle/i)),i.isAndroidPhone=i.isAndroid&&Boolean(e.match(/Mobile/i)),i.isAndroidTablet=i.isAndroid&&!Boolean(e.match(/Mobile/i)),i.isMobile=i.isIDevice||i.isAndroid||i.isWindows,i.isAndroidStock=i.isAndroid&&!i.isChrome&&!i.isFirefox&&!i.isKindleSilk;try{i.isIDevice?(i.mobileName=e.match(/(iPad|iPhone|iPod)/i)?e.match(/(iPad|iPhone|iPod)/i)[0]:"iPad",i.mobileVersion=o(e,/OS ((?:\d+[._]?)+)/i)):i.isAndroid?(i.mobileName="Android",i.mobileVersion=o(e,/Android ((?:\d+[._]?)+)/i)):i.isWindows?(i.mobileName="Windows Phone",i.mobileVersion=o(e,/Windows Phone ((?:\d+[._]?)+)/i)):(i.mobileName=null,i.mobileVersion={build:-1,major:-1,minor:-1})}catch(e){r.logger.error("Failed to parse mobile name and version",e),i.mobileName="unknown"}},a=()=>(r.logger.warn('"getZoom" function has been deprecated as it does not provide reliable values'),screen.deviceXDPI&&screen.logicalXDPI?screen.deviceXDPI/screen.logicalXDPI:document.width?document.width/window.innerWidth:screen.width&&window.innerWidth?screen.width/window.innerWidth:Math.max(document.documentElement.clientWidth,document.body.offsetWidth,document.body.scrollWidth)/(window.innerWidth||document.documentElement.clientWidth)),d=()=>window.matchMedia?window.matchMedia("(orientation:landscape)").matches:(window.innerWidth||document.documentElement.clientWidth)>(window.innerHeight||document.documentElement.clientHeight);try{s(),i.isAndroidStock&&(r.logger.debug("Executing Android Stock browser Orientation bug fix"),window.addEventListener("orientationchange",(()=>{const e=document.querySelector("meta[name=viewport]");if(e){const t=e.getAttribute("content");e.setAttribute("content","width=10000, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0"),setTimeout((()=>{e.setAttribute("content",t)}),0)}})))}catch(e){r.logger.error("Error parsing user agent",e)}const l={deviceData:i,disableScroll:()=>{document.body.style.overflow="hidden",document.ontouchmove=e=>e.preventDefault()},enableScroll:()=>{document.body.style.overflow="auto",document.ontouchmove=()=>!0},getMobileVersion:()=>i.mobileVersion,getZoom:a,isAndroid:()=>i.isAndroid,isAndroidPhone:()=>i.isAndroidPhone,isAndroidStock:()=>i.isAndroidStock,isAndroidTablet:()=>i.isAndroidTablet,isChrome:()=>i.isChrome,isFirefox:()=>i.isFirefox,isIDevice:()=>i.isIDevice,isIPad:()=>i.isIPad,isIPhone:()=>i.isIPhone,isKindleSilk:()=>i.isKindleSilk,isLandscape:d,isMobile:()=>i.isMobile,isPortrait:()=>!d(),isWindows:()=>i.isWindows,isZoomed:()=>a()>1,onTouchEnd:e=>(setTimeout(e,400),e()),parseUserAgent:s,setupMobileClass:()=>{if(r.logger.warn('"setupMobileClass" has been deprecated and "features detection" should be prefered over "device detection"'),i.mobileName){const e=i.mobileName.toLowerCase().replace(/ /,"-");document.body.classList.add(e)}}}},6585:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AD_ATTRIBUTE:()=>d,TAGS_ATTRIBUTE:()=>l,addLoadListener:()=>u,onAdLoaded:()=>w,parse:()=>f,refreshAdvert:()=>y,refreshAdvertsWithNewTags:()=>v,requestAdvert:()=>m,requestDelayedAdvert:()=>_,reset:()=>I,stringify:()=>h});var r=n(7491),i=n(1074),o=n(1576),s=n(6042);const a=n(4298),d="data-adverts-ad",l="data-adverts-tags",c=n(7888),u=n(5824),p=(0,s.x)("AdsRenderer"),h=a.stringify,f=a.parse;function g(){return o}function m(e){if(p("requestAdvert",e.pos,e),["gpt","oop"].some((t=>e.slotTypes.includes(t)))){if(e.id){const t=document.getElementById(e.id);t&&(t.setAttribute(d,a.stringify(e)),t.matches(".adHolder *")||t.classList.contains("dmg-ads-ad")||t.classList.add("adHolder"))}return g().requestAd(e)}p("unsupported slot type, bailing",e.pos,e.slotTypes)}function y(e){g().refreshAdvert(e)}function v(e,t){const n=e.map(b).filter(Boolean).map((e=>e.ad));g().refreshAdvertsWithNewTags(n,t)}function b(e){const t=document.getElementById(e);if(t){const e=t.getAttribute(d),n=t.getAttribute(l);let r,o,s;if(e)return o=a.parse(e),r=(0,i.get)(o.pos)||o,s=n?a.parse(n):null,{ad:r,tags:s,container:t}}return null}async function _(e){}function w(e){for(let t=0,n=c.length;tw(t))),T.on("refresh ads",(e=>{let{ids:t,plugins:n}=e;return v(t,n)}))},5824:(e,t,n)=>{const r=n(7888);e.exports=function(e){"function"==typeof e&&r.push(e)}},7888:e=>{e.exports=[]},1576:(e,t,n)=>{"use strict";n.r(t),n.d(t,{name:()=>b,refreshAdvert:()=>m,refreshAdvertsWithNewTags:()=>y,requestAd:()=>g,reset:()=>v});var r=n(7491),i=n(8053),o=n(7189),s=n(6042),a=n(4091);const d=(e,t)=>new Promise(((n,r)=>{const o=(0,i.U2)("auction.maxTime",2e3),s=[];e.openStream({message:["get tags",{slot:t,timeout:o-100}],timeout:o,controlHandler:n=>{let{type:r,...i}=n;e.emit("auction event",t.pos,r,i)}}).on("data",(e=>{s.push(e)})).on("end",(()=>{e.emit("auction event",t.pos,"end"),n(s)})).on("error",(e=>r(e)))}));function l(e,t){t("formTags",e);const n=e.flat().map((e=>e?e.tags?e.tags:e:{}));return(0,a.Yb)(n.reduce(((e,t)=>({...e,...Array.isArray(t)&&t.reduce(((e,t)=>({...e,...t})),{})||t})),{}))}async function c(e,t,n){const r=await d(e,n),i=await e.invokeAll("get tags based on tags",r);return[{...l(r,t),...i.reduce(((e,t)=>({...e,...t})),{})}]}const u=r.ZP.broker("DfpServer"),p=(0,s.x)("DfpServer");let h={};u.on("destroy slot",(e=>{delete h[e]}));let f=Promise.resolve();async function g(e){if(h[e.pos])return h[e.pos];u.emit("start bidding",e.pos);let t=[];if(e.skipHeaderBiders)p("skipping header biders for",e.pos);else{p("starting auction for",e.pos);const n=(0,i.U2)("auction.maxTime",2e3),[r]=await Promise.all([c(u,p,e),(0,o.Ye)(n,[f])]);t=r,p("auction ended for",e.pos,t),u.emit("bidding ended",e.pos)}return u.emit("slot ready for ad",e,t),h[e.pos]={tags:t},{tags:t}}function m(e){u.emit("bidding ended",e.pos),u.emit("gpt refreshAdvert",e.pos)}function y(e,t){const n=[];e.forEach((async t=>{p("starting auction for",t.pos);const r=await c(u,p,t);n.push({ad:t,tags:r}),p("auction ended for",t.pos,r),u.emit("bidding ended",t.pos),n.length===e.length&&u.emit("slot ready to refresh",n)}))}function v(){h={}}u.on("set page level targeting",(e=>{p("new page level targeting:",e),f=f.then((()=>e)).then((()=>{}))}));const b="DfpServer"},5843:(e,t,n)=>{"use strict";n.r(t);var r=n(7491),i=n(3941),o=n(1074),s=n(9436),a=n(5114),d=n(8053),l=n(6042);function c(e,t){if(Array.isArray(e))e.forEach(t);else{if("object"!=typeof e||null===e)throw new Error(`dont know how to iterate on ${e}`);for(const[n,r]of Object.entries(e))t(r,n)}}const{onBodyAvailable:u}=n(4780),p=r.ZP.broker("DfpAsyncHandler"),h=(0,l.x)("dfpAsyncHandler"),f={},g={},m=["sky_right_top","sky_left_top","mpu_top","billboard","sticky_banner"],y=new Set(["mpu_puff_others","puff_ad_others","mpu_mobile_others","mpu_factbox","mpu_mobile_factbox"]);function v(e,t){if(e&&e.slots&&e.slots.length)return e.slots.forEach((function(r){const i=document.getElementById(r.slot.getSlotElementId()),o=!!i&&!i.classList.contains("watermark");var s;r.slot.addService(googletag.pubads()).setTargeting("pos",e.dfpPos||e.pos).setCollapseEmptyDiv(o,o&&function(e){const t="billboard"===e&&"home"===(n.g.PageCriteria.channel||"").slice(-4);return!m.includes(e)&&!t}(e.pos)),e.targeting&&c(e.targeting,((e,t)=>{r.slot.setTargeting(t,e)})),e.custom&&e.custom.length&&(s=r.slot,e.custom,c((function(e){Object.keys(e).forEach((function(t){s.setTargeting(t,e[t])}))}))),"number"==typeof window.orientation&&r.slot.setTargeting("orientation",MobileUtils.isLandscape()?"landscape":"portrait"),MobileUtils.isMobile()&&r.slot.setTargeting("lat",PageCriteria.latitude||"").setTargeting("lon",PageCriteria.longitude||""),h(`setting targeting for pos: ${e.pos}`,t),function(e,t){t.forEach((function(t){t&&"object"==typeof t&&Object.keys(t).forEach((function(n){e.setTargeting(n,t[n]+"")}))}))}(r.slot,t)})),e}p.on("api message","metadata",(e=>{h("metadata api call:",e);const{ico:t,...n}=e;t&&(n.referrer=t),p.emit("set page level targeting",n)})),p.on({message:"prepare to refresh ads",sync:!0},(e=>{const t=googletag.pubads().getSlots().reduce(((e,t)=>{const n=t.getTargeting("pos")[0];return e[n]=e[n]||t,e}),{});e.map((e=>({pos:e,slot:t[e]}))).forEach((e=>{let{pos:t,slot:n}=e;n?n.clearTargeting?n.clearTargeting():console.warn("-----\x3e NO slot.clearTargeting when refreshing ads",t):console.warn("-----\x3e NO SLOT to clear targeting when refreshing ads",t)}))})),p.on("slot ready for ad",((e,t)=>{!function(e,t){e.parentId=e.parentId||e.id,e.slots=e.slots||[],e.slots.forEach((function(t){t.parentId=t.parentId||t.id||e.parentId})),b((function(){!function(e){const t=(0,o.get)(e.pos)||e;t&&t.slots&&t.slots.length?e.slots=t.slots:w(e)}(e),v(e,t)})),b((function(){e.slots.forEach((t=>{p.emit("request slot",{pos:e.pos,slotType:t.type,type:e.type,parentId:t.parentId,adUnit:e.adUnit,slot:t.slot})}))}))}(e,t)}));const b=e=>googletag.cmd.push(e);p.on("set slot state",((e,t)=>{const n=g[e];n?n.molAd.state=t:f[e]=t})),p.on("request slot",(e=>{"gptSlot"===e.slotType&&(g[e.pos]=e.slot),e.slot.molAd={pos:e.pos,type:e.type,slotType:e.slotType,parentId:e.parentId,adUnit:e.adUnit,state:f[e.pos]},delete f[e.pos],p.invoke("googletag.display",e.parentId),p.emit("ad requested",e.pos)})),p.on("slot ready to refresh",(function(e){e.forEach((e=>v(e.ad,e.tags))),S(e.map((e=>e.ad)))})),p.on("destroy slot",(e=>{const t=(0,o.get)(e);t.slots&&(googletag.destroySlots(t.slots.map((e=>e.slot))),delete t.slots)}));const _={gpt:function(e){const t=(0,s.t2)(e),n=e.sizeMapping,r=e.id,i=e.adUnit,o=(0,d.U2)("dfp.networkCode");h("define slot for",e.pos,{sizes:t,sizeMapping:n,adUnit:i,id:r});const a=googletag.defineSlot("/"+o+"/"+i,t,r);if(!a)throw new C(e);e.sizeMapping&&function(e,t){const n=t.reduce(((e,t)=>{let[n,r]=t;return e.addSize(n,r)}),googletag.sizeMapping());e.defineSizeMapping(n.build())}(a,e.sizeMapping),e.slots.push({type:"gptSlot",slot:a,parentId:e.id}),p.emit("slot created",e,a)},gptOOP:function(e){const t=e.slotTypes.includes("gpt")?function(e){const t=e.parentId+"-oop";if(document.getElementById(t))return t;const n=document.getElementById(e.parentId),r=document.createElement("div");return r.id=t,n?n.parentNode.insertBefore(r,n.nextSibling):u((function(){document.body.appendChild(r)})),t}(e):e.parentId,n=(0,s.t2)(e),r=e.sizeMapping,i=e.adUnit,o=(0,d.U2)("dfp.networkCode");h("define oop slot for",e.pos,{sizes:n,sizeMapping:r,adUnit:i,id:t});const a=googletag.defineOutOfPageSlot("/"+o+"/"+i,t);if(!a)throw new C(e);e.slots.push({type:"oopGptSlot",slot:a,parentId:t})}};function w(e){return e.adUnit=e.adUnit||(0,i.Z)(e.pos),e.slots=e.slots||[],h(`${e.pos}: creating slots using slotTypes definition`),e.slotTypes.forEach((t=>{const n=_[t];n&&n(e)})),p.emit("update description",e.pos,e),e.slots.length&&v(e,[]),e}const T=e=>{let{slot:{molAd:{pos:t,parentId:n}}}=e;return n&&"string"==typeof n&&n.includes("-oop")?`${t}-oop`:t};function I(e){y.has(e)||b((function(){const t=(0,o.get)(e);t&&!t.gptSlot&&!t.oopGptSlot&&t.earlyBidding&&w(t)}))}function S(e){const t=e.map((function(e){return k(e.pos)}));p.invoke("googletag.pubads.refresh",t)}function k(e){return g[e]}p.on("slots initialized",(e=>{var t;t=e,b((function(){const e=googletag.pubads();e.set("page_url",location.hostname+location.pathname).setTargeting("article",adArticleId).setTargeting("environment",adEnvironment).setTargeting("country",PageCriteria.geo.toLowerCase()).addEventListener("slotRequested",(e=>e.slot.molAd&&p.emit("dfp slot requested",T(e),e))).addEventListener("slotRenderEnded",(e=>e.slot.molAd&&p.emit("ad rendered",T(e),e))).addEventListener("slotOnload",(e=>e.slot.molAd&&p.emit("ad loaded",e,T(e)))).addEventListener("impressionViewable",(e=>e.slot.molAd&&p.emit("ad viewable",T(e),e))).addEventListener("slotVisibilityChanged",(e=>e.slot.molAd&&p.emit("slot visibility changed",T(e),e))).addEventListener("slotResponseReceived",(e=>e.slot.molAd&&p.emit("slot response received",T(e),e))).setCentering(PageCriteria.isMobile&&!PageCriteria.isTablet),a.SP.testmode&&e.setTargeting("testmode",a.SP.testmode),p.emit("gpt initialized",googletag)})),t.forEach(I),b((function(){googletag.pubads().enableAsyncRendering(),googletag.enableServices()}))})),p.on("gpt refreshAdvert",(e=>{!function(e){const t=k(e);t&&(t.setTargeting("refresh","true"),p.invoke("googletag.pubads.refresh",[t]))}(e)})),p.on("gpt refreshAdverts",(e=>{S(e)}));class C extends Error{constructor(e){super(`Could not create a slot. googletag.defineSlot returned null. Probably because it has already been defined. Pos: ${e.pos}. ID: ${e.id}`)}}},4298:module=>{const omit=function(e,t){const n={};if(t=t||[],"object"==typeof e)for(const r in e)e.hasOwnProperty(r)&&-1===t.indexOf(r)&&(n[r]=DM.molFeMiniLodash.clone(e[r]));return n},stringify=function(e){return jsonStringify(omit(e,["slots"]))};var jsonStringify=JSON&&"function"==typeof JSON.stringify?JSON.stringify:function(e){switch(typeof e){case"string":return'"'+e.replace(/("|\\)/g,"\\$1")+'"';case"boolean":case"number":return e.toString();case"object":if("[object Array]"===Object.prototype.toString.call(e))return"["+e.map(stringify).join(",")+"]";if(e)return"{"+Object.keys(e).map((function(t){return stringify(t)+":"+stringify(e[t])})).join(",")+"}";case"undefined":case"function":return"null"}};const parse=JSON&&"function"==typeof JSON.parse?JSON.parse:function(value){return eval("data="+value)};module.exports={stringify,parse}},3069:(e,t,n)=>{const r=n(6721),i=function(e,t){this.eventsMap={},this.eventName=e,this.getDomCallback=t,this.domElement={};const n=this;DM.later("DOM_READY",(function(){a.call(n)}))};function o(e){const t=this.eventsMap[e];this.domElement[e]=this.getDomCallback(e),null!==this.domElement[e]&&this.on(this.domElement[e],this.eventName,(function(e){e.stopPropagation();const n=MobileUtils.isLandscape()?"landscape":"portrait";t.call(this,n)}))}function s(e){r.getElementById(e)?e in this.eventsMap&&o.call(this,e):delete this.eventsMap[e]}function a(){for(const e in this.eventsMap)s.call(this,e)}i.on=function(e,t,n){e.addEventListener(t,n)},i.fireEvent=document.createEvent?function(e,t){const n=e.ownerDocument.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}:function(e,t){const n=e.ownerDocument.createEventObject();n.eventType=t,e.fireEvent("on"+n.eventType,n)},i.prototype={constructor:i,registerEvent:function(e,t){this.eventsMap[e]=t,s.call(this,e)},getEvent:function(e){return this.eventsMap[e]},on:i.on,fireEvent:i.fireEvent},e.exports=i},3715:(e,t,n)=>{const r=n(3069),i=n(6721),o="data-impression-url",s="data-ted-tracking",a=new r("onImpression",(function(e){return function(e){return i.getElementById(e)}(e)}));e.exports={DATA_IMPRESSION_URL:o,onImpression:function(){a.registerEvent.apply(a,arguments)},registerImpression:function(e,t){const n=Array.prototype.filter.call(i.getAdContainer(e).getElementsByTagName("div"),(function(e){return e.getAttribute(o)}));n.length&&(function(e){const t=e.getAttribute(o);(new Image).src=t,e.getAttribute(s)&&(DM.later?DM.later("bundle",(function(){DM.pageEvents.fireEvent(DM.pageEvents.PAGE_AD_DISPLAYED,{type:"dfp-impression"})})):DM.pageEvents.fireEvent(DM.pageEvents.PAGE_AD_DISPLAYED,{type:"dfp-impression"}))}(n[0]),function(e){setTimeout((function(){!function(){a.fireEvent.apply(a,arguments)}(e,"onImpression"),e.getAttribute(s)&&(DM.later?DM.later("bundle",(function(){DM.pageEvents.fireEvent(DM.pageEvents.PAGE_AD_DISPLAYED,{type:"3rd-party-impression"})})):DM.pageEvents.fireEvent(DM.pageEvents.PAGE_AD_DISPLAYED,{type:"3rd-party-impression"}))}),0)}(n[0]),t.call(this,e))}}},9512:(e,t,n)=>{"use strict";n.d(t,{$R:()=>l,DZ:()=>r,M7:()=>c,TV:()=>d,Z$:()=>o,cl:()=>i,jj:()=>a,pj:()=>s,zu:()=>u});const r=(e,t,n)=>{const r=new Array(n.length);let i=0;for(let o=0,{length:s}=n;o{const n=t.indexOf(e);return-1===n?t:[...t.slice(0,n),...t.slice(n+1)]},o=e=>e[e.length-1],s=e=>void 0===e?[]:Array.isArray(e)?e:[e],a=e=>{const t=new Set(e);return Array.from(t)},d=e=>{let t=e.length;const n=[...e];for(;t;){const e=Math.floor(Math.random()*t--),r=n[t];n[t]=n[e],n[e]=r}return n};function l(e,t){return e.map(((e,n)=>[e,t[n]]))}function c(e,t){const n=[...e];return n.sort(((e,n)=>e[t]-n[t])),n}function u(e,t){const n=new Set(t);return e.filter((e=>!n.has(e)))}},7189:(e,t,n)=>{"use strict";n.d(t,{Gv:()=>s,PQ:()=>p,S1:()=>o,Vs:()=>i,Ye:()=>l,gb:()=>c,q7:()=>h,yq:()=>d});class r extends Error{constructor(e){super(`Exceeded ${e}`)}}const i=e=>new Promise((t=>setTimeout(t,e))),o=e=>new Promise((t=>0===e?t(u(void 0,10)):setTimeout(t,e))),s=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new r(e);throw await o(e),t},a=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new r(e);throw await i(e),t},d=(e,t,n)=>Promise.race([t,a(e,n)]),l=async(e,t)=>{const n=[],r=[];return await Promise.race([i(e),Promise.all(t.map((e=>e.then((e=>n.push(e))).catch((e=>r.push(e))))))]),{errors:r,results:n}};function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.MAX_SAFE_INTEGER;const o=Date.now(),s=a=>Promise.resolve(e()).then((e=>{if(e)return e;if(Date.now()-os(a+1)))}throw new r(n)}));return s(0)}const u=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;return new Promise((n=>{n(t?u(e,t-1):e)}))};function p(){let e,t,n=!1;return{promise:new Promise(((n,r)=>{e=r,t=n})),reject(t){n||(n=!0,e(t))},resolve(e){n||(n=!0,t(e))}}}async function h(e,t,n){let r=e;return await Promise.all(n.map((e=>e.then((e=>{r=t(r,e)}))))),r}},6101:(e,t,n)=>{"use strict";n.d(t,{JT:()=>h,Oo:()=>c,Vl:()=>l,vE:()=>d});var r=n(9512);function i(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}function o(e,t,n){return function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}(e,a(e,t,"set"),n),n}function s(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,a(e,t,"get"))}function a(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}const d=e=>{if("function"==typeof Event)return new e.constructor(e.type,e);{const t=document.createEvent("Event");return t.initEvent(e.type,e.bubbles,e.cancelable),t}};function l(e,t,n){return e.on(t,n),()=>e.off(t,n)}function c(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}var u=new WeakMap,p=new WeakMap;class h{constructor(){i(this,u,{writable:!0,value:[]}),i(this,p,{writable:!0,value:[]})}on(e,t,n){return this.add(l(e,t,n))}one(e,t,n){return this.add(function(e,t,n){return e.one(t,n),()=>e.off(t,n)}(e,t,n))}onDispose(e){s(this,p).push(e)}addEventListener(e,t,n,r){return this.add(c(e,t,n,r))}add(e){return s(this,u).push(e),e}remove(e){o(this,u,(0,r.cl)(e,s(this,u)))}dispose(){try{for(const e of s(this,u))e();for(const e of s(this,p))e()}catch(e){console.error(e)}finally{o(this,u,[]),o(this,p,[])}}}},1256:(e,t,n)=>{"use strict";function r(e,t){let n,r=0,i=!1;const o=s=>{if(i){r=s,clearTimeout(n),i=!1;const a=!n;n=setTimeout(o,t),e(a)}else n=void 0};return()=>{i=!0;const e=Date.now&&Date.now()||(new Date).getTime();(!n||e-r>=t)&&o(e)}}function i(e){let t=!1;return function(){if(!t){t=!0;try{return e(...arguments)}finally{t=!1}}}}n.d(t,{Ds:()=>s,FU:()=>r,jR:()=>l,mk:()=>d,ri:()=>o,v_:()=>a,yS:()=>i});const o=e=>{let t,n=!1;return function(){return n||(n=!0,t=e(...arguments)),t}},s=(e,t)=>{let n,r;const i=function(){for(var i=arguments.length,o=new Array(i),s=0;s{n=void 0,e(...r),r=void 0}),t)};return i.callNow=function(){n&&(clearTimeout(n),n=void 0);for(var t=arguments.length,i=new Array(t),o=0;o0&&void 0!==arguments[0]?arguments[0]:{};return function*(){let n=1;for(;;)yield Math.min(t,Math.max(e,Math.round(n++**2/10)))}()}},7491:(e,t,n)=>{"use strict";n.d(t,{Jj:()=>d,Ys:()=>l,ZP:()=>g,lw:()=>f});var r=n(7189),i=n(9512),o=n(3178),s=n(2604),a=n.n(s);class d{constructor(e,t){var n,r,i,o,s=this;n=this,i=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r{const r=[...n,function(){for(var e=arguments.length,n=new Array(e),r=0;r1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r2?n-2:0),i=2;ie(),this.firedMessages=new Set,this.system=this.broker("MessageBus"),this.emitImmediately=this.emitImmediately.bind(this),this.showUncaughtErrors=!0,this.globalTimeoutOverride=void 0,this.logCall=()=>{}}queuePublish(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),o=2;oa(e(t,...i)))),s}queueStream(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i{e(t,...r).pipe(a)})),s}broker(e){return new d(this,e)}emit(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i1?t-1:0),r=1;r3?i-3:0),s=3;s{try{if(this.interceptors.length){const s=this.interceptors.filter((e=>!1!==this.doesMessageMatch(e.msg,o)));let a=!1;const d=function(){const i=s.shift();for(var l=arguments.length,c=new Array(l),u=0;u0?c:o,i?(a=!0,r.logCall(e,t,i.broker,o,!0),r.callInterceptor(i.callback,o,d,i.broker)):(a&&r.logCall(e,t,void 0,o,!0,!0),n(e,t,o))};i(d())}else i(n(e,t,o))}catch(e){s(e)}}))}callInterceptor(e,t,n,r){return e(t,n)}emitImmediately(e,t,n){return Promise.all(this.subscriptions.reduce(((r,i)=>{const o=this.doesMessageMatch(i.msg,n);return!1!==o&&r.push(this.callSubscriber(e,t,i,o,n)),r}),[]))}callSubscriber(e,t,n,r,i){const o=i.slice(r);return new Promise(((r,s)=>{const a=()=>{try{this.logCall(e,t,n.broker,i),r(n.callback.apply(n.broker,o))}catch(e){"error"===i[0]?(console.error("Exception thrown while handling error for",i,e),s(e)):(this.system.emit("error",...i,e),s(e))}};n.sync?a():this.dispatcher(a)}))}addSubscription(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];const o=t[t.length-1],s=t.splice(0,t.length-1);return this.subscribe(e,s,o,n,r,i)}on(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r2?n-2:0),i=2;i1?n-1:0),i=1;i({subscription:t,matchCount:this.doesMessageMatch(t.msg,e.message)}))).filter((e=>!1!==e.matchCount))}callFilteredSubscription(e,t,n,r){let{message:i,map:o}=n,{matchCount:s,subscription:a}=r;const d=this.callSubscriber(e,t,a,s,i);return o&&a.expectReturn?o(d,a):d}callFilteredSubscriptions(e,t,n,r){return r.reduce(((r,i)=>{const o=this.callFilteredSubscription(e,t,n,i);return i.subscription.expectReturn&&r.push(o),r}),[])}async invoke(e,t){var n=this;const i=async function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),o=1;oe.subscription.expectReturn));if(!a)return Promise.reject(new u(i));d.length>0&&console.warn("Total of",d.length+1,"endpoints registered for message",i);const l=n.callInterceptors(e,"invoke",((e,t,r)=>n.callFilteredSubscription(e,t,{...s,message:r},a)),...s.message);return void 0!==s.timeout?Promise.race([l,(0,r.Gv)(s.timeout)]):l};for(var o=arguments.length,s=new Array(o>2?o-2:0),a=2;a1?t-1:0),o=1;o{const i={...s,message:r},o=n.getSubscriptionsInterestedIn(i);s.controlHandler&&s.controlHandler({type:"interested endpoint",endpoints:o.reduce(((e,t)=>{let{subscription:{broker:{id:n},expectReturn:r,unbounded:i}}=t;return r&&!i?[...e,n]:e}),[])});const a=n.callFilteredSubscriptions(e,t,i,o);return s.subscriptionsCalledCallback&&s.subscriptionsCalledCallback(o),a}),...s.message);let d=a?a.filter((e=>e)):[];const l=[];d=d.map((e=>e.then((e=>{l.push(e)}),(e=>{if(s.catch)try{s.catch(e)}catch(e){n.system.emit("error",e)}else n.system.emit("error",e)}))));let c=Promise.all(d).then((e=>e.filter((e=>e))));return void 0!==s.timeout&&(c=Promise.race([c,(0,r.S1)(s.timeout)])),c.then((()=>l))};for(var o=arguments.length,s=new Array(o>2?o-2:0),a=2;a4&&void 0!==arguments[4]&&arguments[4],s=arguments.length>5&&void 0!==arguments[5]&&arguments[5];const a=t[0],d="object"==typeof a?(0,i.pj)(a.message):t,l="object"==typeof a&&!!a.sync;if(n&&"function"!=typeof n)throw new Error(`Callback has to be a function, but a "${typeof n}" was passed`);const c={broker:e,msg:d,callback:n,sync:l,expectReturn:r,isStream:o,unbounded:s,cancel:()=>{this.subscriptions=(0,i.cl)(c,this.subscriptions)}};return this.subscriptions.push(c),c}hasSubscriber(e){return-1!==this.subscriptions.findIndex((t=>{let{msg:[n]}=t;return n===e}))}interceptOnce(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i2?n-2:0),o=2;o{a=!0,this.interceptors=(0,i.cl)(l,this.interceptors)}}start(){var e=this;let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];for(this.system.on("error",(function(){e.showUncaughtErrors&&console.error(...arguments)})),this.started=!0;this.queued.length;)this.queued.shift()?.();this.system.emit("system ready"),t&&n.g.DM?.later?.go?.("mol-adverts")}setDispatcher(e){this.dispatcher=e}registerStream(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1?t-1:0),r=1;r1?n-1:0),s=1;s{c||0!=--u||(c=!0,l.push(null))};return void 0!==d.timeout&&((0,r.S1)(d.timeout).then((()=>{!c&&l.push(null),c=!0})),delete d.timeout),t.invokeAll(e,{...d,map:(e,n)=>{let{broker:r,unbounded:s}=n;return s||u++,e.then((e=>{const t=e instanceof a().Readable?e:o.nI(e?[e]:[]);t.on("data",(e=>!c&&l.push(e))),s||t.on("end",(()=>{d.controlHandler&&d.controlHandler({type:"stream done",endpoint:r.id}),p()}))}),(e=>{d.emitErrors?l.emit("error",e):t.system.emit("error",...i,e),s||p()}))},subscriptionsCalledCallback:()=>{c||0!==u||(c=!0,l.push(null))}}),l};for(var i=arguments.length,s=new Array(i>1?i-1:0),d=1;d0&&void 0!==arguments[0]?arguments[0]:{};return o.KC(e)}createTransformObjectStream(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return o.U0(e)}collectStreamAsPromise(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1?n-1:0),o=1;oe.subscription.expectReturn)),d=t.callInterceptors(e,"invokeChainMutable",((e,n,r)=>new Promise((o=>{const d=[...r],l=d.pop();o(a.reduce((async(r,o)=>{const a=await r,{matchCount:l,subscription:c}=o;return t.callSubscriber(e,n,c,l,[...d,a]).catch((e=>(s.onError&&s.onError(e,i),t.system.emit("error",...i,e),a)))}),Promise.resolve(l)))}))),...s.message);return void 0!==s.timeout?Promise.race([d,(0,r.Gv)(s.timeout)]):d};for(var i=arguments.length,o=new Array(i>1?i-1:0),s=1;s{let[r,i]=t;return"object"==typeof i&&null!==i?e(i,n[r]):n[r]===i}))}(this.filter,e)}}function f(e){return new h(e)}const g=new l},661:(e,t,n)=>{"use strict";function r(){const e=document.cookie.indexOf("x-loc=");if(-1===e)return;const t=document.cookie.indexOf(";",e);if(-1===t)return;const n=document.cookie.substring(e+6,t);return n.length>0&&"none"!==n.toLowerCase()?n:void 0}n.d(t,{K:()=>r})},4091:(e,t,n)=>{"use strict";n.d(t,{$Z:()=>m,CE:()=>s,Ev:()=>o,T$:()=>g,UI:()=>f,Yb:()=>p,_:()=>v,ar:()=>l,ei:()=>i,nr:()=>y,ns:()=>d,sE:()=>u,xb:()=>a});var r=n(9512);function i(e,t){return t.reduce(((t,n)=>(t[n]=e[n],t)),{})}function o(e,t){return Object.entries(t).reduce(((t,n)=>{let[r,i]=n;return t[r]=e[i],t}),{})}function s(e,t){const n={...e};for(const e of(0,r.pj)(t))delete n[e];return n}function a(e){for(const t in e)return!1;return!0}const d=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.g;for(const n of e)void 0===t[n]&&(t[n]={}),t=t[n];return t},l=(e,t)=>n=>{if(t&&(0,r.zu)(Object.keys(n),Object.keys(e)).length)return!1;for(const t in e){const r=e[t];if("function"==typeof r&&!r(n[t]))return!1}return!0};function c(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function u(e,t){for(const n in e)if(c(e,n)&&t(e[n],n))return e[n]}function p(e){const t={};return Object.keys(e).forEach((n=>{const r=e[n];h(r)?t[n]=p(r):void 0!==r&&(t[n]=r)})),t}function h(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function f(e,t){const n={};for(const r in e)c(e,r)&&(n[r]=t(e[r],r));return n}function g(e){return e instanceof HTMLElement||e instanceof WeakMap||e instanceof Function||e instanceof Error||h(e)&&"function"==typeof e.then}function m(e){let t=0;const n="___MARK_",r={};return JSON.parse(JSON.stringify(e,(function(e,i){if(g(i)){const e=t++;return r[e]=i,`${n}${e}`}return i})),(function(e,t){return"string"==typeof t&&t.startsWith(n)?r[t.substr(8)]:t}))}function y(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function v(e){const t=new Date;return t.setMonth(t.getMonth()+e),t}},7369:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var r=n(9512);function i(e,t,n){o(e,t),t.set(e,n)}function o(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function s(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,d(e,t,"get"))}function a(e,t,n){return function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}(e,d(e,t,"set"),n),n}function d(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}var l=new WeakMap,c=new WeakMap,u=new WeakMap,p=new WeakMap,h=new WeakMap,f=new WeakSet;class g{constructor(e,t,n){var r;o(this,r=f),r.add(this),i(this,l,{writable:!0,value:!1}),i(this,c,{writable:!0,value:[]}),i(this,u,{writable:!0,value:void 0}),i(this,p,{writable:!0,value:void 0}),i(this,h,{writable:!0,value:!1}),a(this,u,n),a(this,p,e),this.state=Object.freeze(t)}deinit(){this.dispatch({type:"__DEINIT__"}),a(this,h,!1)}init(){a(this,h,!0),this.dispatch({type:"__INIT__"})}dispatch(e){if(!s(this,h))return void s(this,u).warn("Cannot dispatch actions before store has been initiated.");if(s(this,l))throw new Error("You shouldnt dispatch actions from a reducer");a(this,l,!0);const t=s(this,p).call(this,e,this.state);a(this,l,!1),t===this.state?s(this,u).call(this,e,"NO_CHANGE"):(this.state=Object.freeze(t),s(this,u).call(this,e,this.state),function(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}(this,f,m).call(this,e))}subscribe(e){return s(this,c).push(e),setTimeout((()=>e({type:"__INIT__"},this.state))),()=>{a(this,c,(0,r.cl)(e,s(this,c)))}}}function m(e){for(const t of s(this,c))t(e,this.state)}},3178:(e,t,n)=>{"use strict";n.d(t,{$4:()=>o,Ju:()=>s,KC:()=>d,TS:()=>u,U0:()=>l,UI:()=>p,c:()=>f,dE:()=>a,hX:()=>h,nI:()=>c});var r=n(2604),i=n.n(r);const o=e=>new Promise(((t,n)=>{const r=[];e.on("data",(e=>r.push(e))),e.on("end",(()=>t(r))),e.on("error",(e=>n(e)))})),s=()=>{const e=new(i().Readable)({objectMode:!0,read(){}}),t=new(i().Writable)({objectMode:!0,write(t,n,r){e.push(t),r()},final(t){e.push(null),t()}});return[e,t]},a=(e,t)=>d({start(){e.on("data",(e=>this.push(e))).on("end",(()=>{this.push(null),t()})).on("error",(e=>{console.log("------\x3e STREAM Error",e),this.destroy(e),t(e)}))}}),d=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=new(i().Readable)({objectMode:!0,read(){}});return e.start&&e.start.apply(t),t},l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new(i().Transform)({objectMode:!0,...e})},c=e=>{let t=0;return new(i().Readable)({objectMode:!0,read(){e.length&&this.push(e[t++]),t===e.length&&this.push(null)}})},u=e=>{const t=d();let n=e.length;return n?(e.forEach((e=>{const r=e=>t.push(e),i=()=>{0==--n&&t.push(null)},o=e=>t.emit("error",e);e.on("data",r).on("end",i).on("error",o);const s=(e.off||e.removeListener).bind(e);t.on("close",(()=>{s("data",r),s("end",i),s("error",o)}))})),t):(t.push(null),t)},p=(e,t)=>d({start(){e.on("data",(e=>this.push(t(e)))).on("end",(()=>{this.push(null)})).on("error",(e=>this.destroy(e)))}}),h=(e,t)=>d({start(){e.on("data",(e=>{t(e)&&this.push(e)})).on("end",(()=>{this.push(null)})).on("error",(e=>this.destroy(e)))}}),f=(e,t)=>{const n=d(),r=e=>n.push(e);t.on("data",r);let i=!1;const o=(t.off||t.removeListener).bind(t);e.on("end",(()=>{i||(o("data",r),i=!0),n.push(null)}));const s=u([e,n]);return s.on("close",(()=>{i||(o("data",r),i=!0)})),s}},2632:(e,t,n)=>{"use strict";function r(e){const t=i(new URL(e).search.substring(1));return t?{specific:i(t.prev_scp),cust_params:i(t.cust_params)}:{}}function i(e){return e&&Object.fromEntries(e.split("&").map((e=>e.split("=").map(decodeURIComponent))))||void 0}function o(e,t){const n=e.startsWith("?"),r=e.substr(n?1:0).split("&").filter((e=>e.split("=")[0]!==t)).join("&");return r?`${n?"?":""}${r}`:""}function s(e){let t=0;if(0===e.length)return t;for(let n=0;nr,gY:()=>o,vp:()=>s})},9436:(e,t,n)=>{"use strict";n.d(t,{T3:()=>i,a6:()=>s,e$:()=>a,fb:()=>o,t2:()=>r});const r=e=>e.size||DM.molFeMiniLodash.map((e.type||"").split(","),(e=>DM.molFeMiniLodash.map(e.split("x"),Number)));function i(e,t,n){const r=e=>Array.isArray(e)&&2===e.length;if(!((i=e)&&Array.isArray(i)&&i.length&&i.every((e=>e&&r(e)&&r(e[0])&&Array.isArray(e[1])&&e[1].every(r)))))return t;var i;const o=(e=>e.sort(((e,t)=>t[0][0]-e[0][0])))([...e]),[s,a]=n,d=o.find((e=>{let[[t,n]]=e;return s>=t&&a>=n}));return d&&d[1]||t}function o(e){return t=e,Array.isArray(t)&&Array.isArray(t[0])?e.reduce(((e,t)=>{let[n,r]=e;return Array.isArray(t)?[Math.max(n,t[0]),Math.max(r,t[1])]:[n,r]}),[0,0]):e;var t}function s(e){return e.map((e=>`${e[0]}x${e[1]}`)).join("|")}function a(e,t){return t.reduce(((t,n)=>{const r=new RegExp(n.replace(/\*/g,".*"));return t.push(...Object.keys(e).filter((e=>r.exec(e)))),t}),[])}},3941:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(8053),i=n(6214);const o="/5765/dm.video/dm_video_home/preroll",s=(0,r.U2)("adUnit.excludeSponsoredCondition",!1);function a(e,t){const a=n.g.dartSiteId,d=n.g.PageCriteria.sponsored&&!s?"dm_dmnative":`${n.g.adAreaSiteId}_${n.g.adAreaSiteId}${n.g.adAreaId}_${n.g.adSubareaId}${n.g.adPageType}`;if("native_"===e.slice(0,7))return`dailymail.uk/dm_native/${e}`;const{autoplay:l=!1,fbiaEmbed:c=!1,flyaway:u=!1,isMobile:p=!1,offset:h=0,original:f=!1,syndicationService:g=!1,videoAdServerUrl:m="https://pubads.g.doubleclick.net/gampad/ads?iu=%2F5765%2Fdm.video%2Fdm_video_home/preroll"}=t||{},y=(0,r.U2)("dfpAccountCode",5765),v=(0,r.U2)("videoDescription.verticalvideo.adUnit");switch(e){case"video":return(0,i.A)(n.g.adAreaId?`/${y}/dm.video/dm_video_${n.g.adAreaId}/${0===h?"preroll":"midroll"}`:function(e){try{return new URL(e).searchParams.get("iu")||o}catch(e){console.error(e)}return o}(m),{autoplay:l,fbiaEmbed:c,flyaway:u,isMobile:p,original:f,syndicationService:g});case"jwplayer":return`/${y}/dm.chromelessvideo/${(0,r.U2)("players.chromeless.dmplayer.v3.adUnitNameLevel2","dm_dmros_ros")}/${(0,r.U2)("players.chromeless.dmplayer.v3.adRoll",[]).find((e=>e.offset===h))?.pos||"preroll"}`;case"verticalvideo":return v?`/${y}/${v}`:`/${y}/${n.g.adAreaSiteId}.${e}/${n.g.adAreaSiteId}_${n.g.adAreaSiteId}${n.g.adAreaId}_${n.g.adSubareaId}`;case"hero":return`/${y}/${(0,r.U2)("videoDescription.hero.adUnit","dm.video.hero")}`;default:return`${a}/${d}/${e}`}}},5114:(e,t,n)=>{"use strict";n.d(t,{D1:()=>v,G9:()=>y,JW:()=>f,P0:()=>b,SP:()=>s,WH:()=>w,Y0:()=>I,ap:()=>o,bP:()=>h,cj:()=>m,ej:()=>d,kT:()=>p,oK:()=>_,r7:()=>T,s$:()=>g,zP:()=>u});var r=n(2632);function i(e){return window["inner"+e]||document.documentElement["client"+e]||document.body["client"+e]}function o(){let{usePixelRatio:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=e&&window.devicePixelRatio||1;return{width:i("Width")*t,height:i("Height")*t}}const s=(()=>{let e={};try{e=window.location.search.substr(1).split("&").reduce(((e,t)=>{let[n,r]=t.split("=");switch(n=decodeURIComponent(n),!0){case n.startsWith("!"):e[n.substr(1)]=!1;break;case n.endsWith("[]"):n=n.substr(0,n.length-2),e[n]=!r||decodeURIComponent(r).split(",");break;case n.endsWith("[0]"):n=n.substr(0,n.length-3),e[n]=!r||decodeURIComponent(r).split(",");break;case/\[[-+]\]$/.test(n):e[n]=[...e[n]||[],...(r||"").split(",").map(decodeURIComponent)];break;default:e[n]=r?decodeURIComponent(r):"string"!=typeof r||r}return e}),{})}catch(t){console.error("ads",t),e={}}return e})(),a=/(%[0-9A-Z]{2})+/g,d=e=>{let t;const n=`; ${document.cookie}`.split(`; ${e}=`);if(n.length>1){const e=n.pop().split(";").shift();t='"'===e.charAt(0)?e.slice(1,-1):e,t=t.replace(a,decodeURIComponent)}return t},l=e=>{const t=new Date;switch(typeof e){case"undefined":return t.setMonth(t.getMonth()+1),t;case"number":return t.setDate(t.getDate()+e),t;case"string":return new Date(e);case"function":return l(e());case"object":if(e instanceof Date)return e;if(null===e)return l();default:throw new Error("Invalid expire time when setting cookie")}},c=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"/",i=arguments.length>4?arguments[4]:void 0,o=`${e}=${t};expires=${l(n).toUTCString()};path=${r}`;i&&(o+=`;domain=${i}`),document.cookie=o},u=(e,t)=>{const n=`${e}Expire`,r=l(d(n)).toUTCString();c(e,t,r),c(n,r,r)},p=e=>{c(e,"","Thu, 01 Jan 1970 00:00:01 GMT")};function h(){const e=/(Windows\s*[a-zA-Z]*)\s+([^;\s)]+)/i.exec(navigator.userAgent);return e&&"windows nt"===e[1].toLowerCase()&&parseFloat(e[2])>=6.4}const f="Microsoft Internet Explorer"===navigator.appName||!(!navigator.userAgent.match(/Trident/)&&!navigator.userAgent.match(/rv:11/)),g=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),m=/(?:iPod|iPhone|iPad).*(?:OS)/i.test(navigator.userAgent),y=/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9.]+)(:?\s|$)/.test(navigator.userAgent),v=/Firefox\/([0-9.]+)(?:\s|$)/.test(navigator.userAgent),b=/Edge\/([0-9._]+)/.test(navigator.userAgent);function _(){try{if(/iP(hone|od|ad)/.test(navigator.platform)){const e=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);return[parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3]||0,10)]}}catch(e){console.error(e)}return[-1,-1,-1]}function w(e){const{origin:t,pathname:i,search:o}=n.g.location,s=`${t}${i}${(0,r.gY)(o,e)}`;window.history.pushState(null,"",s)}function T(e){const t=e.getBoundingClientRect(),n=document.body,r=document.documentElement,i=window.pageYOffset||r.scrollTop||n.scrollTop,o=window.pageXOffset||r.scrollLeft||n.scrollLeft,s=r.clientTop||n.clientTop||0,a=r.clientLeft||n.clientLeft||0,d=t.top+i-s,l=t.left+o-a;return{top:Math.round(d),left:Math.round(l)}}function I(){return n.g.performance?.getEntriesByType?.("navigation")?.[0]}},7242:(e,t,n)=>{"use strict";n.r(t);var r=n(1256),i=n(5114),o=n(7491),s=n(9265),a=n(4707),d=n.n(a);const l=o.ZP.broker("debug-output"),c=window.PageCriteria&&window.PageCriteria.pageViewId||(0,s.kb)();localStorage.getItem("mol.ads.debug")&&localStorage.removeItem("mol.ads.debug");const u=localStorage.getItem("dmg.ads.debug.label"),p=i.SP.adsDebugRemote||i.SP["ac.adsDebugRemote"]||n.g.adverts?.config?.adsDebugRemote||u,h=i.SP.adsBugReport||i.SP["ac.adsBugReport"]||n.g.adverts?.config?.adsBugReport||u,f="boolean"!=typeof p&&p;let g=[],m=0;const y=(0,r.Ds)((()=>{l.emit("send to bidmax",{_:{topic:"debug"},type:"multi",pvid:c,label:f,eventId:m++,payload:g}),g=[]}),1e3);function v(e){const t=new Set;try{return JSON.stringify(e,((e,n)=>{if("object"==typeof n&&null!==n){if(n instanceof Error)return{type:"Error",message:n.message,stack:n.stack};if(t.has(n))return"[circular reference]";t.add(n)}return"string"==typeof n&&n.length>4048?"[string too long: "+n.length+"]":function(e){return"object"==typeof Node?e instanceof Node:e&&"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName}(n)?"[DOM Node]":n}))}catch(e){return"[error serializing value: "+e.message+"]"}}const b=(e,t)=>{g.push({type:e,timestamp:(new Date).toISOString(),payload:t}),g.length>=100?y.callNow():y()},_=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r{if(void 0===e)return e;if(e.length>1e4)return"[object too long: "+e.length+"]";try{return JSON.parse(e)}catch(t){w.error("Error parsing",e,t)}}))}),w[e](...n)},w={log:console.log,warn:console.warn,error:console.error,info:console.info};p&&(console.log=function(){for(var e=arguments.length,t=new Array(e),n=0;n{let{reason:t}=e;console.error("[PromiseRejectionUncaught]",{reason:t})})),l.on("send remote debug",b),l.on("system ready",(()=>{const{config:e}=n.g.adverts;b("config",{config:e})})),l.once("dom ready",(()=>{n.g.PageCriteria&&b("PageCriteria",n.g.PageCriteria),n.g.pagemeta&&b("pagemeta",n.g.pagemeta),l.invoke("get page level analytics").then((e=>b("bidmax",e)))}))),h&&l.once("dom ready",(()=>{const e=document.createElement("div");e.innerHTML=d()(),document.body.appendChild(e);const t=e.querySelector("#debugRemoteButtonText"),n=t.querySelector("textarea");t.querySelector("button").addEventListener("click",(e=>{e.preventDefault(),b("bugreport",{log:[n.value]}),console.info("bugreport",n.value),n.value="",t.style.display="none"})),u&&(window.leaveRemoteDebug.style.display="block",window.leaveRemoteDebug.addEventListener("click",(e=>{e.preventDefault(),localStorage.removeItem("dmg.ads.debug.label"),location.reload()})))}))},6042:(e,t,n)=>{"use strict";n.d(t,{x:()=>d});var r=n(5114),i=n(9512);const o=function(){let e=new Set;if(r.SP.adsDebug)e=new Set(((!0===r.SP.adsDebug?"all":r.SP.adsDebug)||"").toLowerCase().split(","));else if(localStorage.getItem("dmg.ads.debug.label"))e=new Set(["all"]);else{const t=r.SP["ac.adsDebug"]||n.g.adverts?.config?.adsDebug;"boolean"==typeof t?e=new Set(["all"]):Array.isArray(t)&&(e=new Set(t.map((e=>e.toLowerCase()))))}return e}(),s=o.has("all"),a=()=>{};function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[`%c${e}`,l()],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const r=s||o.has(e.toLowerCase()),c=r?console.log.bind(console,...(0,i.pj)(t)):a;return c.debugName=e,c.label=t,c.enabled=r,c.log=u("log"),c.trace=u("trace"),c.debug=u("debug"),c.info=u("info"),c.warn=u("warn"),c.error=u("error",!0),c.table=r?function(){c("Table:"),console.table(...arguments)}:a,c.time=e=>console.time((e?[...t,e]:t).join(" / ")),c.timeEnd=e=>console.timeEnd((e?[...t,e]:t).join(" / ")),c.timeEnd=u("timeEnd"),c.extend=r=>{const[o,...s]=(0,i.pj)(t),a=n+1;return d(e,[`${o} %c${r}`,...s,l(a)],a)},c;function u(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:r)&&"function"==typeof console[e]?console[e].bind(console,...(0,i.pj)(t)):a}}function l(){return`display: inline-block; color: #fff; background: hsl(214deg 100% ${35+10*(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)}%); padding: 1px 4px; border-radius: 3px;`}},9265:(e,t,n)=>{"use strict";function r(e,t){return a(e,o(e,t,"get"))}function i(e,t,n){return function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}(e,o(e,t,"set"),n),n}function o(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function s(e,t,n){return function(e,t){if(e!==t)throw new TypeError("Private static access of wrong provenance")}(e,t),function(e,t){if(void 0===e)throw new TypeError("attempted to get private static field before its declaration")}(n),a(e,n)}function a(e,t){return t.get?t.get.call(e):t.value}n.d(t,{AT:()=>g,MX:()=>l,RD:()=>d,_b:()=>h,kb:()=>c});const d=2147483647;function l(e,t){const n=t-e+1+e;return Math.floor(Math.random()*n)}function c(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){return function(e){const t=16*Math.random()|0;return"x"===e?t:3&t|8}(e).toString(16)}))}function u(e,t){if(null==e)return;let n=e/(t/100);return n>99&&(n=99),n<0&&(n=0),Math.round(n)}const p=/(.*)P(\d+)(s|k|m|gb|ms|px)$/;function h(e,t){const{cap:n}=function(e){const t=e.match(p),[,n,r,i]=t||[],o=function(e,t){return{m:e=>60*e*1e3,s:e=>1e3*e,k:e=>1e3*e,gb:e=>1e9*e,ms:e=>e,px:e=>e}[t](e)}(Number(r),i);return{fieldName:n,period:r,unit:i,cap:o}}(e);return{[e]:u(t,n)}}var f=new WeakMap;class g{static get(e,t){return s(this,g,m)[e]=s(this,g,m)[e]||new g(t),s(this,g,m)[e]}static inc(e,t){return this.get(e,t).inc()}static dec(e,t){return this.get(e,t).dec()}constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;(function(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)})(this,f,{writable:!0,value:void 0}),i(this,f,e)}get value(){return r(this,f)}inc(){var e;return i(this,f,(e=r(this,f),++e))}dec(){var e;return i(this,f,(e=r(this,f),--e))}}var m={writable:!0,value:{}}},996:(e,t,n)=>{"use strict";function r(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;const r=n=>String.prototype.split.call(t,n).filter(Boolean).reduce(((e,t)=>null!=e?e[t]:e),e),i=r(/[,[\]]+?/)||r(/[,[\].]+?/);return void 0===i||i===e?n:i}n.d(t,{Z:()=>r})},6022:(e,t,n)=>{"use strict";function r(){for(var e=arguments.length,t=new Array(e),n=0;ni(e,t)))}function i(e,t){if(e===t)return e;const n=typeof t;if("undefined"===n)return e;const r=Array.isArray(t);if(null===t||"string"===n||"number"===n||"boolean"===n||"function"===n||!r&&"object"===n&&null!==t&&t.constructor!==Object)return t;if(null===e)return i(void 0,t);const o=typeof e,s=Array.isArray(e);if(n!==o)return s?e:"function"===o&&"object"===n?(Object.entries(t).forEach((t=>{let[n,r]=t;e[n]=r})),e):"undefined"===o?r?i([],t):"object"===n?i({},t):t:"undefined"===n?e:t;if(s){const n=e.length,r=t.length;let o;for(o=0;o{let[n]=e,[r]=t;return n.localeCompare(r)})),d=a.length,l=Object.entries(e).sort(((e,t)=>{let[n]=e,[r]=t;return n.localeCompare(r)}));let c=0;for(const[t,n]of l){let r,o,s=-1;for(;s<0&&cr})},6584:(e,t,n)=>{"use strict";function r(e,t,n){const r=Array.isArray(t)?t:t.match(/([^[.\]])+/g);r.reduce(((e,t,i)=>(void 0===e[t]&&(e[t]={}),i===r.length-1&&(e[t]=n),e[t])),e)}n.d(t,{Z:()=>r})},8685:(e,t,n)=>{"use strict";var r=n(6042),i=n(5114);(i.SP.adsDebugRemote||i.SP["ac.adsDebugRemote"]||n.g.adverts.config&&n.g.adverts.config.adsDebugRemote||localStorage.getItem("dmg.ads.debug.label"))&&n(7242),(0,r.x)("bootstrap").log("loading",window.location.href)},4987:(e,t,n)=>{const r=n(8187);function i(e){if(!e)throw new TypeError("Missing videoAdServerUrl");const t=function(e){const t=e.split("?");return{base_url:t[0],search:t[1]}}(e);var n;this.base_url=t.base_url,this.params={env:"vp",gdfp_req:1,impl:"s",output:"xml_vast4",unviewed_position_start:1,hl:"en",...(n=t.search,n?r.queryStringToObj(n,(function(e,t){return t&&!/(\[.+])/g.test(t)})):{}),output:"xml_vast4"}}i.encodeCustomParams=function(e){if("object"==typeof e)return Object.keys(e).forEach((t=>{const n=e[t];Array.isArray(n)?e[t]=n.join(","):e[t]=n})),encodeURIComponent(r.objToQueryString(e));throw new TypeError("encodeCustomParams only accepts an object map of key value pairs.")},i.prototype.iu=function(e){if(!/^\/[a-zA-z0-9\-_.~]+(\/[a-zA-z0-9\-_.~]+)*/.test(e))throw new TypeError("'iu' param must follow format: /network_id/directory_tree.../ad_unit");return this.params.iu=encodeURIComponent(e),this},i.prototype.sz=function(e){if(!/^[0-9]+x[0-9]+/.test(e))throw new TypeError("'sz' param must follow format like: 300x400.");return this.params.sz=e,this},i.prototype.url=function(e){return this.params.url=encodeURIComponent(r.urlParts(e).href),this},i.prototype.correlator=function(e){if("number"==typeof e&&!isNaN(e))return this.params.correlator=e,this;throw new TypeError("the passed correlator is not a number")},i.prototype.description_url=function(e){return this.params.description_url=encodeURIComponent(r.urlParts(e).href),this},i.prototype.hl=function(e){return this.params.hl=e,this},i.prototype.ciu_szs=function(e){return this.params.ciu_szs=e,this},i.prototype.scp=function(e){return this.params.scp=e,this},i.prototype.cust_params=function(e){return this.params.cust_params=i.encodeCustomParams(e),this},i.prototype.setRequestNonPersonalizedAds=function(e){return e&&(this.params.npa=1),this},i.prototype.setRestrictDataProcessing=function(e){return e&&(this.params.rdp=1),this},i.prototype.setPpid=function(e){return e&&(this.params.ppid=e),this},i.prototype.scor=function(e){if("number"==typeof e&&!isNaN(e))return this.params.scor=e,this;throw new TypeError("the passed scor is not a number")},i.prototype.addParam=function(e,t){return this.params[e]=t,this},i.prototype.build=function(){const e=this.params;return["env","gdfp_req","impl","output","unviewed_position_start","hl","url","correlator","description_url"].forEach((t=>{if(!e[t])throw new TypeError("Error building url, missing required param '"+t+"'")})),this.base_url+"?"+r.objToQueryString(this.params)},e.exports=i},3284:e=>{e.exports=e=>{const t=(e=>{const{cust_params:t,domain:n,embed:r,flyaway:i,muted:o,screen:s,source:a,title:d,videoId:l,videoStarts:c}=e,u="number"==typeof e.duration?e.duration/1e3:0,p={length:u>120?120:30*Math.floor(u/30),videoWidth:s.width,videoHeight:s.height,play:c,embed:r,ttid:l,domain:n,flyaway:i,s:o?"off":"on"};d&&(p.videoTitle=d.replace(/\s/g,"_").replace(/[^_\w]/g,"")),a&&(p.video=a.replace(/\s/g,"_")),window.adEnvironment&&(p.environment=window.adEnvironment);const h=t||{};return Object.keys(h).forEach((e=>{p[e]=h[e]})),p.sz=s.width+"x"+s.height,p})({...e,cust_params:{...e.cust_params}});return{customParams:t}}},6214:(e,t,n)=>{"use strict";function r(e,t){const{autoplay:n=!1,fbiaEmbed:r=!1,flyaway:i=!1,isMobile:o=!1,original:s=!1,syndicationService:a=!1}=t;let d=e;r&&-1===d.indexOf("dm.videofb")||"fbia"===a&&-1===d.indexOf("dm.videofb")?d=d.replace(/dm\.video/g,"dm.videofb"):"gamp"===a&&-1===d.indexOf("dm.videoamp")?d=d.replace(/dm\.video/g,"dm.videoamp"):o&&s&&!n&&!i&&(d=d.replace(/dm\.video/g,"dm.video.original"));let l="";return n&&(l+="ap"),i&&(l+="fa"),l.length&&(d=d.replace(/(dm\.video)([^&]+)?/,"$1$2_"+l)),d}n.d(t,{A:()=>r})},8187:(e,t,n)=>{const r=n(9289),i=document.createElement("a"),o=document.documentMode,s={appendGeolocation:function(e){try{return s.appendKeyToURL(e,"geo",window.PageCriteria.geo)}catch(t){return e}},appendKeyToURL:function(e,t,n){let r;r=/\?/.test(e)?"&":"?",r+=t+"="+encodeURIComponent(n.toString());const i=e.split("#");return 2===i.length?i[0]+r+"#"+i[1]:i[0]+r},objToQueryString:function(e){const t=[];return r.forEach(e,((e,n)=>{t.push(n+"="+e)})),t.join("&")},queryStringToObj:function(e,t){if(t=r.isFunction(t)?t:function(){return!0},!("string"==typeof e||e instanceof String))return{};const n=(e=e.trim().replace(/^\?/,"")).split("&"),i={};return r.forEach(n,(e=>{let n,r,o;""!==e&&(r=e.split("="),n=r[0],o=r[1],t(n,o)&&(i[n]=o))})),i},urlParts:function(e){let t,n=e;return o&&(i.setAttribute("href",n),n=i.href,/(.*):(\d+)/.test(i.host)&&(t=i.host.split(":"),i.host=t[0],i.port=t[1])),i.setAttribute("href",n),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:r.isNotEmptyString(i.port)?i.port:80,pathname:"/"===i.pathname.charAt(0)?i.pathname:"/"+i.pathname}}};e.exports=s},9289:e=>{function t(e){return"function"==typeof e}const n={forEach:function e(n,r,i){let o,s;if(n)if(t(n))for(o in n)"prototype"===o||"length"===o||"name"===o||n.hasOwnProperty&&!n.hasOwnProperty(o)||r.call(i,n[o],o,n);else if(a=n,"[object Array]"===Object.prototype.toString.call(a)){const e="object"!=typeof n;for(o=0,s=n.length;o{"use strict";function r(){function e(t){return(e="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})(t)}function t(e,t){let r,i,o,s,a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(a)return i=!(r=!0),{s:function(){a=a.call(e)},n:function(){const e=a.next();return r=e.done,e},e:function(e){i=!0,o=e},f:function(){try{r||null==a.return||a.return()}finally{if(i)throw o}}};if(Array.isArray(e)||(a=function(e,t){let r;if(e)return"string"==typeof e?n(e,t):"Map"===(r="Object"===(r=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}(e))||t&&e&&"number"==typeof e.length)return a&&(e=a),s=0,{s:t=function(){},n:function(){return s>=e.length?{done:!0}:{done:!1,value:e[s++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&e.dataSender(e)}}catch(e){this.logger.error("Failed to susbscibe for onbeforeunload")}try{window.onunload=function(){!1===e.dataSentOnUnload&&e.messagesArray.length>0&&e.dataSender(e)}}catch(e){this.logger.error("Failed to susbscibe for onbeforeunload")}}},r.prototype.additionalVariablesInit=function(e){this.intentIqConfig.moduleIds={unifiedeId:null},this.intentIqConfig.operationalMode={vr:"VR",pixel:"PIXEL",dual:"DUAL",node:"NONE",current:e&&"string"==typeof e.mode?this.getOperationalMode(e.mode):"DUAL"},e&&e.intentIqData&&"undefined"!==e.intentIqData&&(this.intentIqData=e.intentIqData,this.intentIqConfig.operationalMode.current=this.intentIqConfig.operationalMode.vr,this.useLodalData=!0,this.intentIqConfig.pbmonitoring=!0),this.intentIqConfig.collisionPreventionMode={pub:"PUB",other:"OTHER",none:"NONE",current:e&&"string"==typeof e.idCollisionPreventionMode?this.parseCollisionPreventionMode(e.idCollisionPreventionMode):"NONE"},this.intentIqConfig.urlParamsNames={isInTestGroup:"abtgu",testPercentage:"abtp",testPreviousPercentage:"abtpp",testGroup:"abtg",pbPauseUntill:"pbpause",requestRtt:"rrtt",lastDataUpdateDate:"dud"},this.intentIqConfig.analytics={requestRtt:0,clientType:"",adserverDeviceType:"",terminationCause:"",profile:"",siteId:null},this.intentIqConfig.pbmonitoring={pbMonitoringEnabled:!e||"boolean"!=typeof e.pbMonitoringEnabled||!0===e.pbMonitoringEnabled,pbPauseUntill:-1},this.intentIqConfig.subscriptionFlags={bidWon:!1,bidRequested:!1,beforeBidderHttp:!1,auctionInited:!1}},r.prototype.mandarotyVariablesInit=function(e){this.intentIqConfig.lsKeys={FIRST_PARTY_KEY:"_iiq_fdata",PARTNER_DATA_KEY:"_iiq_fdata_"+this.intentIqConfig.partner,LAST_SYNC_KEY:"_iiq_sync_"+this.intentIqConfig.partner,abGroup:"_iiq_ab_group_"+this.intentIqConfig.partner,abPercentage:"_iiq_ab_percentage_"+this.intentIqConfig.partner,pbMonitoringEnabled:"_iiq_pb_monitoringenabled_"+this.intentIqConfig.partner,pbPauseUntill:"_iiq_pb_pausetill_"+this.intentIqConfig.partner,requestRtt:"_iiq_requestrtt_"+this.intentIqConfig.partner,DEBUG_KEY:"_iiq_debug_level"},this.uspDataObj=this.initUspDataObj(),this.currentUspValue=this.uspDataObj.getUspValue(),this.intentIqConfig.abTesting={groupNames:{withoutIIQ:"B",withIIQ:"A",notYetDefined:"U",none:"N"},configurationSource:{percentage:"percentage",group:"group",iiqserver:"IIQServer",disabled:"disabled",currentConfigurationSource:this.parseConfigurationSource(e.ABTestingConfigurationSource)},currentPercentage:-1,isInTestGroup:e.disableIIQInThisGroup,previousPercentage:-1,currentTestGroup:"U",previousTestGroup:"U",shouldDiscardServerConfiguration:!1,userActualPercentage:e.abPercentage},this.intentIqConfig.paramsNames={abPercentage:"abPercentage",abTestGroup:"abGroup",pbPauseUntill:"pbPauseUntil",pbMonitoringEnabled:"pbMonitoringEnabled",isInTestGroup:"isInTestGroup",enhanceRequests:"enhanceRequests",wasSubscribedForPrebid:"wasSubscribedForPrebid",hadEids:"hadEids",userActualPercentage:"userPercentage",ABTestingConfigurationSource:"ABTestingConfigurationSource",lateConfiguration:"lateConfiguration",jsverion:"jsversion",eidsNames:"eidsNames",requestRtt:"rtt",clientType:"clientType",adserverDeviceType:"AdserverDeviceType",terminationCause:"terminationCause",callCount:"callCount",manualCallCount:"mcc",pubprovidedidsFailedToregister:"ppcc",noDataCount:"noDataCount",profile:"profile",isProfileDeterministic:"pidDeterministic",siteId:"sid",hadEidsInLocalStorage:"idls",auctionStartTime:"ast",eidsReadTime:"eidt",agentId:"aid",auctionEidsLegth:"aeidln",wasServerCalled:"wsrvcll",refferer:"vrref",isInBrowserBlacklist:"inbbl",prebidVersion:"pbjsver",partnerId:"partnerId"}},r.prototype.initRuntimeDefaults=function(e){this.intentIqData={},this.isCellular=!1,this.configurationTime=Date.now(),this.partnerData={},this.wasDebugCheck=!1,this.wasServerCalled=!1,this.wasCallFromConstructor=!1,this.wasCallbackFired=!1,this.counters={callCount:0,noDataCounter:0,failCount:0},this.uspCodes={INITIAL_VALUE:"-1",ABSENCE_VALUE:"-2"},this.currentUspValue=this.uspCodes.INITIAL_VALUE,this.metadataConstant=256,this.syncRefreshMillis=36e5,this.shouldCallServer=!1,this.isPrebidConfigurationSet=!1,this.userProvidedConfig=e,this.lastDataUpdateDate=0,this.configurationTime=0,this.requestRtt=0,this.allBidsMap={},this.messagesArray=[],this.partnerAuctionIdsArray=[],this.reportingServerAddress="https://reports.intentiq.com",this.gatewayServerAddress="https://ucgfk6g6s7.execute-api.us-east-1.amazonaws.com",this.dataReportingPath="report",this.delayedSenderTimeouter=null,this.gatewayWasCalled=!1,this.localStorageEnabled=void 0,this.pubprovidedidsFailedToregister=!1,this.callbackTimeotID=null,this.eidsReceptionsTime=null,this.eidsNames=[],this.useLodalData=!1,this.auctionStartTimeData={},this.auctionEidsLength={},this.dataSentOnUnload=!1,this.hadEidsInLocalStorage,this.cookiFullBrowsersListLowercase=["chrome"],this.isInBrowserBlacklist=!1,this.replacer=function(e,t){return"pbjs"==e||"lsKeys"==e||"serverResponse"==e||"urlParamsNames"==e||"groupNames"==e?"skipped in printing":t}},r.prototype.unifiedIdReplacementLogic=function(){return this.currentBrowserLowerCase||(this.currentBrowserLowerCase=this.detectBrowser().toLowerCase()),this.cookiFullBrowsersListLowercase.includes(this.currentBrowserLowerCase)?(this.logger.info("CookieFull browser detected, setting unifyed id override logic to: FALSE"),!1):(this.logger.info("Cookieless browser detected, setting unifyed id override logic to: TRUE"),!0)},r.prototype.clearDataIfInGroupBorPassiveMode=function(){let e;this.intentIqConfig.isInPassiveMode||this.intentIqConfig.abTesting.currentTestGroup===this.intentIqConfig.abTesting.groupNames.withoutIIQ?(null!=(e=this.readData(this.intentIqConfig.lsKeys.PARTNER_DATA_KEY))&&((e=JSON.parse(e)).data={},this.storeData(this.intentIqConfig.lsKeys.PARTNER_DATA_KEY,JSON.stringify(e))),this.logger.info("Calling callback - passive mode or group B set"),this.fireCallback()):this.callbackTimeotID||(this.callbackTimeotID=setTimeout(this.fireCallbackOnRequestTimeout.bind(null,this),this.intentIqConfig.timeoutInMillis))},r.prototype.isObjectEmpty=function(e){return e&&0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype},r.prototype.parseReportingMethod=function(e){try{switch(e.toUpperCase()){case"GET":default:return"GET";case"POST":return"POST"}}catch(e){this.logger.error(e)}return"GET"},r.prototype.fireCallbackOnRequestTimeout=function(e){e.logger.info("Trying to fire callback on timeout"),e.fireCallback()},r.prototype.checkAndPrintPrebidInitAuctionsStatus=function(e){try{this.isDebug()&&(this.logger.info("Validation at stage: "+e),this.intentIqConfig.pbjs?this.intentIqConfig.pbjs.getEvent?(this.logger.info("Total amount of events is "+this.intentIqConfig.pbjs.getEvents().length),this.logger.info("Amount of auctionInit events is "+this.intentIqConfig.pbjs.getEvents().filter((function(e){return"auctionInit"===e.eventType})).length)):this.logger.info("Pbjs was defined but it has no getEvents method. Looks like we are right on time."):this.logger.error("Pbjs wasn't defined"))}catch(e){this.logger.error("Failed to report pbjs events state")}},r.prototype.extractIdentittyModulesIds=function(){try{if(this.intentIqData&&this.intentIqData.eids&&Array.isArray(this.intentIqData.eids)){let e;const n=t(this.intentIqData.eids);try{for(n.s();!(e=n.n()).done;){const t=e.value;if(t.source&&"adserver.org"===t.source&&t.uids[0].id){this.intentIqConfig.moduleIds.unifiedeId=t.uids[0].id;break}}}catch(e){n.e(e)}finally{n.f()}}}catch(e){this.logger.fatal(e)}},r.prototype.fillEidsNames=function(){try{if(this.intentIqConfig.appendEidsNamesToReport){if(this.eidsNames=[],this.intentIqData&&this.intentIqData.eids&&Array.isArray(this.intentIqData.eids)){let e;const n=t(this.intentIqData.eids);try{for(n.s();!(e=n.n()).done;){const t=e.value;this.eidsNames.push(t.source)}}catch(e){n.e(e)}finally{n.f()}}}else this.logger.info("Skipping eids names population due to configuration")}catch(e){this.logger.fatal("Failed to collect eids names")}},r.prototype.initPbMonitoring=function(){!0===this.intentIqConfig.manualWinReportEnabled?this.intentIqConfig.pbmonitoring.pbMonitoringEnabled=!1:this.userProvidedConfig&&"boolean"==typeof this.userProvidedConfig.pbMonitoringEnabled&&(this.intentIqConfig.pbmonitoring.pbMonitoringEnabled=!0===this.userProvidedConfig.pbMonitoringEnabled)},r.prototype.loadOrCreateFirstPartyData=function(){let e=this.tryParse(this.readData(this.intentIqConfig.lsKeys.FIRST_PARTY_KEY));return e&&e.pid&&(this.intentIqConfig.analytics.profile=e.pid),e&&e.pcid?e&&!e.pcidDate&&(e.pcidDate=Date.now()):e={pcid:this.generateGUID(),pcidDate:Date.now()},this.storeData(this.intentIqConfig.lsKeys.FIRST_PARTY_KEY,JSON.stringify(e)),e},r.prototype.parseConfigurationSource=function(e){return"percentage"===e||"group"===e||"IIQServer"===e||"disabled"===e?e:"disabled"},r.prototype.getOperationalMode=function(e){try{switch(e.toLowerCase()){case"bidenhancement":return"VR";case"sync":return"PIXEL";case"both":return"DUAL"}}catch(e){this.logger.error(e)}return this.intentIqConfig.operationalMode.dual},r.prototype.verifyIdType=function(e){return 0===e||1===e||3===e||4===e?e:-1},r.prototype.parseCollisionPreventionMode=function(e){try{switch(e.toLowerCase()){case"pub":return"PUB";case"other":return"OTHER";case"none":return"NONE"}}catch(e){this.logger.error(e)}return this.intentIqConfig.collisionPreventionMode.none},r.prototype.detectBrowser=function(){try{return-1!=(navigator.userAgent.indexOf("Opera")||navigator.userAgent.indexOf("OPR"))?"Opera":-1!=navigator.userAgent.indexOf("Chrome")||-1!=navigator.userAgent.indexOf("CriOS")?"Chrome":-1!=navigator.userAgent.indexOf("Safari")?"Safari":-1!=navigator.userAgent.indexOf("Firefox")?"Firefox":-1!=navigator.userAgent.indexOf("MSIE")||1==!!document.documentMode?"IE":"Unknown"}catch(e){return"Unknown"}},r.prototype.translateMetadata=function(e){try{const t=e.split(".");return((+t[0]*this.metadataConstant+ +t[1])*this.metadataConstant+ +t[2])*this.metadataConstant+ +t[3]}catch(e){return NaN}},r.prototype.getRandom=function(e,t){return Math.floor(Math.random()*(t-e+1)+e)},r.prototype.generateRandom1to99=function(){return Math.floor(99*Math.random())+1},r.prototype.isEmpty=function(e){return 0==Object.keys(e).length},r.prototype.isEmptyObjAndArray=function(t){return!t||"object"==e(t)&&this.isEmpty(t)},r.prototype.isDefined=function(e){return void 0!==e&&null!=e},r.prototype.containsEids=function(e){let t=e;try{return!!e&&(t=e.data?e.data:t).eids&&Array.isArray(t.eids)&&t.eids.length>0}catch(e){this.counters.failCount++,this.logger.fatal(e)}return!1},r.prototype.generateRandomUsIp=function(){let e=this.readData("_iiq_ip");return(!e||this.isIpCellular(e)&&!this.isCellular||!this.isIpCellular(e)&&this.isCellular)&&(e=this.generateNewRandomIp(this.isCellular),this.storeData("_iiq_ip",e)),e},r.prototype.isIpCellular=function(e){return e.startsWith("107.77.208.")},r.prototype.generateNewRandomIp=function(e){return(e=e?"107.77.208.":"98.115.221.")+Math.floor(255*Math.random())},r.prototype.tryParse=function(e){try{return JSON.parse(e)}catch(e){this.logger.error(e)}return null},r.prototype.tryParseInt=function(e){try{return parseInt(e,10)}catch(e){return this.logger.error(e),-1}},r.prototype.addLevelValue=function(e){return"string"==typeof e&&this.logger.allLevels[e=e.toUpperCase()]?e.toUpperCase():"FATAL"},r.prototype.initLogger=function(){const e=this;return{info:function(e){this.log("INFO",e)},debug:function(e){this.log("DEBUG",e)},fatal:function(e){this.log("FATAL",e)},error:function(e){this.log("ERROR",e)},trace:function(e){this.log("TRACE",e)},log:function(e,t){this.isLessThanOrEqualTo(e)&&this._print(t,e)},isLessThanOrEqualTo:function(t){return this.allLevels[e.levelValue].value>=this.allLevels[t].value},_print:function(t,n){const r=this.allLevels[n].colour,i=this.allLevels[n].secondary_color,o=e&&e.intentIqConfig&&e.intentIqConfig.partner?e.intentIqConfig.partner:e.userProvidedConfig?e.userProvidedConfig.partner:null;console.log("".concat(o," %c[").concat(n,"]%c [").concat(Date.now(),"] %c").concat(t),"color: white ; background-color:"+r+"; border-radius: 3px","border:none","color: "+i+" ; border:1px solid "+r+"; border-radius: 3px")},allLevels:{FATAL:{value:10,colour:"magenta",secondary_color:"magenta"},INFO:{value:20,colour:"green",secondary_color:"green"},ERROR:{value:30,colour:"red",secondary_color:"red"},DEBUG:{value:40,colour:"cyan",secondary_color:"grey"},TRACE:{value:50,colour:"blue",secondary_color:"blue"}}}},r.prototype.isDebug=function(){let e;return this.wasDebugCheck||(this.levelValue="FATAL",this.hasLocalStorage()&&null!==(e=this.readData("_iiq_debug_level"))&&(this.isDebugMode=!0,this.levelValue=this.addLevelValue(e)),this.wasDebugCheck=!0),this.isDebugMode},r.prototype.setInfoLevel=function(){this.storeData("_iiq_debug_level","INFO")},r.prototype.setDebugLevel=function(){this.storeData("_iiq_debug_level","DEBUG")},r.prototype.setTraceLevel=function(){this.storeData("_iiq_debug_level","TRACE")},r.prototype.hasLocalStorage=function(){if(void 0!==this.localStorageEnabled)return this.localStorageEnabled;try{return this.localStorageEnabled=!!window.localStorage,this.localStorageEnabled}catch(e){this.localStorageEnabled=!1,this.logger.info("Local storage api disabled")}return!1},r.prototype.storeData=function(e,t){try{"string"==typeof e&&e.startsWith("iiq_fdata")&&this.logger.info("IntentIQ: storing data: key="+e+" value="+t),this.isDefined(t)&&this.hasLocalStorage()&&window.localStorage.setItem(e,t)}catch(e){this.logger.error(e)}},r.prototype.readData=function(e){try{if(this.hasLocalStorage())return window.localStorage.getItem(e)}catch(e){this.logger.error(e)}return null},r.prototype.initUspDataObj=function(){const e=this;return{getUspValue:function(){const t=this.readUspData();return t&&t.uspString?t.uspString:e.uspCodes.ABSENCE_VALUE},readUspData:function(){try{return this.getDataFromWindow()}catch(t){e.logger.error(t)}try{return this.getDataFromTop()}catch(t){e.logger.error(t)}return{}},getDataFromWindow:function(){let e;if(window.__uspapi)return window.__uspapi("getUSPData",1,(function(t){return e=t})),e},getDataFromTop:function(){let e;if(window.top.__uspapi)return window.top.__uspapi("getUSPData",1,(function(t){return e=t})),e}}},r.prototype.generateGUID=function(){let e=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){const n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?n:3&n|8).toString(16)}))},r.prototype.updateCountersAndSaveIfAsked=function(e,t){try{this.containsEids(e)?this.counters.callCount++:this.counters.noDataCounter++,t&&this.savePartnerDataToLocalStore()}catch(e){this.counters.failCount++,this.logger.error("Failred to update counters.")}},r.prototype.clearCounters=function(){this.counters&&(this.counters.callCount=0,this.counters.failCount=0,this.counters.noDataCounter=0,this.savePartnerDataToLocalStore())},r.prototype.fireCallback=function(){try{null===this.intentIqConfig.callback||void 0===this.intentIqConfig.callback||this.wasCallbackFired?this.logger.info("Skippping calback fire , already fired or not defined"):(this.wasCallbackFired=!0,null!==this.callbackTimeotID&&(this.logger.info("Removing callback timeout - got it first"),clearTimeout(this.callbackTimeotID)),this.logger.info("Actual callback fire."),this.intentIqConfig.callback(this.intentIqData,this.intentIqConfig.abTesting.currentTestGroup),null===this.intentIqConfig.pbjs&&this.updateCountersAndSaveIfAsked(this.intentIqData,!0))}catch(e){this.logger.fatal(e)}},r.prototype.getPubprovidedEids=function(e){void 0===e&&(e=this);try{for(var t=JSON.parse(JSON.stringify(e.getIntentIqEidsInternal(e))),n=0;n0),this.extractIdentittyModulesIds(),this.fillEidsNames(),this.eidsReceptionsTime=Date.now()),"number"==typeof t.callCount&&(this.counters.callCount=t.callCount),"number"==typeof t.failCount&&(this.counters.failCount=t.failCount),"number"==typeof t.noDataCounter&&(this.counters.noDataCounter=t.noDataCounter),"number"==typeof t.cttl&&(this.currentDataTTl=t.cttl,this.logger.info("Custom data TTL loaded from LS, value: "+this.currentDataTTl)),e=this.uspDataObj.getUspValue(),"string"==typeof t.uspapi_value?(this.currentUspValue=t.uspapi_value,this.logger.info("Got stored CCPA Value: "+this.currentUspValue),this.currentUspValue!==e&&(this.currentUspValue=e,this.currentDataTTl=0,t.cttl=0,this.shouldCallServer=!0,t.uspapi_value=e,this.logger.info("Reset cttl value"))):(t.uspapi_value=e,this.currentUspValue=e,this.logger.info("Read CCPA Value from uspapi: "+this.currentUspValue)),t.date&&(this.lastDataUpdateDate=t.date,this.shouldCallServer=Date.now()-t.date>this.currentDataTTl),t.ct&&(this.intentIqConfig.analytics.clientType=t.clientType),t.adserverDeviceType&&(this.intentIqConfig.analytics.adserverDeviceType=t.adserverDeviceType),t.terminationCause&&(this.intentIqConfig.analytics.terminationCause=t.terminationCause),t.pidDeterministic&&(this.intentIqConfig.analytics.pidDeterministic=t.pidDeterministic),t.siteId&&(this.intentIqConfig.analytics.siteId=t.siteId)):(t={},this.shouldCallServer=!0),t},r.prototype.getDataOrCallServerIfNeeded=function(e){try{let t;return this.intentIqConfig.operationalMode.current===this.intentIqConfig.operationalMode.pixel?{}:"number"!=typeof this.intentIqConfig.partner?(this.counters.failCount++,this.logger.error("intentIqId requires a valid partner to be defined"),{}):(this.partnerData=this.loadPartnerData(),this.wasCallFromConstructor?this.savePartnerDataToLocalStore():this.wasCallFromConstructor=!0,this.shouldCallServer&&!1===this.useLodalData?(this.wasServerCalled=!0,t=this.createRequestUrl(!1),this.makeServerRequest(t,!0)):this.isPrebidConfigurationSet||(this.isPrebidConfigurationSet=!0,this.configurePrebid()),!e||!0!==e||this.isEmptyObjAndArray(this.intentIqData)&&this.shouldCallServer||this.fireCallback(),this.intentIqData||{})}catch(e){this.counters.failCount++,this.logger.error("Exception occurred during main logic: "+e),this.savePartnerDataToLocalStore()}return{}},r.prototype.createPixelUrl=function(){var e=this.intentIqConfig.iiqPixelServerAddress+"/profiles_engine/ProfilesEngineServlet?at=20&mi=10&secure=1";return e=(e+="&dpi="+this.intentIqConfig.partner)+"&rnd="+this.getRandom(0,1e6),e=this.appendFirstPartyDataToUrl(e),e=this.addUniquenessToUrl(e),e=this.addMetaData(e),e=this.appendPartnersFirsyParty(e),e=this.appendReferrerToUrl(e),e+=this.version?"&jsver="+encodeURIComponent(this.version):"",this.appendABTestingData(e)},r.prototype.pixelSync=function(){try{let e;const t=parseInt(this.readData(this.intentIqConfig.lsKeys.LAST_SYNC_KEY));(!t||Date.now()-t>this.syncRefreshMillis)&&(e=this.createPixelUrl(),this.appendImage(e),this.storeData(this.intentIqConfig.lsKeys.LAST_SYNC_KEY,Date.now()+""))}catch(e){this.logger.error("Error adding pixel to DOM "+e)}},r.prototype.appendImage=function(e){let t;this.isDefined(e)&&((t=document.createElement("img")).src=e,t.width=1,t.height=1,this.isDefined(document.body)?document.body.appendChild(t):window.addEventListener("load",(function(){try{document.body.appendChild(t)}catch(e){this.logger.fatal(e)}})))},r.prototype.tryExtractConfiguration=function(e){this.intentIqConfig.abTesting.shouldDiscardServerConfiguration||(this.logger.info("Extracting AB testing parameter"),this.tryExtractABTestingConfiguration(e)),this.logger.info("Extracting monitoring parameter")},r.prototype.tryExtractABTestingConfiguration=function(e){let t;this.intentIqConfig.paramsNames.abPercentage in e&&(t=this.tryParseInt(e[this.intentIqConfig.paramsNames.abPercentage]),this.logger.info("abPercentage received: "+e[this.intentIqConfig.paramsNames.abPercentage]),t!==this.intentIqConfig.abTesting.currentPercentage)&&(this.logger.info("abPercentage has changed from:"+this.intentIqConfig.abTesting.currentPercentage+" to:"+e[this.intentIqConfig.paramsNames.abPercentage]),this.intentIqConfig.abTesting.previousPercentage=this.intentIqConfig.abTesting.currentPercentage,this.intentIqConfig.abTesting.currentPercentage=t,this.generateTestGroupAccordingToPercentageAndConfigure(),this.persistABTestingSettingsToLS())},r.prototype.configureABTestingForIIQServer=function(){this.intentIqConfig.abTesting.currentTestGroup=this.intentIqConfig.abTesting.groupNames.notYetDefined,this.intentIqConfig.abTesting.previousTestGroup=this.intentIqConfig.abTesting.groupNames.notYetDefined,this.intentIqConfig.abTesting.shouldDiscardServerConfiguration=!1,this.intentIqConfig.isInPassiveMode=!1},r.prototype.configureABTestingForGroupA=function(){this.intentIqConfig.abTesting.currentTestGroup=this.intentIqConfig.abTesting.groupNames.withIIQ,this.intentIqConfig.abTesting.previousTestGroup=this.intentIqConfig.abTesting.groupNames.notYetDefined,this.intentIqConfig.abTesting.currentPercentage=100,this.intentIqConfig.abTesting.shouldDiscardServerConfiguration=!0,this.intentIqConfig.isInPassiveMode=!1},r.prototype.configureABTestingForGroupB=function(){this.intentIqConfig.abTesting.currentTestGroup=this.intentIqConfig.abTesting.groupNames.withoutIIQ,this.intentIqConfig.abTesting.previousTestGroup=this.intentIqConfig.abTesting.groupNames.notYetDefined,this.intentIqConfig.abTesting.currentPercentage=0,this.intentIqConfig.abTesting.shouldDiscardServerConfiguration=!0,this.intentIqConfig.isInPassiveMode=!0},r.prototype.configureABTestingForPercentage=function(){this.intentIqConfig.abTesting.currentTestGroup=this.intentIqConfig.abTesting.groupNames.notYetDefined,this.intentIqConfig.abTesting.previousTestGroup=this.intentIqConfig.abTesting.groupNames.notYetDefined,this.intentIqConfig.abTesting.shouldDiscardServerConfiguration=!0,this.intentIqConfig.isInPassiveMode=!1},r.prototype.configurationSourceGroupInitilization=function(){this.userProvidedConfig&&"boolean"==typeof this.userProvidedConfig.disableIIQInThisGroup&&(this.intentIqConfig.abTesting.isInTestGroup=!0===this.userProvidedConfig.disableIIQInThisGroup,!0===this.userProvidedConfig.disableIIQInThisGroup)?this.configureABTestingForGroupB():this.configureABTestingForGroupA()},r.prototype.configurationSourcePercentageInitilization=function(){switch(this.userProvidedConfig&&"number"==typeof this.userProvidedConfig.abPercentage&&this.userProvidedConfig.abPercentage<101&&this.userProvidedConfig.abPercentage>-1?this.intentIqConfig.abTesting.userActualPercentage=this.userProvidedConfig.abPercentage:this.intentIqConfig.abTesting.userActualPercentage=-2,this.intentIqConfig.abTesting.userActualPercentage){case 0:this.configureABTestingForGroupB();break;case 100:case-2:this.configureABTestingForGroupA();break;default:this.configureABTestingForPercentage()}},r.prototype.abTestingAdvancedConfiguration=function(){let e;this.intentIqConfig.abTesting.currentTestGroup===this.intentIqConfig.abTesting.groupNames.notYetDefined&&(e=this.readData(this.intentIqConfig.lsKeys.abPercentage),isNaN(parseInt(e))||(this.intentIqConfig.abTesting.currentPercentage=Number(e)),null!=(e=this.readData(this.intentIqConfig.lsKeys.abGroup))&&(this.intentIqConfig.abTesting.currentTestGroup=e,this.intentIqConfig.isInPassiveMode=this.intentIqConfig.abTesting.currentTestGroup===this.intentIqConfig.abTesting.groupNames.withoutIIQ),this.intentIqConfig.abTesting.configurationSource.currentConfigurationSource===this.intentIqConfig.abTesting.configurationSource.percentage)&&this.isDefined(this.intentIqConfig.abTesting.userActualPercentage)&&this.intentIqConfig.abTesting.userActualPercentage>0&&this.intentIqConfig.abTesting.userActualPercentage<100&&this.intentIqConfig.abTesting.userActualPercentage!==this.intentIqConfig.abTesting.currentPercentage&&(this.intentIqConfig.abTesting.previousTestGroup=this.intentIqConfig.abTesting.currentTestGroup,this.intentIqConfig.abTesting.previousPercentage=this.intentIqConfig.abTesting.currentPercentage,this.intentIqConfig.abTesting.currentPercentage=this.intentIqConfig.abTesting.userActualPercentage,this.generateTestGroupAccordingToPercentageAndConfigure(),this.persistABTestingSettingsToLS())},r.prototype.initABTestingConfiguration=function(){switch(this.intentIqConfig.abTesting.configurationSource.currentConfigurationSource){case this.intentIqConfig.abTesting.configurationSource.group:this.configurationSourceGroupInitilization();break;case this.intentIqConfig.abTesting.configurationSource.percentage:this.configurationSourcePercentageInitilization();break;case this.intentIqConfig.abTesting.configurationSource.iiqserver:this.configureABTestingForIIQServer();break;case this.intentIqConfig.abTesting.configurationSource.disabled:this.configureABTestingForGroupA()}this.abTestingAdvancedConfiguration()},r.prototype.generateTestGroupAccordingToPercentageAndConfigure=function(){this.generateRandom1to99()0,"lsps"in e&&!0!==e.lsps&&(!1!==e.lsps||t)||(n.partnerData.data=e.data,n.intentIqData=e.data,n.extractIdentittyModulesIds(),n.fillEidsNames(),n.eidsReceptionsTime=Date.now())),n.logger.info("Received Data: "+JSON.stringify(e))),r&&n.storeData(n.intentIqConfig.lsKeys.FIRST_PARTY_KEY,JSON.stringify(n.firstPartyData)),n.savePartnerDataToLocalStore(),n.isPrebidConfigurationSet||(n.isPrebidConfigurationSet=!0,n.configurePrebid()),n.logger.info("Response from PE parsed, firing callback"),n.fireCallback()}),(function(){n.intentIqConfig.analytics.requestRtt=-1,n.fireCallback()}))},r.prototype.savePartnerDataToLocalStore=function(){this.partnerData||(this.partnerData=this.tryParse(this.readData(this.intentIqConfig.lsKeys.PARTNER_DATA_KEY))),this.partnerData&&(this.partnerData.callCount=this.counters.callCount,this.partnerData.failCount=this.counters.failCount,this.partnerData.noDataCounter=this.counters.noDataCounter,this.partnerData.cttl=this.currentDataTTl,this.partnerData.clientType=this.intentIqConfig.analytics.clientType,this.partnerData.adserverDeviceType=this.intentIqConfig.analytics.adserverDeviceType,this.partnerData.terminationCause=this.intentIqConfig.analytics.terminationCause,this.partnerData.profile=this.intentIqConfig.analytics.profile,this.partnerData.pidDeterministic=this.intentIqConfig.analytics.pidDeterministic,this.partnerData.siteId=this.intentIqConfig.analytics.siteId,this.storeData(this.intentIqConfig.lsKeys.PARTNER_DATA_KEY,JSON.stringify(this.partnerData)))},r.prototype.createRequestUrl=function(e){return e=(!0===e?this.gatewayServerAddress:this.intentIqConfig.iiqServerAddress)+"/profiles_engine/ProfilesEngineServlet?at=39&mi=10&dpi="+this.intentIqConfig.partner+"&pt=17&dpn=1",e=(e+=this.intentIqConfig.pai?"&pai="+encodeURIComponent(this.intentIqConfig.pai):"")+(this.version?"&jsver="+encodeURIComponent(this.version):""),e=this.appendFirstPartyDataToUrl(e),e=(e+=this.appendCounters(e))+"&iiqlocalstorageenabled="+encodeURIComponent(this.hasLocalStorage()),e=this.addUniquenessToUrl(e),e=this.addMetaData(e),e+="&cttl="+encodeURIComponent(this.currentDataTTl),this.currentUspValue!==this.uspCodes.INITIAL_VALUE&&this.currentUspValue!==this.uspCodes.ABSENCE_VALUE&&(e+="&pa="+encodeURIComponent(this.currentUspValue)),e=this.appendPartnersFirsyParty(e),e=this.appendRttDate(e),e=this.appendLastDataUpdateDate(e),e=this.appendWithAnalyticsData(e),e=this.appendReferrerToUrl(e),(e+="&japbjs="+(null!==this.intentIqConfig.pbjs))+"&japs="+this.intentIqConfig.siloEnabled},r.prototype.appendCounters=function(e){return e="number"==typeof this.counters.callCount?"&jaesc="+encodeURIComponent(this.counters.callCount):"",(e+="number"==typeof this.counters.failCount?"&jafc="+encodeURIComponent(this.counters.failCount):"")+("number"==typeof this.counters.noDataCounter?"&jaensc="+encodeURIComponent(this.counters.noDataCounter):"")},r.prototype.appendLastDataUpdateDate=function(e){return isNaN(this.lastDataUpdateDate)?e:e+"&"+this.intentIqConfig.urlParamsNames.lastDataUpdateDate+"="+this.lastDataUpdateDate},r.prototype.appendRttDate=function(e){return isNaN(this.intentIqConfig.analytics.requestRtt)?e:e+"&"+this.intentIqConfig.urlParamsNames.requestRtt+"="+this.intentIqConfig.analytics.requestRtt},r.prototype.appendWithAnalyticsData=function(e){return e+"&"+this.intentIqConfig.urlParamsNames.testGroup+"="+this.intentIqConfig.abTesting.currentTestGroup},r.prototype.appendABTestingData=function(e){try{this.isDefined(this.intentIqConfig.abTesting.isInTestGroup)&&(e=e+"&"+this.intentIqConfig.urlParamsNames.isInTestGroup+"="+this.intentIqConfig.abTesting.isInTestGroup),this.isDefined(this.intentIqConfig.abTesting.currentPercentage)&&(e=e+"&"+this.intentIqConfig.urlParamsNames.testPercentage+"="+this.intentIqConfig.abTesting.currentPercentage),this.isDefined(this.intentIqConfig.abTesting.currentTestGroup)&&(e=e+"&"+this.intentIqConfig.urlParamsNames.testGroup+"="+this.intentIqConfig.abTesting.currentTestGroup)}catch(e){this.logger.error(e)}return e},r.prototype.appendPartnersFirsyParty=function(e){try{if(-1===this.intentIqConfig.partnerClientIdType)return e;""!==this.intentIqConfig.partnerClientId&&(e=(e=e+"&pcid="+this.intentIqConfig.partnerClientId)+"&idtype="+this.intentIqConfig.partnerClientIdType)}catch(e){this.logger.error(e)}return e},r.prototype.addMetaData=function(e){var t=(t=this.intentIqConfig.sourceMetaDataExternal)||this.intentIqConfig.sourceMetaData;return isNaN(t)||(e+="&fbp="+t),e},r.prototype.addUniquenessToUrl=function(e){return e+"&tsrnd="+Math.floor(1e3*Math.random())+"_"+(new Date).getTime()},r.prototype.appendFirstPartyDataToUrl=function(e){return(e=(e=(e=(e+=this.isDebug()?"&ip="+encodeURIComponent(this.generateRandomUsIp()):"")+(this.firstPartyData.pid?"&pid="+encodeURIComponent(this.firstPartyData.pid):""))+(this.firstPartyData.dbsaved?"&dbsaved="+encodeURIComponent(this.firstPartyData.dbsaved):""))+(this.firstPartyData.pcid?"&iiqidtype=2&iiqpcid="+encodeURIComponent(this.firstPartyData.pcid):""))+(this.firstPartyData.pcidDate?"&iiqpciddate="+encodeURIComponent(this.firstPartyData.pcidDate):"")},r.prototype.appendReferrerToUrl=function(e){return""!==this.getRefferer()&&(e+="&vrref="+this.getRefferer()),e},r.prototype.getRefferer=function(){return""!==this.intentIqConfig.domainName?encodeURIComponent(this.intentIqConfig.domainName):document.referrer&&""!==document.referrer?encodeURIComponent(document.referrer):""},r.prototype.updatePrebidObject=function(e,t){try{e?t?(this.logger.info("String PBJS Reconfiguration"),this.intentIqConfig.subscriptionFlags={bidWon:!1,bidRequested:!1,beforeBidderHttp:!1,auctionInited:!1},this.wasCallbackFired=!1,this.intentIqConfig.pbjs=e,this.intentIqConfig.callback=t,this.subscribeForPrebidEvents(),this.configurePrebid(),this.getDataOrCallServerIfNeeded(!0)):this.logger.error("CALLBACK not provided while trying to update pbjs objecr refference"):this.logger.fatal("PBJS not provided while trying to update pbjs objecr refference")}catch(e){this.logger.error(e)}},r.prototype.onBidWonEvent=function(e,t){try{let n;t.intentIqConfig.pbmonitoring.pbMonitoringEnabled?t.isInBrowserBlacklist?t.logger.info("Browser is in blacklist. Skipping report."):t.isObjectEmpty(e)?t.logger.info("eventData is empty"):null===(n=t.prepareDataForDelivery(e,null,t))?t.logger.info("Failed to prepare bid won data to send, "+t.intentIqConfig.partner):t.addDataToSendAndInitSender(n,t):t.logger.info("pbMonitoringEnabled is disabled ")}catch(e){t.logger.error(e)}},r.prototype.addDataToSendAndInitSender=function(e,t){try{t.messagesArray.push(e),t.logger.info("New data available to send, "+t.intentIqConfig.partner),t.startSender()}catch(e){t.logger.error(e)}},r.prototype.getDefaultDataObject=function(){return{inbbl:!1,pbjsver:"NR",bidderCode:void 0,cpm:void 0,currency:void 0,originalCpm:void 0,originalCurrency:void 0,status:void 0,prebidAuctionId:void 0,placementId:void 0,biddingPlatformId:void 0,partnerAuctionId:"BW",abPercentage:void 0,abGroup:void 0,isInTestGroup:void 0,enhanceRequests:void 0,hadEids:void 0,userPercentage:void 0,ABTestingConfigurationSource:void 0,jsversion:void 0,lateConfiguration:void 0,eidsNames:void 0,rtt:void 0,clientType:void 0,AdserverDeviceType:void 0,terminationCause:void 0,profile:void 0,sid:void 0,idls:void 0,ast:void 0,eidt:void 0,aid:void 0,aeidln:void 0,wsrvcll:void 0,vrref:void 0,pcid:void 0,partnerId:void 0}},r.prototype.fillAgentRuntimeData=function(e,t){let n;e.intentIqConfig&&e.intentIqConfig.paramsNames?(t[e.intentIqConfig.paramsNames.partnerId]=e.intentIqConfig.partner,t[e.intentIqConfig.paramsNames.isInBrowserBlacklist]=e.isInBrowserBlacklist,e.version&&(t[e.intentIqConfig.paramsNames.jsverion]=e.version),e.intentIqConfig.pbjs&&e.intentIqConfig.pbjs.version&&(t[e.intentIqConfig.paramsNames.prebidVersion]=e.intentIqConfig.pbjs.version),t[e.intentIqConfig.paramsNames.refferer]=e.getRefferer(),n=e.auctionStartTimeData[t.prebidAuctionId]||0,t[e.intentIqConfig.paramsNames.wasSubscribedForPrebid]=e.isSubscribedForPrebidEvents,t[e.intentIqConfig.paramsNames.enhanceRequests]=e.intentIqConfig.shouldSetUidsModulesConfig,t[e.intentIqConfig.paramsNames.hadEids]=!(null===e.eidsReceptionsTime||nn,e.userProvidedConfig&&(t[e.intentIqConfig.paramsNames.userActualPercentage]=e.userProvidedConfig.abPercentage,t[e.intentIqConfig.paramsNames.ABTestingConfigurationSource]=e.userProvidedConfig.ABTestingConfigurationSource),e.intentIqConfig.abTesting&&(t[e.intentIqConfig.paramsNames.abPercentage]=e.intentIqConfig.abTesting.currentPercentage,t[e.intentIqConfig.paramsNames.abTestGroup]=e.intentIqConfig.abTesting.currentTestGroup,t[e.intentIqConfig.paramsNames.isInTestGroup]=e.intentIqConfig.abTesting.currentTestGroup),0!==n&&e.configurationTime>n&&e.logger.info("Late configuration suspected. Events were missed."),t[e.intentIqConfig.paramsNames.eidsNames]=e.eidsNames,t[e.intentIqConfig.paramsNames.hadEidsInLocalStorage]=e.hadEidsInLocalStorage,t[e.intentIqConfig.paramsNames.eidsReadTime]=e.eidsReceptionsTime,t[e.intentIqConfig.paramsNames.agentId]=e.agentId,t[e.intentIqConfig.paramsNames.auctionEidsLegth]=e.auctionEidsLength[t.prebidAuctionId],t[e.intentIqConfig.paramsNames.wasServerCalled]=e.wasServerCalled,e.intentIqConfig.analytics&&(t[e.intentIqConfig.paramsNames.requestRtt]=e.intentIqConfig.analytics.requestRtt,e.intentIqConfig.analytics.requestRtt=0,e.requestRtt=0,t[e.intentIqConfig.paramsNames.clientType]=e.intentIqConfig.analytics.clientType,t[e.intentIqConfig.paramsNames.adserverDeviceType]=e.intentIqConfig.analytics.adserverDeviceType,t[e.intentIqConfig.paramsNames.terminationCause]=e.intentIqConfig.analytics.terminationCause,t[e.intentIqConfig.paramsNames.profile]=e.intentIqConfig.analytics.profile,t[e.intentIqConfig.paramsNames.siteId]=e.intentIqConfig.analytics.siteId)):e.logger.error("agent.intentIqConfig or agent.intentIqConfig.paramsNames was nor initialized on reporting"),e.hasLocalStorage()&&null!==(n=e.readData(e.intentIqConfig.lsKeys.FIRST_PARTY_KEY))&&("pcid"in(n=JSON.parse(n))&&(n=n.pcid),t.pcid=n)},r.prototype.fillPartnerReportingData=function(e,t,n){n.bidderCode=e.bidderCode,n.cpm=e.cpm,n.currency=e.currency,n.originalCpm=e.originalCpm,n.originalCurrency=e.originalCurrency,n.status=e.status,n.biddingPlatformId=e.biddingPlatformId,n.prebidAuctionId=e.prebidAuctionId,n.placementId=e.placementId,n.partnerAuctionId=e.partnerAuctionId,t.partnerAuctionIdsArray&&t.partnerAuctionIdsArray.push(n.partnerAuctionId)},r.prototype.fillPrebidEventData=function(e,t,n){e.bidderCode&&(n.bidderCode=e.bidderCode),e.cpm&&(n.cpm=e.cpm),e.currency&&(n.currency=e.currency),e.originalCpm&&(n.originalCpm=e.originalCpm),e.originalCurrency&&(n.originalCurrency=e.originalCurrency),e.status&&(n.status=e.status),e.auctionId&&(n.prebidAuctionId=e.auctionId);let r=!1;if(e.params&&Array.isArray(e.params))for(let t=0;tr})},8053:(e,t,n)=>{"use strict";n.d(t,{S1:()=>f,U2:()=>p,_D:()=>g,t8:()=>h});var r=n(996),i=n(6584),o=n(5114),s=n(9512),a=n(6796),d=n(6042),l=n(6022);n.g.adverts.config=n.g.adverts.config||{};const c=(0,d.x)("config"),u={},p=function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:n.g.adverts.config;Object.entries(e).forEach((e=>{let[t,n]=e;try{if((0,a.j)(n)){const e=(0,a.H)(n);void 0!==e&&h(t,e)}else h(t,n)}catch(e){console.error(e)}})),n.g.adverts.config=u}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.g.adverts.config),function(){const e=JSON.parse(localStorage.getItem("mol-ads-control-panel-config")||"null");"object"==typeof e&&null!==e&&(0,l.Z)(u,e)}(),g(),function(e){if("string"!=typeof e.setPlugin)return;const t=e=>["on","true","1","enabled"].includes(e),[n,r,i]=e.setPlugin.split(",").reduce(((e,n)=>{let[r,i,o]=e;const[s,a]=n.split(":");if(void 0===a)return[r,i,o];if(s.includes("*")){const[e,n]=s.split("*");!t(a)&&""===n&&o.push(e)}else t(a)?r.add(s):i.add(s);return[r,i,o]}),[new Set([]),new Set([]),[]]),o=p("plugins.enabled",[]).filter((e=>!((e=>i.some((t=>e.includes(t)))&&!n.has(e))(e)||r.has(e)))),s=o.indexOf("debug.setPlugin")+1;o.splice(s,0,...n),h("plugins.enabled",[...new Set(o)])}(o.SP)}const g=()=>{Object.entries(o.SP).forEach((e=>{let[t,n]=e;if(t.startsWith("ac."))if(t.endsWith("[+]")){const e=t.substring(3,t.length-3);h(e,(0,s.jj)(p(e,[]).concat(n)))}else if(t.endsWith("[-]")){const e=t.substring(3,t.length-3);h(e,p(e,[]).filter((e=>!n.includes(e))))}else if(t.endsWith("{}")){const e=t.substring(3,t.length-2);h(e,(e=>{try{return JSON.parse(e)}catch(e){return c.error(e),{}}})(n))}else h(t.slice(3),(e=>""===e||"boolean"==typeof e?e:isNaN(e)?(e=>{const t="true"===e;return"false"===e||t?t:e})(e):parseFloat(e))(n))}))}},5009:(e,t,n)=>{"use strict";(0,n(8053).S1)()},6796:(e,t,n)=>{"use strict";n.d(t,{H:()=>l,j:()=>c});var r=n(5114),i=n(4091),o=n(9512),s=n(996),a=n(7613),d=n(6450);function l(e){let{__targeting:t}=e;return((0,o.pj)(t).find(u)||{}).payload}function c(e){return"object"==typeof e&&!!e?.__targeting}const u=(0,i.ar)({browser:p((function(e){switch(e){case"chrome":return r.G9;case"edge":return r.P0;case"ie":return r.JW;case"firefox":return r.D1;case"safari":return r.s$;default:return!1}})),cookie:p((function(e){return Object.entries(e).some((e=>{let[t,n]=e;return n.includes((0,r.ej)(t)||"")}))})),device:p((function(e){switch(e){case"tablet":return a.ZP.isIPad()||a.ZP.isAndroidTablet();case"desktop":return!a.ZP.isMobile()}})),iOSVersion:p((function(e){let{min:t,max:n}=e;const[i]=(0,r.oK)();return(void 0===t||t<=i)&&(void 0===n||n>=i)})),minInnerWindowHeight:p((function(e){return window.innerHeight>=e})),minInnerWindowWidth:p((function(e){return window.innerWidth>=e})),minDocumentWidth:p((function(e){return document.documentElement.clientWidth>=e})),pageCriteria:p(function(){const e=(0,i.ar)((0,i.UI)(window.PageCriteria||{},(e=>p(Array.isArray(e)?t=>e.includes(t):t=>t===e))),!0);return t=>e((0,i.CE)(t,"payload"))}()),timeRange:p((function(e){let{end:t,start:n}=e;const r=new Date,i=t&&h(t)<=r,o=n&&h(n)>r;return!i&&!o})),globalContext:p((function(e){let{prop:t,op:r,value:i}=e;const a=(0,s.Z)(n.g,t);switch(r){case"includes":return"string"==typeof a?a.includes(i):(0,o.pj)(a).includes(i);case"startsWith":return"string"==typeof a&&a.startsWith(i)}})),topWindow:p((function(e){return e?window.top===window:window.top!==window})),paywalled:p((function(e){return e===(0,d.q)({pageCriteria:n.g.PageCriteria,win:n.g})}))});function p(e){return t=>void 0===t||(Array.isArray(t)?t.some(e):e(t))}function h(e){const[t,n,r]=e.split(":").map(Number),i=new Date;return i.setHours(t),i.setMinutes(n),i.setSeconds(r),i}},4780:(e,t,n)=>{"use strict";n.r(t),n.d(t,{appendStyle:()=>m,closest:()=>f,contains:()=>y,createIframe:()=>I,elementReady:()=>o,getElementBottomOffset:()=>d,getElementComputedHeight:()=>w,getElementComputedWidth:()=>_,getElementScaledHeight:()=>b,getElementWidthScale:()=>T,getOffset:()=>a,getPageSize:()=>p,getParent:()=>v,getRelativeContainer:()=>c,getVisibleText:()=>S,getWindow:()=>u,insertAfter:()=>k,isElement:()=>g,loaded:()=>s,onBodyAvailable:()=>r,untilBodyAvailable:()=>i,walk:()=>h});const r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;t.body?e():n.g.requestAnimationFrame((()=>{r(e,t)}))},i=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return new Promise((t=>r(t,e)))},o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5e3,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;return new Promise(((r,i)=>{let o=!1;setTimeout((()=>{o=!0}),t);const s=()=>{const a=document.querySelector(e);a?r(a):o?i(new Error(`Element "${e}" not found after ${t}ms`)):setTimeout((()=>s()),n)};s()}))},s=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return new Promise((t=>{["complete","loaded","interactive"].includes(e.readyState)?t():e.addEventListener("DOMContentLoaded",t)}))},a=e=>{let t,n,r={top:0,left:0};const i=e&&e.ownerDocument;if(i)return t=i.documentElement,e.getBoundingClientRect&&(r=e.getBoundingClientRect()),n=u(i),{top:r.top+(n.pageYOffset||t.scrollTop)-(t.clientTop||0),left:r.left+(n.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}};function d(e){return a(e).top+w(e)}const l=e=>{const t=getComputedStyle(e).getPropertyValue("position");return["relative","absolute"].includes(t)},c=e=>h(e,l,(e=>e.parentNode)),u=e=>{let t=null;return e&&(e===e.window?t=e:9===e.nodeType?t=e.defaultView||e.parentWindow:e.ownerDocument&&(t=e.ownerDocument.defaultView||e.ownerDocument.parentWindow)),t},p=()=>[document.body.scrollWidth,window.innerHeight+window.scrollMaxY,window.innerWidth,window.innerHeight],h=(e,t,n)=>{let r=e;for(;r;){if(t(r))return r;r=n(r)}},f=(e,t)=>h(e,t,(e=>{let{parentNode:t}=e;return t!==document&&t})),g=e=>e&&1===e.nodeType,m=e=>{if(!e)return;const t=document.createElement("style");t.type="text/css",t.styleSheet?t.styleSheet.cssText=e:"textContent"in t?t.textContent=e:t.innerText=e,(document.body||document.head).appendChild(t)},y=(e,t)=>e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,v=(e,t)=>h(e,(e=>e.matches(t)),(e=>e.parentNode)),b=e=>(e=>{const t=getComputedStyle(e),n=t.getPropertyValue("transform");if(n&&"none"!==n){const e=n.split("(")[1].split(")")[0].split(",");return parseFloat(e[3])}const r=t.getPropertyValue("zoom");return parseFloat(r||1)})(e)*w(e),_=e=>parseInt(getComputedStyle(e).getPropertyValue("width")),w=e=>parseInt(getComputedStyle(e).getPropertyValue("height")),T=e=>{const t=_(e);return _(document.body)/t};function I(e){let{content:t,insertMethod:n=(e=>{document.body.appendChild(e)}),width:r=0,height:i=0,log:o=(()=>{})}=e;const s=document.createElement("iframe");return s.border="0",s.style.width=`${r}px`,s.style.height=`${i}px`,s.style.border="none",o("inserting iframe"),n(s),o("writing iframe content",s),s.contentDocument.open(),s.contentDocument.domain=document.domain,s.contentDocument.write(t),s.contentDocument.close(),s}function S(e){window.getSelection().removeAllRanges();const t=document.createRange();t.selectNode(e),window.getSelection().addRange(t);const n=window.getSelection().toString().trim();return window.getSelection().removeAllRanges(),n}function k(e,t){t.parentNode.insertBefore(e,t.nextSibling)}},9280:(e,t,n)=>{"use strict";n.d(t,{H:()=>l});var r=n(7189),i=n(5114),o=n(661),s=n(8053);const a=(0,r.gb)((()=>window.RTA?.ids),300,3e3).then((e=>e.user||e.visit?{rta:{user:e.user,visit:e.visit}}:{})).catch((()=>({}))).then((e=>{const{PageCriteria:t={},pagemeta:r={}}=window;return{account:"mol",adsFreeUser:n.g.isAdFreeEntitled?.(),articleId:t.articleId,channel:t.channel,configVersion:(0,s.U2)("__generated.commit.sha"),bundle:"facade",cmVersion:(0,s.U2)("__generated.rulesJs.version"),cmCluster:(0,s.U2)("__generated.rulesJs.cluster"),device:t.device,embed:!0,event_type:"bidmax",fbapp:!!t.fbapp,geo:t.geo,isMobile:t.isMobile,isTablet:t.isTablet,office:(0,o.K)(),pageType:t.pageType,pageViewId:t.pageViewId,referrer:document.referrer,sponsored:t.sponsored,subchannel:t.subchannel,timeAtSend:0,type_version:2,url:location.href,version:i.SP.bidmax||r.adsBundleVersion||"absent",...e}}));let d={};function l(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=(arguments.length>1?arguments[1]:void 0)||!!(0,s.U2)("bidmax.dispatcher.useCurrentUrl");return a.then((r=>new Promise(((i,o)=>{const a=new XMLHttpRequest,l=t?`${n.g.location.origin}${n.g.location.pathname}`:(0,s.U2)("bidmax.dispatcher.url","//crta.dailymail.co.uk");a.open("POST",l,!0),a.addEventListener("abort",o),a.addEventListener("error",o),a.addEventListener("load",i),a.setRequestHeader("Content-Type","text/plain"),a.send(JSON.stringify({...r,...d,...e,timestamp:Date.now()}))})))).catch((e=>console.error(e)))}},6056:(e,t,n)=>{void 0===n.g.adverts&&(n.g.adverts={}),n.g.adverts.queue=n.g.adverts.queue||[],n.g.DM=n.g.DM||{}},2306:(e,t,n)=>{"use strict";n.d(t,{fo:()=>o,s3:()=>s,uM:()=>a});const r=(0,n(6042).x)("plugin-registry"),i={};function o(e,t){r("registering plugin:",e),i[e]=t}function s(e){return i[e]}function a(){return{...i}}},2312:(e,t,n)=>{"use strict";n.r(t),n.d(t,{DELAYED:()=>d,IMMEDIATE:()=>s,LAZY:()=>a,getEnabledRenderedSlots:()=>y,getEnabledSlots:()=>v,getLoadingSettings:()=>m,initEmergencyRules:()=>S,initSlots:()=>T,isAdEnabled:()=>f,resetSlots:()=>w,setSupportedSlots:()=>I});var r=n(5114),i=n(4091);(0,n(2306).fo)("adListLoader",{ccpa:{enabledIfDissent:!0},gdpr:{enabledIfDissent:!0},init:function(e){let{broker:t,getConfig:r,setConfig:i,log:s}=e;const a=_(r("slots.enabled",{}),b),d=Object.keys(a),f=new Set(d),m=u.filter((e=>!f.has(e))),y=d.reduce(((e,t)=>({...e,[t]:g(s,a[t])})),{}),v=r("slotDescription",{});l=d.filter((e=>!v[e]||!!v[e].id)),c=m,o=y,s("Enabled slots: ",l),s("Disabled slots: ",c),s("Loading settings: ",o),i("slots.enabled",y),t.emit("slots initialized",l),p(),t.on("system ready",(()=>{n.g.DM.later("DOM_READY",(()=>{document.write=document.writeln=e=>{try{throw new Error(e)}catch(e){s("Error: there was an attempt to document.write in a rendered page: ",e)}}}))})),t.on("set slots enabled",((e,t)=>{h(e,t)}))}});let o={};const s="immediate",a="lazy",d="delayed";let l=[],c=[];const u=["adx_page_skins","adx_tracking","banner_top","billboard","bvp_puff_26","bvp_puff_29","fff","fff_overlay","half_mpu_top","inread_player","inread_player_mw","inread_player_top","intro_ad","leader_bottom","leader_lower_middle","leader_middle","leader_top","leader_very_bottom","leader_wide","mpu_bottom","mpu_bottom_right","mpu_channel","mpu_comments_1","mpu_comments_2","mpu_home","mpu_middle","mpu_mobile","mpu_mobile_bottom","mpu_mobile_lower_middle","mpu_mobile_top","mpu_mobile_upper_middle","mpu_puff_10","mpu_puff_15","mpu_puff_20","mpu_puff_30","mpu_puff_45","mpu_puff_5","mpu_top","native_fff_accessorise","native_fff_overlay_accessorise","network_banner","para_top","puff_ad_3","puff_ad_6","puff_ad_9","sky_left_bottom","sky_left_top","sky_right_bottom","sky_right_top","sticky_banner","video_ad","video_carousel"],p=()=>{h(c,!1),h(l,!0)},h=function(e,t){e.forEach((e=>{const n=`molads_${e}_on`,r=`molads_${e}_off`;document.documentElement.classList.add(t?n:r),document.documentElement.classList.remove(t?r:n)}))},f=e=>{const t=e&&(e.dfpPos||e.pos);return!(window.disableAds&&!r.SP.ignoreDisableAds)&&(!t||!u.includes(t)||l.includes(t))},g=(e,t)=>{let{loadingOffset:n,loadingTrigger:r,loadingType:i=s}=t;const o={type:i||s,trigger:r,offset:isNaN(n)?0:Number(n)};return o.type===s||o.type===d||o.type===a&&o.trigger||(e("Unknown loading type or invalid loading trigger, falling back to immediate loading :",o),o.type=s),o},m=e=>o[e]||{type:s,trigger:void 0,offset:0},y=()=>l.slice(),v=y,b=(r.SP.setSlot&&r.SP.setSlot.split(",")||[]).reduce(((e,t)=>{const[n,r]=t.split(":").map((e=>e.trim()));return e[n]="on,true,1,enabled".includes(r||"true"),e}),{}),_=(e,t)=>!t||t&&(0,i.xb)(t)?e:Object.entries(t).reduce(((e,t)=>{let[n,r]=t;return r?e[n]={}:delete e[n],e}),e),w=()=>{l=[],c=[]},T=()=>{},I=e=>{},S=()=>{}},6986:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Z:()=>init});var uuid__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(4818);const showThankYouMessage=(getConfig,log)=>{try{log("Showing thank you message"),eval(getConfig("abe.thankYouMessage.js","DM.later('bundle', function(){window.top.DM.molFeAdblockerDialog.thanks()})"))}catch(e){console.error(e)}};function init(e){let{broker:t,getConfig:n,log:r}=e;const i=JSON.parse(localStorage.getItem("mol.abe.data")||"{}"),o=new Promise((e=>{t.once("ad block detection result",(o=>{let{adblocker:s}=o;s&&(void 0===i.v&&(i.i=(new Date).toISOString(),i.v=2,i.u=(0,uuid__WEBPACK_IMPORTED_MODULE_0__.Z)(),i.n=!0),i.v++,i.l=(new Date).toISOString(),localStorage.setItem("mol.abe.data",JSON.stringify(i))),i.i&&(r(s?"Ad blocker detected":"No ad blocker detected"),s||i.c&&!(i.ci.l),o.then((e=>s=e));const a=e=>({[i.n?"exabd2":"exabd"]:!!e});t.emit("set page level targeting",a(s.exabd)),t.emit("set page level targeting",o.then((e=>{let{exabd:t}=e;return a(t)}))),t.register("call for page analytics",(()=>s))}init.ccpa={enabledIfDissent:!0},init.gdpr={enabledIfDissent:!0}},9118:(e,t,n)=>{"use strict";n(7369),n(9280),n(9265),n(7781);var r=n(6042);n(6101),(0,r.x)("abe.detectAdBlocker")},7781:(e,t,n)=>{"use strict";(0,n(2306).fo)("scriptTagsMonitor",{init:function(e){let{broker:t,getConfig:n,log:i}=e;n("abe.detection.enabled",!1)?i("abd enabled, bailing"):n("__generated.modifiers.applied",[]).some((e=>e.startsWith("campaigns.rules-linteItem")))?i("takeover applied, bailing"):(i("loading"),function(e){const t=XMLHttpRequest.prototype.open;XMLHttpRequest.prototype.open=function(){this.addEventListener("error",(()=>{r++})),t.apply(this,arguments)}}(),t.register("call for page-unload",(()=>(i("reporting:",{xhrErrors:r}),{stm:{xe:r}}))))},isAdsFreeSupported:!1,ccpa:{enabledIfDissent:!0},gdpr:{enabledIfDissent:!0}});let r=0},6721:(e,t,n)=>{"use strict";n.r(t),n.d(t,{appendStyles:()=>N,default:()=>V,enableSlot:()=>O,getAdContainer:()=>j,getElementById:()=>M,getElementContainerById:()=>x,getElementOrIframeById:()=>k,isEmpty:()=>A,log:()=>R,nativeLoaded:()=>D,openAd:()=>B});var r=n(6585),i=n(2312),o=n(7491);const s=n(5824),a=n(4298),d=n(6721);let l;o.ZP.broker("NativeRenderer").on("system ready",(()=>{const e=window.location.href.match(/[&?]enable_native=([^&]+)/),t=e&&e[1];if(t){const e=i.initSlots;i.initSlots=function(n){n[t]={enabled:!0,state:"on"},e.apply(i,arguments)}}l=t,s((function(e){if(!e.isEmpty){const t=e.slot,n=t&&t.molAd;"native_"===n.pos.slice(0,7)&&"_dfp"===n.pos.slice(-4)&&p(n)}}))}));const c="\f\t",u=c.length;function p(e){const t=document.getElementById(e.parentId),n=d.getAdContainer(t);let r=!1;function i(){if(!r){r=!0;try{!function(e,t,n){const r=document.createElement("div");r.innerHTML=n;const i=r.childNodes;if("none"!==t.style.display){t.style.display="none";let n,r=t;const o=t.parentNode,s=e.pos.replace(/_dfp$/,"");for(let e=i.length;e--;)n=i[e],1===n.nodeType&&"SCRIPT"!==n.nodeName&&(o.insertBefore(n,t),r=n);const a=r,d=r;switch(e.pos){case"native_fff_overlay_accessorise":o.style.display="none";case"native_fff_accessorise":document.body.classList.add("fff-has-accessorise")}d&&a.hasAttribute("data-track-module")&&DM&&DM.externalLinkTracker&&(d.setAttribute("data-track-type","cl"),DM.externalLinkTracker(a.id,"cl")),l&&window.opener&&window.opener!==window&&window.opener.postMessage&&(window.addEventListener("message",h.bind(null,r,s)),f(window.opener,"isLoaded",!0,s))}}(e,t,n.body.innerHTML)}catch(e){console.error("Error moving native article: ",e)}}}n.body&&((n.defaultView||n.parentWindow).addEventListener("load",i),setTimeout(i,2e3))}function h(e,t,n){if(n.data.slice(0,u)===c){const r="data-native-ad-field";let i;try{i=a.parse(n.data.slice(u))}catch(e){console.error("Invalid message",e)}if(i&&i.type){const o=[].slice.call(e.querySelectorAll("["+r+"]"));let s;switch(i.type){case"getValues":s=o.map((function(e){return{name:e.getAttribute(r),value:e.textContent}}));break;case"setValues":o.forEach((function(e){const t=e.getAttribute(r);t in i.values&&(e.textContent=i.values[t])}))}s&&f(n.source,i.type,s,t,n.origin)}}}function f(e,t,n,r,i){const o={type:"response",query:t,position:r,value:n};e.postMessage(c+a.stringify(o),i||"*")}s((function(e){if(!e.isEmpty){const t=e.slot,n=t&&t.molAd;"native_"===n.pos.slice(0,7)&&"_dfp"===n.pos.slice(-4)&&p(n)}}));var g=n(4780),m=n(6042);function y(e){return this.subscriptions[e]||(this.subscriptions[e]=[]),this.subscriptions[e]}class v{constructor(){this.subscriptions={}}clone(){return{emit:this.emit.bind(this),off:this.off.bind(this),on:this.on.bind(this),once:this.once.bind(this)}}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;re(...n)))}off(e,t){const n=y.call(this,e);if(t){const e=n.indexOf(t);-1!==e&&n.splice(e,1)}else n.length=0}on(e,t){y.call(this,e).push(t)}once(e,t){var n=this;const r=function(){n.off(e,r),t(...arguments)};this.on(e,r)}}var b=n(1074),_=n(9436),w=n(9512);const T=(e,t)=>{let n;try{n=e.contentDocument||e.contentWindow.document}catch(e){}return n||t},I=e=>t=>{const n=t&&T(t);return n&&n.getElementById(e)},S=e=>{const t=(e||document).getElementsByTagName("iframe");return Array.prototype.filter.call(t,C)},k=e=>{const t=I(e);return E(S(),(e=>t(e)&&e))},C=e=>e.id&&"google_ads_iframe_"===e.id.slice(0,18),E=(e,t)=>{for(let n=0,r=e.length;n{const t=document.getElementById(e),n=["a","iframe","object","img","video"];let r=!0;if(t)for(let e=n.length;r&&e--;)r=!t.getElementsByTagName(n[e]).length;return r},x=e=>{const t=k(e),n=/\badHolder\b/;if(!t)return;let r=t;for(;r&&!n.test(r.className||"");)r=r.parentNode;return r||(r=t),r},P=(e,t)=>{R("Disabling",t);const n=document.documentElement,r="molads_"+t;if("billboard"===t){q("billboard",R.extend("watermark")),e.emit("unstick position","billboard");const{DM:t}=window;t&&t.Rotator&&t.Rotator.initMiniCarousel()}n.classList.add(`collapse-${t}`),n.classList.remove(r+"_on"),n.classList.add(r+"_off")},O=e=>{const t="molads_"+e,n=document.documentElement;n.classList.remove(t+"_off"),n.classList.add(t+"_on")},D=(e,t,n)=>{const i=E(S(),(t=>t.contentWindow.name===e.name));if(i){const e=(0,g.closest)(i,(e=>e.hasAttribute(r.AD_ATTRIBUTE)));if(e){const t=r.parse(e.getAttribute(r.AD_ATTRIBUTE)||"{}");t&&p(t)}}},R=(0,m.x)("ad-integrator"),N=e=>{const t=e.match(/]*\sclass="?integrate"?[^>]*>[^\f]*?<\/style>/gi);for(let e=0,n=t?t.length:0;e")+1,-8))},M=e=>{let t=null;const n=S(),r=I(e);for(let e=0;!t&&e{R(`collapseAd("#${t}")`);const n=(0,b.getById)(t);if(n)return void P(e,n.pos);R.warn("collapseAd - cannot find description of slot with id:",t);const i=x(t);if(i){R("collapsing",t);const n=r.parse(i.getAttribute(r.AD_ATTRIBUTE)||"{}");n&&n.pos?P(e,n.pos):i.style.display="none"}else R.warn("collapseAd: id",t,"is unknown")};function U(e,t){for(const n of(0,_.e$)((0,b.allDescriptions)(),(0,w.pj)(t)))R(`collapseAd({ pos: "${n}" })`),P(e,n)}const j=e=>{const t=S(e)[0];return t?T(t,document):e},B=e=>{const t=x(e),n=r.parse(t.getAttribute(r.AD_ATTRIBUTE)||"{}");n&&n.pos?O(n.pos):(t.style.height="auto",t.style.display="block")};function q(e,t){const n=(0,b.get)(e);if(!n)return void t.warn("Cannot find description");const r=document.getElementById(n.id);if(!r)return void t.warn("Cannot find element");const i=(0,g.closest)(r,(e=>e.classList.contains("watermark")));i?(t("removing watermark",i),i.classList.remove("watermark")):t.warn("Couldn't find an watermarked element")}const F=e=>{let{broker:t}=e;n.g.addEventListener("message",(e=>{let{data:n}=e;if("object"==typeof n&&"string"==typeof n.func)switch(R("received message",n),n.func){case"molads.addSkinToPage":return t.emit("add skin to page",n);case"molads.addSkinLabel":return t.emit("add skin label to page");case"molads.disableSticky":return t.emit("disable sticky position",n.pos);case"molads.disableForceView":return t.emit("disable force view when viewed",n.pos)}}));const r=new v;let i=[];t.on("external subscription",(function(){return r.on(...arguments)})),n.g.adverts.getRendered=()=>i,n.g.AdIntegrator=n.g.AdIntegrator||{},n.g.adverts.collapseAd=n.g.AdIntegrator.collapseAd=L.bind(null,t),n.g.adverts.collapseAdByPos=n.g.AdIntegrator.collapseAdByPos=U.bind(null,t),n.g.AdIntegrator.disableSlot=P.bind(null,t),t.on("ad rendered",((e,t)=>{t.isEmpty||(i.push(t.slot.molAd),r.emit("rendered",t),r.emit("rendered."+e,t))})),t.on("destroy slot",(e=>{i=i.filter((t=>t.pos!==e))})),t.on("remove watermark",(e=>{q(e,R.extend("remove watermark").extend(e))})),t.on("collapseAdByPos",(e=>U(t,e)))},V=F;F.isAdsFreeSupported=!0,F.ccpa={enabledIfDissent:!0},F.gdpr={enabledIfDissent:!0},F.disableIfNoAdsServable=!0},9166:(e,t,n)=>{"use strict";n.d(t,{m:()=>i});const r=(0,n(6042).x)("mvt"),i=(e,t,n)=>{const i=(e=>e.map((e=>(r(`From scenario "${e.name}", loading config:`,e.config||{}),e.config||[]))).reduce(((e,t)=>e.concat(t)),[]).filter((e=>e)).reduce(((e,t)=>(Object.entries(t).forEach((t=>{let[n,r]=t;e[n]=r})),e)),{}))(n);Object.entries(i).forEach((e=>{let[n,r]=e;t(n,r)}))}},854:(e,t,n)=>{"use strict";n.d(t,{s:()=>l});const r="page",i="mol.ads.mvt.tests",o=e=>{let[t,n]=e;return{...n,name:t}},s=function(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").match(/^(-?[0-9.]+)\s*(%?)$/);if(e){let t=parseFloat(e[1]);return"%"===e[2]&&(t/=100),t}return 0},a=function(e,t){let n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o=`${i}.${t.name}.selected`,a=r[o],l=t.scenarios.find((e=>e.name===a)),c=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=`${i}.${t.name}.probabilityDraw`,o=t.size||t.scenarios.reduce(((e,t)=>{let{size:n}=t;return e+s(String(n))}),0),a=d(Math.min(Math.max(0,s(String(o))),1));let l=Number(n[r]);return isNaN(l)&&(l=Math.random(),n[r]=l.toString()),l{let{size:t}=e;return t}));if(t.scenarios.length===i.length){const e=Math.random();let r=0;n=t.scenarios.find((t=>{let{size:n}=t;return r+=n,d(r)>e}))}else i.length&&e.warn(`Test "${t.name}" has some scenarios with size and some without, falling back to global scope size`),n=t.scenarios[Math.floor(Math.random()*t.scenarios.length)];r[o]=n.name}return n}};function d(e){return Math.round(1e4*e)/1e4}function l(e,t){if(!n.g.adsMVTResults){const i={},s={},d=Object.entries(t).map(o).filter((e=>e.scenarios)).map((e=>({...e,scenarios:Object.entries(e.scenarios).map(o)}))),l=d.reduce(((t,n)=>{const o=n.scope||r,d="page"===o?i:"session"===o?sessionStorage:localStorage,l=a(e,n,d);return l?(s[n.name]=l.name,[...t,l]):t}),[]);n.g.adsMVTResults={pageStorage:i,selectedScenarios:s,scenarios:l,tests:d}}return n.g.adsMVTResults}},6450:(e,t,n)=>{"use strict";function r(e){let{pageCriteria:t,win:n}=e;const{isPaywalled:r,hasBeenPaywalled:i}=t||{},o=n.getIsPaywallEligible?.();return void 0===t?"invalid":r||i?!r&&i?"hasBeenPaywalled":r&&!o?"isPaywalledForOthers":r&&o?"isPaywalled":"invalid":"none"}n.d(t,{q:()=>r})},3138:(e,t,n)=>{"use strict";var r=n(8053),i=n(6042);(0,n(2306).fo)("reconfigureSlotsEnabled",{ccpa:{enabledIfDissent:!0},disableIfNoAdsServable:!0,gdpr:{enabledIfDissent:!0},init:function(){let{getConfig:e=r.U2,setConfig:t=r.t8,log:n=(0,i.x)("reconfigureSlotsEnabled")}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const o=e("reconfigureSlotsEnabled",{remove:[]}).remove;if(n("slots to remove",o),o.length){const r=e("slots.enabled",{});for(const e of o)delete r[e];n("slots.enabled",r),t("slots.enabled",r)}}})},1074:(e,t,n)=>{"use strict";n.r(t),n.d(t,{allDescriptions:()=>u,get:()=>l,getById:()=>c});var r=n(5114),i=n(3941),o=n(4091);(0,n(2306).fo)("slots.descriptions",{ccpa:{enabledIfDissent:!0},gdpr:{enabledIfDissent:!0},isAdsFreeSupported:!0,init:function(e){let{getConfig:t,setConfig:n,log:r}=e;const o=Object.entries(t("slotDescription",{})).reduce(((e,n)=>{let[o,s]=n;const a=t(`slotDescription.${o}.earlyBidding`,!0);return s.conditionalSizes&&(r("conditionalSizes found",o,s),function(e){e.conditionalSizes?.wideSkies&&e.conditionalSizes?.sizes&&d&&(e.size=e.conditionalSizes.sizes)}(s)),{...e,[o]:["openweb","googleAdSense","amazon","widgets"].some((e=>s?.slotTypes?.includes(e)))?{id:o,pos:o,...s}:{type:(l=s.size,l.map((e=>{let[t,n]=e;return`${t}x${n}`})).join(",")),adUnit:(0,i.Z)(s.unit||o),pos:o,parentId:s.id,slots:[],slotTypes:["gpt"],earlyBidding:a,...s}};var l}),{});r("descriptionsFromSlotDescription",o),s={...s,...o},n("slotDescriptions.initial",s)},run:function(e){let{broker:t,getConfig:n}=e;s=n("slotDescriptions.initial"),t.on("update description",((e,n)=>{s[e]=n,t.emit("slot descriptions updated",s)})),t.emit("slot descriptions updated",s)}});let s={};const{width:a}=(0,r.ap)(),d=a>1580,l=e=>{const t=s[e];return t&&!t.pos&&(t.pos=e),t};function c(e){return(0,o.sE)(s,(t=>t.id===e))}const u=()=>s},5059:(e,t,n)=>{"use strict";n.d(t,{LK:()=>T,hd:()=>w,oP:()=>b});const r="mol.ads.cmp.tcf.cache",i="__tcfapiLocator",o=["getTCData","hasUserConsentedToAll","hasUserDissentedToAll","getPurposesByVendorMap","getConsentDegree","getValidTCData","consentedVendors","getNonRegisteredVendorsConsents","getNonRegisteredVendors","getStoredRepromptVersion"],s=location.search.match(/adsDebug=[^&]*tcfv2/)?function(){return console.info(...arguments)}:()=>{},a=[],d=window;let l=!1;function c(){const e=d.document;if(!d.frames[i])if("interactive"===e.readyState||"complete"===e.readyState){const t=e.createElement("iframe");t.style.display="none",t.name=i,e.body.appendChild(t),l&&(e.removeEventListener("readystatechange",c),l=!1)}else"function"==typeof e.addEventListener?(e.addEventListener("readystatechange",c),l=!0):setTimeout(c,5)}s("creating");const u=localStorage.getItem(r);let p={};u&&(p=JSON.parse(u));let h=0;const f={},g=(e,t)=>{const n=p.getTCData,r=h++;s("adding provisional listener:",r),f[r]={},a.push(["addEventListener",2,(e,n)=>{const i=e.listenerId;f[r]?(f[r].realListenerId=i,f[r].listenerId=i,t({...e,listenerId:r},n)):s("ignoring event coz already removed listener:",{listenerId:r,realListenerId:i})}]),n&&t({...n,listenerId:r,eventStatus:"tcloaded",cached:!0},!0)},m=(e,t)=>{const n=e[3];s("removing provisional listener:",n);const r=f[n];if(!r)return s("unknown listener:",n),void t(!1);const i=r.realListenerId;delete f[n],i&&a.push(["removeEventListener",2,e=>t(e),i]),t(!0)};function y(){let e;for(var t=arguments.length,n=new Array(t),r=0;r3&&2===parseInt(n[1],10)&&"boolean"==typeof n[3]&&(e=n[3],"function"==typeof i&&i("set",!0));break;case"ping":"function"==typeof i&&i({gdprApplies:e,cmpLoaded:!1,cmpStatus:"stub"});break;default:if(o.length){if("addEventListener"===d)return g(n,i);if("removeEventListener"===d)return m(n,i)}if(~o.indexOf(d)){n[3]&&s("cache method called with argument:",n[3]);const e=p[d];if(void 0!==e)return s("returning cached value for",d),void i(e,!0)}s("queueing",d),a.push(n)}}function v(e){const t=e&&e.source;if(!t||"function"!=typeof t.postMessage)return void(t&&"function"!=typeof t.postMessage&&s("Message event.source.postMessage is not a function, bailing"));const n="string"==typeof e.data;let r=e.data;if(n)try{r=JSON.parse(e.data)}catch(e){return}if("object"==typeof r&&r.__tcfapiCall){const e=r.__tcfapiCall;window.__tcfapi(e.command,e.version,((r,i)=>{const o={__tcfapiReturn:{returnValue:r,success:i,callId:e.callId}};t.postMessage(n?JSON.stringify(o):o,"*")}),e.parameter)}}function b(){n.g.adverts.tcfv2Installed||(n.g.adverts.tcfv2Installed=!0,c(),d.__tcfapi=y,d.addEventListener("message",v,!1),n.g.adverts.updateCache=_)}async function _(e,t){if(e.tcString.length){const e=o.map((e=>new Promise((i=>{n.g.__tcfapi(e,2,((n,o)=>{if(t("caching",e),o){const t=JSON.parse(localStorage.getItem(r))||{};t[e]=n,localStorage.setItem(r,JSON.stringify(t))}else t("error caching method:",e);i()}))}))));await Promise.all(e)}}const w=()=>!!localStorage.getItem(r);function T(){localStorage.removeItem(r)}},614:(e,t,n)=>{"use strict";n.d(t,{b:()=>s});var r=n(2632),i=n(5114),o=n(8723);function s(e){const t=localStorage.getItem("mol.ads.watchdog");let n;try{n=t&&JSON.parse(t)}catch(t){e("error parsing last state",t)}return{ps:n,nt:(0,i.Y0)()?.type||"unknown",st:o.B,u:(0,r.vp)(window.location.href)}}},8723:(e,t,n)=>{"use strict";n.d(t,{B:()=>r});const r=Date.now()},1306:(e,t,n)=>{var r=n(4227),i=[];e.exports=function(){var e=new Worker(URL.createObjectURL(new Blob(['(()=>{var e={};let t;onmessage=e=>{let{data:s}=e;if("setPattern"===s.cmd)t=new RegExp(s.pattern);else if("testMatch"===s.cmd){const{id:e,href:a}=s,n=t.test(a);postMessage({id:e,match:n})}},addEventListener("message",(function(t){var s,a=t.data,n=a.type,r=a.method,o=a.id,c=a.params;"RPC"===n&&r&&((s=e[r])?Promise.resolve().then((function(){return s.apply(e,c)})):Promise.reject("No such method")).then((function(e){postMessage({type:"RPC",id:o,result:e})})).catch((function(e){var t={message:e};e.stack&&(t.message=e.message,t.stack=e.stack,t.name=e.name),postMessage({type:"RPC",id:o,error:t})}))})),postMessage({type:"RPC",method:"ready"})})();'])),{name:"[fullhash].worker.js"});return URL.revokeObjectURL(URL.createObjectURL(new Blob(['(()=>{var e={};let t;onmessage=e=>{let{data:s}=e;if("setPattern"===s.cmd)t=new RegExp(s.pattern);else if("testMatch"===s.cmd){const{id:e,href:a}=s,n=t.test(a);postMessage({id:e,match:n})}},addEventListener("message",(function(t){var s,a=t.data,n=a.type,r=a.method,o=a.id,c=a.params;"RPC"===n&&r&&((s=e[r])?Promise.resolve().then((function(){return s.apply(e,c)})):Promise.reject("No such method")).then((function(e){postMessage({type:"RPC",id:o,result:e})})).catch((function(e){var t={message:e};e.stack&&(t.message=e.message,t.stack=e.stack,t.name=e.name),postMessage({type:"RPC",id:o,error:t})}))})),postMessage({type:"RPC",method:"ready"})})();']))),r(e,i),e}},1073:(e,t,n)=>{"use strict";const r=n(6666),i=n(4692),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=d,t.SlowBuffer=function(e){return+e!=e&&(e=0),d.alloc(+e)},t.INSPECT_MAX_BYTES=50;const s=2147483647;function a(e){if(e>s)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,d.prototype),t}function d(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return u(e)}return l(e,t,n)}function l(e,t,n){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!d.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|g(e,t);let r=a(n);const i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(X(e,Uint8Array)){const t=new Uint8Array(e);return h(t.buffer,t.byteOffset,t.byteLength)}return p(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(X(e,ArrayBuffer)||e&&X(e.buffer,ArrayBuffer))return h(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(X(e,SharedArrayBuffer)||e&&X(e.buffer,SharedArrayBuffer)))return h(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return d.from(r,t,n);const i=function(e){if(d.isBuffer(e)){const t=0|f(e.length),n=a(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||K(e.length)?a(0):p(e):"Buffer"===e.type&&Array.isArray(e.data)?p(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return d.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function u(e){return c(e),a(e<0?0:0|f(e))}function p(e){const t=e.length<0?0:0|f(e.length),n=a(t);for(let r=0;r=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|e}function g(e,t){if(d.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||X(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return W(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Z(e).length;default:if(i)return r?-1:W(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,n){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return P(this,t,n);case"utf8":case"utf-8":return C(this,t,n);case"ascii":return A(this,t,n);case"latin1":case"binary":return x(this,t,n);case"base64":return k(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function y(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function v(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),K(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=d.from(t,r)),d.isBuffer(t))return 0===t.length?-1:b(e,t,n,r,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,r,i){let o,s=1,a=e.length,d=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s=2,a/=2,d/=2,n/=2}function l(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){let r=-1;for(o=n;oa&&(n=a-d),o=n;o>=0;o--){let n=!0;for(let r=0;ri&&(r=i):r=i;const o=t.length;let s;for(r>o/2&&(r=o/2),s=0;s>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function k(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function C(e,t,n){n=Math.min(e.length,n);const r=[];let i=t;for(;i239?4:t>223?3:t>191?2:1;if(i+s<=n){let n,r,a,d;switch(s){case 1:t<128&&(o=t);break;case 2:n=e[i+1],128==(192&n)&&(d=(31&t)<<6|63&n,d>127&&(o=d));break;case 3:n=e[i+1],r=e[i+2],128==(192&n)&&128==(192&r)&&(d=(15&t)<<12|(63&n)<<6|63&r,d>2047&&(d<55296||d>57343)&&(o=d));break;case 4:n=e[i+1],r=e[i+2],a=e[i+3],128==(192&n)&&128==(192&r)&&128==(192&a)&&(d=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&a,d>65535&&d<1114112&&(o=d))}}null===o?(o=65533,s=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=s}return function(e){const t=e.length;if(t<=E)return String.fromCharCode.apply(String,e);let n="",r=0;for(;rr.length?(d.isBuffer(t)||(t=d.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else{if(!d.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,i)}i+=t.length}return r},d.byteLength=g,d.prototype._isBuffer=!0,d.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tn&&(e+=" ... "),""},o&&(d.prototype[o]=d.prototype.inspect),d.prototype.compare=function(e,t,n,r,i){if(X(e,Uint8Array)&&(e=d.from(e,e.offset,e.byteLength)),!d.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;let o=(i>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0);const a=Math.min(o,s),l=this.slice(r,i),c=e.slice(t,n);for(let e=0;e>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let o=!1;for(;;)switch(r){case"hex":return _(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":case"latin1":case"binary":return T(this,e,t,n);case"base64":return I(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const E=4096;function A(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;ir)&&(n=r);let i="";for(let r=t;rn)throw new RangeError("Trying to access beyond buffer length")}function R(e,t,n,r,i,o){if(!d.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function N(e,t,n,r,i){V(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=s,s>>=8,e[n++]=s,s>>=8,e[n++]=s,s>>=8,e[n++]=s,n}function M(e,t,n,r,i){V(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n+7]=o,o>>=8,e[n+6]=o,o>>=8,e[n+5]=o,o>>=8,e[n+4]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=s,s>>=8,e[n+2]=s,s>>=8,e[n+1]=s,s>>=8,e[n]=s,n+8}function L(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function U(e,t,n,r,o){return t=+t,n>>>=0,o||L(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function j(e,t,n,r,o){return t=+t,n>>>=0,o||L(e,0,n,8),i.write(e,t,n,r,52,8),n+8}d.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t>>=0,t>>>=0,n||D(e,t,this.length);let r=this[e],i=1,o=0;for(;++o>>=0,t>>>=0,n||D(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},d.prototype.readUint8=d.prototype.readUInt8=function(e,t){return e>>>=0,t||D(e,1,this.length),this[e]},d.prototype.readUint16LE=d.prototype.readUInt16LE=function(e,t){return e>>>=0,t||D(e,2,this.length),this[e]|this[e+1]<<8},d.prototype.readUint16BE=d.prototype.readUInt16BE=function(e,t){return e>>>=0,t||D(e,2,this.length),this[e]<<8|this[e+1]},d.prototype.readUint32LE=d.prototype.readUInt32LE=function(e,t){return e>>>=0,t||D(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},d.prototype.readUint32BE=d.prototype.readUInt32BE=function(e,t){return e>>>=0,t||D(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},d.prototype.readBigUInt64LE=Y((function(e){z(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||$(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(i)<>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||$(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<>>=0,t>>>=0,n||D(e,t,this.length);let r=this[e],i=1,o=0;for(;++o=i&&(r-=Math.pow(2,8*t)),r},d.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||D(e,t,this.length);let r=t,i=1,o=this[e+--r];for(;r>0&&(i*=256);)o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},d.prototype.readInt8=function(e,t){return e>>>=0,t||D(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},d.prototype.readInt16LE=function(e,t){e>>>=0,t||D(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},d.prototype.readInt16BE=function(e,t){e>>>=0,t||D(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},d.prototype.readInt32LE=function(e,t){return e>>>=0,t||D(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},d.prototype.readInt32BE=function(e,t){return e>>>=0,t||D(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},d.prototype.readBigInt64LE=Y((function(e){z(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||$(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||$(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<>>=0,t||D(e,4,this.length),i.read(this,e,!0,23,4)},d.prototype.readFloatBE=function(e,t){return e>>>=0,t||D(e,4,this.length),i.read(this,e,!1,23,4)},d.prototype.readDoubleLE=function(e,t){return e>>>=0,t||D(e,8,this.length),i.read(this,e,!0,52,8)},d.prototype.readDoubleBE=function(e,t){return e>>>=0,t||D(e,8,this.length),i.read(this,e,!1,52,8)},d.prototype.writeUintLE=d.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||R(this,e,t,n,Math.pow(2,8*n)-1,0);let i=1,o=0;for(this[t]=255&e;++o>>=0,n>>>=0,r||R(this,e,t,n,Math.pow(2,8*n)-1,0);let i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},d.prototype.writeUint8=d.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,1,255,0),this[t]=255&e,t+1},d.prototype.writeUint16LE=d.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},d.prototype.writeUint16BE=d.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},d.prototype.writeUint32LE=d.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},d.prototype.writeUint32BE=d.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},d.prototype.writeBigUInt64LE=Y((function(e){return N(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),d.prototype.writeBigUInt64BE=Y((function(e){return M(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),d.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);R(this,e,t,n,r-1,-r)}let i=0,o=1,s=0;for(this[t]=255&e;++i>0)-s&255;return t+n},d.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);R(this,e,t,n,r-1,-r)}let i=n-1,o=1,s=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/o>>0)-s&255;return t+n},d.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},d.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},d.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},d.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},d.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},d.prototype.writeBigInt64LE=Y((function(e){return N(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),d.prototype.writeBigInt64BE=Y((function(e){return M(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),d.prototype.writeFloatLE=function(e,t,n){return U(this,e,t,!0,n)},d.prototype.writeFloatBE=function(e,t,n){return U(this,e,t,!1,n)},d.prototype.writeDoubleLE=function(e,t,n){return j(this,e,t,!0,n)},d.prototype.writeDoubleBE=function(e,t,n){return j(this,e,t,!1,n)},d.prototype.copy=function(e,t,n,r){if(!d.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function V(e,t,n,r,i,o){if(e>n||e3?0===t||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(o+1)}${r}`:`>= -(2${r} ** ${8*(o+1)-1}${r}) and < 2 ** ${8*(o+1)-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new B.ERR_OUT_OF_RANGE("value",i,e)}!function(e,t,n){z(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||$(t,e.length-(n+1))}(r,i,o)}function z(e,t){if("number"!=typeof e)throw new B.ERR_INVALID_ARG_TYPE(t,"number",e)}function $(e,t,n){if(Math.floor(e)!==e)throw z(e,n),new B.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new B.ERR_BUFFER_OUT_OF_BOUNDS;throw new B.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${t}`,e)}q("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),q("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),q("ERR_OUT_OF_RANGE",(function(e,t,n){let r=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=F(String(n)):"bigint"==typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=F(i)),i+="n"),r+=` It must be ${t}. Received ${i}`,r}),RangeError);const H=/[^+/0-9A-Za-z-_]/g;function W(e,t){let n;t=t||1/0;const r=e.length;let i=null;const o=[];for(let s=0;s55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function Z(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(H,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function G(e,t,n,r){let i;for(i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function X(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function K(e){return e!=e}const J=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t}();function Y(e){return"undefined"==typeof BigInt?Q:e}function Q(){throw new Error("BigInt not supported")}},858:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(6628),_src_prebidGlobal_js__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(9241),_src_utils_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(8019),_src_utils_js__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(6605),_src_adloader_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(112),_src_adapters_bidderFactory_js__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(2563),_src_config_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(509),_src_mediaTypes_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(6008),criteo_direct_rsa_validate_build_verify_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2783),_src_storageManager_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3385),_src_refererDetection_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(8964),_src_utils_gpdr_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(5862),_src_Renderer_js__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(4921),_src_video_js__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(2458),_src_ajax_js__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(8416);function _createForOfIteratorHelper(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:function(e){return e};return null==e?[]:Array.isArray(e[0])?e.map((function(e){return t(e)})):[t(e)]}function parseSize(e){return e[0]+"x"+e[1]}function hasVideoMediaType(e){return void 0!==(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_8__.Z)(e,"mediaTypes.video")}function hasBannerMediaType(e){return void 0!==(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_8__.Z)(e,"mediaTypes.banner")}function hasNativeMediaType(e){return void 0!==(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_8__.Z)(e,"mediaTypes.native")}function hasValidVideoMediaType(e){var t=!0;if(["mimes","playerSize","maxduration","protocols","api","skip","placement","playbackmethod"].forEach((function(n){void 0===(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_8__.Z)(e,"mediaTypes.video."+n)&&void 0===(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_8__.Z)(e,"params.video."+n)&&(t=!1,(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_7__.H)("Criteo Bid Adapter: mediaTypes.video."+n+" is required"))})),t){var n=e.mediaTypes.video.placement||e.params.video.placement;if("instream"==e.mediaTypes.video.context&&1===n)return!0;if("outstream"==e.mediaTypes.video.context&&1!==n)return!0}return!1}function createPrebidNativeAd(e){return{sendTargetingKeys:!1,title:e.products[0].title,body:e.products[0].description,sponsoredBy:e.advertiser.description,icon:e.advertiser.logo,image:e.products[0].image,clickUrl:e.products[0].click_url,privacyLink:e.privacy.optout_click_url,privacyIcon:e.privacy.optout_image_url,cta:e.products[0].call_to_action,price:e.products[0].price,impressionTrackers:e.impression_pixels.map((function(e){return e.url}))}}function createNativeAd(e,t,n){var r="criteo_prebid_native_slots";return window[r]=window[r]||{},window[r][e]={callback:n,payload:t},'\n