sass-template-common 0.9.78 → 0.9.79

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.
@@ -1629,8 +1629,10 @@ const Br = async ({
1629
1629
  logow: t.socialBlockLogo?.width,
1630
1630
  logoh: t.socialBlockLogo?.height,
1631
1631
  authorurl: s + "/autor/",
1632
- language: t.lang
1633
- }, d = e.split("/")[1], m = d == "liveblogs" || d == "liveblog" ? ["/news", "/news-breadcrumb", "/news-liveblog"] : ["/news", "/news-breadcrumb"], h = t.paths.tema !== "" ? "/" + t.paths.tema : t.paths.tema, A = r !== "false" && i !== "false" ? "/" + r + h : h;
1632
+ lang: t.lang
1633
+ };
1634
+ console.log("Fetching schemas with params:", l);
1635
+ const d = e.split("/")[1], m = d == "liveblogs" || d == "liveblog" ? ["/news", "/news-breadcrumb", "/news-liveblog"] : ["/news", "/news-breadcrumb"], h = t.paths.tema !== "" ? "/" + t.paths.tema : t.paths.tema, A = r !== "false" && i !== "false" ? "/" + r + h : h;
1634
1636
  o = (await Promise.all(
1635
1637
  m.map(async (g) => {
1636
1638
  const w = g === "/news-breadcrumb" ? { ...l, prefixtag: A } : g === "/news" && t.schemasNewsParams ? { ...l, ...t.schemasNewsParams } : l;
@@ -1640,7 +1642,7 @@ const Br = async ({
1640
1642
  } catch (c) {
1641
1643
  console.log("Error fetching schemas:", c);
1642
1644
  }
1643
- return o.map((c, u) => /* @__PURE__ */ n(
1645
+ return console.log("Schemas fetched:", o), o.map((c, u) => /* @__PURE__ */ n(
1644
1646
  "script",
1645
1647
  {
1646
1648
  type: "application/ld+json",
@@ -1659,6 +1661,7 @@ const Br = async ({
1659
1661
  email: e.email,
1660
1662
  url: e.siteUrl,
1661
1663
  logo: e.squareLogo.url,
1664
+ inLanguage: e.lang,
1662
1665
  sameAs: Object.keys(t).filter((a) => t[a]?.show).map((a) => t[a]?.url)
1663
1666
  };
1664
1667
  return (!e.description || e.description === "") && delete s.description, /* @__PURE__ */ n(
@@ -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"}})})]})},$s=()=>{const{ANALYTICS_marfeel:e}=O();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},{})}();`}})},Mn=({defaultRouteName:e})=>{const{CAPTCHA_KEY:t,CONFIG_comments:a=!1,CONFIG_commentsV2:r=!1}=O();return t&&t!==""&&(e==="video"&&a&&!r||e==="news"&&a&&!r||e==="auth"||e==="anuncia"||e==="contacto")&&s.jsx("script",{src:`https://www.google.com/recaptcha/enterprise.js?render=${t}`,async:!0,defer:!0})};function Qe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var it={exports:{}},qn=it.exports,Zs;function Xs(){return Zs||(Zs=1,(function(e,t){(function(a,r){e.exports=r()})(qn,(function(){var a=1e3,r=6e4,n=36e5,o="millisecond",i="second",l="minute",h="hour",c="day",d="week",u="month",m="quarter",p="year",f="date",g="Invalid Date",A=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|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,E={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(_){var L=["th","st","nd","rd"],k=_%100;return"["+_+(L[(k-20)%10]||L[k]||L[0])+"]"}},N=function(_,L,k){var G=String(_);return!G||G.length>=L?_:""+Array(L+1-G.length).join(k)+_},S={s:N,z:function(_){var L=-_.utcOffset(),k=Math.abs(L),G=Math.floor(k/60),x=k%60;return(L<=0?"+":"-")+N(G,2,"0")+":"+N(x,2,"0")},m:function _(L,k){if(L.date()<k.date())return-_(k,L);var G=12*(k.year()-L.year())+(k.month()-L.month()),x=L.clone().add(G,u),W=k-x<0,C=L.clone().add(G+(W?-1:1),u);return+(-(G+(k-x)/(W?x-C:C-x))||0)},a:function(_){return _<0?Math.ceil(_)||0:Math.floor(_)},p:function(_){return{M:u,y:p,w:d,d:c,D:f,h,m:l,s:i,ms:o,Q:m}[_]||String(_||"").toLowerCase().replace(/s$/,"")},u:function(_){return _===void 0}},w="en",U={};U[w]=E;var P="$isDayjsObject",H=function(_){return _ instanceof V||!(!_||!_[P])},Y=function _(L,k,G){var x;if(!L)return w;if(typeof L=="string"){var W=L.toLowerCase();U[W]&&(x=W),k&&(U[W]=k,x=W);var C=L.split("-");if(!x&&C.length>1)return _(C[0])}else{var T=L.name;U[T]=L,x=T}return!G&&x&&(w=x),x||!G&&w},F=function(_,L){if(H(_))return _.clone();var k=typeof L=="object"?L:{};return k.date=_,k.args=arguments,new V(k)},B=S;B.l=Y,B.i=H,B.w=function(_,L){return F(_,{locale:L.$L,utc:L.$u,x:L.$x,$offset:L.$offset})};var V=(function(){function _(k){this.$L=Y(k.locale,null,!0),this.parse(k),this.$x=this.$x||k.x||{},this[P]=!0}var L=_.prototype;return L.parse=function(k){this.$d=(function(G){var x=G.date,W=G.utc;if(x===null)return new Date(NaN);if(B.u(x))return new Date;if(x instanceof Date)return new Date(x);if(typeof x=="string"&&!/Z$/i.test(x)){var C=x.match(A);if(C){var T=C[2]-1||0,q=(C[7]||"0").substring(0,3);return W?new Date(Date.UTC(C[1],T,C[3]||1,C[4]||0,C[5]||0,C[6]||0,q)):new Date(C[1],T,C[3]||1,C[4]||0,C[5]||0,C[6]||0,q)}}return new Date(x)})(k),this.init()},L.init=function(){var k=this.$d;this.$y=k.getFullYear(),this.$M=k.getMonth(),this.$D=k.getDate(),this.$W=k.getDay(),this.$H=k.getHours(),this.$m=k.getMinutes(),this.$s=k.getSeconds(),this.$ms=k.getMilliseconds()},L.$utils=function(){return B},L.isValid=function(){return this.$d.toString()!==g},L.isSame=function(k,G){var x=F(k);return this.startOf(G)<=x&&x<=this.endOf(G)},L.isAfter=function(k,G){return F(k)<this.startOf(G)},L.isBefore=function(k,G){return this.endOf(G)<F(k)},L.$g=function(k,G,x){return B.u(k)?this[G]:this.set(x,k)},L.unix=function(){return Math.floor(this.valueOf()/1e3)},L.valueOf=function(){return this.$d.getTime()},L.startOf=function(k,G){var x=this,W=!!B.u(G)||G,C=B.p(k),T=function(ee,$){var ne=B.w(x.$u?Date.UTC(x.$y,$,ee):new Date(x.$y,$,ee),x);return W?ne:ne.endOf(c)},q=function(ee,$){return B.w(x.toDate()[ee].apply(x.toDate("s"),(W?[0,0,0,0]:[23,59,59,999]).slice($)),x)},Q=this.$W,j=this.$M,z=this.$D,K="set"+(this.$u?"UTC":"");switch(C){case p:return W?T(1,0):T(31,11);case u:return W?T(1,j):T(0,j+1);case d:var J=this.$locale().weekStart||0,R=(Q<J?Q+7:Q)-J;return T(W?z-R:z+(6-R),j);case c:case f:return q(K+"Hours",0);case h:return q(K+"Minutes",1);case l:return q(K+"Seconds",2);case i:return q(K+"Milliseconds",3);default:return this.clone()}},L.endOf=function(k){return this.startOf(k,!1)},L.$set=function(k,G){var x,W=B.p(k),C="set"+(this.$u?"UTC":""),T=(x={},x[c]=C+"Date",x[f]=C+"Date",x[u]=C+"Month",x[p]=C+"FullYear",x[h]=C+"Hours",x[l]=C+"Minutes",x[i]=C+"Seconds",x[o]=C+"Milliseconds",x)[W],q=W===c?this.$D+(G-this.$W):G;if(W===u||W===p){var Q=this.clone().set(f,1);Q.$d[T](q),Q.init(),this.$d=Q.set(f,Math.min(this.$D,Q.daysInMonth())).$d}else T&&this.$d[T](q);return this.init(),this},L.set=function(k,G){return this.clone().$set(k,G)},L.get=function(k){return this[B.p(k)]()},L.add=function(k,G){var x,W=this;k=Number(k);var C=B.p(G),T=function(j){var z=F(W);return B.w(z.date(z.date()+Math.round(j*k)),W)};if(C===u)return this.set(u,this.$M+k);if(C===p)return this.set(p,this.$y+k);if(C===c)return T(1);if(C===d)return T(7);var q=(x={},x[l]=r,x[h]=n,x[i]=a,x)[C]||1,Q=this.$d.getTime()+k*q;return B.w(Q,this)},L.subtract=function(k,G){return this.add(-1*k,G)},L.format=function(k){var G=this,x=this.$locale();if(!this.isValid())return x.invalidDate||g;var W=k||"YYYY-MM-DDTHH:mm:ssZ",C=B.z(this),T=this.$H,q=this.$m,Q=this.$M,j=x.weekdays,z=x.months,K=x.meridiem,J=function($,ne,D,de){return $&&($[ne]||$(G,W))||D[ne].slice(0,de)},R=function($){return B.s(T%12||12,$,"0")},ee=K||function($,ne,D){var de=$<12?"AM":"PM";return D?de.toLowerCase():de};return W.replace(b,(function($,ne){return ne||(function(D){switch(D){case"YY":return String(G.$y).slice(-2);case"YYYY":return B.s(G.$y,4,"0");case"M":return Q+1;case"MM":return B.s(Q+1,2,"0");case"MMM":return J(x.monthsShort,Q,z,3);case"MMMM":return J(z,Q);case"D":return G.$D;case"DD":return B.s(G.$D,2,"0");case"d":return String(G.$W);case"dd":return J(x.weekdaysMin,G.$W,j,2);case"ddd":return J(x.weekdaysShort,G.$W,j,3);case"dddd":return j[G.$W];case"H":return String(T);case"HH":return B.s(T,2,"0");case"h":return R(1);case"hh":return R(2);case"a":return ee(T,q,!0);case"A":return ee(T,q,!1);case"m":return String(q);case"mm":return B.s(q,2,"0");case"s":return String(G.$s);case"ss":return B.s(G.$s,2,"0");case"SSS":return B.s(G.$ms,3,"0");case"Z":return C}return null})($)||C.replace(":","")}))},L.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},L.diff=function(k,G,x){var W,C=this,T=B.p(G),q=F(k),Q=(q.utcOffset()-this.utcOffset())*r,j=this-q,z=function(){return B.m(C,q)};switch(T){case p:W=z()/12;break;case u:W=z();break;case m:W=z()/3;break;case d:W=(j-Q)/6048e5;break;case c:W=(j-Q)/864e5;break;case h:W=j/n;break;case l:W=j/r;break;case i:W=j/a;break;default:W=j}return x?W:B.a(W)},L.daysInMonth=function(){return this.endOf(u).$D},L.$locale=function(){return U[this.$L]},L.locale=function(k,G){if(!k)return this.$L;var x=this.clone(),W=Y(k,G,!0);return W&&(x.$L=W),x},L.clone=function(){return B.w(this.$d,this)},L.toDate=function(){return new Date(this.valueOf())},L.toJSON=function(){return this.isValid()?this.toISOString():null},L.toISOString=function(){return this.$d.toISOString()},L.toString=function(){return this.$d.toUTCString()},_})(),te=V.prototype;return F.prototype=te,[["$ms",o],["$s",i],["$m",l],["$H",h],["$W",c],["$M",u],["$y",p],["$D",f]].forEach((function(_){te[_[1]]=function(L){return this.$g(L,_[0],_[1])}})),F.extend=function(_,L){return _.$i||(_(L,V,F),_.$i=!0),F},F.locale=Y,F.isDayjs=H,F.unix=function(_){return F(1e3*_)},F.en=U[w],F.Ls=U,F.p={},F}))})(it)),it.exports}var Dn=Xs();const Ae=Qe(Dn);var lt={exports:{}},_n=lt.exports,Rs;function Gn(){return Rs||(Rs=1,(function(e,t){(function(a,r){e.exports=r()})(_n,(function(){return function(a,r,n){a=a||{};var o=r.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,d,u,m){return o.fromToBase(c,d,u,m)}n.en.relativeTime=i,o.fromToBase=function(c,d,u,m,p){for(var f,g,A,b=u.$locale().relativeTime||i,E=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"}],N=E.length,S=0;S<N;S+=1){var w=E[S];w.d&&(f=m?n(c).diff(u,w.d,!0):u.diff(c,w.d,!0));var U=(a.rounding||Math.round)(Math.abs(f));if(A=f>0,U<=w.r||!w.r){U<=1&&S>0&&(w=E[S-1]);var P=b[w.l];p&&(U=p(""+U)),g=typeof P=="string"?P.replace("%d",U):P(U,d,w.l,A);break}}if(d)return g;var H=A?b.future:b.past;return typeof H=="function"?H(g):H.replace("%s",g)},o.to=function(c,d){return l(c,d,this,!0)},o.from=function(c,d){return l(c,d,this)};var h=function(c){return c.$u?n.utc():n()};o.toNow=function(c){return this.to(h(this),c)},o.fromNow=function(c){return this.from(h(this),c)}}}))})(lt)),lt.exports}var jn=Gn();const Qn=Qe(jn);var ct={exports:{}},Fn=ct.exports,ea;function Hn(){return ea||(ea=1,(function(e,t){(function(a,r){e.exports=r(Xs())})(Fn,(function(a){function r(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}var n=r(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 n.default.locale(o,null,!0),o}))})(ct)),ct.exports}Hn();var dt={exports:{}},Vn=dt.exports,ta;function zn(){return ta||(ta=1,(function(e,t){(function(a,r){e.exports=r()})(Vn,(function(){var a="minute",r=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(o,i,l){var h=i.prototype;l.utc=function(g){var A={date:g,utc:!0,args:arguments};return new i(A)},h.utc=function(g){var A=l(this.toDate(),{locale:this.$L,utc:!0});return g?A.add(this.utcOffset(),a):A},h.local=function(){return l(this.toDate(),{locale:this.$L,utc:!1})};var c=h.parse;h.parse=function(g){g.utc&&(this.$u=!0),this.$utils().u(g.$offset)||(this.$offset=g.$offset),c.call(this,g)};var d=h.init;h.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 d.call(this)};var u=h.utcOffset;h.utcOffset=function(g,A){var b=this.$utils().u;if(b(g))return this.$u?0:b(this.$offset)?u.call(this):this.$offset;if(typeof g=="string"&&(g=(function(w){w===void 0&&(w="");var U=w.match(r);if(!U)return null;var P=(""+U[0]).match(n)||["-",0,0],H=P[0],Y=60*+P[1]+ +P[2];return Y===0?0:H==="+"?Y:-Y})(g),g===null))return this;var E=Math.abs(g)<=16?60*g:g;if(E===0)return this.utc(A);var N=this.clone();if(A)return N.$offset=E,N.$u=!1,N;var S=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(N=this.local().add(E+S,a)).$offset=E,N.$x.$localOffset=S,N};var m=h.format;h.format=function(g){var A=g||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return m.call(this,A)},h.valueOf=function(){var g=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*g},h.isUTC=function(){return!!this.$u},h.toISOString=function(){return this.toDate().toISOString()},h.toString=function(){return this.toDate().toUTCString()};var p=h.toDate;h.toDate=function(g){return g==="s"&&this.$offset?l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():p.call(this)};var f=h.diff;h.diff=function(g,A,b){if(g&&this.$u===g.$u)return f.call(this,g,A,b);var E=this.local(),N=l(g).local();return f.call(E,N,A,b)}}}))})(dt)),dt.exports}var Wn=zn();const Yn=Qe(Wn);var ht={exports:{}},Kn=ht.exports,sa;function Jn(){return sa||(sa=1,(function(e,t){(function(a,r){e.exports=r()})(Kn,(function(){var a={year:0,month:1,day:2,hour:3,minute:4,second:5},r={};return function(n,o,i){var l,h=function(m,p,f){f===void 0&&(f={});var g=new Date(m),A=(function(b,E){E===void 0&&(E={});var N=E.timeZoneName||"short",S=b+"|"+N,w=r[S];return w||(w=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:b,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:N}),r[S]=w),w})(p,f);return A.formatToParts(g)},c=function(m,p){for(var f=h(m,p),g=[],A=0;A<f.length;A+=1){var b=f[A],E=b.type,N=b.value,S=a[E];S>=0&&(g[S]=parseInt(N,10))}var w=g[3],U=w===24?0:w,P=g[0]+"-"+g[1]+"-"+g[2]+" "+U+":"+g[4]+":"+g[5]+":000",H=+m;return(i.utc(P).valueOf()-(H-=H%1e3))/6e4},d=o.prototype;d.tz=function(m,p){m===void 0&&(m=l);var f,g=this.utcOffset(),A=this.toDate(),b=A.toLocaleString("en-US",{timeZone:m}),E=Math.round((A-new Date(b))/1e3/60),N=15*-Math.round(A.getTimezoneOffset()/15)-E;if(!Number(N))f=this.utcOffset(0,p);else if(f=i(b,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(N,!0),p){var S=f.utcOffset();f=f.add(g-S,"minute")}return f.$x.$timezone=m,f},d.offsetName=function(m){var p=this.$x.$timezone||i.tz.guess(),f=h(this.valueOf(),p,{timeZoneName:m}).find((function(g){return g.type.toLowerCase()==="timezonename"}));return f&&f.value};var u=d.startOf;d.startOf=function(m,p){if(!this.$x||!this.$x.$timezone)return u.call(this,m,p);var f=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return u.call(f,m,p).tz(this.$x.$timezone,!0)},i.tz=function(m,p,f){var g=f&&p,A=f||p||l,b=c(+i(),A);if(typeof m!="string")return i(m).tz(A);var E=(function(U,P,H){var Y=U-60*P*1e3,F=c(Y,H);if(P===F)return[Y,P];var B=c(Y-=60*(F-P)*1e3,H);return F===B?[Y,F]:[U-60*Math.min(F,B)*1e3,Math.max(F,B)]})(i.utc(m,g).valueOf(),b,A),N=E[0],S=E[1],w=i(N).utcOffset(S);return w.$x.$timezone=A,w},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(m){l=m}}}))})(ht)),ht.exports}var $n=Jn();const Zn=Qe($n);Ae.extend(Yn),Ae.extend(Zn),Ae.extend(Qn);const ut=e=>e==="en"?"en":"es",Ce=(e,t)=>{const{PUBLIC_LNG:a,DATE_TIMEZONE:r}=t||O(),n=ut(a??"es");return Ae.tz(e,r).locale(n).format("DD MMMM YYYY")},mt=e=>{const{PUBLIC_LNG:t,DATE_TIMEZONE:a}=O(),r=ut(t??"es");return Ae.tz(e,a).locale(r).format(r==="en"?"MMMM DD YYYY [•] HH:mm [hs]":"DD [de] MMMM YYYY [•] HH:mm [hs]")},aa=e=>{const{PUBLIC_LNG:t,DATE_TIMEZONE:a}=O(),r=ut(t??"es");return Ae.tz(e,a).locale(r).format("MM/DD/YYYY [•] HH:mm [HS]")},Xn=e=>{const{PUBLIC_LNG:t,DATE_TIMEZONE:a}=O(),r=ut(t??"es");return Ae.tz(e,a).locale(r).format("dddd DD [de] MMMM YYYY")},Be=(e,t)=>{if(!e)return"";const a=new Date(e),n=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={};n.forEach(p=>{p.type!=="literal"&&(o[p.type]=p.value)});const i=new Date(a.toLocaleString("en-US",{timeZone:"UTC"})),h=(new Date(a.toLocaleString("en-US",{timeZone:t})).getTime()-i.getTime())/6e4,c=h>=0?"+":"-",d=p=>String(Math.floor(Math.abs(p))).padStart(2,"0"),u=d(h/60),m=d(h%60);return`${o.year}-${o.month}-${o.day}T${o.hour}:${o.minute}:${o.second}${c}${u}:${m}`},ye=(e,t=136)=>e&&e.length>t?`${e.substring(0,t)}...`:e;function Oe(e){return e&&e.status==="fulfilled"?e.value.data:null}function ra(e){return e&&e.status==="fulfilled"?e.value:null}const Rn={url:"",target:"_self",canonical:!1,internal:""},eo={date:"",created:0,modified:0,firstpublish:0,lastpublish:0};function to(e){return e==null?"":typeof e=="string"?e:e.article??e.home??e.section??e.seo??""}const Fe=(e,t,a,r)=>{const n=to(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:{...eo,...e?.info?.date},link:e?.info?.link??Rn},preview:{sizes:e?.main?.image?.sizes??[],description:e?.main?.image?.description??""},config:{showtime:t??!1,showsubtitle:a??!1,showauthor:!!(r&&e?.main?.author)},main:{title:{article:n,home:n,seo:n,section:n},subtitle:{rendered:o,striped:o},tags:[]}}},na=/<div\b[^>]*class=["'][^"']*\bck-related-news\b[^"']*["'][^>]*>/gi;function ft(e){if(!e?.body?.rendered)return[];const t=e.body.rendered,a=[];let r=0;for(;r<t.length;){na.lastIndex=r;const n=na.exec(t);if(!n)break;const o=n.index+n[0].length;let i=1,l=o,h=o;for(;l<t.length&&i>0;){const p=t.slice(l),f=p.match(/<div\b/i),g=p.match(/<\/div>/i),A=f?.index??-1,b=g?.index??-1;if(b===-1)break;const E=A===-1?1/0:l+A,N=l+b;A!==-1&&A<b?(i+=1,l=E+f[0].length):(i-=1,h=N,l=N+g[0].length)}const c=t.slice(o,h),d=[],u=/<span\b[^>]*\bdata-src=["']([^"']+)["']/gi;let m;for(;(m=u.exec(c))!==null;){const p=m[1];p&&d.push(p)}d.length>0&&a.push(d),r=l}return a}const so=ft,oa=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=>Oe(o)?.data)},He=()=>{const{PUBLIC_ENV:e,PUBLIC_API_HOST:t,PUBLIC_ASSETS_URL:a}=O();return e=="local"?t:a&&a!=="false"?a:""},ao=()=>{const{PUBLIC_ENV:e,PUBLIC_API_FRONT:t}=O();return e==="local"?t:""},ro=e=>{if(!e?.preview?.length)return null;const t=e.preview;return t.find(a=>a.format==="1.91:1")??t[t.length-1]},ia=({schemaImage:e,socialImage:t,fallbackImage:a,prefix:r,defaultWidth:n,defaultHeight:o,alt:i})=>e?.url?{url:r+e.url,width:e.width,height:e.height,alt:i}:{url:r+(t??a??""),width:n,height:o,alt:i},la=(e,t,a,r)=>{if(!t)return{};const{PUBLIC_ASSETS_URL:n,PUBLIC_API_FRONT:o,DATE_TIMEZONE:i="America/Mexico_City"}=O(),l=$t(t.keywords)??"",h=t?.preview?.sizes?t?.preview?.sizes[0]?.url:"",c=(n!=="false"?n:o)??"",d=ro(r),u=t.main.title.article,m=ia({schemaImage:d,socialImage:t?.social?.images?.facebook,fallbackImage:h,prefix:c,defaultWidth:a.landscapeLogo.width,defaultHeight:a.landscapeLogo.height,alt:r?.description??u}),p=ia({schemaImage:d,socialImage:t?.social?.images?.twitter,fallbackImage:h,prefix:c,defaultWidth:a.twitterSummaryCard.width,defaultHeight:a.twitterSummaryCard.height,alt:r?.description??u});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:[m],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:[p]},article:{published_time:Be(t?.info?.date?.firstpublish,i),modified_time:Be(t?.info?.date?.lastpublish??t?.info?.date?.firstpublish,i),section:t?.info?.section?.name,author:t?.authors?.[0]?.fullname,tag:t?.keywords?.tags??[]}}},$t=e=>!e||!e?.tags||e?.tags?.length===0?"":e?.tags?.map(t=>t.name).join(", ").replaceAll('"',"'").replaceAll("`","'"),ca=e=>{const t=e?.match(/^\/(?:[^/]+\/)?([^/]+)\/([^/]+\.html)$/);return t?{slug:t[1]??"",path:t[2]??""}:{slug:"",path:""}},da=e=>e.replaceAll("/","").replaceAll("_","").replace(".html",""),no={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.creator":{attr:"name",value:"twitter:creator"}},ha=e=>{const t=[];let a=0;const r=i=>t.push(i);return e.title&&typeof e.title=="string"&&r(s.jsx("title",{children:e.title},`title-${a++}`)),Object.entries(no).forEach(([i,l])=>{const h=i.split(".").reduce((c,d)=>c?.[d],e);h&&r(s.jsx("meta",{[l.attr]:l.value,content:String(h)},`meta-${a++}`))}),(e.openGraph?.images?Array.isArray(e.openGraph.images)?e.openGraph.images:[e.openGraph.images]:[]).forEach(i=>{i&&(typeof i=="string"?r(s.jsx("meta",{property:"og:image",content:i},`og-img-${a++}`)):(i.url&&r(s.jsx("meta",{property:"og:image",content:i.url},`og-img-${a++}`)),i.width&&r(s.jsx("meta",{property:"og:image:width",content:String(i.width)},`og-img-w-${a++}`)),i.height&&r(s.jsx("meta",{property:"og:image:height",content:String(i.height)},`og-img-h-${a++}`)),i.alt&&r(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"?r(s.jsx("meta",{name:"twitter:image",content:i},`tw-img-${a++}`)):(i.url&&r(s.jsx("meta",{name:"twitter:image",content:i.url},`tw-img-${a++}`)),i.width&&r(s.jsx("meta",{name:"twitter:image:width",content:String(i.width)},`tw-img-w-${a++}`)),i.height&&r(s.jsx("meta",{name:"twitter:image:height",content:String(i.height)},`tw-img-h-${a++}`)),i.alt&&r(s.jsx("meta",{name:"twitter:image:alt",content:String(i.alt)},`tw-img-alt-${a++}`))))}),e.article&&(r(s.jsx("meta",{property:"article:published_time",content:e.article.published_time})),r(s.jsx("meta",{property:"article:modified_time",content:e.article.modified_time})),r(s.jsx("meta",{property:"article:section",content:e.article.section})),r(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=>{r(s.jsx("meta",{property:"article:tag",content:i.name}))})),e.alternates?.canonical&&r(s.jsx("link",{rel:"canonical",href:String(e.alternates.canonical)},`link-${a++}`)),e.manifest&&r(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"&&r(s.jsx("link",{rel:"alternate",type:i,href:l},`alt-${a++}`))}),e.icons&&[...e.icons?.icon??[],...e.icons?.other??[]].forEach(l=>{l&&r(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&&r(s.jsx("meta",{name:i,content:String(l)},`other-${a++}`))}),t},ie=async e=>{const t=He()??"",a=e;return a?.startsWith("http")||a?.includes(t)||t===""?a:t+a},gt=(e,t)=>{const a=e||"";return t?a.replaceAll("[section_replace]",t["[section_replace]"]??"").replaceAll("[tag_replace]",t["[tag_replace]"]??"").replaceAll("[url_replace]",t["[url_replace]"]??"").replaceAll("[author_replace]",t["[author_replace]"]??"")||"":a||""},oo=e=>{const t={};if(!e)return t;const a=/([^\s=]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'>]+)))?/g;let r;for(;r=a.exec(e);){const n=r[1],o=r[2]??r[3]??r[4]??!0;t[n]=o}return t},io=e=>{const t=e.match(/\bsrc\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s>]+))/i);return t?.[1]||t?.[2]||t?.[3]||null},ua=(e,t,a,r)=>{try{const n=oo(e);return n.src?s.jsx("script",{"data-bs-name":r,...n},a):s.jsx("script",{...n,dangerouslySetInnerHTML:{__html:t}},a)}catch{const o=io(e);return o?s.jsx("script",{"data-bs-name":r,src:o,async:!0,defer:!0},a):null}},lo=e=>{const t=/<script\b([^>]*)>([\s\S]*?)<\/script\s*>|<script\b([^>]*)\/?>/gi;return[...e.matchAll(t)]},Zt=e=>{const t=e.banners.find(n=>n.key===e.name);if(!t||!t.show)return null;const a=gt(t.value||"",e.replaces),r=lo(a);return s.jsx(s.Fragment,{children:r.map((n,o)=>{const i=n[1]||n[3]||"",l=n[2]?.trim()||"";return ua(i,l,o,e.name)})})},ma=e=>{const t=e.banners.find(n=>n.key===e.name);if(!t||!t.show)return null;const r=gt(t.value||"",e.replaces).split(/(<script\b[\s\S]*?<\/script\s*>|<script\b[^>]*\/?>)/gi);return s.jsx(s.Fragment,{children:r.map((n,o)=>{const i=n.match(/<script\b([^>]*)>([\s\S]*?)<\/script\s*>|<script\b([^>]*)\/?>/i);if(i){const l=i[1]||i[3]||"",h=i[2]?.trim()||"";return ua(l,h,o,e.name)}return n.trim()&&/<[a-zA-Z]/.test(n)?s.jsx("div",{dangerouslySetInnerHTML:{__html:n}},o):null})})},Ze=(e,t,a)=>{let r=e.siteUrl;return t.forEach((n,o)=>{o>0&&(r+=`/${n}`)}),`${r}/page/${a+1}`},Xe=(e,t,a)=>{let r=e.siteUrl;return t.forEach((n,o)=>{o>0&&(r+=`/${n}`)}),`${r}/page/${a-1}`};function co(e){const t=e.length;return t>1&&e.charCodeAt(t-1)===47?e.slice(0,t-1):e}const fa=()=>{const{PUBLIC_ASSETS_URL:e}=O();return e&&e!=="false"&&s.jsx("link",{rel:"preconnect",href:e,crossOrigin:"anonymous"})},{PUBLIC_ASSETS_URL:Xt}=O(),ho=Xt&&Xt!=="false"?Xt:"",Rt=({images:e})=>s.jsx(s.Fragment,{children:e.map((t,a)=>t.href!==""&&s.jsx("link",{rel:"preload",href:ho+t.href,media:t.media??"",as:"image",fetchPriority:t.fetchPriority??"high"},a))}),ga=(e,t,a)=>{if(!t)return{};const{PUBLIC_API_FRONT:r}=O();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:"article",description:t.main.description??"",images:[{url:(r??"")+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:(r??"")+t?.main.image.sizes[0]?.url,width:a.twitterSummaryCard.width,height:a.twitterSummaryCard.height}]}}},uo=e=>{let t="";if(e.params.news.match(/.*t[0-9]*.html/g)){const a=e.params.news.split("-"),r=a[a.length-1]??"",n=r.substring(1,9),o=r.substring(9,13);t=`/listas/${Ae(n).format("YYYY/MM/DD")}/lista_${o}.html`}else if(e.params.news.match(/.*lb[0-9]*.html/g)){const a=e.params.news.split("-"),r=a[a.length-1]??"",n=r.substring(2,10),o=r.substring(10,14);t=`/liveblog/${Ae(n).format("YYYY/MM/DD")}/liveblog_${o}.html`}else{const r=e.params.news.replace(/\.html$/g,"").split("-");Array.isArray(r)&&(t=`/contenidos/${Ae(r[r.length-2]).format("YYYY/MM/DD")}/noticia_${r[r.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],r=a[a.length-1]?.split("."),n=r&&r[0]?r[0]:"",o=n.substring(0,2),i=n.substring(2,10),l=n.substring(10);return{path:{vy:c=>`/videos/video-youtube/${Ae(i).format("YYYY/MM/DD")}/videoYouTube_${c}.lnk`,ve:c=>`/videos/video-embedded/${Ae(i).format("YYYY/MM/DD")}/videoEmbedded_${c}.lnk`,vf:c=>`/videos/video-flash/${Ae(i).format("YYYY/MM/DD")}/${a[0]}.${c}`}[o]?.(l)??"",op:o}}const Ue=(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}`},fo=e=>{const{AssetsPrefix:t="",AssetsPath:a="src",isDev:r=!1}=e;return r?"src":t+a},go=async(e,t,a,r)=>{const{FETCH_TAG_BASED_RELATED_NEWS:n=!1,FETCH_SIZE_RELATED_NEWS:o=10}=O();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:r.md}))?.data?.data??[];{const i=e&&e.keywords&&e.keywords.tags&&e.keywords.tags[0];return((e?i&&n?await a.getNewsListAvanced({query:'claves:("'+e.keywords?.tags[0].name+'")',exclude:"gallery,related,relatedexternal,external,customfields",imagesizes:r.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)}},po="https://recaptchaenterprise.googleapis.com/v1/projects",Ao=async({projectID:e,recaptchaKey:t,token:a,recaptchaAction:r,apiKey:n,userAgent:o,userIpAddress:i})=>{if(!e||!t||!a||!n)return console.warn("createAssessment: faltan parámetros requeridos"),null;const l=`${po}/${e}/assessments?key=${n}`,h={event:{token:a,siteKey:t,expectedAction:r,...o&&{userAgent:o},...i&&{userIpAddress:i}}};try{const c=await fetch(l,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(h)});if(!c.ok)return console.error("createAssessment API error:",c.status,await c.text()),null;const d=await c.json();if(!d?.tokenProperties?.valid)return console.log(`CreateAssessment falló - token inválido: ${d?.tokenProperties?.invalidReason??"unknown"}`),null;if(d.tokenProperties.action!==r)return console.log("La acción en reCAPTCHA no coincide con la esperada:",r),null;const u=d?.riskAnalysis?.score;return u!==void 0&&(console.log("reCAPTCHA score:",u),d?.riskAnalysis?.reasons?.forEach(m=>console.log(m))),typeof u=="number"?u:null}catch(c){return console.error("createAssessment error:",c),null}};function wo(e,t){if(t==="comentarios")return;const a=e[t];return typeof a=="string"||a===void 0?a:void 0}const bo=e=>e?.body?.rendered.includes("ck-image-gallery")||e?.config?.articlepreview==="fotogaleria"&&e?.hascontent?.hasgalleryimages;function vo(e){const t={};for(const[a,r]of Object.entries(e)){const n=btoa(a).split("").reverse().join("");typeof r=="string"?t[n]=btoa(r).split("").reverse().join(""):t[n]=r}return t}function es(e){const t={};for(const[a,r]of Object.entries(e)){const n=atob(a.split("").reverse().join(""));if(typeof r=="string")try{t[n]=atob(r.split("").reverse().join(""))}catch{t[n]=r}else t[n]=r}return t}const Co=async(e,t,a)=>{const{info:r,preview:n}=e,o=e?.config?.homepreview||"imagen",i=o==="clip"&&e?.hascontent?.hasgalleryvideosflash,l={...n};if(o==="videoYouTube"||o==="videoEmbedded"||i){const h=await t.getNewsMultimedia({path:r.link.internal,imagesizes:a});if(h&&h.data)return{...e,preview:l,videos:h.data.data[0].videos??[]}}if(o==="fotogaleria"){const h=await t.getNewsMultimedia({path:r.link.internal,imagesizes:a});if(h&&h.data){const c=await Promise.all(h.data.data[0].gallery.map(async d=>({...d})));return{...e,preview:l,gallery:c??[]}}}return{...e,preview:l}},pa={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"}]},Aa={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"}]},wa={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"}]},ba={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"}]},yo={Home:pa,Common:Aa,Nota:wa,NotaLista:ba},va=({active:e,type:t,customSpeculation:a})=>e&&s.jsx("script",{type:"speculationrules",dangerouslySetInnerHTML:{__html:JSON.stringify(a??yo[t])}}),pt=async(e,t,a)=>{if(a)return a.get(`/schemas${t}`,{params:e}).catch(r=>{console.log(`[/schemas${t}] Error: ${r.message}`)})},No={autor:"autor",seccion:"seccion",tema:"claves","ultimas-noticias":"seccion"},Ca=async({config:e,axiosApi:t,pathname:a,ROUTE:r})=>{const{PUBLIC_PUBLICATION_ID:n=""}=O();let o=[];const i=a==="/"||a==="/index.html"?void 0:Ia(Ua[r]({pathname:a,config:e})),l=No[r]??void 0,h={newstype:e.newsType,publication:Number(n),...i&&l?{query:`${l}:('${i}')`}:{}};try{const c=await pt(h,"/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(o)}})};function At(e){const{PUBLIC_ASSETS_URL:t}=O();if(!t||t==="false")return e;const a=t.replace(/\/+$/,""),r=/https?:\/\/[^/\s]+\/(arte|__export)\//g;return e.replace(r,(n,o)=>`${a}/${o}/`)}const ya=async({realPath:e,config:t,BASE_URL:a,axiosApi:r})=>{const{PUBLIC_SERVICE_PREFIX:n,PUBLIC_IS_SUB_PUBLICATION:o}=O();let i=[];try{const l=t.socialBlockLogo?.url?new URL(t.socialBlockLogo.url).pathname:void 0,h=t.landscapeLogo?.url?new URL(t.landscapeLogo.url).pathname:void 0,c={path:e,image:h,logo:l,url:t.siteUrl,name:t.name,logow:t.socialBlockLogo?.width,logoh:t.socialBlockLogo?.height,authorurl:a+"/autor/",language:t.lang},d=e.split("/")[1],u=d=="liveblogs"||d=="liveblog"?["/news","/news-breadcrumb","/news-liveblog"]:["/news","/news-breadcrumb"],m=t.paths.tema!==""?"/"+t.paths.tema:t.paths.tema,p=n!=="false"&&o!=="false"?"/"+n+m:m;i=(await Promise.all(u.map(async g=>{const A=g==="/news-breadcrumb"?{...c,prefixtag:p}:g==="/news"&&t.schemasNewsParams?{...c,...t.schemasNewsParams}:c;return await pt(A,g,r)}))).map(g=>g?.data?.data??[])}catch(l){console.log("Error fetching schemas:",l)}return i.map((l,h)=>s.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:At(JSON.stringify(l))}},h))},Na=({config:e,socials:t})=>{const a={"@context":"https://schema.org","@type":"NewsMediaOrganization",name:e.name,description:e.description,email:e.email,url:e.siteUrl,logo:e.squareLogo.url,sameAs:Object.keys(t).filter(r=>t[r]?.show).map(r=>t[r]?.url)};return(!e.description||e.description==="")&&delete a.description,s.jsx("script",{id:"WebsiteOrgListSchema",type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(a)}})},Sa=({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(t)}})},Ea=async({realPath:e,config:t,axiosApi:a})=>{try{const r={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 pt(r,"/videos",a))?.data.data;return o?s.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:At(JSON.stringify(o))}}):void 0}catch(r){return console.error("Error fetching video schemas:",r),null}},Ta=({config:e})=>{const t=`@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"}})})]})},$s=()=>{const{ANALYTICS_marfeel:e}=O();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},{})}();`}})},Mn=({defaultRouteName:e})=>{const{CAPTCHA_KEY:t,CONFIG_comments:a=!1,CONFIG_commentsV2:r=!1}=O();return t&&t!==""&&(e==="video"&&a&&!r||e==="news"&&a&&!r||e==="auth"||e==="anuncia"||e==="contacto")&&s.jsx("script",{src:`https://www.google.com/recaptcha/enterprise.js?render=${t}`,async:!0,defer:!0})};function Qe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var it={exports:{}},qn=it.exports,Zs;function Xs(){return Zs||(Zs=1,(function(e,t){(function(a,r){e.exports=r()})(qn,(function(){var a=1e3,r=6e4,n=36e5,o="millisecond",i="second",l="minute",h="hour",c="day",d="week",u="month",m="quarter",p="year",f="date",g="Invalid Date",A=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|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,E={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(_){var L=["th","st","nd","rd"],k=_%100;return"["+_+(L[(k-20)%10]||L[k]||L[0])+"]"}},N=function(_,L,k){var G=String(_);return!G||G.length>=L?_:""+Array(L+1-G.length).join(k)+_},S={s:N,z:function(_){var L=-_.utcOffset(),k=Math.abs(L),G=Math.floor(k/60),x=k%60;return(L<=0?"+":"-")+N(G,2,"0")+":"+N(x,2,"0")},m:function _(L,k){if(L.date()<k.date())return-_(k,L);var G=12*(k.year()-L.year())+(k.month()-L.month()),x=L.clone().add(G,u),W=k-x<0,C=L.clone().add(G+(W?-1:1),u);return+(-(G+(k-x)/(W?x-C:C-x))||0)},a:function(_){return _<0?Math.ceil(_)||0:Math.floor(_)},p:function(_){return{M:u,y:p,w:d,d:c,D:f,h,m:l,s:i,ms:o,Q:m}[_]||String(_||"").toLowerCase().replace(/s$/,"")},u:function(_){return _===void 0}},w="en",U={};U[w]=E;var P="$isDayjsObject",H=function(_){return _ instanceof V||!(!_||!_[P])},Y=function _(L,k,G){var x;if(!L)return w;if(typeof L=="string"){var W=L.toLowerCase();U[W]&&(x=W),k&&(U[W]=k,x=W);var C=L.split("-");if(!x&&C.length>1)return _(C[0])}else{var T=L.name;U[T]=L,x=T}return!G&&x&&(w=x),x||!G&&w},F=function(_,L){if(H(_))return _.clone();var k=typeof L=="object"?L:{};return k.date=_,k.args=arguments,new V(k)},B=S;B.l=Y,B.i=H,B.w=function(_,L){return F(_,{locale:L.$L,utc:L.$u,x:L.$x,$offset:L.$offset})};var V=(function(){function _(k){this.$L=Y(k.locale,null,!0),this.parse(k),this.$x=this.$x||k.x||{},this[P]=!0}var L=_.prototype;return L.parse=function(k){this.$d=(function(G){var x=G.date,W=G.utc;if(x===null)return new Date(NaN);if(B.u(x))return new Date;if(x instanceof Date)return new Date(x);if(typeof x=="string"&&!/Z$/i.test(x)){var C=x.match(A);if(C){var T=C[2]-1||0,q=(C[7]||"0").substring(0,3);return W?new Date(Date.UTC(C[1],T,C[3]||1,C[4]||0,C[5]||0,C[6]||0,q)):new Date(C[1],T,C[3]||1,C[4]||0,C[5]||0,C[6]||0,q)}}return new Date(x)})(k),this.init()},L.init=function(){var k=this.$d;this.$y=k.getFullYear(),this.$M=k.getMonth(),this.$D=k.getDate(),this.$W=k.getDay(),this.$H=k.getHours(),this.$m=k.getMinutes(),this.$s=k.getSeconds(),this.$ms=k.getMilliseconds()},L.$utils=function(){return B},L.isValid=function(){return this.$d.toString()!==g},L.isSame=function(k,G){var x=F(k);return this.startOf(G)<=x&&x<=this.endOf(G)},L.isAfter=function(k,G){return F(k)<this.startOf(G)},L.isBefore=function(k,G){return this.endOf(G)<F(k)},L.$g=function(k,G,x){return B.u(k)?this[G]:this.set(x,k)},L.unix=function(){return Math.floor(this.valueOf()/1e3)},L.valueOf=function(){return this.$d.getTime()},L.startOf=function(k,G){var x=this,W=!!B.u(G)||G,C=B.p(k),T=function(ee,$){var ne=B.w(x.$u?Date.UTC(x.$y,$,ee):new Date(x.$y,$,ee),x);return W?ne:ne.endOf(c)},q=function(ee,$){return B.w(x.toDate()[ee].apply(x.toDate("s"),(W?[0,0,0,0]:[23,59,59,999]).slice($)),x)},Q=this.$W,j=this.$M,z=this.$D,K="set"+(this.$u?"UTC":"");switch(C){case p:return W?T(1,0):T(31,11);case u:return W?T(1,j):T(0,j+1);case d:var J=this.$locale().weekStart||0,R=(Q<J?Q+7:Q)-J;return T(W?z-R:z+(6-R),j);case c:case f:return q(K+"Hours",0);case h:return q(K+"Minutes",1);case l:return q(K+"Seconds",2);case i:return q(K+"Milliseconds",3);default:return this.clone()}},L.endOf=function(k){return this.startOf(k,!1)},L.$set=function(k,G){var x,W=B.p(k),C="set"+(this.$u?"UTC":""),T=(x={},x[c]=C+"Date",x[f]=C+"Date",x[u]=C+"Month",x[p]=C+"FullYear",x[h]=C+"Hours",x[l]=C+"Minutes",x[i]=C+"Seconds",x[o]=C+"Milliseconds",x)[W],q=W===c?this.$D+(G-this.$W):G;if(W===u||W===p){var Q=this.clone().set(f,1);Q.$d[T](q),Q.init(),this.$d=Q.set(f,Math.min(this.$D,Q.daysInMonth())).$d}else T&&this.$d[T](q);return this.init(),this},L.set=function(k,G){return this.clone().$set(k,G)},L.get=function(k){return this[B.p(k)]()},L.add=function(k,G){var x,W=this;k=Number(k);var C=B.p(G),T=function(j){var z=F(W);return B.w(z.date(z.date()+Math.round(j*k)),W)};if(C===u)return this.set(u,this.$M+k);if(C===p)return this.set(p,this.$y+k);if(C===c)return T(1);if(C===d)return T(7);var q=(x={},x[l]=r,x[h]=n,x[i]=a,x)[C]||1,Q=this.$d.getTime()+k*q;return B.w(Q,this)},L.subtract=function(k,G){return this.add(-1*k,G)},L.format=function(k){var G=this,x=this.$locale();if(!this.isValid())return x.invalidDate||g;var W=k||"YYYY-MM-DDTHH:mm:ssZ",C=B.z(this),T=this.$H,q=this.$m,Q=this.$M,j=x.weekdays,z=x.months,K=x.meridiem,J=function($,ne,D,de){return $&&($[ne]||$(G,W))||D[ne].slice(0,de)},R=function($){return B.s(T%12||12,$,"0")},ee=K||function($,ne,D){var de=$<12?"AM":"PM";return D?de.toLowerCase():de};return W.replace(b,(function($,ne){return ne||(function(D){switch(D){case"YY":return String(G.$y).slice(-2);case"YYYY":return B.s(G.$y,4,"0");case"M":return Q+1;case"MM":return B.s(Q+1,2,"0");case"MMM":return J(x.monthsShort,Q,z,3);case"MMMM":return J(z,Q);case"D":return G.$D;case"DD":return B.s(G.$D,2,"0");case"d":return String(G.$W);case"dd":return J(x.weekdaysMin,G.$W,j,2);case"ddd":return J(x.weekdaysShort,G.$W,j,3);case"dddd":return j[G.$W];case"H":return String(T);case"HH":return B.s(T,2,"0");case"h":return R(1);case"hh":return R(2);case"a":return ee(T,q,!0);case"A":return ee(T,q,!1);case"m":return String(q);case"mm":return B.s(q,2,"0");case"s":return String(G.$s);case"ss":return B.s(G.$s,2,"0");case"SSS":return B.s(G.$ms,3,"0");case"Z":return C}return null})($)||C.replace(":","")}))},L.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},L.diff=function(k,G,x){var W,C=this,T=B.p(G),q=F(k),Q=(q.utcOffset()-this.utcOffset())*r,j=this-q,z=function(){return B.m(C,q)};switch(T){case p:W=z()/12;break;case u:W=z();break;case m:W=z()/3;break;case d:W=(j-Q)/6048e5;break;case c:W=(j-Q)/864e5;break;case h:W=j/n;break;case l:W=j/r;break;case i:W=j/a;break;default:W=j}return x?W:B.a(W)},L.daysInMonth=function(){return this.endOf(u).$D},L.$locale=function(){return U[this.$L]},L.locale=function(k,G){if(!k)return this.$L;var x=this.clone(),W=Y(k,G,!0);return W&&(x.$L=W),x},L.clone=function(){return B.w(this.$d,this)},L.toDate=function(){return new Date(this.valueOf())},L.toJSON=function(){return this.isValid()?this.toISOString():null},L.toISOString=function(){return this.$d.toISOString()},L.toString=function(){return this.$d.toUTCString()},_})(),te=V.prototype;return F.prototype=te,[["$ms",o],["$s",i],["$m",l],["$H",h],["$W",c],["$M",u],["$y",p],["$D",f]].forEach((function(_){te[_[1]]=function(L){return this.$g(L,_[0],_[1])}})),F.extend=function(_,L){return _.$i||(_(L,V,F),_.$i=!0),F},F.locale=Y,F.isDayjs=H,F.unix=function(_){return F(1e3*_)},F.en=U[w],F.Ls=U,F.p={},F}))})(it)),it.exports}var Dn=Xs();const Ae=Qe(Dn);var lt={exports:{}},_n=lt.exports,Rs;function Gn(){return Rs||(Rs=1,(function(e,t){(function(a,r){e.exports=r()})(_n,(function(){return function(a,r,n){a=a||{};var o=r.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,d,u,m){return o.fromToBase(c,d,u,m)}n.en.relativeTime=i,o.fromToBase=function(c,d,u,m,p){for(var f,g,A,b=u.$locale().relativeTime||i,E=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"}],N=E.length,S=0;S<N;S+=1){var w=E[S];w.d&&(f=m?n(c).diff(u,w.d,!0):u.diff(c,w.d,!0));var U=(a.rounding||Math.round)(Math.abs(f));if(A=f>0,U<=w.r||!w.r){U<=1&&S>0&&(w=E[S-1]);var P=b[w.l];p&&(U=p(""+U)),g=typeof P=="string"?P.replace("%d",U):P(U,d,w.l,A);break}}if(d)return g;var H=A?b.future:b.past;return typeof H=="function"?H(g):H.replace("%s",g)},o.to=function(c,d){return l(c,d,this,!0)},o.from=function(c,d){return l(c,d,this)};var h=function(c){return c.$u?n.utc():n()};o.toNow=function(c){return this.to(h(this),c)},o.fromNow=function(c){return this.from(h(this),c)}}}))})(lt)),lt.exports}var jn=Gn();const Qn=Qe(jn);var ct={exports:{}},Fn=ct.exports,ea;function Hn(){return ea||(ea=1,(function(e,t){(function(a,r){e.exports=r(Xs())})(Fn,(function(a){function r(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}var n=r(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 n.default.locale(o,null,!0),o}))})(ct)),ct.exports}Hn();var dt={exports:{}},Vn=dt.exports,ta;function zn(){return ta||(ta=1,(function(e,t){(function(a,r){e.exports=r()})(Vn,(function(){var a="minute",r=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(o,i,l){var h=i.prototype;l.utc=function(g){var A={date:g,utc:!0,args:arguments};return new i(A)},h.utc=function(g){var A=l(this.toDate(),{locale:this.$L,utc:!0});return g?A.add(this.utcOffset(),a):A},h.local=function(){return l(this.toDate(),{locale:this.$L,utc:!1})};var c=h.parse;h.parse=function(g){g.utc&&(this.$u=!0),this.$utils().u(g.$offset)||(this.$offset=g.$offset),c.call(this,g)};var d=h.init;h.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 d.call(this)};var u=h.utcOffset;h.utcOffset=function(g,A){var b=this.$utils().u;if(b(g))return this.$u?0:b(this.$offset)?u.call(this):this.$offset;if(typeof g=="string"&&(g=(function(w){w===void 0&&(w="");var U=w.match(r);if(!U)return null;var P=(""+U[0]).match(n)||["-",0,0],H=P[0],Y=60*+P[1]+ +P[2];return Y===0?0:H==="+"?Y:-Y})(g),g===null))return this;var E=Math.abs(g)<=16?60*g:g;if(E===0)return this.utc(A);var N=this.clone();if(A)return N.$offset=E,N.$u=!1,N;var S=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(N=this.local().add(E+S,a)).$offset=E,N.$x.$localOffset=S,N};var m=h.format;h.format=function(g){var A=g||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return m.call(this,A)},h.valueOf=function(){var g=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*g},h.isUTC=function(){return!!this.$u},h.toISOString=function(){return this.toDate().toISOString()},h.toString=function(){return this.toDate().toUTCString()};var p=h.toDate;h.toDate=function(g){return g==="s"&&this.$offset?l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():p.call(this)};var f=h.diff;h.diff=function(g,A,b){if(g&&this.$u===g.$u)return f.call(this,g,A,b);var E=this.local(),N=l(g).local();return f.call(E,N,A,b)}}}))})(dt)),dt.exports}var Wn=zn();const Yn=Qe(Wn);var ht={exports:{}},Kn=ht.exports,sa;function Jn(){return sa||(sa=1,(function(e,t){(function(a,r){e.exports=r()})(Kn,(function(){var a={year:0,month:1,day:2,hour:3,minute:4,second:5},r={};return function(n,o,i){var l,h=function(m,p,f){f===void 0&&(f={});var g=new Date(m),A=(function(b,E){E===void 0&&(E={});var N=E.timeZoneName||"short",S=b+"|"+N,w=r[S];return w||(w=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:b,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:N}),r[S]=w),w})(p,f);return A.formatToParts(g)},c=function(m,p){for(var f=h(m,p),g=[],A=0;A<f.length;A+=1){var b=f[A],E=b.type,N=b.value,S=a[E];S>=0&&(g[S]=parseInt(N,10))}var w=g[3],U=w===24?0:w,P=g[0]+"-"+g[1]+"-"+g[2]+" "+U+":"+g[4]+":"+g[5]+":000",H=+m;return(i.utc(P).valueOf()-(H-=H%1e3))/6e4},d=o.prototype;d.tz=function(m,p){m===void 0&&(m=l);var f,g=this.utcOffset(),A=this.toDate(),b=A.toLocaleString("en-US",{timeZone:m}),E=Math.round((A-new Date(b))/1e3/60),N=15*-Math.round(A.getTimezoneOffset()/15)-E;if(!Number(N))f=this.utcOffset(0,p);else if(f=i(b,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(N,!0),p){var S=f.utcOffset();f=f.add(g-S,"minute")}return f.$x.$timezone=m,f},d.offsetName=function(m){var p=this.$x.$timezone||i.tz.guess(),f=h(this.valueOf(),p,{timeZoneName:m}).find((function(g){return g.type.toLowerCase()==="timezonename"}));return f&&f.value};var u=d.startOf;d.startOf=function(m,p){if(!this.$x||!this.$x.$timezone)return u.call(this,m,p);var f=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return u.call(f,m,p).tz(this.$x.$timezone,!0)},i.tz=function(m,p,f){var g=f&&p,A=f||p||l,b=c(+i(),A);if(typeof m!="string")return i(m).tz(A);var E=(function(U,P,H){var Y=U-60*P*1e3,F=c(Y,H);if(P===F)return[Y,P];var B=c(Y-=60*(F-P)*1e3,H);return F===B?[Y,F]:[U-60*Math.min(F,B)*1e3,Math.max(F,B)]})(i.utc(m,g).valueOf(),b,A),N=E[0],S=E[1],w=i(N).utcOffset(S);return w.$x.$timezone=A,w},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(m){l=m}}}))})(ht)),ht.exports}var $n=Jn();const Zn=Qe($n);Ae.extend(Yn),Ae.extend(Zn),Ae.extend(Qn);const ut=e=>e==="en"?"en":"es",Ce=(e,t)=>{const{PUBLIC_LNG:a,DATE_TIMEZONE:r}=t||O(),n=ut(a??"es");return Ae.tz(e,r).locale(n).format("DD MMMM YYYY")},mt=e=>{const{PUBLIC_LNG:t,DATE_TIMEZONE:a}=O(),r=ut(t??"es");return Ae.tz(e,a).locale(r).format(r==="en"?"MMMM DD YYYY [•] HH:mm [hs]":"DD [de] MMMM YYYY [•] HH:mm [hs]")},aa=e=>{const{PUBLIC_LNG:t,DATE_TIMEZONE:a}=O(),r=ut(t??"es");return Ae.tz(e,a).locale(r).format("MM/DD/YYYY [•] HH:mm [HS]")},Xn=e=>{const{PUBLIC_LNG:t,DATE_TIMEZONE:a}=O(),r=ut(t??"es");return Ae.tz(e,a).locale(r).format("dddd DD [de] MMMM YYYY")},Be=(e,t)=>{if(!e)return"";const a=new Date(e),n=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={};n.forEach(p=>{p.type!=="literal"&&(o[p.type]=p.value)});const i=new Date(a.toLocaleString("en-US",{timeZone:"UTC"})),h=(new Date(a.toLocaleString("en-US",{timeZone:t})).getTime()-i.getTime())/6e4,c=h>=0?"+":"-",d=p=>String(Math.floor(Math.abs(p))).padStart(2,"0"),u=d(h/60),m=d(h%60);return`${o.year}-${o.month}-${o.day}T${o.hour}:${o.minute}:${o.second}${c}${u}:${m}`},ye=(e,t=136)=>e&&e.length>t?`${e.substring(0,t)}...`:e;function Oe(e){return e&&e.status==="fulfilled"?e.value.data:null}function ra(e){return e&&e.status==="fulfilled"?e.value:null}const Rn={url:"",target:"_self",canonical:!1,internal:""},eo={date:"",created:0,modified:0,firstpublish:0,lastpublish:0};function to(e){return e==null?"":typeof e=="string"?e:e.article??e.home??e.section??e.seo??""}const Fe=(e,t,a,r)=>{const n=to(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:{...eo,...e?.info?.date},link:e?.info?.link??Rn},preview:{sizes:e?.main?.image?.sizes??[],description:e?.main?.image?.description??""},config:{showtime:t??!1,showsubtitle:a??!1,showauthor:!!(r&&e?.main?.author)},main:{title:{article:n,home:n,seo:n,section:n},subtitle:{rendered:o,striped:o},tags:[]}}},na=/<div\b[^>]*class=["'][^"']*\bck-related-news\b[^"']*["'][^>]*>/gi;function ft(e){if(!e?.body?.rendered)return[];const t=e.body.rendered,a=[];let r=0;for(;r<t.length;){na.lastIndex=r;const n=na.exec(t);if(!n)break;const o=n.index+n[0].length;let i=1,l=o,h=o;for(;l<t.length&&i>0;){const p=t.slice(l),f=p.match(/<div\b/i),g=p.match(/<\/div>/i),A=f?.index??-1,b=g?.index??-1;if(b===-1)break;const E=A===-1?1/0:l+A,N=l+b;A!==-1&&A<b?(i+=1,l=E+f[0].length):(i-=1,h=N,l=N+g[0].length)}const c=t.slice(o,h),d=[],u=/<span\b[^>]*\bdata-src=["']([^"']+)["']/gi;let m;for(;(m=u.exec(c))!==null;){const p=m[1];p&&d.push(p)}d.length>0&&a.push(d),r=l}return a}const so=ft,oa=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=>Oe(o)?.data)},He=()=>{const{PUBLIC_ENV:e,PUBLIC_API_HOST:t,PUBLIC_ASSETS_URL:a}=O();return e=="local"?t:a&&a!=="false"?a:""},ao=()=>{const{PUBLIC_ENV:e,PUBLIC_API_FRONT:t}=O();return e==="local"?t:""},ro=e=>{if(!e?.preview?.length)return null;const t=e.preview;return t.find(a=>a.format==="1.91:1")??t[t.length-1]},ia=({schemaImage:e,socialImage:t,fallbackImage:a,prefix:r,defaultWidth:n,defaultHeight:o,alt:i})=>e?.url?{url:r+e.url,width:e.width,height:e.height,alt:i}:{url:r+(t??a??""),width:n,height:o,alt:i},la=(e,t,a,r)=>{if(!t)return{};const{PUBLIC_ASSETS_URL:n,PUBLIC_API_FRONT:o,DATE_TIMEZONE:i="America/Mexico_City"}=O(),l=$t(t.keywords)??"",h=t?.preview?.sizes?t?.preview?.sizes[0]?.url:"",c=(n!=="false"?n:o)??"",d=ro(r),u=t.main.title.article,m=ia({schemaImage:d,socialImage:t?.social?.images?.facebook,fallbackImage:h,prefix:c,defaultWidth:a.landscapeLogo.width,defaultHeight:a.landscapeLogo.height,alt:r?.description??u}),p=ia({schemaImage:d,socialImage:t?.social?.images?.twitter,fallbackImage:h,prefix:c,defaultWidth:a.twitterSummaryCard.width,defaultHeight:a.twitterSummaryCard.height,alt:r?.description??u});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:[m],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:[p]},article:{published_time:Be(t?.info?.date?.firstpublish,i),modified_time:Be(t?.info?.date?.lastpublish??t?.info?.date?.firstpublish,i),section:t?.info?.section?.name,author:t?.authors?.[0]?.fullname,tag:t?.keywords?.tags??[]}}},$t=e=>!e||!e?.tags||e?.tags?.length===0?"":e?.tags?.map(t=>t.name).join(", ").replaceAll('"',"'").replaceAll("`","'"),ca=e=>{const t=e?.match(/^\/(?:[^/]+\/)?([^/]+)\/([^/]+\.html)$/);return t?{slug:t[1]??"",path:t[2]??""}:{slug:"",path:""}},da=e=>e.replaceAll("/","").replaceAll("_","").replace(".html",""),no={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.creator":{attr:"name",value:"twitter:creator"}},ha=e=>{const t=[];let a=0;const r=i=>t.push(i);return e.title&&typeof e.title=="string"&&r(s.jsx("title",{children:e.title},`title-${a++}`)),Object.entries(no).forEach(([i,l])=>{const h=i.split(".").reduce((c,d)=>c?.[d],e);h&&r(s.jsx("meta",{[l.attr]:l.value,content:String(h)},`meta-${a++}`))}),(e.openGraph?.images?Array.isArray(e.openGraph.images)?e.openGraph.images:[e.openGraph.images]:[]).forEach(i=>{i&&(typeof i=="string"?r(s.jsx("meta",{property:"og:image",content:i},`og-img-${a++}`)):(i.url&&r(s.jsx("meta",{property:"og:image",content:i.url},`og-img-${a++}`)),i.width&&r(s.jsx("meta",{property:"og:image:width",content:String(i.width)},`og-img-w-${a++}`)),i.height&&r(s.jsx("meta",{property:"og:image:height",content:String(i.height)},`og-img-h-${a++}`)),i.alt&&r(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"?r(s.jsx("meta",{name:"twitter:image",content:i},`tw-img-${a++}`)):(i.url&&r(s.jsx("meta",{name:"twitter:image",content:i.url},`tw-img-${a++}`)),i.width&&r(s.jsx("meta",{name:"twitter:image:width",content:String(i.width)},`tw-img-w-${a++}`)),i.height&&r(s.jsx("meta",{name:"twitter:image:height",content:String(i.height)},`tw-img-h-${a++}`)),i.alt&&r(s.jsx("meta",{name:"twitter:image:alt",content:String(i.alt)},`tw-img-alt-${a++}`))))}),e.article&&(r(s.jsx("meta",{property:"article:published_time",content:e.article.published_time})),r(s.jsx("meta",{property:"article:modified_time",content:e.article.modified_time})),r(s.jsx("meta",{property:"article:section",content:e.article.section})),r(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=>{r(s.jsx("meta",{property:"article:tag",content:i.name}))})),e.alternates?.canonical&&r(s.jsx("link",{rel:"canonical",href:String(e.alternates.canonical)},`link-${a++}`)),e.manifest&&r(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"&&r(s.jsx("link",{rel:"alternate",type:i,href:l},`alt-${a++}`))}),e.icons&&[...e.icons?.icon??[],...e.icons?.other??[]].forEach(l=>{l&&r(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&&r(s.jsx("meta",{name:i,content:String(l)},`other-${a++}`))}),t},ie=async e=>{const t=He()??"",a=e;return a?.startsWith("http")||a?.includes(t)||t===""?a:t+a},gt=(e,t)=>{const a=e||"";return t?a.replaceAll("[section_replace]",t["[section_replace]"]??"").replaceAll("[tag_replace]",t["[tag_replace]"]??"").replaceAll("[url_replace]",t["[url_replace]"]??"").replaceAll("[author_replace]",t["[author_replace]"]??"")||"":a||""},oo=e=>{const t={};if(!e)return t;const a=/([^\s=]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'>]+)))?/g;let r;for(;r=a.exec(e);){const n=r[1],o=r[2]??r[3]??r[4]??!0;t[n]=o}return t},io=e=>{const t=e.match(/\bsrc\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s>]+))/i);return t?.[1]||t?.[2]||t?.[3]||null},ua=(e,t,a,r)=>{try{const n=oo(e);return n.src?s.jsx("script",{"data-bs-name":r,...n},a):s.jsx("script",{...n,dangerouslySetInnerHTML:{__html:t}},a)}catch{const o=io(e);return o?s.jsx("script",{"data-bs-name":r,src:o,async:!0,defer:!0},a):null}},lo=e=>{const t=/<script\b([^>]*)>([\s\S]*?)<\/script\s*>|<script\b([^>]*)\/?>/gi;return[...e.matchAll(t)]},Zt=e=>{const t=e.banners.find(n=>n.key===e.name);if(!t||!t.show)return null;const a=gt(t.value||"",e.replaces),r=lo(a);return s.jsx(s.Fragment,{children:r.map((n,o)=>{const i=n[1]||n[3]||"",l=n[2]?.trim()||"";return ua(i,l,o,e.name)})})},ma=e=>{const t=e.banners.find(n=>n.key===e.name);if(!t||!t.show)return null;const r=gt(t.value||"",e.replaces).split(/(<script\b[\s\S]*?<\/script\s*>|<script\b[^>]*\/?>)/gi);return s.jsx(s.Fragment,{children:r.map((n,o)=>{const i=n.match(/<script\b([^>]*)>([\s\S]*?)<\/script\s*>|<script\b([^>]*)\/?>/i);if(i){const l=i[1]||i[3]||"",h=i[2]?.trim()||"";return ua(l,h,o,e.name)}return n.trim()&&/<[a-zA-Z]/.test(n)?s.jsx("div",{dangerouslySetInnerHTML:{__html:n}},o):null})})},Ze=(e,t,a)=>{let r=e.siteUrl;return t.forEach((n,o)=>{o>0&&(r+=`/${n}`)}),`${r}/page/${a+1}`},Xe=(e,t,a)=>{let r=e.siteUrl;return t.forEach((n,o)=>{o>0&&(r+=`/${n}`)}),`${r}/page/${a-1}`};function co(e){const t=e.length;return t>1&&e.charCodeAt(t-1)===47?e.slice(0,t-1):e}const fa=()=>{const{PUBLIC_ASSETS_URL:e}=O();return e&&e!=="false"&&s.jsx("link",{rel:"preconnect",href:e,crossOrigin:"anonymous"})},{PUBLIC_ASSETS_URL:Xt}=O(),ho=Xt&&Xt!=="false"?Xt:"",Rt=({images:e})=>s.jsx(s.Fragment,{children:e.map((t,a)=>t.href!==""&&s.jsx("link",{rel:"preload",href:ho+t.href,media:t.media??"",as:"image",fetchPriority:t.fetchPriority??"high"},a))}),ga=(e,t,a)=>{if(!t)return{};const{PUBLIC_API_FRONT:r}=O();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:"article",description:t.main.description??"",images:[{url:(r??"")+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:(r??"")+t?.main.image.sizes[0]?.url,width:a.twitterSummaryCard.width,height:a.twitterSummaryCard.height}]}}},uo=e=>{let t="";if(e.params.news.match(/.*t[0-9]*.html/g)){const a=e.params.news.split("-"),r=a[a.length-1]??"",n=r.substring(1,9),o=r.substring(9,13);t=`/listas/${Ae(n).format("YYYY/MM/DD")}/lista_${o}.html`}else if(e.params.news.match(/.*lb[0-9]*.html/g)){const a=e.params.news.split("-"),r=a[a.length-1]??"",n=r.substring(2,10),o=r.substring(10,14);t=`/liveblog/${Ae(n).format("YYYY/MM/DD")}/liveblog_${o}.html`}else{const r=e.params.news.replace(/\.html$/g,"").split("-");Array.isArray(r)&&(t=`/contenidos/${Ae(r[r.length-2]).format("YYYY/MM/DD")}/noticia_${r[r.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],r=a[a.length-1]?.split("."),n=r&&r[0]?r[0]:"",o=n.substring(0,2),i=n.substring(2,10),l=n.substring(10);return{path:{vy:c=>`/videos/video-youtube/${Ae(i).format("YYYY/MM/DD")}/videoYouTube_${c}.lnk`,ve:c=>`/videos/video-embedded/${Ae(i).format("YYYY/MM/DD")}/videoEmbedded_${c}.lnk`,vf:c=>`/videos/video-flash/${Ae(i).format("YYYY/MM/DD")}/${a[0]}.${c}`}[o]?.(l)??"",op:o}}const Ue=(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}`},fo=e=>{const{AssetsPrefix:t="",AssetsPath:a="src",isDev:r=!1}=e;return r?"src":t+a},go=async(e,t,a,r)=>{const{FETCH_TAG_BASED_RELATED_NEWS:n=!1,FETCH_SIZE_RELATED_NEWS:o=10}=O();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:r.md}))?.data?.data??[];{const i=e&&e.keywords&&e.keywords.tags&&e.keywords.tags[0];return((e?i&&n?await a.getNewsListAvanced({query:'claves:("'+e.keywords?.tags[0].name+'")',exclude:"gallery,related,relatedexternal,external,customfields",imagesizes:r.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)}},po="https://recaptchaenterprise.googleapis.com/v1/projects",Ao=async({projectID:e,recaptchaKey:t,token:a,recaptchaAction:r,apiKey:n,userAgent:o,userIpAddress:i})=>{if(!e||!t||!a||!n)return console.warn("createAssessment: faltan parámetros requeridos"),null;const l=`${po}/${e}/assessments?key=${n}`,h={event:{token:a,siteKey:t,expectedAction:r,...o&&{userAgent:o},...i&&{userIpAddress:i}}};try{const c=await fetch(l,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(h)});if(!c.ok)return console.error("createAssessment API error:",c.status,await c.text()),null;const d=await c.json();if(!d?.tokenProperties?.valid)return console.log(`CreateAssessment falló - token inválido: ${d?.tokenProperties?.invalidReason??"unknown"}`),null;if(d.tokenProperties.action!==r)return console.log("La acción en reCAPTCHA no coincide con la esperada:",r),null;const u=d?.riskAnalysis?.score;return u!==void 0&&(console.log("reCAPTCHA score:",u),d?.riskAnalysis?.reasons?.forEach(m=>console.log(m))),typeof u=="number"?u:null}catch(c){return console.error("createAssessment error:",c),null}};function wo(e,t){if(t==="comentarios")return;const a=e[t];return typeof a=="string"||a===void 0?a:void 0}const bo=e=>e?.body?.rendered.includes("ck-image-gallery")||e?.config?.articlepreview==="fotogaleria"&&e?.hascontent?.hasgalleryimages;function vo(e){const t={};for(const[a,r]of Object.entries(e)){const n=btoa(a).split("").reverse().join("");typeof r=="string"?t[n]=btoa(r).split("").reverse().join(""):t[n]=r}return t}function es(e){const t={};for(const[a,r]of Object.entries(e)){const n=atob(a.split("").reverse().join(""));if(typeof r=="string")try{t[n]=atob(r.split("").reverse().join(""))}catch{t[n]=r}else t[n]=r}return t}const Co=async(e,t,a)=>{const{info:r,preview:n}=e,o=e?.config?.homepreview||"imagen",i=o==="clip"&&e?.hascontent?.hasgalleryvideosflash,l={...n};if(o==="videoYouTube"||o==="videoEmbedded"||i){const h=await t.getNewsMultimedia({path:r.link.internal,imagesizes:a});if(h&&h.data)return{...e,preview:l,videos:h.data.data[0].videos??[]}}if(o==="fotogaleria"){const h=await t.getNewsMultimedia({path:r.link.internal,imagesizes:a});if(h&&h.data){const c=await Promise.all(h.data.data[0].gallery.map(async d=>({...d})));return{...e,preview:l,gallery:c??[]}}}return{...e,preview:l}},pa={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"}]},Aa={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"}]},wa={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"}]},ba={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"}]},yo={Home:pa,Common:Aa,Nota:wa,NotaLista:ba},va=({active:e,type:t,customSpeculation:a})=>e&&s.jsx("script",{type:"speculationrules",dangerouslySetInnerHTML:{__html:JSON.stringify(a??yo[t])}}),pt=async(e,t,a)=>{if(a)return a.get(`/schemas${t}`,{params:e}).catch(r=>{console.log(`[/schemas${t}] Error: ${r.message}`)})},No={autor:"autor",seccion:"seccion",tema:"claves","ultimas-noticias":"seccion"},Ca=async({config:e,axiosApi:t,pathname:a,ROUTE:r})=>{const{PUBLIC_PUBLICATION_ID:n=""}=O();let o=[];const i=a==="/"||a==="/index.html"?void 0:Ia(Ua[r]({pathname:a,config:e})),l=No[r]??void 0,h={newstype:e.newsType,publication:Number(n),...i&&l?{query:`${l}:('${i}')`}:{}};try{const c=await pt(h,"/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(o)}})};function At(e){const{PUBLIC_ASSETS_URL:t}=O();if(!t||t==="false")return e;const a=t.replace(/\/+$/,""),r=/https?:\/\/[^/\s]+\/(arte|__export)\//g;return e.replace(r,(n,o)=>`${a}/${o}/`)}const ya=async({realPath:e,config:t,BASE_URL:a,axiosApi:r})=>{const{PUBLIC_SERVICE_PREFIX:n,PUBLIC_IS_SUB_PUBLICATION:o}=O();let i=[];try{const l=t.socialBlockLogo?.url?new URL(t.socialBlockLogo.url).pathname:void 0,h=t.landscapeLogo?.url?new URL(t.landscapeLogo.url).pathname:void 0,c={path:e,image:h,logo:l,url:t.siteUrl,name:t.name,logow:t.socialBlockLogo?.width,logoh:t.socialBlockLogo?.height,authorurl:a+"/autor/",lang:t.lang};console.log("Fetching schemas with params:",c);const d=e.split("/")[1],u=d=="liveblogs"||d=="liveblog"?["/news","/news-breadcrumb","/news-liveblog"]:["/news","/news-breadcrumb"],m=t.paths.tema!==""?"/"+t.paths.tema:t.paths.tema,p=n!=="false"&&o!=="false"?"/"+n+m:m;i=(await Promise.all(u.map(async g=>{const A=g==="/news-breadcrumb"?{...c,prefixtag:p}:g==="/news"&&t.schemasNewsParams?{...c,...t.schemasNewsParams}:c;return await pt(A,g,r)}))).map(g=>g?.data?.data??[])}catch(l){console.log("Error fetching schemas:",l)}return console.log("Schemas fetched:",i),i.map((l,h)=>s.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:At(JSON.stringify(l))}},h))},Na=({config:e,socials:t})=>{const a={"@context":"https://schema.org","@type":"NewsMediaOrganization",name:e.name,description:e.description,email:e.email,url:e.siteUrl,logo:e.squareLogo.url,inLanguage:e.lang,sameAs:Object.keys(t).filter(r=>t[r]?.show).map(r=>t[r]?.url)};return(!e.description||e.description==="")&&delete a.description,s.jsx("script",{id:"WebsiteOrgListSchema",type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(a)}})},Sa=({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(t)}})},Ea=async({realPath:e,config:t,axiosApi:a})=>{try{const r={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 pt(r,"/videos",a))?.data.data;return o?s.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:At(JSON.stringify(o))}}):void 0}catch(r){return console.error("Error fetching video schemas:",r),null}},Ta=({config:e})=>{const t=`@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.78",
3
+ "version": "0.9.79",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"