@x-wave/blog 2.3.3 → 2.3.5
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/i18n.d.ts +2 -0
- package/index.js +369 -361
- package/package.json +1 -1
package/i18n.d.ts
ADDED
package/index.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsxs as d, jsx as e, Fragment as U } from "react/jsx-runtime";
|
|
2
|
-
import { useTranslation as A } from "react-i18next";
|
|
3
|
-
import { useLocation as Y, useNavigate as Q, Link as de, useParams as
|
|
4
|
-
import { CaretLeft as
|
|
5
|
-
import { createContext as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import { createPortal as
|
|
10
|
-
const
|
|
11
|
-
tabContainer:
|
|
12
|
-
tab:
|
|
13
|
-
active:
|
|
2
|
+
import { useTranslation as A, initReactI18next as et } from "react-i18next";
|
|
3
|
+
import { useLocation as Y, useNavigate as Q, Link as de, useParams as fe, Navigate as We, Routes as tt, Route as Pe } from "react-router-dom";
|
|
4
|
+
import { CaretLeft as nt, CaretRight as He, ArrowSquareOut as at, User as ot, CalendarBlank as st, X as be, Tag as ct, MagnifyingGlass as Me, List as rt, Sun as Be, Moon as je, Monitor as Ee, CaretDown as _e, Globe as lt } from "@phosphor-icons/react";
|
|
5
|
+
import { createContext as Fe, useState as C, useEffect as L, useContext as ze, useRef as G } from "react";
|
|
6
|
+
import pe from "i18next";
|
|
7
|
+
import it from "react-markdown";
|
|
8
|
+
import dt from "remark-gfm";
|
|
9
|
+
import { createPortal as Ke } from "react-dom";
|
|
10
|
+
const ut = "_tabContainer_zk6h4_1", ht = "_tab_zk6h4_1", mt = "_active_zk6h4_45", ae = {
|
|
11
|
+
tabContainer: ut,
|
|
12
|
+
tab: ht,
|
|
13
|
+
active: mt
|
|
14
14
|
};
|
|
15
|
-
function
|
|
15
|
+
function gt({ hasAdvanced: t }) {
|
|
16
16
|
const { t: n } = A(), s = Y(), c = Q();
|
|
17
17
|
if (!t) return null;
|
|
18
18
|
const l = new URLSearchParams(s.search).has("advanced"), g = () => {
|
|
@@ -49,10 +49,18 @@ function mt({ hasAdvanced: t }) {
|
|
|
49
49
|
)
|
|
50
50
|
] });
|
|
51
51
|
}
|
|
52
|
-
|
|
52
|
+
pe.isInitialized || pe.use(et).init({
|
|
53
|
+
fallbackLng: "en",
|
|
54
|
+
lng: "en",
|
|
55
|
+
resources: {},
|
|
56
|
+
interpolation: {
|
|
57
|
+
escapeValue: !1
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
function _t({ children: t }) {
|
|
53
61
|
return /* @__PURE__ */ e("div", { className: "xw-blog-root", children: t });
|
|
54
62
|
}
|
|
55
|
-
function
|
|
63
|
+
function Ue(t) {
|
|
56
64
|
const n = /* @__PURE__ */ new Map();
|
|
57
65
|
function s(u) {
|
|
58
66
|
const i = u.match(/^---\s*\n([\s\S]*?)\n---\s*\n/);
|
|
@@ -184,8 +192,8 @@ function Ke(t) {
|
|
|
184
192
|
}
|
|
185
193
|
};
|
|
186
194
|
}
|
|
187
|
-
function
|
|
188
|
-
const n =
|
|
195
|
+
function as(t) {
|
|
196
|
+
const n = Ue(t);
|
|
189
197
|
return {
|
|
190
198
|
mdxFiles: t,
|
|
191
199
|
loadContent: n.loadMDXContent,
|
|
@@ -193,41 +201,41 @@ function ns(t) {
|
|
|
193
201
|
discoverArticles: n.discoverArticles
|
|
194
202
|
};
|
|
195
203
|
}
|
|
196
|
-
const
|
|
197
|
-
function
|
|
198
|
-
const s = () => n || (typeof window > "u" ? "system" : localStorage.getItem(
|
|
204
|
+
const De = "app-theme", Ge = () => typeof window > "u" ? "light" : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light", Ae = (t) => t === "system" ? Ge() : t, Qe = Fe(void 0);
|
|
205
|
+
function pt({ children: t, defaultTheme: n }) {
|
|
206
|
+
const s = () => n || (typeof window > "u" ? "system" : localStorage.getItem(De) || "system"), [c, h] = C(s);
|
|
199
207
|
L(() => {
|
|
200
|
-
const g =
|
|
208
|
+
const g = Ae(c), u = document.querySelector(".xw-blog-root");
|
|
201
209
|
if (u && (u.classList.remove("light", "dark"), u.classList.add(g)), c === "system") {
|
|
202
210
|
const i = window.matchMedia("(prefers-color-scheme: dark)"), a = () => {
|
|
203
|
-
const m =
|
|
211
|
+
const m = Ge(), r = document.querySelector(".xw-blog-root");
|
|
204
212
|
r && (r.classList.remove("light", "dark"), r.classList.add(m));
|
|
205
213
|
};
|
|
206
214
|
return i.addEventListener("change", a), () => i.removeEventListener("change", a);
|
|
207
215
|
}
|
|
208
216
|
}, [c]);
|
|
209
217
|
const l = (g) => {
|
|
210
|
-
localStorage.setItem(
|
|
218
|
+
localStorage.setItem(De, g), h(g);
|
|
211
219
|
};
|
|
212
220
|
return /* @__PURE__ */ e(
|
|
213
|
-
|
|
221
|
+
Qe.Provider,
|
|
214
222
|
{
|
|
215
223
|
value: {
|
|
216
224
|
theme: c,
|
|
217
225
|
setTheme: l,
|
|
218
|
-
effectiveTheme:
|
|
226
|
+
effectiveTheme: Ae(c)
|
|
219
227
|
},
|
|
220
228
|
children: t
|
|
221
229
|
}
|
|
222
230
|
);
|
|
223
231
|
}
|
|
224
|
-
const
|
|
225
|
-
const t =
|
|
232
|
+
const Xe = () => {
|
|
233
|
+
const t = ze(Qe);
|
|
226
234
|
if (!t)
|
|
227
235
|
throw new Error("useTheme must be used within a ThemeProvider");
|
|
228
236
|
return t;
|
|
229
|
-
},
|
|
230
|
-
function
|
|
237
|
+
}, Ye = Fe(null);
|
|
238
|
+
function os({
|
|
231
239
|
children: t,
|
|
232
240
|
config: n,
|
|
233
241
|
blog: s,
|
|
@@ -235,7 +243,7 @@ function as({
|
|
|
235
243
|
}) {
|
|
236
244
|
const [h, l] = C({});
|
|
237
245
|
L(() => {
|
|
238
|
-
const { buildTagIndex: u } =
|
|
246
|
+
const { buildTagIndex: u } = Ue(s.mdxFiles), i = n.supportedLanguages.map(async (a) => {
|
|
239
247
|
try {
|
|
240
248
|
const m = await u(a);
|
|
241
249
|
return { language: a, index: m };
|
|
@@ -253,8 +261,8 @@ function as({
|
|
|
253
261
|
});
|
|
254
262
|
}, [s.mdxFiles, n.supportedLanguages]);
|
|
255
263
|
const g = { ...n, navigationData: c, tagIndex: h };
|
|
256
|
-
return /* @__PURE__ */ e(
|
|
257
|
-
|
|
264
|
+
return /* @__PURE__ */ e(pt, { defaultTheme: n.defaultTheme, children: /* @__PURE__ */ e(
|
|
265
|
+
Ye.Provider,
|
|
258
266
|
{
|
|
259
267
|
value: {
|
|
260
268
|
config: g,
|
|
@@ -262,20 +270,20 @@ function as({
|
|
|
262
270
|
loadEnglishContent: s.loadEnglishContent,
|
|
263
271
|
discoverArticles: s.discoverArticles
|
|
264
272
|
},
|
|
265
|
-
children: /* @__PURE__ */ e(
|
|
273
|
+
children: /* @__PURE__ */ e(_t, { children: t })
|
|
266
274
|
}
|
|
267
275
|
) });
|
|
268
276
|
}
|
|
269
277
|
function R() {
|
|
270
|
-
const t =
|
|
278
|
+
const t = ze(Ye);
|
|
271
279
|
if (!t)
|
|
272
280
|
throw new Error("useBlogConfig must be used within a BlogProvider");
|
|
273
281
|
return t;
|
|
274
282
|
}
|
|
275
|
-
function
|
|
283
|
+
function vt(t, n, s) {
|
|
276
284
|
return `/${s ? `${s}/` : ""}${n}/${t}`;
|
|
277
285
|
}
|
|
278
|
-
function
|
|
286
|
+
function Ve(t) {
|
|
279
287
|
const n = {
|
|
280
288
|
advanced: !1,
|
|
281
289
|
anchor: ""
|
|
@@ -286,7 +294,7 @@ function Ye(t) {
|
|
|
286
294
|
h === "advanced" ? n.advanced = !0 : h.startsWith("a=") && (n.anchor = h.substring(2));
|
|
287
295
|
return n;
|
|
288
296
|
}
|
|
289
|
-
function
|
|
297
|
+
function Re(t, n = 80) {
|
|
290
298
|
const s = document.getElementById(t);
|
|
291
299
|
if (s) {
|
|
292
300
|
const h = s.getBoundingClientRect().top + window.pageYOffset - n;
|
|
@@ -296,42 +304,42 @@ function Ae(t, n = 80) {
|
|
|
296
304
|
});
|
|
297
305
|
}
|
|
298
306
|
}
|
|
299
|
-
function
|
|
307
|
+
function ft(t, n = !1) {
|
|
300
308
|
const s = new URL(window.location.href), c = new URLSearchParams(s.search);
|
|
301
309
|
c.set("a", t), n && c.set("advanced", ""), s.search = `?${c.toString()}`, window.history.pushState(null, "", s.toString());
|
|
302
310
|
}
|
|
303
|
-
function
|
|
311
|
+
function bt(t = "smooth") {
|
|
304
312
|
window.scrollTo({
|
|
305
313
|
top: 0,
|
|
306
314
|
left: 0,
|
|
307
315
|
behavior: t
|
|
308
316
|
});
|
|
309
317
|
}
|
|
310
|
-
const
|
|
311
|
-
articleNavigation:
|
|
312
|
-
navContainer:
|
|
313
|
-
navLink:
|
|
314
|
-
navLinkContent:
|
|
315
|
-
navIcon:
|
|
316
|
-
navText:
|
|
317
|
-
navLabel:
|
|
318
|
-
navTitle:
|
|
318
|
+
const kt = "_articleNavigation_kz84g_1", Nt = "_navContainer_kz84g_7", wt = "_navLink_kz84g_24", It = "_navLinkContent_kz84g_61", yt = "_navIcon_kz84g_76", $t = "_navText_kz84g_83", Ct = "_navLabel_kz84g_90", Tt = "_navTitle_kz84g_98", O = {
|
|
319
|
+
articleNavigation: kt,
|
|
320
|
+
navContainer: Nt,
|
|
321
|
+
navLink: wt,
|
|
322
|
+
navLinkContent: It,
|
|
323
|
+
navIcon: yt,
|
|
324
|
+
navText: $t,
|
|
325
|
+
navLabel: Ct,
|
|
326
|
+
navTitle: Tt
|
|
319
327
|
};
|
|
320
|
-
function
|
|
328
|
+
function xt({
|
|
321
329
|
prevSlug: t,
|
|
322
330
|
prevTitle: n,
|
|
323
331
|
nextSlug: s,
|
|
324
332
|
nextTitle: c,
|
|
325
333
|
language: h
|
|
326
334
|
}) {
|
|
327
|
-
const { t: l } = A(), { config: g } = R(), u = Y(), a =
|
|
335
|
+
const { t: l } = A(), { config: g } = R(), u = Y(), a = Ve(u.search).advanced, m = g.basePath || "", r = (f) => {
|
|
328
336
|
const w = `${m}/${h}/${f}`;
|
|
329
337
|
return a ? `${w}?advanced=true` : w;
|
|
330
338
|
};
|
|
331
339
|
if (!t && !s)
|
|
332
340
|
return null;
|
|
333
341
|
const o = () => {
|
|
334
|
-
|
|
342
|
+
bt("auto");
|
|
335
343
|
};
|
|
336
344
|
return /* @__PURE__ */ e("nav", { className: O.articleNavigation, "aria-label": "Article navigation", children: /* @__PURE__ */ d("div", { className: O.navContainer, children: [
|
|
337
345
|
t ? /* @__PURE__ */ e(
|
|
@@ -341,7 +349,7 @@ function Tt({
|
|
|
341
349
|
className: O.navLink,
|
|
342
350
|
onClick: o,
|
|
343
351
|
children: /* @__PURE__ */ d("div", { className: O.navLinkContent, children: [
|
|
344
|
-
/* @__PURE__ */ e("div", { className: O.navIcon, children: /* @__PURE__ */ e(
|
|
352
|
+
/* @__PURE__ */ e("div", { className: O.navIcon, children: /* @__PURE__ */ e(nt, { size: 20, weight: "bold" }) }),
|
|
345
353
|
/* @__PURE__ */ d("div", { className: O.navText, children: [
|
|
346
354
|
/* @__PURE__ */ e("span", { className: O.navLabel, children: l("nav.previous") }),
|
|
347
355
|
/* @__PURE__ */ e("span", { className: O.navTitle, children: n || t })
|
|
@@ -360,25 +368,25 @@ function Tt({
|
|
|
360
368
|
/* @__PURE__ */ e("span", { className: O.navLabel, children: l("nav.next") }),
|
|
361
369
|
/* @__PURE__ */ e("span", { className: O.navTitle, children: c || s })
|
|
362
370
|
] }),
|
|
363
|
-
/* @__PURE__ */ e("div", { className: O.navIcon, children: /* @__PURE__ */ e(
|
|
371
|
+
/* @__PURE__ */ e("div", { className: O.navIcon, children: /* @__PURE__ */ e(He, { size: 20, weight: "bold" }) })
|
|
364
372
|
] })
|
|
365
373
|
}
|
|
366
374
|
) : /* @__PURE__ */ e("div", {})
|
|
367
375
|
] }) });
|
|
368
376
|
}
|
|
369
|
-
const
|
|
370
|
-
blogSidebar:
|
|
371
|
-
section:
|
|
372
|
-
sectionTitle:
|
|
373
|
-
linksList:
|
|
374
|
-
link:
|
|
377
|
+
const Lt = "_blogSidebar_n1up9_1", St = "_section_n1up9_21", Pt = "_sectionTitle_n1up9_28", Mt = "_linksList_n1up9_35", Bt = "_link_n1up9_35", oe = {
|
|
378
|
+
blogSidebar: Lt,
|
|
379
|
+
section: St,
|
|
380
|
+
sectionTitle: Pt,
|
|
381
|
+
linksList: Mt,
|
|
382
|
+
link: Bt
|
|
375
383
|
};
|
|
376
|
-
function
|
|
384
|
+
function jt() {
|
|
377
385
|
const { t } = A(), { config: n } = R(), s = n.socialLinks || [];
|
|
378
386
|
return s.length === 0 ? null : /* @__PURE__ */ e("aside", { className: oe.blogSidebar, children: /* @__PURE__ */ d("div", { className: oe.section, children: [
|
|
379
387
|
/* @__PURE__ */ e("h3", { className: oe.sectionTitle, children: t("ui.connect") }),
|
|
380
388
|
/* @__PURE__ */ e("div", { className: oe.linksList, children: s.map((c, h) => {
|
|
381
|
-
const l = c.icon ||
|
|
389
|
+
const l = c.icon || at, g = c.target === "_blank";
|
|
382
390
|
return /* @__PURE__ */ d(
|
|
383
391
|
"a",
|
|
384
392
|
{
|
|
@@ -396,15 +404,15 @@ function Bt() {
|
|
|
396
404
|
}) })
|
|
397
405
|
] }) });
|
|
398
406
|
}
|
|
399
|
-
const
|
|
400
|
-
breadcrumb:
|
|
401
|
-
breadcrumbList:
|
|
402
|
-
breadcrumbItem:
|
|
403
|
-
breadcrumbLink:
|
|
404
|
-
breadcrumbSeparator:
|
|
405
|
-
breadcrumbCurrent:
|
|
407
|
+
const Et = "_breadcrumb_rarc4_1", Dt = "_breadcrumbList_rarc4_5", At = "_breadcrumbItem_rarc4_15", Rt = "_breadcrumbLink_rarc4_21", Ot = "_breadcrumbSeparator_rarc4_41", qt = "_breadcrumbCurrent_rarc4_46", X = {
|
|
408
|
+
breadcrumb: Et,
|
|
409
|
+
breadcrumbList: Dt,
|
|
410
|
+
breadcrumbItem: At,
|
|
411
|
+
breadcrumbLink: Rt,
|
|
412
|
+
breadcrumbSeparator: Ot,
|
|
413
|
+
breadcrumbCurrent: qt
|
|
406
414
|
};
|
|
407
|
-
function
|
|
415
|
+
function Wt({ articleTitle: t, language: n }) {
|
|
408
416
|
const { t: s } = A(), { config: c } = R(), h = Q(), g = `${c.basePath || ""}/${n}`, u = (a) => {
|
|
409
417
|
a.preventDefault(), window.scrollTo({ top: 0, left: 0, behavior: "auto" }), h(g);
|
|
410
418
|
}, i = (a, m = 60) => a.length <= m ? a : `${a.substring(0, m)}…`;
|
|
@@ -424,10 +432,10 @@ function qt({ articleTitle: t, language: n }) {
|
|
|
424
432
|
] })
|
|
425
433
|
] }) });
|
|
426
434
|
}
|
|
427
|
-
const
|
|
435
|
+
const Ht = (t) => "items" in t, Oe = (t) => "items" in t, Ft = async (t, n, s) => {
|
|
428
436
|
const c = [];
|
|
429
437
|
for (const h of t)
|
|
430
|
-
if (
|
|
438
|
+
if (Ht(h)) {
|
|
431
439
|
const l = [];
|
|
432
440
|
for (const u of h.items)
|
|
433
441
|
try {
|
|
@@ -442,7 +450,7 @@ const Wt = (t) => "items" in t, Re = (t) => "items" in t, Ht = async (t, n, s) =
|
|
|
442
450
|
title: u.slug
|
|
443
451
|
});
|
|
444
452
|
}
|
|
445
|
-
const g =
|
|
453
|
+
const g = pe.getFixedT(n)(h.title);
|
|
446
454
|
c.push({
|
|
447
455
|
title: g,
|
|
448
456
|
items: l,
|
|
@@ -464,7 +472,7 @@ const Wt = (t) => "items" in t, Re = (t) => "items" in t, Ht = async (t, n, s) =
|
|
|
464
472
|
});
|
|
465
473
|
}
|
|
466
474
|
return c;
|
|
467
|
-
}, ee = (t) => t.toString().toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/\s+/g, "-").replace(/-+/g, "-").replace(/^-+|-+$/g, ""),
|
|
475
|
+
}, ee = (t) => t.toString().toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/\s+/g, "-").replace(/-+/g, "-").replace(/^-+|-+$/g, ""), zt = (t, n) => {
|
|
468
476
|
const s = n.findIndex(
|
|
469
477
|
(c) => c.slug === t
|
|
470
478
|
);
|
|
@@ -472,42 +480,42 @@ const Wt = (t) => "items" in t, Re = (t) => "items" in t, Ht = async (t, n, s) =
|
|
|
472
480
|
prev: s > 0 ? n[s - 1] : void 0,
|
|
473
481
|
next: s < n.length - 1 ? n[s + 1] : void 0
|
|
474
482
|
};
|
|
475
|
-
},
|
|
476
|
-
metadata:
|
|
477
|
-
author:
|
|
478
|
-
date:
|
|
483
|
+
}, Kt = "_metadata_bsge0_1", Ut = "_author_bsge0_9", Gt = "_date_bsge0_10", ge = {
|
|
484
|
+
metadata: Kt,
|
|
485
|
+
author: Ut,
|
|
486
|
+
date: Gt
|
|
479
487
|
};
|
|
480
|
-
function
|
|
488
|
+
function ve({ date: t, author: n }) {
|
|
481
489
|
const { t: s } = A();
|
|
482
490
|
return !t && !n ? null : /* @__PURE__ */ d("div", { className: ge.metadata, children: [
|
|
483
491
|
n && /* @__PURE__ */ d("span", { className: ge.author, children: [
|
|
484
|
-
/* @__PURE__ */ e(
|
|
492
|
+
/* @__PURE__ */ e(ot, { size: 16, weight: "regular" }),
|
|
485
493
|
n
|
|
486
494
|
] }),
|
|
487
495
|
t && /* @__PURE__ */ d("span", { className: ge.date, children: [
|
|
488
|
-
/* @__PURE__ */ e(
|
|
496
|
+
/* @__PURE__ */ e(st, { size: 16, weight: "regular" }),
|
|
489
497
|
s("ui.lastEdited"),
|
|
490
498
|
": ",
|
|
491
499
|
t
|
|
492
500
|
] })
|
|
493
501
|
] });
|
|
494
502
|
}
|
|
495
|
-
const
|
|
496
|
-
tableOfContents:
|
|
497
|
-
header:
|
|
498
|
-
title:
|
|
499
|
-
nav:
|
|
500
|
-
list:
|
|
501
|
-
link:
|
|
502
|
-
active:
|
|
503
|
-
level1:
|
|
504
|
-
level2:
|
|
505
|
-
level3:
|
|
506
|
-
level4:
|
|
507
|
-
level5:
|
|
508
|
-
level6:
|
|
503
|
+
const Qt = "_tableOfContents_9ofak_1", Xt = "_header_9ofak_21", Yt = "_title_9ofak_25", Vt = "_nav_9ofak_34", Jt = "_list_9ofak_40", Zt = "_link_9ofak_47", en = "_active_9ofak_71", tn = "_level1_9ofak_87", nn = "_level2_9ofak_93", an = "_level3_9ofak_98", on = "_level4_9ofak_104", sn = "_level5_9ofak_110", cn = "_level6_9ofak_116", F = {
|
|
504
|
+
tableOfContents: Qt,
|
|
505
|
+
header: Xt,
|
|
506
|
+
title: Yt,
|
|
507
|
+
nav: Vt,
|
|
508
|
+
list: Jt,
|
|
509
|
+
link: Zt,
|
|
510
|
+
active: en,
|
|
511
|
+
level1: tn,
|
|
512
|
+
level2: nn,
|
|
513
|
+
level3: an,
|
|
514
|
+
level4: on,
|
|
515
|
+
level5: sn,
|
|
516
|
+
level6: cn
|
|
509
517
|
};
|
|
510
|
-
function
|
|
518
|
+
function rn({
|
|
511
519
|
content: t,
|
|
512
520
|
englishContent: n
|
|
513
521
|
}) {
|
|
@@ -600,20 +608,20 @@ function cn({
|
|
|
600
608
|
) }, r.id)) }) })
|
|
601
609
|
] });
|
|
602
610
|
}
|
|
603
|
-
const
|
|
604
|
-
overlay:
|
|
605
|
-
modal:
|
|
606
|
-
header:
|
|
607
|
-
title:
|
|
608
|
-
closeButton:
|
|
609
|
-
results:
|
|
610
|
-
resultsList:
|
|
611
|
-
resultItem:
|
|
612
|
-
resultTitle:
|
|
613
|
-
resultSlug:
|
|
614
|
-
noResults:
|
|
611
|
+
const ln = "_overlay_1e1d4_1", dn = "_modal_1e1d4_26", un = "_header_1e1d4_50", hn = "_title_1e1d4_58", mn = "_closeButton_1e1d4_65", gn = "_results_1e1d4_86", _n = "_resultsList_1e1d4_94", pn = "_resultItem_1e1d4_100", vn = "_resultTitle_1e1d4_119", fn = "_resultSlug_1e1d4_124", bn = "_noResults_1e1d4_130", H = {
|
|
612
|
+
overlay: ln,
|
|
613
|
+
modal: dn,
|
|
614
|
+
header: un,
|
|
615
|
+
title: hn,
|
|
616
|
+
closeButton: mn,
|
|
617
|
+
results: gn,
|
|
618
|
+
resultsList: _n,
|
|
619
|
+
resultItem: pn,
|
|
620
|
+
resultTitle: vn,
|
|
621
|
+
resultSlug: fn,
|
|
622
|
+
noResults: bn
|
|
615
623
|
};
|
|
616
|
-
function
|
|
624
|
+
function kn({
|
|
617
625
|
tag: t,
|
|
618
626
|
results: n,
|
|
619
627
|
language: s,
|
|
@@ -623,7 +631,7 @@ function bn({
|
|
|
623
631
|
const a = l.basePath || "";
|
|
624
632
|
g(`${a}/${s}/${i}`), c();
|
|
625
633
|
};
|
|
626
|
-
return
|
|
634
|
+
return Ke(
|
|
627
635
|
/* @__PURE__ */ e("div", { className: H.overlay, onClick: c, children: /* @__PURE__ */ d("div", { className: H.modal, onClick: (i) => i.stopPropagation(), children: [
|
|
628
636
|
/* @__PURE__ */ d("div", { className: H.header, children: [
|
|
629
637
|
/* @__PURE__ */ d("h2", { className: H.title, children: [
|
|
@@ -638,7 +646,7 @@ function bn({
|
|
|
638
646
|
className: H.closeButton,
|
|
639
647
|
onClick: c,
|
|
640
648
|
"aria-label": "Close",
|
|
641
|
-
children: /* @__PURE__ */ e(
|
|
649
|
+
children: /* @__PURE__ */ e(be, {})
|
|
642
650
|
}
|
|
643
651
|
)
|
|
644
652
|
] }),
|
|
@@ -661,15 +669,15 @@ function bn({
|
|
|
661
669
|
document.body
|
|
662
670
|
);
|
|
663
671
|
}
|
|
664
|
-
const
|
|
665
|
-
tags:
|
|
666
|
-
compact:
|
|
667
|
-
tagLabel:
|
|
668
|
-
tagIcon:
|
|
669
|
-
tagList:
|
|
670
|
-
tag:
|
|
672
|
+
const Nn = "_tags_11t8a_1", wn = "_compact_11t8a_9", In = "_tagLabel_11t8a_15", yn = "_tagIcon_11t8a_25", $n = "_tagList_11t8a_30", Cn = "_tag_11t8a_1", Z = {
|
|
673
|
+
tags: Nn,
|
|
674
|
+
compact: wn,
|
|
675
|
+
tagLabel: In,
|
|
676
|
+
tagIcon: yn,
|
|
677
|
+
tagList: $n,
|
|
678
|
+
tag: Cn
|
|
671
679
|
};
|
|
672
|
-
function
|
|
680
|
+
function Tn({ tags: t, variant: n = "default", onTagClick: s }) {
|
|
673
681
|
const { t: c } = A();
|
|
674
682
|
if (!t || t.length === 0) return null;
|
|
675
683
|
const h = (l) => {
|
|
@@ -681,7 +689,7 @@ function Cn({ tags: t, variant: n = "default", onTagClick: s }) {
|
|
|
681
689
|
className: `${Z.tags} ${n === "compact" ? Z.compact : ""}`,
|
|
682
690
|
children: [
|
|
683
691
|
n === "default" && /* @__PURE__ */ d("div", { className: Z.tagLabel, children: [
|
|
684
|
-
/* @__PURE__ */ e(
|
|
692
|
+
/* @__PURE__ */ e(ct, { className: Z.tagIcon, weight: "duotone" }),
|
|
685
693
|
/* @__PURE__ */ d("span", { children: [
|
|
686
694
|
c("ui.tags"),
|
|
687
695
|
":"
|
|
@@ -702,31 +710,31 @@ function Cn({ tags: t, variant: n = "default", onTagClick: s }) {
|
|
|
702
710
|
}
|
|
703
711
|
);
|
|
704
712
|
}
|
|
705
|
-
const
|
|
706
|
-
contentPage:
|
|
707
|
-
withMetadata:
|
|
708
|
-
loadingContainer:
|
|
709
|
-
errorContainer:
|
|
710
|
-
skeletonTitle:
|
|
711
|
-
skeletonParagraph:
|
|
712
|
-
skeletonParagraphShort:
|
|
713
|
-
errorText:
|
|
714
|
-
mdxContent:
|
|
715
|
-
codeBlock:
|
|
716
|
-
codeLanguage:
|
|
717
|
-
},
|
|
713
|
+
const xn = "_contentPage_118jr_1", Ln = "_withMetadata_118jr_30", Sn = "_loadingContainer_118jr_64", Pn = "_errorContainer_118jr_65", Mn = "_skeletonTitle_118jr_87", Bn = "_skeletonParagraph_118jr_96", jn = "_skeletonParagraphShort_118jr_109", En = "_errorText_118jr_123", Dn = "_mdxContent_118jr_128", An = "_codeBlock_118jr_316", Rn = "_codeLanguage_118jr_320", D = {
|
|
714
|
+
contentPage: xn,
|
|
715
|
+
withMetadata: Ln,
|
|
716
|
+
loadingContainer: Sn,
|
|
717
|
+
errorContainer: Pn,
|
|
718
|
+
skeletonTitle: Mn,
|
|
719
|
+
skeletonParagraph: Bn,
|
|
720
|
+
skeletonParagraphShort: jn,
|
|
721
|
+
errorText: En,
|
|
722
|
+
mdxContent: Dn,
|
|
723
|
+
codeBlock: An,
|
|
724
|
+
codeLanguage: Rn
|
|
725
|
+
}, qe = (t) => {
|
|
718
726
|
const n = t.match(/^\s*#\s+(.+)\s*(?:\n+|$)/);
|
|
719
727
|
return n ? {
|
|
720
728
|
title: n[1].trim(),
|
|
721
729
|
content: t.replace(/^\s*#\s+.+\s*(?:\n+|$)/, "")
|
|
722
730
|
} : { title: void 0, content: t };
|
|
723
|
-
},
|
|
731
|
+
}, On = (t) => {
|
|
724
732
|
const n = t.lastIndexOf(".");
|
|
725
733
|
if (n === -1) return `${t}-dark`;
|
|
726
734
|
const s = t.substring(0, n), c = t.substring(n);
|
|
727
735
|
return `${s}-dark${c}`;
|
|
728
736
|
};
|
|
729
|
-
function
|
|
737
|
+
function qn({
|
|
730
738
|
src: t,
|
|
731
739
|
alt: n,
|
|
732
740
|
effectiveTheme: s,
|
|
@@ -737,7 +745,7 @@ function On({
|
|
|
737
745
|
return L(() => {
|
|
738
746
|
if (t)
|
|
739
747
|
if (i(!1), s === "dark") {
|
|
740
|
-
const m =
|
|
748
|
+
const m = On(t);
|
|
741
749
|
g(m);
|
|
742
750
|
} else
|
|
743
751
|
g(t);
|
|
@@ -745,9 +753,9 @@ function On({
|
|
|
745
753
|
s === "dark" && l !== t && !u && (i(!0), g(t));
|
|
746
754
|
}, ...h });
|
|
747
755
|
}
|
|
748
|
-
function
|
|
749
|
-
var
|
|
750
|
-
const { slug: n } =
|
|
756
|
+
function Wn({ language: t }) {
|
|
757
|
+
var ye, $e, Ce, Te, xe;
|
|
758
|
+
const { slug: n } = fe(), s = Y(), { config: c, loadContent: h, loadEnglishContent: l, discoverArticles: g } = R(), { effectiveTheme: u } = Xe(), [i, a] = C(""), [m, r] = C(""), [o, f] = C({}), [w, p] = C(!0), [N, v] = C(null), [b, y] = C(!0), [P, k] = C(null), [T, j] = C(""), [W, ue] = C({}), z = G(0), te = G([]), ce = Ve(s.search), V = ce.advanced;
|
|
751
759
|
if (L(() => {
|
|
752
760
|
(async () => {
|
|
753
761
|
if (n) {
|
|
@@ -773,19 +781,19 @@ function qn({ language: t }) {
|
|
|
773
781
|
const E = typeof I.frontmatter.title == "string" ? I.frontmatter.title : void 0;
|
|
774
782
|
let ne = I.content, J = x, he = "";
|
|
775
783
|
if (E) {
|
|
776
|
-
const ie =
|
|
777
|
-
he = ie.title || "", J = ie.content, ne =
|
|
784
|
+
const ie = qe(x), Ze = qe(I.content);
|
|
785
|
+
he = ie.title || "", J = ie.content, ne = Ze.content;
|
|
778
786
|
} else
|
|
779
787
|
he = "";
|
|
780
|
-
const
|
|
781
|
-
let me =
|
|
788
|
+
const Le = /^(#{1,6})\s+(.+)$/gm, Se = [];
|
|
789
|
+
let me = Le.exec(
|
|
782
790
|
J
|
|
783
791
|
);
|
|
784
792
|
for (; me !== null; ) {
|
|
785
793
|
const ie = me[2].trim();
|
|
786
|
-
|
|
794
|
+
Se.push(ie), me = Le.exec(J);
|
|
787
795
|
}
|
|
788
|
-
te.current =
|
|
796
|
+
te.current = Se, j(he), r(J), a(ne), f(I.frontmatter);
|
|
789
797
|
} catch (I) {
|
|
790
798
|
v(I instanceof Error ? I.message : "Failed to load content");
|
|
791
799
|
} finally {
|
|
@@ -796,7 +804,7 @@ function qn({ language: t }) {
|
|
|
796
804
|
}, [n, t, V, h, l]), L(() => {
|
|
797
805
|
if (!w && ce.anchor) {
|
|
798
806
|
const _ = setTimeout(() => {
|
|
799
|
-
|
|
807
|
+
Re(ce.anchor);
|
|
800
808
|
}, 150);
|
|
801
809
|
return () => clearTimeout(_);
|
|
802
810
|
}
|
|
@@ -807,7 +815,7 @@ function qn({ language: t }) {
|
|
|
807
815
|
return;
|
|
808
816
|
}
|
|
809
817
|
try {
|
|
810
|
-
const I = await g(t), M =
|
|
818
|
+
const I = await g(t), M = zt(n, I);
|
|
811
819
|
ue(M);
|
|
812
820
|
} catch (I) {
|
|
813
821
|
console.error("Failed to calculate adjacent articles:", I), ue({});
|
|
@@ -825,36 +833,36 @@ function qn({ language: t }) {
|
|
|
825
833
|
"Error: ",
|
|
826
834
|
N
|
|
827
835
|
] }) }) });
|
|
828
|
-
const re = typeof o.title == "string" && o.title.trim().length > 0,
|
|
836
|
+
const re = typeof o.title == "string" && o.title.trim().length > 0, Je = re ? ee(T || o.title) : "", we = !!(o.date || o.author);
|
|
829
837
|
z.current = 0;
|
|
830
|
-
let
|
|
838
|
+
let Ie = !1;
|
|
831
839
|
const le = (_, I) => {
|
|
832
|
-
_.preventDefault(),
|
|
840
|
+
_.preventDefault(), Re(I), ft(I, V);
|
|
833
841
|
};
|
|
834
842
|
return /* @__PURE__ */ d(U, { children: [
|
|
835
843
|
/* @__PURE__ */ d("div", { className: D.contentPage, children: [
|
|
836
|
-
/* @__PURE__ */ e(
|
|
844
|
+
/* @__PURE__ */ e(gt, { hasAdvanced: o.hasAdvanced || !1 }),
|
|
837
845
|
re && /* @__PURE__ */ d(U, { children: [
|
|
838
|
-
/* @__PURE__ */ e(
|
|
846
|
+
/* @__PURE__ */ e(Wt, { articleTitle: o.title, language: t }),
|
|
839
847
|
/* @__PURE__ */ e(
|
|
840
848
|
"h1",
|
|
841
849
|
{
|
|
842
|
-
id:
|
|
843
|
-
className:
|
|
850
|
+
id: Je,
|
|
851
|
+
className: we ? D.withMetadata : void 0,
|
|
844
852
|
style: c.articleTitleFont ? { fontFamily: c.articleTitleFont } : void 0,
|
|
845
853
|
children: o.title
|
|
846
854
|
}
|
|
847
855
|
),
|
|
848
|
-
|
|
856
|
+
we && /* @__PURE__ */ e(ve, { date: o.date, author: o.author })
|
|
849
857
|
] }),
|
|
850
858
|
/* @__PURE__ */ e("div", { className: D.mdxContent, children: /* @__PURE__ */ e(
|
|
851
|
-
|
|
859
|
+
it,
|
|
852
860
|
{
|
|
853
|
-
remarkPlugins: [
|
|
861
|
+
remarkPlugins: [dt],
|
|
854
862
|
components: {
|
|
855
863
|
h1: ({ children: _ }) => {
|
|
856
|
-
const I = z.current++, M = te.current[I] || "", x = ee(M), E = !
|
|
857
|
-
|
|
864
|
+
const I = z.current++, M = te.current[I] || "", x = ee(M), E = !Ie;
|
|
865
|
+
Ie = !0;
|
|
858
866
|
const ne = o.date || o.author;
|
|
859
867
|
return /* @__PURE__ */ d(U, { children: [
|
|
860
868
|
/* @__PURE__ */ e(
|
|
@@ -874,7 +882,7 @@ function qn({ language: t }) {
|
|
|
874
882
|
}
|
|
875
883
|
),
|
|
876
884
|
E && ne && !re && /* @__PURE__ */ e(
|
|
877
|
-
|
|
885
|
+
ve,
|
|
878
886
|
{
|
|
879
887
|
date: o.date,
|
|
880
888
|
author: o.author
|
|
@@ -944,7 +952,7 @@ function qn({ language: t }) {
|
|
|
944
952
|
blockquote: ({ children: _ }) => /* @__PURE__ */ e("blockquote", { children: _ }),
|
|
945
953
|
a: ({ href: _, children: I, ...M }) => {
|
|
946
954
|
if (_ != null && _.startsWith("./")) {
|
|
947
|
-
const x = _.slice(2), E =
|
|
955
|
+
const x = _.slice(2), E = vt(
|
|
948
956
|
x,
|
|
949
957
|
t,
|
|
950
958
|
c.basePath
|
|
@@ -963,7 +971,7 @@ function qn({ language: t }) {
|
|
|
963
971
|
) : /* @__PURE__ */ e("a", { href: _, ...M, children: I });
|
|
964
972
|
},
|
|
965
973
|
img: ({ src: _, alt: I, ...M }) => /* @__PURE__ */ e(
|
|
966
|
-
|
|
974
|
+
qn,
|
|
967
975
|
{
|
|
968
976
|
src: _,
|
|
969
977
|
alt: I,
|
|
@@ -980,7 +988,7 @@ function qn({ language: t }) {
|
|
|
980
988
|
) }),
|
|
981
989
|
c.articleCTA && /* @__PURE__ */ e("div", { children: c.articleCTA }),
|
|
982
990
|
o.tags && o.tags.length > 0 && /* @__PURE__ */ e(
|
|
983
|
-
|
|
991
|
+
Tn,
|
|
984
992
|
{
|
|
985
993
|
tags: o.tags,
|
|
986
994
|
variant: "compact",
|
|
@@ -988,19 +996,19 @@ function qn({ language: t }) {
|
|
|
988
996
|
}
|
|
989
997
|
),
|
|
990
998
|
c.showArticleNavigation && /* @__PURE__ */ e(
|
|
991
|
-
|
|
999
|
+
xt,
|
|
992
1000
|
{
|
|
993
|
-
prevSlug: (
|
|
994
|
-
prevTitle: (
|
|
995
|
-
nextSlug: (
|
|
996
|
-
nextTitle: (
|
|
1001
|
+
prevSlug: (ye = W.prev) == null ? void 0 : ye.slug,
|
|
1002
|
+
prevTitle: ($e = W.prev) == null ? void 0 : $e.title,
|
|
1003
|
+
nextSlug: (Ce = W.next) == null ? void 0 : Ce.slug,
|
|
1004
|
+
nextTitle: (Te = W.next) == null ? void 0 : Te.title,
|
|
997
1005
|
language: t
|
|
998
1006
|
}
|
|
999
1007
|
)
|
|
1000
1008
|
] }),
|
|
1001
|
-
b && /* @__PURE__ */ e(
|
|
1002
|
-
P && ((
|
|
1003
|
-
|
|
1009
|
+
b && /* @__PURE__ */ e(rn, { content: i, englishContent: m }),
|
|
1010
|
+
P && ((xe = c.tagIndex) == null ? void 0 : xe[t]) && /* @__PURE__ */ e(
|
|
1011
|
+
kn,
|
|
1004
1012
|
{
|
|
1005
1013
|
tag: P,
|
|
1006
1014
|
results: c.tagIndex[t][P] || [],
|
|
@@ -1010,27 +1018,27 @@ function qn({ language: t }) {
|
|
|
1010
1018
|
)
|
|
1011
1019
|
] });
|
|
1012
1020
|
}
|
|
1013
|
-
const
|
|
1014
|
-
searchButton:
|
|
1015
|
-
searchIcon:
|
|
1016
|
-
searchHint:
|
|
1017
|
-
kbd:
|
|
1018
|
-
searchOverlay:
|
|
1019
|
-
searchModal:
|
|
1020
|
-
searchHeader:
|
|
1021
|
-
searchInput:
|
|
1022
|
-
closeButton:
|
|
1023
|
-
searchResults:
|
|
1024
|
-
resultsList:
|
|
1025
|
-
resultItem:
|
|
1026
|
-
selected:
|
|
1027
|
-
resultTitle:
|
|
1028
|
-
resultSlug:
|
|
1029
|
-
noResults:
|
|
1030
|
-
searchHints:
|
|
1031
|
-
hint:
|
|
1021
|
+
const Hn = "_searchButton_1k9sl_1", Fn = "_searchIcon_1k9sl_17", zn = "_searchHint_1k9sl_23", Kn = "_kbd_1k9sl_27", Un = "_searchOverlay_1k9sl_42", Gn = "_searchModal_1k9sl_67", Qn = "_searchHeader_1k9sl_91", Xn = "_searchInput_1k9sl_105", Yn = "_closeButton_1k9sl_123", Vn = "_searchResults_1k9sl_144", Jn = "_resultsList_1k9sl_152", Zn = "_resultItem_1k9sl_158", ea = "_selected_1k9sl_173", ta = "_resultTitle_1k9sl_176", na = "_resultSlug_1k9sl_180", aa = "_noResults_1k9sl_186", oa = "_searchHints_1k9sl_193", sa = "_hint_1k9sl_210", S = {
|
|
1022
|
+
searchButton: Hn,
|
|
1023
|
+
searchIcon: Fn,
|
|
1024
|
+
searchHint: zn,
|
|
1025
|
+
kbd: Kn,
|
|
1026
|
+
searchOverlay: Un,
|
|
1027
|
+
searchModal: Gn,
|
|
1028
|
+
searchHeader: Qn,
|
|
1029
|
+
searchInput: Xn,
|
|
1030
|
+
closeButton: Yn,
|
|
1031
|
+
searchResults: Vn,
|
|
1032
|
+
resultsList: Jn,
|
|
1033
|
+
resultItem: Zn,
|
|
1034
|
+
selected: ea,
|
|
1035
|
+
resultTitle: ta,
|
|
1036
|
+
resultSlug: na,
|
|
1037
|
+
noResults: aa,
|
|
1038
|
+
searchHints: oa,
|
|
1039
|
+
hint: sa
|
|
1032
1040
|
};
|
|
1033
|
-
function
|
|
1041
|
+
function ca({ language: t }) {
|
|
1034
1042
|
const { t: n } = A(), s = Q(), { config: c, discoverArticles: h } = R(), [l, g] = C(!1), [u, i] = C(""), [a, m] = C([]), [r, o] = C(0), [f, w] = C([]), p = G(null), N = G(null), b = typeof navigator < "u" && /(Mac|iPhone|iPod|iPad)/i.test(navigator.platform) ? "⌘K" : "Ctrl+K";
|
|
1035
1043
|
L(() => {
|
|
1036
1044
|
(async () => {
|
|
@@ -1105,13 +1113,13 @@ function sa({ language: t }) {
|
|
|
1105
1113
|
},
|
|
1106
1114
|
"aria-label": n("ui.search"),
|
|
1107
1115
|
children: [
|
|
1108
|
-
/* @__PURE__ */ e(
|
|
1116
|
+
/* @__PURE__ */ e(Me, { className: S.searchIcon }),
|
|
1109
1117
|
/* @__PURE__ */ e("span", { className: S.searchHint, children: n("ui.search") }),
|
|
1110
1118
|
/* @__PURE__ */ e("kbd", { className: S.kbd, children: b })
|
|
1111
1119
|
]
|
|
1112
1120
|
}
|
|
1113
1121
|
),
|
|
1114
|
-
l &&
|
|
1122
|
+
l && Ke(
|
|
1115
1123
|
/* @__PURE__ */ e(
|
|
1116
1124
|
"div",
|
|
1117
1125
|
{
|
|
@@ -1127,7 +1135,7 @@ function sa({ language: t }) {
|
|
|
1127
1135
|
onClick: (k) => k.stopPropagation(),
|
|
1128
1136
|
children: [
|
|
1129
1137
|
/* @__PURE__ */ d("div", { className: S.searchHeader, children: [
|
|
1130
|
-
/* @__PURE__ */ e(
|
|
1138
|
+
/* @__PURE__ */ e(Me, { className: S.searchIcon }),
|
|
1131
1139
|
/* @__PURE__ */ e(
|
|
1132
1140
|
"input",
|
|
1133
1141
|
{
|
|
@@ -1149,7 +1157,7 @@ function sa({ language: t }) {
|
|
|
1149
1157
|
g(!1), i("");
|
|
1150
1158
|
},
|
|
1151
1159
|
"aria-label": "Close search",
|
|
1152
|
-
children: /* @__PURE__ */ e(
|
|
1160
|
+
children: /* @__PURE__ */ e(be, {})
|
|
1153
1161
|
}
|
|
1154
1162
|
)
|
|
1155
1163
|
] }),
|
|
@@ -1193,29 +1201,29 @@ function sa({ language: t }) {
|
|
|
1193
1201
|
)
|
|
1194
1202
|
] });
|
|
1195
1203
|
}
|
|
1196
|
-
const
|
|
1197
|
-
header:
|
|
1198
|
-
container:
|
|
1199
|
-
content:
|
|
1200
|
-
leftSection:
|
|
1201
|
-
mobileMenuButton:
|
|
1202
|
-
burgerIcon:
|
|
1203
|
-
logo:
|
|
1204
|
-
nav:
|
|
1205
|
-
navLink:
|
|
1206
|
-
externalIcon:
|
|
1207
|
-
supportDropdown:
|
|
1208
|
-
themeDropdown:
|
|
1209
|
-
themeButton:
|
|
1210
|
-
themeIcon:
|
|
1211
|
-
supportButton:
|
|
1212
|
-
caretIcon:
|
|
1213
|
-
dropdownMenu:
|
|
1214
|
-
dropdownItem:
|
|
1215
|
-
dropdownIcon:
|
|
1204
|
+
const ra = "_header_jrobc_1", la = "_container_jrobc_24", ia = "_content_jrobc_36", da = "_leftSection_jrobc_43", ua = "_mobileMenuButton_jrobc_49", ha = "_burgerIcon_jrobc_87", ma = "_logo_jrobc_92", ga = "_nav_jrobc_98", _a = "_navLink_jrobc_109", pa = "_externalIcon_jrobc_135", va = "_supportDropdown_jrobc_141", fa = "_themeDropdown_jrobc_145", ba = "_themeButton_jrobc_149", ka = "_themeIcon_jrobc_171", Na = "_supportButton_jrobc_177", wa = "_caretIcon_jrobc_198", Ia = "_dropdownMenu_jrobc_208", ya = "_dropdownItem_jrobc_221", $a = "_dropdownIcon_jrobc_244", $ = {
|
|
1205
|
+
header: ra,
|
|
1206
|
+
container: la,
|
|
1207
|
+
content: ia,
|
|
1208
|
+
leftSection: da,
|
|
1209
|
+
mobileMenuButton: ua,
|
|
1210
|
+
burgerIcon: ha,
|
|
1211
|
+
logo: ma,
|
|
1212
|
+
nav: ga,
|
|
1213
|
+
navLink: _a,
|
|
1214
|
+
externalIcon: pa,
|
|
1215
|
+
supportDropdown: va,
|
|
1216
|
+
themeDropdown: fa,
|
|
1217
|
+
themeButton: ba,
|
|
1218
|
+
themeIcon: ka,
|
|
1219
|
+
supportButton: Na,
|
|
1220
|
+
caretIcon: wa,
|
|
1221
|
+
dropdownMenu: Ia,
|
|
1222
|
+
dropdownItem: ya,
|
|
1223
|
+
dropdownIcon: $a
|
|
1216
1224
|
};
|
|
1217
|
-
function
|
|
1218
|
-
const { t: n, i18n: s } = A(), { config: c } = R(), h = c.header ?? {}, l = h.navLinks ?? [], g = h.dropdownItems ?? [], [u, i] = C(!1), [a, m] = C(!1), { theme: r, setTheme: o } =
|
|
1225
|
+
function Ca({ onMobileMenuToggle: t }) {
|
|
1226
|
+
const { t: n, i18n: s } = A(), { config: c } = R(), h = c.header ?? {}, l = h.navLinks ?? [], g = h.dropdownItems ?? [], [u, i] = C(!1), [a, m] = C(!1), { theme: r, setTheme: o } = Xe(), f = G(null), w = G(null);
|
|
1219
1227
|
return L(() => {
|
|
1220
1228
|
const p = (N) => {
|
|
1221
1229
|
f.current && !f.current.contains(N.target) && i(!1), w.current && !w.current.contains(N.target) && m(!1);
|
|
@@ -1230,13 +1238,13 @@ function $a({ onMobileMenuToggle: t }) {
|
|
|
1230
1238
|
className: $.mobileMenuButton,
|
|
1231
1239
|
onClick: t,
|
|
1232
1240
|
"aria-label": "Open menu",
|
|
1233
|
-
children: /* @__PURE__ */ e(
|
|
1241
|
+
children: /* @__PURE__ */ e(rt, { className: $.burgerIcon })
|
|
1234
1242
|
}
|
|
1235
1243
|
),
|
|
1236
1244
|
/* @__PURE__ */ e("div", { className: $.logo })
|
|
1237
1245
|
] }),
|
|
1238
1246
|
/* @__PURE__ */ d("nav", { className: $.nav, children: [
|
|
1239
|
-
/* @__PURE__ */ e(
|
|
1247
|
+
/* @__PURE__ */ e(ca, { language: s.language }),
|
|
1240
1248
|
/* @__PURE__ */ d("div", { className: $.themeDropdown, ref: w, children: [
|
|
1241
1249
|
/* @__PURE__ */ d(
|
|
1242
1250
|
"button",
|
|
@@ -1248,9 +1256,9 @@ function $a({ onMobileMenuToggle: t }) {
|
|
|
1248
1256
|
"aria-haspopup": "true",
|
|
1249
1257
|
"aria-label": n("ui.theme"),
|
|
1250
1258
|
children: [
|
|
1251
|
-
r === "light" && /* @__PURE__ */ e(
|
|
1252
|
-
r === "dark" && /* @__PURE__ */ e(
|
|
1253
|
-
r === "system" && /* @__PURE__ */ e(
|
|
1259
|
+
r === "light" && /* @__PURE__ */ e(Be, { className: $.themeIcon }),
|
|
1260
|
+
r === "dark" && /* @__PURE__ */ e(je, { className: $.themeIcon }),
|
|
1261
|
+
r === "system" && /* @__PURE__ */ e(Ee, { className: $.themeIcon }),
|
|
1254
1262
|
/* @__PURE__ */ e(_e, { className: $.caretIcon })
|
|
1255
1263
|
]
|
|
1256
1264
|
}
|
|
@@ -1265,7 +1273,7 @@ function $a({ onMobileMenuToggle: t }) {
|
|
|
1265
1273
|
},
|
|
1266
1274
|
className: $.dropdownItem,
|
|
1267
1275
|
children: [
|
|
1268
|
-
/* @__PURE__ */ e(
|
|
1276
|
+
/* @__PURE__ */ e(Be, { className: $.dropdownIcon }),
|
|
1269
1277
|
n("ui.light")
|
|
1270
1278
|
]
|
|
1271
1279
|
}
|
|
@@ -1279,7 +1287,7 @@ function $a({ onMobileMenuToggle: t }) {
|
|
|
1279
1287
|
},
|
|
1280
1288
|
className: $.dropdownItem,
|
|
1281
1289
|
children: [
|
|
1282
|
-
/* @__PURE__ */ e(
|
|
1290
|
+
/* @__PURE__ */ e(je, { className: $.dropdownIcon }),
|
|
1283
1291
|
n("ui.dark")
|
|
1284
1292
|
]
|
|
1285
1293
|
}
|
|
@@ -1293,7 +1301,7 @@ function $a({ onMobileMenuToggle: t }) {
|
|
|
1293
1301
|
},
|
|
1294
1302
|
className: $.dropdownItem,
|
|
1295
1303
|
children: [
|
|
1296
|
-
/* @__PURE__ */ e(
|
|
1304
|
+
/* @__PURE__ */ e(Ee, { className: $.dropdownIcon }),
|
|
1297
1305
|
n("ui.system")
|
|
1298
1306
|
]
|
|
1299
1307
|
}
|
|
@@ -1353,7 +1361,7 @@ function $a({ onMobileMenuToggle: t }) {
|
|
|
1353
1361
|
] })
|
|
1354
1362
|
] }) }) });
|
|
1355
1363
|
}
|
|
1356
|
-
function
|
|
1364
|
+
function ke({
|
|
1357
1365
|
styles: t,
|
|
1358
1366
|
onLanguageChange: n
|
|
1359
1367
|
}) {
|
|
@@ -1384,7 +1392,7 @@ function be({
|
|
|
1384
1392
|
"aria-expanded": g,
|
|
1385
1393
|
"aria-haspopup": "listbox",
|
|
1386
1394
|
children: [
|
|
1387
|
-
/* @__PURE__ */ e(
|
|
1395
|
+
/* @__PURE__ */ e(lt, { className: t.icon }),
|
|
1388
1396
|
r(a),
|
|
1389
1397
|
/* @__PURE__ */ e(_e, { className: t.chevron })
|
|
1390
1398
|
]
|
|
@@ -1404,7 +1412,7 @@ function be({
|
|
|
1404
1412
|
)) })
|
|
1405
1413
|
] });
|
|
1406
1414
|
}
|
|
1407
|
-
function
|
|
1415
|
+
function Ne({ styles: t, onLinkClick: n }) {
|
|
1408
1416
|
const { i18n: s } = A(), c = Y(), { config: h, loadContent: l } = R(), [g, u] = C([]), [i, a] = C({}), [m, r] = C(!0), o = s.language;
|
|
1409
1417
|
L(() => {
|
|
1410
1418
|
(async () => {
|
|
@@ -1413,13 +1421,13 @@ function ke({ styles: t, onLinkClick: n }) {
|
|
|
1413
1421
|
return;
|
|
1414
1422
|
}
|
|
1415
1423
|
try {
|
|
1416
|
-
const b = await
|
|
1424
|
+
const b = await Ft(
|
|
1417
1425
|
h.navigationData,
|
|
1418
1426
|
o,
|
|
1419
1427
|
l
|
|
1420
1428
|
), y = b.reduce(
|
|
1421
1429
|
(P, k, T) => {
|
|
1422
|
-
if (
|
|
1430
|
+
if (Oe(k)) {
|
|
1423
1431
|
const j = h.navigationData[T], W = "items" in j && j.defaultOpen === !0;
|
|
1424
1432
|
P[k.title] = W;
|
|
1425
1433
|
}
|
|
@@ -1468,7 +1476,7 @@ function ke({ styles: t, onLinkClick: n }) {
|
|
|
1468
1476
|
/* @__PURE__ */ e("div", { className: t.skeletonItem })
|
|
1469
1477
|
] })
|
|
1470
1478
|
] })
|
|
1471
|
-
] }) : /* @__PURE__ */ e("div", { className: t.navigation, children: g.map((v) =>
|
|
1479
|
+
] }) : /* @__PURE__ */ e("div", { className: t.navigation, children: g.map((v) => Oe(v) ? /* @__PURE__ */ d("div", { className: t.section, children: [
|
|
1472
1480
|
/* @__PURE__ */ d(
|
|
1473
1481
|
"button",
|
|
1474
1482
|
{
|
|
@@ -1477,7 +1485,7 @@ function ke({ styles: t, onLinkClick: n }) {
|
|
|
1477
1485
|
onClick: () => f(v.title),
|
|
1478
1486
|
children: [
|
|
1479
1487
|
v.title,
|
|
1480
|
-
/* @__PURE__ */ e(
|
|
1488
|
+
/* @__PURE__ */ e(He, { className: t.icon })
|
|
1481
1489
|
]
|
|
1482
1490
|
}
|
|
1483
1491
|
),
|
|
@@ -1502,46 +1510,46 @@ function ke({ styles: t, onLinkClick: n }) {
|
|
|
1502
1510
|
v.slug
|
|
1503
1511
|
)) });
|
|
1504
1512
|
}
|
|
1505
|
-
function
|
|
1513
|
+
function ss({
|
|
1506
1514
|
styles: t,
|
|
1507
1515
|
onLinkClick: n,
|
|
1508
1516
|
onLanguageChange: s
|
|
1509
1517
|
}) {
|
|
1510
1518
|
return /* @__PURE__ */ d(U, { children: [
|
|
1511
|
-
/* @__PURE__ */ e(
|
|
1512
|
-
/* @__PURE__ */ e(
|
|
1519
|
+
/* @__PURE__ */ e(ke, { styles: t, onLanguageChange: s }),
|
|
1520
|
+
/* @__PURE__ */ e(Ne, { styles: t, onLinkClick: n })
|
|
1513
1521
|
] });
|
|
1514
1522
|
}
|
|
1515
|
-
const
|
|
1516
|
-
backdrop:
|
|
1517
|
-
open:
|
|
1518
|
-
mobileMenu:
|
|
1519
|
-
header:
|
|
1520
|
-
brand:
|
|
1521
|
-
cloudIcon:
|
|
1522
|
-
title:
|
|
1523
|
-
closeButton:
|
|
1524
|
-
closeIcon:
|
|
1525
|
-
languageSection:
|
|
1526
|
-
languageSelect:
|
|
1527
|
-
languageButton:
|
|
1528
|
-
icon:
|
|
1529
|
-
chevron:
|
|
1530
|
-
languageDropdown:
|
|
1531
|
-
languageOption:
|
|
1532
|
-
selected:
|
|
1533
|
-
scrollArea:
|
|
1534
|
-
navigation:
|
|
1535
|
-
section:
|
|
1536
|
-
sectionButton:
|
|
1537
|
-
expanded:
|
|
1538
|
-
sectionItems:
|
|
1539
|
-
navItem:
|
|
1540
|
-
active:
|
|
1541
|
-
navItemContent:
|
|
1542
|
-
navItemTitle:
|
|
1523
|
+
const Ta = "_backdrop_1a7pu_1", xa = "_open_1a7pu_13", La = "_mobileMenu_1a7pu_18", Sa = "_header_1a7pu_37", Pa = "_brand_1a7pu_46", Ma = "_cloudIcon_1a7pu_53", Ba = "_title_1a7pu_62", ja = "_closeButton_1a7pu_69", Ea = "_closeIcon_1a7pu_101", Da = "_languageSection_1a7pu_106", Aa = "_languageSelect_1a7pu_112", Ra = "_languageButton_1a7pu_117", Oa = "_icon_1a7pu_156", qa = "_chevron_1a7pu_162", Wa = "_languageDropdown_1a7pu_172", Ha = "_languageOption_1a7pu_185", Fa = "_selected_1a7pu_226", za = "_scrollArea_1a7pu_231", Ka = "_navigation_1a7pu_237", Ua = "_section_1a7pu_241", Ga = "_sectionButton_1a7pu_245", Qa = "_expanded_1a7pu_285", Xa = "_sectionItems_1a7pu_289", Ya = "_navItem_1a7pu_297", Va = "_active_1a7pu_310", Ja = "_navItemContent_1a7pu_316", Za = "_navItemTitle_1a7pu_322", q = {
|
|
1524
|
+
backdrop: Ta,
|
|
1525
|
+
open: xa,
|
|
1526
|
+
mobileMenu: La,
|
|
1527
|
+
header: Sa,
|
|
1528
|
+
brand: Pa,
|
|
1529
|
+
cloudIcon: Ma,
|
|
1530
|
+
title: Ba,
|
|
1531
|
+
closeButton: ja,
|
|
1532
|
+
closeIcon: Ea,
|
|
1533
|
+
languageSection: Da,
|
|
1534
|
+
languageSelect: Aa,
|
|
1535
|
+
languageButton: Ra,
|
|
1536
|
+
icon: Oa,
|
|
1537
|
+
chevron: qa,
|
|
1538
|
+
languageDropdown: Wa,
|
|
1539
|
+
languageOption: Ha,
|
|
1540
|
+
selected: Fa,
|
|
1541
|
+
scrollArea: za,
|
|
1542
|
+
navigation: Ka,
|
|
1543
|
+
section: Ua,
|
|
1544
|
+
sectionButton: Ga,
|
|
1545
|
+
expanded: Qa,
|
|
1546
|
+
sectionItems: Xa,
|
|
1547
|
+
navItem: Ya,
|
|
1548
|
+
active: Va,
|
|
1549
|
+
navItemContent: Ja,
|
|
1550
|
+
navItemTitle: Za
|
|
1543
1551
|
};
|
|
1544
|
-
function
|
|
1552
|
+
function eo({ isOpen: t, onClose: n }) {
|
|
1545
1553
|
const { config: s } = R(), c = s.logo;
|
|
1546
1554
|
return L(() => (t ? document.body.style.overflow = "hidden" : document.body.style.overflow = "unset", () => {
|
|
1547
1555
|
document.body.style.overflow = "unset";
|
|
@@ -1571,45 +1579,45 @@ function Za({ isOpen: t, onClose: n }) {
|
|
|
1571
1579
|
className: q.closeButton,
|
|
1572
1580
|
onClick: n,
|
|
1573
1581
|
"aria-label": "Close menu",
|
|
1574
|
-
children: /* @__PURE__ */ e(
|
|
1582
|
+
children: /* @__PURE__ */ e(be, { className: q.closeIcon })
|
|
1575
1583
|
}
|
|
1576
1584
|
)
|
|
1577
1585
|
] }),
|
|
1578
|
-
/* @__PURE__ */ e("div", { className: q.languageSection, children: /* @__PURE__ */ e(
|
|
1579
|
-
/* @__PURE__ */ e("div", { className: q.scrollArea, children: /* @__PURE__ */ e(
|
|
1586
|
+
/* @__PURE__ */ e("div", { className: q.languageSection, children: /* @__PURE__ */ e(ke, { styles: q, onLanguageChange: n }) }),
|
|
1587
|
+
/* @__PURE__ */ e("div", { className: q.scrollArea, children: /* @__PURE__ */ e(Ne, { styles: q, onLinkClick: n }) })
|
|
1580
1588
|
] })
|
|
1581
1589
|
] });
|
|
1582
1590
|
}
|
|
1583
|
-
const
|
|
1584
|
-
sidebar:
|
|
1585
|
-
header:
|
|
1586
|
-
brand:
|
|
1587
|
-
cloudIcon:
|
|
1588
|
-
title:
|
|
1589
|
-
languageSelect:
|
|
1590
|
-
languageButton:
|
|
1591
|
-
icon:
|
|
1592
|
-
chevron:
|
|
1593
|
-
languageDropdown:
|
|
1594
|
-
languageOption:
|
|
1595
|
-
selected:
|
|
1596
|
-
scrollArea:
|
|
1597
|
-
navigation:
|
|
1598
|
-
section:
|
|
1599
|
-
sectionButton:
|
|
1600
|
-
expanded:
|
|
1601
|
-
sectionItems:
|
|
1602
|
-
navItem:
|
|
1603
|
-
active:
|
|
1604
|
-
navItemContent:
|
|
1605
|
-
skeletonSection:
|
|
1606
|
-
skeletonSectionTitle:
|
|
1591
|
+
const to = "_sidebar_1qgjy_1", no = "_header_1qgjy_17", ao = "_brand_1qgjy_29", oo = "_cloudIcon_1qgjy_35", so = "_title_1qgjy_44", co = "_languageSelect_1qgjy_55", ro = "_languageButton_1qgjy_61", lo = "_icon_1qgjy_99", io = "_chevron_1qgjy_104", uo = "_languageDropdown_1qgjy_114", ho = "_languageOption_1qgjy_128", mo = "_selected_1qgjy_147", go = "_scrollArea_1qgjy_152", _o = "_navigation_1qgjy_158", po = "_section_1qgjy_164", vo = "_sectionButton_1qgjy_170", fo = "_expanded_1qgjy_213", bo = "_sectionItems_1qgjy_217", ko = "_navItem_1qgjy_225", No = "_active_1qgjy_238", wo = "_navItemContent_1qgjy_243", Io = "_skeletonSection_1qgjy_267", yo = "_skeletonSectionTitle_1qgjy_274", $o = "_skeleton-loading_1qgjy_1", Co = "_skeletonSectionItems_1qgjy_294", To = "_skeletonItem_1qgjy_302", K = {
|
|
1592
|
+
sidebar: to,
|
|
1593
|
+
header: no,
|
|
1594
|
+
brand: ao,
|
|
1595
|
+
cloudIcon: oo,
|
|
1596
|
+
title: so,
|
|
1597
|
+
languageSelect: co,
|
|
1598
|
+
languageButton: ro,
|
|
1599
|
+
icon: lo,
|
|
1600
|
+
chevron: io,
|
|
1601
|
+
languageDropdown: uo,
|
|
1602
|
+
languageOption: ho,
|
|
1603
|
+
selected: mo,
|
|
1604
|
+
scrollArea: go,
|
|
1605
|
+
navigation: _o,
|
|
1606
|
+
section: po,
|
|
1607
|
+
sectionButton: vo,
|
|
1608
|
+
expanded: fo,
|
|
1609
|
+
sectionItems: bo,
|
|
1610
|
+
navItem: ko,
|
|
1611
|
+
active: No,
|
|
1612
|
+
navItemContent: wo,
|
|
1613
|
+
skeletonSection: Io,
|
|
1614
|
+
skeletonSectionTitle: yo,
|
|
1607
1615
|
"skeleton-loading": "_skeleton-loading_1qgjy_1",
|
|
1608
|
-
skeletonLoading:
|
|
1609
|
-
skeletonSectionItems:
|
|
1610
|
-
skeletonItem:
|
|
1616
|
+
skeletonLoading: $o,
|
|
1617
|
+
skeletonSectionItems: Co,
|
|
1618
|
+
skeletonItem: To
|
|
1611
1619
|
};
|
|
1612
|
-
function
|
|
1620
|
+
function xo() {
|
|
1613
1621
|
const { config: t } = R(), n = t.logo, s = t.supportedLanguages.length > 1;
|
|
1614
1622
|
return /* @__PURE__ */ d("div", { className: K.sidebar, children: [
|
|
1615
1623
|
/* @__PURE__ */ d("div", { className: K.header, children: [
|
|
@@ -1617,20 +1625,20 @@ function To() {
|
|
|
1617
1625
|
n && /* @__PURE__ */ e(n, { className: K.cloudIcon }),
|
|
1618
1626
|
/* @__PURE__ */ e("div", { className: K.title, children: t.title })
|
|
1619
1627
|
] }),
|
|
1620
|
-
s && /* @__PURE__ */ e(
|
|
1628
|
+
s && /* @__PURE__ */ e(ke, { styles: K })
|
|
1621
1629
|
] }),
|
|
1622
|
-
/* @__PURE__ */ e("div", { className: K.scrollArea, children: /* @__PURE__ */ e(
|
|
1630
|
+
/* @__PURE__ */ e("div", { className: K.scrollArea, children: /* @__PURE__ */ e(Ne, { styles: K }) })
|
|
1623
1631
|
] });
|
|
1624
1632
|
}
|
|
1625
|
-
const
|
|
1626
|
-
app:
|
|
1627
|
-
layout:
|
|
1628
|
-
main:
|
|
1629
|
-
fullWidth:
|
|
1630
|
-
contentWrapper:
|
|
1633
|
+
const Lo = "_app_b0d4r_1", So = "_layout_b0d4r_9", Po = "_main_b0d4r_15", Mo = "_fullWidth_b0d4r_21", Bo = "_contentWrapper_b0d4r_30", se = {
|
|
1634
|
+
app: Lo,
|
|
1635
|
+
layout: So,
|
|
1636
|
+
main: Po,
|
|
1637
|
+
fullWidth: Mo,
|
|
1638
|
+
contentWrapper: Bo
|
|
1631
1639
|
};
|
|
1632
|
-
function
|
|
1633
|
-
const { language: n } =
|
|
1640
|
+
function jo({ children: t }) {
|
|
1641
|
+
const { language: n } = fe(), { i18n: s } = A(), { config: c } = R(), [h, l] = C(!1);
|
|
1634
1642
|
L(() => {
|
|
1635
1643
|
n && c.supportedLanguages.includes(n) && s.changeLanguage(n);
|
|
1636
1644
|
}, [n, s, c.supportedLanguages]);
|
|
@@ -1640,13 +1648,13 @@ function Bo({ children: t }) {
|
|
|
1640
1648
|
l(!1);
|
|
1641
1649
|
};
|
|
1642
1650
|
if (!n || !c.supportedLanguages.includes(n))
|
|
1643
|
-
return /* @__PURE__ */ e(
|
|
1651
|
+
return /* @__PURE__ */ e(We, { to: "/en/welcome", replace: !0 });
|
|
1644
1652
|
const i = !!c.header, a = c.showSideMenu !== !1, m = c.contentMaxWidth ? { width: "100%", maxWidth: c.contentMaxWidth } : void 0;
|
|
1645
1653
|
return /* @__PURE__ */ d("div", { className: se.app, children: [
|
|
1646
|
-
i && /* @__PURE__ */ e(
|
|
1647
|
-
/* @__PURE__ */ e(
|
|
1654
|
+
i && /* @__PURE__ */ e(Ca, { onMobileMenuToggle: g }),
|
|
1655
|
+
/* @__PURE__ */ e(eo, { isOpen: h, onClose: u }),
|
|
1648
1656
|
/* @__PURE__ */ d("div", { className: se.layout, children: [
|
|
1649
|
-
a && /* @__PURE__ */ e(
|
|
1657
|
+
a && /* @__PURE__ */ e(xo, {}),
|
|
1650
1658
|
/* @__PURE__ */ e(
|
|
1651
1659
|
"main",
|
|
1652
1660
|
{
|
|
@@ -1657,21 +1665,21 @@ function Bo({ children: t }) {
|
|
|
1657
1665
|
] })
|
|
1658
1666
|
] });
|
|
1659
1667
|
}
|
|
1660
|
-
const
|
|
1661
|
-
homePage:
|
|
1662
|
-
header:
|
|
1663
|
-
title:
|
|
1664
|
-
articlesList:
|
|
1665
|
-
articleCard:
|
|
1666
|
-
articleTitle:
|
|
1667
|
-
articleDescription:
|
|
1668
|
-
empty:
|
|
1669
|
-
skeletonCard:
|
|
1670
|
-
skeletonTitle:
|
|
1671
|
-
skeletonText:
|
|
1672
|
-
skeletonMetadata:
|
|
1668
|
+
const Eo = "_homePage_6lyc6_1", Do = "_header_6lyc6_20", Ao = "_title_6lyc6_24", Ro = "_articlesList_6lyc6_31", Oo = "_articleCard_6lyc6_37", qo = "_articleTitle_6lyc6_56", Wo = "_articleDescription_6lyc6_63", Ho = "_empty_6lyc6_71", Fo = "_skeletonCard_6lyc6_85", zo = "_skeletonTitle_6lyc6_95", Ko = "_skeletonText_6lyc6_104", Uo = "_skeletonMetadata_6lyc6_113", B = {
|
|
1669
|
+
homePage: Eo,
|
|
1670
|
+
header: Do,
|
|
1671
|
+
title: Ao,
|
|
1672
|
+
articlesList: Ro,
|
|
1673
|
+
articleCard: Oo,
|
|
1674
|
+
articleTitle: qo,
|
|
1675
|
+
articleDescription: Wo,
|
|
1676
|
+
empty: Ho,
|
|
1677
|
+
skeletonCard: Fo,
|
|
1678
|
+
skeletonTitle: zo,
|
|
1679
|
+
skeletonText: Ko,
|
|
1680
|
+
skeletonMetadata: Uo
|
|
1673
1681
|
};
|
|
1674
|
-
function
|
|
1682
|
+
function Go() {
|
|
1675
1683
|
const { i18n: t, t: n } = A(), { config: s, discoverArticles: c } = R(), h = Q(), [l, g] = C([]), [u, i] = C(!0), a = s.articleTitleFont ? { fontFamily: s.articleTitleFont } : void 0;
|
|
1676
1684
|
L(() => {
|
|
1677
1685
|
(async () => {
|
|
@@ -1709,29 +1717,29 @@ function Uo() {
|
|
|
1709
1717
|
children: [
|
|
1710
1718
|
/* @__PURE__ */ e("h2", { className: B.articleTitle, style: a, children: r.title }),
|
|
1711
1719
|
r.description && /* @__PURE__ */ e("p", { className: B.articleDescription, children: r.description }),
|
|
1712
|
-
/* @__PURE__ */ e(
|
|
1720
|
+
/* @__PURE__ */ e(ve, { date: r.date, author: r.author })
|
|
1713
1721
|
]
|
|
1714
1722
|
},
|
|
1715
1723
|
r.slug
|
|
1716
1724
|
)) })
|
|
1717
1725
|
] }),
|
|
1718
|
-
/* @__PURE__ */ e(
|
|
1726
|
+
/* @__PURE__ */ e(jt, {})
|
|
1719
1727
|
] });
|
|
1720
1728
|
}
|
|
1721
|
-
function
|
|
1722
|
-
const { language: t } =
|
|
1723
|
-
return /* @__PURE__ */ e(
|
|
1724
|
-
/* @__PURE__ */ e(
|
|
1729
|
+
function cs() {
|
|
1730
|
+
const { language: t } = fe(), { config: n } = R();
|
|
1731
|
+
return /* @__PURE__ */ e(jo, { children: /* @__PURE__ */ d(tt, { children: [
|
|
1732
|
+
/* @__PURE__ */ e(Pe, { path: "/:slug", element: /* @__PURE__ */ e(Wn, { language: t }) }),
|
|
1725
1733
|
/* @__PURE__ */ e(
|
|
1726
|
-
|
|
1734
|
+
Pe,
|
|
1727
1735
|
{
|
|
1728
1736
|
index: !0,
|
|
1729
|
-
element: (n.defaultRoute || "latest") === "latest" ? /* @__PURE__ */ e(
|
|
1737
|
+
element: (n.defaultRoute || "latest") === "latest" ? /* @__PURE__ */ e(Go, {}) : /* @__PURE__ */ e(We, { to: `./${n.defaultRoute}`, replace: !0 })
|
|
1730
1738
|
}
|
|
1731
1739
|
)
|
|
1732
1740
|
] }) });
|
|
1733
1741
|
}
|
|
1734
|
-
function
|
|
1742
|
+
function rs() {
|
|
1735
1743
|
return {
|
|
1736
1744
|
openSearchModal: () => {
|
|
1737
1745
|
window.dispatchEvent(new CustomEvent("blog:open-search"));
|
|
@@ -1741,7 +1749,7 @@ function cs() {
|
|
|
1741
1749
|
}
|
|
1742
1750
|
};
|
|
1743
1751
|
}
|
|
1744
|
-
function
|
|
1752
|
+
function ls() {
|
|
1745
1753
|
const { i18n: t } = A(), n = Y(), s = Q(), { config: c } = R();
|
|
1746
1754
|
return (h) => {
|
|
1747
1755
|
const l = c.basePath || "";
|
|
@@ -1755,35 +1763,35 @@ function rs() {
|
|
|
1755
1763
|
};
|
|
1756
1764
|
}
|
|
1757
1765
|
export {
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1766
|
+
gt as AdvancedModeToggle,
|
|
1767
|
+
xt as ArticleNavigation,
|
|
1768
|
+
os as BlogProvider,
|
|
1769
|
+
_t as BlogRoot,
|
|
1770
|
+
jt as BlogSidebar,
|
|
1771
|
+
Wt as Breadcrumb,
|
|
1772
|
+
Wn as ContentPage,
|
|
1773
|
+
jo as DocumentationLayout,
|
|
1774
|
+
cs as DocumentationRoutes,
|
|
1775
|
+
Ca as Header,
|
|
1776
|
+
Go as HomePage,
|
|
1777
|
+
ke as LanguageSelector,
|
|
1778
|
+
ve as Metadata,
|
|
1779
|
+
eo as MobileMenu,
|
|
1780
|
+
ss as NavigationContent,
|
|
1781
|
+
Ne as NavigationMenu,
|
|
1782
|
+
ca as SearchBar,
|
|
1783
|
+
xo as Sidebar,
|
|
1784
|
+
rn as TableOfContents,
|
|
1785
|
+
kn as TagResultsModal,
|
|
1786
|
+
Tn as Tags,
|
|
1787
|
+
pt as ThemeProvider,
|
|
1788
|
+
as as createBlogUtils,
|
|
1789
|
+
Ue as createContentLoaders,
|
|
1782
1790
|
ee as generateHeadingId,
|
|
1783
|
-
|
|
1784
|
-
|
|
1791
|
+
zt as getAdjacentArticles,
|
|
1792
|
+
Ft as getNavigationData,
|
|
1785
1793
|
R as useBlogConfig,
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1794
|
+
ls as useLanguageChange,
|
|
1795
|
+
rs as useSearchModal,
|
|
1796
|
+
Xe as useTheme
|
|
1789
1797
|
};
|