@x-wave/blog 1.0.29 → 1.0.31

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