1function AbrePopUp(url){window.open(url,'EP','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=570,height=640,top=10,left=10');} 2function AbrePopUpRedim(url,ancho,alto){window.open(url,'EP','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no,width='+ancho+',height='+alto+',top=200,left=200');} 3function ScrollTo(name){if(document.getElementById(name)===null){ScrollToResolver(document.getElementById(document.querySelector('[id^="player_"]').id));}else{ScrollToResolver(document.getElementById(name));}} 4function ScrollToBySrc(src){if(document.querySelector('[src^="'+src+'"]')!==null){ScrollToResolver(document.querySelector('[src^="'+src+'"]'));} 5else{src='https://www.'+src;if(document.querySelector('[src^="'+src+'"]')!==null){ScrollToResolver(document.querySelector('[src^="'+src+'"]'));}else{src='http://www.'+src;if(document.querySelector('[src^="'+src+'"]')!==null){ScrollToResolver(document.querySelector('[src^="'+src+'"]'));}}}} 6function ScrollToResolver(elem){var jump=parseInt(elem.getBoundingClientRect().top*.2);document.body.scrollTop+=jump;document.documentElement.scrollTop+=jump-30;if(!elem.lastjump||elem.lastjump>Math.abs(jump)){elem.lastjump=Math.abs(jump);setTimeout(function(){ScrollToResolver(elem);},"100");}else{elem.lastjump=null;}} 7function redir(url){window.location.href=decode64(url);} 8function decode64(input){var output="";var chr1,chr2,chr3="";var enc1,enc2,enc3,enc4="";var i=0;input=input.replace(/[^A-Za-z0-9\+\/\=]/g,"");do{enc1=keyStr.indexOf(input.charAt(i++));enc2=keyStr.indexOf(input.charAt(i++));enc3=keyStr.indexOf(input.charAt(i++));enc4=keyStr.indexOf(input.charAt(i++));chr1=(enc1<<2)|(enc2>>4);chr2=((enc2&15)<<4)|(enc3>>2);chr3=((enc3&3)<<6)|enc4;output=output+String.fromCharCode(chr1);if(enc3!=64){output=output+String.fromCharCode(chr2);} 9if(enc4!=64){output=output+String.fromCharCode(chr3);} 10chr1=chr2=chr3="";enc1=enc2=enc3=enc4="";}while(i<input.length);return unescape(output);} 11var keyStr="ABCDEFGHIJKLMNOP"+"QRSTUVWXYZabcdef"+"ghijklmnopqrstuv"+"wxyz0123456789+/"+"=";function activaTab(marco,contenido,tab){var todosdivs=document.getElementsByTagName("div");var encontrado=false;var j=todosdivs.length-1;var caja;while(!encontrado&&j>=0){if(todosdivs[j].id.indexOf(marco)!=-1){caja=todosdivs[j];encontrado=true;} 12j--;} 13if(encontrado){var tabs=caja.getElementsByTagName("li");var conts=caja.getElementsByTagName("div");for(var i=0;i<tabs.length;i++){if(tabs[i].id.indexOf(tab)==-1) 14tabs[i].className="";else 15tabs[i].className="tabActivo";} 16for(var k=0;k<conts.length;k++){if(conts[k].id.indexOf(contenido)==-1) 17conts[k].style.display="none";else 18conts[k].style.display="inline-block";}}} 19document.addEventListener("DOMContentLoaded",function(){var margen=920;var domSlowNews=document.getElementById("slownews");if(domSlowNews){var slownews=domSlowNews.offsetHeight-margen;domSlowNews.style.top='-'+slownews+'px';domSlowNews.style.position='sticky';} 20var contenedorUH=document.getElementById("uhcontenedor");if(contenedorUH){var topContenedor=contenedorUH.offsetHeight-margen;contenedorUH.style.top='-'+topContenedor+'px';contenedorUH.style.position='sticky';} 21var contenidoCentralNoticias=document.getElementById("ContenidoCentralNoticiasSticky");if(contenidoCentralNoticias){var ContenidoCentralNoticiasSticky=contenidoCentralNoticias.offsetHeight-margen;contenidoCentralNoticias.style.top='-'+ContenidoCentralNoticiasSticky+'px';contenidoCentralNoticias.style.position='sticky';} 22var contenedorUHizq=document.getElementById("ctl00_CPH_ColumnaIZQ_ctl00_uhcontenedor");if(contenedorUHizq){var ctl00_CPH_ColumnaIZQ_ctl00_uhcontenedor=contenedorUHizq.offsetHeight-margen;contenedorUHizq.style.top='-'+ctl00_CPH_ColumnaIZQ_ctl00_uhcontenedor+'px';contenedorUHizq.style.position='sticky';}});function activaTabColumna(marco,contenido,tab){var todosdivs=document.getElementsByTagName("div");var encontrado=false;var j=todosdivs.length-1;var caja;while(!encontrado&&j>=0){if(todosdivs[j].id.indexOf(marco)!=-1){caja=todosdivs[j];encontrado=true;} 23j--;} 24if(encontrado){var tabs=caja.getElementsByTagName("li");var conts=caja.getElementsByTagName("div");for(var i=0;i<tabs.length;i++){if(tabs[i].id.indexOf('link')>-1){if(tabs[i].id.indexOf(tab)==-1) 25tabs[i].className="";else 26tabs[i].className="tabActivo";}} 27for(var k=0;k<conts.length;k++){if(conts[k].id.indexOf('lista')>-1){if(conts[k].id.indexOf(contenido)==-1) 28conts[k].style.display="none";else 29conts[k].style.display="block";}}}} 30function trackEventGA(category,action){try{gtag('event','event',{'event_category':category,'event_action':action});}catch(err){} 31return true;} 32function trackEventGAFull(category,action,label,value){try{gtag('event','event',{'event_category':category,'event_label':label,'event_action':action,'event_value':value});}catch(err){} 33return true;} 34function EP_loadBanner(t){var l=document.getElementById("BannerLoad_"+t);var p=document.getElementById("BannerPlaceHolder_"+t);if(l!=null&&p!=null){p.appendChild(l);l.style.display="block";}} 35function adsBlocked(callback){var testURL='https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js';var myInit={method:'HEAD',mode:'no-cors'};
35var myRequest=new Request(testURL,myInit);fetch(myRequest).then(function(response){return response;}).then(function(response){callback(false);}).catch(function(e){callback(true);});} 36function existCookie(pnameEQ){var nameEQ=pnameEQ+"=";var ca=document.cookie.split(';');var valor_cookie="";for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==' ')c=c.substring(1,c.length);{if(c.indexOf(nameEQ)==0){valor_cookie=c.substring(nameEQ.length+1,c.length);break;}}} 37return valor_cookie;} 38function existCookieConsent(pnameEQ){var nameEQ=pnameEQ;var ca=document.cookie.split(';');var valor_cookie="";for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==' ')c=c.substring(1,c.length);{if(c.indexOf(nameEQ)==0){valor_cookie=c.substring(nameEQ.length+1,c.length);break;}}} 39return valor_cookie;} 40window.onload=BajarSkinPublicidad;function BajarSkinPublicidad(){var body=document.getElementsByTagName("body")[0];if(body.style.backgroundImage!=""&&document.getElementById("CentralCabecera")==null){body.style.paddingTop="60px";if(body.style.backgroundPositionY!="60px") 41body.style.backgroundPositionY="60px";}} 42function makeTooltip(div,mensaje){var tooltip=document.createElement("div");var tooltipArrow=document.createElement("div");var tooltipMessage=document.createElement("div");tooltip.className="tooltip";tooltipMessage.className="tooltip-text";tooltipArrow.className="tooltip-arrow";tooltipMessage.innerHTML=mensaje;tooltip.appendChild(tooltipArrow);tooltip.appendChild(tooltipMessage);div.parentNode.insertBefore(tooltip,div);} 43function destroyTooltip(div){var x=div.parentElement;x.removeChild(div.previousSibling);} 44function ocultarContenidoBloquePortada(boton){boton.nextElementSibling.classList.toggle('hidden');boton.classList.toggle('glyphicon-chevron-down');boton.classList.toggle('glyphicon-chevron-up');} 45document.addEventListener('DOMContentLoaded',function(){var banners=document.querySelectorAll(".banner-privacidad");banners.forEach(item=>{item.addEventListener("click",event=>{item.classList.remove("mostrar");});});var privacidad=document.querySelectorAll(".check-privacidad");privacidad.forEach(item=>{item.addEventListener("change",function(){if(item.matches(":checked")){item.closest(".widget-newsletter").nextElementSibling.classList.add("mostrar");}});});var checkAceptar=document.querySelector("#AceptarCondiciones");if(checkAceptar){checkAceptar.addEventListener("change",function(){if(this.matches(":checked")){document.querySelector(".banner-privacidad").classList.add("mostrar");}});};});var getJSON=function(url,callback){var xhr=new XMLHttpRequest();xhr.open('GET',url,true);xhr.responseType='json';xhr.onload=function(){var status=xhr.status;if(status===200){callback(null,xhr.response);}else{callback(status,xhr.response);}};xhr.send();};window.addEventListener('load',function(){var periodoDias=0;var portalId=1;var canalId=0;var numeroMaximo=5;let navLinks=document.querySelectorAll('li[data-id]');navLinks.forEach(function(link){link.addEventListener("click",function(e){e.preventDefault();let attr=e.currentTarget.getAttribute('data-id');let portal=new Boolean(false);portal=attr.includes("Portal");if(portal){const collection2=document.getElementsByClassName("tabMasLeidasPortal-activa");for(const element2 of collection2){for(const element2 of collection2){element2.className="tabMasLeidasPortal";}} 46e.currentTarget.classList.add("tabMasLeidasPortal-activa");const collection=document.getElementsByClassName("tabMasLeidas");var primero=true;for(const element of collection){if(element.tagName="li"){if(primero){element.className="tabMasLeidas tabMasLeidas-activa";primero=false;} 47else 48element.className="tabMasLeidas";}}}else{const collection=document.getElementsByClassName("tabMasLeidas-activa");for(const element of collection){if(element.tagName="li"){element.className="tabMasLeidas";}} 49e.currentTarget.classList.add("tabMasLeidas-activa");} 50PintaMasleidas(attr);});});function PintaMasleidas(attr){if(document.querySelector('.tabMasLeidasPortal-activa')){var divMostrarMasLeidas2=document.querySelector('.tabMasLeidasPortal-activa').getAttribute('data-id');var valuesMasLeidasPortal2=divMostrarMasLeidas2.split("_");portalId=valuesMasLeidasPortal2[1];canalId=valuesMasLeidasPortal2[2];numeroMaximo=valuesMasLeidasPortal2[3];var valuesMasLeidas2=attr.split("_");periodoDias=valuesMasLeidas2[1];}else{var valuesMasLeidas=attr.split("_");var perDias=valuesMasLeidas[1];portalId=valuesMasLeidas[2];canalId=valuesMasLeidas[3];periodoDias=perDias;numeroMaximo=valuesMasLeidas[4];} 51getMasLeidas();} 52function getMasLeidas(){var url='/ws/MasLeidoJson.ashx?periodoDias='+periodoDias+'&portalId='+portalId+'&canalId='+canalId+'&numeroMaximo='+numeroMaximo 53var request=new XMLHttpRequest();request.open('GET',url,true);request.onload=function(){if(request.status>=200&&request.status<400){document.querySelector('#PortadaLateralFoto'+portalId).innerHTML=request.responseText;}else{console.log('error más leÃdas');}};request.onerror=function(){};request.send();};},false);document.addEventListener('DOMContentLoaded',function(){var menuItem=d
53ocument.querySelector('.js-desplegable-hover-trigger');if(menuItem){var desplegable=document.querySelector('.menu-tipologias');menuItem.addEventListener('mouseover',function(e){e.preventDefault();desplegable.style.display="block";});menuItem.addEventListener('mouseleave',function(e){e.preventDefault();desplegable.style.display="none";});}});window.addEventListener('DOMContentLoaded',function(){var divplayer=document.querySelectorAll('.OcultoPlayerPubliIncrustado');forEach(divplayer,function(index,value){var div=document.createElement('div');if(value&&value.outerHTML){div.innerHTML=value.outerHTML;} 54var link=div.firstChild&&div.firstChild.getAttribute?div.firstChild.getAttribute("href"):null;const cssW100=document.getElementsByClassName("cssW100");var srcimagen="";if(cssW100.length>0&&cssW100[0].getAttribute('src')){srcimagen=cssW100[0].getAttribute('src');srcimagen=srcimagen.replace(".jpg",".webp");} 55var PlayerId=link 56var PlayerIncrustado=document.querySelector("#PlayerPubliIncrustado_"+PlayerId);if(PlayerIncrustado.childNodes.length>0){var cadena=document.getElementById("PlayerPubliIncrustado_"+PlayerId).innerHTML;var params=cadena.split(".");MontaPlayerIframe(params,PlayerId,srcimagen);}});},false);
56var forEach=function(array,callback,scope){for(var i=0;i<array.length;i++){callback.call(scope,i,array[i]);}};function MontaPlayerIframe(params,fechor,imagen){var urlVideo=document.URL;var idIframe="DBXEVu38Qt";if(urlVideo.indexOf('chance')!=-1){idIframe="IgFUT6pr81";};var codigoIframe='<div id="EfectoVideoIncrustado" style="width: 100 %; text - align: left; margin: 0 auto; opacity: 1;">' 57codigoIframe+='<div style="position: relative; width: 100%; height: 0; padding-bottom: 60%;">' 58codigoIframe+='<iframe loading="lazy" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;"' 59codigoIframe+='src="https://video.microcontenidos.com/EPPlayerTV.aspx?iframeid='+idIframe+'&videoid='+params[0]+'&parte='+params[1]+'&foto='+imagen+'" scrolling="no" allowfullscreen=' 60codigoIframe+="</div>";document.querySelector('#PlayerPubliIncrustado_'+fechor).classList.remove('OcultoPlayerPubliIncrustado');document.querySelector('#PlayerPubliIncrustado_'+fechor).innerHTML=codigoIframe;document.querySelector('.VisiblePlayerPubliIncrustado_'+fechor).innerHTML='';} 61function TrackAudio(){trackEventGAFull('AudioNoticia','click','',0);} 62 63(function(w){"use strict";if(!w.loadCSS){w.loadCSS=function(){};} 64var rp=loadCSS.relpreload={};rp.support=(function(){var ret;try{ret=w.document.createElement("link").relList.supports("preload");}catch(e){ret=false;} 65return function(){return ret;};})();rp.bindMediaToggle=function(link){var finalMedia=link.media||"all";function enableStylesheet(){link.media=finalMedia;} 66if(link.addEventListener){link.addEventListener("load",enableStylesheet);}else if(link.attachEvent){link.attachEvent("onload",enableStylesheet);} 67setTimeout(function(){link.rel="stylesheet";link.media="only x";});setTimeout(enableStylesheet,3000);};rp.poly=function(){if(rp.support()){return;} 68var links=w.document.getElementsByTagName("link");for(var i=0;i<links.length;i++){var link=links[i];if(link.rel==="preload"&&link.getAttribute("as")==="style"&&!link.getAttribute("data-loadcss")){link.setAttribute("data-loadcss",true);rp.bindMediaToggle(link);}}};if(!rp.support()){rp.poly();var run=w.setInterval(rp.poly,500);if(w.addEventListener){w.addEventListener("load",function(){rp.poly();w.clearInterval(run);});}else if(w.attachEvent){w.attachEvent("onload",function(){rp.poly();w.clearInterval(run);});}} 69if(typeof exports!=="undefined"){exports.loadCSS=loadCSS;} 70else{w.loadCSS=loadCSS;}}(typeof global!=="undefined"?global:this)); 71/*! pace 1.0.0 */ 72(function () { var a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X = [].slice, Y = {}.hasOwnProperty, Z = function (a, b) { function c() { this.constructor = a } for (var d in b) Y.call(b, d) && (a[d] = b[d]); return c.prototype = b.prototype, a.prototype = new c, a.__super__ = b.prototype, a }, $ = [].indexOf || function (a) { for (var b = 0, c = this.length; c > b; b++) if (b in this && this[b] === a) return b; return -1 }; for (u = { catchupTime: 100, initialRate: .03, minTime: 250, ghostTime: 100, maxProgressPerFrame: 20, easeFactor: 1.25, startOnPageLoad: !0, restartOnPushState: !0, restartOnRequestAfter: 500, target: "body", elements: { checkInterval: 100, selectors: ["body"] }, eventLag: { minSamples: 10, sampleCount: 3, lagThreshold: 3 }, ajax: { trackMethods: ["GET"], trackWebSockets: !0, ignoreURLs: [] } }, C = function () { var a; return null != (a = "undefined" != typeof performance && null !== performance && "function" == typeof performance.now ? performance.now() : void 0) ? a : +new Date }, E = window.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame || window.msRequestAnimationFrame, t = window.cancelAnimationFrame || window.mozCancelAnimationFrame, null == E && (E = function (a) { return setTimeout(a, 50) }, t = function (a) { return clearTimeout(a) }), G = function (a) { var b, c; return b = C(), (c = function () { var d; return d = C() - b, d >= 33 ? (b = C(), a(d, function () { return E(c) })) : setTimeout(c, 33 - d) })() }, F = function () { var a, b, c; return c = arguments[0], b = arguments[1], a = 3 <= arguments.length ? X.call(arguments, 2) : [], "function" == typeof c[b] ? c[b].apply(c, a) : c[b] }, v = function () { var a, b, c, d, e, f, g; for (b = arguments[0], d = 2 <= arguments.length ? X.call(arguments, 1) : [], f = 0, g = d.length; g > f; f++) if (c = d[f]) for (a in c) Y.call(c, a) && (e = c[a], null != b[a] && "object" == typeof b[a] && null != e && "object" == typeof e ? v(b[a], e) : b[a] = e); return b }, q = function (a) { var b, c, d, e, f; for (c = b = 0, e = 0, f = a.length; f > e; e++) d = a[e], c += Math.abs(d), b++; return c / b }, x = function (a, b) { var c, d, e; if (null == a && (a = "options"), null == b && (b = !0), e = document.querySelector("[data-pace-" + a + "]")) { if (c = e.getAttribute("data-pace-" + a), !b) return c; try { return JSON.parse(c) } catch (f) { return d = f, "undefined" != typeof console && null !== console ? console.error("Error parsing inline pace options", d) : void 0 } } }, g = function () { function a() { } return a.prototype.on = function (a, b, c, d) { var e; return null == d && (d = !1), null == this.bindings && (this.bindings = {}), null == (e = this.bindings)[a] && (e[a] = []), this.bindings[a].push({ handler: b, ctx: c, once: d }) }, a.prototype.once = function (a, b, c) { return this.on(a, b, c, !0) }, a.prototype.off = function (a, b) { var c, d, e; if (null != (null != (d = this.bindings) ? d[a] : void 0)) { if (null == b) return delete this.bindings[a]; for (c = 0, e = []; c < this.bindings[a].length;) e.push(this.bindings[a][c].handler === b ? this.bindings[a].splice(c, 1) : c++); return e } }, a.prototype.trigger = function () { var a, b, c, d, e, f, g, h, i; if (c = arguments[0], a = 2 <= arguments.length ? X.call(arguments, 1) : [], null != (g = this.bindings) ? g[c] : void 0) { for (e = 0, i = []; e < this.bindings[c].length;) h = this.bindings[c][e], d = h.handler, b = h.ctx, f = h.once, d.apply(null != b ? b : this, a), i.push(f ? this.bindings[c].splice(e, 1) : e++); return i } }, a }(), j = window.Pace || {}, window.Pace = j, v(j, g.prototype), D = j.options = v({}, u, window.paceOptions, x()), U = ["ajax", "document", "eventLag", "elements"], Q = 0, S = U.length; S > Q; Q++) K = U[Q], D[K] === !0 && (D[K] = u[K]); i = function (a) { function b() { return V = b.__super__.constructor.apply(this, arguments) } return Z(b, a), b }(Error), b = function () { function a() { this.progress = 0 } return a.prototype.getElement = function () { var a; if (null == this.el) { if (a = document.querySelector(D.target), !a) throw new i; this.el = document.createElement("div"), this.el.className = "pace pace-active", document.body.className = document.body.className.replace(/pace-done/g, ""), document.body.className += " pace-running", this.el.innerHTML = '<div class="pace-progress">\n <div class="pace-progress-inner"></div>\n</div>\n<div class="pace-activity"></div>', null != a.firstChild ? a.insertBefore(this.el, a.firstChild) : a.appendChild(this.el) } return this.el }, a.prototype.finish = function () { var a; return a = this.getElement(), a.className = a.className.replace("pace-active", ""), a.className += " pace-inactive", document.body.className = document.body.className.replace("pace-running", ""), document.body.className += " pace-done" }, a.prototype.update = function (a) { return this.progress = a, this.render() }, a.prototype.destroy = function () { try { this.getElement().parentNode.removeChild(this.getElement()) } catch (a) { i = a } return this.el = void 0 }, a.prototype.render = function () { var a, b, c, d, e, f, g; if (null == document.querySelector(D.target)) return !1; for (a = this.getElement(), d = "translate3d(" + this.progress + "%, 0, 0)", g = ["webkitTransform", "msTransform", "transform"], e = 0, f = g.length; f > e; e++) b = g[e], a.children[0].style[b] = d; return (!this.lastRenderedProgress || this.lastRenderedProgress | 0 !== this.progress | 0) && (a.children[0].setAttribute("data-progress-text", "" + (0 | this.progress) + "%"), this.progress >= 100 ? c = "99" : (c = this.progress < 10 ? "0" : "", c += 0 | this.progress), a.children[0].setAttribute("data-progress", "" + c)), this.lastRenderedProgress = this.progress }, a.prototype.done = function () { return this.progress >= 100 }, a }(), h = function () { function a() { this.bindings = {} } return a.prototype.trigger = function (a, b) { var c, d, e, f, g; if (null != this.bindings[a]) { for (f = this.bindings[a], g = [], d = 0, e = f.length; e > d; d++) c = f[d], g.push(c.call(this, b)); return g } }, a.prototype.on = function (a, b) { var c; return null == (c = this.bindings)[a] && (c[a] = []), this.bindings[a].push(b) }, a }(), P = window.XMLHttpRequest, O = window.XDomainRequest, N = window.WebSocket, w = function (a, b) { var c, d, e, f; f = []; for (d in b.prototype) try { e = b.prototype[d], f.push(null == a[d] && "function" != typeof e ? a[d] = e : void 0) } catch (g) { c = g } return f }, A = [], j.ignore = function () { var a, b, c; return b = arguments[0], a = 2 <= arguments.length ? X.call(arguments, 1) : [], A.unshift("ignore"), c = b.apply(null, a), A.shift(), c }, j.track = function () { var a, b, c; return b = arguments[0], a = 2 <= arguments.length ? X.call(arguments, 1) : [], A.unshift("track"), c = b.apply(null, a), A.shift(), c }, J = function (a) { var b; if (null == a && (a = "GET"), "track" === A[0]) return "force"; if (!A.length && D.ajax) { if ("socket" === a && D.ajax.trackWebSockets) return !0; if (b = a.toUpperCase(), $.call(D.ajax.trackMethods, b) >= 0) return !0 } return !1 }, k = function (a) { function b() { var a, c = this; b.__super__.constructor.apply(this, arguments), a = function (a) { var b; return b = a.open, a.open = function (d, e) { return J(d) && c.trigger("request", { type: d, url: e, request: a }), b.apply(a, arguments) } }, window.XMLHttpRequest = function (b) { var c; return c = new P(b), a(c), c }; try { w(window.XMLHttpRequest, P) } catch (d) { } if (null != O) { window.XDomainRequest = function () { var b; return b = new O, a(b), b }; try { w(window.XDomainRequest, O) } catch (d) { } } if (null != N && D.ajax.trackWebSockets) { window.WebSocket = function (a, b) { var d; return d = null != b ? new N(a, b) : new N(a), J("socket") && c.trigger("request", { type: "socket", url: a, protocols: b, request: d }), d }; try { w(window.WebSocket, N) } catch (d) { } } } return Z(b, a), b }(h), R = null, y = function () { return null == R && (R = new k), R }, I = function (a) { var b, c, d, e; for (e = D.ajax.ignoreURLs, c = 0, d = e.length; d > c; c++) if (b = e[c], "string" == typeof b) { if (-1 !== a.indexOf(b)) return !0 } else if (b.test(a)) return !0; return !1 }, y().on("request", function (b) { var c, d, e, f, g; return f = b.type, e = b.request, g = b.url, I(g) ? void 0 : j.running || D.restartOnRequestAfter === !1 && "force" !== J(f) ? void 0 : (d = arguments, c = D.restartOnRequestAfter || 0, "boolean" == typeof c && (c = 0), setTimeout(function () { var b, c, g, h, i, k; if (b = "socket" === f ? e.readyState < 2 : 0 < (h = e.readyState) && 4 > h) { for (j.restart(), i = j.sources, k = [], c = 0, g = i.length; g > c; c++) { if (K = i[c], K instanceof a) { K.watch.apply(K, d); break } k.push(void 0) } return k } }, c)) }), a = function () { function a() { var a = this; this.elements = [], y().on("request", function () { return a.watch.apply(a, arguments) }) } return a.prototype.watch = function (a) { var b, c, d, e; return d = a.type, b = a.request, e = a.url, I(e) ? void 0 : (c = "socket" === d ? new n(b) : new o(b), this.elements.push(c)) }, a }(), o = function () { function a(a) { var b, c, d, e, f, g, h = this; if (this.progress = 0, null != window.ProgressEvent) for (c = null, a.addEventListener("progress", function (a) { return h.progress = a.lengthComputable ? 100 * a.loaded / a.total : h.progress + (100 - h.progress) / 2 }, !1), g = ["load", "abort", "timeout", "error"], d = 0, e = g.length; e > d; d++) b = g[d], a.addEventListener(b, function () { return h.progress = 100 }, !1); else f = a.onreadystatechange, a.onreadystatechange = function () { var b; return 0 === (b = a.readyState) || 4 === b ? h.progress = 100 : 3 === a.readyState && (h.progress = 50), "function" == typeof f ? f.apply(null, arguments) : void 0 } } return a }(), n = function () { function a(a) { var b, c, d, e, f = this; for (this.progress = 0, e = ["error", "open"], c = 0, d = e.length; d > c; c++) b = e[c], a.addEventListener(b, function () { return f.progress = 100 }, !1) } return a }(), d = function () { function a(a) { var b, c, d, f; for (null == a && (a = {}), this.elements = [], null == a.selectors && (a.selectors = []), f = a.selectors, c = 0, d = f.length; d > c; c++) b = f[c], this.elements.push(new e(b)) } return a }(), e = function () { function a(a) { this.selector = a, this.progress = 0, this.check() }
72 return a.prototype.check = function () { var a = this; return document.querySelector(this.selector) ? this.done() : setTimeout(function () { return a.check() }, D.elements.checkInterval) }, a.prototype.done = function () { return this.progress = 100 }, a }(), c = function () { function a() { var a, b, c = this; this.progress = null != (b = this.states[document.readyState]) ? b : 100, a = document.onreadystatechange, document.onreadystatechange = function () { return null != c.states[document.readyState] && (c.progress = c.states[document.readyState]), "function" == typeof a ? a.apply(null, arguments) : void 0 } } return a.prototype.states = { loading: 0, interactive: 50, complete: 100 }, a }(), f = function () { function a() { var a, b, c, d, e, f = this; this.progress = 0, a = 0, e = [], d = 0, c = C(), b = setInterval(function () { var g; return g = C() - c - 50, c = C(), e.push(g), e.length > D.eventLag.sampleCount && e.shift(), a = q(e), ++d >= D.eventLag.minSamples && a < D.eventLag.lagThreshold ? (f.progress = 100, clearInterval(b)) : f.progress = 100 * (3 / (a + 3)) }, 50) } return a }(), m = function () { function a(a) { this.source = a, this.last = this.sinceLastUpdate = 0, this.rate = D.initialRate, this.catchup = 0, this.progress = this.lastProgress = 0, null != this.source && (this.progress = F(this.source, "progress")) } return a.prototype.tick = function (a, b) { var c; return null == b && (b = F(this.source, "progress")), b >= 100 && (this.done = !0), b === this.last ? this.sinceLastUpdate += a : (this.sinceLastUpdate && (this.rate = (b - this.last) / this.sinceLastUpdate), this.catchup = (b - this.progress) / D.catchupTime, this.sinceLastUpdate = 0, this.last = b), b > this.progress && (this.progress += this.catchup * a), c = 1 - Math.pow(this.progress / 100, D.easeFactor), this.progress += c * this.rate * a, this.progress = Math.min(this.lastProgress + D.maxProgressPerFrame, this.progress), this.progress = Math.max(0, this.progress), this.progress = Math.min(100, this.progress), this.lastProgress = this.progress, this.progress }, a }(), L = null, H = null, r = null, M = null, p = null, s = null, j.running = !1, z = function () { return D.restartOnPushState ? j.restart() : void 0 }, null != window.history.pushState && (T = window.history.pushState, window.history.pushState = function () { return z(), T.apply(window.history, arguments) }), null != window.history.replaceState && (W = window.history.replaceState, window.history.replaceState = function () { return z(), W.apply(window.history, arguments) }), l = { ajax: a, elements: d, document: c, eventLag: f }, (B = function () { var a, c, d, e, f, g, h, i; for (j.sources = L = [], g = ["ajax", "elements", "document", "eventLag"], c = 0, e = g.length; e > c; c++) a = g[c], D[a] !== !1 && L.push(new l[a](D[a])); for (i = null != (h = D.extraSources) ? h : [], d = 0, f = i.length; f > d; d++) K = i[d], L.push(new K(D)); return j.bar = r = new b, H = [], M = new m })(), j.stop = function () { return j.trigger("stop"), j.running = !1, r.destroy(), s = !0, null != p && ("function" == typeof t && t(p), p = null), B() }, j.restart = function () { return j.trigger("restart"), j.stop(), j.start() }, j.go = function () { var a; return j.running = !0, r.render(), a = C(), s = !1, p = G(function (b, c) { var d, e, f, g, h, i, k, l, n, o, p, q, t, u, v, w; for (l = 100 - r.progress, e = p = 0, f = !0, i = q = 0, u = L.length; u > q; i = ++q) for (K = L[i], o = null != H[i] ? H[i] : H[i] = [], h = null != (w = K.elements) ? w : [K], k = t = 0, v = h.length; v > t; k = ++t) g = h[k], n = null != o[k] ? o[k] : o[k] = new m(g), f &= n.done, n.done || (e++, p += n.tick(b)); return d = p / e, r.update(M.tick(b, d)), r.done() || f || s ? (r.update(100), j.trigger("done"), setTimeout(function () { return r.finish(), j.running = !1, j.trigger("hide") }, Math.max(D.ghostTime, Math.max(D.minTime - (C() - a), 0)))) : c() }) }, j.start = function (a) { v(D, a), j.running = !0; try { r.render() } catch (b) { i = b } return document.querySelector(".pace") ? (j.trigger("start"), j.go()) : setTimeout(j.start, 50) }, "function" == typeof define && define.amd ? define(function () { return j }) : "object" == typeof exports ? module.exports = j : D.startOnPageLoad && j.start() }).call(this); 73function encode64(input){var keyStr=["ABCDEFGHIJKLMNOP","QRSTUVWXYZabcdef","ghijklmnopqrstuv","wxyz0123456789
73+/","="].join("");input=escape(input);var output="";var chr1,chr2,chr3="";var enc1,enc2,enc3,enc4="";var i=0;do{chr1=input.charCodeAt(i++);chr2=input.charCodeAt(i++);chr3=input.charCodeAt(i++);enc1=chr1>>2;enc2=((chr1&3)<<4)|(chr2>>4);enc3=((chr2&15)<<2)|(chr3>>6);enc4=chr3&63;if(isNaN(chr2)){enc3=enc4=64;}else if(isNaN(chr3)){enc4=64;} 74output=output+ 75keyStr.charAt(enc1)+ 76keyStr.charAt(enc2)+ 77keyStr.charAt(enc3)+ 78keyStr.charAt(enc4);chr1=chr2=chr3="";enc1=enc2=enc3=enc4="";}while(i<input.length);return output;} 79document.addEventListener('DOMContentLoaded',function(){var body=document.querySelector("body");var menuCompleto=document.getElementById('menu-completo');var inputTexto=document.getElementById('texto-buscador-estrechado');if(inputTexto){inputTexto.disabled=false;inputTexto.required=true;} 80var menuFuera=false;var primera=false;var buscar=function(texto,idioma){var url=['/buscador.aspx?buscar=',texto,'&buscarCodificado=',encode64(texto)].join("");var codSphinxIdiomaEspanol=1;if(idioma!==codSphinxIdiomaEspanol){url+='&Idioma='+idioma;} 81window.location.href=url;};var buscarCO=function(texto,idioma){var url=['/buscador.aspx?buscar=',texto,'&buscarCodificado=',encode64(texto),"&ch=777"].join("");var codSphinxIdiomaEspanol=1;if(idioma!==codSphinxIdiomaEspanol){url+='&Idioma='+idioma;} 82window.location.href=url;};var buscarHF=function(texto,idioma){var url=['/buscador.aspx?buscar=',texto].join("");window.location.href=url;};var formBuscador=document.querySelector("#formulario-buscador-estrechado");if(formBuscador){formBuscador.addEventListener("submit",function(e){e.preventDefault();var texto=inputTexto.value;var idioma=document.getElementById('hdnIdiomaBusqueda').value;if(texto.length>0){var esBuscadorCO=window.location.hostname.includes("culturaocio.com");if(esBuscadorCO){buscarCO(texto,idioma);}else{var esBuscadorHF=window.location.hostname.includes("hacerfamilia.com");if(esBuscadorHF){buscarHF(texto,idioma);}else{buscar(texto,idioma);}}} 83return false;});} 84var botonesMenu=document.querySelectorAll("#ctl00_NavegacionFixed_InconoMenuDiv");botonesMenu.forEach(function(boton){boton.addEventListener("click",function(){ocultarMostrarMenu();if(!menuFuera){body.style.overflow="visible";var menuDiv=document.querySelector("#masterMenu");menuDiv.style.overflow="visible";menuDiv.style.backgroundColor="transparent";menuFuera=true;if(!primera){if(window.location.hostname!=="www.europapress.es"){cargarMenuJson();} 85primera=true;}}});});var ocultarMostrarMenu=function(){var accionesMenuReducido=document.getElementById('acciones-menu');var icono=document.querySelector('.button-ico');var fondo=document.getElementById('background');if(menuCompleto.className==='menu-completo oculto'){icono.classList.remove('icon-menu');icono.classList.add('icon-close');fondo.classList.add('fondo-menu');}else{} 86if(menuCompleto.className==='menu-completo oculto'){menuCompleto.classList.remove('oculto');icono.classList.remove('icon-menu');icono.classList.add('icon-close');fondo.classList.add('fondo-menu');}else{menuCompleto.classList.add('oculto');accionesMenuReducido.classList.remove('oculto');icono.classList.add('icon-menu');icono.classList.remove('icon-close');fondo.classList.remove('fondo-menu');}};var fondoMenu=document.querySelector("#background");if(fondoMenu){fondoMenu.addEventListener("click",function(e){ocultarMostrarMenu();if(!menuFuera){body.style.overflow="visible";var menuDiv=document.querySelector("#masterMenu");menuDiv.style.overflow="visible";menuDiv.style.backgroundColor="transparent";menuFuera=true;}});} 87var enlaceDesplegable=document.querySelector("#desplegable-enlace");if(enlaceDesplegable){enlaceDesplegable.addEventListener("click",function(e){e.preventDefault();enlaceDesplegable.nextElementSibling.classList.toggle("hidden");});}}); 88function addLinkCopy(){var selection;var selectedtext='';if(typeof window.getSelection!="undefined"){selection=window.getSelection();selectedtext=window.getSelection().toString();}else if(typeof document.selection!="undefined"){selection=document.selection();selectedtext=document.selection().toString();} 89if(selectedtext.length>200){const f=") -";var p=document.querySelectorAll(".NormalTextoNoticia p");if(p.length<=0) 90{p=document.querySelectorAll(".NormalTextoNoticia div");if(p.length<=0) 91{p=document.querySelectorAll("#CuerpoNoticia p");if(p.length<=0){p=document.querySelectorAll("#CuerpoNoticiav2 p");}}} 92if(p.length>0){var r1='';var r2='';var scp=true;for(i=0;i<p.length;i++){if(p.item(i).innerText.includes(f)){for(j=i+1;j<p.length;j++){var po=p.item(j)?.innerText.trim();if(po!=''){r1=po;break;}} 93break;} 94if(scp&&p.item(i).innerText.trim()!=''&&p.item(i).innerText.length>50){r2=p.item(i).innerText.trim();scp=false;}} 95if(r1!=''&&r1.length>0){selectedtext=r1;}else if(r2!=''&&r2.length>0){selectedtext=r2;}} 96if(selectedtext.length>500){selectedtext=selectedtext.substring(0,490)+" ...";} 97var anno=new Date().getFullYear();var pagelink='<br /><br /> Leer más: <a href="'+document.location.href+'">'+document.location.href+'</a><br /><br /> (c) '+anno+' Europa Press. Está expresamente prohibida la redistribución y la redifusión de este contenido sin su previo y expreso consentimiento.<br /><br />';var fechor=document.location.href.match(/\d{14}/);var esNoticiaEdiziones;esNoticiaEdiziones=!(typeof __esEdiziones==='undefined');var contentModal="";if(esNoticiaEdiziones){contentModal="<p>El texto se ha copiado al portapapeles. </p>"+"<br/>"+"<br/>"+"<p>Contenido protegido con copyright, no incluido en ninguno de los "+"<br/>"+"servicios de abono de Europa Press. "+"<br/>"+"Si desea obtener una cesión de uso de este contenido, deberá hacerlo "+"<br/>"+" contactando a <a href='mailto:[email protected]' target='_top'>[email protected]</a></p>";} 98else{contentModal="<p>El texto se ha copiado al portapapeles. </p>"+"<br/>"+"<br/>"+"<p>
98Contenido protegido con copyright salvo para los clientes "+"<br/>"+"abonados a europapress y según los términos de su contrato."+"<br/>"+"Si desea obtener una cesión de uso de este contenido, deberá hacerlo "+"<br/>"+"contactando a <a href='mailto:[email protected]' target='_top'>[email protected]</a></p>";} 99var copytext='<p class="titulo">'+document.title+'<br /></p><p><br />'+selectedtext+pagelink+'</p>';console.log('open');AbrirModal(copytext);var newdiv=document.createElement('div');newdiv.style.position='absolute';newdiv.style.left='-99999px';document.body.appendChild(newdiv);newdiv.innerHTML=copytext;selection.selectAllChildren(newdiv);}} 100function AbrirModal(copytext){var overlay=document.createElement('div');var modal=document.createElement('div');var content=document.createElement('div');var close=document.createElement('span');overlay.classList.add('banner-modal');overlay.classList.add('mostrar');modal.classList.add('contenido');close.classList.add('icon-close');close.setAttribute('onclick','hideCopy();');content.innerHTML=copytext;content.appendChild(close);modal.appendChild(content);overlay.appendChild(modal);document.body.appendChild(overlay);window.setTimeout(function(){document.body.removeChild(overlay);},5000);};function hideCopy(){document.querySelector(".banner-modal").classList.remove("mostrar");} 101const SuscripcionBoletin=function(config){const btnSuscribir=document.getElementById(config.btnSuscribirId);const infoText=btnSuscribir.parentNode.nextElementSibling;const cajaEmail=btnSuscribir.previousElementSibling;const checkCondicionesUso=btnSuscribir.parentNode.querySelector("input[type='checkbox']");const tema=config.tema;const entidad=config.entidadId;const validaEmail=function(email){if(email==="") 102return false;const regexValidEmail=/^[A-Z0-9._%+-]+@(?:[A-Z0-9-]+\.)+[A-Z]{2,}$/i;return regexValidEmail.test(email);};const aceptaCondiciones=function(){return checkCondicionesUso.checked;};const showMsg=function(msg){infoText.textContent=msg;};const postSuscripcion=function(email){const data="email="+email+"&tema="+tema+"&entidad="+entidad+"&uh=1";const request=new XMLHttpRequest();request.open('POST','/ws/AltaBoletin.ashx',true);request.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8');request.onload=function(){if(request.status===200){showMsg(request.responseText);trackEventGA("cajaboletin","suscripcion")}else{showMsg(request.statusText);}};request.onerror=function(){showMsg("Parece que se ha producido un error. Vuelve a intentarlo.");};request.send(data);};const suscribir=function(){const email=cajaEmail.value;if(!validaEmail(email)){showMsg("Introduce una dirección de email válida.");return;} 103if(!aceptaCondiciones()){showMsg("Debes aceptar las condiciones de uso.");return;} 104postSuscripcion(email);};this.init=function(){if(btnSuscribir===null){return;} 105cajaEmail.addEventListener("keypress",function(e){if((e.which===13)||(e.which===10)){e.preventDefault();suscribir();}});btnSuscribir.addEventListener("click",suscribir);};};
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.