/*! For license information please see mol-adverts-delayed.js.LICENSE.txt */ (()=>{var __webpack_modules__={5901:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>l});var r=n(692);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)}},a=()=>{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"}},s=()=>(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{a(),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:s,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:()=>s()>1,onTouchEnd:e=>(setTimeout(e,400),e()),parseUserAgent:a,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)}}}},6817:(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:()=>T,stringify:()=>h});var r=n(6702),i=n(358),o=n(4483),a=n(3455);const s=n(4597),d="data-adverts-ad",l="data-adverts-tags",c=n(1614),u=n(4520),p=(0,a.h)("AdsRenderer"),h=s.stringify,f=s.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,s.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,a;if(e)return o=s.parse(e),r=(0,i.get)(o.pos)||o,a=n?s.parse(n):null,{ad:r,tags:a,container:t}}return null}async function _(e){}function w(e){for(let t=0,n=c.length;tw(t))),S.on("refresh ads",(e=>{let{ids:t,plugins:n}=e;return v(t,n)}))},4520:(e,t,n)=>{const r=n(1614);e.exports=function(e){"function"==typeof e&&r.push(e)}},1614:e=>{e.exports=[]},4483:(e,t,n)=>{"use strict";n.r(t),n.d(t,{name:()=>b,refreshAdvert:()=>m,refreshAdvertsWithNewTags:()=>y,requestAd:()=>g,reset:()=>v});var r=n(6702),i=n(4011),o=n(2169),a=n(3455),s=n(8149);const d=(e,t)=>new Promise(((n,r)=>{const o=(0,i.Jt)("auction.maxTime",2e3),a=[];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=>{a.push(e)})).on("end",(()=>{e.emit("auction event",t.pos,"end"),n(a)})).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,s.x5)(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.Ay.broker("DfpServer"),p=(0,a.h)("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.Jt)("auction.maxTime",2e3),[r]=await Promise.all([c(u,p,e),(0,o.s5)(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"},8763:(e,t,n)=>{"use strict";var r=n(6702),i=n(4190),o=n(358),a=n(4789),s=n(6473),d=n(3455);function l(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:c}=n(4400),u=r.Ay.broker("DfpAsyncHandler"),p=(0,d.h)("dfpAsyncHandler"),h={},f={},g=["sky_right_top","sky_left_top","mpu_top","billboard","sticky_banner"],m=new Set(["mpu_puff_others","puff_ad_others","mpu_mobile_others","mpu_factbox","mpu_mobile_factbox"]);function y(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 a;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!g.includes(e)&&!t}(e.pos)),e.targeting&&l(e.targeting,((e,t)=>{r.slot.setTargeting(t,e)})),e.custom&&e.custom.length&&(a=r.slot,e.custom,l((function(e){Object.keys(e).forEach((function(t){a.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||""),p(`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}u.on("api message","metadata",(e=>{p("metadata api call:",e);const{ico:t,...n}=e;t&&(n.referrer=t),u.emit("set page level targeting",n)})),u.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)}))})),u.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})),v((function(){!function(e){const t=(0,o.get)(e.pos)||e;t&&t.slots&&t.slots.length?e.slots=t.slots:_(e)}(e),y(e,t)})),v((function(){e.slots.forEach((t=>{u.emit("request slot",{pos:e.pos,slotType:t.type,type:e.type,parentId:t.parentId,adUnit:e.adUnit,slot:t.slot})}))}))}(e,t)}));const v=e=>googletag.cmd.push(e);u.on("set slot state",((e,t)=>{const n=f[e];n?n.molAd.state=t:h[e]=t})),u.on("request slot",(e=>{"gptSlot"===e.slotType&&(f[e.pos]=e.slot),e.slot.molAd={pos:e.pos,type:e.type,slotType:e.slotType,parentId:e.parentId,adUnit:e.adUnit,state:h[e.pos]},delete h[e.pos],u.invoke("googletag.display",e.parentId,e.slot),u.emit("ad requested",e.pos)})),u.on("slot ready to refresh",(function(e){e.forEach((e=>y(e.ad,e.tags))),T(e.map((e=>e.ad)))})),u.on("destroy slot",(e=>{const t=(0,o.get)(e);t?.slots?.length&&(googletag.destroySlots(t.slots.map((e=>e.slot))),delete t.slots)}));const b={gpt:function(e){const t=(0,a.CA)(e),n=e.sizeMapping,r=e.id,i=e.adUnit;p("define slot for",e.pos,{sizes:t,sizeMapping:n,adUnit:i,id:r});const o=googletag.defineSlot(i,t,r);if(!o)throw new k(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())}(o,e.sizeMapping),e.slots.push({type:"gptSlot",slot:o,parentId:e.id}),u.emit("slot created",e,o)},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):c((function(){document.body.appendChild(r)})),t}(e):e.parentId,n=(0,a.CA)(e),r=e.sizeMapping,i=e.adUnit;p("define oop slot for",e.pos,{sizes:n,sizeMapping:r,adUnit:i,id:t});const o=googletag.defineOutOfPageSlot(i,t);if(!o)throw new k(e);e.slots.push({type:"oopGptSlot",slot:o,parentId:t})}};function _(e){return e.adUnit=e.adUnit||(0,i.A)(e.pos),e.slots=e.slots||[],p(`${e.pos}: creating slots using slotTypes definition`),e.slotTypes.forEach((t=>{const n=b[t];n&&n(e)})),u.emit("update description",e.pos,e),e.slots.length&&y(e,[]),e}const w=e=>{let{slot:{molAd:{pos:t,parentId:n}}}=e;return n&&"string"==typeof n&&n.includes("-oop")?`${t}-oop`:t};function S(e){m.has(e)||v((function(){const t=(0,o.get)(e);t&&!t.gptSlot&&!t.oopGptSlot&&t.earlyBidding&&_(t)}))}function T(e){const t=e.map((function(e){return I(e.pos)}));u.invoke("googletag.pubads.refresh",t)}function I(e){return f[e]}u.on("slots initialized",(e=>{var t;t=e,v((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&&u.emit("dfp slot requested",w(e),e))).addEventListener("slotRenderEnded",(e=>e.slot.molAd&&u.emit("ad rendered",w(e),e))).addEventListener("slotOnload",(e=>e.slot.molAd&&u.emit("ad loaded",e,w(e)))).addEventListener("impressionViewable",(e=>e.slot.molAd&&u.emit("ad viewable",w(e),e))).addEventListener("slotVisibilityChanged",(e=>e.slot.molAd&&u.emit("slot visibility changed",w(e),e))).addEventListener("slotResponseReceived",(e=>e.slot.molAd&&u.emit("slot response received",w(e),e))).setCentering(PageCriteria.isMobile&&!PageCriteria.isTablet),s.fX.testmode&&e.setTargeting("testmode",s.fX.testmode),u.emit("gpt initialized",googletag)})),t.forEach(S),v((function(){googletag.pubads().enableAsyncRendering(),googletag.enableServices()}))})),u.on("gpt refreshAdvert",(e=>{!function(e){const t=I(e);t&&(t.setTargeting("refresh","true"),u.invoke("googletag.pubads.refresh",[t]))}(e)})),u.on("gpt refreshAdverts",(e=>{T(e)}));class k 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}`)}}},4597: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}},781:(e,t,n)=>{const r=n(7485),i=function(e,t){this.eventsMap={},this.eventName=e,this.getDomCallback=t,this.domElement={};const n=this;DM.later("DOM_READY",(function(){s.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 a(e){r.getElementById(e)?e in this.eventsMap&&o.call(this,e):delete this.eventsMap[e]}function s(){for(const e in this.eventsMap)a.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,a.call(this,e)},getEvent:function(e){return this.eventsMap[e]},on:i.on,fireEvent:i.fireEvent},e.exports=i},7813:(e,t,n)=>{const r=n(781),i=n(7485),o="data-impression-url",a="data-ted-tracking",s=new r("onImpression",(function(e){return function(e){return i.getElementById(e)}(e)}));e.exports={DATA_IMPRESSION_URL:o,onImpression:function(){s.registerEvent.apply(s,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(a)&&(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(){s.fireEvent.apply(s,arguments)}(e,"onImpression"),e.getAttribute(a)&&(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))}}},8627:(e,t,n)=>{"use strict";n.d(t,{Ai:()=>i,FF:()=>u,HV:()=>o,Z:()=>c,k4:()=>d,sb:()=>s,su:()=>p,wg:()=>a,x1:()=>r,yU:()=>l});const r=(e,t,n)=>{const r=new Array(n.length);let i=0;for(let o=0,{length:a}=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],a=e=>void 0===e?[]:Array.isArray(e)?e:[e],s=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)))}const p=e=>e.find((e=>void 0!==e))},2169:(e,t,n)=>{"use strict";n.d(t,{G0:()=>h,Mi:()=>c,QZ:()=>o,nz:()=>a,s5:()=>l,tN:()=>d,v6:()=>p,wR:()=>i});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))),a=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new r(e);throw await o(e),t},s=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,s(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(),a=s=>Promise.resolve(e()).then((e=>{if(e)return e;if(Date.now()-oa(s+1)))}throw new r(n)}));return a(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}},1096:(e,t,n)=>{"use strict";n.d(t,{EY:()=>d,MR:()=>l,jG:()=>h,q2:()=>c});var r=n(8627);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 e.set(s(e,t),n),n}function a(e,t){return e.get(s(e,t))}function s(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}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,[]),i(this,p,[])}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){a(p,this).push(e)}addEventListener(e,t,n,r){return this.add(c(e,t,n,r))}add(e){return a(u,this).push((()=>{this.remove(e),e()})),e}remove(e){o(u,this,(0,r.Ai)(e,a(u,this)))}onBrokerEvent(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;io.cancel()))}onceBrokerEvent(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;io.cancel()))}dispose(){try{for(const e of a(u,this))e();for(const e of a(p,this))e()}catch(e){console.error(e)}finally{o(u,this,[]),o(p,this,[])}}}},1696:(e,t,n)=>{"use strict";function r(e,t){let n,r=0,i=!1;const o=a=>{if(i){r=a,clearTimeout(n),i=!1;const s=!n;n=setTimeout(o,t),e(s)}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,{$G:()=>d,Ai:()=>r,Ed:()=>l,Gr:()=>o,iH:()=>c,l$:()=>s,mz:()=>i,sg:()=>a});const o=e=>{let t,n=!1;return function(){return n||(n=!0,t=e(...arguments)),t}},a=(e,t)=>{let n,r;const i=function(){for(var i=arguments.length,o=new Array(i),a=0;a{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)))}()}function c(e,t){return function(){const n=t(...arguments);return e(n),n}}},6702:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>_,I$:()=>m,Nn:()=>b,QY:()=>u,eC:()=>c});var r=n(2169),i=n(8627),o=n(6952),a=n(4531),s=n.n(a),d=n(8149);function l(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}class c{constructor(e,t){var n,r,i,o=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;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;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;os(e(t,...i)))),a}queueStream(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i{e(t,...r).pipe(s)})),a}broker(e){return new c(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),a=3;a{try{if(this.interceptors.length){const a=this.interceptors.filter((e=>!1!==this.doesMessageMatch(e.msg,o)));let s=!1;const d=function(){const i=a.shift();for(var l=arguments.length,c=new Array(l),u=0;u0?c:o,i?(s=!0,r.logCall(e,t,i.broker,o,!0),r.callInterceptor(i.callback,o,d,i.broker)):(s&&r.logCall(e,t,void 0,o,!0,!0),n(e,t,o))};i(d())}else i(n(e,t,o))}catch(e){a(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,a)=>{const s=()=>{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),a(e)):(this.system.emit("error",...i,e),a(e))}};n.sync?s():this.dispatcher(s)}))}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],a=t.splice(0,t.length-1);return this.subscribe(e,a,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:a,subscription:s}=r;const d=this.callSubscriber(e,t,s,a,i);return o&&s.expectReturn?o(d,s):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(!s)return Promise.reject(new h(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,{...a,message:r},s)),...a.message);return void 0!==a.timeout?Promise.race([l,(0,r.nz)(a.timeout)]):l};for(var o=arguments.length,a=new Array(o>2?o-2:0),s=2;s1?t-1:0),o=1;o{const i={...a,message:r},o=n.getSubscriptionsInterestedIn(i);a.controlHandler&&a.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 s=n.callFilteredSubscriptions(e,t,i,o);return a.subscriptionsCalledCallback&&a.subscriptionsCalledCallback(o),s}),...a.message);let d=s?s.filter((e=>e)):[];const l=[];d=d.map((e=>e.then((e=>{l.push(e)}),(e=>{if(a.catch)try{a.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!==a.timeout&&(c=Promise.race([c,(0,r.QZ)(a.timeout)])),c.then((()=>l))};for(var o=arguments.length,a=new Array(o>2?o-2:0),s=2;s4&&void 0!==arguments[4]&&arguments[4],a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];const s=t[0],d="object"==typeof s?(0,i.wg)(s.message):t,l="object"==typeof s&&!!s.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:a,cancel:()=>{this.subscriptions=(0,i.Ai)(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{s=!0,this.interceptors=(0,i.Ai)(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),a=1;a{c||0!=--u||(c=!0,l.push(null))};return void 0!==d.timeout&&((0,r.QZ)(d.timeout).then((()=>{!c&&l.push(null),c=!0})),delete d.timeout),t.invokeAll(e,{...d,map:(e,n)=>{let{broker:r,unbounded:a}=n;return a||u++,e.then((e=>{const t=e instanceof s().Readable?e:o.ci(e?[e]:[]);t.on("data",(e=>!c&&l.push(e))),a||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),a||p()}))},subscriptionsCalledCallback:()=>{c||0!==u||(c=!0,l.push(null))}}),l};for(var i=arguments.length,a=new Array(i>1?i-1:0),d=1;d0&&void 0!==arguments[0]?arguments[0]:{};return o.uh(e)}createTransformObjectStream(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return o.M7(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(s.reduce((async(r,o)=>{const s=await r,{matchCount:l,subscription:c}=o;return t.callSubscriber(e,n,c,l,[...d,s]).catch((e=>(a.onError&&a.onError(e,i),t.system.emit("error",...i,e),s)))}),Promise.resolve(l)))}))),...a.message);return void 0!==a.timeout?Promise.race([d,(0,r.nz)(a.timeout)]):d};for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a{let[r,i]=t;return"object"==typeof i&&null!==i?e(i,n[r]):n[r]===i}))}(this.filter,e)}}function m(e){return new g(e)}var y=new WeakMap;class v extends f{constructor(e){var t,n;super(),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,y,void 0),n=e,(t=y).set(l(t,this),n)}matches(e){return(0,d.Gv)(e)&&(t=y,this,t.get(l(t,this))).every((t=>t in e));var t}}function b(e){return new v(e)}const _=new u},1527:(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,{$:()=>r})},8149:(e,t,n)=>{"use strict";n.d(t,{AQ:()=>v,Gv:()=>h,I6:()=>u,Im:()=>s,NC:()=>g,Qf:()=>o,Sm:()=>m,Tj:()=>f,Up:()=>i,_M:()=>l,cJ:()=>a,mQ:()=>y,ns:()=>d,x5:()=>p});var r=n(8627);function i(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.reduce(((t,r)=>(n.ignoreUndefined&&!(r in e)||(t[r]=e[r]),t)),{})}function o(e,t){return Object.entries(t).reduce(((t,n)=>{let[r,i]=n;return t[r]=e[i],t}),{})}function a(e,t){const n={...e};for(const e of(0,r.wg)(t))delete n[e];return n}function s(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.FF)(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}},3296:(e,t,n)=>{"use strict";n.d(t,{A:()=>g});var r=n(8627);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 a(e,t){return e.get(d(e,t))}function s(e,t,n){return e.set(d(e,t),n),n}function d(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}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,!1),i(this,c,[]),i(this,u,void 0),i(this,p,void 0),i(this,h,!1),s(u,this,n),s(p,this,e),this.state=Object.freeze(t)}deinit(){this.dispatch({type:"__DEINIT__"}),s(h,this,!1)}init(){s(h,this,!0),this.dispatch({type:"__INIT__"})}dispatch(e){if(a(u,this).call(this,e,"dispatch"),!a(h,this))return void a(u,this).warn("Cannot dispatch actions before store has been initiated.");if(a(l,this))throw new Error("You shouldnt dispatch actions from a reducer");s(l,this,!0);const t=a(p,this).call(this,e,this.state);s(l,this,!1),t===this.state?a(u,this).call(this,e,"NO_CHANGE"):(this.state=Object.freeze(t),a(u,this).call(this,e,this.state),d(f,this,m).call(this,e))}subscribe(e){return a(c,this).push(e),setTimeout((()=>e({type:"__INIT__"},this.state))),()=>{s(c,this,(0,r.Ai)(e,a(c,this)))}}}function m(e){for(const t of a(c,this))t(e,this.state)}},6952:(e,t,n)=>{"use strict";n.d(t,{Kv:()=>a,M7:()=>l,T0:()=>f,Tj:()=>p,ci:()=>c,gV:()=>o,h1:()=>u,pb:()=>h,uh:()=>d,vC:()=>s});var r=n(4531),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)))})),a=()=>{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]},s=(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 a=(e.off||e.removeListener).bind(e);t.on("close",(()=>{a("data",r),a("end",i),a("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 a=u([e,n]);return a.on("close",(()=>{i||(o("data",r),i=!0)})),a}},6875:(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 a(e){let t=0;if(0===e.length)return t;for(let n=0;nr,ks:()=>o,tW:()=>a})},4789:(e,t,n)=>{"use strict";n.d(t,{CA:()=>r,O$:()=>s,nq:()=>i,uj:()=>a,w1:()=>o,y:()=>d});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]),[a,s]=n,d=o.find((e=>{let[[t,n]]=e;return a>=t&&s>=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 a(e){return e.map((e=>`${e[0]}x${e[1]}`)).join("|")}function s(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}),[])}function d(e){return e&&{creativeId:e.creativeId||e.sourceAgnosticCreativeId,lineItemId:e.lineItemId||e.sourceAgnosticLineItemId,advertiserId:e.advertiser,campaignId:e.campaignId,companyId:e.companyIds}}},4190:(e,t,n)=>{"use strict";n.d(t,{A:()=>s,l:()=>d});var r=n(4011),i=n(8153);const o="/5765/dm.video/dm_video_home/preroll",a=(0,r.Jt)("adUnit.excludeSponsoredCondition",!1);function s(e,t){const n=(0,r.Jt)("dfpAccountCode",5765),i=function(e,t,n){if(e)try{return e.replace("{{networkCode}}",t.toString()).replace("{{pos}}",n)}catch(e){console.error()}}((0,r.Jt)("gpt.adUnit"),n,e);return i||l(e,t)}function d(e,t){return l(e,t)}function l(e,t){const s=(0,r.Jt)("dfpAccountCode",5765),d=n.g.dartSiteId,l=n.g.PageCriteria.sponsored&&!a?"dm_dmnative":"money"===n.g.adAreaId?`${n.g.adAreaSiteId}_${n.g.adAreaSiteId}${n.g.adAreaId}_${n.g.adSubareaId}${n.g.adPageType}`:`${n.g.adAreaSiteId}_${n.g.adAreaSiteId}${n.g.adAreaId}_${n.g.adAreaId}${n.g.adPageType}`;if("native_"===e.slice(0,7))return`/${s}/dailymail.uk/dm_native/${e}`;const{autoplay:c=!1,fbiaEmbed:u=!1,flyaway:p=!1,isMobile:h=!1,offset:f=0,original:g=!1,syndicationService:m=!1,videoAdServerUrl:y="https://pubads.g.doubleclick.net/gampad/ads?iu=%2F5765%2Fdm.video%2Fdm_video_home/preroll"}=t||{},v=(0,r.Jt)("videoDescription.verticalvideo.adUnit");switch(e){case"video":return(0,i.Y)(n.g.adAreaId?`/${s}/dm.video/dm_video_${n.g.adAreaId}/${0===f?"preroll":"midroll"}`:function(e){try{return new URL(e).searchParams.get("iu")||o}catch(e){console.error(e)}return o}(y),{autoplay:c,fbiaEmbed:u,flyaway:p,isMobile:h,original:g,syndicationService:m});case"jwplayer":return`/${s}/dm.chromelessvideo/${(0,r.Jt)("players.chromeless.dmplayer.v3.adUnitNameLevel2","dm_dmros_ros")}/${(0,r.Jt)("players.chromeless.dmplayer.v3.adRoll",[]).find((e=>e.offset===f))?.pos||"preroll"}`;case"verticalvideo":return v?`/${s}/${v}`:`/${s}/${n.g.adAreaSiteId}.${e}/${n.g.adAreaSiteId}_${n.g.adAreaSiteId}${n.g.adAreaId}_${n.g.adSubareaId}`;case"hero":return`/${s}/${(0,r.Jt)("videoDescription.hero.adUnit","dm.video.hero")}`;default:return`/${s}/${d}/${l}/${e}`}}},6473:(e,t,n)=>{"use strict";n.d(t,{$M:()=>v,$R:()=>S,G_:()=>y,MO:()=>u,N0:()=>w,O:()=>_,Qr:()=>f,Ri:()=>d,YC:()=>o,Yj:()=>p,Yw:()=>g,fX:()=>a,j1:()=>T,jy:()=>h,pr:()=>b,pz:()=>m});var r=n(6875);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 a=(()=>{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})(),s=/(%[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(s,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,a=`${t}${i}${(0,r.ks)(o,e)}`;window.history.pushState(null,"",a)}function S(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,a=r.clientTop||n.clientTop||0,s=r.clientLeft||n.clientLeft||0,d=t.top+i-a,l=t.left+o-s;return{top:Math.round(d),left:Math.round(l)}}function T(){return n.g.performance?.getEntriesByType?.("navigation")?.[0]}},7601:(e,t,n)=>{"use strict";n.r(t);var r=n(1696),i=n(6473),o=n(6702),a=n(3764),s=n(9203),d=n.n(s);const l=o.Ay.broker("debug-output"),c=window.PageCriteria&&window.PageCriteria.pageViewId||(0,a.zE)();localStorage.getItem("mol.ads.debug")&&localStorage.removeItem("mol.ads.debug");const u=localStorage.getItem("dmg.ads.debug.label"),p=i.fX.adsDebugRemote||i.fX["ac.adsDebugRemote"]||n.g.adverts?.config?.adsDebugRemote||u,h=i.fX.adsBugReport||i.fX["ac.adsBugReport"]||n.g.adverts?.config?.adsBugReport||u,f="boolean"!=typeof p&&p;let g=[],m=0;const y=(0,r.sg)((()=>{l.emit("send to bidmax",{_:{topic:"debug"},type:"multi",pvid:c,label:f,eventId:m++,payload:g}),g=[]}),1e3),v=[];function b(e){v.push(e)}function _(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set;for(const n of v)try{const r=n(e,t);if(void 0!==r)return r}catch(e){console.error("Error in object replacer",e)}return function(e){if("string"==typeof e&&e.length>4048)return`[truncated ${e.length} bytes string: ${e.slice(0,100)}...]`;if(e instanceof Map){const t=Array.from(e,(e=>{let[t,n]=e;return[w(t),n]}));return Object.fromEntries(t)}if(e instanceof Set)return Array.from(e);if(e instanceof WeakMap||e instanceof WeakSet)return e.toString();if(e instanceof Error)return{type:"Error",message:e.message,stack:e.stack};if(e instanceof HTMLElement){const{id:n,src:r,classList:i}=e;return`HTMLElement[<${e.tagName.toLowerCase()} ${t={id:n,src:r,class:[...i].join(" ")},Object.entries(t).map((e=>{let[t,n]=e;return null==n||""===n?"":`${t}="${n}"`})).filter(Boolean).join(" ")}/>]`}var t;return function(e){return"object"==typeof Node?e instanceof Node:e&&"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName}(e)?"[DOM Node]":void 0}(e)}function w(e){return"object"==typeof e?_(e):e}function S(e){try{return JSON.stringify(e,((e,t)=>_(t)||t))}catch(e){return"[error serializing value: "+e.message+"]"}}b(((e,t)=>{if("object"==typeof e&&null!==e){if(t.has(e))return"[circular reference]";t.add(e)}}));const T=(e,t)=>{g.push({type:e,timestamp:(new Date).toISOString(),payload:t}),g.length>=100?y.callNow():y()},I=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){k.error("Error parsing",e,t)}}))}),k[e](...n)},k={log:console.log,warn:console.warn,error:console.error,info:console.info};p&&(l.on("register remote debug object replacer",b),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",T),l.on("system ready",(()=>{const{config:e}=n.g.adverts;T("config",{config:e})})),l.once("dom ready",(()=>{n.g.PageCriteria&&T("PageCriteria",n.g.PageCriteria),n.g.pagemeta&&T("pagemeta",n.g.pagemeta),l.invoke("get page level analytics").then((e=>T("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(),T("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()})))}))},3455:(e,t,n)=>{"use strict";n.d(t,{h:()=>d});var r=n(6473),i=n(8627);const o=function(){let e=new Set;if(r.fX.adsDebug)e=new Set(((!0===r.fX.adsDebug?"all":r.fX.adsDebug)||"").toLowerCase().split(","));else if(localStorage.getItem("dmg.ads.debug.label"))e=new Set(["all"]);else{const t=r.fX["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}(),a=o.has("all"),s=()=>{};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=a||o.has(e.toLowerCase()),u=r?console.log.bind(console,...(0,i.wg)(t)):s;return u.debugName=e,u.label=t,u.enabled=r,u.log=p("log"),u.trace=p("trace"),u.debug=p("debug"),u.info=p("info"),u.warn=p("warn"),u.error=p("error",!0),u.table=r?function(){u("Table:"),console.table(...arguments)}:s,u.time=r?e=>console.time(c(e?[...t,e]:t).join(" / ")):s,u.timeEnd=r?e=>console.timeEnd(c(e?[...t,e]:t).join(" / ")):s,u.extend=r=>{const[o,...a]=(0,i.wg)(t),s=n+1;return d(e,[`${o} %c${r}`,...a,l(s)],s)},u;function p(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:r)&&"function"==typeof console[e]?console[e].bind(console,...(0,i.wg)(t)):s}}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;`}function c(e){return[e[0].replace(/^%c/,""),...e.slice(1)].filter((e=>!e.startsWith("display: inline-block; color: #")))}},3764:(e,t,n)=>{"use strict";function r(e,t){return e.get(o(e,t))}function i(e,t,n){return e.set(o(e,t),n),n}function o(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}n.d(t,{E:()=>u,pX:()=>a,ph:()=>h,yT:()=>s,zE:()=>d});const a=2147483647;function s(e,t){const n=t-e+1+e;return Math.floor(Math.random()*n)}function d(){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 l(e,t){if(null==e)return;let n=e/(t/100);return n>99&&(n=99),n<0&&(n=0),Math.round(n)}const c=/(.*)P(\d+)(s|k|m|gb|ms|px)$/;function u(e,t){const{cap:n}=function(e){const t=e.match(c),[,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]:l(t,n)}}var p=new WeakMap;class h{static get(e,t){return o(h,this,f)._[e]=o(h,this,f)._[e]||new h(t),o(h,this,f)._[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;var t,n,r;r=void 0,function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=p),n.set(t,r),i(p,this,e)}get value(){return r(p,this)}inc(){var e;return i(p,this,(e=r(p,this),++e))}dec(){var e;return i(p,this,(e=r(p,this),--e))}}var f={_:{}}},9644:(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,{A:()=>r})},4932:(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,a=Array.isArray(e);if(n!==o)return a?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(a){const n=e.length,r=t.length;let o;for(o=0;o{let[n]=e,[r]=t;return n.localeCompare(r)})),d=s.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,a=-1;for(;a<0&&cr})},7848:(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,{A:()=>r})},3642:(e,t,n)=>{"use strict";var r=n(3455),i=n(6473);(i.fX.adsDebugRemote||i.fX["ac.adsDebugRemote"]||n.g.adverts.config&&n.g.adverts.config.adsDebugRemote||localStorage.getItem("dmg.ads.debug.label"))&&n(7601),(0,r.h)("bootstrap").log("loading",window.location.href)},2852:(e,t,n)=>{const r=n(8911);function i(e){if(!e)throw new TypeError("Missing videoAdServerUrl");this.base_url=e,this.params={env:"vp",gdfp_req:1,impl:"s",output:"xml_vast4",unviewed_position_start:1,hl:"en"}}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},2284:e=>{e.exports=e=>{const t=(e=>{const{cust_params:t,domain:n,embed:r,flyaway:i,muted:o,screen:a,source:s,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:a.width,videoHeight:a.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,"")),s&&(p.video=s.replace(/\s/g,"_")),window.adEnvironment&&(p.environment=window.adEnvironment);const h=t||{};return Object.keys(h).forEach((e=>{p[e]=h[e]})),p.sz=a.width+"x"+a.height,p})({...e,cust_params:{...e.cust_params}});return{customParams:t}}},8153:(e,t,n)=>{"use strict";function r(e,t){const{autoplay:n=!1,fbiaEmbed:r=!1,flyaway:i=!1,isMobile:o=!1,original:a=!1,syndicationService:s=!1}=t;let d=e;r&&-1===d.indexOf("dm.videofb")||"fbia"===s&&-1===d.indexOf("dm.videofb")?d=d.replace(/dm\.video/g,"dm.videofb"):"gamp"===s&&-1===d.indexOf("dm.videoamp")?d=d.replace(/dm\.video/g,"dm.videoamp"):o&&a&&!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,{Y:()=>r})},8911:(e,t,n)=>{const r=n(7476),i=document.createElement("a"),o=document.documentMode,a={appendGeolocation:function(e){try{return a.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=a},7476:e=>{function t(e){return"function"==typeof e}const n={forEach:function e(n,r,i){let o,a;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(s=n,"[object Array]"===Object.prototype.toString.call(s)){const e="object"!=typeof n;for(o=0,a=n.length;o{"use strict";n.d(t,{E:()=>s,Z:()=>a});var r=n(4400),i=n(8149);const o="\n.mpu_puff_wrapper.watermark,\n.adHolder.watermark,\n#mobile-content .adHolder.watermark,\n#content .billboard-container.watermark,\n.dmg-ads,\n.mol-ads-label-container {\n display: none;\n}\n";function a(e){e("slots.enabled",{}),(0,r.appendStyle)(o)}function s(e,t,n){t("slots.enabled",(0,i.Up)(e("slots.enabled",{}),n)),(0,r.appendStyle)(o)}},7365:(e,t,n)=>{"use strict";n.d(t,{k:()=>i});var r=n(4789);const i=e=>{const t=e.sizeMapping?(0,r.nq)(e.sizeMapping,e.sizes||e.size,[document.documentElement.clientWidth,document.documentElement.clientHeight]):e.sizes||e.size,[n,i]=(0,r.w1)(t);return[n,i]}},4011:(e,t,n)=>{"use strict";n.d(t,{Jt:()=>p,Ts:()=>f,hZ:()=>h,th:()=>g});var r=n(9644),i=n(7848),o=n(6473),a=n(8627),s=n(8420),d=n(3455),l=n(4932);n.g.adverts.config=n.g.adverts.config||{};const c=(0,d.h)("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,s.E)(n)){const e=(0,s.n)(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.A)(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[a,s]=n.split(":");if(void 0===s)return[r,i,o];if(a.includes("*")){const[e,n]=a.split("*");!t(s)&&""===n&&o.push(e)}else t(s)?r.add(a):i.add(a);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)))),a=o.indexOf("debug.setPlugin")+1;o.splice(a,0,...n),h("plugins.enabled",[...new Set(o)])}(o.fX)}const g=()=>{Object.entries(o.fX).forEach((e=>{let[t,n]=e;if(t.startsWith("ac."))if(t.endsWith("[+]")){const e=t.substring(3,t.length-3);h(e,(0,a.sb)(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))}))}},2093:(e,t,n)=>{"use strict";(0,n(4011).Ts)()},8420:(e,t,n)=>{"use strict";n.d(t,{E:()=>c,n:()=>l});var r=n(6473),i=n(8149),o=n(8627),a=n(9644),s=n(5901),d=n(7742);function l(e){let{__targeting:t}=e;return((0,o.wg)(t).find(u)||{}).payload}function c(e){return"object"==typeof e&&!!e?.__targeting}const u=(0,i._M)({browser:p((function(e){switch(e){case"chrome":return r.G_;case"edge":return r.pr;case"ie":return r.Qr;case"firefox":return r.$M;case"safari":return r.Yw;default:return!1}})),cookie:p((function(e){return Object.entries(e).some((e=>{let[t,n]=e;return n.includes((0,r.Ri)(t)||"")}))})),device:p((function(e){switch(e){case"tablet":return s.Ay.isIPad()||s.Ay.isAndroidTablet();case"desktop":return!s.Ay.isMobile()}})),iOSVersion:p((function(e){let{min:t,max:n}=e;const[i]=(0,r.O)();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._M)((0,i.Tj)(window.PageCriteria||{},(e=>p(Array.isArray(e)?t=>e.includes(t):t=>t===e))),!0);return t=>e((0,i.cJ)(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 s=(0,a.A)(n.g,t);switch(r){case"includes":return"string"==typeof s?s.includes(i):(0,o.wg)(s).includes(i);case"startsWith":return"string"==typeof s&&s.startsWith(i)}})),topWindow:p((function(e){return e?window.top===window:window.top!==window})),paywalled:p((function(e){return e===(0,d.H)({pageCriteria:n.g.PageCriteria,win:n.g})})),entitlements:p((function(e){const t=n.g.getPaywallEntitlements?.();return t?.includes?.(e)}))});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}},4400:(e,t,n)=>{"use strict";n.r(t),n.d(t,{appendStyle:()=>m,closest:()=>f,contains:()=>y,createIframe:()=>T,elementReady:()=>o,getElementBottomOffset:()=>d,getElementComputedHeight:()=>w,getElementComputedWidth:()=>_,getElementScaledHeight:()=>b,getElementWidthScale:()=>S,getOffset:()=>s,getPageSize:()=>p,getParent:()=>v,getRelativeContainer:()=>c,getVisibleText:()=>I,getWindow:()=>u,insertAfter:()=>k,isElement:()=>g,loaded:()=>a,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 a=()=>{const s=document.querySelector(e);s?r(s):o?i(new Error(`Element "${e}" not found after ${t}ms`)):setTimeout((()=>a()),n)};a()}))},a=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)}))},s=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 s(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")),S=e=>{const t=_(e);return _(document.body)/t};function T(e){let{content:t,insertMethod:n=(e=>{document.body.appendChild(e)}),width:r=0,height:i=0,log:o=(()=>{})}=e;const a=document.createElement("iframe");return a.border="0",a.style.width=`${r}px`,a.style.height=`${i}px`,a.style.border="none",o("inserting iframe"),n(a),o("writing iframe content",a),a.contentDocument.open(),a.contentDocument.domain=document.domain,a.contentDocument.write(t),a.contentDocument.close(),a}function I(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)}},4724:(e,t,n)=>{"use strict";n.d(t,{x:()=>l});var r=n(2169),i=n(6473),o=n(1527),a=n(4011);const s=(0,r.Mi)((()=>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,a.Jt)("__generated.commit.sha"),bundle:"facade",cmVersion:(0,a.Jt)("__generated.rulesJs.version"),cmCluster:(0,a.Jt)("__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.$)(),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.fX.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,a.Jt)("bidmax.dispatcher.useCurrentUrl");return s.then((r=>new Promise(((i,o)=>{const s=new XMLHttpRequest,l=t?`${n.g.location.origin}${n.g.location.pathname}`:(0,a.Jt)("bidmax.dispatcher.url","//crta.dailymail.co.uk");s.open("POST",l,!0),s.addEventListener("abort",o),s.addEventListener("error",o),s.addEventListener("load",i),s.setRequestHeader("Content-Type","text/plain"),s.send(JSON.stringify({...r,...d,...e,timestamp:Date.now()}))})))).catch((e=>console.error(e)))}},5720:(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||{}},8801:(e,t,n)=>{"use strict";n.d(t,{F3:()=>a,g3:()=>s,sd:()=>d,xy:()=>l});const r=(0,n(3455).h)("plugin-registry"),i={},o={};function a(e,t){r("registering plugin:",e),i[e]=t}function s(e,t){r("registering sync plugin:",e),o[e]=t}function d(e){return i[e]}function l(){return{...i}}},4037:(e,t,n)=>{"use strict";n.r(t),n.d(t,{DELAYED:()=>d,IMMEDIATE:()=>a,LAZY:()=>s,getEnabledRenderedSlots:()=>y,getEnabledSlots:()=>v,getLoadingSettings:()=>m,initEmergencyRules:()=>I,initSlots:()=>S,isAdEnabled:()=>f,resetSlots:()=>w,setSupportedSlots:()=>T});var r=n(6473),i=n(8149);(0,n(8801).F3)("adListLoader",{ccpa:{enabledIfDissent:!0},gdpr:{enabledIfDissent:!0},init:function(e){let{broker:t,getConfig:r,setConfig:i,log:a}=e;const s=_(r("slots.enabled",{}),b),d=Object.keys(s),f=new Set(d),m=u.filter((e=>!f.has(e))),y=d.reduce(((e,t)=>({...e,[t]:g(a,s[t])})),{}),v=r("slotDescription",{});l=d.filter((e=>!v[e]||!!v[e].id)),c=m,o=y,a("Enabled slots: ",l),a("Disabled slots: ",c),a("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){a("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 a="immediate",s="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.fX.ignoreDisableAds)&&(!t||!u.includes(t)||l.includes(t))},g=(e,t)=>{let{loadingOffset:n,loadingTrigger:r,loadingType:i=a}=t;const o={type:i||a,trigger:r,offset:isNaN(n)?0:Number(n)};return o.type===a||o.type===d||o.type===s&&o.trigger||(e("Unknown loading type or invalid loading trigger, falling back to immediate loading :",o),o.type=a),o},m=e=>o[e]||{type:a,trigger:void 0,offset:0},y=()=>l.slice(),v=y,b=(r.fX.setSlot&&r.fX.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.Im)(t)?e:Object.entries(t).reduce(((e,t)=>{let[n,r]=t;return r?e[n]={}:delete e[n],e}),e),w=()=>{l=[],c=[]},S=()=>{},T=e=>{},I=()=>{}},6992:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>init});var uuid__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(8867);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:a}=o;a&&(void 0===i.v&&(i.i=(new Date).toISOString(),i.v=2,i.u=(0,uuid__WEBPACK_IMPORTED_MODULE_0__.A)(),i.n=!0),i.v++,i.l=(new Date).toISOString(),localStorage.setItem("mol.abe.data",JSON.stringify(i))),i.i&&(r(a?"Ad blocker detected":"No ad blocker detected"),a||i.c&&!(i.ci.l),o.then((e=>a=e));const s=e=>({[i.n?"exabd2":"exabd"]:!!e});t.emit("set page level targeting",s(a.exabd)),t.emit("set page level targeting",o.then((e=>{let{exabd:t}=e;return s(t)}))),t.register("call for page analytics",(()=>a))}init.ccpa={enabledIfDissent:!0},init.gdpr={enabledIfDissent:!0}},7526:(e,t,n)=>{"use strict";n(2169),n(3296),n(4724),n(3764),n(7198);var r=n(3455);n(1096),(0,r.h)("abe.detectAdBlocker")},7198:(e,t,n)=>{"use strict";(0,n(8801).F3)("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},7485:(e,t,n)=>{"use strict";n.r(t),n.d(t,{appendStyles:()=>j,default:()=>V,enableSlot:()=>P,getAdContainer:()=>L,getElementById:()=>M,getElementContainerById:()=>x,getElementOrIframeById:()=>k,isEmpty:()=>C,log:()=>R,nativeLoaded:()=>D,openAd:()=>B});var r=n(6817),i=n(4037),o=n(6702);const a=n(4520),s=n(4597),d=n(7485);let l;o.Ay.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,a((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,a=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 s=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&&s.hasAttribute("data-track-module")&&DM&&DM.externalLinkTracker&&(d.setAttribute("data-track-type","cl"),DM.externalLinkTracker(s.id,"cl")),l&&window.opener&&window.opener!==window&&window.opener.postMessage&&(window.addEventListener("message",h.bind(null,r,a)),f(window.opener,"isLoaded",!0,a))}}(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=s.parse(n.data.slice(u))}catch(e){console.error("Invalid message",e)}if(i&&i.type){const o=[].slice.call(e.querySelectorAll("["+r+"]"));let a;switch(i.type){case"getValues":a=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])}))}a&&f(n.source,i.type,a,t,n.origin)}}}function f(e,t,n,r,i){const o={type:"response",query:t,position:r,value:n};e.postMessage(c+s.stringify(o),i||"*")}a((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(4400),m=n(3455);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(358),_=n(4789),w=n(8627);const S=(e,t)=>{let n;try{n=e.contentDocument||e.contentWindow.document}catch(e){}return n||t},T=e=>t=>{const n=t&&S(t);return n&&n.getElementById(e)},I=e=>{const t=(e||document).getElementsByTagName("iframe");return Array.prototype.filter.call(t,A)},k=e=>{const t=T(e);return E(I(),(e=>t(e)&&e))},A=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},O=(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")},P=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(I(),(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.h)("ad-integrator"),j=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=I(),r=T(e);for(let e=0;!t&&e{R(`collapseAd("#${t}")`);const n=(0,b.getById)(t);if(n)return void O(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?O(e,n.pos):i.style.display="none"}else R.warn("collapseAd: id",t,"is unknown")};function U(e,t){for(const n of(0,_.O$)((0,b.allDescriptions)(),(0,w.wg)(t)))R(`collapseAd({ pos: "${n}" })`),O(e,n)}const L=e=>{const t=I(e)[0];return t?S(t,document):e},B=e=>{const t=x(e),n=r.parse(t.getAttribute(r.AD_ATTRIBUTE)||"{}");n&&n.pos?P(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)}}));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=N.bind(null,t),n.g.adverts.collapseAdByPos=n.g.AdIntegrator.collapseAdByPos=U.bind(null,t),n.g.AdIntegrator.disableSlot=O.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},5300:(e,t,n)=>{"use strict";n.d(t,{x:()=>i});const r=(0,n(3455).h)("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)}))}},5496:(e,t,n)=>{"use strict";n.d(t,{H:()=>i});const r=(0,n(3455).h)("mvt"),i=(e,t,n,i)=>{let o=e("plugins.enabled",[]),a=[],s=[];n.forEach((e=>{Array.isArray(e.plugins)?(r(`From scenario "${e.name}", adding plugins:`,e.plugins),a=[...a,...e.plugins]):"object"==typeof e.plugins&&(Array.isArray(e.plugins.add)&&(r(`From scenario "${e.name}", adding plugins:`,e.plugins.add),a=[...a,...e.plugins.add]),Array.isArray(e.plugins.remove)&&(r(`From scenario "${e.name}", removing plugins:`,e.plugins.remove),s=[...s,...e.plugins.remove]))}));const d=o.indexOf(i)+1;o.splice(d,0,...a);const l=new Set(s);o=o.filter((e=>!l.has(e))),t("plugins.enabled",[...new Set(o)])}},5874:(e,t,n)=>{"use strict";n.d(t,{U:()=>l});const r="page",i="mol.ads.mvt.tests",o=e=>{let[t,n]=e;return{...n,name:t}},a=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},s=function(e,t){let n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o=`${i}.${t.name}.selected`;let s=t.forceScenario;if(s&&!t.scenarios.find((e=>e.name===s)))return e.warn(`Test "${t.name}" has a forceScenario "${s}" that is not defined in the scenarios`),void(s=void 0);s&&e.info(`Test "${t.name}" is forced to use scenario "${s}"`);const l=s||r[o],c=t.scenarios.find((e=>e.name===l)),u=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+a(String(n))}),0),s=d(Math.min(Math.max(0,a(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={},a={},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=s(e,n,d);return l?(a[n.name]=l.name,[...t,l]):t}),[]);n.g.adsMVTResults={pageStorage:i,selectedScenarios:a,scenarios:l,tests:d}}return n.g.adsMVTResults}},7742:(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,{H:()=>r})},358:(e,t,n)=>{"use strict";n.r(t),n.d(t,{allDescriptions:()=>u,get:()=>l,getById:()=>c});var r=n(6473),i=n(4190),o=n(8149);(0,n(8801).F3)("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,a]=n;const s=t(`slotDescription.${o}.earlyBidding`,!0);return a.conditionalSizes&&(r("conditionalSizes found",o,a),function(e){e.conditionalSizes?.wideSkies&&e.conditionalSizes?.sizes&&d&&(e.size=e.conditionalSizes.sizes)}(a)),{...e,[o]:["openweb","googleAdSense","amazon","widgets","perform-player"].some((e=>a?.slotTypes?.includes(e)))?{id:o,pos:o,...a}:{type:(l=a.size,l.map((e=>{let[t,n]=e;return`${t}x${n}`})).join(",")),adUnit:(0,i.A)(a.unit||o),pos:o,parentId:a.id,slots:[],slotTypes:["gpt"],earlyBidding:s,...a}};var l}),{});r("descriptionsFromSlotDescription",o),a={...a,...o},n("slotDescriptions.initial",a)},run:function(e){let{broker:t,getConfig:n}=e;a=n("slotDescriptions.initial"),t.on("update description",((e,n)=>{a[e]=n,t.emit("slot descriptions updated",a)})),t.emit("slot descriptions updated",a)}});let a={};const{width:s}=(0,r.YC)(),d=s>1580,l=e=>{const t=a[e];return t&&!t.pos&&(t.pos=e),t};function c(e){return(0,o.I6)(a,(t=>t.id===e))}const u=()=>a},6005:(e,t,n)=>{"use strict";n.d(t,{Cl:()=>h,V_:()=>o,Z:()=>d,et:()=>c,gF:()=>u,q_:()=>i,uL:()=>p});var r=n(4011);const i="mol.ads.cmp.tcf.cache",o="mol-reject-all",a=u(),s=n.g.DM?.userId,d=e=>s&&!!(e||u())?.includes?.(o),l=(0,r.Jt)("tcfv2.consentOrPay.enabled",!1),c=()=>{const e=s&&l&&`dmg.ads.consentOrPay.${function(e){let t=`${e}`;return u().includes(o)&&(t+="."+o),t}(s)}.tcf.cache`;return s&&l?e:i};function u(){return n.g.getPaywallEntitlements?.()||[]}const p=()=>a,h=e=>e.location.pathname.startsWith("/embed/gamp-video/")},3601:(e,t,n)=>{"use strict";n.d(t,{IL:()=>T,NH:()=>_,xs:()=>S});var r=n(6005),i=n(4011);const o="__tcfapiLocator",a=["getTCData","hasUserConsentedToAll","hasUserDissentedToAll","getPurposesByVendorMap","getConsentDegree","getValidTCData","consentedVendors","getNonRegisteredVendorsConsents","getNonRegisteredVendors","getStoredRepromptVersion","hasUserConsentedToMandatory"],s=location.search.match(/adsDebug=[^&]*tcfv2/)?function(){return console.info(...arguments)}:()=>{},d=[],l=window;let c=!1;const u=!(0,i.Jt)("tcfv2.consentOrPay.enabled",!1)||!n.g.getPaywallEntitlementsMightChange();function p(){const e=l.document;if(!l.frames[o])if("interactive"===e.readyState||"complete"===e.readyState){const t=e.createElement("iframe");t.style.display="none",t.name=o,e.body.appendChild(t),c&&(e.removeEventListener("readystatechange",p),c=!1)}else"function"==typeof e.addEventListener?(e.addEventListener("readystatechange",p),c=!0):setTimeout(p,5)}s("consentOrPay: canUseCache",u),s("creating");let h={};if(u){const e=localStorage.getItem((0,r.et)());e&&(h=JSON.parse(e))}let f=0;const g={},m=(e,t)=>{const n=h.getTCData,r=f++;s("adding provisional listener:",r),g[r]={},d.push(["addEventListener",2,(e,n)=>{const i=e.listenerId;g[r]?(g[r].realListenerId=i,g[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)},y=(e,t)=>{const n=e[3];s("removing provisional listener:",n);const r=g[n];if(!r)return s("unknown listener:",n),void t(!1);const i=r.realListenerId;delete g[n],i&&d.push(["removeEventListener",2,e=>t(e),i]),t(!0)};function v(){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(a.length){if("addEventListener"===o)return m(n,i);if("removeEventListener"===o)return y(n,i)}if(u){if(~a.indexOf(o)){n[3]&&s("cache method called with argument:",n[3]);const e=h[o];if(void 0!==e)return s("returning cached value for",o),void i(e,!0)}}else s("consentOrPay, not using cache");s("queueing",o),d.push(n)}}function b(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 _(){n.g.adverts.tcfv2Installed||(n.g.adverts.tcfv2Installed=!0,p(),l.__tcfapi=v,l.addEventListener("message",b,!1),n.g.adverts.updateCache=w)}async function w(e,t){if(e.tcString.length){const e=(0,r.et)();t("consentorpay: using cacheKey",e);const i=a.map((r=>new Promise((i=>{n.g.__tcfapi(r,2,((n,o)=>{if(t("caching",r),o){const t=JSON.parse(localStorage.getItem(e))||{};t[r]=n,localStorage.setItem(e,JSON.stringify(t))}else t("error caching method:",r);i()}))}))));await Promise.all(i)}}const S=()=>u&&!!localStorage.getItem((0,r.et)());function T(){localStorage.removeItem((0,r.et)())}},2679:(e,t,n)=>{"use strict";n.d(t,{f:()=>a});var r=n(6875),i=n(6473),o=n(1913);function a(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.j1)()?.type||"unknown",st:o.S,u:(0,r.tW)(window.location.href)}}},1913:(e,t,n)=>{"use strict";n.d(t,{S:()=>r});const r=Date.now()},7511:(e,t,n)=>{var r=n(9312),i=[];e.exports=function(){var e=new Worker(URL.createObjectURL(new Blob(['(()=>{let e;onmessage=t=>{let{data:s}=t;if("setPattern"===s.cmd)e=new RegExp(s.pattern);else if("testMatch"===s.cmd){const{id:t,href:a}=s,n=e.test(a);postMessage({id:t,match:n})}},addEventListener("message",(function(e){var t,s=e.data,a=s.type,n=s.method,o=s.id,r=s.params;"RPC"===a&&n&&((t=__webpack_exports__[n])?Promise.resolve().then((function(){return t.apply(__webpack_exports__,r)})):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(['(()=>{let e;onmessage=t=>{let{data:s}=t;if("setPattern"===s.cmd)e=new RegExp(s.pattern);else if("testMatch"===s.cmd){const{id:t,href:a}=s,n=e.test(a);postMessage({id:t,match:n})}},addEventListener("message",(function(e){var t,s=e.data,a=s.type,n=s.method,o=s.id,r=s.params;"RPC"===a&&n&&((t=__webpack_exports__[n])?Promise.resolve().then((function(){return t.apply(__webpack_exports__,r)})):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}},5821:(e,t,n)=>{"use strict";const r=n(2936),i=n(2918),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 a=2147483647;function s(e){if(e>a)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=s(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(J(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(J(e,ArrayBuffer)||e&&J(e.buffer,ArrayBuffer))return h(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(J(e,SharedArrayBuffer)||e&&J(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=s(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||K(e.length)?s(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),s(e<0?0:0|f(e))}function p(e){const t=e.length<0?0:0|f(e.length),n=s(t);for(let r=0;r=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function g(e,t){if(d.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||J(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 H(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return G(e).length;default:if(i)return r?-1:H(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 O(this,t,n);case"utf8":case"utf-8":return A(this,t,n);case"ascii":return C(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 P(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,a=1,s=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;a=2,s/=2,d/=2,n/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){let r=-1;for(o=n;os&&(n=s-d),o=n;o>=0;o--){let n=!0;for(let r=0;ri&&(r=i):r=i;const o=t.length;let a;for(r>o/2&&(r=o/2),a=0;a>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 A(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+a<=n){let n,r,s,d;switch(a){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],s=e[i+3],128==(192&n)&&128==(192&r)&&128==(192&s)&&(d=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&s,d>65535&&d<1114112&&(o=d))}}null===o?(o=65533,a=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=a}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(J(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),a=(n>>>=0)-(t>>>=0);const s=Math.min(o,a),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 S(this,e,t,n);case"base64":return T(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(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 C(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 j(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 a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,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 a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=a,a>>=8,e[n+2]=a,a>>=8,e[n+1]=a,a>>=8,e[n]=a,n+8}function N(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||N(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function L(e,t,n,r,o){return t=+t,n>>>=0,o||N(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=Q((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=Q((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=Q((function(e){return j(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),d.prototype.writeBigUInt64BE=Q((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,a=0;for(this[t]=255&e;++i>0)-a&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,a=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/o>>0)-a&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=Q((function(e){return j(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),d.prototype.writeBigInt64BE=Q((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 L(this,e,t,!0,n)},d.prototype.writeDoubleBE=function(e,t,n){return L(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 W=/[^+/0-9A-Za-z-_]/g;function H(e,t){let n;t=t||1/0;const r=e.length;let i=null;const o=[];for(let a=0;a55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+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 G(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(W,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function X(e,t,n,r){let i;for(i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function J(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 Y=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 Q(e){return"undefined"==typeof BigInt?Z:e}function Z(){throw new Error("BigInt not supported")}},4832:(e,t,n)=>{var r=n(185);e.exports=function(e){var t,n="",i=e||{};return function(e,i,o,a,s,d,l,c){n=n+'
'+r.escape(null==(t=l)?"":t)+'
'+r.escape(null==(t=o)?"":t)+"
"}.call(this,"click"in i?i.click:"undefined"!=typeof click?click:void 0,"dataOpts"in i?i.dataOpts:"undefined"!=typeof dataOpts?dataOpts:void 0,"description"in i?i.description:"undefined"!=typeof description?description:void 0,"height"in i?i.height:"undefined"!=typeof height?height:void 0,"id"in i?i.id:"undefined"!=typeof id?id:void 0,"src"in i?i.src:"undefined"!=typeof src?src:void 0,"title"in i?i.title:"undefined"!=typeof title?title:void 0,"width"in i?i.width:"undefined"!=typeof width?width:void 0),n}},6262:(e,t,n)=>{var r=n(185);e.exports=function(e){var t="",n=e||{};return function(e,n,i,o,a){t=t+'
'}.call(this,"dataOpts"in n?n.dataOpts:"undefined"!=typeof dataOpts?dataOpts:void 0,"height"in n?n.height:"undefined"!=typeof height?height:void 0,"id"in n?n.id:"undefined"!=typeof id?id:void 0,"src"in n?n.src:"undefined"!=typeof src?src:void 0,"width"in n?n.width:"undefined"!=typeof width?width:void 0),t}},9203:(e,t,n)=>{n(185),e.exports=function(e){return""+'
'}},3839:(e,t,n)=>{n(185),e.exports=function(e){return""+'
Enter Ads debug mode
'}},1825:(e,t,n)=>{var r=n(185);e.exports=function(e){var t="",n=e||{};return function(e,n,i,o){t=t+''}.call(this,"height"in n?n.height:"undefined"!=typeof height?height:void 0,"poster"in n?n.poster:"undefined"!=typeof poster?poster:void 0,"videoId"in n?n.videoId:"undefined"!=typeof videoId?videoId:void 0,"width"in n?n.width:"undefined"!=typeof width?width:void 0),t}},1047:(e,t,n)=>{var r=n(185);e.exports=function(e){var t="",n=e||{};return function(e,n,i,o){t=t+"