"use strict";var adnMeta=adnMeta||{},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(e,t,n,i){var o,a,s,r="zUxMC1rEr";if(e.containerFunctions[r]=e.containerFunctions[r]||{},e.cookie=function(){for(var e=document.cookie.split(";"),t={},n=0;n{var t=e.name||e.getAttribute("property")||e.getAttribute("http-equiv");t&&(o[t]=e.content)})),o),e.containers[r]={id:"zUxMC1rEr",data:{geo:!1,gdpr:!1,cssAdd:!0,position:"overlay",cssOverride:!0,gdprChoiceButton:!0},prebid:{loadPrebidJs:!1,units:{},map:{},analytics:!1,requester:{system:"none"},aliases:[]},tagType:"legacy",cmp:!1,templates:!1,variables:[],variableMap:{},tags:{"j5dA-fkN_D":{purposes:[],type:"javascriptCustom",content:{script:""}}}},e.containers[r].tags["j5dA-fkN_D"].content.script=function(){window.conceptConfig={targetingToDMP:[],refreshInview:.25,prebidTimeOut:1e3,s2sTimeout:500,page_url:"https://www.tv3sport.dk",reportTrackingAs:"tv3sport.dk",prebidRef:"https://cdn.cncpt.dk/cncpt-ads/e6878046-2f3d-474b-81e5-17b77fdb3475.js",allowAdUnitDublicates:!0,adUnits:[{path:"/5706918,22587442606/ tv3sport.dk_fodb_tab_lb1_728x90_241130",divIdOnPage:"cncpt-tab-lb1_fodbold",targeting:{},prebidSizes:[[728,90]],size:[[[0,0],[[728,90]]]],inview:[],refresh:0,id:"6rndb",dependencies:"",prebidBid:[{params:{mid:"175488"},bidder:"adf"},{params:{mid:"1574908"},bidder:"admium"},{params:{placementId:29842375},bidder:"appnexus",disabled:!1}]},{path:"/5706918,22587442606/tv3sport.dk_fodb_dsk_rec1_241125",divIdOnPage:"cncpt-rec1_fodbold",targeting:{},prebidSizes:[[300,250]],size:[[[1025,0],[[300,250]]]],inview:[],refresh:0,id:"6n9yrv",lazyload:!1,dependencies:"",prebidBid:[{params:{mid:"175483"},bidder:"adf"},{params:{placementId:"24074930"},bidder:"mss_dis"},{params:{accountId:"17246",siteId:"196950",zoneId:"961300"},bidder:"rubicon"},{params:{mid:"1574915"},bidder:"admium"},{params:{placementId:29842376},bidder:"appnexus",disabled:!1}]},{path:"/5706918,22587442606/tv3sport.dk_fodb_dsk_lb1_241122",divIdOnPage:"cncpt-lb1_fodbold",targeting:{},prebidSizes:[[930,180],[1,2]],size:[[[1025,0],[[930,180],[1,2]]]],rootMargin:0,inview:[],refresh:0,id:"3vbprm",dependencies:"",excluserTimeout:200,prebidBid:[{params:{mid:"175480"},bidder:"adf"},{params:{placementId:"24074932"},bidder:"mss_dis"},{params:{placementId:"24074950"},bidder:"mss_skn"},{params:{accountId:"17246",siteId:"196950",zoneId:"961298"},bidder:"rubicon"},{params:{mid:"1574908"},bidder:"admium"},{params:{placementId:29842377},bidder:"appnexus",disabled:!1}]},{path:"/5706918,22587442606/tv3sport.dk_fodb_mob2_241128",divIdOnPage:"cncpt-mob2_fodbold",targeting:{format:"interscroll_mob"},prebidSizes:[[300,250],[320,160],[320,320],[300,240]],size:[[[0,0],[[300,250],[320,160],[320,320],[300,240]]]],inview:[],refresh:0,id:"6nygf",lazyload:!1,dependencies:"",prebidBid:[{params:{mid:"175486"},bidder:"adf"},{params:{placementId:"24074933"},bidder:"mss_dis"},{params:{placementId:"24074937"},bidder:"mss_mob_int"},{params:{accountId:"17246",siteId:"196950",zoneId:"961304"},bidder:"rubicon"},{params:{mid:"1574925"},bidder:"admium"},{params:{placementId:29842378},bidder:"appnexus",disabled:!1},{params:{mid:1746972},bidder:"adf2"}]},{path:"/5706918,22587442606/tv3sport.dk_fodb_mob1_241127",divIdOnPage:"cncpt-mob1_fodbold",targeting:{},prebidSizes:[[320,320]],size:[[[0,0],[[300,250],[320,320]]]],inview:[],refresh:0,id:"0c8gf5",lazyload:!1,dependencies:"",prebidBid:[{params:{placementId:"24074933"},bidder:"mss_dis"},{params:{accountId:"17246",siteId:"196950",zoneId:"961302"},bidder:"rubicon"},{params:{mid:"1574918"},bidder:"admium"},{params:{placementId:29842379},bidder:"appnexus",disabled:!1}]},{path:"/5706918,22587442606/tv3sport.dk_dsk_lb1_238457",divIdOnPage:"cncpt-lb1",targeting:{},prebidSizes:[[930,180],[1,2]],size:[[[1025,0],[[930,180],[1,2]]]],rootMargin:0,inview:[],refresh:0,id:"def-dsk_lb1",dependencies:"",excluserTimeout:200,prebidBid:[{params:{mid:"175480"},bidder:"adf"},{params:{placementId:"24074932"},bidder:"mss_dis"},{params:{placementId:"24074950"},bidder:"mss_skn"},{params:{accountId:"17246",siteId:"196950",zoneId:"961298"},bidder:"rubicon"},{params:{placementId:"17085336"},bidder:"msupply-skn"},{params:{mid:"1574908"},bidder:"admium"},{params:{placementId:29842380},bidder:"appnexus",disabled:!1}]},{path:"/5706918,22587442606/tv3sport.dk_dsk_rec1_238458",divIdOnPage:"cncpt-rec1",targeting:{},prebidSizes:[[300,250]],size:[[[1025,0],[[300,250]]]],inview:[],refresh:0,id:"def-dsk_rec1",lazyload:!1,dependencies:"",prebidBid:[{params:{mid:"175483"},bidder:"adf"},{params:{placementId:"24074930"},bidder:"mss_dis"},{params:{accountId:"17246",siteId:"196950",zoneId:"961300"},bidder:"rubicon"},{params:{placementId:"13336131"},bidder:"msupply"},{params:{mid:"1574915"},bidder:"admium"},{params:{placementId:29842381},bidder:"appnexus",disabled:!1}]},{path:"/5706918,22587442606/ tv3sport.dk_mob2_239760",divIdOnPage:"cncpt-mob2",targeting:{format:"interscroll_mob"},prebidSizes:[[300,250],[320,160],[320,320],[300,240]],size:[[[0,0],[[300,250],[320,160],[320,320],[300,240]]]],inview:[],refresh:0,id:"def-mob2",lazyload:!1,dependencies:"",prebidBid:[{params:{mid:"175486"},bidder:"adf"},{params:{placementId:"24074933"},bidder:"mss_dis"},{params:{placementId:"24074937"},bidder:"mss_mob_int"},{params:{accountId:"17246",siteId:"196950",zoneId:"961304"},bidder:"rubicon"},{params:{placementId:"13336274"},bidder:"msupply"},{params:{mid:"1574925"},bidder:"admium"},{params:{placementId:29842382},bidder:"appnexus",disabled:!1},{params:{mid:1746971},bidder:"adf2"}]},{path:"/5706918,22587442606/tv3sport.dk_tab_lb1_728x90_238460",divIdOnPage:"cncpt-tab-lb1",targeting:{},prebidSizes:[[728,90]],size:[[[0,0],[[728,90]]]],inview:[],refresh:0,id:"def-tab_lb1",dependencies:"",prebidBid:[{params:{mid:"175488"},bidder:"adf"},{params:{mid:"1574908"},bidder:"admium"},{params:{placementId:29842383},bidder:"appnexus",disabled:!1}]},{path:"/5706918,22587442606/tv3sport.dk_dsk_sky1",divIdOnPage:"cncpt-sky1",targeting:{},prebidSizes:[[160,600],[300,600]],size:[[[928,0],[[300,600],[160,600]]]],rootMargin:0,inview:[],refresh:0,id:"def-sky1",dependencies:"",prebidBid:[{params:{mid:"527741"},bidder:"adf"},{params:{placementId:"24074931"},bidder:"mss_dis"},{params:{mid:"1574913"},bidder:"admium"},{params:{placementId:29842384},bidder:"appnexus",disabled:!1}],excluserTimeout:200},{path:"/5706918,22587442606/tv3sport.dk_dsk_sky2_239752",divIdOnPage:"cncpt-sky2",targeting:{},prebidSizes:[[300,600],[1,600]],size:[[[928,0],[[300,600],[1,600]]]],inview:[],refresh:0,id:"def-sky2",dependencies:"",prebidBid:[{params:{mid:"527743"},bidder:"adf"},{params:{placementId:"24074931"},bidder:"mss_dis"},{params:{mid:"1574920"},bidder:"admium"},{params:{placementId:29842385},bidder:"appnexus",disabled:!1}]},{path:"/5706918,22587442606/tv3sport.dk_mob1_238459",divIdOnPage:"cncpt-mob1",targeting:{},prebidSizes:[[320,320]],size:[[[0,0],[[300,250],[320,320]]]],inview:[],refresh:0,id:"def-mob1",lazyload:!1,dependencies:"",prebidBid:[{params:{placementId:"24074933"},bidder:"mss_dis"},{params:{accountId:"17246",siteId:"196950",zoneId:"961302"},bidder:"rubicon"},{params:{placementId:"13336273"},bidder:"msupply"},{params:{mid:"1574918"},bidder:"admium"},{params:{placementId:29842386},bidder:"appnexus",disabled:!1}]},{path:"/5706918,22587442606/tv3sport.dk_tab_rec1_238461",targeting:{},divIdOnPage:"cncpt-tab_rec1",size:[[[0,0],[[300,250]]]],inview:[],refresh:0,id:"def-tab-rec1",lazyload:!1,dependencies:"",prebidBid:[{params:{placementId:29842387},bidder:"appnexus",disabled:!1}]},{path:"/5706918,22587442606/tv3sport.dk_dsk_rec2",targeting:{},divIdOnPage:"cncpt_rec2",prebidSizes:[[300,250]],size:[[[928,0],[[300,250]]]],inview:[],refresh:0,id:"def-rec2",lazyload:!1,dependencies:"",prebidBid:[{params:{placementId:"24074930"},bidder:"mss_dis"},{params:{mid:"1574911"},bidder:"admium"},{params:{placementId:29842388},bidder:"appnexus",disabled:!1}]},{path:"/5706918,22587442606/tv3sport.dk_dsk_rec3",targeting:{},divIdOnPage:"cncpt_rec3",prebidSizes:[[300,250]],size:[[[928,0],[[300,250]]]],inview:[],refresh:0,id:"def-rec3",lazyload:!1,dependencies:"",prebidBid:[{params:{placementId:"24074930"},bidder:"mss_dis"},{params:{mid:"1574916"},bidder:"admium"},{params:{placementId:29842389},bidder:"appnexus",disabled:!1}]},{path:"/5706918,22587442606/tv3sport.dk_mob3",divIdOnPage:"cncpt-mob3",targeting:{format:"interscroll_mob"},prebidSizes:[[300,250],[320,320],[300,240]],size:[[[0,0],[[300,250],[320,320],[300,240]]]],inview:[],refresh:0,id:"def-mob3",lazyload:!1,dependencies:"",prebidBid:[{params:{placementId:"24074933"},bidder:"mss_dis"},{params:{placementId:"24074937"},bidder:"mss_mob_int"},{params:{mid:"1574921"},bidder:"admium"},{params:{placementId:29842390},bidder:"appnexus",disabled:!1},{params:{mid:1746970},bidder:"adf2"}]}],videoAdunits:[],sid:"C-01285",readpeaks:[],customTargeting:{market:"dk",domain:"tv3sport.dk",categories:"football,men,sport"},bidderSettings:[{alias:"msupply",bidCpmAdjustment:1,bidder:"appnexus"},{alias:"mss_mob_int",bidCpmAdjustment:1,bidder:"appnexus"},{alias:"admium",bidCpmAdjustment:1,bidder:"adform"},{alias:"adf2",bidCpmAdjustment:1,bidder:"adform"},{alias:"mss_skn",bidCpmAdjustment:1,bidder:"appnexus"},{alias:"msupply-skn",bidCpmAdjustment:1,bidder:"appnexus"},{alias:"mss_dis",bidCpmAdjustment:1,bidder:"appnexus"},{alias:"adf",bidCpmAdjustment:1,bidder:"adform"}],strossles:[],usePrebid:!0,dontCallInitial:null,RMBRef:null,prebidAliases:[["msupply","appnexus"],["mss_mob_int","appnexus"],["admium","adform"],["adf2","adform"],["mss_skn","appnexus"],["msupply-skn","appnexus"],["mss_dis","appnexus"],["adf","adform"]],deployId:"lpjlmkrmv3cdt5st0qs",supplyPartners:[],ABTesters:[],observerTimeout:150,haltInit:0,rootMargin:495,failsafe_timeout:0,implementationType:"NORMAL",activateConceptTargeting:!0},(()=>{var e=Object.defineProperty,n=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,a=(e,t)=>()=>(e&&(t=e(e=0)),t);function s(e){g&&m(e,"error")}var r,d,l,c,p,g,u,m,f,b,h,v,T,y,I,w,C,A,k,E,_,O=a((()=>{r={pbjs:"#3B88C3;",gpt:"#1E8E3E;",adnuntius:"#0e9bd6;",emitter:"#f4b400;",video:"#ff0046;",conceptads:"#283593;",readpeak:"#13759a;",strossle:"#191919;",function:"#9AE19D;",test:"#6eb77f;",error:"#ff3333;"},d=e=>r[e]||"#d24f54;",l=performance.now(),c=function(e,t){let n=Array.from(t),i=d(e);n.unshift("font-family: sans-serif; font-weight: bold; color: #FFF; padding: 1px 0; background: "+i+" padding: 1px 3px; margin: 2px 0; border-radius: 3px;");let o=(performance.now()-l)/1e3;return n.unshift("%c"+e.toUpperCase()+` (+ ${o.toFixed(2)} s) `),n},g="true"===(p=function(e){let t=new RegExp("[\\?&]"+e+"=([^&#]*)").exec(window.location.search);return null===t?"":decodeURIComponent(t[1].replace(/\+/g," "))})("concept_debug"),u="true"===p("realtime_config"),m=function(e,t="conceptads",n="log"){return Object.keys(r).includes(t)||(t="conceptsads"),g&&console[n].apply(this,c(t,[e]))},f=()=>{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"})},b=(e,t)=>{let n=performance.now(),i=globalThis.concept?.initTime?(n-globalThis.concept.initTime)/1e3:0;globalThis?.concept?.eventLog&&globalThis.concept.eventLog.push({msg:t,secondCount:i,list:e})},h=e=>b("Function queued",e),v=e=>b("Function dequeued",e),T=e=>b("Timing point",e),y=e=>b("Event recieved",e),I=e=>b("Ad loaded",e),w=e=>b("Request sent",e),C=e=>b("Unfilled recieved",e)})),P=a((()=>{A=function(){let e=!1;return t=navigator.userAgent||navigator.vendor||window.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0,4)))&&(e=!0),e;var t}})),S=a((()=>{k=({adunitPath:e})=>[...[...globalThis.concept.updateWhenResolved.keys()],...[...globalThis.concept.updateIfEmpty.keys()]].filter((e=>globalThis.concept.adUnits[e])).map((e=>globalThis.concept.adUnits[e].path)).includes(e)})),x=a((()=>{E=e=>{let t="mobile"===globalThis.concept.device?globalThis.conceptConfig.mobileMultiplier||2:1,n=globalThis.concept.adUnits?globalThis.concept.adUnits[e]:null,i=n?n.rootMargin:globalThis.conceptConfig.rootMargin;isNaN(300)&&console.error("Root margin not given as a number");let o=300*t+"px";return i&&(o=i*t+"px"),o},_=e=>({root:null,rootMargin:E(e),threshold:globalThis.conceptConfig.threshold||0})}));function j({observingList:e,elementId:t,refreshFunc:n,refreshWhenReadyFunction:i,scheduleLaterFunc:o,retries:a=0}){let r=_(t),d=document.getElementById(t);!d&&a<3?setTimeout((function(){return m(`observeElement -> Gonna refresh ${t}`),j({observingList:e,elementId:t,refreshWhenReadyFunction:i,scheduleLaterFunc:o,refreshFunc:n,retries:a+1})}),globalThis.conceptConfig.observerTimeout||150):d?(globalThis.concept.observing.push({element:d}),function({observerConfig:e,element:t,refreshFunc:n,scheduleLaterFunc:i,refreshWhenReadyFunction:o}){q({observerConfig:e,element:t,excutionFunction:e=>{let t=e.target;if(e.isIntersecting){m(`refreshOnIntersection -> ${t.id} is intersection:`);let e=globalThis.concept.adUnits[t.id];if(!e)return void s(`Could not find Adunit in adunit list ${t.id}`);let a=k({adunitPath:e.path});e&&e.lazyload&&!e.alreadyLoaded&&!a&&(m("refreshOnIntersection -> Not loaded yet, so we refresh"),e.alreadyLoaded=!0,e.loadedFirstTime=!0,e.refreshTimer&&D({adUnit:e,scheduleLaterFunc:i,refreshWhenReadyFunction:o}),n([e]))}}})}({observerConfig:r,element:d,refreshFunc:n,scheduleLaterFunc:o,refreshWhenReadyFunction:i})):s(`Could not observe: ${t} is never inserted or inserted too late. try to increase timeout`)}function $(e,t,n=!1){let i,o=n?e:J(e);return new Promise((n=>{t&&Number.isInteger(t)&&(m(`Timing ${e} out in ${t} ms`),i=setTimeout((function(){s(`${e} TIMED OUT`),n(null)}),t));let a=H(o),r=!a||!K(a)||a.length>0;if(a&&r)i&&clearTimeout(i),n(a);else if(globalThis.conceptConfig.avoidMutationObserver){m("Interval observer started for dublications");let e=setInterval((()=>{let t=H(o);t&&(m(`Found from intervaller ${o}`),clearInterval(e),i&&clearTimeout(i),n(t))}),100)}else{m(`Relying on MutationObserver to find ${e}`);let t=new MutationObserver((e=>{let a=H(o);a&&(m(`Found from mutationObserver ${o}`),t.disconnect(),i&&clearTimeout(i),n(a))}));document.body?t.observe(document.body,{childList:!0,subtree:!0}):m(`Could not wait for ${e} as there is no docuemnt body`)}}))}var U,R,N,L,z,B,M,F,q,D,G,W,V,H,J,K,Q,Y,X,Z,ee=a((()=>{O(),P(),S(),x(),U=e=>document.body.appendChild(e),R=({targetingFunction:e})=>{navigator.geolocation&&navigator.geolocation.getCurrentPosition((t=>{let{coords:{longitude:n,latitude:i,accuracy:o}}=t,a={lat:`${i}`,long:`${n}`,accuracy:`${o}`};globalThis.concept.targeting={...globalThis.concept.targeting,...a},m("Geo is being set"),e(a)}))},N=(e,t)=>{document.addEventListener("DOMContentLoaded",(function(){e(t)}))},L=!1,z=({el:e,parentCheck:t=!1})=>{if(!e)return!1;let{width:n,height:i,bottom:o,top:a,left:s,right:r}=e.getBoundingClientRect();return 0!==n||0!==i||t?!document.hidden&&a>=0&&s>=0&&o<=(window.innerHeight||document.documentElement.clientHeight)&&r<=(window.innerWidth||document.documentElement.clientWidth):z({el:e.parentNode,parentCheck:!0})},B=(e,t)=>{if(!t)return e;for(var n=t.split("."),i=0,o=n.length-1;i{let t={};for(let n in e)e.hasOwnProperty(n)&&(t[n]=`${e[n]}`);return t},F=(e={adUnits:[]})=>{let t={};try{let n=Math.round(100*window.devicePixelRatio),i=window.frameElement?window.frameElement.baseURI:"",o=window.location.toString(),a=o.includes("http")?o:i,s=new RegExp(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/).exec(a);if(s){let e=s[4]||"",i=(s[5]||"").replace(/(.)\/$/,"$1"),o=(s[7]||"").replace(/\=/gi,":").split("&");t={UrlHost:e,UrlPath:i,UrlQuery:o,browserZoomLevel:n+""}}return e.postSetup?t.pb=["post"]:t.entry="first",e.customTargeting&&(t={...t,...M(e.customTargeting)}),globalThis.siteTargeting&&"object"==typeof globalThis.siteTargeting&&(t={...t,...M(globalThis.siteTargeting)}),e.urlTargetingSearchings&&Array.isArray(e.urlTargetingSearchings)&&e.urlTargetingSearchings.forEach((e=>{let{searchFor:n,valueName:i,keyName:o}=e;a.includes(n)&&(t[o]=i)})),e.lookForGlobal&&Array.isArray(e.lookForGlobal)&&e.lookForGlobal.forEach((e=>{let{name:n,globalVar:i}=e,o=B(window,i);o&&(t[n]="string"==typeof o?o.split(",").map((e=>e.trim())):o)})),window.location.pathname.split("/").forEach(((e,n)=>{n>0&&n<4&&(t["path"+n]=e.slice(-40))})),t}catch{return void m("Something went wrong with the global targeting")}},q=({observerConfig:e,element:t,excutionFunction:n})=>{if(!(t instanceof Element))return;let i=new IntersectionObserver(((e,t)=>{e.forEach((e=>n(e,t)))}),e);return i.observe(t),i},D=({adUnit:e,scheduleLaterFunc:t,refreshWhenReadyFunction:n})=>{clearTimeout(e.refreshTimer),m(`refreshOnIntersection --\x3e resetting timer: ${e.divIdOnPage}`),t({name:e.divIdOnPage,adUnit:e,refreshFunction:n})},G=()=>window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,W=()=>["complete","loaded","interactive"].includes(document.readyState),V=()=>A(),H=globalThis?.conceptConfig?.allowAdUnitDublicates?document.querySelectorAll.bind(document):document.getElementById.bind(document),J=e=>{let t=globalThis?.conceptConfig?.allowAdUnitDublicates?e:e.split("#")[1];return e.includes(".")&&(t=t.split(".").join("\\."),m(`Found a ., now looking for ${t}`)),t},K=e=>NodeList.prototype.isPrototypeOf(e),Q=["CookieConsent","CookieInformationConsent","_ga","eupubconsent-v2"],Y=e=>{let t=[...Q];e&&t.unshift(e);let n="";return document.cookie.split(";").forEach((function(e){let[i,o]=e.split("=");t.includes(i.trim())&&(n=o)})),n}})),te=a((()=>{X=e=>{let t,n=[];for(t=0;ti);t++);return e[t]},Z=()=>Math.random().toString(36).substr(2,9)}));function ne(e){let t=`https://dw6vol2k7d4iu.cloudfront.net/1x1.png${e}&someunique=${Z()}`;ie(t,"concept-loads")}var ie,oe,ae,se,re,de,le,ce,pe,ge,ue=a((()=>{O(),ee(),te(),ie=(e,t)=>{let n=document.createElement("img");n.setAttribute("src",e),n.setAttribute("height","1"),n.setAttribute("width","1"),n.setAttribute("style","width:auto"),n.setAttribute("alt",t),n.setAttribute("id","concept-pixel");try{document.body?U(n):N(U,n)}catch(e){console.error("Cant read document.body in append pixel",e)}},oe=e=>{try{document.body?ne(e):N(ne,e)}catch(e){console.error("Cant read document.body",e)}},ae=({lineItemId:e,creativeId:t,adunitCode:n})=>{let i=globalThis.conceptConfig.reportTrackingAs;if(!i||!globalThis?.concept?.targeting)return m("Cant track when no name to track on","concept"),null;let o=`https://d23oz2xvzoo5zg.cloudfront.net/imp_track.gif?site=${i}&lineItemId=${e}&creativeId=${t}&adunitCode=${n}&someunique=${Z()}`;return ie(o,"advanced-tracking"),o}})),me=a((()=>{ue(),se=()=>globalThis.conceptConfig.sendDataToAdformDSP,re=({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((e=>{let[n,i]=e.split("--");if("format"===n){let e=globalThis.conceptConfig.adUnits.map((e=>e.targeting?.format)).filter(Boolean).map((e=>e?.split(",").join("|"))),n=[...new Set(e)].join("|");t.order[i]=n}else"contxt"===n?globalThis.concept.targeting[n]&&(t.order.itms=globalThis.concept.targeting[n].map((e=>({[i]:e})))):globalThis.concept.targeting[n]&&(t.order[i]=globalThis.concept.targeting[n])})),window._adftrack.push(t),function(){var e=document.createElement("script");e.type="text/javascript",e.async=!0,e.src="https://s2.adform.net/banners/scripts/st/trackpoint-async.js";var t=document.getElementsByTagName("script")[0];t.parentNode&&t.parentNode.insertBefore(e,t)}(),ie("https://track.adform.net/Serving/TrackPoint/?pm=923403&ADFPageName=concept_dmp&ADFdivider=|","concept-dmp"),e("DMP pixel loaded")}})),fe=a((()=>{ee(),O(),x(),de=({injectionFunction:e})=>{globalThis.conceptConfig?.readpeaks&&globalThis.conceptConfig?.readpeaks?.length>0&&globalThis.conceptConfig.readpeaks.forEach((t=>{le({readpeakConf:t,injectionFunction:e})}))},le=async({readpeakConf:e,injectionFunction:t})=>{m(`Lazyloading a readpeak item in ${e.divIdOnPage}`,"readpeak");let 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={root:null,rootMargin:E(null),threshold:globalThis.conceptConfig.threshold||0},o=(e,i)=>{let o=e.target;if(e.isIntersecting&&globalThis.conceptConfig.readpeaks){let e=globalThis.conceptConfig.readpeaks.find((e=>e.divIdOnPage===o.id)),a=e&&document.getElementById(e.divIdOnPage);a&&!1===a.hasChildNodes()&&e?(e.loadedTimes?e.loadedTimes=e.loadedTimes+1:e.loadedTimes=1,o.appendChild(n),globalThis.__rpads=globalThis.__rpads||[],globalThis.__rpads.push(e.readpeakId),m(` ${e.divIdOnPage} inserted!!`,"readpeak"),t(m),i.unobserve(document.getElementById(e.divIdOnPage))):m("Readpeak container is not empty :O!","readpeak")}};return await $(`${e.divIdOnPage}`,globalThis.concept.failsafe_timeout,!0)?([...document.querySelectorAll(`#${e.divIdOnPage}`)].forEach((e=>{q({observerConfig:i,element:e,excutionFunction:o})})),"ok"):(m(`Could not insert into ${e.divIdOnPage}`,"error"),"could not find")}})),be=a((()=>{ee(),O(),x(),ce=({injectionFunction:e})=>{globalThis.conceptConfig?.strossles&&globalThis.conceptConfig?.strossles?.length>0&&globalThis.conceptConfig.strossles.forEach((t=>{pe({strossleConfig:t,injectionFunction:e})}))},pe=async({strossleConfig:e,injectionFunction:t})=>{m(`Lazyloading a strossle item in ${e.divIdOnPage}`,"strossle");let n={root:null,rootMargin:E(null),threshold:globalThis.conceptConfig.threshold||0},i=(e,n)=>{let i=e.target;if(e.isIntersecting&&globalThis.conceptConfig.strossles){let e=globalThis.conceptConfig.strossles.find((e=>e.divIdOnPage===i.id));e&&!e.alreadyLoaded&&(e.alreadyLoaded=!0,globalThis.strossle=globalThis.strossle||function(){(strossle.q=strossle.q||[]).push(arguments)},globalThis.strossle(e.strossleId,`#${e.divIdOnPage}`),m(` ${e.divIdOnPage} inserted!!`,"strossle"),t(m),n.unobserve(document.getElementById(e.divIdOnPage)))}};return await $(`${e.divIdOnPage}`,globalThis.concept.failsafe_timeout,!0)?([...document.querySelectorAll(`#${e.divIdOnPage}`)].forEach((e=>{q({observerConfig:n,element:e,excutionFunction:i})})),"ok"):(m(`Could not insert into ${e.divIdOnPage}`,"error"),"could not find")}})),he=a((()=>{je(),ge=(e,t)=>{Oe(e,`https://t.seedtag.com/t/${t}.js`),e("seedtag Injected")}})),ve={};function Te(e,t,n=""){var i=Ie();t&&(i.id=t),n&&i.setAttribute("referrerpolicy",n),i.type="text/javascript",i.src=e,we({scriptTag:i})}((t,n)=>{for(var i in n)e(t,i,{get:n[i],enumerable:!0})})(ve,{execute3rdparties:()=>Se,getScriptTag:()=>Ie,inject:()=>Ce,injectAdnami:()=>_e,injectBrowsi:()=>Pe,injectCustomAsyncScript:()=>Oe,injectPrebid:()=>Ae,injectReadpeak:()=>ke,injectStrossle:()=>Ee,insertAsFirstScript:()=>we,loadSync:()=>Te,loadThirdPartyLibsWithCookiesOneTimeLoad:()=>xe});var ye,Ie,we,Ce,Ae,ke,Ee,_e,Oe,Pe,Se,xe,je=a((()=>{O(),me(),fe(),be(),he(),ye=!0,Ie=()=>document.createElement("script"),we=({scriptTag:e})=>{let t=document.getElementsByTagName("script")[0];t&&t.parentNode?t.parentNode.insertBefore(e,t):document.head.appendChild(e)},Ce=(e,t,n=!1)=>{!function(t,i){let o=t.createElement(i);o.type="text/java"+i,o.src=e,we({scriptTag:o}),n&&(o.async=n)}(t,"script")},Ae=(e,t)=>{Ce(t,document,!0),e("prebid Injected")},ke=e=>{Te("https://app.readpeak.com/js/rp-if.js","Readpeak"),e("Readpeak Injected")},Ee=e=>Oe(e,"https://assets.strossle.com/strossle-widget-sdk/1/strossle-widget-sdk.js"),_e=(e,t)=>{window.adsmtag=window.adsmtag||{},adsmtag.cmd=adsmtag.cmd||[],Te(t,"Adnami"),e("Adnami Injected")},Oe=(e,t)=>{let n=Ie();n.id="Custom script",n.async=!0,n.type="text/javascript",n.src=t,we({scriptTag:n}),e("Custom script Injected")},Pe=(e,t)=>{var n;e("Browsi Injected"),(n=Ie()).type="text/javascript",n.async=!0,n.dataset.sitekey=t,n.dataset.pubkey="concept",n.id="browsi-tag",n.src="https://cdn.browsiprod.com/bootstrap/bootstrap.js",we({scriptTag:n})},Se=()=>{m("Loading 3rdparty DOM injectors"),de({injectionFunction:ke}),ce({injectionFunction:Ee})},xe=(e,t)=>{if(ye){Se();let{seedtagId:n,browsiSiteKey:i}=e;ye=!1,se()&&setTimeout((()=>{re({logger:m})}),500),i&&Pe(m,i),n&&ge(t,n)}else t("3rd partys already loaded")}}));je(),O(),ee(),O(),ee(),S();var $e={criteo:{transformer:e=>{let t={};return t.networkId=parseInt(e.networkId),e.zoneId&&(t.zoneId=parseInt(e.zoneId)),t}},grid:{transformer:e=>({uid:parseInt(e.uid)})},adform:{transformer:e=>({mid:parseInt(e.mid)})}};O();var Ue="LEGITIMATE_INTERREST",Re="UNKNOWN",Ne="FULL_CONSENT",Le="CONSENT_REJECT_AND_NO_LEGITIMATE",ze="NO_TCF_API",Be="NOT_SET";je(),te();var Me=!0,Fe=e=>("string"==typeof e&&(e=(e=e.replace(/\s/g,"")).includes(",")?e.split(","):e),e),qe=e=>{googletag.cmd.push((function(){m("GAM targeting being set");let t=[];for(var n in e)if(e.hasOwnProperty(n)){let i=e[n],o=Fe(i);o?googletag.pubads().setTargeting(n,o):t.push(n)}t.length>0&&m(`could set value for the keys = ${t.join(",")} (empty)`)}))},De=(e,t,n)=>{let i=Fe(n);i&&e&&e.setTargeting(t,i)},Ge=({path:e,size:t,elementId:n,anchor:i,targeting:o,setUniqueTargeting:a,container:r})=>{let d;e||s(`NO PATH FOR ADUNIT ${e}`),googletag.cmd.push((function(){i?(d=googletag.defineOutOfPageSlot(e,googletag.enums.OutOfPageFormat[i]),d&&d.addService(googletag.pubads())):(d=googletag.defineSlot(e,(e=>{let t=[];return e.forEach((e=>{t=[...t,...e[1]]})),t})(t),n).setCollapseEmptyDiv(!0).addService(googletag.pubads()),d.defineSizeMapping((e=>{let t=[[0,0],[]];return(JSON.stringify(e).includes(JSON.stringify(t[0]))?e:[...e,t]).map((e=>(e[1][0]&&e[1][0].length<=0&&(e[1]=[]),e)))})(t))),d?(o&&Object.keys(o).forEach((e=>{De(d,e,o[e])})),a&&De(d,"uniqueId","_"+Z()),We({slot:d,container:r})):s("No slot here")}))},We=({slot:e,container:t})=>{globalThis.concept.adUnits[t.id].slot=e},Ve=()=>{googletag.cmd.push((function(){googletag.pubads().setPrivacySettings({limitedAds:!0})}))};O(),je();var He,{injectCustomAsyncScript:Je}=(je(),He=ve,((t,a,s,r)=>{if(a&&"object"==typeof a||"function"==typeof a)for(let d of i(a))!o.call(t,d)&&d!==s&&e(t,d,{get:()=>a[d],enumerable:!(r=n(a,d))||r.enumerable});return t})(e({},"__esModule",{value:!0}),He));te();var Ke=(e,t)=>({asi:e,sid:t,hp:1}),Qe=()=>{let e={};[{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"}].forEach((t=>{globalThis.concept?.targeting[t.value]&&(e[t.keyName]=globalThis.concept?.targeting[t.value])}));let t=globalThis.concept.targeting.categories||"";return e.concept_category=t.split(","),globalThis.concept?.targeting?.contxt&&(e.contxt=globalThis.concept?.targeting?.contxt),globalThis.concept.pbjsGlobalKeys=e,e},Ye=!0;window.pbjs=window.pbjs||{},pbjs.que=pbjs.que||[];var Xe=e=>{if(e.usePrebid&&e.prebidRef)if(window.pbjs&&window.pbjs.libLoaded||!Ye)m("Prebid already loaded/started","pbjs");else{Ye=!1,globalThis.conceptConfig.activatePubx&&(e=>{Je(e,"https://cdn.pbxai.com/029f2f07-0154-4544-b38d-26667fe7fd22.js"),e("PubX Injected")})(m);let t=e.prebidRef,{prebidRef2:n,prebidABTest:i}=e;if(n&&i&&i?.testB?.url){let{testA:n,testB:i}=e.prebidABTest;if(n&&i){let{url:o,kvVal:a}=X([n,i]);globalThis.concept.targeting.prebidVersion=a,t=o||e.prebidRef}}Ae(m,t),et(),Ze(),tt()}else m("Prebid not needed","pbjs")},Ze=()=>{globalThis.conceptConfig?.useLiveWrappedAnalytics&&window.pbjs.que.push((function(){m("setting setPrebidAnalytics (liveWrapped)","pbjs"),pbjs.enableAnalytics({provider:"livewrapped",options:{publisherId:"35665883-67d9-42e1-b1e9-8f3e80c7f513",endpoint:"https://lwadm.com/analytics/10"}})}))},et=()=>{if(m("Adding Aliases","pbjs"),globalThis.atm?.prebid?.alias?.length>0)for(let e=0;e{window.pbjs.que.push((function(){e[1]&&e[0]&&pbjs.aliasBidder(e[1],e[0])}))}))}},tt=()=>{pbjs.que.push((function(){m("setting cncpt pbjs options (bidadjustments & general config)","pbjs"),(()=>{let e=globalThis?.conceptConfig?.bidderSettings;if(!e)return;let t={standard:{storageAllowed:!0}};e.forEach((e=>{let n=parseFloat(e.bidCpmAdjustment);1!==n&&(t[e.alias]?t[e.alias].bidCpmAdjustment=e=>e*n:t[e.alias]={bidCpmAdjustment:e=>e*n})})),pbjs.bidderSettings=t})();let e={site:{ext:{data:{...Qe()}}}};globalThis?.concept?.targeting?.lat&&(e.device={geo:{lat:globalThis?.concept?.targeting?.lat,long:globalThis?.concept?.targeting?.long,accuracy:parseInt(globalThis?.concept?.targeting?.accuracy)}}),pbjs.setConfig({ortb2:e}),pbjs.setConfig((()=>{let e={bidderTimeout:globalThis?.conceptConfig?.prebidTimeOut||1e3,currency:{adServerCurrency:"DKK"},targetingControls:{addTargetingKeys:["SOURCE"]},priceGranularity:{buckets:[{precision:2,min:0,max:20,increment:.2},{precision:2,min:20,max:100,increment:1},{precision:2,min:100,max:400,increment:10}]}};if(globalThis?.conceptConfig?.disablePrebidConsentManagement||(e.consentManagement={gdpr:{cmpApi:"iab",timeout:8e3,defaultGdprScope:!0},usp:{cmpApi:"iab",timeout:100}}),globalThis?.conceptConfig?.disableUserSync||(e.userSync={filterSettings:{iframe:{bidders:"*",filter:"include"}},auctionDelay:0,userIds:[{name:"pubCommonId",storage:{type:"cookie",name:"_pubcid",expires:365}},{name:"id5id",params:{partner:461},storage:{type:"html5",name:"id5id",expires:90,refreshInSeconds:28800}}]}),globalThis?.conceptConfig?.activateS2s){let t=globalThis.conceptConfig.prebidAliases||[],n=globalThis.conceptConfig.s2sBidders||[];e.s2sConfig={accountId:globalThis.conceptConfig.s2sAccountName||"cncpt",adapter:"prebidServer",enabled:!0,bidders:[...n],cookieSet:!0,endpoint:"https://s2s.cncpt-central.com/openrtb2/auction",syncEndpoint:"https://s2s.cncpt-central.com/cookie_sync",timeout:globalThis.conceptConfig.s2sTimeout||500,extPrebid:{aliases:Object.fromEntries(t.filter((e=>n.includes(e[0])))||[]),targeting:{includebidderkeys:!0}}}}if(globalThis?.conceptConfig?.sid){let t=[Ke("concept.dk",globalThis.conceptConfig.sid)];(globalThis.conceptConfig.supplyPartners||[]).forEach((e=>{t.push(Ke(e.asi,e.sid))})),e.schain={validation:"strict",config:{ver:"1.0",complete:1,nodes:t}}}return e})())}))};function nt(e){let t=!1;if(0===e.length)return void m("No units ot refresh");let{prebidUnits:n,onlyGamUnits:i}=(e=>{let t=[],n=[],i=e.map((e=>e.path));return m(`[getPrebidSettings] looking up bids for: ${i}`,"conceptads"),e.forEach((e=>{let i=e.path;Object.keys(globalThis.concept.adUnits).forEach((e=>{let o=globalThis.concept.adUnits[e];o.path===i&&o.prebidSettings?.bids&&o.prebidSettings?.bids?.length>0?(o.prebidSettings.code=i,t.push(o.prebidSettings)):o.path===i&&n.push(o)}))})),{prebidUnits:t,onlyGamUnits:n}})(e);i.forEach((e=>{let t=e.path;w(`${t} - gpt`),googletag.cmd.push((function(){googletag.pubads().refresh([e.slot],{changeCorrelator:!0!==globalThis.conceptConfig.dontChangeCorrelator})}))}));let o=n.map((e=>e.code)),a=e.filter((e=>o.includes(e.path)));function s(e){t||(t=!0,e&&Object.keys(e).forEach((e=>{pbjs.que.push((function(){let t=pbjs.getHighestCpmBids(e);m(`GAM has to beat ${t[0].cpm.toFixed(2)} by ${t[0].bidder}`,"pbjs")}))})),googletag.cmd.push((function(){if(0===a.length)return void m("Nothing to call GAM with");let e=a.map((e=>e.slot));pbjs.libLoaded&&e.length>0?pbjs.que.push((function(){pbjs.setTargetingForGPTAsync(),m("[initAdserver] send prebid result to GAM","pbjs"),googletag.pubads().refresh(e,{changeCorrelator:!0!==globalThis.conceptConfig.dontChangeCorrelator})})):googletag.pubads().refresh(e,{changeCorrelator:!0!==globalThis.conceptConfig.dontChangeCorrelator})})))}if(n&&n.length>0&&(w(`${o.join(", ")} - prebid`),pbjs.que.push((function(){let e=o.join(", ");m(`Starting auction for = ${e}`,"pbjs"),pbjs.removeAdUnit(),pbjs.addAdUnits(n),T(`prebid auction started ${e}`),pbjs.requestBids({adUnitCodes:o,bidsBackHandler:s})}))),n&&n.length>0){let e=(globalThis?.conceptConfig?.prebidTimeOut||3e3)+500;setTimeout((function(){t||(m(`[PREBID] Timouter caught this one ${o}`,"pbjs"),s({}))}),e)}}var it="ADSM_MACRO_UNLOAD",ot="SLOT_LOADED",at="SLOT_REQUESTED",st="ADSM_RMB_SKIN_INIT",rt="ADSM_RMB_SIDESKIN_INIT",dt="ADSM_RMB_HTML_TOPSCROLL_DESKTOP_INIT",lt="GET_CONCEPTADS",ct="GET_VASTTAG",pt="GET_PREBIDVASTTAG";te();var gt=(e,t,n)=>{let i=Ct(e,G()),o=i&&i[1][0];if(!Array.isArray(o))return;let[a,s]=o;m(`Showing overlay on ${t}`),((e,t,n)=>{if(e){e.classList.add(`outer-box-${e.id}`);let i=document.createElement("div");i.className="inner-second",i.innerHTML=`

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

`;let o=`.outer-box-${e.id}`,a=`\n ${o} {padding: 0; position: relative; width: ${t}px; height: ${n}px;} \n ${o} .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;}\n ${o} .inner-second p {color: #fff;font-family: 'arial';text-align: center;}\n ${o} .inner-second {opacity: .9;transition: opacity .5s;}`,s=document.createElement("style");s.innerText=a,document.head.appendChild(s),e.appendChild(i)}})(n,a,s)},ut=async(e,t)=>{let n=globalThis.concept.adUnits[e];if(!n)return!1;let i=n;if((e=>!(e.updateIfEmpty&&0!==e.updateIfEmpty.length||e.dependencies&&0!==e.dependencies.length||e.divExcluser))(n))return i;if(n.divExcluser&&n.excluserTimeout)return m(`Gonna wait for ${n.divExcluser}`),!await(async(e,t)=>new Promise((function(n){m(`Looking for ${e} `,"conceptads"),document.querySelector(e)&&n(!0);let i=setTimeout((()=>{let t=document.querySelector(e);clearTimeout(i),n(t)}),t)})))(n.divExcluser,n.excluserTimeout)&&i;let o=["Initial","Async display"].includes(t);return!(o||!o&&mt())&&i},mt=()=>{let e=globalThis.concept.eventLog.filter((e=>"Event recieved"===e.list)).map((e=>e.msg));return Pt({events:e,strings:[st,it,rt]})},ft=({definition:e})=>{let{path:t,size:n,updateIfEmpty:i,refresh:o,dependencies:a,lazyload:r,targeting:d,divIdOnPage:l,excluserTimeout:c,preRenderCookieless:p,divExcluser:g,cookieLessPath:u,setHeigthOfParent:f,anchor:b,prebidBid:h,prebidSizes:v,rootMargin:T}=e;if(typeof t>"u")throw Error("Please setup the definition path for the adunit");if(typeof n>"u")throw Error("Please setup the definition size for the adunit");if(typeof o>"u")throw Error("Please setup the refreh option");r&&a&&a.length>0&&s("You should not have lazyload and dependencies - it can/will cause two refresh, think about it"),r&&i&&i.length>0&&s("You should not have lazyload and wait for another ad unit - it can/will cause two refresh, think about it");let y=G(),I=Ct(n,y);Array.isArray(I)&&0===I[1].length&&s("Unit doesnt have appropriate sizes for this viewport -- This will not be defined later"),v&&(I?(v=v.filter((e=>I[1].some((t=>bt(t,e))))),m("prebidSizes changed by GAM viewport rule","pbjs")):v=[]);let w={path:t,sizes:n,refresh:o,dependencies:a,updateIfEmpty:i,divIdOnPage:l,lazyload:r,...u&&{cookieLessPath:u},...p&&{preRenderCookieless:p},...d&&{targeting:d},...d&&{targeting:d},...b&&{anchor:b},...h&&{prebidBid:h},...v&&{prebidSizes:v},...f&&{setHeigthOfParent:f},...T&&{rootMargin:T},...g&&{divExcluser:g,excluserTimeout:c||500}},C=w.prebidBid?w.prebidBid.filter((e=>!e.cookieless)).map((e=>(e=>{let t=(globalThis?.conceptConfig?.prebidAliases||[]).find((t=>t[0]===e.bidder)),n=t&&t[1];if($e[e.bidder]||n&&$e[t[1]]){let n=e.bidder;t&&(n=t[1]);let i={bidder:e.bidder,params:$e[n].transformer(e.params)};return e.disabled&&(i.disabled=e.disabled),i}return e})(e))):[],A=C?(({bids:e,sizes:t,path:n})=>0===e.length?null:{code:n,bids:e.filter((e=>!e.disabled)),mediaTypes:{banner:{sizes:t}}})({path:t,bids:C,sizes:w.prebidSizes}):null;return A&&(w.prebidSettings=A),w},bt=(e,t)=>e.length===t.length&&e.every(((e,n)=>e===t[n])),ht=e=>{e.targeting.refresh=Number.isInteger(e.targeting.refresh)&&e.targeting.refresh||1;let t=e.targeting.refresh;De(e.slot,"refresh",t),m(`setAdunitRefreshCount -> Setting refresh = ${t} for ${e.divIdOnPage}`)},vt=e=>{e.refreshTimer&&clearTimeout(e.refreshTimer)},Tt=({name:e,adUnit:t,refreshFunction:n})=>{vt(t),t.targeting=t.targeting||{};m(`refreshOnNextInView -> refresh (${t.divIdOnPage}) in ${t.refresh/1e3}s or next inview after that`),t.refreshTimer=setTimeout((function(){let i=n;m(`Timer for ${t.divIdOnPage} has past`),t.loadedFirstTime||!t.lazyload?function({document:e,adUnit:t,refreshFunction:n,name:i}){let o="scheduleForLater",a=t.divIdOnPage,s={root:null,rootMargin:"0px",threshold:globalThis.conceptConfig.refreshInview||.25},r=e.getElementById(a);z({el:r})?(ht(t),m(`refreshOnNextInView -> ${a} refresh directly nr ${t.targeting.refresh}`),n({names:[i],caller:o})):q({observerConfig:s,element:e.getElementById(a),excutionFunction:(s,r)=>{s.isIntersecting&&(ht(t),m(`refreshOnNextInView -> ${a} refresh for scroll nr ${t.targeting.refresh}`),n({names:[i],caller:o}),r.unobserve(e.getElementById(a)))}})}({document:document,adUnit:t,refreshFunction:i,name:e}):(m(`refreshOnNextInView -> unit (${t.divIdOnPage}) not loaded first time`),Tt({name:e,adUnit:t,refreshFunction:n}))}),t.refresh)},yt=()=>{globalThis.conceptConfig.skinCallback&&globalThis.conceptConfig.skinCallback()},It=async e=>{let{unitsCodes:t,slotsToUse:n}=(e=>{let t=G(),n=e.filter((e=>!k({adunitPath:e.path}))).filter((e=>{let n=Ct(e.sizes,t);return At(n)}));return{unitsCodes:n.map((e=>e.path||e.getAdUnitPath())),slotsToUse:n}})(e);m(`refreshAdUnit -> ${t} `,"conceptads");let i=globalThis.conceptConfig.usePrebid;!1===globalThis.concept.consentedToCookies&&(m("We are not gonna use prebid, since the user said no to cookies"),i=!1),i?nt(n):wt(t,n)},wt=(e,t)=>{googletag.cmd.push((function(){w(`${e} , ' gpt`);let n=t.map((e=>e.getResponseInformation?e:e.slot));n.length>0?googletag.pubads().refresh(n,{changeCorrelator:!0!==globalThis.conceptConfig.dontChangeCorrelator}):s("Will not refresh 0")}))};var Ct=(e,t)=>{if(!e)return;let n=[[0,0],[]];return e.forEach((e=>{let i=e[0][0];t>=i&&i>=n[0][0]&&(n=e)})),n},At=e=>e[1].length>0;function kt(e){return 2===Et(e)?e:e.reduce(((e,t)=>Array.isArray(t)?e.concat(kt(t)):e.concat(t)),[]).filter(Array.isArray)}function Et(e){return Array.isArray(e)?1+Math.max(...e.map((e=>Et(e)))):0}var _t=e=>{let t=JSON.stringify(e);return!!(t.includes(JSON.stringify([320,160]))||t.includes(JSON.stringify([320,320]))||t.includes(JSON.stringify([320,50])))},Ot=(e,t)=>e.filter((e=>{if((e=>!!e.ignoreDeviceCheck||!(!e||!e.path)&&["outstream","booster","vidoomy"].some((t=>e.path.toLowerCase().includes(t))))(e))return!0;let n=kt(e.size).map(_t).filter((e=>e));return"mobile"===t?n.length>0:0===n.length})),Pt=({events:e,strings:t})=>{let n=t.map((e=>e.toLowerCase())),i=e.map((e=>e.toLowerCase()));return i.filter((e=>(e=>new RegExp(n.join("|")).test(e.toLowerCase()))(e))).length>0},St=()=>{if(!globalThis.conceptConfig.ABTesters)return;let e=globalThis.conceptConfig.ABTesters,t=[];e.filter((e=>!e.alreadyCalculated)).forEach((e=>{t.push((e=>X([e.testA,e.testB]).adunitId===e.testA.adunitId?e.testB:e.testA)(e).adunitId),e.alreadyCalculated=!0})),jt(t)},xt=e=>globalThis.conceptConfig.ABTesters.find((t=>{let{testA:n,testB:i}=t;return n.adunitId===e||i.adunitId===e})),jt=e=>{if(e.length>0){let t=t=>{let n=!e.includes(t.id);!n&&globalThis?.concept?.discardedForTest&&globalThis.concept.discardedForTest.push(t);let i=xt(t.id);return n&&i&&(e=>{if(!e)return;let t="";if(t=xt(e).testA.adunitId===e?"testA":"testB",m(`Using the test value = ${t}`,"test"),!globalThis?.conceptConfig?.adUnits)return void m("no adunits ready to be a/b tested");let n=globalThis?.conceptConfig?.adUnits.find((t=>t.id===e));n&&(n.targeting?n.targeting.test=t:n.targeting={test:t})})(t.id),n},n=globalThis?.conceptConfig?.strossles;n&&(globalThis.conceptConfig.strossles=n.filter(t));let i=globalThis?.conceptConfig?.readpeaks;i&&(globalThis.conceptConfig.readpeaks=i.filter(t));let o=globalThis?.conceptConfig?.adUnits;o&&Array.isArray(o)&&(globalThis.conceptConfig.adUnits=o.filter(t));let a=`${e.join(",")} Has been removed in connection with A/B Test`;m(a,"test")}};function $t(e,t){e&&e.postMessage&&e.postMessage(t,"*")}O();var Ut=(e,t)=>{if(globalThis.conceptConfig&&!globalThis.conceptConfig.isPassback){m(`${e} emitted`,"emitter");let n=new CustomEvent(e,t);window.parent.document.dispatchEvent(n)}},Rt=({name:e,divId:t})=>{Ut("unfilledAd",{detail:{adunit:e,unfilled:!0,divId:t}})},Nt=({name:e,divId:t})=>{Ut("filledAd",{detail:{adunit:e,filled:!0,divId:t}})},Lt=()=>Ut("withCookies",{detail:{}});window.adn=window.adn||{},t.calls=t.calls||[];var zt=e=>{Rt({name:e.targetId,divId:e.targetId}),C(e.targetId)},Bt=e=>{globalThis.concept.adsloaded=globalThis.concept.adsloaded+1,I(e.targetId),Nt({name:e.targetId,divId:e.targetId})},Mt=e=>I(e.widgetId),Ft=({adunitDivId:e,container:t,prerender:n}={adunitDivId:null,container:"iframe",prerender:!1})=>{n&&m(`Pre rendereing ${e}`,"adnuntius");let i=V()?"mobile":"desktop";globalThis.concept.device=i;let o=globalThis.conceptConfig.adUnits.filter((e=>e.cookieLessPath&&!e.cookieLessPath.includes("/")));o=Ot(o,i),e&&(o=o.filter((t=>t.divIdOnPage===e)));let a=(e=>{for(var t in e)(null===e[t]||void 0===e[t]||""===e[t])&&delete e[t];return e})(globalThis.concept.targeting),s=o.filter((e=>((e,t="size")=>{let n=G(),i=Ct(e[t],n);return At(i)})(e,"size"))).map((e=>{let i=e.divIdOnPage;return n&&(i=(e=>{let t=document.getElementById(e.divIdOnPage);if(!t)return"";let n=document.createElement("div"),i=`${e.divIdOnPage}-prerender`;n.setAttribute("id",i);let o=document.createElement("div"),a=document.createElement("div");return a.setAttribute("id",`${e.divIdOnPage}-grandparent`),o.setAttribute("id",`${e.divIdOnPage}-realrender`),t.appendChild(n),a.appendChild(o),t.appendChild(a),i})(e),e.divIdOnPage=`${e.divIdOnPage}-realrender`),((e,t,n,i="iframe")=>({targetId:t,auId:e.cookieLessPath,kv:n,useCookies:!1,isolateFrame:!0,auW:e.cookielessWidth?`${e.cookielessWidth}`:"unset",auH:e.cookielessHeight?`${e.cookielessHeight}px`:0,onViewable:Mt,container:i,onNoMatchedAds:zt,onImpressionResponse:Bt}))(e,i,a,t)}));return(e=>{e.forEach((e=>{if(m(`Queueing ${e.targetId}`,"adnuntius"),!globalThis.conceptConfig.disableAutoCenterCLAds){let t=document.getElementById(e.targetId);t&&(t.style.margin="0px auto")}w(`${e.targetId} - adnuntius`),qt({slot:e})}))})(s),s.map((e=>e.targetId))},qt=async({slot:e})=>{m(`Waiting for ${e.targetId} to be in the DOM`,"adnuntius"),null!==await $(`#${e.targetId}`,globalThis.concept.failsafe_timeout)&&Dt(e)},Dt=e=>{m(`Requesting ${e.targetId}`,"adnuntius"),t.calls.push((function(){Gt(e)}))},Gt=e=>{t.useLocalStorage(!1),t.request({requestParams:{proximity:50,load:"lazy"},adUnits:[e]})};O(),ee();var Wt={GAM:"GAM",ADNUNTIUS:"Adnuntius"};ee(),O(),ee(),te();var Vt=({selectedVideoSettings:e,output:t,vpos:n="preroll"})=>{let i=(e=>{let t={};return Object.entries(e).forEach((([e,n])=>{Array.isArray(n)?t[e]=n.join(","):t[e]=n})),t})({isProduction:"true",...F(globalThis.conceptConfig)}),o={adUnit:e,params:{iu:e.code,cust_params:i,vpos:n,...e.targeting,description_url:window.location.origin,unviewed_position_start:1,wta:1,vad_format:"linear",output:t}};return globalThis.concept?.PPID&&(o.params.ppid=globalThis.concept?.PPID),o},Ht=async(e,t,n)=>new Promise((async(i,o)=>{try{if(!e)return m("ERROR: Please provide ID","video"),o(new Error("No Id for player"));if(!globalThis.conceptConfig.videoAdunits)return m("ERROR: Please Setup op some video adunits","video"),o(new Error("No video units"));let a=globalThis.conceptConfig.videoAdunits.find((t=>t.playerId===e));if(a?.VASTAlternative&&a?.alternativePercent&&Math.random()new Promise(((i,o)=>{try{m(`Creating url for ${e.code}`,"video"),Xe(globalThis.conceptConfig),window.pbjs.que.push((function(){pbjs.aliasBidder("adform","MPM"),pbjs.aliasBidder("appnexus","msupply"),m(`${e.code} requested`,"video"),pbjs.addAdUnits(e),pbjs.setConfig({useBidCache:!0,cache:{url:"https://prebid.adnxs.com/pbc/v1/cache"}}),m("setting cncpt pbjs","video"),pbjs.requestBids({adUnitCodes:[e.code],bidsBackHandler:function(o){m(`${Object.keys(o).length} recieved from prebid demand`,"video"),Object.keys(o).forEach((e=>{o[e].bids.forEach((t=>{let n=t.bidder||t.bidderCode||t.adapterCode;m(`${n} gave a bid of ${t.cpm} (${t.currency}) for ${e}`,"video")}))}));let a=Vt({selectedVideoSettings:e,output:t,vpos:n});pbjs?.adServers?.dfp?.buildVideoUrl||s("Your prebid file is not correctly set up. At least your missing some dfp build video url functionality");let r=pbjs.adServers.dfp.buildVideoUrl(a);Jt(r),i(r)}})}))}catch(e){o(e)}})))({selectedVideoSettings:a,output:t,vpos:n});i(r)}catch{m(`Something went wrong ${e}`,"video"),o(new Error("error"))}}));function Jt(e){globalThis.concept.videosRequested=globalThis.concept.videosRequested+1,globalThis.concept.videoUrls.push(e)}O();var Kt=e=>{try{if(!e)throw m("ERROR: Please provide ID","video"),new Error("No Id for player");let t=globalThis.conceptConfig.videoAdunits;if(!t)throw m("ERROR: Please Setup op some video adunits","video"),new Error("No video units");m(`Creating vast tag for ${e}`,"video");let n=t.find((t=>t.playerId===e));if(!n)throw m(`No player found ${e}`,"video"),new Error("No config for you player");let i=(e=>{try{let t="https://pubads.g.doubleclick.net/gampad/ads",n=`?iu=${e.code}`,i=`&sz=${e?.mediaTypes?.video?.playerSize.join("x")}`,o="&output=vast",a="&gdfp_req=1",s=`&description_url=${encodeURIComponent(document?.location?.origin||"unknown")}`,r={};globalThis.concept?.targeting&&(r=globalThis.concept.targeting),e.targeting&&(r={...r,...e.targeting});let d=`${t}${n}${i}${o}${a}&unviewed_position_start=1&env=vp&impl=s${s}&correlator=&cust_params=${encodeURIComponent(Object.keys(r).map((e=>Array.isArray(r[e])?`${e}=${r[e].join(",")}`:`${e}=${r[e]}`)).join("&"))}`;return globalThis.concept?.PPID?(m("SETTING",globalThis.concept?.PPID),d=`${d}&ppid=${globalThis.concept?.PPID}`):m("NOOO"),d}catch{throw new Error("Could not build vasttag")}})(n);return globalThis.concept.vastTags.push(i),i}catch{return m(`Something went wrong ${e}`,"video"),""}},Qt={};function Yt(e,t){(Qt[e]=Qt[e]||[]).push(t)}window.addEventListener("message",(function(e){if(e.data){var t=e.data.type,n=Qt[t];if(n)for(var i=0;i{let i=e.find((e=>e.msg.startsWith(t)));return i?parseFloat(i.secondCount+n):0},an=(e,t,n)=>{let i=e.find((e=>e.msg.endsWith(t)));return i?parseFloat(i.secondCount+n):0},sn=(e,t)=>{let n=e[t-1]?.measureTime;return n<=0&&t>1?sn(e,t-1):n},rn=e=>{let t={},n=parseFloat("0.0"),i=parseFloat(""+e.scriptLoadTime.startTime/1e3),o=parseFloat(`${i+e.scriptLoadTime.duration/1e3}`),a=e.scriptLoadTime.responseEnd/1e3,s=((e,t,n)=>{let i=e.find((e=>e.msg===t));return i?parseFloat(i.secondCount+n):0})(e.conceptEvents,"Consent recieved",a),r=[{eventName:"Page_start",measureTime:n},{eventName:"ConceptAds_requested",measureTime:i},{eventName:"ConceptAds_downloaded",measureTime:o},{eventName:"Consent_recieved",measureTime:s},{eventName:"injectad_recieved",measureTime:on(e.conceptEvents,"injectNewAds execution requested",a)},{eventName:"First_prebid_auction_Started",measureTime:on(e.conceptEvents,"prebid auction started",a)},{eventName:"First_GAM_request_initiated",measureTime:an(e.conceptEvents," Requested",a)},{eventName:"First_response_from_GAM",measureTime:on(e.conceptEvents,"slotResponseReceived",a)},{eventName:"First_ad_loaded",measureTime:an(e.conceptEvents," creative iframe loaded",a)}],d=[];r.forEach(((e,t)=>{null!==e.measureTime&&(t>0&&e.measureTime{if(0===n)t[e.eventName]=e.measureTime;else{let i=sn(d,n),o=0===e.measureTime?0:e.measureTime-i;t[e.eventName]=o}}));let l=new URL("https://d22i50b931b1j0.cloudfront.net/timing_track.gif");if(nn){let{downlink:e}=nn;e&&l.searchParams.set("downlink",e)}return Object.keys(t).forEach((e=>{l.searchParams.set(e,t[e])})),l.href},dn=!1,ln=e=>{let t=e&&e.placement||null;t&&(m(`${t} Requested`,"gpt"),T(`${t} Requested`))},cn=e=>{globalThis.concept.adsloaded=globalThis.concept.adsloaded+1;let t=e&&e.placement||null;if(!t)return;let n=`${t} creative iframe loaded`;m(n,"gpt"),T(n),globalThis.conceptConfig.activateTimingTracker&&!dn&&(dn=!0,(()=>{let e=globalThis.performance.getEntriesByType("resource");e||m("Could not read performnce timing");let t=e.find((e=>function(e){let t=e.includes("https://d2uoe7nnxrtbfx.cloudfront.net/containerHistory"),n=e.includes("/conceptads"),i=e.includes("https://cncpt-central.com/containerHistory"),o=e.includes("https://cncptx.com/pubscript"),a=["wp-content/cache","https://tags.adnuntius.com"].some((t=>e.includes(t)))&&["prod.js","dev.js"].some((t=>e.includes(t)));return!!(n||i||o||t||a)&&e}(e.name)));if(!t)return;let n=globalThis.concept.eventLog.filter((e=>"Timing point"===e.list)),i=rn({scriptLoadTime:t,conceptEvents:n});ie(i,"timing-pixel"),m("Timing pixel loaded")})());let i=globalThis.concept.adUnits[t];if(i&&i.setHeigthOfParent){let t=`[id*='${e.adunitId}'] iframe`,n=document.querySelectorAll(t),i=(e=>{let t=0;return e.forEach(((e,n)=>{e.id.includes("google_ads_iframe_")&&(t=n)})),t})(n),o=n[i],a=(o.height?`${o.height}px`:null)||window.getComputedStyle(o,null).height,s=document.querySelector(`[id*='${e.adunitId}']`);if("1px"===a)return void m("We will NOT set heigth to 1, as its prebid","conceptads");if(o&&o.parentElement&&o.parentElement.parentElement&&a){let t=`Setting height of divid ${e.adunitId} to: ${a}`;m(t,"conceptads");let n=o.parentElement.parentElement;n.style.height=a,n.style.minHeight=a,s.style.height=a,s.style.minHeight=a}else m("Not gonna set height (no iframe or height)","conceptads")}y(`${ot} - ${t}`),I(t),i&&Nt({name:t,divId:i.divIdOnPage}),pn(t)},pn=e=>{for(let[t,n]of globalThis.concept.updateWhenResolved.entries())n===e&&(m(`${n} has just been loaded - if no skin we should refresh ${t}`),globalThis.concept.updateWhenResolved.delete(t),m(`${e}: now has ${globalThis.concept.updateWhenResolved.size} dependencies we should resolve`),setTimeout((function(){let e=mt(),n=globalThis.concept.adUnits[t];if(n){let i=k({adunitPath:n.path});!e&&!i&&(m(`No skin found, refreshing ${t}`),It([n]))}}),10))},gn=e=>e.frameElement&&e.frameElement.id,un=(e,t)=>{let n=gn(t);y(`${dt} - ${n}`)},mn=(e,t)=>{try{let e=gn(t);y(`${it} - ${e}`)}catch{y(`${it} - Iframe error`)}yt(),e&&e.placement&&m(` Macro: unload ${e.placement}`,"gpt")},fn=()=>{yt(),y(st)},bn=(e,t)=>{(e=>{let t={cncptads:JSON.stringify(globalThis.concept)};$t(e,{type:"concept_ads",payload:{cncptads:JSON.stringify(globalThis.concept)}}),Ut("concept_ads",{detail:t})})(t.window),y(lt)},hn=(e,t)=>{let{playerId:n}=e;((e,t)=>{$t(e,{type:"vast_tag",payload:{VASTTag:globalThis.concept.buildVastTag(t)}})})(t.window,n),y(ct)},vn=(e,t)=>{let{playerId:n}=e;(async(e,t)=>{$t(e,{type:"prebid_vast_tag",payload:{VASTTag:await globalThis.concept.requestPrebidUrl(t)}})})(t.window,n),y(ct)},Tn=()=>{yt(),y(rt)};O(),te(),ue();var yn=navigator.connection||navigator.mozConnection||navigator.webkitConnection,In=e=>{if(globalThis.conceptConfig.enableErrorReporting){let t=(e=>{let t={},n=new URL("https://d1jthfopj0ipi6.cloudfront.net/error_track.gif");if(yn){let{downlink:e}=yn;e&&n.searchParams.set("downlink",e)}return globalThis.conceptConfig.reportTrackingAs&&n.searchParams.set("trackingas",globalThis.conceptConfig.reportTrackingAs),n.searchParams.set("error",e),n.searchParams.set("uniqueId",Z()),Object.keys(t).forEach((e=>{n.searchParams.set(e,t[e])})),n.href})(e);ie(t,"error-pixel"),m("Error pixel loaded")}},wn=e=>{let{failsafe_timeout:t}=e;return t||0===t?t:1e3},Cn=!1,An=!1,kn=()=>globalThis.concept.targeting=F(globalThis.conceptConfig),En=e=>{let t=globalThis.concept.adUnits[e];t&&It([t])},_n=(e,t)=>{let n=new Map;return e.filter((e=>e[t])).forEach((e=>{let i=e[t][0];i&&n.set(e.divIdOnPage,i)})),n},On=({consented:e,nodeToWatch:t=document})=>{let n=(t,i)=>{((e,t)=>t.includes(e.id)&&e.getAttribute&&!e.getAttribute("dublicatenoted"))(t,i)&&(({consented:e,node:t})=>{t.setAttribute("dublicatenoted","true"),m(`Found dublicate of ${t.id}`),Pn({consented:e,node:t})})({consented:e,node:t}),t.childNodes&&[...t.childNodes].forEach((e=>n(e,i)))};if(!0!==An){An=!0;let i=globalThis.conceptConfig.adUnits.map((e=>e.divIdOnPage));if(globalThis.conceptConfig.avoidMutationObserver)m("Interval observer started for dublications"),setInterval((()=>{i.forEach((t=>{let n=document.getElementById(t);if(n&&!n.getAttribute("hasbeenfound")){n.setAttribute("hasbeenfound","true");let t=globalThis.conceptConfig.adUnits.find((e=>e.divIdOnPage===(n?n.getAttribute("id"):"")));$n({consented:e,unit:t,display:!0})}}))}),100);else{let e=new MutationObserver((function(e){for(let t of e)for(let e of t.addedNodes)n(e,i)}));m("Mutation observer started for dublications"),e.observe(t,{childList:!0,subtree:!0})}}},Pn=({consented:e,node:t,display:n=!0})=>{if(!t)return null;let i=(e=>{let t=globalThis.concept.unitTemplates.get(e);if(t)return t;let n=globalThis.conceptConfig.adUnits.find((t=>t.divIdOnPage===e));return globalThis.concept.unitTemplates.set(e,n),n})(t.id);if(!i||i.disabled)return null;let o=(e=>JSON.parse(JSON.stringify(e)))(i),a=`${i.divIdOnPage}-${Z()}`;return m(`Renaming ${t.id} to ${a}`),((e,t)=>{let n=globalThis.concept.updateWhenResolved;if(n){globalThis.conceptConfig?.adUnits.map((t=>{t.dependencies?.includes(e)&&(t.dependencies=t.dependencies.filter((t=>t!==e)))}));for(let[i,o]of n.entries())o===e&&(n.delete(`${t}`),n.set(i,t)),i===e&&(n.delete(`${e}`),n.set(t,`${o}`))}})(i.divIdOnPage,a),t.id=a,o.divIdOnPage=t.id,o.id=t.id,globalThis.conceptConfig.adUnits.push(o),$n({consented:e,unit:o,display:n}),a},Sn=e=>{let t=Object.keys(globalThis.concept.adUnits);if(t.length>0)e&&(t=[e]),Rn({names:t,caller:"Initial"}),globalThis.concept.firstBatchRefresh=!0;else{let t=setTimeout((function(){clearTimeout(t),Sn(e)}),10)}},xn=e=>{globalThis.concept[e.cmd]?globalThis.concept[e.cmd](e.args):m("could not find function $command.cmd}","error")},jn=e=>{let t=()=>{!function(e){qe(globalThis.concept.targeting),e(),Cn||(m("SetupPart resize listener"),Cn=!0,globalThis.concept.events.addEvent(window,"resize",(function(){m("Resize event triggered. Nothing done")})))}(e)};W()?t():function(e){let t=!1;if(L)t=!0,e();else{let n=function(){"complete"===document.readyState&&i()},i=function(){t||(L=!0,t=!0,document.removeEventListener("DOMContentLoaded",i,!1),window.removeEventListener("load",i,!1),e())};document.addEventListener?(document.addEventListener("DOMContentLoaded",i,!1),window.addEventListener("load",i,!1)):(document.attachEvent("onreadystatechange",n),window.attachEvent("onload",i("onload")))}}((function(){t()}))},$n=({consented:e,unit:t,display:n})=>{!e&&globalThis.conceptConfig.checkForConsent&&(t.path=globalThis.conceptConfig.cookielessAdserver===Wt.GAM?t.path:t.cookieLessPath,t.path||s(`No path for ${t.id}`)),globalThis.concept.define(t.id,t),n&&globalThis.concept.display({element:t.divIdOnPage,name:t.id})};var Un=(e,t)=>{let n=globalThis.concept.definitions.hasOwnProperty(e),i=t.disabled;if(n||i)return m(`Will not define ${e}`),null;globalThis.concept.definitions[e]=t;let o=globalThis.concept.definitions[e];if(!("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype||(m("Can not use the IntersectionObserver"),s("Can not use the IntersectionObserver"),0)))return m(`Removing lazyload from ${e}`),void(globalThis.concept.definitions[e].lazyload=!1);o.lazyload&&setTimeout((function(){j({observingList:globalThis.concept.observing,elementId:o.divIdOnPage,refreshFunc:It,refreshWhenReadyFunction:Rn,scheduleLaterFunc:Tt})}),0)},Rn=async({names:e,caller:t})=>{if(!Array.isArray(e))throw Error("Please call this method with an array of ids");m(`REFRESH --\x3e (CALLER ${t}): refresh ${e}`,"function");let n=[];e.forEach((e=>{let i=globalThis.concept.adUnits[e];i?n.push((async({name:e,caller:t,adUnit:n})=>{let i=await ut(e,t);if(n.refresh&&(m(`REFRESH --\x3e scheldule for later: ${e}`),Tt({name:e,adUnit:n,refreshFunction:Rn})),!i)return m(`REFRESH --\x3e ${e} is not ready to be rendered`),Promise.resolve();("scheduleForLater"===t||!n.lazyload)&&It([i])})({name:e,caller:t,adUnit:i})):s(`No configured adunit found for ${e}`)})),n.length>0&&await Promise.all(n)},Nn=async({element:e,name:t})=>{try{let n=globalThis.concept.definitions[t];if(!n)return void s(`No definition for ${t}, sorry`);let{path:i,size:o,targeting:a,anchor:r,setUniqueTargeting:d}=n,l={};if(r?l={id:t}:(l=await $(`#${e}`,globalThis.concept.failsafe_timeout),l=(({container:e,consented:t,configuration:n})=>(n.allowAdUnitDublicates&&(e.forEach(((e,n)=>{0!==n&&Pn({consented:t,node:e})})),e=e[0]),e))({container:l,consented:!!globalThis.concept.consentedToCookies,configuration:globalThis.conceptConfig})),l){if("true"===p("showOverlay"))return void gt(o,e,l);if(globalThis.concept.adUnits[l.id])return void m(`ad unit already loaded: ${l.id}`);let t={definition:n,container:l};globalThis.concept.adUnits[l.id]=ft({definition:t.definition}),(e=>{let t=G(),n=Ct(e,t);return!(Array.isArray(n)&&0===n[1].length)})(o)?Ge({path:i,size:o,elementId:l.id,anchor:r,targeting:a,setUniqueTargeting:d,container:l}):s("Not correct adunits sizes for viewport"),globalThis.concept.firstBatchRefresh&&Rn({names:[l.id],caller:"Async display"})}else(e=>{for(let t of globalThis.concept.updateWhenResolved.keys())if(t===e){let e=globalThis.concept.adUnits[t];e?(m(`Gonna refresh: ${t} beacuse dependant is resolved`),It([e])):m(`Could not refresh: ${t} As it was not found in internal config`)}})(e),s(`${e} could not be populated (div not found)`),globalThis.concept.idsNotFound+=1,globalThis.concept.idsNotFound>=Object.keys(globalThis.concept.definitions).length&&In("No adunits found")}catch(e){console.error(e),s("Could not run the display function")}},Ln=(e={adunitDivId:"",consented:!0})=>{let{consented:t,adunitDivId:n}=e;m(`User has consented (directly or indirectly by the page not having a CMP) = ${t} ${n||null}`);let i=globalThis.conceptConfig;t&&globalThis.concept.consentStatus!==Ue&&(Xe(i),xe(i,m)),f(),jn((async function(){m("In start function"),i.haltInit&&(m(`Halting all with ${i.haltInit} and updating targeting`),await(e=>new Promise((t=>setTimeout(t,e))))(i.haltInit),globalThis.concept.updateTargeting());let e=V()?"mobile":"desktop";globalThis.concept.device=e;let o=Ot(i.adUnits,e);t||(o=(e=>e.filter((e=>(e.cookieLessPath=globalThis.conceptConfig.cookielessAdserver===Wt.GAM?e.path:e.cookieLessPath,!(!e.cookieLessPath||!e.cookieLessPath.includes("/"))&&e))))(o)),n&&(o=o.filter((e=>e.divIdOnPage===n))),((e,t)=>{e.filter((e=>!e.disabled)).forEach((e=>$n({consented:t,unit:e,display:!0})))})(o,t),i.allowAdUnitDublicates&&On({consented:t}),Sn(n)}))};O(),ee(),je(),O(),je(),O();var zn=({contxt:e,logger:t})=>{t("Dentsu gonna be Injected");let n=(e=>{for(var t=e+"=",n=decodeURIComponent(document.cookie).split(";"),i=0;i{try{let e=document.location.href;if(!e||e.includes("safeframe"))return void s("We can not determine the source url");let t=`https://prod-contxt-api-app-service.azurewebsites.net/targeting?url=${e}`;globalThis?.conceptConfig?.reportTrackingAs&&(t=`${t}&site=${globalThis.conceptConfig.reportTrackingAs}`);let n={contxt:null,IAB1:null,IAB2:null};return fetch(t).then((e=>e.json())).then((e=>(Array.isArray(e.audiences)&&e?.audiences.length>0&&(n.contxt=e.audiences,globalThis.conceptConfig?.activateDentsuDMP&&zn({contxt:e.audiences,logger:m})),["IAB1","IAB2","IAB3","IAB4"].forEach((t=>{e?.[t]?.id&&(n[t]=e[t].id)})),globalThis.concept.targeting={...globalThis.concept.targeting,...n},m("Contextual targeting injected"),qe(n),n)))}catch(e){return s(`Something went wrong with concept contextual targeting: ${e}`),Promise.reject(e)}};O();var Mn={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"},Fn=e=>m(`got CMP event: ${e.eventStatus}`);function qn(e){m(`error callback: ${e}`),__tcfapi("getTCData",2,(function(e){e.gdprApplies||In("gdprNotApplies")})),In("CMP error")}var Dn=e=>{e.noUsableConsent?e.legitimateInterests?(globalThis.concept.consentStatus=Ue,globalThis.concept.targeting.requestMode="LIMITED"):e.noUsableConsent?(globalThis.concept.consentStatus=Le,globalThis.concept.targeting.requestMode=Le,m("The user cosents does not meet the requirements to 'normal' load ads."),globalThis.concept.consentedToCookies=!1):(globalThis.concept.consentStatus=Re,globalThis.concept.targeting.requestMode=Re):(globalThis.concept.consentStatus=Ne,globalThis.concept.targeting.requestMode=Ne),Ut("consentRecieved",{detail:{}})},Gn=()=>{m("executeQueue ----\x3e executing consentQueue","function");let e=globalThis.concept.consentQueue||[];e.forEach(((t,n)=>{v("(Refresh dequeued and executed)"),e[n]()})),globalThis.concept.consentQueue=[]},Wn=e=>{globalThis.concept.tcString=e.tcString;let t=e?.purpose?.consents||{},n=Object.keys(t),i=Object.values(t),o=e.purpose?n.length:1e3;globalThis.concept.specificConsent=i.map(((e,t)=>({purpose:Mn[t+1],allowed:e})));let a=!!e.purpose&&n.some((e=>!t[e]));return{noUsableConsent:e.gdprApplies&&(0===o||!0===a),legitimateInterests:Vn(e)}},Vn=e=>{let t=e?.purpose?.legitimateInterests||{},n=t[2],i=t[7],o=t[9],a=t[10];return!!(n&&i&&o&&a)},Hn=({callback:e})=>{m("Loading ads ..."),!1!==globalThis.concept.consentedToCookies&&(globalThis.concept.consentedToCookies=!0,Lt(),Gn(),globalThis.conceptConfig.dontCallInitial||e({consented:!0}))};function Jn({callback:e}){function t(t,n){m(`Succesful consent recieved from ${n}`),T("Consent recieved");let i="Adnuntius"===globalThis.conceptConfig.legitimateStepAdserver,o=Wn(t);if(Dn(o),o.noUsableConsent){if(o.legitimateInterests&&!i)Ve(),Hn({callback:e});else if(o.noUsableConsent||i){if(!globalThis.conceptConfig.dontCallInitial)return Kn({callback:e});Gn()}}else Hn({callback:e})}m("consent.js run"),Qn()||(m("No __tcfapi found at all (should be stubbed)","error"),globalThis.concept.consentStatus=ze,In("adding stub"),function(){for(var e,t="__tcfapiLocator",n=[],i=window;i;){try{if(i.frames[t]){e=i;break}}catch{}if(i===window.top)break;i=i.parent}e||(function e(){var n=i.document,o=!!i.frames[t];if(!o)if(n.body){var a=n.createElement("iframe");a.style.cssText="display:none",a.name=t,n.body.appendChild(a)}else setTimeout(e,5);return!o}(),i.__tcfapi=function(){for(var e,t=arguments.length,i=new Array(t),o=0;o3&&2===parseInt(i[1],10)&&"boolean"==typeof i[3]&&(e=i[3],"function"==typeof i[2]&&i[2]("set",!0));else if("ping"===i[0]){var a={gdprApplies:e,cmpLoaded:!1,cmpStatus:"stub"};"function"==typeof i[2]&&i[2](a)}else n.push(i)},i.addEventListener("message",(function(e){var t="string"==typeof e.data,n={};try{n=t?JSON.parse(e.data):e.data}catch{}var i=n.__tcfapiCall;i&&window.__tcfapi(i.command,i.version,(function(n,o){var a={__tcfapiReturn:{returnValue:n,success:o,callId:i.callId}};t&&(a=JSON.stringify(a)),e.source.postMessage(a,"*")}),i.parameter)}),!1))}(),m("tcf stub loaded")),Yn.tcfApiExists()?(Yn.addEventListener("useractioncomplete",t,qn),Yn.addEventListener("tcloaded",t,qn),Yn.addEventListener("cmpuishown",Fn,qn)):(m("No tcfApi or Exists"),globalThis.conceptConfig.dontCallInitial?Kn({callback:function(){s("could not find TCF api")}}):Kn({callback:e}))}var Kn=({callback:e,adunitDivId:t="",SPAOverwrite:n=globalThis.conceptConfig.dontCallInitial})=>{m("Lets kick of cookieless"),Ut("cookieless",{detail:{}});let i=globalThis.conceptConfig.cookielessAdserver;if(globalThis.conceptConfig.checkForConsent&&(!i||!Object.values(Wt).includes(i)))throw Error("Please setup a cookieless adserver");(0===globalThis.concept.adsloaded&&!globalThis.concept.initialCalled||n)&&(i===Wt.GAM&&(m("GAM cookieless","gpt"),e({consented:!1,adunitDivId:t})),i===Wt.ADNUNTIUS&&(m("ADNUNTIUS cookieless","adnuntius"),Ft({adunitDivId:t,prerender:!1,container:"div"})))};function Qn(){return window.__tcfapi}var Yn={addEventListener:function(e,t,n){Qn()&&__tcfapi("addEventListener",2,(function(i,o){i.eventStatus===e&&(o?__tcfapi("removeEventListener",2,(function(n){n&&t(i,e,n)}),i?.listenerId):n(e))}))},tcfApiExists:Qn},Xn=!1,Zn=()=>{let{origin:e,pathname:t}=location,n=`${e}${t}`;setInterval((function(){let{origin:e,pathname:t}=location,i=`${e}${t}`;if(n!==i){n=i,m(`URL changed to ${i}`);let e=Object.keys(globalThis.concept.adUnits);globalThis.conceptConfig.dontCallInitial&&(m(`Clearing timeout (refresh) for ${e.join(",")}`),e.forEach((e=>{vt(globalThis.concept.adUnits[e])}))),globalThis.conceptConfig.activateConceptTargeting&&Bn(),Ut("urlChange",{detail:{}})}}),300)},ei=e=>{globalThis.concept.updateIfEmpty.delete(e),globalThis.concept.firstBatchRefresh=!1,globalThis.concept.initialCalled=!1,globalThis.concept.observing=[];let t=e||null;m(`refreshSelected ${e}`,"function"),function(e,t){if(globalThis.conceptConfig.checkForConsent){let n=()=>globalThis.concept.injectAds({adunitDivId:e,consented:!0});__tcfapi("getTCData",2,(function(e){m("Manually retrieved tcData");let i=Wn(e),o="Adnuntius"===globalThis.conceptConfig.legitimateStepAdserver;Dn(i),i.noUsableConsent?i.legitimateInterests&&!o?(Ve(),n()):(i.noUsableConsent||o)&&Kn({callback:globalThis.concept.injectAds,adunitDivId:t,SPAOverwrite:!0}):n()}))}else!1===globalThis.concept.consentedToCookies?Kn({callback:globalThis.concept.injectAds,adunitDivId:t}):globalThis.concept.injectAds({adunitDivId:e,consented:!0})}(t,e)},ti=e=>{let t=conceptConfig.adUnits.map((e=>e.divIdOnPage)),n=globalThis.conceptConfig.adUnits.find((t=>t.divIdOnPage===e))?.disabled;if(t.includes(e)&&!n){let t=document.getElementById(e),n=!!globalThis.concept.consentedToCookies,i=Pn({consented:n,node:t,display:!1}),o=conceptConfig.adUnits.find((e=>e.divIdOnPage===i));i&&o?.preRenderCookieless?Ft({adunitDivId:i,container:"iframe",prerender:!0}).forEach((e=>{ei(e.split("prerender").join("realrender"))})):ei(i||e)}else"string"==typeof e&&e.length>0&&m(`${e} was not found in config or its disabled`,"error");!e&&!globalThis.conceptConfig.dontAllowRefreshAll&&(m("No specific adunit, we refresh all"),globalThis.concept.adUnits={},globalThis.concept.definitions={},googletag.destroySlots&&googletag.destroySlots(),ei(""))},ni=e=>{m(`injectNewAds ${e}`,"function"),T("injectNewAds execution requested"),globalThis.concept.updateTargeting(),qe(globalThis.concept.targeting);let t=globalThis.conceptConfig.checkForConsent&&!0,n=globalThis.concept.consentStatus===Ue,i=globalThis.concept.consentedToCookies,o=t&&i;if((!t||o||n)&&(m(`injectNewAds consentFlag (${t}) || fullconsented (${o}) || limitedFlow (${n})`,"function"),ti(e)),t&&!i&&!n){m("injectNewAds no hasConsented & no limitedFlow","function");let t=()=>ti(e);h(`(Refresh queued) ${e}`),t&&globalThis.concept.consentQueue.push(t)}!1===i&&Gn(),null===i&&!Xn&&(m("Adding eventlisteners for the CMP"),Yn.addEventListener("useractioncomplete",Gn,qn),Yn.addEventListener("tcloaded",Gn,qn),Xn=!0)},ii=e=>{m(`loadCopyOf: copy ${e.srcUnit} and insert into ${e.targetDiv}`,"function");let t=globalThis.conceptConfig.adUnits.find((t=>t.divIdOnPage===e.srcUnit));if(t){let n={...t,divIdOnPage:e.targetDiv};globalThis.conceptConfig.adUnits.push(n),ni(e.targetDiv)}else s("Your trying to dublicate a non existing ad unit")};ue(),ee(),O();var oi=1,ai="concept",si=()=>{globalThis.conceptConfig.videoAdunits?.forEach((e=>{e.divIdOnPage&&e.videoPlayer===oi&&(async e=>{let t=e.divIdOnPage;m(`Waiting for ${t} to be visible`,"video");let n=await $(`#${t}`,0);m(`Inserting BB Player into ${t} `,"video");let i=e.BBUNIT,o=`https://${ai}.bbvms.com/r/${i}.js`;w(t);let a=globalThis.conceptConfig.usePrebid?await globalThis.concept.requestPrebidUrl(e.playerId):globalThis.concept.buildVastTag(e.playerId);y(`VAST TAG CREATED FOR ${t} `);let s=document.createElement("script");s.async=!0,s.src=o,s.onload=()=>{let e={code:t,vastUrl:a},o=`${ai}-${i}`,s=globalThis.bluebillywig.renderers.find((e=>e._id===o));s&&s.bootstrap(e,n)},document.getElementsByTagName("head")[0].appendChild(s)})(e)}))},ri=e=>{try{e.cookielessAdserver===Wt.ADNUNTIUS&&(e=>{window.adn&&window.adn.calls&&window.adn.request?e("Adnuntius already loaded"):(Ce("https://cdn.adnuntius.com/adn.js",document),e("Adnuntius Injected"))})(m),""!==e.customCSS&&e.customCSS&&(e=>{var t=document.createElement("style");t.innerText=e,document.head.appendChild(t)})(e.customCSS),e.reportTrackingAs&&oe(`?loaded=true&site=${e.reportTrackingAs}`),e.trySendingSpecificGeo&&R({targetingFunction:qe}),e.oneOfAutoExecuteBB&&si(),e.activateConceptTargeting&&Bn(),e.customScript&&Oe(m,e.customScript),!globalThis.disableRMBRef&&e.RMBRef&&_e(m,e.RMBRef),(e.refreshOnUrlChange||e.dontCallInitial)&&Zn(),e.refreshOnUrlChange&&window.addEventListener("urlChange",(()=>{globalThis.concept.injectNewAds()}),!0),e.dontCallInitial&&window.addEventListener("urlChange",(()=>{Se()}),!0),St(),globalThis.concept.connect(lt,bn),globalThis.concept.connect(ct,hn),globalThis.concept.connect(pt,vn),globalThis.concept.connect(st,fn),globalThis.concept.connect(rt,Tn),globalThis.concept.connect(it,mn),globalThis.concept.connect(ot,cn),globalThis.concept.connect(at,ln),globalThis.concept.connect(dt,un),globalThis.concept.define=Un,globalThis.concept.refresh=Rn,globalThis.concept.display=Nn,globalThis.concept.injectNewAds=ni,globalThis.concept.loadCopyOf=ii,Ut("concept_loaded",{detail:{}}),globalThis.concept.injectAds=Ln}catch(e){console.log(e)}};globalThis.googletag=globalThis.googletag||{},globalThis.googletag.cmd=globalThis.googletag.cmd||[];var di=e=>{try{ri(e);let t=!e.dontCallInitial,n=!e.refreshOnUrlChange,i=t&&n;e.checkForConsent?Jn({callback:e=>{si(),globalThis.concept.injectAds(e)}}):i&&(Lt(),si(),globalThis.concept.injectAds({consented:!0})),(()=>{let e=[];globalThis.preConcept&&(e=globalThis.preConcept.queue||e,e.forEach((e=>{xn(e)})),globalThis.preConcept.queue={},globalThis.preConcept.queue.push=function(e){xn(e)},m("preConcept.queue has now been frozen"),Object.freeze(globalThis.preConcept))})()}catch(e){console.log(e)}};globalThis.googletag=globalThis.googletag||{},globalThis.googletag.cmd=globalThis.googletag.cmd||[],O(),O(),ue();var li=["49114284","5706918"],ci=!1,pi=!1,gi=!1,ui=!1,mi=!1,fi=e=>{let t=e.slot.getAdUnitPath(),n=e.slot.getAdUnitPath(),i=e.slot.getSlotElementId();if(globalThis.concept.adUnits[i]?.preRenderCookieless){let e=document.getElementById(i),t=e?.parentNode,n=globalThis.conceptConfig.adUnits.map((e=>e.divIdOnPage));if(e){let t=e.parentNode;if(t.id.includes("grandparent")){let e=t?.previousElementSibling;e.style.height="0px",(e=>{let t=.1;e.style.display="block";let n=setInterval((function(){t>=1&&clearInterval(n),e.style.opacity=t,e.style.filter="alpha(opacity="+100*t+")",t+=.2*t}),40)})(t),(e=>{let t=1;e.style.display="block";let n=setInterval((function(){t<=.1&&(e.style.display="none",clearInterval(n)),e.style.opacity=t,e.style.filter="alpha(opacity="+100*t+")",t-=.1}),40)})(e)}}n.includes(t?.id)&&(t.style.display="none")}li.some((e=>n.includes(e)))&&(y(`slotResponseReceived - ${t}`),T(`slotResponseReceived - ${t}`),e.slot.getResponseInformation()||(pn(i),Rt({name:t,divId:i}),C(i)))},bi=e=>{let t=e.slot.getAdUnitPath();if(li.some((e=>t.includes(e)))){let t=e.slot.getSlotId().getId();setTimeout((function(){window?.top?.postMessage({type:at,payload:{placement:e.slot.getSlotElementId(),adunitId:t}},"*")}))}},hi=e=>{let t=e.slot.getAdUnitPath(),n=e.slot.getSlotId().getId(),i=e.slot.getSlotElementId();if(globalThis.concept.adUnits[i],li.some((e=>t.includes(e)))){let o=e.slot.getResponseInformation();y(`(slotOnload) ${t} - winning lineitem = ${o?o.lineItem:"no info"}`);let a={type:ot,payload:{placement:i,adunitId:n}};setTimeout((function(){window?.top?.postMessage(a,"*")}))}},vi=e=>{let t=e.slot.getSlotElementId(),n=globalThis.concept.adUnits[t],i=e.slot.getAdUnitPath();if(e.isEmpty&&(e=>{for(let[t,n]of globalThis.concept.updateIfEmpty.entries())n===e&&(m(`${n} has just been loaded - and its empty ${t}`),globalThis.concept.updateIfEmpty.delete(t),m(`${e}: now has ${globalThis.concept.updateIfEmpty.size} empty dependencies we should resolve`),setTimeout((function(){let e=globalThis.concept.adUnits[t];e&&(k({adunitPath:e.path})||(m(`No skin found, refreshing ${t}`),It([e])))}),10))})(t),li.some((e=>i.includes(e)))){let i=e.creativeId||e.sourceAgnosticCreativeId,o=e.lineItemId||e.sourceAgnosticLineItemId;if(e.isEmpty&&(i="unfilled",o="unfilled"),m(`We recieved creative code: ${t}, creative - ${i}, lineitem - ${o}`,"gpt"),globalThis.conceptConfig.useAdvancedTracking&&ae({creativeId:i,lineItemId:o,adunitCode:t}),n){n.rendered=!0;let i={isEmpty:e.isEmpty,size:null};e.isEmpty||(i.size={width:e.size[0],height:e.size[1]}),globalThis.concept.events.trigger(t+".render",[i])}}},Ti=e=>{let t=e.slot.getSlotElementId(),n=e.slot.getAdUnitPath(),i=e.slot.getOutOfPage(),o=globalThis.concept.adUnits[t];o||m("Could not find adunit in slotViewable"),i&&(m("An outofpage unit is being showed"),y(`Out of page loaded - ${n}`)),li.some((e=>n.includes(e)))&&(o&&(o.viewableCount=o?.viewableCount?o.viewableCount+1:1),(({divId:e})=>{Ut("viewableAd",{detail:{viewable:!0,divId:e}})})({divId:t}),m(`impressionViewable: ${t}`,"gpt"))},yi=!1,Ii=()=>{try{yi||(m("googletagConfigured being queued","gpt"),yi=!0,googletag.cmd.push((function(){m("googletagConfigured not configured: Enable DFP services","gpt"),globalThis.googletag.pubads().enableSingleRequest(),globalThis.googletag.pubads().disableInitialLoad(),globalThis.googletag.pubads().setCentering(!0),globalThis.googletag.pubads().collapseEmptyDivs(),gi||(gi=googletag.pubads().addEventListener("slotResponseReceived",fi)),ui||(ui=googletag.pubads().addEventListener("slotOnload",hi)),pi||(pi=googletag.pubads().addEventListener("slotRequested",bi)),ci||(ci=googletag.pubads().addEventListener("impressionViewable",Ti)),mi||(mi=globalThis.googletag.pubads().addEventListener("slotRenderEnded",vi)),globalThis.googletag.pubads().set("page_url",globalThis?.conceptConfig?.page_url||globalThis?.concept?.targeting?.UrlHost);let e=(e=>{let t=Y(e);return t?((e,t)=>{let n=0;for(let t=0;t{Ut("PPIDSet",{detail:{id:e}})})(e),googletag.pubads().setPublisherProvidedId(e)),globalThis.googletag.enableServices()})))}catch(e){console.error(e),s("Could not setup googletag globals")}},wi=e=>{let t=!1;t||(t=!0,(e=>{if(Me&&!globalThis.conceptConfig.siteLoadsGpt){let t="https://securepubads.g.doubleclick.net/tag/js/gpt.js";globalThis.conceptConfig.tryLimitedAds?window.addEventListener("consentRecieved",(()=>{globalThis.concept.consentStatus===Ue&&(t="https://pagead2.googlesyndication.com/tag/js/gpt.js"),Ce(t,document,!0)}),{once:!0,capture:!0}):Ce(t,document,!0),Me=!1,e("GPT Injected"),globalThis.googletag}})(m),Ii(),googletag.cmd.push((function(){y("Googletag loaded")})),di(e),e.dontCallInitial||e.adUnits.filter((e=>e.preRenderCookieless)).forEach((e=>{Ft({adunitDivId:e.divIdOnPage,container:"iframe",prerender:!0})})))};O();try{globalThis.conceptConfig||console.error("No configuration found. abort!");let e=globalThis.conceptConfig;globalThis.concept=globalThis.concept||(e=>({adUnits:{},definitions:{},logme:m,events:{addEvent:Zt,on:en,trigger:tn},connect:Yt,initialCalled:!1,firstBatchRefresh:!1,failsafe_timeout:wn(e),updateWhenResolved:_n(e.adUnits,"dependencies"),discardedForTest:[],updateIfEmpty:_n(e.adUnits,"updateIfEmpty"),observing:[],initTime:performance.now(),consentedToCookies:null,eventLog:[],adsloaded:0,idsNotFound:0,videoUrls:[],vastTags:[],videosRequested:0,consentStatus:Be,buildVastTag:Kt,requestPrebidUrl:Ht,directRefresh:En,consentQueue:[],device:null,unitTemplates:new Map,updateTargeting:kn,targeting:F(globalThis.conceptConfig)}))(e),u?fetch("https://realtimeconfig.cncpt.dk/").then((e=>e.json())).then((t=>{let n={...e,...t};globalThis.conceptConfig=n,m("We are merging the live config with the deployed config"),wi(n)})):wi(e)}catch(He){console.log(He)}})()},e.log=function(e,t,n){var i=function(e){return"background: "+e+"; 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;"},o="log",a="",s="#79e1ec";switch("warn"==e||"error"==e?o=e:a="%c"+e,e){case"event":s="#0aff82";break;case"tag":s="#ee49d1";break;case"consent":s="#af83ff"}console[o]("%cATM"+a,i("#00e6ff"),""!=a?i(s):"",t||"",n||"")},e.debug=function(t,n,o){i.location.search.indexOf("atm_debug")>-1&&e.log(t,n,o)},e.utils={createUuid:function(){var e=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"==t?n:3&n|8).toString(16)}))},getCookie:function(e){for(var t=e+"=",n=decodeURIComponent(document.cookie).split(";"),i=0;i=0}))},requestGAM:function(t){window.googletag.cmd.push((function(){for(let n=0;n0&&!e.utils.findInArray(e.GLOBALS.forcedPurposes,a.purposes)&&(s=!1,e.haltedTags.push(o)):a.purposes.length>0&&!e.utils.findInArray(e.browser.consent.adnuntiusPurposes,a.purposes)&&(s=!1),s&&(e.debug("tag","Running tag: "+o+" in container: "+t),e.containerFunctions[t][a.type](a.content),-1!=e.eventList.indexOf("tags."+o)&&e.dispatch("tags."+o))}catch(t){e.log("error",t,": Tag: "+a)}},runTriggers:function(t,n){e.containers[t].triggers[n].forEach((function(e){e()}))},clickElement:function(t){e.triggers.click&&e.triggers.click(t)},toggleClass:function(e,t){if(e.classList)e.classList.toggle(t);else{var n=e.className.split(" "),i=n.indexOf(t);i>=0?n.splice(i,1):n.push(t),e.className=n.join(" ")}},newAjax:function(e,t,n){if(i.XDomainRequest&&-1===i.navigator.appVersion.indexOf("MSIE 10")){var o=new i.XDomainRequest;return o.open(e,t),o.contentType="text/plain",o.onerror=function(){},o.ontimeout=function(){},o.onprogress=function(){},o.timeout=function(){},o.onload=function(){},o.onload=n,o}var a=new XMLHttpRequest;return a.open(e,t),a.setRequestHeader("Content-Type","text/plain"),n&&"function"==typeof n&&(a.onreadystatechange=n),a.onerror=function(e){console.log(e)},a},ajax:function(t,n,i){var o=e.utils.newAjax(t,n,(function(){if(o.readyState&&4!==o.readyState)return!1;o.status&&200!==o.status?e.log("error","Request to URL: "+n+" got status "+o.status):i&&"function"==typeof i?i(JSON.parse(o.response)):e.log("error","Ajax function is not a function")}));o.send()}},e.privacy=e.privacy||void 0,e.createPrebidRequest=function(t){var n=[];return t.adUnits.forEach((function(t){var i=e.prebid.map[t.auId];e.prebid.mappedUnits[i]&&n.push(e.prebid.mappedUnits[i])})),n},e.requestAds=function(n){if(e.prebid.aliases.length>0)for(let t=0;t{s.push(e.code),e.bids.forEach((function(t){if("adnuntius"==t.bidder||"adnuntius"==i[t.bidder]){var n={auId:t.params.auId,targetId:e.code,onNoMatchedAds:function(e){r(e)},onImpressionResponse:function(e){a.push(e.targetId),r(e)}};e.mediaTypes&&e.mediaTypes.banner&&e.mediaTypes.banner.sizes&&(n.dimensions=e.mediaTypes.banner.sizes),t.params.targeting&&console.log(t.params.targeting),o.push(n)}}))})),o},e.ads.setInterval=function(n,i){e.ads.adUnitMeta[n].interval||(e.ads.adUnitMeta[n].interval=setInterval((function(){0!=e.ads.adUnitMeta[n].refresh.count?(t.calls.push((function(){t.chbRequest(e.createPrebidRequest(i),i)})),e.ads.adUnitMeta[n].refresh.count--):clearInterval(e.ads.adUnitMeta[n].interval)}),1e3*e.ads.adUnitMeta[n].refresh.delay))},e.ads.setPrebidRefresh=function(t,n){var i=Object.assign({},n);delete i.headerBids;var o=t.targetId?":"+t.targetId:"",a=t.auId+o,s=t.refresh;s.count?s.count=s.count||999:s={delay:t.refresh,count:999};var r=s.event||"onViewable";if("onViewable"!=r&&"onVisible"!=r)throw new Error('refresh event needs to be "onViewable" or "onVisible"');return delete t.refresh,t.clearTarget=!0,e.ads.adUnitMeta[a]=e.ads.adUnitMeta[a]||{},e.ads.adUnitMeta[a].refresh=s,e.ads.adUnitMeta[a].refreshFunction=function(){i.adUnits=[t],e.ads.setInterval(a,i)},t[r]=e.ads.adUnitMeta[a].refreshFunction,t},e.addListener=function(t,n){-1==e.eventList.indexOf(t)&&(e.eventList.push(t),e.events[t]=new CustomEvent(t,{bubbles:!0})),document.addEventListener(t,(function(){n&&n(e.transitData)}))},e.dispatch=function(t,n){e.debug(t,n),e.transitData=n,document.dispatchEvent(e.events[t])},e.containerFunctions[r].javascriptCustom=function(t){try{t.script()}catch(t){e.log("error","Custom Javascript is malformed "+t.message,"Custom JavaScript")}},e.addListener("pageview.zUxMC1rEr",(function(t){e.utils.runTags("zUxMC1rEr",["j5dA-fkN_D"])})),e.utils.addScript("https://cdn.adnuntius.com/adn.js",!1,!1,{async:!0}),e.containers[r].prebid){if(e.containers[r].prebid.config&&e.containers[r].prebid.config.custom)try{new Function(e.containers[r].prebid.config.custom)()}catch(t){e.log("error","Custom prebid script malformed: "+t.message,"Custom Prebid")}e.containers[r].prebid.loadPrebidJs&&e.utils.addScript("https://tags.adnuntius.com/pb/prebid.js")}s=function(){try{for(var t;t=e.queue.shift();)"function"==typeof t&&t()}catch(t){e.log("error",t,"queue handler")}},i.setTimeout(s,25),e.queue.push=function(){return Array.prototype.push.apply(this,arguments),i.setTimeout(s,1),this.length},s(),window.addEventListener("load",(function(t){-1!=e.eventList.indexOf("pageload."+r)&&e.dispatch("pageload."+r)})),e.eventList.indexOf("pageview."+r)>-1&&e.dispatch("pageview."+r)}(atm,adn,document,window)}catch(e){console.log("error",e)}