PageSourceSearch

https://www.meteored.cr/js/bundle/8023/ba7427861fd4cb71733b.js

js meteored.cr collected 2026-09-26 15:32:44 UTC 10,668 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunktiempo=self.webpackChunktiempo||[]).push([[8023],{8023:function(t,e,i){i.d(e,{i:function(){return d}});var n=i(4678),s=i(4840),a=function(t,e,i,n){return new(i||(i=Promise))(function(s,a){function d(t){try{r(n.next(t))}catch(t){a(t)}}function o(t){try{r(n.throw(t))}catch(t){a(t)}}function r(t){var e;t.done?s(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(d,o)}r((n=n.apply(t,e||[])).next())})};class d{constructor(t){this.TIME_TO_REFRESH=3e4,this.adunit=t,this.slot=null,this.targetings=[],this.has_to_refresh=!1,this.observer=null,this.listener=null,this.timeout=null,this.parent_id=null}getSlot(){return this.slot}getObserver(){return this.observer}getListener(){return this.listener}getTimeout(){return this.timeout}getParentId(){return this.parent_id}static getPopUpBlock(){return d.pop_up_block}static setPopUpBlock(t){d.pop_up_block=t}setParentId(t){this.parent_id=t}addTargeting(t){this.targetings.push(t)}addTargetingMap(t){Object.entries(t).forEach(([t,e])=>this.addTargeting({key:t,value:e}))}defineSlot(){this.slot=googletag.defineSlot(this.adunit.ad_unit_path,this.adunit.ad_unit_sizes,this.adunit.ad_unit_id)}defineSlotOutOfPage(){var t,e;const i=null===(e=null===(t=googletag.enums)||void 0===t?void 0:t.OutOfPageFormat)||void 0===e?void 0:e[this.adunit.ad_unit_out_of_page];return void 0!==i&&(this.slot=googletag.defineOutOfPageSlot(this.adunit.ad_unit_path,i),!0)}defineSizeMapping(){let t=googletag.sizeMapping();for(let e=0,i=this.adunit.ad_unit_mappings.length;e<i;e++)t=t.addSize(this.adunit.ad_unit_mappings[e].screen_size,this.adunit.ad_unit_mappings[e].sizes);this.slot.defineSizeMapping(t.build())}addService(){this.slot.addService(googletag.pubads())}setTargeting(){for(const t of this.targetings)this.slot.setConfig({targeting:{[t.key]:t.value}})}display(){googletag.display(this.slot),this.timeSinceDisplay()}_defineAndDisplayOutOfPage(){this.defineSlotOutOfPage()&&this.slot&&(this.targetings.length>0&&this.setTargeting(),this.addService(),googletag.display(this.slot),googletag.pubads().refresh([this.slot]))}_warnOutOfPageSlotNull(t){var e,i;const n=document.querySelector("main"),s=null!==(e=null==n?void 0:n.offsetWidth)&&void 0!==e?e:0,a=Math.floor((window.innerWidth-s)/2);console.warn(`[Ad] ❌ defineOutOfPageSlot devolvió null — ${this.adunit.ad_unit_id}`,`\n  path:             ${this.adunit.ad_unit_path}`,`\n  formato:          ${this.adunit.ad_unit_out_of_page} (enum: ${t?"✅":"❌ no disponible"})`,`\n  viewport:         ${window.innerWidth}x${window.innerHeight}px`,`\n  <main> ancho:     ${s}px  (clases: "${null!==(i=null==n?void 0:n.className)&&void 0!==i?i:"no encontrado"}")`,`\n  margen izquierdo: ${a}px  (mínimo GPT: ~220px)`,"\n  ¿margen suficiente?: "+(a>=220?"✅ sí":"❌ no — causa más probable"))}defineAndDisplay(){this.isOutOfPage()?this._defineAndDisplayOutOfPage():(n.A.ad_native_percent&&this.adunit.ad_unit_targeting_extra&&this.sendTargetingAdNative(this),this.defineSlot(),this.adunit.ad_unit_mapping&&this.defineSizeMapping(),this.targetings.length>0&&this.setTargeting(),this.addService(),this.display(),n.A.header_bid
1ding&&window.prebidAasReady.then(()=>this.aasRefresh()),this.observe())}timeSinceDisplay(){this.timeout=setInterval(()=>{if(this.adunit.ad_unit_times_refresh>0){this.has_to_refresh=!0;const t=d.getPopUpBlock()&&!d.pop_up_block_exceptions.has(this.adunit.ad_unit_id);!this.isOnViewport()||document.hidden||t||(this.refresh(),this.adunit.ad_unit_times_refresh<=0&&this.clearInterval())}else this.clearInterval(),this.has_to_refresh=!1},this.TIME_TO_REFRESH)}observe(){const t=document.getElementById(this.adunit.ad_unit_id).parentElement;if("IntersectionObserver"in window){const e=new IntersectionObserver(i=>{i.forEach(i=>{i.isIntersecting&&this.has_to_refresh&&!document.hidden&&this.refresh(),0==this.adunit.ad_unit_times_refresh&&e.unobserve(t)})});e.observe(t),this.observer=e}}isOnViewport(){const t=window.innerHeight,e=document.getElementById(this.adunit.ad_unit_id).parentElement.getBoundingClientRect();return e.top<=t&&e.bottom>0||e.top>=0&&e.bottom<t}refresh(){let t=document.getElementById("close_bottom");t&&t.classList.remove("close_forced"),googletag.setConfig({targeting:{refresh:"1"}}
1),n.A.header_bidding?window.alpred.hb.cmd.push(()=>{window.alpred.hb.refresh([this.slot])}):googletag.pubads().refresh([this.slot]),googletag.setConfig({targeting:{refresh:null}}),this.adunit.ad_unit_times_refresh--,0==this.adunit.ad_unit_times_refresh&&(this.has_to_refresh=!1)}aasRefresh(){const t=this.getSlot();window.alpred.hb.cmd.push(function(){window.alpred.hb.refreshById(t.getSlotElementId())})}defineSlotAndDisplay(){return a(this,void 0,void 0,function*(){if(-1===this.adunit.ad_unit_min_define&&n.A.ad_csw||(this.adunit.ad_unit_min_define<0?window.pantalla_global+this.adunit.ad_unit_min_define>=0:this.adunit.ad_unit_min_define>window.pantalla_global))return Promise.resolve();if(this.isOutOfPage())return this.defineAndDisplay(),Promise.resolve();try{-1!==this.adunit.ad_unit_min_define||n.A.ad_csw||(yield this._paintMBottomContainer());const t=this._findOrCreateContainer();if(!t)throw new Error(`Container div for ${this.adunit.ad_unit_id} not found.`);0!==this.adunit.ad_unit_lazy?yield this._setupLazyLoading(t):this.defineAndDisplay()}catch(t){return console.error(" ---------- ‼️ Error loading ad "+this.adunit.ad_unit_id+" ‼️---------- ",t),Promise.reject(t)}})}_findOrCreateContainer(){var t;const e=(null===(t=this.parent_id)||void 0===t?void 0:t.includes("ad_mbottom"))?"ad_mbottom":this.parent_id;if(e){const t=document.getElementById(e);if(t){const e=this.createDivId();return t.appendChild(e),e}}let i=document.getElementById(this.adunit.ad_unit_id);if(i)return i;if(this.adunit.ad_unit_height_variable){const t=e?n.A.last.loc||n.A.last.gn:void 0;return this.addHtmlHeightVariable(!!e,t),document.getElementById(this.adunit.ad_unit_id)}return null}_setupLazyLoading(t){return new Promise(e=>{let i=!1;const n={top:0-this.adunit.ad_unit_above_pixels,bottom:window.innerHeight+this.adunit.ad_unit_above_pixels},s=()=>{i||(i=!0,this.defineAndDisplay(),this.listener&&window.removeEventListener("scroll",this.listener),e())};2!==this.adunit.ad_unit_lazy&&this._isInViewport(t,n)?s():(this.listener=()=>{const e=1===this.adunit.ad_unit_lazy&&this._isInViewport(t,n),i=2===this.adunit.ad_unit_lazy;(e||i)&&s()},window.addEventListener("scroll",this.listener,{passive:!0}))})}_isInViewport(t,e){const i=t.getBoundingClientRect(),n=i.top<=e.bottom&&i.bottom>e.top,s=i.top>=e.top&&i.bottom<e.bottom;return n||s}_paintMBottomContainer(){return a(this,void 0,void 0,function*(){if(document.getElementById("pMovilFoot"))return;const t=document.querySelector(".cmp-ad.meteored-ads");if(t)try{const e=(yield i.e(4953).then(i.t.bind(i,8545,23))).default,n=document.createRange().createContextualFragment(e()),s=n.querySelector("#ad_mbottom");s&&(s.style.display="none");const a=n.querySelector("#close_bottom");a&&(a.style.display="none"),t.appendChild(n)}catch(t){console.error("Error al cargar o renderizar la plantilla de movil-foot:",t)}})}createDivId(){const t=document.createElement("div");return t.id=this.adunit.ad_unit_id,t}deleteDivId(){const t=document.getElementById(this.adunit.ad_unit_id);t&&t.parentElement.removeChild(t)}deleteAndCreateDivId(){const t=document.getElementById(this.adunit.ad_unit_id);if(t){const e=t.parentElement;e.removeChild(t);const i=document.createElement("div");i.id=this.adunit.ad_unit_id,e.appendChild(i)}}crearCapa(){return new Promise((t,e)=>{let i,n=!0;const s=document.getElementById(this.parent_id);s||(n=!1),n&&(i=this.createDivId(),s.appendChild(i))})}removeListener(){this.getListener()&&removeEventListener("scroll",this.getListener())}disconectObserver(){this.getObserver()&&this.getObserver().disconnect()}clearInterval(){this.getTimeout()&&clearTimeout(this.getTimeout())}destroySlot(){this.slot?googletag.destroySlots([this.slot]):this.adunit.ad_unit_paint_directly||this.destroyStaticSlot(this.adunit.ad_unit_id)}destroy(){this.removeListener(),this.disconectObserver(),this.clearInterval(),this.destroySlot()}static getAdUnitMotor(t){const e={ad_unit_id:t.adunit.ad_unit_id,ad_unit_path:t.adunit.ad_unit_passback_path,ad_unit_sizes:t.adunit.ad_unit_sizes,ad_unit_mapping:t.adunit.ad_unit_mapping,ad_unit_mappings:t.adunit.ad_unit_mappings,ad_unit_above_pixels:t.adunit.ad_unit_above_pixels};return new d(e)}reemplazoAdUnit(){return a(this,void 0,void 0,function*(){let t=s.Ad.getAdInstance().ad_units.get(this.adunit.ad_unit_id);if(t){const e=t.getParentId();s.Ad.deleteAdUnit(t);const i=d.getAdUnitMotor(t);i.setParentId(e),yield s.Ad.adDefineSlotAndDisplay(i),s.Ad.getAdInstance().ad_units.set(this.adunit.ad_unit_id,i)}})}destroyStaticSlot(t){const e=googletag.pubads().getSlots().find(e=>e.getSlotElementId()===t);
1e&&(n.A.header_bidding?window.alpred.hb.cmd.push(function(){window.alpred.hb.destroySlots([e])}):googletag.destroySlots([e]))}sendTargetingAdNative(t){const e=n.A.ad_native_percent.bidders.map((t,e)=>({key:t.bidder_id,value:t.bidder_percent}));let i=Math.random(),s=0;for(const n of e)if(s+=n.value/100,i<=s){const e=n.key;n.key&&t.addTargeting({key:"native_bidder",value:e});break}}measureTotalElementsHeight(t=!1){const e=document.querySelector(".dias"),i=document.querySelector(".franjas_s"),n=[];let s=e.previousElementSibling;for(;s;)(t||!t&&s!==i)&&n.push(s),s=s.previousElementSibling;const a=document.querySelector(".cabecera");return n.reduce((t,e)=>t+e.offsetHeight,a.offsetHeight)}calcPositionInDays(t=!1,e){const i=window.innerHeight-this.measureTotalElementsHeight(t),n=t?"#day1_"+e:"#day1",s=document.querySelector(n),a=Math.ceil(i/s.offsetHeight);return a>=2?a:2}createDivMovG(){const t=document.createElement("div");t.className="divMovG meteored-ads";const e=this.createDivId();return t.appendChild(e),t}addHtmlHeightVariable(t=!1,e){const i=this.calcPositionInDays(t,e),n=this.createDivMovG();if(this.adunit.ad_unit_height_variable){let s=document.getElementById("day"+i+(t?"_"+e:""));s||(s=this.lastDayLocality(t,e));const a=document.createElement("li");a.id=this.adunit.ad_unit_id+"_li",a.appendChild(n),t&&(n.id=this.adunit.ad_unit_id+"_container_"+e),s.parentNode.insertBefore(a,s.nextSibling)}}static addPopUpBlockException(t){this.pop_up_block_exceptions.add(t)}static removePopUpBlockException(t){this.pop_up_block_exceptions.delete(t)}lastDayLocality(t=!1,e){return t?document.getElementsByClassName("ds_"+e)[0].lastChild:document.getElementsByClassName("dos-semanas")[0].lastChild}isOutOfPage(){return!!this.adunit.ad_unit_out_of_page}}d.pop_up_block=!1,d.pop_up_block_exceptions=new Set}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.