@x-wave/blog 1.0.37 → 1.0.38
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.
- package/README.md +45 -3
- package/index.js +1074 -1068
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { jsxs as T, jsx as
|
|
2
|
-
import { useTranslation as
|
|
3
|
-
import { useLocation as Ee, useNavigate as
|
|
4
|
-
import { CaretLeft as
|
|
5
|
-
import ke, { useState as F, useEffect as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import { createPortal as
|
|
10
|
-
const
|
|
11
|
-
tabContainer:
|
|
12
|
-
tab:
|
|
13
|
-
active:
|
|
1
|
+
import { jsxs as T, jsx as s, Fragment as fe } from "react/jsx-runtime";
|
|
2
|
+
import { useTranslation as Z } from "react-i18next";
|
|
3
|
+
import { useLocation as Ee, useNavigate as _e, Link as qe, useParams as ut, Navigate as Ft, Routes as on, Route as vt } from "react-router-dom";
|
|
4
|
+
import { CaretLeft as an, CaretRight as qt, ArrowSquareOut as sn, User as cn, CalendarBlank as ln, X as dt, Tag as un, MagnifyingGlass as gt, List as dn, Sun as _t, Moon as yt, Monitor as bt, CaretDown as ot, Globe as fn } from "@phosphor-icons/react";
|
|
5
|
+
import ke, { useState as F, useEffect as z, createContext as hn, useContext as pn, useRef as ge } from "react";
|
|
6
|
+
import mn from "i18next";
|
|
7
|
+
import vn from "react-markdown";
|
|
8
|
+
import gn from "remark-gfm";
|
|
9
|
+
import { createPortal as Wt } from "react-dom";
|
|
10
|
+
const _n = "_tabContainer_zk6h4_1", yn = "_tab_zk6h4_1", bn = "_active_zk6h4_45", Oe = {
|
|
11
|
+
tabContainer: _n,
|
|
12
|
+
tab: yn,
|
|
13
|
+
active: bn
|
|
14
14
|
};
|
|
15
|
-
function
|
|
16
|
-
const { t: e } =
|
|
15
|
+
function Tn({ hasAdvanced: t }) {
|
|
16
|
+
const { t: e } = Z(), o = Ee(), n = _e();
|
|
17
17
|
if (!t) return null;
|
|
18
18
|
const r = new URLSearchParams(o.search).has("advanced"), l = () => {
|
|
19
19
|
if (r) {
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
const u =
|
|
20
|
+
const i = new URLSearchParams(o.search);
|
|
21
|
+
i.delete("advanced");
|
|
22
|
+
const u = i.toString(), d = u ? `?${u}` : "";
|
|
23
23
|
n(`${o.pathname}${d}${o.hash}`);
|
|
24
24
|
}
|
|
25
25
|
}, c = () => {
|
|
26
26
|
if (!r) {
|
|
27
|
-
const
|
|
28
|
-
|
|
27
|
+
const i = new URLSearchParams(o.search);
|
|
28
|
+
i.set("advanced", ""), n(`${o.pathname}?${i.toString()}${o.hash}`);
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
31
|
return /* @__PURE__ */ T("div", { className: Oe.tabContainer, children: [
|
|
32
|
-
/* @__PURE__ */
|
|
32
|
+
/* @__PURE__ */ s(
|
|
33
33
|
"button",
|
|
34
34
|
{
|
|
35
35
|
type: "button",
|
|
@@ -38,7 +38,7 @@ function bn({ hasAdvanced: t }) {
|
|
|
38
38
|
children: e("ui.simple")
|
|
39
39
|
}
|
|
40
40
|
),
|
|
41
|
-
/* @__PURE__ */
|
|
41
|
+
/* @__PURE__ */ s(
|
|
42
42
|
"button",
|
|
43
43
|
{
|
|
44
44
|
type: "button",
|
|
@@ -49,27 +49,27 @@ function bn({ hasAdvanced: t }) {
|
|
|
49
49
|
)
|
|
50
50
|
] });
|
|
51
51
|
}
|
|
52
|
-
function
|
|
53
|
-
return /* @__PURE__ */
|
|
52
|
+
function wn({ children: t }) {
|
|
53
|
+
return /* @__PURE__ */ s("div", { className: "xw-blog-root", children: t });
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function Yt(t) {
|
|
56
56
|
function e(o) {
|
|
57
57
|
const n = o.match(/^---\s*\n([\s\S]*?)\n---\s*\n/);
|
|
58
58
|
if (!n) return { frontmatter: {}, content: o };
|
|
59
59
|
const a = {}, r = n[1];
|
|
60
60
|
let l = "", c = !1;
|
|
61
|
-
const
|
|
61
|
+
const i = [];
|
|
62
62
|
for (const d of r.split(`
|
|
63
63
|
`)) {
|
|
64
64
|
const h = d.trim();
|
|
65
65
|
if (h.startsWith("-")) {
|
|
66
66
|
if (c) {
|
|
67
67
|
const f = h.substring(1).trim();
|
|
68
|
-
|
|
68
|
+
i.push(f);
|
|
69
69
|
}
|
|
70
70
|
continue;
|
|
71
71
|
}
|
|
72
|
-
if (c && !h.startsWith("-") && (a[l] =
|
|
72
|
+
if (c && !h.startsWith("-") && (a[l] = i.slice(), i.length = 0, c = !1), h != null && h.includes(":")) {
|
|
73
73
|
const [f, ...v] = h.split(":"), E = v.join(":").trim();
|
|
74
74
|
if (l = f.trim(), !E) {
|
|
75
75
|
c = !0;
|
|
@@ -78,7 +78,7 @@ function Wt(t) {
|
|
|
78
78
|
E === "true" ? a[l] = !0 : E === "false" ? a[l] = !1 : a[l] = E;
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
c &&
|
|
81
|
+
c && i.length > 0 && (a[l] = i);
|
|
82
82
|
const u = o.replace(
|
|
83
83
|
/^---\s*\n[\s\S]*?\n---\s*\n/,
|
|
84
84
|
""
|
|
@@ -93,7 +93,7 @@ function Wt(t) {
|
|
|
93
93
|
async loadMDXContent(o, n, a = !1) {
|
|
94
94
|
const r = a ? `${n}-advanced.mdx` : `${n}.mdx`, l = `./docs/${o}/${r}`, c = t[l];
|
|
95
95
|
if (!c) throw new Error(`File not found: ${l}`);
|
|
96
|
-
const
|
|
96
|
+
const i = await c(), { frontmatter: u, content: d } = e(i);
|
|
97
97
|
return { content: d, frontmatter: u };
|
|
98
98
|
},
|
|
99
99
|
/**
|
|
@@ -103,8 +103,8 @@ function Wt(t) {
|
|
|
103
103
|
async loadEnglishContent(o, n = !1) {
|
|
104
104
|
const r = `./docs/en/${n ? `${o}-advanced.mdx` : `${o}.mdx`}`, l = t[r];
|
|
105
105
|
if (!l) throw new Error(`File not found: ${r}`);
|
|
106
|
-
const c = await l(), { content:
|
|
107
|
-
return
|
|
106
|
+
const c = await l(), { content: i } = e(c);
|
|
107
|
+
return i;
|
|
108
108
|
},
|
|
109
109
|
/**
|
|
110
110
|
* Build a tag index from all MDX files.
|
|
@@ -119,7 +119,7 @@ function Wt(t) {
|
|
|
119
119
|
);
|
|
120
120
|
for (const l of r)
|
|
121
121
|
try {
|
|
122
|
-
const c = t[l],
|
|
122
|
+
const c = t[l], i = await c(), { frontmatter: u, content: d } = e(i), h = l.split("/").pop() || "", f = h.replace(".mdx", "").replace("-advanced", ""), v = typeof u.title == "string" ? u.title : void 0, E = d.match(/^#\s+(.+)$/m), m = v || (E ? E[1].trim() : f);
|
|
123
123
|
if (h.includes("-advanced")) continue;
|
|
124
124
|
const y = u.tags;
|
|
125
125
|
if (y && Array.isArray(y))
|
|
@@ -132,40 +132,40 @@ function Wt(t) {
|
|
|
132
132
|
}
|
|
133
133
|
};
|
|
134
134
|
}
|
|
135
|
-
function
|
|
136
|
-
const e =
|
|
135
|
+
function js(t) {
|
|
136
|
+
const e = Yt(t);
|
|
137
137
|
return {
|
|
138
138
|
mdxFiles: t,
|
|
139
139
|
loadContent: e.loadMDXContent,
|
|
140
140
|
loadEnglishContent: e.loadEnglishContent
|
|
141
141
|
};
|
|
142
142
|
}
|
|
143
|
-
const
|
|
144
|
-
const e = () => t || (typeof window > "u" ? "system" : localStorage.getItem(
|
|
145
|
-
return
|
|
146
|
-
const r =
|
|
143
|
+
const Tt = "app-theme", Ut = () => typeof window > "u" ? "light" : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light", wt = (t) => t === "system" ? Ut() : t, zt = (t) => {
|
|
144
|
+
const e = () => t || (typeof window > "u" ? "system" : localStorage.getItem(Tt) || "system"), [o, n] = F(e);
|
|
145
|
+
return z(() => {
|
|
146
|
+
const r = wt(o), l = document.querySelector(".xw-blog-root");
|
|
147
147
|
if (l && (l.classList.remove("light", "dark"), l.classList.add(r)), o === "system") {
|
|
148
|
-
const c = window.matchMedia("(prefers-color-scheme: dark)"),
|
|
149
|
-
const u =
|
|
148
|
+
const c = window.matchMedia("(prefers-color-scheme: dark)"), i = () => {
|
|
149
|
+
const u = Ut(), d = document.querySelector(".xw-blog-root");
|
|
150
150
|
d && (d.classList.remove("light", "dark"), d.classList.add(u));
|
|
151
151
|
};
|
|
152
|
-
return c.addEventListener("change",
|
|
152
|
+
return c.addEventListener("change", i), () => c.removeEventListener("change", i);
|
|
153
153
|
}
|
|
154
154
|
}, [o]), {
|
|
155
155
|
theme: o,
|
|
156
156
|
setTheme: (r) => {
|
|
157
|
-
localStorage.setItem(
|
|
157
|
+
localStorage.setItem(Tt, r), n(r);
|
|
158
158
|
},
|
|
159
|
-
effectiveTheme:
|
|
159
|
+
effectiveTheme: wt(o)
|
|
160
160
|
};
|
|
161
|
-
},
|
|
161
|
+
}, En = (t) => "items" in t, De = (t) => "items" in t, Ue = async (t, e, o) => {
|
|
162
162
|
const n = [];
|
|
163
163
|
for (const a of t)
|
|
164
|
-
if (
|
|
164
|
+
if (En(a)) {
|
|
165
165
|
const r = [];
|
|
166
166
|
for (const c of a.items)
|
|
167
167
|
try {
|
|
168
|
-
const
|
|
168
|
+
const i = await o(e, c.slug, !1), u = typeof i.frontmatter.title == "string" ? i.frontmatter.title : c.slug;
|
|
169
169
|
r.push({
|
|
170
170
|
...c,
|
|
171
171
|
title: u
|
|
@@ -176,7 +176,7 @@ const bt = "app-theme", Yt = () => typeof window > "u" ? "light" : window.matchM
|
|
|
176
176
|
title: c.slug
|
|
177
177
|
});
|
|
178
178
|
}
|
|
179
|
-
const l =
|
|
179
|
+
const l = mn.getFixedT(e)(a.title);
|
|
180
180
|
n.push({
|
|
181
181
|
title: l,
|
|
182
182
|
items: r,
|
|
@@ -198,7 +198,7 @@ const bt = "app-theme", Yt = () => typeof window > "u" ? "light" : window.matchM
|
|
|
198
198
|
});
|
|
199
199
|
}
|
|
200
200
|
return n;
|
|
201
|
-
}, Ae = (t) => t.toString().toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/\s+/g, "-").replace(/-+/g, "-").replace(/^-+|-+$/g, ""),
|
|
201
|
+
}, Ae = (t) => t.toString().toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/\s+/g, "-").replace(/-+/g, "-").replace(/^-+|-+$/g, ""), Cn = (t, e) => {
|
|
202
202
|
const o = [];
|
|
203
203
|
for (const a of e)
|
|
204
204
|
De(a) ? o.push(...a.items) : o.push({ slug: a.slug, title: a.title });
|
|
@@ -209,17 +209,17 @@ const bt = "app-theme", Yt = () => typeof window > "u" ? "light" : window.matchM
|
|
|
209
209
|
prev: n > 0 ? o[n - 1] : void 0,
|
|
210
210
|
next: n < o.length - 1 ? o[n + 1] : void 0
|
|
211
211
|
};
|
|
212
|
-
},
|
|
213
|
-
function
|
|
212
|
+
}, Gt = hn(null);
|
|
213
|
+
function Bs({
|
|
214
214
|
children: t,
|
|
215
215
|
config: e,
|
|
216
216
|
blog: o,
|
|
217
217
|
navigationData: n = []
|
|
218
218
|
}) {
|
|
219
|
-
|
|
219
|
+
zt(e.defaultTheme);
|
|
220
220
|
const [a, r] = F({});
|
|
221
|
-
|
|
222
|
-
const { buildTagIndex: c } =
|
|
221
|
+
z(() => {
|
|
222
|
+
const { buildTagIndex: c } = Yt(o.mdxFiles), i = e.supportedLanguages.map(async (u) => {
|
|
223
223
|
try {
|
|
224
224
|
const d = await c(u);
|
|
225
225
|
return { language: u, index: d };
|
|
@@ -227,7 +227,7 @@ function js({
|
|
|
227
227
|
return console.error(`Failed to build tag index for ${u}:`, d), { language: u, index: {} };
|
|
228
228
|
}
|
|
229
229
|
});
|
|
230
|
-
Promise.all(
|
|
230
|
+
Promise.all(i).then((u) => {
|
|
231
231
|
const d = {};
|
|
232
232
|
for (const h of u)
|
|
233
233
|
d[h.language] = h.index;
|
|
@@ -237,32 +237,32 @@ function js({
|
|
|
237
237
|
});
|
|
238
238
|
}, [o.mdxFiles, e.supportedLanguages]);
|
|
239
239
|
const l = { ...e, navigationData: n, tagIndex: a };
|
|
240
|
-
return /* @__PURE__ */
|
|
241
|
-
|
|
240
|
+
return /* @__PURE__ */ s(
|
|
241
|
+
Gt.Provider,
|
|
242
242
|
{
|
|
243
243
|
value: {
|
|
244
244
|
config: l,
|
|
245
245
|
loadContent: o.loadContent,
|
|
246
246
|
loadEnglishContent: o.loadEnglishContent
|
|
247
247
|
},
|
|
248
|
-
children: /* @__PURE__ */
|
|
248
|
+
children: /* @__PURE__ */ s(wn, { children: t })
|
|
249
249
|
}
|
|
250
250
|
);
|
|
251
251
|
}
|
|
252
|
-
function
|
|
253
|
-
const t =
|
|
252
|
+
function ee() {
|
|
253
|
+
const t = pn(Gt);
|
|
254
254
|
if (!t)
|
|
255
255
|
throw new Error("useBlogConfig must be used within a BlogProvider");
|
|
256
256
|
return t;
|
|
257
257
|
}
|
|
258
|
-
function
|
|
258
|
+
function Vt() {
|
|
259
259
|
return !!new URL(window.location.href).hash;
|
|
260
260
|
}
|
|
261
|
-
function
|
|
261
|
+
function Sn(t, e, o) {
|
|
262
262
|
const n = o ? `${o}/` : "";
|
|
263
|
-
return
|
|
263
|
+
return Vt() ? `#${n}${e}/${t}` : `/${n}${e}/${t}`;
|
|
264
264
|
}
|
|
265
|
-
function
|
|
265
|
+
function Xt(t) {
|
|
266
266
|
const e = {
|
|
267
267
|
advanced: !1,
|
|
268
268
|
anchor: ""
|
|
@@ -273,7 +273,7 @@ function Vt(t) {
|
|
|
273
273
|
a === "advanced" ? e.advanced = !0 : a.startsWith("a=") && (e.anchor = a.substring(2));
|
|
274
274
|
return e;
|
|
275
275
|
}
|
|
276
|
-
function
|
|
276
|
+
function Et(t, e = 80) {
|
|
277
277
|
const o = document.getElementById(t);
|
|
278
278
|
if (o) {
|
|
279
279
|
const a = o.getBoundingClientRect().top + window.pageYOffset - e;
|
|
@@ -283,9 +283,9 @@ function wt(t, e = 80) {
|
|
|
283
283
|
});
|
|
284
284
|
}
|
|
285
285
|
}
|
|
286
|
-
function
|
|
286
|
+
function Pn(t, e = !1) {
|
|
287
287
|
const o = new URL(window.location.href);
|
|
288
|
-
if (
|
|
288
|
+
if (Vt()) {
|
|
289
289
|
const n = o.hash.split("?"), a = n[0], r = new URLSearchParams(n[1] || "");
|
|
290
290
|
r.set("a", t), e && r.set("advanced", "");
|
|
291
291
|
const l = r.toString();
|
|
@@ -296,56 +296,56 @@ function Sn(t, e = !1) {
|
|
|
296
296
|
}
|
|
297
297
|
window.history.pushState(null, "", o.toString());
|
|
298
298
|
}
|
|
299
|
-
function
|
|
299
|
+
function In(t = "smooth") {
|
|
300
300
|
window.scrollTo({
|
|
301
301
|
top: 0,
|
|
302
302
|
left: 0,
|
|
303
303
|
behavior: t
|
|
304
304
|
});
|
|
305
305
|
}
|
|
306
|
-
const
|
|
307
|
-
articleNavigation:
|
|
308
|
-
navContainer:
|
|
309
|
-
navLink:
|
|
310
|
-
navLinkContent:
|
|
311
|
-
navIcon:
|
|
312
|
-
navText:
|
|
306
|
+
const An = "_articleNavigation_kz84g_1", kn = "_navContainer_kz84g_7", Nn = "_navLink_kz84g_24", xn = "_navLinkContent_kz84g_61", On = "_navIcon_kz84g_76", $n = "_navText_kz84g_83", Rn = "_navLabel_kz84g_90", Ln = "_navTitle_kz84g_98", te = {
|
|
307
|
+
articleNavigation: An,
|
|
308
|
+
navContainer: kn,
|
|
309
|
+
navLink: Nn,
|
|
310
|
+
navLinkContent: xn,
|
|
311
|
+
navIcon: On,
|
|
312
|
+
navText: $n,
|
|
313
313
|
navLabel: Rn,
|
|
314
|
-
navTitle:
|
|
314
|
+
navTitle: Ln
|
|
315
315
|
};
|
|
316
|
-
function
|
|
316
|
+
function Mn({
|
|
317
317
|
prevSlug: t,
|
|
318
318
|
prevTitle: e,
|
|
319
319
|
nextSlug: o,
|
|
320
320
|
nextTitle: n,
|
|
321
321
|
language: a
|
|
322
322
|
}) {
|
|
323
|
-
const { t: r } =
|
|
323
|
+
const { t: r } = Z(), { config: l } = ee(), c = Ee(), u = Xt(c.search).advanced, d = l.basePath || "", h = (v) => {
|
|
324
324
|
const E = `${d}/${a}/${v}`;
|
|
325
325
|
return u ? `${E}?advanced=true` : E;
|
|
326
326
|
};
|
|
327
327
|
if (!t && !o)
|
|
328
328
|
return null;
|
|
329
329
|
const f = () => {
|
|
330
|
-
|
|
330
|
+
In("auto");
|
|
331
331
|
};
|
|
332
|
-
return /* @__PURE__ */
|
|
333
|
-
t ? /* @__PURE__ */
|
|
332
|
+
return /* @__PURE__ */ s("nav", { className: te.articleNavigation, "aria-label": "Article navigation", children: /* @__PURE__ */ T("div", { className: te.navContainer, children: [
|
|
333
|
+
t ? /* @__PURE__ */ s(
|
|
334
334
|
qe,
|
|
335
335
|
{
|
|
336
336
|
to: h(t),
|
|
337
337
|
className: te.navLink,
|
|
338
338
|
onClick: f,
|
|
339
339
|
children: /* @__PURE__ */ T("div", { className: te.navLinkContent, children: [
|
|
340
|
-
/* @__PURE__ */
|
|
340
|
+
/* @__PURE__ */ s("div", { className: te.navIcon, children: /* @__PURE__ */ s(an, { size: 20, weight: "bold" }) }),
|
|
341
341
|
/* @__PURE__ */ T("div", { className: te.navText, children: [
|
|
342
|
-
/* @__PURE__ */
|
|
343
|
-
/* @__PURE__ */
|
|
342
|
+
/* @__PURE__ */ s("span", { className: te.navLabel, children: r("nav.previous") }),
|
|
343
|
+
/* @__PURE__ */ s("span", { className: te.navTitle, children: e || t })
|
|
344
344
|
] })
|
|
345
345
|
] })
|
|
346
346
|
}
|
|
347
|
-
) : /* @__PURE__ */
|
|
348
|
-
o ? /* @__PURE__ */
|
|
347
|
+
) : /* @__PURE__ */ s("div", {}),
|
|
348
|
+
o ? /* @__PURE__ */ s(
|
|
349
349
|
qe,
|
|
350
350
|
{
|
|
351
351
|
to: h(o),
|
|
@@ -353,38 +353,38 @@ function Ln({
|
|
|
353
353
|
onClick: f,
|
|
354
354
|
children: /* @__PURE__ */ T("div", { className: te.navLinkContent, children: [
|
|
355
355
|
/* @__PURE__ */ T("div", { className: te.navText, children: [
|
|
356
|
-
/* @__PURE__ */
|
|
357
|
-
/* @__PURE__ */
|
|
356
|
+
/* @__PURE__ */ s("span", { className: te.navLabel, children: r("nav.next") }),
|
|
357
|
+
/* @__PURE__ */ s("span", { className: te.navTitle, children: n || o })
|
|
358
358
|
] }),
|
|
359
|
-
/* @__PURE__ */
|
|
359
|
+
/* @__PURE__ */ s("div", { className: te.navIcon, children: /* @__PURE__ */ s(qt, { size: 20, weight: "bold" }) })
|
|
360
360
|
] })
|
|
361
361
|
}
|
|
362
|
-
) : /* @__PURE__ */
|
|
362
|
+
) : /* @__PURE__ */ s("div", {})
|
|
363
363
|
] }) });
|
|
364
364
|
}
|
|
365
|
-
const
|
|
366
|
-
blogSidebar:
|
|
367
|
-
section:
|
|
368
|
-
sectionTitle:
|
|
369
|
-
linksList:
|
|
370
|
-
link:
|
|
365
|
+
const Dn = "_blogSidebar_1ik3q_1", jn = "_section_1ik3q_21", Bn = "_sectionTitle_1ik3q_28", Hn = "_linksList_1ik3q_36", Fn = "_link_1ik3q_36", $e = {
|
|
366
|
+
blogSidebar: Dn,
|
|
367
|
+
section: jn,
|
|
368
|
+
sectionTitle: Bn,
|
|
369
|
+
linksList: Hn,
|
|
370
|
+
link: Fn
|
|
371
371
|
};
|
|
372
|
-
function
|
|
373
|
-
const { t } =
|
|
374
|
-
return o.length === 0 ? null : /* @__PURE__ */
|
|
375
|
-
/* @__PURE__ */
|
|
376
|
-
/* @__PURE__ */
|
|
377
|
-
const r = n.icon ||
|
|
372
|
+
function qn() {
|
|
373
|
+
const { t } = Z(), { config: e } = ee(), o = e.socialLinks || [];
|
|
374
|
+
return o.length === 0 ? null : /* @__PURE__ */ s("aside", { className: $e.blogSidebar, children: /* @__PURE__ */ T("div", { className: $e.section, children: [
|
|
375
|
+
/* @__PURE__ */ s("h3", { className: $e.sectionTitle, children: t("ui.connect") }),
|
|
376
|
+
/* @__PURE__ */ s("div", { className: $e.linksList, children: o.map((n, a) => {
|
|
377
|
+
const r = n.icon || sn, l = n.target === "_blank";
|
|
378
378
|
return /* @__PURE__ */ T(
|
|
379
379
|
"a",
|
|
380
380
|
{
|
|
381
381
|
href: n.url,
|
|
382
|
-
className:
|
|
382
|
+
className: $e.link,
|
|
383
383
|
target: n.target || "_blank",
|
|
384
384
|
rel: l ? "noopener noreferrer" : void 0,
|
|
385
385
|
children: [
|
|
386
|
-
/* @__PURE__ */
|
|
387
|
-
/* @__PURE__ */
|
|
386
|
+
/* @__PURE__ */ s(r, { size: 18, weight: "duotone" }),
|
|
387
|
+
/* @__PURE__ */ s("span", { children: n.label })
|
|
388
388
|
]
|
|
389
389
|
},
|
|
390
390
|
a
|
|
@@ -392,20 +392,20 @@ function Fn() {
|
|
|
392
392
|
}) })
|
|
393
393
|
] }) });
|
|
394
394
|
}
|
|
395
|
-
const
|
|
396
|
-
breadcrumb:
|
|
397
|
-
breadcrumbList:
|
|
398
|
-
breadcrumbItem:
|
|
399
|
-
breadcrumbLink:
|
|
400
|
-
breadcrumbSeparator:
|
|
401
|
-
breadcrumbCurrent:
|
|
395
|
+
const Wn = "_breadcrumb_rarc4_1", Yn = "_breadcrumbList_rarc4_5", Un = "_breadcrumbItem_rarc4_15", zn = "_breadcrumbLink_rarc4_21", Gn = "_breadcrumbSeparator_rarc4_41", Vn = "_breadcrumbCurrent_rarc4_46", Te = {
|
|
396
|
+
breadcrumb: Wn,
|
|
397
|
+
breadcrumbList: Yn,
|
|
398
|
+
breadcrumbItem: Un,
|
|
399
|
+
breadcrumbLink: zn,
|
|
400
|
+
breadcrumbSeparator: Gn,
|
|
401
|
+
breadcrumbCurrent: Vn
|
|
402
402
|
};
|
|
403
|
-
function
|
|
404
|
-
const { t: o } =
|
|
403
|
+
function Xn({ articleTitle: t, language: e }) {
|
|
404
|
+
const { t: o } = Z(), { config: n } = ee(), a = _e(), l = `${n.basePath || ""}/${e}`, c = (u) => {
|
|
405
405
|
u.preventDefault(), window.scrollTo({ top: 0, left: 0, behavior: "auto" }), a(l);
|
|
406
|
-
},
|
|
407
|
-
return /* @__PURE__ */
|
|
408
|
-
/* @__PURE__ */
|
|
406
|
+
}, i = (u, d = 60) => u.length <= d ? u : `${u.substring(0, d)}…`;
|
|
407
|
+
return /* @__PURE__ */ s("nav", { className: Te.breadcrumb, "aria-label": "Breadcrumb", children: /* @__PURE__ */ T("ol", { className: Te.breadcrumbList, children: [
|
|
408
|
+
/* @__PURE__ */ s("li", { className: Te.breadcrumbItem, children: /* @__PURE__ */ s(
|
|
409
409
|
"button",
|
|
410
410
|
{
|
|
411
411
|
onClick: c,
|
|
@@ -415,8 +415,8 @@ function Vn({ articleTitle: t, language: e }) {
|
|
|
415
415
|
}
|
|
416
416
|
) }),
|
|
417
417
|
/* @__PURE__ */ T("li", { className: Te.breadcrumbItem, children: [
|
|
418
|
-
/* @__PURE__ */
|
|
419
|
-
/* @__PURE__ */
|
|
418
|
+
/* @__PURE__ */ s("span", { className: Te.breadcrumbSeparator, children: "/" }),
|
|
419
|
+
/* @__PURE__ */ s("span", { className: Te.breadcrumbCurrent, children: i(t) })
|
|
420
420
|
] })
|
|
421
421
|
] }) });
|
|
422
422
|
}
|
|
@@ -432,18 +432,18 @@ var He = { exports: {} }, Fe = { exports: {} }, j = {};
|
|
|
432
432
|
* This source code is licensed under the MIT license found in the
|
|
433
433
|
* LICENSE file in the root directory of this source tree.
|
|
434
434
|
*/
|
|
435
|
-
var
|
|
436
|
-
function
|
|
437
|
-
if (
|
|
438
|
-
|
|
439
|
-
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, o = t ? Symbol.for("react.portal") : 60106, n = t ? Symbol.for("react.fragment") : 60107, a = t ? Symbol.for("react.strict_mode") : 60108, r = t ? Symbol.for("react.profiler") : 60114, l = t ? Symbol.for("react.provider") : 60109, c = t ? Symbol.for("react.context") : 60110,
|
|
435
|
+
var Ct;
|
|
436
|
+
function Kn() {
|
|
437
|
+
if (Ct) return j;
|
|
438
|
+
Ct = 1;
|
|
439
|
+
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, o = t ? Symbol.for("react.portal") : 60106, n = t ? Symbol.for("react.fragment") : 60107, a = t ? Symbol.for("react.strict_mode") : 60108, r = t ? Symbol.for("react.profiler") : 60114, l = t ? Symbol.for("react.provider") : 60109, c = t ? Symbol.for("react.context") : 60110, i = t ? Symbol.for("react.async_mode") : 60111, u = t ? Symbol.for("react.concurrent_mode") : 60111, d = t ? Symbol.for("react.forward_ref") : 60112, h = t ? Symbol.for("react.suspense") : 60113, f = t ? Symbol.for("react.suspense_list") : 60120, v = t ? Symbol.for("react.memo") : 60115, E = t ? Symbol.for("react.lazy") : 60116, m = t ? Symbol.for("react.block") : 60121, y = t ? Symbol.for("react.fundamental") : 60117, b = t ? Symbol.for("react.responder") : 60118, I = t ? Symbol.for("react.scope") : 60119;
|
|
440
440
|
function N(p) {
|
|
441
441
|
if (typeof p == "object" && p !== null) {
|
|
442
|
-
var
|
|
443
|
-
switch (
|
|
442
|
+
var $ = p.$$typeof;
|
|
443
|
+
switch ($) {
|
|
444
444
|
case e:
|
|
445
445
|
switch (p = p.type, p) {
|
|
446
|
-
case
|
|
446
|
+
case i:
|
|
447
447
|
case u:
|
|
448
448
|
case n:
|
|
449
449
|
case r:
|
|
@@ -459,20 +459,20 @@ function Xn() {
|
|
|
459
459
|
case l:
|
|
460
460
|
return p;
|
|
461
461
|
default:
|
|
462
|
-
return
|
|
462
|
+
return $;
|
|
463
463
|
}
|
|
464
464
|
}
|
|
465
465
|
case o:
|
|
466
|
-
return
|
|
466
|
+
return $;
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
469
|
}
|
|
470
|
-
function
|
|
470
|
+
function M(p) {
|
|
471
471
|
return N(p) === u;
|
|
472
472
|
}
|
|
473
|
-
return j.AsyncMode =
|
|
474
|
-
return
|
|
475
|
-
}, j.isConcurrentMode =
|
|
473
|
+
return j.AsyncMode = i, j.ConcurrentMode = u, j.ContextConsumer = c, j.ContextProvider = l, j.Element = e, j.ForwardRef = d, j.Fragment = n, j.Lazy = E, j.Memo = v, j.Portal = o, j.Profiler = r, j.StrictMode = a, j.Suspense = h, j.isAsyncMode = function(p) {
|
|
474
|
+
return M(p) || N(p) === i;
|
|
475
|
+
}, j.isConcurrentMode = M, j.isContextConsumer = function(p) {
|
|
476
476
|
return N(p) === c;
|
|
477
477
|
}, j.isContextProvider = function(p) {
|
|
478
478
|
return N(p) === l;
|
|
@@ -507,30 +507,30 @@ var B = {};
|
|
|
507
507
|
* This source code is licensed under the MIT license found in the
|
|
508
508
|
* LICENSE file in the root directory of this source tree.
|
|
509
509
|
*/
|
|
510
|
-
var
|
|
511
|
-
function
|
|
512
|
-
return
|
|
513
|
-
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, o = t ? Symbol.for("react.portal") : 60106, n = t ? Symbol.for("react.fragment") : 60107, a = t ? Symbol.for("react.strict_mode") : 60108, r = t ? Symbol.for("react.profiler") : 60114, l = t ? Symbol.for("react.provider") : 60109, c = t ? Symbol.for("react.context") : 60110,
|
|
510
|
+
var St;
|
|
511
|
+
function Qn() {
|
|
512
|
+
return St || (St = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
513
|
+
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, o = t ? Symbol.for("react.portal") : 60106, n = t ? Symbol.for("react.fragment") : 60107, a = t ? Symbol.for("react.strict_mode") : 60108, r = t ? Symbol.for("react.profiler") : 60114, l = t ? Symbol.for("react.provider") : 60109, c = t ? Symbol.for("react.context") : 60110, i = t ? Symbol.for("react.async_mode") : 60111, u = t ? Symbol.for("react.concurrent_mode") : 60111, d = t ? Symbol.for("react.forward_ref") : 60112, h = t ? Symbol.for("react.suspense") : 60113, f = t ? Symbol.for("react.suspense_list") : 60120, v = t ? Symbol.for("react.memo") : 60115, E = t ? Symbol.for("react.lazy") : 60116, m = t ? Symbol.for("react.block") : 60121, y = t ? Symbol.for("react.fundamental") : 60117, b = t ? Symbol.for("react.responder") : 60118, I = t ? Symbol.for("react.scope") : 60119;
|
|
514
514
|
function N(w) {
|
|
515
515
|
return typeof w == "string" || typeof w == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
516
516
|
w === n || w === u || w === r || w === a || w === h || w === f || typeof w == "object" && w !== null && (w.$$typeof === E || w.$$typeof === v || w.$$typeof === l || w.$$typeof === c || w.$$typeof === d || w.$$typeof === y || w.$$typeof === b || w.$$typeof === I || w.$$typeof === m);
|
|
517
517
|
}
|
|
518
|
-
function
|
|
518
|
+
function M(w) {
|
|
519
519
|
if (typeof w == "object" && w !== null) {
|
|
520
|
-
var
|
|
521
|
-
switch (
|
|
520
|
+
var Q = w.$$typeof;
|
|
521
|
+
switch (Q) {
|
|
522
522
|
case e:
|
|
523
|
-
var
|
|
524
|
-
switch (
|
|
525
|
-
case
|
|
523
|
+
var me = w.type;
|
|
524
|
+
switch (me) {
|
|
525
|
+
case i:
|
|
526
526
|
case u:
|
|
527
527
|
case n:
|
|
528
528
|
case r:
|
|
529
529
|
case a:
|
|
530
530
|
case h:
|
|
531
|
-
return
|
|
531
|
+
return me;
|
|
532
532
|
default:
|
|
533
|
-
var xe =
|
|
533
|
+
var xe = me && me.$$typeof;
|
|
534
534
|
switch (xe) {
|
|
535
535
|
case c:
|
|
536
536
|
case d:
|
|
@@ -539,70 +539,70 @@ function Kn() {
|
|
|
539
539
|
case l:
|
|
540
540
|
return xe;
|
|
541
541
|
default:
|
|
542
|
-
return
|
|
542
|
+
return Q;
|
|
543
543
|
}
|
|
544
544
|
}
|
|
545
545
|
case o:
|
|
546
|
-
return
|
|
546
|
+
return Q;
|
|
547
547
|
}
|
|
548
548
|
}
|
|
549
549
|
}
|
|
550
|
-
var p =
|
|
550
|
+
var p = i, $ = u, G = c, V = l, oe = e, he = d, ae = n, pe = E, ye = v, le = o, Ce = r, K = a, ce = h, be = !1;
|
|
551
551
|
function Se(w) {
|
|
552
|
-
return
|
|
552
|
+
return be || (be = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), _(w) || M(w) === i;
|
|
553
553
|
}
|
|
554
|
-
function
|
|
555
|
-
return
|
|
554
|
+
function _(w) {
|
|
555
|
+
return M(w) === u;
|
|
556
556
|
}
|
|
557
|
-
function
|
|
558
|
-
return
|
|
557
|
+
function C(w) {
|
|
558
|
+
return M(w) === c;
|
|
559
559
|
}
|
|
560
|
-
function
|
|
561
|
-
return
|
|
560
|
+
function L(w) {
|
|
561
|
+
return M(w) === l;
|
|
562
562
|
}
|
|
563
|
-
function
|
|
563
|
+
function R(w) {
|
|
564
564
|
return typeof w == "object" && w !== null && w.$$typeof === e;
|
|
565
565
|
}
|
|
566
566
|
function x(w) {
|
|
567
|
-
return
|
|
568
|
-
}
|
|
569
|
-
function _(w) {
|
|
570
|
-
return D(w) === n;
|
|
567
|
+
return M(w) === d;
|
|
571
568
|
}
|
|
572
|
-
function
|
|
573
|
-
return
|
|
569
|
+
function D(w) {
|
|
570
|
+
return M(w) === n;
|
|
574
571
|
}
|
|
575
|
-
function
|
|
576
|
-
return
|
|
572
|
+
function g(w) {
|
|
573
|
+
return M(w) === E;
|
|
577
574
|
}
|
|
578
|
-
function
|
|
579
|
-
return
|
|
575
|
+
function S(w) {
|
|
576
|
+
return M(w) === v;
|
|
580
577
|
}
|
|
581
578
|
function k(w) {
|
|
582
|
-
return
|
|
579
|
+
return M(w) === o;
|
|
583
580
|
}
|
|
584
|
-
function
|
|
585
|
-
return
|
|
581
|
+
function P(w) {
|
|
582
|
+
return M(w) === r;
|
|
583
|
+
}
|
|
584
|
+
function A(w) {
|
|
585
|
+
return M(w) === a;
|
|
586
586
|
}
|
|
587
|
-
function
|
|
588
|
-
return
|
|
587
|
+
function Y(w) {
|
|
588
|
+
return M(w) === h;
|
|
589
589
|
}
|
|
590
|
-
B.AsyncMode = p, B.ConcurrentMode =
|
|
590
|
+
B.AsyncMode = p, B.ConcurrentMode = $, B.ContextConsumer = G, B.ContextProvider = V, B.Element = oe, B.ForwardRef = he, B.Fragment = ae, B.Lazy = pe, B.Memo = ye, B.Portal = le, B.Profiler = Ce, B.StrictMode = K, B.Suspense = ce, B.isAsyncMode = Se, B.isConcurrentMode = _, B.isContextConsumer = C, B.isContextProvider = L, B.isElement = R, B.isForwardRef = x, B.isFragment = D, B.isLazy = g, B.isMemo = S, B.isPortal = k, B.isProfiler = P, B.isStrictMode = A, B.isSuspense = Y, B.isValidElementType = N, B.typeOf = M;
|
|
591
591
|
})()), B;
|
|
592
592
|
}
|
|
593
|
-
var
|
|
594
|
-
function
|
|
595
|
-
return
|
|
593
|
+
var Pt;
|
|
594
|
+
function Kt() {
|
|
595
|
+
return Pt || (Pt = 1, process.env.NODE_ENV === "production" ? Fe.exports = Kn() : Fe.exports = Qn()), Fe.exports;
|
|
596
596
|
}
|
|
597
597
|
/*
|
|
598
598
|
object-assign
|
|
599
599
|
(c) Sindre Sorhus
|
|
600
600
|
@license MIT
|
|
601
601
|
*/
|
|
602
|
-
var Ve,
|
|
603
|
-
function
|
|
604
|
-
if (
|
|
605
|
-
|
|
602
|
+
var Ve, It;
|
|
603
|
+
function Qt() {
|
|
604
|
+
if (It) return Ve;
|
|
605
|
+
It = 1;
|
|
606
606
|
var t = Object.getOwnPropertySymbols, e = Object.prototype.hasOwnProperty, o = Object.prototype.propertyIsEnumerable;
|
|
607
607
|
function n(r) {
|
|
608
608
|
if (r == null)
|
|
@@ -618,10 +618,10 @@ function Kt() {
|
|
|
618
618
|
return !1;
|
|
619
619
|
for (var l = {}, c = 0; c < 10; c++)
|
|
620
620
|
l["_" + String.fromCharCode(c)] = c;
|
|
621
|
-
var
|
|
621
|
+
var i = Object.getOwnPropertyNames(l).map(function(d) {
|
|
622
622
|
return l[d];
|
|
623
623
|
});
|
|
624
|
-
if (
|
|
624
|
+
if (i.join("") !== "0123456789")
|
|
625
625
|
return !1;
|
|
626
626
|
var u = {};
|
|
627
627
|
return "abcdefghijklmnopqrst".split("").forEach(function(d) {
|
|
@@ -632,38 +632,38 @@ function Kt() {
|
|
|
632
632
|
}
|
|
633
633
|
}
|
|
634
634
|
return Ve = a() ? Object.assign : function(r, l) {
|
|
635
|
-
for (var c,
|
|
635
|
+
for (var c, i = n(r), u, d = 1; d < arguments.length; d++) {
|
|
636
636
|
c = Object(arguments[d]);
|
|
637
637
|
for (var h in c)
|
|
638
|
-
e.call(c, h) && (
|
|
638
|
+
e.call(c, h) && (i[h] = c[h]);
|
|
639
639
|
if (t) {
|
|
640
640
|
u = t(c);
|
|
641
641
|
for (var f = 0; f < u.length; f++)
|
|
642
|
-
o.call(c, u[f]) && (
|
|
642
|
+
o.call(c, u[f]) && (i[u[f]] = c[u[f]]);
|
|
643
643
|
}
|
|
644
644
|
}
|
|
645
|
-
return
|
|
645
|
+
return i;
|
|
646
646
|
}, Ve;
|
|
647
647
|
}
|
|
648
|
-
var Xe,
|
|
648
|
+
var Xe, At;
|
|
649
649
|
function ft() {
|
|
650
|
-
if (
|
|
651
|
-
|
|
650
|
+
if (At) return Xe;
|
|
651
|
+
At = 1;
|
|
652
652
|
var t = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
653
653
|
return Xe = t, Xe;
|
|
654
654
|
}
|
|
655
|
-
var Ke,
|
|
656
|
-
function
|
|
657
|
-
return
|
|
655
|
+
var Ke, kt;
|
|
656
|
+
function Jt() {
|
|
657
|
+
return kt || (kt = 1, Ke = Function.call.bind(Object.prototype.hasOwnProperty)), Ke;
|
|
658
658
|
}
|
|
659
|
-
var Qe,
|
|
660
|
-
function
|
|
661
|
-
if (
|
|
662
|
-
|
|
659
|
+
var Qe, Nt;
|
|
660
|
+
function Jn() {
|
|
661
|
+
if (Nt) return Qe;
|
|
662
|
+
Nt = 1;
|
|
663
663
|
var t = function() {
|
|
664
664
|
};
|
|
665
665
|
if (process.env.NODE_ENV !== "production") {
|
|
666
|
-
var e = /* @__PURE__ */ ft(), o = {}, n = /* @__PURE__ */
|
|
666
|
+
var e = /* @__PURE__ */ ft(), o = {}, n = /* @__PURE__ */ Jt();
|
|
667
667
|
t = function(r) {
|
|
668
668
|
var l = "Warning: " + r;
|
|
669
669
|
typeof console < "u" && console.error(l);
|
|
@@ -673,7 +673,7 @@ function Qn() {
|
|
|
673
673
|
}
|
|
674
674
|
};
|
|
675
675
|
}
|
|
676
|
-
function a(r, l, c,
|
|
676
|
+
function a(r, l, c, i, u) {
|
|
677
677
|
if (process.env.NODE_ENV !== "production") {
|
|
678
678
|
for (var d in r)
|
|
679
679
|
if (n(r, d)) {
|
|
@@ -681,16 +681,16 @@ function Qn() {
|
|
|
681
681
|
try {
|
|
682
682
|
if (typeof r[d] != "function") {
|
|
683
683
|
var f = Error(
|
|
684
|
-
(
|
|
684
|
+
(i || "React class") + ": " + c + " type `" + d + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[d] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
685
685
|
);
|
|
686
686
|
throw f.name = "Invariant Violation", f;
|
|
687
687
|
}
|
|
688
|
-
h = r[d](l, d,
|
|
688
|
+
h = r[d](l, d, i, c, null, e);
|
|
689
689
|
} catch (E) {
|
|
690
690
|
h = E;
|
|
691
691
|
}
|
|
692
692
|
if (h && !(h instanceof Error) && t(
|
|
693
|
-
(
|
|
693
|
+
(i || "React class") + ": type specification of " + c + " `" + d + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof h + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
694
694
|
), h instanceof Error && !(h.message in o)) {
|
|
695
695
|
o[h.message] = !0;
|
|
696
696
|
var v = u ? u() : "";
|
|
@@ -705,29 +705,29 @@ function Qn() {
|
|
|
705
705
|
process.env.NODE_ENV !== "production" && (o = {});
|
|
706
706
|
}, Qe = a, Qe;
|
|
707
707
|
}
|
|
708
|
-
var Je,
|
|
709
|
-
function
|
|
710
|
-
if (
|
|
711
|
-
|
|
712
|
-
var t =
|
|
708
|
+
var Je, xt;
|
|
709
|
+
function Zn() {
|
|
710
|
+
if (xt) return Je;
|
|
711
|
+
xt = 1;
|
|
712
|
+
var t = Kt(), e = Qt(), o = /* @__PURE__ */ ft(), n = /* @__PURE__ */ Jt(), a = /* @__PURE__ */ Jn(), r = function() {
|
|
713
713
|
};
|
|
714
714
|
process.env.NODE_ENV !== "production" && (r = function(c) {
|
|
715
|
-
var
|
|
716
|
-
typeof console < "u" && console.error(
|
|
715
|
+
var i = "Warning: " + c;
|
|
716
|
+
typeof console < "u" && console.error(i);
|
|
717
717
|
try {
|
|
718
|
-
throw new Error(
|
|
718
|
+
throw new Error(i);
|
|
719
719
|
} catch {
|
|
720
720
|
}
|
|
721
721
|
});
|
|
722
722
|
function l() {
|
|
723
723
|
return null;
|
|
724
724
|
}
|
|
725
|
-
return Je = function(c,
|
|
725
|
+
return Je = function(c, i) {
|
|
726
726
|
var u = typeof Symbol == "function" && Symbol.iterator, d = "@@iterator";
|
|
727
|
-
function h(
|
|
728
|
-
var
|
|
729
|
-
if (typeof
|
|
730
|
-
return
|
|
727
|
+
function h(_) {
|
|
728
|
+
var C = _ && (u && _[u] || _[d]);
|
|
729
|
+
if (typeof C == "function")
|
|
730
|
+
return C;
|
|
731
731
|
}
|
|
732
732
|
var f = "<<anonymous>>", v = {
|
|
733
733
|
array: b("array"),
|
|
@@ -740,244 +740,244 @@ function Jn() {
|
|
|
740
740
|
symbol: b("symbol"),
|
|
741
741
|
any: I(),
|
|
742
742
|
arrayOf: N,
|
|
743
|
-
element:
|
|
743
|
+
element: M(),
|
|
744
744
|
elementType: p(),
|
|
745
|
-
instanceOf:
|
|
746
|
-
node:
|
|
745
|
+
instanceOf: $,
|
|
746
|
+
node: he(),
|
|
747
747
|
objectOf: V,
|
|
748
748
|
oneOf: G,
|
|
749
749
|
oneOfType: oe,
|
|
750
|
-
shape:
|
|
751
|
-
exact:
|
|
750
|
+
shape: pe,
|
|
751
|
+
exact: ye
|
|
752
752
|
};
|
|
753
|
-
function E(
|
|
754
|
-
return
|
|
753
|
+
function E(_, C) {
|
|
754
|
+
return _ === C ? _ !== 0 || 1 / _ === 1 / C : _ !== _ && C !== C;
|
|
755
755
|
}
|
|
756
|
-
function m(
|
|
757
|
-
this.message =
|
|
756
|
+
function m(_, C) {
|
|
757
|
+
this.message = _, this.data = C && typeof C == "object" ? C : {}, this.stack = "";
|
|
758
758
|
}
|
|
759
759
|
m.prototype = Error.prototype;
|
|
760
|
-
function y(
|
|
760
|
+
function y(_) {
|
|
761
761
|
if (process.env.NODE_ENV !== "production")
|
|
762
|
-
var
|
|
763
|
-
function
|
|
764
|
-
if (
|
|
765
|
-
if (
|
|
762
|
+
var C = {}, L = 0;
|
|
763
|
+
function R(D, g, S, k, P, A, Y) {
|
|
764
|
+
if (k = k || f, A = A || S, Y !== o) {
|
|
765
|
+
if (i) {
|
|
766
766
|
var w = new Error(
|
|
767
767
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
768
768
|
);
|
|
769
769
|
throw w.name = "Invariant Violation", w;
|
|
770
770
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
771
|
-
var
|
|
772
|
-
!
|
|
773
|
-
|
|
774
|
-
"You are manually calling a React.PropTypes validation function for the `" +
|
|
775
|
-
),
|
|
771
|
+
var Q = k + ":" + S;
|
|
772
|
+
!C[Q] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
773
|
+
L < 3 && (r(
|
|
774
|
+
"You are manually calling a React.PropTypes validation function for the `" + A + "` prop on `" + k + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
775
|
+
), C[Q] = !0, L++);
|
|
776
776
|
}
|
|
777
777
|
}
|
|
778
|
-
return
|
|
778
|
+
return g[S] == null ? D ? g[S] === null ? new m("The " + P + " `" + A + "` is marked as required " + ("in `" + k + "`, but its value is `null`.")) : new m("The " + P + " `" + A + "` is marked as required in " + ("`" + k + "`, but its value is `undefined`.")) : null : _(g, S, k, P, A);
|
|
779
779
|
}
|
|
780
|
-
var x =
|
|
781
|
-
return x.isRequired =
|
|
782
|
-
}
|
|
783
|
-
function b(
|
|
784
|
-
function
|
|
785
|
-
var
|
|
786
|
-
if (
|
|
787
|
-
var
|
|
780
|
+
var x = R.bind(null, !1);
|
|
781
|
+
return x.isRequired = R.bind(null, !0), x;
|
|
782
|
+
}
|
|
783
|
+
function b(_) {
|
|
784
|
+
function C(L, R, x, D, g, S) {
|
|
785
|
+
var k = L[R], P = K(k);
|
|
786
|
+
if (P !== _) {
|
|
787
|
+
var A = ce(k);
|
|
788
788
|
return new m(
|
|
789
|
-
"Invalid " +
|
|
790
|
-
{ expectedType:
|
|
789
|
+
"Invalid " + D + " `" + g + "` of type " + ("`" + A + "` supplied to `" + x + "`, expected ") + ("`" + _ + "`."),
|
|
790
|
+
{ expectedType: _ }
|
|
791
791
|
);
|
|
792
792
|
}
|
|
793
793
|
return null;
|
|
794
794
|
}
|
|
795
|
-
return y(
|
|
795
|
+
return y(C);
|
|
796
796
|
}
|
|
797
797
|
function I() {
|
|
798
798
|
return y(l);
|
|
799
799
|
}
|
|
800
|
-
function N(
|
|
801
|
-
function
|
|
802
|
-
if (typeof
|
|
803
|
-
return new m("Property `" +
|
|
804
|
-
var
|
|
805
|
-
if (!Array.isArray(
|
|
806
|
-
var
|
|
807
|
-
return new m("Invalid " +
|
|
800
|
+
function N(_) {
|
|
801
|
+
function C(L, R, x, D, g) {
|
|
802
|
+
if (typeof _ != "function")
|
|
803
|
+
return new m("Property `" + g + "` of component `" + x + "` has invalid PropType notation inside arrayOf.");
|
|
804
|
+
var S = L[R];
|
|
805
|
+
if (!Array.isArray(S)) {
|
|
806
|
+
var k = K(S);
|
|
807
|
+
return new m("Invalid " + D + " `" + g + "` of type " + ("`" + k + "` supplied to `" + x + "`, expected an array."));
|
|
808
808
|
}
|
|
809
|
-
for (var
|
|
810
|
-
var
|
|
811
|
-
if (
|
|
812
|
-
return
|
|
809
|
+
for (var P = 0; P < S.length; P++) {
|
|
810
|
+
var A = _(S, P, x, D, g + "[" + P + "]", o);
|
|
811
|
+
if (A instanceof Error)
|
|
812
|
+
return A;
|
|
813
813
|
}
|
|
814
814
|
return null;
|
|
815
815
|
}
|
|
816
|
-
return y(
|
|
817
|
-
}
|
|
818
|
-
function
|
|
819
|
-
function
|
|
820
|
-
var
|
|
821
|
-
if (!c(
|
|
822
|
-
var
|
|
823
|
-
return new m("Invalid " + x + " `" +
|
|
816
|
+
return y(C);
|
|
817
|
+
}
|
|
818
|
+
function M() {
|
|
819
|
+
function _(C, L, R, x, D) {
|
|
820
|
+
var g = C[L];
|
|
821
|
+
if (!c(g)) {
|
|
822
|
+
var S = K(g);
|
|
823
|
+
return new m("Invalid " + x + " `" + D + "` of type " + ("`" + S + "` supplied to `" + R + "`, expected a single ReactElement."));
|
|
824
824
|
}
|
|
825
825
|
return null;
|
|
826
826
|
}
|
|
827
|
-
return y(
|
|
827
|
+
return y(_);
|
|
828
828
|
}
|
|
829
829
|
function p() {
|
|
830
|
-
function
|
|
831
|
-
var
|
|
832
|
-
if (!t.isValidElementType(
|
|
833
|
-
var
|
|
834
|
-
return new m("Invalid " + x + " `" +
|
|
830
|
+
function _(C, L, R, x, D) {
|
|
831
|
+
var g = C[L];
|
|
832
|
+
if (!t.isValidElementType(g)) {
|
|
833
|
+
var S = K(g);
|
|
834
|
+
return new m("Invalid " + x + " `" + D + "` of type " + ("`" + S + "` supplied to `" + R + "`, expected a single ReactElement type."));
|
|
835
835
|
}
|
|
836
836
|
return null;
|
|
837
837
|
}
|
|
838
|
-
return y(
|
|
838
|
+
return y(_);
|
|
839
839
|
}
|
|
840
|
-
function
|
|
841
|
-
function
|
|
842
|
-
if (!(
|
|
843
|
-
var
|
|
844
|
-
return new m("Invalid " +
|
|
840
|
+
function $(_) {
|
|
841
|
+
function C(L, R, x, D, g) {
|
|
842
|
+
if (!(L[R] instanceof _)) {
|
|
843
|
+
var S = _.name || f, k = Se(L[R]);
|
|
844
|
+
return new m("Invalid " + D + " `" + g + "` of type " + ("`" + k + "` supplied to `" + x + "`, expected ") + ("instance of `" + S + "`."));
|
|
845
845
|
}
|
|
846
846
|
return null;
|
|
847
847
|
}
|
|
848
|
-
return y(
|
|
848
|
+
return y(C);
|
|
849
849
|
}
|
|
850
|
-
function G(
|
|
851
|
-
if (!Array.isArray(
|
|
850
|
+
function G(_) {
|
|
851
|
+
if (!Array.isArray(_))
|
|
852
852
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? r(
|
|
853
853
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
854
854
|
) : r("Invalid argument supplied to oneOf, expected an array.")), l;
|
|
855
|
-
function
|
|
856
|
-
for (var
|
|
857
|
-
if (E(
|
|
855
|
+
function C(L, R, x, D, g) {
|
|
856
|
+
for (var S = L[R], k = 0; k < _.length; k++)
|
|
857
|
+
if (E(S, _[k]))
|
|
858
858
|
return null;
|
|
859
|
-
var
|
|
860
|
-
var
|
|
861
|
-
return
|
|
859
|
+
var P = JSON.stringify(_, function(Y, w) {
|
|
860
|
+
var Q = ce(w);
|
|
861
|
+
return Q === "symbol" ? String(w) : w;
|
|
862
862
|
});
|
|
863
|
-
return new m("Invalid " +
|
|
863
|
+
return new m("Invalid " + D + " `" + g + "` of value `" + String(S) + "` " + ("supplied to `" + x + "`, expected one of " + P + "."));
|
|
864
864
|
}
|
|
865
|
-
return y(
|
|
866
|
-
}
|
|
867
|
-
function V(
|
|
868
|
-
function
|
|
869
|
-
if (typeof
|
|
870
|
-
return new m("Property `" +
|
|
871
|
-
var
|
|
872
|
-
if (
|
|
873
|
-
return new m("Invalid " +
|
|
874
|
-
for (var
|
|
875
|
-
if (n(
|
|
876
|
-
var
|
|
877
|
-
if (
|
|
878
|
-
return
|
|
865
|
+
return y(C);
|
|
866
|
+
}
|
|
867
|
+
function V(_) {
|
|
868
|
+
function C(L, R, x, D, g) {
|
|
869
|
+
if (typeof _ != "function")
|
|
870
|
+
return new m("Property `" + g + "` of component `" + x + "` has invalid PropType notation inside objectOf.");
|
|
871
|
+
var S = L[R], k = K(S);
|
|
872
|
+
if (k !== "object")
|
|
873
|
+
return new m("Invalid " + D + " `" + g + "` of type " + ("`" + k + "` supplied to `" + x + "`, expected an object."));
|
|
874
|
+
for (var P in S)
|
|
875
|
+
if (n(S, P)) {
|
|
876
|
+
var A = _(S, P, x, D, g + "." + P, o);
|
|
877
|
+
if (A instanceof Error)
|
|
878
|
+
return A;
|
|
879
879
|
}
|
|
880
880
|
return null;
|
|
881
881
|
}
|
|
882
|
-
return y(
|
|
882
|
+
return y(C);
|
|
883
883
|
}
|
|
884
|
-
function oe(
|
|
885
|
-
if (!Array.isArray(
|
|
884
|
+
function oe(_) {
|
|
885
|
+
if (!Array.isArray(_))
|
|
886
886
|
return process.env.NODE_ENV !== "production" && r("Invalid argument supplied to oneOfType, expected an instance of array."), l;
|
|
887
|
-
for (var
|
|
888
|
-
var
|
|
889
|
-
if (typeof
|
|
887
|
+
for (var C = 0; C < _.length; C++) {
|
|
888
|
+
var L = _[C];
|
|
889
|
+
if (typeof L != "function")
|
|
890
890
|
return r(
|
|
891
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " +
|
|
891
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + be(L) + " at index " + C + "."
|
|
892
892
|
), l;
|
|
893
893
|
}
|
|
894
|
-
function
|
|
895
|
-
for (var
|
|
896
|
-
var
|
|
894
|
+
function R(x, D, g, S, k) {
|
|
895
|
+
for (var P = [], A = 0; A < _.length; A++) {
|
|
896
|
+
var Y = _[A], w = Y(x, D, g, S, k, o);
|
|
897
897
|
if (w == null)
|
|
898
898
|
return null;
|
|
899
|
-
w.data && n(w.data, "expectedType") &&
|
|
899
|
+
w.data && n(w.data, "expectedType") && P.push(w.data.expectedType);
|
|
900
900
|
}
|
|
901
|
-
var
|
|
902
|
-
return new m("Invalid " +
|
|
901
|
+
var Q = P.length > 0 ? ", expected one of type [" + P.join(", ") + "]" : "";
|
|
902
|
+
return new m("Invalid " + S + " `" + k + "` supplied to " + ("`" + g + "`" + Q + "."));
|
|
903
903
|
}
|
|
904
|
-
return y(
|
|
904
|
+
return y(R);
|
|
905
905
|
}
|
|
906
|
-
function
|
|
907
|
-
function
|
|
908
|
-
return
|
|
906
|
+
function he() {
|
|
907
|
+
function _(C, L, R, x, D) {
|
|
908
|
+
return le(C[L]) ? null : new m("Invalid " + x + " `" + D + "` supplied to " + ("`" + R + "`, expected a ReactNode."));
|
|
909
909
|
}
|
|
910
|
-
return y(
|
|
910
|
+
return y(_);
|
|
911
911
|
}
|
|
912
|
-
function ae(
|
|
912
|
+
function ae(_, C, L, R, x) {
|
|
913
913
|
return new m(
|
|
914
|
-
(
|
|
914
|
+
(_ || "React class") + ": " + C + " type `" + L + "." + R + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + x + "`."
|
|
915
915
|
);
|
|
916
916
|
}
|
|
917
|
-
function
|
|
918
|
-
function
|
|
919
|
-
var
|
|
920
|
-
if (
|
|
921
|
-
return new m("Invalid " +
|
|
922
|
-
for (var
|
|
923
|
-
var
|
|
924
|
-
if (typeof
|
|
925
|
-
return ae(x,
|
|
926
|
-
var
|
|
927
|
-
if (
|
|
928
|
-
return
|
|
917
|
+
function pe(_) {
|
|
918
|
+
function C(L, R, x, D, g) {
|
|
919
|
+
var S = L[R], k = K(S);
|
|
920
|
+
if (k !== "object")
|
|
921
|
+
return new m("Invalid " + D + " `" + g + "` of type `" + k + "` " + ("supplied to `" + x + "`, expected `object`."));
|
|
922
|
+
for (var P in _) {
|
|
923
|
+
var A = _[P];
|
|
924
|
+
if (typeof A != "function")
|
|
925
|
+
return ae(x, D, g, P, ce(A));
|
|
926
|
+
var Y = A(S, P, x, D, g + "." + P, o);
|
|
927
|
+
if (Y)
|
|
928
|
+
return Y;
|
|
929
929
|
}
|
|
930
930
|
return null;
|
|
931
931
|
}
|
|
932
|
-
return y(
|
|
933
|
-
}
|
|
934
|
-
function
|
|
935
|
-
function
|
|
936
|
-
var
|
|
937
|
-
if (
|
|
938
|
-
return new m("Invalid " +
|
|
939
|
-
var
|
|
940
|
-
for (var
|
|
941
|
-
var
|
|
942
|
-
if (n(
|
|
943
|
-
return ae(x,
|
|
944
|
-
if (!
|
|
932
|
+
return y(C);
|
|
933
|
+
}
|
|
934
|
+
function ye(_) {
|
|
935
|
+
function C(L, R, x, D, g) {
|
|
936
|
+
var S = L[R], k = K(S);
|
|
937
|
+
if (k !== "object")
|
|
938
|
+
return new m("Invalid " + D + " `" + g + "` of type `" + k + "` " + ("supplied to `" + x + "`, expected `object`."));
|
|
939
|
+
var P = e({}, L[R], _);
|
|
940
|
+
for (var A in P) {
|
|
941
|
+
var Y = _[A];
|
|
942
|
+
if (n(_, A) && typeof Y != "function")
|
|
943
|
+
return ae(x, D, g, A, ce(Y));
|
|
944
|
+
if (!Y)
|
|
945
945
|
return new m(
|
|
946
|
-
"Invalid " +
|
|
947
|
-
Valid keys: ` + JSON.stringify(Object.keys(
|
|
946
|
+
"Invalid " + D + " `" + g + "` key `" + A + "` supplied to `" + x + "`.\nBad object: " + JSON.stringify(L[R], null, " ") + `
|
|
947
|
+
Valid keys: ` + JSON.stringify(Object.keys(_), null, " ")
|
|
948
948
|
);
|
|
949
|
-
var w =
|
|
949
|
+
var w = Y(S, A, x, D, g + "." + A, o);
|
|
950
950
|
if (w)
|
|
951
951
|
return w;
|
|
952
952
|
}
|
|
953
953
|
return null;
|
|
954
954
|
}
|
|
955
|
-
return y(
|
|
955
|
+
return y(C);
|
|
956
956
|
}
|
|
957
|
-
function
|
|
958
|
-
switch (typeof
|
|
957
|
+
function le(_) {
|
|
958
|
+
switch (typeof _) {
|
|
959
959
|
case "number":
|
|
960
960
|
case "string":
|
|
961
961
|
case "undefined":
|
|
962
962
|
return !0;
|
|
963
963
|
case "boolean":
|
|
964
|
-
return !
|
|
964
|
+
return !_;
|
|
965
965
|
case "object":
|
|
966
|
-
if (Array.isArray(
|
|
967
|
-
return
|
|
968
|
-
if (
|
|
966
|
+
if (Array.isArray(_))
|
|
967
|
+
return _.every(le);
|
|
968
|
+
if (_ === null || c(_))
|
|
969
969
|
return !0;
|
|
970
|
-
var
|
|
971
|
-
if (
|
|
972
|
-
var
|
|
973
|
-
if (
|
|
974
|
-
for (; !(
|
|
975
|
-
if (!
|
|
970
|
+
var C = h(_);
|
|
971
|
+
if (C) {
|
|
972
|
+
var L = C.call(_), R;
|
|
973
|
+
if (C !== _.entries) {
|
|
974
|
+
for (; !(R = L.next()).done; )
|
|
975
|
+
if (!le(R.value))
|
|
976
976
|
return !1;
|
|
977
977
|
} else
|
|
978
|
-
for (; !(
|
|
979
|
-
var x =
|
|
980
|
-
if (x && !
|
|
978
|
+
for (; !(R = L.next()).done; ) {
|
|
979
|
+
var x = R.value;
|
|
980
|
+
if (x && !le(x[1]))
|
|
981
981
|
return !1;
|
|
982
982
|
}
|
|
983
983
|
} else
|
|
@@ -987,56 +987,56 @@ Valid keys: ` + JSON.stringify(Object.keys(g), null, " ")
|
|
|
987
987
|
return !1;
|
|
988
988
|
}
|
|
989
989
|
}
|
|
990
|
-
function Ce(
|
|
991
|
-
return
|
|
990
|
+
function Ce(_, C) {
|
|
991
|
+
return _ === "symbol" ? !0 : C ? C["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && C instanceof Symbol : !1;
|
|
992
992
|
}
|
|
993
|
-
function K(
|
|
994
|
-
var
|
|
995
|
-
return Array.isArray(
|
|
993
|
+
function K(_) {
|
|
994
|
+
var C = typeof _;
|
|
995
|
+
return Array.isArray(_) ? "array" : _ instanceof RegExp ? "object" : Ce(C, _) ? "symbol" : C;
|
|
996
996
|
}
|
|
997
|
-
function
|
|
998
|
-
if (typeof
|
|
999
|
-
return "" +
|
|
1000
|
-
var
|
|
1001
|
-
if (
|
|
1002
|
-
if (
|
|
997
|
+
function ce(_) {
|
|
998
|
+
if (typeof _ > "u" || _ === null)
|
|
999
|
+
return "" + _;
|
|
1000
|
+
var C = K(_);
|
|
1001
|
+
if (C === "object") {
|
|
1002
|
+
if (_ instanceof Date)
|
|
1003
1003
|
return "date";
|
|
1004
|
-
if (
|
|
1004
|
+
if (_ instanceof RegExp)
|
|
1005
1005
|
return "regexp";
|
|
1006
1006
|
}
|
|
1007
|
-
return
|
|
1007
|
+
return C;
|
|
1008
1008
|
}
|
|
1009
|
-
function
|
|
1010
|
-
var
|
|
1011
|
-
switch (
|
|
1009
|
+
function be(_) {
|
|
1010
|
+
var C = ce(_);
|
|
1011
|
+
switch (C) {
|
|
1012
1012
|
case "array":
|
|
1013
1013
|
case "object":
|
|
1014
|
-
return "an " +
|
|
1014
|
+
return "an " + C;
|
|
1015
1015
|
case "boolean":
|
|
1016
1016
|
case "date":
|
|
1017
1017
|
case "regexp":
|
|
1018
|
-
return "a " +
|
|
1018
|
+
return "a " + C;
|
|
1019
1019
|
default:
|
|
1020
|
-
return
|
|
1020
|
+
return C;
|
|
1021
1021
|
}
|
|
1022
1022
|
}
|
|
1023
|
-
function Se(
|
|
1024
|
-
return !
|
|
1023
|
+
function Se(_) {
|
|
1024
|
+
return !_.constructor || !_.constructor.name ? f : _.constructor.name;
|
|
1025
1025
|
}
|
|
1026
1026
|
return v.checkPropTypes = a, v.resetWarningCache = a.resetWarningCache, v.PropTypes = v, v;
|
|
1027
1027
|
}, Je;
|
|
1028
1028
|
}
|
|
1029
|
-
var Ze,
|
|
1030
|
-
function
|
|
1031
|
-
if (
|
|
1032
|
-
|
|
1029
|
+
var Ze, Ot;
|
|
1030
|
+
function er() {
|
|
1031
|
+
if (Ot) return Ze;
|
|
1032
|
+
Ot = 1;
|
|
1033
1033
|
var t = /* @__PURE__ */ ft();
|
|
1034
1034
|
function e() {
|
|
1035
1035
|
}
|
|
1036
1036
|
function o() {
|
|
1037
1037
|
}
|
|
1038
1038
|
return o.resetWarningCache = e, Ze = function() {
|
|
1039
|
-
function n(l, c,
|
|
1039
|
+
function n(l, c, i, u, d, h) {
|
|
1040
1040
|
if (h !== t) {
|
|
1041
1041
|
var f = new Error(
|
|
1042
1042
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
|
|
@@ -1074,42 +1074,42 @@ function Zn() {
|
|
|
1074
1074
|
return r.PropTypes = r, r;
|
|
1075
1075
|
}, Ze;
|
|
1076
1076
|
}
|
|
1077
|
-
var
|
|
1078
|
-
function
|
|
1079
|
-
if (
|
|
1080
|
-
if (
|
|
1081
|
-
var t =
|
|
1082
|
-
He.exports = /* @__PURE__ */
|
|
1077
|
+
var $t;
|
|
1078
|
+
function tr() {
|
|
1079
|
+
if ($t) return He.exports;
|
|
1080
|
+
if ($t = 1, process.env.NODE_ENV !== "production") {
|
|
1081
|
+
var t = Kt(), e = !0;
|
|
1082
|
+
He.exports = /* @__PURE__ */ Zn()(t.isElement, e);
|
|
1083
1083
|
} else
|
|
1084
|
-
He.exports = /* @__PURE__ */
|
|
1084
|
+
He.exports = /* @__PURE__ */ er()();
|
|
1085
1085
|
return He.exports;
|
|
1086
1086
|
}
|
|
1087
|
-
var
|
|
1088
|
-
const q = /* @__PURE__ */ ze(
|
|
1087
|
+
var nr = /* @__PURE__ */ tr();
|
|
1088
|
+
const q = /* @__PURE__ */ ze(nr);
|
|
1089
1089
|
var et, Rt;
|
|
1090
|
-
function
|
|
1090
|
+
function rr() {
|
|
1091
1091
|
if (Rt) return et;
|
|
1092
1092
|
Rt = 1;
|
|
1093
1093
|
function t(c) {
|
|
1094
1094
|
return c && typeof c == "object" && "default" in c ? c.default : c;
|
|
1095
1095
|
}
|
|
1096
1096
|
var e = ke, o = t(e);
|
|
1097
|
-
function n(c,
|
|
1098
|
-
return
|
|
1097
|
+
function n(c, i, u) {
|
|
1098
|
+
return i in c ? Object.defineProperty(c, i, {
|
|
1099
1099
|
value: u,
|
|
1100
1100
|
enumerable: !0,
|
|
1101
1101
|
configurable: !0,
|
|
1102
1102
|
writable: !0
|
|
1103
|
-
}) : c[
|
|
1103
|
+
}) : c[i] = u, c;
|
|
1104
1104
|
}
|
|
1105
|
-
function a(c,
|
|
1106
|
-
c.prototype = Object.create(
|
|
1105
|
+
function a(c, i) {
|
|
1106
|
+
c.prototype = Object.create(i.prototype), c.prototype.constructor = c, c.__proto__ = i;
|
|
1107
1107
|
}
|
|
1108
1108
|
var r = !!(typeof window < "u" && window.document && window.document.createElement);
|
|
1109
|
-
function l(c,
|
|
1109
|
+
function l(c, i, u) {
|
|
1110
1110
|
if (typeof c != "function")
|
|
1111
1111
|
throw new Error("Expected reducePropsToState to be a function.");
|
|
1112
|
-
if (typeof
|
|
1112
|
+
if (typeof i != "function")
|
|
1113
1113
|
throw new Error("Expected handleStateChangeOnClient to be a function.");
|
|
1114
1114
|
if (typeof u < "u" && typeof u != "function")
|
|
1115
1115
|
throw new Error("Expected mapStateOnServer to either be undefined or a function.");
|
|
@@ -1123,7 +1123,7 @@ function nr() {
|
|
|
1123
1123
|
function m() {
|
|
1124
1124
|
E = c(v.map(function(b) {
|
|
1125
1125
|
return b.props;
|
|
1126
|
-
})), y.canUseDOM ?
|
|
1126
|
+
})), y.canUseDOM ? i(E) : u && (E = u(E));
|
|
1127
1127
|
}
|
|
1128
1128
|
var y = /* @__PURE__ */ (function(b) {
|
|
1129
1129
|
a(I, b);
|
|
@@ -1155,54 +1155,54 @@ function nr() {
|
|
|
1155
1155
|
}
|
|
1156
1156
|
return et = l, et;
|
|
1157
1157
|
}
|
|
1158
|
-
var
|
|
1159
|
-
const
|
|
1160
|
-
var tt,
|
|
1161
|
-
function
|
|
1162
|
-
if (
|
|
1163
|
-
|
|
1158
|
+
var or = rr();
|
|
1159
|
+
const ar = /* @__PURE__ */ ze(or);
|
|
1160
|
+
var tt, Lt;
|
|
1161
|
+
function sr() {
|
|
1162
|
+
if (Lt) return tt;
|
|
1163
|
+
Lt = 1;
|
|
1164
1164
|
var t = typeof Element < "u", e = typeof Map == "function", o = typeof Set == "function", n = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView;
|
|
1165
1165
|
function a(r, l) {
|
|
1166
1166
|
if (r === l) return !0;
|
|
1167
1167
|
if (r && l && typeof r == "object" && typeof l == "object") {
|
|
1168
1168
|
if (r.constructor !== l.constructor) return !1;
|
|
1169
|
-
var c,
|
|
1169
|
+
var c, i, u;
|
|
1170
1170
|
if (Array.isArray(r)) {
|
|
1171
1171
|
if (c = r.length, c != l.length) return !1;
|
|
1172
|
-
for (
|
|
1173
|
-
if (!a(r[
|
|
1172
|
+
for (i = c; i-- !== 0; )
|
|
1173
|
+
if (!a(r[i], l[i])) return !1;
|
|
1174
1174
|
return !0;
|
|
1175
1175
|
}
|
|
1176
1176
|
var d;
|
|
1177
1177
|
if (e && r instanceof Map && l instanceof Map) {
|
|
1178
1178
|
if (r.size !== l.size) return !1;
|
|
1179
|
-
for (d = r.entries(); !(
|
|
1180
|
-
if (!l.has(
|
|
1181
|
-
for (d = r.entries(); !(
|
|
1182
|
-
if (!a(
|
|
1179
|
+
for (d = r.entries(); !(i = d.next()).done; )
|
|
1180
|
+
if (!l.has(i.value[0])) return !1;
|
|
1181
|
+
for (d = r.entries(); !(i = d.next()).done; )
|
|
1182
|
+
if (!a(i.value[1], l.get(i.value[0]))) return !1;
|
|
1183
1183
|
return !0;
|
|
1184
1184
|
}
|
|
1185
1185
|
if (o && r instanceof Set && l instanceof Set) {
|
|
1186
1186
|
if (r.size !== l.size) return !1;
|
|
1187
|
-
for (d = r.entries(); !(
|
|
1188
|
-
if (!l.has(
|
|
1187
|
+
for (d = r.entries(); !(i = d.next()).done; )
|
|
1188
|
+
if (!l.has(i.value[0])) return !1;
|
|
1189
1189
|
return !0;
|
|
1190
1190
|
}
|
|
1191
1191
|
if (n && ArrayBuffer.isView(r) && ArrayBuffer.isView(l)) {
|
|
1192
1192
|
if (c = r.length, c != l.length) return !1;
|
|
1193
|
-
for (
|
|
1194
|
-
if (r[
|
|
1193
|
+
for (i = c; i-- !== 0; )
|
|
1194
|
+
if (r[i] !== l[i]) return !1;
|
|
1195
1195
|
return !0;
|
|
1196
1196
|
}
|
|
1197
1197
|
if (r.constructor === RegExp) return r.source === l.source && r.flags === l.flags;
|
|
1198
1198
|
if (r.valueOf !== Object.prototype.valueOf && typeof r.valueOf == "function" && typeof l.valueOf == "function") return r.valueOf() === l.valueOf();
|
|
1199
1199
|
if (r.toString !== Object.prototype.toString && typeof r.toString == "function" && typeof l.toString == "function") return r.toString() === l.toString();
|
|
1200
1200
|
if (u = Object.keys(r), c = u.length, c !== Object.keys(l).length) return !1;
|
|
1201
|
-
for (
|
|
1202
|
-
if (!Object.prototype.hasOwnProperty.call(l, u[
|
|
1201
|
+
for (i = c; i-- !== 0; )
|
|
1202
|
+
if (!Object.prototype.hasOwnProperty.call(l, u[i])) return !1;
|
|
1203
1203
|
if (t && r instanceof Element) return !1;
|
|
1204
|
-
for (
|
|
1205
|
-
if (!((u[
|
|
1204
|
+
for (i = c; i-- !== 0; )
|
|
1205
|
+
if (!((u[i] === "_owner" || u[i] === "__v" || u[i] === "__o") && r.$$typeof) && !a(r[u[i]], l[u[i]]))
|
|
1206
1206
|
return !1;
|
|
1207
1207
|
return !0;
|
|
1208
1208
|
}
|
|
@@ -1211,17 +1211,17 @@ function ar() {
|
|
|
1211
1211
|
return tt = function(l, c) {
|
|
1212
1212
|
try {
|
|
1213
1213
|
return a(l, c);
|
|
1214
|
-
} catch (
|
|
1215
|
-
if ((
|
|
1214
|
+
} catch (i) {
|
|
1215
|
+
if ((i.message || "").match(/stack|recursion/i))
|
|
1216
1216
|
return console.warn("react-fast-compare cannot handle circular refs"), !1;
|
|
1217
|
-
throw
|
|
1217
|
+
throw i;
|
|
1218
1218
|
}
|
|
1219
1219
|
}, tt;
|
|
1220
1220
|
}
|
|
1221
|
-
var
|
|
1222
|
-
const
|
|
1223
|
-
var
|
|
1224
|
-
const
|
|
1221
|
+
var ir = sr();
|
|
1222
|
+
const cr = /* @__PURE__ */ ze(ir);
|
|
1223
|
+
var lr = Qt();
|
|
1224
|
+
const ur = /* @__PURE__ */ ze(lr);
|
|
1225
1225
|
var we = {
|
|
1226
1226
|
BODY: "bodyAttributes",
|
|
1227
1227
|
HTML: "htmlAttributes",
|
|
@@ -1237,7 +1237,7 @@ var we = {
|
|
|
1237
1237
|
SCRIPT: "script",
|
|
1238
1238
|
STYLE: "style",
|
|
1239
1239
|
TITLE: "title"
|
|
1240
|
-
},
|
|
1240
|
+
}, Mt = Object.keys(O).map(function(t) {
|
|
1241
1241
|
return O[t];
|
|
1242
1242
|
}), W = {
|
|
1243
1243
|
CHARSET: "charset",
|
|
@@ -1266,16 +1266,16 @@ var we = {
|
|
|
1266
1266
|
ENCODE_SPECIAL_CHARACTERS: "encodeSpecialCharacters",
|
|
1267
1267
|
ON_CHANGE_CLIENT_STATE: "onChangeClientState",
|
|
1268
1268
|
TITLE_TEMPLATE: "titleTemplate"
|
|
1269
|
-
},
|
|
1269
|
+
}, dr = Object.keys(We).reduce(function(t, e) {
|
|
1270
1270
|
return t[We[e]] = e, t;
|
|
1271
|
-
}, {}),
|
|
1271
|
+
}, {}), fr = [O.NOSCRIPT, O.SCRIPT, O.STYLE], ie = "data-react-helmet", hr = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
1272
1272
|
return typeof t;
|
|
1273
1273
|
} : function(t) {
|
|
1274
1274
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
1275
|
-
},
|
|
1275
|
+
}, pr = function(t, e) {
|
|
1276
1276
|
if (!(t instanceof e))
|
|
1277
1277
|
throw new TypeError("Cannot call a class as a function");
|
|
1278
|
-
},
|
|
1278
|
+
}, mr = /* @__PURE__ */ (function() {
|
|
1279
1279
|
function t(e, o) {
|
|
1280
1280
|
for (var n = 0; n < o.length; n++) {
|
|
1281
1281
|
var a = o[n];
|
|
@@ -1292,7 +1292,7 @@ var we = {
|
|
|
1292
1292
|
Object.prototype.hasOwnProperty.call(o, n) && (t[n] = o[n]);
|
|
1293
1293
|
}
|
|
1294
1294
|
return t;
|
|
1295
|
-
},
|
|
1295
|
+
}, vr = function(t, e) {
|
|
1296
1296
|
if (typeof e != "function" && e !== null)
|
|
1297
1297
|
throw new TypeError("Super expression must either be null or a function, not " + typeof e);
|
|
1298
1298
|
t.prototype = Object.create(e && e.prototype, {
|
|
@@ -1303,19 +1303,19 @@ var we = {
|
|
|
1303
1303
|
configurable: !0
|
|
1304
1304
|
}
|
|
1305
1305
|
}), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
|
|
1306
|
-
},
|
|
1306
|
+
}, Dt = function(t, e) {
|
|
1307
1307
|
var o = {};
|
|
1308
1308
|
for (var n in t)
|
|
1309
1309
|
e.indexOf(n) >= 0 || Object.prototype.hasOwnProperty.call(t, n) && (o[n] = t[n]);
|
|
1310
1310
|
return o;
|
|
1311
|
-
},
|
|
1311
|
+
}, gr = function(t, e) {
|
|
1312
1312
|
if (!t)
|
|
1313
1313
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1314
1314
|
return e && (typeof e == "object" || typeof e == "function") ? e : t;
|
|
1315
1315
|
}, at = function(e) {
|
|
1316
1316
|
var o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
|
|
1317
1317
|
return o === !1 ? String(e) : String(e).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
1318
|
-
},
|
|
1318
|
+
}, _r = function(e) {
|
|
1319
1319
|
var o = Ne(e, O.TITLE), n = Ne(e, je.TITLE_TEMPLATE);
|
|
1320
1320
|
if (n && o)
|
|
1321
1321
|
return n.replace(/%s/g, function() {
|
|
@@ -1323,7 +1323,7 @@ var we = {
|
|
|
1323
1323
|
});
|
|
1324
1324
|
var a = Ne(e, je.DEFAULT_TITLE);
|
|
1325
1325
|
return o || a || void 0;
|
|
1326
|
-
},
|
|
1326
|
+
}, yr = function(e) {
|
|
1327
1327
|
return Ne(e, je.ON_CHANGE_CLIENT_STATE) || function() {
|
|
1328
1328
|
};
|
|
1329
1329
|
}, nt = function(e, o) {
|
|
@@ -1334,7 +1334,7 @@ var we = {
|
|
|
1334
1334
|
}).reduce(function(n, a) {
|
|
1335
1335
|
return re({}, n, a);
|
|
1336
1336
|
}, {});
|
|
1337
|
-
},
|
|
1337
|
+
}, br = function(e, o) {
|
|
1338
1338
|
return o.filter(function(n) {
|
|
1339
1339
|
return typeof n[O.BASE] < "u";
|
|
1340
1340
|
}).map(function(n) {
|
|
@@ -1342,16 +1342,16 @@ var we = {
|
|
|
1342
1342
|
}).reverse().reduce(function(n, a) {
|
|
1343
1343
|
if (!n.length)
|
|
1344
1344
|
for (var r = Object.keys(a), l = 0; l < r.length; l++) {
|
|
1345
|
-
var c = r[l],
|
|
1346
|
-
if (e.indexOf(
|
|
1345
|
+
var c = r[l], i = c.toLowerCase();
|
|
1346
|
+
if (e.indexOf(i) !== -1 && a[i])
|
|
1347
1347
|
return n.concat(a);
|
|
1348
1348
|
}
|
|
1349
1349
|
return n;
|
|
1350
1350
|
}, []);
|
|
1351
|
-
},
|
|
1351
|
+
}, Re = function(e, o, n) {
|
|
1352
1352
|
var a = {};
|
|
1353
1353
|
return n.filter(function(r) {
|
|
1354
|
-
return Array.isArray(r[e]) ? !0 : (typeof r[e] < "u" && it("Helmet: " + e + ' should be of type "Array". Instead found type "' +
|
|
1354
|
+
return Array.isArray(r[e]) ? !0 : (typeof r[e] < "u" && it("Helmet: " + e + ' should be of type "Array". Instead found type "' + hr(r[e]) + '"'), !1);
|
|
1355
1355
|
}).map(function(r) {
|
|
1356
1356
|
return r[e];
|
|
1357
1357
|
}).reverse().reduce(function(r, l) {
|
|
@@ -1368,8 +1368,8 @@ var we = {
|
|
|
1368
1368
|
}).reverse().forEach(function(f) {
|
|
1369
1369
|
return r.push(f);
|
|
1370
1370
|
});
|
|
1371
|
-
for (var
|
|
1372
|
-
var d =
|
|
1371
|
+
for (var i = Object.keys(c), u = 0; u < i.length; u++) {
|
|
1372
|
+
var d = i[u], h = ur({}, a[d], c[d]);
|
|
1373
1373
|
a[d] = h;
|
|
1374
1374
|
}
|
|
1375
1375
|
return r;
|
|
@@ -1381,20 +1381,20 @@ var we = {
|
|
|
1381
1381
|
return a[o];
|
|
1382
1382
|
}
|
|
1383
1383
|
return null;
|
|
1384
|
-
},
|
|
1384
|
+
}, Tr = function(e) {
|
|
1385
1385
|
return {
|
|
1386
|
-
baseTag:
|
|
1386
|
+
baseTag: br([W.HREF, W.TARGET], e),
|
|
1387
1387
|
bodyAttributes: nt(we.BODY, e),
|
|
1388
1388
|
defer: Ne(e, je.DEFER),
|
|
1389
1389
|
encode: Ne(e, je.ENCODE_SPECIAL_CHARACTERS),
|
|
1390
1390
|
htmlAttributes: nt(we.HTML, e),
|
|
1391
|
-
linkTags:
|
|
1392
|
-
metaTags:
|
|
1393
|
-
noscriptTags:
|
|
1394
|
-
onChangeClientState:
|
|
1395
|
-
scriptTags:
|
|
1396
|
-
styleTags:
|
|
1397
|
-
title:
|
|
1391
|
+
linkTags: Re(O.LINK, [W.REL, W.HREF], e),
|
|
1392
|
+
metaTags: Re(O.META, [W.NAME, W.CHARSET, W.HTTPEQUIV, W.PROPERTY, W.ITEM_PROP], e),
|
|
1393
|
+
noscriptTags: Re(O.NOSCRIPT, [W.INNER_HTML], e),
|
|
1394
|
+
onChangeClientState: yr(e),
|
|
1395
|
+
scriptTags: Re(O.SCRIPT, [W.SRC, W.INNER_HTML], e),
|
|
1396
|
+
styleTags: Re(O.STYLE, [W.CSS_TEXT], e),
|
|
1397
|
+
title: _r(e),
|
|
1398
1398
|
titleAttributes: nt(we.TITLE, e)
|
|
1399
1399
|
};
|
|
1400
1400
|
}, st = (function() {
|
|
@@ -1405,40 +1405,40 @@ var we = {
|
|
|
1405
1405
|
st(e);
|
|
1406
1406
|
}, 0);
|
|
1407
1407
|
};
|
|
1408
|
-
})(),
|
|
1408
|
+
})(), jt = function(e) {
|
|
1409
1409
|
return clearTimeout(e);
|
|
1410
|
-
},
|
|
1410
|
+
}, wr = typeof window < "u" ? window.requestAnimationFrame && window.requestAnimationFrame.bind(window) || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || st : global.requestAnimationFrame || st, Er = typeof window < "u" ? window.cancelAnimationFrame || window.webkitCancelAnimationFrame || window.mozCancelAnimationFrame || jt : global.cancelAnimationFrame || jt, it = function(e) {
|
|
1411
1411
|
return console && typeof console.warn == "function" && console.warn(e);
|
|
1412
|
-
}, Le = null,
|
|
1413
|
-
Le &&
|
|
1414
|
-
|
|
1412
|
+
}, Le = null, Cr = function(e) {
|
|
1413
|
+
Le && Er(Le), e.defer ? Le = wr(function() {
|
|
1414
|
+
Bt(e, function() {
|
|
1415
1415
|
Le = null;
|
|
1416
1416
|
});
|
|
1417
|
-
}) : (
|
|
1418
|
-
},
|
|
1419
|
-
var n = e.baseTag, a = e.bodyAttributes, r = e.htmlAttributes, l = e.linkTags, c = e.metaTags,
|
|
1420
|
-
ct(O.BODY, a), ct(O.HTML, r),
|
|
1417
|
+
}) : (Bt(e), Le = null);
|
|
1418
|
+
}, Bt = function(e, o) {
|
|
1419
|
+
var n = e.baseTag, a = e.bodyAttributes, r = e.htmlAttributes, l = e.linkTags, c = e.metaTags, i = e.noscriptTags, u = e.onChangeClientState, d = e.scriptTags, h = e.styleTags, f = e.title, v = e.titleAttributes;
|
|
1420
|
+
ct(O.BODY, a), ct(O.HTML, r), Sr(f, v);
|
|
1421
1421
|
var E = {
|
|
1422
1422
|
baseTag: Pe(O.BASE, n),
|
|
1423
1423
|
linkTags: Pe(O.LINK, l),
|
|
1424
1424
|
metaTags: Pe(O.META, c),
|
|
1425
|
-
noscriptTags: Pe(O.NOSCRIPT,
|
|
1425
|
+
noscriptTags: Pe(O.NOSCRIPT, i),
|
|
1426
1426
|
scriptTags: Pe(O.SCRIPT, d),
|
|
1427
1427
|
styleTags: Pe(O.STYLE, h)
|
|
1428
1428
|
}, m = {}, y = {};
|
|
1429
1429
|
Object.keys(E).forEach(function(b) {
|
|
1430
|
-
var I = E[b], N = I.newTags,
|
|
1431
|
-
N.length && (m[b] = N),
|
|
1430
|
+
var I = E[b], N = I.newTags, M = I.oldTags;
|
|
1431
|
+
N.length && (m[b] = N), M.length && (y[b] = E[b].oldTags);
|
|
1432
1432
|
}), o && o(), u(e, m, y);
|
|
1433
|
-
},
|
|
1433
|
+
}, Zt = function(e) {
|
|
1434
1434
|
return Array.isArray(e) ? e.join("") : e;
|
|
1435
|
-
},
|
|
1436
|
-
typeof e < "u" && document.title !== e && (document.title =
|
|
1435
|
+
}, Sr = function(e, o) {
|
|
1436
|
+
typeof e < "u" && document.title !== e && (document.title = Zt(e)), ct(O.TITLE, o);
|
|
1437
1437
|
}, ct = function(e, o) {
|
|
1438
1438
|
var n = document.getElementsByTagName(e)[0];
|
|
1439
1439
|
if (n) {
|
|
1440
|
-
for (var a = n.getAttribute(ie), r = a ? a.split(",") : [], l = [].concat(r), c = Object.keys(o),
|
|
1441
|
-
var u = c[
|
|
1440
|
+
for (var a = n.getAttribute(ie), r = a ? a.split(",") : [], l = [].concat(r), c = Object.keys(o), i = 0; i < c.length; i++) {
|
|
1441
|
+
var u = c[i], d = o[u] || "";
|
|
1442
1442
|
n.getAttribute(u) !== d && n.setAttribute(u, d), r.indexOf(u) === -1 && r.push(u);
|
|
1443
1443
|
var h = l.indexOf(u);
|
|
1444
1444
|
h !== -1 && l.splice(h, 1);
|
|
@@ -1449,74 +1449,74 @@ var we = {
|
|
|
1449
1449
|
}
|
|
1450
1450
|
}, Pe = function(e, o) {
|
|
1451
1451
|
var n = document.head || document.querySelector(O.HEAD), a = n.querySelectorAll(e + "[" + ie + "]"), r = Array.prototype.slice.call(a), l = [], c = void 0;
|
|
1452
|
-
return o && o.length && o.forEach(function(
|
|
1452
|
+
return o && o.length && o.forEach(function(i) {
|
|
1453
1453
|
var u = document.createElement(e);
|
|
1454
|
-
for (var d in
|
|
1455
|
-
if (
|
|
1454
|
+
for (var d in i)
|
|
1455
|
+
if (i.hasOwnProperty(d))
|
|
1456
1456
|
if (d === W.INNER_HTML)
|
|
1457
|
-
u.innerHTML =
|
|
1457
|
+
u.innerHTML = i.innerHTML;
|
|
1458
1458
|
else if (d === W.CSS_TEXT)
|
|
1459
|
-
u.styleSheet ? u.styleSheet.cssText =
|
|
1459
|
+
u.styleSheet ? u.styleSheet.cssText = i.cssText : u.appendChild(document.createTextNode(i.cssText));
|
|
1460
1460
|
else {
|
|
1461
|
-
var h = typeof
|
|
1461
|
+
var h = typeof i[d] > "u" ? "" : i[d];
|
|
1462
1462
|
u.setAttribute(d, h);
|
|
1463
1463
|
}
|
|
1464
1464
|
u.setAttribute(ie, "true"), r.some(function(f, v) {
|
|
1465
1465
|
return c = v, u.isEqualNode(f);
|
|
1466
1466
|
}) ? r.splice(c, 1) : l.push(u);
|
|
1467
|
-
}), r.forEach(function(
|
|
1468
|
-
return
|
|
1469
|
-
}), l.forEach(function(
|
|
1470
|
-
return n.appendChild(
|
|
1467
|
+
}), r.forEach(function(i) {
|
|
1468
|
+
return i.parentNode.removeChild(i);
|
|
1469
|
+
}), l.forEach(function(i) {
|
|
1470
|
+
return n.appendChild(i);
|
|
1471
1471
|
}), {
|
|
1472
1472
|
oldTags: r,
|
|
1473
1473
|
newTags: l
|
|
1474
1474
|
};
|
|
1475
|
-
},
|
|
1475
|
+
}, en = function(e) {
|
|
1476
1476
|
return Object.keys(e).reduce(function(o, n) {
|
|
1477
1477
|
var a = typeof e[n] < "u" ? n + '="' + e[n] + '"' : "" + n;
|
|
1478
1478
|
return o ? o + " " + a : a;
|
|
1479
1479
|
}, "");
|
|
1480
|
-
},
|
|
1481
|
-
var r =
|
|
1480
|
+
}, Pr = function(e, o, n, a) {
|
|
1481
|
+
var r = en(n), l = Zt(o);
|
|
1482
1482
|
return r ? "<" + e + " " + ie + '="true" ' + r + ">" + at(l, a) + "</" + e + ">" : "<" + e + " " + ie + '="true">' + at(l, a) + "</" + e + ">";
|
|
1483
|
-
},
|
|
1483
|
+
}, Ir = function(e, o, n) {
|
|
1484
1484
|
return o.reduce(function(a, r) {
|
|
1485
1485
|
var l = Object.keys(r).filter(function(u) {
|
|
1486
1486
|
return !(u === W.INNER_HTML || u === W.CSS_TEXT);
|
|
1487
1487
|
}).reduce(function(u, d) {
|
|
1488
1488
|
var h = typeof r[d] > "u" ? d : d + '="' + at(r[d], n) + '"';
|
|
1489
1489
|
return u ? u + " " + h : h;
|
|
1490
|
-
}, ""), c = r.innerHTML || r.cssText || "",
|
|
1491
|
-
return a + "<" + e + " " + ie + '="true" ' + l + (
|
|
1490
|
+
}, ""), c = r.innerHTML || r.cssText || "", i = fr.indexOf(e) === -1;
|
|
1491
|
+
return a + "<" + e + " " + ie + '="true" ' + l + (i ? "/>" : ">" + c + "</" + e + ">");
|
|
1492
1492
|
}, "");
|
|
1493
|
-
},
|
|
1493
|
+
}, tn = function(e) {
|
|
1494
1494
|
var o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
1495
1495
|
return Object.keys(e).reduce(function(n, a) {
|
|
1496
1496
|
return n[We[a] || a] = e[a], n;
|
|
1497
1497
|
}, o);
|
|
1498
|
-
},
|
|
1498
|
+
}, Ar = function(e) {
|
|
1499
1499
|
var o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
1500
1500
|
return Object.keys(e).reduce(function(n, a) {
|
|
1501
|
-
return n[
|
|
1501
|
+
return n[dr[a] || a] = e[a], n;
|
|
1502
1502
|
}, o);
|
|
1503
|
-
},
|
|
1503
|
+
}, kr = function(e, o, n) {
|
|
1504
1504
|
var a, r = (a = {
|
|
1505
1505
|
key: o
|
|
1506
|
-
}, a[ie] = !0, a), l =
|
|
1506
|
+
}, a[ie] = !0, a), l = tn(n, r);
|
|
1507
1507
|
return [ke.createElement(O.TITLE, l, o)];
|
|
1508
|
-
},
|
|
1508
|
+
}, Nr = function(e, o) {
|
|
1509
1509
|
return o.map(function(n, a) {
|
|
1510
1510
|
var r, l = (r = {
|
|
1511
1511
|
key: a
|
|
1512
1512
|
}, r[ie] = !0, r);
|
|
1513
1513
|
return Object.keys(n).forEach(function(c) {
|
|
1514
|
-
var
|
|
1515
|
-
if (
|
|
1514
|
+
var i = We[c] || c;
|
|
1515
|
+
if (i === W.INNER_HTML || i === W.CSS_TEXT) {
|
|
1516
1516
|
var u = n.innerHTML || n.cssText;
|
|
1517
1517
|
l.dangerouslySetInnerHTML = { __html: u };
|
|
1518
1518
|
} else
|
|
1519
|
-
l[
|
|
1519
|
+
l[i] = n[c];
|
|
1520
1520
|
}), ke.createElement(e, l);
|
|
1521
1521
|
});
|
|
1522
1522
|
}, ue = function(e, o, n) {
|
|
@@ -1524,77 +1524,77 @@ var we = {
|
|
|
1524
1524
|
case O.TITLE:
|
|
1525
1525
|
return {
|
|
1526
1526
|
toComponent: function() {
|
|
1527
|
-
return
|
|
1527
|
+
return kr(e, o.title, o.titleAttributes);
|
|
1528
1528
|
},
|
|
1529
1529
|
toString: function() {
|
|
1530
|
-
return
|
|
1530
|
+
return Pr(e, o.title, o.titleAttributes, n);
|
|
1531
1531
|
}
|
|
1532
1532
|
};
|
|
1533
1533
|
case we.BODY:
|
|
1534
1534
|
case we.HTML:
|
|
1535
1535
|
return {
|
|
1536
1536
|
toComponent: function() {
|
|
1537
|
-
return
|
|
1537
|
+
return tn(o);
|
|
1538
1538
|
},
|
|
1539
1539
|
toString: function() {
|
|
1540
|
-
return
|
|
1540
|
+
return en(o);
|
|
1541
1541
|
}
|
|
1542
1542
|
};
|
|
1543
1543
|
default:
|
|
1544
1544
|
return {
|
|
1545
1545
|
toComponent: function() {
|
|
1546
|
-
return
|
|
1546
|
+
return Nr(e, o);
|
|
1547
1547
|
},
|
|
1548
1548
|
toString: function() {
|
|
1549
|
-
return
|
|
1549
|
+
return Ir(e, o, n);
|
|
1550
1550
|
}
|
|
1551
1551
|
};
|
|
1552
1552
|
}
|
|
1553
|
-
},
|
|
1554
|
-
var o = e.baseTag, n = e.bodyAttributes, a = e.encode, r = e.htmlAttributes, l = e.linkTags, c = e.metaTags,
|
|
1553
|
+
}, nn = function(e) {
|
|
1554
|
+
var o = e.baseTag, n = e.bodyAttributes, a = e.encode, r = e.htmlAttributes, l = e.linkTags, c = e.metaTags, i = e.noscriptTags, u = e.scriptTags, d = e.styleTags, h = e.title, f = h === void 0 ? "" : h, v = e.titleAttributes;
|
|
1555
1555
|
return {
|
|
1556
1556
|
base: ue(O.BASE, o, a),
|
|
1557
1557
|
bodyAttributes: ue(we.BODY, n, a),
|
|
1558
1558
|
htmlAttributes: ue(we.HTML, r, a),
|
|
1559
1559
|
link: ue(O.LINK, l, a),
|
|
1560
1560
|
meta: ue(O.META, c, a),
|
|
1561
|
-
noscript: ue(O.NOSCRIPT,
|
|
1561
|
+
noscript: ue(O.NOSCRIPT, i, a),
|
|
1562
1562
|
script: ue(O.SCRIPT, u, a),
|
|
1563
1563
|
style: ue(O.STYLE, d, a),
|
|
1564
1564
|
title: ue(O.TITLE, { title: f, titleAttributes: v }, a)
|
|
1565
1565
|
};
|
|
1566
|
-
},
|
|
1566
|
+
}, xr = function(e) {
|
|
1567
1567
|
var o, n;
|
|
1568
1568
|
return n = o = (function(a) {
|
|
1569
|
-
|
|
1569
|
+
vr(r, a);
|
|
1570
1570
|
function r() {
|
|
1571
|
-
return
|
|
1571
|
+
return pr(this, r), gr(this, a.apply(this, arguments));
|
|
1572
1572
|
}
|
|
1573
1573
|
return r.prototype.shouldComponentUpdate = function(c) {
|
|
1574
|
-
return !
|
|
1575
|
-
}, r.prototype.mapNestedChildrenToProps = function(c,
|
|
1576
|
-
if (!
|
|
1574
|
+
return !cr(this.props, c);
|
|
1575
|
+
}, r.prototype.mapNestedChildrenToProps = function(c, i) {
|
|
1576
|
+
if (!i)
|
|
1577
1577
|
return null;
|
|
1578
1578
|
switch (c.type) {
|
|
1579
1579
|
case O.SCRIPT:
|
|
1580
1580
|
case O.NOSCRIPT:
|
|
1581
1581
|
return {
|
|
1582
|
-
innerHTML:
|
|
1582
|
+
innerHTML: i
|
|
1583
1583
|
};
|
|
1584
1584
|
case O.STYLE:
|
|
1585
1585
|
return {
|
|
1586
|
-
cssText:
|
|
1586
|
+
cssText: i
|
|
1587
1587
|
};
|
|
1588
1588
|
}
|
|
1589
1589
|
throw new Error("<" + c.type + " /> elements are self-closing and can not contain children. Refer to our API for more information.");
|
|
1590
1590
|
}, r.prototype.flattenArrayTypeChildren = function(c) {
|
|
1591
|
-
var
|
|
1592
|
-
return re({}, d, (
|
|
1591
|
+
var i, u = c.child, d = c.arrayTypeChildren, h = c.newChildProps, f = c.nestedChildren;
|
|
1592
|
+
return re({}, d, (i = {}, i[u.type] = [].concat(d[u.type] || [], [re({}, h, this.mapNestedChildrenToProps(u, f))]), i));
|
|
1593
1593
|
}, r.prototype.mapObjectTypeChildren = function(c) {
|
|
1594
|
-
var
|
|
1594
|
+
var i, u, d = c.child, h = c.newProps, f = c.newChildProps, v = c.nestedChildren;
|
|
1595
1595
|
switch (d.type) {
|
|
1596
1596
|
case O.TITLE:
|
|
1597
|
-
return re({}, h, (
|
|
1597
|
+
return re({}, h, (i = {}, i[d.type] = v, i.titleAttributes = re({}, f), i));
|
|
1598
1598
|
case O.BODY:
|
|
1599
1599
|
return re({}, h, {
|
|
1600
1600
|
bodyAttributes: re({}, f)
|
|
@@ -1605,29 +1605,29 @@ var we = {
|
|
|
1605
1605
|
});
|
|
1606
1606
|
}
|
|
1607
1607
|
return re({}, h, (u = {}, u[d.type] = re({}, f), u));
|
|
1608
|
-
}, r.prototype.mapArrayTypeChildrenToProps = function(c,
|
|
1609
|
-
var u = re({},
|
|
1608
|
+
}, r.prototype.mapArrayTypeChildrenToProps = function(c, i) {
|
|
1609
|
+
var u = re({}, i);
|
|
1610
1610
|
return Object.keys(c).forEach(function(d) {
|
|
1611
1611
|
var h;
|
|
1612
1612
|
u = re({}, u, (h = {}, h[d] = c[d], h));
|
|
1613
1613
|
}), u;
|
|
1614
|
-
}, r.prototype.warnOnInvalidChildren = function(c,
|
|
1614
|
+
}, r.prototype.warnOnInvalidChildren = function(c, i) {
|
|
1615
1615
|
if (process.env.NODE_ENV !== "production") {
|
|
1616
|
-
if (!
|
|
1616
|
+
if (!Mt.some(function(u) {
|
|
1617
1617
|
return c.type === u;
|
|
1618
1618
|
}))
|
|
1619
|
-
return typeof c.type == "function" ? it("You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.") : it("Only elements types " +
|
|
1620
|
-
if (
|
|
1619
|
+
return typeof c.type == "function" ? it("You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.") : it("Only elements types " + Mt.join(", ") + " are allowed. Helmet does not support rendering <" + c.type + "> elements. Refer to our API for more information.");
|
|
1620
|
+
if (i && typeof i != "string" && (!Array.isArray(i) || i.some(function(u) {
|
|
1621
1621
|
return typeof u != "string";
|
|
1622
1622
|
})))
|
|
1623
1623
|
throw new Error("Helmet expects a string as a child of <" + c.type + ">. Did you forget to wrap your children in braces? ( <" + c.type + ">{``}</" + c.type + "> ) Refer to our API for more information.");
|
|
1624
1624
|
}
|
|
1625
1625
|
return !0;
|
|
1626
|
-
}, r.prototype.mapChildrenToProps = function(c,
|
|
1626
|
+
}, r.prototype.mapChildrenToProps = function(c, i) {
|
|
1627
1627
|
var u = this, d = {};
|
|
1628
1628
|
return ke.Children.forEach(c, function(h) {
|
|
1629
1629
|
if (!(!h || !h.props)) {
|
|
1630
|
-
var f = h.props, v = f.children, E =
|
|
1630
|
+
var f = h.props, v = f.children, E = Dt(f, ["children"]), m = Ar(E);
|
|
1631
1631
|
switch (u.warnOnInvalidChildren(h, v), h.type) {
|
|
1632
1632
|
case O.LINK:
|
|
1633
1633
|
case O.META:
|
|
@@ -1642,20 +1642,20 @@ var we = {
|
|
|
1642
1642
|
});
|
|
1643
1643
|
break;
|
|
1644
1644
|
default:
|
|
1645
|
-
|
|
1645
|
+
i = u.mapObjectTypeChildren({
|
|
1646
1646
|
child: h,
|
|
1647
|
-
newProps:
|
|
1647
|
+
newProps: i,
|
|
1648
1648
|
newChildProps: m,
|
|
1649
1649
|
nestedChildren: v
|
|
1650
1650
|
});
|
|
1651
1651
|
break;
|
|
1652
1652
|
}
|
|
1653
1653
|
}
|
|
1654
|
-
}),
|
|
1654
|
+
}), i = this.mapArrayTypeChildrenToProps(d, i), i;
|
|
1655
1655
|
}, r.prototype.render = function() {
|
|
1656
|
-
var c = this.props,
|
|
1657
|
-
return
|
|
1658
|
-
},
|
|
1656
|
+
var c = this.props, i = c.children, u = Dt(c, ["children"]), d = re({}, u);
|
|
1657
|
+
return i && (d = this.mapChildrenToProps(i, d)), ke.createElement(e, d);
|
|
1658
|
+
}, mr(r, null, [{
|
|
1659
1659
|
key: "canUseDOM",
|
|
1660
1660
|
// Component.peek comes from react-side-effect:
|
|
1661
1661
|
// For testing, you may use a static peek() method available on the returned component.
|
|
@@ -1704,7 +1704,7 @@ var we = {
|
|
|
1704
1704
|
encodeSpecialCharacters: !0
|
|
1705
1705
|
}, o.peek = e.peek, o.rewind = function() {
|
|
1706
1706
|
var a = e.rewind();
|
|
1707
|
-
return a || (a =
|
|
1707
|
+
return a || (a = nn({
|
|
1708
1708
|
baseTag: [],
|
|
1709
1709
|
bodyAttributes: {},
|
|
1710
1710
|
htmlAttributes: {},
|
|
@@ -1717,65 +1717,65 @@ var we = {
|
|
|
1717
1717
|
titleAttributes: {}
|
|
1718
1718
|
})), a;
|
|
1719
1719
|
}, n;
|
|
1720
|
-
},
|
|
1720
|
+
}, Or = function() {
|
|
1721
1721
|
return null;
|
|
1722
|
-
},
|
|
1722
|
+
}, $r = ar(Tr, Cr, nn)(Or), Ye = xr($r);
|
|
1723
1723
|
Ye.renderStatic = Ye.rewind;
|
|
1724
|
-
const Rr = "_metadata_bsge0_1",
|
|
1724
|
+
const Rr = "_metadata_bsge0_1", Lr = "_author_bsge0_9", Mr = "_date_bsge0_10", rt = {
|
|
1725
1725
|
metadata: Rr,
|
|
1726
|
-
author:
|
|
1727
|
-
date:
|
|
1726
|
+
author: Lr,
|
|
1727
|
+
date: Mr
|
|
1728
1728
|
};
|
|
1729
1729
|
function lt({ date: t, author: e }) {
|
|
1730
|
-
const { t: o } =
|
|
1730
|
+
const { t: o } = Z();
|
|
1731
1731
|
return !t && !e ? null : /* @__PURE__ */ T("div", { className: rt.metadata, children: [
|
|
1732
1732
|
e && /* @__PURE__ */ T("span", { className: rt.author, children: [
|
|
1733
|
-
/* @__PURE__ */
|
|
1733
|
+
/* @__PURE__ */ s(cn, { size: 16, weight: "regular" }),
|
|
1734
1734
|
e
|
|
1735
1735
|
] }),
|
|
1736
1736
|
t && /* @__PURE__ */ T("span", { className: rt.date, children: [
|
|
1737
|
-
/* @__PURE__ */
|
|
1737
|
+
/* @__PURE__ */ s(ln, { size: 16, weight: "regular" }),
|
|
1738
1738
|
o("ui.lastEdited"),
|
|
1739
1739
|
": ",
|
|
1740
1740
|
t
|
|
1741
1741
|
] })
|
|
1742
1742
|
] });
|
|
1743
1743
|
}
|
|
1744
|
-
const
|
|
1745
|
-
tableOfContents:
|
|
1746
|
-
header:
|
|
1747
|
-
title:
|
|
1748
|
-
nav:
|
|
1749
|
-
list:
|
|
1750
|
-
link:
|
|
1751
|
-
active:
|
|
1752
|
-
level1:
|
|
1753
|
-
level2:
|
|
1754
|
-
level3:
|
|
1755
|
-
level4:
|
|
1756
|
-
level5:
|
|
1757
|
-
level6:
|
|
1744
|
+
const Dr = "_tableOfContents_9ofak_1", jr = "_header_9ofak_21", Br = "_title_9ofak_25", Hr = "_nav_9ofak_34", Fr = "_list_9ofak_40", qr = "_link_9ofak_47", Wr = "_active_9ofak_71", Yr = "_level1_9ofak_87", Ur = "_level2_9ofak_93", zr = "_level3_9ofak_98", Gr = "_level4_9ofak_104", Vr = "_level5_9ofak_110", Xr = "_level6_9ofak_116", de = {
|
|
1745
|
+
tableOfContents: Dr,
|
|
1746
|
+
header: jr,
|
|
1747
|
+
title: Br,
|
|
1748
|
+
nav: Hr,
|
|
1749
|
+
list: Fr,
|
|
1750
|
+
link: qr,
|
|
1751
|
+
active: Wr,
|
|
1752
|
+
level1: Yr,
|
|
1753
|
+
level2: Ur,
|
|
1754
|
+
level3: zr,
|
|
1755
|
+
level4: Gr,
|
|
1756
|
+
level5: Vr,
|
|
1757
|
+
level6: Xr
|
|
1758
1758
|
};
|
|
1759
|
-
function
|
|
1759
|
+
function Kr({
|
|
1760
1760
|
content: t,
|
|
1761
1761
|
englishContent: e
|
|
1762
1762
|
}) {
|
|
1763
|
-
const { t: o } =
|
|
1764
|
-
|
|
1765
|
-
|
|
1763
|
+
const { t: o } = Z(), n = Ee(), a = _e(), [r, l] = F([]), [c, i] = F(""), u = ge(null);
|
|
1764
|
+
z(() => {
|
|
1765
|
+
i(""), (() => {
|
|
1766
1766
|
const f = /^(#{1,6})\s+(.+)$/gm, v = [];
|
|
1767
1767
|
let E = f.exec(t);
|
|
1768
1768
|
const m = [];
|
|
1769
1769
|
for (; E !== null; ) {
|
|
1770
|
-
const N = E[1].length,
|
|
1771
|
-
m.push({ level: N, text:
|
|
1770
|
+
const N = E[1].length, M = E[2].trim();
|
|
1771
|
+
m.push({ level: N, text: M }), E = f.exec(t);
|
|
1772
1772
|
}
|
|
1773
1773
|
const y = /^(#{1,6})\s+(.+)$/gm;
|
|
1774
1774
|
let b = y.exec(e), I = 0;
|
|
1775
1775
|
for (; b !== null && I < m.length; ) {
|
|
1776
|
-
const N = b[2].trim(),
|
|
1776
|
+
const N = b[2].trim(), M = Ae(N);
|
|
1777
1777
|
v.push({
|
|
1778
|
-
id:
|
|
1778
|
+
id: M,
|
|
1779
1779
|
text: m[I].text,
|
|
1780
1780
|
// Use localized text for display
|
|
1781
1781
|
level: m[I].level
|
|
@@ -1783,7 +1783,7 @@ function Xr({
|
|
|
1783
1783
|
}
|
|
1784
1784
|
l(v);
|
|
1785
1785
|
})();
|
|
1786
|
-
}, [t, e]),
|
|
1786
|
+
}, [t, e]), z(() => {
|
|
1787
1787
|
if (r.length === 0) return;
|
|
1788
1788
|
const h = setTimeout(() => {
|
|
1789
1789
|
const f = r.filter(
|
|
@@ -1792,7 +1792,7 @@ function Xr({
|
|
|
1792
1792
|
f.length > 0 && console.warn("Some heading elements not found:", f);
|
|
1793
1793
|
}, 100);
|
|
1794
1794
|
return () => clearTimeout(h);
|
|
1795
|
-
}, [r]),
|
|
1795
|
+
}, [r]), z(() => {
|
|
1796
1796
|
if (r.length === 0) return;
|
|
1797
1797
|
u.current && u.current.disconnect();
|
|
1798
1798
|
const h = setTimeout(() => {
|
|
@@ -1802,7 +1802,7 @@ function Xr({
|
|
|
1802
1802
|
const E = v.filter((m) => m.isIntersecting);
|
|
1803
1803
|
if (E.length > 0) {
|
|
1804
1804
|
const m = E.reduce((y, b) => y.boundingClientRect.top < b.boundingClientRect.top ? y : b);
|
|
1805
|
-
|
|
1805
|
+
i(m.target.id);
|
|
1806
1806
|
}
|
|
1807
1807
|
},
|
|
1808
1808
|
{
|
|
@@ -1816,7 +1816,7 @@ function Xr({
|
|
|
1816
1816
|
return () => {
|
|
1817
1817
|
clearTimeout(h), u.current && u.current.disconnect();
|
|
1818
1818
|
};
|
|
1819
|
-
}, [r]),
|
|
1819
|
+
}, [r]), z(() => () => {
|
|
1820
1820
|
u.current && u.current.disconnect();
|
|
1821
1821
|
}, []);
|
|
1822
1822
|
const d = (h) => {
|
|
@@ -1837,8 +1837,8 @@ function Xr({
|
|
|
1837
1837
|
}
|
|
1838
1838
|
};
|
|
1839
1839
|
return r.length === 0 ? null : /* @__PURE__ */ T("aside", { className: de.tableOfContents, children: [
|
|
1840
|
-
/* @__PURE__ */
|
|
1841
|
-
/* @__PURE__ */
|
|
1840
|
+
/* @__PURE__ */ s("div", { className: de.header, children: /* @__PURE__ */ s("span", { className: de.title, children: o("ui.onThisPage", "On this page") }) }),
|
|
1841
|
+
/* @__PURE__ */ s("nav", { className: de.nav, children: /* @__PURE__ */ s("ul", { className: de.list, children: r.map((h) => /* @__PURE__ */ s("li", { className: de.item, children: /* @__PURE__ */ s(
|
|
1842
1842
|
"button",
|
|
1843
1843
|
{
|
|
1844
1844
|
className: `${de.link} ${de[`level${h.level}`]} ${c === h.id ? de.active : ""}`,
|
|
@@ -1849,77 +1849,77 @@ function Xr({
|
|
|
1849
1849
|
) }, h.id)) }) })
|
|
1850
1850
|
] });
|
|
1851
1851
|
}
|
|
1852
|
-
const
|
|
1853
|
-
overlay:
|
|
1854
|
-
modal:
|
|
1855
|
-
header:
|
|
1856
|
-
title:
|
|
1857
|
-
closeButton:
|
|
1858
|
-
results:
|
|
1859
|
-
resultsList:
|
|
1860
|
-
resultItem:
|
|
1861
|
-
resultTitle:
|
|
1862
|
-
resultSlug:
|
|
1863
|
-
noResults:
|
|
1852
|
+
const Qr = "_overlay_1e1d4_1", Jr = "_modal_1e1d4_26", Zr = "_header_1e1d4_50", eo = "_title_1e1d4_58", to = "_closeButton_1e1d4_65", no = "_results_1e1d4_86", ro = "_resultsList_1e1d4_94", oo = "_resultItem_1e1d4_100", ao = "_resultTitle_1e1d4_119", so = "_resultSlug_1e1d4_124", io = "_noResults_1e1d4_130", se = {
|
|
1853
|
+
overlay: Qr,
|
|
1854
|
+
modal: Jr,
|
|
1855
|
+
header: Zr,
|
|
1856
|
+
title: eo,
|
|
1857
|
+
closeButton: to,
|
|
1858
|
+
results: no,
|
|
1859
|
+
resultsList: ro,
|
|
1860
|
+
resultItem: oo,
|
|
1861
|
+
resultTitle: ao,
|
|
1862
|
+
resultSlug: so,
|
|
1863
|
+
noResults: io
|
|
1864
1864
|
};
|
|
1865
|
-
function
|
|
1865
|
+
function co({
|
|
1866
1866
|
tag: t,
|
|
1867
1867
|
results: e,
|
|
1868
1868
|
language: o,
|
|
1869
1869
|
onClose: n
|
|
1870
1870
|
}) {
|
|
1871
|
-
const { t: a } =
|
|
1871
|
+
const { t: a } = Z(), { config: r } = ee(), l = _e(), c = (i) => {
|
|
1872
1872
|
const u = r.basePath || "";
|
|
1873
|
-
l(`${u}/${o}/${
|
|
1873
|
+
l(`${u}/${o}/${i}`), n();
|
|
1874
1874
|
};
|
|
1875
|
-
return
|
|
1876
|
-
/* @__PURE__ */
|
|
1875
|
+
return Wt(
|
|
1876
|
+
/* @__PURE__ */ s("div", { className: se.overlay, onClick: n, children: /* @__PURE__ */ T("div", { className: se.modal, onClick: (i) => i.stopPropagation(), children: [
|
|
1877
1877
|
/* @__PURE__ */ T("div", { className: se.header, children: [
|
|
1878
1878
|
/* @__PURE__ */ T("h2", { className: se.title, children: [
|
|
1879
1879
|
a("ui.tagResults"),
|
|
1880
1880
|
": ",
|
|
1881
1881
|
t
|
|
1882
1882
|
] }),
|
|
1883
|
-
/* @__PURE__ */
|
|
1883
|
+
/* @__PURE__ */ s(
|
|
1884
1884
|
"button",
|
|
1885
1885
|
{
|
|
1886
1886
|
type: "button",
|
|
1887
1887
|
className: se.closeButton,
|
|
1888
1888
|
onClick: n,
|
|
1889
1889
|
"aria-label": "Close",
|
|
1890
|
-
children: /* @__PURE__ */
|
|
1890
|
+
children: /* @__PURE__ */ s(dt, {})
|
|
1891
1891
|
}
|
|
1892
1892
|
)
|
|
1893
1893
|
] }),
|
|
1894
|
-
/* @__PURE__ */
|
|
1894
|
+
/* @__PURE__ */ s("div", { className: se.results, children: e.length === 0 ? /* @__PURE__ */ s("div", { className: se.noResults, children: a("ui.noTagResults") }) : /* @__PURE__ */ s("ul", { className: se.resultsList, children: e.map((i) => /* @__PURE__ */ s("li", { children: /* @__PURE__ */ T(
|
|
1895
1895
|
"button",
|
|
1896
1896
|
{
|
|
1897
1897
|
type: "button",
|
|
1898
1898
|
className: se.resultItem,
|
|
1899
|
-
onClick: () => c(
|
|
1899
|
+
onClick: () => c(i.slug),
|
|
1900
1900
|
children: [
|
|
1901
|
-
/* @__PURE__ */
|
|
1901
|
+
/* @__PURE__ */ s("div", { className: se.resultTitle, children: i.title }),
|
|
1902
1902
|
/* @__PURE__ */ T("div", { className: se.resultSlug, children: [
|
|
1903
1903
|
"/",
|
|
1904
|
-
|
|
1904
|
+
i.slug
|
|
1905
1905
|
] })
|
|
1906
1906
|
]
|
|
1907
1907
|
}
|
|
1908
|
-
) },
|
|
1908
|
+
) }, i.slug)) }) })
|
|
1909
1909
|
] }) }),
|
|
1910
1910
|
document.body
|
|
1911
1911
|
);
|
|
1912
1912
|
}
|
|
1913
|
-
const
|
|
1914
|
-
tags:
|
|
1915
|
-
compact:
|
|
1916
|
-
tagLabel:
|
|
1917
|
-
tagIcon:
|
|
1918
|
-
tagList:
|
|
1919
|
-
tag:
|
|
1913
|
+
const lo = "_tags_11t8a_1", uo = "_compact_11t8a_9", fo = "_tagLabel_11t8a_15", ho = "_tagIcon_11t8a_25", po = "_tagList_11t8a_30", mo = "_tag_11t8a_1", Ie = {
|
|
1914
|
+
tags: lo,
|
|
1915
|
+
compact: uo,
|
|
1916
|
+
tagLabel: fo,
|
|
1917
|
+
tagIcon: ho,
|
|
1918
|
+
tagList: po,
|
|
1919
|
+
tag: mo
|
|
1920
1920
|
};
|
|
1921
|
-
function
|
|
1922
|
-
const { t: n } =
|
|
1921
|
+
function vo({ tags: t, variant: e = "default", onTagClick: o }) {
|
|
1922
|
+
const { t: n } = Z();
|
|
1923
1923
|
if (!t || t.length === 0) return null;
|
|
1924
1924
|
const a = (r) => {
|
|
1925
1925
|
o && o(r);
|
|
@@ -1930,13 +1930,13 @@ function mo({ tags: t, variant: e = "default", onTagClick: o }) {
|
|
|
1930
1930
|
className: `${Ie.tags} ${e === "compact" ? Ie.compact : ""}`,
|
|
1931
1931
|
children: [
|
|
1932
1932
|
e === "default" && /* @__PURE__ */ T("div", { className: Ie.tagLabel, children: [
|
|
1933
|
-
/* @__PURE__ */
|
|
1933
|
+
/* @__PURE__ */ s(un, { className: Ie.tagIcon, weight: "duotone" }),
|
|
1934
1934
|
/* @__PURE__ */ T("span", { children: [
|
|
1935
1935
|
n("ui.tags"),
|
|
1936
1936
|
":"
|
|
1937
1937
|
] })
|
|
1938
1938
|
] }),
|
|
1939
|
-
/* @__PURE__ */
|
|
1939
|
+
/* @__PURE__ */ s("div", { className: Ie.tagList, children: t.map((r) => /* @__PURE__ */ s(
|
|
1940
1940
|
"button",
|
|
1941
1941
|
{
|
|
1942
1942
|
type: "button",
|
|
@@ -1951,80 +1951,80 @@ function mo({ tags: t, variant: e = "default", onTagClick: o }) {
|
|
|
1951
1951
|
}
|
|
1952
1952
|
);
|
|
1953
1953
|
}
|
|
1954
|
-
const
|
|
1955
|
-
contentPage:
|
|
1956
|
-
loadingContainer:
|
|
1957
|
-
errorContainer:
|
|
1958
|
-
skeletonTitle:
|
|
1959
|
-
skeletonParagraph:
|
|
1960
|
-
skeletonParagraphShort:
|
|
1961
|
-
errorText:
|
|
1962
|
-
mdxContent:
|
|
1963
|
-
withMetadata:
|
|
1964
|
-
codeBlock:
|
|
1965
|
-
codeLanguage:
|
|
1966
|
-
},
|
|
1954
|
+
const go = "_contentPage_818m0_1", _o = "_loadingContainer_818m0_48", yo = "_errorContainer_818m0_49", bo = "_skeletonTitle_818m0_71", To = "_skeletonParagraph_818m0_80", wo = "_skeletonParagraphShort_818m0_93", Eo = "_errorText_818m0_107", Co = "_mdxContent_818m0_112", So = "_withMetadata_818m0_125", Po = "_codeBlock_818m0_300", Io = "_codeLanguage_818m0_304", J = {
|
|
1955
|
+
contentPage: go,
|
|
1956
|
+
loadingContainer: _o,
|
|
1957
|
+
errorContainer: yo,
|
|
1958
|
+
skeletonTitle: bo,
|
|
1959
|
+
skeletonParagraph: To,
|
|
1960
|
+
skeletonParagraphShort: wo,
|
|
1961
|
+
errorText: Eo,
|
|
1962
|
+
mdxContent: Co,
|
|
1963
|
+
withMetadata: So,
|
|
1964
|
+
codeBlock: Po,
|
|
1965
|
+
codeLanguage: Io
|
|
1966
|
+
}, Ht = (t) => {
|
|
1967
1967
|
const e = t.match(/^\s*#\s+(.+)\s*(?:\n+|$)/);
|
|
1968
1968
|
return e ? {
|
|
1969
1969
|
title: e[1].trim(),
|
|
1970
1970
|
content: t.replace(/^\s*#\s+.+\s*(?:\n+|$)/, "")
|
|
1971
1971
|
} : { title: void 0, content: t };
|
|
1972
1972
|
};
|
|
1973
|
-
function
|
|
1974
|
-
var
|
|
1975
|
-
const { slug: e } = ut(), o = Ee(), { config: n, loadContent: a, loadEnglishContent: r } =
|
|
1976
|
-
if (
|
|
1973
|
+
function Ao({ language: t }) {
|
|
1974
|
+
var C, L, R, x, D;
|
|
1975
|
+
const { slug: e } = ut(), o = Ee(), { config: n, loadContent: a, loadEnglishContent: r } = ee(), [l, c] = F(""), [i, u] = F(""), [d, h] = F({}), [f, v] = F(!0), [E, m] = F(null), [y, b] = F(!0), [I, N] = F(null), [M, p] = F(""), [$, G] = F({}), V = ge(0), oe = ge([]), he = Xt(o.search), ae = he.advanced;
|
|
1976
|
+
if (z(() => {
|
|
1977
1977
|
(async () => {
|
|
1978
1978
|
if (!e) return;
|
|
1979
1979
|
v(!0), m(null), V.current = 0;
|
|
1980
|
-
const
|
|
1981
|
-
let
|
|
1982
|
-
for (const
|
|
1983
|
-
if ("items" in
|
|
1984
|
-
const
|
|
1985
|
-
if (
|
|
1986
|
-
|
|
1980
|
+
const S = (n == null ? void 0 : n.navigationData) || [];
|
|
1981
|
+
let k = !0;
|
|
1982
|
+
for (const P of S)
|
|
1983
|
+
if ("items" in P) {
|
|
1984
|
+
const A = P.items.find((Y) => Y.slug === e);
|
|
1985
|
+
if (A) {
|
|
1986
|
+
k = A.showTableOfContents !== !1;
|
|
1987
1987
|
break;
|
|
1988
1988
|
}
|
|
1989
|
-
} else if (
|
|
1990
|
-
|
|
1989
|
+
} else if (P.slug === e) {
|
|
1990
|
+
k = P.showTableOfContents !== !1;
|
|
1991
1991
|
break;
|
|
1992
1992
|
}
|
|
1993
|
-
b(
|
|
1993
|
+
b(k);
|
|
1994
1994
|
try {
|
|
1995
|
-
let
|
|
1995
|
+
let P;
|
|
1996
1996
|
try {
|
|
1997
|
-
|
|
1997
|
+
P = await a(t, e, ae);
|
|
1998
1998
|
} catch {
|
|
1999
1999
|
if (ae)
|
|
2000
|
-
|
|
2000
|
+
P = await a(t, e, !1);
|
|
2001
2001
|
else
|
|
2002
2002
|
throw new Error("Content not found");
|
|
2003
2003
|
}
|
|
2004
|
-
let
|
|
2004
|
+
let A = "";
|
|
2005
2005
|
try {
|
|
2006
|
-
|
|
2006
|
+
A = await r(e, ae);
|
|
2007
2007
|
} catch {
|
|
2008
|
-
ae && (
|
|
2008
|
+
ae && (A = await r(e, !1));
|
|
2009
2009
|
}
|
|
2010
|
-
const
|
|
2011
|
-
let
|
|
2012
|
-
if (
|
|
2013
|
-
const Be =
|
|
2014
|
-
|
|
2010
|
+
const Y = typeof P.frontmatter.title == "string" ? P.frontmatter.title : void 0;
|
|
2011
|
+
let w = P.content, Q = A, me = "";
|
|
2012
|
+
if (Y) {
|
|
2013
|
+
const Be = Ht(A), rn = Ht(P.content);
|
|
2014
|
+
me = Be.title || "", Q = Be.content, w = rn.content;
|
|
2015
2015
|
} else
|
|
2016
|
-
|
|
2017
|
-
const
|
|
2018
|
-
let Ge =
|
|
2019
|
-
|
|
2016
|
+
me = "";
|
|
2017
|
+
const xe = /^(#{1,6})\s+(.+)$/gm, mt = [];
|
|
2018
|
+
let Ge = xe.exec(
|
|
2019
|
+
Q
|
|
2020
2020
|
);
|
|
2021
2021
|
for (; Ge !== null; ) {
|
|
2022
2022
|
const Be = Ge[2].trim();
|
|
2023
|
-
|
|
2023
|
+
mt.push(Be), Ge = xe.exec(Q);
|
|
2024
2024
|
}
|
|
2025
|
-
oe.current =
|
|
2026
|
-
} catch (
|
|
2027
|
-
m(
|
|
2025
|
+
oe.current = mt, p(me), u(Q), c(w), h(P.frontmatter);
|
|
2026
|
+
} catch (P) {
|
|
2027
|
+
m(P instanceof Error ? P.message : "Failed to load content");
|
|
2028
2028
|
} finally {
|
|
2029
2029
|
v(!1);
|
|
2030
2030
|
}
|
|
@@ -2036,28 +2036,28 @@ function Io({ language: t }) {
|
|
|
2036
2036
|
n.navigationData,
|
|
2037
2037
|
a,
|
|
2038
2038
|
r
|
|
2039
|
-
]),
|
|
2040
|
-
if (!f &&
|
|
2041
|
-
const
|
|
2042
|
-
|
|
2039
|
+
]), z(() => {
|
|
2040
|
+
if (!f && he.anchor) {
|
|
2041
|
+
const g = setTimeout(() => {
|
|
2042
|
+
Et(he.anchor);
|
|
2043
2043
|
}, 150);
|
|
2044
|
-
return () => clearTimeout(
|
|
2044
|
+
return () => clearTimeout(g);
|
|
2045
2045
|
}
|
|
2046
|
-
}, [f,
|
|
2046
|
+
}, [f, he.anchor]), z(() => {
|
|
2047
2047
|
(async () => {
|
|
2048
2048
|
if (!e || !n.showArticleNavigation || !n.navigationData) {
|
|
2049
2049
|
G({});
|
|
2050
2050
|
return;
|
|
2051
2051
|
}
|
|
2052
2052
|
try {
|
|
2053
|
-
const
|
|
2053
|
+
const S = await Ue(
|
|
2054
2054
|
n.navigationData,
|
|
2055
2055
|
t,
|
|
2056
2056
|
a
|
|
2057
|
-
),
|
|
2058
|
-
G(
|
|
2059
|
-
} catch (
|
|
2060
|
-
console.error("Failed to calculate adjacent articles:",
|
|
2057
|
+
), k = Cn(e, S);
|
|
2058
|
+
G(k);
|
|
2059
|
+
} catch (S) {
|
|
2060
|
+
console.error("Failed to calculate adjacent articles:", S), G({});
|
|
2061
2061
|
}
|
|
2062
2062
|
})();
|
|
2063
2063
|
}, [
|
|
@@ -2067,78 +2067,84 @@ function Io({ language: t }) {
|
|
|
2067
2067
|
n.navigationData,
|
|
2068
2068
|
a
|
|
2069
2069
|
]), f)
|
|
2070
|
-
return /* @__PURE__ */
|
|
2071
|
-
/* @__PURE__ */
|
|
2072
|
-
/* @__PURE__ */
|
|
2073
|
-
/* @__PURE__ */
|
|
2074
|
-
/* @__PURE__ */
|
|
2070
|
+
return /* @__PURE__ */ s("div", { className: J.contentPage, children: /* @__PURE__ */ T("div", { className: J.loadingContainer, children: [
|
|
2071
|
+
/* @__PURE__ */ s("div", { className: J.skeletonTitle }),
|
|
2072
|
+
/* @__PURE__ */ s("div", { className: J.skeletonParagraph }),
|
|
2073
|
+
/* @__PURE__ */ s("div", { className: J.skeletonParagraph }),
|
|
2074
|
+
/* @__PURE__ */ s("div", { className: J.skeletonParagraphShort })
|
|
2075
2075
|
] }) });
|
|
2076
2076
|
if (E)
|
|
2077
|
-
return /* @__PURE__ */
|
|
2077
|
+
return /* @__PURE__ */ s("div", { className: J.contentPage, children: /* @__PURE__ */ s("div", { className: J.errorContainer, children: /* @__PURE__ */ T("div", { className: J.errorText, children: [
|
|
2078
2078
|
"Error: ",
|
|
2079
2079
|
E
|
|
2080
2080
|
] }) }) });
|
|
2081
|
-
const
|
|
2081
|
+
const pe = typeof d.title == "string" && d.title.trim().length > 0, ye = pe ? Ae(M || d.title) : "", le = !!(d.date || d.author);
|
|
2082
2082
|
V.current = 0;
|
|
2083
2083
|
let Ce = !1;
|
|
2084
|
-
const K = (
|
|
2085
|
-
|
|
2086
|
-
},
|
|
2087
|
-
return /* @__PURE__ */ T(
|
|
2084
|
+
const K = (g, S) => {
|
|
2085
|
+
g.preventDefault(), Et(S), Pn(S, ae);
|
|
2086
|
+
}, ce = d.title ? `${d.title} | ${n.title}` : n.title, be = d.description || n.description, Se = d.keywords ? typeof d.keywords == "string" ? d.keywords : d.keywords.join(", ") : void 0, _ = d.ogImage ? `${n.basePath ? `${n.basePath}` : ""}/og/${t}/${d.ogImage}` : void 0;
|
|
2087
|
+
return /* @__PURE__ */ T(fe, { children: [
|
|
2088
2088
|
/* @__PURE__ */ T(Ye, { children: [
|
|
2089
|
-
/* @__PURE__ */
|
|
2090
|
-
|
|
2091
|
-
Se && /* @__PURE__ */
|
|
2089
|
+
/* @__PURE__ */ s("title", { children: ce }),
|
|
2090
|
+
be && /* @__PURE__ */ s("meta", { name: "description", content: be }),
|
|
2091
|
+
Se && /* @__PURE__ */ s("meta", { name: "keywords", content: Se }),
|
|
2092
|
+
_ && /* @__PURE__ */ T(fe, { children: [
|
|
2093
|
+
/* @__PURE__ */ s("meta", { property: "og:image", content: _ }),
|
|
2094
|
+
/* @__PURE__ */ s("meta", { property: "og:title", content: ce }),
|
|
2095
|
+
/* @__PURE__ */ s("meta", { name: "twitter:card", content: "summary_large_image" }),
|
|
2096
|
+
/* @__PURE__ */ s("meta", { name: "twitter:image", content: _ })
|
|
2097
|
+
] })
|
|
2092
2098
|
] }),
|
|
2093
|
-
/* @__PURE__ */ T("div", { className:
|
|
2094
|
-
/* @__PURE__ */
|
|
2095
|
-
|
|
2096
|
-
/* @__PURE__ */
|
|
2097
|
-
/* @__PURE__ */
|
|
2099
|
+
/* @__PURE__ */ T("div", { className: J.contentPage, children: [
|
|
2100
|
+
/* @__PURE__ */ s(Tn, { hasAdvanced: d.hasAdvanced || !1 }),
|
|
2101
|
+
pe && /* @__PURE__ */ T(fe, { children: [
|
|
2102
|
+
/* @__PURE__ */ s(Xn, { articleTitle: d.title, language: t }),
|
|
2103
|
+
/* @__PURE__ */ s(
|
|
2098
2104
|
"h1",
|
|
2099
2105
|
{
|
|
2100
|
-
id:
|
|
2101
|
-
className:
|
|
2102
|
-
children: /* @__PURE__ */
|
|
2106
|
+
id: ye,
|
|
2107
|
+
className: le ? J.withMetadata : void 0,
|
|
2108
|
+
children: /* @__PURE__ */ s(
|
|
2103
2109
|
"a",
|
|
2104
2110
|
{
|
|
2105
|
-
href: `#${
|
|
2106
|
-
onClick: (
|
|
2111
|
+
href: `#${ye}`,
|
|
2112
|
+
onClick: (g) => K(g, ye),
|
|
2107
2113
|
style: { color: "inherit", textDecoration: "none" },
|
|
2108
2114
|
children: d.title
|
|
2109
2115
|
}
|
|
2110
2116
|
)
|
|
2111
2117
|
}
|
|
2112
2118
|
),
|
|
2113
|
-
|
|
2119
|
+
le && /* @__PURE__ */ s(lt, { date: d.date, author: d.author })
|
|
2114
2120
|
] }),
|
|
2115
|
-
/* @__PURE__ */
|
|
2116
|
-
|
|
2121
|
+
/* @__PURE__ */ s("div", { className: J.mdxContent, children: /* @__PURE__ */ s(
|
|
2122
|
+
vn,
|
|
2117
2123
|
{
|
|
2118
|
-
remarkPlugins: [
|
|
2124
|
+
remarkPlugins: [gn],
|
|
2119
2125
|
components: {
|
|
2120
|
-
h1: ({ children:
|
|
2121
|
-
const
|
|
2126
|
+
h1: ({ children: g }) => {
|
|
2127
|
+
const S = V.current++, k = oe.current[S] || "", P = Ae(k), A = !Ce;
|
|
2122
2128
|
Ce = !0;
|
|
2123
|
-
const
|
|
2124
|
-
return /* @__PURE__ */ T(
|
|
2125
|
-
/* @__PURE__ */
|
|
2129
|
+
const Y = d.date || d.author;
|
|
2130
|
+
return /* @__PURE__ */ T(fe, { children: [
|
|
2131
|
+
/* @__PURE__ */ s(
|
|
2126
2132
|
"h1",
|
|
2127
2133
|
{
|
|
2128
|
-
id:
|
|
2129
|
-
className:
|
|
2130
|
-
children: /* @__PURE__ */
|
|
2134
|
+
id: P,
|
|
2135
|
+
className: A && Y && !pe ? J.withMetadata : void 0,
|
|
2136
|
+
children: /* @__PURE__ */ s(
|
|
2131
2137
|
"a",
|
|
2132
2138
|
{
|
|
2133
|
-
href: `#${
|
|
2134
|
-
onClick: (
|
|
2139
|
+
href: `#${P}`,
|
|
2140
|
+
onClick: (w) => K(w, P),
|
|
2135
2141
|
style: { color: "inherit", textDecoration: "none" },
|
|
2136
|
-
children:
|
|
2142
|
+
children: g
|
|
2137
2143
|
}
|
|
2138
2144
|
)
|
|
2139
2145
|
}
|
|
2140
2146
|
),
|
|
2141
|
-
|
|
2147
|
+
A && Y && !pe && /* @__PURE__ */ s(
|
|
2142
2148
|
lt,
|
|
2143
2149
|
{
|
|
2144
2150
|
date: d.date,
|
|
@@ -2147,115 +2153,115 @@ function Io({ language: t }) {
|
|
|
2147
2153
|
)
|
|
2148
2154
|
] });
|
|
2149
2155
|
},
|
|
2150
|
-
h2: ({ children:
|
|
2151
|
-
const
|
|
2152
|
-
return /* @__PURE__ */
|
|
2156
|
+
h2: ({ children: g }) => {
|
|
2157
|
+
const S = V.current++, k = oe.current[S] || "", P = Ae(k);
|
|
2158
|
+
return /* @__PURE__ */ s("h2", { id: P, children: /* @__PURE__ */ s(
|
|
2153
2159
|
"a",
|
|
2154
2160
|
{
|
|
2155
|
-
href: `#${
|
|
2156
|
-
onClick: (
|
|
2161
|
+
href: `#${P}`,
|
|
2162
|
+
onClick: (A) => K(A, P),
|
|
2157
2163
|
style: { color: "inherit", textDecoration: "none" },
|
|
2158
|
-
children:
|
|
2164
|
+
children: g
|
|
2159
2165
|
}
|
|
2160
2166
|
) });
|
|
2161
2167
|
},
|
|
2162
|
-
h3: ({ children:
|
|
2163
|
-
const
|
|
2164
|
-
return /* @__PURE__ */
|
|
2168
|
+
h3: ({ children: g }) => {
|
|
2169
|
+
const S = V.current++, k = oe.current[S] || "", P = Ae(k);
|
|
2170
|
+
return /* @__PURE__ */ s("h3", { id: P, children: /* @__PURE__ */ s(
|
|
2165
2171
|
"a",
|
|
2166
2172
|
{
|
|
2167
|
-
href: `#${
|
|
2168
|
-
onClick: (
|
|
2173
|
+
href: `#${P}`,
|
|
2174
|
+
onClick: (A) => K(A, P),
|
|
2169
2175
|
style: { color: "inherit", textDecoration: "none" },
|
|
2170
|
-
children:
|
|
2176
|
+
children: g
|
|
2171
2177
|
}
|
|
2172
2178
|
) });
|
|
2173
2179
|
},
|
|
2174
|
-
h4: ({ children:
|
|
2175
|
-
const
|
|
2176
|
-
return /* @__PURE__ */
|
|
2180
|
+
h4: ({ children: g }) => {
|
|
2181
|
+
const S = V.current++, k = oe.current[S] || "", P = Ae(k);
|
|
2182
|
+
return /* @__PURE__ */ s("h4", { id: P, children: /* @__PURE__ */ s(
|
|
2177
2183
|
"a",
|
|
2178
2184
|
{
|
|
2179
|
-
href: `#${
|
|
2180
|
-
onClick: (
|
|
2185
|
+
href: `#${P}`,
|
|
2186
|
+
onClick: (A) => K(A, P),
|
|
2181
2187
|
style: { color: "inherit", textDecoration: "none" },
|
|
2182
|
-
children:
|
|
2188
|
+
children: g
|
|
2183
2189
|
}
|
|
2184
2190
|
) });
|
|
2185
2191
|
},
|
|
2186
|
-
h5: ({ children:
|
|
2187
|
-
const
|
|
2188
|
-
return /* @__PURE__ */
|
|
2192
|
+
h5: ({ children: g }) => {
|
|
2193
|
+
const S = `h5-${V.current++}`;
|
|
2194
|
+
return /* @__PURE__ */ s("h5", { id: S, children: g });
|
|
2189
2195
|
},
|
|
2190
|
-
h6: ({ children:
|
|
2191
|
-
const
|
|
2192
|
-
return /* @__PURE__ */
|
|
2196
|
+
h6: ({ children: g }) => {
|
|
2197
|
+
const S = `h6-${V.current++}`;
|
|
2198
|
+
return /* @__PURE__ */ s("h6", { id: S, children: g });
|
|
2193
2199
|
},
|
|
2194
|
-
p: ({ children:
|
|
2195
|
-
ul: ({ children:
|
|
2196
|
-
ol: ({ children:
|
|
2197
|
-
li: ({ children:
|
|
2198
|
-
code: ({ className:
|
|
2199
|
-
if (!
|
|
2200
|
-
return /* @__PURE__ */
|
|
2201
|
-
const
|
|
2202
|
-
return /* @__PURE__ */ T("div", { className:
|
|
2203
|
-
|
|
2204
|
-
/* @__PURE__ */
|
|
2200
|
+
p: ({ children: g }) => /* @__PURE__ */ s("p", { children: g }),
|
|
2201
|
+
ul: ({ children: g }) => /* @__PURE__ */ s("ul", { children: g }),
|
|
2202
|
+
ol: ({ children: g }) => /* @__PURE__ */ s("ol", { children: g }),
|
|
2203
|
+
li: ({ children: g }) => /* @__PURE__ */ s("li", { children: g }),
|
|
2204
|
+
code: ({ className: g, children: S, ...k }) => {
|
|
2205
|
+
if (!g)
|
|
2206
|
+
return /* @__PURE__ */ s("code", { ...k, children: S });
|
|
2207
|
+
const A = (g == null ? void 0 : g.replace("language-", "")) || "";
|
|
2208
|
+
return /* @__PURE__ */ T("div", { className: J.codeBlock, children: [
|
|
2209
|
+
A && /* @__PURE__ */ s("div", { className: J.codeLanguage, children: A }),
|
|
2210
|
+
/* @__PURE__ */ s("pre", { children: /* @__PURE__ */ s("code", { className: g, ...k, children: S }) })
|
|
2205
2211
|
] });
|
|
2206
2212
|
},
|
|
2207
|
-
pre: ({ children:
|
|
2213
|
+
pre: ({ children: g }) => /* @__PURE__ */ s(fe, { children: g }),
|
|
2208
2214
|
// Let code component handle pre styling
|
|
2209
|
-
blockquote: ({ children:
|
|
2210
|
-
a: ({ href:
|
|
2211
|
-
if (
|
|
2212
|
-
const
|
|
2213
|
-
|
|
2215
|
+
blockquote: ({ children: g }) => /* @__PURE__ */ s("blockquote", { children: g }),
|
|
2216
|
+
a: ({ href: g, children: S, ...k }) => {
|
|
2217
|
+
if (g != null && g.startsWith("./")) {
|
|
2218
|
+
const P = g.slice(2), A = Sn(
|
|
2219
|
+
P,
|
|
2214
2220
|
t,
|
|
2215
2221
|
n.basePath
|
|
2216
2222
|
);
|
|
2217
|
-
return /* @__PURE__ */
|
|
2223
|
+
return /* @__PURE__ */ s("a", { href: A, ...k, children: S });
|
|
2218
2224
|
}
|
|
2219
|
-
return
|
|
2225
|
+
return g != null && g.startsWith("http://") || g != null && g.startsWith("https://") ? /* @__PURE__ */ s(
|
|
2220
2226
|
"a",
|
|
2221
2227
|
{
|
|
2222
|
-
href:
|
|
2228
|
+
href: g,
|
|
2223
2229
|
target: "_blank",
|
|
2224
2230
|
rel: "noopener noreferrer",
|
|
2225
|
-
...
|
|
2226
|
-
children:
|
|
2231
|
+
...k,
|
|
2232
|
+
children: S
|
|
2227
2233
|
}
|
|
2228
|
-
) : /* @__PURE__ */
|
|
2234
|
+
) : /* @__PURE__ */ s("a", { href: g, ...k, children: S });
|
|
2229
2235
|
},
|
|
2230
|
-
strong: ({ children:
|
|
2231
|
-
em: ({ children:
|
|
2236
|
+
strong: ({ children: g }) => /* @__PURE__ */ s("strong", { children: g }),
|
|
2237
|
+
em: ({ children: g }) => /* @__PURE__ */ s("em", { children: g })
|
|
2232
2238
|
},
|
|
2233
2239
|
children: l
|
|
2234
2240
|
}
|
|
2235
2241
|
) }),
|
|
2236
|
-
n.articleCTA && /* @__PURE__ */
|
|
2237
|
-
d.tags && d.tags.length > 0 && /* @__PURE__ */
|
|
2238
|
-
|
|
2242
|
+
n.articleCTA && /* @__PURE__ */ s("div", { children: n.articleCTA }),
|
|
2243
|
+
d.tags && d.tags.length > 0 && /* @__PURE__ */ s(
|
|
2244
|
+
vo,
|
|
2239
2245
|
{
|
|
2240
2246
|
tags: d.tags,
|
|
2241
2247
|
variant: "compact",
|
|
2242
|
-
onTagClick: (
|
|
2248
|
+
onTagClick: (g) => N(g)
|
|
2243
2249
|
}
|
|
2244
2250
|
),
|
|
2245
|
-
n.showArticleNavigation && /* @__PURE__ */
|
|
2246
|
-
|
|
2251
|
+
n.showArticleNavigation && /* @__PURE__ */ s(
|
|
2252
|
+
Mn,
|
|
2247
2253
|
{
|
|
2248
|
-
prevSlug: (
|
|
2249
|
-
prevTitle: (
|
|
2250
|
-
nextSlug: (
|
|
2251
|
-
nextTitle: (
|
|
2254
|
+
prevSlug: (C = $.prev) == null ? void 0 : C.slug,
|
|
2255
|
+
prevTitle: (L = $.prev) == null ? void 0 : L.title,
|
|
2256
|
+
nextSlug: (R = $.next) == null ? void 0 : R.slug,
|
|
2257
|
+
nextTitle: (x = $.next) == null ? void 0 : x.title,
|
|
2252
2258
|
language: t
|
|
2253
2259
|
}
|
|
2254
2260
|
)
|
|
2255
2261
|
] }),
|
|
2256
|
-
y && /* @__PURE__ */
|
|
2257
|
-
I && ((
|
|
2258
|
-
|
|
2262
|
+
y && /* @__PURE__ */ s(Kr, { content: l, englishContent: i }),
|
|
2263
|
+
I && ((D = n.tagIndex) == null ? void 0 : D[t]) && /* @__PURE__ */ s(
|
|
2264
|
+
co,
|
|
2259
2265
|
{
|
|
2260
2266
|
tag: I,
|
|
2261
2267
|
results: n.tagIndex[t][I] || [],
|
|
@@ -2265,29 +2271,29 @@ function Io({ language: t }) {
|
|
|
2265
2271
|
)
|
|
2266
2272
|
] });
|
|
2267
2273
|
}
|
|
2268
|
-
const
|
|
2269
|
-
searchButton:
|
|
2270
|
-
searchIcon:
|
|
2271
|
-
searchHint:
|
|
2272
|
-
kbd:
|
|
2273
|
-
searchOverlay:
|
|
2274
|
+
const ko = "_searchButton_1k9sl_1", No = "_searchIcon_1k9sl_17", xo = "_searchHint_1k9sl_23", Oo = "_kbd_1k9sl_27", $o = "_searchOverlay_1k9sl_42", Ro = "_searchModal_1k9sl_67", Lo = "_searchHeader_1k9sl_91", Mo = "_searchInput_1k9sl_105", Do = "_closeButton_1k9sl_123", jo = "_searchResults_1k9sl_144", Bo = "_resultsList_1k9sl_152", Ho = "_resultItem_1k9sl_158", Fo = "_selected_1k9sl_173", qo = "_resultTitle_1k9sl_176", Wo = "_resultSlug_1k9sl_180", Yo = "_noResults_1k9sl_186", Uo = "_searchHints_1k9sl_193", zo = "_hint_1k9sl_210", U = {
|
|
2275
|
+
searchButton: ko,
|
|
2276
|
+
searchIcon: No,
|
|
2277
|
+
searchHint: xo,
|
|
2278
|
+
kbd: Oo,
|
|
2279
|
+
searchOverlay: $o,
|
|
2274
2280
|
searchModal: Ro,
|
|
2275
|
-
searchHeader:
|
|
2276
|
-
searchInput:
|
|
2277
|
-
closeButton:
|
|
2278
|
-
searchResults:
|
|
2279
|
-
resultsList:
|
|
2280
|
-
resultItem:
|
|
2281
|
-
selected:
|
|
2282
|
-
resultTitle:
|
|
2283
|
-
resultSlug:
|
|
2284
|
-
noResults:
|
|
2285
|
-
searchHints:
|
|
2286
|
-
hint:
|
|
2281
|
+
searchHeader: Lo,
|
|
2282
|
+
searchInput: Mo,
|
|
2283
|
+
closeButton: Do,
|
|
2284
|
+
searchResults: jo,
|
|
2285
|
+
resultsList: Bo,
|
|
2286
|
+
resultItem: Ho,
|
|
2287
|
+
selected: Fo,
|
|
2288
|
+
resultTitle: qo,
|
|
2289
|
+
resultSlug: Wo,
|
|
2290
|
+
noResults: Yo,
|
|
2291
|
+
searchHints: Uo,
|
|
2292
|
+
hint: zo
|
|
2287
2293
|
};
|
|
2288
|
-
function
|
|
2289
|
-
const { t: e } =
|
|
2290
|
-
|
|
2294
|
+
function Go({ language: t }) {
|
|
2295
|
+
const { t: e } = Z(), o = _e(), { config: n, loadContent: a } = ee(), [r, l] = F(!1), [c, i] = F(""), [u, d] = F([]), [h, f] = F(0), [v, E] = F([]), m = ge(null), y = ge(null), I = typeof navigator < "u" && /(Mac|iPhone|iPod|iPad)/i.test(navigator.platform) ? "⌘K" : "Ctrl+K";
|
|
2296
|
+
z(() => {
|
|
2291
2297
|
(async () => {
|
|
2292
2298
|
if (n.navigationData)
|
|
2293
2299
|
try {
|
|
@@ -2300,59 +2306,59 @@ function zo({ language: t }) {
|
|
|
2300
2306
|
slug: oe.slug
|
|
2301
2307
|
})) : [{ title: V.title, slug: V.slug }]);
|
|
2302
2308
|
E(G);
|
|
2303
|
-
} catch (
|
|
2304
|
-
console.error("Failed to build search index:",
|
|
2309
|
+
} catch ($) {
|
|
2310
|
+
console.error("Failed to build search index:", $);
|
|
2305
2311
|
}
|
|
2306
2312
|
})();
|
|
2307
|
-
}, [n.navigationData, t, a]),
|
|
2313
|
+
}, [n.navigationData, t, a]), z(() => {
|
|
2308
2314
|
if (!c.trim()) {
|
|
2309
2315
|
d([]), f(0);
|
|
2310
2316
|
return;
|
|
2311
2317
|
}
|
|
2312
|
-
const p = c.toLowerCase(),
|
|
2318
|
+
const p = c.toLowerCase(), $ = v.filter(
|
|
2313
2319
|
(G) => G.title.toLowerCase().includes(p) || G.slug.toLowerCase().includes(p)
|
|
2314
2320
|
);
|
|
2315
|
-
d(
|
|
2316
|
-
}, [c]),
|
|
2317
|
-
const p = (
|
|
2318
|
-
(
|
|
2321
|
+
d($), f(0);
|
|
2322
|
+
}, [c]), z(() => {
|
|
2323
|
+
const p = ($) => {
|
|
2324
|
+
($.metaKey || $.ctrlKey) && $.key === "k" && ($.preventDefault(), l(!0), setTimeout(() => {
|
|
2319
2325
|
var G;
|
|
2320
2326
|
return (G = m.current) == null ? void 0 : G.focus();
|
|
2321
|
-
}, 100)),
|
|
2327
|
+
}, 100)), $.key === "Escape" && r && (l(!1), i(""));
|
|
2322
2328
|
};
|
|
2323
2329
|
return document.addEventListener("keydown", p), () => document.removeEventListener("keydown", p);
|
|
2324
|
-
}, [r]),
|
|
2330
|
+
}, [r]), z(() => {
|
|
2325
2331
|
const p = () => {
|
|
2326
2332
|
l(!0), setTimeout(() => {
|
|
2327
2333
|
var G;
|
|
2328
2334
|
return (G = m.current) == null ? void 0 : G.focus();
|
|
2329
2335
|
}, 100);
|
|
2330
|
-
},
|
|
2331
|
-
l(!1),
|
|
2336
|
+
}, $ = () => {
|
|
2337
|
+
l(!1), i("");
|
|
2332
2338
|
};
|
|
2333
|
-
return window.addEventListener("blog:open-search", p), window.addEventListener("blog:close-search",
|
|
2334
|
-
window.removeEventListener("blog:open-search", p), window.removeEventListener("blog:close-search",
|
|
2339
|
+
return window.addEventListener("blog:open-search", p), window.addEventListener("blog:close-search", $), () => {
|
|
2340
|
+
window.removeEventListener("blog:open-search", p), window.removeEventListener("blog:close-search", $);
|
|
2335
2341
|
};
|
|
2336
2342
|
}, []);
|
|
2337
2343
|
const N = (p) => {
|
|
2338
|
-
p.key === "ArrowDown" ? (p.preventDefault(), f((
|
|
2344
|
+
p.key === "ArrowDown" ? (p.preventDefault(), f(($) => Math.min($ + 1, u.length - 1))) : p.key === "ArrowUp" ? (p.preventDefault(), f(($) => Math.max($ - 1, 0))) : p.key === "Enter" && u[h] && (p.preventDefault(), M(u[h].slug));
|
|
2339
2345
|
};
|
|
2340
|
-
|
|
2341
|
-
const p = (
|
|
2342
|
-
y.current && !y.current.contains(
|
|
2346
|
+
z(() => {
|
|
2347
|
+
const p = ($) => {
|
|
2348
|
+
y.current && !y.current.contains($.target) && (l(!1), i(""));
|
|
2343
2349
|
};
|
|
2344
2350
|
return r && document.addEventListener("mousedown", p), () => document.removeEventListener("mousedown", p);
|
|
2345
2351
|
}, [r]);
|
|
2346
|
-
const
|
|
2347
|
-
const
|
|
2348
|
-
o(`${
|
|
2352
|
+
const M = (p) => {
|
|
2353
|
+
const $ = n.basePath || "";
|
|
2354
|
+
o(`${$}/${t}/${p}`), l(!1), i("");
|
|
2349
2355
|
};
|
|
2350
|
-
return /* @__PURE__ */ T(
|
|
2356
|
+
return /* @__PURE__ */ T(fe, { children: [
|
|
2351
2357
|
/* @__PURE__ */ T(
|
|
2352
2358
|
"button",
|
|
2353
2359
|
{
|
|
2354
2360
|
type: "button",
|
|
2355
|
-
className:
|
|
2361
|
+
className: U.searchButton,
|
|
2356
2362
|
onClick: () => {
|
|
2357
2363
|
l(!0), setTimeout(() => {
|
|
2358
2364
|
var p;
|
|
@@ -2361,83 +2367,83 @@ function zo({ language: t }) {
|
|
|
2361
2367
|
},
|
|
2362
2368
|
"aria-label": e("ui.search"),
|
|
2363
2369
|
children: [
|
|
2364
|
-
/* @__PURE__ */
|
|
2365
|
-
/* @__PURE__ */
|
|
2366
|
-
/* @__PURE__ */
|
|
2370
|
+
/* @__PURE__ */ s(gt, { className: U.searchIcon }),
|
|
2371
|
+
/* @__PURE__ */ s("span", { className: U.searchHint, children: e("ui.search") }),
|
|
2372
|
+
/* @__PURE__ */ s("kbd", { className: U.kbd, children: I })
|
|
2367
2373
|
]
|
|
2368
2374
|
}
|
|
2369
2375
|
),
|
|
2370
|
-
r &&
|
|
2371
|
-
/* @__PURE__ */
|
|
2376
|
+
r && Wt(
|
|
2377
|
+
/* @__PURE__ */ s(
|
|
2372
2378
|
"div",
|
|
2373
2379
|
{
|
|
2374
|
-
className:
|
|
2380
|
+
className: U.searchOverlay,
|
|
2375
2381
|
onClick: () => {
|
|
2376
|
-
l(!1),
|
|
2382
|
+
l(!1), i("");
|
|
2377
2383
|
},
|
|
2378
2384
|
children: /* @__PURE__ */ T(
|
|
2379
2385
|
"div",
|
|
2380
2386
|
{
|
|
2381
|
-
className:
|
|
2387
|
+
className: U.searchModal,
|
|
2382
2388
|
ref: y,
|
|
2383
2389
|
onClick: (p) => p.stopPropagation(),
|
|
2384
2390
|
children: [
|
|
2385
|
-
/* @__PURE__ */ T("div", { className:
|
|
2386
|
-
/* @__PURE__ */
|
|
2387
|
-
/* @__PURE__ */
|
|
2391
|
+
/* @__PURE__ */ T("div", { className: U.searchHeader, children: [
|
|
2392
|
+
/* @__PURE__ */ s(gt, { className: U.searchIcon }),
|
|
2393
|
+
/* @__PURE__ */ s(
|
|
2388
2394
|
"input",
|
|
2389
2395
|
{
|
|
2390
2396
|
ref: m,
|
|
2391
2397
|
type: "text",
|
|
2392
|
-
className:
|
|
2398
|
+
className: U.searchInput,
|
|
2393
2399
|
placeholder: e("ui.searchPlaceholder"),
|
|
2394
2400
|
value: c,
|
|
2395
|
-
onChange: (p) =>
|
|
2401
|
+
onChange: (p) => i(p.target.value),
|
|
2396
2402
|
onKeyDown: N
|
|
2397
2403
|
}
|
|
2398
2404
|
),
|
|
2399
|
-
/* @__PURE__ */
|
|
2405
|
+
/* @__PURE__ */ s(
|
|
2400
2406
|
"button",
|
|
2401
2407
|
{
|
|
2402
2408
|
type: "button",
|
|
2403
|
-
className:
|
|
2409
|
+
className: U.closeButton,
|
|
2404
2410
|
onClick: () => {
|
|
2405
|
-
l(!1),
|
|
2411
|
+
l(!1), i("");
|
|
2406
2412
|
},
|
|
2407
2413
|
"aria-label": "Close search",
|
|
2408
|
-
children: /* @__PURE__ */
|
|
2414
|
+
children: /* @__PURE__ */ s(dt, {})
|
|
2409
2415
|
}
|
|
2410
2416
|
)
|
|
2411
2417
|
] }),
|
|
2412
|
-
c && /* @__PURE__ */
|
|
2418
|
+
c && /* @__PURE__ */ s("div", { className: U.searchResults, children: u.length === 0 ? /* @__PURE__ */ s("div", { className: U.noResults, children: e("ui.noSearchResults") }) : /* @__PURE__ */ s("ul", { className: U.resultsList, children: u.map((p, $) => /* @__PURE__ */ s("li", { children: /* @__PURE__ */ T(
|
|
2413
2419
|
"button",
|
|
2414
2420
|
{
|
|
2415
2421
|
type: "button",
|
|
2416
|
-
className: `${
|
|
2417
|
-
onClick: () =>
|
|
2418
|
-
onMouseEnter: () => f(
|
|
2422
|
+
className: `${U.resultItem} ${$ === h ? U.selected : ""}`,
|
|
2423
|
+
onClick: () => M(p.slug),
|
|
2424
|
+
onMouseEnter: () => f($),
|
|
2419
2425
|
children: [
|
|
2420
|
-
/* @__PURE__ */
|
|
2421
|
-
/* @__PURE__ */ T("div", { className:
|
|
2426
|
+
/* @__PURE__ */ s("div", { className: U.resultTitle, children: p.title }),
|
|
2427
|
+
/* @__PURE__ */ T("div", { className: U.resultSlug, children: [
|
|
2422
2428
|
"/",
|
|
2423
2429
|
p.slug
|
|
2424
2430
|
] })
|
|
2425
2431
|
]
|
|
2426
2432
|
}
|
|
2427
2433
|
) }, p.slug)) }) }),
|
|
2428
|
-
!c && /* @__PURE__ */ T("div", { className:
|
|
2429
|
-
/* @__PURE__ */ T("div", { className:
|
|
2430
|
-
/* @__PURE__ */
|
|
2431
|
-
/* @__PURE__ */
|
|
2432
|
-
/* @__PURE__ */
|
|
2434
|
+
!c && /* @__PURE__ */ T("div", { className: U.searchHints, children: [
|
|
2435
|
+
/* @__PURE__ */ T("div", { className: U.hint, children: [
|
|
2436
|
+
/* @__PURE__ */ s("kbd", { children: "↑" }),
|
|
2437
|
+
/* @__PURE__ */ s("kbd", { children: "↓" }),
|
|
2438
|
+
/* @__PURE__ */ s("span", { children: e("ui.searchNavigate") })
|
|
2433
2439
|
] }),
|
|
2434
|
-
/* @__PURE__ */ T("div", { className:
|
|
2435
|
-
/* @__PURE__ */
|
|
2436
|
-
/* @__PURE__ */
|
|
2440
|
+
/* @__PURE__ */ T("div", { className: U.hint, children: [
|
|
2441
|
+
/* @__PURE__ */ s("kbd", { children: "↵" }),
|
|
2442
|
+
/* @__PURE__ */ s("span", { children: e("ui.searchSelect") })
|
|
2437
2443
|
] }),
|
|
2438
|
-
/* @__PURE__ */ T("div", { className:
|
|
2439
|
-
/* @__PURE__ */
|
|
2440
|
-
/* @__PURE__ */
|
|
2444
|
+
/* @__PURE__ */ T("div", { className: U.hint, children: [
|
|
2445
|
+
/* @__PURE__ */ s("kbd", { children: "esc" }),
|
|
2446
|
+
/* @__PURE__ */ s("span", { children: e("ui.searchClose") })
|
|
2441
2447
|
] })
|
|
2442
2448
|
] })
|
|
2443
2449
|
]
|
|
@@ -2449,50 +2455,50 @@ function zo({ language: t }) {
|
|
|
2449
2455
|
)
|
|
2450
2456
|
] });
|
|
2451
2457
|
}
|
|
2452
|
-
const
|
|
2453
|
-
header:
|
|
2454
|
-
container:
|
|
2455
|
-
content:
|
|
2456
|
-
leftSection:
|
|
2457
|
-
mobileMenuButton:
|
|
2458
|
-
burgerIcon:
|
|
2459
|
-
logo:
|
|
2460
|
-
nav:
|
|
2461
|
-
navLink:
|
|
2462
|
-
externalIcon:
|
|
2463
|
-
supportDropdown:
|
|
2464
|
-
themeDropdown:
|
|
2465
|
-
themeButton:
|
|
2466
|
-
themeIcon:
|
|
2467
|
-
supportButton:
|
|
2468
|
-
caretIcon:
|
|
2469
|
-
dropdownMenu:
|
|
2470
|
-
dropdownItem:
|
|
2471
|
-
dropdownIcon:
|
|
2458
|
+
const Vo = "_header_jrobc_1", Xo = "_container_jrobc_24", Ko = "_content_jrobc_36", Qo = "_leftSection_jrobc_43", Jo = "_mobileMenuButton_jrobc_49", Zo = "_burgerIcon_jrobc_87", ea = "_logo_jrobc_92", ta = "_nav_jrobc_98", na = "_navLink_jrobc_109", ra = "_externalIcon_jrobc_135", oa = "_supportDropdown_jrobc_141", aa = "_themeDropdown_jrobc_145", sa = "_themeButton_jrobc_149", ia = "_themeIcon_jrobc_171", ca = "_supportButton_jrobc_177", la = "_caretIcon_jrobc_198", ua = "_dropdownMenu_jrobc_208", da = "_dropdownItem_jrobc_221", fa = "_dropdownIcon_jrobc_244", H = {
|
|
2459
|
+
header: Vo,
|
|
2460
|
+
container: Xo,
|
|
2461
|
+
content: Ko,
|
|
2462
|
+
leftSection: Qo,
|
|
2463
|
+
mobileMenuButton: Jo,
|
|
2464
|
+
burgerIcon: Zo,
|
|
2465
|
+
logo: ea,
|
|
2466
|
+
nav: ta,
|
|
2467
|
+
navLink: na,
|
|
2468
|
+
externalIcon: ra,
|
|
2469
|
+
supportDropdown: oa,
|
|
2470
|
+
themeDropdown: aa,
|
|
2471
|
+
themeButton: sa,
|
|
2472
|
+
themeIcon: ia,
|
|
2473
|
+
supportButton: ca,
|
|
2474
|
+
caretIcon: la,
|
|
2475
|
+
dropdownMenu: ua,
|
|
2476
|
+
dropdownItem: da,
|
|
2477
|
+
dropdownIcon: fa
|
|
2472
2478
|
};
|
|
2473
|
-
function
|
|
2474
|
-
const { t: e, i18n: o } =
|
|
2475
|
-
return
|
|
2479
|
+
function ha({ onMobileMenuToggle: t }) {
|
|
2480
|
+
const { t: e, i18n: o } = Z(), { config: n } = ee(), a = n.header ?? {}, r = a.navLinks ?? [], l = a.dropdownItems ?? [], [c, i] = F(!1), [u, d] = F(!1), { theme: h, setTheme: f } = zt(), v = ge(null), E = ge(null);
|
|
2481
|
+
return z(() => {
|
|
2476
2482
|
const m = (y) => {
|
|
2477
|
-
v.current && !v.current.contains(y.target) &&
|
|
2483
|
+
v.current && !v.current.contains(y.target) && i(!1), E.current && !E.current.contains(y.target) && d(!1);
|
|
2478
2484
|
};
|
|
2479
2485
|
return document.addEventListener("mousedown", m), () => document.removeEventListener("mousedown", m);
|
|
2480
|
-
}, []), /* @__PURE__ */
|
|
2486
|
+
}, []), /* @__PURE__ */ s("header", { className: H.header, children: /* @__PURE__ */ s("div", { className: H.container, children: /* @__PURE__ */ T("div", { className: H.content, children: [
|
|
2481
2487
|
/* @__PURE__ */ T("div", { className: H.leftSection, children: [
|
|
2482
|
-
/* @__PURE__ */
|
|
2488
|
+
/* @__PURE__ */ s(
|
|
2483
2489
|
"button",
|
|
2484
2490
|
{
|
|
2485
2491
|
type: "button",
|
|
2486
2492
|
className: H.mobileMenuButton,
|
|
2487
2493
|
onClick: t,
|
|
2488
2494
|
"aria-label": "Open menu",
|
|
2489
|
-
children: /* @__PURE__ */
|
|
2495
|
+
children: /* @__PURE__ */ s(dn, { className: H.burgerIcon })
|
|
2490
2496
|
}
|
|
2491
2497
|
),
|
|
2492
|
-
/* @__PURE__ */
|
|
2498
|
+
/* @__PURE__ */ s("div", { className: H.logo })
|
|
2493
2499
|
] }),
|
|
2494
2500
|
/* @__PURE__ */ T("nav", { className: H.nav, children: [
|
|
2495
|
-
/* @__PURE__ */
|
|
2501
|
+
/* @__PURE__ */ s(Go, { language: o.language }),
|
|
2496
2502
|
/* @__PURE__ */ T("div", { className: H.themeDropdown, ref: E, children: [
|
|
2497
2503
|
/* @__PURE__ */ T(
|
|
2498
2504
|
"button",
|
|
@@ -2504,10 +2510,10 @@ function fa({ onMobileMenuToggle: t }) {
|
|
|
2504
2510
|
"aria-haspopup": "true",
|
|
2505
2511
|
"aria-label": e("ui.theme"),
|
|
2506
2512
|
children: [
|
|
2507
|
-
h === "light" && /* @__PURE__ */
|
|
2508
|
-
h === "dark" && /* @__PURE__ */
|
|
2509
|
-
h === "system" && /* @__PURE__ */
|
|
2510
|
-
/* @__PURE__ */
|
|
2513
|
+
h === "light" && /* @__PURE__ */ s(_t, { className: H.themeIcon }),
|
|
2514
|
+
h === "dark" && /* @__PURE__ */ s(yt, { className: H.themeIcon }),
|
|
2515
|
+
h === "system" && /* @__PURE__ */ s(bt, { className: H.themeIcon }),
|
|
2516
|
+
/* @__PURE__ */ s(ot, { className: H.caretIcon })
|
|
2511
2517
|
]
|
|
2512
2518
|
}
|
|
2513
2519
|
),
|
|
@@ -2521,7 +2527,7 @@ function fa({ onMobileMenuToggle: t }) {
|
|
|
2521
2527
|
},
|
|
2522
2528
|
className: H.dropdownItem,
|
|
2523
2529
|
children: [
|
|
2524
|
-
/* @__PURE__ */
|
|
2530
|
+
/* @__PURE__ */ s(_t, { className: H.dropdownIcon }),
|
|
2525
2531
|
e("ui.light")
|
|
2526
2532
|
]
|
|
2527
2533
|
}
|
|
@@ -2535,7 +2541,7 @@ function fa({ onMobileMenuToggle: t }) {
|
|
|
2535
2541
|
},
|
|
2536
2542
|
className: H.dropdownItem,
|
|
2537
2543
|
children: [
|
|
2538
|
-
/* @__PURE__ */
|
|
2544
|
+
/* @__PURE__ */ s(yt, { className: H.dropdownIcon }),
|
|
2539
2545
|
e("ui.dark")
|
|
2540
2546
|
]
|
|
2541
2547
|
}
|
|
@@ -2549,7 +2555,7 @@ function fa({ onMobileMenuToggle: t }) {
|
|
|
2549
2555
|
},
|
|
2550
2556
|
className: H.dropdownItem,
|
|
2551
2557
|
children: [
|
|
2552
|
-
/* @__PURE__ */
|
|
2558
|
+
/* @__PURE__ */ s(bt, { className: H.dropdownIcon }),
|
|
2553
2559
|
e("ui.system")
|
|
2554
2560
|
]
|
|
2555
2561
|
}
|
|
@@ -2562,16 +2568,16 @@ function fa({ onMobileMenuToggle: t }) {
|
|
|
2562
2568
|
{
|
|
2563
2569
|
type: "button",
|
|
2564
2570
|
className: H.supportButton,
|
|
2565
|
-
onClick: () =>
|
|
2571
|
+
onClick: () => i(!c),
|
|
2566
2572
|
"aria-expanded": c,
|
|
2567
2573
|
"aria-haspopup": "true",
|
|
2568
2574
|
children: [
|
|
2569
2575
|
e("ui.support"),
|
|
2570
|
-
/* @__PURE__ */
|
|
2576
|
+
/* @__PURE__ */ s(ot, { className: H.caretIcon })
|
|
2571
2577
|
]
|
|
2572
2578
|
}
|
|
2573
2579
|
),
|
|
2574
|
-
c && /* @__PURE__ */
|
|
2580
|
+
c && /* @__PURE__ */ s("div", { className: H.dropdownMenu, children: l.map((m, y) => {
|
|
2575
2581
|
const b = m.target ?? (m.url.startsWith("http") ? "_blank" : "_self"), I = m.rel ?? (b === "_blank" ? "noopener noreferrer" : void 0), N = m.icon;
|
|
2576
2582
|
return /* @__PURE__ */ T(
|
|
2577
2583
|
"a",
|
|
@@ -2581,7 +2587,7 @@ function fa({ onMobileMenuToggle: t }) {
|
|
|
2581
2587
|
rel: I,
|
|
2582
2588
|
className: H.dropdownItem,
|
|
2583
2589
|
children: [
|
|
2584
|
-
N && /* @__PURE__ */
|
|
2590
|
+
N && /* @__PURE__ */ s(N, { className: H.dropdownIcon }),
|
|
2585
2591
|
m.label
|
|
2586
2592
|
]
|
|
2587
2593
|
},
|
|
@@ -2600,7 +2606,7 @@ function fa({ onMobileMenuToggle: t }) {
|
|
|
2600
2606
|
className: m.className ?? H.navLink,
|
|
2601
2607
|
children: [
|
|
2602
2608
|
m.label,
|
|
2603
|
-
N && /* @__PURE__ */
|
|
2609
|
+
N && /* @__PURE__ */ s(N, { className: H.externalIcon })
|
|
2604
2610
|
]
|
|
2605
2611
|
},
|
|
2606
2612
|
y
|
|
@@ -2613,7 +2619,7 @@ function ht({
|
|
|
2613
2619
|
styles: t,
|
|
2614
2620
|
onLanguageChange: e
|
|
2615
2621
|
}) {
|
|
2616
|
-
const { i18n: o } =
|
|
2622
|
+
const { i18n: o } = Z(), n = Ee(), a = _e(), { config: r } = ee(), [l, c] = F(!1), i = ge(null), u = o.language, d = (f) => {
|
|
2617
2623
|
const v = r.basePath || "";
|
|
2618
2624
|
let E = n.pathname;
|
|
2619
2625
|
v && E.startsWith(v) && (E = E.slice(v.length));
|
|
@@ -2623,14 +2629,14 @@ function ht({
|
|
|
2623
2629
|
const I = b + n.search + n.hash;
|
|
2624
2630
|
o.changeLanguage(f), a(I), c(!1), e == null || e();
|
|
2625
2631
|
};
|
|
2626
|
-
|
|
2632
|
+
z(() => {
|
|
2627
2633
|
const f = (v) => {
|
|
2628
|
-
|
|
2634
|
+
i.current && !i.current.contains(v.target) && c(!1);
|
|
2629
2635
|
};
|
|
2630
2636
|
return document.addEventListener("mousedown", f), () => document.removeEventListener("mousedown", f);
|
|
2631
2637
|
}, []);
|
|
2632
2638
|
const h = (f) => o.getFixedT(f)("language") || f;
|
|
2633
|
-
return /* @__PURE__ */ T("div", { className: t.languageSelect, ref:
|
|
2639
|
+
return /* @__PURE__ */ T("div", { className: t.languageSelect, ref: i, children: [
|
|
2634
2640
|
/* @__PURE__ */ T(
|
|
2635
2641
|
"button",
|
|
2636
2642
|
{
|
|
@@ -2640,13 +2646,13 @@ function ht({
|
|
|
2640
2646
|
"aria-expanded": l,
|
|
2641
2647
|
"aria-haspopup": "listbox",
|
|
2642
2648
|
children: [
|
|
2643
|
-
/* @__PURE__ */
|
|
2649
|
+
/* @__PURE__ */ s(fn, { className: t.icon }),
|
|
2644
2650
|
h(u),
|
|
2645
|
-
/* @__PURE__ */
|
|
2651
|
+
/* @__PURE__ */ s(ot, { className: t.chevron })
|
|
2646
2652
|
]
|
|
2647
2653
|
}
|
|
2648
2654
|
),
|
|
2649
|
-
l && /* @__PURE__ */
|
|
2655
|
+
l && /* @__PURE__ */ s("div", { className: t.languageDropdown, role: "listbox", children: r.supportedLanguages.map((f) => /* @__PURE__ */ s(
|
|
2650
2656
|
"button",
|
|
2651
2657
|
{
|
|
2652
2658
|
type: "button",
|
|
@@ -2661,8 +2667,8 @@ function ht({
|
|
|
2661
2667
|
] });
|
|
2662
2668
|
}
|
|
2663
2669
|
function pt({ styles: t, onLinkClick: e }) {
|
|
2664
|
-
const { i18n: o } =
|
|
2665
|
-
|
|
2670
|
+
const { i18n: o } = Z(), n = Ee(), { config: a, loadContent: r } = ee(), [l, c] = F([]), [i, u] = F({}), d = o.language;
|
|
2671
|
+
z(() => {
|
|
2666
2672
|
(async () => {
|
|
2667
2673
|
if (a.navigationData)
|
|
2668
2674
|
try {
|
|
@@ -2673,10 +2679,10 @@ function pt({ styles: t, onLinkClick: e }) {
|
|
|
2673
2679
|
);
|
|
2674
2680
|
c(y);
|
|
2675
2681
|
const b = y.reduce(
|
|
2676
|
-
(I, N,
|
|
2682
|
+
(I, N, M) => {
|
|
2677
2683
|
if (De(N)) {
|
|
2678
|
-
const p = a.navigationData[
|
|
2679
|
-
I[N.title] =
|
|
2684
|
+
const p = a.navigationData[M], $ = "items" in p && p.defaultOpen === !0;
|
|
2685
|
+
I[N.title] = $;
|
|
2680
2686
|
}
|
|
2681
2687
|
return I;
|
|
2682
2688
|
},
|
|
@@ -2708,90 +2714,90 @@ function pt({ styles: t, onLinkClick: e }) {
|
|
|
2708
2714
|
}, E = () => {
|
|
2709
2715
|
e == null || e();
|
|
2710
2716
|
};
|
|
2711
|
-
return /* @__PURE__ */
|
|
2717
|
+
return /* @__PURE__ */ s("div", { className: t.navigation, children: l.map((m) => De(m) ? /* @__PURE__ */ T("div", { className: t.section, children: [
|
|
2712
2718
|
/* @__PURE__ */ T(
|
|
2713
2719
|
"button",
|
|
2714
2720
|
{
|
|
2715
2721
|
type: "button",
|
|
2716
|
-
className: `${t.sectionButton} ${
|
|
2722
|
+
className: `${t.sectionButton} ${i[m.title] ? t.expanded : ""}`,
|
|
2717
2723
|
onClick: () => h(m.title),
|
|
2718
2724
|
children: [
|
|
2719
2725
|
m.title,
|
|
2720
|
-
/* @__PURE__ */
|
|
2726
|
+
/* @__PURE__ */ s(qt, { className: t.icon })
|
|
2721
2727
|
]
|
|
2722
2728
|
}
|
|
2723
2729
|
),
|
|
2724
|
-
|
|
2730
|
+
i[m.title] && /* @__PURE__ */ s("div", { className: t.sectionItems, children: m.items.map((y) => /* @__PURE__ */ s(
|
|
2725
2731
|
qe,
|
|
2726
2732
|
{
|
|
2727
2733
|
to: v(y.slug),
|
|
2728
2734
|
className: `${t.navItem} ${f(y.slug) ? t.active : ""}`,
|
|
2729
2735
|
onClick: E,
|
|
2730
|
-
children: /* @__PURE__ */
|
|
2736
|
+
children: /* @__PURE__ */ s("div", { className: t.navItemContent, children: /* @__PURE__ */ s("span", { className: t.navItemTitle, children: y.title }) })
|
|
2731
2737
|
},
|
|
2732
2738
|
y.slug
|
|
2733
2739
|
)) })
|
|
2734
|
-
] }, m.title) : /* @__PURE__ */
|
|
2740
|
+
] }, m.title) : /* @__PURE__ */ s(
|
|
2735
2741
|
qe,
|
|
2736
2742
|
{
|
|
2737
2743
|
to: v(m.slug),
|
|
2738
2744
|
className: `${t.navItem} ${f(m.slug) ? t.active : ""}`,
|
|
2739
2745
|
onClick: E,
|
|
2740
|
-
children: /* @__PURE__ */
|
|
2746
|
+
children: /* @__PURE__ */ s("div", { className: t.navItemContent, children: /* @__PURE__ */ s("span", { className: t.navItemTitle, children: m.title }) })
|
|
2741
2747
|
},
|
|
2742
2748
|
m.slug
|
|
2743
2749
|
)) });
|
|
2744
2750
|
}
|
|
2745
|
-
function
|
|
2751
|
+
function Hs({
|
|
2746
2752
|
styles: t,
|
|
2747
2753
|
onLinkClick: e,
|
|
2748
2754
|
onLanguageChange: o
|
|
2749
2755
|
}) {
|
|
2750
|
-
return /* @__PURE__ */ T(
|
|
2751
|
-
/* @__PURE__ */
|
|
2752
|
-
/* @__PURE__ */
|
|
2756
|
+
return /* @__PURE__ */ T(fe, { children: [
|
|
2757
|
+
/* @__PURE__ */ s(ht, { styles: t, onLanguageChange: o }),
|
|
2758
|
+
/* @__PURE__ */ s(pt, { styles: t, onLinkClick: e })
|
|
2753
2759
|
] });
|
|
2754
2760
|
}
|
|
2755
|
-
const
|
|
2756
|
-
backdrop:
|
|
2757
|
-
open:
|
|
2758
|
-
mobileMenu:
|
|
2759
|
-
header:
|
|
2760
|
-
brand:
|
|
2761
|
-
cloudIcon:
|
|
2762
|
-
title:
|
|
2763
|
-
closeButton:
|
|
2764
|
-
closeIcon:
|
|
2765
|
-
languageSection:
|
|
2766
|
-
languageSelect:
|
|
2767
|
-
languageButton:
|
|
2768
|
-
icon:
|
|
2769
|
-
chevron:
|
|
2770
|
-
languageDropdown:
|
|
2771
|
-
languageOption:
|
|
2772
|
-
selected:
|
|
2773
|
-
scrollArea:
|
|
2774
|
-
navigation:
|
|
2775
|
-
section:
|
|
2761
|
+
const pa = "_backdrop_1a7pu_1", ma = "_open_1a7pu_13", va = "_mobileMenu_1a7pu_18", ga = "_header_1a7pu_37", _a = "_brand_1a7pu_46", ya = "_cloudIcon_1a7pu_53", ba = "_title_1a7pu_62", Ta = "_closeButton_1a7pu_69", wa = "_closeIcon_1a7pu_101", Ea = "_languageSection_1a7pu_106", Ca = "_languageSelect_1a7pu_112", Sa = "_languageButton_1a7pu_117", Pa = "_icon_1a7pu_156", Ia = "_chevron_1a7pu_162", Aa = "_languageDropdown_1a7pu_172", ka = "_languageOption_1a7pu_185", Na = "_selected_1a7pu_226", xa = "_scrollArea_1a7pu_231", Oa = "_navigation_1a7pu_237", $a = "_section_1a7pu_241", Ra = "_sectionButton_1a7pu_245", La = "_expanded_1a7pu_285", Ma = "_sectionItems_1a7pu_289", Da = "_navItem_1a7pu_297", ja = "_active_1a7pu_310", Ba = "_navItemContent_1a7pu_316", Ha = "_navItemTitle_1a7pu_322", ne = {
|
|
2762
|
+
backdrop: pa,
|
|
2763
|
+
open: ma,
|
|
2764
|
+
mobileMenu: va,
|
|
2765
|
+
header: ga,
|
|
2766
|
+
brand: _a,
|
|
2767
|
+
cloudIcon: ya,
|
|
2768
|
+
title: ba,
|
|
2769
|
+
closeButton: Ta,
|
|
2770
|
+
closeIcon: wa,
|
|
2771
|
+
languageSection: Ea,
|
|
2772
|
+
languageSelect: Ca,
|
|
2773
|
+
languageButton: Sa,
|
|
2774
|
+
icon: Pa,
|
|
2775
|
+
chevron: Ia,
|
|
2776
|
+
languageDropdown: Aa,
|
|
2777
|
+
languageOption: ka,
|
|
2778
|
+
selected: Na,
|
|
2779
|
+
scrollArea: xa,
|
|
2780
|
+
navigation: Oa,
|
|
2781
|
+
section: $a,
|
|
2776
2782
|
sectionButton: Ra,
|
|
2777
|
-
expanded:
|
|
2778
|
-
sectionItems:
|
|
2779
|
-
navItem:
|
|
2780
|
-
active:
|
|
2781
|
-
navItemContent:
|
|
2782
|
-
navItemTitle:
|
|
2783
|
+
expanded: La,
|
|
2784
|
+
sectionItems: Ma,
|
|
2785
|
+
navItem: Da,
|
|
2786
|
+
active: ja,
|
|
2787
|
+
navItemContent: Ba,
|
|
2788
|
+
navItemTitle: Ha
|
|
2783
2789
|
};
|
|
2784
|
-
function
|
|
2785
|
-
const { config: o } =
|
|
2786
|
-
return
|
|
2790
|
+
function Fa({ isOpen: t, onClose: e }) {
|
|
2791
|
+
const { config: o } = ee(), n = o.logo;
|
|
2792
|
+
return z(() => (t ? document.body.style.overflow = "hidden" : document.body.style.overflow = "unset", () => {
|
|
2787
2793
|
document.body.style.overflow = "unset";
|
|
2788
|
-
}), [t]),
|
|
2794
|
+
}), [t]), z(() => {
|
|
2789
2795
|
const a = (r) => {
|
|
2790
2796
|
r.key === "Escape" && t && e();
|
|
2791
2797
|
};
|
|
2792
2798
|
return document.addEventListener("keydown", a), () => document.removeEventListener("keydown", a);
|
|
2793
|
-
}, [t, e]), /* @__PURE__ */ T(
|
|
2794
|
-
/* @__PURE__ */
|
|
2799
|
+
}, [t, e]), /* @__PURE__ */ T(fe, { children: [
|
|
2800
|
+
/* @__PURE__ */ s(
|
|
2795
2801
|
"div",
|
|
2796
2802
|
{
|
|
2797
2803
|
className: `${ne.backdrop} ${t ? ne.open : ""}`,
|
|
@@ -2801,71 +2807,71 @@ function Ha({ isOpen: t, onClose: e }) {
|
|
|
2801
2807
|
/* @__PURE__ */ T("div", { className: `${ne.mobileMenu} ${t ? ne.open : ""}`, children: [
|
|
2802
2808
|
/* @__PURE__ */ T("div", { className: ne.header, children: [
|
|
2803
2809
|
/* @__PURE__ */ T("div", { className: ne.brand, children: [
|
|
2804
|
-
n && /* @__PURE__ */
|
|
2805
|
-
/* @__PURE__ */
|
|
2810
|
+
n && /* @__PURE__ */ s(n, { className: ne.cloudIcon }),
|
|
2811
|
+
/* @__PURE__ */ s("h1", { className: ne.title, children: o.title })
|
|
2806
2812
|
] }),
|
|
2807
|
-
/* @__PURE__ */
|
|
2813
|
+
/* @__PURE__ */ s(
|
|
2808
2814
|
"button",
|
|
2809
2815
|
{
|
|
2810
2816
|
type: "button",
|
|
2811
2817
|
className: ne.closeButton,
|
|
2812
2818
|
onClick: e,
|
|
2813
2819
|
"aria-label": "Close menu",
|
|
2814
|
-
children: /* @__PURE__ */
|
|
2820
|
+
children: /* @__PURE__ */ s(dt, { className: ne.closeIcon })
|
|
2815
2821
|
}
|
|
2816
2822
|
)
|
|
2817
2823
|
] }),
|
|
2818
|
-
/* @__PURE__ */
|
|
2819
|
-
/* @__PURE__ */
|
|
2824
|
+
/* @__PURE__ */ s("div", { className: ne.languageSection, children: /* @__PURE__ */ s(ht, { styles: ne, onLanguageChange: e }) }),
|
|
2825
|
+
/* @__PURE__ */ s("div", { className: ne.scrollArea, children: /* @__PURE__ */ s(pt, { styles: ne, onLinkClick: e }) })
|
|
2820
2826
|
] })
|
|
2821
2827
|
] });
|
|
2822
2828
|
}
|
|
2823
|
-
const
|
|
2824
|
-
sidebar:
|
|
2825
|
-
header:
|
|
2826
|
-
brand:
|
|
2827
|
-
cloudIcon:
|
|
2828
|
-
title:
|
|
2829
|
-
languageSelect:
|
|
2830
|
-
languageButton:
|
|
2831
|
-
icon:
|
|
2832
|
-
chevron:
|
|
2833
|
-
languageDropdown:
|
|
2834
|
-
languageOption:
|
|
2835
|
-
selected:
|
|
2836
|
-
scrollArea:
|
|
2837
|
-
navigation:
|
|
2838
|
-
section:
|
|
2839
|
-
sectionButton:
|
|
2840
|
-
expanded:
|
|
2841
|
-
sectionItems:
|
|
2842
|
-
navItem:
|
|
2843
|
-
active:
|
|
2844
|
-
navItemContent:
|
|
2829
|
+
const qa = "_sidebar_1tdxt_1", Wa = "_header_1tdxt_17", Ya = "_brand_1tdxt_29", Ua = "_cloudIcon_1tdxt_35", za = "_title_1tdxt_44", Ga = "_languageSelect_1tdxt_55", Va = "_languageButton_1tdxt_61", Xa = "_icon_1tdxt_99", Ka = "_chevron_1tdxt_104", Qa = "_languageDropdown_1tdxt_114", Ja = "_languageOption_1tdxt_128", Za = "_selected_1tdxt_147", es = "_scrollArea_1tdxt_152", ts = "_navigation_1tdxt_158", ns = "_section_1tdxt_164", rs = "_sectionButton_1tdxt_170", os = "_expanded_1tdxt_213", as = "_sectionItems_1tdxt_217", ss = "_navItem_1tdxt_225", is = "_active_1tdxt_238", cs = "_navItemContent_1tdxt_243", ve = {
|
|
2830
|
+
sidebar: qa,
|
|
2831
|
+
header: Wa,
|
|
2832
|
+
brand: Ya,
|
|
2833
|
+
cloudIcon: Ua,
|
|
2834
|
+
title: za,
|
|
2835
|
+
languageSelect: Ga,
|
|
2836
|
+
languageButton: Va,
|
|
2837
|
+
icon: Xa,
|
|
2838
|
+
chevron: Ka,
|
|
2839
|
+
languageDropdown: Qa,
|
|
2840
|
+
languageOption: Ja,
|
|
2841
|
+
selected: Za,
|
|
2842
|
+
scrollArea: es,
|
|
2843
|
+
navigation: ts,
|
|
2844
|
+
section: ns,
|
|
2845
|
+
sectionButton: rs,
|
|
2846
|
+
expanded: os,
|
|
2847
|
+
sectionItems: as,
|
|
2848
|
+
navItem: ss,
|
|
2849
|
+
active: is,
|
|
2850
|
+
navItemContent: cs
|
|
2845
2851
|
};
|
|
2846
|
-
function
|
|
2847
|
-
const { config: t } =
|
|
2848
|
-
return /* @__PURE__ */ T("div", { className:
|
|
2849
|
-
/* @__PURE__ */ T("div", { className:
|
|
2850
|
-
/* @__PURE__ */ T("div", { className:
|
|
2851
|
-
e && /* @__PURE__ */
|
|
2852
|
-
/* @__PURE__ */
|
|
2852
|
+
function ls() {
|
|
2853
|
+
const { config: t } = ee(), e = t.logo, o = t.supportedLanguages.length > 1;
|
|
2854
|
+
return /* @__PURE__ */ T("div", { className: ve.sidebar, children: [
|
|
2855
|
+
/* @__PURE__ */ T("div", { className: ve.header, children: [
|
|
2856
|
+
/* @__PURE__ */ T("div", { className: ve.brand, children: [
|
|
2857
|
+
e && /* @__PURE__ */ s(e, { className: ve.cloudIcon }),
|
|
2858
|
+
/* @__PURE__ */ s("div", { className: ve.title, children: t.title })
|
|
2853
2859
|
] }),
|
|
2854
|
-
o && /* @__PURE__ */
|
|
2860
|
+
o && /* @__PURE__ */ s(ht, { styles: ve })
|
|
2855
2861
|
] }),
|
|
2856
|
-
/* @__PURE__ */
|
|
2862
|
+
/* @__PURE__ */ s("div", { className: ve.scrollArea, children: /* @__PURE__ */ s(pt, { styles: ve }) })
|
|
2857
2863
|
] });
|
|
2858
2864
|
}
|
|
2859
|
-
const
|
|
2860
|
-
app:
|
|
2861
|
-
layout:
|
|
2862
|
-
main:
|
|
2863
|
-
fullWidth:
|
|
2864
|
-
contentWrapper:
|
|
2865
|
+
const us = "_app_wf6ni_1", ds = "_layout_wf6ni_9", fs = "_main_wf6ni_15", hs = "_fullWidth_wf6ni_21", ps = "_contentWrapper_wf6ni_30", Me = {
|
|
2866
|
+
app: us,
|
|
2867
|
+
layout: ds,
|
|
2868
|
+
main: fs,
|
|
2869
|
+
fullWidth: hs,
|
|
2870
|
+
contentWrapper: ps
|
|
2865
2871
|
};
|
|
2866
|
-
function
|
|
2867
|
-
const { language: e } = ut(), { i18n: o } =
|
|
2868
|
-
|
|
2872
|
+
function ms({ children: t }) {
|
|
2873
|
+
const { language: e } = ut(), { i18n: o } = Z(), { config: n } = ee(), [a, r] = F(!1);
|
|
2874
|
+
z(() => {
|
|
2869
2875
|
e && n.supportedLanguages.includes(e) && o.changeLanguage(e);
|
|
2870
2876
|
}, [e, o, n.supportedLanguages]);
|
|
2871
2877
|
const l = () => {
|
|
@@ -2874,40 +2880,40 @@ function ps({ children: t }) {
|
|
|
2874
2880
|
r(!1);
|
|
2875
2881
|
};
|
|
2876
2882
|
if (!e || !n.supportedLanguages.includes(e))
|
|
2877
|
-
return /* @__PURE__ */
|
|
2878
|
-
const
|
|
2883
|
+
return /* @__PURE__ */ s(Ft, { to: "/en/welcome", replace: !0 });
|
|
2884
|
+
const i = !!n.header, u = n.showSideMenu !== !1, d = n.contentMaxWidth ? { width: "100%", maxWidth: n.contentMaxWidth } : void 0;
|
|
2879
2885
|
return /* @__PURE__ */ T("div", { className: Me.app, children: [
|
|
2880
|
-
|
|
2881
|
-
/* @__PURE__ */
|
|
2886
|
+
i && /* @__PURE__ */ s(ha, { onMobileMenuToggle: l }),
|
|
2887
|
+
/* @__PURE__ */ s(Fa, { isOpen: a, onClose: c }),
|
|
2882
2888
|
/* @__PURE__ */ T("div", { className: Me.layout, children: [
|
|
2883
|
-
u && /* @__PURE__ */
|
|
2884
|
-
/* @__PURE__ */
|
|
2889
|
+
u && /* @__PURE__ */ s(ls, {}),
|
|
2890
|
+
/* @__PURE__ */ s(
|
|
2885
2891
|
"main",
|
|
2886
2892
|
{
|
|
2887
2893
|
className: `${Me.main} ${u ? "" : Me.fullWidth}`,
|
|
2888
|
-
children: /* @__PURE__ */
|
|
2894
|
+
children: /* @__PURE__ */ s("div", { className: Me.contentWrapper, style: d, children: t })
|
|
2889
2895
|
}
|
|
2890
2896
|
)
|
|
2891
2897
|
] })
|
|
2892
2898
|
] });
|
|
2893
2899
|
}
|
|
2894
|
-
const
|
|
2895
|
-
homePage:
|
|
2896
|
-
header:
|
|
2897
|
-
title:
|
|
2898
|
-
articlesList:
|
|
2899
|
-
articleCard:
|
|
2900
|
-
articleTitle:
|
|
2901
|
-
articleDescription:
|
|
2902
|
-
empty:
|
|
2903
|
-
skeletonCard:
|
|
2904
|
-
skeletonTitle:
|
|
2905
|
-
skeletonText:
|
|
2906
|
-
skeletonMetadata:
|
|
2900
|
+
const vs = "_homePage_10e4f_1", gs = "_header_10e4f_20", _s = "_title_10e4f_24", ys = "_articlesList_10e4f_31", bs = "_articleCard_10e4f_37", Ts = "_articleTitle_10e4f_56", ws = "_articleDescription_10e4f_63", Es = "_empty_10e4f_71", Cs = "_skeletonCard_10e4f_85", Ss = "_skeletonTitle_10e4f_95", Ps = "_skeletonText_10e4f_104", Is = "_skeletonMetadata_10e4f_113", X = {
|
|
2901
|
+
homePage: vs,
|
|
2902
|
+
header: gs,
|
|
2903
|
+
title: _s,
|
|
2904
|
+
articlesList: ys,
|
|
2905
|
+
articleCard: bs,
|
|
2906
|
+
articleTitle: Ts,
|
|
2907
|
+
articleDescription: ws,
|
|
2908
|
+
empty: Es,
|
|
2909
|
+
skeletonCard: Cs,
|
|
2910
|
+
skeletonTitle: Ss,
|
|
2911
|
+
skeletonText: Ps,
|
|
2912
|
+
skeletonMetadata: Is
|
|
2907
2913
|
};
|
|
2908
|
-
function
|
|
2909
|
-
const { i18n: t, t: e } =
|
|
2910
|
-
|
|
2914
|
+
function As() {
|
|
2915
|
+
const { i18n: t, t: e } = Z(), { config: o, loadContent: n } = ee(), a = _e(), [r, l] = F([]), [c, i] = F(!0);
|
|
2916
|
+
z(() => {
|
|
2911
2917
|
(async () => {
|
|
2912
2918
|
try {
|
|
2913
2919
|
const v = o.navigationData || [];
|
|
@@ -2949,7 +2955,7 @@ function Is() {
|
|
|
2949
2955
|
} catch (v) {
|
|
2950
2956
|
console.error("Failed to load articles:", v);
|
|
2951
2957
|
} finally {
|
|
2952
|
-
|
|
2958
|
+
i(!1);
|
|
2953
2959
|
}
|
|
2954
2960
|
})();
|
|
2955
2961
|
}, [t.language, o.navigationData, n]);
|
|
@@ -2959,56 +2965,56 @@ function Is() {
|
|
|
2959
2965
|
};
|
|
2960
2966
|
if (c)
|
|
2961
2967
|
return /* @__PURE__ */ T("div", { className: X.homePage, children: [
|
|
2962
|
-
/* @__PURE__ */
|
|
2963
|
-
/* @__PURE__ */
|
|
2964
|
-
/* @__PURE__ */
|
|
2965
|
-
/* @__PURE__ */
|
|
2966
|
-
/* @__PURE__ */
|
|
2967
|
-
/* @__PURE__ */
|
|
2968
|
+
/* @__PURE__ */ s("div", { className: X.header, children: /* @__PURE__ */ s("h1", { className: X.title, children: e("ui.latestPosts") }) }),
|
|
2969
|
+
/* @__PURE__ */ s("div", { className: X.articlesList, children: [...Array(5)].map((f, v) => /* @__PURE__ */ T("div", { className: X.skeletonCard, children: [
|
|
2970
|
+
/* @__PURE__ */ s("div", { className: X.skeletonTitle }),
|
|
2971
|
+
/* @__PURE__ */ s("div", { className: X.skeletonText }),
|
|
2972
|
+
/* @__PURE__ */ s("div", { className: X.skeletonText }),
|
|
2973
|
+
/* @__PURE__ */ s("div", { className: X.skeletonMetadata })
|
|
2968
2974
|
] }, v)) })
|
|
2969
2975
|
] });
|
|
2970
2976
|
if (r.length === 0)
|
|
2971
|
-
return /* @__PURE__ */
|
|
2977
|
+
return /* @__PURE__ */ s("div", { className: X.empty, children: e("ui.noArticlesFound") });
|
|
2972
2978
|
const d = o.title, h = o.description;
|
|
2973
|
-
return /* @__PURE__ */ T(
|
|
2979
|
+
return /* @__PURE__ */ T(fe, { children: [
|
|
2974
2980
|
/* @__PURE__ */ T(Ye, { children: [
|
|
2975
|
-
/* @__PURE__ */
|
|
2976
|
-
h && /* @__PURE__ */
|
|
2981
|
+
/* @__PURE__ */ s("title", { children: d }),
|
|
2982
|
+
h && /* @__PURE__ */ s("meta", { name: "description", content: h })
|
|
2977
2983
|
] }),
|
|
2978
2984
|
/* @__PURE__ */ T("div", { className: X.homePage, children: [
|
|
2979
|
-
/* @__PURE__ */
|
|
2980
|
-
/* @__PURE__ */
|
|
2985
|
+
/* @__PURE__ */ s("div", { className: X.header, children: /* @__PURE__ */ s("h1", { className: X.title, children: e("ui.latestPosts") }) }),
|
|
2986
|
+
/* @__PURE__ */ s("div", { className: X.articlesList, children: r.map((f) => /* @__PURE__ */ T(
|
|
2981
2987
|
"button",
|
|
2982
2988
|
{
|
|
2983
2989
|
className: X.articleCard,
|
|
2984
2990
|
onClick: () => u(f.slug),
|
|
2985
2991
|
type: "button",
|
|
2986
2992
|
children: [
|
|
2987
|
-
/* @__PURE__ */
|
|
2988
|
-
f.description && /* @__PURE__ */
|
|
2989
|
-
/* @__PURE__ */
|
|
2993
|
+
/* @__PURE__ */ s("h2", { className: X.articleTitle, children: f.title }),
|
|
2994
|
+
f.description && /* @__PURE__ */ s("p", { className: X.articleDescription, children: f.description }),
|
|
2995
|
+
/* @__PURE__ */ s(lt, { date: f.date, author: f.author })
|
|
2990
2996
|
]
|
|
2991
2997
|
},
|
|
2992
2998
|
f.slug
|
|
2993
2999
|
)) })
|
|
2994
3000
|
] }),
|
|
2995
|
-
/* @__PURE__ */
|
|
3001
|
+
/* @__PURE__ */ s(qn, {})
|
|
2996
3002
|
] });
|
|
2997
3003
|
}
|
|
2998
|
-
function
|
|
2999
|
-
const { language: t } = ut(), { config: e } =
|
|
3000
|
-
return /* @__PURE__ */
|
|
3001
|
-
/* @__PURE__ */
|
|
3002
|
-
/* @__PURE__ */
|
|
3003
|
-
|
|
3004
|
+
function Fs() {
|
|
3005
|
+
const { language: t } = ut(), { config: e } = ee();
|
|
3006
|
+
return /* @__PURE__ */ s(ms, { children: /* @__PURE__ */ T(on, { children: [
|
|
3007
|
+
/* @__PURE__ */ s(vt, { path: "/:slug", element: /* @__PURE__ */ s(Ao, { language: t }) }),
|
|
3008
|
+
/* @__PURE__ */ s(
|
|
3009
|
+
vt,
|
|
3004
3010
|
{
|
|
3005
3011
|
index: !0,
|
|
3006
|
-
element: (e.defaultRoute || "latest") === "latest" ? /* @__PURE__ */
|
|
3012
|
+
element: (e.defaultRoute || "latest") === "latest" ? /* @__PURE__ */ s(As, {}) : /* @__PURE__ */ s(Ft, { to: `./${e.defaultRoute}`, replace: !0 })
|
|
3007
3013
|
}
|
|
3008
3014
|
)
|
|
3009
3015
|
] }) });
|
|
3010
3016
|
}
|
|
3011
|
-
function
|
|
3017
|
+
function qs() {
|
|
3012
3018
|
return {
|
|
3013
3019
|
openSearchModal: () => {
|
|
3014
3020
|
window.dispatchEvent(new CustomEvent("blog:open-search"));
|
|
@@ -3018,48 +3024,48 @@ function Fs() {
|
|
|
3018
3024
|
}
|
|
3019
3025
|
};
|
|
3020
3026
|
}
|
|
3021
|
-
function
|
|
3022
|
-
const { i18n: t } =
|
|
3027
|
+
function Ws() {
|
|
3028
|
+
const { i18n: t } = Z(), e = Ee(), o = _e(), { config: n } = ee();
|
|
3023
3029
|
return (a) => {
|
|
3024
3030
|
const r = n.basePath || "";
|
|
3025
3031
|
let l = e.pathname;
|
|
3026
3032
|
r && l.startsWith(r) && (l = l.slice(r.length));
|
|
3027
|
-
const c = l.split("/").filter(Boolean),
|
|
3033
|
+
const c = l.split("/").filter(Boolean), i = c[0];
|
|
3028
3034
|
let u = "";
|
|
3029
|
-
n.supportedLanguages.includes(
|
|
3035
|
+
n.supportedLanguages.includes(i) ? (c[0] = a, u = `${r}/${c.join("/")}`) : u = `${r}/${a}${l}`;
|
|
3030
3036
|
const d = u + e.search + e.hash;
|
|
3031
3037
|
t.changeLanguage(a), o(d);
|
|
3032
3038
|
};
|
|
3033
3039
|
}
|
|
3034
3040
|
export {
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3041
|
+
Tn as AdvancedModeToggle,
|
|
3042
|
+
Mn as ArticleNavigation,
|
|
3043
|
+
Bs as BlogProvider,
|
|
3044
|
+
wn as BlogRoot,
|
|
3045
|
+
qn as BlogSidebar,
|
|
3046
|
+
Xn as Breadcrumb,
|
|
3047
|
+
Ao as ContentPage,
|
|
3048
|
+
ms as DocumentationLayout,
|
|
3049
|
+
Fs as DocumentationRoutes,
|
|
3050
|
+
ha as Header,
|
|
3051
|
+
As as HomePage,
|
|
3046
3052
|
ht as LanguageSelector,
|
|
3047
3053
|
lt as Metadata,
|
|
3048
|
-
|
|
3049
|
-
|
|
3054
|
+
Fa as MobileMenu,
|
|
3055
|
+
Hs as NavigationContent,
|
|
3050
3056
|
pt as NavigationMenu,
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3057
|
+
Go as SearchBar,
|
|
3058
|
+
ls as Sidebar,
|
|
3059
|
+
Kr as TableOfContents,
|
|
3060
|
+
co as TagResultsModal,
|
|
3061
|
+
vo as Tags,
|
|
3062
|
+
js as createBlogUtils,
|
|
3063
|
+
Yt as createContentLoaders,
|
|
3058
3064
|
Ae as generateHeadingId,
|
|
3059
|
-
|
|
3065
|
+
Cn as getAdjacentArticles,
|
|
3060
3066
|
Ue as getNavigationData,
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3067
|
+
ee as useBlogConfig,
|
|
3068
|
+
Ws as useLanguageChange,
|
|
3069
|
+
qs as useSearchModal,
|
|
3070
|
+
zt as useTheme
|
|
3065
3071
|
};
|