(()=>{const e=(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)<=768,t=[{slot:"/22562061343/0223_01_enfoco-com-br_inline__",tagId:"embi_display_video_49a17f35",type:"DISPLAY_VIDEO",ubication:"body > section.efo-article-container > section > article > section > p:nth-child(7)",position:"INSERT_AFTER",manualInsertion:!1,mobileSizes:[[300,250],[336,280],[300,600],[320,480],[320,100],[320,50]],offset:20,tbLoaderURL:"",adunitMobile:{code:"embi_display_video_49a17f35",mediaTypes:{video:{context:"outstream",playerSize:[],mimes:["video/mp4","video/webm","video/ogg"],protocols:[1,2,3,4,5,6,7,8],placement:2,plcmt:4,playbackmethod:[2],skip:1},banner:{sizes:[[300,250],[336,280],[300,600],[320,480],[320,100],[320,50]]}},bids:[],ortb2Imp:{ext:{gpid:"/22562061343/0223_01_enfoco-com-br_inline__",data:{pbadslot:"/22562061343/0223_01_enfoco-com-br_inline__"}}}}}];!function(e,t){if(!document.querySelector(`script[src='${e}']`)){const n=document.createElement("script");n.async=t,n.type="text/javascript",n.src=e,document.head.appendChild(n)}}("https://securepubads.g.doubleclick.net/tag/js/gpt.js",!1);var n=window.googletag=window.googletag||{};n.cmd=n.cmd||[],n.cmd.push((function(){t.filter((e=>"TABOOLA_INTEGRATION"!==e.type)).forEach((t=>{const o=e?t.mobileSizes:t.desktopSizes;t.adSlot=n.defineSlot(t.slot,o,t.tagId).setForceSafeFrame(!1).addService(n.pubads()),"DOUBLE_BOX"===t.type&&(t.adSlotB=n.defineSlot(t.slot2,o,t.tagId2).setForceSafeFrame(!1).addService(n.pubads()))})),n.pubads().enableSingleRequest(),n.pubads().enableLazyLoad({fetchMarginPercent:200,renderMarginPercent:100,mobileScaling:1}),n.pubads().collapseEmptyDivs(!0),n.pubads().setCentering(!0),n.pubads().addEventListener("slotRenderEnded",(function(e){const n=e.slot.getSlotElementId();t.forEach((t=>{n!==t.tagId||e.isEmpty||("DISPLAY_VIDEO_STICKY"===t.type&&showCornerAd(cornerContainer),"FOOTER_INTOP"===t.type&&showFooterInTopAd(footerInTopContainer),"HIGH_IMPACT"!==t.type||isIntertitialAdShown||showEmbiIntertitial(INTERSTITIAL_CONTAINER))}))})),n.enableServices(),t.map((t=>{!function(t){if(t.manualInsertion&&"TABOOLA_INTEGRATION"!==t.type){const e=t.tagId;new MutationObserver(((t,o)=>{document.getElementById(e)&&(n.cmd.push((function(){n.display(e)})),o.disconnect())})).observe(document.body,{childList:!0,subtree:!0})}else{const i=t.type,a=t.position,c=t.ubication,r=t.tagId,d=t.offset;try{if("TABOOLA_INTEGRATION"===i)createTaboolaContainer(t);else if("HIGH_IMPACT"===i)INTERSTITIAL_CONTAINER=createInterstitialContainer(r);else if("DISPLAY_VIDEO_STICKY"===i)cornerContainer=createCornerContainer(r,a,d);else if("FOOTER_INTOP"===i)footerInTopContainer=createfooterInTopContainer(r,a);else if("DOUBLE_BOX"===i){const n=document.querySelector(`${c}`);if(!n)return console.error(`Elemento con clase '${c}' no encontrado en el DOM para el anuncio ${r}. No se pudo insertar el DIV.`),!1;const i=t.tagId2,d=document.createElement("div");d.id=`container_${r}`,(o=d).style.display="flex",o.style.flexDirection=e?"column":"row",o.style.gap="24px",o.style.marginBottom="24px",o.style.background="transparent",o.style.justifyContent="center";const s=document.createElement("div");s.id=r,d.appendChild(s);const l=document.createElement("script");l.textContent=`\n googletag.cmd.push(function() {\n googletag.display('${r}');\n });\n `,s.appendChild(l);const p=document.createElement("div");p.id=i,d.appendChild(p);const m=document.createElement("script");switch(m.textContent=`\n googletag.cmd.push(function() {\n googletag.display('${i}');\n });\n `,p.appendChild(m),a){case"INSERT_BEFORE":n.insertAdjacentElement("beforebegin",d);break;case"INSERT_AFTER":n.insertAdjacentElement("afterend",d);break;default:n.appendChild(d)}}else{const e=document.querySelector(`${c}`);if(!e)return void console.error(`Elemento con clase '.${c}' no encontrado en el DOM para el anuncio ${r}.`);const t=document.createElement("div");t.id=r,t.style.marginBottom="24px";const n=document.createElement("script");switch(n.textContent=`\n googletag.cmd.push(function() {\n googletag.display('${r}');\n });\n `,t.appendChild(n),a){case"INSERT_BEFORE":e.insertAdjacentElement("beforebegin",t);break;case"INSERT_AFTER":e.insertAdjacentElement("afterend",t);break;default:e.appendChild(t)}}setInterval((function(){if(t.adSlot){if("HIGH_IMPACT"===t.type&&isIntertitialAdShown)return;n.pubads().refresh([t.adSlot])}t.adSlotB&&n.pubads().refresh([t.adSlotB])}),3e4)}catch(e){console.error(`Error procesando el anuncio ${r}:`,e)}}var o}(t)}))}))})();