// ATM Build: sIflw-kXdf "use strict"; var adnMeta = adnMeta || {}; var adn = adn || {}; adn.calls = adn.calls || []; var pbjs = pbjs || {}; pbjs.que = pbjs.que || []; window.atm = window.atm || {}; atm.queue = atm.queue || []; atm.events = atm.events || {}; atm.data = atm.data || {}; atm.transitData; atm.browser = atm.browser || {}; atm.ads = atm.ads || {}; atm.ortb2 = atm.ortb2 || {}; atm.containers = atm.containers || {}; atm.containerFunctions = atm.containerFunctions || {}; atm.GLOBALS = atm.GLOBALS || {}; atm.haltedTags = atm.haltedTags || []; atm.adUnits = atm.adUnits || []; atm.adUnitAliases = atm.adUnitAliases || []; atm.prebid = atm.prebid || { units: [], mappedUnits: {}, aliases: [], map: {} }; atm.eventList = ['consent.change', 'consent.saved', 'event',]; try { (function (atm, adn, doc, win) { var CONTAINER_ID = 'GiWJuFNlq'; atm.containerFunctions[CONTAINER_ID] = atm.containerFunctions[CONTAINER_ID] || {} "use strict"; atm.cookie = (function () { var pairs = document.cookie.split(";"); var cookies = {}; for (var i = 0; i < pairs.length; i++) { var pair = pairs[i].split("="); cookies[(pair[0] + '').trim()] = unescape(pair.slice(1).join('=')); } return cookies; })(); atm.localStorage = (function () { var values = {}; var keys = Object.keys(localStorage); for (var i = 0; i < keys.length; i++) { try { values[keys[i]] = JSON.parse(localStorage[keys[i]]); } catch (e) { values[keys[i]] = localStorage[keys[i]]; } } return values; })(); atm.browser = window.location; atm.browser.consent = (localStorage.getItem('adn-consent') || localStorage.getItem('atm-consent')) ? JSON.parse(localStorage.getItem('adn-consent') || localStorage.getItem('atm-consent')) : { time: new Date().getTime(), tc: false, given: false, purposes: [], specialFeatures: [], vendors: [], legIntPurposes: [], adnuntiusPurposes: [], stack: false, }; atm.browser.consent.timeSinceConsent = new Date().getTime() - atm.browser.consent.time; atm.page = atm.page || {}; atm.page.meta = (function () { var metaObject = {}; var metaData = document.getElementsByTagName("meta"); var metaDataArray = [].slice.call(metaData); metaDataArray.forEach(meta => { var name = meta.name || meta.getAttribute('property') || meta.getAttribute('http-equiv'); if (name) metaObject[name] = meta.content; }); return metaObject; })(); atm.containers[CONTAINER_ID] = { "id": "GiWJuFNlq", "data": { "geo": false, "gdpr": false, "cssAdd": true, "position": "overlay", "cssOverride": true, "gdprChoiceButton": true }, "prebid": { "loadPrebidJs": false, "units": {}, "map": {}, "analytics": false, "requester": { "system": "none" }, "aliases": [] }, "tagType": "legacy", "cmp": false, "templates": false, "variables": [], "variableMap": {}, "tags": { "X-Xgq5G37B": { "purposes": [], "type": "javascriptCustom", "content": { "script": "" } } } } try { } catch (e) { throw new Error('Custom variables are not valid') } atm.containers[CONTAINER_ID].tags["X-Xgq5G37B"].content.script = function(){ window.conceptConfig = {"settingsProfiles":[],"bidderTargeting":[],"mobileMultiplier":2,"prebidKeyMap":[],"targetingToDMP":[],"refreshInview":0,"prebidTimeOut":1400,"s2sTimeout":500,"page_url":"https://www.msn.com/","reportTrackingAs":"msn.uk","prebidRef":"https://cncptx.com/prebid_builds/bf6a03c7-0031-5c96-8201-2f00c2d9e868.js","adUnits":[{"refresh":30000,"dependencies":[],"excluserTimeout":200,"path":"/5706918,22569761985/msn.uk_728x90_lb1_mcg","targeting":{},"divIdOnPage":"msn-uk_728x90_lb1_mcg","size":[[[0,0],[[728,90]]]],"cookieLessPath":null,"rootMargin":0,"setUniqueTargeting":true,"id":"ol8ubh","lazyload":false},{"refresh":30000,"dependencies":[],"excluserTimeout":200,"path":"/5706918,22569761985/msn.uk_300x600_rec1_mcg","isAchor":null,"divIdOnPage":"msn-uk_300x600_rec1_mcg","targeting":{},"size":[[[0,0],[[300,600]]]],"cookieLessPath":null,"rootMargin":0,"setUniqueTargeting":true,"id":"fveoxa","lazyload":false},{"refresh":30000,"excluserTimeout":200,"dependencies":[],"path":"/5706918,22569761985/msn.uk_300x250_rec1_mcg","divIdOnPage":"msn-uk_300x250_rec1_mcg","targeting":{},"size":[[[0,0],[[300,250]]]],"cookieLessPath":null,"rootMargin":0,"setUniqueTargeting":true,"id":"t4ag8e","lazyload":false},{"refresh":30000,"excluserTimeout":200,"dependencies":[],"path":"/5706918,22569761985/msn.uk_300x250_mob1_mcg","divIdOnPage":"msn-uk_300x250_mob1_mcg","targeting":{},"size":[[[0,0],[[300,250]]]],"cookieLessPath":null,"rootMargin":0,"setUniqueTargeting":true,"id":"9pcpji","lazyload":false},{"refresh":30000,"dependencies":[],"excluserTimeout":200,"path":"/5706918,22569761985/msn.uk_970x250_lb1_trail","divIdOnPage":"msn-uk_970x250_lb1_trail","targeting":{},"size":[[[0,0],[[970,250]]]],"cookieLessPath":null,"rootMargin":0,"setUniqueTargeting":true,"id":"q746","lazyload":false},{"refresh":30000,"dependencies":[],"excluserTimeout":200,"path":"/5706918,22569761985/msn.uk_728x90_lb1_trail","targeting":{},"divIdOnPage":"msn-uk_728x90_lb1_trail","size":[[[0,0],[[728,90]]]],"cookieLessPath":null,"rootMargin":0,"setUniqueTargeting":true,"id":"xg26di","lazyload":false},{"refresh":30000,"excluserTimeout":200,"dependencies":[],"path":"/5706918,22569761985/msn.uk_300x250_rec1_trail","divIdOnPage":"msn-uk_300x250_rec1_trail","targeting":{},"size":[[[0,0],[[300,250]]]],"cookieLessPath":null,"rootMargin":0,"setUniqueTargeting":true,"id":"9zitnt","lazyload":false},{"refresh":30000,"dependencies":[],"excluserTimeout":200,"path":"/5706918,22569761985/msn.uk_300x600_rec1_trail","isAchor":null,"divIdOnPage":"msn-uk_300x600_rec1_trail","targeting":{},"size":[[[0,0],[[300,600]]]],"cookieLessPath":null,"rootMargin":0,"setUniqueTargeting":true,"id":"yi0ik4","lazyload":false},{"refresh":30000,"excluserTimeout":200,"dependencies":[],"path":"/5706918,22569761985/msn.uk_300x250_mob1_trail","divIdOnPage":"msn-uk_300x250_mob1_trail","targeting":{},"size":[[[0,0],[[300,250]]]],"cookieLessPath":null,"rootMargin":0,"setUniqueTargeting":true,"id":"rii02l","lazyload":false},{"path":"/5706918,22569761985/msn.uk_970x250_lb1_verizon","divIdOnPage":"msn_uk_970x250_lb1_verizon","targeting":{},"size":[[[0,0],[[970,250]]]],"cookieLessPath":null,"rootMargin":0,"refresh":30000,"id":"bzr7xd","lazyload":false,"excluserTimeout":200,"dependencies":[]},{"path":"/5706918,22569761985/msn.uk_728x90_lb1_verizon","targeting":{},"divIdOnPage":"msn_uk_728x90_lb1_verizon","size":[[[0,0],[[728,90]]]],"cookieLessPath":null,"rootMargin":0,"refresh":30000,"id":"oal41v","lazyload":false,"dependencies":[],"excluserTimeout":200},{"refresh":30000,"dependencies":[],"excluserTimeout":200,"path":"/5706918,22569761985/msn.uk_300x600_rec1_verizon","targeting":{},"divIdOnPage":"msn_uk_300x600_rec1_verizon","prebidSizes":[[300,600]],"size":[[[0,0],[[300,600]]]],"cookieLessPath":null,"rootMargin":0,"id":"mlhv9p","lazyload":false,"prebidBid":[{"params":{"mid":1668784},"bidder":"adf2"},{"params":{"mid":1668788},"bidder":"adf3"},{"params":{"mid":1668790},"bidder":"adf1"}]},{"refresh":30000,"excluserTimeout":200,"dependencies":[],"path":"/5706918,22569761985/msn.uk_300x250_mob1_verizon","targeting":{},"divIdOnPage":"msn_uk_300x250_mob1_verizon","prebidSizes":[[300,250]],"size":[[[0,0],[[300,250]]]],"cookieLessPath":null,"rootMargin":0,"id":"jv9hxy","lazyload":false,"prebidBid":[{"params":{"mid":1668783},"bidder":"adf2"},{"params":{"mid":1668787},"bidder":"adf3"},{"params":{"mid":1668792},"bidder":"adf1"}]},{"refresh":30000,"excluserTimeout":200,"dependencies":[],"path":"/5706918,22569761985/msn.uk_300x250_rec1_verizon","divIdOnPage":"msn_uk_300x250_rec1_verizon","targeting":{},"prebidSizes":[[300,250]],"size":[[[0,0],[[300,250]]]],"cookieLessPath":null,"rootMargin":0,"id":"dr9fzs","lazyload":false,"prebidBid":[{"params":{"mid":1668785},"bidder":"adf2"},{"params":{"mid":1668789},"bidder":"adf3"},{"params":{"mid":1668791},"bidder":"adf1"}]},{"refresh":30000,"dependencies":[],"excluserTimeout":200,"path":"/5706918,22569761985/msn.uk_970x250_lb1","divIdOnPage":"msn-uk_970x250_lb1","targeting":{},"size":[[[0,0],[[970,250]]]],"cookieLessPath":null,"rootMargin":0,"setUniqueTargeting":true,"id":"y1q98n","lazyload":false},{"refresh":30000,"dependencies":[],"excluserTimeout":200,"path":"/5706918,22569761985/msn.uk_728x90_lb1","targeting":{},"divIdOnPage":"msn-uk_728x90_lb1","size":[[[0,0],[[728,90]]]],"cookieLessPath":null,"rootMargin":0,"setUniqueTargeting":true,"id":"kn8bn","lazyload":false},{"refresh":30000,"dependencies":[],"excluserTimeout":200,"path":"/5706918,22569761985/msn.uk_300x600_rec1","isAchor":null,"divIdOnPage":"msn-uk_300x600_rec1","targeting":{},"size":[[[0,0],[[300,600]]]],"cookieLessPath":null,"rootMargin":0,"setUniqueTargeting":true,"id":"pfe08d","lazyload":false},{"refresh":30000,"excluserTimeout":200,"dependencies":[],"path":"/5706918,22569761985/msn.uk_300x250_rec1","divIdOnPage":"msn-uk_300x250_rec1","targeting":{},"size":[[[0,0],[[300,250]]]],"cookieLessPath":null,"rootMargin":0,"setUniqueTargeting":true,"id":"kdjln","lazyload":false},{"refresh":30000,"excluserTimeout":200,"dependencies":[],"path":"/5706918,22569761985/msn.uk_300x250_mob1","divIdOnPage":"msn-uk_300x250_mob1","targeting":{},"size":[[[0,0],[[300,250]]]],"cookieLessPath":null,"rootMargin":0,"setUniqueTargeting":true,"id":"ub8yx9","lazyload":false}],"videoAdunits":[{"divIdOnPage":"","mediaTypes":{"video":{"linearity":1,"maxduration":30,"context":"instream","playerSize":[1,1],"api":[2],"placement":1,"protocols":[1,2,3,4,5,6,7,8],"minduration":10,"mimes":["video/mp4","video/webm"]}},"targeting":{"format":"preroll"},"code":"/5706918,22569761985/msn.com_video_UK","bids":[{"params":{"mid":"1672857"},"bidder":"adf"}],"id":"hnqzrxf","BBUNIT":"","playerId":"lnkwssq","videoPlayer":2}],"sid":"C-00481","disablePrebidConsentManagement":null,"readpeaks":[],"customTargeting":{"market":"uk","domain":"msn.com","categories":"news"},"activateConceptTargeting":null,"bidderSettings":[{"alias":"adf2","bidCpmAdjustment":1,"bidder":"adform"},{"alias":"adf3","bidCpmAdjustment":1,"bidder":"adform"},{"alias":"adf1","bidCpmAdjustment":1,"bidder":"adform"}],"strossles":[],"usePrebid":true,"RMBRef":null,"prebidAliases":[["adf2","adform","50"],["adf3","adform","50"],["adf1","adform","50"]],"deployId":"m1agsdd91kx1shhkdcr","supplyPartners":[{"gvlid":"50","bidder":"adform","bidCpmAdjustment":"1","alias":"adf2"},{"gvlid":"50","bidder":"adform","asi":"adform.com","bidCpmAdjustment":"1","sid":"9","alias":"adf3"},{"gvlid":"50","bidder":"adform","bidCpmAdjustment":"1","alias":"adf1"}],"ABTesters":[],"implementationType":"NORMAL","haltInit":0,"rootMargin":500,"failsafe_timeout":0}; "use strict";(()=>{var it=Object.defineProperty;var _i=Object.getOwnPropertyDescriptor;var Ri=Object.getOwnPropertyNames;var Li=Object.prototype.hasOwnProperty;var v=(e,t)=>()=>(e&&(t=e(e=0)),t);var ki=(e,t)=>{for(var o in t)it(e,o,{get:t[o],enumerable:!0})},ji=(e,t,o,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Ri(t))!Li.call(e,i)&&i!==o&&it(e,i,{get:()=>t[i],enumerable:!(n=_i(t,i))||n.enumerable});return e};var rt=e=>ji(it({},"__esModule",{value:!0}),e);var A,fe=v(()=>{"use strict";A={MACRO_UNLOAD:"ADSM_MACRO_UNLOAD",SLOT_LOADED:"SLOT_LOADED",SLOT_REQUESTED:"SLOT_REQUESTED",SKIN_INIT:"ADSM_RMB_SKIN_INIT",SIDESKIN_INIT:"ADSM_RMB_SIDESKIN_INIT",DESKTOP_TOPSCROLL:"ADSM_RMB_HTML_TOPSCROLL_DESKTOP_INIT",GET_CONCEPTADS:"GET_CONCEPTADS",GET_VASTTAG:"GET_VASTTAG",GET_PREBIDVASTTAG:"GET_PREBIDVASTTAG"}});function b(e){Bt&&s(e,"error")}var Ft,Ui,$i,Fi,st,Bt,s,Mt,te,Dt,qt,j,O,me,q,Oe,y=v(()=>{"use strict";Ft={pbjs:"#3B88C3;",gpt:"#1E8E3E;",adnuntius:"#0e9bd6;",emitter:"#f4b400;",video:"#ff0046;",conceptads:"#283593;",readpeak:"#13759a;",strossle:"#191919;",function:"#9AE19D;",test:"#6eb77f;",error:"#ff3333;",warning:"#ffcc00;"},Ui=e=>Ft[e]||"#d24f54;",$i=performance.now(),Fi=function(e,t){let o=Array.from(t),n=Ui(e);o.unshift("font-family: sans-serif; font-weight: bold; color: #FFF; padding: 1px 0; background: "+n+" padding: 1px 3px; margin: 2px 0; border-radius: 3px;");let r=(performance.now()-$i)/1e3;return o.unshift("%c"+e.toUpperCase()+` (+ ${r.toFixed(2)} s) `),o},st=function(e){let t="[\\?&]"+e+"=([^&#]*)",n=new RegExp(t).exec(window.location.search);return n===null?"":decodeURIComponent(n[1].replace(/\+/g," "))},Bt=st("concept_debug")==="true"||globalThis.concept_debug,s=(e,t="conceptads",o="log")=>(Object.keys(Ft).includes(t)||(t="conceptsads"),Bt&&console[o].apply(void 0,Fi(t,[e])));Mt=()=>{let e=performance.now();globalThis.concept.initialCalled=!0;let t=globalThis.concept?.initTime?(e-globalThis.concept.initTime)/1e3:0;globalThis?.concept?.eventLog&&globalThis.concept.eventLog.push({msg:"injectAds executing.....",secondCount:t,list:"core"})},te=(e,t)=>{let o=performance.now(),n=globalThis.concept?.initTime?(o-globalThis.concept.initTime)/1e3:0;globalThis?.concept?.eventLog&&globalThis.concept.eventLog.push({msg:t,secondCount:n,list:e})},Dt=e=>te("Function queued",e),qt=e=>te("Function dequeued",e),j=e=>te("Timing point",e),O=e=>te("Event recieved",e),me=e=>te("Ad loaded",e),q=e=>te("Request sent",e),Oe=e=>te("Unfilled recieved",e)});var P,oe=v(()=>{"use strict";P={LEGITIMATE_INTERREST:"LEGITIMATE_INTERREST",UNKNOWN:"UNKNOWN",FULL_CONSENT:"FULL_CONSENT",CONSENT_REJECT:"CONSENT_REJECT_AND_NO_LEGITIMATE",NO_TCF_API:"NO_TCF_API",NOT_SET:"NOT_SET"}});var Gt,zt=v(()=>{"use strict";Gt=function(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}});var ne,he,Wt,d,f,S,xe,Ne,I=v(()=>{"use strict";ne=({adunitPath:e})=>{let t=[...globalThis.concept.updateWhenResolved.keys()],o=[...globalThis.concept.updateIfEmpty.keys()];return[...t,...o].filter(i=>S(i)).map(i=>S(i).path).includes(e)},he=()=>globalThis.conceptConfig,Wt=()=>globalThis.concept,d=e=>globalThis.conceptConfig[e],f=e=>globalThis.concept[e],S=e=>globalThis.concept.adUnits.get(e),xe=(e,t)=>globalThis.conceptConfig[e]=t,Ne=()=>({changeCorrelator:d("dontChangeCorrelator")!==!0})});var Bi,Mi,se,_e=v(()=>{"use strict";I();Bi=300,Mi=e=>{let t=f("device")==="mobile",o=f("adUnits"),n=d("mobileMultiplier")||2,i=d("rootMargin"),r=t?n:1,a=o?o.get(e):null;return((a&&a.rootMargin?a.rootMargin:i)||Bi)*r+"px"},se=e=>({root:null,rootMargin:Mi(e),threshold:d("threshold")||0})});var at,Ht,Vt=v(()=>{"use strict";I();y();at={criteo:{transformer:e=>{let t={};return t.networkId=parseInt(e.networkId),e.zoneId&&(t.zoneId=parseInt(e.zoneId)),e.publisherSubId&&(t.publisherSubId=`${e.publisherSubId}`),t}},grid:{transformer:e=>({uid:parseInt(e.uid)})},adnuntius:{transformer:e=>({auId:e.auId.trim(),bidType:`${e.bidType||"grossBid"}`})},adform:{transformer:e=>({mid:parseInt(e.mid),adxDomain:`${e.adxDomain||"adx.adform.net"}`.trim()})},pubmatic:{transformer:e=>({adSlot:`${e.adSlot}`,publisherId:`${e.publisherId}`})},appnexus:{transformer:(e,t)=>{let o=d("mSupplySpecialTargeting"),n=d("appnexusAdunitKeyWordsAllowed")||[],i=f("targeting"),r={placementId:`${e.placementId}`};return o&&n.includes(t)&&(s("Setting keyswords for adunit","pbjs"),o.forEach(a=>{i[a.value]&&(r.keywords||(r.keywords={}),r.keywords[a.key]=i[a.value])})),r}}},Ht=e=>{let{bidder:t,params:o,disabled:n}=e,r=(globalThis?.conceptConfig?.prebidAliases||[]).find(c=>c[0]===t),a=r&&r[1];if(at[t]||a&&at[r[1]]){let c=t;r&&(c=r[1]);let u={bidder:t,params:at[c].transformer(o,t)};return n&&(u.disabled=n),u}return e}});var Di,Kt,Qt,Yt=v(()=>{"use strict";({injectCustomAsyncScript:Di}=(R(),rt(Re))),Kt=()=>globalThis.conceptConfig.activatePubx,Qt=e=>{Di(e,"https://cdn.pbxai.com/029f2f07-0154-4544-b38d-26667fe7fd22.js"),e("PubX Injected")}});var Jt,Xt,Zt,eo,to=v(()=>{"use strict";I();Jt=()=>{let e=d("activateS2s"),t=d("prebidTimeOut")||1e3,o=d("adServerCurrency")||"DKK",n=d("enableTIDs")||!0,i=d("disablePrebidConsentManagement"),r=d("disableUserSync"),a=d("prebidPriceBuckets"),l=[{precision:2,max:20,increment:.2},{precision:2,max:100,increment:1},{precision:2,max:400,increment:10}],c=a&&a.length>0?a:l,u={bidderTimeout:t,enableTIDs:n,currency:{adServerCurrency:o},allowActivities:{transmitEids:{rules:[{allow:!0}]},fetchBids:{rules:[{allow:!0}]}},targetingControls:{addTargetingKeys:["SOURCE"]},priceGranularity:{buckets:c},paapi:{enabled:!0,defaultForSlots:1}};if(i||(u.consentManagement={gdpr:{cmpApi:"iab",timeout:8e3,defaultGdprScope:!0},usp:{cmpApi:"iab",timeout:100}}),r||(u.userSync={filterSettings:{iframe:{bidders:"*",filter:"include"}},auctionDelay:0,userIds:[{name:"sharedId",storage:{type:"cookie",name:"_pubcid",expires:365},params:{pixelUrl:"/pubcidcookie"}},{name:"criteo"},{name:"id5id",params:{partner:461},storage:{type:"html5",name:"id5id",expires:90,refreshInSeconds:8*3600}}]}),e){let m=d("prebidAliases")||[],h=d("s2sBidders")||[],E=d("s2sAccountName")||"cncpt",C=d("s2sTimeout")||500;u.s2sConfig={accountId:E,adapter:"prebidServer",enabled:!0,bidders:[...h],cookieSet:!0,endpoint:"https://s2s.cncpt-central.com/openrtb2/auction",syncEndpoint:"https://s2s.cncpt-central.com/cookie_sync",timeout:C,extPrebid:{aliases:Object.fromEntries(m.filter(w=>h.includes(w[0]))||[]),targeting:{includebidderkeys:!0}}}}return(d("disablePrebidSync")||!1)&&(u.syncEnabled=!1),(d("disablePrebidDevice")||!1)&&(u.deviceAccess=!1),u},Xt=e=>{let{asi:t,sid:o,extraNodes:n,alias:i,bidder:r}=e,a={bidders:[i||r],config:{schain:{validation:"strict",config:{ver:"1.0",complete:1,nodes:[]}}}};return t&&o&&a.config.schain.config.nodes.push({asi:t,sid:o,hp:1}),n&&n.forEach(l=>{a.config.schain.config.nodes.push({asi:l.asi,sid:l.sid,hp:1})}),a},Zt=()=>{let e=d("supplyPartners")||[];if(!e)return;let t={standard:{storageAllowed:!0}};e.forEach(o=>{let n=parseFloat(o.bidCpmAdjustment);n!==1&&(t[o.alias]?t[o.alias].bidCpmAdjustment=r=>r*n:t[o.alias]={bidCpmAdjustment:r=>r*n})}),pbjs.bidderSettings=t},eo=()=>{let e=d("prebidKeyMap")||[],t={},o=[{keyName:"concept_domain",value:"domain"},{keyName:"concept_path1",value:"path1"},{keyName:"concept_path2",value:"path2"},{keyName:"concept_IAB1",value:"IAB1"},{keyName:"concept_IAB2",value:"IAB2"},{keyName:"concept_contxt",value:"contxt"},...e],n="prebidkey",i=f("targeting");o.forEach(l=>{i[l.value]&&(t[l.keyName]=i[l.value])});let r=i.UrlQuery.find(l=>l.includes(n));if(r){let[l,c]=r.split(":");t[l]=c}let a=globalThis.concept.targeting.categories||"";return t.concept_category=a.split(","),globalThis.concept.pbjsGlobalKeys=t,t}});function so(e){let t=!1,o=Ne();if(e.length===0){s("No units ot refresh");return}let{prebidUnits:n,onlyGamUnits:i}=qi(e);i.forEach(c=>{let u=c.path;q(`${u} - gpt`),googletag.cmd.push(function(){c.slot&&googletag.pubads().refresh([c.slot],o)})});let r=n.map(c=>c.code),a=e.filter(c=>r.includes(c.path));n&&n.length>0&&(q(`${r.join(", ")} - prebid`),pbjs.que.push(function(){let c=r.join(", ");ro(),pbjs.removeAdUnit(),pbjs.addAdUnits(n),j(`prebid auction started ${c}`),s(`Starting auction for = ${c}`,"pbjs"),pbjs.requestBids({adUnitCodes:r,bidsBackHandler:l})}));function l(c){if(!t){if(t=!0,c&&Qi(c),a.length===0){s("Nothing to call GAM with");return}pbjs.setPAAPIConfigForGPT&&pbjs.setPAAPIConfigForGPT(),googletag.cmd.push(function(){let u=a.filter(p=>p.slot).map(p=>p.slot);if(u.length===0){s("Nothing with a slot to call GAM with");return}if(!pbjs.libLoaded){googletag.pubads().refresh(u,o);return}pbjs.que.push(function(){pbjs.setTargetingForGPTAsync(),s("[initAdserver] send prebid result to GAM","pbjs"),googletag.pubads().refresh(u,o)})})}}if(n&&n.length>0){let c=(globalThis?.conceptConfig?.prebidTimeOut||3e3)+500;setTimeout(function(){t||(s(`[PREBID] Timouter caught this one ${r}`,"pbjs"),l({}))},c)}}var oo,Le,qi,Gi,no,zi,Wi,io,ro,Hi,Vi,Ki,Qi,ke=v(()=>{"use strict";y();R();Yt();to();I();oo=!0;window.pbjs=window.pbjs||{};pbjs.que=pbjs.que||[];Le=e=>{if(e.usePrebid&&e.prebidRef)if((!window.pbjs||!window.pbjs.libLoaded)&&oo){oo=!1,Kt()&&Qt(s);let t=e.prebidRef;Hi(),lt(s,t),Wi(),Gi(),Vi(),globalThis.concept.updateTargeting()}else s("Prebid already loaded/started","pbjs");else s("Prebid not needed","pbjs")},qi=e=>{let t=[],o=[],n=e.map(i=>i.path);return s(`[getPrebidSettings] looking up bids for: ${n}`,"conceptads"),e.forEach(i=>{let r=i.path,a=i.divIdOnPage;for(let[l,c]of f("adUnits")){if(!c){s("Unit is deleted");return}c.divIdOnPage===a&&c.prebidSettings?.bids&&c.prebidSettings?.bids?.length>0?(c.prebidSettings.code=r,t.push(c.prebidSettings)):c.divIdOnPage===a&&o.push(c)}}),{prebidUnits:t,onlyGamUnits:o}},Gi=()=>{d("useLiveWrappedAnalytics")&&window.pbjs.que.push(function(){s("setting setPrebidAnalytics (liveWrapped)","pbjs"),pbjs.enableAnalytics({provider:"livewrapped",options:{publisherId:"35665883-67d9-42e1-b1e9-8f3e80c7f513",endpoint:"https://lwadm.com/analytics/10"}})})},no=(e,t)=>{window.pbjs.que.push(function(){let o=t.filter(a=>a.target==="site"),n=t.filter(a=>a.target==="user"),i=f("targeting"),r={bidders:e,config:{ortb2:{site:{ext:{data:{}}},user:{ext:{data:{}}}}}};o.forEach(a=>{r.config.ortb2.site.ext.data[a.key]=i[a.value]}),n.forEach(a=>{r.config.ortb2.user.ext.data[a.key]=i[a.value]}),e&&e.length>0&&(s(`Setting bidder targeting for ${e.join(",")}`,"pbjs"),pbjs.setBidderConfig(r,!0))})},zi=e=>{window.pbjs.que.push(function(){e[1]&&e[0]&&pbjs.aliasBidder(e[1],e[0],{...e[2]&&{gvlid:parseInt(e[2])}})})},Wi=()=>{if(s("Adding Aliases","pbjs"),globalThis.conceptConfig?.prebidAliases){let e=globalThis.conceptConfig.prebidAliases,t=[];if(typeof e=="string")try{t=JSON.parse(e)}catch{b("could not parse prebidAliases")}Array.isArray(e)&&(t=e),s(JSON.stringify(e),"pbjs"),t.forEach(o=>zi(o))}},io=({bids:e,sizes:t,path:o,prebidAllowNative:n})=>{if(e.length===0)return null;let i={code:o,bids:e.filter(r=>!r.disabled),mediaTypes:{banner:{sizes:t}}};return n&&i.mediaTypes&&(i.mediaTypes.native={clickUrl:{required:!1},desc2:{required:!1,len:60},body:{required:!1,len:60},title:{required:!1,len:125},sponsoredBy:{required:!0,len:25},icon:{required:!0,aspect_ratios:[{min_height:150,ratio_height:1,ratio_width:1,min_width:150}]},main_image:{required:!1,aspect_ratios:[{min_height:100,ratio_height:1440,ratio_width:1440,min_width:100},{min_height:100,ratio_height:1440,ratio_width:720,min_width:100},{min_height:100,ratio_height:1440,ratio_width:960,min_width:100},{min_height:100,ratio_height:1440,ratio_width:810,min_width:100}]},ctatext:{required:!1,len:15},address:{required:!1,len:35},video:{required:!1},sendTargetingKeys:!1}),i},ro=()=>{s("updatin pbjs ortb2 (contxt & targetings)","pbjs");let e=f("targeting"),t=eo(),o={site:{ext:{data:{...t}}}};e?.lat&&(o.device={geo:{lat:e?.lat,long:e?.long,accuracy:parseInt(e?.accuracy)}}),pbjs.setConfig({ortb2:o});let n=d("appnexusSpecialTargeting"),i={...t};n&&(s("Setting appnexus specfic keywords"),n.forEach(r=>{e[r.value]&&(i[r.key]=e[r.value])})),pbjs.setConfig({appnexusAuctionKeywords:i})},Hi=()=>{let e=d("adUnits")||[],t=["client","s2s"];e.filter(o=>o.prebidBid&&o.prebidBid.length>0&&o.prebidBid.some(n=>n.splitBid)).map(o=>o.prebidBid.filter(n=>n.splitBid)).flat(1/0).forEach(o=>{let{bidder:n}=o;if(!globalThis.conceptConfig.supplyPartners)return;let i=globalThis.conceptConfig.supplyPartners?.find(r=>r.alias===n||r.bidder===n);i&&t.forEach(r=>{let a=`${n}_${r}`,l={...i,alias:a};if(!conceptConfig.prebidAliases?.find(c=>c[0]===a)){let c=[a,i.bidder];i?.gvlid&&c.push(i.gvlid),conceptConfig.prebidAliases?.push(c)}conceptConfig.supplyPartners?.find(c=>c.alias===a)||conceptConfig.supplyPartners?.push(l),r==="s2s"&&!conceptConfig.s2sBidders?.includes(a)&&conceptConfig.s2sBidders?.push(a)})})},Vi=()=>{pbjs.que.push(function(){s("setting cncpt pbjs options (bidadjustments & general config)","pbjs"),Zt(),ro(),Ki(),pbjs.onEvent("auctionInit",function(t){s(`[auctionInit] ${t.adUnitCodes[0]} with ${t.bidderRequests.length} bids`,"pbjs")}),pbjs.setConfig(Jt());let e=d("videoPriceBuckets");e&&e.length>0&&(s("Setting video price buckets","pbjs"),pbjs.setConfig({mediaTypePriceGranularity:{video:{buckets:e}}}))})},Ki=()=>{(d("supplyPartners")||[]).filter(t=>t.asi&&t.sid||t.extraNodes&&t.extraNodes.length>0).forEach(t=>{s(`Seeting Schain for ${t.alias||t.bidder}`,"pbjs");let o=Xt(t);pbjs.setBidderConfig(o)})},Qi=e=>{pbjs.que.push(function(){Object.keys(e).forEach(t=>{let n=pbjs.getHighestCpmBids(t)[0];if(n){let i=n?.cpm?.toFixed(2)||0,r=n?.bidder||"unknown";s(`GAM has to beat ${i} by ${r}`,"pbjs")}})})}});var ao,U,lo,V=v(()=>{"use strict";ao=e=>{let t,o=[];for(t=0;tn);t++);return e[t]},U=()=>Math.random().toString(36).substr(2,9),lo=(e,t)=>Math.floor(Math.random()*(t-e+1)+e)});var je,co,ct,uo,Ue=v(()=>{"use strict";je=()=>document.createElement("div"),co=(e,t,o)=>{if(e){e.classList.add(`outer-box-${e.id}`);let n=je();n.className="inner-second",n.innerHTML=`

Your ${e.id} ad will be shown here!

`;let i=`.outer-box-${e.id}`,r=` ${i} {padding: 0; position: relative; width: ${t}px; height: ${o}px;} ${i} .inner-second { padding: 0; position: absolute; width: 100%; min-height: 100%; top: 0; left: 0; right: 0; bottom: 0; opacity: 0; transition: opacity .5s; background: #30ac7c;} ${i} .inner-second p {color: #fff;font-family: 'arial';text-align: center;} ${i} .inner-second {opacity: .9;transition: opacity .5s;}`;ct(r),e.appendChild(n)}},ct=e=>{let t=document.createElement("style");t.innerText=e,document.head.appendChild(t)},uo=e=>{let t=document.getElementById(e.divIdOnPage);if(!t)return"";let o=je(),n=`${e.divIdOnPage}-prerender`;o.setAttribute("id",n);let i=je(),r=je();return r.setAttribute("id",`${e.divIdOnPage}-grandparent`),i.setAttribute("id",`${e.divIdOnPage}-realrender`),t.appendChild(o),r.appendChild(i),t.appendChild(r),n}});function dt(e,t){e&&e.postMessage&&e.postMessage(t,"*")}var $,po,$e,go,fo,Fe,mo,ho,bo,To,Co,vo,Be,Io,G=v(()=>{"use strict";I();y();$=(e,t)=>{if(!d("isPassback")){s(`${e} emitted`,"emitter");let n=new CustomEvent(e,t);window.parent.document.dispatchEvent(n)}},po=({divId:e})=>{$("viewableAd",{detail:{viewable:!0,divId:e}})},$e=({name:e,divId:t})=>{$("unfilledAd",{detail:{adunit:e,unfilled:!0,divId:t}})},go=()=>$("concept_loaded",{detail:{}}),fo=()=>$("concept_listening",{detail:{}}),Fe=({name:e,divId:t})=>{$("filledAd",{detail:{adunit:e,filled:!0,divId:t}})},mo=(e,t)=>{let o=globalThis.concept.buildVastTag(t);dt(e,{type:"vast_tag",payload:{VASTTag:o}})},ho=async(e,t)=>{let o=await globalThis.concept.requestPrebidUrl(t);dt(e,{type:"prebid_vast_tag",payload:{VASTTag:o}})},bo=e=>{let o={cncptads:JSON.stringify(Wt())};dt(e,{type:"concept_ads",payload:o}),$("concept_ads",{detail:o})},To=()=>$("urlChange",{detail:{}}),Co=()=>$("consentRecieved",{detail:{}}),vo=()=>$("cookieless",{detail:{}}),Be=()=>$("withCookies",{detail:{}}),Io=e=>$("PPIDSet",{detail:{id:e}})});var yo,Yi,Ji,Xi,Zi,er,tr,or,Ao,nr,ir,rr,Me=v(()=>{"use strict";R();y();L();F();G();Ue();I();yo=e=>{window.adn&&window.adn.calls&&window.adn.request?e("Adnuntius already loaded"):(ie("https://cdn.adnuntius.com/adn.js",document),e("Adnuntius Injected"))};window.adn=window.adn||{};adn.calls=adn.calls||[];Yi=e=>{for(var t in e)(e[t]===null||e[t]===void 0||e[t]==="")&&delete e[t];return e},Ji=e=>{$e({name:e.targetId,divId:e.targetId}),Oe(e.targetId)},Xi=e=>{globalThis.concept.adsloaded=globalThis.concept.adsloaded+1,me(e.targetId),Fe({name:e.targetId,divId:e.targetId})},Zi=e=>me(e.widgetId),er=(e,t="size")=>{let o=K(),n=ae(e[t],o);return ut(n)},tr=(e,t,o,n="iframe")=>({targetId:t,auId:e.cookieLessPath,kv:o,useCookies:!1,isolateFrame:!0,auW:e.cookielessWidth?`${e.cookielessWidth}`:"unset",auH:e.cookielessHeight?`${e.cookielessHeight}px`:0,onViewable:Zi,container:n,onNoMatchedAds:Ji,onImpressionResponse:Xi}),or=e=>{e.forEach(t=>{if(s(`Queueing ${t.targetId}`,"adnuntius"),!d("disableAutoCenterCLAds")){let n=document.getElementById(t.targetId);n&&(n.style.margin="0px auto")}q(`${t.targetId} - adnuntius`),nr({slot:t})})},Ao=({adunitDivId:e,container:t,prerender:o}={adunitDivId:null,container:"iframe",prerender:!1})=>{o&&s(`Pre rendereing ${e}`,"adnuntius");let i=De()?"mobile":"desktop";globalThis.concept.device=i;let a=d("adUnits").filter(u=>u.cookieLessPath&&!u.cookieLessPath.includes("/"));e&&(a=a.filter(u=>u.divIdOnPage===e));let l=Yi(globalThis.concept.targeting),c=a.filter(u=>er(u,"size")).map(u=>{let p=u.divIdOnPage;return o&&(p=uo(u),u.divIdOnPage=`${u.divIdOnPage}-realrender`),tr(u,p,l,t)});return or(c),c.map(u=>u.targetId)},nr=async({slot:e})=>{let t=f("failsafe_timeout");s(`Waiting for ${e.targetId} to be in the DOM`,"adnuntius"),await M(`#${e.targetId}`,t)!==null&&ir(e)},ir=e=>{s(`Requesting ${e.targetId}`,"adnuntius"),adn.calls.push(function(){rr(e)})},rr=e=>{adn.useLocalStorage(!1),adn.request({requestParams:{proximity:50,load:"lazy"},adUnits:[e]})}});var Eo,So=v(()=>{"use strict";y();R();L();Eo=({contxt:e,logger:t})=>{t("Dentsu gonna be Injected");let o=qe("_pubcid",!1);window._adftrack=Array.isArray(window._adftrack)?window._adftrack:window._adftrack?[window._adftrack]:[];let n=576327,i=["Data_Concept_All_Firstparty","Data_Concept_All"],r="Concept_data",a=o,l=window.location.href,c=e.join(","),u=window.location.hostname;i.forEach(h=>{window._adftrack.push({pm:n,divider:encodeURIComponent("|"),pagename:encodeURIComponent(h),order:{sv1:r,sv2:a,sv3:l,sv22:u,sv4:c}})}),globalThis.dataLayer=globalThis.dataLayer||[];function p(){globalThis.dataLayer.push(arguments)}p("js",new Date),p("config","G-955BVT8WXE",{d_partnership:r,d_first_party_id:a,d_url:l,d_domain_category:c,d_domain_name:u});let g="https://s2.adform.net/banners/scripts/st/trackpoint-async.js",m="https://www.googletagmanager.com/gtag/js?id=G-955BVT8WXE";z(s,g),z(s,m)}});var pt,Po,Ge,ze=v(()=>{"use strict";y();Y();So();I();pt=()=>{let e=d("waitForContxt"),t=f("contxtFetched");return d("activateConceptTargeting")&&e&&Number.isInteger(e)&&!t},Po=()=>{let e=f("contxtRequestQueue")||[];e.forEach((t,o)=>{e[o]()}),globalThis.concept.contxtRequestQueue=[]},Ge=async()=>{try{let e;if(pt()){let c=d("waitForContxt");e=setTimeout(()=>{s("Timeout expired for Contxt"),Po()},c)}let t=d("reportTrackingAs"),o=d("disableConceptLoads"),n=d("activateDentsuDMP");globalThis.concept.contxtFetched=!1;let i=document.location.href;if(!i||i.includes("safeframe")){b("We can not determine the source url");return}let a=`https://prod-contxt-api-app-service.azurewebsites.net/targeting?url=${i}`;t&&!o&&(a=`${a}&site=${t}`);let l={contxt:null,IAB1:null,IAB2:null};return fetch(a).then(c=>c.json()).then(c=>{Array.isArray(c.audiences)&&c?.audiences.length>0&&(l.contxt=c.audiences,n&&Eo({contxt:c.audiences,logger:s})),["IAB1","IAB2","IAB3","IAB4"].forEach(g=>{c?.[g]?.id&&(l[g]=c[g].id)});let p=f("targeting");return globalThis.concept.contxtFetched=!0,globalThis.concept.targeting={...p,...l},s("Contextual targeting injected"),Q(l),Po(),clearTimeout(e),l})}catch(e){return b(`Something went wrong with concept contextual targeting: ${e}`),Promise.reject(e)}}});function ur({document:e,adUnit:t,refreshFunction:o,name:n}){let i="scheduleForLater",r=t.divIdOnPage,l={root:null,rootMargin:"0px",threshold:d("refreshInview")||.25},c=e.getElementById(r);if(c&&c.childNodes&&c.childNodes[0]&&c.childNodes[0].constructor.name==="HTMLDivElement"&&(c=c.childNodes[0]),ht({el:c})){wo(t);let p=`refreshOnNextInView -> ${r} refresh directly nr ${t.targeting.refresh}`;s(p),o({names:[n],caller:i})}else re({observerConfig:l,element:c,excutionFunction:(p,g)=>{p.isIntersecting&&(wo(t),s(`refreshOnNextInView -> ${r} refresh for scroll nr ${t.targeting.refresh}`),o({names:[n],caller:i}),g.unobserve(c))}})}var Oo,xo,sr,We,ar,No,gt,ft,Te,_o,lr,wo,Ce,cr,He,dr,J,ae,ut,pr,gr,Ro,Lo,fr,mr,ko,hr,jo,mt,Uo,F=v(()=>{"use strict";y();L();I();Vt();Y();ke();fe();V();Ue();Me();ze();Oo=e=>new Promise(t=>setTimeout(t,e)),xo=(e,t,o)=>{let n=ae(e,K()),i=n&&n[1][0];if(!Array.isArray(i))return;let[r,a]=i;s(`Showing overlay on ${t}`),co(o,r,a)},sr=async(e,t)=>new Promise(function(o){s(`Looking for ${e} `,"conceptads"),document.querySelector(e)&&o(!0);let n=setTimeout(()=>{let i=document.querySelector(e);clearTimeout(n),o(i)},t)}),We=(e,t)=>(e.order||(e.order=1/0),t.order||(t.order=1/0),e.ordert.order?1:0),ar=e=>(!e.updateIfEmpty||e.updateIfEmpty.length===0)&&(!e.dependencies||e.dependencies.length===0)&&!e.divExcluser,No=async(e,t)=>{let o=S(e);if(!o)return!1;let n=o;return ar(o)?n:o.divExcluser&&o.excluserTimeout?(s(`Gonna wait for ${o.divExcluser}`),await sr(o.divExcluser,o.excluserTimeout)?!1:n):["Initial","Async display"].includes(t)||gt()?!1:n},gt=()=>{let t=f("eventLog").filter(n=>n.list==="Event recieved").map(n=>n.msg);return pr({events:t,strings:[A.SKIN_INIT,A.MACRO_UNLOAD,A.SIDESKIN_INIT]})},ft=e=>{let t=K(),o=ae(e,t);return!(Array.isArray(o)&&o[1].length===0)},Te=e=>{let t=e,o=/%%(\w+)_(\w+)%%/,n=e.match(o);if(n){let i=f("targeting"),[r,a,l]=n;a==="KEY"&&(t=t.replaceAll(r,i[l]))}return t},_o=({definition:e})=>{let{path:t,size:o,updateIfEmpty:n,refresh:i,dependencies:r,lazyload:a,targeting:l,divIdOnPage:c,excluserTimeout:u,divExcluser:p,cookieLessPath:g,setHeigthOfParent:m,anchor:h,prebidBid:E,prebidSizes:C,prebidAllowNative:w,setUniqueTargeting:T,rootMargin:_}=e;if(typeof t>"u")throw Error("Please setup the definition path for the adunit");if(typeof o>"u")throw Error("Please setup the definition size for the adunit");if(typeof i>"u")throw Error("Please setup the refreh option");a&&r&&r.length>0&&b("You should not have lazyload and dependencies - it can/will cause two refresh, think about it"),a&&n&&n.length>0&&b("You should not have lazyload and wait for another ad unit - it can/will cause two refresh, think about it"),t&&(t=Te(t)),o=(x=>x.map(H=>(H[0]=H[0].map(Ni=>parseInt(Ni)),H)))(o);let W=K(),ee=ae(o,W);if(Array.isArray(ee)&&ee[1].length===0&&b("Unit doesnt have appropriate sizes for this viewport -- This will not be defined later"),C&&(ee?(C=C.filter(x=>ee[1].some(H=>lr(H,x))&&typeof x[0]!="string"),s("prebidSizes changed by GAM viewport rule","pbjs")):C=[]),l||(l={}),d("setControlGroup")){let x=d("controlKey");l[x]=f(x)}let k={path:t,sizes:o,refresh:i,dependencies:r,updateIfEmpty:n,divIdOnPage:c,lazyload:a,...w&&{prebidAllowNative:w},...g&&{cookieLessPath:g},...l&&{targeting:l},...h&&{anchor:h},...E&&{prebidBid:E},...C&&{prebidSizes:C},...m&&{setHeigthOfParent:m},..._&&{rootMargin:_},...T&&{setUniqueTargeting:T},...p&&{divExcluser:p,excluserTimeout:u||500}},xi=k?.prebidBid?.map(x=>{if(x.splitBid){let{bidder:H}=x;return[{...x,bidder:`${H}_client`,splitBid:!1},{...x,bidder:`${H}_s2s`,splitBid:!1}]}return x}).flat(1/0)||[];k.prebidBid=xi;let Ut=k.prebidBid?k.prebidBid.filter(x=>!x.cookieless).map(x=>Ht(x)):[],$t=Ut?io({path:t,bids:Ut,sizes:k.prebidSizes,prebidAllowNative:k.prebidAllowNative}):null;return $t&&(k.prebidSettings=$t),k},lr=(e,t)=>e.length===t.length&&e.every((o,n)=>o===t[n]),wo=e=>{e.targeting.refresh=Number.isInteger(e.targeting.refresh)?(e.targeting.refresh||0)+1:1;let t=e.targeting.refresh;be(e.slot,"refresh",t),be(e.slot,"flipMe",!0),s(`initializeRefreshTargeting -> Setting refresh = ${t} for ${e.divIdOnPage}`)},Ce=e=>{e.refreshTimer&&(e.refreshTimer=void 0,clearTimeout(e.refreshTimer))},cr=({name:e,adUnit:t,refreshFunction:o})=>{if(s(`Timer for ${t.divIdOnPage} has past`),t.refreshBlocked){s("The current order does not allow refresh");return}if(t.loadedFirstTime||!t.lazyload)ur({document,adUnit:t,refreshFunction:o,name:e});else{let n=`refreshOnNextInView -> unit (${t.divIdOnPage}) not loaded first time`;s(n),He({name:e,adUnit:t,refreshFunction:o})}},He=({name:e,adUnit:t,refreshFunction:o})=>{Ce(t),t.targeting=t.targeting||{};let n=t.refresh/1e3;s(`refreshOnNextInView -> refresh (${t.divIdOnPage}) in ${n}s or next inview after that`);let i=()=>cr({name:e,adUnit:t,refreshFunction:o});t.refreshTimer=setTimeout(i,t.refresh)},dr=e=>{let t=K(),o=e.filter(i=>!ne({adunitPath:i.path})).filter(i=>{let r=ae(i.sizes,t);return ut(r)});return{unitsCodes:o.map(i=>i.path||i.getAdUnitPath()),slotsToUse:o}},J=async e=>{let{unitsCodes:t,slotsToUse:o}=dr(e);s(`refreshAdUnit -> ${t} `,"conceptads");let n=d("usePrebid");globalThis.concept.consentedToCookies===!1&&(s("We are not gonna use prebid, since the user said no to cookies"),n=!1);let i=()=>n?so(o):$o(t,o);pt()?(s("Waiting for contxt"),globalThis.concept.contxtRequestQueue.push(i)):(s("Not waiting for contxt"),i())};ae=(e,t)=>{if(!e)return;let o=[[0,0],[]];return e.forEach(n=>{let i=parseInt(n[0][0]);t>=i&&i>=o[0][0]&&(o=n)}),o},ut=e=>e[1].length>0,pr=({events:e,strings:t})=>{let o=t.map(r=>r.toLowerCase()),n=e.map(r=>r.toLowerCase()),i=r=>new RegExp(o.join("|")).test(r.toLowerCase());return n.filter(r=>i(r)).length>0},gr=e=>ao([e.testA,e.testB]).adunitId===e.testA.adunitId?e.testB:e.testA,Ro=()=>{let e=d("ABTesters");if(!e)return;let t=e,o=[];t.filter(n=>!n.alreadyCalculated).forEach(n=>{o.push(gr(n).adunitId),n.alreadyCalculated=!0}),mr(o)},Lo=e=>d("ABTesters").find(o=>{let{testA:n,testB:i}=o;return n.adunitId===e||i.adunitId===e}),fr=e=>{if(!e)return;let t=Lo(e),o="testB";t.testA.adunitId===e&&(o="testA"),s(`Using the test value = ${o}`,"test");let n=d("adUnits");if(!n){s("no adunits ready to be a/b tested");return}let i=n.find(r=>r.id===e);i&&(i.targeting?i.targeting.test=o:i.targeting={test:o})},mr=e=>{if(e.length>0){let t=i=>{let r=f("discardedForTest"),a=!e.includes(i.id);!a&&r&&globalThis.concept.discardedForTest.push(i);let l=Lo(i.id);return a&&l&&fr(i.id),a};["strossles","readpeaks","adUnits"].forEach(i=>{let r=d(i);r&&Array.isArray(r)&&xe(i,r.filter(t))});let n=`${e.join(",")} Has been removed in connection with A/B Test`;s(n,"test")}},ko=e=>JSON.parse(JSON.stringify(e)),hr=(e,t)=>{let o=0;for(let r=0;r{let t=qe(e,!0);return t?hr(t,32):null},mt=(e,t)=>{if(!t)return e;for(var o,n=t.split("."),i=0,r=n.length-1;i{let t={};for(let o in e)e.hasOwnProperty(o)&&(t[o]=`${e[o]}`);return t}});function Do(e){let t=!1;if(vt())t=!0,e();else{let n=function(){t||(t=!0,document.removeEventListener("DOMContentLoaded",n,!1),window.removeEventListener("load",n,!1),e())};var o=n;document.addEventListener("DOMContentLoaded",n,!1),window.addEventListener("load",n,!1)}}function qo(){return!("IntersectionObserver"in window)||!("IntersectionObserverEntry"in window)||!("intersectionRatio"in window.IntersectionObserverEntry.prototype)?(s("Can not use the IntersectionObserver"),b("Can not use the IntersectionObserver"),!0):!1}function M(e,t,o=!1){let n=document.querySelectorAll.bind(document),i=o?e:Cr(e),r,a;return new Promise(l=>{t&&Number.isInteger(t)&&(s(`Timing ${e} out in ${t} ms`),r=setTimeout(function(){s(`${e} TIMED OUT due to failsafe_timeout`,"warning"),l(null)},t));let c=n(i),u=c&&vr(c)?c.length>0:!0;if(c&&u)r&&clearTimeout(r),l(c);else if(d("avoidMutationObserver")){s("Interval observer started for dublications");let g=setInterval(()=>{let m=n(i);m&&(s(`Found from intervaller ${i}`),clearInterval(g),r&&clearTimeout(r),l(m))},100)}else if(s(`Relying on MutationObserver to find ${e}`),a=new MutationObserver(g=>{let m=n(i);m&&m.length>0&&(s(`Found from mutationObserver ${i}`),a.disconnect(),r&&clearTimeout(r),l(m))}),document.body){let g=document.body,m={childList:!0,subtree:!0};a.observe(g,m);return}else s(`Could not wait for ${e} as there is no docuemnt body`)})}var Fo,bt,Bo,Mo,Tt,ht,ve,Go,re,br,Ct,zo,Tr,Wo,K,vt,De,Ho,Ve,Cr,vr,Ir,qe,L=v(()=>{"use strict";y();zt();I();_e();F();G();bt=e=>document.body.appendChild(e),Bo=({targetingFunction:e})=>{let t=o=>{let{coords:{longitude:n,latitude:i,accuracy:r}}=o,a={lat:`${i}`,long:`${n}`,accuracy:`${r}`};globalThis.concept.targeting={...globalThis.concept.targeting,...a},s("Geo is being set"),e(a)};navigator.geolocation&&navigator.geolocation.getCurrentPosition(t)},Mo=e=>new Promise(t=>{document.addEventListener(e,function(){return t()},{once:!0}),globalThis.concept.listenerCreated=!0,fo()}),Tt=(e,t)=>{document.addEventListener("DOMContentLoaded",function(){e(t)})};ht=({el:e,parentCheck:t=!1})=>{if(!e)return!1;let{width:o,height:n,bottom:i,top:r,left:a,right:l}=e.getBoundingClientRect();return o===0&&n===0&&!t?ht({el:e.parentNode,parentCheck:!0}):!document.hidden&&r>=0&&a>=0&&i<=(window.innerHeight||document.documentElement.clientHeight)&&l<=(window.innerWidth||document.documentElement.clientWidth)},ve=(e={adUnits:[]})=>{let t={};try{let o=Math.round(window.devicePixelRatio*100),n=window.frameElement?window.frameElement.baseURI:"",i=window.location.toString(),r=i.includes("http")?i:n,a=/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,c=new RegExp(a).exec(r);if(c){let E=c[4]||"",C=(c[5]||"").replace(/(.)\/$/,"$1"),T=(c[7]||"").replace(/\=/gi,":").split("&");t={UrlHost:E,UrlPath:C,UrlQuery:T,browserZoomLevel:o+""}}e.postSetup?t.pb=["post"]:t.entry="first";let u=e.customTargeting;u&&(t={...t,...Uo(u)});let p=mt(window,d("siteTargetingKey")||"siteTargeting");p&&typeof p=="object"&&(t={...t,...p});let g=e.urlTargetingSearchings;g&&Array.isArray(g)&&g.forEach(E=>{let{searchFor:C,valueName:w,keyName:T}=E;r.includes(C)&&(t[T]=w)});let m=e.lookForGlobal;return m&&Array.isArray(m)&&m.forEach(E=>{let{name:C,globalVar:w}=E,T=mt(window,w);T&&(t[C]=typeof T=="string"?T.split(",").map(_=>_.trim()):T)}),window.location.pathname.split("/").forEach((E,C)=>{C>0&&C<4&&(t["path"+C]=E.slice(-40))}),s("Return global targeting object"),t}catch{s("Something went wrong with the global targeting");return}};Go=({elementId:e,refreshFunc:t,refreshWhenReadyFunction:o,scheduleLaterFunc:n})=>{let i=document.getElementById(e);return i&&Tr({element:i,refreshFunc:t,scheduleLaterFunc:n,refreshWhenReadyFunction:o}),null},re=({element:e,excutionFunction:t,observerConfig:o})=>{if(!(e instanceof Element))return;let n=(r,a)=>{r.forEach(l=>t(l,a))},i=new IntersectionObserver(n,o);return i.observe(e),i},br=({adUnit:e,scheduleLaterFunc:t,refreshWhenReadyFunction:o})=>{let{refreshTimer:n,divIdOnPage:i}=e;clearTimeout(n),s(`resetRefreshCounter --> resetting timer: ${i}`),t({name:i,adUnit:e,refreshFunction:o})},Ct=e=>{let t=d("globalLazyAttribute"),o=d("globalLazyloadValue");return!t||!o?!1:document.getElementById(e)?.dataset[t]===o},zo=()=>{if(Fo){s("BfCache listener already active");return}Fo=window.addEventListener("pageshow",e=>{e.persisted&&(s("BFCACHE hit *****"),globalThis.concept.bfCache=!0,globalThis.concept.refreshAllActiveAdunits())})},Tr=({element:e,refreshFunc:t,scheduleLaterFunc:o,refreshWhenReadyFunction:n})=>{let i=a=>{let l=a.target;if(a.isIntersecting){s(`refreshOnIntersection -> ${l.id} is intersection:`);let c=S(l.id);if(!c){b(`Could not find Adunit in adunit list ${l.id}`);return}let{lazyload:u,alreadyLoaded:p,path:g,refreshTimer:m}=c,h=ne({adunitPath:g});Ct(l.id)&&(u=!0,c.lazyload=!0),u&&!p&&!h&&(s("refreshOnIntersection -> Not loaded yet, so we refresh"),c.alreadyLoaded=!0,c.loadedFirstTime=!0,m&&br({adUnit:c,scheduleLaterFunc:o,refreshWhenReadyFunction:n}),t([c]))}},r=se(e.id);re({element:e,excutionFunction:i,observerConfig:r})},Wo=(e,t,o)=>{let n=K();return e&&t&&(n<=e||n>=t)?(s(` ${o} not meeting the vierwport rules!!`),!1):!0},K=()=>window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,vt=()=>["complete","loaded","interactive"].includes(document.readyState),De=()=>Gt(),Ho=(e,t)=>{let o=e.split("."),n=globalThis;for(let i=0;ie?e.length===0?(b("nodelist empty"),null):e[0]:(b("No nodelist found"),null),Cr=e=>{let t=e;return e.includes(".")&&(t=t.split(".").join("\\."),s(`Found a ., now looking for ${t}`)),t},vr=e=>NodeList.prototype.isPrototypeOf(e);Ir=["CookieConsent","CookieInformationConsent","_ga","eupubconsent-v2"],qe=(e,t=!1)=>{let o=[];t&&(o=[...Ir]),e&&o.unshift(e);let n="";return document.cookie.split(";").forEach(function(i){let[r,a]=i.split("=");o.includes(r.trim())&&(n=a)}),n}});function Vo(e){let o=`https://dw6vol2k7d4iu.cloudfront.net/1x1.png${e}&someunique=${U()}`;X(o,"concept-loads")}var X,Ko,Qo,le=v(()=>{"use strict";y();L();V();X=(e,t)=>{let o=document.createElement("img");o.setAttribute("src",e),o.setAttribute("style","display:none"),o.setAttribute("alt",t),o.setAttribute("id","concept-pixel");try{document.body?bt(o):Tt(bt,o)}catch(n){console.error("Cant read document.body in append pixel",n)}};Ko=e=>{try{document.body?Vo(e):Tt(Vo,e)}catch(t){console.error("Cant read document.body",t)}},Qo=({lineItemId:e,creativeId:t,adunitCode:o})=>{let n=globalThis.conceptConfig.reportTrackingAs;if(!n||!globalThis?.concept?.targeting)return s("Cant track when no name to track on","concept"),null;let a=`${`https://d23oz2xvzoo5zg.cloudfront.net/imp_track.gif?site=${n}&lineItemId=${e}&creativeId=${t}&adunitCode=${o}`}&someunique=${U()}`;return X(a,"advanced-tracking"),a}});var Yo,Jo,Xo=v(()=>{"use strict";le();Yo=()=>globalThis.conceptConfig.sendDataToAdformDSP,Jo=({logger:e})=>{window._adftrack=Array.isArray(window._adftrack)?window._adftrack:window._adftrack?[window._adftrack]:[];let t={HttpHost:"track.adform.net",pm:923403,divider:encodeURIComponent("|"),pagename:encodeURIComponent("concept_dmp"),order:{}};globalThis.concept?.targeting?.contxt&&globalThis.conceptConfig.targetingToDMP?.push("contxt--sv7"),globalThis.conceptConfig.targetingToDMP?.forEach(n=>{let[i,r]=n.split("--");if(i==="format"){let a=globalThis.conceptConfig.adUnits.map(c=>c.targeting?.format).filter(Boolean).map(c=>c?.split(",").join("|")),l=[...new Set(a)].join("|");t.order[r]=l}else i==="contxt"?globalThis.concept.targeting[i]&&(t.order.itms=globalThis.concept.targeting[i].map(a=>({[r]:a}))):globalThis.concept.targeting[i]&&(t.order[r]=globalThis.concept.targeting[i])}),window._adftrack.push(t),function(){var n=document.createElement("script");n.type="text/javascript",n.async=!0,n.src="https://s2.adform.net/banners/scripts/st/trackpoint-async.js";var i=document.getElementsByTagName("script")[0];i.parentNode&&i.parentNode.insertBefore(n,i)}(),X("https://track.adform.net/Serving/TrackPoint/?pm=923403&ADFPageName=concept_dmp&ADFdivider=|","concept-dmp"),e("DMP pixel loaded")}});var Zo,yr,en=v(()=>{"use strict";L();I();y();_e();Zo=({injectionFunction:e})=>{let t=d("readpeaks");t&&t?.length>0&&t.forEach(o=>{yr({readpeakConf:o,injectionFunction:e})})},yr=async({readpeakConf:e,injectionFunction:t})=>{s(`Lazyloading a readpeak item in ${e.divIdOnPage}`,"readpeak");let o=d("readpeaks"),n=document.createElement("iframe");n.src=e.src,globalThis.concept.tcString&&(n.src=`${n.src}&gdpr_consent=${globalThis.concept.tcString}`),n.id=e.readpeakId,n.setAttribute("style",e.style);let i=se(null),r=(p,g)=>{let m=p.target;if(p.isIntersecting&&o){let h=o.find(k=>k.divIdOnPage===m.id),{fromViewport:E,toViewport:C}=h,w=parseInt(E),T=parseInt(C),_=`${h.divIdOnPage}`;if(!Wo(w,T,_))return;let W=h&&document.getElementById(h.divIdOnPage);W&&W.hasChildNodes()===!1&&h?(h.loadedTimes?h.loadedTimes=h.loadedTimes+1:h.loadedTimes=1,m.appendChild(n),globalThis.__rpads=globalThis.__rpads||[],globalThis.__rpads.push(h.readpeakId),s(` ${h.divIdOnPage} inserted!!`,"readpeak"),t(s),g.unobserve(document.getElementById(h.divIdOnPage))):s("Readpeak container is not empty :O!","readpeak")}},a=f("failsafe_timeout"),l=e.divIdOnPage,c=await M(`#${l}`,a,!0);return Ve(c)?([...document.querySelectorAll(`#${l}`)].forEach(g=>{re({observerConfig:i,element:g,excutionFunction:r})}),"ok"):(s(`Could not insert into ${l}`,"error"),"could not find")}});var tn,Ar,on=v(()=>{"use strict";L();I();y();_e();tn=({injectionFunction:e})=>{let t=d("strossles");t&&t?.length>0&&t.forEach(o=>{Ar({strossleConfig:o,injectionFunction:e})})},Ar=async({strossleConfig:e,injectionFunction:t})=>{let o=e.divIdOnPage,n=d("strossles");s(`Lazyloading a strossle item in ${o}`,"strossle");let i=se(null),r=(c,u)=>{let p=c.target;if(c.isIntersecting&&n){let g=n.find(m=>m.divIdOnPage===p.id);g&&!g.alreadyLoaded&&(g.alreadyLoaded=!0,globalThis.strossle=globalThis.strossle||function(){(strossle.q=strossle.q||[]).push(arguments)},globalThis.strossle(g.strossleId,`#${g.divIdOnPage}`),s(` ${g.divIdOnPage} inserted!!`,"strossle"),t(s),u.unobserve(document.getElementById(g.divIdOnPage)))}},a=f("failsafe_timeout");return await M(`#${o}`,a,!0)?([...document.querySelectorAll(`#${o}`)].forEach(u=>{re({observerConfig:i,element:u,excutionFunction:r})}),"ok"):(s(`Could not insert into ${o}`,"error"),"could not find")}});var nn,rn=v(()=>{"use strict";R();nn=(e,t)=>{z(e,`https://t.seedtag.com/t/${t}.js`),e("seedtag Injected")}});function sn(e){globalThis.concept.videosRequested=globalThis.concept.videosRequested+1,globalThis.concept.videoUrls.push(e)}var D,Er,Sr,Pr,Ke,It=v(()=>{"use strict";y();ke();L();V();I();F();D=e=>s(e,"video"),Er=e=>{let t={};return Object.entries(e).forEach(([o,n])=>{Array.isArray(n)?t[o]=n.join(","):t[o]=n}),t},Sr=({selectedVideoSettings:e,output:t,vpos:o="preroll",vpmute:n=1,autoplay:i,muted:r,isLive:a,videoFormat:l,vpa:c="auto",videoId:u=""})=>{let g={isProduction:"true",...ve(he()),autoplay:i,videoType:l,...e.targeting};if(d("setControlGroup")){let C=d("controlKey");g[C]=f(C)}let m=Er(g),h={adUnit:e,params:{iu:e.code,cust_params:m,vpos:o,...e.targeting,description_url:encodeURIComponent(window.location.href||window.location.origin),unviewed_position_start:1,wta:1,vpmute:n,autoplay:i,muted:r,vad_format:"linear",vpa:c,output:t,...a&&{isLive:a},...e.cmsid&&{cmsid:e.cmsid},...u&&{vid:u}}},E=f("PPID");return E&&(h.params.ppid=E),h},Pr=({selectedVideoSettings:e,output:t="vast",vpos:o="preroll",vpmute:n=1,vpa:i="auto",autoplay:r,muted:a,videoFormat:l,isLive:c,videoId:u=""})=>new Promise((p,g)=>{try{D(`Creating url for ${e.code}`),Le(he()),e.code=Te(e.code),e.mediaTypes.video.plcmt=a?2:1,window.pbjs.que.push(function(){D(`${e.code} requested`),pbjs.addAdUnits(e),pbjs.setConfig({useBidCache:!0,cache:{url:"https://prebid.adnxs.com/pbc/v1/cache"}}),D("setting cncpt pbjs"),pbjs.requestBids({adUnitCodes:[e.code],bidsBackHandler:function(m){D(`${Object.keys(m).length} recieved from prebid demand`),Object.keys(m).forEach(C=>{m[C].bids.forEach(w=>{let{bidder:T,bidderCode:_,adapterCode:ge,cpm:W,currency:ee}=w;D(`${T||_||ge} gave a bid of ${W} (${ee}) for ${C}`)})});let h=Sr({selectedVideoSettings:e,output:t,vpos:o,vpmute:n,vpa:i,autoplay:r,muted:a,isLive:c,videoId:u,videoFormat:l});pbjs?.adServers?.dfp?.buildVideoUrl||b("Your prebid file is not correctly set up. At least your missing some dfp build video url functionality");let E=pbjs.adServers.dfp.buildVideoUrl(h);sn(E),p(E)}})})}catch(m){g(m)}}),Ke=async(e,t)=>new Promise(async(o,n)=>{try{if(!e)return D("ERROR: Please provide ID"),n(new Error("No Id for player"));let i=d("videoAdunits");if(!i)return D("ERROR: Please Setup op some video adunits"),n(new Error("No video units"));let r=i.find(u=>t?.device||t?.videoFormat?u.device===t?.device&&u.videoFormat===t?.videoFormat&&!!u.isLive==!!t?.isLive:u.playerId===e);if(t?.isLive&&(r.videoFormat=r.videoFormat+"_livestream"),t?.isEmbed&&(r.videoFormat=r.videoFormat+"_embed"),!i)return D("ERROR: No video unit for these params"),n(new Error("No video units"));let a=r?.VASTAlternative,l=r?.alternativePercent;if(a&&l&&Math.random(){"use strict";I();y();F();Ie=e=>s(e,"video"),wr=e=>{try{let t="https://pubads.g.doubleclick.net/gampad/ads";e.code=Te(e.code);let o=`?iu=${e.code}`,n=`&sz=${e?.mediaTypes?.video?.playerSize.join("x")}`,i="&output=vast",r="&gdfp_req=1",a=`&description_url=${encodeURIComponent(document?.location?.origin||"unknown")}`,l={},c=f("targeting");c&&(l=c),e.targeting&&(l={...l,...e.targeting});let u=encodeURIComponent(Object.keys(l).map(m=>{let h=l[m];return Array.isArray(h)?`${m}=${h.join(",")}`:`${m}=${h}`}).join("&")),p=f("PPID"),g=`${t}${o}${n}${i}${r}&unviewed_position_start=1&env=vp&impl=s${a}&correlator=&cust_params=${u}`;return p?(s("SETTING",p),g=`${g}&ppid=${p}`):s("NOOO"),g}catch{throw new Error("Could not build vasttag")}},an=e=>{try{if(!e)throw Ie("ERROR: Please provide ID"),new Error("No Id for player");let t=d("videoAdunits");if(!t)throw Ie("ERROR: Please Setup op some video adunits"),new Error("No video units");Ie(`Creating vast tag for ${e}`);let o=t.find(i=>i.playerId===e);if(!o)throw Ie(`No player found ${e}`),new Error("No config for you player");let n=wr(o);return globalThis.concept.vastTags.push(n),n}catch{return Ie(`Something went wrong ${e}`),""}}});var B,cn,dn,un,pn,gn,fn,mn,hn,ye=v(()=>{"use strict";oe();I();It();ln();B=!1,cn=!0,dn=[],un=()=>({...!B&&{consentedToCookies:null},...!B&&{videoUrls:[]},...!B&&{vastTags:[]},...!B&&{buildVastTag:an},...!B&&{requestPrebidUrl:Ke},...!B&&{consentQueue:[]}}),pn=e=>!B&&e,gn=()=>{let e=d("activateTimingTracker"),t=d("deployId"),o=!B&&e&&!dn.includes(t);return dn.push(t),o},fn=()=>{let e=d("checkForConsent")&&!B,t=f("consentStatus")===P.LEGITIMATE_INTERREST,o=f("consentedToCookies");return{decideNow:!e||e&&o||t,waitChoise:e&&!o&&!t}},mn=()=>!B,hn=()=>{let e=!B&&cn;return cn=!1,e}});var bn,Tn,Cn=v(()=>{"use strict";I();({injectCustomAsyncScript:bn}=(R(),rt(Re))),Tn=e=>{bn(e,"https://advertising-cdn.dpgmedia.cloud/native-renderer/main.js"),e("Seemleas renderer Injected");let t=d("seemlessTemplateRef");bn(e,t),e("Seemleas templates Injected")}});var Re={};ki(Re,{execute3rdparties:()=>Ye,getScriptTag:()=>Qe,inject:()=>ie,injectAdnami:()=>yt,injectBrowsi:()=>yn,injectCustomAsyncScript:()=>z,injectPrebid:()=>lt,injectReadpeak:()=>vn,injectStrossle:()=>In,insertAsFirstScript:()=>Ae,loadSync:()=>At,loadThirdPartyLibsWithCookiesOneTimeLoad:()=>Et});function z(e,t,o=[],n=!0){let i=Qe();if(i.id="Custom script",i.async=!0,i.type="text/javascript",i.src=t,o.forEach(r=>{let[a,l]=r;i.setAttribute(a,l)}),n)Ae({scriptTag:i}),e("Custom script Injected");else return i}function At(e,t,o=""){var n=Qe();t&&(n.id=t),o&&n.setAttribute("referrerpolicy",o),n.type="text/javascript",n.src=e,Ae({scriptTag:n})}var Qe,Ae,ie,lt,vn,In,yt,yn,Ye,Et,R=v(()=>{"use strict";y();Xo();en();on();rn();ye();Cn();Qe=()=>document.createElement("script"),Ae=({scriptTag:e})=>{let t=document.getElementsByTagName("script")[0];t&&t.parentNode?t.parentNode.insertBefore(e,t):document.head.appendChild(e)},ie=(e,t,o=!1)=>{(function(n,i){let r=n.createElement(i);r.type="text/java"+i,r.src=e,Ae({scriptTag:r}),o&&(r.async=o)})(t,"script")},lt=(e,t)=>{ie(t,document,!0),e("prebid Injected")},vn=e=>{At("https://app.readpeak.com/js/rp-if.js","Readpeak"),e("Readpeak Injected")},In=e=>z(e,"https://assets.strossle.com/strossle-widget-sdk/1/strossle-widget-sdk.js"),yt=(e,t)=>{window.adsmtag=window.adsmtag||{},adsmtag.cmd=adsmtag.cmd||[],At(t,"Adnami"),e("Adnami Injected")};yn=(e,t)=>{e("Browsi Injected"),function(){var o=Qe();o.type="text/javascript",o.async=!0,o.dataset.sitekey=t,o.dataset.pubkey="concept",o.id="browsi-tag",o.src="https://cdn.browsiprod.com/bootstrap/bootstrap.js",Ae({scriptTag:o})}()},Ye=()=>{mn()&&(s("Loading 3rdparty DOM injectors"),Zo({injectionFunction:vn}),tn({injectionFunction:In}))},Et=(e,t)=>{if(hn()){Ye();let{seedtagId:o,browsiSiteKey:n,seemlessTemplateRef:i}=e;i&&Tn(s),Yo()&&setTimeout(()=>{Jo({logger:s})},500),n&&yn(s,n),o&&nn(t,o)}else t("3rd partys already loaded")}});var An,En,Q,Or,be,xr,$o,Sn,Nr,Pn,Je,Y=v(()=>{"use strict";y();oe();R();V();I();An=!0,En=e=>{let t=d("tryLimitedAds"),o=d("siteLoadsGpt");if(An&&!o){let n="https://securepubads.g.doubleclick.net/tag/js/gpt.js";return t?(s("adding event listener to window.consentRecieved"),window.addEventListener("consentRecieved",()=>{f("consentStatus")===P.LEGITIMATE_INTERREST&&(n="https://pagead2.googlesyndication.com/tag/js/gpt.js"),ie(n,document,!0)},{once:!0,capture:!0})):ie(n,document,!0),An=!1,e("GPT Injected"),globalThis.googletag}},Q=e=>{googletag.cmd.push(function(){s("GAM targeting being set");let t=[];for(var o in e)if(e.hasOwnProperty(o)){let n=e[o];n&&googletag.pubads().setTargeting(o,n)}t.length>0&&s(`could set value for the keys = ${t.join(",")} (empty)`)})},Or=e=>{let t=[[0,0],[]];return(JSON.stringify(e).includes(JSON.stringify(t[0]))?e:[...e,t]).map(i=>(i[1][0]&&i[1][0].length<=0&&(i[1]=[]),i))},be=(e,t,o)=>{o&&e&&e.setTargeting(t,o)},xr=e=>{let t=[];return e.forEach(o=>{t=[...t,...o[1]]}),t},$o=(e,t)=>{let o=Ne();googletag.cmd.push(function(){q(`${e} , ' gpt`);let n=t.map(i=>i.getResponseInformation?i:i.slot).filter(i=>i!==void 0);n.length>0?googletag.pubads().refresh(n,o):b("Will not refresh 0")})},Sn=({path:e,size:t,elementId:o,anchor:n,targeting:i,setUniqueTargeting:r,container:a})=>{let l;if(!e){b(`NO PATH FOR ADUNIT ${e}`);return}googletag.cmd.push(function(){try{if(n?(l=googletag.defineOutOfPageSlot(e,googletag.enums.OutOfPageFormat[n]),l&&l.addService(googletag.pubads())):(l=googletag.defineSlot(e,xr(t),o),l&&l.setCollapseEmptyDiv(!0).addService(googletag.pubads()),l.defineSizeMapping(Or(t))),!l){b("No slot here");return}i&&Object.keys(i).forEach(c=>{be(l,c,i[c])}),r&&be(l,"uniqueId","_"+U()),Nr({slot:l,container:a})}catch(c){b(`GAM ERROR: ${c}`)}})},Nr=({slot:e,container:t})=>{let o=S(t.id);o.slot=e,globalThis.concept.adUnits.set(t.id,o)},Pn=()=>{googletag.cmd.push(function(){O("Googletag loaded")})},Je=()=>{googletag.cmd.push(function(){googletag.pubads().setPrivacySettings({limitedAds:!0})})}});fe();Y();y();L();var Z={GAM:"GAM",ADNUNTIUS:"Adnuntius"};oe();L();It();var St={};function _r(e){if(e.data){var t=e.data.type,o=St[t];if(o)for(var n=0;ne.includes(h))&&a.some(h=>e.includes(h));return c||u||p||l||m?e:!1}var On=navigator.connection||navigator.mozConnection||navigator.webkitConnection,Lr=(e,t,o)=>{let n=e.find(i=>i.msg===t);return n?parseFloat(n.secondCount+o):0},kr=(e,t,o)=>{let n=e.find(i=>i.msg.startsWith(t));return n?parseFloat(n.secondCount+o):0},jr=(e,t,o)=>{let n=e.find(i=>i.msg.endsWith(t));return n?parseFloat(n.secondCount+o):0},xn=(e,t)=>{let o=e[t-1]?.measureTime;return o<=0&&t>1?xn(e,t-1):o},Ur=e=>{let t={},o=parseFloat("0.0"),n=parseFloat(`${e.scriptLoadTime.startTime/1e3}`),i=parseFloat(`${n+e.scriptLoadTime.duration/1e3}`),r=e.scriptLoadTime.responseEnd/1e3,a=T=>kr(e.conceptEvents,T,r),l=T=>jr(e.conceptEvents,T,r),c=Lr(e.conceptEvents,"Consent recieved",r),u=a("injectNewAds execution requested"),p=a("prebid auction started"),g=l(" Requested"),m=a("slotResponseReceived"),h=l(" creative iframe loaded"),E=[{eventName:"Page_start",measureTime:o},{eventName:"ConceptAds_requested",measureTime:n},{eventName:"ConceptAds_downloaded",measureTime:i},{eventName:"Consent_recieved",measureTime:c},{eventName:"injectad_recieved",measureTime:u},{eventName:"First_prebid_auction_Started",measureTime:p},{eventName:"First_GAM_request_initiated",measureTime:g},{eventName:"First_response_from_GAM",measureTime:m},{eventName:"First_ad_loaded",measureTime:h}],C=[];E.forEach((T,_)=>{T.measureTime!==null&&(_>0&&T.measureTime{if(_===0)t[T.eventName]=T.measureTime;else{let ge=xn(C,_),W=T.measureTime===0?0:T.measureTime-ge;t[T.eventName]=W}});let w=new URL("https://d22i50b931b1j0.cloudfront.net/timing_track.gif");if(On){let{downlink:T}=On;T&&w.searchParams.set("downlink",T)}return globalThis?.conceptConfig?.reportTrackingAs&&w.searchParams.set("reportTrackingAs",globalThis.conceptConfig.reportTrackingAs),Object.keys(t).forEach(T=>{w.searchParams.set(T,t[T])}),w.href},Nn=()=>{let e=globalThis.performance.getEntriesByType("resource");e||s("Could not read performnce timing");let t=e.find(r=>Rr(r.name));if(!t)return;let o=globalThis.concept.eventLog.filter(r=>r.list==="Timing point"),i=Ur({scriptLoadTime:t,conceptEvents:o});X(i,"timing-pixel"),s("Timing pixel loaded")};ye();var $r=e=>{let t=0;return e.forEach((o,n)=>{o.id.includes("google_ads_iframe_")&&(t=n)}),t},Xe=e=>{let t=e&&e.placement||null;t&&(s(`${t} Requested`,"gpt"),j(`${t} Requested`))},Fr=(e,t)=>{let o=`[id*='${t.adunitId}'] iframe`,n=document.querySelectorAll(o),i=$r(n),r=n[i],l=(r.height?`${r.height}px`:null)||window.getComputedStyle(r,null).height,c=document.querySelector(`[id*='${t.adunitId}']`);if(l==="1px"){e("We will NOT set heigth to 1, as its prebid","conceptads");return}let u=r?.parentElement?.parentElement;if(u&&l){let p=`Setting height of divid ${t.adunitId} to: `;e(p,"conceptads");let g=u.style;g.height=l,g.minHeight=l,c.style.height=l,c.style.minHeight=l}else e("Not gonna set height (no iframe or height)","conceptads")},Ze=e=>{globalThis.concept.adsloaded=globalThis.concept.adsloaded+1;let t=e&&e.placement||null;if(!t)return;let o=" creative iframe loaded";s(o,"gpt"),j(o),gn()&&Nn();let n=S(t);n&&n.setHeigthOfParent&&Fr(s,e),O(`${A.SLOT_LOADED} - ${t}`),me(t),n&&Fe({name:t,divId:n.divIdOnPage}),Pt(t)},_n=e=>{for(let t of globalThis.concept.updateWhenResolved.keys())if(t===e){let o=S(t);o?(s(`Gonna refresh: ${t} beacuse dependant is resolved`),J([o])):s(`Could not refresh: ${t} As it was not found in internal config`)}},Rn=e=>{for(let[t,o]of globalThis.concept.updateIfEmpty.entries())o===e&&(s(`${o} has just been loaded - and its empty ${t}`),globalThis.concept.updateIfEmpty.delete(t),s(`${e}: now has ${globalThis.concept.updateIfEmpty.size} empty dependencies we should resolve`),setTimeout(function(){let n=S(t);n&&(ne({adunitPath:n.path})||(s(`No skin found, refreshing ${t}`),J([n])))},10))},Pt=e=>{for(let[t,o]of globalThis.concept.updateWhenResolved.entries())o===e&&(s(`${o} has just been loaded - if no skin we should refresh ${t}`),globalThis.concept.updateWhenResolved.delete(t),s(`${e}: now has ${globalThis.concept.updateWhenResolved.size} dependencies we should resolve`),setTimeout(function(){let n=gt(),i=S(t);if(i){let r=ne({adunitPath:i.path});!n&&!r&&(s(`No skin found, refreshing ${t}`),J([i]))}},10))},Ln=e=>e.frameElement&&e.frameElement.id,kn=(e,t)=>{let o=Ln(t);O(`${A.DESKTOP_TOPSCROLL} - ${o}`)},jn=(e,t)=>{try{let o=Ln(t);O(`${A.MACRO_UNLOAD} - ${o}`)}catch{O(`${A.MACRO_UNLOAD} - Iframe error`)}if(e&&e.placement){s(` Macro: unload ${e.placement}`,"gpt");return}},Un=()=>{O(A.SKIN_INIT)},$n=(e,t)=>{bo(t.window),O(A.GET_CONCEPTADS)},Fn=(e,t)=>{let{playerId:o}=e;mo(t.window,o),O(A.GET_VASTTAG)},Bn=(e,t)=>{let{playerId:o}=e;ho(t.window,o),O(A.GET_VASTTAG)},Mn=()=>{O(A.SIDESKIN_INIT)};I();I();y();var Dn=!1,qn=(e,t)=>t.includes(e.id)&&e.getAttribute&&!e.getAttribute("dublicatenoted"),Gn=({consented:e,node:t})=>{t.setAttribute("dublicatenoted","true"),s(`Found dublicate of ${t.id}`),Ee({consented:e,node:t})},zn=(e,t,o)=>{qn(e,t)&&Gn({consented:o,node:e}),e.childNodes&&[...e.childNodes].forEach(n=>{zn(n,t,o)})},Wn=({consented:e,nodeToWatch:t=document})=>{if(Dn!==!0){let o=d("adUnits").map(n=>n.divIdOnPage);if(Dn=!0,globalThis.conceptConfig.avoidMutationObserver)s("Interval observer started for dublications"),setInterval(()=>{o.filter(n=>n!==void 0).forEach(n=>{let i=document.getElementById(n);i&&qn(i,o)&&Gn({consented:e,node:i})})},100);else{let n=new MutationObserver(function(i){for(let r of i)for(let a of r.addedNodes)zn(a,o,e)});s("Mutation observer started for dublications"),n.observe(t,{childList:!0,subtree:!0})}}};ye();var N={TCF_LEGITIMATE_INTERREST:"TCF_LEGITIMATE_INTERREST",TARGETING_MATCH:"TARGETGING_MATCH",TARGETING_ARRAY_CONTAINS:"TARGETGING_ARRAY_CONTAINS",URL_IS_SPECIFIC_SECTION:"URL_IS_SPECIFIC_SECTION",URL_CONTAINS_SPECIFIC_SECTION:"URL_CONTAINS_SPECIFIC_SECTION",URL_IS_SPECIFIC:"URL_IS_SPECIFIC"};I();y();F();var Br=e=>location.href===`${location.origin}/${e}`,Mr=e=>{let t=`${location.origin}/${e}`;return location.href.startsWith(t)},Dr=e=>location.href===e,qr=({key:e,value:t})=>globalThis.concept.targeting[e]===t,Gr=({key:e,value:t})=>Array.isArray(globalThis.concept.targeting[e])&&globalThis.concept.targeting[e].includes(t),et=()=>{let e=Wr(),t=zr();s(`Checked for startup and targeting profiles [${e}|${t}] `)},ce={[N.TARGETING_MATCH]:{profileName:N.TARGETING_MATCH,func:qr},[N.TARGETING_ARRAY_CONTAINS]:{profileName:N.TARGETING_ARRAY_CONTAINS,func:Gr},[N.URL_IS_SPECIFIC_SECTION]:{profileName:N.URL_IS_SPECIFIC_SECTION,func:Br},[N.URL_CONTAINS_SPECIFIC_SECTION]:{profileName:N.URL_CONTAINS_SPECIFIC_SECTION,func:Mr},[N.URL_IS_SPECIFIC]:{profileName:N.URL_IS_SPECIFIC,func:Dr}},zr=()=>{let e=[ce[N.TARGETING_MATCH],ce[N.TARGETING_ARRAY_CONTAINS]];return Hn(e)},Wr=()=>{let e=[ce[N.URL_IS_SPECIFIC_SECTION],ce[N.URL_CONTAINS_SPECIFIC_SECTION],ce[N.URL_IS_SPECIFIC]];return Hn(e)},Hn=e=>{let t=[];return(d("settingsProfiles")||[]).forEach(n=>{let i=e.find(r=>r.profileName===n.type);i&&i.func(n.activateOnArgs)?(Kn(n),t.push(!0)):t.push(!1)}),t},wt=()=>(d("settingsProfiles")||[]).filter(o=>o.type===N.TCF_LEGITIMATE_INTERREST),Vn=(e,t)=>{let o=wt(),n=e?.purpose?.legitimateInterests||{};return o.length===0||t?(s("Using the default tcf profile (default central)"),["2","7","9","10"].every(a=>n[a])):(o.sort(We).forEach(r=>{let a=!0;r.extraConditions&&(a=r.extraConditions.every(l=>ce[l.type].func(l.activateOnArgs))),a&&r.activateOnArgs.every(l=>n[l])&&(Kn(r),globalThis.concept.tcfProfileSet=!0)}),!!globalThis.concept.tcfProfileSet)},Kn=e=>globalThis.concept.tcfProfileSet?(s(`Will NOT override the ${globalThis.concept.activeProfile} profile`,"warning"),"done"):(s(`Using the ${e.name} profile`),globalThis.concept.targeting.settingsProfile=e.name,globalThis.concept.activeProfile=e.name,Object.keys(e.globalChanges).forEach(t=>{globalThis.conceptConfig[t]=e.globalChanges[t]}),Object.keys(e.adunitsChanges).forEach(t=>{let o=e.adunitsChanges[t],n=Object.keys(o),i=globalThis.conceptConfig.adUnits.find(r=>r.id===t)||{};n.forEach(r=>{let a=o[r];a!==""&&a!==null&&(i[r]=o[r])})}),e.videoChanges=e.videoChanges||{},Object.keys(e.videoChanges).forEach(t=>{let o=e.videoChanges[t],n=Object.keys(o);if(globalThis.conceptConfig.videoAdunits){let i=globalThis.conceptConfig.videoAdunits.find(r=>r.id===t)||{};n.forEach(r=>{let a=o[r];a!==""&&a!==null&&(r==="bids"&&(a=a.map(l=>{if(typeof l=="string")try{l=JSON.parse(l)}catch(c){b(`Could not parse bids: ${c}`)}return l})),i[r]=a)})}else s("Could not find profile for video unit","video")}),"done");var Hr=e=>{let t=1e3,{failsafe_timeout:o}=e;return o||o===0?o:t},Yn=e=>{if(e.customPrebidVideoUrl){let t=async o=>{let{videoId:n,autoplay:i,muted:r,videoFormat:a,isLive:l,isEmbed:c}=o,u=globalThis?.currentDeviceDefiner()||void 0,p=await Ke(n,{device:u,autoplay:i,muted:r,videoFormat:a,isLive:l,videoId:n,isEmbed:c});return{videoUrlPreroll:p,videoId:n,preroll:p}};Ho(e.customPrebidVideoUrl,t)}return{adUnits:new Map,logme:s,connect:wn,initialCalled:!1,failsafe_timeout:Hr(e),updateWhenResolved:Qn(e.adUnits,"dependencies"),discardedForTest:[],updateIfEmpty:Qn(e.adUnits,"updateIfEmpty"),initTime:performance.now(),eventLog:[],adsloaded:0,unloaders:[],refreshAllActiveAdunits:Vr,idsNotFound:0,videosRequested:0,consentStatus:P.NOT_SET,directRefresh:Jn,listenerCreated:!1,device:null,activeProfile:"default",contxtFetched:!1,contxtRequestQueue:[],updateTargeting:Kr,targeting:ve(globalThis.conceptConfig),...un()}},Vr=()=>globalThis.concept.adUnits.forEach((e,t)=>{e.requested&&Jn(t)}),Kr=()=>{s("Updatting global targeting");let{contxt:e,IAB1:t,IAB2:o,IAB3:n,IAB4:i,requestMode:r,settingsProfile:a}=f("targeting")||{},l=d("bidderTargeting")||[],c={contxt:e,IAB1:t,IAB2:o,IAB3:n,IAB4:i,requestMode:r,settingsProfile:a};globalThis.concept.targeting={...ve(globalThis.conceptConfig),...c},l.forEach(u=>{no(u.bidders,u.bidderTargeting)})},Jn=e=>{let t=S(e);t&&J([t])},Qr=(e,t)=>{e.sort(We).forEach(o=>{o.disabled||ti({consented:t,unit:o,display:!0})})},Qn=(e,t)=>{let o=new Map;return e.filter(i=>i[t]).forEach(i=>{let r=i[t][0];r&&o.set(i.divIdOnPage,r)}),o},Yr=(e,t)=>{let o=f("updateWhenResolved");if(!o)return;d("adUnits").map(i=>{i.dependencies?.includes(e)&&(i.dependencies=i.dependencies.filter(r=>r!==e))});for(let[i,r]of o.entries())r===e&&(o.delete(`${t}`),o.set(i,t)),i===e&&(o.delete(`${e}`),o.set(t,`${r}`))},xt=e=>d("adUnits").find(n=>n.divIdOnPage===e)||{},Xn=e=>{globalThis.concept.unloaders=globalThis.concept.unloaders.filter(t=>{let o=document.getElementById(t.divId);return t.path===e&&!o?(t.unload(),!1):!0})},Zn=e=>{let t=f("adUnits");for(let[o,n]of t)n.path===e&&n.slot&&globalThis.concept.unloaders.push({path:e,divId:n.divIdOnPage,unload:()=>{s(`Unloading ${o}`),googletag.cmd.push(function(){googletag.destroySlots([n.slot])}),n.refresTimer&&clearTimeout(n.refreshTimer),globalThis.concept.adUnits.delete(o);let{divIdOnPage:i}=n,a=d("adUnits").filter(c=>c.copy?c.divIdOnPage!==i:!0);xe("adUnits",a);let l=document.getElementById(o);l?.parentNode?.parentNode?.className==="ads-topscroll"?l?.parentNode?.parentNode.remove():l?.remove()}})},Ee=({consented:e,node:t,display:o=!0})=>{if(!t)return null;let n=xt(t.id);if(!n||n.disabled)return null;let i=ko(n),r=`${n.divIdOnPage}-${U()}`;return s(`Renaming ${t.id} to ${r}`),Yr(n.divIdOnPage,r),t.id=r,i.divIdOnPage=t.id,i.id=t.id,i.copy=!0,globalThis.conceptConfig.adUnits.push(i),ti({consented:e,unit:i,display:o}),r},Ot=e=>{globalThis.concept[e.cmd]?globalThis.concept[e.cmd](e.args):s("could not find function $command.cmd}","error")},Nt=()=>{let e=[];globalThis.preConcept?(e=globalThis.preConcept.queue||e,e.forEach(t=>{Ot(t)}),globalThis.preConcept.queue={},globalThis.preConcept.queue.push=function(t){Ot(t)}):globalThis.preConcept={queue:{push:t=>Ot(t)}},s("preConcept.queue has now been frozen"),Object.freeze(globalThis.preConcept.queue)},Jr=async e=>{let t=async()=>{let o=d("haltInit"),n=d("waitForEventToStart");o&&(s(`Halting all with ${o} and updating targeting`),await Oo(o)),n&&(s(`Waiting for ${n}`),await Mo(n),s(`${n} -- received`)),et(),globalThis.concept.updateTargeting(),Zr(e)};vt()?t():Do(function(){t()})},ei=(e,t)=>t?t===Z.GAM?e.path:e.cookieLessPath:e.path,Xr=e=>{let t=d("cookielessAdserver");return e.filter(o=>(o.cookieLessPath=ei(o,t),o.cookieLessPath&&o.cookieLessPath.includes("/")?o:!1))},ti=({consented:e,unit:t,display:o})=>{let n=d("cookielessAdserver");!e&&d("checkForConsent")&&(t.path=ei(t,n),t.path||b(`No path for ${t.id}`)),globalThis.concept.define(t.divIdOnPage,t),o&&globalThis.concept.display({element:t.divIdOnPage,name:t.divIdOnPage})};function Zr(e){Q(f("targeting")),e()}var es=async({name:e,caller:t,adUnit:o})=>{let n=await No(e,t);if(o.requested=!0,o.refresh&&(s(`REFRESH --> scheldule for later: ${e}`),He({name:e,adUnit:o,refreshFunction:Se})),!n)return s(`REFRESH --> ${e} is not ready to be rendered`),Promise.resolve();(t==="scheduleForLater"||!o.lazyload)&&J([n])},Se=async({names:e,caller:t})=>{if(!Array.isArray(e))throw Error("Please call this method with an array of ids");s(`REFRESH --> (CALLER ${t}): refresh ${e}`,"function");let o=[];e.forEach(n=>{let i=S(n);i?o.push(es({name:n,caller:t,adUnit:i})):b(`No configured adunit found for ${n}`)}),o.length>0&&await Promise.all(o)},ts=({container:e,consented:t})=>(e.forEach((o,n)=>{n!==0&&Ee({consented:t,node:o})}),e=e[0],e),oi=(e,t)=>{let o=f("adUnits");if(!d("isPassback")&&!ft(t.size)){s(`${e} doesn not have correct sizes to be defined`,"warning");return}let i=o.hasOwnProperty(e),r=t.disabled;if(i||r)return s(`Will not define ${e}`),null;let a=_o({definition:t});o.set(e,a);let l=o.get(e);if(qo()){s(`Removing lazyload from ${e}`),l.lazyload=!1;return}let c=d("globalLazyAttribute");(l.lazyload||c)&&setTimeout(function(){Go({elementId:l.divIdOnPage,refreshFunc:J,refreshWhenReadyFunction:Se,scheduleLaterFunc:He})},0)},ni=async({element:e,name:t})=>{try{let o=f("failsafe_timeout"),n=f("consentedToCookies"),i=S(t);if(!i){s(`No definition for ${t}, sorry`,"warning");return}let{path:r,sizes:a,targeting:l,anchor:c,setUniqueTargeting:u,divIdOnPage:p}=i,g={};if(c&&!p)g={id:t};else{if(g=await M(`#${e}`,o),g===null){s(`Not gonna do anymore about this (${e})`,"warning");return}g=ts({container:g,consented:!!n})}if(g){if(st("showOverlay")==="true"){xo(a,e,g);return}let h=S(p);if(!h||h.requested){s(`ad unit already request,loaded or deleted by quick insertions: ${p}`);return}ft(a)?Sn({path:r,size:a,elementId:p,anchor:c,targeting:l,setUniqueTargeting:u,container:g}):b("Not correct adunits sizes for viewport");let E=d("globalLazyAttribute"),C=Ct(e);if(E&&!C&&(i.lazyload=!1,s(`Setting lazy to false for ${i.divIdOnPage}`)),C){s(`${e} should be lazy loaded`);return}h.requested||Se({names:[p],caller:"Async display"})}else _n(e),b(`${e} could not be populated (div not found)`)}catch(o){console.error(o),b("Could not run the display function")}},ii=(e={adunitDivId:"",consented:!0})=>{let{consented:t,adunitDivId:o}=e,n=`User has consented (directly or indirectly by the page not having a CMP) = ${t} ${o||null}`;s(n);let i=he();pn(t)&&(Le(i),Et(i,s)),Mt(),Jr(async function(){s("In start function");let l=De()?"mobile":"desktop";globalThis.concept.device=l;let c=i.adUnits;t||(c=Xr(c)),o&&(c=c.filter(u=>u.divIdOnPage===o)),Qr(c,t),globalThis.conceptConfig.dontCallInitial||Wn({consented:t})})};y();Y();L();R();F();Me();y();R();oe();Y();F();G();ze();Me();y();oe();Y();G();I();y();V();le();var ri=navigator.connection||navigator.mozConnection||navigator.webkitConnection,os=e=>{let t={},o=new URL("https://d1jthfopj0ipi6.cloudfront.net/error_track.gif");if(ri){let{downlink:n}=ri;n&&o.searchParams.set("downlink",n)}return globalThis.conceptConfig.reportTrackingAs&&o.searchParams.set("trackingas",globalThis.conceptConfig.reportTrackingAs),o.searchParams.set("error",e),o.searchParams.set("uniqueId",U()),Object.keys(t).forEach(n=>{o.searchParams.set(n,t[n])}),o.href},tt=e=>{if(f("enableErrorReporting")){let o=os(e);X(o,"error-pixel"),s("Error pixel loaded")}};I();var ns={1:"Store and/or access information on a device",2:"Select basic ads",3:"Create a personalized ads profile",4:"Select personalized ads",5:"Create a personalized content profile",6:"Select personalized content",7:"Measure ad performance",8:"Measure content performance",9:"Apply market research to generate audience insights",10:"Develop and improve products",11:"Use limited data to select content"},ai=e=>s(`got CMP event: ${e.eventStatus}`);function de(e){s(`error callback: ${e}`),__tcfapi("getTCData",2,function(t){t.gdprApplies||tt("gdprNotApplies")}),tt("CMP error")}var Rt=e=>{e.fullUsableConsent?(globalThis.concept.consentStatus=P.FULL_CONSENT,globalThis.concept.targeting.requestMode=P.FULL_CONSENT):e.legitimateInterests?(globalThis.concept.consentStatus=P.LEGITIMATE_INTERREST,globalThis.concept.targeting.requestMode="LIMITED"):e.fullUsableConsent?(globalThis.concept.consentStatus=P.UNKNOWN,globalThis.concept.targeting.requestMode=P.UNKNOWN):(globalThis.concept.consentStatus=P.CONSENT_REJECT,globalThis.concept.targeting.requestMode=P.CONSENT_REJECT,s("The user cosents does not meet the requirements to 'normal' load ads."),globalThis.concept.consentedToCookies=!1),Co()},is=()=>{(function(){var e=function(){for(var t,o="__tcfapiLocator",n=[],i=window;i;){try{if(i.frames[o]){t=i;break}}catch{}if(i===window.top)break;i=i.parent}t||(function r(){var a=i.document,l=!!i.frames[o];if(!l)if(a.body){var c=a.createElement("iframe");c.style.cssText="display:none",c.name=o,a.body.appendChild(c)}else setTimeout(r,5);return!l}(),i.__tcfapi=function(){for(var r,a=arguments.length,l=new Array(a),c=0;c3&&parseInt(l[1],10)===2&&typeof l[3]=="boolean"&&(r=l[3],typeof l[2]=="function"&&l[2]("set",!0));else if(l[0]==="ping"){var u={gdprApplies:r,cmpLoaded:!1,cmpStatus:"stub"};typeof l[2]=="function"&&l[2](u)}else n.push(l)},i.addEventListener("message",function(r){var a=typeof r.data=="string",l={};try{l=a?JSON.parse(r.data):r.data}catch{}var c=l.__tcfapiCall;c&&window.__tcfapi(c.command,c.version,function(u,p){var g={__tcfapiReturn:{returnValue:u,success:p,callId:c.callId}};a&&(g=JSON.stringify(g)),r.source.postMessage(g,"*")},c.parameter)},!1))};e()})()},pe=()=>{s("executeQueue ----> executing consentQueue","function");let e=globalThis.concept.consentQueue||[];e.forEach((t,o)=>{qt("(Refresh dequeued and executed)"),e[o]()}),globalThis.concept.consentQueue=[]},Lt=e=>{globalThis.concept.tcString=e.tcString;let t=e?.purpose?.consents||{},o=Object.keys(t),n=Object.values(t),i=e.purpose?o.length:1e3;globalThis.concept.specificConsent=n.map((p,g)=>({purpose:ns[g+1],allowed:p}));let r=e.purpose?o.some(p=>!t[p]):!1,c=!(e.gdprApplies&&(i===0||r===!0));return{legitimateInterests:Vn(e,c),fullUsableConsent:c}},si=({callback:e})=>{s("Loading ads ..."),globalThis.concept.consentedToCookies!==!1&&(globalThis.concept.consentedToCookies=!0,Be(),pe(),globalThis.conceptConfig.dontCallInitial||e({consented:!0}))};function li({callback:e}){s("consent.js run"),_t()||(s("No __tcfapi found at all (should be stubbed)","error"),globalThis.concept.consentStatus=P.NO_TCF_API,tt("adding stub"),is(),s("tcf stub loaded"));function t(o,n){s(`Succesful consent recieved from ${n}`),j("Consent recieved");let i=d("legitimateStepAdserver")==="Adnuntius",r=Lt(o);if(Rt(r),r.fullUsableConsent)si({callback:e});else if(r.legitimateInterests&&!i)Je(),si({callback:e});else if(!r.fullUsableConsent||i){if(!globalThis.conceptConfig.dontCallInitial)return ue({callback:e});pe()}}if(ot.tcfApiExists()){let o=[{eventName:"useractioncomplete",onSuccess:t,onError:de},{eventName:"tcloaded",onSuccess:t,onError:de},{eventName:"cmpuishown",onSuccess:ai,onError:de}];ot.addEventListeners(o)}else s("No tcfApi or Exists"),globalThis.conceptConfig.dontCallInitial?ue({callback:function(){b("could not find TCF api")}}):ue({callback:e})}var ue=({callback:e,adunitDivId:t="",SPAOverwrite:o=globalThis.conceptConfig.dontCallInitial})=>{s("Lets kick of cookieless"),vo();let n=globalThis.conceptConfig.cookielessAdserver;if(globalThis.conceptConfig.checkForConsent&&(!n||!Object.values(Z).includes(n)))throw Error("Please setup a cookieless adserver");(globalThis.concept.adsloaded===0&&!globalThis.concept.initialCalled||o)&&(n===Z.GAM&&(s("GAM cookieless","gpt"),e({consented:!1,adunitDivId:t})),n===Z.ADNUNTIUS&&(s("ADNUNTIUS cookieless","adnuntius"),Ao({adunitDivId:t,prerender:!1,container:"div"})))},_t=()=>window.__tcfapi,ot=function(){return{addEventListeners:t=>{if(!_t()){b("Cannot listen for tcf events if no __tcfapi");return}__tcfapi("addEventListener",2,function(o,n){let i=t.find(r=>r.eventName===o.eventStatus);ai(o),i&&(n?i.onSuccess(o,o.eventStatus):(b(`${o.eventStatus} had an error`),i.onError(o)))})},tcfApiExists:_t}}();I();ye();var ci=!1,pi=()=>{let{origin:e,pathname:t}=location,o=`${e}${t}`;setInterval(function(){let{origin:n,pathname:i}=location,r=`${n}${i}`;if(o!==r){if(o=r,s(`URL changed to ${r}`),globalThis.conceptConfig.dontCallInitial){s("Clearing timeout (refresh) - bacause url change");for(let[a,l]of f("adUnits"))Ce(l)}globalThis.conceptConfig.activateConceptTargeting&&Ge(),To()}},300)},rs=()=>{globalThis.concept.injectNewAds()},gi=()=>{window.addEventListener("urlChange",rs,!0)},fi=()=>{window.addEventListener("urlChange",()=>{Ye()},!0)},ss=(e,t,o)=>{let n=Lt(e),i=globalThis.conceptConfig.legitimateStepAdserver==="Adnuntius";Rt(n),n.fullUsableConsent?kt(t):n.legitimateInterests&&!i?(Je(),kt(t)):(!n.fullUsableConsent||i)&&ue({callback:globalThis.concept.injectAds,adunitDivId:o,SPAOverwrite:!0})},kt=e=>{globalThis.concept.injectAds({adunitDivId:e,consented:!0})},as=(e,t)=>{let o=globalThis.conceptConfig.checkForConsent,n=f("consentStatus")===P.FULL_CONSENT;if(o&&n){kt(e);return}o?__tcfapi("getTCData",2,function(i){s("Manually retrieved tcData"),ss(i,e,t)}):globalThis.concept.consentedToCookies===!1?ue({callback:globalThis.concept.injectAds,adunitDivId:t}):globalThis.concept.injectAds({adunitDivId:e,consented:!0})},di=e=>{globalThis.concept.updateIfEmpty.delete(e),globalThis.concept.initialCalled=!1;let t=e||null;s(`refreshSelected ${e}`,"function"),as(t,e)},ui=(e,t)=>{let o=conceptConfig.adUnits.map(r=>r.divIdOnPage),i=globalThis.conceptConfig.adUnits.find(r=>r.divIdOnPage===e)?.disabled;if(o.includes(e)&&!i){let r=document.getElementById(e),a=!!globalThis.concept.consentedToCookies,l=Ee({consented:a,node:r,display:!1});if(r&&r.setAttribute("dublicatenoted","true"),di(l||e),t||!!d("autoUnloadSlots")){let u=xt(e);Zn(u.path)}}else typeof e=="string"&&e.length>0&&s(`${e} was not found in config or its disabled`,"error");!e&&!globalThis.conceptConfig.dontAllowRefreshAll&&(s("No specific adunit, we refresh all"),globalThis.concept.adUnits.clear(),googletag.destroySlots&&googletag.destroySlots(),di(""))},jt=(e,t=!1)=>{s(`injectNewAds ${e}`,"function"),j("injectNewAds execution requested"),globalThis.concept.updateTargeting(),Q(globalThis.concept.targeting);let o=f("consentedToCookies"),{decideNow:n,waitChoise:i}=fn();if(n&&ui(e,t),i){s("injectNewAds no hasConsented & no limitedFlow","function");let r=()=>ui(e,t);Dt(`(Refresh queued) ${e}`),r&&globalThis.concept.consentQueue.push(r)}if(o===!1&&pe(),o===null&&!ci){s("Adding eventlisteners for the CMP");let r=[{eventName:"useractioncomplete",onSuccess:pe,onError:de},{eventName:"tcloaded",onSuccess:pe,onError:de}];ot.addEventListeners(r),ci=!0}},mi=e=>{s(`loadCopyOf: copy ${e.srcUnit} and insert into ${e.targetDiv}`,"function");let t=globalThis.conceptConfig.adUnits.find(o=>o.divIdOnPage===e.srcUnit);if(t){let o={...t,divIdOnPage:e.targetDiv,copy:!0};globalThis.conceptConfig.adUnits.push(o),jt(e.targetDiv,!1)}else b("Your trying to dublicate a non existing ad unit")};G();le();L();I();y();var hi={BLUE_BILLYWIG:1,OWN_PLAYER:2};var bi="concept",ls=async e=>{let t=e.divIdOnPage;s(`Waiting for ${t} to be visible`,"video");let o=await M(`#${t}`,0),n=Ve(o);if(!n){b(`Could not find ${t}`);return}s(`Inserting BB Player into ${t} `,"video");let i=e.BBUNIT,r=`https://${bi}.bbvms.com/r/${i}.js`;q(t);let a=globalThis.conceptConfig.usePrebid?await globalThis.concept.requestPrebidUrl(e.playerId):globalThis.concept.buildVastTag(e.playerId);O(`VAST TAG CREATED FOR ${t} `);let l=document.createElement("script");l.async=!0,l.src=r,l.onload=()=>{let c={code:t,vastUrl:a},u=`${bi}-${i}`,p=globalThis.bluebillywig.renderers.find(g=>g._id===u);p&&p.bootstrap(c,n)},document.getElementsByTagName("head")[0].appendChild(l)},Pe=()=>{let e=d("videoAdunits");e&&e.forEach(t=>{t.divIdOnPage&&t.videoPlayer===hi.BLUE_BILLYWIG&&ls(t)})};ze();Ue();I();V();var nt=e=>{try{let{cookielessAdserver:t,customCSS:o,reportTrackingAs:n,trySendingSpecificGeo:i,oneOfAutoExecuteBB:r,activateConceptTargeting:a,customScript:l,RMBRef:c,dontCallInitial:u,disableConceptLoads:p,refreshOnBfCacheHit:g,refreshOnUrlChange:m}=e;g&&zo(),t===Z.ADNUNTIUS&&yo(s),o!==""&&o&&ct(o),n&&!p&&Ko(`?loaded=true&site=${n}`),i&&Bo({targetingFunction:Q}),r&&Pe(),a&&Ge(),l&&z(s,l),!globalThis.disableRMBRef&&c&&yt(s,c),(m||u)&&pi(),m&&gi(),u&&fi(),d("setControlGroup")&&(globalThis.concept[d("controlKey")]=lo(1,parseInt(d("controlMax")))),Ro(),globalThis.concept.injectAds=ii,globalThis.concept.define=oi,globalThis.concept.refresh=Se,globalThis.concept.display=ni,globalThis.concept.injectNewAds=jt,globalThis.concept.loadCopyOf=mi,globalThis.concept.connect(A.GET_CONCEPTADS,$n),globalThis.concept.connect(A.GET_VASTTAG,Fn),globalThis.concept.connect(A.GET_PREBIDVASTTAG,Bn),globalThis.concept.connect(A.SKIN_INIT,Un),globalThis.concept.connect(A.SIDESKIN_INIT,Mn),globalThis.concept.connect(A.MACRO_UNLOAD,jn),globalThis.concept.connect(A.SLOT_LOADED,Ze),globalThis.concept.connect(A.SLOT_REQUESTED,Xe),globalThis.concept.connect(A.DESKTOP_TOPSCROLL,kn),go()}catch(t){console.log(t)}};G();I();globalThis.googletag=globalThis.googletag||{};globalThis.googletag.cmd=globalThis.googletag.cmd||[];var Ti=e=>{try{d("waitForEventToStart")||et();let o=wt();o&&o.length>0?window.addEventListener("consentRecieved",()=>nt(e),{once:!0,capture:!0}):nt(e);let n=!e.dontCallInitial,i=!e.refreshOnUrlChange,r=n&&i;e.checkForConsent?li({callback:l=>{Pe(),globalThis.concept.injectAds(l)}}):r&&(Be(),Pe(),globalThis.concept.injectAds({consented:!0})),Nt()}catch(t){console.log(t)}};globalThis.googletag=globalThis.googletag||{};globalThis.googletag.cmd=globalThis.googletag.cmd||[];Y();y();y();fe();F();G();le();I();I();oe();var{injectCustomAsyncScript:cs}=(R(),rt(Re)),Ci=()=>d("activateSonar")&&f("consentStatus")===P.FULL_CONSENT,vi=(e,{unitPath:t,elementId:o})=>{let i=window.location.href.split("?")[0].split("#")[0],r=f("tcString"),l=cs(e,"https://macro.adnami.io/macro/gen/adnm.sonar.js",[["data-adnm-gid","d3qa3kx6zxxlra"],["data-adnm-tid",t],["data-adnm-source",i],["data-adnm-gdpr",1],["data-adnm-gdpr-consent",r],["data-adnm-info","concept"]],!1),c=document.getElementById(o);c&&c.appendChild(l),e("Sonar Injected")};var Ii=!1,yi=!1,Ai=!1,Ei=!1,Si=!1,ds=e=>{let t=e.slot.getAdUnitPath(),o=e.slot.getAdUnitPath(),n=e.slot.getSlotElementId();!!d("autoUnloadSlots")&&Xn(o),O(`slotResponseReceived - ${t}`),j(`slotResponseReceived - ${t}`),e.slot.getResponseInformation()||(Pt(n),$e({name:t,divId:n}),Oe(n))},us=e=>{let t=e.slot.getSlotId().getId();setTimeout(function(){let o=d("isPassback"),n={type:A.SLOT_REQUESTED,payload:{placement:e.slot.getSlotElementId(),adunitId:t}};o?Xe(n.payload):window?.top?.postMessage(n,"*")})},ps=e=>{let t=e.slot.getAdUnitPath(),o=e.slot.getSlotId().getId(),n=e.slot.getSlotElementId(),i=e.slot.getResponseInformation();O(`(slotOnload) ${t} - winning lineitem = ${i?i.lineItem:"no info"}`);let r={type:A.SLOT_LOADED,payload:{placement:n,adunitId:o,deployId:globalThis.conceptConfig.deployId||"default"}};setTimeout(function(){d("isPassback")?Ze(r.payload):window?.top?.postMessage(r,"*")})},gs=e=>{let t=e.slot.getSlotElementId(),o=S(t);e.isEmpty&&Rn(t);let n=e.campaignId||"",i=e.creativeId||e.sourceAgnosticCreativeId,r=e.lineItemId||e.sourceAgnosticLineItemId;e.isEmpty&&(n="unfilled",i="unfilled",r="unfilled");let a=`Orderid: (${n}), LineitemId: (${r}), creativeId: (${i})`;if(s(a,"gpt"),globalThis.conceptConfig.useAdvancedTracking&&Qo({creativeId:i,lineItemId:r,adunitCode:t}),o){i!=="unfilled"&&Ci()&&vi(s,{unitPath:e.slot.getAdUnitPath(),elementId:t});let l=d("allowOrderRefresh")||[];l.length>0&&i!=="unfilled"&&(l.includes(`${n}`)||(o.refresh=0,o.refreshBlocked=!0,Ce(o))),o.rendered=!0;let c={isEmpty:e.isEmpty,size:null};e.isEmpty||(c.size={width:e.size[0],height:e.size[1]})}},fs=e=>{let t=e.slot.getSlotElementId(),o=e.slot.getAdUnitPath(),n=e.slot.getOutOfPage(),i=S(t);i||s("Could not find adunit in slotViewable"),n&&(s("An outofpage unit is being showed"),O(`Out of page loaded - ${o}`)),i&&(i.viewableCount=i?.viewableCount?i.viewableCount+1:1),po({divId:t}),s(`impressionViewable: ${t}`,"gpt")},Pi=!1,wi=()=>{try{Pi||(s("googletagConfigured being queued","gpt"),Pi=!0,googletag.cmd.push(function(){s("[GOOGLETAG loaded] googletag not configured: Enable DFP services","gpt"),globalThis.concept.updateTargeting(),globalThis.googletag.pubads().enableSingleRequest(),globalThis.googletag.pubads().disableInitialLoad(),globalThis.googletag.pubads().setCentering(!0),globalThis.googletag.pubads().collapseEmptyDivs(),Ai||(Ai=we("slotResponseReceived",ds)),Ei||(Ei=we("slotOnload",ps)),yi||(yi=we("slotRequested",us)),Ii||(Ii=we("impressionViewable",fs)),Si||(Si=we("slotRenderEnded",gs));let e=d("page_url"),t=f("targeting"),o=e||t?.UrlHost;if(globalThis.googletag.pubads().set("page_url",o),!d("disableAutoPPID")){let i=d("setPPIDFromCookie"),r=jo(i);r&&(globalThis.concept.PPID=r,Io(r),googletag.pubads().setPublisherProvidedId(r))}globalThis.googletag.enableServices()}))}catch(e){console.error(e),b("Could not setup googletag globals")}},we=(e,t)=>globalThis.googletag.pubads().addEventListener(e,t);var Oi=e=>{let t=!1;t||(t=!0,En(s),wi(),Pn(),Ti(e))};try{globalThis.conceptConfig||console.error("No configuration found. abort!");let e=globalThis.conceptConfig;globalThis.concept=globalThis.concept||Yn(e),Oi(e)}catch(e){console.log(e)}})(); }; "use strict"; atm.log = function (type, message, ctx) { var makeBlock = function (color) { return 'background: ' + color + '; padding: 2px 10px; border-radius: 2px; color: rgba(0,0,0,.7); border-bottom: 1px solid rgba(0,0,0,.3);border-top: 1px solid rgba(255,255,255,.6);margin-left: 5px;'; }; var logType = 'log'; var eventType = ''; var color = '#79e1ec'; if (type == 'warn' || type == 'error') { logType = type; } else { eventType = '%c' + type; } switch (type) { case 'event': color = "#0aff82"; break; case 'tag': color = "#ee49d1"; break; case 'consent': color = "#af83ff"; break; } console[logType]('%cATM' + eventType, makeBlock("#00e6ff"), (eventType != '') ? makeBlock(color) : '', message || '', ctx || ''); }; atm.debug = function (type, message, ctx) { if (win.location.search.indexOf('atm_debug') > -1) { atm.log(type, message, ctx); } }; "use strict"; atm.utils = { createUuid: function () { var dt = new Date().getTime(); var uuid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) { var r = (dt + Math.random() * 16) % 16 | 0; dt = Math.floor(dt / 16); return (c == 'x' ? r : (r & 0x3 | 0x8)).toString(16); }); return uuid; }, getCookie: function (cname) { var name = cname + "="; var decodedCookie = decodeURIComponent(document.cookie); var ca = decodedCookie.split(';'); for (var i = 0; i < ca.length; i++) { var c = ca[i]; while (c.charAt(0) == ' ') { c = c.substring(1); } if (c.indexOf(name) == 0) { return c.substring(name.length, c.length); } } return ""; }, replaceTags: function (str, tags) { var tagNames = Object.keys(tags); for (var i = 0; i < tagNames.length; i++) { var tag = tagNames[i]; var pattern = "{{" + tag + "}}"; str = str.replace(new RegExp(pattern, "g"), tags[tag]); } return str; }, replaceTag: function (str, search, replace) { return str.replace(new RegExp(search, 'g'), replace); }, remove: function (target) { var removeElement = target || 'adn-overlay'; atm.utils.forEachClass(removeElement, function (el) { el.remove(); }); }, addScript: function (src, targetId, fn, options) { var script = doc.createElement("script"); script.type = "text/javascript"; script.src = src; if (options && options.async) script.async = true; if (options && options.defer) script.defer = true; if (options && options.type) script.type = options.type; if (options && options.nomodule) script.noModule = true; if (script.readyState) { // only required for IE <9 script.onreadystatechange = function () { if (script.readyState === "loaded" || script.readyState === "complete") { script.onreadystatechange = null; fn(); } }; } else { //Others script.onload = function () { if (fn) fn(); }; } if (targetId) doc.getElementById(targetId).appendChild(script); else doc.getElementsByTagName("head")[0].appendChild(script); }, addImage: function (src, width, height) { var img = doc.createElement('img'); img.src = src; if (width) img.width = width; if (height) img.height = height; doc.getElementsByTagName('body')[0].appendChild(img); }, addContent: function (content, targetId) { var node = doc.createElement("DIV"); node.innerHTML = content; if (targetId) { var target = doc.getElementById(targetId); target.innerHTML = ''; target.appendChild(node); } else doc.getElementsByTagName("body")[0].appendChild(node); }, addCss: function (url) { var link = doc.createElement("link"); link.href = url; link.type = "text/css"; link.rel = "stylesheet"; doc.getElementsByTagName("head")[0].appendChild(link); }, addCssString: function (string) { var css = string, head = doc.head || doc.getElementsByTagName('head')[0], style = doc.createElement('style'); head.appendChild(style); style.type = 'text/css'; if (style.styleSheet) { style.styleSheet.cssText = css; } else { style.appendChild(doc.createTextNode(css)); } }, forEachClass: function (classname, func) { var els = doc.getElementsByClassName(classname); for (var i = 0; i < els.length; i++) { func(els[i]); } }, forEachTag: function (tagName, func) { var els = doc.getElementsByTagName(tagName); for (var i = 0; i < els.length; i++) { func(els[i]); } }, merge: function (obj, src) { for (var key in src) { if (src.hasOwnProperty(key)) obj[key] = src[key]; } return obj; }, isObject: function (item) { return (item && typeof item === 'object' && !Array.isArray(item)); }, mergeDeep: function (target, source) { if (atm.utils.isObject(target) && atm.utils.isObject(source)) { for (const key in source) { if (atm.utils.isObject(source[key])) { if (!target[key]) Object.assign(target, { [key]: {} }); atm.utils.mergeDeep(target[key], source[key]); } else { Object.assign(target, { [key]: source[key] }); } } } return target; }, flatten: function (obj) { var returnObj = []; for (var key in obj) { returnObj.push(obj[key]); } return returnObj; }, findInArray: function (src, arr) { return arr.some(function (v) { return src.indexOf(v) >= 0; }); }, requestGAM: function (arr) { window.googletag.cmd.push(function () { for (let i = 0; i < arr.length; i++) { if (atm.prebidGoogle && atm.prebidGoogle[arr[i]]) { atm.prebidGoogle[arr[i]](); } } googletag.pubads().enableSingleRequest(); googletag.enableServices(); }); }, runTags: function (localContainerId, tagArray) { if (tagArray != undefined) { for (var i = 0; i < tagArray.length; i++) { try { var tagId = tagArray[i]; var tag = atm.containers[localContainerId].tags[tagId]; var runable = true; if (atm.GLOBALS.haltTriggers && tag.purposes) { if (tag.purposes.length > 0 && !atm.utils.findInArray(atm.GLOBALS.forcedPurposes, tag.purposes)) { runable = false; atm.haltedTags.push(tagId); } } else { if (tag.purposes && tag.purposes.length > 0 && !atm.utils.findInArray(atm.browser.consent.adnuntiusPurposes, tag.purposes)) { runable = false; } } if (runable) { atm.debug('tag', 'Running tag: ' + tagId + ' in container: ' + localContainerId); atm.containerFunctions[localContainerId][tag.type](tag.content); if (atm.eventList.indexOf('tags.' + tagId) != -1) atm.dispatch('tags.' + tagId); } } catch (e) { atm.log('error', e, ': Tag: ' + tag); } } } }, runTriggers: function (container, type) { atm.containers[container].triggers[type].forEach(function (fn) { fn(); }); }, clickElement: function (data) { if (atm.triggers.click) atm.triggers.click(data); }, toggleClass: function (element, className) { if (element.classList) { element.classList.toggle(className); } else { var classes = element.className.split(" "); var i = classes.indexOf(className); if (i >= 0) classes.splice(i, 1); else classes.push(className); element.className = classes.join(" "); } }, newAjax: function (method, url, func) { if (win.XDomainRequest) { // if XDomainRequest is defined and not IE10 if (win.navigator.appVersion.indexOf("MSIE 10") === -1) { var ajaxIe = new win.XDomainRequest(); ajaxIe.open(method, url); ajaxIe.contentType = "text/plain"; ajaxIe.onerror = function () { }; ajaxIe.ontimeout = function () { }; ajaxIe.onprogress = function () { }; ajaxIe.timeout = function () { }; ajaxIe.onload = function () { }; ajaxIe.onload = func; return ajaxIe; } } var ajax = new XMLHttpRequest(); ajax.open(method, url); ajax.setRequestHeader("Content-Type", "text/plain"); if (func && typeof func === "function") { ajax.onreadystatechange = func; } ajax.onerror = function (e) { console.log(e); }; return ajax; }, ajax: function (method, url, func) { var ajax = atm.utils.newAjax(method, url, function () { if (ajax.readyState && ajax.readyState !== 4) { return false; } if (!ajax.status || ajax.status === 200) { if (func && typeof func === "function") { func(JSON.parse(ajax.response)); } else { atm.log('error', 'Ajax function is not a function'); } } else { atm.log('error', 'Request to URL: ' + url + ' got status ' + ajax.status); } }); ajax.send(); }, }; atm.privacy = atm.privacy || undefined; "use strict"; atm.createPrebidRequest = function (request) { var prebidUnits = []; request.adUnits.forEach(function (adUnit) { var prebidId = atm.prebid.map[adUnit.auId]; if (atm.prebid.mappedUnits[prebidId]) { prebidUnits.push(atm.prebid.mappedUnits[prebidId]); } }); return prebidUnits; }; atm.requestAds = function (request) { if (atm.prebid.aliases.length > 0) { for (let i = 0; i < atm.prebid.aliases.length; i++) { const element = atm.prebid.aliases[i]; window.pbjs.que.push(function () { pbjs.aliasBidder(element[1], [element[0]]); }); } } if (atm.prebid.map) { if (request.adUnits) { for (let i = 0; i < request.adUnits.length; i++) { var adUnit = request.adUnits[i]; if (adUnit.refresh) { adUnit = atm.ads.setPrebidRefresh(adUnit, request); } } } adn.calls.push(function () { adn.chbRequest(atm.createPrebidRequest(request), request); }); } else { adn.calls.push(function () { adn.request(request); }); } }; atm.request = atm.request || {}; atm.request.adnuntius = function (callback) { adn.calls.push(function () { adn.request({ adUnits: atm.ads.setAdnuntius(atm.adUnits, callback), }); }); }; atm.request.prebid = function (callback) { pbjs.que.push(function () { pbjs.addAdUnits(atm.adUnits); pbjs.requestBids({ ortb2: atm.ortb2, bidsBackHandler: function (data) { if (callback) { callback(data); } else atm.ads.renderPrebidWinners(); }, timeout: 3000 }); }); }; atm.request.refresh = function (auId) { }; adn.requestAds = atm.requestAds; "use strict"; atm.ads.adUnitMeta = atm.ads.adUnitMeta || {}; atm.addAdUnits = function (adUnitList) { atm.utils.merge(atm.adUnits, adUnitList); }; atm.clearAdUnits = function () { atm.adUnits = []; }; atm.removeAdUnitByCodeArray = function (codeArray) { for (let i = 0; i < codeArray.length; i++) { atm.removeAdUnitByCode(codeArray[i]); } }; atm.removeAdUnitByCode = function (code) { for (let i = 0; i < atm.adUnits.length; i++) { if (atm.adUnits[i].code == code) { atm.adUnits.splice(i, 1); break; } } }; atm.addOrtb = function (ortbData) { atm.ortb2 = atm.utils.mergeDeep(atm.ortb2, ortbData); }; atm.addAlias = function (aliasList) { atm.adUnitAliases = atm.adUnitAliases.concat(aliasList); }; atm.prebid.mappedUnits = atm.utils.merge(atm.prebid.mappedUnits, atm.containers[CONTAINER_ID].prebid.units); atm.prebid.units = atm.utils.merge(atm.prebid.units, atm.utils.flatten(atm.containers[CONTAINER_ID].prebid.units)); atm.prebid.aliases = atm.prebid.aliases.concat(atm.containers[CONTAINER_ID].prebid.aliases); atm.prebid.map = atm.utils.merge(atm.prebid.map, atm.containers[CONTAINER_ID].prebid.map); atm.ads.onCallDone = function (matched, callback) { atm.removeAdUnitByCodeArray(matched); if (callback) callback(); }; atm.ads.renderPrebidWinners = function () { var bids = pbjs.getHighestCpmBids(); var output = []; for (var i = 0; i < bids.length; i++) { var b = bids[i]; var iframe = document.createElement('iframe'); iframe.id = b.adId; iframe.width = b.width; iframe.height = b.height; iframe.frameBorder = 'no'; var target = document.getElementById(b.adUnitCode); target.style.display = 'block'; output.push({ 'adunit': b.adUnitCode, 'adId': b.adId, 'bidder': b.bidder, 'time': b.timeToRespond, 'cpm': b.cpm }); var tag = { adServerDomain: "", pubUrl: window.location.href, targetingMap: {}, hbPb: "adnuntius", adId: b.adId }; target.appendChild(iframe); ucTag.renderAd(iframe.contentWindow.document, tag); } if (output.length) { if (console.table) { console.table(output); } else { for (var j = 0; j < output.length; j++) { console.log(output[j]); } } } else { console.warn('No prebid winners'); } }; atm.ads.setAdnuntius = function (adUnits, callback) { var mappedAliases = {}; var adnAdUnitArray = []; var matchedAds = []; var totalAds = []; var removefromTotal = function (adUnit) { var position = totalAds.indexOf(adUnit.targetId); totalAds.splice(position, 1); if (totalAds.length == 0) { atm.ads.onCallDone(matchedAds, callback); } }; atm.adUnitAliases.forEach(function (aliasItem) { mappedAliases[aliasItem.alias] = aliasItem.bidder; }); adUnits.forEach((adUnit) => { totalAds.push(adUnit.code); adUnit.bids.forEach(function (bid) { if (bid.bidder == "adnuntius" || mappedAliases[bid.bidder] == "adnuntius") { var adnAdunit = { auId: bid.params.auId, targetId: adUnit.code, onNoMatchedAds: function (data) { removefromTotal(data); }, onImpressionResponse: function (data) { matchedAds.push(data.targetId); removefromTotal(data); }, }; if (adUnit.mediaTypes && adUnit.mediaTypes.banner && adUnit.mediaTypes.banner.sizes) adnAdunit.dimensions = adUnit.mediaTypes.banner.sizes; if (bid.params.targeting) { console.log(bid.params.targeting); } adnAdUnitArray.push(adnAdunit); } }); }); return adnAdUnitArray; }; atm.ads.setInterval = function (auId, request) { if (!atm.ads.adUnitMeta[auId].interval) { atm.ads.adUnitMeta[auId].interval = setInterval(function () { if (atm.ads.adUnitMeta[auId].refresh.count != 0) { adn.calls.push(function () { adn.chbRequest(atm.createPrebidRequest(request), request); }); atm.ads.adUnitMeta[auId].refresh.count--; } else { clearInterval(atm.ads.adUnitMeta[auId].interval); } }, atm.ads.adUnitMeta[auId].refresh.delay * 1000); } }; atm.ads.setPrebidRefresh = function (adUnit, request) { var singleAdUnitRequest = Object.assign({}, request); delete singleAdUnitRequest.headerBids; var targetId = (adUnit.targetId) ? ':' + adUnit.targetId : ''; var auId = adUnit.auId + targetId; var refresh = adUnit.refresh; if (refresh.count) refresh.count = refresh.count || 999; else { refresh = { delay: adUnit.refresh, count: 999, }; } var event = refresh.event || 'onViewable'; if (event != 'onViewable' && event != "onVisible") throw new Error('refresh event needs to be "onViewable" or "onVisible"'); delete adUnit.refresh; adUnit.clearTarget = true; atm.ads.adUnitMeta[auId] = atm.ads.adUnitMeta[auId] || {}; atm.ads.adUnitMeta[auId].refresh = refresh; atm.ads.adUnitMeta[auId].refreshFunction = function () { singleAdUnitRequest.adUnits = [adUnit]; atm.ads.setInterval(auId, singleAdUnitRequest); }; adUnit[event] = atm.ads.adUnitMeta[auId].refreshFunction; return adUnit; }; "use strict"; atm.addListener = function (name, callback) { if (atm.eventList.indexOf(name) == -1) { atm.eventList.push(name); atm.events[name] = new CustomEvent(name, { bubbles: true }); } document.addEventListener(name, function () { if (callback) callback(atm.transitData); }); }; atm.dispatch = function (name, data) { atm.debug(name, data); atm.transitData = data; document.dispatchEvent(atm.events[name]); }; "use strict"; atm.containerFunctions[CONTAINER_ID].javascriptCustom = function (script) { try { script.script(); } catch (e) { atm.log('error', 'Custom Javascript is malformed ' + e.message, 'Custom JavaScript'); } }; atm.addListener("pageview.GiWJuFNlq", function(eventData){ if(true) atm.utils.runTags('GiWJuFNlq', ["X-Xgq5G37B"]) }); atm.utils.addScript("https://cdn.adnuntius.com/adn.js",false,false,{async:true}); if(atm.containers[CONTAINER_ID].prebid){ if(atm.containers[CONTAINER_ID].prebid.config && atm.containers[CONTAINER_ID].prebid.config.custom){ try { new Function(atm.containers[CONTAINER_ID].prebid.config.custom)(); } catch (e) { atm.log('error', 'Custom prebid script malformed: ' + e.message, 'Custom Prebid') } } if(atm.containers[CONTAINER_ID].prebid.loadPrebidJs){atm.utils.addScript("https://tags.adnuntius.com/pb/prebid.js")} } "use strict"; (function () { var executeQueue = function () { try { var queItem; while (queItem = atm.queue.shift()) { if (typeof queItem == 'function') queItem(); } } catch (e) { atm.log('error', e, 'queue handler'); } }; win.setTimeout(executeQueue, 25); atm.queue.push = function () { Array.prototype.push.apply(this, arguments); win.setTimeout(executeQueue, 1); return this.length; }; executeQueue(); })(); window.addEventListener('load', function (event) { if( atm.eventList.indexOf('pageload.' + CONTAINER_ID) != -1){ atm.dispatch('pageload.' + CONTAINER_ID) } }); if (atm.eventList.indexOf('pageview.' + CONTAINER_ID) > -1) atm.dispatch('pageview.' + CONTAINER_ID); })(atm, adn, document, window); } catch (e) { console.log('error', e); }