sass-template-common 0.4.2 → 0.4.3
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsx as s, jsxs as f, Fragment as
|
|
1
|
+
import { jsx as s, jsxs as f, Fragment as J } from "react/jsx-runtime";
|
|
2
2
|
import * as Fs from "react";
|
|
3
|
-
import Te, { useState as
|
|
3
|
+
import Te, { useState as Z, useRef as Za, useCallback as fe, useEffect as Qe, createElement as lt, forwardRef as Xa, Fragment as Cn, useMemo as oi, Component as ii } from "react";
|
|
4
4
|
let us = {
|
|
5
5
|
PUBLIC_API_HOST: "",
|
|
6
6
|
PUBLIC_API_FRONT: "",
|
|
@@ -94,7 +94,7 @@ const ri = () => {
|
|
|
94
94
|
o[i] = i;
|
|
95
95
|
}), o;
|
|
96
96
|
}, [t]), { ANALYTICS_ga4: a } = $();
|
|
97
|
-
return a && /* @__PURE__ */ f(
|
|
97
|
+
return a && /* @__PURE__ */ f(J, { children: [
|
|
98
98
|
/* @__PURE__ */ s("script", { defer: !0, src: "https://www.googletagmanager.com/gtag/js?" + a }),
|
|
99
99
|
/* @__PURE__ */ s(
|
|
100
100
|
"script",
|
|
@@ -117,7 +117,7 @@ const ri = () => {
|
|
|
117
117
|
] });
|
|
118
118
|
}, di = () => {
|
|
119
119
|
const { ANALYTICS_gtm: e } = $();
|
|
120
|
-
return e && /* @__PURE__ */ f(
|
|
120
|
+
return e && /* @__PURE__ */ f(J, { children: [
|
|
121
121
|
/* @__PURE__ */ s(
|
|
122
122
|
"script",
|
|
123
123
|
{
|
|
@@ -156,7 +156,7 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
|
|
156
156
|
);
|
|
157
157
|
}, mi = ({ defaultRouteName: e }) => {
|
|
158
158
|
const { CAPTCHA_KEY: t, CONFIG_comments: n = !1 } = $();
|
|
159
|
-
return t && t !== "" && (e === "news" && n || e === "anuncia" || e === "contacto") && /* @__PURE__ */ s(
|
|
159
|
+
return t && t !== "" && (e === "news" && n || e === "anuncia" || e === "contacto") && /* @__PURE__ */ s(J, { children: /* @__PURE__ */ s(
|
|
160
160
|
"script",
|
|
161
161
|
{
|
|
162
162
|
src: `https://www.google.com/recaptcha/enterprise.js?render=${t}`,
|
|
@@ -164,7 +164,7 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
|
|
164
164
|
defer: !0,
|
|
165
165
|
"data-name": "packages-body"
|
|
166
166
|
}
|
|
167
|
-
);
|
|
167
|
+
) });
|
|
168
168
|
};
|
|
169
169
|
function xt(e) {
|
|
170
170
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
@@ -1051,7 +1051,7 @@ const qi = async (e, t) => {
|
|
|
1051
1051
|
t.value || "",
|
|
1052
1052
|
e.replaces
|
|
1053
1053
|
), a = Hi(n);
|
|
1054
|
-
return /* @__PURE__ */ s(
|
|
1054
|
+
return /* @__PURE__ */ s(J, { children: a.map((o, i) => {
|
|
1055
1055
|
const r = o[1] || o[3] || "", c = o[2]?.trim() || "";
|
|
1056
1056
|
return no(r, c, i, e.name);
|
|
1057
1057
|
}) });
|
|
@@ -1066,7 +1066,7 @@ const qi = async (e, t) => {
|
|
|
1066
1066
|
).split(
|
|
1067
1067
|
/(<script\b[\s\S]*?<\/script\s*>|<script\b[^>]*\/?>)/gi
|
|
1068
1068
|
);
|
|
1069
|
-
return /* @__PURE__ */ s(
|
|
1069
|
+
return /* @__PURE__ */ s(J, { children: a.map((o, i) => {
|
|
1070
1070
|
const r = o.match(
|
|
1071
1071
|
/<script\b([^>]*)>([\s\S]*?)<\/script\s*>|<script\b([^>]*)\/?>/i
|
|
1072
1072
|
);
|
|
@@ -1100,7 +1100,7 @@ function q9(e) {
|
|
|
1100
1100
|
const Fi = () => {
|
|
1101
1101
|
const { PUBLIC_ASSETS_URL: e } = $();
|
|
1102
1102
|
return e && e !== "false" && /* @__PURE__ */ s("link", { rel: "preconnect", href: e, crossOrigin: "anonymous" });
|
|
1103
|
-
}, { PUBLIC_ASSETS_URL: zn } = $(), $i = zn && zn !== "false" ? zn : "", Xs = ({ images: e }) => /* @__PURE__ */ s(
|
|
1103
|
+
}, { PUBLIC_ASSETS_URL: zn } = $(), $i = zn && zn !== "false" ? zn : "", Xs = ({ images: e }) => /* @__PURE__ */ s(J, { children: e.map(
|
|
1104
1104
|
(t, n) => t.href !== "" && /* @__PURE__ */ s(
|
|
1105
1105
|
"link",
|
|
1106
1106
|
{
|
|
@@ -1468,7 +1468,7 @@ const tr = async ({
|
|
|
1468
1468
|
unicode-range: 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;
|
|
1469
1469
|
}
|
|
1470
1470
|
`;
|
|
1471
|
-
return /* @__PURE__ */ s(
|
|
1471
|
+
return /* @__PURE__ */ s(J, { children: e.useS3Font ? /* @__PURE__ */ f(J, { children: [
|
|
1472
1472
|
/* @__PURE__ */ s(
|
|
1473
1473
|
"link",
|
|
1474
1474
|
{
|
|
@@ -4673,7 +4673,7 @@ async function l5({
|
|
|
4673
4673
|
currentNew: m,
|
|
4674
4674
|
internalPath: g
|
|
4675
4675
|
});
|
|
4676
|
-
return /* @__PURE__ */ f(
|
|
4676
|
+
return /* @__PURE__ */ f(J, { children: [
|
|
4677
4677
|
/* @__PURE__ */ s("meta", { charSet: "utf-8" }),
|
|
4678
4678
|
/* @__PURE__ */ s("meta", { name: "viewport", content: "width=device-width" }),
|
|
4679
4679
|
G,
|
|
@@ -4771,7 +4771,7 @@ const d5 = ({
|
|
|
4771
4771
|
currentNew: c,
|
|
4772
4772
|
internalPath: r
|
|
4773
4773
|
}), p = l.before.active, g = l.after.active, A = p ? l.before.customData ? l.before.customData : h : void 0, w = g ? l.after.customData ? l.after.customData : h : void 0;
|
|
4774
|
-
return /* @__PURE__ */ f(
|
|
4774
|
+
return /* @__PURE__ */ f(J, { children: [
|
|
4775
4775
|
/* @__PURE__ */ s(so, { name: "bodybefore", banners: n, replaces: A }),
|
|
4776
4776
|
e,
|
|
4777
4777
|
/* @__PURE__ */ s(ui, {}),
|
|
@@ -4823,7 +4823,7 @@ function Kc({
|
|
|
4823
4823
|
enableDrag: i,
|
|
4824
4824
|
onIndexChange: r
|
|
4825
4825
|
}) {
|
|
4826
|
-
const [c, u] =
|
|
4826
|
+
const [c, u] = Z(!1), [l, d] = Z(0), [m, h] = Z(0), [p, g] = Z(0), [A, w] = Z(0), [y, S] = Z(null), _ = Za(null), [I, b] = Z(1), E = fe(() => {
|
|
4827
4827
|
if (o) return 1;
|
|
4828
4828
|
const v = _.current?.offsetWidth || window.innerWidth, N = n + a, L = Math.floor(v / N);
|
|
4829
4829
|
return Math.max(1, L);
|
|
@@ -4960,7 +4960,7 @@ function m5(e) {
|
|
|
4960
4960
|
fullPageWidth: r = !1,
|
|
4961
4961
|
pagination: c = !1,
|
|
4962
4962
|
enableDrag: u = !0
|
|
4963
|
-
} = e, l = Array.isArray(t) ? t : t?.props?.value?.split('<div style="display:none;">SPLITING</div>'), [d, m] =
|
|
4963
|
+
} = e, l = Array.isArray(t) ? t : t?.props?.value?.split('<div style="display:none;">SPLITING</div>'), [d, m] = Z(0), [h, p] = Z(!1);
|
|
4964
4964
|
Qe(() => {
|
|
4965
4965
|
p(!0);
|
|
4966
4966
|
const Q = document.getElementById("ssr-dummy_" + n);
|
|
@@ -5443,7 +5443,7 @@ const Rt = (e) => {
|
|
|
5443
5443
|
) : e.main?.title?.section
|
|
5444
5444
|
),
|
|
5445
5445
|
e.config?.showsubtitle && /* @__PURE__ */ s(l, {}),
|
|
5446
|
-
(e?.config?.showtime || e.config?.showauthor) && /* @__PURE__ */ s(
|
|
5446
|
+
(e?.config?.showtime || e.config?.showauthor) && /* @__PURE__ */ s(J, { children: e.authors[0]?.internaluser ? /* @__PURE__ */ s("h3", { children: /* @__PURE__ */ s(
|
|
5447
5447
|
R,
|
|
5448
5448
|
{
|
|
5449
5449
|
block_subPublication: c?.autor,
|
|
@@ -5510,7 +5510,7 @@ const Rl = (e) => {
|
|
|
5510
5510
|
src: o[0]?.url ? o[0]?.url : void 0
|
|
5511
5511
|
}
|
|
5512
5512
|
),
|
|
5513
|
-
t && /* @__PURE__ */ f(
|
|
5513
|
+
t && /* @__PURE__ */ f(J, { children: [
|
|
5514
5514
|
/* @__PURE__ */ s(
|
|
5515
5515
|
"div",
|
|
5516
5516
|
{
|
|
@@ -5561,7 +5561,7 @@ const Rl = (e) => {
|
|
|
5561
5561
|
src: o[0]?.url ? o[0]?.url : ""
|
|
5562
5562
|
}
|
|
5563
5563
|
),
|
|
5564
|
-
t && /* @__PURE__ */ f(
|
|
5564
|
+
t && /* @__PURE__ */ f(J, { children: [
|
|
5565
5565
|
/* @__PURE__ */ s(
|
|
5566
5566
|
"div",
|
|
5567
5567
|
{
|
|
@@ -5586,7 +5586,7 @@ const Rl = (e) => {
|
|
|
5586
5586
|
isVideo: n = !1,
|
|
5587
5587
|
hasShadow: a = !1,
|
|
5588
5588
|
priorityHigh: o = !1
|
|
5589
|
-
} = e, i = Uo(), [r, c] =
|
|
5589
|
+
} = e, i = Uo(), [r, c] = Z(void 0), u = t?.sizes;
|
|
5590
5590
|
return Qe(() => {
|
|
5591
5591
|
(async () => {
|
|
5592
5592
|
u?.[0]?.url ? c(
|
|
@@ -7064,7 +7064,7 @@ const Rl = (e) => {
|
|
|
7064
7064
|
c
|
|
7065
7065
|
)) })
|
|
7066
7066
|
] }),
|
|
7067
|
-
o && /* @__PURE__ */ s(
|
|
7067
|
+
o && /* @__PURE__ */ s(J, { children: o }),
|
|
7068
7068
|
/* @__PURE__ */ f("section", { className: xe.copyrigth, children: [
|
|
7069
7069
|
/* @__PURE__ */ s("p", { className: xe.copyrigthText, children: e.copyrigth }),
|
|
7070
7070
|
/* @__PURE__ */ s(
|
|
@@ -7386,7 +7386,7 @@ const l1 = "_content_xlsy2_1", d1 = "_videoContent_xlsy2_39", u1 = "_articleSect
|
|
|
7386
7386
|
children: e.children
|
|
7387
7387
|
}
|
|
7388
7388
|
),
|
|
7389
|
-
/* @__PURE__ */ s(
|
|
7389
|
+
/* @__PURE__ */ s(J, { children: e.paginatorComponent })
|
|
7390
7390
|
] });
|
|
7391
7391
|
}, C1 = "_content_3pssn_1", S1 = "_newsDescription_3pssn_29", N1 = "_image_3pssn_81", zt = {
|
|
7392
7392
|
content: C1,
|
|
@@ -7602,7 +7602,7 @@ const l1 = "_content_xlsy2_1", d1 = "_videoContent_xlsy2_39", u1 = "_articleSect
|
|
|
7602
7602
|
/* @__PURE__ */ s(qe, { preview: e.preview, isLarge: !0, priorityHigh: !0 }),
|
|
7603
7603
|
t && /* @__PURE__ */ s("div", { className: En.description, children: t })
|
|
7604
7604
|
] });
|
|
7605
|
-
}, lu = (e) => /* @__PURE__ */ s(
|
|
7605
|
+
}, lu = (e) => /* @__PURE__ */ s(J, { children: /* @__PURE__ */ f("div", { className: `${ot.boxInformation} sass-liveblog-header`, children: [
|
|
7606
7606
|
/* @__PURE__ */ s(Oo, { preview: e.preview }),
|
|
7607
7607
|
/* @__PURE__ */ f("div", { className: ot.textBox, children: [
|
|
7608
7608
|
/* @__PURE__ */ f("div", { className: ot.contentBox, children: [
|
|
@@ -8257,7 +8257,7 @@ const l1 = "_content_xlsy2_1", d1 = "_videoContent_xlsy2_39", u1 = "_articleSect
|
|
|
8257
8257
|
children: t?.data[0]?.main?.title.home ?? ""
|
|
8258
8258
|
}
|
|
8259
8259
|
);
|
|
8260
|
-
return /* @__PURE__ */ f(
|
|
8260
|
+
return /* @__PURE__ */ f(J, { children: [
|
|
8261
8261
|
/* @__PURE__ */ s(
|
|
8262
8262
|
"input",
|
|
8263
8263
|
{
|
|
@@ -8626,7 +8626,7 @@ const l1 = "_content_xlsy2_1", d1 = "_videoContent_xlsy2_39", u1 = "_articleSect
|
|
|
8626
8626
|
op2: Ph
|
|
8627
8627
|
}, _5 = (e) => {
|
|
8628
8628
|
const { alertZone: t, children: n, sidebar: a, custom_styles: o = {} } = e;
|
|
8629
|
-
return /* @__PURE__ */ f(
|
|
8629
|
+
return /* @__PURE__ */ f(J, { children: [
|
|
8630
8630
|
/* @__PURE__ */ s(lh, { ...e }),
|
|
8631
8631
|
!e.showOnlyStickyHeader && /* @__PURE__ */ s(Rh, { ...e }),
|
|
8632
8632
|
/* @__PURE__ */ f(
|
|
@@ -9161,7 +9161,7 @@ const l1 = "_content_xlsy2_1", d1 = "_videoContent_xlsy2_39", u1 = "_articleSect
|
|
|
9161
9161
|
}
|
|
9162
9162
|
}
|
|
9163
9163
|
),
|
|
9164
|
-
e?.config?.showtime && e.config?.showauthor && /* @__PURE__ */ s(
|
|
9164
|
+
e?.config?.showtime && e.config?.showauthor && /* @__PURE__ */ s(J, { children: e.authors[0]?.internaluser ? /* @__PURE__ */ s(
|
|
9165
9165
|
R,
|
|
9166
9166
|
{
|
|
9167
9167
|
block_subPublication: n?.autor,
|
|
@@ -9585,7 +9585,7 @@ const S5 = (e) => {
|
|
|
9585
9585
|
] }),
|
|
9586
9586
|
/* @__PURE__ */ s("div", { className: Nt.bannerContent, children: e.halfPageBanner })
|
|
9587
9587
|
] });
|
|
9588
|
-
}, E5 = (e) => /* @__PURE__ */ f(
|
|
9588
|
+
}, E5 = (e) => /* @__PURE__ */ f(J, { children: [
|
|
9589
9589
|
/* @__PURE__ */ s(
|
|
9590
9590
|
Wl,
|
|
9591
9591
|
{
|
|
@@ -10124,7 +10124,7 @@ const S5 = (e) => {
|
|
|
10124
10124
|
}
|
|
10125
10125
|
);
|
|
10126
10126
|
case "op2":
|
|
10127
|
-
return /* @__PURE__ */ s(
|
|
10127
|
+
return /* @__PURE__ */ s(J, { children: t.length > 0 ? /* @__PURE__ */ s(
|
|
10128
10128
|
ps,
|
|
10129
10129
|
{
|
|
10130
10130
|
className: "padding-0",
|
|
@@ -10185,7 +10185,7 @@ const S5 = (e) => {
|
|
|
10185
10185
|
}
|
|
10186
10186
|
) });
|
|
10187
10187
|
default:
|
|
10188
|
-
return /* @__PURE__ */ s(
|
|
10188
|
+
return /* @__PURE__ */ s(J, {});
|
|
10189
10189
|
}
|
|
10190
10190
|
}, s0 = "_content_1oabr_1", a0 = "_contactInfoContent_1oabr_13", La = {
|
|
10191
10191
|
content: s0,
|
|
@@ -11829,7 +11829,7 @@ const Pa = {
|
|
|
11829
11829
|
data: i.slice(0, u),
|
|
11830
11830
|
paths: n.paths
|
|
11831
11831
|
});
|
|
11832
|
-
return /* @__PURE__ */ f(
|
|
11832
|
+
return /* @__PURE__ */ f(J, { children: [
|
|
11833
11833
|
/* @__PURE__ */ s(
|
|
11834
11834
|
ns,
|
|
11835
11835
|
{
|
|
@@ -11879,7 +11879,7 @@ const Pa = {
|
|
|
11879
11879
|
getVideos: d
|
|
11880
11880
|
} = e, m = e.slug === "liveblogs", { SHOW_NEWS_MORE_NEWS: h, SHOW_NEWS_RELATED_NEWS: p, MORE_NEWS_SSR: g } = $();
|
|
11881
11881
|
if (!(!i || !i[0]))
|
|
11882
|
-
return /* @__PURE__ */ s(
|
|
11882
|
+
return /* @__PURE__ */ s(J, { children: /* @__PURE__ */ f(m0, { className: Ht.contentLayout2, children: [
|
|
11883
11883
|
/* @__PURE__ */ s(
|
|
11884
11884
|
y0,
|
|
11885
11885
|
{
|
|
@@ -11960,7 +11960,7 @@ const Pa = {
|
|
|
11960
11960
|
}
|
|
11961
11961
|
),
|
|
11962
11962
|
/* @__PURE__ */ s(ct, { children: /* @__PURE__ */ s(et, { banners: a, index: 2 }) }),
|
|
11963
|
-
p && /* @__PURE__ */ f(
|
|
11963
|
+
p && /* @__PURE__ */ f(J, { children: [
|
|
11964
11964
|
/* @__PURE__ */ s(
|
|
11965
11965
|
xn,
|
|
11966
11966
|
{
|
|
@@ -11978,7 +11978,7 @@ const Pa = {
|
|
|
11978
11978
|
),
|
|
11979
11979
|
/* @__PURE__ */ s(ct, { children: /* @__PURE__ */ s(et, { banners: a, index: 3 }) })
|
|
11980
11980
|
] }),
|
|
11981
|
-
h && /* @__PURE__ */ f(
|
|
11981
|
+
h && /* @__PURE__ */ f(J, { children: [
|
|
11982
11982
|
g ? /* @__PURE__ */ s(
|
|
11983
11983
|
xn,
|
|
11984
11984
|
{
|
|
@@ -12117,7 +12117,7 @@ const Pa = {
|
|
|
12117
12117
|
};
|
|
12118
12118
|
switch (n) {
|
|
12119
12119
|
case "op1":
|
|
12120
|
-
return /* @__PURE__ */ s(
|
|
12120
|
+
return /* @__PURE__ */ s(J, { children: /* @__PURE__ */ f(Na, { children: [
|
|
12121
12121
|
/* @__PURE__ */ s(ku, { autor: a[0], autorIcon: e.autorIcon, socialIconsFilled: m }),
|
|
12122
12122
|
/* @__PURE__ */ s(
|
|
12123
12123
|
Mo,
|
|
@@ -12200,9 +12200,9 @@ const Pa = {
|
|
|
12200
12200
|
)
|
|
12201
12201
|
] }) });
|
|
12202
12202
|
case "op2":
|
|
12203
|
-
return /* @__PURE__ */ s(
|
|
12203
|
+
return /* @__PURE__ */ s(J, { children: /* @__PURE__ */ f(Na, { children: [
|
|
12204
12204
|
/* @__PURE__ */ s(zu, { autor: a[0], autorIcon: e.autorIcon, socialIconsFilled: m }),
|
|
12205
|
-
Array.isArray(t) ? /* @__PURE__ */ f(
|
|
12205
|
+
Array.isArray(t) ? /* @__PURE__ */ f(J, { children: [
|
|
12206
12206
|
/* @__PURE__ */ s(
|
|
12207
12207
|
zo,
|
|
12208
12208
|
{
|
|
@@ -12254,7 +12254,7 @@ const Pa = {
|
|
|
12254
12254
|
)
|
|
12255
12255
|
] }) });
|
|
12256
12256
|
default:
|
|
12257
|
-
return /* @__PURE__ */ s(
|
|
12257
|
+
return /* @__PURE__ */ s(J, {});
|
|
12258
12258
|
}
|
|
12259
12259
|
}, yp = "_content_ghncj_1", vp = "_videoContent_ghncj_17", Oa = {
|
|
12260
12260
|
content: yp,
|
|
@@ -12377,7 +12377,7 @@ const Pa = {
|
|
|
12377
12377
|
case "op2":
|
|
12378
12378
|
return /* @__PURE__ */ s(zp, { video: e.data[0] });
|
|
12379
12379
|
default:
|
|
12380
|
-
return /* @__PURE__ */ s(
|
|
12380
|
+
return /* @__PURE__ */ s(J, {});
|
|
12381
12381
|
}
|
|
12382
12382
|
};
|
|
12383
12383
|
function O5({ containerId: e, containerId2: t }) {
|
|
@@ -12457,7 +12457,7 @@ const Fp = (e) => {
|
|
|
12457
12457
|
}
|
|
12458
12458
|
}
|
|
12459
12459
|
),
|
|
12460
|
-
t && /* @__PURE__ */ f(
|
|
12460
|
+
t && /* @__PURE__ */ f(J, { children: [
|
|
12461
12461
|
/* @__PURE__ */ s(
|
|
12462
12462
|
"div",
|
|
12463
12463
|
{
|
|
@@ -12564,7 +12564,7 @@ const Fp = (e) => {
|
|
|
12564
12564
|
fetchConfig: r,
|
|
12565
12565
|
paths: c
|
|
12566
12566
|
}) => {
|
|
12567
|
-
const u = i.FETCH_SIZE_MORE_NEWS ?? 6, [l, d] =
|
|
12567
|
+
const u = i.FETCH_SIZE_MORE_NEWS ?? 6, [l, d] = Z({ data: Array.from({ length: u }, () => Vp) }), [m, h] = Z(!1), p = fe(async () => {
|
|
12568
12568
|
if (!t) return;
|
|
12569
12569
|
const w = new URLSearchParams({
|
|
12570
12570
|
section: e,
|
|
@@ -12782,7 +12782,7 @@ const Fp = (e) => {
|
|
|
12782
12782
|
children: n ? ze(e.main.subtitle.striped) : e.main.subtitle.striped
|
|
12783
12783
|
}
|
|
12784
12784
|
),
|
|
12785
|
-
(e?.config?.showtime || e.config?.showauthor) && c && /* @__PURE__ */ s(
|
|
12785
|
+
(e?.config?.showtime || e.config?.showauthor) && c && /* @__PURE__ */ s(J, { children: e.authors?.[0]?.internaluser ? /* @__PURE__ */ s(
|
|
12786
12786
|
R,
|
|
12787
12787
|
{
|
|
12788
12788
|
block_subPublication: e.DATE_CONFIG?.SUB_PUBLICATION_PREFIX_IN_ROUTES?.autor,
|
|
@@ -14001,9 +14001,9 @@ const Ko = P3(D3, {
|
|
|
14001
14001
|
username: o,
|
|
14002
14002
|
CAPTCHA_KEY_V2: i
|
|
14003
14003
|
}) => {
|
|
14004
|
-
const [r, c] =
|
|
14004
|
+
const [r, c] = Z("form"), [u, l] = Z(
|
|
14005
14005
|
""
|
|
14006
|
-
), [d, m] =
|
|
14006
|
+
), [d, m] = Z(""), [h, p] = Z(""), g = [
|
|
14007
14007
|
{ id: "spam", label: Ze.spam },
|
|
14008
14008
|
{
|
|
14009
14009
|
id: "inappropriate",
|
|
@@ -14059,7 +14059,7 @@ const Ko = P3(D3, {
|
|
|
14059
14059
|
/* @__PURE__ */ s("button", { className: "close-reply-form", onClick: w, children: /* @__PURE__ */ s(qt, {}) }),
|
|
14060
14060
|
/* @__PURE__ */ s("h2", { className: Ae.title, children: "Reportar Abuso" }),
|
|
14061
14061
|
r === "loading" && /* @__PURE__ */ s("div", { className: Ae.loadingContainer, children: /* @__PURE__ */ s(nt, {}) }),
|
|
14062
|
-
r === "form" || r === "loading" ? /* @__PURE__ */ f(
|
|
14062
|
+
r === "form" || r === "loading" ? /* @__PURE__ */ f(J, { children: [
|
|
14063
14063
|
/* @__PURE__ */ s("div", { className: Ae.optionsContainer, children: g.map((y) => /* @__PURE__ */ f("label", { className: Ae.option, children: [
|
|
14064
14064
|
/* @__PURE__ */ s(
|
|
14065
14065
|
"input",
|
|
@@ -14098,7 +14098,7 @@ const Ko = P3(D3, {
|
|
|
14098
14098
|
}
|
|
14099
14099
|
)
|
|
14100
14100
|
] })
|
|
14101
|
-
] }) : /* @__PURE__ */ f(
|
|
14101
|
+
] }) : /* @__PURE__ */ f(J, { children: [
|
|
14102
14102
|
/* @__PURE__ */ f("div", { className: Ae.successContainer, children: [
|
|
14103
14103
|
/* @__PURE__ */ s("div", { className: Ae.thumbsUp, children: /* @__PURE__ */ s(
|
|
14104
14104
|
"svg",
|
|
@@ -14251,7 +14251,7 @@ async function h9({
|
|
|
14251
14251
|
}
|
|
14252
14252
|
}
|
|
14253
14253
|
const f9 = (e, t) => {
|
|
14254
|
-
const [n, a] =
|
|
14254
|
+
const [n, a] = Z(void 0), { PUBLIC_PUBLICATION_ID: o } = t, i = o;
|
|
14255
14255
|
return Qe(() => {
|
|
14256
14256
|
if (n) return;
|
|
14257
14257
|
(async () => {
|
|
@@ -14480,7 +14480,7 @@ const f9 = (e, t) => {
|
|
|
14480
14480
|
closeForm: i,
|
|
14481
14481
|
API_ENV: r
|
|
14482
14482
|
}) => {
|
|
14483
|
-
const [c, u] =
|
|
14483
|
+
const [c, u] = Z(!0), [l, d] = Z(""), m = () => {
|
|
14484
14484
|
t.current?.parentElement && (t.current.parentElement.dataset.text = `0/${bt}`), u(!0), i();
|
|
14485
14485
|
};
|
|
14486
14486
|
return /* @__PURE__ */ f("div", { className: "comment-form reply-form", children: [
|
|
@@ -14544,7 +14544,7 @@ const f9 = (e, t) => {
|
|
|
14544
14544
|
] })
|
|
14545
14545
|
] }) });
|
|
14546
14546
|
}, A9 = ({ comment: e, replyingTo: t, path: n, user: a, handleReplyingTo: o, onFlag: i, API_ENV: r }) => {
|
|
14547
|
-
const c = { morereply: e.morereply ?? !1, reply: e.reply ? e.reply : [] }, [u, l] =
|
|
14547
|
+
const c = { morereply: e.morereply ?? !1, reply: e.reply ? e.reply : [] }, [u, l] = Z(c), [d, m] = Te.useState(!1), { PUBLIC_PUBLICATION_ID: h, PUBLIC_X_SECURITY_TOKEN: p } = r, g = e.text, A = Te.useRef(null);
|
|
14548
14548
|
let w = `${tt.firstname} ${tt.lastname ?? ""}`, y = tt.username;
|
|
14549
14549
|
e.user && (w = `${e.user.firstname} ${e.user.lastname ?? ""}`, y = e.user.username);
|
|
14550
14550
|
const S = (_) => {
|
|
@@ -14631,7 +14631,7 @@ const f9 = (e, t) => {
|
|
|
14631
14631
|
addComment: a,
|
|
14632
14632
|
API_ENV: o
|
|
14633
14633
|
}) => {
|
|
14634
|
-
const [i, r] =
|
|
14634
|
+
const [i, r] = Z(!0), [c, u] = Z("");
|
|
14635
14635
|
return /* @__PURE__ */ f("div", { className: "comment-form", children: [
|
|
14636
14636
|
/* @__PURE__ */ s(
|
|
14637
14637
|
ei,
|
|
@@ -14681,9 +14681,9 @@ const f9 = (e, t) => {
|
|
|
14681
14681
|
handleLogout: a,
|
|
14682
14682
|
API_ENV: o
|
|
14683
14683
|
}) => {
|
|
14684
|
-
const { PUBLIC_PUBLICATION_ID: i, PUBLIC_X_SECURITY_TOKEN: r } = o, c = i ?? "", u = t.replaceAll("/", "|"), [l, d] =
|
|
14684
|
+
const { PUBLIC_PUBLICATION_ID: i, PUBLIC_X_SECURITY_TOKEN: r } = o, c = i ?? "", u = t.replaceAll("/", "|"), [l, d] = Z(
|
|
14685
14685
|
void 0
|
|
14686
|
-
), [m, h] =
|
|
14686
|
+
), [m, h] = Z(""), { comments: p, setComments: g } = f9(u, o), [A, w] = Te.useState(!1), y = Te.useRef(null), S = (Y) => {
|
|
14687
14687
|
h(m === Y ? "" : Y);
|
|
14688
14688
|
}, _ = (Y) => {
|
|
14689
14689
|
g(
|
|
@@ -14720,8 +14720,8 @@ const f9 = (e, t) => {
|
|
|
14720
14720
|
throw w(!1), new Error(`Error al obtener comentarios: ${B}`);
|
|
14721
14721
|
}
|
|
14722
14722
|
}, E = p?.comments && p.comments.length > 0, O = E ? "Comparte tu opinión de este artículo." : "Se el primero en compartir tu opinión de este artículo.", G = /* @__PURE__ */ s("div", { style: { display: "flex", width: "100%", justifyContent: "center" }, children: /* @__PURE__ */ s(nt, {}) });
|
|
14723
|
-
return /* @__PURE__ */ f(
|
|
14724
|
-
/* @__PURE__ */ s("div", { className: "comments-container", children: /* @__PURE__ */ s(ye, { title: E || e ? "COMENTARIOS" : !1, children: /* @__PURE__ */ f(
|
|
14723
|
+
return /* @__PURE__ */ f(J, { children: [
|
|
14724
|
+
/* @__PURE__ */ s("div", { className: "comments-container", children: /* @__PURE__ */ s(ye, { title: E || e ? "COMENTARIOS" : !1, children: /* @__PURE__ */ f(J, { children: [
|
|
14725
14725
|
e && n && /* @__PURE__ */ f("div", { className: "comments-header", children: [
|
|
14726
14726
|
/* @__PURE__ */ s(
|
|
14727
14727
|
Jp,
|
|
@@ -14834,7 +14834,7 @@ const f9 = (e, t) => {
|
|
|
14834
14834
|
}
|
|
14835
14835
|
];
|
|
14836
14836
|
function v9({ goToLogin: e, handleGoogleLogin: t, API_ENV: n }) {
|
|
14837
|
-
const [a, o] =
|
|
14837
|
+
const [a, o] = Z({}), [i, r] = Z(!1), [c, u] = Z(!1), [l, d] = Z(null), [m, h] = Z(
|
|
14838
14838
|
"register"
|
|
14839
14839
|
), p = (y, S) => {
|
|
14840
14840
|
o((_) => ({ ..._, [y]: S }));
|
|
@@ -14918,8 +14918,8 @@ function v9({ goToLogin: e, handleGoogleLogin: t, API_ENV: n }) {
|
|
|
14918
14918
|
u(!1);
|
|
14919
14919
|
}
|
|
14920
14920
|
}, w = a.password || "";
|
|
14921
|
-
return /* @__PURE__ */ f(
|
|
14922
|
-
m === "register" && /* @__PURE__ */ f(
|
|
14921
|
+
return /* @__PURE__ */ f(J, { children: [
|
|
14922
|
+
m === "register" && /* @__PURE__ */ f(J, { children: [
|
|
14923
14923
|
/* @__PURE__ */ f("button", { onClick: t, className: k.google, children: [
|
|
14924
14924
|
/* @__PURE__ */ s(
|
|
14925
14925
|
"img",
|
|
@@ -15065,8 +15065,8 @@ function b9({
|
|
|
15065
15065
|
handleGoogleLogin: a,
|
|
15066
15066
|
API_ENV: o
|
|
15067
15067
|
}) {
|
|
15068
|
-
const [i, r] =
|
|
15069
|
-
return /* @__PURE__ */ f(
|
|
15068
|
+
const [i, r] = Z("login"), [c, u] = Z(""), [l, d] = Z(""), [m, h] = Z(""), [p, g] = Z(""), [A, w] = Z(""), [y, S] = Z(!1), [_, I] = Z(!1), [b, E] = Z(null);
|
|
15069
|
+
return /* @__PURE__ */ f(J, { children: [
|
|
15070
15070
|
i === "login" && /* @__PURE__ */ s(
|
|
15071
15071
|
_9,
|
|
15072
15072
|
{
|
|
@@ -15215,7 +15215,7 @@ function _9({
|
|
|
15215
15215
|
onRegister: d,
|
|
15216
15216
|
handleGoogleLogin: m
|
|
15217
15217
|
}) {
|
|
15218
|
-
return /* @__PURE__ */ f(
|
|
15218
|
+
return /* @__PURE__ */ f(J, { children: [
|
|
15219
15219
|
/* @__PURE__ */ f("button", { onClick: m, className: k.google, children: [
|
|
15220
15220
|
/* @__PURE__ */ s(
|
|
15221
15221
|
"img",
|
|
@@ -15454,7 +15454,7 @@ function I9({
|
|
|
15454
15454
|
icon: a,
|
|
15455
15455
|
API_ENV: o
|
|
15456
15456
|
}) {
|
|
15457
|
-
const [i, r] =
|
|
15457
|
+
const [i, r] = Z("login"), c = async () => {
|
|
15458
15458
|
if (o.PUBLIC_ENV === "local") {
|
|
15459
15459
|
await fetch("/api/auth/debug-login", { method: "GET", credentials: "include" }), localStorage.setItem("cognito-login", "success:" + Date.now()), t(), n();
|
|
15460
15460
|
return;
|
|
@@ -15521,7 +15521,7 @@ function E9({
|
|
|
15521
15521
|
commentLabel: u
|
|
15522
15522
|
}) {
|
|
15523
15523
|
const [l, d] = Te.useState(!1);
|
|
15524
|
-
return /* @__PURE__ */ f(
|
|
15524
|
+
return /* @__PURE__ */ f(J, { children: [
|
|
15525
15525
|
l && /* @__PURE__ */ s(
|
|
15526
15526
|
I9,
|
|
15527
15527
|
{
|
|
@@ -15577,7 +15577,7 @@ function T9({
|
|
|
15577
15577
|
API_ENV: a,
|
|
15578
15578
|
commentLabel: o
|
|
15579
15579
|
}) {
|
|
15580
|
-
const [i, r] =
|
|
15580
|
+
const [i, r] = Z(null), [c, u] = Z(null), l = a?.COGNITO_AUTH_PREFIX ?? "ASTRO_", d = fe(async () => {
|
|
15581
15581
|
if (e) {
|
|
15582
15582
|
if (document.cookie.search(l + "IS_AUTH=true") === -1) {
|
|
15583
15583
|
r(!1), u(null);
|
|
@@ -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
|
-
`}}),n.jsx("noscript",{children:n.jsx("iframe",{src:`https://www.googletagmanager.com/ns.html?id=${e}`,height:"0",width:"0",style:{display:"none",visibility:"hidden"}})})]})},ns=()=>{const{ANALYTICS_marfeel:e}=z();return e&&n.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},{})}();`}})},as=({defaultRouteName:e})=>{const{CAPTCHA_KEY:t,CONFIG_comments:a=!1}=z();return t&&t!==""&&(e==="news"&&a||e==="anuncia"||e==="contacto")&&n.jsx("script",{src:`https://www.google.com/recaptcha/enterprise.js?render=${t}`,async:!0,defer:!0,"data-name":"packages-body"})};function bt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Rt={exports:{}},ei=Rt.exports,ss;function os(){return ss||(ss=1,(function(e,t){(function(a,s){e.exports=s()})(ei,(function(){var a=1e3,s=6e4,o=36e5,r="millisecond",i="second",c="minute",h="hour",l="day",d="week",u="month",f="quarter",g="year",m="date",p="Invalid Date",A=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,w=/\[([^\]]+)]|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,S={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(j){var L=["th","st","nd","rd"],k=j%100;return"["+j+(L[(k-20)%10]||L[k]||L[0])+"]"}},v=function(j,L,k){var $=String(j);return!$||$.length>=L?j:""+Array(L+1-$.length).join(k)+j},I={s:v,z:function(j){var L=-j.utcOffset(),k=Math.abs(L),$=Math.floor(k/60),x=k%60;return(L<=0?"+":"-")+v($,2,"0")+":"+v(x,2,"0")},m:function j(L,k){if(L.date()<k.date())return-j(k,L);var $=12*(k.year()-L.year())+(k.month()-L.month()),x=L.clone().add($,u),V=k-x<0,y=L.clone().add($+(V?-1:1),u);return+(-($+(k-x)/(V?x-y:y-x))||0)},a:function(j){return j<0?Math.ceil(j)||0:Math.floor(j)},p:function(j){return{M:u,y:g,w:d,d:l,D:m,h,m:c,s:i,ms:r,Q:f}[j]||String(j||"").toLowerCase().replace(/s$/,"")},u:function(j){return j===void 0}},C="en",T={};T[C]=S;var M="$isDayjsObject",Q=function(j){return j instanceof te||!(!j||!j[M])},K=function j(L,k,$){var x;if(!L)return C;if(typeof L=="string"){var V=L.toLowerCase();T[V]&&(x=V),k&&(T[V]=k,x=V);var y=L.split("-");if(!x&&y.length>1)return j(y[0])}else{var N=L.name;T[N]=L,x=N}return!$&&x&&(C=x),x||!$&&C},H=function(j,L){if(Q(j))return j.clone();var k=typeof L=="object"?L:{};return k.date=j,k.args=arguments,new te(k)},O=I;O.l=K,O.i=Q,O.w=function(j,L){return H(j,{locale:L.$L,utc:L.$u,x:L.$x,$offset:L.$offset})};var te=(function(){function j(k){this.$L=K(k.locale,null,!0),this.parse(k),this.$x=this.$x||k.x||{},this[M]=!0}var L=j.prototype;return L.parse=function(k){this.$d=(function($){var x=$.date,V=$.utc;if(x===null)return new Date(NaN);if(O.u(x))return new Date;if(x instanceof Date)return new Date(x);if(typeof x=="string"&&!/Z$/i.test(x)){var y=x.match(A);if(y){var N=y[2]-1||0,q=(y[7]||"0").substring(0,3);return V?new Date(Date.UTC(y[1],N,y[3]||1,y[4]||0,y[5]||0,y[6]||0,q)):new Date(y[1],N,y[3]||1,y[4]||0,y[5]||0,y[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 O},L.isValid=function(){return this.$d.toString()!==p},L.isSame=function(k,$){var x=H(k);return this.startOf($)<=x&&x<=this.endOf($)},L.isAfter=function(k,$){return H(k)<this.startOf($)},L.isBefore=function(k,$){return this.endOf($)<H(k)},L.$g=function(k,$,x){return O.u(k)?this[$]:this.set(x,k)},L.unix=function(){return Math.floor(this.valueOf()/1e3)},L.valueOf=function(){return this.$d.getTime()},L.startOf=function(k,$){var x=this,V=!!O.u($)||$,y=O.p(k),N=function(ee,J){var le=O.w(x.$u?Date.UTC(x.$y,J,ee):new Date(x.$y,J,ee),x);return V?le:le.endOf(l)},q=function(ee,J){return O.w(x.toDate()[ee].apply(x.toDate("s"),(V?[0,0,0,0]:[23,59,59,999]).slice(J)),x)},G=this.$W,D=this.$M,F=this.$D,W="set"+(this.$u?"UTC":"");switch(y){case g:return V?N(1,0):N(31,11);case u:return V?N(1,D):N(0,D+1);case d:var Y=this.$locale().weekStart||0,R=(G<Y?G+7:G)-Y;return N(V?F-R:F+(6-R),D);case l:case m:return q(W+"Hours",0);case h:return q(W+"Minutes",1);case c:return q(W+"Seconds",2);case i:return q(W+"Milliseconds",3);default:return this.clone()}},L.endOf=function(k){return this.startOf(k,!1)},L.$set=function(k,$){var x,V=O.p(k),y="set"+(this.$u?"UTC":""),N=(x={},x[l]=y+"Date",x[m]=y+"Date",x[u]=y+"Month",x[g]=y+"FullYear",x[h]=y+"Hours",x[c]=y+"Minutes",x[i]=y+"Seconds",x[r]=y+"Milliseconds",x)[V],q=V===l?this.$D+($-this.$W):$;if(V===u||V===g){var G=this.clone().set(m,1);G.$d[N](q),G.init(),this.$d=G.set(m,Math.min(this.$D,G.daysInMonth())).$d}else N&&this.$d[N](q);return this.init(),this},L.set=function(k,$){return this.clone().$set(k,$)},L.get=function(k){return this[O.p(k)]()},L.add=function(k,$){var x,V=this;k=Number(k);var y=O.p($),N=function(D){var F=H(V);return O.w(F.date(F.date()+Math.round(D*k)),V)};if(y===u)return this.set(u,this.$M+k);if(y===g)return this.set(g,this.$y+k);if(y===l)return N(1);if(y===d)return N(7);var q=(x={},x[c]=s,x[h]=o,x[i]=a,x)[y]||1,G=this.$d.getTime()+k*q;return O.w(G,this)},L.subtract=function(k,$){return this.add(-1*k,$)},L.format=function(k){var $=this,x=this.$locale();if(!this.isValid())return x.invalidDate||p;var V=k||"YYYY-MM-DDTHH:mm:ssZ",y=O.z(this),N=this.$H,q=this.$m,G=this.$M,D=x.weekdays,F=x.months,W=x.meridiem,Y=function(J,le,P,Ce){return J&&(J[le]||J($,V))||P[le].slice(0,Ce)},R=function(J){return O.s(N%12||12,J,"0")},ee=W||function(J,le,P){var Ce=J<12?"AM":"PM";return P?Ce.toLowerCase():Ce};return V.replace(w,(function(J,le){return le||(function(P){switch(P){case"YY":return String($.$y).slice(-2);case"YYYY":return O.s($.$y,4,"0");case"M":return G+1;case"MM":return O.s(G+1,2,"0");case"MMM":return Y(x.monthsShort,G,F,3);case"MMMM":return Y(F,G);case"D":return $.$D;case"DD":return O.s($.$D,2,"0");case"d":return String($.$W);case"dd":return Y(x.weekdaysMin,$.$W,D,2);case"ddd":return Y(x.weekdaysShort,$.$W,D,3);case"dddd":return D[$.$W];case"H":return String(N);case"HH":return O.s(N,2,"0");case"h":return R(1);case"hh":return R(2);case"a":return ee(N,q,!0);case"A":return ee(N,q,!1);case"m":return String(q);case"mm":return O.s(q,2,"0");case"s":return String($.$s);case"ss":return O.s($.$s,2,"0");case"SSS":return O.s($.$ms,3,"0");case"Z":return y}return null})(J)||y.replace(":","")}))},L.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},L.diff=function(k,$,x){var V,y=this,N=O.p($),q=H(k),G=(q.utcOffset()-this.utcOffset())*s,D=this-q,F=function(){return O.m(y,q)};switch(N){case g:V=F()/12;break;case u:V=F();break;case f:V=F()/3;break;case d:V=(D-G)/6048e5;break;case l:V=(D-G)/864e5;break;case h:V=D/o;break;case c:V=D/s;break;case i:V=D/a;break;default:V=D}return x?V:O.a(V)},L.daysInMonth=function(){return this.endOf(u).$D},L.$locale=function(){return T[this.$L]},L.locale=function(k,$){if(!k)return this.$L;var x=this.clone(),V=K(k,$,!0);return V&&(x.$L=V),x},L.clone=function(){return O.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()},j})(),de=te.prototype;return H.prototype=de,[["$ms",r],["$s",i],["$m",c],["$H",h],["$W",l],["$M",u],["$y",g],["$D",m]].forEach((function(j){de[j[1]]=function(L){return this.$g(L,j[0],j[1])}})),H.extend=function(j,L){return j.$i||(j(L,te,H),j.$i=!0),H},H.locale=K,H.isDayjs=Q,H.unix=function(j){return H(1e3*j)},H.en=T[C],H.Ls=T,H.p={},H}))})(Rt)),Rt.exports}var ti=os();const Ie=bt(ti);var en={exports:{}},ni=en.exports,rs;function ai(){return rs||(rs=1,(function(e,t){(function(a,s){e.exports=s()})(ni,(function(){return function(a,s,o){a=a||{};var r=s.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 c(l,d,u,f){return r.fromToBase(l,d,u,f)}o.en.relativeTime=i,r.fromToBase=function(l,d,u,f,g){for(var m,p,A,w=u.$locale().relativeTime||i,S=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"}],v=S.length,I=0;I<v;I+=1){var C=S[I];C.d&&(m=f?o(l).diff(u,C.d,!0):u.diff(l,C.d,!0));var T=(a.rounding||Math.round)(Math.abs(m));if(A=m>0,T<=C.r||!C.r){T<=1&&I>0&&(C=S[I-1]);var M=w[C.l];g&&(T=g(""+T)),p=typeof M=="string"?M.replace("%d",T):M(T,d,C.l,A);break}}if(d)return p;var Q=A?w.future:w.past;return typeof Q=="function"?Q(p):Q.replace("%s",p)},r.to=function(l,d){return c(l,d,this,!0)},r.from=function(l,d){return c(l,d,this)};var h=function(l){return l.$u?o.utc():o()};r.toNow=function(l){return this.to(h(this),l)},r.fromNow=function(l){return this.from(h(this),l)}}}))})(en)),en.exports}var si=ai();const oi=bt(si);var tn={exports:{}},ri=tn.exports,is;function ii(){return is||(is=1,(function(e,t){(function(a,s){e.exports=s(os())})(ri,(function(a){function s(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}var o=s(a),r={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 o.default.locale(r,null,!0),r}))})(tn)),tn.exports}ii();var nn={exports:{}},ci=nn.exports,cs;function li(){return cs||(cs=1,(function(e,t){(function(a,s){e.exports=s()})(ci,(function(){var a="minute",s=/[+-]\d\d(?::?\d\d)?/g,o=/([+-]|\d\d)/g;return function(r,i,c){var h=i.prototype;c.utc=function(p){var A={date:p,utc:!0,args:arguments};return new i(A)},h.utc=function(p){var A=c(this.toDate(),{locale:this.$L,utc:!0});return p?A.add(this.utcOffset(),a):A},h.local=function(){return c(this.toDate(),{locale:this.$L,utc:!1})};var l=h.parse;h.parse=function(p){p.utc&&(this.$u=!0),this.$utils().u(p.$offset)||(this.$offset=p.$offset),l.call(this,p)};var d=h.init;h.init=function(){if(this.$u){var p=this.$d;this.$y=p.getUTCFullYear(),this.$M=p.getUTCMonth(),this.$D=p.getUTCDate(),this.$W=p.getUTCDay(),this.$H=p.getUTCHours(),this.$m=p.getUTCMinutes(),this.$s=p.getUTCSeconds(),this.$ms=p.getUTCMilliseconds()}else d.call(this)};var u=h.utcOffset;h.utcOffset=function(p,A){var w=this.$utils().u;if(w(p))return this.$u?0:w(this.$offset)?u.call(this):this.$offset;if(typeof p=="string"&&(p=(function(C){C===void 0&&(C="");var T=C.match(s);if(!T)return null;var M=(""+T[0]).match(o)||["-",0,0],Q=M[0],K=60*+M[1]+ +M[2];return K===0?0:Q==="+"?K:-K})(p),p===null))return this;var S=Math.abs(p)<=16?60*p:p;if(S===0)return this.utc(A);var v=this.clone();if(A)return v.$offset=S,v.$u=!1,v;var I=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(v=this.local().add(S+I,a)).$offset=S,v.$x.$localOffset=I,v};var f=h.format;h.format=function(p){var A=p||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return f.call(this,A)},h.valueOf=function(){var p=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*p},h.isUTC=function(){return!!this.$u},h.toISOString=function(){return this.toDate().toISOString()},h.toString=function(){return this.toDate().toUTCString()};var g=h.toDate;h.toDate=function(p){return p==="s"&&this.$offset?c(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():g.call(this)};var m=h.diff;h.diff=function(p,A,w){if(p&&this.$u===p.$u)return m.call(this,p,A,w);var S=this.local(),v=c(p).local();return m.call(S,v,A,w)}}}))})(nn)),nn.exports}var di=li();const hi=bt(di);var an={exports:{}},ui=an.exports,ls;function fi(){return ls||(ls=1,(function(e,t){(function(a,s){e.exports=s()})(ui,(function(){var a={year:0,month:1,day:2,hour:3,minute:4,second:5},s={};return function(o,r,i){var c,h=function(f,g,m){m===void 0&&(m={});var p=new Date(f),A=(function(w,S){S===void 0&&(S={});var v=S.timeZoneName||"short",I=w+"|"+v,C=s[I];return C||(C=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:w,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:v}),s[I]=C),C})(g,m);return A.formatToParts(p)},l=function(f,g){for(var m=h(f,g),p=[],A=0;A<m.length;A+=1){var w=m[A],S=w.type,v=w.value,I=a[S];I>=0&&(p[I]=parseInt(v,10))}var C=p[3],T=C===24?0:C,M=p[0]+"-"+p[1]+"-"+p[2]+" "+T+":"+p[4]+":"+p[5]+":000",Q=+f;return(i.utc(M).valueOf()-(Q-=Q%1e3))/6e4},d=r.prototype;d.tz=function(f,g){f===void 0&&(f=c);var m,p=this.utcOffset(),A=this.toDate(),w=A.toLocaleString("en-US",{timeZone:f}),S=Math.round((A-new Date(w))/1e3/60),v=15*-Math.round(A.getTimezoneOffset()/15)-S;if(!Number(v))m=this.utcOffset(0,g);else if(m=i(w,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(v,!0),g){var I=m.utcOffset();m=m.add(p-I,"minute")}return m.$x.$timezone=f,m},d.offsetName=function(f){var g=this.$x.$timezone||i.tz.guess(),m=h(this.valueOf(),g,{timeZoneName:f}).find((function(p){return p.type.toLowerCase()==="timezonename"}));return m&&m.value};var u=d.startOf;d.startOf=function(f,g){if(!this.$x||!this.$x.$timezone)return u.call(this,f,g);var m=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return u.call(m,f,g).tz(this.$x.$timezone,!0)},i.tz=function(f,g,m){var p=m&&g,A=m||g||c,w=l(+i(),A);if(typeof f!="string")return i(f).tz(A);var S=(function(T,M,Q){var K=T-60*M*1e3,H=l(K,Q);if(M===H)return[K,M];var O=l(K-=60*(H-M)*1e3,Q);return H===O?[K,H]:[T-60*Math.min(H,O)*1e3,Math.max(H,O)]})(i.utc(f,p).valueOf(),w,A),v=S[0],I=S[1],C=i(v).utcOffset(I);return C.$x.$timezone=A,C},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(f){c=f}}}))})(an)),an.exports}var mi=fi();const gi=bt(mi);Ie.extend(hi),Ie.extend(gi),Ie.extend(oi);const sn=e=>e==="en"?"en":"es",Be=(e,t)=>{const{PUBLIC_LNG:a,DATE_TIMEZONE:s}=t||z(),o=sn(a??"es");return Ie.tz(e,s).locale(o).format("DD MMMM YYYY")},on=e=>{const{PUBLIC_LNG:t,DATE_TIMEZONE:a}=z(),s=sn(t??"es");return Ie.tz(e,a).locale(s).format(s==="en"?"MMMM DD YYYY [•] HH:mm [hs]":"DD [de] MMMM YYYY [•] HH:mm [hs]")},ds=e=>{const{PUBLIC_LNG:t,DATE_TIMEZONE:a}=z(),s=sn(t??"es");return Ie.tz(e,a).locale(s).format("MM/DD/YYYY [•] HH:mm [HS]")},pi=e=>{const{PUBLIC_LNG:t,DATE_TIMEZONE:a}=z(),s=sn(t??"es");return Ie.tz(e,a).locale(s).format("dddd DD [de] MMMM YYYY")},qe=(e,t=136)=>e&&e.length>t?`${e.substring(0,t)}...`:e;function ct(e){return e&&e.status==="fulfilled"?e.value.data:null}function hs(e){return e&&e.status==="fulfilled"?e.value:null}const Ai={url:"",target:"_self",canonical:!1,internal:""},wi={date:"",created:0,modified:0,firstpublish:0,lastpublish:0};function yi(e){return e==null?"":typeof e=="string"?e:e.article??e.home??e.section??e.seo??""}const Ct=(e,t,a,s)=>{const o=yi(e?.main?.title),r=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:{...wi,...e?.info?.date},link:e?.info?.link??Ai},preview:{sizes:e?.main?.image?.sizes??[],description:e?.main?.image?.description??""},config:{showtime:t??!1,showsubtitle:a??!1,showauthor:!!(s&&e?.main?.author)},main:{title:{article:o,home:o,seo:o,section:o},subtitle:{rendered:r,striped:r},tags:[]}}};function Jn(e){if(!e||!e.body||!e.body.rendered)return[];const t=e?.body?.rendered,a=[],s=/<div[^>]*class=["'][^"']*ck-related-news[^"']*["'][^>]*>([\s\S]*?)<span\b[^>]*data-src=["']([^"']+)["'][^>]*>[\s\S]*?<\/span>/gi;let o;for(;(o=s.exec(t))!==null;){const r=o[2];r&&a.push([r])}return a}const us=async(e,t)=>{const a=[];return e.forEach(r=>{r.forEach(i=>{const c=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"});c&&a.push(c)})}),(await Promise.allSettled(a)).map(r=>ct(r)?.data)},Lt=()=>{const{PUBLIC_ENV:e,PUBLIC_API_HOST:t,PUBLIC_ASSETS_URL:a}=z();return e=="local"?t:a&&a!=="false"?a:""},bi=()=>{const{PUBLIC_ENV:e,PUBLIC_API_FRONT:t}=z();return e==="local"?t:""},Ci=e=>{if(!e?.preview?.length)return null;const t=e.preview;return t.find(a=>a.format==="1.91:1")??t[t.length-1]},fs=({schemaImage:e,socialImage:t,fallbackImage:a,prefix:s,defaultWidth:o,defaultHeight:r})=>e?.url?{url:s+e.url,width:e.width,height:e.height}:{url:s+(t??a??""),width:o,height:r},ms=(e,t,a)=>{if(!e)return{};const{PUBLIC_ASSETS_URL:s,PUBLIC_API_FRONT:o}=z(),r=Zn(e.keywords)??"",i=e?.preview?.sizes?e?.preview?.sizes[0]?.url:"",c=(s!=="false"?s:o)??"",h=Ci(a),l=fs({schemaImage:h,socialImage:e?.social?.images?.facebook,fallbackImage:i,prefix:c,defaultWidth:t.landscapeLogo.width,defaultHeight:t.landscapeLogo.height}),d=fs({schemaImage:h,socialImage:e?.social?.images?.twitter,fallbackImage:i,prefix:c,defaultWidth:t.twitterSummaryCard.width,defaultHeight:t.twitterSummaryCard.height});return{title:(e?.main?.title?.seo??e?.main?.title?.article)+" | "+t.name,robots:"index, follow, max-image-preview:large",alternates:{types:{"application/rss+xml":(t.siteUrl??"")+"/rss/feed.xml"},canonical:e?.info?.link?.canonical},description:e?.main?.subtitle?.striped??"",news_keywords:r,keywords:r,openGraph:{title:e?.social?.title??e?.main?.title?.article,url:e?.info?.link?.canonical,type:"article",description:e?.social?.description??e?.main?.subtitle?.striped??"",images:[l],siteName:t.name.toLocaleUpperCase()},twitter:{title:e?.main?.title?.article,card:"summary_large_image",site:t.siteUrl,description:e?.main?.subtitle?.striped??"",images:[d]}}},Zn=e=>!e||!e?.tags||e?.tags?.length===0?"":e?.tags?.map(t=>t.name).join(", ").replaceAll('"',"'").replaceAll("`","'"),gs=e=>{const t=e?.match(/^\/(?:[^/]+\/)?([^/]+)\/([^/]+\.html)$/);return t?{slug:t[1]??"",path:t[2]??""}:{slug:"",path:""}},ps=e=>e.replaceAll("/","").replaceAll("_","").replace(".html",""),vi={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"},"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"}},As=e=>{const t=[];let a=0;const s=i=>t.push(i);return e.title&&typeof e.title=="string"&&s(n.jsx("title",{children:e.title},`title-${a++}`)),Object.entries(vi).forEach(([i,c])=>{const h=i.split(".").reduce((l,d)=>l?.[d],e);h&&s(n.jsx("meta",{[c.attr]:c.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"?s(n.jsx("meta",{property:"og:image",content:i},`og-img-${a++}`)):(i.url&&s(n.jsx("meta",{property:"og:image",content:i.url},`og-img-${a++}`)),i.width&&s(n.jsx("meta",{property:"og:image:width",content:String(i.width)},`og-img-w-${a++}`)),i.height&&s(n.jsx("meta",{property:"og:image:height",content:String(i.height)},`og-img-h-${a++}`))))}),(e.twitter?.images?Array.isArray(e.twitter.images)?e.twitter.images:[e.twitter.images]:[]).forEach(i=>{i&&(typeof i=="string"?s(n.jsx("meta",{name:"twitter:image",content:i},`tw-img-${a++}`)):(i.url&&s(n.jsx("meta",{name:"twitter:image",content:i.url},`tw-img-${a++}`)),i.width&&s(n.jsx("meta",{name:"twitter:image:width",content:String(i.width)},`tw-img-w-${a++}`)),i.height&&s(n.jsx("meta",{name:"twitter:image:height",content:String(i.height)},`tw-img-h-${a++}`))))}),e.alternates?.canonical&&s(n.jsx("link",{rel:"canonical",href:String(e.alternates.canonical)},`link-${a++}`)),e.manifest&&s(n.jsx("link",{rel:"manifest",href:String(e.manifest)},`link-${a++}`)),e.alternates?.types&&Object.entries(e.alternates.types).forEach(([i,c])=>{typeof c=="string"&&s(n.jsx("link",{rel:"alternate",type:i,href:c},`alt-${a++}`))}),e.icons&&[...e.icons?.icon??[],...e.icons?.other??[]].forEach(c=>{c&&s(typeof c=="string"?n.jsx("link",{rel:"icon",href:c},`icon-${a++}`):n.jsx("link",{rel:c.rel||"icon",href:c.url,...c.type&&{type:c.type},...c.sizes&&{sizes:c.sizes}},`icon-${a++}`))}),e.other&&Object.entries(e.other).forEach(([i,c])=>{c&&s(n.jsx("meta",{name:i,content:String(c)},`other-${a++}`))}),t},ue=async e=>{const t=Lt()??"",a=e;return a?.startsWith("http")||a?.includes(t)||t===""?a:t+a},rn=(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||""},_i=e=>{const t={};if(!e)return t;const a=/([^\s=]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'>]+)))?/g;let s;for(;s=a.exec(e);){const o=s[1],r=s[2]??s[3]??s[4]??!0;t[o]=r}return t},Si=e=>{const t=e.match(/\bsrc\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s>]+))/i);return t?.[1]||t?.[2]||t?.[3]||null},ws=(e,t,a,s)=>{try{const o=_i(e);return o.src?n.jsx("script",{"data-bs-name":s,...o},a):n.jsx("script",{...o,dangerouslySetInnerHTML:{__html:t}},a)}catch{const r=Si(e);return r?n.jsx("script",{"data-bs-name":s,src:r,async:!0,defer:!0},a):null}},Ni=e=>{const t=/<script\b([^>]*)>([\s\S]*?)<\/script\s*>|<script\b([^>]*)\/?>/gi;return[...e.matchAll(t)]},Xn=e=>{const t=e.banners.find(o=>o.key===e.name);if(!t||!t.show)return null;const a=rn(t.value||"",e.replaces),s=Ni(a);return n.jsx(n.Fragment,{children:s.map((o,r)=>{const i=o[1]||o[3]||"",c=o[2]?.trim()||"";return ws(i,c,r,e.name)})})},ys=e=>{const t=e.banners.find(o=>o.key===e.name);if(!t||!t.show)return null;const s=rn(t.value||"",e.replaces).split(/(<script\b[\s\S]*?<\/script\s*>|<script\b[^>]*\/?>)/gi);return n.jsx(n.Fragment,{children:s.map((o,r)=>{const i=o.match(/<script\b([^>]*)>([\s\S]*?)<\/script\s*>|<script\b([^>]*)\/?>/i);if(i){const c=i[1]||i[3]||"",h=i[2]?.trim()||"";return ws(c,h,r,e.name)}return o.trim()?n.jsx("div",{dangerouslySetInnerHTML:{__html:o}},r):null})})},Bt=(e,t,a)=>{let s=e.siteUrl;return t.forEach((o,r)=>{r>0&&(s+=`/${o}`)}),`${s}/page/${a+1}`},qt=(e,t,a)=>{let s=e.siteUrl;return t.forEach((o,r)=>{r>0&&(s+=`/${o}`)}),`${s}/page/${a-1}`};function Ii(e){const t=e.length;return t>1&&e.charCodeAt(t-1)===47?e.slice(0,t-1):e}const bs=()=>{const{PUBLIC_ASSETS_URL:e}=z();return e&&e!=="false"&&n.jsx("link",{rel:"preconnect",href:e,crossOrigin:"anonymous"})},{PUBLIC_ASSETS_URL:Rn}=z(),Ei=Rn&&Rn!=="false"?Rn:"",ea=({images:e})=>n.jsx(n.Fragment,{children:e.map((t,a)=>t.href!==""&&n.jsx("link",{rel:"preload",href:Ei+t.href,media:t.media??"",as:"image",fetchPriority:t.fetchPriority??"high"},a))}),Cs=(e,t)=>{if(!e)return{};const{PUBLIC_API_FRONT:a}=z();return{title:e?.main?.title+" | "+t.name,robots:"index, follow, max-image-preview:large",alternates:{canonical:t.siteUrl+e?.info?.link?.url},description:e.main.description??"",news_keywords:e.main.tags,keywords:e.main.tags,openGraph:{title:e.main.title,url:e?.info?.link?.canonical,type:"article",description:e.main.description??"",images:[{url:(a??"")+e?.main.image.sizes[0]?.url,width:t.landscapeLogo.width,height:t.landscapeLogo.height}],siteName:t.name.toLocaleUpperCase()},twitter:{title:e?.main?.title,card:"summary_large_image",site:t.siteUrl,description:e?.main.description??"",images:[{url:(a??"")+e?.main.image.sizes[0]?.url,width:t.twitterSummaryCard.width,height:t.twitterSummaryCard.height}]}}},Ti=e=>{let t="";if(e.params.news.match(/.*t[0-9]*.html/g)){const a=e.params.news.split("-"),s=a[a.length-1]??"",o=s.substring(1,9),r=s.substring(9,13);t=`/listas/${Ie(o).format("YYYY/MM/DD")}/lista_${r}.html`}else if(e.params.news.match(/.*lb[0-9]*.html/g)){const a=e.params.news.split("-"),s=a[a.length-1]??"",o=s.substring(2,10),r=s.substring(10,14);t=`/liveblog/${Ie(o).format("YYYY/MM/DD")}/liveblog_${r}.html`}else{const s=e.params.news.replace(/\.html$/g,"").split("-");Array.isArray(s)&&(t=`/contenidos/${Ie(s[s.length-2]).format("YYYY/MM/DD")}/noticia_${s[s.length-1]}.html`)}return e.config.servicePrefix+t};function ki(e){const t=e.lastIndexOf("-"),a=t>=0?[e.slice(0,t),e.slice(t+1)]:[e],s=a[a.length-1]?.split("."),o=s&&s[0]?s[0]:"",r=o.substring(0,2),i=o.substring(2,10),c=o.substring(10);return{path:{vy:l=>`/videos/video-youtube/${Ie(i).format("YYYY/MM/DD")}/videoYouTube_${l}.lnk`,ve:l=>`/videos/video-embedded/${Ie(i).format("YYYY/MM/DD")}/videoEmbedded_${l}.lnk`,vf:l=>`/videos/video-flash/${Ie(i).format("YYYY/MM/DD")}/${a[0]}.${l}`}[r]?.(c)??"",op:r}}const tt=(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}`},Ui=e=>{const{AssetsPrefix:t="",AssetsPath:a="src",isDev:s=!1}=e;return s?"src":t+a},xi=async(e,t,a,s)=>{const{FETCH_TAG_BASED_RELATED_NEWS:o=!1,FETCH_SIZE_RELATED_NEWS:r=10}=z();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(c=>c.path).join(";"),exclude:"gallery,related,relatedexternal,external,customfields",imagesizes:s.md}))?.data?.data??[];{const i=e&&e.keywords&&e.keywords.tags&&e.keywords.tags[0];return((e?i&&o?await a.getNewsListAvanced({query:'claves:("'+e.keywords?.tags[0].name+'")',exclude:"gallery,related,relatedexternal,external,customfields",imagesizes:s.md,size:r+1}):await a.getNewsItemsRelated(t.split("/").join("|"),{size:r}):null)?.data?.data??[]).filter(l=>l.info.link.internal!==t.split("/").join("|"))}}catch(i){console.log(i)}},Li="https://recaptchaenterprise.googleapis.com/v1/projects",Bi=async({projectID:e,recaptchaKey:t,token:a,recaptchaAction:s,apiKey:o,userAgent:r,userIpAddress:i})=>{if(!e||!t||!a||!o)return console.warn("createAssessment: faltan parámetros requeridos"),null;const c=`${Li}/${e}/assessments?key=${o}`,h={event:{token:a,siteKey:t,expectedAction:s,...r&&{userAgent:r},...i&&{userIpAddress:i}}};try{const l=await fetch(c,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(h)});if(!l.ok)return console.error("createAssessment API error:",l.status,await l.text()),null;const d=await l.json();if(!d?.tokenProperties?.valid)return console.log(`CreateAssessment falló - token inválido: ${d?.tokenProperties?.invalidReason??"unknown"}`),null;if(d.tokenProperties.action!==s)return console.log("La acción en reCAPTCHA no coincide con la esperada:",s),null;const u=d?.riskAnalysis?.score;return u!==void 0&&(console.log("reCAPTCHA score:",u),d?.riskAnalysis?.reasons?.forEach(f=>console.log(f))),typeof u=="number"?u:null}catch(l){return console.error("createAssessment error:",l),null}};function ta(e){const t={};for(const[a,s]of Object.entries(e)){const o=btoa(a).split("").reverse().join("");typeof s=="string"?t[o]=btoa(s).split("").reverse().join(""):t[o]=s}return t}function na(e){const t={};for(const[a,s]of Object.entries(e)){const o=atob(a.split("").reverse().join(""));if(typeof s=="string")try{t[o]=atob(s.split("").reverse().join(""))}catch{t[o]=s}else t[o]=s}return t}const vs={prerender:[{where:{and:[{href_matches:"/*(-|-t|-lb)([0-9]{8})(-|)([0-9]{4,6}).html"},{not:{selector_matches:"[rel~=nofollow]"}}]},eagerness:"moderate"}]},_s={prerender:[{where:{and:[{href_matches:"/*(-|-t|-lb)([0-9]{8})(-|)([0-9]{4,6}).html"},{not:{selector_matches:"[rel~=nofollow]"}}]},eagerness:"moderate"},{eagerness:"moderate",urls:["/"]}]},qi={Home:vs,Common:_s},Ss=({active:e,type:t,customSpeculation:a})=>e&&n.jsx("script",{type:"speculationrules",dangerouslySetInnerHTML:{__html:JSON.stringify(a??qi[t])}}),cn=async(e,t,a)=>{if(a)return a.get(`/schemas${t}`,{params:e}).catch(s=>{console.log(`[/schemas${t}] Error: ${s.message}`)})},Pi={autor:"autor",seccion:"seccion",tema:"claves","ultimas-noticias":"seccion"},Ns=async({config:e,axiosApi:t,pathname:a,ROUTE:s})=>{const{PUBLIC_PUBLICATION_ID:o=""}=z();let r=[];const i=a==="/"||a==="/index.html"?void 0:xs(Ls[s]({pathname:a,config:e})),c=Pi[s]??void 0,h={newstype:e.newsType,publication:Number(o),...i&&c?{query:`${c}:('${i}')`}:{}};try{const l=await cn(h,"/news-list-summary",t);l?.data?.data?r=l.data.data:console.warn("getSchemas responded but did not contain expected data:",l)}catch(l){console.log("Error fetching schemas:",l)}return Object.keys(r).length>0&&n.jsx("script",{id:"webSiteItemListSchema",type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(r)}})};function ln(e){const{PUBLIC_ASSETS_URL:t}=z();if(!t||t==="false")return e;const a=t.replace(/\/+$/,""),s=/https?:\/\/[^/\s]+\/(arte|__export)\//g;return e.replace(s,(o,r)=>`${a}/${r}/`)}const Is=async({realPath:e,config:t,BASE_URL:a,axiosApi:s})=>{const{PUBLIC_SERVICE_PREFIX:o,PUBLIC_IS_SUB_PUBLICATION:r}=z();let i=[];try{const c=t.socialBlockLogo?.url?new URL(t.socialBlockLogo.url).pathname:void 0,h=t.landscapeLogo?.url?new URL(t.landscapeLogo.url).pathname:void 0,l={path:e,image:h,logo:c,url:t.siteUrl,name:t.name,logow:t.socialBlockLogo?.width,logoh:t.socialBlockLogo?.height,authorurl:a+"/autor/"},d=e.split("/")[1],u=d=="liveblogs"||d=="liveblog"?["/news","/news-breadcrumb","/news-liveblog"]:["/news","/news-breadcrumb"],f=t.paths.tema!==""?"/"+t.paths.tema:t.paths.tema,g=o!=="false"&&r!=="false"?"/"+o+f:f;i=(await Promise.all(u.map(async p=>{const A=p==="/news-breadcrumb"?{...l,prefixtag:g}:l;return await cn(A,p,s)}))).map(p=>p?.data?.data??[])}catch(c){console.log("Error fetching schemas:",c)}return i.map((c,h)=>n.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:ln(JSON.stringify(c))}},h))},Es=({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(s=>t[s]?.show).map(s=>t[s]?.url)};return(!e.description||e.description==="")&&delete a.description,n.jsx("script",{id:"WebsiteOrgListSchema",type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(a)}})},Ts=({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 n.jsx("script",{id:"WebsiteListSchema",type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(t)}})},ks=async({realPath:e,config:t,axiosApi:a})=>{try{const s={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/`},r=(await cn(s,"/videos",a))?.data.data;return r?n.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:ln(JSON.stringify(r))}}):void 0}catch(s){return console.error("Error fetching video schemas:",s),null}},Us=({config:e})=>{const t=`@font-face {
|
|
13
|
+
`}}),n.jsx("noscript",{children:n.jsx("iframe",{src:`https://www.googletagmanager.com/ns.html?id=${e}`,height:"0",width:"0",style:{display:"none",visibility:"hidden"}})})]})},ns=()=>{const{ANALYTICS_marfeel:e}=z();return e&&n.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},{})}();`}})},as=({defaultRouteName:e})=>{const{CAPTCHA_KEY:t,CONFIG_comments:a=!1}=z();return t&&t!==""&&(e==="news"&&a||e==="anuncia"||e==="contacto")&&n.jsx(n.Fragment,{children:n.jsx("script",{src:`https://www.google.com/recaptcha/enterprise.js?render=${t}`,async:!0,defer:!0,"data-name":"packages-body"})})};function bt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Rt={exports:{}},ei=Rt.exports,ss;function os(){return ss||(ss=1,(function(e,t){(function(a,s){e.exports=s()})(ei,(function(){var a=1e3,s=6e4,o=36e5,r="millisecond",i="second",c="minute",h="hour",l="day",d="week",u="month",f="quarter",g="year",m="date",p="Invalid Date",A=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,w=/\[([^\]]+)]|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,S={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(j){var L=["th","st","nd","rd"],k=j%100;return"["+j+(L[(k-20)%10]||L[k]||L[0])+"]"}},v=function(j,L,k){var $=String(j);return!$||$.length>=L?j:""+Array(L+1-$.length).join(k)+j},I={s:v,z:function(j){var L=-j.utcOffset(),k=Math.abs(L),$=Math.floor(k/60),x=k%60;return(L<=0?"+":"-")+v($,2,"0")+":"+v(x,2,"0")},m:function j(L,k){if(L.date()<k.date())return-j(k,L);var $=12*(k.year()-L.year())+(k.month()-L.month()),x=L.clone().add($,u),V=k-x<0,y=L.clone().add($+(V?-1:1),u);return+(-($+(k-x)/(V?x-y:y-x))||0)},a:function(j){return j<0?Math.ceil(j)||0:Math.floor(j)},p:function(j){return{M:u,y:g,w:d,d:l,D:m,h,m:c,s:i,ms:r,Q:f}[j]||String(j||"").toLowerCase().replace(/s$/,"")},u:function(j){return j===void 0}},C="en",T={};T[C]=S;var M="$isDayjsObject",Q=function(j){return j instanceof te||!(!j||!j[M])},K=function j(L,k,$){var x;if(!L)return C;if(typeof L=="string"){var V=L.toLowerCase();T[V]&&(x=V),k&&(T[V]=k,x=V);var y=L.split("-");if(!x&&y.length>1)return j(y[0])}else{var N=L.name;T[N]=L,x=N}return!$&&x&&(C=x),x||!$&&C},H=function(j,L){if(Q(j))return j.clone();var k=typeof L=="object"?L:{};return k.date=j,k.args=arguments,new te(k)},O=I;O.l=K,O.i=Q,O.w=function(j,L){return H(j,{locale:L.$L,utc:L.$u,x:L.$x,$offset:L.$offset})};var te=(function(){function j(k){this.$L=K(k.locale,null,!0),this.parse(k),this.$x=this.$x||k.x||{},this[M]=!0}var L=j.prototype;return L.parse=function(k){this.$d=(function($){var x=$.date,V=$.utc;if(x===null)return new Date(NaN);if(O.u(x))return new Date;if(x instanceof Date)return new Date(x);if(typeof x=="string"&&!/Z$/i.test(x)){var y=x.match(A);if(y){var N=y[2]-1||0,q=(y[7]||"0").substring(0,3);return V?new Date(Date.UTC(y[1],N,y[3]||1,y[4]||0,y[5]||0,y[6]||0,q)):new Date(y[1],N,y[3]||1,y[4]||0,y[5]||0,y[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 O},L.isValid=function(){return this.$d.toString()!==p},L.isSame=function(k,$){var x=H(k);return this.startOf($)<=x&&x<=this.endOf($)},L.isAfter=function(k,$){return H(k)<this.startOf($)},L.isBefore=function(k,$){return this.endOf($)<H(k)},L.$g=function(k,$,x){return O.u(k)?this[$]:this.set(x,k)},L.unix=function(){return Math.floor(this.valueOf()/1e3)},L.valueOf=function(){return this.$d.getTime()},L.startOf=function(k,$){var x=this,V=!!O.u($)||$,y=O.p(k),N=function(ee,J){var le=O.w(x.$u?Date.UTC(x.$y,J,ee):new Date(x.$y,J,ee),x);return V?le:le.endOf(l)},q=function(ee,J){return O.w(x.toDate()[ee].apply(x.toDate("s"),(V?[0,0,0,0]:[23,59,59,999]).slice(J)),x)},G=this.$W,D=this.$M,F=this.$D,W="set"+(this.$u?"UTC":"");switch(y){case g:return V?N(1,0):N(31,11);case u:return V?N(1,D):N(0,D+1);case d:var Y=this.$locale().weekStart||0,R=(G<Y?G+7:G)-Y;return N(V?F-R:F+(6-R),D);case l:case m:return q(W+"Hours",0);case h:return q(W+"Minutes",1);case c:return q(W+"Seconds",2);case i:return q(W+"Milliseconds",3);default:return this.clone()}},L.endOf=function(k){return this.startOf(k,!1)},L.$set=function(k,$){var x,V=O.p(k),y="set"+(this.$u?"UTC":""),N=(x={},x[l]=y+"Date",x[m]=y+"Date",x[u]=y+"Month",x[g]=y+"FullYear",x[h]=y+"Hours",x[c]=y+"Minutes",x[i]=y+"Seconds",x[r]=y+"Milliseconds",x)[V],q=V===l?this.$D+($-this.$W):$;if(V===u||V===g){var G=this.clone().set(m,1);G.$d[N](q),G.init(),this.$d=G.set(m,Math.min(this.$D,G.daysInMonth())).$d}else N&&this.$d[N](q);return this.init(),this},L.set=function(k,$){return this.clone().$set(k,$)},L.get=function(k){return this[O.p(k)]()},L.add=function(k,$){var x,V=this;k=Number(k);var y=O.p($),N=function(D){var F=H(V);return O.w(F.date(F.date()+Math.round(D*k)),V)};if(y===u)return this.set(u,this.$M+k);if(y===g)return this.set(g,this.$y+k);if(y===l)return N(1);if(y===d)return N(7);var q=(x={},x[c]=s,x[h]=o,x[i]=a,x)[y]||1,G=this.$d.getTime()+k*q;return O.w(G,this)},L.subtract=function(k,$){return this.add(-1*k,$)},L.format=function(k){var $=this,x=this.$locale();if(!this.isValid())return x.invalidDate||p;var V=k||"YYYY-MM-DDTHH:mm:ssZ",y=O.z(this),N=this.$H,q=this.$m,G=this.$M,D=x.weekdays,F=x.months,W=x.meridiem,Y=function(J,le,P,Ce){return J&&(J[le]||J($,V))||P[le].slice(0,Ce)},R=function(J){return O.s(N%12||12,J,"0")},ee=W||function(J,le,P){var Ce=J<12?"AM":"PM";return P?Ce.toLowerCase():Ce};return V.replace(w,(function(J,le){return le||(function(P){switch(P){case"YY":return String($.$y).slice(-2);case"YYYY":return O.s($.$y,4,"0");case"M":return G+1;case"MM":return O.s(G+1,2,"0");case"MMM":return Y(x.monthsShort,G,F,3);case"MMMM":return Y(F,G);case"D":return $.$D;case"DD":return O.s($.$D,2,"0");case"d":return String($.$W);case"dd":return Y(x.weekdaysMin,$.$W,D,2);case"ddd":return Y(x.weekdaysShort,$.$W,D,3);case"dddd":return D[$.$W];case"H":return String(N);case"HH":return O.s(N,2,"0");case"h":return R(1);case"hh":return R(2);case"a":return ee(N,q,!0);case"A":return ee(N,q,!1);case"m":return String(q);case"mm":return O.s(q,2,"0");case"s":return String($.$s);case"ss":return O.s($.$s,2,"0");case"SSS":return O.s($.$ms,3,"0");case"Z":return y}return null})(J)||y.replace(":","")}))},L.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},L.diff=function(k,$,x){var V,y=this,N=O.p($),q=H(k),G=(q.utcOffset()-this.utcOffset())*s,D=this-q,F=function(){return O.m(y,q)};switch(N){case g:V=F()/12;break;case u:V=F();break;case f:V=F()/3;break;case d:V=(D-G)/6048e5;break;case l:V=(D-G)/864e5;break;case h:V=D/o;break;case c:V=D/s;break;case i:V=D/a;break;default:V=D}return x?V:O.a(V)},L.daysInMonth=function(){return this.endOf(u).$D},L.$locale=function(){return T[this.$L]},L.locale=function(k,$){if(!k)return this.$L;var x=this.clone(),V=K(k,$,!0);return V&&(x.$L=V),x},L.clone=function(){return O.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()},j})(),de=te.prototype;return H.prototype=de,[["$ms",r],["$s",i],["$m",c],["$H",h],["$W",l],["$M",u],["$y",g],["$D",m]].forEach((function(j){de[j[1]]=function(L){return this.$g(L,j[0],j[1])}})),H.extend=function(j,L){return j.$i||(j(L,te,H),j.$i=!0),H},H.locale=K,H.isDayjs=Q,H.unix=function(j){return H(1e3*j)},H.en=T[C],H.Ls=T,H.p={},H}))})(Rt)),Rt.exports}var ti=os();const Ie=bt(ti);var en={exports:{}},ni=en.exports,rs;function ai(){return rs||(rs=1,(function(e,t){(function(a,s){e.exports=s()})(ni,(function(){return function(a,s,o){a=a||{};var r=s.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 c(l,d,u,f){return r.fromToBase(l,d,u,f)}o.en.relativeTime=i,r.fromToBase=function(l,d,u,f,g){for(var m,p,A,w=u.$locale().relativeTime||i,S=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"}],v=S.length,I=0;I<v;I+=1){var C=S[I];C.d&&(m=f?o(l).diff(u,C.d,!0):u.diff(l,C.d,!0));var T=(a.rounding||Math.round)(Math.abs(m));if(A=m>0,T<=C.r||!C.r){T<=1&&I>0&&(C=S[I-1]);var M=w[C.l];g&&(T=g(""+T)),p=typeof M=="string"?M.replace("%d",T):M(T,d,C.l,A);break}}if(d)return p;var Q=A?w.future:w.past;return typeof Q=="function"?Q(p):Q.replace("%s",p)},r.to=function(l,d){return c(l,d,this,!0)},r.from=function(l,d){return c(l,d,this)};var h=function(l){return l.$u?o.utc():o()};r.toNow=function(l){return this.to(h(this),l)},r.fromNow=function(l){return this.from(h(this),l)}}}))})(en)),en.exports}var si=ai();const oi=bt(si);var tn={exports:{}},ri=tn.exports,is;function ii(){return is||(is=1,(function(e,t){(function(a,s){e.exports=s(os())})(ri,(function(a){function s(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}var o=s(a),r={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 o.default.locale(r,null,!0),r}))})(tn)),tn.exports}ii();var nn={exports:{}},ci=nn.exports,cs;function li(){return cs||(cs=1,(function(e,t){(function(a,s){e.exports=s()})(ci,(function(){var a="minute",s=/[+-]\d\d(?::?\d\d)?/g,o=/([+-]|\d\d)/g;return function(r,i,c){var h=i.prototype;c.utc=function(p){var A={date:p,utc:!0,args:arguments};return new i(A)},h.utc=function(p){var A=c(this.toDate(),{locale:this.$L,utc:!0});return p?A.add(this.utcOffset(),a):A},h.local=function(){return c(this.toDate(),{locale:this.$L,utc:!1})};var l=h.parse;h.parse=function(p){p.utc&&(this.$u=!0),this.$utils().u(p.$offset)||(this.$offset=p.$offset),l.call(this,p)};var d=h.init;h.init=function(){if(this.$u){var p=this.$d;this.$y=p.getUTCFullYear(),this.$M=p.getUTCMonth(),this.$D=p.getUTCDate(),this.$W=p.getUTCDay(),this.$H=p.getUTCHours(),this.$m=p.getUTCMinutes(),this.$s=p.getUTCSeconds(),this.$ms=p.getUTCMilliseconds()}else d.call(this)};var u=h.utcOffset;h.utcOffset=function(p,A){var w=this.$utils().u;if(w(p))return this.$u?0:w(this.$offset)?u.call(this):this.$offset;if(typeof p=="string"&&(p=(function(C){C===void 0&&(C="");var T=C.match(s);if(!T)return null;var M=(""+T[0]).match(o)||["-",0,0],Q=M[0],K=60*+M[1]+ +M[2];return K===0?0:Q==="+"?K:-K})(p),p===null))return this;var S=Math.abs(p)<=16?60*p:p;if(S===0)return this.utc(A);var v=this.clone();if(A)return v.$offset=S,v.$u=!1,v;var I=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(v=this.local().add(S+I,a)).$offset=S,v.$x.$localOffset=I,v};var f=h.format;h.format=function(p){var A=p||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return f.call(this,A)},h.valueOf=function(){var p=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*p},h.isUTC=function(){return!!this.$u},h.toISOString=function(){return this.toDate().toISOString()},h.toString=function(){return this.toDate().toUTCString()};var g=h.toDate;h.toDate=function(p){return p==="s"&&this.$offset?c(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():g.call(this)};var m=h.diff;h.diff=function(p,A,w){if(p&&this.$u===p.$u)return m.call(this,p,A,w);var S=this.local(),v=c(p).local();return m.call(S,v,A,w)}}}))})(nn)),nn.exports}var di=li();const hi=bt(di);var an={exports:{}},ui=an.exports,ls;function fi(){return ls||(ls=1,(function(e,t){(function(a,s){e.exports=s()})(ui,(function(){var a={year:0,month:1,day:2,hour:3,minute:4,second:5},s={};return function(o,r,i){var c,h=function(f,g,m){m===void 0&&(m={});var p=new Date(f),A=(function(w,S){S===void 0&&(S={});var v=S.timeZoneName||"short",I=w+"|"+v,C=s[I];return C||(C=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:w,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:v}),s[I]=C),C})(g,m);return A.formatToParts(p)},l=function(f,g){for(var m=h(f,g),p=[],A=0;A<m.length;A+=1){var w=m[A],S=w.type,v=w.value,I=a[S];I>=0&&(p[I]=parseInt(v,10))}var C=p[3],T=C===24?0:C,M=p[0]+"-"+p[1]+"-"+p[2]+" "+T+":"+p[4]+":"+p[5]+":000",Q=+f;return(i.utc(M).valueOf()-(Q-=Q%1e3))/6e4},d=r.prototype;d.tz=function(f,g){f===void 0&&(f=c);var m,p=this.utcOffset(),A=this.toDate(),w=A.toLocaleString("en-US",{timeZone:f}),S=Math.round((A-new Date(w))/1e3/60),v=15*-Math.round(A.getTimezoneOffset()/15)-S;if(!Number(v))m=this.utcOffset(0,g);else if(m=i(w,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(v,!0),g){var I=m.utcOffset();m=m.add(p-I,"minute")}return m.$x.$timezone=f,m},d.offsetName=function(f){var g=this.$x.$timezone||i.tz.guess(),m=h(this.valueOf(),g,{timeZoneName:f}).find((function(p){return p.type.toLowerCase()==="timezonename"}));return m&&m.value};var u=d.startOf;d.startOf=function(f,g){if(!this.$x||!this.$x.$timezone)return u.call(this,f,g);var m=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return u.call(m,f,g).tz(this.$x.$timezone,!0)},i.tz=function(f,g,m){var p=m&&g,A=m||g||c,w=l(+i(),A);if(typeof f!="string")return i(f).tz(A);var S=(function(T,M,Q){var K=T-60*M*1e3,H=l(K,Q);if(M===H)return[K,M];var O=l(K-=60*(H-M)*1e3,Q);return H===O?[K,H]:[T-60*Math.min(H,O)*1e3,Math.max(H,O)]})(i.utc(f,p).valueOf(),w,A),v=S[0],I=S[1],C=i(v).utcOffset(I);return C.$x.$timezone=A,C},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(f){c=f}}}))})(an)),an.exports}var mi=fi();const gi=bt(mi);Ie.extend(hi),Ie.extend(gi),Ie.extend(oi);const sn=e=>e==="en"?"en":"es",Be=(e,t)=>{const{PUBLIC_LNG:a,DATE_TIMEZONE:s}=t||z(),o=sn(a??"es");return Ie.tz(e,s).locale(o).format("DD MMMM YYYY")},on=e=>{const{PUBLIC_LNG:t,DATE_TIMEZONE:a}=z(),s=sn(t??"es");return Ie.tz(e,a).locale(s).format(s==="en"?"MMMM DD YYYY [•] HH:mm [hs]":"DD [de] MMMM YYYY [•] HH:mm [hs]")},ds=e=>{const{PUBLIC_LNG:t,DATE_TIMEZONE:a}=z(),s=sn(t??"es");return Ie.tz(e,a).locale(s).format("MM/DD/YYYY [•] HH:mm [HS]")},pi=e=>{const{PUBLIC_LNG:t,DATE_TIMEZONE:a}=z(),s=sn(t??"es");return Ie.tz(e,a).locale(s).format("dddd DD [de] MMMM YYYY")},qe=(e,t=136)=>e&&e.length>t?`${e.substring(0,t)}...`:e;function ct(e){return e&&e.status==="fulfilled"?e.value.data:null}function hs(e){return e&&e.status==="fulfilled"?e.value:null}const Ai={url:"",target:"_self",canonical:!1,internal:""},wi={date:"",created:0,modified:0,firstpublish:0,lastpublish:0};function yi(e){return e==null?"":typeof e=="string"?e:e.article??e.home??e.section??e.seo??""}const Ct=(e,t,a,s)=>{const o=yi(e?.main?.title),r=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:{...wi,...e?.info?.date},link:e?.info?.link??Ai},preview:{sizes:e?.main?.image?.sizes??[],description:e?.main?.image?.description??""},config:{showtime:t??!1,showsubtitle:a??!1,showauthor:!!(s&&e?.main?.author)},main:{title:{article:o,home:o,seo:o,section:o},subtitle:{rendered:r,striped:r},tags:[]}}};function Jn(e){if(!e||!e.body||!e.body.rendered)return[];const t=e?.body?.rendered,a=[],s=/<div[^>]*class=["'][^"']*ck-related-news[^"']*["'][^>]*>([\s\S]*?)<span\b[^>]*data-src=["']([^"']+)["'][^>]*>[\s\S]*?<\/span>/gi;let o;for(;(o=s.exec(t))!==null;){const r=o[2];r&&a.push([r])}return a}const us=async(e,t)=>{const a=[];return e.forEach(r=>{r.forEach(i=>{const c=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"});c&&a.push(c)})}),(await Promise.allSettled(a)).map(r=>ct(r)?.data)},Lt=()=>{const{PUBLIC_ENV:e,PUBLIC_API_HOST:t,PUBLIC_ASSETS_URL:a}=z();return e=="local"?t:a&&a!=="false"?a:""},bi=()=>{const{PUBLIC_ENV:e,PUBLIC_API_FRONT:t}=z();return e==="local"?t:""},Ci=e=>{if(!e?.preview?.length)return null;const t=e.preview;return t.find(a=>a.format==="1.91:1")??t[t.length-1]},fs=({schemaImage:e,socialImage:t,fallbackImage:a,prefix:s,defaultWidth:o,defaultHeight:r})=>e?.url?{url:s+e.url,width:e.width,height:e.height}:{url:s+(t??a??""),width:o,height:r},ms=(e,t,a)=>{if(!e)return{};const{PUBLIC_ASSETS_URL:s,PUBLIC_API_FRONT:o}=z(),r=Zn(e.keywords)??"",i=e?.preview?.sizes?e?.preview?.sizes[0]?.url:"",c=(s!=="false"?s:o)??"",h=Ci(a),l=fs({schemaImage:h,socialImage:e?.social?.images?.facebook,fallbackImage:i,prefix:c,defaultWidth:t.landscapeLogo.width,defaultHeight:t.landscapeLogo.height}),d=fs({schemaImage:h,socialImage:e?.social?.images?.twitter,fallbackImage:i,prefix:c,defaultWidth:t.twitterSummaryCard.width,defaultHeight:t.twitterSummaryCard.height});return{title:(e?.main?.title?.seo??e?.main?.title?.article)+" | "+t.name,robots:"index, follow, max-image-preview:large",alternates:{types:{"application/rss+xml":(t.siteUrl??"")+"/rss/feed.xml"},canonical:e?.info?.link?.canonical},description:e?.main?.subtitle?.striped??"",news_keywords:r,keywords:r,openGraph:{title:e?.social?.title??e?.main?.title?.article,url:e?.info?.link?.canonical,type:"article",description:e?.social?.description??e?.main?.subtitle?.striped??"",images:[l],siteName:t.name.toLocaleUpperCase()},twitter:{title:e?.main?.title?.article,card:"summary_large_image",site:t.siteUrl,description:e?.main?.subtitle?.striped??"",images:[d]}}},Zn=e=>!e||!e?.tags||e?.tags?.length===0?"":e?.tags?.map(t=>t.name).join(", ").replaceAll('"',"'").replaceAll("`","'"),gs=e=>{const t=e?.match(/^\/(?:[^/]+\/)?([^/]+)\/([^/]+\.html)$/);return t?{slug:t[1]??"",path:t[2]??""}:{slug:"",path:""}},ps=e=>e.replaceAll("/","").replaceAll("_","").replace(".html",""),vi={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"},"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"}},As=e=>{const t=[];let a=0;const s=i=>t.push(i);return e.title&&typeof e.title=="string"&&s(n.jsx("title",{children:e.title},`title-${a++}`)),Object.entries(vi).forEach(([i,c])=>{const h=i.split(".").reduce((l,d)=>l?.[d],e);h&&s(n.jsx("meta",{[c.attr]:c.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"?s(n.jsx("meta",{property:"og:image",content:i},`og-img-${a++}`)):(i.url&&s(n.jsx("meta",{property:"og:image",content:i.url},`og-img-${a++}`)),i.width&&s(n.jsx("meta",{property:"og:image:width",content:String(i.width)},`og-img-w-${a++}`)),i.height&&s(n.jsx("meta",{property:"og:image:height",content:String(i.height)},`og-img-h-${a++}`))))}),(e.twitter?.images?Array.isArray(e.twitter.images)?e.twitter.images:[e.twitter.images]:[]).forEach(i=>{i&&(typeof i=="string"?s(n.jsx("meta",{name:"twitter:image",content:i},`tw-img-${a++}`)):(i.url&&s(n.jsx("meta",{name:"twitter:image",content:i.url},`tw-img-${a++}`)),i.width&&s(n.jsx("meta",{name:"twitter:image:width",content:String(i.width)},`tw-img-w-${a++}`)),i.height&&s(n.jsx("meta",{name:"twitter:image:height",content:String(i.height)},`tw-img-h-${a++}`))))}),e.alternates?.canonical&&s(n.jsx("link",{rel:"canonical",href:String(e.alternates.canonical)},`link-${a++}`)),e.manifest&&s(n.jsx("link",{rel:"manifest",href:String(e.manifest)},`link-${a++}`)),e.alternates?.types&&Object.entries(e.alternates.types).forEach(([i,c])=>{typeof c=="string"&&s(n.jsx("link",{rel:"alternate",type:i,href:c},`alt-${a++}`))}),e.icons&&[...e.icons?.icon??[],...e.icons?.other??[]].forEach(c=>{c&&s(typeof c=="string"?n.jsx("link",{rel:"icon",href:c},`icon-${a++}`):n.jsx("link",{rel:c.rel||"icon",href:c.url,...c.type&&{type:c.type},...c.sizes&&{sizes:c.sizes}},`icon-${a++}`))}),e.other&&Object.entries(e.other).forEach(([i,c])=>{c&&s(n.jsx("meta",{name:i,content:String(c)},`other-${a++}`))}),t},ue=async e=>{const t=Lt()??"",a=e;return a?.startsWith("http")||a?.includes(t)||t===""?a:t+a},rn=(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||""},_i=e=>{const t={};if(!e)return t;const a=/([^\s=]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'>]+)))?/g;let s;for(;s=a.exec(e);){const o=s[1],r=s[2]??s[3]??s[4]??!0;t[o]=r}return t},Si=e=>{const t=e.match(/\bsrc\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s>]+))/i);return t?.[1]||t?.[2]||t?.[3]||null},ws=(e,t,a,s)=>{try{const o=_i(e);return o.src?n.jsx("script",{"data-bs-name":s,...o},a):n.jsx("script",{...o,dangerouslySetInnerHTML:{__html:t}},a)}catch{const r=Si(e);return r?n.jsx("script",{"data-bs-name":s,src:r,async:!0,defer:!0},a):null}},Ni=e=>{const t=/<script\b([^>]*)>([\s\S]*?)<\/script\s*>|<script\b([^>]*)\/?>/gi;return[...e.matchAll(t)]},Xn=e=>{const t=e.banners.find(o=>o.key===e.name);if(!t||!t.show)return null;const a=rn(t.value||"",e.replaces),s=Ni(a);return n.jsx(n.Fragment,{children:s.map((o,r)=>{const i=o[1]||o[3]||"",c=o[2]?.trim()||"";return ws(i,c,r,e.name)})})},ys=e=>{const t=e.banners.find(o=>o.key===e.name);if(!t||!t.show)return null;const s=rn(t.value||"",e.replaces).split(/(<script\b[\s\S]*?<\/script\s*>|<script\b[^>]*\/?>)/gi);return n.jsx(n.Fragment,{children:s.map((o,r)=>{const i=o.match(/<script\b([^>]*)>([\s\S]*?)<\/script\s*>|<script\b([^>]*)\/?>/i);if(i){const c=i[1]||i[3]||"",h=i[2]?.trim()||"";return ws(c,h,r,e.name)}return o.trim()?n.jsx("div",{dangerouslySetInnerHTML:{__html:o}},r):null})})},Bt=(e,t,a)=>{let s=e.siteUrl;return t.forEach((o,r)=>{r>0&&(s+=`/${o}`)}),`${s}/page/${a+1}`},qt=(e,t,a)=>{let s=e.siteUrl;return t.forEach((o,r)=>{r>0&&(s+=`/${o}`)}),`${s}/page/${a-1}`};function Ii(e){const t=e.length;return t>1&&e.charCodeAt(t-1)===47?e.slice(0,t-1):e}const bs=()=>{const{PUBLIC_ASSETS_URL:e}=z();return e&&e!=="false"&&n.jsx("link",{rel:"preconnect",href:e,crossOrigin:"anonymous"})},{PUBLIC_ASSETS_URL:Rn}=z(),Ei=Rn&&Rn!=="false"?Rn:"",ea=({images:e})=>n.jsx(n.Fragment,{children:e.map((t,a)=>t.href!==""&&n.jsx("link",{rel:"preload",href:Ei+t.href,media:t.media??"",as:"image",fetchPriority:t.fetchPriority??"high"},a))}),Cs=(e,t)=>{if(!e)return{};const{PUBLIC_API_FRONT:a}=z();return{title:e?.main?.title+" | "+t.name,robots:"index, follow, max-image-preview:large",alternates:{canonical:t.siteUrl+e?.info?.link?.url},description:e.main.description??"",news_keywords:e.main.tags,keywords:e.main.tags,openGraph:{title:e.main.title,url:e?.info?.link?.canonical,type:"article",description:e.main.description??"",images:[{url:(a??"")+e?.main.image.sizes[0]?.url,width:t.landscapeLogo.width,height:t.landscapeLogo.height}],siteName:t.name.toLocaleUpperCase()},twitter:{title:e?.main?.title,card:"summary_large_image",site:t.siteUrl,description:e?.main.description??"",images:[{url:(a??"")+e?.main.image.sizes[0]?.url,width:t.twitterSummaryCard.width,height:t.twitterSummaryCard.height}]}}},Ti=e=>{let t="";if(e.params.news.match(/.*t[0-9]*.html/g)){const a=e.params.news.split("-"),s=a[a.length-1]??"",o=s.substring(1,9),r=s.substring(9,13);t=`/listas/${Ie(o).format("YYYY/MM/DD")}/lista_${r}.html`}else if(e.params.news.match(/.*lb[0-9]*.html/g)){const a=e.params.news.split("-"),s=a[a.length-1]??"",o=s.substring(2,10),r=s.substring(10,14);t=`/liveblog/${Ie(o).format("YYYY/MM/DD")}/liveblog_${r}.html`}else{const s=e.params.news.replace(/\.html$/g,"").split("-");Array.isArray(s)&&(t=`/contenidos/${Ie(s[s.length-2]).format("YYYY/MM/DD")}/noticia_${s[s.length-1]}.html`)}return e.config.servicePrefix+t};function ki(e){const t=e.lastIndexOf("-"),a=t>=0?[e.slice(0,t),e.slice(t+1)]:[e],s=a[a.length-1]?.split("."),o=s&&s[0]?s[0]:"",r=o.substring(0,2),i=o.substring(2,10),c=o.substring(10);return{path:{vy:l=>`/videos/video-youtube/${Ie(i).format("YYYY/MM/DD")}/videoYouTube_${l}.lnk`,ve:l=>`/videos/video-embedded/${Ie(i).format("YYYY/MM/DD")}/videoEmbedded_${l}.lnk`,vf:l=>`/videos/video-flash/${Ie(i).format("YYYY/MM/DD")}/${a[0]}.${l}`}[r]?.(c)??"",op:r}}const tt=(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}`},Ui=e=>{const{AssetsPrefix:t="",AssetsPath:a="src",isDev:s=!1}=e;return s?"src":t+a},xi=async(e,t,a,s)=>{const{FETCH_TAG_BASED_RELATED_NEWS:o=!1,FETCH_SIZE_RELATED_NEWS:r=10}=z();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(c=>c.path).join(";"),exclude:"gallery,related,relatedexternal,external,customfields",imagesizes:s.md}))?.data?.data??[];{const i=e&&e.keywords&&e.keywords.tags&&e.keywords.tags[0];return((e?i&&o?await a.getNewsListAvanced({query:'claves:("'+e.keywords?.tags[0].name+'")',exclude:"gallery,related,relatedexternal,external,customfields",imagesizes:s.md,size:r+1}):await a.getNewsItemsRelated(t.split("/").join("|"),{size:r}):null)?.data?.data??[]).filter(l=>l.info.link.internal!==t.split("/").join("|"))}}catch(i){console.log(i)}},Li="https://recaptchaenterprise.googleapis.com/v1/projects",Bi=async({projectID:e,recaptchaKey:t,token:a,recaptchaAction:s,apiKey:o,userAgent:r,userIpAddress:i})=>{if(!e||!t||!a||!o)return console.warn("createAssessment: faltan parámetros requeridos"),null;const c=`${Li}/${e}/assessments?key=${o}`,h={event:{token:a,siteKey:t,expectedAction:s,...r&&{userAgent:r},...i&&{userIpAddress:i}}};try{const l=await fetch(c,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(h)});if(!l.ok)return console.error("createAssessment API error:",l.status,await l.text()),null;const d=await l.json();if(!d?.tokenProperties?.valid)return console.log(`CreateAssessment falló - token inválido: ${d?.tokenProperties?.invalidReason??"unknown"}`),null;if(d.tokenProperties.action!==s)return console.log("La acción en reCAPTCHA no coincide con la esperada:",s),null;const u=d?.riskAnalysis?.score;return u!==void 0&&(console.log("reCAPTCHA score:",u),d?.riskAnalysis?.reasons?.forEach(f=>console.log(f))),typeof u=="number"?u:null}catch(l){return console.error("createAssessment error:",l),null}};function ta(e){const t={};for(const[a,s]of Object.entries(e)){const o=btoa(a).split("").reverse().join("");typeof s=="string"?t[o]=btoa(s).split("").reverse().join(""):t[o]=s}return t}function na(e){const t={};for(const[a,s]of Object.entries(e)){const o=atob(a.split("").reverse().join(""));if(typeof s=="string")try{t[o]=atob(s.split("").reverse().join(""))}catch{t[o]=s}else t[o]=s}return t}const vs={prerender:[{where:{and:[{href_matches:"/*(-|-t|-lb)([0-9]{8})(-|)([0-9]{4,6}).html"},{not:{selector_matches:"[rel~=nofollow]"}}]},eagerness:"moderate"}]},_s={prerender:[{where:{and:[{href_matches:"/*(-|-t|-lb)([0-9]{8})(-|)([0-9]{4,6}).html"},{not:{selector_matches:"[rel~=nofollow]"}}]},eagerness:"moderate"},{eagerness:"moderate",urls:["/"]}]},qi={Home:vs,Common:_s},Ss=({active:e,type:t,customSpeculation:a})=>e&&n.jsx("script",{type:"speculationrules",dangerouslySetInnerHTML:{__html:JSON.stringify(a??qi[t])}}),cn=async(e,t,a)=>{if(a)return a.get(`/schemas${t}`,{params:e}).catch(s=>{console.log(`[/schemas${t}] Error: ${s.message}`)})},Pi={autor:"autor",seccion:"seccion",tema:"claves","ultimas-noticias":"seccion"},Ns=async({config:e,axiosApi:t,pathname:a,ROUTE:s})=>{const{PUBLIC_PUBLICATION_ID:o=""}=z();let r=[];const i=a==="/"||a==="/index.html"?void 0:xs(Ls[s]({pathname:a,config:e})),c=Pi[s]??void 0,h={newstype:e.newsType,publication:Number(o),...i&&c?{query:`${c}:('${i}')`}:{}};try{const l=await cn(h,"/news-list-summary",t);l?.data?.data?r=l.data.data:console.warn("getSchemas responded but did not contain expected data:",l)}catch(l){console.log("Error fetching schemas:",l)}return Object.keys(r).length>0&&n.jsx("script",{id:"webSiteItemListSchema",type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(r)}})};function ln(e){const{PUBLIC_ASSETS_URL:t}=z();if(!t||t==="false")return e;const a=t.replace(/\/+$/,""),s=/https?:\/\/[^/\s]+\/(arte|__export)\//g;return e.replace(s,(o,r)=>`${a}/${r}/`)}const Is=async({realPath:e,config:t,BASE_URL:a,axiosApi:s})=>{const{PUBLIC_SERVICE_PREFIX:o,PUBLIC_IS_SUB_PUBLICATION:r}=z();let i=[];try{const c=t.socialBlockLogo?.url?new URL(t.socialBlockLogo.url).pathname:void 0,h=t.landscapeLogo?.url?new URL(t.landscapeLogo.url).pathname:void 0,l={path:e,image:h,logo:c,url:t.siteUrl,name:t.name,logow:t.socialBlockLogo?.width,logoh:t.socialBlockLogo?.height,authorurl:a+"/autor/"},d=e.split("/")[1],u=d=="liveblogs"||d=="liveblog"?["/news","/news-breadcrumb","/news-liveblog"]:["/news","/news-breadcrumb"],f=t.paths.tema!==""?"/"+t.paths.tema:t.paths.tema,g=o!=="false"&&r!=="false"?"/"+o+f:f;i=(await Promise.all(u.map(async p=>{const A=p==="/news-breadcrumb"?{...l,prefixtag:g}:l;return await cn(A,p,s)}))).map(p=>p?.data?.data??[])}catch(c){console.log("Error fetching schemas:",c)}return i.map((c,h)=>n.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:ln(JSON.stringify(c))}},h))},Es=({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(s=>t[s]?.show).map(s=>t[s]?.url)};return(!e.description||e.description==="")&&delete a.description,n.jsx("script",{id:"WebsiteOrgListSchema",type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(a)}})},Ts=({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 n.jsx("script",{id:"WebsiteListSchema",type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(t)}})},ks=async({realPath:e,config:t,axiosApi:a})=>{try{const s={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/`},r=(await cn(s,"/videos",a))?.data.data;return r?n.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:ln(JSON.stringify(r))}}):void 0}catch(s){return console.error("Error fetching video schemas:",s),null}},Us=({config:e})=>{const t=`@font-face {
|
|
14
14
|
font-family: '${e.fontName}';
|
|
15
15
|
font-style: normal;
|
|
16
16
|
font-weight: ${e.fontWeight};
|