sass-template-common 0.9.193 → 0.9.194

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1780,7 +1780,7 @@ const ro = async ({
1780
1780
  url: e.siteUrl,
1781
1781
  potentialAction: {
1782
1782
  "@type": "SearchAction",
1783
- target: e.siteUrl + "/buscar?query={search_term_string}",
1783
+ target: e.siteUrl + "/" + e.paths.buscar + "?query={search_term_string}",
1784
1784
  "query-input": "required name=search_term_string"
1785
1785
  }
1786
1786
  };
@@ -10,7 +10,7 @@ new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
10
10
  j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
11
11
  'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
12
12
  })(window,document,'script','dataLayer','${e}');
13
- `}}),s.jsx("noscript",{children:s.jsx("iframe",{src:`https://www.googletagmanager.com/ns.html?id=${e}`,height:"0",width:"0",style:{display:"none",visibility:"hidden"}})})]})},wa=()=>{const{ANALYTICS_marfeel:e}=D();return e&&s.jsx("script",{type:"text/javascript",dangerouslySetInnerHTML:{__html:`!function(){"use strict";function e(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],c=document.createElement("script");c.src=e,t?c.type="module":(c.defer=!0,c.type="text/javascript",c.setAttribute("nomodule",""));var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(c,n)}!function(t,c){!function(t,c,n){var a,o,r;n.accountId=c,null!==(a=t.marfeel)&&void 0!==a||(t.marfeel={}),null!==(o=(r=t.marfeel).cmd)&&void 0!==o||(r.cmd=[]),t.marfeel.config=n;var i="https://sdk.mrf.io/statics";e("".concat(i,"/marfeel-sdk.js?id=").concat(c),!0),e("".concat(i,"/marfeel-sdk.es5.js?id=").concat(c),!1)}(t,c,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{})}(window,${e},{})}();`}})},to=({defaultRouteName:e})=>{const{CAPTCHA_KEY:t,CONFIG_comments:a=!1,CONFIG_commentsV2:n=!1}=D();return t&&t!==""&&(e==="video"&&a&&!n||e==="news"&&a&&!n||e==="auth"||e==="anuncia"||e==="contacto")&&s.jsx("script",{src:`https://www.google.com/recaptcha/enterprise.js?render=${t}`,async:!0,defer:!0})};function Re(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Tt={exports:{}},so=Tt.exports,Aa;function ba(){return Aa||(Aa=1,(function(e,t){(function(a,n){e.exports=n()})(so,(function(){var a=1e3,n=6e4,r=36e5,o="millisecond",i="second",l="minute",d="hour",c="day",h="week",m="month",u="quarter",f="year",p="date",g="Invalid Date",w=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,A=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,C={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(M){var k=["th","st","nd","rd"],P=M%100;return"["+M+(k[(P-20)%10]||k[P]||k[0])+"]"}},E=function(M,k,P){var H=String(M);return!H||H.length>=k?M:""+Array(k+1-H.length).join(P)+M},S={s:E,z:function(M){var k=-M.utcOffset(),P=Math.abs(k),H=Math.floor(P/60),F=P%60;return(k<=0?"+":"-")+E(H,2,"0")+":"+E(F,2,"0")},m:function M(k,P){if(k.date()<P.date())return-M(P,k);var H=12*(P.year()-k.year())+(P.month()-k.month()),F=k.clone().add(H,m),R=P-F<0,v=k.clone().add(H+(R?-1:1),m);return+(-(H+(P-F)/(R?F-v:v-F))||0)},a:function(M){return M<0?Math.ceil(M)||0:Math.floor(M)},p:function(M){return{M:m,y:f,w:h,d:c,D:p,h:d,m:l,s:i,ms:o,Q:u}[M]||String(M||"").toLowerCase().replace(/s$/,"")},u:function(M){return M===void 0}},b="en",T={};T[b]=C;var x="$isDayjsObject",B=function(M){return M instanceof V||!(!M||!M[x])},$=function M(k,P,H){var F;if(!k)return b;if(typeof k=="string"){var R=k.toLowerCase();T[R]&&(F=R),P&&(T[R]=P,F=R);var v=k.split("-");if(!F&&v.length>1)return M(v[0])}else{var U=k.name;T[U]=k,F=U}return!H&&F&&(b=F),F||!H&&b},G=function(M,k){if(B(M))return M.clone();var P=typeof k=="object"?k:{};return P.date=M,P.args=arguments,new V(P)},L=S;L.l=$,L.i=B,L.w=function(M,k){return G(M,{locale:k.$L,utc:k.$u,x:k.$x,$offset:k.$offset})};var V=(function(){function M(P){this.$L=$(P.locale,null,!0),this.parse(P),this.$x=this.$x||P.x||{},this[x]=!0}var k=M.prototype;return k.parse=function(P){this.$d=(function(H){var F=H.date,R=H.utc;if(F===null)return new Date(NaN);if(L.u(F))return new Date;if(F instanceof Date)return new Date(F);if(typeof F=="string"&&!/Z$/i.test(F)){var v=F.match(w);if(v){var U=v[2]-1||0,j=(v[7]||"0").substring(0,3);return R?new Date(Date.UTC(v[1],U,v[3]||1,v[4]||0,v[5]||0,v[6]||0,j)):new Date(v[1],U,v[3]||1,v[4]||0,v[5]||0,v[6]||0,j)}}return new Date(F)})(P),this.init()},k.init=function(){var P=this.$d;this.$y=P.getFullYear(),this.$M=P.getMonth(),this.$D=P.getDate(),this.$W=P.getDay(),this.$H=P.getHours(),this.$m=P.getMinutes(),this.$s=P.getSeconds(),this.$ms=P.getMilliseconds()},k.$utils=function(){return L},k.isValid=function(){return this.$d.toString()!==g},k.isSame=function(P,H){var F=G(P);return this.startOf(H)<=F&&F<=this.endOf(H)},k.isAfter=function(P,H){return G(P)<this.startOf(H)},k.isBefore=function(P,H){return this.endOf(H)<G(P)},k.$g=function(P,H,F){return L.u(P)?this[H]:this.set(F,P)},k.unix=function(){return Math.floor(this.valueOf()/1e3)},k.valueOf=function(){return this.$d.getTime()},k.startOf=function(P,H){var F=this,R=!!L.u(H)||H,v=L.p(P),U=function(ae,K){var W=L.w(F.$u?Date.UTC(F.$y,K,ae):new Date(F.$y,K,ae),F);return R?W:W.endOf(c)},j=function(ae,K){return L.w(F.toDate()[ae].apply(F.toDate("s"),(R?[0,0,0,0]:[23,59,59,999]).slice(K)),F)},Q=this.$W,O=this.$M,Y=this.$D,Z="set"+(this.$u?"UTC":"");switch(v){case f:return R?U(1,0):U(31,11);case m:return R?U(1,O):U(0,O+1);case h:var X=this.$locale().weekStart||0,ee=(Q<X?Q+7:Q)-X;return U(R?Y-ee:Y+(6-ee),O);case c:case p:return j(Z+"Hours",0);case d:return j(Z+"Minutes",1);case l:return j(Z+"Seconds",2);case i:return j(Z+"Milliseconds",3);default:return this.clone()}},k.endOf=function(P){return this.startOf(P,!1)},k.$set=function(P,H){var F,R=L.p(P),v="set"+(this.$u?"UTC":""),U=(F={},F[c]=v+"Date",F[p]=v+"Date",F[m]=v+"Month",F[f]=v+"FullYear",F[d]=v+"Hours",F[l]=v+"Minutes",F[i]=v+"Seconds",F[o]=v+"Milliseconds",F)[R],j=R===c?this.$D+(H-this.$W):H;if(R===m||R===f){var Q=this.clone().set(p,1);Q.$d[U](j),Q.init(),this.$d=Q.set(p,Math.min(this.$D,Q.daysInMonth())).$d}else U&&this.$d[U](j);return this.init(),this},k.set=function(P,H){return this.clone().$set(P,H)},k.get=function(P){return this[L.p(P)]()},k.add=function(P,H){var F,R=this;P=Number(P);var v=L.p(H),U=function(O){var Y=G(R);return L.w(Y.date(Y.date()+Math.round(O*P)),R)};if(v===m)return this.set(m,this.$M+P);if(v===f)return this.set(f,this.$y+P);if(v===c)return U(1);if(v===h)return U(7);var j=(F={},F[l]=n,F[d]=r,F[i]=a,F)[v]||1,Q=this.$d.getTime()+P*j;return L.w(Q,this)},k.subtract=function(P,H){return this.add(-1*P,H)},k.format=function(P){var H=this,F=this.$locale();if(!this.isValid())return F.invalidDate||g;var R=P||"YYYY-MM-DDTHH:mm:ssZ",v=L.z(this),U=this.$H,j=this.$m,Q=this.$M,O=F.weekdays,Y=F.months,Z=F.meridiem,X=function(K,W,_,de){return K&&(K[W]||K(H,R))||_[W].slice(0,de)},ee=function(K){return L.s(U%12||12,K,"0")},ae=Z||function(K,W,_){var de=K<12?"AM":"PM";return _?de.toLowerCase():de};return R.replace(A,(function(K,W){return W||(function(_){switch(_){case"YY":return String(H.$y).slice(-2);case"YYYY":return L.s(H.$y,4,"0");case"M":return Q+1;case"MM":return L.s(Q+1,2,"0");case"MMM":return X(F.monthsShort,Q,Y,3);case"MMMM":return X(Y,Q);case"D":return H.$D;case"DD":return L.s(H.$D,2,"0");case"d":return String(H.$W);case"dd":return X(F.weekdaysMin,H.$W,O,2);case"ddd":return X(F.weekdaysShort,H.$W,O,3);case"dddd":return O[H.$W];case"H":return String(U);case"HH":return L.s(U,2,"0");case"h":return ee(1);case"hh":return ee(2);case"a":return ae(U,j,!0);case"A":return ae(U,j,!1);case"m":return String(j);case"mm":return L.s(j,2,"0");case"s":return String(H.$s);case"ss":return L.s(H.$s,2,"0");case"SSS":return L.s(H.$ms,3,"0");case"Z":return v}return null})(K)||v.replace(":","")}))},k.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},k.diff=function(P,H,F){var R,v=this,U=L.p(H),j=G(P),Q=(j.utcOffset()-this.utcOffset())*n,O=this-j,Y=function(){return L.m(v,j)};switch(U){case f:R=Y()/12;break;case m:R=Y();break;case u:R=Y()/3;break;case h:R=(O-Q)/6048e5;break;case c:R=(O-Q)/864e5;break;case d:R=O/r;break;case l:R=O/n;break;case i:R=O/a;break;default:R=O}return F?R:L.a(R)},k.daysInMonth=function(){return this.endOf(m).$D},k.$locale=function(){return T[this.$L]},k.locale=function(P,H){if(!P)return this.$L;var F=this.clone(),R=$(P,H,!0);return R&&(F.$L=R),F},k.clone=function(){return L.w(this.$d,this)},k.toDate=function(){return new Date(this.valueOf())},k.toJSON=function(){return this.isValid()?this.toISOString():null},k.toISOString=function(){return this.$d.toISOString()},k.toString=function(){return this.$d.toUTCString()},M})(),J=V.prototype;return G.prototype=J,[["$ms",o],["$s",i],["$m",l],["$H",d],["$W",c],["$M",m],["$y",f],["$D",p]].forEach((function(M){J[M[1]]=function(k){return this.$g(k,M[0],M[1])}})),G.extend=function(M,k){return M.$i||(M(k,V,G),M.$i=!0),G},G.locale=$,G.isDayjs=B,G.unix=function(M){return G(1e3*M)},G.en=T[b],G.Ls=T,G.p={},G}))})(Tt)),Tt.exports}var ao=ba();const ge=Re(ao);var It={exports:{}},no=It.exports,ya;function ro(){return ya||(ya=1,(function(e,t){(function(a,n){e.exports=n()})(no,(function(){return function(a,n,r){a=a||{};var o=n.prototype,i={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function l(c,h,m,u){return o.fromToBase(c,h,m,u)}r.en.relativeTime=i,o.fromToBase=function(c,h,m,u,f){for(var p,g,w,A=m.$locale().relativeTime||i,C=a.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],E=C.length,S=0;S<E;S+=1){var b=C[S];b.d&&(p=u?r(c).diff(m,b.d,!0):m.diff(c,b.d,!0));var T=(a.rounding||Math.round)(Math.abs(p));if(w=p>0,T<=b.r||!b.r){T<=1&&S>0&&(b=C[S-1]);var x=A[b.l];f&&(T=f(""+T)),g=typeof x=="string"?x.replace("%d",T):x(T,h,b.l,w);break}}if(h)return g;var B=w?A.future:A.past;return typeof B=="function"?B(g):B.replace("%s",g)},o.to=function(c,h){return l(c,h,this,!0)},o.from=function(c,h){return l(c,h,this)};var d=function(c){return c.$u?r.utc():r()};o.toNow=function(c){return this.to(d(this),c)},o.fromNow=function(c){return this.from(d(this),c)}}}))})(It)),It.exports}var oo=ro();const io=Re(oo);var Ut={exports:{}},lo=Ut.exports,Ca;function co(){return Ca||(Ca=1,(function(e,t){(function(a,n){e.exports=n(ba())})(lo,(function(a){function n(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}var r=n(a),o={name:"es",monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinal:function(i){return i+"º"}};return r.default.locale(o,null,!0),o}))})(Ut)),Ut.exports}co();var xt={exports:{}},ho=xt.exports,va;function uo(){return va||(va=1,(function(e,t){(function(a,n){e.exports=n()})(ho,(function(){var a="minute",n=/[+-]\d\d(?::?\d\d)?/g,r=/([+-]|\d\d)/g;return function(o,i,l){var d=i.prototype;l.utc=function(g){var w={date:g,utc:!0,args:arguments};return new i(w)},d.utc=function(g){var w=l(this.toDate(),{locale:this.$L,utc:!0});return g?w.add(this.utcOffset(),a):w},d.local=function(){return l(this.toDate(),{locale:this.$L,utc:!1})};var c=d.parse;d.parse=function(g){g.utc&&(this.$u=!0),this.$utils().u(g.$offset)||(this.$offset=g.$offset),c.call(this,g)};var h=d.init;d.init=function(){if(this.$u){var g=this.$d;this.$y=g.getUTCFullYear(),this.$M=g.getUTCMonth(),this.$D=g.getUTCDate(),this.$W=g.getUTCDay(),this.$H=g.getUTCHours(),this.$m=g.getUTCMinutes(),this.$s=g.getUTCSeconds(),this.$ms=g.getUTCMilliseconds()}else h.call(this)};var m=d.utcOffset;d.utcOffset=function(g,w){var A=this.$utils().u;if(A(g))return this.$u?0:A(this.$offset)?m.call(this):this.$offset;if(typeof g=="string"&&(g=(function(b){b===void 0&&(b="");var T=b.match(n);if(!T)return null;var x=(""+T[0]).match(r)||["-",0,0],B=x[0],$=60*+x[1]+ +x[2];return $===0?0:B==="+"?$:-$})(g),g===null))return this;var C=Math.abs(g)<=16?60*g:g;if(C===0)return this.utc(w);var E=this.clone();if(w)return E.$offset=C,E.$u=!1,E;var S=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(E=this.local().add(C+S,a)).$offset=C,E.$x.$localOffset=S,E};var u=d.format;d.format=function(g){var w=g||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return u.call(this,w)},d.valueOf=function(){var g=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*g},d.isUTC=function(){return!!this.$u},d.toISOString=function(){return this.toDate().toISOString()},d.toString=function(){return this.toDate().toUTCString()};var f=d.toDate;d.toDate=function(g){return g==="s"&&this.$offset?l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():f.call(this)};var p=d.diff;d.diff=function(g,w,A){if(g&&this.$u===g.$u)return p.call(this,g,w,A);var C=this.local(),E=l(g).local();return p.call(C,E,w,A)}}}))})(xt)),xt.exports}var mo=uo();const fo=Re(mo);var kt={exports:{}},go=kt.exports,Na;function po(){return Na||(Na=1,(function(e,t){(function(a,n){e.exports=n()})(go,(function(){var a={year:0,month:1,day:2,hour:3,minute:4,second:5},n={};return function(r,o,i){var l,d=function(u,f,p){p===void 0&&(p={});var g=new Date(u),w=(function(A,C){C===void 0&&(C={});var E=C.timeZoneName||"short",S=A+"|"+E,b=n[S];return b||(b=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:A,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:E}),n[S]=b),b})(f,p);return w.formatToParts(g)},c=function(u,f){for(var p=d(u,f),g=[],w=0;w<p.length;w+=1){var A=p[w],C=A.type,E=A.value,S=a[C];S>=0&&(g[S]=parseInt(E,10))}var b=g[3],T=b===24?0:b,x=g[0]+"-"+g[1]+"-"+g[2]+" "+T+":"+g[4]+":"+g[5]+":000",B=+u;return(i.utc(x).valueOf()-(B-=B%1e3))/6e4},h=o.prototype;h.tz=function(u,f){u===void 0&&(u=l);var p,g=this.utcOffset(),w=this.toDate(),A=w.toLocaleString("en-US",{timeZone:u}),C=Math.round((w-new Date(A))/1e3/60),E=15*-Math.round(w.getTimezoneOffset()/15)-C;if(!Number(E))p=this.utcOffset(0,f);else if(p=i(A,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(E,!0),f){var S=p.utcOffset();p=p.add(g-S,"minute")}return p.$x.$timezone=u,p},h.offsetName=function(u){var f=this.$x.$timezone||i.tz.guess(),p=d(this.valueOf(),f,{timeZoneName:u}).find((function(g){return g.type.toLowerCase()==="timezonename"}));return p&&p.value};var m=h.startOf;h.startOf=function(u,f){if(!this.$x||!this.$x.$timezone)return m.call(this,u,f);var p=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return m.call(p,u,f).tz(this.$x.$timezone,!0)},i.tz=function(u,f,p){var g=p&&f,w=p||f||l,A=c(+i(),w);if(typeof u!="string")return i(u).tz(w);var C=(function(T,x,B){var $=T-60*x*1e3,G=c($,B);if(x===G)return[$,x];var L=c($-=60*(G-x)*1e3,B);return G===L?[$,G]:[T-60*Math.min(G,L)*1e3,Math.max(G,L)]})(i.utc(u,g).valueOf(),A,w),E=C[0],S=C[1],b=i(E).utcOffset(S);return b.$x.$timezone=w,b},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(u){l=u}}}))})(kt)),kt.exports}var wo=po();const Ao=Re(wo);ge.extend(fo),ge.extend(Ao),ge.extend(io);const Lt=e=>e==="en"?"en":"es",Te=(e,t)=>{const{PUBLIC_LNG:a,DATE_TIMEZONE:n}=t||D(),r=Lt(a??"es");return ge.tz(e,n).locale(r).format("DD MMMM YYYY")},dt=e=>{const{PUBLIC_LNG:t,DATE_TIMEZONE:a}=D(),n=Lt(t??"es");return ge.tz(e,a).locale(n).format(n==="en"?"MMMM DD YYYY [•] HH:mm [hs]":"DD [de] MMMM YYYY [•] HH:mm [hs]")},Sa=e=>{const{PUBLIC_LNG:t,DATE_TIMEZONE:a}=D(),n=Lt(t??"es");return ge.tz(e,a).locale(n).format("MM/DD/YYYY [•] HH:mm [HS]")},bo=e=>{const{PUBLIC_LNG:t,DATE_TIMEZONE:a}=D(),n=Lt(t??"es");return ge.tz(e,a).locale(n).format("dddd DD [de] MMMM YYYY")},Ge=(e,t)=>{if(!e)return"";const a=new Date(e),r=new Intl.DateTimeFormat("en-CA",{timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}).formatToParts(a),o={};r.forEach(f=>{f.type!=="literal"&&(o[f.type]=f.value)});const i=new Date(a.toLocaleString("en-US",{timeZone:"UTC"})),d=(new Date(a.toLocaleString("en-US",{timeZone:t})).getTime()-i.getTime())/6e4,c=d>=0?"+":"-",h=f=>String(Math.floor(Math.abs(f))).padStart(2,"0"),m=h(d/60),u=h(d%60);return`${o.year}-${o.month}-${o.day}T${o.hour}:${o.minute}:${o.second}${c}${m}:${u}`},Pe=(e,t=136)=>e&&e.length>t?`${e.substring(0,t)}...`:e;function Qe(e){return e&&e.status==="fulfilled"?e.value.data:null}function Ea(e){return e&&e.status==="fulfilled"?e.value:null}const yo={url:"",target:"_self",canonical:!1,internal:""},Co={date:"",created:0,modified:0,firstpublish:0,lastpublish:0};function vo(e){return e==null?"":typeof e=="string"?e:e.article??e.home??e.section??e.seo??""}const et=(e,t,a,n)=>{const r=vo(e?.main?.title),o=e?.main?.description??"";return{authors:e?.main?.author?[{firstname:"",lastname:"",fullname:typeof e.main.author=="string"?e.main.author:String(e.main.author??"Redacción"),image:{sizes:[],description:""},name:"",internaluser:!1}]:[],social:{description:"",images:{facebook:"",twitter:""},title:""},info:{date:{...Co,...e?.info?.date},link:e?.info?.link??yo},preview:{sizes:e?.main?.image?.sizes??[],description:e?.main?.image?.description??""},config:{showtime:t??!1,showsubtitle:a??!1,showauthor:!!(n&&e?.main?.author)},main:{title:{article:r,home:r,seo:r,section:r},subtitle:{rendered:o,striped:o},tags:[]}}},Ta=/<div\b[^>]*class=["'][^"']*\bck-related-news\b[^"']*["'][^>]*>/gi;function Pt(e){if(!e?.body?.rendered)return[];const t=e.body.rendered,a=[];let n=0;for(;n<t.length;){Ta.lastIndex=n;const r=Ta.exec(t);if(!r)break;const o=r.index+r[0].length;let i=1,l=o,d=o;for(;l<t.length&&i>0;){const f=t.slice(l),p=f.match(/<div\b/i),g=f.match(/<\/div>/i),w=p?.index??-1,A=g?.index??-1;if(A===-1)break;const C=w===-1?1/0:l+w,E=l+A;w!==-1&&w<A?(i+=1,l=C+p[0].length):(i-=1,d=E,l=E+g[0].length)}const c=t.slice(o,d),h=[],m=/<span\b[^>]*\bdata-src=["']([^"']+)["']/gi;let u;for(;(u=m.exec(c))!==null;){const f=u[1];f&&h.push(f)}h.length>0&&a.push(h),n=l}return a}const No=Pt,Ia=async(e,t)=>{const a=[];return e.forEach(o=>{o.forEach(i=>{const l=t({path:i.replaceAll("|","/"),imagesizes:"w:212,h:142,t:2;w:100,h:100,t:2",exclude:"config,keywords,authors,body,related,relatedexternal,social,external,hascontent,customfields,pixel"});l&&a.push(l)})}),(await Promise.allSettled(a)).map(o=>Qe(o)?.data)},ze=()=>{const{PUBLIC_ENV:e,PUBLIC_API_HOST:t,PUBLIC_ASSETS_URL:a}=D();return e=="local"&&(!a||a==="false")?t:a&&a!=="false"?a:""},So=()=>{const{PUBLIC_ENV:e,PUBLIC_API_FRONT:t}=D();return e==="local"?t:""},Ua=e=>e.replace(/^https?:?\/\/[^/]+/,""),Eo=e=>{if(!e?.preview?.length)return null;const t=e.preview;return t.find(a=>a.format==="1.91:1")??t[t.length-1]},xa=({schemaImage:e,socialImage:t,fallbackImage:a,prefix:n,defaultWidth:r,defaultHeight:o,alt:i})=>e?.url?{url:n+e.url,width:e.width,height:e.height,alt:i}:{url:n+(t??a??""),width:r,height:o,alt:i},ka=(e,t,a,n)=>{if(!t)return{};const{PUBLIC_ASSETS_URL:r,PUBLIC_API_FRONT:o,DATE_TIMEZONE:i="America/Mexico_City"}=D(),l=ws(t.keywords)??"",d=t?.preview?.sizes?t?.preview?.sizes[0]?.url:"",c=(r!=="false"?r:o)??"",h=Eo(n),m=t.main.title.article,u=xa({schemaImage:h,socialImage:t?.social?.images?.facebook,fallbackImage:d,prefix:c,defaultWidth:a.landscapeLogo.width,defaultHeight:a.landscapeLogo.height,alt:n?.description??m}),f=xa({schemaImage:h,socialImage:t?.social?.images?.twitter,fallbackImage:d,prefix:c,defaultWidth:a.twitterSummaryCard.width,defaultHeight:a.twitterSummaryCard.height,alt:n?.description??m});return{title:(t?.main?.title?.seo??t?.main?.title?.article)+" | "+a.name,robots:"index, follow, max-image-preview:large",alternates:{types:{"application/rss+xml":(a.siteUrl??"")+"/rss/feed.xml"},canonical:t?.info?.link?.canonical},description:t?.main?.subtitle?.striped??"",news_keywords:l,keywords:l,openGraph:{title:t?.social?.title?t?.social?.title:t?.main?.title?.article,url:t?.info?.link?.canonical,type:"article",description:t?.social?.description?t?.social?.description:t?.main?.subtitle?.striped??"",images:[u],siteName:a.name.toLocaleUpperCase(),locale:a.lang.startsWith("en")?"en_US":a.lang==="es"?"es_LA":a.lang.replace("-","_")},twitter:{title:t?.main?.title?.article,card:"summary_large_image",site:e.twitter.site,description:t?.main?.subtitle?.striped??"",images:[f]},article:{published_time:Ge(t?.info?.date?.firstpublish,i),modified_time:Ge(t?.info?.date?.lastpublish??t?.info?.date?.firstpublish,i),section:t?.info?.section?.name,author:t?.authors?.[0]?.fullname,tag:t?.keywords?.tags??[]}}},ws=e=>!e||!e?.tags||e?.tags?.length===0?"":e?.tags?.map(t=>t.name).join(", ").replaceAll('"',"'").replaceAll("`","'"),La=e=>{const t=e?.match(/^\/(?:[^/]+\/)?([^/]+)\/([^/]+\.html)$/);return t?{slug:t[1]??"",path:t[2]??""}:{slug:"",path:""}},Pa=e=>e.replaceAll("/","").replaceAll("_","").replace(".html",""),To={description:{attr:"name",value:"description"},robots:{attr:"name",value:"robots"},keywords:{attr:"name",value:"keywords"},news_keywords:{attr:"name",value:"news_keywords"},"openGraph.title":{attr:"property",value:"og:title"},"openGraph.description":{attr:"property",value:"og:description"},"openGraph.type":{attr:"property",value:"og:type"},"openGraph.url":{attr:"property",value:"og:url"},"openGraph.siteName":{attr:"property",value:"og:site_name"},"openGraph.locale":{attr:"property",value:"og:locale"},"twitter.card":{attr:"name",value:"twitter:card"},"twitter.title":{attr:"name",value:"twitter:title"},"twitter.description":{attr:"name",value:"twitter:description"},"twitter.site":{attr:"name",value:"twitter:site"},"twitter.domain":{attr:"name",value:"twitter:domain"},"twitter.url":{attr:"name",value:"twitter:url"}},Oa=e=>{const t=[];let a=0;const n=i=>t.push(i);return e.title&&typeof e.title=="string"&&n(s.jsx("title",{children:e.title},`title-${a++}`)),Object.entries(To).forEach(([i,l])=>{const d=i.split(".").reduce((c,h)=>c?.[h],e);d&&n(s.jsx("meta",{[l.attr]:l.value,content:String(d)},`meta-${a++}`))}),(e.openGraph?.images?Array.isArray(e.openGraph.images)?e.openGraph.images:[e.openGraph.images]:[]).forEach(i=>{i&&(typeof i=="string"?n(s.jsx("meta",{property:"og:image",content:i},`og-img-${a++}`)):(i.url&&n(s.jsx("meta",{property:"og:image",content:i.url},`og-img-${a++}`)),i.width&&n(s.jsx("meta",{property:"og:image:width",content:String(i.width)},`og-img-w-${a++}`)),i.height&&n(s.jsx("meta",{property:"og:image:height",content:String(i.height)},`og-img-h-${a++}`)),i.alt&&n(s.jsx("meta",{property:"og:image:alt",content:String(i.alt)},`og-img-alt-${a++}`))))}),(e.twitter?.images?Array.isArray(e.twitter.images)?e.twitter.images:[e.twitter.images]:[]).forEach(i=>{i&&(typeof i=="string"?n(s.jsx("meta",{name:"twitter:image",content:i},`tw-img-${a++}`)):(i.url&&n(s.jsx("meta",{name:"twitter:image",content:i.url},`tw-img-${a++}`)),i.width&&n(s.jsx("meta",{name:"twitter:image:width",content:String(i.width)},`tw-img-w-${a++}`)),i.height&&n(s.jsx("meta",{name:"twitter:image:height",content:String(i.height)},`tw-img-h-${a++}`)),i.alt&&n(s.jsx("meta",{name:"twitter:image:alt",content:String(i.alt)},`tw-img-alt-${a++}`))))}),e.article&&(n(s.jsx("meta",{property:"article:published_time",content:e.article.published_time})),n(s.jsx("meta",{property:"article:modified_time",content:e.article.modified_time})),n(s.jsx("meta",{property:"article:section",content:e.article.section})),n(s.jsx("meta",{property:"article:author",content:e.article.author})),Array.isArray(e.article.tag)&&e.article.tag.length>0&&e.article.tag.forEach(i=>{n(s.jsx("meta",{property:"article:tag",content:i.name}))})),e.alternates?.canonical&&n(s.jsx("link",{rel:"canonical",href:String(e.alternates.canonical)},`link-${a++}`)),e.manifest&&n(s.jsx("link",{rel:"manifest",href:String(e.manifest)},`link-${a++}`)),e.alternates?.types&&Object.entries(e.alternates.types).forEach(([i,l])=>{typeof l=="string"&&n(s.jsx("link",{rel:"alternate",type:i,href:l},`alt-${a++}`))}),e.icons&&[...e.icons?.icon??[],...e.icons?.other??[]].forEach(l=>{l&&n(typeof l=="string"?s.jsx("link",{rel:"icon",href:l},`icon-${a++}`):s.jsx("link",{rel:l.rel||"icon",href:l.url,...l.type&&{type:l.type},...l.sizes&&{sizes:l.sizes}},`icon-${a++}`))}),e.other&&Object.entries(e.other).forEach(([i,l])=>{l&&n(s.jsx("meta",{name:i,content:String(l)},`other-${a++}`))}),t},he=async e=>{const t=ze()??"",a=e;return a?.startsWith("http")||a?.includes(t)||t===""?a:t+a},ht=(e,t)=>{const a=e||"";return t?a.replaceAll("[section_replace]",t["[section_replace]"]??"").replaceAll("[tag_replace]",t["[tag_replace]"]??"").replaceAll("[tags_replace]",t["[tags_replace]"]??"").replaceAll("[url_replace]",t["[url_replace]"]??"").replaceAll("[author_replace]",t["[author_replace]"]??"").replaceAll("[creator_replace]",t["[creator_replace]"]??"")||"":a||""},Io=/\[(?:general|seccion:[^\]]+|tema:\d+)\][\s\S]*?\[\/(?:general|seccion:[^\]]+|tema:\d+)\]/i,Uo=/\[(general|seccion:[^\]]+|tema:\d+)\]([\s\S]*?)\[\/\1\]/gi,xo=e=>!e||e.type==="general"?"general":e.type==="seccion"?`seccion:${e.value}`.toLowerCase():`tema:${e.value}`,Ot=(e,t)=>{const a=e||"";if(!Io.test(a))return a;const n=new Map;for(const l of a.matchAll(Uo)){const d=l[1]?.toLowerCase(),c=l[2];d&&c!==void 0&&!n.has(d)&&n.set(d,c)}if(n.size===0)return a;const r=xo(t),o=n.get(r);if(o!==void 0)return o;const i=n.get("general");return i!==void 0?i:""},ko=e=>{const t={};if(!e)return t;const a=/([^\s=]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'>]+)))?/g;let n;for(;n=a.exec(e);){const r=n[1],o=n[2]??n[3]??n[4]??!0;t[r]=o}return t},Lo=e=>{const t=e.match(/\bsrc\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s>]+))/i);return t?.[1]||t?.[2]||t?.[3]||null},Ba=(e,t,a,n)=>{try{const r=ko(e);return r.src?s.jsx("script",{"data-bs-name":n,...r},a):s.jsx("script",{...r,dangerouslySetInnerHTML:{__html:t}},a)}catch{const o=Lo(e);return o?s.jsx("script",{"data-bs-name":n,src:o,async:!0,defer:!0},a):null}},Po=e=>{const t=/<script\b([^>]*)>([\s\S]*?)<\/script\s*>|<script\b([^>]*)\/?>/gi;return[...e.matchAll(t)]},As=e=>{const t=e.banners.find(r=>r.key===e.name);if(!t||!t.show)return null;const a=ht(t.value||"",e.replaces),n=Po(a);return s.jsx(s.Fragment,{children:n.map((r,o)=>{const i=r[1]||r[3]||"",l=r[2]?.trim()||"";return Ba(i,l,o,e.name)})})},Ma=e=>{const t=e.banners.find(r=>r.key===e.name);if(!t||!t.show)return null;const n=ht(t.value||"",e.replaces).split(/(<script\b[\s\S]*?<\/script\s*>|<script\b[^>]*\/?>)/gi);return s.jsx(s.Fragment,{children:n.map((r,o)=>{const i=r.match(/<script\b([^>]*)>([\s\S]*?)<\/script\s*>|<script\b([^>]*)\/?>/i);if(i){const l=i[1]||i[3]||"",d=i[2]?.trim()||"";return Ba(l,d,o,e.name)}return r.trim()&&/<[a-zA-Z]/.test(r)?s.jsx("div",{dangerouslySetInnerHTML:{__html:r}},o):null})})},tt=(e,t,a)=>{let n=e.siteUrl;return t.forEach((r,o)=>{o>0&&(n+=`/${r}`)}),`${n}/page/${a+1}`},st=(e,t,a)=>{let n=e.siteUrl;return t.forEach((r,o)=>{o>0&&(n+=`/${r}`)}),`${n}/page/${a-1}`};function Oo(e){const t=e.length;return t>1&&e.charCodeAt(t-1)===47?e.slice(0,t-1):e}const _a=()=>{const{PUBLIC_ASSETS_URL:e}=D();return e&&e!=="false"&&s.jsx("link",{rel:"preconnect",href:e,crossOrigin:"anonymous"})},bs=({images:e})=>s.jsx(s.Fragment,{children:e.map((t,a)=>t.href!==""&&s.jsx("link",{rel:"preload",href:t.href,media:t.media??"",as:"image",fetchPriority:t.fetchPriority??"high"},a))}),Da=(e,t,a)=>{if(!t)return{};const{PUBLIC_API_FRONT:n}=D();return{title:t?.main?.title+" | "+a.name,robots:"index, follow, max-image-preview:large",alternates:{canonical:a.siteUrl+t?.info?.link?.url},description:t.main.description??"",news_keywords:t.main.tags,keywords:t.main.tags,openGraph:{title:t.main.title,url:t?.info?.link?.canonical,type:"video.other",description:t.main.description??"",images:[{url:(n??"")+t?.main.image.sizes[0]?.url,width:a.landscapeLogo.width,height:a.landscapeLogo.height}],siteName:a.name.toLocaleUpperCase(),locale:a.lang.startsWith("en")?"en_US":a.lang==="es"?"es_LA":a.lang.replace("-","_")},twitter:{title:t?.main?.title,card:"summary_large_image",site:e.twitter.site,description:t?.main.description??"",images:[{url:(n??"")+t?.main.image.sizes[0]?.url,width:a.twitterSummaryCard.width,height:a.twitterSummaryCard.height}]}}},Bo=e=>{let t="";if(e.params.news.match(/.*t[0-9]*.html/g)){const a=e.params.news.split("-"),n=a[a.length-1]??"",r=n.substring(1,9),o=n.substring(9,13);t=`/listas/${ge(r).format("YYYY/MM/DD")}/lista_${o}.html`}else if(e.params.news.match(/.*lb[0-9]*.html/g)){const a=e.params.news.split("-"),n=a[a.length-1]??"",r=n.substring(2,10),o=n.substring(10,14);t=`/liveblog/${ge(r).format("YYYY/MM/DD")}/liveblog_${o}.html`}else{const n=e.params.news.replace(/\.html$/g,"").split("-");Array.isArray(n)&&(t=`/contenidos/${ge(n[n.length-2]).format("YYYY/MM/DD")}/noticia_${n[n.length-1]}.html`)}return e.config.servicePrefix+t};function Mo(e){const t=e.lastIndexOf("-"),a=t>=0?[e.slice(0,t),e.slice(t+1)]:[e],n=a[a.length-1]?.split("."),r=n&&n[0]?n[0]:"",o=r.substring(0,2),i=r.substring(2,10),l=r.substring(10);return{path:{vy:c=>`/videos/video-youtube/${ge(i).format("YYYY/MM/DD")}/videoYouTube_${c}.lnk`,ve:c=>`/videos/video-embedded/${ge(i).format("YYYY/MM/DD")}/videoEmbedded_${c}.lnk`,vf:c=>`/videos/video-flash/${ge(i).format("YYYY/MM/DD")}/${a[0]}.${c}`}[o]?.(l)??"",op:o}}const je=(e,t)=>{const a=e.name.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/ñ/g,"n").replace(/Ñ/g,"n").replace(/[^\w\s]/gi,"").replaceAll(" ","-").toLowerCase();return t?.tema?`/${t.tema}/${a}-t${e.id}`:`/${a}-t${e.id}`},_o=e=>{const{AssetsPrefix:t="",AssetsPath:a="src",isDev:n=!1}=e;return n?"src":t+a},Do=async(e,t,a,n)=>{const{FETCH_TAG_BASED_RELATED_NEWS:r=!1,FETCH_SIZE_RELATED_NEWS:o=10}=D();if(!e)return[];try{if(e.related&&e.related?.automatic===!1&&e.related?.news&&e.related?.news.length>0)return(await a.getNewsListPath({path:e.related.news.map(l=>l.path).join(";"),exclude:"gallery,related,relatedexternal,external,customfields",imagesizes:n.md}))?.data?.data??[];{const i=e&&e.keywords&&e.keywords.tags&&e.keywords.tags[0];return((e?i&&r?await a.getNewsListAvanced({query:'claves:("'+e.keywords?.tags[0].name+'")',exclude:"gallery,related,relatedexternal,external,customfields",imagesizes:n.md,size:o+1}):await a.getNewsItemsRelated(t.split("/").join("|"),{size:o}):null)?.data?.data??[]).filter(c=>c.info.link.internal!==t.split("/").join("|"))}}catch(i){console.log(i)}},qo="https://recaptchaenterprise.googleapis.com/v1/projects",Go=async({projectID:e,recaptchaKey:t,token:a,recaptchaAction:n,apiKey:r,userAgent:o,userIpAddress:i})=>{if(!e||!t||!a||!r)return console.warn("createAssessment: faltan parámetros requeridos"),null;const l=`${qo}/${e}/assessments?key=${r}`,d={event:{token:a,siteKey:t,expectedAction:n,...o&&{userAgent:o},...i&&{userIpAddress:i}}};try{const c=await fetch(l,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(d)});if(!c.ok)return console.error("createAssessment API error:",c.status,await c.text()),null;const h=await c.json();if(!h?.tokenProperties?.valid)return console.log(`CreateAssessment falló - token inválido: ${h?.tokenProperties?.invalidReason??"unknown"}`),null;if(h.tokenProperties.action!==n)return console.log("La acción en reCAPTCHA no coincide con la esperada:",n),null;const m=h?.riskAnalysis?.score;return m!==void 0&&(console.log("reCAPTCHA score:",m),h?.riskAnalysis?.reasons?.forEach(u=>console.log(u))),typeof m=="number"?m:null}catch(c){return console.error("createAssessment error:",c),null}};function jo(e,t){if(t==="comentarios")return;const a=e[t];return typeof a=="string"||a===void 0?a:void 0}const Fo=e=>e?.body?.rendered.includes("ck-image-gallery")||e?.config?.articlepreview==="fotogaleria"&&e?.hascontent?.hasgalleryimages;function Ho(e){const t={};for(const[a,n]of Object.entries(e)){const r=btoa(a).split("").reverse().join("");typeof n=="string"?t[r]=btoa(n).split("").reverse().join(""):t[r]=n}return t}function ys(e){const t={};for(const[a,n]of Object.entries(e)){const r=atob(a.split("").reverse().join(""));if(typeof n=="string")try{t[r]=atob(n.split("").reverse().join(""))}catch{t[r]=n}else t[r]=n}return t}const Vo=async(e,t,a)=>{const{info:n,preview:r}=e,o=e?.config?.homepreview||"imagen",i=o==="clip"&&e?.hascontent?.hasgalleryvideosflash,l={...r};if(o==="videoYouTube"||o==="videoEmbedded"||i){const d=await t.getNewsMultimedia({path:n.link.internal,imagesizes:a});if(d&&d.data)return{...e,preview:l,videos:d.data.data[0].videos??[]}}if(o==="fotogaleria"){const d=await t.getNewsMultimedia({path:n.link.internal,imagesizes:a});if(d&&d.data){const c=await Promise.all(d.data.data[0].gallery.map(async h=>({...h})));return{...e,preview:l,gallery:c??[]}}}return{...e,preview:l}};function Qo(){const{PUBLIC_SERVICE_PREFIX:e}=D();return e&&e!=="false"?"/"+e:""}function Oe(){const{PUBLIC_SERVICE_PREFIX:e,PUBLIC_IS_SUB_PUBLICATION:t,FORCE_SUB_PUBLICATION_PREFIX:a}=D();return a&&a!==""?"/"+a:e&&e!=="false"&&t&&t!=="false"?"/"+e:""}const zo=new Set(["@type","@context"]),qa=e=>{if(e==null)return!0;if(typeof e=="string")return e.trim()==="";if(Array.isArray(e))return e.length===0;if(typeof e=="object"){const t=Object.keys(e);return t.length===0?!0:t.every(a=>zo.has(a))}return!1},Ie=e=>{if(Array.isArray(e))return e.map(t=>Ie(t)).filter(t=>!qa(t));if(e&&typeof e=="object"){const t={};for(const[a,n]of Object.entries(e)){const r=Ie(n);qa(r)||(t[a]=r)}return t}return e},Ga={prefetch:[{where:{href_matches:"/*(-[0-9]{8}-[0-9]{4,6}|lb[0-9]{12,14}|t[0-9]{12,14}).html"},eagerness:"moderate"}],prerender:[{where:{and:[{selector_matches:".nota-prerender"},{href_matches:"/*(-[0-9]{8}-[0-9]{4,6}|lb[0-9]{12,14}|t[0-9]{12,14}).html"}]},eagerness:"eager"},{where:{href_matches:"/*(-[0-9]{8}-[0-9]{4,6}|lb[0-9]{12,14}|t[0-9]{12,14}).html"},eagerness:"moderate"}]},ja={prefetch:[{urls:["/"],eagerness:"eager"},{where:{href_matches:"/*(-[0-9]{8}-[0-9]{4,6}|lb[0-9]{12,14}|t[0-9]{12,14}).html"},eagerness:"moderate"}],prerender:[{where:{and:[{selector_matches:".nota-prerender"},{href_matches:"/*(-[0-9]{8}-[0-9]{4,6}|lb[0-9]{12,14}|t[0-9]{12,14}).html"}]},eagerness:"eager"},{where:{href_matches:"/*(-[0-9]{8}-[0-9]{4,6}|lb[0-9]{12,14}|t[0-9]{12,14}).html"},eagerness:"moderate"}]},Fa={prefetch:[{urls:["/"],eagerness:"eager"},{where:{and:[{href_matches:"/*(-[0-9]{8}-[0-9]{4,6}|lb[0-9]{12,14}|t[0-9]{12,14}).html"},{not:{selector_matches:"[rel~=nofollow]"}}]},eagerness:"moderate"}],prerender:[{where:{and:[{selector_matches:"#content-news-section a"},{href_matches:"/*(-[0-9]{8}-[0-9]{4,6}|lb[0-9]{12,14}|t[0-9]{12,14}).html"},{not:{selector_matches:"[rel~=nofollow]"}}]},eagerness:"eager"},{where:{and:[{href_matches:"/*(-[0-9]{8}-[0-9]{4,6}|lb[0-9]{12,14}|t[0-9]{12,14}).html"},{not:{selector_matches:"[rel~=nofollow]"}}]},eagerness:"moderate"}]},Ha={prefetch:[{urls:["/"],eagerness:"eager"},{where:{and:[{href_matches:"/*(-[0-9]{8}-[0-9]{4,6}|lb[0-9]{12,14}|t[0-9]{12,14}).html"},{not:{selector_matches:"[rel~=nofollow]"}}]},eagerness:"moderate"}],prerender:[{where:{and:[{selector_matches:"#block-notes-list a"},{href_matches:"/*(-[0-9]{8}-[0-9]{4,6}|lb[0-9]{12,14}|t[0-9]{12,14}).html"},{not:{selector_matches:"[rel~=nofollow]"}}]},eagerness:"eager"},{where:{and:[{href_matches:"/*(-[0-9]{8}-[0-9]{4,6}|lb[0-9]{12,14}|t[0-9]{12,14}).html"},{not:{selector_matches:"[rel~=nofollow]"}}]},eagerness:"moderate"}]},Wo={Home:Ga,Common:ja,Nota:Fa,NotaLista:Ha},Va=({active:e,type:t,customSpeculation:a})=>{const n=a||Wo[t];return e&&s.jsx("script",{type:"speculationrules",dangerouslySetInnerHTML:{__html:JSON.stringify(n)}})},Bt=async(e,t,a)=>{if(a)return a.get(`/schemas${t}`,{params:e}).catch(n=>{console.log(`[/schemas${t}] Error: ${n.message}`)})},Yo={autor:"autor",seccion:"seccion",tema:"claves","ultimas-noticias":"seccion"},Qa=async({config:e,axiosApi:t,pathname:a,ROUTE:n})=>{const{PUBLIC_PUBLICATION_ID:r=""}=D();let o=[];const i=a==="/"||a==="/index.html"?void 0:Xa(Ra[n]({pathname:a,config:e})),l=Yo[n]??void 0,d={newstype:e.newsType,publication:Number(r),...i&&l?{query:`${l}:('${i}')`}:{}};try{const c=await Bt(d,"/news-list-summary",t);c?.data?.data?o=c.data.data:console.warn("getSchemas responded but did not contain expected data:",c)}catch(c){console.log("Error fetching schemas:",c)}return Object.keys(o).length>0&&s.jsx("script",{id:"webSiteItemListSchema",type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(Ie(o))}})},$o=(e,t)=>{const a={"@context":"https://schema.org","@type":"SoftwareApplication",name:t.name??e.name,url:t.url,operatingSystem:t.operatingSystem,applicationCategory:t.applicationCategory,publisher:{"@id":`${e.siteUrl}/#organization`},offers:{"@type":"Offer",price:t.offers.price,priceCurrency:t.offers.priceCurrency},description:t.description??e.description,downloadUrl:t.downloadUrl??t.url};return t.applicationSubCategory&&(a.applicationSubCategory=t.applicationSubCategory),t.aggregateRating&&(a.aggregateRating={"@type":"AggregateRating",ratingValue:t.aggregateRating.ratingValue,ratingCount:t.aggregateRating.ratingCount,...t.aggregateRating.bestRating&&{bestRating:t.aggregateRating.bestRating}}),t.softwareVersion&&(a.softwareVersion=t.softwareVersion),t.contentRating&&(a.contentRating=t.contentRating),Ie(a)},za=({config:e})=>{if(!e.orgSoftware)return null;const t=Array.isArray(e.orgSoftware)?e.orgSoftware:[e.orgSoftware];return s.jsx(s.Fragment,{children:t.map((a,n)=>s.jsx("script",{id:`SoftwareApplicationSchema-${n}`,type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify($o(e,a))}},n))})};function Mt(e){const{PUBLIC_ASSETS_URL:t}=D();if(!t||t==="false")return e;const a=t.replace(/\/+$/,""),n=/https?:\/\/[^/\s]+\/(arte|__export)\//g;return e.replace(n,(r,o)=>`${a}/${o}/`)}const Wa=async({realPath:e,config:t,BASE_URL:a,axiosApi:n,schemasCustomEndpoints:r})=>{const o=Oe();let i=[];try{const l=t.socialBlockLogo?.url?new URL(t.socialBlockLogo.url).pathname:void 0,d=t.landscapeLogo?.url?new URL(t.landscapeLogo.url).pathname:void 0,c={path:e,image:d,logo:l,url:t.siteUrl,name:t.name,logow:t.socialBlockLogo?.width,logoh:t.socialBlockLogo?.height,authorurl:a+(t.paths.autor?`/${t.paths.autor}/`:"/autor/"),lang:t.lang},h=e.split("/").find(g=>["liveblogs","liveblog"].includes(g)),m=r&&r.length>0?r:h=="liveblogs"||h=="liveblog"?["/news","/news-breadcrumb","/news-liveblog"]:["/news","/news-breadcrumb"],u=t.paths.tema!==""?"/"+t.paths.tema:t.paths.tema,f=o?o+u:u;i=(await Promise.all(m.map(async g=>{const w=g==="/news-breadcrumb"?{...c,prefixtag:f}:g==="/news"&&t.schemasNewsParams?{...c,...t.schemasNewsParams}:c;return await Bt(w,g,n)}))).map(g=>g?.data?.data??[])}catch(l){console.log("Error fetching schemas:",l)}return i.map((l,d)=>s.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:Mt(JSON.stringify(Ie(l)))}},d))},Ya=({config:e,socials:t})=>{const a={"@context":"https://schema.org","@type":"NewsMediaOrganization","@id":`${e.siteUrl}/#organization`,name:e.name,description:e.description,email:e.email,url:e.siteUrl,logo:e.squareLogo.url,address:e.address&&Object.keys(e.address).length>0?{"@type":"PostalAddress",...e.address}:void 0,sameAs:Object.keys(t).filter(n=>t[n]?.showInSchema===void 0?t[n]?.show:t[n]?.showInSchema).map(n=>t[n]?.url)};return s.jsx("script",{id:"WebsiteOrgListSchema",type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(Ie(a))}})},$a=({config:e})=>{const t={"@context":"https://schema.org","@type":"WebSite",name:e.name,url:e.siteUrl,potentialAction:{"@type":"SearchAction",target:e.siteUrl+"/buscar?query={search_term_string}","query-input":"required name=search_term_string"}};return s.jsx("script",{id:"WebsiteListSchema",type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(Ie(t))}})},Ka=async({realPath:e,config:t,axiosApi:a})=>{try{const n={path:e,image:t.landscapeLogo?.url?new URL(t.landscapeLogo.url).pathname:void 0,logo:t.socialBlockLogo?.url?new URL(t.socialBlockLogo.url).pathname:void 0,url:t.siteUrl,name:t.name,logow:t.socialBlockLogo?.width,logoh:t.socialBlockLogo?.height,authorurl:`${t.siteUrl}/autor/`},o=(await Bt(n,"/videos",a))?.data.data;return o?s.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:Mt(JSON.stringify(Ie(o)))}}):void 0}catch(n){return console.error("Error fetching video schemas:",n),null}},Ko="U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD",Ja=e=>e?.startsWith("family=")??!1,Jo=e=>e.fontS3Url&&e.useS3Font?e.fontS3Url:e.googleFontFamily&&!Ja(e.googleFontFamily)?e.googleFontFamily:"",Zo=(e,t,a,n)=>`@font-face {
13
+ `}}),s.jsx("noscript",{children:s.jsx("iframe",{src:`https://www.googletagmanager.com/ns.html?id=${e}`,height:"0",width:"0",style:{display:"none",visibility:"hidden"}})})]})},wa=()=>{const{ANALYTICS_marfeel:e}=D();return e&&s.jsx("script",{type:"text/javascript",dangerouslySetInnerHTML:{__html:`!function(){"use strict";function e(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],c=document.createElement("script");c.src=e,t?c.type="module":(c.defer=!0,c.type="text/javascript",c.setAttribute("nomodule",""));var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(c,n)}!function(t,c){!function(t,c,n){var a,o,r;n.accountId=c,null!==(a=t.marfeel)&&void 0!==a||(t.marfeel={}),null!==(o=(r=t.marfeel).cmd)&&void 0!==o||(r.cmd=[]),t.marfeel.config=n;var i="https://sdk.mrf.io/statics";e("".concat(i,"/marfeel-sdk.js?id=").concat(c),!0),e("".concat(i,"/marfeel-sdk.es5.js?id=").concat(c),!1)}(t,c,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{})}(window,${e},{})}();`}})},to=({defaultRouteName:e})=>{const{CAPTCHA_KEY:t,CONFIG_comments:a=!1,CONFIG_commentsV2:n=!1}=D();return t&&t!==""&&(e==="video"&&a&&!n||e==="news"&&a&&!n||e==="auth"||e==="anuncia"||e==="contacto")&&s.jsx("script",{src:`https://www.google.com/recaptcha/enterprise.js?render=${t}`,async:!0,defer:!0})};function Re(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Tt={exports:{}},so=Tt.exports,Aa;function ba(){return Aa||(Aa=1,(function(e,t){(function(a,n){e.exports=n()})(so,(function(){var a=1e3,n=6e4,r=36e5,o="millisecond",i="second",l="minute",d="hour",c="day",h="week",m="month",u="quarter",f="year",p="date",g="Invalid Date",w=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,A=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,C={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(M){var k=["th","st","nd","rd"],P=M%100;return"["+M+(k[(P-20)%10]||k[P]||k[0])+"]"}},E=function(M,k,P){var H=String(M);return!H||H.length>=k?M:""+Array(k+1-H.length).join(P)+M},S={s:E,z:function(M){var k=-M.utcOffset(),P=Math.abs(k),H=Math.floor(P/60),F=P%60;return(k<=0?"+":"-")+E(H,2,"0")+":"+E(F,2,"0")},m:function M(k,P){if(k.date()<P.date())return-M(P,k);var H=12*(P.year()-k.year())+(P.month()-k.month()),F=k.clone().add(H,m),R=P-F<0,v=k.clone().add(H+(R?-1:1),m);return+(-(H+(P-F)/(R?F-v:v-F))||0)},a:function(M){return M<0?Math.ceil(M)||0:Math.floor(M)},p:function(M){return{M:m,y:f,w:h,d:c,D:p,h:d,m:l,s:i,ms:o,Q:u}[M]||String(M||"").toLowerCase().replace(/s$/,"")},u:function(M){return M===void 0}},b="en",T={};T[b]=C;var x="$isDayjsObject",B=function(M){return M instanceof V||!(!M||!M[x])},$=function M(k,P,H){var F;if(!k)return b;if(typeof k=="string"){var R=k.toLowerCase();T[R]&&(F=R),P&&(T[R]=P,F=R);var v=k.split("-");if(!F&&v.length>1)return M(v[0])}else{var U=k.name;T[U]=k,F=U}return!H&&F&&(b=F),F||!H&&b},G=function(M,k){if(B(M))return M.clone();var P=typeof k=="object"?k:{};return P.date=M,P.args=arguments,new V(P)},L=S;L.l=$,L.i=B,L.w=function(M,k){return G(M,{locale:k.$L,utc:k.$u,x:k.$x,$offset:k.$offset})};var V=(function(){function M(P){this.$L=$(P.locale,null,!0),this.parse(P),this.$x=this.$x||P.x||{},this[x]=!0}var k=M.prototype;return k.parse=function(P){this.$d=(function(H){var F=H.date,R=H.utc;if(F===null)return new Date(NaN);if(L.u(F))return new Date;if(F instanceof Date)return new Date(F);if(typeof F=="string"&&!/Z$/i.test(F)){var v=F.match(w);if(v){var U=v[2]-1||0,j=(v[7]||"0").substring(0,3);return R?new Date(Date.UTC(v[1],U,v[3]||1,v[4]||0,v[5]||0,v[6]||0,j)):new Date(v[1],U,v[3]||1,v[4]||0,v[5]||0,v[6]||0,j)}}return new Date(F)})(P),this.init()},k.init=function(){var P=this.$d;this.$y=P.getFullYear(),this.$M=P.getMonth(),this.$D=P.getDate(),this.$W=P.getDay(),this.$H=P.getHours(),this.$m=P.getMinutes(),this.$s=P.getSeconds(),this.$ms=P.getMilliseconds()},k.$utils=function(){return L},k.isValid=function(){return this.$d.toString()!==g},k.isSame=function(P,H){var F=G(P);return this.startOf(H)<=F&&F<=this.endOf(H)},k.isAfter=function(P,H){return G(P)<this.startOf(H)},k.isBefore=function(P,H){return this.endOf(H)<G(P)},k.$g=function(P,H,F){return L.u(P)?this[H]:this.set(F,P)},k.unix=function(){return Math.floor(this.valueOf()/1e3)},k.valueOf=function(){return this.$d.getTime()},k.startOf=function(P,H){var F=this,R=!!L.u(H)||H,v=L.p(P),U=function(ae,K){var W=L.w(F.$u?Date.UTC(F.$y,K,ae):new Date(F.$y,K,ae),F);return R?W:W.endOf(c)},j=function(ae,K){return L.w(F.toDate()[ae].apply(F.toDate("s"),(R?[0,0,0,0]:[23,59,59,999]).slice(K)),F)},Q=this.$W,O=this.$M,Y=this.$D,Z="set"+(this.$u?"UTC":"");switch(v){case f:return R?U(1,0):U(31,11);case m:return R?U(1,O):U(0,O+1);case h:var X=this.$locale().weekStart||0,ee=(Q<X?Q+7:Q)-X;return U(R?Y-ee:Y+(6-ee),O);case c:case p:return j(Z+"Hours",0);case d:return j(Z+"Minutes",1);case l:return j(Z+"Seconds",2);case i:return j(Z+"Milliseconds",3);default:return this.clone()}},k.endOf=function(P){return this.startOf(P,!1)},k.$set=function(P,H){var F,R=L.p(P),v="set"+(this.$u?"UTC":""),U=(F={},F[c]=v+"Date",F[p]=v+"Date",F[m]=v+"Month",F[f]=v+"FullYear",F[d]=v+"Hours",F[l]=v+"Minutes",F[i]=v+"Seconds",F[o]=v+"Milliseconds",F)[R],j=R===c?this.$D+(H-this.$W):H;if(R===m||R===f){var Q=this.clone().set(p,1);Q.$d[U](j),Q.init(),this.$d=Q.set(p,Math.min(this.$D,Q.daysInMonth())).$d}else U&&this.$d[U](j);return this.init(),this},k.set=function(P,H){return this.clone().$set(P,H)},k.get=function(P){return this[L.p(P)]()},k.add=function(P,H){var F,R=this;P=Number(P);var v=L.p(H),U=function(O){var Y=G(R);return L.w(Y.date(Y.date()+Math.round(O*P)),R)};if(v===m)return this.set(m,this.$M+P);if(v===f)return this.set(f,this.$y+P);if(v===c)return U(1);if(v===h)return U(7);var j=(F={},F[l]=n,F[d]=r,F[i]=a,F)[v]||1,Q=this.$d.getTime()+P*j;return L.w(Q,this)},k.subtract=function(P,H){return this.add(-1*P,H)},k.format=function(P){var H=this,F=this.$locale();if(!this.isValid())return F.invalidDate||g;var R=P||"YYYY-MM-DDTHH:mm:ssZ",v=L.z(this),U=this.$H,j=this.$m,Q=this.$M,O=F.weekdays,Y=F.months,Z=F.meridiem,X=function(K,W,_,de){return K&&(K[W]||K(H,R))||_[W].slice(0,de)},ee=function(K){return L.s(U%12||12,K,"0")},ae=Z||function(K,W,_){var de=K<12?"AM":"PM";return _?de.toLowerCase():de};return R.replace(A,(function(K,W){return W||(function(_){switch(_){case"YY":return String(H.$y).slice(-2);case"YYYY":return L.s(H.$y,4,"0");case"M":return Q+1;case"MM":return L.s(Q+1,2,"0");case"MMM":return X(F.monthsShort,Q,Y,3);case"MMMM":return X(Y,Q);case"D":return H.$D;case"DD":return L.s(H.$D,2,"0");case"d":return String(H.$W);case"dd":return X(F.weekdaysMin,H.$W,O,2);case"ddd":return X(F.weekdaysShort,H.$W,O,3);case"dddd":return O[H.$W];case"H":return String(U);case"HH":return L.s(U,2,"0");case"h":return ee(1);case"hh":return ee(2);case"a":return ae(U,j,!0);case"A":return ae(U,j,!1);case"m":return String(j);case"mm":return L.s(j,2,"0");case"s":return String(H.$s);case"ss":return L.s(H.$s,2,"0");case"SSS":return L.s(H.$ms,3,"0");case"Z":return v}return null})(K)||v.replace(":","")}))},k.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},k.diff=function(P,H,F){var R,v=this,U=L.p(H),j=G(P),Q=(j.utcOffset()-this.utcOffset())*n,O=this-j,Y=function(){return L.m(v,j)};switch(U){case f:R=Y()/12;break;case m:R=Y();break;case u:R=Y()/3;break;case h:R=(O-Q)/6048e5;break;case c:R=(O-Q)/864e5;break;case d:R=O/r;break;case l:R=O/n;break;case i:R=O/a;break;default:R=O}return F?R:L.a(R)},k.daysInMonth=function(){return this.endOf(m).$D},k.$locale=function(){return T[this.$L]},k.locale=function(P,H){if(!P)return this.$L;var F=this.clone(),R=$(P,H,!0);return R&&(F.$L=R),F},k.clone=function(){return L.w(this.$d,this)},k.toDate=function(){return new Date(this.valueOf())},k.toJSON=function(){return this.isValid()?this.toISOString():null},k.toISOString=function(){return this.$d.toISOString()},k.toString=function(){return this.$d.toUTCString()},M})(),J=V.prototype;return G.prototype=J,[["$ms",o],["$s",i],["$m",l],["$H",d],["$W",c],["$M",m],["$y",f],["$D",p]].forEach((function(M){J[M[1]]=function(k){return this.$g(k,M[0],M[1])}})),G.extend=function(M,k){return M.$i||(M(k,V,G),M.$i=!0),G},G.locale=$,G.isDayjs=B,G.unix=function(M){return G(1e3*M)},G.en=T[b],G.Ls=T,G.p={},G}))})(Tt)),Tt.exports}var ao=ba();const ge=Re(ao);var It={exports:{}},no=It.exports,ya;function ro(){return ya||(ya=1,(function(e,t){(function(a,n){e.exports=n()})(no,(function(){return function(a,n,r){a=a||{};var o=n.prototype,i={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function l(c,h,m,u){return o.fromToBase(c,h,m,u)}r.en.relativeTime=i,o.fromToBase=function(c,h,m,u,f){for(var p,g,w,A=m.$locale().relativeTime||i,C=a.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],E=C.length,S=0;S<E;S+=1){var b=C[S];b.d&&(p=u?r(c).diff(m,b.d,!0):m.diff(c,b.d,!0));var T=(a.rounding||Math.round)(Math.abs(p));if(w=p>0,T<=b.r||!b.r){T<=1&&S>0&&(b=C[S-1]);var x=A[b.l];f&&(T=f(""+T)),g=typeof x=="string"?x.replace("%d",T):x(T,h,b.l,w);break}}if(h)return g;var B=w?A.future:A.past;return typeof B=="function"?B(g):B.replace("%s",g)},o.to=function(c,h){return l(c,h,this,!0)},o.from=function(c,h){return l(c,h,this)};var d=function(c){return c.$u?r.utc():r()};o.toNow=function(c){return this.to(d(this),c)},o.fromNow=function(c){return this.from(d(this),c)}}}))})(It)),It.exports}var oo=ro();const io=Re(oo);var Ut={exports:{}},lo=Ut.exports,Ca;function co(){return Ca||(Ca=1,(function(e,t){(function(a,n){e.exports=n(ba())})(lo,(function(a){function n(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}var r=n(a),o={name:"es",monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinal:function(i){return i+"º"}};return r.default.locale(o,null,!0),o}))})(Ut)),Ut.exports}co();var xt={exports:{}},ho=xt.exports,va;function uo(){return va||(va=1,(function(e,t){(function(a,n){e.exports=n()})(ho,(function(){var a="minute",n=/[+-]\d\d(?::?\d\d)?/g,r=/([+-]|\d\d)/g;return function(o,i,l){var d=i.prototype;l.utc=function(g){var w={date:g,utc:!0,args:arguments};return new i(w)},d.utc=function(g){var w=l(this.toDate(),{locale:this.$L,utc:!0});return g?w.add(this.utcOffset(),a):w},d.local=function(){return l(this.toDate(),{locale:this.$L,utc:!1})};var c=d.parse;d.parse=function(g){g.utc&&(this.$u=!0),this.$utils().u(g.$offset)||(this.$offset=g.$offset),c.call(this,g)};var h=d.init;d.init=function(){if(this.$u){var g=this.$d;this.$y=g.getUTCFullYear(),this.$M=g.getUTCMonth(),this.$D=g.getUTCDate(),this.$W=g.getUTCDay(),this.$H=g.getUTCHours(),this.$m=g.getUTCMinutes(),this.$s=g.getUTCSeconds(),this.$ms=g.getUTCMilliseconds()}else h.call(this)};var m=d.utcOffset;d.utcOffset=function(g,w){var A=this.$utils().u;if(A(g))return this.$u?0:A(this.$offset)?m.call(this):this.$offset;if(typeof g=="string"&&(g=(function(b){b===void 0&&(b="");var T=b.match(n);if(!T)return null;var x=(""+T[0]).match(r)||["-",0,0],B=x[0],$=60*+x[1]+ +x[2];return $===0?0:B==="+"?$:-$})(g),g===null))return this;var C=Math.abs(g)<=16?60*g:g;if(C===0)return this.utc(w);var E=this.clone();if(w)return E.$offset=C,E.$u=!1,E;var S=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(E=this.local().add(C+S,a)).$offset=C,E.$x.$localOffset=S,E};var u=d.format;d.format=function(g){var w=g||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return u.call(this,w)},d.valueOf=function(){var g=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*g},d.isUTC=function(){return!!this.$u},d.toISOString=function(){return this.toDate().toISOString()},d.toString=function(){return this.toDate().toUTCString()};var f=d.toDate;d.toDate=function(g){return g==="s"&&this.$offset?l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():f.call(this)};var p=d.diff;d.diff=function(g,w,A){if(g&&this.$u===g.$u)return p.call(this,g,w,A);var C=this.local(),E=l(g).local();return p.call(C,E,w,A)}}}))})(xt)),xt.exports}var mo=uo();const fo=Re(mo);var kt={exports:{}},go=kt.exports,Na;function po(){return Na||(Na=1,(function(e,t){(function(a,n){e.exports=n()})(go,(function(){var a={year:0,month:1,day:2,hour:3,minute:4,second:5},n={};return function(r,o,i){var l,d=function(u,f,p){p===void 0&&(p={});var g=new Date(u),w=(function(A,C){C===void 0&&(C={});var E=C.timeZoneName||"short",S=A+"|"+E,b=n[S];return b||(b=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:A,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:E}),n[S]=b),b})(f,p);return w.formatToParts(g)},c=function(u,f){for(var p=d(u,f),g=[],w=0;w<p.length;w+=1){var A=p[w],C=A.type,E=A.value,S=a[C];S>=0&&(g[S]=parseInt(E,10))}var b=g[3],T=b===24?0:b,x=g[0]+"-"+g[1]+"-"+g[2]+" "+T+":"+g[4]+":"+g[5]+":000",B=+u;return(i.utc(x).valueOf()-(B-=B%1e3))/6e4},h=o.prototype;h.tz=function(u,f){u===void 0&&(u=l);var p,g=this.utcOffset(),w=this.toDate(),A=w.toLocaleString("en-US",{timeZone:u}),C=Math.round((w-new Date(A))/1e3/60),E=15*-Math.round(w.getTimezoneOffset()/15)-C;if(!Number(E))p=this.utcOffset(0,f);else if(p=i(A,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(E,!0),f){var S=p.utcOffset();p=p.add(g-S,"minute")}return p.$x.$timezone=u,p},h.offsetName=function(u){var f=this.$x.$timezone||i.tz.guess(),p=d(this.valueOf(),f,{timeZoneName:u}).find((function(g){return g.type.toLowerCase()==="timezonename"}));return p&&p.value};var m=h.startOf;h.startOf=function(u,f){if(!this.$x||!this.$x.$timezone)return m.call(this,u,f);var p=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return m.call(p,u,f).tz(this.$x.$timezone,!0)},i.tz=function(u,f,p){var g=p&&f,w=p||f||l,A=c(+i(),w);if(typeof u!="string")return i(u).tz(w);var C=(function(T,x,B){var $=T-60*x*1e3,G=c($,B);if(x===G)return[$,x];var L=c($-=60*(G-x)*1e3,B);return G===L?[$,G]:[T-60*Math.min(G,L)*1e3,Math.max(G,L)]})(i.utc(u,g).valueOf(),A,w),E=C[0],S=C[1],b=i(E).utcOffset(S);return b.$x.$timezone=w,b},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(u){l=u}}}))})(kt)),kt.exports}var wo=po();const Ao=Re(wo);ge.extend(fo),ge.extend(Ao),ge.extend(io);const Lt=e=>e==="en"?"en":"es",Te=(e,t)=>{const{PUBLIC_LNG:a,DATE_TIMEZONE:n}=t||D(),r=Lt(a??"es");return ge.tz(e,n).locale(r).format("DD MMMM YYYY")},dt=e=>{const{PUBLIC_LNG:t,DATE_TIMEZONE:a}=D(),n=Lt(t??"es");return ge.tz(e,a).locale(n).format(n==="en"?"MMMM DD YYYY [•] HH:mm [hs]":"DD [de] MMMM YYYY [•] HH:mm [hs]")},Sa=e=>{const{PUBLIC_LNG:t,DATE_TIMEZONE:a}=D(),n=Lt(t??"es");return ge.tz(e,a).locale(n).format("MM/DD/YYYY [•] HH:mm [HS]")},bo=e=>{const{PUBLIC_LNG:t,DATE_TIMEZONE:a}=D(),n=Lt(t??"es");return ge.tz(e,a).locale(n).format("dddd DD [de] MMMM YYYY")},Ge=(e,t)=>{if(!e)return"";const a=new Date(e),r=new Intl.DateTimeFormat("en-CA",{timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}).formatToParts(a),o={};r.forEach(f=>{f.type!=="literal"&&(o[f.type]=f.value)});const i=new Date(a.toLocaleString("en-US",{timeZone:"UTC"})),d=(new Date(a.toLocaleString("en-US",{timeZone:t})).getTime()-i.getTime())/6e4,c=d>=0?"+":"-",h=f=>String(Math.floor(Math.abs(f))).padStart(2,"0"),m=h(d/60),u=h(d%60);return`${o.year}-${o.month}-${o.day}T${o.hour}:${o.minute}:${o.second}${c}${m}:${u}`},Pe=(e,t=136)=>e&&e.length>t?`${e.substring(0,t)}...`:e;function Qe(e){return e&&e.status==="fulfilled"?e.value.data:null}function Ea(e){return e&&e.status==="fulfilled"?e.value:null}const yo={url:"",target:"_self",canonical:!1,internal:""},Co={date:"",created:0,modified:0,firstpublish:0,lastpublish:0};function vo(e){return e==null?"":typeof e=="string"?e:e.article??e.home??e.section??e.seo??""}const et=(e,t,a,n)=>{const r=vo(e?.main?.title),o=e?.main?.description??"";return{authors:e?.main?.author?[{firstname:"",lastname:"",fullname:typeof e.main.author=="string"?e.main.author:String(e.main.author??"Redacción"),image:{sizes:[],description:""},name:"",internaluser:!1}]:[],social:{description:"",images:{facebook:"",twitter:""},title:""},info:{date:{...Co,...e?.info?.date},link:e?.info?.link??yo},preview:{sizes:e?.main?.image?.sizes??[],description:e?.main?.image?.description??""},config:{showtime:t??!1,showsubtitle:a??!1,showauthor:!!(n&&e?.main?.author)},main:{title:{article:r,home:r,seo:r,section:r},subtitle:{rendered:o,striped:o},tags:[]}}},Ta=/<div\b[^>]*class=["'][^"']*\bck-related-news\b[^"']*["'][^>]*>/gi;function Pt(e){if(!e?.body?.rendered)return[];const t=e.body.rendered,a=[];let n=0;for(;n<t.length;){Ta.lastIndex=n;const r=Ta.exec(t);if(!r)break;const o=r.index+r[0].length;let i=1,l=o,d=o;for(;l<t.length&&i>0;){const f=t.slice(l),p=f.match(/<div\b/i),g=f.match(/<\/div>/i),w=p?.index??-1,A=g?.index??-1;if(A===-1)break;const C=w===-1?1/0:l+w,E=l+A;w!==-1&&w<A?(i+=1,l=C+p[0].length):(i-=1,d=E,l=E+g[0].length)}const c=t.slice(o,d),h=[],m=/<span\b[^>]*\bdata-src=["']([^"']+)["']/gi;let u;for(;(u=m.exec(c))!==null;){const f=u[1];f&&h.push(f)}h.length>0&&a.push(h),n=l}return a}const No=Pt,Ia=async(e,t)=>{const a=[];return e.forEach(o=>{o.forEach(i=>{const l=t({path:i.replaceAll("|","/"),imagesizes:"w:212,h:142,t:2;w:100,h:100,t:2",exclude:"config,keywords,authors,body,related,relatedexternal,social,external,hascontent,customfields,pixel"});l&&a.push(l)})}),(await Promise.allSettled(a)).map(o=>Qe(o)?.data)},ze=()=>{const{PUBLIC_ENV:e,PUBLIC_API_HOST:t,PUBLIC_ASSETS_URL:a}=D();return e=="local"&&(!a||a==="false")?t:a&&a!=="false"?a:""},So=()=>{const{PUBLIC_ENV:e,PUBLIC_API_FRONT:t}=D();return e==="local"?t:""},Ua=e=>e.replace(/^https?:?\/\/[^/]+/,""),Eo=e=>{if(!e?.preview?.length)return null;const t=e.preview;return t.find(a=>a.format==="1.91:1")??t[t.length-1]},xa=({schemaImage:e,socialImage:t,fallbackImage:a,prefix:n,defaultWidth:r,defaultHeight:o,alt:i})=>e?.url?{url:n+e.url,width:e.width,height:e.height,alt:i}:{url:n+(t??a??""),width:r,height:o,alt:i},ka=(e,t,a,n)=>{if(!t)return{};const{PUBLIC_ASSETS_URL:r,PUBLIC_API_FRONT:o,DATE_TIMEZONE:i="America/Mexico_City"}=D(),l=ws(t.keywords)??"",d=t?.preview?.sizes?t?.preview?.sizes[0]?.url:"",c=(r!=="false"?r:o)??"",h=Eo(n),m=t.main.title.article,u=xa({schemaImage:h,socialImage:t?.social?.images?.facebook,fallbackImage:d,prefix:c,defaultWidth:a.landscapeLogo.width,defaultHeight:a.landscapeLogo.height,alt:n?.description??m}),f=xa({schemaImage:h,socialImage:t?.social?.images?.twitter,fallbackImage:d,prefix:c,defaultWidth:a.twitterSummaryCard.width,defaultHeight:a.twitterSummaryCard.height,alt:n?.description??m});return{title:(t?.main?.title?.seo??t?.main?.title?.article)+" | "+a.name,robots:"index, follow, max-image-preview:large",alternates:{types:{"application/rss+xml":(a.siteUrl??"")+"/rss/feed.xml"},canonical:t?.info?.link?.canonical},description:t?.main?.subtitle?.striped??"",news_keywords:l,keywords:l,openGraph:{title:t?.social?.title?t?.social?.title:t?.main?.title?.article,url:t?.info?.link?.canonical,type:"article",description:t?.social?.description?t?.social?.description:t?.main?.subtitle?.striped??"",images:[u],siteName:a.name.toLocaleUpperCase(),locale:a.lang.startsWith("en")?"en_US":a.lang==="es"?"es_LA":a.lang.replace("-","_")},twitter:{title:t?.main?.title?.article,card:"summary_large_image",site:e.twitter.site,description:t?.main?.subtitle?.striped??"",images:[f]},article:{published_time:Ge(t?.info?.date?.firstpublish,i),modified_time:Ge(t?.info?.date?.lastpublish??t?.info?.date?.firstpublish,i),section:t?.info?.section?.name,author:t?.authors?.[0]?.fullname,tag:t?.keywords?.tags??[]}}},ws=e=>!e||!e?.tags||e?.tags?.length===0?"":e?.tags?.map(t=>t.name).join(", ").replaceAll('"',"'").replaceAll("`","'"),La=e=>{const t=e?.match(/^\/(?:[^/]+\/)?([^/]+)\/([^/]+\.html)$/);return t?{slug:t[1]??"",path:t[2]??""}:{slug:"",path:""}},Pa=e=>e.replaceAll("/","").replaceAll("_","").replace(".html",""),To={description:{attr:"name",value:"description"},robots:{attr:"name",value:"robots"},keywords:{attr:"name",value:"keywords"},news_keywords:{attr:"name",value:"news_keywords"},"openGraph.title":{attr:"property",value:"og:title"},"openGraph.description":{attr:"property",value:"og:description"},"openGraph.type":{attr:"property",value:"og:type"},"openGraph.url":{attr:"property",value:"og:url"},"openGraph.siteName":{attr:"property",value:"og:site_name"},"openGraph.locale":{attr:"property",value:"og:locale"},"twitter.card":{attr:"name",value:"twitter:card"},"twitter.title":{attr:"name",value:"twitter:title"},"twitter.description":{attr:"name",value:"twitter:description"},"twitter.site":{attr:"name",value:"twitter:site"},"twitter.domain":{attr:"name",value:"twitter:domain"},"twitter.url":{attr:"name",value:"twitter:url"}},Oa=e=>{const t=[];let a=0;const n=i=>t.push(i);return e.title&&typeof e.title=="string"&&n(s.jsx("title",{children:e.title},`title-${a++}`)),Object.entries(To).forEach(([i,l])=>{const d=i.split(".").reduce((c,h)=>c?.[h],e);d&&n(s.jsx("meta",{[l.attr]:l.value,content:String(d)},`meta-${a++}`))}),(e.openGraph?.images?Array.isArray(e.openGraph.images)?e.openGraph.images:[e.openGraph.images]:[]).forEach(i=>{i&&(typeof i=="string"?n(s.jsx("meta",{property:"og:image",content:i},`og-img-${a++}`)):(i.url&&n(s.jsx("meta",{property:"og:image",content:i.url},`og-img-${a++}`)),i.width&&n(s.jsx("meta",{property:"og:image:width",content:String(i.width)},`og-img-w-${a++}`)),i.height&&n(s.jsx("meta",{property:"og:image:height",content:String(i.height)},`og-img-h-${a++}`)),i.alt&&n(s.jsx("meta",{property:"og:image:alt",content:String(i.alt)},`og-img-alt-${a++}`))))}),(e.twitter?.images?Array.isArray(e.twitter.images)?e.twitter.images:[e.twitter.images]:[]).forEach(i=>{i&&(typeof i=="string"?n(s.jsx("meta",{name:"twitter:image",content:i},`tw-img-${a++}`)):(i.url&&n(s.jsx("meta",{name:"twitter:image",content:i.url},`tw-img-${a++}`)),i.width&&n(s.jsx("meta",{name:"twitter:image:width",content:String(i.width)},`tw-img-w-${a++}`)),i.height&&n(s.jsx("meta",{name:"twitter:image:height",content:String(i.height)},`tw-img-h-${a++}`)),i.alt&&n(s.jsx("meta",{name:"twitter:image:alt",content:String(i.alt)},`tw-img-alt-${a++}`))))}),e.article&&(n(s.jsx("meta",{property:"article:published_time",content:e.article.published_time})),n(s.jsx("meta",{property:"article:modified_time",content:e.article.modified_time})),n(s.jsx("meta",{property:"article:section",content:e.article.section})),n(s.jsx("meta",{property:"article:author",content:e.article.author})),Array.isArray(e.article.tag)&&e.article.tag.length>0&&e.article.tag.forEach(i=>{n(s.jsx("meta",{property:"article:tag",content:i.name}))})),e.alternates?.canonical&&n(s.jsx("link",{rel:"canonical",href:String(e.alternates.canonical)},`link-${a++}`)),e.manifest&&n(s.jsx("link",{rel:"manifest",href:String(e.manifest)},`link-${a++}`)),e.alternates?.types&&Object.entries(e.alternates.types).forEach(([i,l])=>{typeof l=="string"&&n(s.jsx("link",{rel:"alternate",type:i,href:l},`alt-${a++}`))}),e.icons&&[...e.icons?.icon??[],...e.icons?.other??[]].forEach(l=>{l&&n(typeof l=="string"?s.jsx("link",{rel:"icon",href:l},`icon-${a++}`):s.jsx("link",{rel:l.rel||"icon",href:l.url,...l.type&&{type:l.type},...l.sizes&&{sizes:l.sizes}},`icon-${a++}`))}),e.other&&Object.entries(e.other).forEach(([i,l])=>{l&&n(s.jsx("meta",{name:i,content:String(l)},`other-${a++}`))}),t},he=async e=>{const t=ze()??"",a=e;return a?.startsWith("http")||a?.includes(t)||t===""?a:t+a},ht=(e,t)=>{const a=e||"";return t?a.replaceAll("[section_replace]",t["[section_replace]"]??"").replaceAll("[tag_replace]",t["[tag_replace]"]??"").replaceAll("[tags_replace]",t["[tags_replace]"]??"").replaceAll("[url_replace]",t["[url_replace]"]??"").replaceAll("[author_replace]",t["[author_replace]"]??"").replaceAll("[creator_replace]",t["[creator_replace]"]??"")||"":a||""},Io=/\[(?:general|seccion:[^\]]+|tema:\d+)\][\s\S]*?\[\/(?:general|seccion:[^\]]+|tema:\d+)\]/i,Uo=/\[(general|seccion:[^\]]+|tema:\d+)\]([\s\S]*?)\[\/\1\]/gi,xo=e=>!e||e.type==="general"?"general":e.type==="seccion"?`seccion:${e.value}`.toLowerCase():`tema:${e.value}`,Ot=(e,t)=>{const a=e||"";if(!Io.test(a))return a;const n=new Map;for(const l of a.matchAll(Uo)){const d=l[1]?.toLowerCase(),c=l[2];d&&c!==void 0&&!n.has(d)&&n.set(d,c)}if(n.size===0)return a;const r=xo(t),o=n.get(r);if(o!==void 0)return o;const i=n.get("general");return i!==void 0?i:""},ko=e=>{const t={};if(!e)return t;const a=/([^\s=]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'>]+)))?/g;let n;for(;n=a.exec(e);){const r=n[1],o=n[2]??n[3]??n[4]??!0;t[r]=o}return t},Lo=e=>{const t=e.match(/\bsrc\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s>]+))/i);return t?.[1]||t?.[2]||t?.[3]||null},Ba=(e,t,a,n)=>{try{const r=ko(e);return r.src?s.jsx("script",{"data-bs-name":n,...r},a):s.jsx("script",{...r,dangerouslySetInnerHTML:{__html:t}},a)}catch{const o=Lo(e);return o?s.jsx("script",{"data-bs-name":n,src:o,async:!0,defer:!0},a):null}},Po=e=>{const t=/<script\b([^>]*)>([\s\S]*?)<\/script\s*>|<script\b([^>]*)\/?>/gi;return[...e.matchAll(t)]},As=e=>{const t=e.banners.find(r=>r.key===e.name);if(!t||!t.show)return null;const a=ht(t.value||"",e.replaces),n=Po(a);return s.jsx(s.Fragment,{children:n.map((r,o)=>{const i=r[1]||r[3]||"",l=r[2]?.trim()||"";return Ba(i,l,o,e.name)})})},Ma=e=>{const t=e.banners.find(r=>r.key===e.name);if(!t||!t.show)return null;const n=ht(t.value||"",e.replaces).split(/(<script\b[\s\S]*?<\/script\s*>|<script\b[^>]*\/?>)/gi);return s.jsx(s.Fragment,{children:n.map((r,o)=>{const i=r.match(/<script\b([^>]*)>([\s\S]*?)<\/script\s*>|<script\b([^>]*)\/?>/i);if(i){const l=i[1]||i[3]||"",d=i[2]?.trim()||"";return Ba(l,d,o,e.name)}return r.trim()&&/<[a-zA-Z]/.test(r)?s.jsx("div",{dangerouslySetInnerHTML:{__html:r}},o):null})})},tt=(e,t,a)=>{let n=e.siteUrl;return t.forEach((r,o)=>{o>0&&(n+=`/${r}`)}),`${n}/page/${a+1}`},st=(e,t,a)=>{let n=e.siteUrl;return t.forEach((r,o)=>{o>0&&(n+=`/${r}`)}),`${n}/page/${a-1}`};function Oo(e){const t=e.length;return t>1&&e.charCodeAt(t-1)===47?e.slice(0,t-1):e}const _a=()=>{const{PUBLIC_ASSETS_URL:e}=D();return e&&e!=="false"&&s.jsx("link",{rel:"preconnect",href:e,crossOrigin:"anonymous"})},bs=({images:e})=>s.jsx(s.Fragment,{children:e.map((t,a)=>t.href!==""&&s.jsx("link",{rel:"preload",href:t.href,media:t.media??"",as:"image",fetchPriority:t.fetchPriority??"high"},a))}),Da=(e,t,a)=>{if(!t)return{};const{PUBLIC_API_FRONT:n}=D();return{title:t?.main?.title+" | "+a.name,robots:"index, follow, max-image-preview:large",alternates:{canonical:a.siteUrl+t?.info?.link?.url},description:t.main.description??"",news_keywords:t.main.tags,keywords:t.main.tags,openGraph:{title:t.main.title,url:t?.info?.link?.canonical,type:"video.other",description:t.main.description??"",images:[{url:(n??"")+t?.main.image.sizes[0]?.url,width:a.landscapeLogo.width,height:a.landscapeLogo.height}],siteName:a.name.toLocaleUpperCase(),locale:a.lang.startsWith("en")?"en_US":a.lang==="es"?"es_LA":a.lang.replace("-","_")},twitter:{title:t?.main?.title,card:"summary_large_image",site:e.twitter.site,description:t?.main.description??"",images:[{url:(n??"")+t?.main.image.sizes[0]?.url,width:a.twitterSummaryCard.width,height:a.twitterSummaryCard.height}]}}},Bo=e=>{let t="";if(e.params.news.match(/.*t[0-9]*.html/g)){const a=e.params.news.split("-"),n=a[a.length-1]??"",r=n.substring(1,9),o=n.substring(9,13);t=`/listas/${ge(r).format("YYYY/MM/DD")}/lista_${o}.html`}else if(e.params.news.match(/.*lb[0-9]*.html/g)){const a=e.params.news.split("-"),n=a[a.length-1]??"",r=n.substring(2,10),o=n.substring(10,14);t=`/liveblog/${ge(r).format("YYYY/MM/DD")}/liveblog_${o}.html`}else{const n=e.params.news.replace(/\.html$/g,"").split("-");Array.isArray(n)&&(t=`/contenidos/${ge(n[n.length-2]).format("YYYY/MM/DD")}/noticia_${n[n.length-1]}.html`)}return e.config.servicePrefix+t};function Mo(e){const t=e.lastIndexOf("-"),a=t>=0?[e.slice(0,t),e.slice(t+1)]:[e],n=a[a.length-1]?.split("."),r=n&&n[0]?n[0]:"",o=r.substring(0,2),i=r.substring(2,10),l=r.substring(10);return{path:{vy:c=>`/videos/video-youtube/${ge(i).format("YYYY/MM/DD")}/videoYouTube_${c}.lnk`,ve:c=>`/videos/video-embedded/${ge(i).format("YYYY/MM/DD")}/videoEmbedded_${c}.lnk`,vf:c=>`/videos/video-flash/${ge(i).format("YYYY/MM/DD")}/${a[0]}.${c}`}[o]?.(l)??"",op:o}}const je=(e,t)=>{const a=e.name.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/ñ/g,"n").replace(/Ñ/g,"n").replace(/[^\w\s]/gi,"").replaceAll(" ","-").toLowerCase();return t?.tema?`/${t.tema}/${a}-t${e.id}`:`/${a}-t${e.id}`},_o=e=>{const{AssetsPrefix:t="",AssetsPath:a="src",isDev:n=!1}=e;return n?"src":t+a},Do=async(e,t,a,n)=>{const{FETCH_TAG_BASED_RELATED_NEWS:r=!1,FETCH_SIZE_RELATED_NEWS:o=10}=D();if(!e)return[];try{if(e.related&&e.related?.automatic===!1&&e.related?.news&&e.related?.news.length>0)return(await a.getNewsListPath({path:e.related.news.map(l=>l.path).join(";"),exclude:"gallery,related,relatedexternal,external,customfields",imagesizes:n.md}))?.data?.data??[];{const i=e&&e.keywords&&e.keywords.tags&&e.keywords.tags[0];return((e?i&&r?await a.getNewsListAvanced({query:'claves:("'+e.keywords?.tags[0].name+'")',exclude:"gallery,related,relatedexternal,external,customfields",imagesizes:n.md,size:o+1}):await a.getNewsItemsRelated(t.split("/").join("|"),{size:o}):null)?.data?.data??[]).filter(c=>c.info.link.internal!==t.split("/").join("|"))}}catch(i){console.log(i)}},qo="https://recaptchaenterprise.googleapis.com/v1/projects",Go=async({projectID:e,recaptchaKey:t,token:a,recaptchaAction:n,apiKey:r,userAgent:o,userIpAddress:i})=>{if(!e||!t||!a||!r)return console.warn("createAssessment: faltan parámetros requeridos"),null;const l=`${qo}/${e}/assessments?key=${r}`,d={event:{token:a,siteKey:t,expectedAction:n,...o&&{userAgent:o},...i&&{userIpAddress:i}}};try{const c=await fetch(l,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(d)});if(!c.ok)return console.error("createAssessment API error:",c.status,await c.text()),null;const h=await c.json();if(!h?.tokenProperties?.valid)return console.log(`CreateAssessment falló - token inválido: ${h?.tokenProperties?.invalidReason??"unknown"}`),null;if(h.tokenProperties.action!==n)return console.log("La acción en reCAPTCHA no coincide con la esperada:",n),null;const m=h?.riskAnalysis?.score;return m!==void 0&&(console.log("reCAPTCHA score:",m),h?.riskAnalysis?.reasons?.forEach(u=>console.log(u))),typeof m=="number"?m:null}catch(c){return console.error("createAssessment error:",c),null}};function jo(e,t){if(t==="comentarios")return;const a=e[t];return typeof a=="string"||a===void 0?a:void 0}const Fo=e=>e?.body?.rendered.includes("ck-image-gallery")||e?.config?.articlepreview==="fotogaleria"&&e?.hascontent?.hasgalleryimages;function Ho(e){const t={};for(const[a,n]of Object.entries(e)){const r=btoa(a).split("").reverse().join("");typeof n=="string"?t[r]=btoa(n).split("").reverse().join(""):t[r]=n}return t}function ys(e){const t={};for(const[a,n]of Object.entries(e)){const r=atob(a.split("").reverse().join(""));if(typeof n=="string")try{t[r]=atob(n.split("").reverse().join(""))}catch{t[r]=n}else t[r]=n}return t}const Vo=async(e,t,a)=>{const{info:n,preview:r}=e,o=e?.config?.homepreview||"imagen",i=o==="clip"&&e?.hascontent?.hasgalleryvideosflash,l={...r};if(o==="videoYouTube"||o==="videoEmbedded"||i){const d=await t.getNewsMultimedia({path:n.link.internal,imagesizes:a});if(d&&d.data)return{...e,preview:l,videos:d.data.data[0].videos??[]}}if(o==="fotogaleria"){const d=await t.getNewsMultimedia({path:n.link.internal,imagesizes:a});if(d&&d.data){const c=await Promise.all(d.data.data[0].gallery.map(async h=>({...h})));return{...e,preview:l,gallery:c??[]}}}return{...e,preview:l}};function Qo(){const{PUBLIC_SERVICE_PREFIX:e}=D();return e&&e!=="false"?"/"+e:""}function Oe(){const{PUBLIC_SERVICE_PREFIX:e,PUBLIC_IS_SUB_PUBLICATION:t,FORCE_SUB_PUBLICATION_PREFIX:a}=D();return a&&a!==""?"/"+a:e&&e!=="false"&&t&&t!=="false"?"/"+e:""}const zo=new Set(["@type","@context"]),qa=e=>{if(e==null)return!0;if(typeof e=="string")return e.trim()==="";if(Array.isArray(e))return e.length===0;if(typeof e=="object"){const t=Object.keys(e);return t.length===0?!0:t.every(a=>zo.has(a))}return!1},Ie=e=>{if(Array.isArray(e))return e.map(t=>Ie(t)).filter(t=>!qa(t));if(e&&typeof e=="object"){const t={};for(const[a,n]of Object.entries(e)){const r=Ie(n);qa(r)||(t[a]=r)}return t}return e},Ga={prefetch:[{where:{href_matches:"/*(-[0-9]{8}-[0-9]{4,6}|lb[0-9]{12,14}|t[0-9]{12,14}).html"},eagerness:"moderate"}],prerender:[{where:{and:[{selector_matches:".nota-prerender"},{href_matches:"/*(-[0-9]{8}-[0-9]{4,6}|lb[0-9]{12,14}|t[0-9]{12,14}).html"}]},eagerness:"eager"},{where:{href_matches:"/*(-[0-9]{8}-[0-9]{4,6}|lb[0-9]{12,14}|t[0-9]{12,14}).html"},eagerness:"moderate"}]},ja={prefetch:[{urls:["/"],eagerness:"eager"},{where:{href_matches:"/*(-[0-9]{8}-[0-9]{4,6}|lb[0-9]{12,14}|t[0-9]{12,14}).html"},eagerness:"moderate"}],prerender:[{where:{and:[{selector_matches:".nota-prerender"},{href_matches:"/*(-[0-9]{8}-[0-9]{4,6}|lb[0-9]{12,14}|t[0-9]{12,14}).html"}]},eagerness:"eager"},{where:{href_matches:"/*(-[0-9]{8}-[0-9]{4,6}|lb[0-9]{12,14}|t[0-9]{12,14}).html"},eagerness:"moderate"}]},Fa={prefetch:[{urls:["/"],eagerness:"eager"},{where:{and:[{href_matches:"/*(-[0-9]{8}-[0-9]{4,6}|lb[0-9]{12,14}|t[0-9]{12,14}).html"},{not:{selector_matches:"[rel~=nofollow]"}}]},eagerness:"moderate"}],prerender:[{where:{and:[{selector_matches:"#content-news-section a"},{href_matches:"/*(-[0-9]{8}-[0-9]{4,6}|lb[0-9]{12,14}|t[0-9]{12,14}).html"},{not:{selector_matches:"[rel~=nofollow]"}}]},eagerness:"eager"},{where:{and:[{href_matches:"/*(-[0-9]{8}-[0-9]{4,6}|lb[0-9]{12,14}|t[0-9]{12,14}).html"},{not:{selector_matches:"[rel~=nofollow]"}}]},eagerness:"moderate"}]},Ha={prefetch:[{urls:["/"],eagerness:"eager"},{where:{and:[{href_matches:"/*(-[0-9]{8}-[0-9]{4,6}|lb[0-9]{12,14}|t[0-9]{12,14}).html"},{not:{selector_matches:"[rel~=nofollow]"}}]},eagerness:"moderate"}],prerender:[{where:{and:[{selector_matches:"#block-notes-list a"},{href_matches:"/*(-[0-9]{8}-[0-9]{4,6}|lb[0-9]{12,14}|t[0-9]{12,14}).html"},{not:{selector_matches:"[rel~=nofollow]"}}]},eagerness:"eager"},{where:{and:[{href_matches:"/*(-[0-9]{8}-[0-9]{4,6}|lb[0-9]{12,14}|t[0-9]{12,14}).html"},{not:{selector_matches:"[rel~=nofollow]"}}]},eagerness:"moderate"}]},Wo={Home:Ga,Common:ja,Nota:Fa,NotaLista:Ha},Va=({active:e,type:t,customSpeculation:a})=>{const n=a||Wo[t];return e&&s.jsx("script",{type:"speculationrules",dangerouslySetInnerHTML:{__html:JSON.stringify(n)}})},Bt=async(e,t,a)=>{if(a)return a.get(`/schemas${t}`,{params:e}).catch(n=>{console.log(`[/schemas${t}] Error: ${n.message}`)})},Yo={autor:"autor",seccion:"seccion",tema:"claves","ultimas-noticias":"seccion"},Qa=async({config:e,axiosApi:t,pathname:a,ROUTE:n})=>{const{PUBLIC_PUBLICATION_ID:r=""}=D();let o=[];const i=a==="/"||a==="/index.html"?void 0:Xa(Ra[n]({pathname:a,config:e})),l=Yo[n]??void 0,d={newstype:e.newsType,publication:Number(r),...i&&l?{query:`${l}:('${i}')`}:{}};try{const c=await Bt(d,"/news-list-summary",t);c?.data?.data?o=c.data.data:console.warn("getSchemas responded but did not contain expected data:",c)}catch(c){console.log("Error fetching schemas:",c)}return Object.keys(o).length>0&&s.jsx("script",{id:"webSiteItemListSchema",type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(Ie(o))}})},$o=(e,t)=>{const a={"@context":"https://schema.org","@type":"SoftwareApplication",name:t.name??e.name,url:t.url,operatingSystem:t.operatingSystem,applicationCategory:t.applicationCategory,publisher:{"@id":`${e.siteUrl}/#organization`},offers:{"@type":"Offer",price:t.offers.price,priceCurrency:t.offers.priceCurrency},description:t.description??e.description,downloadUrl:t.downloadUrl??t.url};return t.applicationSubCategory&&(a.applicationSubCategory=t.applicationSubCategory),t.aggregateRating&&(a.aggregateRating={"@type":"AggregateRating",ratingValue:t.aggregateRating.ratingValue,ratingCount:t.aggregateRating.ratingCount,...t.aggregateRating.bestRating&&{bestRating:t.aggregateRating.bestRating}}),t.softwareVersion&&(a.softwareVersion=t.softwareVersion),t.contentRating&&(a.contentRating=t.contentRating),Ie(a)},za=({config:e})=>{if(!e.orgSoftware)return null;const t=Array.isArray(e.orgSoftware)?e.orgSoftware:[e.orgSoftware];return s.jsx(s.Fragment,{children:t.map((a,n)=>s.jsx("script",{id:`SoftwareApplicationSchema-${n}`,type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify($o(e,a))}},n))})};function Mt(e){const{PUBLIC_ASSETS_URL:t}=D();if(!t||t==="false")return e;const a=t.replace(/\/+$/,""),n=/https?:\/\/[^/\s]+\/(arte|__export)\//g;return e.replace(n,(r,o)=>`${a}/${o}/`)}const Wa=async({realPath:e,config:t,BASE_URL:a,axiosApi:n,schemasCustomEndpoints:r})=>{const o=Oe();let i=[];try{const l=t.socialBlockLogo?.url?new URL(t.socialBlockLogo.url).pathname:void 0,d=t.landscapeLogo?.url?new URL(t.landscapeLogo.url).pathname:void 0,c={path:e,image:d,logo:l,url:t.siteUrl,name:t.name,logow:t.socialBlockLogo?.width,logoh:t.socialBlockLogo?.height,authorurl:a+(t.paths.autor?`/${t.paths.autor}/`:"/autor/"),lang:t.lang},h=e.split("/").find(g=>["liveblogs","liveblog"].includes(g)),m=r&&r.length>0?r:h=="liveblogs"||h=="liveblog"?["/news","/news-breadcrumb","/news-liveblog"]:["/news","/news-breadcrumb"],u=t.paths.tema!==""?"/"+t.paths.tema:t.paths.tema,f=o?o+u:u;i=(await Promise.all(m.map(async g=>{const w=g==="/news-breadcrumb"?{...c,prefixtag:f}:g==="/news"&&t.schemasNewsParams?{...c,...t.schemasNewsParams}:c;return await Bt(w,g,n)}))).map(g=>g?.data?.data??[])}catch(l){console.log("Error fetching schemas:",l)}return i.map((l,d)=>s.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:Mt(JSON.stringify(Ie(l)))}},d))},Ya=({config:e,socials:t})=>{const a={"@context":"https://schema.org","@type":"NewsMediaOrganization","@id":`${e.siteUrl}/#organization`,name:e.name,description:e.description,email:e.email,url:e.siteUrl,logo:e.squareLogo.url,address:e.address&&Object.keys(e.address).length>0?{"@type":"PostalAddress",...e.address}:void 0,sameAs:Object.keys(t).filter(n=>t[n]?.showInSchema===void 0?t[n]?.show:t[n]?.showInSchema).map(n=>t[n]?.url)};return s.jsx("script",{id:"WebsiteOrgListSchema",type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(Ie(a))}})},$a=({config:e})=>{const t={"@context":"https://schema.org","@type":"WebSite",name:e.name,url:e.siteUrl,potentialAction:{"@type":"SearchAction",target:e.siteUrl+"/"+e.paths.buscar+"?query={search_term_string}","query-input":"required name=search_term_string"}};return s.jsx("script",{id:"WebsiteListSchema",type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(Ie(t))}})},Ka=async({realPath:e,config:t,axiosApi:a})=>{try{const n={path:e,image:t.landscapeLogo?.url?new URL(t.landscapeLogo.url).pathname:void 0,logo:t.socialBlockLogo?.url?new URL(t.socialBlockLogo.url).pathname:void 0,url:t.siteUrl,name:t.name,logow:t.socialBlockLogo?.width,logoh:t.socialBlockLogo?.height,authorurl:`${t.siteUrl}/autor/`},o=(await Bt(n,"/videos",a))?.data.data;return o?s.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:Mt(JSON.stringify(Ie(o)))}}):void 0}catch(n){return console.error("Error fetching video schemas:",n),null}},Ko="U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD",Ja=e=>e?.startsWith("family=")??!1,Jo=e=>e.fontS3Url&&e.useS3Font?e.fontS3Url:e.googleFontFamily&&!Ja(e.googleFontFamily)?e.googleFontFamily:"",Zo=(e,t,a,n)=>`@font-face {
14
14
  font-family: '${e.fontName}';
15
15
  font-style: normal;
16
16
  font-weight: ${e.fontWeight};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sass-template-common",
3
- "version": "0.9.193",
3
+ "version": "0.9.194",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"