@x-wave/blog 1.0.33 → 1.0.34

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/index.js CHANGED
@@ -1,25 +1,25 @@
1
- import { jsxs as u, jsx as t, Fragment as G } from "react/jsx-runtime";
2
- import { useTranslation as O } from "react-i18next";
3
- import { useLocation as Q, useNavigate as X, Link as it, useParams as ft, Navigate as jt, Routes as Xt, Route as Pt } from "react-router-dom";
4
- import { CaretLeft as Yt, CaretRight as Wt, User as Vt, CalendarBlank as Jt, X as vt, Tag as Zt, MagnifyingGlass as St, List as te, Sun as Dt, Moon as Mt, Monitor as Bt, CaretDown as _t, Globe as ee } from "@phosphor-icons/react";
5
- import { useState as y, useEffect as P, createContext as ne, useContext as ae, useRef as q } from "react";
6
- import oe from "i18next";
7
- import se from "react-markdown";
8
- import ce from "remark-gfm";
9
- import { createPortal as Ht } from "react-dom";
10
- const re = "_tabContainer_zk6h4_1", le = "_tab_zk6h4_1", ie = "_active_zk6h4_45", et = {
11
- tabContainer: re,
12
- tab: le,
13
- active: ie
1
+ import { jsxs as d, jsx as t, Fragment as q } from "react/jsx-runtime";
2
+ import { useTranslation as A } from "react-i18next";
3
+ import { useLocation as Q, useNavigate as X, Link as dt, useParams as vt, Navigate as Wt, Routes as Yt, Route as Pt } from "react-router-dom";
4
+ import { CaretLeft as Vt, CaretRight as Ht, ArrowSquareOut as Jt, User as Zt, CalendarBlank as te, X as bt, Tag as ee, MagnifyingGlass as Dt, List as ne, Sun as Mt, Moon as Bt, Monitor as Et, CaretDown as pt, Globe as ae } from "@phosphor-icons/react";
5
+ import { useState as y, useEffect as S, createContext as oe, useContext as se, useRef as G } from "react";
6
+ import ce from "i18next";
7
+ import re from "react-markdown";
8
+ import le from "remark-gfm";
9
+ import { createPortal as zt } from "react-dom";
10
+ const ie = "_tabContainer_zk6h4_1", de = "_tab_zk6h4_1", ue = "_active_zk6h4_45", et = {
11
+ tabContainer: ie,
12
+ tab: de,
13
+ active: ue
14
14
  };
15
- function de({ hasAdvanced: e }) {
16
- const { t: n } = O(), o = Q(), a = X();
15
+ function he({ hasAdvanced: e }) {
16
+ const { t: n } = A(), o = Q(), a = X();
17
17
  if (!e) return null;
18
18
  const s = new URLSearchParams(o.search).has("advanced"), l = () => {
19
19
  if (s) {
20
20
  const h = new URLSearchParams(o.search);
21
21
  h.delete("advanced");
22
- const d = h.toString(), i = d ? `?${d}` : "";
22
+ const u = h.toString(), i = u ? `?${u}` : "";
23
23
  a(`${o.pathname}${i}${o.hash}`);
24
24
  }
25
25
  }, g = () => {
@@ -28,7 +28,7 @@ function de({ hasAdvanced: e }) {
28
28
  h.set("advanced", ""), a(`${o.pathname}?${h.toString()}${o.hash}`);
29
29
  }
30
30
  };
31
- return /* @__PURE__ */ u("div", { className: et.tabContainer, children: [
31
+ return /* @__PURE__ */ d("div", { className: et.tabContainer, children: [
32
32
  /* @__PURE__ */ t(
33
33
  "button",
34
34
  {
@@ -49,10 +49,10 @@ function de({ hasAdvanced: e }) {
49
49
  )
50
50
  ] });
51
51
  }
52
- function ue({ children: e }) {
52
+ function me({ children: e }) {
53
53
  return /* @__PURE__ */ t("div", { className: "xw-blog-root", children: e });
54
54
  }
55
- function zt(e) {
55
+ function Ft(e) {
56
56
  function n(o) {
57
57
  const a = o.match(/^---\s*\n([\s\S]*?)\n---\s*\n/);
58
58
  if (!a) return { frontmatter: {}, content: o };
@@ -79,11 +79,11 @@ function zt(e) {
79
79
  }
80
80
  }
81
81
  g && h.length > 0 && (c[l] = h);
82
- const d = o.replace(
82
+ const u = o.replace(
83
83
  /^---\s*\n[\s\S]*?\n---\s*\n/,
84
84
  ""
85
85
  );
86
- return { frontmatter: c, content: d };
86
+ return { frontmatter: c, content: u };
87
87
  }
88
88
  return {
89
89
  /**
@@ -93,8 +93,8 @@ function zt(e) {
93
93
  async loadMDXContent(o, a, c = !1) {
94
94
  const s = c ? `${a}-advanced.mdx` : `${a}.mdx`, l = `./docs/${o}/${s}`, g = e[l];
95
95
  if (!g) throw new Error(`File not found: ${l}`);
96
- const h = await g(), { frontmatter: d, content: i } = n(h);
97
- return { content: i, frontmatter: d };
96
+ const h = await g(), { frontmatter: u, content: i } = n(h);
97
+ return { content: i, frontmatter: u };
98
98
  },
99
99
  /**
100
100
  * Load English content for generating consistent heading IDs.
@@ -119,9 +119,9 @@ function zt(e) {
119
119
  );
120
120
  for (const l of s)
121
121
  try {
122
- const g = e[l], h = await g(), { frontmatter: d, content: i } = n(h), f = l.split("/").pop() || "", _ = f.replace(".mdx", "").replace("-advanced", ""), v = typeof d.title == "string" ? d.title : void 0, w = i.match(/^#\s+(.+)$/m), r = v || (w ? w[1].trim() : _);
122
+ const g = e[l], h = await g(), { frontmatter: u, content: i } = n(h), f = l.split("/").pop() || "", _ = f.replace(".mdx", "").replace("-advanced", ""), v = typeof u.title == "string" ? u.title : void 0, w = i.match(/^#\s+(.+)$/m), r = v || (w ? w[1].trim() : _);
123
123
  if (f.includes("-advanced")) continue;
124
- const m = d.tags;
124
+ const m = u.tags;
125
125
  if (m && Array.isArray(m))
126
126
  for (const N of m)
127
127
  a[N] || (a[N] = []), a[N].some((I) => I.slug === _) || a[N].push({ slug: _, title: r });
@@ -132,43 +132,43 @@ function zt(e) {
132
132
  }
133
133
  };
134
134
  }
135
- function yo(e) {
136
- const n = zt(e);
135
+ function Eo(e) {
136
+ const n = Ft(e);
137
137
  return {
138
138
  mdxFiles: e,
139
139
  loadContent: n.loadMDXContent,
140
140
  loadEnglishContent: n.loadEnglishContent
141
141
  };
142
142
  }
143
- const Et = "app-theme", Ft = () => typeof window > "u" ? "light" : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light", Rt = (e) => e === "system" ? Ft() : e, Ut = (e) => {
144
- const n = () => e || (typeof window > "u" ? "system" : localStorage.getItem(Et) || "system"), [o, a] = y(n);
145
- return P(() => {
146
- const s = Rt(o), l = document.querySelector(".xw-blog-root");
143
+ const Rt = "app-theme", Ut = () => typeof window > "u" ? "light" : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light", At = (e) => e === "system" ? Ut() : e, Kt = (e) => {
144
+ const n = () => e || (typeof window > "u" ? "system" : localStorage.getItem(Rt) || "system"), [o, a] = y(n);
145
+ return S(() => {
146
+ const s = At(o), l = document.querySelector(".xw-blog-root");
147
147
  if (l && (l.classList.remove("light", "dark"), l.classList.add(s)), o === "system") {
148
148
  const g = window.matchMedia("(prefers-color-scheme: dark)"), h = () => {
149
- const d = Ft(), i = document.querySelector(".xw-blog-root");
150
- i && (i.classList.remove("light", "dark"), i.classList.add(d));
149
+ const u = Ut(), i = document.querySelector(".xw-blog-root");
150
+ i && (i.classList.remove("light", "dark"), i.classList.add(u));
151
151
  };
152
152
  return g.addEventListener("change", h), () => g.removeEventListener("change", h);
153
153
  }
154
154
  }, [o]), {
155
155
  theme: o,
156
156
  setTheme: (s) => {
157
- localStorage.setItem(Et, s), a(s);
157
+ localStorage.setItem(Rt, s), a(s);
158
158
  },
159
- effectiveTheme: Rt(o)
159
+ effectiveTheme: At(o)
160
160
  };
161
- }, he = (e) => "items" in e, at = (e) => "items" in e, dt = async (e, n, o) => {
161
+ }, ge = (e) => "items" in e, ot = (e) => "items" in e, ut = async (e, n, o) => {
162
162
  const a = [];
163
163
  for (const c of e)
164
- if (he(c)) {
164
+ if (ge(c)) {
165
165
  const s = [];
166
166
  for (const g of c.items)
167
167
  try {
168
- const h = await o(n, g.slug, !1), d = typeof h.frontmatter.title == "string" ? h.frontmatter.title : g.slug;
168
+ const h = await o(n, g.slug, !1), u = typeof h.frontmatter.title == "string" ? h.frontmatter.title : g.slug;
169
169
  s.push({
170
170
  ...g,
171
- title: d
171
+ title: u
172
172
  });
173
173
  } catch {
174
174
  s.push({
@@ -176,7 +176,7 @@ const Et = "app-theme", Ft = () => typeof window > "u" ? "light" : window.matchM
176
176
  title: g.slug
177
177
  });
178
178
  }
179
- const l = oe.getFixedT(n)(c.title);
179
+ const l = ce.getFixedT(n)(c.title);
180
180
  a.push({
181
181
  title: l,
182
182
  items: s,
@@ -198,10 +198,10 @@ const Et = "app-theme", Ft = () => typeof window > "u" ? "light" : window.matchM
198
198
  });
199
199
  }
200
200
  return a;
201
- }, Z = (e) => e.toString().toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/\s+/g, "-").replace(/-+/g, "-").replace(/^-+|-+$/g, ""), me = (e, n) => {
201
+ }, Z = (e) => e.toString().toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/\s+/g, "-").replace(/-+/g, "-").replace(/^-+|-+$/g, ""), _e = (e, n) => {
202
202
  const o = [];
203
203
  for (const c of n)
204
- at(c) ? o.push(...c.items) : o.push({ slug: c.slug, title: c.title });
204
+ ot(c) ? o.push(...c.items) : o.push({ slug: c.slug, title: c.title });
205
205
  const a = o.findIndex(
206
206
  (c) => c.slug === e
207
207
  );
@@ -209,60 +209,60 @@ const Et = "app-theme", Ft = () => typeof window > "u" ? "light" : window.matchM
209
209
  prev: a > 0 ? o[a - 1] : void 0,
210
210
  next: a < o.length - 1 ? o[a + 1] : void 0
211
211
  };
212
- }, Kt = ne(null);
213
- function Lo({
212
+ }, qt = oe(null);
213
+ function Ro({
214
214
  children: e,
215
215
  config: n,
216
216
  blog: o,
217
217
  navigationData: a = []
218
218
  }) {
219
- Ut(n.defaultTheme);
219
+ Kt(n.defaultTheme);
220
220
  const [c, s] = y({});
221
- P(() => {
222
- const { buildTagIndex: g } = zt(o.mdxFiles), h = n.supportedLanguages.map(async (d) => {
221
+ S(() => {
222
+ const { buildTagIndex: g } = Ft(o.mdxFiles), h = n.supportedLanguages.map(async (u) => {
223
223
  try {
224
- const i = await g(d);
225
- return { language: d, index: i };
224
+ const i = await g(u);
225
+ return { language: u, index: i };
226
226
  } catch (i) {
227
- return console.error(`Failed to build tag index for ${d}:`, i), { language: d, index: {} };
227
+ return console.error(`Failed to build tag index for ${u}:`, i), { language: u, index: {} };
228
228
  }
229
229
  });
230
- Promise.all(h).then((d) => {
230
+ Promise.all(h).then((u) => {
231
231
  const i = {};
232
- for (const f of d)
232
+ for (const f of u)
233
233
  i[f.language] = f.index;
234
234
  s(i);
235
- }).catch((d) => {
236
- console.error("Failed to build tag indices:", d);
235
+ }).catch((u) => {
236
+ console.error("Failed to build tag indices:", u);
237
237
  });
238
238
  }, [o.mdxFiles, n.supportedLanguages]);
239
239
  const l = { ...n, navigationData: a, tagIndex: c };
240
240
  return /* @__PURE__ */ t(
241
- Kt.Provider,
241
+ qt.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__ */ t(ue, { children: e })
248
+ children: /* @__PURE__ */ t(me, { children: e })
249
249
  }
250
250
  );
251
251
  }
252
- function j() {
253
- const e = ae(Kt);
252
+ function O() {
253
+ const e = se(qt);
254
254
  if (!e)
255
255
  throw new Error("useBlogConfig must be used within a BlogProvider");
256
256
  return e;
257
257
  }
258
- function qt() {
258
+ function Gt() {
259
259
  return !!new URL(window.location.href).hash;
260
260
  }
261
- function ge(e, n, o) {
261
+ function pe(e, n, o) {
262
262
  const a = o ? `${o}/` : "";
263
- return qt() ? `#${a}${n}/${e}` : `/${a}${n}/${e}`;
263
+ return Gt() ? `#${a}${n}/${e}` : `/${a}${n}/${e}`;
264
264
  }
265
- function Gt(e) {
265
+ function Qt(e) {
266
266
  const n = {
267
267
  advanced: !1,
268
268
  anchor: ""
@@ -273,7 +273,7 @@ function Gt(e) {
273
273
  c === "advanced" ? n.advanced = !0 : c.startsWith("a=") && (n.anchor = c.substring(2));
274
274
  return n;
275
275
  }
276
- function At(e, n = 80) {
276
+ function Ot(e, n = 80) {
277
277
  const o = document.getElementById(e);
278
278
  if (o) {
279
279
  const c = o.getBoundingClientRect().top + window.pageYOffset - n;
@@ -283,9 +283,9 @@ function At(e, n = 80) {
283
283
  });
284
284
  }
285
285
  }
286
- function _e(e, n = !1) {
286
+ function fe(e, n = !1) {
287
287
  const o = new URL(window.location.href);
288
- if (qt()) {
288
+ if (Gt()) {
289
289
  const a = o.hash.split("?"), c = a[0], s = new URLSearchParams(a[1] || "");
290
290
  s.set("a", e), n && s.set("advanced", "");
291
291
  const l = s.toString();
@@ -296,85 +296,115 @@ function _e(e, n = !1) {
296
296
  }
297
297
  window.history.pushState(null, "", o.toString());
298
298
  }
299
- const pe = "_articleNavigation_1m2tz_1", fe = "_navContainer_1m2tz_7", ve = "_navLink_1m2tz_18", be = "_navLinkContent_1m2tz_43", we = "_navIcon_1m2tz_50", Ne = "_navText_1m2tz_57", ke = "_navLabel_1m2tz_64", $e = "_navTitle_1m2tz_72", E = {
300
- articleNavigation: pe,
301
- navContainer: fe,
302
- navLink: ve,
303
- navLinkContent: be,
304
- navIcon: we,
305
- navText: Ne,
306
- navLabel: ke,
307
- navTitle: $e
299
+ const ve = "_articleNavigation_1m2tz_1", be = "_navContainer_1m2tz_7", we = "_navLink_1m2tz_18", Ne = "_navLinkContent_1m2tz_43", ke = "_navIcon_1m2tz_50", $e = "_navText_1m2tz_57", xe = "_navLabel_1m2tz_64", Ie = "_navTitle_1m2tz_72", E = {
300
+ articleNavigation: ve,
301
+ navContainer: be,
302
+ navLink: we,
303
+ navLinkContent: Ne,
304
+ navIcon: ke,
305
+ navText: $e,
306
+ navLabel: xe,
307
+ navTitle: Ie
308
308
  };
309
- function xe({
309
+ function Ce({
310
310
  prevSlug: e,
311
311
  prevTitle: n,
312
312
  nextSlug: o,
313
313
  nextTitle: a,
314
314
  language: c
315
315
  }) {
316
- const { t: s } = O(), { config: l } = j(), g = Q(), d = Gt(g.search).advanced, i = l.basePath || "", f = (_) => {
316
+ const { t: s } = A(), { config: l } = O(), g = Q(), u = Qt(g.search).advanced, i = l.basePath || "", f = (_) => {
317
317
  const v = `${i}/${c}/${_}`;
318
- return d ? `${v}?advanced=true` : v;
318
+ return u ? `${v}?advanced=true` : v;
319
319
  };
320
- return !e && !o ? null : /* @__PURE__ */ t("nav", { className: E.articleNavigation, "aria-label": "Article navigation", children: /* @__PURE__ */ u("div", { className: E.navContainer, children: [
321
- e ? /* @__PURE__ */ t(it, { to: f(e), className: E.navLink, children: /* @__PURE__ */ u("div", { className: E.navLinkContent, children: [
322
- /* @__PURE__ */ t("div", { className: E.navIcon, children: /* @__PURE__ */ t(Yt, { size: 20, weight: "bold" }) }),
323
- /* @__PURE__ */ u("div", { className: E.navText, children: [
320
+ return !e && !o ? null : /* @__PURE__ */ t("nav", { className: E.articleNavigation, "aria-label": "Article navigation", children: /* @__PURE__ */ d("div", { className: E.navContainer, children: [
321
+ e ? /* @__PURE__ */ t(dt, { to: f(e), className: E.navLink, children: /* @__PURE__ */ d("div", { className: E.navLinkContent, children: [
322
+ /* @__PURE__ */ t("div", { className: E.navIcon, children: /* @__PURE__ */ t(Vt, { size: 20, weight: "bold" }) }),
323
+ /* @__PURE__ */ d("div", { className: E.navText, children: [
324
324
  /* @__PURE__ */ t("span", { className: E.navLabel, children: s("nav.previous") }),
325
325
  /* @__PURE__ */ t("span", { className: E.navTitle, children: n || e })
326
326
  ] })
327
327
  ] }) }) : /* @__PURE__ */ t("div", {}),
328
- o ? /* @__PURE__ */ t(it, { to: f(o), className: E.navLink, children: /* @__PURE__ */ u("div", { className: E.navLinkContent, children: [
329
- /* @__PURE__ */ u("div", { className: E.navText, children: [
328
+ o ? /* @__PURE__ */ t(dt, { to: f(o), className: E.navLink, children: /* @__PURE__ */ d("div", { className: E.navLinkContent, children: [
329
+ /* @__PURE__ */ d("div", { className: E.navText, children: [
330
330
  /* @__PURE__ */ t("span", { className: E.navLabel, children: s("nav.next") }),
331
331
  /* @__PURE__ */ t("span", { className: E.navTitle, children: a || o })
332
332
  ] }),
333
- /* @__PURE__ */ t("div", { className: E.navIcon, children: /* @__PURE__ */ t(Wt, { size: 20, weight: "bold" }) })
333
+ /* @__PURE__ */ t("div", { className: E.navIcon, children: /* @__PURE__ */ t(Ht, { size: 20, weight: "bold" }) })
334
334
  ] }) }) : /* @__PURE__ */ t("div", {})
335
335
  ] }) });
336
336
  }
337
- const Ie = "_metadata_bsge0_1", Ce = "_author_bsge0_9", ye = "_date_bsge0_10", gt = {
338
- metadata: Ie,
339
- author: Ce,
340
- date: ye
337
+ const ye = "_blogSidebar_124vg_1", Le = "_section_124vg_21", Te = "_sectionTitle_124vg_28", Se = "_linksList_124vg_36", Pe = "_link_124vg_36", nt = {
338
+ blogSidebar: ye,
339
+ section: Le,
340
+ sectionTitle: Te,
341
+ linksList: Se,
342
+ link: Pe
341
343
  };
342
- function pt({ date: e, author: n }) {
343
- const { t: o } = O();
344
- return !e && !n ? null : /* @__PURE__ */ u("div", { className: gt.metadata, children: [
345
- n && /* @__PURE__ */ u("span", { className: gt.author, children: [
346
- /* @__PURE__ */ t(Vt, { size: 16, weight: "regular" }),
344
+ function De() {
345
+ const { t: e } = A(), { config: n } = O(), o = n.socialLinks || [];
346
+ return o.length === 0 ? null : /* @__PURE__ */ t("aside", { className: nt.blogSidebar, children: /* @__PURE__ */ d("div", { className: nt.section, children: [
347
+ /* @__PURE__ */ t("h3", { className: nt.sectionTitle, children: e("ui.connect") }),
348
+ /* @__PURE__ */ t("div", { className: nt.linksList, children: o.map((a, c) => {
349
+ const s = a.icon || Jt, l = a.target === "_blank";
350
+ return /* @__PURE__ */ d(
351
+ "a",
352
+ {
353
+ href: a.url,
354
+ className: nt.link,
355
+ target: a.target || "_blank",
356
+ rel: l ? "noopener noreferrer" : void 0,
357
+ children: [
358
+ /* @__PURE__ */ t(s, { size: 18, weight: "duotone" }),
359
+ /* @__PURE__ */ t("span", { children: a.label })
360
+ ]
361
+ },
362
+ c
363
+ );
364
+ }) })
365
+ ] }) });
366
+ }
367
+ const Me = "_metadata_bsge0_1", Be = "_author_bsge0_9", Ee = "_date_bsge0_10", _t = {
368
+ metadata: Me,
369
+ author: Be,
370
+ date: Ee
371
+ };
372
+ function ft({ date: e, author: n }) {
373
+ const { t: o } = A();
374
+ return !e && !n ? null : /* @__PURE__ */ d("div", { className: _t.metadata, children: [
375
+ n && /* @__PURE__ */ d("span", { className: _t.author, children: [
376
+ /* @__PURE__ */ t(Zt, { size: 16, weight: "regular" }),
347
377
  n
348
378
  ] }),
349
- e && /* @__PURE__ */ u("span", { className: gt.date, children: [
350
- /* @__PURE__ */ t(Jt, { size: 16, weight: "regular" }),
379
+ e && /* @__PURE__ */ d("span", { className: _t.date, children: [
380
+ /* @__PURE__ */ t(te, { size: 16, weight: "regular" }),
351
381
  o("ui.lastEdited"),
352
382
  ": ",
353
383
  e
354
384
  ] })
355
385
  ] });
356
386
  }
357
- const Le = "_tableOfContents_9ofak_1", Te = "_header_9ofak_21", Pe = "_title_9ofak_25", Se = "_nav_9ofak_34", De = "_list_9ofak_40", Me = "_link_9ofak_47", Be = "_active_9ofak_71", Ee = "_level1_9ofak_87", Re = "_level2_9ofak_93", Ae = "_level3_9ofak_98", Oe = "_level4_9ofak_104", je = "_level5_9ofak_110", We = "_level6_9ofak_116", z = {
358
- tableOfContents: Le,
359
- header: Te,
360
- title: Pe,
361
- nav: Se,
362
- list: De,
363
- link: Me,
364
- active: Be,
365
- level1: Ee,
366
- level2: Re,
367
- level3: Ae,
368
- level4: Oe,
369
- level5: je,
370
- level6: We
387
+ const Re = "_tableOfContents_9ofak_1", Ae = "_header_9ofak_21", Oe = "_title_9ofak_25", je = "_nav_9ofak_34", We = "_list_9ofak_40", He = "_link_9ofak_47", ze = "_active_9ofak_71", Fe = "_level1_9ofak_87", Ue = "_level2_9ofak_93", Ke = "_level3_9ofak_98", qe = "_level4_9ofak_104", Ge = "_level5_9ofak_110", Qe = "_level6_9ofak_116", z = {
388
+ tableOfContents: Re,
389
+ header: Ae,
390
+ title: Oe,
391
+ nav: je,
392
+ list: We,
393
+ link: He,
394
+ active: ze,
395
+ level1: Fe,
396
+ level2: Ue,
397
+ level3: Ke,
398
+ level4: qe,
399
+ level5: Ge,
400
+ level6: Qe
371
401
  };
372
- function He({
402
+ function Xe({
373
403
  content: e,
374
404
  englishContent: n
375
405
  }) {
376
- const { t: o } = O(), a = Q(), c = X(), [s, l] = y([]), [g, h] = y(""), d = q(null);
377
- P(() => {
406
+ const { t: o } = A(), a = Q(), c = X(), [s, l] = y([]), [g, h] = y(""), u = G(null);
407
+ S(() => {
378
408
  h(""), (() => {
379
409
  const _ = /^(#{1,6})\s+(.+)$/gm, v = [];
380
410
  let w = _.exec(e);
@@ -396,7 +426,7 @@ function He({
396
426
  }
397
427
  l(v);
398
428
  })();
399
- }, [e, n]), P(() => {
429
+ }, [e, n]), S(() => {
400
430
  if (s.length === 0) return;
401
431
  const f = setTimeout(() => {
402
432
  const _ = s.filter(
@@ -405,12 +435,12 @@ function He({
405
435
  _.length > 0 && console.warn("Some heading elements not found:", _);
406
436
  }, 100);
407
437
  return () => clearTimeout(f);
408
- }, [s]), P(() => {
438
+ }, [s]), S(() => {
409
439
  if (s.length === 0) return;
410
- d.current && d.current.disconnect();
440
+ u.current && u.current.disconnect();
411
441
  const f = setTimeout(() => {
412
442
  const _ = s.map((v) => document.getElementById(v.id)).filter(Boolean);
413
- _.length !== 0 && (d.current = new IntersectionObserver(
443
+ _.length !== 0 && (u.current = new IntersectionObserver(
414
444
  (v) => {
415
445
  const w = v.filter((r) => r.isIntersecting);
416
446
  if (w.length > 0) {
@@ -423,14 +453,14 @@ function He({
423
453
  threshold: 0
424
454
  }
425
455
  ), _.forEach((v) => {
426
- d.current && d.current.observe(v);
456
+ u.current && u.current.observe(v);
427
457
  }));
428
458
  }, 150);
429
459
  return () => {
430
- clearTimeout(f), d.current && d.current.disconnect();
460
+ clearTimeout(f), u.current && u.current.disconnect();
431
461
  };
432
- }, [s]), P(() => () => {
433
- d.current && d.current.disconnect();
462
+ }, [s]), S(() => () => {
463
+ u.current && u.current.disconnect();
434
464
  }, []);
435
465
  const i = (f) => {
436
466
  const _ = document.getElementById(f);
@@ -449,7 +479,7 @@ function He({
449
479
  });
450
480
  }
451
481
  };
452
- return s.length === 0 ? null : /* @__PURE__ */ u("aside", { className: z.tableOfContents, children: [
482
+ return s.length === 0 ? null : /* @__PURE__ */ d("aside", { className: z.tableOfContents, children: [
453
483
  /* @__PURE__ */ t("div", { className: z.header, children: /* @__PURE__ */ t("span", { className: z.title, children: o("ui.onThisPage", "On this page") }) }),
454
484
  /* @__PURE__ */ t("nav", { className: z.nav, children: /* @__PURE__ */ t("ul", { className: z.list, children: s.map((f) => /* @__PURE__ */ t("li", { className: z.item, children: /* @__PURE__ */ t(
455
485
  "button",
@@ -462,33 +492,33 @@ function He({
462
492
  ) }, f.id)) }) })
463
493
  ] });
464
494
  }
465
- const ze = "_overlay_1e1d4_1", Fe = "_modal_1e1d4_26", Ue = "_header_1e1d4_50", Ke = "_title_1e1d4_58", qe = "_closeButton_1e1d4_65", Ge = "_results_1e1d4_86", Qe = "_resultsList_1e1d4_94", Xe = "_resultItem_1e1d4_100", Ye = "_resultTitle_1e1d4_119", Ve = "_resultSlug_1e1d4_124", Je = "_noResults_1e1d4_130", W = {
466
- overlay: ze,
467
- modal: Fe,
468
- header: Ue,
469
- title: Ke,
470
- closeButton: qe,
471
- results: Ge,
472
- resultsList: Qe,
473
- resultItem: Xe,
474
- resultTitle: Ye,
475
- resultSlug: Ve,
476
- noResults: Je
495
+ const Ye = "_overlay_1e1d4_1", Ve = "_modal_1e1d4_26", Je = "_header_1e1d4_50", Ze = "_title_1e1d4_58", tn = "_closeButton_1e1d4_65", en = "_results_1e1d4_86", nn = "_resultsList_1e1d4_94", an = "_resultItem_1e1d4_100", on = "_resultTitle_1e1d4_119", sn = "_resultSlug_1e1d4_124", cn = "_noResults_1e1d4_130", W = {
496
+ overlay: Ye,
497
+ modal: Ve,
498
+ header: Je,
499
+ title: Ze,
500
+ closeButton: tn,
501
+ results: en,
502
+ resultsList: nn,
503
+ resultItem: an,
504
+ resultTitle: on,
505
+ resultSlug: sn,
506
+ noResults: cn
477
507
  };
478
- function Ze({
508
+ function rn({
479
509
  tag: e,
480
510
  results: n,
481
511
  language: o,
482
512
  onClose: a
483
513
  }) {
484
- const { t: c } = O(), { config: s } = j(), l = X(), g = (h) => {
485
- const d = s.basePath || "";
486
- l(`${d}/${o}/${h}`), a();
514
+ const { t: c } = A(), { config: s } = O(), l = X(), g = (h) => {
515
+ const u = s.basePath || "";
516
+ l(`${u}/${o}/${h}`), a();
487
517
  };
488
- return Ht(
489
- /* @__PURE__ */ t("div", { className: W.overlay, onClick: a, children: /* @__PURE__ */ u("div", { className: W.modal, onClick: (h) => h.stopPropagation(), children: [
490
- /* @__PURE__ */ u("div", { className: W.header, children: [
491
- /* @__PURE__ */ u("h2", { className: W.title, children: [
518
+ return zt(
519
+ /* @__PURE__ */ t("div", { className: W.overlay, onClick: a, children: /* @__PURE__ */ d("div", { className: W.modal, onClick: (h) => h.stopPropagation(), children: [
520
+ /* @__PURE__ */ d("div", { className: W.header, children: [
521
+ /* @__PURE__ */ d("h2", { className: W.title, children: [
492
522
  c("ui.tagResults"),
493
523
  ": ",
494
524
  e
@@ -500,11 +530,11 @@ function Ze({
500
530
  className: W.closeButton,
501
531
  onClick: a,
502
532
  "aria-label": "Close",
503
- children: /* @__PURE__ */ t(vt, {})
533
+ children: /* @__PURE__ */ t(bt, {})
504
534
  }
505
535
  )
506
536
  ] }),
507
- /* @__PURE__ */ t("div", { className: W.results, children: n.length === 0 ? /* @__PURE__ */ t("div", { className: W.noResults, children: c("ui.noTagResults") }) : /* @__PURE__ */ t("ul", { className: W.resultsList, children: n.map((h) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ u(
537
+ /* @__PURE__ */ t("div", { className: W.results, children: n.length === 0 ? /* @__PURE__ */ t("div", { className: W.noResults, children: c("ui.noTagResults") }) : /* @__PURE__ */ t("ul", { className: W.resultsList, children: n.map((h) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ d(
508
538
  "button",
509
539
  {
510
540
  type: "button",
@@ -512,7 +542,7 @@ function Ze({
512
542
  onClick: () => g(h.slug),
513
543
  children: [
514
544
  /* @__PURE__ */ t("div", { className: W.resultTitle, children: h.title }),
515
- /* @__PURE__ */ u("div", { className: W.resultSlug, children: [
545
+ /* @__PURE__ */ d("div", { className: W.resultSlug, children: [
516
546
  "/",
517
547
  h.slug
518
548
  ] })
@@ -523,28 +553,28 @@ function Ze({
523
553
  document.body
524
554
  );
525
555
  }
526
- const tn = "_tags_11t8a_1", en = "_compact_11t8a_9", nn = "_tagLabel_11t8a_15", an = "_tagIcon_11t8a_25", on = "_tagList_11t8a_30", sn = "_tag_11t8a_1", J = {
527
- tags: tn,
528
- compact: en,
529
- tagLabel: nn,
530
- tagIcon: an,
531
- tagList: on,
532
- tag: sn
556
+ const ln = "_tags_11t8a_1", dn = "_compact_11t8a_9", un = "_tagLabel_11t8a_15", hn = "_tagIcon_11t8a_25", mn = "_tagList_11t8a_30", gn = "_tag_11t8a_1", J = {
557
+ tags: ln,
558
+ compact: dn,
559
+ tagLabel: un,
560
+ tagIcon: hn,
561
+ tagList: mn,
562
+ tag: gn
533
563
  };
534
- function cn({ tags: e, variant: n = "default", onTagClick: o }) {
535
- const { t: a } = O();
564
+ function _n({ tags: e, variant: n = "default", onTagClick: o }) {
565
+ const { t: a } = A();
536
566
  if (!e || e.length === 0) return null;
537
567
  const c = (s) => {
538
568
  o && o(s);
539
569
  };
540
- return /* @__PURE__ */ u(
570
+ return /* @__PURE__ */ d(
541
571
  "div",
542
572
  {
543
573
  className: `${J.tags} ${n === "compact" ? J.compact : ""}`,
544
574
  children: [
545
- n === "default" && /* @__PURE__ */ u("div", { className: J.tagLabel, children: [
546
- /* @__PURE__ */ t(Zt, { className: J.tagIcon, weight: "duotone" }),
547
- /* @__PURE__ */ u("span", { children: [
575
+ n === "default" && /* @__PURE__ */ d("div", { className: J.tagLabel, children: [
576
+ /* @__PURE__ */ t(ee, { className: J.tagIcon, weight: "duotone" }),
577
+ /* @__PURE__ */ d("span", { children: [
548
578
  a("ui.tags"),
549
579
  ":"
550
580
  ] })
@@ -564,46 +594,46 @@ function cn({ tags: e, variant: n = "default", onTagClick: o }) {
564
594
  }
565
595
  );
566
596
  }
567
- const rn = "_contentPage_1nxj5_1", ln = "_loadingContainer_1nxj5_48", dn = "_errorContainer_1nxj5_49", un = "_skeletonTitle_1nxj5_71", hn = "_skeletonParagraph_1nxj5_80", mn = "_skeletonParagraphShort_1nxj5_93", gn = "_errorText_1nxj5_107", _n = "_mdxContent_1nxj5_112", pn = "_withMetadata_1nxj5_125", fn = "_codeBlock_1nxj5_300", vn = "_codeLanguage_1nxj5_304", M = {
568
- contentPage: rn,
569
- loadingContainer: ln,
570
- errorContainer: dn,
571
- skeletonTitle: un,
572
- skeletonParagraph: hn,
573
- skeletonParagraphShort: mn,
574
- errorText: gn,
575
- mdxContent: _n,
576
- withMetadata: pn,
577
- codeBlock: fn,
578
- codeLanguage: vn
579
- }, Ot = (e) => {
597
+ const pn = "_contentPage_1nxj5_1", fn = "_loadingContainer_1nxj5_48", vn = "_errorContainer_1nxj5_49", bn = "_skeletonTitle_1nxj5_71", wn = "_skeletonParagraph_1nxj5_80", Nn = "_skeletonParagraphShort_1nxj5_93", kn = "_errorText_1nxj5_107", $n = "_mdxContent_1nxj5_112", xn = "_withMetadata_1nxj5_125", In = "_codeBlock_1nxj5_300", Cn = "_codeLanguage_1nxj5_304", M = {
598
+ contentPage: pn,
599
+ loadingContainer: fn,
600
+ errorContainer: vn,
601
+ skeletonTitle: bn,
602
+ skeletonParagraph: wn,
603
+ skeletonParagraphShort: Nn,
604
+ errorText: kn,
605
+ mdxContent: $n,
606
+ withMetadata: xn,
607
+ codeBlock: In,
608
+ codeLanguage: Cn
609
+ }, jt = (e) => {
580
610
  const n = e.match(/^\s*#\s+(.+)\s*(?:\n+|$)/);
581
611
  return n ? {
582
612
  title: n[1].trim(),
583
613
  content: e.replace(/^\s*#\s+.+\s*(?:\n+|$)/, "")
584
614
  } : { title: void 0, content: e };
585
615
  };
586
- function bn({ language: e }) {
587
- var $t, xt, It, Ct, yt;
588
- const { slug: n } = ft(), o = Q(), { config: a, loadContent: c, loadEnglishContent: s } = j(), [l, g] = y(""), [h, d] = y(""), [i, f] = y({}), [_, v] = y(!0), [w, r] = y(null), [m, N] = y(!0), [I, D] = y(null), [H, b] = y(""), [$, B] = y({}), A = q(0), U = q([]), ot = Gt(o.search), Y = ot.advanced;
589
- if (P(() => {
616
+ function yn({ language: e }) {
617
+ var xt, It, Ct, yt, Lt;
618
+ const { slug: n } = vt(), o = Q(), { config: a, loadContent: c, loadEnglishContent: s } = O(), [l, g] = y(""), [h, u] = y(""), [i, f] = y({}), [_, v] = y(!0), [w, r] = y(null), [m, N] = y(!0), [I, D] = y(null), [H, b] = y(""), [$, B] = y({}), j = G(0), U = G([]), st = Qt(o.search), Y = st.advanced;
619
+ if (S(() => {
590
620
  (async () => {
591
621
  if (!n) return;
592
- v(!0), r(null), A.current = 0;
622
+ v(!0), r(null), j.current = 0;
593
623
  const C = (a == null ? void 0 : a.navigationData) || [];
594
- let S = !0;
624
+ let P = !0;
595
625
  for (const k of C)
596
626
  if ("items" in k) {
597
627
  const L = k.items.find((V) => V.slug === n);
598
628
  if (L) {
599
- S = L.showTableOfContents !== !1;
629
+ P = L.showTableOfContents !== !1;
600
630
  break;
601
631
  }
602
632
  } else if (k.slug === n) {
603
- S = k.showTableOfContents !== !1;
633
+ P = k.showTableOfContents !== !1;
604
634
  break;
605
635
  }
606
- N(S);
636
+ N(P);
607
637
  try {
608
638
  let k;
609
639
  try {
@@ -621,21 +651,21 @@ function bn({ language: e }) {
621
651
  Y && (L = await s(n, !1));
622
652
  }
623
653
  const V = typeof k.frontmatter.title == "string" ? k.frontmatter.title : void 0;
624
- let ct = k.content, rt = L, ht = "";
654
+ let rt = k.content, lt = L, mt = "";
625
655
  if (V) {
626
- const lt = Ot(L), Qt = Ot(k.content);
627
- ht = lt.title || "", rt = lt.content, ct = Qt.content;
656
+ const it = jt(L), Xt = jt(k.content);
657
+ mt = it.title || "", lt = it.content, rt = Xt.content;
628
658
  } else
629
- ht = "";
630
- const Lt = /^(#{1,6})\s+(.+)$/gm, Tt = [];
631
- let mt = Lt.exec(
632
- rt
659
+ mt = "";
660
+ const Tt = /^(#{1,6})\s+(.+)$/gm, St = [];
661
+ let gt = Tt.exec(
662
+ lt
633
663
  );
634
- for (; mt !== null; ) {
635
- const lt = mt[2].trim();
636
- Tt.push(lt), mt = Lt.exec(rt);
664
+ for (; gt !== null; ) {
665
+ const it = gt[2].trim();
666
+ St.push(it), gt = Tt.exec(lt);
637
667
  }
638
- U.current = Tt, b(ht), d(rt), g(ct), f(k.frontmatter);
668
+ U.current = St, b(mt), u(lt), g(rt), f(k.frontmatter);
639
669
  } catch (k) {
640
670
  r(k instanceof Error ? k.message : "Failed to load content");
641
671
  } finally {
@@ -649,26 +679,26 @@ function bn({ language: e }) {
649
679
  a.navigationData,
650
680
  c,
651
681
  s
652
- ]), P(() => {
653
- if (!_ && ot.anchor) {
682
+ ]), S(() => {
683
+ if (!_ && st.anchor) {
654
684
  const p = setTimeout(() => {
655
- At(ot.anchor);
685
+ Ot(st.anchor);
656
686
  }, 150);
657
687
  return () => clearTimeout(p);
658
688
  }
659
- }, [_, ot.anchor]), P(() => {
689
+ }, [_, st.anchor]), S(() => {
660
690
  (async () => {
661
691
  if (!n || !a.showArticleNavigation || !a.navigationData) {
662
692
  B({});
663
693
  return;
664
694
  }
665
695
  try {
666
- const C = await dt(
696
+ const C = await ut(
667
697
  a.navigationData,
668
698
  e,
669
699
  c
670
- ), S = me(n, C);
671
- B(S);
700
+ ), P = _e(n, C);
701
+ B(P);
672
702
  } catch (C) {
673
703
  console.error("Failed to calculate adjacent articles:", C), B({});
674
704
  }
@@ -680,73 +710,73 @@ function bn({ language: e }) {
680
710
  a.navigationData,
681
711
  c
682
712
  ]), _)
683
- return /* @__PURE__ */ t("div", { className: M.contentPage, children: /* @__PURE__ */ u("div", { className: M.loadingContainer, children: [
713
+ return /* @__PURE__ */ t("div", { className: M.contentPage, children: /* @__PURE__ */ d("div", { className: M.loadingContainer, children: [
684
714
  /* @__PURE__ */ t("div", { className: M.skeletonTitle }),
685
715
  /* @__PURE__ */ t("div", { className: M.skeletonParagraph }),
686
716
  /* @__PURE__ */ t("div", { className: M.skeletonParagraph }),
687
717
  /* @__PURE__ */ t("div", { className: M.skeletonParagraphShort })
688
718
  ] }) });
689
719
  if (w)
690
- return /* @__PURE__ */ t("div", { className: M.contentPage, children: /* @__PURE__ */ t("div", { className: M.errorContainer, children: /* @__PURE__ */ u("div", { className: M.errorText, children: [
720
+ return /* @__PURE__ */ t("div", { className: M.contentPage, children: /* @__PURE__ */ t("div", { className: M.errorContainer, children: /* @__PURE__ */ d("div", { className: M.errorText, children: [
691
721
  "Error: ",
692
722
  w
693
723
  ] }) }) });
694
- const st = typeof i.title == "string" && i.title.trim().length > 0, ut = st ? Z(H || i.title) : "", Nt = !!(i.date || i.author);
695
- A.current = 0;
696
- let kt = !1;
724
+ const ct = typeof i.title == "string" && i.title.trim().length > 0, ht = ct ? Z(H || i.title) : "", kt = !!(i.date || i.author);
725
+ j.current = 0;
726
+ let $t = !1;
697
727
  const tt = (p, C) => {
698
- p.preventDefault(), At(C), _e(C, Y);
728
+ p.preventDefault(), Ot(C), fe(C, Y);
699
729
  };
700
- return /* @__PURE__ */ u(G, { children: [
701
- /* @__PURE__ */ u("div", { className: M.contentPage, children: [
702
- /* @__PURE__ */ t(de, { hasAdvanced: i.hasAdvanced || !1 }),
703
- st && /* @__PURE__ */ u(G, { children: [
730
+ return /* @__PURE__ */ d(q, { children: [
731
+ /* @__PURE__ */ d("div", { className: M.contentPage, children: [
732
+ /* @__PURE__ */ t(he, { hasAdvanced: i.hasAdvanced || !1 }),
733
+ ct && /* @__PURE__ */ d(q, { children: [
704
734
  /* @__PURE__ */ t(
705
735
  "h1",
706
736
  {
707
- id: ut,
708
- className: Nt ? M.withMetadata : void 0,
737
+ id: ht,
738
+ className: kt ? M.withMetadata : void 0,
709
739
  children: /* @__PURE__ */ t(
710
740
  "a",
711
741
  {
712
- href: `#${ut}`,
713
- onClick: (p) => tt(p, ut),
742
+ href: `#${ht}`,
743
+ onClick: (p) => tt(p, ht),
714
744
  style: { color: "inherit", textDecoration: "none" },
715
745
  children: i.title
716
746
  }
717
747
  )
718
748
  }
719
749
  ),
720
- Nt && /* @__PURE__ */ t(pt, { date: i.date, author: i.author })
750
+ kt && /* @__PURE__ */ t(ft, { date: i.date, author: i.author })
721
751
  ] }),
722
752
  /* @__PURE__ */ t("div", { className: M.mdxContent, children: /* @__PURE__ */ t(
723
- se,
753
+ re,
724
754
  {
725
- remarkPlugins: [ce],
755
+ remarkPlugins: [le],
726
756
  components: {
727
757
  h1: ({ children: p }) => {
728
- const C = A.current++, S = U.current[C] || "", k = Z(S), L = !kt;
729
- kt = !0;
758
+ const C = j.current++, P = U.current[C] || "", k = Z(P), L = !$t;
759
+ $t = !0;
730
760
  const V = i.date || i.author;
731
- return /* @__PURE__ */ u(G, { children: [
761
+ return /* @__PURE__ */ d(q, { children: [
732
762
  /* @__PURE__ */ t(
733
763
  "h1",
734
764
  {
735
765
  id: k,
736
- className: L && V && !st ? M.withMetadata : void 0,
766
+ className: L && V && !ct ? M.withMetadata : void 0,
737
767
  children: /* @__PURE__ */ t(
738
768
  "a",
739
769
  {
740
770
  href: `#${k}`,
741
- onClick: (ct) => tt(ct, k),
771
+ onClick: (rt) => tt(rt, k),
742
772
  style: { color: "inherit", textDecoration: "none" },
743
773
  children: p
744
774
  }
745
775
  )
746
776
  }
747
777
  ),
748
- L && V && !st && /* @__PURE__ */ t(
749
- pt,
778
+ L && V && !ct && /* @__PURE__ */ t(
779
+ ft,
750
780
  {
751
781
  date: i.date,
752
782
  author: i.author
@@ -755,7 +785,7 @@ function bn({ language: e }) {
755
785
  ] });
756
786
  },
757
787
  h2: ({ children: p }) => {
758
- const C = A.current++, S = U.current[C] || "", k = Z(S);
788
+ const C = j.current++, P = U.current[C] || "", k = Z(P);
759
789
  return /* @__PURE__ */ t("h2", { id: k, children: /* @__PURE__ */ t(
760
790
  "a",
761
791
  {
@@ -767,7 +797,7 @@ function bn({ language: e }) {
767
797
  ) });
768
798
  },
769
799
  h3: ({ children: p }) => {
770
- const C = A.current++, S = U.current[C] || "", k = Z(S);
800
+ const C = j.current++, P = U.current[C] || "", k = Z(P);
771
801
  return /* @__PURE__ */ t("h3", { id: k, children: /* @__PURE__ */ t(
772
802
  "a",
773
803
  {
@@ -779,7 +809,7 @@ function bn({ language: e }) {
779
809
  ) });
780
810
  },
781
811
  h4: ({ children: p }) => {
782
- const C = A.current++, S = U.current[C] || "", k = Z(S);
812
+ const C = j.current++, P = U.current[C] || "", k = Z(P);
783
813
  return /* @__PURE__ */ t("h4", { id: k, children: /* @__PURE__ */ t(
784
814
  "a",
785
815
  {
@@ -791,37 +821,37 @@ function bn({ language: e }) {
791
821
  ) });
792
822
  },
793
823
  h5: ({ children: p }) => {
794
- const C = `h5-${A.current++}`;
824
+ const C = `h5-${j.current++}`;
795
825
  return /* @__PURE__ */ t("h5", { id: C, children: p });
796
826
  },
797
827
  h6: ({ children: p }) => {
798
- const C = `h6-${A.current++}`;
828
+ const C = `h6-${j.current++}`;
799
829
  return /* @__PURE__ */ t("h6", { id: C, children: p });
800
830
  },
801
831
  p: ({ children: p }) => /* @__PURE__ */ t("p", { children: p }),
802
832
  ul: ({ children: p }) => /* @__PURE__ */ t("ul", { children: p }),
803
833
  ol: ({ children: p }) => /* @__PURE__ */ t("ol", { children: p }),
804
834
  li: ({ children: p }) => /* @__PURE__ */ t("li", { children: p }),
805
- code: ({ className: p, children: C, ...S }) => {
835
+ code: ({ className: p, children: C, ...P }) => {
806
836
  if (!p)
807
- return /* @__PURE__ */ t("code", { ...S, children: C });
837
+ return /* @__PURE__ */ t("code", { ...P, children: C });
808
838
  const L = (p == null ? void 0 : p.replace("language-", "")) || "";
809
- return /* @__PURE__ */ u("div", { className: M.codeBlock, children: [
839
+ return /* @__PURE__ */ d("div", { className: M.codeBlock, children: [
810
840
  L && /* @__PURE__ */ t("div", { className: M.codeLanguage, children: L }),
811
- /* @__PURE__ */ t("pre", { children: /* @__PURE__ */ t("code", { className: p, ...S, children: C }) })
841
+ /* @__PURE__ */ t("pre", { children: /* @__PURE__ */ t("code", { className: p, ...P, children: C }) })
812
842
  ] });
813
843
  },
814
- pre: ({ children: p }) => /* @__PURE__ */ t(G, { children: p }),
844
+ pre: ({ children: p }) => /* @__PURE__ */ t(q, { children: p }),
815
845
  // Let code component handle pre styling
816
846
  blockquote: ({ children: p }) => /* @__PURE__ */ t("blockquote", { children: p }),
817
- a: ({ href: p, children: C, ...S }) => {
847
+ a: ({ href: p, children: C, ...P }) => {
818
848
  if (p != null && p.startsWith("./")) {
819
- const k = p.slice(2), L = ge(
849
+ const k = p.slice(2), L = pe(
820
850
  k,
821
851
  e,
822
852
  a.basePath
823
853
  );
824
- return /* @__PURE__ */ t("a", { href: L, ...S, children: C });
854
+ return /* @__PURE__ */ t("a", { href: L, ...P, children: C });
825
855
  }
826
856
  return p != null && p.startsWith("http://") || p != null && p.startsWith("https://") ? /* @__PURE__ */ t(
827
857
  "a",
@@ -829,10 +859,10 @@ function bn({ language: e }) {
829
859
  href: p,
830
860
  target: "_blank",
831
861
  rel: "noopener noreferrer",
832
- ...S,
862
+ ...P,
833
863
  children: C
834
864
  }
835
- ) : /* @__PURE__ */ t("a", { href: p, ...S, children: C });
865
+ ) : /* @__PURE__ */ t("a", { href: p, ...P, children: C });
836
866
  },
837
867
  strong: ({ children: p }) => /* @__PURE__ */ t("strong", { children: p }),
838
868
  em: ({ children: p }) => /* @__PURE__ */ t("em", { children: p })
@@ -840,8 +870,9 @@ function bn({ language: e }) {
840
870
  children: l
841
871
  }
842
872
  ) }),
873
+ a.articleCTA && /* @__PURE__ */ t("div", { children: a.articleCTA }),
843
874
  i.tags && i.tags.length > 0 && /* @__PURE__ */ t(
844
- cn,
875
+ _n,
845
876
  {
846
877
  tags: i.tags,
847
878
  variant: "compact",
@@ -849,19 +880,19 @@ function bn({ language: e }) {
849
880
  }
850
881
  ),
851
882
  a.showArticleNavigation && /* @__PURE__ */ t(
852
- xe,
883
+ Ce,
853
884
  {
854
- prevSlug: ($t = $.prev) == null ? void 0 : $t.slug,
855
- prevTitle: (xt = $.prev) == null ? void 0 : xt.title,
856
- nextSlug: (It = $.next) == null ? void 0 : It.slug,
857
- nextTitle: (Ct = $.next) == null ? void 0 : Ct.title,
885
+ prevSlug: (xt = $.prev) == null ? void 0 : xt.slug,
886
+ prevTitle: (It = $.prev) == null ? void 0 : It.title,
887
+ nextSlug: (Ct = $.next) == null ? void 0 : Ct.slug,
888
+ nextTitle: (yt = $.next) == null ? void 0 : yt.title,
858
889
  language: e
859
890
  }
860
891
  )
861
892
  ] }),
862
- m && /* @__PURE__ */ t(He, { content: l, englishContent: h }),
863
- I && ((yt = a.tagIndex) == null ? void 0 : yt[e]) && /* @__PURE__ */ t(
864
- Ze,
893
+ m && /* @__PURE__ */ t(Xe, { content: l, englishContent: h }),
894
+ I && ((Lt = a.tagIndex) == null ? void 0 : Lt[e]) && /* @__PURE__ */ t(
895
+ rn,
865
896
  {
866
897
  tag: I,
867
898
  results: a.tagIndex[e][I] || [],
@@ -871,46 +902,46 @@ function bn({ language: e }) {
871
902
  )
872
903
  ] });
873
904
  }
874
- const wn = "_searchButton_1k9sl_1", Nn = "_searchIcon_1k9sl_17", kn = "_searchHint_1k9sl_23", $n = "_kbd_1k9sl_27", xn = "_searchOverlay_1k9sl_42", In = "_searchModal_1k9sl_67", Cn = "_searchHeader_1k9sl_91", yn = "_searchInput_1k9sl_105", Ln = "_closeButton_1k9sl_123", Tn = "_searchResults_1k9sl_144", Pn = "_resultsList_1k9sl_152", Sn = "_resultItem_1k9sl_158", Dn = "_selected_1k9sl_173", Mn = "_resultTitle_1k9sl_176", Bn = "_resultSlug_1k9sl_180", En = "_noResults_1k9sl_186", Rn = "_searchHints_1k9sl_193", An = "_hint_1k9sl_210", T = {
875
- searchButton: wn,
876
- searchIcon: Nn,
877
- searchHint: kn,
878
- kbd: $n,
879
- searchOverlay: xn,
880
- searchModal: In,
881
- searchHeader: Cn,
882
- searchInput: yn,
883
- closeButton: Ln,
884
- searchResults: Tn,
885
- resultsList: Pn,
886
- resultItem: Sn,
887
- selected: Dn,
888
- resultTitle: Mn,
889
- resultSlug: Bn,
890
- noResults: En,
891
- searchHints: Rn,
892
- hint: An
905
+ const Ln = "_searchButton_1k9sl_1", Tn = "_searchIcon_1k9sl_17", Sn = "_searchHint_1k9sl_23", Pn = "_kbd_1k9sl_27", Dn = "_searchOverlay_1k9sl_42", Mn = "_searchModal_1k9sl_67", Bn = "_searchHeader_1k9sl_91", En = "_searchInput_1k9sl_105", Rn = "_closeButton_1k9sl_123", An = "_searchResults_1k9sl_144", On = "_resultsList_1k9sl_152", jn = "_resultItem_1k9sl_158", Wn = "_selected_1k9sl_173", Hn = "_resultTitle_1k9sl_176", zn = "_resultSlug_1k9sl_180", Fn = "_noResults_1k9sl_186", Un = "_searchHints_1k9sl_193", Kn = "_hint_1k9sl_210", T = {
906
+ searchButton: Ln,
907
+ searchIcon: Tn,
908
+ searchHint: Sn,
909
+ kbd: Pn,
910
+ searchOverlay: Dn,
911
+ searchModal: Mn,
912
+ searchHeader: Bn,
913
+ searchInput: En,
914
+ closeButton: Rn,
915
+ searchResults: An,
916
+ resultsList: On,
917
+ resultItem: jn,
918
+ selected: Wn,
919
+ resultTitle: Hn,
920
+ resultSlug: zn,
921
+ noResults: Fn,
922
+ searchHints: Un,
923
+ hint: Kn
893
924
  };
894
- function On({ language: e }) {
895
- const { t: n } = O(), o = X(), { config: a, loadContent: c } = j(), [s, l] = y(!1), [g, h] = y(""), [d, i] = y([]), [f, _] = y(0), [v, w] = y([]), r = q(null), m = q(null), I = typeof navigator < "u" && /(Mac|iPhone|iPod|iPad)/i.test(navigator.platform) ? "⌘K" : "Ctrl+K";
896
- P(() => {
925
+ function qn({ language: e }) {
926
+ const { t: n } = A(), o = X(), { config: a, loadContent: c } = O(), [s, l] = y(!1), [g, h] = y(""), [u, i] = y([]), [f, _] = y(0), [v, w] = y([]), r = G(null), m = G(null), I = typeof navigator < "u" && /(Mac|iPhone|iPod|iPad)/i.test(navigator.platform) ? "⌘K" : "Ctrl+K";
927
+ S(() => {
897
928
  (async () => {
898
929
  if (a.navigationData)
899
930
  try {
900
- const B = (await dt(
931
+ const B = (await ut(
901
932
  a.navigationData,
902
933
  e,
903
934
  c
904
- )).flatMap((A) => at(A) ? A.items.map((U) => ({
935
+ )).flatMap((j) => ot(j) ? j.items.map((U) => ({
905
936
  title: U.title,
906
937
  slug: U.slug
907
- })) : [{ title: A.title, slug: A.slug }]);
938
+ })) : [{ title: j.title, slug: j.slug }]);
908
939
  w(B);
909
940
  } catch ($) {
910
941
  console.error("Failed to build search index:", $);
911
942
  }
912
943
  })();
913
- }, [a.navigationData, e, c]), P(() => {
944
+ }, [a.navigationData, e, c]), S(() => {
914
945
  if (!g.trim()) {
915
946
  i([]), _(0);
916
947
  return;
@@ -919,7 +950,7 @@ function On({ language: e }) {
919
950
  (B) => B.title.toLowerCase().includes(b) || B.slug.toLowerCase().includes(b)
920
951
  );
921
952
  i($), _(0);
922
- }, [g]), P(() => {
953
+ }, [g]), S(() => {
923
954
  const b = ($) => {
924
955
  ($.metaKey || $.ctrlKey) && $.key === "k" && ($.preventDefault(), l(!0), setTimeout(() => {
925
956
  var B;
@@ -927,7 +958,7 @@ function On({ language: e }) {
927
958
  }, 100)), $.key === "Escape" && s && (l(!1), h(""));
928
959
  };
929
960
  return document.addEventListener("keydown", b), () => document.removeEventListener("keydown", b);
930
- }, [s]), P(() => {
961
+ }, [s]), S(() => {
931
962
  const b = () => {
932
963
  l(!0), setTimeout(() => {
933
964
  var B;
@@ -941,9 +972,9 @@ function On({ language: e }) {
941
972
  };
942
973
  }, []);
943
974
  const D = (b) => {
944
- b.key === "ArrowDown" ? (b.preventDefault(), _(($) => Math.min($ + 1, d.length - 1))) : b.key === "ArrowUp" ? (b.preventDefault(), _(($) => Math.max($ - 1, 0))) : b.key === "Enter" && d[f] && (b.preventDefault(), H(d[f].slug));
975
+ b.key === "ArrowDown" ? (b.preventDefault(), _(($) => Math.min($ + 1, u.length - 1))) : b.key === "ArrowUp" ? (b.preventDefault(), _(($) => Math.max($ - 1, 0))) : b.key === "Enter" && u[f] && (b.preventDefault(), H(u[f].slug));
945
976
  };
946
- P(() => {
977
+ S(() => {
947
978
  const b = ($) => {
948
979
  m.current && !m.current.contains($.target) && (l(!1), h(""));
949
980
  };
@@ -953,8 +984,8 @@ function On({ language: e }) {
953
984
  const $ = a.basePath || "";
954
985
  o(`${$}/${e}/${b}`), l(!1), h("");
955
986
  };
956
- return /* @__PURE__ */ u(G, { children: [
957
- /* @__PURE__ */ u(
987
+ return /* @__PURE__ */ d(q, { children: [
988
+ /* @__PURE__ */ d(
958
989
  "button",
959
990
  {
960
991
  type: "button",
@@ -967,13 +998,13 @@ function On({ language: e }) {
967
998
  },
968
999
  "aria-label": n("ui.search"),
969
1000
  children: [
970
- /* @__PURE__ */ t(St, { className: T.searchIcon }),
1001
+ /* @__PURE__ */ t(Dt, { className: T.searchIcon }),
971
1002
  /* @__PURE__ */ t("span", { className: T.searchHint, children: n("ui.search") }),
972
1003
  /* @__PURE__ */ t("kbd", { className: T.kbd, children: I })
973
1004
  ]
974
1005
  }
975
1006
  ),
976
- s && Ht(
1007
+ s && zt(
977
1008
  /* @__PURE__ */ t(
978
1009
  "div",
979
1010
  {
@@ -981,15 +1012,15 @@ function On({ language: e }) {
981
1012
  onClick: () => {
982
1013
  l(!1), h("");
983
1014
  },
984
- children: /* @__PURE__ */ u(
1015
+ children: /* @__PURE__ */ d(
985
1016
  "div",
986
1017
  {
987
1018
  className: T.searchModal,
988
1019
  ref: m,
989
1020
  onClick: (b) => b.stopPropagation(),
990
1021
  children: [
991
- /* @__PURE__ */ u("div", { className: T.searchHeader, children: [
992
- /* @__PURE__ */ t(St, { className: T.searchIcon }),
1022
+ /* @__PURE__ */ d("div", { className: T.searchHeader, children: [
1023
+ /* @__PURE__ */ t(Dt, { className: T.searchIcon }),
993
1024
  /* @__PURE__ */ t(
994
1025
  "input",
995
1026
  {
@@ -1011,11 +1042,11 @@ function On({ language: e }) {
1011
1042
  l(!1), h("");
1012
1043
  },
1013
1044
  "aria-label": "Close search",
1014
- children: /* @__PURE__ */ t(vt, {})
1045
+ children: /* @__PURE__ */ t(bt, {})
1015
1046
  }
1016
1047
  )
1017
1048
  ] }),
1018
- g && /* @__PURE__ */ t("div", { className: T.searchResults, children: d.length === 0 ? /* @__PURE__ */ t("div", { className: T.noResults, children: n("ui.noSearchResults") }) : /* @__PURE__ */ t("ul", { className: T.resultsList, children: d.map((b, $) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ u(
1049
+ g && /* @__PURE__ */ t("div", { className: T.searchResults, children: u.length === 0 ? /* @__PURE__ */ t("div", { className: T.noResults, children: n("ui.noSearchResults") }) : /* @__PURE__ */ t("ul", { className: T.resultsList, children: u.map((b, $) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ d(
1019
1050
  "button",
1020
1051
  {
1021
1052
  type: "button",
@@ -1024,24 +1055,24 @@ function On({ language: e }) {
1024
1055
  onMouseEnter: () => _($),
1025
1056
  children: [
1026
1057
  /* @__PURE__ */ t("div", { className: T.resultTitle, children: b.title }),
1027
- /* @__PURE__ */ u("div", { className: T.resultSlug, children: [
1058
+ /* @__PURE__ */ d("div", { className: T.resultSlug, children: [
1028
1059
  "/",
1029
1060
  b.slug
1030
1061
  ] })
1031
1062
  ]
1032
1063
  }
1033
1064
  ) }, b.slug)) }) }),
1034
- !g && /* @__PURE__ */ u("div", { className: T.searchHints, children: [
1035
- /* @__PURE__ */ u("div", { className: T.hint, children: [
1065
+ !g && /* @__PURE__ */ d("div", { className: T.searchHints, children: [
1066
+ /* @__PURE__ */ d("div", { className: T.hint, children: [
1036
1067
  /* @__PURE__ */ t("kbd", { children: "↑" }),
1037
1068
  /* @__PURE__ */ t("kbd", { children: "↓" }),
1038
1069
  /* @__PURE__ */ t("span", { children: n("ui.searchNavigate") })
1039
1070
  ] }),
1040
- /* @__PURE__ */ u("div", { className: T.hint, children: [
1071
+ /* @__PURE__ */ d("div", { className: T.hint, children: [
1041
1072
  /* @__PURE__ */ t("kbd", { children: "↵" }),
1042
1073
  /* @__PURE__ */ t("span", { children: n("ui.searchSelect") })
1043
1074
  ] }),
1044
- /* @__PURE__ */ u("div", { className: T.hint, children: [
1075
+ /* @__PURE__ */ d("div", { className: T.hint, children: [
1045
1076
  /* @__PURE__ */ t("kbd", { children: "esc" }),
1046
1077
  /* @__PURE__ */ t("span", { children: n("ui.searchClose") })
1047
1078
  ] })
@@ -1055,36 +1086,36 @@ function On({ language: e }) {
1055
1086
  )
1056
1087
  ] });
1057
1088
  }
1058
- const jn = "_header_jrobc_1", Wn = "_container_jrobc_24", Hn = "_content_jrobc_36", zn = "_leftSection_jrobc_43", Fn = "_mobileMenuButton_jrobc_49", Un = "_burgerIcon_jrobc_87", Kn = "_logo_jrobc_92", qn = "_nav_jrobc_98", Gn = "_navLink_jrobc_109", Qn = "_externalIcon_jrobc_135", Xn = "_supportDropdown_jrobc_141", Yn = "_themeDropdown_jrobc_145", Vn = "_themeButton_jrobc_149", Jn = "_themeIcon_jrobc_171", Zn = "_supportButton_jrobc_177", ta = "_caretIcon_jrobc_198", ea = "_dropdownMenu_jrobc_208", na = "_dropdownItem_jrobc_221", aa = "_dropdownIcon_jrobc_244", x = {
1059
- header: jn,
1060
- container: Wn,
1061
- content: Hn,
1062
- leftSection: zn,
1063
- mobileMenuButton: Fn,
1064
- burgerIcon: Un,
1065
- logo: Kn,
1066
- nav: qn,
1067
- navLink: Gn,
1068
- externalIcon: Qn,
1069
- supportDropdown: Xn,
1070
- themeDropdown: Yn,
1071
- themeButton: Vn,
1072
- themeIcon: Jn,
1073
- supportButton: Zn,
1074
- caretIcon: ta,
1075
- dropdownMenu: ea,
1076
- dropdownItem: na,
1077
- dropdownIcon: aa
1089
+ const Gn = "_header_jrobc_1", Qn = "_container_jrobc_24", Xn = "_content_jrobc_36", Yn = "_leftSection_jrobc_43", Vn = "_mobileMenuButton_jrobc_49", Jn = "_burgerIcon_jrobc_87", Zn = "_logo_jrobc_92", ta = "_nav_jrobc_98", ea = "_navLink_jrobc_109", na = "_externalIcon_jrobc_135", aa = "_supportDropdown_jrobc_141", oa = "_themeDropdown_jrobc_145", sa = "_themeButton_jrobc_149", ca = "_themeIcon_jrobc_171", ra = "_supportButton_jrobc_177", la = "_caretIcon_jrobc_198", ia = "_dropdownMenu_jrobc_208", da = "_dropdownItem_jrobc_221", ua = "_dropdownIcon_jrobc_244", x = {
1090
+ header: Gn,
1091
+ container: Qn,
1092
+ content: Xn,
1093
+ leftSection: Yn,
1094
+ mobileMenuButton: Vn,
1095
+ burgerIcon: Jn,
1096
+ logo: Zn,
1097
+ nav: ta,
1098
+ navLink: ea,
1099
+ externalIcon: na,
1100
+ supportDropdown: aa,
1101
+ themeDropdown: oa,
1102
+ themeButton: sa,
1103
+ themeIcon: ca,
1104
+ supportButton: ra,
1105
+ caretIcon: la,
1106
+ dropdownMenu: ia,
1107
+ dropdownItem: da,
1108
+ dropdownIcon: ua
1078
1109
  };
1079
- function oa({ onMobileMenuToggle: e }) {
1080
- const { t: n, i18n: o } = O(), { config: a } = j(), c = a.header ?? {}, s = c.navLinks ?? [], l = c.dropdownItems ?? [], [g, h] = y(!1), [d, i] = y(!1), { theme: f, setTheme: _ } = Ut(), v = q(null), w = q(null);
1081
- return P(() => {
1110
+ function ha({ onMobileMenuToggle: e }) {
1111
+ const { t: n, i18n: o } = A(), { config: a } = O(), c = a.header ?? {}, s = c.navLinks ?? [], l = c.dropdownItems ?? [], [g, h] = y(!1), [u, i] = y(!1), { theme: f, setTheme: _ } = Kt(), v = G(null), w = G(null);
1112
+ return S(() => {
1082
1113
  const r = (m) => {
1083
1114
  v.current && !v.current.contains(m.target) && h(!1), w.current && !w.current.contains(m.target) && i(!1);
1084
1115
  };
1085
1116
  return document.addEventListener("mousedown", r), () => document.removeEventListener("mousedown", r);
1086
- }, []), /* @__PURE__ */ t("header", { className: x.header, children: /* @__PURE__ */ t("div", { className: x.container, children: /* @__PURE__ */ u("div", { className: x.content, children: [
1087
- /* @__PURE__ */ u("div", { className: x.leftSection, children: [
1117
+ }, []), /* @__PURE__ */ t("header", { className: x.header, children: /* @__PURE__ */ t("div", { className: x.container, children: /* @__PURE__ */ d("div", { className: x.content, children: [
1118
+ /* @__PURE__ */ d("div", { className: x.leftSection, children: [
1088
1119
  /* @__PURE__ */ t(
1089
1120
  "button",
1090
1121
  {
@@ -1092,33 +1123,33 @@ function oa({ onMobileMenuToggle: e }) {
1092
1123
  className: x.mobileMenuButton,
1093
1124
  onClick: e,
1094
1125
  "aria-label": "Open menu",
1095
- children: /* @__PURE__ */ t(te, { className: x.burgerIcon })
1126
+ children: /* @__PURE__ */ t(ne, { className: x.burgerIcon })
1096
1127
  }
1097
1128
  ),
1098
1129
  /* @__PURE__ */ t("div", { className: x.logo })
1099
1130
  ] }),
1100
- /* @__PURE__ */ u("nav", { className: x.nav, children: [
1101
- /* @__PURE__ */ t(On, { language: o.language }),
1102
- /* @__PURE__ */ u("div", { className: x.themeDropdown, ref: w, children: [
1103
- /* @__PURE__ */ u(
1131
+ /* @__PURE__ */ d("nav", { className: x.nav, children: [
1132
+ /* @__PURE__ */ t(qn, { language: o.language }),
1133
+ /* @__PURE__ */ d("div", { className: x.themeDropdown, ref: w, children: [
1134
+ /* @__PURE__ */ d(
1104
1135
  "button",
1105
1136
  {
1106
1137
  type: "button",
1107
1138
  className: x.themeButton,
1108
- onClick: () => i(!d),
1109
- "aria-expanded": d,
1139
+ onClick: () => i(!u),
1140
+ "aria-expanded": u,
1110
1141
  "aria-haspopup": "true",
1111
1142
  "aria-label": n("ui.theme"),
1112
1143
  children: [
1113
- f === "light" && /* @__PURE__ */ t(Dt, { className: x.themeIcon }),
1114
- f === "dark" && /* @__PURE__ */ t(Mt, { className: x.themeIcon }),
1115
- f === "system" && /* @__PURE__ */ t(Bt, { className: x.themeIcon }),
1116
- /* @__PURE__ */ t(_t, { className: x.caretIcon })
1144
+ f === "light" && /* @__PURE__ */ t(Mt, { className: x.themeIcon }),
1145
+ f === "dark" && /* @__PURE__ */ t(Bt, { className: x.themeIcon }),
1146
+ f === "system" && /* @__PURE__ */ t(Et, { className: x.themeIcon }),
1147
+ /* @__PURE__ */ t(pt, { className: x.caretIcon })
1117
1148
  ]
1118
1149
  }
1119
1150
  ),
1120
- d && /* @__PURE__ */ u("div", { className: x.dropdownMenu, children: [
1121
- /* @__PURE__ */ u(
1151
+ u && /* @__PURE__ */ d("div", { className: x.dropdownMenu, children: [
1152
+ /* @__PURE__ */ d(
1122
1153
  "button",
1123
1154
  {
1124
1155
  type: "button",
@@ -1127,12 +1158,12 @@ function oa({ onMobileMenuToggle: e }) {
1127
1158
  },
1128
1159
  className: x.dropdownItem,
1129
1160
  children: [
1130
- /* @__PURE__ */ t(Dt, { className: x.dropdownIcon }),
1161
+ /* @__PURE__ */ t(Mt, { className: x.dropdownIcon }),
1131
1162
  n("ui.light")
1132
1163
  ]
1133
1164
  }
1134
1165
  ),
1135
- /* @__PURE__ */ u(
1166
+ /* @__PURE__ */ d(
1136
1167
  "button",
1137
1168
  {
1138
1169
  type: "button",
@@ -1141,12 +1172,12 @@ function oa({ onMobileMenuToggle: e }) {
1141
1172
  },
1142
1173
  className: x.dropdownItem,
1143
1174
  children: [
1144
- /* @__PURE__ */ t(Mt, { className: x.dropdownIcon }),
1175
+ /* @__PURE__ */ t(Bt, { className: x.dropdownIcon }),
1145
1176
  n("ui.dark")
1146
1177
  ]
1147
1178
  }
1148
1179
  ),
1149
- /* @__PURE__ */ u(
1180
+ /* @__PURE__ */ d(
1150
1181
  "button",
1151
1182
  {
1152
1183
  type: "button",
@@ -1155,15 +1186,15 @@ function oa({ onMobileMenuToggle: e }) {
1155
1186
  },
1156
1187
  className: x.dropdownItem,
1157
1188
  children: [
1158
- /* @__PURE__ */ t(Bt, { className: x.dropdownIcon }),
1189
+ /* @__PURE__ */ t(Et, { className: x.dropdownIcon }),
1159
1190
  n("ui.system")
1160
1191
  ]
1161
1192
  }
1162
1193
  )
1163
1194
  ] })
1164
1195
  ] }),
1165
- l.length > 0 && /* @__PURE__ */ u("div", { className: x.supportDropdown, ref: v, children: [
1166
- /* @__PURE__ */ u(
1196
+ l.length > 0 && /* @__PURE__ */ d("div", { className: x.supportDropdown, ref: v, children: [
1197
+ /* @__PURE__ */ d(
1167
1198
  "button",
1168
1199
  {
1169
1200
  type: "button",
@@ -1173,13 +1204,13 @@ function oa({ onMobileMenuToggle: e }) {
1173
1204
  "aria-haspopup": "true",
1174
1205
  children: [
1175
1206
  n("ui.support"),
1176
- /* @__PURE__ */ t(_t, { className: x.caretIcon })
1207
+ /* @__PURE__ */ t(pt, { className: x.caretIcon })
1177
1208
  ]
1178
1209
  }
1179
1210
  ),
1180
1211
  g && /* @__PURE__ */ t("div", { className: x.dropdownMenu, children: l.map((r, m) => {
1181
1212
  const N = r.target ?? (r.url.startsWith("http") ? "_blank" : "_self"), I = r.rel ?? (N === "_blank" ? "noopener noreferrer" : void 0), D = r.icon;
1182
- return /* @__PURE__ */ u(
1213
+ return /* @__PURE__ */ d(
1183
1214
  "a",
1184
1215
  {
1185
1216
  href: r.url,
@@ -1197,7 +1228,7 @@ function oa({ onMobileMenuToggle: e }) {
1197
1228
  ] }),
1198
1229
  s.map((r, m) => {
1199
1230
  const N = r.target ?? (typeof r.url == "string" && r.url.startsWith("http") ? "_blank" : "_self"), I = r.rel ?? (N === "_blank" ? "noopener noreferrer" : void 0), D = r.icon;
1200
- return /* @__PURE__ */ u(
1231
+ return /* @__PURE__ */ d(
1201
1232
  "a",
1202
1233
  {
1203
1234
  href: r.url,
@@ -1215,11 +1246,11 @@ function oa({ onMobileMenuToggle: e }) {
1215
1246
  ] })
1216
1247
  ] }) }) });
1217
1248
  }
1218
- function bt({
1249
+ function wt({
1219
1250
  styles: e,
1220
1251
  onLanguageChange: n
1221
1252
  }) {
1222
- const { i18n: o } = O(), a = Q(), c = X(), { config: s } = j(), [l, g] = y(!1), h = q(null), d = o.language, i = (_) => {
1253
+ const { i18n: o } = A(), a = Q(), c = X(), { config: s } = O(), [l, g] = y(!1), h = G(null), u = o.language, i = (_) => {
1223
1254
  const v = s.basePath || "";
1224
1255
  let w = a.pathname;
1225
1256
  v && w.startsWith(v) && (w = w.slice(v.length));
@@ -1229,15 +1260,15 @@ function bt({
1229
1260
  const I = N + a.search + a.hash;
1230
1261
  o.changeLanguage(_), c(I), g(!1), n == null || n();
1231
1262
  };
1232
- P(() => {
1263
+ S(() => {
1233
1264
  const _ = (v) => {
1234
1265
  h.current && !h.current.contains(v.target) && g(!1);
1235
1266
  };
1236
1267
  return document.addEventListener("mousedown", _), () => document.removeEventListener("mousedown", _);
1237
1268
  }, []);
1238
1269
  const f = (_) => o.getFixedT(_)("language") || _;
1239
- return /* @__PURE__ */ u("div", { className: e.languageSelect, ref: h, children: [
1240
- /* @__PURE__ */ u(
1270
+ return /* @__PURE__ */ d("div", { className: e.languageSelect, ref: h, children: [
1271
+ /* @__PURE__ */ d(
1241
1272
  "button",
1242
1273
  {
1243
1274
  type: "button",
@@ -1246,9 +1277,9 @@ function bt({
1246
1277
  "aria-expanded": l,
1247
1278
  "aria-haspopup": "listbox",
1248
1279
  children: [
1249
- /* @__PURE__ */ t(ee, { className: e.icon }),
1250
- f(d),
1251
- /* @__PURE__ */ t(_t, { className: e.chevron })
1280
+ /* @__PURE__ */ t(ae, { className: e.icon }),
1281
+ f(u),
1282
+ /* @__PURE__ */ t(pt, { className: e.chevron })
1252
1283
  ]
1253
1284
  }
1254
1285
  ),
@@ -1256,23 +1287,23 @@ function bt({
1256
1287
  "button",
1257
1288
  {
1258
1289
  type: "button",
1259
- className: `${e.languageOption} ${_ === d ? e.selected : ""}`,
1290
+ className: `${e.languageOption} ${_ === u ? e.selected : ""}`,
1260
1291
  onClick: () => i(_),
1261
1292
  role: "option",
1262
- "aria-selected": _ === d,
1293
+ "aria-selected": _ === u,
1263
1294
  children: f(_)
1264
1295
  },
1265
1296
  _
1266
1297
  )) })
1267
1298
  ] });
1268
1299
  }
1269
- function wt({ styles: e, onLinkClick: n }) {
1270
- const { i18n: o } = O(), a = Q(), { config: c, loadContent: s } = j(), [l, g] = y([]), [h, d] = y({}), i = o.language;
1271
- P(() => {
1300
+ function Nt({ styles: e, onLinkClick: n }) {
1301
+ const { i18n: o } = A(), a = Q(), { config: c, loadContent: s } = O(), [l, g] = y([]), [h, u] = y({}), i = o.language;
1302
+ S(() => {
1272
1303
  (async () => {
1273
1304
  if (c.navigationData)
1274
1305
  try {
1275
- const m = await dt(
1306
+ const m = await ut(
1276
1307
  c.navigationData,
1277
1308
  i,
1278
1309
  s
@@ -1280,7 +1311,7 @@ function wt({ styles: e, onLinkClick: n }) {
1280
1311
  g(m);
1281
1312
  const N = m.reduce(
1282
1313
  (I, D, H) => {
1283
- if (at(D)) {
1314
+ if (ot(D)) {
1284
1315
  const b = c.navigationData[H], $ = "items" in b && b.defaultOpen === !0;
1285
1316
  I[D.title] = $;
1286
1317
  }
@@ -1288,14 +1319,14 @@ function wt({ styles: e, onLinkClick: n }) {
1288
1319
  },
1289
1320
  {}
1290
1321
  );
1291
- d(N);
1322
+ u(N);
1292
1323
  } catch (m) {
1293
1324
  console.error("Failed to load navigation data:", m);
1294
1325
  }
1295
1326
  })();
1296
1327
  }, [i, c.navigationData, s]);
1297
1328
  const f = (r) => {
1298
- d((m) => ({
1329
+ u((m) => ({
1299
1330
  ...m,
1300
1331
  [r]: !m[r]
1301
1332
  }));
@@ -1314,8 +1345,8 @@ function wt({ styles: e, onLinkClick: n }) {
1314
1345
  }, w = () => {
1315
1346
  n == null || n();
1316
1347
  };
1317
- return /* @__PURE__ */ t("div", { className: e.navigation, children: l.map((r) => at(r) ? /* @__PURE__ */ u("div", { className: e.section, children: [
1318
- /* @__PURE__ */ u(
1348
+ return /* @__PURE__ */ t("div", { className: e.navigation, children: l.map((r) => ot(r) ? /* @__PURE__ */ d("div", { className: e.section, children: [
1349
+ /* @__PURE__ */ d(
1319
1350
  "button",
1320
1351
  {
1321
1352
  type: "button",
@@ -1323,12 +1354,12 @@ function wt({ styles: e, onLinkClick: n }) {
1323
1354
  onClick: () => f(r.title),
1324
1355
  children: [
1325
1356
  r.title,
1326
- /* @__PURE__ */ t(Wt, { className: e.icon })
1357
+ /* @__PURE__ */ t(Ht, { className: e.icon })
1327
1358
  ]
1328
1359
  }
1329
1360
  ),
1330
1361
  h[r.title] && /* @__PURE__ */ t("div", { className: e.sectionItems, children: r.items.map((m) => /* @__PURE__ */ t(
1331
- it,
1362
+ dt,
1332
1363
  {
1333
1364
  to: v(m.slug),
1334
1365
  className: `${e.navItem} ${_(m.slug) ? e.active : ""}`,
@@ -1338,7 +1369,7 @@ function wt({ styles: e, onLinkClick: n }) {
1338
1369
  m.slug
1339
1370
  )) })
1340
1371
  ] }, r.title) : /* @__PURE__ */ t(
1341
- it,
1372
+ dt,
1342
1373
  {
1343
1374
  to: v(r.slug),
1344
1375
  className: `${e.navItem} ${_(r.slug) ? e.active : ""}`,
@@ -1348,55 +1379,55 @@ function wt({ styles: e, onLinkClick: n }) {
1348
1379
  r.slug
1349
1380
  )) });
1350
1381
  }
1351
- function To({
1382
+ function Ao({
1352
1383
  styles: e,
1353
1384
  onLinkClick: n,
1354
1385
  onLanguageChange: o
1355
1386
  }) {
1356
- return /* @__PURE__ */ u(G, { children: [
1357
- /* @__PURE__ */ t(bt, { styles: e, onLanguageChange: o }),
1358
- /* @__PURE__ */ t(wt, { styles: e, onLinkClick: n })
1387
+ return /* @__PURE__ */ d(q, { children: [
1388
+ /* @__PURE__ */ t(wt, { styles: e, onLanguageChange: o }),
1389
+ /* @__PURE__ */ t(Nt, { styles: e, onLinkClick: n })
1359
1390
  ] });
1360
1391
  }
1361
- const sa = "_backdrop_1a7pu_1", ca = "_open_1a7pu_13", ra = "_mobileMenu_1a7pu_18", la = "_header_1a7pu_37", ia = "_brand_1a7pu_46", da = "_cloudIcon_1a7pu_53", ua = "_title_1a7pu_62", ha = "_closeButton_1a7pu_69", ma = "_closeIcon_1a7pu_101", ga = "_languageSection_1a7pu_106", _a = "_languageSelect_1a7pu_112", pa = "_languageButton_1a7pu_117", fa = "_icon_1a7pu_156", va = "_chevron_1a7pu_162", ba = "_languageDropdown_1a7pu_172", wa = "_languageOption_1a7pu_185", Na = "_selected_1a7pu_226", ka = "_scrollArea_1a7pu_231", $a = "_navigation_1a7pu_237", xa = "_section_1a7pu_241", Ia = "_sectionButton_1a7pu_245", Ca = "_expanded_1a7pu_285", ya = "_sectionItems_1a7pu_289", La = "_navItem_1a7pu_297", Ta = "_active_1a7pu_310", Pa = "_navItemContent_1a7pu_316", Sa = "_navItemTitle_1a7pu_322", R = {
1362
- backdrop: sa,
1363
- open: ca,
1364
- mobileMenu: ra,
1365
- header: la,
1366
- brand: ia,
1367
- cloudIcon: da,
1368
- title: ua,
1369
- closeButton: ha,
1370
- closeIcon: ma,
1371
- languageSection: ga,
1372
- languageSelect: _a,
1373
- languageButton: pa,
1374
- icon: fa,
1375
- chevron: va,
1376
- languageDropdown: ba,
1377
- languageOption: wa,
1378
- selected: Na,
1379
- scrollArea: ka,
1380
- navigation: $a,
1381
- section: xa,
1382
- sectionButton: Ia,
1383
- expanded: Ca,
1384
- sectionItems: ya,
1385
- navItem: La,
1386
- active: Ta,
1387
- navItemContent: Pa,
1388
- navItemTitle: Sa
1392
+ const ma = "_backdrop_1a7pu_1", ga = "_open_1a7pu_13", _a = "_mobileMenu_1a7pu_18", pa = "_header_1a7pu_37", fa = "_brand_1a7pu_46", va = "_cloudIcon_1a7pu_53", ba = "_title_1a7pu_62", wa = "_closeButton_1a7pu_69", Na = "_closeIcon_1a7pu_101", ka = "_languageSection_1a7pu_106", $a = "_languageSelect_1a7pu_112", xa = "_languageButton_1a7pu_117", Ia = "_icon_1a7pu_156", Ca = "_chevron_1a7pu_162", ya = "_languageDropdown_1a7pu_172", La = "_languageOption_1a7pu_185", Ta = "_selected_1a7pu_226", Sa = "_scrollArea_1a7pu_231", Pa = "_navigation_1a7pu_237", Da = "_section_1a7pu_241", Ma = "_sectionButton_1a7pu_245", Ba = "_expanded_1a7pu_285", Ea = "_sectionItems_1a7pu_289", Ra = "_navItem_1a7pu_297", Aa = "_active_1a7pu_310", Oa = "_navItemContent_1a7pu_316", ja = "_navItemTitle_1a7pu_322", R = {
1393
+ backdrop: ma,
1394
+ open: ga,
1395
+ mobileMenu: _a,
1396
+ header: pa,
1397
+ brand: fa,
1398
+ cloudIcon: va,
1399
+ title: ba,
1400
+ closeButton: wa,
1401
+ closeIcon: Na,
1402
+ languageSection: ka,
1403
+ languageSelect: $a,
1404
+ languageButton: xa,
1405
+ icon: Ia,
1406
+ chevron: Ca,
1407
+ languageDropdown: ya,
1408
+ languageOption: La,
1409
+ selected: Ta,
1410
+ scrollArea: Sa,
1411
+ navigation: Pa,
1412
+ section: Da,
1413
+ sectionButton: Ma,
1414
+ expanded: Ba,
1415
+ sectionItems: Ea,
1416
+ navItem: Ra,
1417
+ active: Aa,
1418
+ navItemContent: Oa,
1419
+ navItemTitle: ja
1389
1420
  };
1390
- function Da({ isOpen: e, onClose: n }) {
1391
- const { config: o } = j(), a = o.logo;
1392
- return P(() => (e ? document.body.style.overflow = "hidden" : document.body.style.overflow = "unset", () => {
1421
+ function Wa({ isOpen: e, onClose: n }) {
1422
+ const { config: o } = O(), a = o.logo;
1423
+ return S(() => (e ? document.body.style.overflow = "hidden" : document.body.style.overflow = "unset", () => {
1393
1424
  document.body.style.overflow = "unset";
1394
- }), [e]), P(() => {
1425
+ }), [e]), S(() => {
1395
1426
  const c = (s) => {
1396
1427
  s.key === "Escape" && e && n();
1397
1428
  };
1398
1429
  return document.addEventListener("keydown", c), () => document.removeEventListener("keydown", c);
1399
- }, [e, n]), /* @__PURE__ */ u(G, { children: [
1430
+ }, [e, n]), /* @__PURE__ */ d(q, { children: [
1400
1431
  /* @__PURE__ */ t(
1401
1432
  "div",
1402
1433
  {
@@ -1404,9 +1435,9 @@ function Da({ isOpen: e, onClose: n }) {
1404
1435
  onClick: n
1405
1436
  }
1406
1437
  ),
1407
- /* @__PURE__ */ u("div", { className: `${R.mobileMenu} ${e ? R.open : ""}`, children: [
1408
- /* @__PURE__ */ u("div", { className: R.header, children: [
1409
- /* @__PURE__ */ u("div", { className: R.brand, children: [
1438
+ /* @__PURE__ */ d("div", { className: `${R.mobileMenu} ${e ? R.open : ""}`, children: [
1439
+ /* @__PURE__ */ d("div", { className: R.header, children: [
1440
+ /* @__PURE__ */ d("div", { className: R.brand, children: [
1410
1441
  a && /* @__PURE__ */ t(a, { className: R.cloudIcon }),
1411
1442
  /* @__PURE__ */ t("h1", { className: R.title, children: o.title })
1412
1443
  ] }),
@@ -1417,61 +1448,61 @@ function Da({ isOpen: e, onClose: n }) {
1417
1448
  className: R.closeButton,
1418
1449
  onClick: n,
1419
1450
  "aria-label": "Close menu",
1420
- children: /* @__PURE__ */ t(vt, { className: R.closeIcon })
1451
+ children: /* @__PURE__ */ t(bt, { className: R.closeIcon })
1421
1452
  }
1422
1453
  )
1423
1454
  ] }),
1424
- /* @__PURE__ */ t("div", { className: R.languageSection, children: /* @__PURE__ */ t(bt, { styles: R, onLanguageChange: n }) }),
1425
- /* @__PURE__ */ t("div", { className: R.scrollArea, children: /* @__PURE__ */ t(wt, { styles: R, onLinkClick: n }) })
1455
+ /* @__PURE__ */ t("div", { className: R.languageSection, children: /* @__PURE__ */ t(wt, { styles: R, onLanguageChange: n }) }),
1456
+ /* @__PURE__ */ t("div", { className: R.scrollArea, children: /* @__PURE__ */ t(Nt, { styles: R, onLinkClick: n }) })
1426
1457
  ] })
1427
1458
  ] });
1428
1459
  }
1429
- const Ma = "_sidebar_1tdxt_1", Ba = "_header_1tdxt_17", Ea = "_brand_1tdxt_29", Ra = "_cloudIcon_1tdxt_35", Aa = "_title_1tdxt_44", Oa = "_languageSelect_1tdxt_55", ja = "_languageButton_1tdxt_61", Wa = "_icon_1tdxt_99", Ha = "_chevron_1tdxt_104", za = "_languageDropdown_1tdxt_114", Fa = "_languageOption_1tdxt_128", Ua = "_selected_1tdxt_147", Ka = "_scrollArea_1tdxt_152", qa = "_navigation_1tdxt_158", Ga = "_section_1tdxt_164", Qa = "_sectionButton_1tdxt_170", Xa = "_expanded_1tdxt_213", Ya = "_sectionItems_1tdxt_217", Va = "_navItem_1tdxt_225", Ja = "_active_1tdxt_238", Za = "_navItemContent_1tdxt_243", K = {
1430
- sidebar: Ma,
1431
- header: Ba,
1432
- brand: Ea,
1433
- cloudIcon: Ra,
1434
- title: Aa,
1435
- languageSelect: Oa,
1436
- languageButton: ja,
1437
- icon: Wa,
1438
- chevron: Ha,
1439
- languageDropdown: za,
1440
- languageOption: Fa,
1441
- selected: Ua,
1442
- scrollArea: Ka,
1443
- navigation: qa,
1444
- section: Ga,
1445
- sectionButton: Qa,
1446
- expanded: Xa,
1447
- sectionItems: Ya,
1448
- navItem: Va,
1449
- active: Ja,
1450
- navItemContent: Za
1460
+ const Ha = "_sidebar_1tdxt_1", za = "_header_1tdxt_17", Fa = "_brand_1tdxt_29", Ua = "_cloudIcon_1tdxt_35", Ka = "_title_1tdxt_44", qa = "_languageSelect_1tdxt_55", Ga = "_languageButton_1tdxt_61", Qa = "_icon_1tdxt_99", Xa = "_chevron_1tdxt_104", Ya = "_languageDropdown_1tdxt_114", Va = "_languageOption_1tdxt_128", Ja = "_selected_1tdxt_147", Za = "_scrollArea_1tdxt_152", to = "_navigation_1tdxt_158", eo = "_section_1tdxt_164", no = "_sectionButton_1tdxt_170", ao = "_expanded_1tdxt_213", oo = "_sectionItems_1tdxt_217", so = "_navItem_1tdxt_225", co = "_active_1tdxt_238", ro = "_navItemContent_1tdxt_243", K = {
1461
+ sidebar: Ha,
1462
+ header: za,
1463
+ brand: Fa,
1464
+ cloudIcon: Ua,
1465
+ title: Ka,
1466
+ languageSelect: qa,
1467
+ languageButton: Ga,
1468
+ icon: Qa,
1469
+ chevron: Xa,
1470
+ languageDropdown: Ya,
1471
+ languageOption: Va,
1472
+ selected: Ja,
1473
+ scrollArea: Za,
1474
+ navigation: to,
1475
+ section: eo,
1476
+ sectionButton: no,
1477
+ expanded: ao,
1478
+ sectionItems: oo,
1479
+ navItem: so,
1480
+ active: co,
1481
+ navItemContent: ro
1451
1482
  };
1452
- function to() {
1453
- const { config: e } = j(), n = e.logo, o = e.supportedLanguages.length > 1;
1454
- return /* @__PURE__ */ u("div", { className: K.sidebar, children: [
1455
- /* @__PURE__ */ u("div", { className: K.header, children: [
1456
- /* @__PURE__ */ u("div", { className: K.brand, children: [
1483
+ function lo() {
1484
+ const { config: e } = O(), n = e.logo, o = e.supportedLanguages.length > 1;
1485
+ return /* @__PURE__ */ d("div", { className: K.sidebar, children: [
1486
+ /* @__PURE__ */ d("div", { className: K.header, children: [
1487
+ /* @__PURE__ */ d("div", { className: K.brand, children: [
1457
1488
  n && /* @__PURE__ */ t(n, { className: K.cloudIcon }),
1458
1489
  /* @__PURE__ */ t("div", { className: K.title, children: e.title })
1459
1490
  ] }),
1460
- o && /* @__PURE__ */ t(bt, { styles: K })
1491
+ o && /* @__PURE__ */ t(wt, { styles: K })
1461
1492
  ] }),
1462
- /* @__PURE__ */ t("div", { className: K.scrollArea, children: /* @__PURE__ */ t(wt, { styles: K }) })
1493
+ /* @__PURE__ */ t("div", { className: K.scrollArea, children: /* @__PURE__ */ t(Nt, { styles: K }) })
1463
1494
  ] });
1464
1495
  }
1465
- const eo = "_app_wf6ni_1", no = "_layout_wf6ni_9", ao = "_main_wf6ni_15", oo = "_fullWidth_wf6ni_21", so = "_contentWrapper_wf6ni_30", nt = {
1466
- app: eo,
1467
- layout: no,
1468
- main: ao,
1469
- fullWidth: oo,
1470
- contentWrapper: so
1496
+ const io = "_app_wf6ni_1", uo = "_layout_wf6ni_9", ho = "_main_wf6ni_15", mo = "_fullWidth_wf6ni_21", go = "_contentWrapper_wf6ni_30", at = {
1497
+ app: io,
1498
+ layout: uo,
1499
+ main: ho,
1500
+ fullWidth: mo,
1501
+ contentWrapper: go
1471
1502
  };
1472
- function co({ children: e }) {
1473
- const { language: n } = ft(), { i18n: o } = O(), { config: a } = j(), [c, s] = y(!1);
1474
- P(() => {
1503
+ function _o({ children: e }) {
1504
+ const { language: n } = vt(), { i18n: o } = A(), { config: a } = O(), [c, s] = y(!1);
1505
+ S(() => {
1475
1506
  n && a.supportedLanguages.includes(n) && o.changeLanguage(n);
1476
1507
  }, [n, o, a.supportedLanguages]);
1477
1508
  const l = () => {
@@ -1480,48 +1511,48 @@ function co({ children: e }) {
1480
1511
  s(!1);
1481
1512
  };
1482
1513
  if (!n || !a.supportedLanguages.includes(n))
1483
- return /* @__PURE__ */ t(jt, { to: "/en/welcome", replace: !0 });
1484
- const h = !!a.header, d = a.showSideMenu !== !1, i = a.contentMaxWidth ? { width: "100%", maxWidth: a.contentMaxWidth } : void 0;
1485
- return /* @__PURE__ */ u("div", { className: nt.app, children: [
1486
- h && /* @__PURE__ */ t(oa, { onMobileMenuToggle: l }),
1487
- /* @__PURE__ */ t(Da, { isOpen: c, onClose: g }),
1488
- /* @__PURE__ */ u("div", { className: nt.layout, children: [
1489
- d && /* @__PURE__ */ t(to, {}),
1514
+ return /* @__PURE__ */ t(Wt, { to: "/en/welcome", replace: !0 });
1515
+ const h = !!a.header, u = a.showSideMenu !== !1, i = a.contentMaxWidth ? { width: "100%", maxWidth: a.contentMaxWidth } : void 0;
1516
+ return /* @__PURE__ */ d("div", { className: at.app, children: [
1517
+ h && /* @__PURE__ */ t(ha, { onMobileMenuToggle: l }),
1518
+ /* @__PURE__ */ t(Wa, { isOpen: c, onClose: g }),
1519
+ /* @__PURE__ */ d("div", { className: at.layout, children: [
1520
+ u && /* @__PURE__ */ t(lo, {}),
1490
1521
  /* @__PURE__ */ t(
1491
1522
  "main",
1492
1523
  {
1493
- className: `${nt.main} ${d ? "" : nt.fullWidth}`,
1494
- children: /* @__PURE__ */ t("div", { className: nt.contentWrapper, style: i, children: e })
1524
+ className: `${at.main} ${u ? "" : at.fullWidth}`,
1525
+ children: /* @__PURE__ */ t("div", { className: at.contentWrapper, style: i, children: e })
1495
1526
  }
1496
1527
  )
1497
1528
  ] })
1498
1529
  ] });
1499
1530
  }
1500
- const ro = "_homePage_1lc5u_1", lo = "_header_1lc5u_20", io = "_title_1lc5u_24", uo = "_articlesList_1lc5u_31", ho = "_articleCard_1lc5u_37", mo = "_articleTitle_1lc5u_56", go = "_articleDescription_1lc5u_63", _o = "_loading_1lc5u_70", po = "_empty_1lc5u_71", F = {
1501
- homePage: ro,
1502
- header: lo,
1503
- title: io,
1504
- articlesList: uo,
1505
- articleCard: ho,
1506
- articleTitle: mo,
1507
- articleDescription: go,
1508
- loading: _o,
1509
- empty: po
1531
+ const po = "_homePage_1lc5u_1", fo = "_header_1lc5u_20", vo = "_title_1lc5u_24", bo = "_articlesList_1lc5u_31", wo = "_articleCard_1lc5u_37", No = "_articleTitle_1lc5u_56", ko = "_articleDescription_1lc5u_63", $o = "_loading_1lc5u_70", xo = "_empty_1lc5u_71", F = {
1532
+ homePage: po,
1533
+ header: fo,
1534
+ title: vo,
1535
+ articlesList: bo,
1536
+ articleCard: wo,
1537
+ articleTitle: No,
1538
+ articleDescription: ko,
1539
+ loading: $o,
1540
+ empty: xo
1510
1541
  };
1511
- function fo() {
1512
- const { i18n: e, t: n } = O(), { config: o, loadContent: a } = j(), c = X(), [s, l] = y([]), [g, h] = y(!0);
1513
- P(() => {
1542
+ function Io() {
1543
+ const { i18n: e, t: n } = A(), { config: o, loadContent: a } = O(), c = X(), [s, l] = y([]), [g, h] = y(!0);
1544
+ S(() => {
1514
1545
  (async () => {
1515
1546
  try {
1516
1547
  const f = o.navigationData || [];
1517
1548
  if (f.length === 0) return;
1518
- const _ = await dt(
1549
+ const _ = await ut(
1519
1550
  f,
1520
1551
  e.language,
1521
1552
  a
1522
1553
  ), v = [];
1523
1554
  for (const r of _)
1524
- if (at(r))
1555
+ if (ot(r))
1525
1556
  for (const m of r.items)
1526
1557
  v.push({
1527
1558
  slug: m.slug,
@@ -1556,42 +1587,45 @@ function fo() {
1556
1587
  }
1557
1588
  })();
1558
1589
  }, [e.language, o.navigationData, a]);
1559
- const d = (i) => {
1590
+ const u = (i) => {
1560
1591
  const f = o.basePath || "";
1561
1592
  window.scrollTo({ top: 0, left: 0, behavior: "auto" }), c(`${f}/${e.language}/${i}`);
1562
1593
  };
1563
- return g ? /* @__PURE__ */ t("div", { className: F.loading, children: n("ui.loadingArticles") }) : s.length === 0 ? /* @__PURE__ */ t("div", { className: F.empty, children: n("ui.noArticlesFound") }) : /* @__PURE__ */ u("div", { className: F.homePage, children: [
1564
- /* @__PURE__ */ t("div", { className: F.header, children: /* @__PURE__ */ t("h1", { className: F.title, children: n("ui.latestPosts") }) }),
1565
- /* @__PURE__ */ t("div", { className: F.articlesList, children: s.map((i) => /* @__PURE__ */ u(
1566
- "button",
1567
- {
1568
- className: F.articleCard,
1569
- onClick: () => d(i.slug),
1570
- type: "button",
1571
- children: [
1572
- /* @__PURE__ */ t("h2", { className: F.articleTitle, children: i.title }),
1573
- i.description && /* @__PURE__ */ t("p", { className: F.articleDescription, children: i.description }),
1574
- /* @__PURE__ */ t(pt, { date: i.date, author: i.author })
1575
- ]
1576
- },
1577
- i.slug
1578
- )) })
1594
+ return g ? /* @__PURE__ */ t("div", { className: F.loading, children: n("ui.loadingArticles") }) : s.length === 0 ? /* @__PURE__ */ t("div", { className: F.empty, children: n("ui.noArticlesFound") }) : /* @__PURE__ */ d(q, { children: [
1595
+ /* @__PURE__ */ d("div", { className: F.homePage, children: [
1596
+ /* @__PURE__ */ t("div", { className: F.header, children: /* @__PURE__ */ t("h1", { className: F.title, children: n("ui.latestPosts") }) }),
1597
+ /* @__PURE__ */ t("div", { className: F.articlesList, children: s.map((i) => /* @__PURE__ */ d(
1598
+ "button",
1599
+ {
1600
+ className: F.articleCard,
1601
+ onClick: () => u(i.slug),
1602
+ type: "button",
1603
+ children: [
1604
+ /* @__PURE__ */ t("h2", { className: F.articleTitle, children: i.title }),
1605
+ i.description && /* @__PURE__ */ t("p", { className: F.articleDescription, children: i.description }),
1606
+ /* @__PURE__ */ t(ft, { date: i.date, author: i.author })
1607
+ ]
1608
+ },
1609
+ i.slug
1610
+ )) })
1611
+ ] }),
1612
+ /* @__PURE__ */ t(De, {})
1579
1613
  ] });
1580
1614
  }
1581
- function Po() {
1582
- const { language: e } = ft(), { config: n } = j();
1583
- return /* @__PURE__ */ t(co, { children: /* @__PURE__ */ u(Xt, { children: [
1584
- /* @__PURE__ */ t(Pt, { path: "/:slug", element: /* @__PURE__ */ t(bn, { language: e }) }),
1615
+ function Oo() {
1616
+ const { language: e } = vt(), { config: n } = O();
1617
+ return /* @__PURE__ */ t(_o, { children: /* @__PURE__ */ d(Yt, { children: [
1618
+ /* @__PURE__ */ t(Pt, { path: "/:slug", element: /* @__PURE__ */ t(yn, { language: e }) }),
1585
1619
  /* @__PURE__ */ t(
1586
1620
  Pt,
1587
1621
  {
1588
1622
  index: !0,
1589
- element: (n.defaultRoute || "latest") === "latest" ? /* @__PURE__ */ t(fo, {}) : /* @__PURE__ */ t(jt, { to: `./${n.defaultRoute}`, replace: !0 })
1623
+ element: (n.defaultRoute || "latest") === "latest" ? /* @__PURE__ */ t(Io, {}) : /* @__PURE__ */ t(Wt, { to: `./${n.defaultRoute}`, replace: !0 })
1590
1624
  }
1591
1625
  )
1592
1626
  ] }) });
1593
1627
  }
1594
- function So() {
1628
+ function jo() {
1595
1629
  return {
1596
1630
  openSearchModal: () => {
1597
1631
  window.dispatchEvent(new CustomEvent("blog:open-search"));
@@ -1601,46 +1635,47 @@ function So() {
1601
1635
  }
1602
1636
  };
1603
1637
  }
1604
- function Do() {
1605
- const { i18n: e } = O(), n = Q(), o = X(), { config: a } = j();
1638
+ function Wo() {
1639
+ const { i18n: e } = A(), n = Q(), o = X(), { config: a } = O();
1606
1640
  return (c) => {
1607
1641
  const s = a.basePath || "";
1608
1642
  let l = n.pathname;
1609
1643
  s && l.startsWith(s) && (l = l.slice(s.length));
1610
1644
  const g = l.split("/").filter(Boolean), h = g[0];
1611
- let d = "";
1612
- a.supportedLanguages.includes(h) ? (g[0] = c, d = `${s}/${g.join("/")}`) : d = `${s}/${c}${l}`;
1613
- const i = d + n.search + n.hash;
1645
+ let u = "";
1646
+ a.supportedLanguages.includes(h) ? (g[0] = c, u = `${s}/${g.join("/")}`) : u = `${s}/${c}${l}`;
1647
+ const i = u + n.search + n.hash;
1614
1648
  e.changeLanguage(c), o(i);
1615
1649
  };
1616
1650
  }
1617
1651
  export {
1618
- de as AdvancedModeToggle,
1619
- xe as ArticleNavigation,
1620
- Lo as BlogProvider,
1621
- ue as BlogRoot,
1622
- bn as ContentPage,
1623
- co as DocumentationLayout,
1624
- Po as DocumentationRoutes,
1625
- oa as Header,
1626
- fo as HomePage,
1627
- bt as LanguageSelector,
1628
- pt as Metadata,
1629
- Da as MobileMenu,
1630
- To as NavigationContent,
1631
- wt as NavigationMenu,
1632
- On as SearchBar,
1633
- to as Sidebar,
1634
- He as TableOfContents,
1635
- Ze as TagResultsModal,
1636
- cn as Tags,
1637
- yo as createBlogUtils,
1638
- zt as createContentLoaders,
1652
+ he as AdvancedModeToggle,
1653
+ Ce as ArticleNavigation,
1654
+ Ro as BlogProvider,
1655
+ me as BlogRoot,
1656
+ De as BlogSidebar,
1657
+ yn as ContentPage,
1658
+ _o as DocumentationLayout,
1659
+ Oo as DocumentationRoutes,
1660
+ ha as Header,
1661
+ Io as HomePage,
1662
+ wt as LanguageSelector,
1663
+ ft as Metadata,
1664
+ Wa as MobileMenu,
1665
+ Ao as NavigationContent,
1666
+ Nt as NavigationMenu,
1667
+ qn as SearchBar,
1668
+ lo as Sidebar,
1669
+ Xe as TableOfContents,
1670
+ rn as TagResultsModal,
1671
+ _n as Tags,
1672
+ Eo as createBlogUtils,
1673
+ Ft as createContentLoaders,
1639
1674
  Z as generateHeadingId,
1640
- me as getAdjacentArticles,
1641
- dt as getNavigationData,
1642
- j as useBlogConfig,
1643
- Do as useLanguageChange,
1644
- So as useSearchModal,
1645
- Ut as useTheme
1675
+ _e as getAdjacentArticles,
1676
+ ut as getNavigationData,
1677
+ O as useBlogConfig,
1678
+ Wo as useLanguageChange,
1679
+ jo as useSearchModal,
1680
+ Kt as useTheme
1646
1681
  };