(()=>{"use strict";window["br_freestar_0_1"]=e=>{try{const t=window.googletag=window.googletag||{cmd:[]},n=window.freestar=window.freestar||{queue:[]},i=e.templateParams.placementName,a=s(e.targeting),o=25;let l,r=e.prebidGlobalInstanceName&&window[e.prebidGlobalInstanceName];const d=function(t){t.adUnitCode===e.divId&&(l=[t.width,t.height])};function s(e){let t={};for(let n of e)t[n.key]=Array.isArray(n.value)?n.value:[n.value];return t}function c(n){let i=a=>{if(n===a.slot.getSlotElementId()){t.pubads().removeEventListener("slotRenderEnded",i);const r={gamInfo:{lid:a.lineItemId,oid:a.campaignId},adUnit:a.slot.getAdUnitPath()};if(a.isEmpty)return e.callback(!0,void 0,r);{const d=document.getElementById(n);function s(t){return l=l||t.size,setTimeout((()=>{d&&d.parentElement&&(d.parentElement.style.minHeight=l[1]+"px")}),3e3),e.callback(t.isEmpty,void 0,r)}1===a.size[0]&&1===a.size[1]?d&&(o=d,new Promise((e=>{let t,n;n=setTimeout((()=>(clearInterval(t),e())),5e3),t=setInterval((()=>{if(u(o))return clearInterval(t),clearTimeout(n),e()}),200)}))).then((e=>{s(a)})):s(a)}}var o};t.pubads().addEventListener("slotRenderEnded",i)}function u(e){const t=m(e);return t.w>o&&t.h>o}function m(e){let t={w:0,h:0};return e.childNodes.forEach((e=>{if((n=e)&&n instanceof Element){let n=w(e);t.w=Math.max(t.w,n.w),t.h+=n.h}var n})),t}function w(e){const t=e.getBoundingClientRect();return{h:t.height,w:t.width}}r.que=r.que||[],r.que.push((function(){r.onEvent("bidWon",d)})),n.queue.push((function(){n.newAdSlots([{placementName:i,slotId:e.divId,targeting:a}]),c(e.divId)}))}catch(g){e.callback(!0,g.message)}}})();