zudoku 0.18.1 → 0.18.2

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.
Files changed (31) hide show
  1. package/dist/lib/authentication/AuthenticationPlugin.d.ts +4 -2
  2. package/dist/lib/authentication/AuthenticationPlugin.js +3 -0
  3. package/dist/lib/authentication/AuthenticationPlugin.js.map +1 -1
  4. package/dist/lib/authentication/authentication.d.ts +1 -1
  5. package/dist/lib/components/Header.js +11 -3
  6. package/dist/lib/components/Header.js.map +1 -1
  7. package/dist/lib/components/Layout.js +1 -1
  8. package/dist/lib/components/Layout.js.map +1 -1
  9. package/dist/lib/core/plugins.d.ts +6 -0
  10. package/dist/lib/core/plugins.js.map +1 -1
  11. package/dist/lib/plugins/api-keys/index.js +3 -0
  12. package/dist/lib/plugins/api-keys/index.js.map +1 -1
  13. package/dist/vite/remarkStaticGeneration.js +5 -5
  14. package/dist/vite/remarkStaticGeneration.js.map +1 -1
  15. package/lib/AuthenticationPlugin-D0Em0SwR.js +59 -0
  16. package/lib/AuthenticationPlugin-D0Em0SwR.js.map +1 -0
  17. package/lib/zudoku.auth-clerk.js +1 -1
  18. package/lib/zudoku.auth-openid.js +1 -1
  19. package/lib/zudoku.components.js +329 -315
  20. package/lib/zudoku.components.js.map +1 -1
  21. package/lib/zudoku.plugin-api-keys.js +40 -38
  22. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  23. package/package.json +2 -2
  24. package/src/lib/authentication/AuthenticationPlugin.tsx +4 -1
  25. package/src/lib/authentication/authentication.ts +1 -1
  26. package/src/lib/components/Header.tsx +41 -7
  27. package/src/lib/components/Layout.tsx +1 -1
  28. package/src/lib/core/plugins.ts +8 -0
  29. package/src/lib/plugins/api-keys/index.tsx +3 -0
  30. package/lib/AuthenticationPlugin-DeGDVa1r.js +0 -56
  31. package/lib/AuthenticationPlugin-DeGDVa1r.js.map +0 -1
@@ -1,59 +1,59 @@
1
- var xt = Object.defineProperty;
2
- var Ne = (e) => {
1
+ var yt = Object.defineProperty;
2
+ var Pe = (e) => {
3
3
  throw TypeError(e);
4
4
  };
5
- var yt = (e, t, r) => t in e ? xt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
6
- var S = (e, t, r) => yt(e, typeof t != "symbol" ? t + "" : t, r), Ee = (e, t, r) => t.has(e) || Ne("Cannot " + r);
7
- var l = (e, t, r) => (Ee(e, t, "read from private field"), r ? r.call(e) : t.get(e)), N = (e, t, r) => t.has(e) ? Ne("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), y = (e, t, r, s) => (Ee(e, t, "write to private field"), s ? s.call(e, r) : t.set(e, r), r);
5
+ var bt = (e, t, r) => t in e ? yt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
6
+ var S = (e, t, r) => bt(e, typeof t != "symbol" ? t + "" : t, r), Ce = (e, t, r) => t.has(e) || Pe("Cannot " + r);
7
+ var c = (e, t, r) => (Ce(e, t, "read from private field"), r ? r.call(e) : t.get(e)), N = (e, t, r) => t.has(e) ? Pe("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), y = (e, t, r, s) => (Ce(e, t, "write to private field"), s ? s.call(e, r) : t.set(e, r), r);
8
8
  var J = (e, t, r, s) => ({
9
9
  set _(n) {
10
10
  y(e, t, n, r);
11
11
  },
12
12
  get _() {
13
- return l(e, t, s);
13
+ return c(e, t, s);
14
14
  }
15
15
  });
16
- import { a as Be, A as bt, H as he, M as jt, u as wt } from "./AnchorLink-CDlhr8gL.js";
17
- import { d as St, R as Nt, N as re, u as Et, L as fe } from "./index-Yn8c3UWE.js";
16
+ import { a as He, A as jt, H as me, M as wt, u as St } from "./AnchorLink-CDlhr8gL.js";
17
+ import { d as Nt, R as Et, N as ae, u as Pt, L as ge } from "./index-Yn8c3UWE.js";
18
18
  import { u as Ct } from "./state-tsXBLONe.js";
19
- import { E as ze, S as D, a as Pt, R as kt } from "./SlotletProvider-DyomlzGx.js";
19
+ import { E as Ue, S as D, a as kt, R as At } from "./SlotletProvider-DyomlzGx.js";
20
20
  import { j as a } from "./jsx-runtime-B6kdoens.js";
21
- import { Button as At } from "./ui/Button.js";
22
- import { Callout as Dt } from "./ui/Callout.js";
23
- import { S as He, l as Ue, Q as Ot, n as w, m as Ce, o as Pe, p as O, q as Mt, r as Rt, t as It, v as Tt, w as ke, x as Ae, y as _t, h as De, z as Oe, A as Ft, d as Qt, B as $e, C as qt, j as Q, u as F, D as Ke, E as Lt, g as Bt, Z as zt } from "./utils-DcpDOncX.js";
24
- import { M as Ht, u as ae } from "./hook-hEqe7fPB.js";
21
+ import { Button as Dt } from "./ui/Button.js";
22
+ import { Callout as Ot } from "./ui/Callout.js";
23
+ import { S as $e, l as Ke, Q as Mt, n as w, m as ke, o as Ae, p as O, q as Rt, r as It, t as Tt, v as _t, w as De, x as Oe, y as Ft, h as Me, z as Re, A as Qt, d as qt, B as Ve, C as Lt, j as Q, u as F, D as Ze, E as zt, g as Bt, Z as Ht } from "./utils-DcpDOncX.js";
24
+ import { M as Ut, u as se } from "./hook-hEqe7fPB.js";
25
25
  import * as G from "react";
26
- import Ve, { StrictMode as Ze, useState as q, useEffect as L, useRef as me, useCallback as Ut, Suspense as ge, memo as Ye, forwardRef as $t, createContext as We, Component as Kt, createElement as Me, useMemo as se, useContext as Vt, Fragment as Zt } from "react";
27
- import { a as pe, c as Yt } from "./_commonjsHelpers-BkfeUUK-.js";
28
- import { B as Wt } from "./router-lfyopgBI.js";
29
- import { I as Xt, y as Jt, u as ve, j as xe, O as Xe } from "./index-Czzd9rjU.js";
30
- import { S as le, a as ne } from "./SidebarBadge-DxFJcJ6V.js";
31
- import { C as ye } from "./ClientOnly-E7hGysn1.js";
32
- import { ChevronRightIcon as Gt, ExternalLinkIcon as er, CircleXIcon as tr, SearchIcon as rr, MoonStarIcon as ar, SunIcon as sr, MenuIcon as nr, PanelLeftIcon as ir } from "lucide-react";
33
- import { Drawer as Je, DrawerTrigger as Ge, DrawerContent as et, DrawerTitle as tt } from "./ui/Drawer.js";
26
+ import Ye, { StrictMode as We, useState as q, useEffect as L, useRef as pe, useCallback as $t, Suspense as ve, memo as Xe, forwardRef as Kt, createContext as Je, Component as Vt, createElement as Ie, useMemo as ne, useContext as Zt, Fragment as Yt } from "react";
27
+ import { a as xe, c as Wt } from "./_commonjsHelpers-BkfeUUK-.js";
28
+ import { B as Xt } from "./router-lfyopgBI.js";
29
+ import { I as Jt, y as Gt, u as ye, j as be, O as Ge } from "./index-Czzd9rjU.js";
30
+ import { S as ue, a as ie } from "./SidebarBadge-DxFJcJ6V.js";
31
+ import { C as je } from "./ClientOnly-E7hGysn1.js";
32
+ import { ChevronRightIcon as er, ExternalLinkIcon as tr, CircleXIcon as rr, SearchIcon as ar, MoonStarIcon as sr, SunIcon as nr, MenuIcon as ir, PanelLeftIcon as or } from "lucide-react";
33
+ import { Drawer as et, DrawerTrigger as tt, DrawerContent as rt, DrawerTitle as at } from "./ui/Drawer.js";
34
34
  import { c as R } from "./cn-BmFQLtkS.js";
35
- import { u as be, a as or, V as lr } from "./Markdown-ievDDhFT.js";
36
- import { c as cr, a as ur } from "./index-BuAyrJe3.js";
37
- import * as ie from "@radix-ui/react-collapsible";
38
- import { B as ce } from "./Button-jK0EsymC.js";
39
- import { DropdownMenu as dr, DropdownMenuTrigger as hr, DropdownMenuContent as fr, DropdownMenuLabel as mr, DropdownMenuSeparator as gr, DropdownMenuSub as pr, DropdownMenuSubTrigger as vr, DropdownMenuPortal as xr, DropdownMenuSubContent as yr, DropdownMenuItem as br } from "./ui/DropdownMenu.js";
40
- import { VisuallyHidden as rt } from "@radix-ui/react-visually-hidden";
35
+ import { u as we, a as lr, V as cr } from "./Markdown-ievDDhFT.js";
36
+ import { c as ur, a as dr } from "./index-BuAyrJe3.js";
37
+ import * as oe from "@radix-ui/react-collapsible";
38
+ import { B as de } from "./Button-jK0EsymC.js";
39
+ import { DropdownMenu as hr, DropdownMenuTrigger as fr, DropdownMenuContent as mr, DropdownMenuLabel as gr, DropdownMenuSeparator as le, DropdownMenuSub as pr, DropdownMenuSubTrigger as vr, DropdownMenuPortal as xr, DropdownMenuSubContent as yr, DropdownMenuItem as br } from "./ui/DropdownMenu.js";
40
+ import { VisuallyHidden as st } from "@radix-ui/react-visually-hidden";
41
41
  import { z as jr, J as wr } from "./SyntaxHighlight-DkLOsjHS.js";
42
42
  import { Z as Sr } from "./invariant-Caa8-XvF.js";
43
43
  import { S as Nr } from "./Spinner-3cQDBVGr.js";
44
44
  function Er({ error: e }) {
45
- return /* @__PURE__ */ a.jsx(ze, { error: e });
45
+ return /* @__PURE__ */ a.jsx(Ue, { error: e });
46
46
  }
47
- var k, Qe, Cr = (Qe = class extends He {
47
+ var k, Le, Pr = (Le = class extends $e {
48
48
  constructor(t = {}) {
49
49
  super();
50
50
  N(this, k);
51
51
  this.config = t, y(this, k, /* @__PURE__ */ new Map());
52
52
  }
53
53
  build(t, r, s) {
54
- const n = r.queryKey, o = r.queryHash ?? Ue(n, r);
54
+ const n = r.queryKey, o = r.queryHash ?? Ke(n, r);
55
55
  let i = this.get(o);
56
- return i || (i = new Ot({
56
+ return i || (i = new Mt({
57
57
  cache: this,
58
58
  queryKey: n,
59
59
  queryHash: o,
@@ -63,14 +63,14 @@ var k, Qe, Cr = (Qe = class extends He {
63
63
  }), this.add(i)), i;
64
64
  }
65
65
  add(t) {
66
- l(this, k).has(t.queryHash) || (l(this, k).set(t.queryHash, t), this.notify({
66
+ c(this, k).has(t.queryHash) || (c(this, k).set(t.queryHash, t), this.notify({
67
67
  type: "added",
68
68
  query: t
69
69
  }));
70
70
  }
71
71
  remove(t) {
72
- const r = l(this, k).get(t.queryHash);
73
- r && (t.destroy(), r === t && l(this, k).delete(t.queryHash), this.notify({ type: "removed", query: t }));
72
+ const r = c(this, k).get(t.queryHash);
73
+ r && (t.destroy(), r === t && c(this, k).delete(t.queryHash), this.notify({ type: "removed", query: t }));
74
74
  }
75
75
  clear() {
76
76
  w.batch(() => {
@@ -80,20 +80,20 @@ var k, Qe, Cr = (Qe = class extends He {
80
80
  });
81
81
  }
82
82
  get(t) {
83
- return l(this, k).get(t);
83
+ return c(this, k).get(t);
84
84
  }
85
85
  getAll() {
86
- return [...l(this, k).values()];
86
+ return [...c(this, k).values()];
87
87
  }
88
88
  find(t) {
89
89
  const r = { exact: !0, ...t };
90
90
  return this.getAll().find(
91
- (s) => Ce(r, s)
91
+ (s) => ke(r, s)
92
92
  );
93
93
  }
94
94
  findAll(t = {}) {
95
95
  const r = this.getAll();
96
- return Object.keys(t).length > 0 ? r.filter((s) => Ce(t, s)) : r;
96
+ return Object.keys(t).length > 0 ? r.filter((s) => ke(t, s)) : r;
97
97
  }
98
98
  notify(t) {
99
99
  w.batch(() => {
@@ -116,7 +116,7 @@ var k, Qe, Cr = (Qe = class extends He {
116
116
  });
117
117
  });
118
118
  }
119
- }, k = new WeakMap(), Qe), j, Z, qe, Pr = (qe = class extends He {
119
+ }, k = new WeakMap(), Le), j, Z, ze, Cr = (ze = class extends $e {
120
120
  constructor(t = {}) {
121
121
  super();
122
122
  N(this, j);
@@ -124,7 +124,7 @@ var k, Qe, Cr = (Qe = class extends He {
124
124
  this.config = t, y(this, j, /* @__PURE__ */ new Map()), y(this, Z, Date.now());
125
125
  }
126
126
  build(t, r, s) {
127
- const n = new Ht({
127
+ const n = new Ut({
128
128
  mutationCache: this,
129
129
  mutationId: ++J(this, Z)._,
130
130
  options: t.defaultMutationOptions(r),
@@ -133,26 +133,26 @@ var k, Qe, Cr = (Qe = class extends He {
133
133
  return this.add(n), n;
134
134
  }
135
135
  add(t) {
136
- const r = ee(t), s = l(this, j).get(r) ?? [];
137
- s.push(t), l(this, j).set(r, s), this.notify({ type: "added", mutation: t });
136
+ const r = ee(t), s = c(this, j).get(r) ?? [];
137
+ s.push(t), c(this, j).set(r, s), this.notify({ type: "added", mutation: t });
138
138
  }
139
139
  remove(t) {
140
140
  var s;
141
141
  const r = ee(t);
142
- if (l(this, j).has(r)) {
143
- const n = (s = l(this, j).get(r)) == null ? void 0 : s.filter((o) => o !== t);
144
- n && (n.length === 0 ? l(this, j).delete(r) : l(this, j).set(r, n));
142
+ if (c(this, j).has(r)) {
143
+ const n = (s = c(this, j).get(r)) == null ? void 0 : s.filter((o) => o !== t);
144
+ n && (n.length === 0 ? c(this, j).delete(r) : c(this, j).set(r, n));
145
145
  }
146
146
  this.notify({ type: "removed", mutation: t });
147
147
  }
148
148
  canRun(t) {
149
149
  var s;
150
- const r = (s = l(this, j).get(ee(t))) == null ? void 0 : s.find((n) => n.state.status === "pending");
150
+ const r = (s = c(this, j).get(ee(t))) == null ? void 0 : s.find((n) => n.state.status === "pending");
151
151
  return !r || r === t;
152
152
  }
153
153
  runNext(t) {
154
154
  var s;
155
- const r = (s = l(this, j).get(ee(t))) == null ? void 0 : s.find((n) => n !== t && n.state.isPaused);
155
+ const r = (s = c(this, j).get(ee(t))) == null ? void 0 : s.find((n) => n !== t && n.state.isPaused);
156
156
  return (r == null ? void 0 : r.continue()) ?? Promise.resolve();
157
157
  }
158
158
  clear() {
@@ -163,16 +163,16 @@ var k, Qe, Cr = (Qe = class extends He {
163
163
  });
164
164
  }
165
165
  getAll() {
166
- return [...l(this, j).values()].flat();
166
+ return [...c(this, j).values()].flat();
167
167
  }
168
168
  find(t) {
169
169
  const r = { exact: !0, ...t };
170
170
  return this.getAll().find(
171
- (s) => Pe(r, s)
171
+ (s) => Ae(r, s)
172
172
  );
173
173
  }
174
174
  findAll(t = {}) {
175
- return this.getAll().filter((r) => Pe(t, r));
175
+ return this.getAll().filter((r) => Ae(t, r));
176
176
  }
177
177
  notify(t) {
178
178
  w.batch(() => {
@@ -189,18 +189,18 @@ var k, Qe, Cr = (Qe = class extends He {
189
189
  )
190
190
  );
191
191
  }
192
- }, j = new WeakMap(), Z = new WeakMap(), qe);
192
+ }, j = new WeakMap(), Z = new WeakMap(), ze);
193
193
  function ee(e) {
194
194
  var t;
195
195
  return ((t = e.options.scope) == null ? void 0 : t.id) ?? String(e.mutationId);
196
196
  }
197
- function Re(e) {
197
+ function Te(e) {
198
198
  return {
199
199
  onFetch: (t, r) => {
200
200
  var p, f, h, g, v;
201
201
  const s = t.options, n = (h = (f = (p = t.fetchOptions) == null ? void 0 : p.meta) == null ? void 0 : f.fetchMore) == null ? void 0 : h.direction, o = ((g = t.state.data) == null ? void 0 : g.pages) || [], i = ((v = t.state.data) == null ? void 0 : v.pageParams) || [];
202
- let c = { pages: [], pageParams: [] }, u = 0;
203
- const d = async () => {
202
+ let u = { pages: [], pageParams: [] }, d = 0;
203
+ const l = async () => {
204
204
  let m = !1;
205
205
  const E = (b) => {
206
206
  Object.defineProperty(b, "signal", {
@@ -209,48 +209,48 @@ function Re(e) {
209
209
  m = !0;
210
210
  }), t.signal)
211
211
  });
212
- }, W = Mt(t.options, t.fetchOptions), $ = async (b, C, K) => {
212
+ }, W = Rt(t.options, t.fetchOptions), $ = async (b, P, K) => {
213
213
  if (m)
214
214
  return Promise.reject();
215
- if (C == null && b.pages.length)
215
+ if (P == null && b.pages.length)
216
216
  return Promise.resolve(b);
217
217
  const X = {
218
218
  queryKey: t.queryKey,
219
- pageParam: C,
219
+ pageParam: P,
220
220
  direction: K ? "backward" : "forward",
221
221
  meta: t.options.meta
222
222
  };
223
223
  E(X);
224
- const vt = await W(
224
+ const xt = await W(
225
225
  X
226
- ), { maxPages: we } = t.options, Se = K ? Rt : It;
226
+ ), { maxPages: Ne } = t.options, Ee = K ? It : Tt;
227
227
  return {
228
- pages: Se(b.pages, vt, we),
229
- pageParams: Se(b.pageParams, C, we)
228
+ pages: Ee(b.pages, xt, Ne),
229
+ pageParams: Ee(b.pageParams, P, Ne)
230
230
  };
231
231
  };
232
232
  if (n && o.length) {
233
- const b = n === "backward", C = b ? kr : Ie, K = {
233
+ const b = n === "backward", P = b ? kr : _e, K = {
234
234
  pages: o,
235
235
  pageParams: i
236
- }, X = C(s, K);
237
- c = await $(K, X, b);
236
+ }, X = P(s, K);
237
+ u = await $(K, X, b);
238
238
  } else {
239
239
  const b = e ?? o.length;
240
240
  do {
241
- const C = u === 0 ? i[0] ?? s.initialPageParam : Ie(s, c);
242
- if (u > 0 && C == null)
241
+ const P = d === 0 ? i[0] ?? s.initialPageParam : _e(s, u);
242
+ if (d > 0 && P == null)
243
243
  break;
244
- c = await $(c, C), u++;
245
- } while (u < b);
244
+ u = await $(u, P), d++;
245
+ } while (d < b);
246
246
  }
247
- return c;
247
+ return u;
248
248
  };
249
249
  t.options.persister ? t.fetchFn = () => {
250
250
  var m, E;
251
251
  return (E = (m = t.options).persister) == null ? void 0 : E.call(
252
252
  m,
253
- d,
253
+ l,
254
254
  {
255
255
  queryKey: t.queryKey,
256
256
  meta: t.options.meta,
@@ -258,11 +258,11 @@ function Re(e) {
258
258
  },
259
259
  r
260
260
  );
261
- } : t.fetchFn = d;
261
+ } : t.fetchFn = l;
262
262
  }
263
263
  };
264
264
  }
265
- function Ie(e, { pages: t, pageParams: r }) {
265
+ function _e(e, { pages: t, pageParams: r }) {
266
266
  const s = t.length - 1;
267
267
  return t.length > 0 ? e.getNextPageParam(
268
268
  t[s],
@@ -275,65 +275,65 @@ function kr(e, { pages: t, pageParams: r }) {
275
275
  var s;
276
276
  return t.length > 0 ? (s = e.getPreviousPageParam) == null ? void 0 : s.call(e, t[0], t, r[0], r) : void 0;
277
277
  }
278
- var x, I, T, B, z, _, H, U, Le, Ar = (Le = class {
278
+ var x, I, T, z, B, _, H, U, Be, Ar = (Be = class {
279
279
  constructor(e = {}) {
280
280
  N(this, x);
281
281
  N(this, I);
282
282
  N(this, T);
283
- N(this, B);
284
283
  N(this, z);
284
+ N(this, B);
285
285
  N(this, _);
286
286
  N(this, H);
287
287
  N(this, U);
288
- y(this, x, e.queryCache || new Cr()), y(this, I, e.mutationCache || new Pr()), y(this, T, e.defaultOptions || {}), y(this, B, /* @__PURE__ */ new Map()), y(this, z, /* @__PURE__ */ new Map()), y(this, _, 0);
288
+ y(this, x, e.queryCache || new Pr()), y(this, I, e.mutationCache || new Cr()), y(this, T, e.defaultOptions || {}), y(this, z, /* @__PURE__ */ new Map()), y(this, B, /* @__PURE__ */ new Map()), y(this, _, 0);
289
289
  }
290
290
  mount() {
291
- J(this, _)._++, l(this, _) === 1 && (y(this, H, Tt.subscribe(async (e) => {
292
- e && (await this.resumePausedMutations(), l(this, x).onFocus());
293
- })), y(this, U, ke.subscribe(async (e) => {
294
- e && (await this.resumePausedMutations(), l(this, x).onOnline());
291
+ J(this, _)._++, c(this, _) === 1 && (y(this, H, _t.subscribe(async (e) => {
292
+ e && (await this.resumePausedMutations(), c(this, x).onFocus());
293
+ })), y(this, U, De.subscribe(async (e) => {
294
+ e && (await this.resumePausedMutations(), c(this, x).onOnline());
295
295
  })));
296
296
  }
297
297
  unmount() {
298
298
  var e, t;
299
- J(this, _)._--, l(this, _) === 0 && ((e = l(this, H)) == null || e.call(this), y(this, H, void 0), (t = l(this, U)) == null || t.call(this), y(this, U, void 0));
299
+ J(this, _)._--, c(this, _) === 0 && ((e = c(this, H)) == null || e.call(this), y(this, H, void 0), (t = c(this, U)) == null || t.call(this), y(this, U, void 0));
300
300
  }
301
301
  isFetching(e) {
302
- return l(this, x).findAll({ ...e, fetchStatus: "fetching" }).length;
302
+ return c(this, x).findAll({ ...e, fetchStatus: "fetching" }).length;
303
303
  }
304
304
  isMutating(e) {
305
- return l(this, I).findAll({ ...e, status: "pending" }).length;
305
+ return c(this, I).findAll({ ...e, status: "pending" }).length;
306
306
  }
307
307
  getQueryData(e) {
308
308
  var r;
309
309
  const t = this.defaultQueryOptions({ queryKey: e });
310
- return (r = l(this, x).get(t.queryHash)) == null ? void 0 : r.state.data;
310
+ return (r = c(this, x).get(t.queryHash)) == null ? void 0 : r.state.data;
311
311
  }
312
312
  ensureQueryData(e) {
313
313
  const t = this.getQueryData(e.queryKey);
314
314
  if (t === void 0)
315
315
  return this.fetchQuery(e);
316
316
  {
317
- const r = this.defaultQueryOptions(e), s = l(this, x).build(this, r);
318
- return e.revalidateIfStale && s.isStaleByTime(Ae(r.staleTime, s)) && this.prefetchQuery(r), Promise.resolve(t);
317
+ const r = this.defaultQueryOptions(e), s = c(this, x).build(this, r);
318
+ return e.revalidateIfStale && s.isStaleByTime(Oe(r.staleTime, s)) && this.prefetchQuery(r), Promise.resolve(t);
319
319
  }
320
320
  }
321
321
  getQueriesData(e) {
322
- return l(this, x).findAll(e).map(({ queryKey: t, state: r }) => {
322
+ return c(this, x).findAll(e).map(({ queryKey: t, state: r }) => {
323
323
  const s = r.data;
324
324
  return [t, s];
325
325
  });
326
326
  }
327
327
  setQueryData(e, t, r) {
328
- const s = this.defaultQueryOptions({ queryKey: e }), n = l(this, x).get(
328
+ const s = this.defaultQueryOptions({ queryKey: e }), n = c(this, x).get(
329
329
  s.queryHash
330
- ), o = n == null ? void 0 : n.state.data, i = _t(t, o);
330
+ ), o = n == null ? void 0 : n.state.data, i = Ft(t, o);
331
331
  if (i !== void 0)
332
- return l(this, x).build(this, s).setData(i, { ...r, manual: !0 });
332
+ return c(this, x).build(this, s).setData(i, { ...r, manual: !0 });
333
333
  }
334
334
  setQueriesData(e, t, r) {
335
335
  return w.batch(
336
- () => l(this, x).findAll(e).map(({ queryKey: s }) => [
336
+ () => c(this, x).findAll(e).map(({ queryKey: s }) => [
337
337
  s,
338
338
  this.setQueryData(s, t, r)
339
339
  ])
@@ -342,10 +342,10 @@ var x, I, T, B, z, _, H, U, Le, Ar = (Le = class {
342
342
  getQueryState(e) {
343
343
  var r;
344
344
  const t = this.defaultQueryOptions({ queryKey: e });
345
- return (r = l(this, x).get(t.queryHash)) == null ? void 0 : r.state;
345
+ return (r = c(this, x).get(t.queryHash)) == null ? void 0 : r.state;
346
346
  }
347
347
  removeQueries(e) {
348
- const t = l(this, x);
348
+ const t = c(this, x);
349
349
  w.batch(() => {
350
350
  t.findAll(e).forEach((r) => {
351
351
  t.remove(r);
@@ -353,7 +353,7 @@ var x, I, T, B, z, _, H, U, Le, Ar = (Le = class {
353
353
  });
354
354
  }
355
355
  resetQueries(e, t) {
356
- const r = l(this, x), s = {
356
+ const r = c(this, x), s = {
357
357
  type: "active",
358
358
  ...e
359
359
  };
@@ -363,13 +363,13 @@ var x, I, T, B, z, _, H, U, Le, Ar = (Le = class {
363
363
  }
364
364
  cancelQueries(e = {}, t = {}) {
365
365
  const r = { revert: !0, ...t }, s = w.batch(
366
- () => l(this, x).findAll(e).map((n) => n.cancel(r))
366
+ () => c(this, x).findAll(e).map((n) => n.cancel(r))
367
367
  );
368
368
  return Promise.all(s).then(O).catch(O);
369
369
  }
370
370
  invalidateQueries(e = {}, t = {}) {
371
371
  return w.batch(() => {
372
- if (l(this, x).findAll(e).forEach((s) => {
372
+ if (c(this, x).findAll(e).forEach((s) => {
373
373
  s.invalidate();
374
374
  }), e.refetchType === "none")
375
375
  return Promise.resolve();
@@ -385,7 +385,7 @@ var x, I, T, B, z, _, H, U, Le, Ar = (Le = class {
385
385
  ...t,
386
386
  cancelRefetch: (t == null ? void 0 : t.cancelRefetch) ?? !0
387
387
  }, s = w.batch(
388
- () => l(this, x).findAll(e).filter((n) => !n.isDisabled()).map((n) => {
388
+ () => c(this, x).findAll(e).filter((n) => !n.isDisabled()).map((n) => {
389
389
  let o = n.fetch(void 0, r);
390
390
  return r.throwOnError || (o = o.catch(O)), n.state.fetchStatus === "paused" ? Promise.resolve() : o;
391
391
  })
@@ -395,98 +395,98 @@ var x, I, T, B, z, _, H, U, Le, Ar = (Le = class {
395
395
  fetchQuery(e) {
396
396
  const t = this.defaultQueryOptions(e);
397
397
  t.retry === void 0 && (t.retry = !1);
398
- const r = l(this, x).build(this, t);
398
+ const r = c(this, x).build(this, t);
399
399
  return r.isStaleByTime(
400
- Ae(t.staleTime, r)
400
+ Oe(t.staleTime, r)
401
401
  ) ? r.fetch(t) : Promise.resolve(r.state.data);
402
402
  }
403
403
  prefetchQuery(e) {
404
404
  return this.fetchQuery(e).then(O).catch(O);
405
405
  }
406
406
  fetchInfiniteQuery(e) {
407
- return e.behavior = Re(e.pages), this.fetchQuery(e);
407
+ return e.behavior = Te(e.pages), this.fetchQuery(e);
408
408
  }
409
409
  prefetchInfiniteQuery(e) {
410
410
  return this.fetchInfiniteQuery(e).then(O).catch(O);
411
411
  }
412
412
  ensureInfiniteQueryData(e) {
413
- return e.behavior = Re(e.pages), this.ensureQueryData(e);
413
+ return e.behavior = Te(e.pages), this.ensureQueryData(e);
414
414
  }
415
415
  resumePausedMutations() {
416
- return ke.isOnline() ? l(this, I).resumePausedMutations() : Promise.resolve();
416
+ return De.isOnline() ? c(this, I).resumePausedMutations() : Promise.resolve();
417
417
  }
418
418
  getQueryCache() {
419
- return l(this, x);
419
+ return c(this, x);
420
420
  }
421
421
  getMutationCache() {
422
- return l(this, I);
422
+ return c(this, I);
423
423
  }
424
424
  getDefaultOptions() {
425
- return l(this, T);
425
+ return c(this, T);
426
426
  }
427
427
  setDefaultOptions(e) {
428
428
  y(this, T, e);
429
429
  }
430
430
  setQueryDefaults(e, t) {
431
- l(this, B).set(De(e), {
431
+ c(this, z).set(Me(e), {
432
432
  queryKey: e,
433
433
  defaultOptions: t
434
434
  });
435
435
  }
436
436
  getQueryDefaults(e) {
437
- const t = [...l(this, B).values()];
437
+ const t = [...c(this, z).values()];
438
438
  let r = {};
439
439
  return t.forEach((s) => {
440
- Oe(e, s.queryKey) && (r = { ...r, ...s.defaultOptions });
440
+ Re(e, s.queryKey) && (r = { ...r, ...s.defaultOptions });
441
441
  }), r;
442
442
  }
443
443
  setMutationDefaults(e, t) {
444
- l(this, z).set(De(e), {
444
+ c(this, B).set(Me(e), {
445
445
  mutationKey: e,
446
446
  defaultOptions: t
447
447
  });
448
448
  }
449
449
  getMutationDefaults(e) {
450
- const t = [...l(this, z).values()];
450
+ const t = [...c(this, B).values()];
451
451
  let r = {};
452
452
  return t.forEach((s) => {
453
- Oe(e, s.mutationKey) && (r = { ...r, ...s.defaultOptions });
453
+ Re(e, s.mutationKey) && (r = { ...r, ...s.defaultOptions });
454
454
  }), r;
455
455
  }
456
456
  defaultQueryOptions(e) {
457
457
  if (e._defaulted)
458
458
  return e;
459
459
  const t = {
460
- ...l(this, T).queries,
460
+ ...c(this, T).queries,
461
461
  ...this.getQueryDefaults(e.queryKey),
462
462
  ...e,
463
463
  _defaulted: !0
464
464
  };
465
- return t.queryHash || (t.queryHash = Ue(
465
+ return t.queryHash || (t.queryHash = Ke(
466
466
  t.queryKey,
467
467
  t
468
- )), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.enabled !== !0 && t.queryFn === Ft && (t.enabled = !1), t;
468
+ )), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.enabled !== !0 && t.queryFn === Qt && (t.enabled = !1), t;
469
469
  }
470
470
  defaultMutationOptions(e) {
471
471
  return e != null && e._defaulted ? e : {
472
- ...l(this, T).mutations,
472
+ ...c(this, T).mutations,
473
473
  ...(e == null ? void 0 : e.mutationKey) && this.getMutationDefaults(e.mutationKey),
474
474
  ...e,
475
475
  _defaulted: !0
476
476
  };
477
477
  }
478
478
  clear() {
479
- l(this, x).clear(), l(this, I).clear();
479
+ c(this, x).clear(), c(this, I).clear();
480
480
  }
481
- }, x = new WeakMap(), I = new WeakMap(), T = new WeakMap(), B = new WeakMap(), z = new WeakMap(), _ = new WeakMap(), H = new WeakMap(), U = new WeakMap(), Le);
481
+ }, x = new WeakMap(), I = new WeakMap(), T = new WeakMap(), z = new WeakMap(), B = new WeakMap(), _ = new WeakMap(), H = new WeakMap(), U = new WeakMap(), Be);
482
482
  function Dr(e) {
483
483
  return e;
484
484
  }
485
- function Te(e, t, r) {
486
- var u, d;
485
+ function Fe(e, t, r) {
486
+ var d, l;
487
487
  if (typeof t != "object" || t === null)
488
488
  return;
489
- const s = e.getMutationCache(), n = e.getQueryCache(), o = ((u = r == null ? void 0 : r.defaultOptions) == null ? void 0 : u.deserializeData) ?? ((d = e.getDefaultOptions().hydrate) == null ? void 0 : d.deserializeData) ?? Dr, i = t.mutations || [], c = t.queries || [];
489
+ const s = e.getMutationCache(), n = e.getQueryCache(), o = ((d = r == null ? void 0 : r.defaultOptions) == null ? void 0 : d.deserializeData) ?? ((l = e.getDefaultOptions().hydrate) == null ? void 0 : l.deserializeData) ?? Dr, i = t.mutations || [], u = t.queries || [];
490
490
  i.forEach(({ state: p, ...f }) => {
491
491
  var h, g;
492
492
  s.build(
@@ -498,15 +498,15 @@ function Te(e, t, r) {
498
498
  },
499
499
  p
500
500
  );
501
- }), c.forEach(({ queryKey: p, state: f, queryHash: h, meta: g, promise: v }) => {
501
+ }), u.forEach(({ queryKey: p, state: f, queryHash: h, meta: g, promise: v }) => {
502
502
  var W, $;
503
503
  let m = n.get(h);
504
504
  const E = f.data === void 0 ? f.data : o(f.data);
505
505
  if (m) {
506
506
  if (m.state.dataUpdatedAt < f.dataUpdatedAt) {
507
- const { fetchStatus: b, ...C } = f;
507
+ const { fetchStatus: b, ...P } = f;
508
508
  m.setState({
509
- ...C,
509
+ ...P,
510
510
  data: E
511
511
  });
512
512
  }
@@ -540,14 +540,14 @@ var Or = ({
540
540
  state: r,
541
541
  queryClient: s
542
542
  }) => {
543
- const n = Qt(s), [o, i] = G.useState(), c = G.useRef(t);
544
- return c.current = t, G.useMemo(() => {
543
+ const n = qt(s), [o, i] = G.useState(), u = G.useRef(t);
544
+ return u.current = t, G.useMemo(() => {
545
545
  if (r) {
546
546
  if (typeof r != "object")
547
547
  return;
548
- const u = n.getQueryCache(), d = r.queries || [], p = [], f = [];
549
- for (const h of d) {
550
- const g = u.get(h.queryHash);
548
+ const d = n.getQueryCache(), l = r.queries || [], p = [], f = [];
549
+ for (const h of l) {
550
+ const g = d.get(h.queryHash);
551
551
  if (!g)
552
552
  p.push(h);
553
553
  else {
@@ -557,17 +557,17 @@ var Or = ({
557
557
  v && (!m || h.state.dataUpdatedAt > m.state.dataUpdatedAt) && f.push(h);
558
558
  }
559
559
  }
560
- p.length > 0 && Te(n, { queries: p }, c.current), f.length > 0 && i(
560
+ p.length > 0 && Fe(n, { queries: p }, u.current), f.length > 0 && i(
561
561
  (h) => h ? [...h, ...f] : f
562
562
  );
563
563
  }
564
564
  }, [n, o, r]), G.useEffect(() => {
565
- o && (Te(n, { queries: o }, c.current), i(void 0));
565
+ o && (Fe(n, { queries: o }, u.current), i(void 0));
566
566
  }, [n, o]), e;
567
567
  }, Y = {};
568
- const Mr = /* @__PURE__ */ pe(Wt), Rr = /* @__PURE__ */ pe(Xt), Ir = /* @__PURE__ */ pe(St);
568
+ const Mr = /* @__PURE__ */ xe(Xt), Rr = /* @__PURE__ */ xe(Jt), Ir = /* @__PURE__ */ xe(Nt);
569
569
  Object.defineProperty(Y, "__esModule", { value: !0 });
570
- var Tr = Ve, A = Mr, je = Rr, M = Ir;
570
+ var Tr = Ye, A = Mr, Se = Rr, M = Ir;
571
571
  function _r(e) {
572
572
  if (e && e.__esModule) return e;
573
573
  var t = /* @__PURE__ */ Object.create(null);
@@ -583,7 +583,7 @@ function _r(e) {
583
583
  }
584
584
  }), t.default = e, Object.freeze(t);
585
585
  }
586
- var P = /* @__PURE__ */ _r(Tr);
586
+ var C = /* @__PURE__ */ _r(Tr);
587
587
  function Fr({
588
588
  basename: e,
589
589
  children: t,
@@ -597,8 +597,8 @@ function Fr({
597
597
  hash: r.hash || "",
598
598
  state: r.state != null ? r.state : null,
599
599
  key: r.key || "default"
600
- }, i = at();
601
- return /* @__PURE__ */ P.createElement(M.Router, {
600
+ }, i = nt();
601
+ return /* @__PURE__ */ C.createElement(M.Router, {
602
602
  basename: e,
603
603
  children: t,
604
604
  location: o,
@@ -617,46 +617,46 @@ function Qr({
617
617
  t && e || (process.env.NODE_ENV !== "production" ? A.UNSAFE_invariant(!1, "You must provide `router` and `context` to <StaticRouterProvider>") : A.UNSAFE_invariant(!1));
618
618
  let n = {
619
619
  router: t,
620
- navigator: at(),
620
+ navigator: nt(),
621
621
  static: !0,
622
622
  staticContext: e,
623
623
  basename: e.basename || "/"
624
624
  }, o = /* @__PURE__ */ new Map(), i = "";
625
625
  if (r !== !1) {
626
- let u = {
626
+ let d = {
627
627
  loaderData: e.loaderData,
628
628
  actionData: e.actionData,
629
629
  errors: Lr(e.errors)
630
630
  };
631
- i = `window.__staticRouterHydrationData = JSON.parse(${Kr(JSON.stringify(JSON.stringify(u)))});`;
631
+ i = `window.__staticRouterHydrationData = JSON.parse(${Kr(JSON.stringify(JSON.stringify(d)))});`;
632
632
  }
633
633
  let {
634
- state: c
634
+ state: u
635
635
  } = n.router;
636
- return /* @__PURE__ */ P.createElement(P.Fragment, null, /* @__PURE__ */ P.createElement(M.UNSAFE_DataRouterContext.Provider, {
636
+ return /* @__PURE__ */ C.createElement(C.Fragment, null, /* @__PURE__ */ C.createElement(M.UNSAFE_DataRouterContext.Provider, {
637
637
  value: n
638
- }, /* @__PURE__ */ P.createElement(M.UNSAFE_DataRouterStateContext.Provider, {
639
- value: c
640
- }, /* @__PURE__ */ P.createElement(M.UNSAFE_FetchersContext.Provider, {
638
+ }, /* @__PURE__ */ C.createElement(M.UNSAFE_DataRouterStateContext.Provider, {
639
+ value: u
640
+ }, /* @__PURE__ */ C.createElement(M.UNSAFE_FetchersContext.Provider, {
641
641
  value: o
642
- }, /* @__PURE__ */ P.createElement(M.UNSAFE_ViewTransitionContext.Provider, {
642
+ }, /* @__PURE__ */ C.createElement(M.UNSAFE_ViewTransitionContext.Provider, {
643
643
  value: {
644
644
  isTransitioning: !1
645
645
  }
646
- }, /* @__PURE__ */ P.createElement(M.Router, {
646
+ }, /* @__PURE__ */ C.createElement(M.Router, {
647
647
  basename: n.basename,
648
- location: c.location,
649
- navigationType: c.historyAction,
648
+ location: u.location,
649
+ navigationType: u.historyAction,
650
650
  navigator: n.navigator,
651
651
  static: n.static,
652
652
  future: {
653
653
  v7_relativeSplatPath: t.future.v7_relativeSplatPath
654
654
  }
655
- }, /* @__PURE__ */ P.createElement(qr, {
655
+ }, /* @__PURE__ */ C.createElement(qr, {
656
656
  routes: t.routes,
657
657
  future: t.future,
658
- state: c
659
- })))))), i ? /* @__PURE__ */ P.createElement("script", {
658
+ state: u
659
+ })))))), i ? /* @__PURE__ */ C.createElement("script", {
660
660
  suppressHydrationWarning: !0,
661
661
  nonce: s,
662
662
  dangerouslySetInnerHTML: {
@@ -669,7 +669,7 @@ function qr({
669
669
  future: t,
670
670
  state: r
671
671
  }) {
672
- return je.UNSAFE_useRoutesImpl(e, void 0, r, t);
672
+ return Se.UNSAFE_useRoutesImpl(e, void 0, r, t);
673
673
  }
674
674
  function Lr(e) {
675
675
  if (!e) return null;
@@ -689,10 +689,10 @@ function Lr(e) {
689
689
  } : r[s] = n;
690
690
  return r;
691
691
  }
692
- function at() {
692
+ function nt() {
693
693
  return {
694
- createHref: st,
695
- encodeLocation: nt,
694
+ createHref: it,
695
+ encodeLocation: ot,
696
696
  push(e) {
697
697
  throw new Error(`You cannot use navigator.push() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(e)})\` somewhere in your app.`);
698
698
  },
@@ -710,32 +710,32 @@ function at() {
710
710
  }
711
711
  };
712
712
  }
713
- function Br(e, t) {
713
+ function zr(e, t) {
714
714
  return A.createStaticHandler(e, {
715
715
  ...t,
716
- mapRouteProperties: je.UNSAFE_mapRouteProperties
716
+ mapRouteProperties: Se.UNSAFE_mapRouteProperties
717
717
  });
718
718
  }
719
- function zr(e, t, r = {}) {
720
- let s = {}, n = A.UNSAFE_convertRoutesToDataRoutes(e, je.UNSAFE_mapRouteProperties, void 0, s), o = t.matches.map((c) => {
721
- let u = s[c.route.id] || c.route;
719
+ function Br(e, t, r = {}) {
720
+ let s = {}, n = A.UNSAFE_convertRoutesToDataRoutes(e, Se.UNSAFE_mapRouteProperties, void 0, s), o = t.matches.map((u) => {
721
+ let d = s[u.route.id] || u.route;
722
722
  return {
723
- ...c,
724
- route: u
723
+ ...u,
724
+ route: d
725
725
  };
726
- }), i = (c) => `You cannot use router.${c}() on the server because it is a stateless environment`;
726
+ }), i = (u) => `You cannot use router.${u}() on the server because it is a stateless environment`;
727
727
  return {
728
728
  get basename() {
729
729
  return t.basename;
730
730
  },
731
731
  get future() {
732
- var c, u;
732
+ var u, d;
733
733
  return {
734
734
  v7_fetcherPersist: !1,
735
735
  v7_normalizeFormMethod: !1,
736
- v7_partialHydration: ((c = r.future) == null ? void 0 : c.v7_partialHydration) === !0,
736
+ v7_partialHydration: ((u = r.future) == null ? void 0 : u.v7_partialHydration) === !0,
737
737
  v7_prependBasename: !1,
738
- v7_relativeSplatPath: ((u = r.future) == null ? void 0 : u.v7_relativeSplatPath) === !0,
738
+ v7_relativeSplatPath: ((d = r.future) == null ? void 0 : d.v7_relativeSplatPath) === !0,
739
739
  v7_skipActionErrorRevalidation: !1
740
740
  };
741
741
  },
@@ -779,8 +779,8 @@ function zr(e, t, r = {}) {
779
779
  revalidate() {
780
780
  throw i("revalidate");
781
781
  },
782
- createHref: st,
783
- encodeLocation: nt,
782
+ createHref: it,
783
+ encodeLocation: ot,
784
784
  getFetcher() {
785
785
  return A.IDLE_FETCHER;
786
786
  },
@@ -806,10 +806,10 @@ function zr(e, t, r = {}) {
806
806
  }
807
807
  };
808
808
  }
809
- function st(e) {
809
+ function it(e) {
810
810
  return typeof e == "string" ? e : M.createPath(e);
811
811
  }
812
- function nt(e) {
812
+ function ot(e) {
813
813
  let t = typeof e == "string" ? e : M.createPath(e);
814
814
  t = t.replace(/ $/, "%20");
815
815
  let r = Hr.test(t) ? new URL(t) : new URL(t, "http://localhost");
@@ -831,8 +831,8 @@ function Kr(e) {
831
831
  }
832
832
  Y.StaticRouter = Fr;
833
833
  var Vr = Y.StaticRouterProvider = Qr;
834
- Y.createStaticHandler = Br;
835
- Y.createStaticRouter = zr;
834
+ Y.createStaticHandler = zr;
835
+ Y.createStaticRouter = Br;
836
836
  const Zr = new Ar({
837
837
  defaultOptions: {
838
838
  queries: {
@@ -842,8 +842,8 @@ const Zr = new Ar({
842
842
  }), Yr = ({
843
843
  router: e,
844
844
  hydrate: t = !1
845
- }) => /* @__PURE__ */ a.jsx(Ze, { children: /* @__PURE__ */ a.jsx($e, { client: Zr, children: /* @__PURE__ */ a.jsx(Or, { state: t ? window.DATA : void 0, children: /* @__PURE__ */ a.jsx(Be, { children: /* @__PURE__ */ a.jsx(le.Provider, { value: { stagger: !t }, children: /* @__PURE__ */ a.jsx(
846
- Nt,
845
+ }) => /* @__PURE__ */ a.jsx(We, { children: /* @__PURE__ */ a.jsx(Ve, { client: Zr, children: /* @__PURE__ */ a.jsx(Or, { state: t ? window.DATA : void 0, children: /* @__PURE__ */ a.jsx(He, { children: /* @__PURE__ */ a.jsx(ue.Provider, { value: { stagger: !t }, children: /* @__PURE__ */ a.jsx(
846
+ Et,
847
847
  {
848
848
  router: e,
849
849
  future: { v7_startTransition: !0 }
@@ -853,63 +853,63 @@ const Zr = new Ar({
853
853
  context: t,
854
854
  queryClient: r,
855
855
  helmetContext: s
856
- }) => /* @__PURE__ */ a.jsx(Ze, { children: /* @__PURE__ */ a.jsx($e, { client: r, children: /* @__PURE__ */ a.jsx(Be, { context: s, children: /* @__PURE__ */ a.jsx(Vr, { router: e, context: t }) }) }) });
857
- var ue = { exports: {} };
856
+ }) => /* @__PURE__ */ a.jsx(We, { children: /* @__PURE__ */ a.jsx(Ve, { client: r, children: /* @__PURE__ */ a.jsx(He, { context: s, children: /* @__PURE__ */ a.jsx(Vr, { router: e, context: t }) }) }) });
857
+ var he = { exports: {} };
858
858
  (function(e, t) {
859
859
  (function(r, s) {
860
- s(t, Ve);
861
- })(Yt, function(r, s) {
860
+ s(t, Ye);
861
+ })(Wt, function(r, s) {
862
862
  const n = {
863
863
  delay: 500,
864
864
  minDuration: 200,
865
865
  ssr: !0
866
866
  };
867
867
  function o() {
868
- const [c, u] = s.useState(!0);
868
+ const [u, d] = s.useState(!0);
869
869
  return s.useEffect(() => {
870
- u(!1);
871
- }, []), c;
870
+ d(!1);
871
+ }, []), u;
872
872
  }
873
- function i(c, u) {
874
- u = Object.assign({}, n, u);
875
- const d = o() && u.ssr, p = d && c ? "DISPLAY" : "IDLE", [f, h] = s.useState(p), g = s.useRef(null);
873
+ function i(u, d) {
874
+ d = Object.assign({}, n, d);
875
+ const l = o() && d.ssr, p = l && u ? "DISPLAY" : "IDLE", [f, h] = s.useState(p), g = s.useRef(null);
876
876
  return s.useEffect(() => {
877
- if (c && (f === "IDLE" || d)) {
877
+ if (u && (f === "IDLE" || l)) {
878
878
  clearTimeout(g.current);
879
- const v = d ? 0 : u.delay;
879
+ const v = l ? 0 : d.delay;
880
880
  g.current = setTimeout(() => {
881
- if (!c)
881
+ if (!u)
882
882
  return h("IDLE");
883
883
  g.current = setTimeout(() => {
884
884
  h("EXPIRE");
885
- }, u.minDuration), h("DISPLAY");
886
- }, v), d || h("DELAY");
885
+ }, d.minDuration), h("DISPLAY");
886
+ }, v), l || h("DELAY");
887
887
  }
888
- !c && f !== "DISPLAY" && (clearTimeout(g.current), h("IDLE"));
889
- }, [c, f, u.delay, u.minDuration, d]), s.useEffect(() => () => clearTimeout(g.current), []), f === "DISPLAY" || f === "EXPIRE";
888
+ !u && f !== "DISPLAY" && (clearTimeout(g.current), h("IDLE"));
889
+ }, [u, f, d.delay, d.minDuration, l]), s.useEffect(() => () => clearTimeout(g.current), []), f === "DISPLAY" || f === "EXPIRE";
890
890
  }
891
891
  r.defaultOptions = n, r.useSpinDelay = i;
892
892
  });
893
- })(ue, ue.exports);
894
- var Xr = ue.exports;
893
+ })(he, he.exports);
894
+ var Xr = he.exports;
895
895
  const Jr = ({
896
896
  category: e,
897
897
  level: t
898
898
  }) => {
899
899
  var h, g;
900
- const r = qt(e), [s, n] = q(!1), o = e.collapsible ?? !0, i = e.collapsed ?? !0, c = !!(!o || !i || r), [u, d] = q(c), p = Jt(((h = e.link) == null ? void 0 : h.id) ?? "");
900
+ const r = Lt(e), [s, n] = q(!1), o = e.collapsible ?? !0, i = e.collapsed ?? !0, u = !!(!o || !i || r), [d, l] = q(u), p = Gt(((h = e.link) == null ? void 0 : h.id) ?? "");
901
901
  L(() => {
902
- r && d(!0);
902
+ r && l(!0);
903
903
  }, [r]);
904
904
  const f = o && /* @__PURE__ */ a.jsx(
905
905
  "button",
906
906
  {
907
907
  type: "button",
908
908
  onClick: (v) => {
909
- v.preventDefault(), d((m) => !m), n(!0);
909
+ v.preventDefault(), l((m) => !m), n(!0);
910
910
  },
911
911
  children: /* @__PURE__ */ a.jsx(
912
- Gt,
912
+ er,
913
913
  {
914
914
  size: 16,
915
915
  className: R(
@@ -921,14 +921,14 @@ const Jr = ({
921
921
  }
922
922
  );
923
923
  return /* @__PURE__ */ a.jsxs(
924
- ie.Root,
924
+ oe.Root,
925
925
  {
926
926
  className: "flex flex-col",
927
- defaultOpen: c,
928
- open: u,
929
- onOpenChange: () => d(!0),
927
+ defaultOpen: u,
928
+ open: d,
929
+ onOpenChange: () => l(!0),
930
930
  children: [
931
- /* @__PURE__ */ a.jsx(ie.Trigger, { className: "group", asChild: !0, disabled: !o, children: /* @__PURE__ */ a.jsxs(
931
+ /* @__PURE__ */ a.jsx(oe.Trigger, { className: "group", asChild: !0, disabled: !o, children: /* @__PURE__ */ a.jsxs(
932
932
  "div",
933
933
  {
934
934
  onClick: () => n(!0),
@@ -952,12 +952,12 @@ const Jr = ({
952
952
  }
953
953
  ),
954
954
  ((g = e.link) == null ? void 0 : g.type) === "doc" ? /* @__PURE__ */ a.jsx(
955
- re,
955
+ ae,
956
956
  {
957
957
  to: Q(e.link.id),
958
958
  className: "flex-1",
959
959
  onClick: () => {
960
- p && !u && d(!0);
960
+ p && !d && l(!0);
961
961
  },
962
962
  children: /* @__PURE__ */ a.jsxs(
963
963
  "div",
@@ -981,14 +981,14 @@ const Jr = ({
981
981
  }
982
982
  ) }),
983
983
  /* @__PURE__ */ a.jsx(
984
- ie.Content,
984
+ oe.Content,
985
985
  {
986
986
  className: R(
987
987
  // CollapsibleContent class is used to animate and it should only be applied when the user has triggered the toggle
988
988
  s && "CollapsibleContent"
989
989
  ),
990
990
  children: /* @__PURE__ */ a.jsx("ul", { className: "mt-1 border-l ms-0.5", children: e.items.map((v) => /* @__PURE__ */ a.jsx(
991
- de,
991
+ fe,
992
992
  {
993
993
  level: t + 1,
994
994
  item: v
@@ -1000,7 +1000,7 @@ const Jr = ({
1000
1000
  ]
1001
1001
  }
1002
1002
  );
1003
- }, V = cr(
1003
+ }, V = ur(
1004
1004
  "flex items-center gap-2 px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
1005
1005
  {
1006
1006
  variants: {
@@ -1021,18 +1021,18 @@ const Jr = ({
1021
1021
  isActive: !1
1022
1022
  }
1023
1023
  }
1024
- ), it = "data-anchor", de = ({
1024
+ ), lt = "data-anchor", fe = ({
1025
1025
  item: e,
1026
1026
  level: t = 0
1027
1027
  }) => {
1028
1028
  var n, o;
1029
- const { activeAnchor: r } = be(), [s] = Et();
1029
+ const { activeAnchor: r } = we(), [s] = Pt();
1030
1030
  switch (e.type) {
1031
1031
  case "category":
1032
1032
  return /* @__PURE__ */ a.jsx(Jr, { category: e, level: t });
1033
1033
  case "doc":
1034
1034
  return /* @__PURE__ */ a.jsxs(
1035
- re,
1035
+ ae,
1036
1036
  {
1037
1037
  className: ({ isActive: i }) => V({ isActive: i, isTopLevel: t === 0 }),
1038
1038
  to: Q(e.id),
@@ -1040,17 +1040,17 @@ const Jr = ({
1040
1040
  e.icon && /* @__PURE__ */ a.jsx(e.icon, { size: 16, className: "align-[-0.125em]" }),
1041
1041
  e.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1042
1042
  /* @__PURE__ */ a.jsx("span", { className: "truncate flex-1", title: e.label, children: e.label }),
1043
- /* @__PURE__ */ a.jsx(ne, { ...e.badge })
1043
+ /* @__PURE__ */ a.jsx(ie, { ...e.badge })
1044
1044
  ] }) : e.label
1045
1045
  ]
1046
1046
  }
1047
1047
  );
1048
1048
  case "link":
1049
1049
  return e.href.startsWith("#") ? /* @__PURE__ */ a.jsx(
1050
- bt,
1050
+ jt,
1051
1051
  {
1052
1052
  to: { hash: e.href, search: s.toString() },
1053
- [it]: e.href.slice(1),
1053
+ [lt]: e.href.slice(1),
1054
1054
  className: V({
1055
1055
  isActive: e.href.slice(1) === r,
1056
1056
  isTopLevel: t === 0,
@@ -1058,7 +1058,7 @@ const Jr = ({
1058
1058
  }),
1059
1059
  children: e.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1060
1060
  /* @__PURE__ */ a.jsx("span", { className: "truncate", title: e.label, children: e.label }),
1061
- /* @__PURE__ */ a.jsx(ne, { ...e.badge })
1061
+ /* @__PURE__ */ a.jsx(ie, { ...e.badge })
1062
1062
  ] }) : /* @__PURE__ */ a.jsx("span", { className: "break-all", children: e.label })
1063
1063
  }
1064
1064
  ) : e.href.startsWith("http") ? /* @__PURE__ */ a.jsxs(
@@ -1070,11 +1070,11 @@ const Jr = ({
1070
1070
  rel: "noopener noreferrer",
1071
1071
  children: [
1072
1072
  /* @__PURE__ */ a.jsx("span", { className: "whitespace-normal", children: e.label }),
1073
- /* @__PURE__ */ a.jsx("span", { className: "whitespace-nowrap", children: /* @__PURE__ */ a.jsx(er, { className: "inline -translate-y-0.5", size: 12 }) })
1073
+ /* @__PURE__ */ a.jsx("span", { className: "whitespace-nowrap", children: /* @__PURE__ */ a.jsx(tr, { className: "inline -translate-y-0.5", size: 12 }) })
1074
1074
  ]
1075
1075
  }
1076
1076
  ) : /* @__PURE__ */ a.jsx(
1077
- re,
1077
+ ae,
1078
1078
  {
1079
1079
  className: V({
1080
1080
  className: ((o = e.badge) == null ? void 0 : o.placement) !== "start" && "justify-between"
@@ -1082,7 +1082,7 @@ const Jr = ({
1082
1082
  to: e.href,
1083
1083
  children: e.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1084
1084
  /* @__PURE__ */ a.jsx("span", { className: "truncate", title: e.label, children: e.label }),
1085
- /* @__PURE__ */ a.jsx(ne, { ...e.badge })
1085
+ /* @__PURE__ */ a.jsx(ie, { ...e.badge })
1086
1086
  ] }) : /* @__PURE__ */ a.jsx("span", { className: "break-all", children: e.label })
1087
1087
  }
1088
1088
  );
@@ -1092,11 +1092,11 @@ const Jr = ({
1092
1092
  const r = e.getBoundingClientRect();
1093
1093
  r.top >= 0 && r.left >= 0 && r.bottom <= (window.innerHeight || document.documentElement.clientHeight) && r.right <= (window.innerWidth || document.documentElement.clientWidth) || e.scrollIntoView(t);
1094
1094
  }, ea = () => {
1095
- const e = ve(), { setActiveAnchor: t } = be();
1095
+ const e = ye(), { setActiveAnchor: t } = we();
1096
1096
  L(() => {
1097
1097
  if (!e.hash) return;
1098
1098
  const r = decodeURIComponent(e.hash.split("/")[0].slice(1)), s = () => {
1099
- const n = document.getElementById(r), o = document.querySelector(`[${it}="${r}"]`);
1099
+ const n = document.getElementById(r), o = document.querySelector(`[${lt}="${r}"]`);
1100
1100
  return n ? (n.scrollIntoView(), Gr(o), requestIdleCallback(() => t(r)), !0) : !1;
1101
1101
  };
1102
1102
  if (!s()) {
@@ -1107,7 +1107,7 @@ const Jr = ({
1107
1107
  }
1108
1108
  }, [e.hash, t]);
1109
1109
  }, ta = () => {
1110
- const e = ve(), t = me(e.pathname);
1110
+ const e = ye(), t = pe(e.pathname);
1111
1111
  L(() => {
1112
1112
  t.current !== e.pathname && (window.scrollTo(0, 0), t.current = e.pathname);
1113
1113
  }, [e.pathname]);
@@ -1124,7 +1124,7 @@ function ra({
1124
1124
  }
1125
1125
  );
1126
1126
  }
1127
- const aa = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems == "function", sa = (e) => "getRoutes" in e && typeof e.getRoutes == "function", na = (e) => "renderSearch" in e && typeof e.renderSearch == "function", ia = (e) => "initialize" in e && typeof e.initialize == "function", oa = (e) => "getHead" in e && typeof e.getHead == "function", la = (e) => "getMdxComponents" in e && typeof e.getMdxComponents == "function", ca = (e) => "getIdentities" in e && typeof e.getIdentities == "function", _e = {
1127
+ const aa = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems == "function", sa = (e) => "getRoutes" in e && typeof e.getRoutes == "function", na = (e) => "renderSearch" in e && typeof e.renderSearch == "function", ia = (e) => "initialize" in e && typeof e.initialize == "function", oa = (e) => "getHead" in e && typeof e.getHead == "function", la = (e) => "getMdxComponents" in e && typeof e.getMdxComponents == "function", ca = (e) => "getIdentities" in e && typeof e.getIdentities == "function", Qe = {
1128
1128
  info: "bg-blue-500",
1129
1129
  note: "bg-gray-500",
1130
1130
  tip: "bg-green-600",
@@ -1134,7 +1134,7 @@ const aa = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
1134
1134
  const { page: e } = F(), [t, r] = q(!0);
1135
1135
  if (!(e != null && e.banner) || !t)
1136
1136
  return /* @__PURE__ */ a.jsx("style", { children: ":root { --banner-height: 0px; }" });
1137
- const s = e.banner.color && e.banner.color in _e ? _e[e.banner.color] : e.banner.color ? void 0 : "bg-primary", n = s ? {} : { backgroundColor: e.banner.color };
1137
+ const s = e.banner.color && e.banner.color in Qe ? Qe[e.banner.color] : e.banner.color ? void 0 : "bg-primary", n = s ? {} : { backgroundColor: e.banner.color };
1138
1138
  return /* @__PURE__ */ a.jsxs(
1139
1139
  "div",
1140
1140
  {
@@ -1151,14 +1151,14 @@ const aa = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
1151
1151
  type: "button",
1152
1152
  className: "md:absolute md:right-4 -m-1.5 p-1.5 hover:bg-accent-foreground/10 rounded-md",
1153
1153
  onClick: () => r(!1),
1154
- children: /* @__PURE__ */ a.jsx(tr, { size: 16 })
1154
+ children: /* @__PURE__ */ a.jsx(rr, { size: 16 })
1155
1155
  }
1156
1156
  )
1157
1157
  ]
1158
1158
  }
1159
1159
  );
1160
- }, ot = () => {
1161
- const e = F(), [t, r] = q(!1), s = Ut(() => r(!1), []);
1160
+ }, ct = () => {
1161
+ const e = F(), [t, r] = q(!1), s = $t(() => r(!1), []);
1162
1162
  L(() => {
1163
1163
  if (t)
1164
1164
  return;
@@ -1179,22 +1179,22 @@ const aa = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
1179
1179
  className: "flex items-center border border-input hover:bg-accent hover:text-accent-foreground p-4 relative h-8 justify-start rounded-lg bg-background text-sm text-muted-foreground shadow-none w-full sm:w-72",
1180
1180
  children: [
1181
1181
  /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-2 flex-grow", children: [
1182
- /* @__PURE__ */ a.jsx(rr, { size: 14 }),
1182
+ /* @__PURE__ */ a.jsx(ar, { size: 14 }),
1183
1183
  "Search"
1184
1184
  ] }),
1185
1185
  /* @__PURE__ */ a.jsx("kbd", { className: "absolute right-[0.3rem] top-[0.3rem] hidden h-5 select-none items-center gap-1 rounded border bg-muted px-1.5 font-mono text-[11px] font-medium opacity-100 sm:flex", children: "⌘K" })
1186
1186
  ]
1187
1187
  }
1188
1188
  ),
1189
- /* @__PURE__ */ a.jsx(ge, { fallback: null, children: n.renderSearch({
1189
+ /* @__PURE__ */ a.jsx(ve, { fallback: null, children: n.renderSearch({
1190
1190
  isOpen: t,
1191
1191
  onClose: s
1192
1192
  }) })
1193
1193
  ] }) : null;
1194
- }, lt = () => {
1195
- const { resolvedTheme: e, setTheme: t } = jr(), r = e === "dark" ? ar : sr;
1196
- return /* @__PURE__ */ a.jsx(ye, { children: /* @__PURE__ */ a.jsx(
1197
- ce,
1194
+ }, ut = () => {
1195
+ const { resolvedTheme: e, setTheme: t } = jr(), r = e === "dark" ? sr : nr;
1196
+ return /* @__PURE__ */ a.jsx(je, { children: /* @__PURE__ */ a.jsx(
1197
+ de,
1198
1198
  {
1199
1199
  variant: "ghost",
1200
1200
  "aria-label": e === "dark" ? "Switch to light mode" : "Switch to dark mode",
@@ -1203,19 +1203,19 @@ const aa = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
1203
1203
  children: /* @__PURE__ */ a.jsx(r, { size: 18 })
1204
1204
  }
1205
1205
  ) });
1206
- }, ct = (e) => (t) => t.display === "auth" && e || t.display === "anon" && !e || !t.display || t.display === "always", da = () => {
1207
- const { topNavigation: e } = F(), { isAuthenticated: t } = ae();
1208
- return e.length <= 1 ? /* @__PURE__ */ a.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ a.jsx(ge, { children: /* @__PURE__ */ a.jsx("nav", { className: "hidden lg:block border-b text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ a.jsx("ul", { className: "flex flex-row items-center gap-8", children: e.filter(ct(t)).map((r) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(ut, { ...r }) }, r.id)) }) }) });
1209
- }, ut = ({
1206
+ }, dt = (e) => (t) => t.display === "auth" && e || t.display === "anon" && !e || !t.display || t.display === "always", da = () => {
1207
+ const { topNavigation: e } = F(), { isAuthenticated: t } = se();
1208
+ return e.length <= 1 ? /* @__PURE__ */ a.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ a.jsx(ve, { children: /* @__PURE__ */ a.jsx("nav", { className: "hidden lg:block border-b text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ a.jsx("ul", { className: "flex flex-row items-center gap-8", children: e.filter(dt(t)).map((r) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(ht, { ...r }) }, r.id)) }) }) });
1209
+ }, ht = ({
1210
1210
  id: e,
1211
1211
  label: t,
1212
1212
  default: r
1213
1213
  }) => {
1214
- var d;
1215
- const { sidebars: s } = F(), n = s[e], o = Ke(), i = !!xe().location, c = ((d = o.topNavItem) == null ? void 0 : d.id) === e && !i, u = r ?? (n ? Lt(n, (p) => {
1214
+ var l;
1215
+ const { sidebars: s } = F(), n = s[e], o = Ze(), i = !!be().location, u = ((l = o.topNavItem) == null ? void 0 : l.id) === e && !i, d = r ?? (n ? zt(n, (p) => {
1216
1216
  if (p.type === "doc") return Q(p.id);
1217
1217
  }) : Q(e));
1218
- if (!u)
1218
+ if (!d)
1219
1219
  throw new Sr("Page not found.", {
1220
1220
  developerHint: `No links found in top navigation for '${e}'. Check that the sidebar isn't empty or that a default link is set.`
1221
1221
  });
@@ -1223,38 +1223,38 @@ const aa = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
1223
1223
  // We don't use isActive here because it has to be inside the sidebar,
1224
1224
  // the top nav id doesn't necessarily start with the sidebar id
1225
1225
  /* @__PURE__ */ a.jsx(
1226
- re,
1226
+ ae,
1227
1227
  {
1228
- className: ({ isPending: p }) => ur(
1228
+ className: ({ isPending: p }) => dr(
1229
1229
  "block lg:py-3.5 font-medium -mb-px border-b-2",
1230
- c || p ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
1230
+ u || p ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
1231
1231
  ),
1232
- to: u,
1232
+ to: d,
1233
1233
  children: t
1234
1234
  }
1235
1235
  )
1236
1236
  );
1237
1237
  }, ha = () => {
1238
- const { topNavigation: e } = F(), { isAuthenticated: t } = ae(), [r, s] = q(!1);
1238
+ const { topNavigation: e } = F(), { isAuthenticated: t } = se(), [r, s] = q(!1);
1239
1239
  return /* @__PURE__ */ a.jsxs(
1240
- Je,
1240
+ et,
1241
1241
  {
1242
1242
  direction: "right",
1243
1243
  open: r,
1244
1244
  onOpenChange: (n) => s(n),
1245
1245
  children: [
1246
- /* @__PURE__ */ a.jsx("div", { className: "flex lg:hidden justify-self-end", children: /* @__PURE__ */ a.jsx(Ge, { className: "lg:hidden", children: /* @__PURE__ */ a.jsx(nr, { size: 22 }) }) }),
1246
+ /* @__PURE__ */ a.jsx("div", { className: "flex lg:hidden justify-self-end", children: /* @__PURE__ */ a.jsx(tt, { className: "lg:hidden", children: /* @__PURE__ */ a.jsx(ir, { size: 22 }) }) }),
1247
1247
  /* @__PURE__ */ a.jsxs(
1248
- et,
1248
+ rt,
1249
1249
  {
1250
1250
  className: "lg:hidden h-screen right-0 left-auto w-[320px] rounded-none overflow-auto",
1251
1251
  "aria-describedby": void 0,
1252
1252
  children: [
1253
- /* @__PURE__ */ a.jsx(rt, { children: /* @__PURE__ */ a.jsx(tt, { children: "Navigation" }) }),
1254
- /* @__PURE__ */ a.jsx("div", { className: "flex p-4", children: /* @__PURE__ */ a.jsx(ot, {}) }),
1253
+ /* @__PURE__ */ a.jsx(st, { children: /* @__PURE__ */ a.jsx(at, { children: "Navigation" }) }),
1254
+ /* @__PURE__ */ a.jsx("div", { className: "flex p-4", children: /* @__PURE__ */ a.jsx(ct, {}) }),
1255
1255
  /* @__PURE__ */ a.jsxs("ul", { className: "flex flex-col items-center gap-4 p-4", children: [
1256
- /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(lt, {}) }),
1257
- e.filter(ct(t)).map((n) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx("button", { onClick: () => s(!1), children: /* @__PURE__ */ a.jsx(ut, { ...n }) }) }, n.label))
1256
+ /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(ut, {}) }),
1257
+ e.filter(dt(t)).map((n) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx("button", { onClick: () => s(!1), children: /* @__PURE__ */ a.jsx(ht, { ...n }) }) }, n.label))
1258
1258
  ] })
1259
1259
  ]
1260
1260
  }
@@ -1262,19 +1262,22 @@ const aa = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
1262
1262
  ]
1263
1263
  }
1264
1264
  );
1265
- }, dt = ({ item: e }) => e.children ? /* @__PURE__ */ a.jsxs(pr, { children: [
1265
+ }, re = ({ item: e }) => e.children ? /* @__PURE__ */ a.jsxs(pr, { children: [
1266
1266
  /* @__PURE__ */ a.jsx(vr, { children: e.label }),
1267
1267
  /* @__PURE__ */ a.jsx(xr, { children: /* @__PURE__ */ a.jsx(yr, { children: e.children.map((t, r) => (
1268
1268
  // eslint-disable-next-line react/no-array-index-key
1269
- /* @__PURE__ */ a.jsx(dt, { item: t }, r)
1269
+ /* @__PURE__ */ a.jsx(re, { item: t }, r)
1270
1270
  )) }) })
1271
- ] }, e.label) : /* @__PURE__ */ a.jsx(fe, { to: e.path ?? "", children: /* @__PURE__ */ a.jsx(br, { children: e.label }, e.label) }), ht = Ye(function() {
1272
- const t = ae(), { isAuthenticated: r, profile: s, isAuthEnabled: n } = ae(), o = F(), { page: i, plugins: c } = o, u = c.filter((d) => aa(d)).flatMap((d) => d.getProfileMenuItems(o)).map((d) => /* @__PURE__ */ a.jsx(dt, { item: d }, d.label));
1271
+ ] }, e.label) : /* @__PURE__ */ a.jsx(ge, { to: e.path ?? "", children: /* @__PURE__ */ a.jsxs(br, { className: "flex gap-2", children: [
1272
+ e.icon && /* @__PURE__ */ a.jsx(e.icon, { size: 16, strokeWidth: 1, absoluteStrokeWidth: !0 }),
1273
+ e.label
1274
+ ] }, e.label) }), ft = Xe(function() {
1275
+ const t = se(), { isAuthenticated: r, profile: s, isAuthEnabled: n } = se(), o = F(), { page: i, plugins: u } = o, d = u.filter((l) => aa(l)).flatMap((l) => l.getProfileMenuItems(o)).sort((l) => l.weight ?? 0);
1273
1276
  return /* @__PURE__ */ a.jsxs("header", { className: "sticky lg:top-0 z-10 bg-background/80 backdrop-blur w-full", children: [
1274
1277
  /* @__PURE__ */ a.jsx(ua, {}),
1275
1278
  /* @__PURE__ */ a.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
1276
1279
  /* @__PURE__ */ a.jsxs("div", { className: "grid grid-cols-2 lg:grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center border-b px-10 lg:px-12 h-[--top-header-height]", children: [
1277
- /* @__PURE__ */ a.jsx("div", { className: "flex", children: /* @__PURE__ */ a.jsx(fe, { to: "/", children: /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-3.5", children: [
1280
+ /* @__PURE__ */ a.jsx("div", { className: "flex", children: /* @__PURE__ */ a.jsx(ge, { to: "/", children: /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-3.5", children: [
1278
1281
  (i == null ? void 0 : i.logo) && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1279
1282
  /* @__PURE__ */ a.jsx(
1280
1283
  "img",
@@ -1307,25 +1310,36 @@ const aa = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
1307
1310
  /* @__PURE__ */ a.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: i == null ? void 0 : i.pageTitle })
1308
1311
  ] }) }) }),
1309
1312
  /* @__PURE__ */ a.jsxs("div", { className: "grid grid-cols-1 lg:grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
1310
- /* @__PURE__ */ a.jsx("div", { className: "w-full justify-center hidden lg:flex", children: /* @__PURE__ */ a.jsx(ot, {}) }),
1313
+ /* @__PURE__ */ a.jsx("div", { className: "w-full justify-center hidden lg:flex", children: /* @__PURE__ */ a.jsx(ct, {}) }),
1311
1314
  /* @__PURE__ */ a.jsx(ha, {}),
1312
1315
  /* @__PURE__ */ a.jsxs("div", { className: "hidden lg:flex items-center justify-self-end text-sm gap-2", children: [
1313
1316
  /* @__PURE__ */ a.jsx(D, { name: "head-navigation-start" }),
1314
1317
  n && /* @__PURE__ */ a.jsx(
1315
- ye,
1318
+ je,
1316
1319
  {
1317
1320
  fallback: /* @__PURE__ */ a.jsx(ra, { className: "rounded h-5 w-24 mr-4" }),
1318
- children: r ? u.length > 0 && /* @__PURE__ */ a.jsxs(dr, { modal: !1, children: [
1319
- /* @__PURE__ */ a.jsx(hr, { asChild: !0, children: /* @__PURE__ */ a.jsx(ce, { variant: "ghost", children: s != null && s.email ? `${s.email}` : "My Account" }) }),
1320
- /* @__PURE__ */ a.jsxs(fr, { className: "w-56", children: [
1321
- /* @__PURE__ */ a.jsx(mr, { children: "My Account" }),
1322
- /* @__PURE__ */ a.jsx(gr, {}),
1323
- u
1321
+ children: r ? Object.values(d).length > 0 && /* @__PURE__ */ a.jsxs(hr, { modal: !1, children: [
1322
+ /* @__PURE__ */ a.jsx(fr, { asChild: !0, children: /* @__PURE__ */ a.jsx(de, { variant: "ghost", children: s != null && s.name ? `${s.name}` : "My Account" }) }),
1323
+ /* @__PURE__ */ a.jsxs(mr, { className: "w-56", children: [
1324
+ /* @__PURE__ */ a.jsxs(gr, { children: [
1325
+ s != null && s.name ? `${s.name}` : "My Account",
1326
+ (s == null ? void 0 : s.email) && /* @__PURE__ */ a.jsx("div", { className: "font-normal text-muted-foreground", children: s.email })
1327
+ ] }),
1328
+ d.filter((l) => l.category === "top").length > 0 && /* @__PURE__ */ a.jsx(le, {}),
1329
+ d.filter((l) => l.category === "top").map((l) => /* @__PURE__ */ a.jsx(re, { item: l }, l.label)),
1330
+ d.filter(
1331
+ (l) => !l.category || l.category === "middle"
1332
+ ).length > 0 && /* @__PURE__ */ a.jsx(le, {}),
1333
+ d.filter(
1334
+ (l) => !l.category || l.category === "middle"
1335
+ ).map((l) => /* @__PURE__ */ a.jsx(re, { item: l }, l.label)),
1336
+ d.filter((l) => l.category === "bottom").length > 0 && /* @__PURE__ */ a.jsx(le, {}),
1337
+ d.filter((l) => l.category === "bottom").map((l) => /* @__PURE__ */ a.jsx(re, { item: l }, l.label))
1324
1338
  ] })
1325
- ] }) : /* @__PURE__ */ a.jsx(ce, { variant: "ghost", onClick: () => t.login(), children: "Login" })
1339
+ ] }) : /* @__PURE__ */ a.jsx(de, { variant: "ghost", onClick: () => t.login(), children: "Login" })
1326
1340
  }
1327
1341
  ),
1328
- /* @__PURE__ */ a.jsx(lt, {}),
1342
+ /* @__PURE__ */ a.jsx(ut, {}),
1329
1343
  /* @__PURE__ */ a.jsx(D, { name: "head-navigation-end" })
1330
1344
  ] })
1331
1345
  ] })
@@ -1335,7 +1349,7 @@ const aa = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
1335
1349
  /* @__PURE__ */ a.jsx(D, { name: "top-navigation-after" })
1336
1350
  ] })
1337
1351
  ] });
1338
- }), ft = $t(({ children: e, className: t, pushMainContent: r }, s) => /* @__PURE__ */ a.jsx(
1352
+ }), mt = Kt(({ children: e, className: t, pushMainContent: r }, s) => /* @__PURE__ */ a.jsx(
1339
1353
  "nav",
1340
1354
  {
1341
1355
  "data-navigation": String(r),
@@ -1349,58 +1363,58 @@ const aa = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
1349
1363
  children: e
1350
1364
  }
1351
1365
  ));
1352
- ft.displayName = "SidebarWrapper";
1366
+ mt.displayName = "SidebarWrapper";
1353
1367
  const fa = () => {
1354
- const e = me(null), t = Ke();
1368
+ const e = pe(null), t = Ze();
1355
1369
  return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1356
1370
  /* @__PURE__ */ a.jsxs(
1357
- ft,
1371
+ mt,
1358
1372
  {
1359
1373
  ref: e,
1360
1374
  pushMainContent: t.sidebar.length > 0,
1361
1375
  children: [
1362
1376
  /* @__PURE__ */ a.jsx(D, { name: "zudoku-before-navigation" }),
1363
- t.sidebar.map((r) => /* @__PURE__ */ a.jsx(de, { item: r }, r.label)),
1377
+ t.sidebar.map((r) => /* @__PURE__ */ a.jsx(fe, { item: r }, r.label)),
1364
1378
  /* @__PURE__ */ a.jsx(D, { name: "zudoku-after-navigation" })
1365
1379
  ]
1366
1380
  }
1367
1381
  ),
1368
1382
  /* @__PURE__ */ a.jsxs(
1369
- et,
1383
+ rt,
1370
1384
  {
1371
1385
  className: "lg:hidden h-screen left-0 p-6 w-[320px] rounded-none overflow-auto",
1372
1386
  "aria-describedby": void 0,
1373
1387
  children: [
1374
- /* @__PURE__ */ a.jsx(rt, { children: /* @__PURE__ */ a.jsx(tt, { children: "Sidebar" }) }),
1375
- t.sidebar.map((r) => /* @__PURE__ */ a.jsx(de, { item: r }, r.label))
1388
+ /* @__PURE__ */ a.jsx(st, { children: /* @__PURE__ */ a.jsx(at, { children: "Sidebar" }) }),
1389
+ t.sidebar.map((r) => /* @__PURE__ */ a.jsx(fe, { item: r }, r.label))
1376
1390
  ]
1377
1391
  }
1378
1392
  )
1379
1393
  ] });
1380
- }, Fe = () => /* @__PURE__ */ a.jsx("main", { className: "grid h-[calc(100vh-var(--header-height))] place-items-center", children: /* @__PURE__ */ a.jsx(Nr, {}) }), ma = ({ children: e }) => {
1381
- const t = ve(), { setActiveAnchor: r } = be(), { meta: s, authentication: n } = F();
1394
+ }, qe = () => /* @__PURE__ */ a.jsx("main", { className: "grid h-[calc(100vh-var(--header-height))] place-items-center", children: /* @__PURE__ */ a.jsx(Nr, {}) }), ma = ({ children: e }) => {
1395
+ const t = ye(), { setActiveAnchor: r } = we(), { meta: s, authentication: n } = F();
1382
1396
  ea(), ta();
1383
- const o = me(t.pathname);
1397
+ const o = pe(t.pathname);
1384
1398
  L(() => {
1385
- var u;
1386
- (u = n == null ? void 0 : n.pageLoad) == null || u.call(n);
1399
+ var d;
1400
+ (d = n == null ? void 0 : n.onPageLoad) == null || d.call(n);
1387
1401
  }, [n]), L(() => {
1388
1402
  t.pathname !== o.current && r(""), o.current = t.pathname;
1389
1403
  }, [t.pathname, r]);
1390
- const i = !!xe().location, c = Xr.useSpinDelay(i, {
1404
+ const i = !!be().location, u = Xr.useSpinDelay(i, {
1391
1405
  delay: 300,
1392
1406
  minDuration: 500
1393
1407
  });
1394
1408
  return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1395
1409
  !1,
1396
- /* @__PURE__ */ a.jsxs(he, { titleTemplate: s == null ? void 0 : s.title, children: [
1410
+ /* @__PURE__ */ a.jsxs(me, { titleTemplate: s == null ? void 0 : s.title, children: [
1397
1411
  (s == null ? void 0 : s.description) && /* @__PURE__ */ a.jsx("meta", { name: "description", content: s.description }),
1398
1412
  (s == null ? void 0 : s.favicon) && /* @__PURE__ */ a.jsx("link", { rel: "icon", href: s.favicon })
1399
1413
  ] }),
1400
1414
  /* @__PURE__ */ a.jsx(D, { name: "layout-before-head" }),
1401
- /* @__PURE__ */ a.jsx(ht, {}),
1415
+ /* @__PURE__ */ a.jsx(ft, {}),
1402
1416
  /* @__PURE__ */ a.jsx(D, { name: "layout-after-head" }),
1403
- /* @__PURE__ */ a.jsx("div", { className: "w-full max-w-screen-2xl mx-auto px-10 lg:px-12", children: c ? /* @__PURE__ */ a.jsx(Fe, {}) : /* @__PURE__ */ a.jsx(ge, { fallback: /* @__PURE__ */ a.jsx(Fe, {}), children: /* @__PURE__ */ a.jsxs(Je, { direction: "left", children: [
1417
+ /* @__PURE__ */ a.jsx("div", { className: "w-full max-w-screen-2xl mx-auto px-10 lg:px-12", children: u ? /* @__PURE__ */ a.jsx(qe, {}) : /* @__PURE__ */ a.jsx(ve, { fallback: /* @__PURE__ */ a.jsx(qe, {}), children: /* @__PURE__ */ a.jsxs(et, { direction: "left", children: [
1404
1418
  /* @__PURE__ */ a.jsx(fa, {}),
1405
1419
  /* @__PURE__ */ a.jsx(
1406
1420
  "div",
@@ -1409,8 +1423,8 @@ const fa = () => {
1409
1423
  "lg:hidden -mx-10 px-10 py-2 sticky bg-background/80 backdrop-blur z-10 top-0 left-0 right-0 border-b",
1410
1424
  "peer-data-[navigation=false]:hidden"
1411
1425
  ),
1412
- children: /* @__PURE__ */ a.jsxs(Ge, { className: "flex items-center gap-2", children: [
1413
- /* @__PURE__ */ a.jsx(ir, { size: 16, strokeWidth: 1.5 }),
1426
+ children: /* @__PURE__ */ a.jsxs(tt, { className: "flex items-center gap-2", children: [
1427
+ /* @__PURE__ */ a.jsx(or, { size: 16, strokeWidth: 1.5 }),
1414
1428
  /* @__PURE__ */ a.jsx("span", { className: "text-sm", children: "Menu" })
1415
1429
  ] })
1416
1430
  }
@@ -1427,20 +1441,20 @@ const fa = () => {
1427
1441
  ),
1428
1442
  children: [
1429
1443
  /* @__PURE__ */ a.jsx(D, { name: "zudoku-before-content" }),
1430
- e ?? /* @__PURE__ */ a.jsx(Xe, {}),
1444
+ e ?? /* @__PURE__ */ a.jsx(Ge, {}),
1431
1445
  /* @__PURE__ */ a.jsx(D, { name: "zudoku-after-content" })
1432
1446
  ]
1433
1447
  }
1434
1448
  )
1435
1449
  ] }) }) })
1436
1450
  ] });
1437
- }, ga = We(null), oe = {
1451
+ }, ga = Je(null), ce = {
1438
1452
  didCatch: !1,
1439
1453
  error: null
1440
1454
  };
1441
- class pa extends Kt {
1455
+ class pa extends Vt {
1442
1456
  constructor(t) {
1443
- super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = oe;
1457
+ super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = ce;
1444
1458
  }
1445
1459
  static getDerivedStateFromError(t) {
1446
1460
  return {
@@ -1458,7 +1472,7 @@ class pa extends Kt {
1458
1472
  (r = (s = this.props).onReset) === null || r === void 0 || r.call(s, {
1459
1473
  args: o,
1460
1474
  reason: "imperative-api"
1461
- }), this.setState(oe);
1475
+ }), this.setState(ce);
1462
1476
  }
1463
1477
  }
1464
1478
  componentDidCatch(t, r) {
@@ -1477,7 +1491,7 @@ class pa extends Kt {
1477
1491
  next: n,
1478
1492
  prev: t.resetKeys,
1479
1493
  reason: "keys"
1480
- }), this.setState(oe);
1494
+ }), this.setState(ce);
1481
1495
  }
1482
1496
  }
1483
1497
  render() {
@@ -1490,28 +1504,28 @@ class pa extends Kt {
1490
1504
  didCatch: o,
1491
1505
  error: i
1492
1506
  } = this.state;
1493
- let c = t;
1507
+ let u = t;
1494
1508
  if (o) {
1495
- const u = {
1509
+ const d = {
1496
1510
  error: i,
1497
1511
  resetErrorBoundary: this.resetErrorBoundary
1498
1512
  };
1499
1513
  if (typeof r == "function")
1500
- c = r(u);
1514
+ u = r(d);
1501
1515
  else if (s)
1502
- c = Me(s, u);
1516
+ u = Ie(s, d);
1503
1517
  else if (n !== void 0)
1504
- c = n;
1518
+ u = n;
1505
1519
  else
1506
1520
  throw i;
1507
1521
  }
1508
- return Me(ga.Provider, {
1522
+ return Ie(ga.Provider, {
1509
1523
  value: {
1510
1524
  didCatch: o,
1511
1525
  error: i,
1512
1526
  resetErrorBoundary: this.resetErrorBoundary
1513
1527
  }
1514
- }, c);
1528
+ }, u);
1515
1529
  }
1516
1530
  }
1517
1531
  function va() {
@@ -1556,25 +1570,25 @@ class xa {
1556
1570
  }
1557
1571
  }
1558
1572
  function ya({ error: e, resetErrorBoundary: t }) {
1559
- return /* @__PURE__ */ a.jsx(ze, { error: e });
1573
+ return /* @__PURE__ */ a.jsx(Ue, { error: e });
1560
1574
  }
1561
1575
  const te = globalThis;
1562
1576
  (!te.requestIdleCallback || !te.cancelIdleCallback) && (te.requestIdleCallback = (e) => setTimeout(e, 1), te.cancelIdleCallback = clearTimeout);
1563
- const mt = {
1564
- Header: ht
1565
- }, ba = We(mt), ja = ba.Provider, wa = ({
1577
+ const gt = {
1578
+ Header: ft
1579
+ }, ba = Je(gt), ja = ba.Provider, wa = ({
1566
1580
  children: e,
1567
1581
  context: t
1568
1582
  }) => (Bt({
1569
1583
  queryFn: async () => (await t.initialize(), !0),
1570
1584
  queryKey: ["zudoku-initialize"]
1571
- }), /* @__PURE__ */ a.jsx(zt.Provider, { value: t, children: e })), gt = Ye(
1585
+ }), /* @__PURE__ */ a.jsx(Ht.Provider, { value: t, children: e })), pt = Xe(
1572
1586
  ({ children: e, ...t }) => {
1573
1587
  var f, h;
1574
- const r = se(
1575
- () => ({ ...mt, ...t.overrides }),
1588
+ const r = ne(
1589
+ () => ({ ...gt, ...t.overrides }),
1576
1590
  [t.overrides]
1577
- ), s = se(() => {
1591
+ ), s = ne(() => {
1578
1592
  var v;
1579
1593
  return {
1580
1594
  ...(t.plugins ?? []).filter(la).flatMap(
@@ -1583,30 +1597,30 @@ const mt = {
1583
1597
  (m, E) => ({ ...m, ...E }),
1584
1598
  {}
1585
1599
  ),
1586
- ...or,
1600
+ ...lr,
1587
1601
  ...(v = t.mdx) == null ? void 0 : v.components
1588
1602
  };
1589
- }, [(f = t.mdx) == null ? void 0 : f.components, t.plugins]), { stagger: n } = Vt(le), [o, i] = q(!1), c = se(
1603
+ }, [(f = t.mdx) == null ? void 0 : f.components, t.plugins]), { stagger: n } = Zt(ue), [o, i] = q(!1), u = ne(
1590
1604
  () => o ? { stagger: !0 } : { stagger: n },
1591
1605
  [n, o]
1592
- ), u = xe();
1606
+ ), d = be();
1593
1607
  L(() => {
1594
1608
  o || i(!0);
1595
- }, [o, u.location]);
1596
- const [d] = q(() => new xa(t)), p = (h = t.plugins) == null ? void 0 : h.filter(oa).map((g, v) => {
1609
+ }, [o, d.location]);
1610
+ const [l] = q(() => new xa(t)), p = (h = t.plugins) == null ? void 0 : h.filter(oa).map((g, v) => {
1597
1611
  var m;
1598
- return /* @__PURE__ */ a.jsx(Zt, { children: (m = g.getHead) == null ? void 0 : m.call(g) }, v);
1612
+ return /* @__PURE__ */ a.jsx(Yt, { children: (m = g.getHead) == null ? void 0 : m.call(g) }, v);
1599
1613
  });
1600
1614
  return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1601
- /* @__PURE__ */ a.jsx(he, { children: p }),
1602
- /* @__PURE__ */ a.jsx(le.Provider, { value: c, children: /* @__PURE__ */ a.jsx(wa, { context: d, children: /* @__PURE__ */ a.jsx(jt, { components: s, children: /* @__PURE__ */ a.jsx(wr, { attribute: "class", disableTransitionOnChange: !0, children: /* @__PURE__ */ a.jsx(ja, { value: r, children: /* @__PURE__ */ a.jsx(Pt, { slotlets: t.slotlets, children: /* @__PURE__ */ a.jsx(lr, { children: e ?? /* @__PURE__ */ a.jsx(Xe, {}) }) }) }) }) }) }) })
1615
+ /* @__PURE__ */ a.jsx(me, { children: p }),
1616
+ /* @__PURE__ */ a.jsx(ue.Provider, { value: u, children: /* @__PURE__ */ a.jsx(wa, { context: l, children: /* @__PURE__ */ a.jsx(wt, { components: s, children: /* @__PURE__ */ a.jsx(wr, { attribute: "class", disableTransitionOnChange: !0, children: /* @__PURE__ */ a.jsx(ja, { value: r, children: /* @__PURE__ */ a.jsx(kt, { slotlets: t.slotlets, children: /* @__PURE__ */ a.jsx(cr, { children: e ?? /* @__PURE__ */ a.jsx(Ge, {}) }) }) }) }) }) }) })
1603
1617
  ] });
1604
1618
  }
1605
1619
  );
1606
- gt.displayName = "ZudokoInner";
1607
- const pt = (e) => /* @__PURE__ */ a.jsx(pa, { FallbackComponent: ya, children: /* @__PURE__ */ a.jsx(gt, { ...e }) });
1608
- pt.displayName = "Zudoku";
1609
- const Wa = wt, Xa = ma, Ja = kt, Ga = Er, es = Yr, ts = Wr, rs = he, as = F, ss = Ct, ns = pt, is = Dt, os = ye, ls = At, cs = fe;
1620
+ pt.displayName = "ZudokoInner";
1621
+ const vt = (e) => /* @__PURE__ */ a.jsx(pa, { FallbackComponent: ya, children: /* @__PURE__ */ a.jsx(pt, { ...e }) });
1622
+ vt.displayName = "Zudoku";
1623
+ const Wa = St, Xa = ma, Ja = At, Ga = Er, es = Yr, ts = Wr, rs = me, as = F, ss = Ct, ns = vt, is = Ot, os = je, ls = Dt, cs = ge;
1610
1624
  export {
1611
1625
  es as Bootstrap,
1612
1626
  ts as BootstrapStatic,