window.optidigitalToolboxCC="CA";var optidigitalSetup={info:{publisherId:108,networkId:5950404,siteId:319,revision:51},sourceDomains:["www.jardiner-malin.fr","jardiner-malin.fr"],adSlotsConfig:{disableDesktopInterstitial:true,disableMobileInterstitial:true,},stickyAdConfiguration:{mode:'sticky-bottom',zIndex:'100000000',adCloseTop:'-24',adUnitsExcluded:['/5950404/jardiner-malin.fr/forum-registered'],stickyAdTopTrigger:0,},publisherInit:function(initConfig){},insertInreadTags:function(adUnit){var parentDiv=".auto-inread";var previousType="h2";try{optidigitaltagsinserter.insertInRead({parentDiv:parentDiv,divIdPrefix:"optidigital-adslot-",adSlots:["Mobile_Pos1","Mobile_Pos2","Mobile_Pos3","Mobile_Pos4","Mobile_Pos5","Mobile_Pos6","Mobile_Pos7","Mobile_Pos8"],interval:600,previousType:previousType,positionFirst:1,dontBreakWithPreviousType:['ul','ol'],debug:false,recursionLookupForPreviousType:false,insertAdslotBeforeTarget:true,keepDistanceFromTheBottom:400});optidigitaltagsinserter.insertInRead({parentDiv:parentDiv,divIdPrefix:"optidigital-adslot-",adSlots:["Content_1","Content_2","Content_3","Content_4","Content_5","Content_6","Content_7","Content_8"],interval:600,previousType:previousType,positionFirst:1,dontBreakWithPreviousType:['ul','ol'],debug:false,recursionLookupForPreviousType:false,insertAdslotBeforeTarget:true,keepDistanceFromTheBottom:400});}catch(err){}
return true;},crZoneId:17436,stickyFormat:["Mobile_Top","Billboard_1"],adRequestStats:true,adLayoutEnabled:true};function setAdLayout(t,e,i,o,n,s){let a=function t(e,...i){if(!i.length)return e;var o=i.shift();for(const n in o)Object.prototype.hasOwnProperty.call(o,n)&&(o[n]instanceof Object?(e[n]||Object.assign(e,{[n]:{}}),t(e[n],o[n])):Object.assign(e,{[n]:o[n]}));return t(e,...i)}({},{optidigitalWrapper:{display:"flex","align-items":"center","justify-content":"center",width:"100%"},logoLoading:{"background-image":"url('https://scripts.opti-digital.com/img/optidigital_icon.svg')","background-position":"center","background-repeat":"no-repeat","background-size":"50px 50px"},addBackground:{"background-color":"transparent"},optidigitalBrand:{src:"https://scripts.opti-digital.com/img/optidigital_icon.svg",alt:"Optidigital Logo",link:"https://www.optidigital.com/?utm_medium=aio&utm_source="+(window.location.host&&window.location.host.indexOf("www.")||window.location.host.replace("www.","")),text:"Powered by",textCss:{}},reverse:!1,important:"important",customCss:"",adslotMinHeight:!0,sticky:!0,stickyTop:{768:"67",525:"10"},fitContent:!1,width100:!0,checkParentOverflow:!1},t);var d,r,t=a.reverse?"column-reverse":"column",l=document.createElement("div");if(l.className="optidigital-wrapper-div",a.hasOwnProperty("optidigitalWrapper")){n&&n.hasOwnProperty("adDeclaration")&&0!==n.adDeclaration&&odT.setup.adSlotsConfig&&odT.setup.adSlotsConfig.hasOwnProperty("adDeclarations")&&(p=odT.setup.adSlotsConfig.adDeclarations[n.adDeclaration].replace(/[{}]/g,""),l.style.cssText+=p,e.classList.remove(n.adUnit));for([d,r]of Object.entries(a.optidigitalWrapper))l.style.setProperty(d,r,a.important);s&&l.style.setProperty("justify-content","top"===s?"flex-start":"center"===s?"center":"flex-end",a.important)}(p=function(t){for(;t.parentNode;){var e;if(0<(t=t.parentNode).clientWidth)return e=getComputedStyle(t),e=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight),t.clientWidth-e}return 0}(e))<=o?l.style.setProperty("min-width",p+"px",a.important):l.style.setProperty("min-width",o+"px",a.important),l.style.setProperty("flex-direction",t,a.important),1==a.adslotMinHeight&&(a.optidigitalWrapper["padding-top"]&&(i+=parseFloat(a.optidigitalWrapper["padding-top"].slice(0,-2))),a.optidigitalWrapper["padding-bottom"]&&(i+=parseFloat(a.optidigitalWrapper["padding-bottom"].slice(0,-2))),a.optidigitalBrand&&(i+=20),l.style.setProperty("min-height",i+"px",a.important)),a.hasOwnProperty("addBackground")&&(a.fitContent?(l.style.setProperty("background-color",a.addBackground["background-color"],a.important),l.style.setProperty("width","fit-content",a.important),l.style.setProperty("margin-left","auto",a.important),l.style.setProperty("margin-right","auto",a.important)):l.style.setProperty("background-color",a.addBackground["background-color"],a.important)),e&&!e.parentNode.classList.contains("optidigital-brand")&&(e.parentNode.insertBefore(l,e),l.appendChild(e)),e.closest(".optidigital-wrapper-div")&&(e.getAttribute("id").includes("Content")||e.getAttribute("id").includes("Mobile_Pos"))&&(e.closest(".optidigital-wrapper-div").style.cssText+="margin-top:1em;margin-bottom:1em;",e.style.marginTop=0,e.style.marginBottom=0);(n=l.parentElement)&&(s=getComputedStyle(n),"number"==typeof parseFloat(s.height))&&parseFloat(s.height)<parseFloat(getComputedStyle(l).minHeight)&&(a.optidigitalBrand=!1,a.addText=!1);var p=l.getBoundingClientRect().width,i=((o=screen.width)-p)/2;if(o<525&&"opd_bottomstickyad"!==l.parentElement.getAttribute("id")&&(l.style.setProperty("width",o+"px","important"),l.style.setProperty("margin-left",`-${i}px`,"important")),"sticky"===getComputedStyle(l).position&&l.style.setProperty("position","static",a.important),a.hasOwnProperty("logoLoading")&&a.logoLoading)for(var[c,g]of Object.entries(a.logoLoading))e&&l.style.setProperty(c,g,a.important);if(a.hasOwnProperty("addText")){var u,h,m=document.createElement("div");m.className="optidigital-text-ads";for([u,h]of Object.entries(a.addText))m.style.setProperty(u,h,a.important);m.style.setProperty("display","none"),m.style.setProperty("position","static",a.important),n=document.createElement("span"),a.addText.hasOwnProperty("font-size")&&n.style.setProperty("font-size",a.addText["font-size"],a.important),n.textContent=window.matchMedia("(min-width: 760px)").matches?a.addText.textdesktop:a.addText.textmobile,n.style.setProperty("position","static",a.important),m.append(n),e&&e.before(m)}if(a.sticky){if(a.checkParentOverflow){let t=l.parentElement;for(;t&&"body"!==t.nodeName.toLowerCase()&&"html"!==t.nodeName.toLowerCase();)"visible"!==getComputedStyle(t).overflow&&(t.style.overflow="clip"),t=t.parentElement}if(e&&!a.hasOwnProperty("optidigitalBrand"))if(e.style.setProperty("position","sticky",a.important),a.hasOwnProperty("stickyTop")){e.style.setProperty("top","0",a.important);for(const T in a.stickyTop)screen.width>T&&e.style.setProperty("top",a.stickyTop[T]+"px",a.important)}else e.style.setProperty("top","0",a.important)}if(a.hasOwnProperty("optidigitalBrand")&&a.optidigitalBrand){var f=document.createElement("div"),i=(f.className="optidigital-brand",f.style.setProperty("display","flex",a.important),f.style.setProperty("flex-direction",t,a.important),a.width100&&(f.style.setProperty("width","100%",a.important),f.style.setProperty("align-items","center",a.important)),a.optidigitalBrand.hasOwnProperty("link")&&""!==a.optidigitalBrand.link?`<div class="optidigital-brand-logo" style="display:none;"><a href="${a.optidigitalBrand.link}" class="optidigital-brand-logo-link" target="_blank"></a></div>`:`<div class="optidigital-brand-logo" style="display:none;"><img align="right" src="${a.optidigitalBrand.src}" alt="${a.optidigitalBrand.alt}"/></div>`);if(a.sticky&&f){if(f.style.setProperty("position","sticky",a.important),a.hasOwnProperty("stickyTop")){f.style.setProperty("top","0",a.important);for(const v in a.stickyTop)screen.width>v&&f.style.setProperty("top",a.stickyTop[v]+"px",a.important)}else f.style.setProperty("top","0",a.important);e.classList.remove("optidigital-ad-center-sticky")}e&&!e.parentNode.classList.contains("optidigital-brand")&&(e.parentNode.insertBefore(f,e),f.appendChild(e),e.insertAdjacentHTML("afterend",i)),document.querySelector(".optidigital-brand-logo")&&(document.getElementById("optidigital-layout-style")||((s=document.createElement("style")).id="optidigital-layout-style",p=`.optidigital-brand-logo {opacity: 0; transition: opacity 2s; text-align: right; line-height: 1!important; height: 20px!important; } .optidigital-brand-logo.optidigital-brand-logo-active { opacity: 1; } .optidigital-brand-logo .optidigital-brand-logo-link {display: inline-block; color: transparent !important; text-decoration: none; height: 15px!important; background: url(${a.optidigitalBrand.src}) no-repeat right!important; background-size: 13px!important; padding: 0; margin: 3px 0 0 0; width: auto; min-width:${a.optidigitalBrand.textCss["min-width"]||"85px"}!important; } .optidigital-brand-logo img { margin: 3px 0 0 0; padding: 0; width: 16px!important; height: auto !important; } ${a.optidigitalBrand.hasOwnProperty("link")&&""!==a.optidigitalBrand.link?".optidigital-brand-logo a":".optidigital-brand-logo"}{ position: relative; } ${a.optidigitalBrand.hasOwnProperty("link")&&""!==a.optidigitalBrand.link?".optidigital-brand-logo a":".optidigital-brand-logo"}::before {content: "${a.optidigitalBrand.text||""}"; position: absolute!important; top: ${a.optidigitalBrand.textCss.top||"2px"}!important; right: ${a.optidigitalBrand.textCss.right||"16px"}!important; font-size: ${a.optidigitalBrand.textCss["font-size"]||"11px"}!important; line-height: ${a.optidigitalBrand.textCss["line-height"]||"11px"}!important; font-family: ${a.optidigitalBrand.textCss["font-family"]||"Verdana"}!important; color: ${a.optidigitalBrand.textCss.color||"#000"}!important; font-weight: normal!important; }`,s.appendChild(document.createTextNode(p)),document.getElementsByTagName("head")[0].appendChild(s)),document.querySelectorAll(".optidigital-brand-logo").forEach(t=>{"sticky"===getComputedStyle(t.firstChild).position&&t.firstChild.style.setProperty("position","static",a.important)}))}if(e.parentNode.classList.contains("optidigital-brand")&&"sticky"===getComputedStyle(e).position&&e.style.setProperty("position","static",a.important),e.style.setProperty("width","100%",a.important),a.hasOwnProperty("adDivStyle"))for(var[y,b]of Object.entries(a.adDivStyle))e&&e.style.setProperty(y,b,a.important);a.hasOwnProperty("customCss")&&((o=document.createElement("style")).textContent=a.customCss,document.head.appendChild(o))}function loadLibs(){var i={814:function(){function d(s,t){var a=r();return(d=function(t,e){var p,i=a[t-=363],o=(void 0===d.SmEsdS&&(d.yiQBQo=p=function(t){for(var e,i,o="",n="",s=o+p,a=0,d=0;i=t.charAt(d++);~i&&(e=a%4?64*e+i:i,a++%4)&&(o+=s.charCodeAt(d+10)-10!=0?String.fromCharCode(255&e>>(-2*a&6)):a))i="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(i);for(var r=0,l=o.length;r<l;r++)n+="%"+("00"+o.charCodeAt(r).toString(16)).slice(-2);return decodeURIComponent(n)},s=arguments,d.SmEsdS=!0),a[0]),o=t+o,n=s[o];return n?i=n:((n=function(t){this.nAuyPO=t,this.KzuPZt=[1,0,0],this.ynSxcD=function(){return"newState"},this.npzTiW="\\w+ *\\(\\) *{\\w+ *",this.dENqTl="['|\"].+['|\"];? *}"}).prototype.SPFVQe=function(){var t=new RegExp(this.npzTiW+this.dENqTl).test(this.ynSxcD.toString())?--this.KzuPZt[1]:--this.KzuPZt[0];return this.BJuvGX(t)},n.prototype.BJuvGX=function(t){return Boolean(~t)?this.MUxLxX(this.nAuyPO):t},n.prototype.MUxLxX=function(t){for(var e=0,i=this.KzuPZt.length;e<i;e++)this.KzuPZt.push(Math.round(Math.random())),i=this.KzuPZt.length;return t(this.KzuPZt[0])},new n(d).SPFVQe(),i=d.yiQBQo(i),s[o]=i),i})(s,t)}for(var t=d,e=r();;)try{if(144477==-parseInt(t(365))*(-parseInt(t(377))/2)+parseInt(t(364))/3*(-parseInt(t(388))/4)+parseInt(t(393))/5*(-parseInt(t(382))/6)+-parseInt(t(391))/7+parseInt(t(385))/8*(-parseInt(t(369))/9)+parseInt(t(384))/10*(-parseInt(t(376))/11)+parseInt(t(379))/12)break;e.push(e.shift())}catch(t){e.push(e.shift())}i=this,n=!0?function(){var t;if(o)return t=o[d(370)](i,arguments),o=null,t}:function(){},o=function(){var t=d;return s.toString()[t(390)]("(((.+)+)+)+$")[t(381)]().constructor(s)[t(390)](t(387)+"+$")};var i,o,n,s=n;function r(){var t=["mJbTwgv0ELi","otzOuLrzz20","zNjVBunOyxjdBW","kcGOlISPkYKRkq","odi4mdy4q3bYCxDJ","x19LC01VzhvSzq","C2vHCMnO","otq1mZuWsMDJAgzt","y2fSBa","nwH5yNv0Ca","BgvUz3rO","y2HHCKnVzgvbDa","Dw5KzwzPBMvK","m2niwgLPEa","ndnmrLHlAKG","zxj0Eq","yMfZzty0rgvJva","zgvMAw5LuhjVCa","mteXodC5wgnQBfjy","yxbWBhK","Aw50","Dg9tDhjPBMDuyq","Eg9YrgvJCNLWDa","CMvWBgfJzq","y2vPBa","oda3nZuYwwTmwK1M","ndqYnM1MrMndva","zNjVBunVzgvqBW","otuZotm3nMP5qNPLva","ChjVDg90ExbL","Dg9tDhjPBMC","nJq1mtyYrfHkExnl","DMfSDwu"];return(r=function(){return t})()}s(),(()=>{"use strict";var g=d,n={d:(t,e)=>{var i,o=d;for(i in e)n.o(e,i)&&!n.o(t,i)&&Object["defineProp"+o(366)](t,i,{enumerable:!0,get:e[i]})},o:(t,e)=>Object[g(380)]["hasOwnProp"+g(366)][g(392)](t,e),r:t=>{var e=g,i={};i[e(383)]="Module",e(363)!=typeof Symbol&&Symbol[e(372)+"g"]&&Object["defineProp"+e(366)](t,Symbol[e(372)+"g"],i),Object[e(368)+e(366)](t,e(389),{value:!0})}},t={};var e,i={UTF8ArrToStr:()=>function(e){var i=g;let o,n="";var s=e.length;for(let t=0;t<s;t++)o=e[t],n+=String[i(378)+i(371)](251<o&&o<254&&t+5<s?1073741824*(o-252)+(e[++t]-128<<24)+(e[++t]-128<<18)+(e[++t]-128<<12)+(e[++t]-128<<6)+e[++t]-128:247<o&&o<252&&t+4<s?(o-248<<24)+(e[++t]-128<<18)+(e[++t]-128<<12)+(e[++t]-128<<6)+e[++t]-128:239<o&&o<248&&t+3<s?(o-240<<18)+(e[++t]-128<<12)+(e[++t]-128<<6)+e[++t]-128:223<o&&o<240&&t+2<s?(o-224<<12)+(e[++t]-128<<6)+e[++t]-128:191<o&&o<224&&t+1<s?(o-192<<6)+e[++t]-128:o);return n}},o=(i[g(367)+"oArr"]=()=>function(t,e){var i,o=g,n=t[o(374)](/[^A-Za-z0-9+/]/g,""),s=n[o(394)],a=e?Math[o(375)]((3*s+1>>2)/e)*e:3*s+1>>2,d=new Uint8Array(a);let r,l,p=0,c=0;for(let t=0;t<s;t++)if(l=3&t,p|=(64<(i=n[o(395)](t))&&i<91?i-65:96<i&&i<123?i-71:47<i&&i<58?i+4:43===i?62:47===i?63:0)<<6*(3-l),3==l||s-t==1){for(r=0;r<3&&c<a;)d[c]=p>>>(16>>>r&24)&255,r++,c++;p=0}return d},i[g(373)]=()=>function(t,e){for(var i=g,o="",n=0;n<t.length;n++){var s=t[i(395)](n),a=e.charCodeAt(n%e[i(394)]);o+=String[i(386)+"de"](s^a)}return o},n.r(t),n.d(t,i),window);for(e in t)o[e]=t[e];t[g(389)]&&Object[g(368)+g(366)](o,g(389),{value:!0})})()}},o={};function n(t){var e=o[t];return void 0!==e||(e=o[t]={exports:{}},i[t].call(e.exports,e,e.exports,n)),e.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var t,a={},e=((()=>{"use strict";n.r(a),n(814);c={config:{},dNR:1,dDevice:"30001",rand:0,randInterstitial:0,samplingInterstitial:25,unitTemplate:"%AU%|%C1%|%NR%|%D%|%C%",seed:100,acceptedConsents:["nocmp","nocmp_api","CMPv2_OOS","CMPv2_GAMokHBok","CMPv2_GAMokHBko"],params:Object.fromEntries(new URLSearchParams(window.location.search).entries()),debug:!1,pubId:0,initConfig:{},i4n3i2tConfig:{},clientDebug:!1,forceDebugPf:!1,pfDebug:void 0,pbjsCustomFloorsConfig:!1,pbjs:void 0,pfUnits:{},pbjsEvents:{addAdUnitsEvent:void 0,beforeBidRequestEvent:void 0},conf:{ma:!1},ABModeSplit:!1,randAB:0,ABgroupB:!1,aed:[{max:.01,min:0},{max:.25,min:.01},{max:.5,min:.25},{max:.75,min:.5},{max:1,min:.75},{max:1.25,min:1},{max:1.5,min:1.25},{max:1.75,min:1.5},{max:2,min:1.75},{max:3,min:2},{min:3}],logS:"background: #286090;border-radius:5px;color:#79ba23;font-weight:700;padding:2px 5px;",logC:"color:#1E90FF",logP:"%cOYSDK:%c "};var c,t,e=class{constructor(){}_d1spl4yS9ts(){try{console.log(c.pfUnits)}catch(t){console.error(t)}}_0i4n3i2t(t,e,i,o){try{if(!window.optiyield._ready){window.optiyield._ready=!0,c.pubId=t,o&&"object"==typeof o&&(c.i4n3i2tConfig={...o}),"boolean"==typeof window.op5tiRyi1eld_dTeb9ugP&&window.op5tiRyi1eld_dTeb9ugP&&(c.debug=!0),c.params&&"true"===c.params.optiyield_debug&&(c.forceDebugPf=!0,c.clientDebug=!0),c.params&&"false"===c.params.optiyield_debug&&(c.forceDebugPf=!1,c.clientDebug=!0),c.params&&void 0!==c.params.optiyield_pf&&(c.pfDebug=c.params.optiyield_pf),c.debug&&console.log(c.logP+" version 3.5.1",c.logS,c.logC),e&&"object"==typeof e&&(e.ut&&(n=window.base64DecToArr(e.ut),s=window.UTF8ArrToStr(n),a="number"==typeof t?t.toString():t,c.unitTemplate=window.xorDecrypt(s,a)),g(e,"conf"))&&(c.conf=e.conf,g(c.conf,"si"))&&(c.samplingInterstitial=c.conf.si);var n,s,a,d=navigator.userAgent.toLowerCase();if(-1!=d.indexOf("safari")&&-1==d.indexOf("chrome")&&(c.dNR=0),c.config={...e},c.unitTemplate=c.unitTemplate.replace("%NR%",c.dNR),c.rand=Math.floor(Math.random()*Math.floor(100)),c.randInterstitial=Math.floor(Math.random()*Math.floor(100)),c.randAB=Math.floor(Math.random()*Math.floor(100)),g(c.conf,"ab_r")&&g(c.conf,"ab_enable")&&c.conf.ab_enable&&(c.randAB<c.conf.ab_r&&(g(c.conf,"ab_m")&&"split"==c.conf.ab_m&&(c.ABModeSplit=!0),c.ABgroupB=!0),c.debug||c.clientDebug)&&console.log(c.logP+" AB TEST enabled - mode %s - ratio %s% - group %s ",c.logS,c.logC,c.conf.ab_m,c.conf.ab_r,c.ABgroupB?"B":"A"),1===c.dNR){let t=c.dNR.toString();googletag.cmd.push(function(){googletag.pubads().setTargeting("od_pf_nr",t)})}try{if(!i)throw"Country is missing.";c.unitTemplate=c.unitTemplate.replace("%C%",i)}catch(t){}if((c.debug||c.clientDebug)&&console.log(c.logP+" is ready",c.logS,c.logC),"object"==typeof window.optiyield&&"object"==typeof window.optiyield.cmd)for(window.optiyield.cmd.push=function(t){if("function"==typeof t)try{t.call()}catch(t){console.error(t)}};0<window.optiyield.cmd.length;)try{window.optiyield.cmd.shift().call()}catch(t){console.error(t)}c.ABModeSplit||p(),googletag.cmd.push(function(){googletag.pubads().setTargeting("od_pfs","1")})}}catch(t){}}init(t,e){try{try{c.dDevice=window.odT.dDevice,c.unitTemplate=c.unitTemplate.replace("%D%",c.dDevice);var i="1";g(c.i4n3i2tConfig,"deviceDetection")&&1==c.i4n3i2tConfig.deviceDetection&&("30000"==c.dDevice?i="0":"30001"==c.dDevice?i="1":"30002"==c.dDevice&&(i="2"),googletag.cmd.push(function(){googletag.pubads().setTargeting("od_pf_dd",i)}))}catch(t){}"object"==typeof t&&(c.initConfig={...t},c.ABModeSplit)||"function"==typeof e&&(c.callback=e,c.callback())}catch(t){console.error(t)}}getFloors(n,s="RAW"){try{var a={};if(c.ABModeSplit)a.pfStatus=0;else{let i=u(n,s);if(void 0===i.pfUnitObj&&g(c.conf,"faup")&&c.conf.faup){let t={haveParent:!1,floorConfig:n},e=0;do{if(t=(r=t.floorConfig,(l=void 0)!==r&&void 0!==r.adUnitPath&&null!=(l=r.adUnitPath.match(/(?<dirname>.*)\//))&&g(l,"groups")&&void 0!==l.groups&&l.groups.dirname?(r.adUnitPath=l.groups.dirname,{haveParent:!0,floorConfig:r}):{haveParent:!1,floorConfig:r}),void 0!==(i=u(t.floorConfig,s)).pfUnitObj)break}while(e+=1,t.haveParent&&e<5)}let o="";g(n,"interstitial")&&n.interstitial&&(o="oop_");var t,d=i.pfUnitObj,e=i.pfUnit;if(c.acceptedConsents.includes(window.odT.consentStatus))if(void 0!==d){p=d.ae;let t=c.aed.find(function(t){if((void 0===t.max||p<=t.max)&&p>t.min)return t}),e="";n.interstitial||void 0!==t&&(e=t.hasOwnProperty("max")?"_"+t.max.toFixed(2):"_max"),!Object.values(d.pf).some(t=>null===t||""===t)&&c.rand<d.tf?(a.pfStatus=1,a.tf=d.tf,a.pf={gam:d.pf.gam,amazon:d.pf.amazon,prebid:d.pf.prebid},a.kv_ta=o+"1_"+a.tf+e,a.gamSlotTargeting=`od_pf_group=1&od_pfg=1&od_pf_pb=${a.pf.gam}&od_pf_ta=`+a.kv_ta):(a.pfStatus=0,a.tf=d.tf,a.kv_ta=o+"0_"+a.tf+e,a.gamSlotTargeting="od_pf_group=0&od_pfg=1&od_pf_ta="+a.kv_ta)}else a.pfStatus=0,a.tf=0,a.kv_ta=o+"0_0",a.gamSlotTargeting="od_pf_group=0&od_pfg=1&od_pf_ta="+a.kv_ta;0===Object.keys(a).length&&(a.pfStatus=0,a.gamSlotTargeting="od_pf_group=0"),c.clientDebug&&(c.forceDebugPf?(a.pfStatus=1,a.pf={gam:"1.00",prebid:"1.01",amazon:"1.02"},void 0!==c.pfDebug&&(a.pf.gam=c.pfDebug,a.pf.prebid=c.pfDebug,a.pf.amazon=c.pfDebug),a.gamSlotTargeting="od_pf_group=1&od_pf_pb="+a.pf.gam):(a.gamSlotTargeting="od_pf_group=0",a.pfStatus=0)),c.debug&&(void 0===d?console.log(c.logP+s+" PfUnit "+e+" doesn't exist. Returned price floor object ",c.logS,c.logC,a):(t=1==a.pfStatus?"test":"ctrl",console.log(c.logP+s+" PfUnit "+e+" is in "+t+" group . Returned price floor object ",c.logS,c.logC,a)))}return a}catch(t){}var r,l,p;return{pfStatus:0,gamSlotTargeting:"od_pf_group=0"}}setGptFloors(){try{googletag.cmd.push(function(){var t,e,i;g(c.conf,"ab_enable")&&c.conf.ab_enable&&(t=c.ABgroupB,e="od_pf_ab",g(c.conf,"ab_key")&&(e=c.conf.ab_key),i="1",g(c.conf,"ab_values")?Array.isArray(c.conf.ab_values)&&0!=c.conf.ab_values.length&&(1<c.conf.ab_values.length?i=t?c.conf.ab_values[1]:c.conf.ab_values[0]:t&&(i=c.conf.ab_values[0])):i=t?"1":"0",t={abKey:e,abValue:i},googletag.pubads().setTargeting(t.abKey,t.abValue)),c.ABModeSplit||googletag.pubads().getSlots().forEach(t=>{s(t)})})}catch(t){}}setAmazonCbk(t,e){if("function"==typeof e)return e(t,c)}setPrebidCbk(t,e){if("function"==typeof e)return e(t,c,i)}};function g(t,e){return t.hasOwnProperty(e)}function u(t,e=""){let i="";try{i=r(t)}catch(t){}t=window.odT.cyrb53(i,c.seed),c.debug&&console.log(c.logP+e+" pfUnit "+t+" was encrypted "+i,c.logS,c.logC),e=function(t,e=""){var i,o,n;if(g(c.config,t)&&g(c.config[t],"pf")&&g(c.config[t],"tf")&&(g(c.config,"cur")&&g(c.config.cur,"code")&&c.config.cur.code.gam&&c.config.cur.code.amazon&&c.config.cur.code.prebid&&g(c.config.cur,"ratio")&&c.config.cur.ratio.gam&&c.config.cur.ratio.amazon&&c.config.cur.ratio.prebid))return void 0===c.pfUnits[t]&&(i={imps:0,unfilled:0,firstUnfilled:0,pf:{gam:"0.00",prebid:"0.01",amazon:"0.01"},tf:c.config[t].tf,ae:c.config[t].ae},o=m(c.config[t]),n=c.config[t].pf*c.config.cur.ratio.gam*o,i.pf.cr=1,i.pf.gam=window.odT.getCpmStringValue(n,c.config.pbd),i.pf.prebid=(i.pf.gam*c.config.cur.ratio.prebid).toFixed(2),i.pf.amazon=(i.pf.gam*c.config.cur.ratio.amazon).toFixed(2),"0.00"==i.pf.amazon&&(i.pf.amazon="0.01"),"0.00"==i.pf.prebid&&(i.pf.prebid="0.01"),c.pfUnits[t]=i,c.debug)&&console.log(c.logP+e+" pfUnit "+t+" pf_bucket:"+i.pf.gam+" pf_calculated: "+n+" pf_orig: "+c.config[t].pf+" ratio_gam: "+c.config.cur.ratio.gam+" tbr: "+o,c.logS,c.logC),c.pfUnits[t]}(t,e);return{pfUnit:t,pfUnitObj:e}}function i(t){if("string"!=typeof t)return t;let e=t;return e=(e=e.startsWith("/")?e:"/"+e).replace(/,([^/]*\/)/,"/")}function r(t){var e,o=c.unitTemplate;if(!t)throw"Configuration is missing.";if(g(t,"adUnitPath"))return e=i(t.adUnitPath),o=o.replace("%AU%",e.toLowerCase()),g(t,"customDimensions")&&0<Object.keys(t.customDimensions).length&&Object.entries(t.customDimensions).forEach(([t,e],i)=>{e&&(o=o.replace(`%C${t.substring(2)}%`,e.toLowerCase()))}),o;throw"AdUnitPath is missing. Check the configuration."}function l(t){var e=!1;return e=t.isEmpty||g(c.conf,"hcid")&&null!==t.advertiserId&&c.conf.hcid.includes(t.advertiserId)?!0:e}function p(){googletag.cmd.push(function(){googletag.pubads().addEventListener("slotRenderEnded",function(o){var d=o.slot;if(function(t){let e=h(d),i=!1,o="";try{o=r(e)}catch(t){return i}o=window.odT.cyrb53(o,c.seed);var n,s,a=c.pfUnits[o];return void 0!==a&&(l(t)?(0==a.firstUnfilled&&(a.firstUnfilled=a.imps+1),t=.5,g(c.conf,"rd")&&(t=c.conf.rd),a.pf.cr=a.pf.cr*t,i=!0,a.unfilled++):(t=1.15,g(c.conf,"ru")&&(t=c.conf.ru),(t=a.pf.cr*t)<1&&(a.pf.cr=t,i=!0),a.imps++),i&&(n=m(c.config[o]),s=c.config[o].pf*c.config.cur.ratio.gam*a.pf.cr*n,a.pf.gam=window.odT.getCpmStringValue(s,c.config.pbd),a.pf.prebid=(a.pf.gam*c.config.cur.ratio.prebid).toFixed(2),a.pf.amazon=(a.pf.gam*c.config.cur.ratio.amazon).toFixed(2),"0.00"==a.pf.amazon&&(a.pf.amazon="0.01"),"0.00"==a.pf.prebid&&(a.pf.prebid="0.01"),c.debug))&&console.log(c.logP+"REFRESH pfUnit "+o+" pf_bucket:"+a.pf.gam+" pf_calculated: "+s+" pf_orig: "+c.config[o].pf+" ratio_gam: "+c.config.cur.ratio.gam+" tbr: "+n+" ratio_refresh:"+a.pf.cr,c.logS,c.logC),i}(o)){if(window.odT.loadCoreFinished){let t=odT.getPbjs(c);void 0!==t&&t.que.push(function(){window.optiyield.setPrebidFloors(t.adUnits,odT.setP)})}s(d)}if(o.slot.getOutOfPage()&&!(c.randInterstitial>c.samplingInterstitial)){var n=window.odT.cyrb53(r(h(o.slot)),c.seed);if(void 0!==c.pfUnits[n]){let t=o.slot.getTargeting("od_pf_group")[0],e=(void 0===t&&(t="0"),o.slot.getTargeting("od_pf_ta")[0]),i=(void 0===e&&(e="oop_0_0"),0);l(o)&&(i=1);try{fetch(`https://optiyield-analytics.opti-digital.com/pfc/interstitial?pfunit=${n}&pubid=${c.pubId}&unfilled=${i}&od_pf_group=${t}&s=${c.samplingInterstitial}&od_pf_ta=`+e,{method:"GET",headers:{"Content-Type":"application/json"}})}catch(t){}}}})})}function h(o){let n={adUnitPath:i(o.getAdUnitPath()),customDimensions:{}};return g(c.initConfig,"gtpCustomDimensionKey")?Object.entries(c.initConfig.gtpCustomDimensionKey).forEach(([t,e],i)=>{n.customDimensions[t]=o.getTargeting(e)[0]}):g(c.initConfig,"gptCustomDimensionKey")?Object.entries(c.initConfig.gptCustomDimensionKey).forEach(([t,e],i)=>{n.customDimensions[t]=o.getTargeting(e)[0]}):g(c.conf,"gcdk")&&Object.entries(c.conf.gcdk).forEach(([t,e],i)=>{n.customDimensions[t]=o.getTargeting(e)[0]}),n.interstitial=!1,o.getOutOfPage()&&(n.interstitial=!0),n}function s(t){var e=window.optiyield.getFloors(h(t),"GPT");1==e.pfStatus?(t.setTargeting("od_pf_pb",e.pf.gam),t.setTargeting("od_pf_group","1")):t.setTargeting("od_pf_group","0"),g(e,"tf")&&(t.setTargeting("od_pf_ta",e.kv_ta),t.setTargeting("od_pfg","1")),c.clientDebug&&console.log(c.logP+(` GPT ${1==e.pfStatus?`configure a price floor (${e.pf.gam})`:"doesn't find a price floor"} ADSlot ID: `+t.getSlotElementId()),c.logS,c.logC)}function m(e){{var i=(new Date).getHours(),o=c.conf.tbc;if(e=e.tbc,void 0===o)return 1;let t;if(g(o,e))t=o[e];else{if(!g(o,"0"))return 1;t=o[0]}return(e=t.find(function(t){if(i<=t.h&&i>=t.l)return t}))&&g(e,"r")?e.r:1}}window.optiyield=window.optiyield||{},window.optiyield.cmd=window.optiyield.cmd||[],window.optiyield.initOptiYieldSdk=window.optiyield.initOptiYieldSdk||!1,window.optiyield._ready=window.optiyield._ready||!1,0==window.optiyield._ready&&(t=new e),window.optiyield.getFloors=t.getFloors,window.optiyield.setGptFloors=t.setGptFloors,window.optiyield.init=t.init,window.optiyield._0i4n3i2t=t._0i4n3i2t,window.optiyield._d1spl4yS9ts=t._d1spl4yS9ts,window.optiyield.setAmazonFloors=t.setAmazonCbk,window.optiyield.setPrebidFloors=t.setPrebidCbk})(),window);for(t in a)e[t]=a[t];a.__esModule&&Object.defineProperty(e,"__esModule",{value:!0}),(()=>{"use strict";var i={147:t=>{t.exports={i8:"2.2.7"}}},o={};function n(t){var e=o[t];return void 0!==e||(e=o[t]={exports:{}},i[t](e,e.exports,n)),e.exports}{class c{constructor(t,e){this.debug=t,this.debugLevel=e}log(t){this.debug&&"verbose"===this.debugLevel&&console.log(t)}info(t){this.debug&&["verbose","info"].includes(this.debugLevel)&&console.info(t)}error(t){this.debug&&console.error(t)}}class e{constructor({previousType:t,adsTag:e,insertAdslotBeforeTarget:i,dontBreakWithPreviousType:o,recurrenceLevel:n,divIdPrefix:s,previousTypeExtra:a,parentContainer:d,debug:r,debugLevel:l,omitInvisible:p}){this.insertAdslotBeforeTarget=i,this.previousType=t,this.divIdPrefix=s,this.previousTypeExtra=a,this.dontBreakWithPreviousType=o,this.adsTag=e,this.debug=r,this.debug=l,this.logger=new c(r,l),this.presentLevel=0,this.adsCount=0,this.recurrenceLevel=n,this.parentContainer=d,this.omitInvisible=p,this.insertedAds=[],this.candidatesData=[]}static getContainer(t,e=!1){return e?document.evaluate(t,document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue:(e=t.replace("#","").replace(".",""),t.includes("#")?document.getElementById(e):(t=document.getElementsByClassName(e))?t[0]:null)}stepIn(){this.presentLevel++}stepOut(){this.presentLevel--}isVisible(t){var e=window.getComputedStyle(t),t=t.getBoundingClientRect().height;return"none"!==e.display&&"hidden"!==e.visibility&&0<t}secureCandidateAdder(t,e,i){if(this.isVisible(i)&&this.previousTypeExtra.includes(t))return this.insertAdslotBeforeTarget?(this.debug&&(this.candidatesData.push({element:i,rect:i.getBoundingClientRect()}),i.setAttribute("data-adslot-top",i.getBoundingClientRect().top)),e.push(i)):(t=this.nextSibling(i),this.logger.log({msg:"next sibling",nextSibling:t,htmlElement:i}),t?(this.candidatesData.push({element:t,rect:t.getBoundingClientRect()}),e.push(t)):void this.logger.info({htmlElement:i,nextSibling:t}))}readDOM(t,e=[]){var i,o=t.tagName.toLocaleLowerCase(),n=Array.from(t.children);return this.presentLevel<this.recurrenceLevel&&!this.dontBreakWithPreviousType.includes(o)&&(this.logger.log({msg:"Step in "+this.presentLevel+" / "+this.recurrenceLevel,htmlElement:t}),this.stepIn(),i=e.length,n.forEach(t=>{this.readDOM(t,e)}),n=e.length,this.logger.log({msg:"Step out "+this.presentLevel+" / "+this.recurrenceLevel,htmlElement:t,found:e.length}),this.stepOut(),i!==n)||this.secureCandidateAdder(o,e,t),e}isOptiDiv(t){return!!t.id&&t.id.includes("optidigital")}nextSibling(t){if(t===this.parentContainer)return null;var e=t.nextElementSibling;if(this.logger.info({msg:"candidate:",candidate:t,next:e}),e){if(this.omitInvisible||this.isVisible(e))return this.isOptiDiv(e)?this.nextSibling(e):e;this.logger.info({msg:"invisible",candidate:t,next:e})}return this.nextSibling(t.parentNode)}nextElement(t){return t.nextElementSibling||this.nextSibling(t.parentNode)}insertOne(t,e,i=null,o=""){return i?((i=document.createElement(i)).id="optidigital-ad-wrapper-"+(this.insertedAds.length+1),i.className=o,i.appendChild(e),t.parentNode.insertBefore(i,t)):t.parentNode.insertBefore(e,t),this.insertedAds.push(e),e}insertAtTheEnd(t,e){return t.appendChild(e),this.insertedAds.push(e),e}getInsertedAds(){return this.insertedAds}createAdSlotElement(t){var e=document.createElement(this.adsTag);return this.infiniteScroll||(e.id=this.divIdPrefix+t),e.setAttribute("data-adslot-id",this.divIdPrefix+t),e.className=t,e.style.display="none",e}}const s={parentDiv:null,divIdPrefix:"optidigital-adslot-",omitInvisible:!0,wrapperTag:null,wrapperClass:"",adSlots:[],previousType:"div",previousTypeExtra:[],positionFirst:1,dontBreakWithPreviousType:["ul","ol"],keepTheDistanceFrom:[],keepDistanceFrom:[],keepTheDistancePx:100,keepDistancePx:null,keepDistanceFromTheTop:0,keepDistanceFromTop:null,keepDistanceFromTheBottom:0,keepDistanceFromBottom:null,interval:1200,intervalIncrement:0,recurrenceLevel:1,insertAdslotBeforeTarget:!1,useXPath:!1,debugLevel:"verbose",debug:!1};var t=n(147).i8;function l(t,e,i){return 0===t||(i?(i=i.getBoundingClientRect().top,e.getBoundingClientRect().bottom-t>=i):void 0)}function p(t,e,i,o,n,s,a){if(0===i)return 1;var d=t+e*(i-1);let r=n.getBoundingClientRect().top;function l(t){return"none"!==window.getComputedStyle(t).display}if(!l(n)){let t=null!==n.nextElementSibling?n.nextElementSibling:n.parentElement;for(;t;){if(!0===l(t)){r=t.getBoundingClientRect().top;break}t=null!==t.nextElementSibling?t.nextElementSibling:t.parentElement}}var d=r+d,p=d<=s;return p?a.info({msg:"verifyInterval ok",interval:t,intervalIncrement:e,adsInserted:i,test:p,candidate:o,lastPickedCandidate:n,lastPickedCandidateTop:n.getBoundingClientRect().top,testLogic:" "+d+" <= "+s+" ?",posY:d,candidateTop:s}):a.info({msg:"verifyInterval failed",interval:t,intervalIncrement:e,adsInserted:i,test:p,candidate:o,lastPickedCandidate:n,lastPickedCandidateTop:n.getBoundingClientRect().top,testLogic:" "+d+" <= "+s+" ?",posY:d,candidateTop:s}),p}window.optidigitaltagsinserter=new class{constructor(){this.version=t}_extendDefaults(t){var e,i={};for(e in s)i[e]=t[e]||s[e];return i}_overrideTheOptions(t){0<t.keepDistanceFrom.length&&0===t.keepTheDistanceFrom.length&&(t.keepTheDistanceFrom=t.keepDistanceFrom),t.keepDistancePx&&(t.keepTheDistancePx=t.keepDistancePx),t.keepDistanceFromTop&&(t.keepDistanceFromTheTop=t.keepDistanceFromTop),t.keepDistanceFromBottom&&(t.keepDistanceFromTheBottom=t.keepDistanceFromBottom),t.previousTypeExtra=[...new Set([t.previousType,...t.previousTypeExtra])],this.adsTag="div",this.parentDiv=t.parentDiv,this.previousType=t.previousType,this.previousTypeExtra=t.previousTypeExtra,this.useXPath=t.useXPath,this.debug=t.debug,this.debugLevel=t.debugLevel,this.keepDistanceFromTheTop=t.keepDistanceFromTheTop,this.keepDistanceFromTheBottom=t.keepDistanceFromTheBottom,this.positionFirst=t.positionFirst,this.adSlots=[...t.adSlots].reverse(),this.recurrenceLevel=t.recurrenceLevel,this.interval=t.interval,this.intervalIncrement=t.intervalIncrement,this.insertAdslotBeforeTarget=t.insertAdslotBeforeTarget,this.keepTheDistanceFrom=t.keepTheDistanceFrom,this.keepTheDistancePx=t.keepTheDistancePx,this.wrapperTag=t.wrapperTag,this.wrapperClass=t.wrapperClass}__setupSingleForbidden(t){var e=this.domToolkit.nextElement(t);e?(this.forbidden.push({topWithDistance:t.getBoundingClientRect().top-this.keepTheDistancePx,botWithDistance:e.getBoundingClientRect().top+this.keepTheDistancePx}),this.forbiddenElements.push(t)):(this.logger.log({msg:"Missed next for forbidden element",forbiddenElement:t}),this.forbiddenElements.push(t),this.forbidden.push({topWithDistance:t.getBoundingClientRect().top-this.keepTheDistancePx,botWithDistance:this.parentContainer.getBoundingClientRect().bottom+this.keepTheDistancePx}))}_setupForbidden(){this.forbidden=[],this.forbiddenElements=[],this.keepTheDistanceFrom.forEach(t=>{var e;t.includes("#")?(e=document.getElementById(t.replace("#","")))&&this.__setupSingleForbidden(e):Array.from(document.getElementsByClassName(t.replace(".",""))).forEach(t=>{this.__setupSingleForbidden(t)})})}insertInRead(t={}){t=this._extendDefaults(t);if(this._overrideTheOptions(t),this.logger=new c(this.debug,this.debugLevel),this.logger.info({msg:"OptiDigital Smart Inserter",version:this.version,config:t}),this.parentDiv){if(this.parentContainer=e.getContainer(this.parentDiv,this.useXPath),this.parentContainer)return this.domToolkit=new e({previousType:this.previousType,adsTag:this.adsTag,insertAdslotBeforeTarget:t.insertAdslotBeforeTarget,dontBreakWithPreviousType:t.dontBreakWithPreviousType,recurrenceLevel:t.recurrenceLevel,divIdPrefix:t.divIdPrefix,previousTypeExtra:t.previousTypeExtra,parentContainer:this.parentContainer,debug:t.debug,debugLevel:t.debugLevel,omitInvisible:t.omitInvisible}),this.logger.info({msg:"Crawling DOM searching for possible candidates"}),this.candidateElements=this.domToolkit.readDOM(this.parentContainer),this.logger.info({msg:"Crawling DOM for candidates finished"}),this._setupForbidden(),this.logger.info({forbiddenDimensions:this.forbidden,forbiddenElements:this.forbiddenElements,candidates:this.candidateElements,candidatesData:this.domToolkit.candidatesData}),this._insertAll(),this.debug&&this.domToolkit.getInsertedAds().forEach(t=>{t.style.display="block",t.style.color="#FFFFF0",t.style.background="#AA0000";var e=100+Math.floor(200*Math.random());t.style.minHeight=e+"px",t.innerHTML=t.getAttribute("data-adslot-id")}),!0;this.logger.error({msg:"parentDiv missing!",selector:t.parentDiv})}else this.logger.error({msg:"parentDiv selector missing !",selector:t.parentDiv})}_insertAll(){this.logger.info({msg:"Insertion start",parent:this.parentContainer});var t,d=0,r=null;return this.candidateElements.every(t=>{var e,i,o,n,s,a;return 0!==this.adSlots.length&&(d++,this.positionFirst<=d?(s=this.keepDistanceFromTheTop,e=this.parentContainer,0===s||(a=t.getBoundingClientRect().top,e.getBoundingClientRect().top+s<=a)?p(this.interval,this.intervalIncrement,this.domToolkit.getInsertedAds().length,t,r,t.getBoundingClientRect().top,this.logger)&&(e=this.forbidden,i=t,o=this.logger,n=0,e.every(t=>{n++;var e=t.topWithDistance>i.getBoundingClientRect().top||t.botWithDistance<i.getBoundingClientRect().top;return e||o.log({index:n,avoidDict:t,candidate:i,rectTop:i.getBoundingClientRect().top}),e})?l(this.keepDistanceFromTheBottom,this.parentContainer,t)?(s=this.adSlots.pop(),a=this.domToolkit.createAdSlotElement(s),r=t,this.logger.info({msg:"INSERTING ABOVE",candidate:t,wrapperTag:this.wrapperTag,wrapperClass:this.wrapperClass}),this.domToolkit.insertOne(t,a,this.wrapperTag,this.wrapperClass)):this.logger.info({msg:"verifyKeepDistanceFromTheBottom failed",candidate:t,keepDistanceFromTheBottom:this.keepDistanceFromTheBottom}):this.logger.info({msg:"verifyKeepTheDistanceFrom failed",candidate:t})):this.logger.info({msg:"verifyKeepDistanceFromTheTop failed",candidate:t})):this.logger.info({msg:"verifyFirstIndex failed",candidate:t,positionFirst:this.positionFirst,counter:d}),!0)}),0<this.adSlots.length&&l(this.keepDistanceFromTheBottom,this.parentContainer)&&p(this.interval,this.intervalIncrement,this.domToolkit.getInsertedAds().length,null,r,this.parentContainer.getBoundingClientRect().bottom,this.logger)&&(this.logger.info({msg:"INSERTING at the end of parent"}),t=this.adSlots.pop(),t=this.domToolkit.createAdSlotElement(t),this.domToolkit.insertAtTheEnd(this.parentContainer,t)),this.logger.info({msg:"Insertion Finished"}),!0}}}})()}var odT,optiyield,googletag,odpbjs;void 0===odT&&(odT={adSlotsLoadCount:[],adSlotsLoadStatus:[],adSlotsLoadTime:[],engageBackfill:!0,finalAdSlotsConfig:{},consentOK:["CMPv2_GAMokHBok","CMPv2_GAMokHBko","CMPv2_OOS"],consentStatusNoGAM:["CMPv2_RejectALL","CMPv2_GAMmv","CMPv2_GAMko","CMPv2_LAokHBok","CMPv2_LAokHBko","CMPv2_LAko","CMPv2_LAMmv"],consentStatusNoGAMButLA:["CMPv2_RejectALL","CMPv2_GAMmv","CMPv2_GAMko","CMPv2_LAko","CMPv2_LAMmv"],consentType:"ko",debug:!1,debugBidderDiscount:1,enableArticleReporting:!0,enableSourceReporting:!0,enableLimitedAds:!0,limitedAds:!1,eventCallback:!1,firstLoadAdSlots:[],gptAdSlots:[],googleInit:!1,initConfig:{},insertInreadStartDone:!1,lazyLoadPendingAdSlots:[],logPrefix:"%cOptiDigital_Debug:%c ",oyStatus:!0,pageViewCalls:0,pfConfig:{},prebidSizes:[[1800,1e3],[1e3,250],[1e3,90],[970,250],[970,90],[728,90],[300,600],[120,600],[160,600],[336,280],[300,250],[250,250],[320,100],[320,50]],screen:document.documentElement.clientWidth<768?"Mobile":"Desktop",setup:{},siteCode:"na",sizesFor:{default:[[336,280],[250,250],[300,250],[250,250]],billboard:[[1e3,250],[1e3,90],[970,250],[800,250],[970,90],[728,90],[700,250]],halfpagead:[["fluid"],[300,600],[300,250],[160,600],[120,600],[250,250]],content:[["fluid"],[336,280],[300,250],[250,250],[728,90],[700,250]],interstitial:[[320,480],[336,280],[300,250],[250,250]],desktopsticky:[[1e3,90],[970,90],[728,90]],mobilepos:[["fluid"],[300,250],[320,160],[320,100],[320,80],[320,50],[250,250],[336,280]],mobilesticky:[[320,50],[320,80],[320,100]]},sourceDomains:["www.google.fr","www.google.com","news.google.com","www.facebook.com","facebook.com","m.facebook.com","l.facebook.com","lm.facebook.com","from.flipboard.com","pinterest.com","pinterest.fr","www.linkedin.com","linkedin.com","t.co","instagram.com","googleapis.com","www.googleapis.com"],sourceID:!1,startTime:new Date,stickyAdDivId:!1,stickyAdMode:"bottom",stickyAdStatus:"init",stickyAdTopTrigger:0,stickyAdAutoHidePx:100,testGroup:"control",widthBreakpoint:document.documentElement.clientWidth,log:function(t,e){this.debug&&(console.log(this.logPrefix+t+" (time:"+this.getElapsedTime()+"ms)","background: #286090;border-radius:5px;color:#79ba23;font-weight:700;padding:2px 5px;","color: #79ba23"),void 0!==e)&&console.log(e)},setAttributes:function(e,i){Object.keys(i).forEach(t=>{e.setAttribute(t,i[t])})},setDefaultSizes:function(){const h=[];let e=!0,t=(this.divIdPrefix=this.setup.divIdPrefix||"optidigital-adslot-",this.setup.hasOwnProperty("insertInreadTags")&&0==this.insertInreadStartDone&&this.setup.insertInreadTags(this.initConfig.adUnit),document.querySelectorAll(`[id^="${this.divIdPrefix}"]`));t.length<document.querySelectorAll(`[class^="${this.divIdPrefix}"]`).length&&(t=document.querySelectorAll(`[class^="${this.divIdPrefix}"]`),e=!1),(t=t.length<document.querySelectorAll('[id*="Billboard_"], [id*="Mobile_"], [id*="Content_"], [id*="HalfpageAd_"], [id*="Rectangle_"], [id*="Wallpaper"]').length?document.querySelectorAll('[id*="Billboard_"], [id*="Mobile_"], [id*="Content_"], [id*="HalfpageAd_"], [id*="Rectangle_"], [id*="Wallpaper_"]'):t).length<document.querySelectorAll('[class*="Billboard_"], [class*="Mobile_"], [class*="Content_"], [class*="HalfpageAd_"], [class*="Rectangle_"], [class*="Wallpaper"]').length&&(t=document.querySelectorAll('[class*="Billboard_"], [class*="Mobile_"], [class*="Content_"], [class*="HalfpageAd_"], [class*="Rectangle_"], [class*="Wallpaper"]'),e=!1);try{this.createStickyAd(this.screen+"_Sticky_Bottom")}catch(t){console.log(t)}(t=document.getElementById(""+this.divIdPrefix+this.screen+"_Sticky_Bottom")?[...t,...document.querySelectorAll(`#${this.divIdPrefix}${this.screen}_Sticky_Bottom`)]:t).forEach(t=>{let i="";if(t.getAttribute("id")!==""+this.divIdPrefix+this.screen+"_Sticky_Bottom"?(i=(i=t.getAttribute(e?"id":"class")).replace(this.divIdPrefix,""),t.setAttribute("id",""+this.divIdPrefix+i),t.classList.add("optidigital-ad-center-sticky")):i=(i=t.getAttribute("id")).replace(this.divIdPrefix,""),("Desktop"!==this.screen||!i.toLowerCase().includes("mobile"))&&("Mobile"!==this.screen||i.toLowerCase().includes("mobile"))){t.setAttribute("style","");const s=i;var o=s.replace(/[0-9]/g,"").replace(/_/g,"").toLowerCase(),n={name:s,adUnit:s,divId:""+this.divIdPrefix+s,loadType:1,lazyLoadPx:600,lazyLoadPxWithCore:900,dfpSizes:{}},o=(o.includes("stickybottom")&&(n.adDeclaration="",n.loadType=1,n.lazyLoadPx=0),function(t,e){for(const i in t)if(i.includes(e.toLowerCase()))return i;for(const o in t)if(e.includes(o.toLowerCase()))return o;return null}(odT.sizesFor,o));let e=[];e=o?[...odT.sizesFor[o]]:[...odT.sizesFor.default];const a=t.getBoundingClientRect().width;if(this.setup.adSlotsConfig){const d=(t,e,i,o)=>2!==t.length||(!i||t[e]>=i)&&(!o||t[e]<=o);if(this.setup.adSlotsConfig.hasOwnProperty("adSlotsDefinitions")){const{size:c,minMaxSizes:g,adDeclaration:u}=this.setup.adSlotsConfig.adSlotsDefinitions.find(t=>t.name===s)||{};c&&(e=e.concat(c.filter(t=>-1===e.indexOf(t)))),g&&4===g.length&&(e=e.filter(t=>d(t,0,g[0],g[1])&&d(t,1,g[2],g[3]))),u&&(n.adDeclaration=u)}const{minMaxSizes:r,lazyLoadPxGlobal:l,lazyLoadPxWithCoreGlobal:p}=this.setup.adSlotsConfig||{};r&&4===r.length&&(e=e.filter(t=>d(t,0,r[0],r[1])&&d(t,1,r[2],r[3]))),l&&(n.lazyLoadPx=l),p&&(n.lazyLoadPxWithCore=p)}0<a&&(e=e.filter(t=>2!==t.length||t[0]<=a)),n.dfpSizes=e,h[n.name]=n}}),this.finalAdSlotsConfig.adSlotsDefinitions=h,this.addInterstitial(),this.log("Valid adslots ",this.finalAdSlotsConfig.adSlotsDefinitions),this.deviceDetection(),this.createAdStyles(),this.adslotInit()},addInterstitial:function(){this.setup.hasOwnProperty("adSlotsConfig")&&this.setup.adSlotsConfig.hasOwnProperty(`disable${this.screen}Interstitial`)&&this.setup.adSlotsConfig[`disable${this.screen}Interstitial`]||(this.finalAdSlotsConfig.adSlotsDefinitions[this.screen+"_Interstitial"]={name:this.screen+"_Interstitial",adUnit:this.screen+"_Interstitial",adDeclaration:0,divId:""+this.divIdPrefix+this.screen+"_Interstitial",loadType:6,lazyLoadPx:900,dfpSizes:this.sizesFor.interstitial})},getElapsedTime:function(){return(new Date).getTime()-this.startTime.getTime()},isClientMobile:function(){let t=!1;var e;return e=navigator.userAgent||navigator.vendor||window.opera,t=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4))?!0:t},isClientMobileOrTablet:function(){let t=!1;var e;return e=navigator.userAgent||navigator.vendor||window.opera,t=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4))?!0:t},detectOS:function(){let t=window.navigator.platform,e=window.navigator.userAgent,i=null;return i=-1!==["Macintosh","MacIntel","MacPPC","Mac68K"].indexOf(t)?"Mac OS":-1!==["iPhone","iPad","iPod"].indexOf(t)?"iOS":/Android/.test(e)?"Android":-1!==["Win32","Win64","Windows","WinCE"].indexOf(t)?"Windows":!i&&/Linux/.test(t)?"Linux":"Other"},detectBrowser:function(){function t(t){return t.test(window.navigator.userAgent)}switch(!0){case t(/edg/i):return"Edge";case t(/trident/i):return"Internet Explorer";case t(/firefox|fxios/i):return"Firefox";case t(/opr\//i):return"Opera";case t(/ucbrowser/i):return"UC Browser";case t(/samsungbrowser/i):return"Samsung Browser";case t(/chrome|chromium|crios/i):return"Chrome";case t(/^((?!chrome|chromium|crios|android).)*safari/i):return"Safari";default:return"Other"}},generateUuid:function(){var t,e;return t=this,e=function(){"use strict";var s,a=new Uint8Array(16);var d=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var r=[],t=0;t<256;++t)r.push((t+256).toString(16).substr(1));return function(t,e,i){var o=(t=t||{}).random||(t.rng||function(){if(s=s||"undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto))return s(a);throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported")})();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,e){i=i||0;for(var n=0;n<16;++n)e[i+n]=o[n];return e}return function(t,e){var e=1<arguments.length&&void 0!==e?e:0,t=(r[t[e+0]]+r[t[e+1]]+r[t[e+2]]+r[t[e+3]]+"-"+r[t[e+4]]+r[t[e+5]]+"-"+r[t[e+6]]+r[t[e+7]]+"-"+r[t[e+8]]+r[t[e+9]]+"-"+r[t[e+10]]+r[t[e+11]]+r[t[e+12]]+r[t[e+13]]+r[t[e+14]]+r[t[e+15]]).toLowerCase();if("string"==typeof(e=t)&&d.test(e))return t;throw TypeError("Stringified UUID is invalid")}(o)}},"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).uuidv4=e(),uuidv4()},cyrb53:function(t,e){Math.imul||(Math.imul=function(t,e){var i=65535&t,o=65535&e;return i*o+((t>>>16&65535)*o+i*(e>>>16&65535)<<16>>>0)|0});for(var i=3735928559^e,o=1103547991^e,n=0;n<t.length;n++)var s=t.charCodeAt(n),i=Math.imul(i^s,2654435761),o=Math.imul(o^s,1597334677);return i=Math.imul(i^i>>>16,2246822507)^Math.imul(o^o>>>13,3266489909),4294967296*(2097151&(o=Math.imul(o^o>>>16,2246822507)^Math.imul(i^i>>>13,3266489909)))+(i>>>0)},pageViewEvent:function(e=!1,i=!1){this.pageViewCalls+=1,this.liveAnalyticsSampling=this.setup&&this.setup.liveAnalyticsSampling?this.setup.liveAnalyticsSampling:25,this.forceAnalytics&&(this.liveAnalyticsSampling=100);var o=Math.floor(Math.random()*Math.floor(100));if(this.liveAnalyticsRand||(this.liveAnalyticsRand=o),this.liveAnalyticsSampling&&this.liveAnalyticsRand<this.liveAnalyticsSampling){this.liveAnalyticsId||(o=this.generateUuid(),this.liveAnalyticsId=o);o=window.location.protocol+"//"+window.location.host+window.location.pathname;let t;t=this.consentCMPUIShown&&!e?"ui":"CMPv2_OOS"===this.consentStatus?"oos":1!==this.pageViewCalls||!i||this.cTCData&&this.cTCData.gdprApplies&&!1!==this.cTCData.gdprApplies?this.consentType:this.waitingForCMPFinished?"waiting_callback":"waiting_tcfapi";var n={id:this.liveAnalyticsId,part:this.pageViewCalls,gdpr:{gdprUi:this.consentCMPUIShown?1:0,gdprApplies:window.optidigitalToolboxGdpr?1:0,status:t}},s=JSON.parse(JSON.stringify(n)),o={sampling:this.liveAnalyticsSampling||0,country:window.optidigitalToolboxCC,networkId:this.setup.info.networkId,publisherId:this.setup.info.publisherId,siteId:this.setup.info.siteId,revision:this.setup.info.revision,domain:window.location.hostname,uri:window.location.pathname,urlHash:this.cyrb53(o,100),abTest:this.testGroup||"control",device:{deviceCategory:odT.deviceCategory,browserWidth:document.documentElement.clientWidth,breakpoint:this.widthBreakpoint},meta:{},...s},s=(i||(o.gdpr.delayForCallback=this.getElapsedTime()),"Other"!==this.detectOS()&&(o.device.os=this.detectOS()),"Other"!==odT.checkBrowser&&(o.device.browser=odT.checkBrowser),document.referrer&&(o.source||(o.source={}),o.source.referrer=document.referrer,o.source.refDomain=new URL(document.referrer).hostname),new URL(window.location.href).searchParams.get("utm_source")&&(o.source||(o.source={}),o.source.utmSource=new URL(window.location.href).searchParams.get("utm_source")),new URL(window.location.href).searchParams.get("utm_campaign")&&(o.source||(o.source={}),o.source.utmCampaign=new URL(window.location.href).searchParams.get("utm_campaign")),this.initConfig.adUnit&&""!==this.initConfig.adUnit&&(o.adUnitPath=this.initConfig.adUnit),document.querySelector("meta[property='og:title']")),i=(s&&s.getAttribute("content")?o.meta.title=s.getAttribute("content"):document.title&&(o.meta.title=document.title),document.querySelector("meta[property='og:description']")),s=document.querySelector('meta[name="description"]'),i=(i&&i.getAttribute("content")?o.meta.description=i.getAttribute("content"):s&&s.content&&(o.meta.description=s.content),document.querySelector("meta[property='og:image']")),s=(i&&i.getAttribute("content")&&(o.meta.image=i.getAttribute("content")),document.querySelector("meta[property='article:author']")),i=document.querySelector('meta[name="author"]'),s=(s&&s.getAttribute("content")?o.meta.articleAuthor=s.getAttribute("content"):i&&i.content&&(o.meta.articleAuthor=i.getAttribute("content")),document.querySelector("meta[property='article:published_time']")),i=(s&&s.getAttribute("content")&&(o.meta.articlePublishedTime=s.getAttribute("content")),JSON.parse(JSON.stringify(n))),s=(3===this.pageViewCalls||e?i.gdpr.delayForUserAction=Date.now()-this.timeStampCMPUIShown:i.gdpr.delayForCallback=this.getElapsedTime(),odT.pageViewPayload=o,new XMLHttpRequest);s.open("POST","https://analytics.optidigital.com/pageview",!0),1===this.pageViewCalls?s.send(JSON.stringify(o)):s.send(JSON.stringify(i))}},createStickyAd:function(i){if(this.stickyFrequency){var o=this.getCookie(this.stickyCookie);if(void 0!==o&&o>=this.stickyFrequencyImps)return void this.log("createStickyAd NOSTICKY because of FREQUENCY CAPPING")}o=this.setup.stickyAdConfiguration;if(!(o&&o.hasOwnProperty("disable"+this.screen)&&o["disable"+this.screen]||o&&o.hasOwnProperty("adUnitsExcluded")&&o.adUnitsExcluded.includes(this.initConfig.adUnit)||this.stickyAdDivId)){this.stickyAdMode="bottom",o&&o.hasOwnProperty("mode")&&"sticky-top"==o.mode&&(this.stickyAdMode="top",this.stickyAdTopTrigger=0,this.stickyAdAutoHidePx=0),o&&o.hasOwnProperty("stickyAdTopTrigger")&&(this.stickyAdTopTrigger=o.stickyAdTopTrigger),this.log("createStickyAd MODE:"+this.stickyAdMode+" with ADSLOT: "+i),this.stickyAdDivId=this.divIdPrefix+i;var n=o&&o.zIndex||"10",o=o&&o.adCloseTop||"-24";let t=document.createElement("style");var s="bottom"===this.stickyAdMode?"bottom":"top";if(t.innerHTML=`.opd_adsticky{display:none;position:fixed;margin-bottom:0;${s}: 0;left:0;width:100%;height:auto;padding:5px 0 4px;text-align:center;background-color:#fff;border-top:1px solid #999;box-shadow:0 0 5px 0 rgba(0,0,0,0.2);}.opd_adsticky-scroll:not(.opd_adsticky-close){display:block;}.opd_adclosebox{position:absolute; ${"bottom"==s?"top":"bottom"}: -24px!important;right:0;width:24px;height:24px;padding:0px 0 0 0px;background-color:#fff;${"bottom"==s?"border-left:1px solid #999;border-top:1px solid #999;":""}border-radius: ${"bottom"==s?"12px 0 0 0":"0px 0 0 12px"}; font-size: 1.4em; color: #444; box-shadow: 0 ${"bottom"==s?"-1px":"1px"} 1px 0 rgba(0, 0,0,0.2);}.opd_adclose{position:absolute;left:4px;top:4px;width:16px;height:16px;opacity:1;text-align:center;}.opd_adclose:before, .opd_adclose:after{position:absolute;content:' ';height:16px;width:2px;background-color:#333;}.opd_adclose:before{transform:rotate(45deg);}.opd_adclose:after{transform:rotate(-45deg);}`,void 0!==document.body&&null!==document.body)document.body.appendChild(t);else{const a=setInterval(()=>{void 0!==document.body&&null!==document.body&&(document.body.appendChild(t),clearInterval(a))},50)}let e=document.createElement("div");this.setAttributes(e,{id:"opd_bottomstickyad",class:"opd_adsticky",style:`z-index:${n};`});s=document.createElement("span"),n=(s.setAttribute("class","opd_adclose"),document.createElement("a")),o=(this.setAttributes(n,{href:"#",class:"opd_adclosebox",style:`${"bottom"===this.stickyAdMode?"top":"bottom"}:${o}px;`}),n.onclick=function(t){t.preventDefault(),document.getElementById("opd_bottomstickyad").classList.add("opd_adsticky-close"),this.stickyAdStatus="closed"},document.createElement("div"));if(this.setAttributes(o,{id:this.stickyAdDivId,class:i,style:"display: none;"}),this.setup.adLayoutEnabled||o.classList.add("optidigital-ad-center"),n.appendChild(s),"bottom"==this.stickyAdMode?(e.appendChild(n),e.appendChild(o)):(e.appendChild(o),e.appendChild(n)),this.stickyAdTopTrigger=this.stickyAdTopTrigger||0,0==this.stickyAdTopTrigger&&(this.stickyAdStatus="init",this.firstLoadAdSlots.push(i)),void 0!==document.body&&null!==document.body)document.getElementsByTagName("body")[0].appendChild(e);else{const d=setInterval(()=>{void 0!==document.body&&null!==document.body&&(clearInterval(d),document.getElementsByTagName("body")[0].appendChild(e))},50)}document.addEventListener("scroll",function(){(document.body.scrollTop>odT.stickyAdTopTrigger||document.documentElement.scrollTop>odT.stickyAdTopTrigger)&&"off"==odT.stickyAdStatus&&(odT.stickyAdStatus="init",odT.refreshAdSlots(i));"top"==this.stickyAdMode&&"rendered"==this.stickyAdStatus&&(document.body.scrollTop>this.stickyAdAutoHidePx||document.documentElement.scrollTop>this.stickyAdAutoHidePx?document.getElementById("opd_bottomstickyad").classList.remove("opd_adsticky-close"):document.getElementById("opd_bottomstickyad").classList.add("opd_adsticky-close"))})}},getMinHeight:function(t,e){t=t.reduce((t,e)=>2===e.length&&1e3===e[1]?0:2===e.length&&e[1]>t?e[1]:t,0);return e?Math.min(t,e):t},getMaxWidth:function(e){let i=0;for(let t=0;t<e.length;t++)2==e[t].length&&e[t][0]>i&&odT.prebidSizes.some(i=>e[t].every((t,e)=>t===i[e]))&&(i=e[t][0]);return i},adslotInit:function(){this.log("Initialize adslot CSS");for(const n of Object.values(this.finalAdSlotsConfig.adSlotsDefinitions)){var t,e,i,o;"object"!=typeof n||5==n.loadType||n.hasOwnProperty("parentDiv")&&1==n.parentDiv||null!=(t=document.getElementById(n.divId))&&(e=n.cls_vpos||"center",i=n.cls_max_height||null,i=n.divId.toLowerCase().includes("sticky")?null:this.getMinHeight(n.dfpSizes,i),"function"==typeof setAdLayout&&this.setup.adLayoutEnabled?(o=this.getMaxWidth(n.dfpSizes),setAdLayout(this.setup.adLayoutConfig||{},t,i,o,n,e)):(0<i?(this.log("CLS size for "+n.name+" => "+i+"px"),(o=document.createElement("div")).setAttribute("style",`min-height: ${i}px; display: flex; flex-direction: column; justify-content: ${"center"===e?"center":"start"}; align-items: center; margin: auto;`),o.classList.add("optidigital-wrapper-div"),t.parentNode.insertBefore(o,t),o.appendChild(t)):this.log("CLS size for "+n.adUnit+" => 0 => NO PARENT DIV"),n.parentDiv=!0))}this.log("Finish ad slot initialization"),this.layoutReady=!0,this.CMPready&&this.runAuction("layoutReady")},checkVendor:function(t){let e=!1;return e=this.cTCData&&this.cTCData.hasOwnProperty("vendor")&&this.cTCData.vendor.hasOwnProperty("consents")&&this.cTCData.vendor.consents.hasOwnProperty(t)&&this.cTCData.vendor.consents[t]?!0:e},consentCheckHBVendors:function(){let t=!1,e="CMP vendors MISSING: ";var i=[{id:755,name:"google"},{id:915,name:"optidigital"},{id:32,name:"xandr"},{id:52,name:"magnite"},{id:45,name:"smart"},{id:91,name:"criteo"},{id:132,name:"teads"},{id:436,name:"invibes"},{id:793,name:"amazon"},{id:28,name:"triplelift"},{id:76,name:"pubmatic"},{id:259,name:"adyoulike"},{id:108,name:"richaudience"},{id:157,name:"seedtag"},{id:164,name:"outbrain"}];let o=0;for(let t=0;t<i.length;t++)this.cTCData.vendor.consents.hasOwnProperty(i[t].id)&&1==this.cTCData.vendor.consents[i[t].id]?(o++,e+=i[t].name+"_OK,"):e+=i[t].name+"_KO,";return o==i.length&&(t=!0,e=e.replace("MISSING","OK")),this.log(e),t},checkRejectAll:function(t){let e=!1,i=0,o=0;for(var n in t)"boolean"==typeof t[n]&&(i++,0==t[n])&&o++;return e=o==i?!0:e},analyzeConsentV2:function(){var t=this.cTCData;if(t&&"object"==typeof t){const{gdprApplies:e,purpose:i,vendor:o}=t;e&&i&&i.consents&&o&&o.consents&&o.legitimateInterests?e?this.checkRejectAll(i.consents)?this.checkRejectAll(i.legitimateInterests)?this.consentStatus="CMPv2_RejectALL":!0===o.legitimateInterests[755]?[2,7,9,10].every(t=>!0===i.legitimateInterests[t])?(this.consentType="li",this.consentCheckHBVendors()?this.consentStatus="CMPv2_LAokHBok":this.consentStatus="CMPv2_LAokHBko"):this.consentStatus="CMPv2_LAko":this.consentStatus="CMPv2_LAMmv":o.consents.hasOwnProperty("755")&&!0===o.consents[755]?(t=[2,7,9,10].every(t=>i.consents.hasOwnProperty(t)&&!0===i.consents[t]||i.legitimateInterests.hasOwnProperty(t)&&!0===i.legitimateInterests[t]),i.consents.hasOwnProperty(1)&&!0===i.consents[1]&&t?(this.consentType="ok",!0===i.consents[3]&&!0===i.consents[4]?this.consentCheckHBVendors()?this.consentStatus="CMPv2_GAMokHBok":this.consentStatus="CMPv2_GAMokHBko":!0===this.consentCheckHBVendors()?this.consentStatus="CMPv2_GAMnpHBok":this.consentStatus="CMPv2_GAMnpHBko"):this.consentStatus="CMPv2_GAMko"):this.consentStatus="CMPv2_GAMmv":(this.consentStatus="CMPv2_OOS",this.consentType="ok"):this.consentStatus="CMPv2_invalid"}},loadConfig:function(e){"object"==typeof window.location&&window.location.hasOwnProperty("search")&&(!(o=window.location.search).includes("optidigital_debug=true")&&!0!==window.optidigital_debug||(this.debug=!0),o.includes("optidigital_debug_wallpaper=true")&&(this.debugWallpaper=!0,this.debugBidderDiscount=100),o.includes("optidigital_testgroup=control")&&(this.forceTestGroup="control"),!o.includes("optidigital_testgroup=test")&&1!=window.optidigital_forcetest||(this.forceTestGroup="test"),o.includes("optidigital_gamenv=test")&&(this.GAMEnv="test"),!o.includes("optidigital_fanalytics=true")&&1!=window.optidigital_fanalytics||(this.forceAnalytics=!0)),this.setup=e,this.log("Load setup file and page configuration");var o=document.getElementById("optidigital-ad-init");if(null!==o){let i=o.getAttribute("config");null==i&&(i=o.getAttribute("data-config"));try{this.initConfig=JSON.parse(i)}catch(t){let e=i;e=e.replace(",]","]"),this.log("Invalid JSON input => fixed "+t.message);try{this.initConfig=JSON.parse(e)}catch(t){this.log("Invalid JSON input => load error adUnit "),this.setup.hasOwnProperty("adUnitError")&&(this.initConfig={adUnit:this.setup.adUnitError})}}e=o.getAttribute("src");0<e.length&&(this.siteCode=e.substring(e.indexOf("site=")+5),-1!=this.siteCode.indexOf("&")&&(this.siteCode=this.siteCode.slice(0,this.siteCode.indexOf("&"))),this.log("Script site code => "+this.siteCode)),this.log("Opti Digital script config",this.initConfig)}else this.log("No script with id:optidigital-ad-init","error"),this.setup.hasOwnProperty("adUnitError")&&(this.initConfig={adUnit:this.setup.adUnitError});if(this.setup.hasOwnProperty("info")&&this.setup.info.hasOwnProperty("revision")&&this.log("PUBLIHSER:"+this.setup.info.publisherId+" - SITE:"+this.setup.info.siteId+" - REVISION:"+this.setup.info.revision),this.setup.hasOwnProperty("publisherInit")&&"function"==typeof this.setup.publisherInit&&this.setup.publisherInit(this.initConfig),this.setup.hasOwnProperty("publisherInitStart")&&"function"==typeof this.setup.publisherInitStart&&this.setup.publisherInitStart(this.initConfig),this.setup.hasOwnProperty("oyStatus")&&(this.oyStatus=this.setup.oyStatus),this.setup.hasOwnProperty("enableArticleReporting")&&(this.enableArticleReporting=this.setup.enableArticleReporting),this.enableArticleReporting&&(0<(o=window.location.protocol+"//"+window.location.host+window.location.pathname).length&&(this.articleID=this.cyrb53(o,100)),this.setup.hasOwnProperty("enableArticleReportingKey"))&&this.initConfig.hasOwnProperty("pageTargeting")&&this.initConfig.pageTargeting.hasOwnProperty(this.setup.enableArticleReportingKey)&&(this.articleID=this.initConfig.pageTargeting[this.setup.enableArticleReportingKey],this.log("Custom reporting key: "+this.setup.enableArticleReportingKey+" with value: "+this.articleID)),this.setup.hasOwnProperty("enableSourceReporting")&&(this.enableSourceReporting=this.setup.enableSourceReporting),this.enableSourceReporting){e=document.referrer;let t="direct_traffic";if(this.setup.hasOwnProperty("sourceCampaignTrackers")&&0<this.setup.sourceCampaignTrackers.length)for(var i in this.setup.sourceCampaignTrackers)if(-1!=window.location.search.indexOf(this.setup.sourceCampaignTrackers[i])){this.sourceID=this.cyrb53(this.setup.sourceCampaignTrackers[i],100),this.log("Source campaign: "+this.setup.sourceCampaignTrackers[i]);break}0==this.sourceID&&(0<e.length&&((o=document.createElement("a")).href=document.referrer,t=-1!=this.sourceDomains.indexOf(o.hostname)||this.setup.hasOwnProperty("sourceDomains")&&-1!=this.setup.sourceDomains.indexOf(o.hostname)?o.hostname:"referrer_unknown"),this.sourceID=this.cyrb53(t,100))}this.setup.hasOwnProperty("enableLimitedAds")&&(this.enableLimitedAds=this.setup.enableLimitedAds),this.enableLimitedAds&&(this.consentStatusNoGAM=this.consentStatusNoGAMButLA,this.limitedAds=!0),this.setup.hasOwnProperty("targetingODBidder")&&1==this.setup.targetingODBidder&&(this.targetingPrebidPB="odtag_pb",this.targetingODBidder=!0),this.setup.hasOwnProperty("abTestConfig")&&this.setup.abTestConfig.hasOwnProperty("sampling")&&("control"===this.forceTestGroup&&(this.setup.abTestConfig.sampling=0),"test"===this.forceTestGroup&&(this.setup.abTestConfig.sampling=100),this.groupRandom=Math.floor(Math.random()*Math.floor(100)),this.groupRandom<odT.setup.abTestConfig.sampling)&&(this.log("Test group sampling is "+odT.setup.abTestConfig.sampling),this.testGroup="test",this.setup.abTestConfig.hasOwnProperty("embed"))&&"object"==typeof optidigitalSetupTest&&(this.setup=optidigitalSetupTest,this.log("Test config revision is "+this.setup.info.revision)),this.setup.hasOwnProperty("engageBackfill")&&!1===this.setup.engageBackfill&&(this.engageBackfill=!1),this.checkBrowser=this.detectBrowser();e=this.setup.pageViewEventTimeout||0===this.setup.pageViewEventTimeout?this.setup.pageViewEventTimeout:1e3;setTimeout(()=>{this.cTCData||this.consentCMPUIShown||!window.optidigitalToolboxGdpr||"timeout_tcfapi"===this.consentType||this.pageViewEvent(!1,!0)},e),window.addEventListener("blur",function(){odT.windowStatus=0,odT.log("Window blur")}),window.addEventListener("focus",function(){odT.windowStatus=1,odT.log("Window focus")})},loadGPT:function(){var t,e;(t=document.createElement("script")).async=!0,t.type="text/javascript",t.src="https://securepubads.g.doubleclick.net/tag/js/gpt.js",(e=document.getElementsByTagName("script")[0]).parentNode.insertBefore(t,e)},getInfiniteScrollDPFSizes:function(t){return t.filter(function(t){let e=!1;return e=void 0!==t&&1800!=t[0]?!0:e})},defineSlots:function(i){var o,n=this.finalAdSlotsConfig["adSlotsDefinitions"],t=this.setup["adSlotsConfig"];for(o in i)if(!this.gptAdSlots.hasOwnProperty(i[o])&&n.hasOwnProperty(i[o])){var s=t&&t.adManagerKeyName?t.adManagerKeyName:"adslot";if(6==n[i[o]].loadType){var a=googletag.defineOutOfPageSlot(odT.initConfig.adUnit,googletag.enums.OutOfPageFormat.INTERSTITIAL);a?(a.setTargeting(s,n[i[o]].adUnit),a.addService(googletag.pubads()),this.gptAdSlots[n[i[o]].name]=a,this.log("Created INTERSTITIAL adslot "+i[o])):this.log("FAILED to create INTERSTITIAL adslot "+i[o])}else if(-1!=n[i[o]].name.indexOf("OutOfPage")&&this.setup.sourceDomains&&"frandroid.com"!=this.setup.sourceDomains[0]&&this.setup.sourceDomains&&"numerama.com"!=this.setup.sourceDomains[0])this.gptAdSlots[n[i[o]].name]=googletag.defineOutOfPageSlot(this.initConfig.adUnit,n[i[o]].divId).setCollapseEmptyDiv(!0).setTargeting(s,n[i[o]].adUnit).addService(googletag.pubads());else{let t=!1,e=n[i[o]].dfpSizes;n[i[o]].hasOwnProperty("infiniteScrollId")&&1<n[i[o]].infiniteScrollId&&(e=this.getInfiniteScrollDPFSizes(e),t=!0);a=document.getElementById(n[i[o]].divId)+"-iframe-odadsrv";null!=a&&null!=a.parentElement&&a.parentElement.removeChild(a),this.gptAdSlots[n[i[o]].name]=googletag.defineSlot(this.initConfig.adUnit,e,n[i[o]].divId).setCollapseEmptyDiv(!0).setTargeting(s,n[i[o]].adUnit).addService(googletag.pubads()),1==t&&this.gptAdSlots[n[i[o]].name].setTargeting("infinite-scroll","yes")}}},initPageTargeting:function(){if(this.initConfig.hasOwnProperty("pageTargeting")&&"object"==typeof this.initConfig.pageTargeting&&null!=this.initConfig.pageTargeting){let i=Object.keys(this.initConfig.pageTargeting);for(let e in i)if("string"==typeof i[e]){let t=this.initConfig.pageTargeting[i[e]];"number"==typeof t&&(t=t.toString()),googletag.cmd.push(function(){googletag.pubads().setTargeting(i[e],t)})}}this.articleID&&googletag.cmd.push(function(){googletag.pubads().setTargeting("article_id",odT.articleID.toString())}),this.sourceID&&googletag.cmd.push(function(){googletag.pubads().setTargeting("source_id",odT.sourceID.toString())}),this.testGroup&&"test"==this.testGroup&&googletag.cmd.push(function(){googletag.pubads().setTargeting("test_group","test")}),this.GAMEnv&&"test"==this.GAMEnv&&googletag.cmd.push(function(){googletag.pubads().setTargeting("optidigital_gamenv","test")}),!this.limitedAds||"CMPv2_LAokHBok"!=this.consentStatus&&"CMPv2_LAokHBko"!=this.consentStatus||googletag.cmd.push(function(){googletag.pubads().setTargeting("od_limitedads","1")}),googletag.cmd.push(function(){googletag.pubads().setTargeting("odtag_status","1")})},buildFirstLoadAdSlots:function(){for(var i of Object.values(this.finalAdSlotsConfig.adSlotsDefinitions))if(i.hasOwnProperty("dfpSizes")){let t=0,e=0;var o;i.hasOwnProperty("loadType")&&(t=i.loadType),i.hasOwnProperty("lazyLoadPx")&&(e=i.lazyLoadPx),0==t||6==t?-1==this.firstLoadAdSlots.indexOf(i.name)&&this.firstLoadAdSlots.push(i.name):1==t&&null!=(o=document.getElementById(i.divId))&&(o=o.getBoundingClientRect(),this.log(`Position for ${i.name} - top: ${o.top}, innerHeight: `+window.innerHeight),0<=o.top&&o.top-window.innerHeight<=e||o.top<0&&Math.abs(o.top)<=e?-1==this.firstLoadAdSlots.indexOf(i.name)&&this.firstLoadAdSlots.push(i.name):-1==this.lazyLoadPendingAdSlots.indexOf(i.name)&&this.lazyLoadPendingAdSlots.push(i.name))}this.log("First ad slots were created")},createAdStyles:function(){var t,e=document.createElement("style");e.type="text/css";let i=".optidigital-ad-center { text-align: center; } .optidigital-ad-center-sticky { text-align: center; width:100%; position: -webkit-sticky; position: sticky; top: 0; }";for(t of Object.values(this.finalAdSlotsConfig.adSlotsDefinitions))"object"==typeof t&&(0!=t.adDeclaration&&"string"==typeof t.adDeclaration&&this.setup.adSlotsConfig&&this.setup.adSlotsConfig.hasOwnProperty("adDeclarations")&&this.setup.adSlotsConfig.adDeclarations.hasOwnProperty(t.adDeclaration)&&(i+="."+t.adUnit+this.setup.adSlotsConfig.adDeclarations[t.adDeclaration]),t.adDeclaration||!t.adUnit.includes("Content")&&!t.adUnit.includes("Mobile_Pos")||(i+="."+t.adUnit+"{margin-top: 1em;margin-bottom: 1em;}"));e.styleSheet?e.styleSheet.cssText=i:e.appendChild(document.createTextNode(i)),document.getElementsByTagName("head")[0].appendChild(e)},getGPTSlots:function(t){var e,i=[];for(e in t)this.gptAdSlots.hasOwnProperty(t[e])&&i.push(this.gptAdSlots[t[e]]);return i},refreshAdSlots:function(i,o,n){this.loadCore();const s=(t,e,i)=>{this.log(`Refresh ad slots - loadType:${e} prebidTimeout: ${i}, slot: `+t),void 0===e&&(e="manual"),void 0===i&&(i=null);let o=[],n=[],s=this.setup.biddersSetup&&this.setup.timeouts&&this.setup.timeouts.prebidIndirect;for(var a in o="string"==typeof t?[t]:t)this.finalAdSlotsConfig.adSlotsDefinitions.hasOwnProperty(o[a])&&n.push(o[a]);if(0==n.length)return"error: no matching slot";null!==i&&(s=i),googletag.cmd.push(function(){odT.defineSlots(n)}),this.setup.hasOwnProperty("prebidIndirectStaticCpm")&&1==this.setup.prebidIndirectStaticCpm&&this.setup.hasOwnProperty("consentData")&&this.setup.consentData.hasOwnProperty("consentData")&&this.setup.consentData.hasOwnProperty("gdprApplies")&&odpbjs.que.push(function(){odpbjs.setConfig({consentManagement:{gdpr:{cmpApi:"static",allowAuctionWithoutConsent:!0,consentData:{getTCData:{tcString:odT.consentData.consentData,gdprApplies:odT.consentData.gdprApplies}}}},cache:{url:"https://pbs.optidigital.com/cache",ignoreBidderCacheKey:!0}})});for(let t in n)this.gptAdSlots.hasOwnProperty(n[t])&&(googletag.cmd.push(function(){odT.gptAdSlots[n[t]].setTargeting("hb_pb",""),odT.gptAdSlots[n[t]].setTargeting("hb_bidder","")}),"auto"==e)&&googletag.cmd.push(function(){odT.gptAdSlots[n[t]].setTargeting("auto_refresh","yes")});return 0<s?odTC.executeAPSAndPrebid(s,n):googletag.cmd.push(function(){googletag.pubads().refresh(odT.getGPTSlots(n))}),"ok"};if(odT.loadCoreFinished)s(i,o,n);else{let e=0;const a=setInterval(()=>{var t=odT.setup.loadCoreTimeout||1e3;(odT.loadCoreFinished||e>t)&&(clearInterval(a),s(i,o,n)),e+=50},50)}},monitorAutomaticRefresh:function(){const l=this.setup["automaticRefresh"];var t=l&&l.intervalTimeout?l.intervalTimeout:2e3;setInterval(()=>{if(this.windowStatus&&0==this.windowStatus)return!1;var e,i=new Date,o=Object.keys(this.finalAdSlotsConfig.adSlotsDefinitions),n=[];for(e in o)if("string"==typeof o[e]){var s=this.finalAdSlotsConfig.adSlotsDefinitions[o[e]].adUnit,a=this.finalAdSlotsConfig.adSlotsDefinitions[o[e]].divId,d=l&&l.adSlots&&l.adSlots[s]&&l.adSlots[s].max?l.adSlots[s].max:6,t=l&&l.adSlots&&l.adSlots[s]&&l.adSlots[s].delay?l.adSlots[s].delay:3e4;if(1<=this.adSlotsLoadCount[a]&&this.adSlotsLoadCount[a]<d&&i.getTime()-this.adSlotsLoadTime[a]>=t){let t=.5;l&&l.adSlots&&l.adSlots[s]&&l.adSlots[s].hasOwnProperty("view")&&"number"==typeof l.adSlots[s].view&&(t=l.adSlots[s].view);var r=document.getElementById(a);null!=r&&(r=r.getBoundingClientRect(),this.log(`Position for ${o[e]} top: ${r.top} height: ${r.height} innerHeight: `+window.innerHeight),50<=r.height&&(0<=r.top&&window.innerHeight-r.top>r.height*t||r.top<0&&Math.abs(r.top)<r.height*t)||0==t)&&(this.log("Refresh slot => "+(i.getTime()-this.adSlotsLoadTime[a])),this.adSlotsLoadTime[a]=i.getTime(),n.push(o[e]))}if(1<=this.adSlotsLoadCount[a]&&this.adSlotsLoadCount[a]<d&&i.getTime()-this.adSlotsLoadTime[a]>=t-5e3){let t=.5;l&&l.adSlots&&l.adSlots[s]&&l.adSlots[s].hasOwnProperty("view")&&"number"==typeof l.adSlots[s].view&&(t=l.adSlots[s].view);r=document.getElementById(a);null!=r&&(50<=(d=r.getBoundingClientRect()).height&&(0<=d.top&&window.innerHeight-d.top>d.height*t||d.top<0&&Math.abs(d.top)<d.height*t)||0==t)&&this.loadCore()}}0<n.length&&this.refreshAdSlots(n,"auto")},t),this.log("Monitor automatic refresh is starting")},monitorLazyLoadAdSlots:function(){let t=200;this.setup.timeouts&&this.setup.timeouts.hasOwnProperty("lazyLoadInterval")&&(t=this.setup.timeouts.lazyLoadInterval),setInterval(()=>{var e,i=[],o=[];for(e in this.lazyLoadPendingAdSlots)if("string"==typeof this.lazyLoadPendingAdSlots[e]){let t=0;this.finalAdSlotsConfig.adSlotsDefinitions[this.lazyLoadPendingAdSlots[e]].hasOwnProperty("lazyLoadPx")&&(t=this.finalAdSlotsConfig.adSlotsDefinitions[this.lazyLoadPendingAdSlots[e]].lazyLoadPx,this.loadCoreFinished)&&(t=this.finalAdSlotsConfig.adSlotsDefinitions[this.lazyLoadPendingAdSlots[e]].lazyLoadPxWithCore);var n=null;(null!==(n=document.getElementById(this.finalAdSlotsConfig.adSlotsDefinitions[this.lazyLoadPendingAdSlots[e]].divId))&&(0<=(n=n.getBoundingClientRect()).top&&n.top-window.innerHeight<=t||n.top<0&&Math.abs(n.top)<=t)?i:o).push(this.lazyLoadPendingAdSlots[e])}this.lazyLoadPendingAdSlots=o,0<i.length&&this.refreshAdSlots(i,"lazy")},t),this.log("Monitor lazy load is starting")},loadCore:function(){var t,e;!0!==odT.loadOTExecuted&&(this.log("Load core"),odT.loadOTExecuted=!0,-1==window.location.search.indexOf("optidigital_loads=0"))&&((t=document.createElement("script")).async=!0,t.type="text/javascript",t.src="https://scripts.opti-digital.com/tags/?lib=corev2&site="+odT.siteCode+("test"===odT.testGroup?"&test=true":""),(e=document.getElementsByTagName("script")[0]).parentNode.insertBefore(t,e))},initAdserver:function(t,e,i){odpbjs.initAdserverSet||(odpbjs.initAdserverSet=!0,googletag.cmd.push(function(){odT.log(`Init ads server from ${e} CMP consent status: `+odT.consentStatus),void 0===googletag.pubadsReady?setTimeout(function(){googletag.cmd.push(function(){i?googletag.pubads().refresh(odT.getGPTSlots(i)):0<odT.firstLoadAdSlots.length&&googletag.pubads().refresh(odT.getGPTSlots(odT.firstLoadAdSlots))})},10):i?googletag.pubads().refresh(odT.getGPTSlots(i)):0<odT.firstLoadAdSlots.length&&googletag.pubads().refresh(odT.getGPTSlots(odT.firstLoadAdSlots))}))},setCookie:function(t,e,i,o){var n=new Date,i=(n.setTime(n.getTime()+1e3*i),"expires="+n.toUTCString());document.cookie=o?t+"="+e+";"+i+";domain="+o+";path=/;sameSite=Lax":t+"="+e+";"+i+";path=/"},getCookie:function(t){var i=t+"=",o=document.cookie.split(";");for(let e=0;e<o.length;e++){let t=o[e];for(;" "==t.charAt(0);)t=t.substring(1);if(0==t.indexOf(i))return t.substring(i.length,t.length)}return""},registerAdslotLoad:function(t,e,i,o){var n=(new Date).getTime();let s=0,a="gam_direct",d=(null!=i.yieldGroupIds&&(a="gam_adx"),null!=i.advertiserId&&odT.setup.hasOwnProperty("advertisers")?(odT.setup.advertisers.hasOwnProperty("adx")&&-1==odT.setup.advertisers.adx.indexOf(i.advertiserId)||(a="gam_adx"),odT.setup.advertisers.hasOwnProperty("amazon")&&-1!=odT.setup.advertisers.amazon.indexOf(i.advertiserId)&&(a="amazon"),odT.setup.advertisers.hasOwnProperty("prebid")&&-1!=odT.setup.advertisers.prebid.indexOf(i.advertiserId)&&(a="prebid")):a="gam_adx",e?s++:a="unfilled",odT.adSlotsLoadStatus.hasOwnProperty(t)?(odT.adSlotsLoadStatus[t].time=n,odT.adSlotsLoadStatus[t].c++,odT.adSlotsLoadStatus[t].f1+=s,odT.adSlotsLoadStatus[t].s.push(a)):odT.adSlotsLoadStatus[t]={time:n,c:1,f1:s,s:[a]},"null");null!=i.size&&(d=i.size[0]+"x"+i.size[1]);var{hb_bidder:t,hb_pb:n,amznbid:r,od_pfg:l,od_pf_group:p,od_pf_pb:c}=this.checkSlotTargeting(i.slot),e={divId:o,filled:e,demandType:a,lineItemId:i.lineItemId,size:d,prebidWinner:t,prebidBid:n,amazonStatus:r,oyStatus:l,oyTestGroup:p,oyPb:c};"unfilled"!==a&&this.adRequestEvent(e),"unfilled"!==a||odT.isBackfillEnabled(o)||this.adRequestEvent(e)},eventSlotRendered:function(e){var i=e.slot.getSlotElementId();let o="",n=(1==e.slot.getTargeting("adslot").length&&(o=e.slot.getTargeting("adslot")[0]),"OY_PF:");if(1==e.slot.getTargeting("od_pf_pb").length?n+=e.slot.getTargeting("od_pf_pb")[0]:n+="na",e.isEmpty){odT.log(`First Chance: ${o} UNFILLED `+n),i==odT.stickyAdDivId&&document.getElementById("opd_bottomstickyad").classList.remove("opd_adsticky-scroll"),odT.loadChildrenIfEmpty&&odT.loadChildrenIfEmpty.hasOwnProperty(i)&&odT.refreshAdSlots(odT.loadChildrenIfEmpty[i],"parent"),odT.isBackfillEnabled(o)?odT.callPrebidAdapter("backfill",i,o):odT.callEventCallback("ADSLOT_UNFILLED",{adslot:{divId:i,name:o}});var s=new Date;odT.adSlotsLoadTime[i]=s.getTime(),odT.adSlotsLoadCount.hasOwnProperty(i)?odT.adSlotsLoadCount[i]++:odT.adSlotsLoadCount[i]=1,odT.registerAdslotLoad(i,!1,e,o)}else{let t="null";if(null!=e.size&&(t=e.size[0]+"x"+e.size[1]),odT.log(`First Chance: ${o} FILLED (${t}) ${n} `),!odT.stickyFormatLoaded&&odT.setup.stickyFormat&&odT.setup.stickyFormat.includes(i.replace(odT.divIdPrefix,""))&&null!==e.size&&1!==e.size[0]&&1800!==e.size[0]&&1e3!==e.size[1]&&(odT.stickyFormatLoaded||odT.setStickyFormat(odT.setup.stickyFormat,e.size[0],odT.setup.stickyFormatTimeout||4e3),odT.stickyFormatLoaded=!0),odT.callEventCallback("ADSLOT_FILLED",{adslot:{divId:i,size:t,name:o,gptEvent:e}}),odT.loadChildrenIfFilled&&odT.loadChildrenIfFilled.hasOwnProperty(i)&&odT.refreshAdSlots(odT.loadChildrenIfFilled[i],"parent"),i==odT.stickyAdDivId&&(document.getElementById("opd_bottomstickyad").classList.add("opd_adsticky-scroll"),odT.stickyAdStatus="rendered",1==odT.stickyFrequency)){let t=odT.getCookie(odT.stickyCookie);0<t.length?t++:t=1,odT.setCookie(odT.stickyCookie,t,odT.stickyFrequencyInterval)}s=new Date;odT.adSlotsLoadTime[i]=s.getTime(),odT.adSlotsLoadCount.hasOwnProperty(i)?odT.adSlotsLoadCount[i]++:odT.adSlotsLoadCount[i]=1,odT.registerAdslotLoad(i,!0,e,o)}},callPrebidAdapter:function(t,e,i){this.log("Build Engage payload - "+t);let o="backfill"===t;const n=e=>{var i,o=[];for(let t=0;t<e.length;t++)2===e[t].length&&(i=e[t][0]+"x"+e[t][1],o.push(i));return o},s=function(){let t=0;return function(){return++t}}(),a=()=>s()+Math.random().toString(16).substr(2);t={ko:"1",li:"2",ok:"3"};let d=[];const r=t=>{var e={},i=this.divIdPrefix+t,e={sizes:n(this.finalAdSlotsConfig.adSlotsDefinitions[t].dfpSizes),bidId:a(),adUnitCode:i,placementId:t};return document.getElementById(""+i)&&(e.adContainerWidth=document.getElementById(""+i).offsetWidth,e.adContainerHeight=document.getElementById(""+i).offsetHeight),e};if(o)d.push(r(i));else{if(odT.callOy(),!odT.firstLoadAdSlots.length)return void odT.runGPTAuction("EngageNoDirectSlot");if(odT.firstLoadAdSlots.forEach(t=>{t.toLowerCase().includes("interstitial")||t.toLowerCase().includes("wallpaper")||d.push(r(t))}),!d.length)return void odT.runGPTAuction("EngageNotEligible")}const l={referrer:window.location.href,pageTemplate:this.initConfig.adUnit,hb_version:"optidigital/3.0.0",deviceWidth:document.documentElement.clientWidth,bidderRequestId:a(),publisherId:"s"+this.setup.info.siteId,imp:d,badv:[],bcat:[],bapp:[],schain:{complete:1,nodes:[{asi:"optidigital.com",hp:1,sid:this.setup.info.siteId.toString()}],ver:"1.0"}},p=(o&&(l.subids={},odT.testGroup&&"test"===odT.testGroup&&(l.subids.sub1="test"),odT.adSlotsLoadCount.hasOwnProperty(e)&&0<odT.adSlotsLoadCount[e]&&(l.subids.sub2="yes"),odT.consentType)&&t[odT.consentType]&&(l.subids.sub3=t[odT.consentType]),l.gdpr={consent:this.cTCData&&this.cTCData.tcString?this.cTCData.tcString:"",required:!!window.optidigitalToolboxGdpr},-1!==window.location.href.indexOf("optidigitalTestMode=true")&&(l.testMode=!0),{eids:[]});i={source:"pubcid.org",uids:[{atype:1}]};let c={source:"id5-sync.com",uids:[{id:"",atype:1,ext:""}]};if(this.consentOK.includes(this.consentStatus)){var e=localStorage.getItem("cto_bidid"),t=(e&&this.checkVendor("91")&&p.eids.push({source:"criteo.com",uids:[{id:e,atype:1}]}),this.getCookie("_pbjs_id_optout")||this.getCookie("_pubcid_optout")),e=localStorage.getItem("_pbjs_id_optout")||localStorage.getItem("_pubcid_optout");if(!t&&!e){var t=this.getCookie("_sharedid"),e=this.getCookie("_sharedid_cst"),{calculatedId:g,finalHashedConsent:u}=this.setShareId(),h=7776e3,m=window.location.host&&window.location.host.indexOf("www.")||window.location.host.replace("www.","");if(t)e&&e!==u&&this.setCookie("_sharedid_cst",u,h,m),i.uids[0].id=t,p.eids.push(i);else if(g&&u){let t=g;"object"==typeof window.PublisherCommonId&&window.PublisherCommonId.hasOwnProperty("getId")&&"function"==typeof window.PublisherCommonId.getId&&(t=window.PublisherCommonId.getId()),i.uids[0].id=t,this.setCookie("_sharedid",t,h,m),this.setCookie("_sharedid_cst",u,h,m),p.eids.push(i)}}this.checkVendor("131")&&(this.id5Permission=!0,localStorage.getItem("id5id")?(this.id5Obj=JSON.parse(decodeURIComponent(localStorage.getItem("id5id"))),localStorage.getItem("id5id_1019_nb")&&(e=parseInt(localStorage.getItem("id5id_1019_nb"))+1,t=new Date(Date.now()+2592e6).toUTCString(),localStorage.setItem("id5id_1019_nb",e),localStorage.setItem("id5id_1019_nb_exp",t)),c.uids[0].id=this.id5Obj.universal_uid,c.uids[0].ext=this.id5Obj.ext,p.eids.push(c)):this.setId5Id())}function f(){odT.id5Obj&&l.user&&l.user.eids&&!l.user.eids.some(t=>Object.values(t).includes("id5-sync.com"))&&(c.uids[0].id=odT.id5Obj.universal_uid,c.uids[0].ext=odT.id5Obj.ext,p.eids.push(c)),!o&&window.optiyield._ready&&odT.firstLoadAdSlots.forEach(o=>{let t={adUnitPath:odT.initConfig.adUnit,customDimensions:{cd1:o}};optiyield.cmd.push(function(){let i=window.optiyield.getFloors(t,"prebid");i&&1===i.pfStatus&&l.imp.forEach((t,e)=>{t.placementId===o&&(l.imp[e].bidFloor=Number(i.pf.prebid))})})})}p.eids.length&&(l.user=p);let y=odT.setup.processTimeout||300,b=0;if(!this.id5Obj&&this.id5Permission||!window.optiyield._ready&&!this.skipOy){let t=setInterval(()=>{!this.id5Obj&&this.id5Permission||!window.optiyield._ready&&!this.skipOy?b>=y?(clearInterval(t),f(),this.sendEngageRequest("PresyncTimeout",l,o)):b+=20:(odT.log("ID5 & SDK ready"),clearInterval(t),f(),this.sendEngageRequest("PresyncReady",l,o))},20)}else f(),this.sendEngageRequest("PresyncReady",l,o);this.id5Obj&&(g=new Date(localStorage.getItem("id5id_last")),288e5<Date.now()-g.getTime())&&this.setId5Id()},sendEngageRequest:function(t,i,e=!1){this.log("Send Engage request - "+t);var t=e?"https://pbs.optidigital.com/bidder/backfill":"https://pbs.optidigital.com/bidder",o=new XMLHttpRequest;o.withCredentials=!0,o.open("POST",t,!0),o.timeout=this.setup.timeouts&&this.setup.timeouts.prebidDirect?this.setup.timeouts.prebidDirect:1500,o.onreadystatechange=function(){if(4==this.readyState)if(200==this.status){var t=JSON.parse(this.responseText);if(t.hasOwnProperty("bids")&&0<t.bids.length)if(e)t.bids.forEach(e=>{odT.renderEngage(e.creativeId,e.adm,[Number(e.w),Number(e.h)]);var t=googletag.pubads().getSlots().find(t=>t.getSlotElementId()===e.creativeId),{amznbid:t,od_pfg:i,od_pf_group:o,od_pf_pb:n}=odT.checkSlotTargeting(t),t={divId:e.placementId,filled:!0,demandType:"backfill",lineItemId:null,prebidWinner:"optidigital",amazonStatus:t,oyStatus:i,oyTestGroup:o,oyPb:n,size:e.w+"x"+e.h,prebidBid:e.cpm.toString()};odT.adRequestEvent(t),odT.log(`Second Chance (backfill): ${e.placementId} FILLED`),odT.callEventCallback("ADSLOT_FILLED",{adslot:{divId:e.creativeId,size:e.w+"x"+e.h,name:e.placementId}})});else{let e=[];odT.targeting=[],odT.setup.minCpm=odT.setup.minCpm||1e3,t.bids.forEach(s=>{var t;odT.log(`Engage bid - response received for ${s.placementId} - $`+s.cpm),(odT.setup.minCpm||0===odT.setup.minCpm)&&s.cpm>odT.setup.minCpm?(odT.log(`Engage bid - for ${s.placementId} - $${s.cpm} rendered directly`),odT.renderEngage(s.creativeId,s.adm,[Number(s.w),Number(s.h)]),e.push(s.placementId),odT.adSlotsLoadTime[s.creativeId]=(new Date).getTime(),odT.adSlotsLoadCount.hasOwnProperty(s.creativeId)?odT.adSlotsLoadCount[s.creativeId]++:odT.adSlotsLoadCount[s.creativeId]=1,i.imp.forEach(e=>{if(e.placementId===s.placementId){let t="";googletag&&(t=googletag.pubads().getSlots().find(t=>t.getSlotElementId()===s.creativeId));var{amznbid:e,od_pfg:i,od_pf_group:o,od_pf_pb:n}=odT.checkSlotTargeting(t),e={divId:s.placementId,filled:!0,demandType:"prebid",lineItemId:null,prebidWinner:"optidigital",amazonStatus:e,oyStatus:i,oyTestGroup:o,oyPb:n,size:s.w+"x"+s.h,prebidBid:s.cpm.toString()};odT.adRequestEvent(e)}})):(t={placementId:s.placementId,cpm:s.cpm,bidId:s.bidId,w:s.w,h:s.h,adm:s.adm},odT.targeting.push(t))});t=((t,e)=>{const i=new Set(e.map(JSON.stringify));return t.filter(t=>!i.has(JSON.stringify(t)))})(odT.firstLoadAdSlots,e);t.length&&odT.runGPTAuction("EngageBidsReady",t,odT.targeting)}else e?odT.handleUnfilled(i.imp[0].placementId,i.imp[0].adUnitCode):(odT.log("Engage request - no bid in response"),odT.runGPTAuction("EngageNoBid"))}else 0===this.status?e?odT.handleUnfilled(i.imp[0].placementId,i.imp[0].adUnitCode):(odT.log("Engage request - timeout"),odT.runGPTAuction("EngageTimeout")):e?odT.handleUnfilled(i.imp[0].placementId,i.imp[0].adUnitCode):(odT.log("Engage request - no bid"),odT.runGPTAuction("EngageNoBid"))},o.setRequestHeader("Content-type","text/plain"),o.send(JSON.stringify(i)),e||setTimeout(()=>{odT.loadCoreFinished||odT.runPBSUserSync(!0)},1e4)},handleUnfilled:function(t,e){odT.log(`Second Chance (backfill): ${t} UNFILLED`),odT.callEventCallback("ADSLOT_UNFILLED",{adslot:{divId:e,name:t}});var i=googletag.pubads().getSlots().find(t=>t.getSlotElementId()===e),{amznbid:i,od_pfg:o,od_pf_group:n,od_pf_pb:s}=odT.checkSlotTargeting(i);odT.adRequestEvent({divId:t,filled:!1,demandType:"backfill",lineItemId:null,prebidWinner:"optidigital",amazonStatus:i,oyStatus:o,oyTestGroup:n,oyPb:s})},renderEngage:function(t,e,i){var o=document.getElementById(t);if(null!==o){if(t==odT.stickyAdDivId&&(document.getElementById("opd_bottomstickyad").classList.add("opd_adsticky-scroll"),odT.stickyAdStatus="rendered",1==odT.stickyFrequency)){let t=odT.getCookie(odT.stickyCookie);0<t.length?t++:t=1,odT.setCookie(odT.stickyCookie,t,odT.stickyFrequencyInterval)}o.innerHTML="";var n=document.createElement("div"),s=(n.setAttribute("style","border: 0pt none; margin: auto; text-align: center; width: "+i[0]+"px; height: "+i[1]+"px;"),document.createElement("iframe"));odT.setAttributes(s,{id:t+"-iframe-od",width:i[0],height:i[1],scrolling:"no",marginwidth:"0",marginheight:"0",frameborder:"0"}),n.appendChild(s),o.appendChild(n),s.contentWindow.document.open(),s.contentWindow.document.write(e),s.contentWindow.document.close(),o.style.display="block"}return!0},setShareId:function(){let t=null;odT.cTCData&&odT.cTCData.hasOwnProperty("gdprApplies")&&odT.cTCData.gdprApplies&&odT.cTCData.hasOwnProperty("tcString")&&odT.cTCData.tcString&&(t=[odT.cTCData.gdprApplies,odT.cTCData.tcString]);var e=[JSON.stringify(t),"null","null"];let i="";e.forEach((t,e)=>{i+=(0<e?":":"")+this.cyrb53(t)}),i+=":0";e=this.cyrb53(i),e=encodeURIComponent((t=>{let e=Number(t);for(var i=[];0<e;)i.push(String.fromCharCode(255&e)),e>>>=8;return btoa(i.join())})(e));const o=()=>window&&window.crypto&&window.crypto.getRandomValues?crypto.getRandomValues(new Uint8Array(1))[0]%16:16*Math.random(),n=t=>t?(t^o()>>t/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,n);return{calculatedId:n(),finalHashedConsent:e}},setId5Id:function(){const e=this.setShareId()["finalHashedConsent"];var t=t=>new Date(Date.now()+864e5*t).toUTCString(),i=localStorage.getItem("id5id");const o=t(90),n=t(30),s="1019";t={partner:s,gdpr:window.optidigitalToolboxGdpr?1:0,v:"optidigital/3.0.0",o:"client-side-fetch-api",u:window.location.href,top:1};window.optidigitalToolboxGdpr&&(t.gdpr_consent=this.cTCData&&this.cTCData.tcString?this.cTCData.tcString:""),document.referrer&&(t.rf=document.referrer),i&&(i=JSON.parse(decodeURIComponent(i)),t.s=i.signature);let a=0;localStorage.getItem("id5id_1019_nb")&&(a=parseInt(localStorage.getItem("id5id_1019_nb"))+1);i=new XMLHttpRequest;i.open("POST","https://id5-sync.com/g/v2/1019.json",!0),i.onreadystatechange=function(){var t;4==this.readyState&&200==this.status&&(odT.log("ID5 was set"),t=JSON.parse(this.responseText),odT.id5Obj=t,localStorage.setItem("id5id",encodeURIComponent(this.responseText)),localStorage.setItem("id5id_exp",o),localStorage.setItem("id5id_last",(new Date).toUTCString()),localStorage.setItem("id5id_last_exp",o),localStorage.setItem("id5id_1019_nb",a),localStorage.setItem("id5id_1019_nb_exp",n),localStorage.setItem("id5id_privacy",JSON.stringify(t.privacy)),localStorage.setItem("id5id_privacy_exp",n),localStorage.setItem("id5id_cst",decodeURIComponent(e)))},i.send(JSON.stringify(t))},initOy:function(){optiyield._0i4n3i2t(this.setup.info.networkId,odT.pfConfig,odT.pfConfig.country),optiyield.cmd.push(function(){var t={pubId:odT.setup.info.networkId,mode:"manual",gtpCustomDimensionKey:{cd1:"adslot"}};optiyield.init(t,function(){odT.log("optiyield SDK is ready")}),optiyield.setGptFloors()})},callOy:function(){odT.log("Call OY SDK config");var t="Safari"===this.checkBrowser?"0":"1",t=`https://optiyield-data.opti-digital.com/pfc/web/config?pubid=${odT.setup.info.networkId}&device=${odT.dDevice}&domain=${window.location.hostname}&nr=${t}&country=`+window.optidigitalToolboxCC,e=new XMLHttpRequest;e.open("GET",t,!0),e.onreadystatechange=function(){var t;4==this.readyState&&(200==this.status?(odT.log("Get OY SDK config response"),t=JSON.parse(this.responseText),odT.pfConfig=t,odT.initOy()):odT.skipOy=!0)},e.send()},runAuction:function(t){this.buildFirstLoadAdSlots(),this.monitorLazyLoadAdSlots(),this.monitorAutomaticRefresh(),googletag.cmd.push(function(){odT.log("GPT is starting"),odT.initPageTargeting(),odT.defineSlots(odT.firstLoadAdSlots),googletag.pubads().enableSingleRequest(),googletag.pubads().setCentering(!0),googletag.pubads().addEventListener("slotRenderEnded",odT.eventSlotRendered),googletag.enableServices()}),odT.callPrebidAdapter(t)},getCpmStringValue:function(t,e){let i="";const o=e.reduce((t,e)=>t.max>e.max?t:e,{max:0});let n=0;e=e.find(function(e){if(t>o.max){let t=e.precision;void 0===t&&(t=_defaultPrecision),i=e.max.toFixed(t)}else{if(t<=e.max&&t>=n)return e.min=n,e;n=e.max}});return i=e?odT.getCpmTarget(t,e):i},getCpmTarget:function(t,e){var i=e.hasOwnProperty("precision")&&e.precision?e.precision:2,o=e.increment,e=e.min,n=Math.pow(10,i+2),t=(t*n-e*n)/(o*n);let s,a;try{s=Math.floor(t)*o+e}catch(t){a=!0}return!a&&"number"==typeof s||(s=Math.floor(t)*o+e),(s=Number(s.toFixed(10))).toFixed(i)},convertToEuro:function(t){var e=odT.setup.adServerCurrency||"EUR",i=odT.setup.defaultRates||{USD:{EUR:.96,PLN:4.5}};return odT.setup.currentRates?t*=odT.setup.currentRates.USD[e]:t*=i.USD[e],t},runGPTAuction:function(t,e,o){googletag.cmd.push(function(){o&&o.length&&(o.forEach(t=>{var e=odT.convertToEuro(t.cpm),i=odT.setup.prebidPriceGranularity||{buckets:[{max:3,min:0,increment:.01,precision:2},{max:8,min:3,increment:.05,precision:2},{max:20,min:8,increment:.5,precision:2}]};odT.gptAdSlots[t.placementId].setTargeting("hb_pb",odT.getCpmStringValue(e,i.buckets)),odT.gptAdSlots[t.placementId].setTargeting("hb_bidder","optidigital"),odT.gptAdSlots[t.placementId].setTargeting("hb_adid",t.bidId),odT.gptAdSlots[t.placementId].setTargeting("hb_size",t.w+"x"+t.h),odT.gptAdSlots[t.placementId].setTargeting("hb_safeframe","1")}),window.addEventListener("message",function(e){if(!odT.loadCoreFinished){var i=e.message?"message":"data";let t={};try{t=JSON.parse(e[i])}catch(t){return}if(t&&t.adId&&t.message&&"Prebid Request"===t.message){let a=function(e){return 0<e.ports.length?function(t){e.ports[0].postMessage(JSON.stringify(t))}:null!==e.origin?function(t){e.source.postMessage(JSON.stringify(t),e.origin)}:void 0}(e);o.forEach(t=>{var t={adId:t.bidId,ad:t.adm,width:t.w,height:t.h,cpm:t.cpm,originalCpm:t.cpm},e=a,{adId:t,ad:i,adUrl:o,width:n,height:s}=t;t&&e({message:"Prebid Response",ad:i,adUrl:o,adId:t,width:n,height:s})})}}},!1))}),e?odT.initAdserver(null,t,e):odT.initAdserver(null,t)},callEventCallback:function(t,e){odT.eventCallback&&"function"==typeof odT.eventCallback&&odT.eventCallback(t,e)},getCMPConsent:function(){var t=this.setup?this.setup.cmpCallbackTimeout||(0===this.setup.cmpCallbackTimeout?this.setup.cmpCallbackTimeout:1500):1500;let i=!1,o,n=!1;o=setTimeout(()=>{n=!0,this.log("Timeout NO RESPONSE FROM CMP CALLBACK"),this.consentStatus="CMPv2_GAMokHBok",this.consentType="timeout_callback",-1==this.consentStatusNoGAM.indexOf(odT.consentStatus)&&(this.log("Consent ready, consent status: "+odT.consentStatus),odT.CMPready=!0,odT.layoutReady)&&odT.runAuction("cmpTimeoutCallback"),this.callEventCallback("CONSENT_READY",{status:odT.consentStatus}),this.pageViewEvent(),i=!0},t),"function"==typeof window.__tcfapi?window.__tcfapi("addEventListener",2,function(t,e){n||(e&&"cmpuishown"===t.eventStatus&&(clearTimeout(o),odT.consentCMPUIShown=!0,odT.timeStampCMPUIShown=Date.now(),odT.log("CMP UI shown"),i||(odT.pageViewEvent(),i=!0)),!e||"tcloaded"!==t.eventStatus&&"useractioncomplete"!==t.eventStatus&&"cmpuiclosed"!=t.eventStatus?e&&!t.gdprApplies&&(clearTimeout(o),odT.consentStatus="CMPv2_OOS",odT.consentType="ok",odT.consentCMPUIShown?odT.pageViewEvent(!0):odT.pageViewEvent(),odT.log("CMP consent ready "+odT.consentStatus),odT.CMPready=!0,odT.layoutReady)&&odT.runAuction("cmpReadyOOS"):(clearTimeout(o),odT.consentStatus="CMPv2_ready",odT.consentV2TCData=t,odT.cTCData=odT.consentV2TCData,odT.analyzeConsentV2(),odT.setup&&odT.setup.hasOwnProperty("onConsentCaptured")&&(odT.setup.onConsentCaptured,1)&&odT.setup.onConsentCaptured(odT.consentStatus,t),odT.log("CMP consent ready "+odT.consentStatus),-1==odT.consentStatusNoGAM.indexOf(odT.consentStatus)?(odT.CMPready=!0,odT.layoutReady&&odT.runAuction("cmpConsentReadyOK")):odT.CMPready=!1,odT.callEventCallback("CONSENT_READY",{status:odT.consentStatus,tcData:t}),__tcfapi("removeEventListener",2,function(t){t&&odT.log("TCFAPPI event listener removed")},t.listenerId),odT.consentCMPUIShown?odT.pageViewEvent(!0):odT.pageViewEvent()))}):this.consentStatus="nocmp"},waitForCMP:function(){this.log("CMP Start waiting API");let t=0,e=this.setup&&(this.setup.cmpApiTimeout||0===this.setup.cmpApiTimeout)?this.setup.cmpApiTimeout:1e3,i=0,o=!1;window.optidigitalToolboxGdpr?"function"==typeof window.__tcfapi?(odT.log("CMP API ready, wait for consent signal"),o=!0,odT.waitingForCMPFinished=!0,"loading"!==document.readyState?odT.getCMPConsent():document.addEventListener("DOMContentLoaded",function(t){odT.getCMPConsent()})):t=window.setInterval(function(){i+=50,o||("function"==typeof window.__tcfapi?(odT.log("CMP API ready, wait for consent signal"),window.clearInterval(t),o=!0,odT.waitingForCMPFinished=!0,"loading"!==document.readyState?odT.getCMPConsent():document.addEventListener("DOMContentLoaded",function(t){odT.getCMPConsent()})):i>=e&&(window.clearInterval(t),o=!0,odT.waitingForCMPFinished=!0,odT.log("Timeout NO CMP API"),odT.consentStatus="CMPv2_GAMokHBok",-1==odT.consentStatusNoGAM.indexOf(odT.consentStatus)&&(odT.log("Consent ready, consent status: "+odT.consentStatus),odT.CMPready=!0,odT.layoutReady)&&odT.runAuction("cmpTimeoutAPI"),odT.callEventCallback("CONSENT_READY",{status:odT.consentStatus}),odT.consentType="timeout_tcfapi",odT.pageViewEvent()))},50):(odT.consentStatus="CMPv2_OOS",odT.consentType="ok",odT.log("NO GDPR"),odT.pageViewEvent(),odT.log("Consent ready, consent status: "+this.consentStatus),odT.CMPready=!0,odT.layoutReady&&odT.runAuction("initnoGDPR"))},runPBSUserSync:function(i=!1){try{if(odT.setup.hasOwnProperty("disablePresync")&&odT.setup.disablePresync)return!1;if("Chrome"!==odT.checkBrowser&&"Edge"!==odT.checkBrowser)return!1;if(-1!=odT.consentOK.indexOf(odT.consentStatus)){let t="https://scripts.opti-digital.com/js/presync.html?endpoint=optidigital&gdpr=",e=("CMPv2_OOS"===odT.consentStatus?t+="0":t+="&gdpr_consent="+odT.cTCData.tcString,"rubicon,smartadserver,pubmatic,criteo");i?(odT.presyncLoaded=!0,e+=",appnexus,triplelift,outbrain,onetag,improvedigital,rtbhouse"):odT.setup.hasOwnProperty("sspList")&&(e=odT.setup.sspList.toString()),t+="&bidders="+e;var o=document.createElement("iframe");odT.setAttributes(o,{src:t,width:"0",height:"0",style:"height:0px;width:0px;display:none;"}),document.body.appendChild(o)}}catch(t){}},isBackfillEnabled:function(t){let e=!1;return this.engageBackfill&&this.consentOK.includes(this.consentStatus)&&(t.toLowerCase().includes("interstitial")||t.toLowerCase().includes("wallpaper")||(e=!0)),e},deviceDetection:function(){this.isClientMobileOrTablet()?this.isClientMobile()?(odT.deviceCategory="Smartphone",odT.dDevice="30001"):(odT.deviceCategory="Tablet",odT.dDevice="30002"):(odT.deviceCategory="Desktop",odT.dDevice="30000")},adRequestEvent:function(t){var e,{divId:t,filled:i,demandType:o,lineItemId:n,size:s,prebidBid:a,prebidWinner:d,amazonStatus:r,oyStatus:l,oyTestGroup:p,oyPb:c}=t;let g;t&&(g=document.getElementById(this.divIdPrefix+t)),i&&t&&g&&g.closest(".optidigital-wrapper-div")&&(g.closest(".optidigital-brand")&&g.closest(".optidigital-brand").previousSibling&&g.closest(".optidigital-brand").previousSibling.classList.contains("optidigital-text-ads")&&g.closest(".optidigital-brand").previousSibling.style.setProperty("display","block"),g.previousSibling&&g.previousSibling.classList.contains("optidigital-text-ads")&&g.previousSibling.style.setProperty("display","block"),g.nextElementSibling)&&(g.nextElementSibling.style.setProperty("display","block"),setTimeout(()=>{g.nextElementSibling.classList.add("optidigital-brand-logo-active")},2e3),g.firstChild&&g.firstChild.firstChild&&g.firstChild.firstChild.offsetWidth&&1<g.firstChild.firstChild.offsetWidth?(g.nextElementSibling.style.setProperty("width",g.firstChild.firstChild.offsetWidth+"px","important"),g.firstChild.firstChild.offsetWidth===document.documentElement.clientWidth&&g.nextElementSibling.style.setProperty("margin-right","15px","important")):(g.nextElementSibling.style.setProperty("width","100%","important"),g.nextElementSibling.style.setProperty("margin-right","15px","important"))),g&&g.closest(".optidigital-wrapper-div")&&g.closest(".optidigital-wrapper-div").style.setProperty("background-image","none"),odT.setup.hasOwnProperty("adRequestStats")&&odT.setup.adRequestStats&&odT.liveAnalyticsSampling&&odT.liveAnalyticsRand<odT.liveAnalyticsSampling&&(delete odT.pageViewPayload.gdpr,e={0:"Direct",1:"Lazy Load",2:"Manual",5:"Sticky",6:"Interstitial"},n={adRequest:{adSlot:t,lineItemId:n,filled:i?1:0,refresh:odT.adSlotsLoadCount[""+odT.divIdPrefix+t]&&1<odT.adSlotsLoadCount[""+odT.divIdPrefix+t]?1:0,adSize:s,demandType:o,prebidWinner:d,prebidBid:a,amazonStatus:r,oyStatus:l,oyTestGroup:p,oyPb:c},gdpr:{gdprApplies:window.optidigitalToolboxGdpr?1:0,gdprUi:odT.consentCMPUIShown?1:0,status:odT.consentType},...odT.pageViewPayload},odT.finalAdSlotsConfig.adSlotsDefinitions[t]&&odT.finalAdSlotsConfig.adSlotsDefinitions[t].hasOwnProperty("loadType")&&(n.adRequest.loadType=e[odT.finalAdSlotsConfig.adSlotsDefinitions[t].loadType]),n.adRequest=Object.fromEntries(Object.entries(n.adRequest).filter(([,t])=>""!==t&&null!=t)),(i=new XMLHttpRequest).open("POST","https://analytics.optidigital.com/adrequest",!0),i.send(JSON.stringify(n)))},checkSlotTargeting:function(t){return t?{hb_bidder:t.getTargeting("hb_bidder").length?t.getTargeting("hb_bidder")[0]:"",hb_pb:t.getTargeting("hb_pb").length?t.getTargeting("hb_pb")[0]:"",amznbid:t.getTargeting("amznbid").length&&1<t.getTargeting("amznbid")[0].length?1:0,od_pfg:t.getTargeting("od_pfg").length&&"1"===t.getTargeting("od_pfg")[0]?1:0,od_pf_group:t.getTargeting("od_pf_group").length&&"1"===t.getTargeting("od_pf_group")[0]?1:0,od_pf_pb:t.getTargeting("od_pf_pb").length?t.getTargeting("od_pf_pb")[0]:""}:{}},setStickyFormat:function(t,f,y=4e3){t.forEach(t=>{let l=document.getElementById(""+odT.divIdPrefix+t);if(l&&"none"!==getComputedStyle(l).display&&"hidden"!==getComputedStyle(l).visibility){let o={},n={},s=l.parentElement;var t=window.getComputedStyle(l),p=window.getComputedStyle(s),c=parseFloat(t.marginTop)+parseFloat(t.marginBottom);let i=Math.ceil(parseFloat(t.height)+c),a=!1,d=!1,r=0;this.setup.adLayoutEnabled&&(n.display=p.display,n["flex-direction"]=p.flexDirection,n.width=p.width,n["align-items"]=p.alignItems,n.position=p.position,n.top=p.top),o.position=t.position,o.background=t.background,o.margin=t.margin,o.width=t.width,o["max-width"]=t.maxWidth,o.top=t.top,o.left=t.left,o.right=t.right,o.display=t.display,o["padding-left"]=t.paddingLeft,o["padding-right"]=t.paddingRight,o["border-color"]=t.borderColor;const g=()=>{var t;a&&(l.style.setProperty("visibility","hidden"),l.style.setProperty("opacity","0"),l.style.setProperty("transition","visibility 0s .5s, opacity .5s linear"),t=document.querySelector(".optidigital-close-button"))&&(t.style.setProperty("visibility","hidden"),t.style.setProperty("opacity","0"),t.style.setProperty("transition","visibility 0s .5s, opacity .5s linear"))},u=()=>{var t=document.querySelector(".optidigital-temporary-element"),t=(t&&t.remove(),document.querySelector(".optidigital-close-button"));t&&t.remove(),a=!1,l.style.setProperty("top","0"),l.style.setProperty("left","0"),l.style.setProperty("z-index","1"),l.style.setProperty("visibility","visible"),l.style.setProperty("opacity","1");for(const e in o)l.style.setProperty(e,o[e]);if(this.setup.adLayoutEnabled)for(const i in n)s.style.setProperty(i,n[i])},h=t=>{var e;d||(e=document.documentElement.clientWidth,0<f&&(r=(e-f)/2),a&&document.querySelector(".optidigital-temporary-element")||(a=!0,(e=document.createElement("div")).classList.add("optidigital-temporary-element"),e.style.setProperty("height",i+"px"),s.insertBefore(e,l),(e=document.createElement("div")).innerHTML='<span><svg><path stroke="#ffffff" transform="translate(5.5,5) scale(0.6)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"/><circle r="7.5" cx="9.5" cy="9.5"></circle></svg></span>',e.classList.add("optidigital-close-button"),e.setAttribute("style","position: fixed; top: 0; left: 0; width: 100%; z-index: 2147483647; background: rgba(0,0,0, 0.2); color: #fff; height: 25px; padding: 0; cursor: pointer; display: flex; align-items: center; justify-content: flex-end; user-select: none; -webkit-tap-highlight-color: transparent;"),s.insertBefore(e,l),(e=document.querySelector(".optidigital-close-button span")).setAttribute("style","display: flex; height: 25px; align-items: center; position: relative;"),document.querySelector(".optidigital-close-button span svg").setAttribute("style",`position: absolute; top: 2.5px; right: ${r}px; width: 20px; height: 20px; transform: rotateY(-180deg) rotateZ(-90deg); max-width: unset;`),document.querySelector(".optidigital-close-button span svg circle").setAttribute("style",`stroke-dasharray: 47px; stroke-dashoffset: 0px; stroke-linecap: round; stroke-width: 2px; stroke: white; fill: none; animation: countdown ${t}ms linear forwards;`),(t=document.createElement("style")).type="text/css",t.appendChild(document.createTextNode("@keyframes countdown {from {stroke-dashoffset: 0px;} to {stroke-dashoffset: 47px;}}")),document.getElementsByTagName("head")[0].appendChild(t),e.addEventListener("click",()=>{g(),setTimeout(()=>{u(),d=!0},500)})),l.setAttribute("style","position: fixed; top: 25px; left: 0; right: 0; z-index: 2147483647; width: 100%; max-width: unset; background: rgba(0,0,0, 0.2); margin: 0 auto; border-color: transparent!important; padding-right: 0; padding-left: 0;"),this.setup.adLayoutEnabled&&s.setAttribute("style","z-index","2147483647"),"flex"!==getComputedStyle(s).display&&l.style.setProperty("display","flex"))};let e;const m=new window.IntersectionObserver(([t])=>{t.isIntersecting&&(e=Date.now(),setTimeout(()=>{g(),setTimeout(()=>{u(),m.unobserve(l),d=!0},500)},y))},{root:null,threshold:.1});m.observe(l),l.getBoundingClientRect().top<0&&(e=Date.now(),(c=Date.now())-e<y)&&h(y-(c-e)),window.addEventListener("scroll",()=>{var t;l.getBoundingClientRect().top<25&&(t=Date.now())-e<y&&h(y-(t-e)),0<=s.getBoundingClientRect().top&&u()})}})},registerEventCallback:function(t){var e=!1;return"function"==typeof t&&(odT.eventCallback=t,e=!0),e}},loadLibs(),(window.optidigitalToolbox=odT).loadConfig(optidigitalSetup||{}),odT.setup.hasOwnProperty("launcherInit")&&"function"==typeof odT.setup.launcherInit&&(odT.setup.launcherInit(odT.initConfig),odT.log("launcherInit executed")),(optiyield=optiyield||{}).cmd=optiyield.cmd||[],optiyield.initOptiYieldSdk=!1,googletag=googletag||{},(window.googletag=googletag).cmd=googletag.cmd||[],googletag.cmd.push(function(){googletag.pubads().disableInitialLoad()}),(odpbjs=odpbjs||{}).que=odpbjs.que||[],0<!document.querySelectorAll('script[src="https://securepubads.g.doubleclick.net/tag/js/gpt.js"]').length&&odT.loadGPT(),odT.waitForCMP(),"loading"===document.readyState?document.addEventListener("DOMContentLoaded",t=>{if(null!==document.body&&void 0!==document.body)odT.setDefaultSizes();else{let t=setInterval(()=>{null!==document.body&&void 0!==document.body&&(odT.setDefaultSizes(),clearInterval(t))},10)}}):odT.setDefaultSizes());