"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="YWSz9GwBF";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:"YWSz9GwBF",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:{tPbtMb2q1W:{purposes:[],type:"javascriptCustom",content:{script:""}}}},e.containers[r].tags.tPbtMb2q1W.content.script=function(){window.conceptConfig={targetingToDMP:[],refreshInview:.25,prebidTimeOut:1e3,s2sTimeout:500,page_url:"wellingtoninternational.com",reportTrackingAs:"wellingtoninternational.com",RMBRef:"https://functions.adnami.io/api/macro/adsm.macro.wellingtoninternational.com.js",deployId:"lqa211nbw3w4yku4rir",adUnits:[{path:"/22702793943/WEG_dsk_lb1",targeting:{},divIdOnPage:"cncpt-dsk_lb1",size:[[[1025,0],[[728,90]]],[[0,0],[]]],cookieLessPath:null,refresh:0,id:"hsb32",lazyload:!1},{path:"/22702793943/WEG_dsk_rec1",targeting:{},divIdOnPage:"cncpt-dsk_rec1",size:[[[1025,0],[[300,250]]],[[0,0],[]]],cookieLessPath:null,refresh:0,id:"xmi2fj",lazyload:!1},{path:"/22702793943/WEG_mob3",targeting:{},divIdOnPage:"cncpt-mob3",size:[[[1025,0],[]],[[0,0],[[300,250]]]],cookieLessPath:null,refresh:0,id:"5gbvo",lazyload:!1,excluserTimeout:200,rootMargin:0},{path:"/22702793943/WEG_mob2",targeting:{},divIdOnPage:"cncpt-mob2",size:[[[1025,0],[]],[[0,0],[[320,50]]]],cookieLessPath:null,refresh:0,id:"2k63y",lazyload:!1},{path:"/22702793943/WEG_mob1",targeting:{},divIdOnPage:"cncpt-mob1",size:[[[1025,0],[]],[[0,0],[[320,320]]]],cookieLessPath:null,refresh:0,id:"atmw2",lazyload:!1},{path:"/22702793943/WEG_dsk_sky1",targeting:{},divIdOnPage:"cncpt-dsk_sky1",size:[[[1025,0],[[160,600],[300,600]]],[[0,0],[]]],cookieLessPath:null,refresh:0,id:"l24l1m",lazyload:!1},{path:"/22702793943/WEG_dsk_top",targeting:{},divIdOnPage:"cncpt-dsk_top",size:[[[1025,0],[[1,2]]],[[0,0],[]]],cookieLessPath:null,refresh:0,id:"qlaoll",lazyload:!1},{ignoreDeviceCheck:!0,path:"/22702793943/WEG_mob_top",targeting:{},divIdOnPage:"cncpt-mob_top",size:[[[1025,0],[]],[[0,0],[[1,2]]]],cookieLessPath:null,refresh:0,id:"soosnc",lazyload:!1},{path:"/22702793943/WEG_mob_midscroll",targeting:{},divIdOnPage:"cncpt-mob_int",size:[[[1025,0],[]],[[0,0],[[320,320]]]],cookieLessPath:null,refresh:0,id:"ipy5c4",lazyload:!1},{path:"/22702793943/WEG_dsk_midscroll",targeting:{},divIdOnPage:"cncpt-dsk_int",size:[[[1025,0],[[728,90]]],[[0,0],[]]],cookieLessPath:null,refresh:0,id:"ibp3o",lazyload:!1}],ABTesters:[],videoAdunits:[],implementationType:"NORMAL",observerTimeout:150,readpeaks:[],customTargeting:{domain:"DOMAIN_OF_SITE"},haltInit:0,rootMargin:500,failsafe_timeout:0,strossles:[],usePrebid:!1},(()=>{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){p&&h(e,"error")}var r,l,d,c,g,p,u,h,f,b,m,v,T,y,I,w,C,A,E,k,P,O,S,$,U,j,x=a((()=>{r={pbjs:"#3B88C3;",gpt:"#1E8E3E;",adnuntius:"#0e9bd6;",emitter:"#f4b400;",video:"#ff0046;",conceptads:"#283593;",readpeak:"#13759a;",strossle:"#191919;",function:"#9AE19D;",test:"#6eb77f;",error:"#ff3333;"},l=e=>r[e]||"#d24f54;",d=performance.now(),c=function(e,t){let n=Array.from(t),i=l(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()-d)/1e3;return n.unshift("%c"+e.toUpperCase()+` (+ ${o.toFixed(2)} s) `),n},p="true"===(g=function(e){let t=new RegExp("[\\?&]"+e+"=([^&#]*)").exec(window.location.search);return null===t?"":decodeURIComponent(t[1].replace(/\+/g," "))})("concept_debug"),u="true"===g("realtime_config"),h=function(e,t="conceptads",n="log"){return Object.keys(r).includes(t)||(t="conceptsads"),p&&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})},m=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)})),_=a((()=>{A=function(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}})),N=a((()=>{E=({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),k=()=>globalThis.conceptConfig,P=e=>globalThis.conceptConfig[e],O=e=>globalThis.concept[e],S=(e,t)=>globalThis.conceptConfig[e]=t,$=()=>({changeCorrelator:!0!==P("dontChangeCorrelator")})})),R=a((()=>{U=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},j=e=>({root:null,rootMargin:U(e),threshold:globalThis.conceptConfig.threshold||0})}));function L({observingList:e,elementId:t,refreshFunc:n,refreshWhenReadyFunction:i,scheduleLaterFunc:o,retries:a=0}){let r=j(t),l=document.getElementById(t);!l&&a<3?setTimeout((function(){return h(`observeElement -> Gonna refresh ${t}`),L({observingList:e,elementId:t,refreshWhenReadyFunction:i,scheduleLaterFunc:o,refreshFunc:n,retries:a+1})}),globalThis.conceptConfig.observerTimeout||150):l?(globalThis.concept.observing.push({element:l}),function({observerConfig:e,element:t,refreshFunc:n,scheduleLaterFunc:i,refreshWhenReadyFunction:o}){H({observerConfig:e,element:t,excutionFunction:e=>{let t=e.target;if(e.isIntersecting){h(`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=E({adunitPath:e.path});e&&e.lazyload&&!e.alreadyLoaded&&!a&&(h("refreshOnIntersection -> Not loaded yet, so we refresh"),e.alreadyLoaded=!0,e.loadedFirstTime=!0,e.refreshTimer&&J({adUnit:e,scheduleLaterFunc:i,refreshWhenReadyFunction:o}),n([e]))}}})}({observerConfig:r,element:l,refreshFunc:n,scheduleLaterFunc:o,refreshWhenReadyFunction:i})):s(`Could not observe: ${t} is never inserted or inserted too late. try to increase timeout`)}function M(e,t,n=!1){let i,o=n?e:Z(e);return new Promise((n=>{t&&Number.isInteger(t)&&(h(`Timing ${e} out in ${t} ms`),i=setTimeout((function(){s(`${e} TIMED OUT`),n(null)}),t));let a=X(o),r=!a||!ee(a)||a.length>0;if(a&&r)i&&clearTimeout(i),n(a);else if(globalThis.conceptConfig.avoidMutationObserver){h("Interval observer started for dublications");let e=setInterval((()=>{let t=X(o);t&&(h(`Found from intervaller ${o}`),clearInterval(e),i&&clearTimeout(i),n(t))}),100)}else{h(`Relying on MutationObserver to find ${e}`);let t=new MutationObserver((e=>{let a=X(o);a&&(h(`Found from mutationObserver ${o}`),t.disconnect(),i&&clearTimeout(i),n(a))}));document.body?t.observe(document.body,{childList:!0,subtree:!0}):h(`Could not wait for ${e} as there is no docuemnt body`)}}))}var F,B,q,D,z,G,W,V,H,J,Q,K,Y,X,Z,ee,te,ne,ie,oe,ae=a((()=>{x(),_(),N(),R(),F=e=>document.body.appendChild(e),B=({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},h("Geo is being set"),e(a)}))},q=(e,t)=>{document.addEventListener("DOMContentLoaded",(function(){e(t)}))},D=!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})},G=(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},V=(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,...W(e.customTargeting)}),globalThis.siteTargeting&&"object"==typeof globalThis.siteTargeting&&(t={...t,...W(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=G(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 h("Something went wrong with the global targeting")}},H=({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},J=({adUnit:e,scheduleLaterFunc:t,refreshWhenReadyFunction:n})=>{clearTimeout(e.refreshTimer),h(`refreshOnIntersection --\x3e resetting timer: ${e.divIdOnPage}`),t({name:e.divIdOnPage,adUnit:e,refreshFunction:n})},Q=()=>window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,K=()=>["complete","loaded","interactive"].includes(document.readyState),Y=()=>A(),X=globalThis?.conceptConfig?.allowAdUnitDublicates?document.querySelectorAll.bind(document):document.getElementById.bind(document),Z=e=>{let t=globalThis?.conceptConfig?.allowAdUnitDublicates?e:e.split("#")[1];return e.includes(".")&&(t=t.split(".").join("\\."),h(`Found a ., now looking for ${t}`)),t},ee=e=>NodeList.prototype.isPrototypeOf(e),te=["CookieConsent","CookieInformationConsent","_ga","eupubconsent-v2"],ne=e=>{let t=[...te];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}})),se=a((()=>{ie=e=>{let t,n=[];for(t=0;ti);t++);return e[t]},oe=()=>Math.random().toString(36).substr(2,9)}));function re(e){let t=`https://dw6vol2k7d4iu.cloudfront.net/1x1.png${e}&someunique=${oe()}`;le(t,"concept-loads")}var le,de,ce,ge,pe,ue,he,fe,be,me,ve=a((()=>{x(),ae(),se(),le=(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?F(n):q(F,n)}catch(e){console.error("Cant read document.body in append pixel",e)}},de=e=>{try{document.body?re(e):q(re,e)}catch(e){console.error("Cant read document.body",e)}},ce=({lineItemId:e,creativeId:t,adunitCode:n})=>{let i=globalThis.conceptConfig.reportTrackingAs;if(!i||!globalThis?.concept?.targeting)return h("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=${oe()}`;return le(o,"advanced-tracking"),o}})),Te=a((()=>{ve(),ge=()=>globalThis.conceptConfig.sendDataToAdformDSP,pe=({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)}(),le("https://track.adform.net/Serving/TrackPoint/?pm=923403&ADFPageName=concept_dmp&ADFdivider=|","concept-dmp"),e("DMP pixel loaded")}})),ye=a((()=>{ae(),x(),R(),ue=({injectionFunction:e})=>{globalThis.conceptConfig?.readpeaks&&globalThis.conceptConfig?.readpeaks?.length>0&&globalThis.conceptConfig.readpeaks.forEach((t=>{he({readpeakConf:t,injectionFunction:e})}))},he=async({readpeakConf:e,injectionFunction:t})=>{h(`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:U(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),h(` ${e.divIdOnPage} inserted!!`,"readpeak"),t(h),i.unobserve(document.getElementById(e.divIdOnPage))):h("Readpeak container is not empty :O!","readpeak")}};return await M(`${e.divIdOnPage}`,globalThis.concept.failsafe_timeout,!0)?([...document.querySelectorAll(`#${e.divIdOnPage}`)].forEach((e=>{H({observerConfig:i,element:e,excutionFunction:o})})),"ok"):(h(`Could not insert into ${e.divIdOnPage}`,"error"),"could not find")}})),Ie=a((()=>{ae(),x(),R(),fe=({injectionFunction:e})=>{globalThis.conceptConfig?.strossles&&globalThis.conceptConfig?.strossles?.length>0&&globalThis.conceptConfig.strossles.forEach((t=>{be({strossleConfig:t,injectionFunction:e})}))},be=async({strossleConfig:e,injectionFunction:t})=>{h(`Lazyloading a strossle item in ${e.divIdOnPage}`,"strossle");let n={root:null,rootMargin:U(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}`),h(` ${e.divIdOnPage} inserted!!`,"strossle"),t(h),n.unobserve(document.getElementById(e.divIdOnPage)))}};return await M(`${e.divIdOnPage}`,globalThis.concept.failsafe_timeout,!0)?([...document.querySelectorAll(`#${e.divIdOnPage}`)].forEach((e=>{H({observerConfig:n,element:e,excutionFunction:i})})),"ok"):(h(`Could not insert into ${e.divIdOnPage}`,"error"),"could not find")}})),we=a((()=>{Le(),me=(e,t)=>{xe(e,`https://t.seedtag.com/t/${t}.js`),e("seedtag Injected")}})),Ce={};function Ae(e,t,n=""){var i=ke();t&&(i.id=t),n&&i.setAttribute("referrerpolicy",n),i.type="text/javascript",i.src=e,Pe({scriptTag:i})}((t,n)=>{for(var i in n)e(t,i,{get:n[i],enumerable:!0})})(Ce,{execute3rdparties:()=>Ne,getScriptTag:()=>ke,inject:()=>Oe,injectAdnami:()=>je,injectBrowsi:()=>_e,injectCustomAsyncScript:()=>xe,injectPrebid:()=>Se,injectReadpeak:()=>$e,injectStrossle:()=>Ue,insertAsFirstScript:()=>Pe,loadSync:()=>Ae,loadThirdPartyLibsWithCookiesOneTimeLoad:()=>Re});var Ee,ke,Pe,Oe,Se,$e,Ue,je,xe,_e,Ne,Re,Le=a((()=>{x(),Te(),ye(),Ie(),we(),Ee=!0,ke=()=>document.createElement("script"),Pe=({scriptTag:e})=>{let t=document.getElementsByTagName("script")[0];t&&t.parentNode?t.parentNode.insertBefore(e,t):document.head.appendChild(e)},Oe=(e,t,n=!1)=>{!function(t,i){let o=t.createElement(i);o.type="text/java"+i,o.src=e,Pe({scriptTag:o}),n&&(o.async=n)}(t,"script")},Se=(e,t)=>{Oe(t,document,!0),e("prebid Injected")},$e=e=>{Ae("https://app.readpeak.com/js/rp-if.js","Readpeak"),e("Readpeak Injected")},Ue=e=>xe(e,"https://assets.strossle.com/strossle-widget-sdk/1/strossle-widget-sdk.js"),je=(e,t)=>{window.adsmtag=window.adsmtag||{},adsmtag.cmd=adsmtag.cmd||[],Ae(t,"Adnami"),e("Adnami Injected")},xe=(e,t)=>{let n=ke();n.id="Custom script",n.async=!0,n.type="text/javascript",n.src=t,Pe({scriptTag:n}),e("Custom script Injected")},_e=(e,t)=>{var n;e("Browsi Injected"),(n=ke()).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",Pe({scriptTag:n})},Ne=()=>{h("Loading 3rdparty DOM injectors"),ue({injectionFunction:$e}),fe({injectionFunction:Ue})},Re=(e,t)=>{if(Ee){Ne();let{seedtagId:n,browsiSiteKey:i}=e;Ee=!1,ge()&&setTimeout((()=>{pe({logger:h})}),500),i&&_e(h,i),n&&me(t,n)}else t("3rd partys already loaded")}}));Le(),x(),ae(),x(),ae(),N();var Me={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)})}};x();var Fe="LEGITIMATE_INTERREST",Be="UNKNOWN",qe="FULL_CONSENT",De="CONSENT_REJECT_AND_NO_LEGITIMATE",ze="NO_TCF_API",Ge="NOT_SET";Le(),se(),N();var We=!0,Ve=e=>("string"==typeof e&&(e=(e=e.replace(/\s/g,"")).includes(",")?e.split(","):e),e),He=e=>{googletag.cmd.push((function(){h("GAM targeting being set");let t=[];for(var n in e)if(e.hasOwnProperty(n)){let i=e[n],o=Ve(i);o?googletag.pubads().setTargeting(n,o):t.push(n)}t.length>0&&h(`could set value for the keys = ${t.join(",")} (empty)`)}))},Je=(e,t,n)=>{let i=Ve(n);i&&e&&e.setTargeting(t,i)},Qe=({path:e,size:t,elementId:n,anchor:i,targeting:o,setUniqueTargeting:a,container:r})=>{let l;e||s(`NO PATH FOR ADUNIT ${e}`),googletag.cmd.push((function(){i?(l=googletag.defineOutOfPageSlot(e,googletag.enums.OutOfPageFormat[i]),l&&l.addService(googletag.pubads())):(l=googletag.defineSlot(e,(e=>{let t=[];return e.forEach((e=>{t=[...t,...e[1]]})),t})(t),n),l&&l.setCollapseEmptyDiv(!0).addService(googletag.pubads()),l.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))),l?(o&&Object.keys(o).forEach((e=>{Je(l,e,o[e])})),a&&Je(l,"uniqueId","_"+oe()),Ke({slot:l,container:r})):s("No slot here")}))},Ke=({slot:e,container:t})=>{globalThis.concept.adUnits[t.id].slot=e},Ye=()=>{googletag.cmd.push((function(){googletag.pubads().setPrivacySettings({limitedAds:!0})}))};x(),Le();var Xe,{injectCustomAsyncScript:Ze}=(Le(),Xe=Ce,((t,a,s,r)=>{if(a&&"object"==typeof a||"function"==typeof a)for(let l of i(a))!o.call(t,l)&&l!==s&&e(t,l,{get:()=>a[l],enumerable:!(r=n(a,l))||r.enumerable});return t})(e({},"__esModule",{value:!0}),Xe));se(),N();var et=(e,t)=>({asi:e,sid:t,hp:1}),tt=()=>{let e={},t=O("targeting");[{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((n=>{t[n.value]&&(e[n.keyName]=t[n.value])}));let n=t.UrlQuery.find((e=>e.includes("prebidkey")));if(n){let[t,i]=n.split(":");e[t]=i}let i=globalThis.concept.targeting.categories||"";return e.concept_category=i.split(","),t?.contxt&&(e.contxt=t?.contxt),globalThis.concept.pbjsGlobalKeys=e,e};N();var nt=!0;window.pbjs=window.pbjs||{},pbjs.que=pbjs.que||[];var it=e=>{if(e.usePrebid&&e.prebidRef)if(window.pbjs&&window.pbjs.libLoaded||!nt)h("Prebid already loaded/started","pbjs");else{nt=!1,globalThis.conceptConfig.activatePubx&&(e=>{Ze(e,"https://cdn.pbxai.com/029f2f07-0154-4544-b38d-26667fe7fd22.js"),e("PubX Injected")})(h);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}=ie([n,i]);globalThis.concept.targeting.prebidVersion=a,t=o||e.prebidRef}}Se(h,t),at(),ot(),st()}else h("Prebid not needed","pbjs")},ot=()=>{globalThis.conceptConfig?.useLiveWrappedAnalytics&&window.pbjs.que.push((function(){h("setting setPrebidAnalytics (liveWrapped)","pbjs"),pbjs.enableAnalytics({provider:"livewrapped",options:{publisherId:"35665883-67d9-42e1-b1e9-8f3e80c7f513",endpoint:"https://lwadm.com/analytics/10"}})}))},at=()=>{if(h("Adding Aliases","pbjs"),globalThis.conceptConfig?.prebidAliases){let e=globalThis.conceptConfig.prebidAliases,t=[];if("string"==typeof e)try{t=JSON.parse(e)}catch{s("could not parse prebidAliases")}Array.isArray(e)&&(t=e),h(JSON.stringify(e),"pbjs"),t.forEach((e=>{window.pbjs.que.push((function(){e[1]&&e[0]&&pbjs.aliasBidder(e[1],e[0])}))}))}},st=()=>{pbjs.que.push((function(){h("setting cncpt pbjs options (bidadjustments & general config)","pbjs");let e=O("targeting");(()=>{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 t={site:{ext:{data:{...tt()}}}};e?.lat&&(t.device={geo:{lat:e?.lat,long:e?.long,accuracy:parseInt(e?.accuracy)}}),pbjs.setConfig({ortb2:t}),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:"sharedId",storage:{type:"cookie",name:"_pubcid",expires:365}},{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=[et("concept.dk",globalThis.conceptConfig.sid)];(globalThis.conceptConfig.supplyPartners||[]).forEach((e=>{t.find((t=>t.sid===e.sid))||t.push(et(e.asi,e.sid))})),e.schain={validation:"strict",config:{ver:"1.0",complete:1,nodes:t}}}return e})())}))};function rt(e){let t=!1,n=$();if(0===e.length)return void h("No units ot refresh");let{prebidUnits:i,onlyGamUnits:o}=(e=>{let t=[],n=[],i=e.map((e=>e.path));return h(`[getPrebidSettings] looking up bids for: ${i}`,"conceptads"),e.forEach((e=>{let i=e.path,o=e.divIdOnPage;Object.keys(globalThis.concept.adUnits).forEach((e=>{let a=globalThis.concept.adUnits[e];a?a.divIdOnPage===o&&a.prebidSettings?.bids&&a.prebidSettings?.bids?.length>0?(a.prebidSettings.code=i,t.push(a.prebidSettings)):a.divIdOnPage===o&&n.push(a):h("Unit is deleted")}))})),{prebidUnits:t,onlyGamUnits:n}})(e);o.forEach((e=>{let t=e.path;w(`${t} - gpt`),googletag.cmd.push((function(){googletag.pubads().refresh([e.slot],n)}))}));let a=i.map((e=>e.code)),s=e.filter((e=>a.includes(e.path)));function r(e){t||(t=!0,e&&(e=>{pbjs.que.push((function(){Object.keys(e).forEach((e=>{let t=pbjs.getHighestCpmBids(e),n=t[0].cpm.toFixed(2),i=t[0].bidder;h(`GAM has to beat ${n} by ${i}`,"pbjs")}))}))})(e),googletag.cmd.push((function(){if(0===s.length)return void h("Nothing to call GAM with");let e=s.map((e=>e.slot));pbjs.libLoaded&&e.length>0?pbjs.que.push((function(){pbjs.setTargetingForGPTAsync(),h("[initAdserver] send prebid result to GAM","pbjs"),googletag.pubads().refresh(e,n)})):googletag.pubads().refresh(e,n)})))}if(i&&i.length>0&&(w(`${a.join(", ")} - prebid`),pbjs.que.push((function(){let e=a.join(", ");pbjs.removeAdUnit(),pbjs.addAdUnits(i),T(`prebid auction started ${e}`),h(`Starting auction for = ${e}`,"pbjs"),pbjs.requestBids({adUnitCodes:a,bidsBackHandler:r})}))),i&&i.length>0){let e=(globalThis?.conceptConfig?.prebidTimeOut||3e3)+500;setTimeout((function(){t||(h(`[PREBID] Timouter caught this one ${a}`,"pbjs"),r({}))}),e)}}var lt="ADSM_MACRO_UNLOAD",dt="SLOT_LOADED",ct="SLOT_REQUESTED",gt="ADSM_RMB_SKIN_INIT",pt="ADSM_RMB_SIDESKIN_INIT",ut="ADSM_RMB_HTML_TOPSCROLL_DESKTOP_INIT",ht="GET_CONCEPTADS",ft="GET_VASTTAG",bt="GET_PREBIDVASTTAG";se();var mt=e=>{let t=document.createElement("style");t.innerText=e,document.head.appendChild(t)},vt=(e,t,n)=>{let i=Ot(e,Q()),o=i&&i[1][0];if(!Array.isArray(o))return;let[a,s]=o;h(`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}`;mt(`\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;}`),e.appendChild(i)}})(n,a,s)},Tt=async(e,t)=>{let n=globalThis.concept.adUnits[e];if(!n)return!1;let i=n;return(e=>!(e.updateIfEmpty&&0!==e.updateIfEmpty.length||e.dependencies&&0!==e.dependencies.length||e.divExcluser))(n)?i:n.divExcluser&&n.excluserTimeout?(h(`Gonna wait for ${n.divExcluser}`),!await(async(e,t)=>new Promise((function(n){h(`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):!["Initial","Async display"].includes(t)&&!yt()&&i},yt=()=>{let e=O("eventLog").filter((e=>"Event recieved"===e.list)).map((e=>e.msg));return _t({events:e,strings:[gt,lt,pt]})},It=({definition:e})=>{let{path:t,size:n,updateIfEmpty:i,refresh:o,dependencies:a,lazyload:r,targeting:l,divIdOnPage:d,excluserTimeout:c,preRenderCookieless:g,divExcluser:p,cookieLessPath:u,setHeigthOfParent:f,anchor:b,prebidBid:m,prebidSizes:v,setUniqueTargeting:T,rootMargin:y}=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 I=Q(),w=Ot(n,I);Array.isArray(w)&&0===w[1].length&&s("Unit doesnt have appropriate sizes for this viewport -- This will not be defined later"),v&&(w?(v=v.filter((e=>w[1].some((t=>wt(t,e))))),h("prebidSizes changed by GAM viewport rule","pbjs")):v=[]);let C={path:t,sizes:n,refresh:o,dependencies:a,updateIfEmpty:i,divIdOnPage:d,lazyload:r,...u&&{cookieLessPath:u},...g&&{preRenderCookieless:g},...l&&{targeting:l},...l&&{targeting:l},...b&&{anchor:b},...m&&{prebidBid:m},...v&&{prebidSizes:v},...f&&{setHeigthOfParent:f},...y&&{rootMargin:y},...T&&{setUniqueTargeting:T},...p&&{divExcluser:p,excluserTimeout:c||500}},A=C.prebidBid?C.prebidBid.filter((e=>!e.cookieless)).map((e=>(e=>{let t=(globalThis?.conceptConfig?.prebidAliases||[]).find((t=>t[0]===e.bidder)),n=t&&t[1];if(Me[e.bidder]||n&&Me[t[1]]){let n=e.bidder;t&&(n=t[1]);let i={bidder:e.bidder,params:Me[n].transformer(e.params)};return e.disabled&&(i.disabled=e.disabled),i}return e})(e))):[],E=A?(({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:A,sizes:C.prebidSizes}):null;return E&&(C.prebidSettings=E),C},wt=(e,t)=>e.length===t.length&&e.every(((e,n)=>e===t[n])),Ct=e=>{e.targeting.refresh=Number.isInteger(e.targeting.refresh)&&e.targeting.refresh||1;let t=e.targeting.refresh;Je(e.slot,"refresh",t),h(`setAdunitRefreshCount -> Setting refresh = ${t} for ${e.divIdOnPage}`)},At=e=>{e.refreshTimer&&clearTimeout(e.refreshTimer)},Et=({name:e,adUnit:t,refreshFunction:n})=>{At(t),t.targeting=t.targeting||{};h(`refreshOnNextInView -> refresh (${t.divIdOnPage}) in ${t.refresh/1e3}s or next inview after that`),t.refreshTimer=setTimeout((function(){let i=n;if(h(`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);if(z({el:r})){Ct(t);let e=`refreshOnNextInView -> ${a} refresh directly nr ${t.targeting.refresh}`;h(e),n({names:[i],caller:o})}else H({observerConfig:s,element:e.getElementById(a),excutionFunction:(s,r)=>{s.isIntersecting&&(Ct(t),h(`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});else{let i=`refreshOnNextInView -> unit (${t.divIdOnPage}) not loaded first time`;h(i),Et({name:e,adUnit:t,refreshFunction:n})}}),t.refresh)},kt=()=>{globalThis.conceptConfig.skinCallback&&globalThis.conceptConfig.skinCallback()},Pt=async e=>{let{unitsCodes:t,slotsToUse:n}=(e=>{let t=Q(),n=e.filter((e=>!E({adunitPath:e.path}))).filter((e=>{let n=Ot(e.sizes,t);return St(n)}));return{unitsCodes:n.map((e=>e.path||e.getAdUnitPath())),slotsToUse:n}})(e);h(`refreshAdUnit -> ${t} `,"conceptads");let i=globalThis.conceptConfig.usePrebid;!1===globalThis.concept.consentedToCookies&&(h("We are not gonna use prebid, since the user said no to cookies"),i=!1),i?rt(n):((e,t)=>{let n=$();googletag.cmd.push((function(){w(`${e} , ' gpt`);let i=t.map((e=>e.getResponseInformation?e:e.slot));i.length>0?googletag.pubads().refresh(i,n):s("Will not refresh 0")}))})(t,n)};var Ot=(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},St=e=>e[1].length>0;function $t(e){return 2===Ut(e)?e:e.reduce(((e,t)=>Array.isArray(t)?e.concat($t(t)):e.concat(t)),[]).filter(Array.isArray)}function Ut(e){return Array.isArray(e)?1+Math.max(...e.map((e=>Ut(e)))):0}var jt=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])))},xt=(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=$t(e.size).map(jt).filter((e=>e));return"mobile"===t?n.length>0:0===n.length})),_t=({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},Nt=()=>{if(!globalThis.conceptConfig.ABTesters)return;let e=globalThis.conceptConfig.ABTesters,t=[];e.filter((e=>!e.alreadyCalculated)).forEach((e=>{t.push((e=>ie([e.testA,e.testB]).adunitId===e.testA.adunitId?e.testB:e.testA)(e).adunitId),e.alreadyCalculated=!0})),Lt(t)},Rt=e=>globalThis.conceptConfig.ABTesters.find((t=>{let{testA:n,testB:i}=t;return n.adunitId===e||i.adunitId===e})),Lt=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=Rt(t.id);return n&&i&&(e=>{if(!e)return;let t="testB";if(Rt(e).testA.adunitId===e&&(t="testA"),h(`Using the test value = ${t}`,"test"),!globalThis?.conceptConfig?.adUnits)return void h("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=P("strossles");n&&S("strossles",n.filter(t));let i=P("readpeaks");i&&S("readpeaks",i.filter(t));let o=P("adUnits");o&&Array.isArray(o)&&S("adUnits",o.filter(t));let a=`${e.join(",")} Has been removed in connection with A/B Test`;h(a,"test")}};function Mt(e,t){e&&e.postMessage&&e.postMessage(t,"*")}x();var Ft=(e,t)=>{if(globalThis.conceptConfig&&!globalThis.conceptConfig.isPassback){h(`${e} emitted`,"emitter");let n=new CustomEvent(e,t);window.parent.document.dispatchEvent(n)}},Bt=({name:e,divId:t})=>{Ft("unfilledAd",{detail:{adunit:e,unfilled:!0,divId:t}})},qt=({name:e,divId:t})=>{Ft("filledAd",{detail:{adunit:e,filled:!0,divId:t}})},Dt=()=>Ft("withCookies",{detail:{}});window.adn=window.adn||{},t.calls=t.calls||[];var zt=e=>{Bt({name:e.targetId,divId:e.targetId}),C(e.targetId)},Gt=e=>{globalThis.concept.adsloaded=globalThis.concept.adsloaded+1,I(e.targetId),qt({name:e.targetId,divId:e.targetId})},Wt=e=>I(e.widgetId),Vt=({adunitDivId:e,container:t,prerender:n}={adunitDivId:null,container:"iframe",prerender:!1})=>{n&&h(`Pre rendereing ${e}`,"adnuntius");let i=Y()?"mobile":"desktop";globalThis.concept.device=i;let o=globalThis.conceptConfig.adUnits.filter((e=>e.cookieLessPath&&!e.cookieLessPath.includes("/")));o=xt(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=Q(),i=Ot(e[t],n);return St(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:Wt,container:i,onNoMatchedAds:zt,onImpressionResponse:Gt}))(e,i,a,t)}));return(e=>{e.forEach((e=>{if(h(`Queueing ${e.targetId}`,"adnuntius"),!globalThis.conceptConfig.disableAutoCenterCLAds){let t=document.getElementById(e.targetId);t&&(t.style.margin="0px auto")}w(`${e.targetId} - adnuntius`),Ht({slot:e})}))})(s),s.map((e=>e.targetId))},Ht=async({slot:e})=>{h(`Waiting for ${e.targetId} to be in the DOM`,"adnuntius"),null!==await M(`#${e.targetId}`,globalThis.concept.failsafe_timeout)&&Jt(e)},Jt=e=>{h(`Requesting ${e.targetId}`,"adnuntius"),t.calls.push((function(){Qt(e)}))},Qt=e=>{t.useLocalStorage(!1),t.request({requestParams:{proximity:50,load:"lazy"},adUnits:[e]})};x(),ae();var Kt={GAM:"GAM",ADNUNTIUS:"Adnuntius"};ae(),x(),ae(),se();var Yt=({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",...V(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},Xt=async(e,t,n)=>new Promise((async(i,o)=>{try{if(!e)return h("ERROR: Please provide ID","video"),o(new Error("No Id for player"));if(!globalThis.conceptConfig.videoAdunits)return h("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{h(`Creating url for ${e.code}`,"video"),it(globalThis.conceptConfig),window.pbjs.que.push((function(){pbjs.aliasBidder("adform","MPM"),pbjs.aliasBidder("appnexus","msupply"),h(`${e.code} requested`,"video"),pbjs.addAdUnits(e),pbjs.setConfig({useBidCache:!0,cache:{url:"https://prebid.adnxs.com/pbc/v1/cache"}}),h("setting cncpt pbjs","video"),pbjs.requestBids({adUnitCodes:[e.code],bidsBackHandler:function(o){h(`${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;h(`${n} gave a bid of ${t.cpm} (${t.currency}) for ${e}`,"video")}))}));let a=Yt({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);Zt(r),i(r)}})}))}catch(e){o(e)}})))({selectedVideoSettings:a,output:t,vpos:n});i(r)}catch{h(`Something went wrong ${e}`,"video"),o(new Error("error"))}}));function Zt(e){globalThis.concept.videosRequested=globalThis.concept.videosRequested+1,globalThis.concept.videoUrls.push(e)}x();var en=e=>{try{if(!e)throw h("ERROR: Please provide ID","video"),new Error("No Id for player");let t=globalThis.conceptConfig.videoAdunits;if(!t)throw h("ERROR: Please Setup op some video adunits","video"),new Error("No video units");h(`Creating vast tag for ${e}`,"video");let n=t.find((t=>t.playerId===e));if(!n)throw h(`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 l=`${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?(h("SETTING",globalThis.concept?.PPID),l=`${l}&ppid=${globalThis.concept?.PPID}`):h("NOOO"),l}catch{throw new Error("Could not build vasttag")}})(n);return globalThis.concept.vastTags.push(i),i}catch{return h(`Something went wrong ${e}`,"video"),""}},tn={};function nn(e,t){(tn[e]=tn[e]||[]).push(t)}window.addEventListener("message",(function(e){if(e.data){var t=e.data.type,n=tn[t];if(n)for(var i=0;i{let n=e[t-1]?.measureTime;return n<=0&&t>1?an(e,t-1):n},sn=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=t=>((e,t,n)=>{let i=e.find((e=>e.msg.startsWith(t)));return i?parseFloat(i.secondCount+n):0})(e.conceptEvents,t,a),r=t=>((e,t,n)=>{let i=e.find((e=>e.msg.endsWith(t)));return i?parseFloat(i.secondCount+n):0})(e.conceptEvents,t,a),l=((e,t,n)=>{let i=e.find((e=>e.msg===t));return i?parseFloat(i.secondCount+n):0})(e.conceptEvents,"Consent recieved",a),d=[{eventName:"Page_start",measureTime:n},{eventName:"ConceptAds_requested",measureTime:i},{eventName:"ConceptAds_downloaded",measureTime:o},{eventName:"Consent_recieved",measureTime:l},{eventName:"injectad_recieved",measureTime:s("injectNewAds execution requested")},{eventName:"First_prebid_auction_Started",measureTime:s("prebid auction started")},{eventName:"First_GAM_request_initiated",measureTime:r(" Requested")},{eventName:"First_response_from_GAM",measureTime:s("slotResponseReceived")},{eventName:"First_ad_loaded",measureTime:r(" creative iframe loaded")}],c=[];d.forEach(((e,t)=>{null!==e.measureTime&&(t>0&&e.measureTime{if(0===n)t[e.eventName]=e.measureTime;else{let i=an(c,n),o=0===e.measureTime?0:e.measureTime-i;t[e.eventName]=o}}));let g=new URL("https://d22i50b931b1j0.cloudfront.net/timing_track.gif");if(on){let{downlink:e}=on;e&&g.searchParams.set("downlink",e)}return Object.keys(t).forEach((e=>{g.searchParams.set(e,t[e])})),g.href},rn=!1,ln=e=>{let t=e&&e.placement||null;t&&(h(`${t} Requested`,"gpt"),T(`${t} Requested`))},dn=e=>{globalThis.concept.adsloaded=globalThis.concept.adsloaded+1;let t=e&&e.placement||null;if(!t)return;let n=" creative iframe loaded";h(n,"gpt"),T(n),globalThis.conceptConfig.activateTimingTracker&&!rn&&(rn=!0,(()=>{let e=globalThis.performance.getEntriesByType("resource");e||h("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=sn({scriptLoadTime:t,conceptEvents:n});le(i,"timing-pixel"),h("Timing pixel loaded")})());let i=globalThis.concept.adUnits[t];i&&i.setHeigthOfParent&&((e,t)=>{let n=`[id*='${t.adunitId}'] iframe`,i=document.querySelectorAll(n),o=(e=>{let t=0;return e.forEach(((e,n)=>{e.id.includes("google_ads_iframe_")&&(t=n)})),t})(i),a=i[o],s=(a.height?`${a.height}px`:null)||window.getComputedStyle(a,null).height,r=document.querySelector(`[id*='${t.adunitId}']`);if("1px"!==s)if(a?.parentElement?.parentElement&&s){e(`Setting height of divid ${t.adunitId} to: `,"conceptads");let n=a.parentElement.parentElement;n.style.height=s,n.style.minHeight=s,r.style.height=s,r.style.minHeight=s}else e("Not gonna set height (no iframe or height)","conceptads");else e("We will NOT set heigth to 1, as its prebid","conceptads")})(h,e),y(`${dt} - ${t}`),I(t),i&&qt({name:t,divId:i.divIdOnPage}),cn(t)},cn=e=>{for(let[t,n]of globalThis.concept.updateWhenResolved.entries())n===e&&(h(`${n} has just been loaded - if no skin we should refresh ${t}`),globalThis.concept.updateWhenResolved.delete(t),h(`${e}: now has ${globalThis.concept.updateWhenResolved.size} dependencies we should resolve`),setTimeout((function(){let e=yt(),n=globalThis.concept.adUnits[t];if(n){let i=E({adunitPath:n.path});!e&&!i&&(h(`No skin found, refreshing ${t}`),Pt([n]))}}),10))},gn=e=>e.frameElement&&e.frameElement.id,pn=(e,t)=>{let n=gn(t);y(`${ut} - ${n}`)},un=(e,t)=>{try{let e=gn(t);y(`${lt} - ${e}`)}catch{y(`${lt} - Iframe error`)}kt(),e&&e.placement&&h(` Macro: unload ${e.placement}`,"gpt")},hn=()=>{kt(),y(gt)},fn=(e,t)=>{(e=>{let t={cncptads:JSON.stringify(globalThis.concept)};Mt(e,{type:"concept_ads",payload:{cncptads:JSON.stringify(globalThis.concept)}}),Ft("concept_ads",{detail:t})})(t.window),y(ht)},bn=(e,t)=>{let{playerId:n}=e;((e,t)=>{Mt(e,{type:"vast_tag",payload:{VASTTag:globalThis.concept.buildVastTag(t)}})})(t.window,n),y(ft)},mn=(e,t)=>{let{playerId:n}=e;(async(e,t)=>{Mt(e,{type:"prebid_vast_tag",payload:{VASTTag:await globalThis.concept.requestPrebidUrl(t)}})})(t.window,n),y(ft)},vn=()=>{kt(),y(pt)};N(),N(),x();var Tn=!1,yn=(e,t,n)=>{((e,t)=>t.includes(e.id)&&e.getAttribute&&!e.getAttribute("dublicatenoted"))(e,t)&&(({consented:e,node:t})=>{t.setAttribute("dublicatenoted","true"),h(`Found dublicate of ${t.id}`),kn({consented:e,node:t})})({consented:n,node:e}),e.childNodes&&[...e.childNodes].forEach((e=>yn(e,t,n)))},In=e=>{let{failsafe_timeout:t}=e;return t||0===t?t:1e3},wn=()=>globalThis.concept.targeting=V(globalThis.conceptConfig),Cn=e=>{let t=globalThis.concept.adUnits[e];t&&Pt([t])},An=(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},En=e=>P("adUnits").find((t=>t.divIdOnPage===e))||{},kn=({consented:e,node:t,display:n=!0})=>{if(!t)return null;let i=En(t.id);if(!i||i.disabled)return null;let o=(e=>JSON.parse(JSON.stringify(e)))(i),a=`${i.divIdOnPage}-${oe()}`;return h(`Renaming ${t.id} to ${a}`),((e,t)=>{let n=O("updateWhenResolved");if(n){P("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},Pn=e=>{globalThis.concept[e.cmd]?globalThis.concept[e.cmd](e.args):h("could not find function $command.cmd}","error")},On=e=>{let t=()=>{!function(e){He(O("targeting")),e()}(e)};K()?t():function(e){let t=!1;if(D)t=!0,e();else{let n=function(){"complete"===document.readyState&&i()},i=function(){t||(D=!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()}))},Sn=(e,t)=>t?t===Kt.GAM?e.path:e.cookieLessPath:e.path,$n=({consented:e,unit:t,display:n})=>{let i=P("cookielessAdserver");!e&&P("checkForConsent")&&(t.path=Sn(t,i),t.path||s(`No path for ${t.id}`)),globalThis.concept.define(t.divIdOnPage,t),n&&globalThis.concept.display({element:t.divIdOnPage,name:t.divIdOnPage})};var Un=async({names:e,caller:t})=>{if(!Array.isArray(e))throw Error("Please call this method with an array of ids");h(`REFRESH --\x3e (CALLER ${t}): refresh ${e}`,"function");let n=[],i=O("adUnits");e.forEach((e=>{let o=i[e];o?n.push((async({name:e,caller:t,adUnit:n})=>{let i=await Tt(e,t);if(n.requested=!0,n.refresh&&(h(`REFRESH --\x3e scheldule for later: ${e}`),Et({name:e,adUnit:n,refreshFunction:Un})),!i)return h(`REFRESH --\x3e ${e} is not ready to be rendered`),Promise.resolve();("scheduleForLater"===t||!n.lazyload)&&Pt([i])})({name:e,caller:t,adUnit:o})):s(`No configured adunit found for ${e}`)})),n.length>0&&await Promise.all(n)},jn=(e,t)=>{let n=O("adUnits"),i=n.hasOwnProperty(e),o=t.disabled;if(i||o)return h(`Will not define ${e}`),null;n[e]=It({definition:t});let a=n[e];if(!("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype||(h("Can not use the IntersectionObserver"),s("Can not use the IntersectionObserver"),0)))return h(`Removing lazyload from ${e}`),void(n[e].lazyload=!1);a.lazyload&&setTimeout((function(){L({observingList:globalThis.concept.observing,elementId:a.divIdOnPage,refreshFunc:Pt,refreshWhenReadyFunction:Un,scheduleLaterFunc:Et})}),0)},xn=async({element:e,name:t})=>{try{let n=O("failsafe_timeout"),i=O("consentedToCookies"),o=globalThis.concept.adUnits[t];if(!o)return void s(`No definition for ${t}, sorry`);let{path:a,sizes:r,targeting:l,anchor:d,setUniqueTargeting:c,divIdOnPage:p}=o,u={};if(d?u={id:t}:(u=await M(`#${e}`,n),u=(({container:e,consented:t,configuration:n})=>(n.allowAdUnitDublicates&&(e.forEach(((e,n)=>{0!==n&&kn({consented:t,node:e})})),e=e[0]),e))({container:u,consented:!!i,configuration:k()})),u){let t=O("adUnits");if("true"===g("showOverlay"))return void vt(r,e,u);if(!t[p]||t[p].requested)return void h(`ad unit already request,loaded or deleted by quick insertions: ${p}`);(e=>{let t=Q(),n=Ot(e,t);return!(Array.isArray(n)&&0===n[1].length)})(r)?Qe({path:a,size:r,elementId:p,anchor:d,targeting:l,setUniqueTargeting:c,container:u}):s("Not correct adunits sizes for viewport"),t[p].requested||Un({names:[p],caller:"Async display"})}else(e=>{for(let t of globalThis.concept.updateWhenResolved.keys())if(t===e){let e=globalThis.concept.adUnits[t];e?(h(`Gonna refresh: ${t} beacuse dependant is resolved`),Pt([e])):h(`Could not refresh: ${t} As it was not found in internal config`)}})(e),s(`${e} could not be populated (div not found)`)}catch(e){console.error(e),s("Could not run the display function")}},_n=(e={adunitDivId:"",consented:!0})=>{let{consented:t,adunitDivId:n}=e;h(`User has consented (directly or indirectly by the page not having a CMP) = ${t} ${n||null}`);let i=globalThis.conceptConfig;t&&globalThis.concept.consentStatus!==Fe&&(it(i),Re(i,h)),f(),On((async function(){h("In start function"),i.haltInit&&(h(`Halting all with ${i.haltInit} and updating targeting`),await(e=>new Promise((t=>setTimeout(t,e))))(i.haltInit),globalThis.concept.updateTargeting());let e=Y()?"mobile":"desktop";globalThis.concept.device=e;let o=xt(i.adUnits,e);t||(o=(e=>{let t=P("cookielessAdserver");return e.filter((e=>(e.cookieLessPath=Sn(e,t),!(!e.cookieLessPath||!e.cookieLessPath.includes("/"))&&e)))})(o)),n&&(o=o.filter((e=>e.divIdOnPage===n))),((e,t)=>{e.forEach((e=>{e.disabled||$n({consented:t,unit:e,display:!0})}))})(o,t),i.allowAdUnitDublicates&&(({consented:e,nodeToWatch:t=document})=>{if(!0!==Tn){let n=P("adUnits").map((e=>e.divIdOnPage));if(Tn=!0,globalThis.conceptConfig.avoidMutationObserver)h("Interval observer started for dublications"),setInterval((()=>{n.forEach((t=>{let n=document.getElementById(t);if(n&&!n.getAttribute("hasbeenfound")){n.setAttribute("hasbeenfound","true");let t=P("adUnits").find((e=>e.divIdOnPage===(n?n.getAttribute("id"):"")));$n({consented:e,unit:t,display:!0})}}))}),100);else{let i=new MutationObserver((function(t){for(let i of t)for(let t of i.addedNodes)yn(t,n,e)}));h("Mutation observer started for dublications"),i.observe(t,{childList:!0,subtree:!0})}}})({consented:t})}))};x(),ae(),Le(),x(),Le(),x();var Nn=({contxt:e,logger:t})=>{t("Dentsu gonna be Injected");let n=(e=>{for(var t=e+"=",n=decodeURIComponent(document.cookie).split(";"),i=0;i{window._adftrack.push({pm:576327,divider:encodeURIComponent("|"),pagename:encodeURIComponent(t),order:{sv1:"Concept_data",sv2:n,sv3:window.location.href,sv22:window.location.hostname,sv4:e.join(",")}})})),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)}()},Rn=async()=>{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&&Nn({contxt:e.audiences,logger:h})),["IAB1","IAB2","IAB3","IAB4"].forEach((t=>{e?.[t]?.id&&(n[t]=e[t].id)})),globalThis.concept.targeting={...globalThis.concept.targeting,...n},h("Contextual targeting injected"),He(n),n)))}catch(e){return s(`Something went wrong with concept contextual targeting: ${e}`),Promise.reject(e)}};x(),x(),se(),ve();var Ln=navigator.connection||navigator.mozConnection||navigator.webkitConnection,Mn=e=>{if(globalThis.conceptConfig.enableErrorReporting){let t=(e=>{let t={},n=new URL("https://d1jthfopj0ipi6.cloudfront.net/error_track.gif");if(Ln){let{downlink:e}=Ln;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",oe()),Object.keys(t).forEach((e=>{n.searchParams.set(e,t[e])})),n.href})(e);le(t,"error-pixel"),h("Error pixel loaded")}},Fn={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"},Bn=e=>h(`got CMP event: ${e.eventStatus}`);function qn(e){h(`error callback: ${e}`),__tcfapi("getTCData",2,(function(e){e.gdprApplies||Mn("gdprNotApplies")})),Mn("CMP error")}var Dn=e=>{e.noUsableConsent?e.legitimateInterests?(globalThis.concept.consentStatus=Fe,globalThis.concept.targeting.requestMode="LIMITED"):e.noUsableConsent?(globalThis.concept.consentStatus=De,globalThis.concept.targeting.requestMode=De,h("The user cosents does not meet the requirements to 'normal' load ads."),globalThis.concept.consentedToCookies=!1):(globalThis.concept.consentStatus=Be,globalThis.concept.targeting.requestMode=Be):(globalThis.concept.consentStatus=qe,globalThis.concept.targeting.requestMode=qe),Ft("consentRecieved",{detail:{}})},zn=()=>{h("executeQueue ----\x3e executing consentQueue","function");let e=globalThis.concept.consentQueue||[];e.forEach(((t,n)=>{v("(Refresh dequeued and executed)"),e[n]()})),globalThis.concept.consentQueue=[]},Gn=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:Fn[t+1],allowed:e})));let a=!!e.purpose&&n.some((e=>!t[e]));return{noUsableConsent:e.gdprApplies&&(0===o||!0===a),legitimateInterests:Wn(e)}},Wn=e=>{let t=e?.purpose?.legitimateInterests||{},n=t[2],i=t[7],o=t[9],a=t[10];return!!(n&&i&&o&&a)},Vn=({callback:e})=>{h("Loading ads ..."),!1!==globalThis.concept.consentedToCookies&&(globalThis.concept.consentedToCookies=!0,Dt(),zn(),globalThis.conceptConfig.dontCallInitial||e({consented:!0}))};function Hn({callback:e}){function t(t,n){h(`Succesful consent recieved from ${n}`),T("Consent recieved");let i="Adnuntius"===globalThis.conceptConfig.legitimateStepAdserver,o=Gn(t);if(Dn(o),o.noUsableConsent){if(o.legitimateInterests&&!i)Ye(),Vn({callback:e});else if(o.noUsableConsent||i){if(!globalThis.conceptConfig.dontCallInitial)return Jn({callback:e});zn()}}else Vn({callback:e})}h("consent.js run"),Qn()||(h("No __tcfapi found at all (should be stubbed)","error"),globalThis.concept.consentStatus=ze,Mn("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))}(),h("tcf stub loaded")),Kn.tcfApiExists()?(Kn.addEventListener("useractioncomplete",t,qn),Kn.addEventListener("tcloaded",t,qn),Kn.addEventListener("cmpuishown",Bn,qn)):(h("No tcfApi or Exists"),globalThis.conceptConfig.dontCallInitial?Jn({callback:function(){s("could not find TCF api")}}):Jn({callback:e}))}var Jn=({callback:e,adunitDivId:t="",SPAOverwrite:n=globalThis.conceptConfig.dontCallInitial})=>{h("Lets kick of cookieless"),Ft("cookieless",{detail:{}});let i=globalThis.conceptConfig.cookielessAdserver;if(globalThis.conceptConfig.checkForConsent&&(!i||!Object.values(Kt).includes(i)))throw Error("Please setup a cookieless adserver");(0===globalThis.concept.adsloaded&&!globalThis.concept.initialCalled||n)&&(i===Kt.GAM&&(h("GAM cookieless","gpt"),e({consented:!1,adunitDivId:t})),i===Kt.ADNUNTIUS&&(h("ADNUNTIUS cookieless","adnuntius"),Vt({adunitDivId:t,prerender:!1,container:"div"})))};function Qn(){return window.__tcfapi}var Kn={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};N();var Yn=!1,Xn=()=>{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,h(`URL changed to ${i}`);let e=Object.keys(globalThis.concept.adUnits);globalThis.conceptConfig.dontCallInitial&&(h(`Clearing timeout (refresh) for ${e.join(",")}`),e.forEach((e=>{At(globalThis.concept.adUnits[e])}))),globalThis.conceptConfig.activateConceptTargeting&&Rn(),Ft("urlChange",{detail:{}})}}),300)},Zn=()=>{globalThis.concept.injectNewAds()},ei=e=>{globalThis.concept.injectAds({adunitDivId:e,consented:!0})},ti=(e,t)=>{let n=globalThis.conceptConfig.checkForConsent,i=O("consentStatus")===qe;n&&i?ei(e):n?__tcfapi("getTCData",2,(function(n){h("Manually retrieved tcData"),((e,t,n)=>{let i=Gn(e),o="Adnuntius"===globalThis.conceptConfig.legitimateStepAdserver;Dn(i),i.noUsableConsent?i.legitimateInterests&&!o?(Ye(),ei(t)):(i.noUsableConsent||o)&&Jn({callback:globalThis.concept.injectAds,adunitDivId:n,SPAOverwrite:!0}):ei(t)})(n,e,t)})):!1===globalThis.concept.consentedToCookies?Jn({callback:globalThis.concept.injectAds,adunitDivId:t}):globalThis.concept.injectAds({adunitDivId:e,consented:!0})},ni=e=>{globalThis.concept.updateIfEmpty.delete(e),globalThis.concept.initialCalled=!1,globalThis.concept.observing=[];let t=e||null;h(`refreshSelected ${e}`,"function"),ti(t,e)},ii=(e,t)=>{let n=conceptConfig.adUnits.map((e=>e.divIdOnPage)),i=globalThis.conceptConfig.adUnits.find((t=>t.divIdOnPage===e))?.disabled;if(n.includes(e)&&!i){let n=document.getElementById(e),i=!!globalThis.concept.consentedToCookies,o=kn({consented:i,node:n,display:!1}),a=conceptConfig.adUnits.find((e=>e.divIdOnPage===o));if(o&&a?.preRenderCookieless?Vt({adunitDivId:o,container:"iframe",prerender:!0}).forEach((e=>{ni(e.split("prerender").join("realrender"))})):ni(o||e),t||P("autoUnloadSlots")){(e=>{let t=O("adUnits");Object.keys(t).filter((n=>t[n].path===e)).forEach((e=>{let n=t[e];if(n.slot){h(`Unloading ${e}`),googletag.cmd.push((function(){googletag.destroySlots([n.slot])})),n.refresTimer&&clearTimeout(n.refreshTimer);let i={deleted:!0};t[e]=i;let o=P("adUnits").filter((e=>e.divIdOnPage!==n.divIdOnPage));S("adUnits",o),document.getElementById(e)?.remove()}}))})(En(e).path)}}else"string"==typeof e&&e.length>0&&h(`${e} was not found in config or its disabled`,"error");!e&&!globalThis.conceptConfig.dontAllowRefreshAll&&(h("No specific adunit, we refresh all"),globalThis.concept.adUnits={},googletag.destroySlots&&googletag.destroySlots(),ni(""))},oi=(e,t=!1)=>{h(`injectNewAds ${e}`,"function"),T("injectNewAds execution requested"),globalThis.concept.updateTargeting(),He(globalThis.concept.targeting);let n=globalThis.conceptConfig.checkForConsent&&!0,i=globalThis.concept.consentStatus===Fe,o=globalThis.concept.consentedToCookies,a=n&&o;if((!n||a||i)&&(h(`injectNewAds consentFlag (${n}) || fullconsented (${a}) || limitedFlow (${i})`,"function"),ii(e,t)),n&&!o&&!i){h("injectNewAds no hasConsented & no limitedFlow","function");let n=()=>ii(e,t);m(`(Refresh queued) ${e}`),n&&globalThis.concept.consentQueue.push(n)}!1===o&&zn(),null===o&&!Yn&&(h("Adding eventlisteners for the CMP"),Kn.addEventListener("useractioncomplete",zn,qn),Kn.addEventListener("tcloaded",zn,qn),Yn=!0)},ai=e=>{h(`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),oi(e.targetDiv,!1)}else s("Your trying to dublicate a non existing ad unit")};ve(),ae(),x();var si=1,ri="concept",li=()=>{globalThis.conceptConfig.videoAdunits?.forEach((e=>{e.divIdOnPage&&e.videoPlayer===si&&(async e=>{let t=e.divIdOnPage;h(`Waiting for ${t} to be visible`,"video");let n=await M(`#${t}`,0);h(`Inserting BB Player into ${t} `,"video");let i=e.BBUNIT,o=`https://${ri}.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=`${ri}-${i}`,s=globalThis.bluebillywig.renderers.find((e=>e._id===o));s&&s.bootstrap(e,n)},document.getElementsByTagName("head")[0].appendChild(s)})(e)}))},di=e=>{try{e.cookielessAdserver===Kt.ADNUNTIUS&&(e=>{window.adn&&window.adn.calls&&window.adn.request?e("Adnuntius already loaded"):(Oe("https://cdn.adnuntius.com/adn.js",document),e("Adnuntius Injected"))})(h),""!==e.customCSS&&e.customCSS&&mt(e.customCSS),e.reportTrackingAs&&de(`?loaded=true&site=${e.reportTrackingAs}`),e.trySendingSpecificGeo&&B({targetingFunction:He}),e.oneOfAutoExecuteBB&&li(),e.activateConceptTargeting&&Rn(),e.customScript&&xe(h,e.customScript),!globalThis.disableRMBRef&&e.RMBRef&&je(h,e.RMBRef),(e.refreshOnUrlChange||e.dontCallInitial)&&Xn(),e.refreshOnUrlChange&&window.addEventListener("urlChange",Zn,!0),e.dontCallInitial&&window.addEventListener("urlChange",(()=>{Ne()}),!0),Nt(),globalThis.concept.injectAds=_n,globalThis.concept.define=jn,globalThis.concept.refresh=Un,globalThis.concept.display=xn,globalThis.concept.injectNewAds=oi,globalThis.concept.loadCopyOf=ai,globalThis.concept.connect(ht,fn),globalThis.concept.connect(ft,bn),globalThis.concept.connect(bt,mn),globalThis.concept.connect(gt,hn),globalThis.concept.connect(pt,vn),globalThis.concept.connect(lt,un),globalThis.concept.connect(dt,dn),globalThis.concept.connect(ct,ln),globalThis.concept.connect(ut,pn),Ft("concept_loaded",{detail:{}})}catch(e){console.log(e)}};globalThis.googletag=globalThis.googletag||{},globalThis.googletag.cmd=globalThis.googletag.cmd||[];var ci=e=>{try{di(e);let t=!e.dontCallInitial,n=!e.refreshOnUrlChange,i=t&&n;e.checkForConsent?Hn({callback:e=>{li(),globalThis.concept.injectAds(e)}}):i&&(Dt(),li(),globalThis.concept.injectAds({consented:!0})),(()=>{let e=[];globalThis.preConcept&&(e=globalThis.preConcept.queue||e,e.forEach((e=>{Pn(e)})),globalThis.preConcept.queue={},globalThis.preConcept.queue.push=function(e){Pn(e)},h("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||[],x(),x(),ve();var gi=["49114284","5706918"],pi=!1,ui=!1,hi=!1,fi=!1,bi=!1,mi=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")}gi.some((e=>n.includes(e)))&&(y(`slotResponseReceived - ${t}`),T(`slotResponseReceived - ${t}`),e.slot.getResponseInformation()||(cn(i),Bt({name:t,divId:i}),C(i)))},vi=e=>{let t=e.slot.getAdUnitPath();if(gi.some((e=>t.includes(e)))){let t=e.slot.getSlotId().getId();setTimeout((function(){window?.top?.postMessage({type:ct,payload:{placement:e.slot.getSlotElementId(),adunitId:t}},"*")}))}},Ti=e=>{let t=e.slot.getAdUnitPath(),n=e.slot.getSlotId().getId(),i=e.slot.getSlotElementId();if(globalThis.concept.adUnits[i],gi.some((e=>t.includes(e)))){let o=e.slot.getResponseInformation();y(`(slotOnload) ${t} - winning lineitem = ${o?o.lineItem:"no info"}`);let a={type:dt,payload:{placement:i,adunitId:n}};setTimeout((function(){window?.top?.postMessage(a,"*")}))}},yi=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&&(h(`${n} has just been loaded - and its empty ${t}`),globalThis.concept.updateIfEmpty.delete(t),h(`${e}: now has ${globalThis.concept.updateIfEmpty.size} empty dependencies we should resolve`),setTimeout((function(){let e=globalThis.concept.adUnits[t];e&&(E({adunitPath:e.path})||(h(`No skin found, refreshing ${t}`),Pt([e])))}),10))})(t),gi.some((e=>i.includes(e)))){let i=e.creativeId||e.sourceAgnosticCreativeId,o=e.lineItemId||e.sourceAgnosticLineItemId;if(e.isEmpty&&(i="unfilled",o="unfilled"),h(`We recieved creative code: ${t}, creative - ${i}, lineitem - ${o}`,"gpt"),globalThis.conceptConfig.useAdvancedTracking&&ce({creativeId:i,lineItemId:o,adunitCode:t}),n){n.rendered=!0;let t={isEmpty:e.isEmpty,size:null};e.isEmpty||(t.size={width:e.size[0],height:e.size[1]})}}},Ii=e=>{let t=e.slot.getSlotElementId(),n=e.slot.getAdUnitPath(),i=e.slot.getOutOfPage(),o=globalThis.concept.adUnits[t];o||h("Could not find adunit in slotViewable"),i&&(h("An outofpage unit is being showed"),y(`Out of page loaded - ${n}`)),gi.some((e=>n.includes(e)))&&(o&&(o.viewableCount=o?.viewableCount?o.viewableCount+1:1),(({divId:e})=>{Ft("viewableAd",{detail:{viewable:!0,divId:e}})})({divId:t}),h(`impressionViewable: ${t}`,"gpt"))},wi=!1,Ci=()=>{try{wi||(h("googletagConfigured being queued","gpt"),wi=!0,googletag.cmd.push((function(){h("googletagConfigured not configured: Enable DFP services","gpt"),globalThis.googletag.pubads().enableSingleRequest(),globalThis.googletag.pubads().disableInitialLoad(),globalThis.googletag.pubads().setCentering(!0),globalThis.googletag.pubads().collapseEmptyDivs(),hi||(hi=googletag.pubads().addEventListener("slotResponseReceived",mi)),fi||(fi=googletag.pubads().addEventListener("slotOnload",Ti)),ui||(ui=googletag.pubads().addEventListener("slotRequested",vi)),pi||(pi=googletag.pubads().addEventListener("impressionViewable",Ii)),bi||(bi=globalThis.googletag.pubads().addEventListener("slotRenderEnded",yi)),globalThis.googletag.pubads().set("page_url",globalThis?.conceptConfig?.page_url||globalThis?.concept?.targeting?.UrlHost);let e=(e=>{let t=ne(e);return t?((e,t)=>{let n=0;for(let t=0;t{Ft("PPIDSet",{detail:{id:e}})})(e),googletag.pubads().setPublisherProvidedId(e)),globalThis.googletag.enableServices()})))}catch(e){console.error(e),s("Could not setup googletag globals")}},Ai=e=>{let t=!1;t||(t=!0,(e=>{if(We&&!globalThis.conceptConfig.siteLoadsGpt){let t="https://securepubads.g.doubleclick.net/tag/js/gpt.js";globalThis.conceptConfig.tryLimitedAds?(h("adding event listener to window.consentRecieved"),window.addEventListener("consentRecieved",(()=>{globalThis.concept.consentStatus===Fe&&(t="https://pagead2.googlesyndication.com/tag/js/gpt.js"),Oe(t,document,!0)}),{once:!0,capture:!0})):Oe(t,document,!0),We=!1,e("GPT Injected"),globalThis.googletag}})(h),Ci(),googletag.cmd.push((function(){y("Googletag loaded")})),ci(e),e.dontCallInitial||e.adUnits.filter((e=>e.preRenderCookieless)).forEach((e=>{Vt({adunitDivId:e.divIdOnPage,container:"iframe",prerender:!0})})))};x();try{globalThis.conceptConfig||console.error("No configuration found. abort!");let e=globalThis.conceptConfig;globalThis.concept=globalThis.concept||(e=>({adUnits:{},logme:h,connect:nn,initialCalled:!1,failsafe_timeout:In(e),updateWhenResolved:An(e.adUnits,"dependencies"),discardedForTest:[],updateIfEmpty:An(e.adUnits,"updateIfEmpty"),observing:[],initTime:performance.now(),consentedToCookies:null,eventLog:[],adsloaded:0,idsNotFound:0,videoUrls:[],vastTags:[],videosRequested:0,consentStatus:Ge,buildVastTag:en,requestPrebidUrl:Xt,directRefresh:Cn,consentQueue:[],device:null,updateTargeting:wn,targeting:V(globalThis.conceptConfig)}))(e),u?fetch("https://realtimeconfig.cncpt.dk/").then((e=>e.json())).then((t=>{let n={...e,...t};globalThis.conceptConfig=n,h("We are merging the live config with the deployed config"),Ai(n)})):Ai(e)}catch(Xe){console.log(Xe)}})()},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.YWSz9GwBF",(function(t){e.utils.runTags("YWSz9GwBF",["tPbtMb2q1W"])})),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)}