zudoku 0.16.1 → 0.16.3

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 (51) hide show
  1. package/dist/app/entry.server.js +4 -5
  2. package/dist/app/entry.server.js.map +1 -1
  3. package/dist/lib/components/Header.js +2 -2
  4. package/dist/lib/components/Header.js.map +1 -1
  5. package/dist/lib/plugins/openapi/CollapsibleCode.js +4 -2
  6. package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -1
  7. package/dist/lib/plugins/openapi/ParameterListItem.js +6 -1
  8. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  9. package/dist/lib/plugins/openapi/client/createMemoryClient.d.ts +1 -4
  10. package/dist/lib/plugins/openapi/client/createMemoryClient.js +9 -1
  11. package/dist/lib/plugins/openapi/client/createMemoryClient.js.map +1 -1
  12. package/dist/lib/plugins/openapi/client/createWorkerClient.js +2 -1
  13. package/dist/lib/plugins/openapi/client/createWorkerClient.js.map +1 -1
  14. package/dist/lib/ui/ActionButton.d.ts +2 -0
  15. package/dist/lib/ui/ActionButton.js +10 -0
  16. package/dist/lib/ui/ActionButton.js.map +1 -0
  17. package/dist/lib/util/useIsomorphicLayoutEffect.d.ts +3 -0
  18. package/dist/lib/util/useIsomorphicLayoutEffect.js +4 -0
  19. package/dist/lib/util/useIsomorphicLayoutEffect.js.map +1 -0
  20. package/lib/{OperationList-35iw_Gil.js → OperationList-BjppA5yM.js} +116 -113
  21. package/lib/OperationList-BjppA5yM.js.map +1 -0
  22. package/lib/{Route-BsEZmkNl.js → Route-D_djzMv3.js} +2 -2
  23. package/lib/{Route-BsEZmkNl.js.map → Route-D_djzMv3.js.map} +1 -1
  24. package/lib/{Spinner-C6zroowC.js → SidebarBadge-Bbt92M5K.js} +16 -18
  25. package/lib/SidebarBadge-Bbt92M5K.js.map +1 -0
  26. package/lib/Spinner-ChOGyPls.js +51 -0
  27. package/lib/Spinner-ChOGyPls.js.map +1 -0
  28. package/lib/{index-BdD8UbS-.js → index-_gtpPhlu.js} +342 -380
  29. package/lib/index-_gtpPhlu.js.map +1 -0
  30. package/lib/ui/ActionButton.js +24 -0
  31. package/lib/ui/ActionButton.js.map +1 -0
  32. package/lib/urql-core-35Qt_U4i.js +1511 -0
  33. package/lib/{urql-core-KJnLL26g.js.map → urql-core-35Qt_U4i.js.map} +1 -1
  34. package/lib/zudoku.components.js +159 -158
  35. package/lib/zudoku.components.js.map +1 -1
  36. package/lib/zudoku.openapi-worker.js +737 -729
  37. package/lib/zudoku.openapi-worker.js.map +1 -1
  38. package/lib/zudoku.plugin-openapi.js +2 -2
  39. package/package.json +2 -2
  40. package/src/app/entry.server.tsx +9 -5
  41. package/src/lib/components/Header.tsx +5 -5
  42. package/src/lib/plugins/openapi/CollapsibleCode.tsx +5 -8
  43. package/src/lib/plugins/openapi/ParameterListItem.tsx +37 -31
  44. package/src/lib/plugins/openapi/client/createMemoryClient.ts +17 -3
  45. package/src/lib/plugins/openapi/client/createWorkerClient.ts +5 -1
  46. package/src/lib/ui/ActionButton.tsx +28 -0
  47. package/src/lib/util/useIsomorphicLayoutEffect.ts +5 -0
  48. package/lib/OperationList-35iw_Gil.js.map +0 -1
  49. package/lib/Spinner-C6zroowC.js.map +0 -1
  50. package/lib/index-BdD8UbS-.js.map +0 -1
  51. package/lib/urql-core-KJnLL26g.js +0 -1455
@@ -18,32 +18,33 @@ import { e as mt, f as pt, R as vt, L as te, g as G, h as xt, O as _e, i as bt,
18
18
  import { u as jt } from "./state-CsuHT8ZO.js";
19
19
  import { E as Fe, S as k, a as wt, R as Nt } from "./SlotletProvider-Da7eFgd2.js";
20
20
  import { j as a } from "./jsx-runtime-B6kdoens.js";
21
- import { Button as ie } from "./ui/Button.js";
22
- import { Callout as Pt } from "./ui/Callout.js";
23
- import St, { StrictMode as Qe, createContext as Le, Component as Ct, createElement as we, useState as Q, useCallback as Be, useEffect as _, Suspense as de, memo as He, useMemo as re, useContext as Et, Fragment as kt, useRef as he, forwardRef as At } from "react";
21
+ import { Button as Pt } from "./ui/Button.js";
22
+ import { Callout as St } from "./ui/Callout.js";
23
+ import Ct, { StrictMode as Qe, createContext as Be, Component as Et, createElement as we, useState as Q, useCallback as Le, useEffect as _, Suspense as de, memo as He, useMemo as re, useContext as kt, Fragment as At, useRef as he, forwardRef as Mt } from "react";
24
24
  import { a as fe } from "./_commonjsHelpers-BkfeUUK-.js";
25
- import { B as Mt } from "./router-BsfSoK2j.js";
25
+ import { B as Dt } from "./router-BsfSoK2j.js";
26
26
  import { a as oe } from "./StaggeredRender-DDHSzQKE.js";
27
- import { C as Dt } from "./ClientOnly-CVN6leDu.js";
28
- import { S as ze, i as qe, Q as Ot, n as b, m as Ne, j as Pe, k as M, l as Rt, o as It, p as Tt, q as _t, r as Se, t as Ce, v as Ft, h as Ee, w as ke, x as Qt, y as L, u as F, z as Ke, A as Lt, g as Bt, Z as Ht, B as zt, C as qt } from "./ZudokuContext-BKXGJTmu.js";
29
- import { M as Kt, u as ee } from "./hook-sn0zMTkE.js";
30
- import { a as $t, T as Ut, b as Vt, V as Wt, u as ge } from "./Markdown-BDcCAWwm.js";
31
- import { CircleXIcon as Yt, SearchIcon as Xt, MenuIcon as Zt, MoonStarIcon as Jt, SunIcon as Gt, ChevronRightIcon as er, ExternalLinkIcon as tr, PanelLeftIcon as rr } from "lucide-react";
32
- import { DropdownMenu as ar, DropdownMenuTrigger as sr, DropdownMenuContent as nr, DropdownMenuLabel as ir, DropdownMenuSeparator as or, DropdownMenuSub as lr, DropdownMenuSubTrigger as cr, DropdownMenuPortal as ur, DropdownMenuSubContent as dr, DropdownMenuItem as hr } from "./ui/DropdownMenu.js";
27
+ import { C as Ot } from "./ClientOnly-CVN6leDu.js";
28
+ import { S as ze, i as qe, Q as Rt, n as b, m as Ne, j as Pe, k as M, l as It, o as Tt, p as _t, q as Ft, r as Se, t as Ce, v as Qt, h as Ee, w as ke, x as Bt, y as B, u as F, z as Ke, A as Lt, g as Ht, Z as zt, B as qt, C as Kt } from "./ZudokuContext-BKXGJTmu.js";
29
+ import { M as $t, u as ee } from "./hook-sn0zMTkE.js";
30
+ import { a as Ut, T as Vt, b as Wt, V as Yt, u as ge } from "./Markdown-BDcCAWwm.js";
31
+ import { CircleXIcon as Xt, SearchIcon as Zt, MenuIcon as Jt, MoonStarIcon as Gt, SunIcon as er, ChevronRightIcon as tr, ExternalLinkIcon as rr, PanelLeftIcon as ar } from "lucide-react";
32
+ import { B as ae, S as sr } from "./Spinner-ChOGyPls.js";
33
+ import { DropdownMenu as nr, DropdownMenuTrigger as ir, DropdownMenuContent as or, DropdownMenuLabel as lr, DropdownMenuSeparator as cr, DropdownMenuSub as ur, DropdownMenuSubTrigger as dr, DropdownMenuPortal as hr, DropdownMenuSubContent as fr, DropdownMenuItem as gr } from "./ui/DropdownMenu.js";
33
34
  import { c as A } from "./cn-BmFQLtkS.js";
34
35
  import { VisuallyHidden as $e } from "@radix-ui/react-visually-hidden";
35
- import { a as Ue, c as fr } from "./index-BuAyrJe3.js";
36
- import { Drawer as Ve, DrawerTrigger as We, DrawerContent as Ye, DrawerTitle as Xe, DrawerClose as gr } from "./ui/Drawer.js";
37
- import { S as ae, a as mr } from "./Spinner-C6zroowC.js";
38
- import * as se from "@radix-ui/react-collapsible";
39
- function pr({ error: t }) {
36
+ import { a as Ue, c as mr } from "./index-BuAyrJe3.js";
37
+ import { Drawer as Ve, DrawerTrigger as We, DrawerContent as Ye, DrawerTitle as Xe, DrawerClose as pr } from "./ui/Drawer.js";
38
+ import { S as se } from "./SidebarBadge-Bbt92M5K.js";
39
+ import * as ne from "@radix-ui/react-collapsible";
40
+ function vr({ error: t }) {
40
41
  return /* @__PURE__ */ a.jsx(Fe, { error: t });
41
42
  }
42
43
  var W = {};
43
- const vr = /* @__PURE__ */ fe(Mt), xr = /* @__PURE__ */ fe(mt), br = /* @__PURE__ */ fe(pt);
44
+ const xr = /* @__PURE__ */ fe(Dt), br = /* @__PURE__ */ fe(mt), yr = /* @__PURE__ */ fe(pt);
44
45
  Object.defineProperty(W, "__esModule", { value: !0 });
45
- var yr = St, E = vr, me = xr, D = br;
46
- function jr(t) {
46
+ var jr = Ct, E = xr, me = br, D = yr;
47
+ function wr(t) {
47
48
  if (t && t.__esModule) return t;
48
49
  var e = /* @__PURE__ */ Object.create(null);
49
50
  return t && Object.keys(t).forEach(function(r) {
@@ -58,8 +59,8 @@ function jr(t) {
58
59
  }
59
60
  }), e.default = t, Object.freeze(e);
60
61
  }
61
- var S = /* @__PURE__ */ jr(yr);
62
- function wr({
62
+ var S = /* @__PURE__ */ wr(jr);
63
+ function Nr({
63
64
  basename: t,
64
65
  children: e,
65
66
  location: r = "/",
@@ -83,7 +84,7 @@ function wr({
83
84
  static: !0
84
85
  });
85
86
  }
86
- function Nr({
87
+ function Pr({
87
88
  context: t,
88
89
  router: e,
89
90
  hydrate: r = !0,
@@ -101,9 +102,9 @@ function Nr({
101
102
  let c = {
102
103
  loaderData: t.loaderData,
103
104
  actionData: t.actionData,
104
- errors: Sr(t.errors)
105
+ errors: Cr(t.errors)
105
106
  };
106
- o = `window.__staticRouterHydrationData = JSON.parse(${Dr(JSON.stringify(JSON.stringify(c)))});`;
107
+ o = `window.__staticRouterHydrationData = JSON.parse(${Or(JSON.stringify(JSON.stringify(c)))});`;
107
108
  }
108
109
  let {
109
110
  state: u
@@ -127,7 +128,7 @@ function Nr({
127
128
  future: {
128
129
  v7_relativeSplatPath: e.future.v7_relativeSplatPath
129
130
  }
130
- }, /* @__PURE__ */ S.createElement(Pr, {
131
+ }, /* @__PURE__ */ S.createElement(Sr, {
131
132
  routes: e.routes,
132
133
  future: e.future,
133
134
  state: u
@@ -139,14 +140,14 @@ function Nr({
139
140
  }
140
141
  }) : null);
141
142
  }
142
- function Pr({
143
+ function Sr({
143
144
  routes: t,
144
145
  future: e,
145
146
  state: r
146
147
  }) {
147
148
  return me.UNSAFE_useRoutesImpl(t, void 0, r, e);
148
149
  }
149
- function Sr(t) {
150
+ function Cr(t) {
150
151
  if (!t) return null;
151
152
  let e = Object.entries(t), r = {};
152
153
  for (let [s, n] of e)
@@ -185,13 +186,13 @@ function Ze() {
185
186
  }
186
187
  };
187
188
  }
188
- function Cr(t, e) {
189
+ function Er(t, e) {
189
190
  return E.createStaticHandler(t, {
190
191
  ...e,
191
192
  mapRouteProperties: me.UNSAFE_mapRouteProperties
192
193
  });
193
194
  }
194
- function Er(t, e, r = {}) {
195
+ function kr(t, e, r = {}) {
195
196
  let s = {}, n = E.UNSAFE_convertRoutesToDataRoutes(t, me.UNSAFE_mapRouteProperties, void 0, s), i = e.matches.map((u) => {
196
197
  let c = s[u.route.id] || u.route;
197
198
  return {
@@ -287,36 +288,36 @@ function Je(t) {
287
288
  function Ge(t) {
288
289
  let e = typeof t == "string" ? t : D.createPath(t);
289
290
  e = e.replace(/ $/, "%20");
290
- let r = kr.test(e) ? new URL(e) : new URL(e, "http://localhost");
291
+ let r = Ar.test(e) ? new URL(e) : new URL(e, "http://localhost");
291
292
  return {
292
293
  pathname: r.pathname,
293
294
  search: r.search,
294
295
  hash: r.hash
295
296
  };
296
297
  }
297
- const kr = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Ar = {
298
+ const Ar = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Mr = {
298
299
  "&": "\\u0026",
299
300
  ">": "\\u003e",
300
301
  "<": "\\u003c",
301
302
  "\u2028": "\\u2028",
302
303
  "\u2029": "\\u2029"
303
- }, Mr = /[&><\u2028\u2029]/g;
304
- function Dr(t) {
305
- return t.replace(Mr, (e) => Ar[e]);
304
+ }, Dr = /[&><\u2028\u2029]/g;
305
+ function Or(t) {
306
+ return t.replace(Dr, (e) => Mr[e]);
306
307
  }
307
- W.StaticRouter = wr;
308
- var Or = W.StaticRouterProvider = Nr;
309
- W.createStaticHandler = Cr;
310
- W.createStaticRouter = Er;
311
- const Rr = ({
308
+ W.StaticRouter = Nr;
309
+ var Rr = W.StaticRouterProvider = Pr;
310
+ W.createStaticHandler = Er;
311
+ W.createStaticRouter = kr;
312
+ const Ir = ({
312
313
  router: t,
313
314
  hydrate: e = !1
314
- }) => /* @__PURE__ */ a.jsx(Qe, { children: /* @__PURE__ */ a.jsx(Te, { children: /* @__PURE__ */ a.jsx(oe.Provider, { value: { stagger: !e }, children: /* @__PURE__ */ a.jsx(vt, { router: t }) }) }) }), Ir = ({
315
+ }) => /* @__PURE__ */ a.jsx(Qe, { children: /* @__PURE__ */ a.jsx(Te, { children: /* @__PURE__ */ a.jsx(oe.Provider, { value: { stagger: !e }, children: /* @__PURE__ */ a.jsx(vt, { router: t }) }) }) }), Tr = ({
315
316
  router: t,
316
317
  context: e,
317
318
  helmetContext: r
318
- }) => /* @__PURE__ */ a.jsx(Qe, { children: /* @__PURE__ */ a.jsx(Te, { context: r, children: /* @__PURE__ */ a.jsx(Or, { router: t, context: e }) }) });
319
- var C, Oe, Tr = (Oe = class extends ze {
319
+ }) => /* @__PURE__ */ a.jsx(Qe, { children: /* @__PURE__ */ a.jsx(Te, { context: r, children: /* @__PURE__ */ a.jsx(Rr, { router: t, context: e }) }) });
320
+ var C, Oe, _r = (Oe = class extends ze {
320
321
  constructor(e = {}) {
321
322
  super();
322
323
  y(this, C);
@@ -325,7 +326,7 @@ var C, Oe, Tr = (Oe = class extends ze {
325
326
  build(e, r, s) {
326
327
  const n = r.queryKey, i = r.queryHash ?? qe(n, r);
327
328
  let o = this.get(i);
328
- return o || (o = new Ot({
329
+ return o || (o = new Rt({
329
330
  cache: this,
330
331
  queryKey: n,
331
332
  queryHash: i,
@@ -388,7 +389,7 @@ var C, Oe, Tr = (Oe = class extends ze {
388
389
  });
389
390
  });
390
391
  }
391
- }, C = new WeakMap(), Oe), x, V, Re, _r = (Re = class extends ze {
392
+ }, C = new WeakMap(), Oe), x, V, Re, Fr = (Re = class extends ze {
392
393
  constructor(e = {}) {
393
394
  super();
394
395
  y(this, x);
@@ -396,7 +397,7 @@ var C, Oe, Tr = (Oe = class extends ze {
396
397
  this.config = e, g(this, x, /* @__PURE__ */ new Map()), g(this, V, Date.now());
397
398
  }
398
399
  build(e, r, s) {
399
- const n = new Kt({
400
+ const n = new $t({
400
401
  mutationCache: this,
401
402
  mutationId: ++X(this, V)._,
402
403
  options: e.defaultMutationOptions(r),
@@ -474,14 +475,14 @@ function Ae(t) {
474
475
  let u = { pages: [], pageParams: [] }, c = 0;
475
476
  const m = async () => {
476
477
  let f = !1;
477
- const B = (w) => {
478
+ const L = (w) => {
478
479
  Object.defineProperty(w, "signal", {
479
480
  enumerable: !0,
480
481
  get: () => (e.signal.aborted ? f = !0 : e.signal.addEventListener("abort", () => {
481
482
  f = !0;
482
483
  }), e.signal)
483
484
  });
484
- }, lt = Rt(e.options, e.fetchOptions), ve = async (w, O, $) => {
485
+ }, lt = It(e.options, e.fetchOptions), ve = async (w, O, $) => {
485
486
  if (f)
486
487
  return Promise.reject();
487
488
  if (O == null && w.pages.length)
@@ -492,17 +493,17 @@ function Ae(t) {
492
493
  direction: $ ? "backward" : "forward",
493
494
  meta: e.options.meta
494
495
  };
495
- B(Y);
496
+ L(Y);
496
497
  const ct = await lt(
497
498
  Y
498
- ), { maxPages: xe } = e.options, be = $ ? It : Tt;
499
+ ), { maxPages: xe } = e.options, be = $ ? Tt : _t;
499
500
  return {
500
501
  pages: be(w.pages, ct, xe),
501
502
  pageParams: be(w.pageParams, O, xe)
502
503
  };
503
504
  };
504
505
  if (n && i.length) {
505
- const w = n === "backward", O = w ? Fr : Me, $ = {
506
+ const w = n === "backward", O = w ? Qr : Me, $ = {
506
507
  pages: i,
507
508
  pageParams: o
508
509
  }, Y = O(s, $);
@@ -519,8 +520,8 @@ function Ae(t) {
519
520
  return u;
520
521
  };
521
522
  e.options.persister ? e.fetchFn = () => {
522
- var f, B;
523
- return (B = (f = e.options).persister) == null ? void 0 : B.call(
523
+ var f, L;
524
+ return (L = (f = e.options).persister) == null ? void 0 : L.call(
524
525
  f,
525
526
  m,
526
527
  {
@@ -543,11 +544,11 @@ function Me(t, { pages: e, pageParams: r }) {
543
544
  r
544
545
  ) : void 0;
545
546
  }
546
- function Fr(t, { pages: e, pageParams: r }) {
547
+ function Qr(t, { pages: e, pageParams: r }) {
547
548
  var s;
548
549
  return e.length > 0 ? (s = t.getPreviousPageParam) == null ? void 0 : s.call(t, e[0], e, r[0], r) : void 0;
549
550
  }
550
- var d, R, I, H, z, T, q, K, Ie, Qr = (Ie = class {
551
+ var d, R, I, H, z, T, q, K, Ie, Br = (Ie = class {
551
552
  constructor(t = {}) {
552
553
  y(this, d);
553
554
  y(this, R);
@@ -557,10 +558,10 @@ var d, R, I, H, z, T, q, K, Ie, Qr = (Ie = class {
557
558
  y(this, T);
558
559
  y(this, q);
559
560
  y(this, K);
560
- g(this, d, t.queryCache || new Tr()), g(this, R, t.mutationCache || new _r()), g(this, I, t.defaultOptions || {}), g(this, H, /* @__PURE__ */ new Map()), g(this, z, /* @__PURE__ */ new Map()), g(this, T, 0);
561
+ g(this, d, t.queryCache || new _r()), g(this, R, t.mutationCache || new Fr()), g(this, I, t.defaultOptions || {}), g(this, H, /* @__PURE__ */ new Map()), g(this, z, /* @__PURE__ */ new Map()), g(this, T, 0);
561
562
  }
562
563
  mount() {
563
- X(this, T)._++, l(this, T) === 1 && (g(this, q, _t.subscribe(async (t) => {
564
+ X(this, T)._++, l(this, T) === 1 && (g(this, q, Ft.subscribe(async (t) => {
564
565
  t && (await this.resumePausedMutations(), l(this, d).onFocus());
565
566
  })), g(this, K, Se.subscribe(async (t) => {
566
567
  t && (await this.resumePausedMutations(), l(this, d).onOnline());
@@ -599,7 +600,7 @@ var d, R, I, H, z, T, q, K, Ie, Qr = (Ie = class {
599
600
  setQueryData(t, e, r) {
600
601
  const s = this.defaultQueryOptions({ queryKey: t }), n = l(this, d).get(
601
602
  s.queryHash
602
- ), i = n == null ? void 0 : n.state.data, o = Ft(e, i);
603
+ ), i = n == null ? void 0 : n.state.data, o = Qt(e, i);
603
604
  if (o !== void 0)
604
605
  return l(this, d).build(this, s).setData(o, { ...r, manual: !0 });
605
606
  }
@@ -737,7 +738,7 @@ var d, R, I, H, z, T, q, K, Ie, Qr = (Ie = class {
737
738
  return e.queryHash || (e.queryHash = qe(
738
739
  e.queryKey,
739
740
  e
740
- )), e.refetchOnReconnect === void 0 && (e.refetchOnReconnect = e.networkMode !== "always"), e.throwOnError === void 0 && (e.throwOnError = !!e.suspense), !e.networkMode && e.persister && (e.networkMode = "offlineFirst"), e.enabled !== !0 && e.queryFn === Qt && (e.enabled = !1), e;
741
+ )), e.refetchOnReconnect === void 0 && (e.refetchOnReconnect = e.networkMode !== "always"), e.throwOnError === void 0 && (e.throwOnError = !!e.suspense), !e.networkMode && e.persister && (e.networkMode = "offlineFirst"), e.enabled !== !0 && e.queryFn === Bt && (e.enabled = !1), e;
741
742
  }
742
743
  defaultMutationOptions(t) {
743
744
  return t != null && t._defaulted ? t : {
@@ -751,13 +752,13 @@ var d, R, I, H, z, T, q, K, Ie, Qr = (Ie = class {
751
752
  l(this, d).clear(), l(this, R).clear();
752
753
  }
753
754
  }, d = new WeakMap(), R = new WeakMap(), I = new WeakMap(), H = new WeakMap(), z = new WeakMap(), T = new WeakMap(), q = new WeakMap(), K = new WeakMap(), Ie);
754
- const Lr = Le(null), ne = {
755
+ const Lr = Be(null), ie = {
755
756
  didCatch: !1,
756
757
  error: null
757
758
  };
758
- class Br extends Ct {
759
+ class Hr extends Et {
759
760
  constructor(e) {
760
- super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = ne;
761
+ super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = ie;
761
762
  }
762
763
  static getDerivedStateFromError(e) {
763
764
  return {
@@ -775,7 +776,7 @@ class Br extends Ct {
775
776
  (r = (s = this.props).onReset) === null || r === void 0 || r.call(s, {
776
777
  args: i,
777
778
  reason: "imperative-api"
778
- }), this.setState(ne);
779
+ }), this.setState(ie);
779
780
  }
780
781
  }
781
782
  componentDidCatch(e, r) {
@@ -788,13 +789,13 @@ class Br extends Ct {
788
789
  } = this.state, {
789
790
  resetKeys: n
790
791
  } = this.props;
791
- if (s && r.error !== null && Hr(e.resetKeys, n)) {
792
+ if (s && r.error !== null && zr(e.resetKeys, n)) {
792
793
  var i, o;
793
794
  (i = (o = this.props).onReset) === null || i === void 0 || i.call(o, {
794
795
  next: n,
795
796
  prev: e.resetKeys,
796
797
  reason: "keys"
797
- }), this.setState(ne);
798
+ }), this.setState(ie);
798
799
  }
799
800
  }
800
801
  render() {
@@ -831,12 +832,12 @@ class Br extends Ct {
831
832
  }, u);
832
833
  }
833
834
  }
834
- function Hr() {
835
+ function zr() {
835
836
  let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
836
837
  return t.length !== e.length || t.some((r, s) => !Object.is(r, e[s]));
837
838
  }
838
- const zr = (t) => "getProfileMenuItems" in t && typeof t.getProfileMenuItems == "function", qr = (t) => "getRoutes" in t && typeof t.getRoutes == "function", Kr = (t) => "renderSearch" in t && typeof t.renderSearch == "function", $r = (t) => "initialize" in t && typeof t.initialize == "function", Ur = (t) => "getHead" in t && typeof t.getHead == "function", Vr = (t) => "getMdxComponents" in t && typeof t.getMdxComponents == "function", Wr = (t) => "getIdentities" in t && typeof t.getIdentities == "function", et = new Qr();
839
- class Yr {
839
+ const qr = (t) => "getProfileMenuItems" in t && typeof t.getProfileMenuItems == "function", Kr = (t) => "getRoutes" in t && typeof t.getRoutes == "function", $r = (t) => "renderSearch" in t && typeof t.renderSearch == "function", Ur = (t) => "initialize" in t && typeof t.initialize == "function", Vr = (t) => "getHead" in t && typeof t.getHead == "function", Wr = (t) => "getMdxComponents" in t && typeof t.getMdxComponents == "function", Yr = (t) => "getIdentities" in t && typeof t.getIdentities == "function", et = new Br();
840
+ class Xr {
840
841
  constructor(e) {
841
842
  v(this, "plugins");
842
843
  v(this, "sidebars");
@@ -847,7 +848,7 @@ class Yr {
847
848
  v(this, "navigationPlugins");
848
849
  v(this, "initialize", async () => {
849
850
  await Promise.all(
850
- this.plugins.filter($r).map((e) => {
851
+ this.plugins.filter(Ur).map((e) => {
851
852
  var r;
852
853
  return (r = e.initialize) == null ? void 0 : r.call(e, this);
853
854
  })
@@ -857,13 +858,13 @@ class Yr {
857
858
  await et.invalidateQueries({ queryKey: e });
858
859
  });
859
860
  v(this, "getApiIdentities", async () => (await Promise.all(
860
- this.plugins.filter(Wr).map((r) => r.getIdentities(this))
861
+ this.plugins.filter(Yr).map((r) => r.getIdentities(this))
861
862
  )).flat());
862
863
  v(this, "getPluginSidebar", async (e) => (await Promise.all(
863
864
  this.navigationPlugins.map(
864
865
  (s) => {
865
866
  var n;
866
- return (n = s.getSidebar) == null ? void 0 : n.call(s, L(e));
867
+ return (n = s.getSidebar) == null ? void 0 : n.call(s, B(e));
867
868
  }
868
869
  )
869
870
  )).flatMap((s) => s ?? []));
@@ -873,10 +874,10 @@ class Yr {
873
874
  const r = await this.authentication.getAccessToken();
874
875
  return e.headers.set("Authorization", `Bearer ${r}`), e;
875
876
  });
876
- this.plugins = e.plugins ?? [], this.topNavigation = e.topNavigation ?? [], this.sidebars = e.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(qr), this.authentication = e.authentication, this.meta = e.metadata, this.page = e.page;
877
+ this.plugins = e.plugins ?? [], this.topNavigation = e.topNavigation ?? [], this.sidebars = e.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(Kr), this.authentication = e.authentication, this.meta = e.metadata, this.page = e.page;
877
878
  }
878
879
  }
879
- function Xr({ error: t, resetErrorBoundary: e }) {
880
+ function Zr({ error: t, resetErrorBoundary: e }) {
880
881
  return /* @__PURE__ */ a.jsx(Fe, { error: t });
881
882
  }
882
883
  const J = globalThis;
@@ -887,7 +888,7 @@ const De = {
887
888
  tip: "bg-green-600",
888
889
  caution: "bg-orange-500",
889
890
  danger: "bg-rose-500"
890
- }, Zr = () => {
891
+ }, Jr = () => {
891
892
  const { page: t } = F(), [e, r] = Q(!0);
892
893
  if (!(t != null && t.banner) || !e)
893
894
  return /* @__PURE__ */ a.jsx("style", { children: ":root { --banner-height: 0px; }" });
@@ -908,14 +909,14 @@ const De = {
908
909
  type: "button",
909
910
  className: "md:absolute md:right-4 -m-1.5 p-1.5 hover:bg-accent-foreground/10 rounded-md",
910
911
  onClick: () => r(!1),
911
- children: /* @__PURE__ */ a.jsx(Yt, { size: 16 })
912
+ children: /* @__PURE__ */ a.jsx(Xt, { size: 16 })
912
913
  }
913
914
  )
914
915
  ]
915
916
  }
916
917
  );
917
918
  }, tt = () => {
918
- const t = F(), [e, r] = Q(!1), s = Be(() => r(!1), []);
919
+ const t = F(), [e, r] = Q(!1), s = Le(() => r(!1), []);
919
920
  _(() => {
920
921
  if (e)
921
922
  return;
@@ -926,7 +927,7 @@ const De = {
926
927
  window.removeEventListener("keydown", i);
927
928
  };
928
929
  }, [e, r]);
929
- const n = t.plugins.find(Kr);
930
+ const n = t.plugins.find($r);
930
931
  return n ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
931
932
  /* @__PURE__ */ a.jsxs(
932
933
  "button",
@@ -936,7 +937,7 @@ const De = {
936
937
  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",
937
938
  children: [
938
939
  /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-2 flex-grow", children: [
939
- /* @__PURE__ */ a.jsx(Xt, { size: 14 }),
940
+ /* @__PURE__ */ a.jsx(Zt, { size: 14 }),
940
941
  "Search"
941
942
  ] }),
942
943
  /* @__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" })
@@ -948,14 +949,14 @@ const De = {
948
949
  onClose: s
949
950
  }) })
950
951
  ] }) : null;
951
- }, rt = (t) => (e) => e.display === "auth" && t || e.display === "anon" && !t || !e.display || e.display === "always", Jr = () => {
952
+ }, rt = (t) => (e) => e.display === "auth" && t || e.display === "anon" && !t || !e.display || e.display === "always", Gr = () => {
952
953
  const { topNavigation: t } = F(), { isAuthenticated: e } = ee();
953
- return t.length <= 1 ? /* @__PURE__ */ a.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ a.jsx(de, { 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: t.filter(rt(e)).map((r) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(Gr, { ...r }) }, r.id)) }) }) });
954
- }, Gr = ({ id: t, label: e, default: r }) => {
954
+ return t.length <= 1 ? /* @__PURE__ */ a.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ a.jsx(de, { 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: t.filter(rt(e)).map((r) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(ea, { ...r }) }, r.id)) }) }) });
955
+ }, ea = ({ id: t, label: e, default: r }) => {
955
956
  var c;
956
957
  const { sidebars: s } = F(), n = Ke(), i = s[t], o = r ?? (i ? Lt(i, (m) => {
957
- if (m.type === "doc") return L(m.id);
958
- }) : L(t));
958
+ if (m.type === "doc") return B(m.id);
959
+ }) : B(t));
959
960
  if (!o)
960
961
  throw new Error(
961
962
  `No links found in top navigation for top navigation '${t}'. Check that the sidebar isn't empty or that a default link set.`
@@ -972,10 +973,10 @@ const De = {
972
973
  children: e
973
974
  }
974
975
  );
975
- }, ea = () => {
976
+ }, ta = () => {
976
977
  const { topNavigation: t } = F(), { isAuthenticated: e } = ee();
977
978
  return /* @__PURE__ */ a.jsxs(Ve, { direction: "right", children: [
978
- /* @__PURE__ */ a.jsx("div", { className: "flex lg:hidden justify-self-end", children: /* @__PURE__ */ a.jsx(We, { className: "lg:hidden", children: /* @__PURE__ */ a.jsx(Zt, { size: 22 }) }) }),
979
+ /* @__PURE__ */ a.jsx("div", { className: "flex lg:hidden justify-self-end", children: /* @__PURE__ */ a.jsx(We, { className: "lg:hidden", children: /* @__PURE__ */ a.jsx(Jt, { size: 22 }) }) }),
979
980
  /* @__PURE__ */ a.jsxs(
980
981
  Ye,
981
982
  {
@@ -992,23 +993,23 @@ const De = {
992
993
  s ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
993
994
  ),
994
995
  to: r.id,
995
- children: /* @__PURE__ */ a.jsx(gr, { children: r.label })
996
+ children: /* @__PURE__ */ a.jsx(pr, { children: r.label })
996
997
  }
997
998
  ) }, r.label)) })
998
999
  ]
999
1000
  }
1000
1001
  )
1001
1002
  ] });
1002
- }, at = ({ item: t }) => t.children ? /* @__PURE__ */ a.jsxs(lr, { children: [
1003
- /* @__PURE__ */ a.jsx(cr, { children: t.label }),
1004
- /* @__PURE__ */ a.jsx(ur, { children: /* @__PURE__ */ a.jsx(dr, { children: t.children.map((e, r) => (
1003
+ }, at = ({ item: t }) => t.children ? /* @__PURE__ */ a.jsxs(ur, { children: [
1004
+ /* @__PURE__ */ a.jsx(dr, { children: t.label }),
1005
+ /* @__PURE__ */ a.jsx(hr, { children: /* @__PURE__ */ a.jsx(fr, { children: t.children.map((e, r) => (
1005
1006
  // eslint-disable-next-line react/no-array-index-key
1006
1007
  /* @__PURE__ */ a.jsx(at, { item: e }, r)
1007
1008
  )) }) })
1008
- ] }, t.label) : /* @__PURE__ */ a.jsx(te, { to: t.path ?? "", children: /* @__PURE__ */ a.jsx(hr, { children: t.label }, t.label) }), st = He(function() {
1009
- const e = ee(), [r, s] = $t(), { isAuthenticated: n, profile: i, isAuthEnabled: o } = ee(), u = F(), { page: c, plugins: m } = u, j = m.filter((p) => zr(p)).flatMap((p) => p.getProfileMenuItems(u)).map((p) => /* @__PURE__ */ a.jsx(at, { item: p }, p.label)), N = r ? Jt : Gt;
1009
+ ] }, t.label) : /* @__PURE__ */ a.jsx(te, { to: t.path ?? "", children: /* @__PURE__ */ a.jsx(gr, { children: t.label }, t.label) }), st = He(function() {
1010
+ const e = ee(), [r, s] = Ut(), { isAuthenticated: n, profile: i, isAuthEnabled: o } = ee(), u = F(), { page: c, plugins: m } = u, j = m.filter((p) => qr(p)).flatMap((p) => p.getProfileMenuItems(u)).map((p) => /* @__PURE__ */ a.jsx(at, { item: p }, p.label)), N = r ? Gt : er;
1010
1011
  return /* @__PURE__ */ a.jsxs("header", { className: "sticky lg:top-0 z-10 bg-background/80 backdrop-blur w-full", children: [
1011
- /* @__PURE__ */ a.jsx(Zr, {}),
1012
+ /* @__PURE__ */ a.jsx(Jr, {}),
1012
1013
  /* @__PURE__ */ a.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
1013
1014
  /* @__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: [
1014
1015
  /* @__PURE__ */ a.jsx("div", { className: "flex", children: /* @__PURE__ */ a.jsx(te, { to: "/", children: /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-3.5", children: [
@@ -1016,7 +1017,7 @@ const De = {
1016
1017
  /* @__PURE__ */ a.jsx(
1017
1018
  "img",
1018
1019
  {
1019
- src: /https?:\/\//.test(c.logo.src.light) ? c.logo.src.light : L(
1020
+ src: /https?:\/\//.test(c.logo.src.light) ? c.logo.src.light : B(
1020
1021
  "/",
1021
1022
  c.logo.src.light
1022
1023
  ),
@@ -1029,7 +1030,7 @@ const De = {
1029
1030
  /* @__PURE__ */ a.jsx(
1030
1031
  "img",
1031
1032
  {
1032
- src: /https?:\/\//.test(c.logo.src.dark) ? c.logo.src.dark : L(
1033
+ src: /https?:\/\//.test(c.logo.src.dark) ? c.logo.src.dark : B(
1033
1034
  "/",
1034
1035
  c.logo.src.dark
1035
1036
  ),
@@ -1044,23 +1045,23 @@ const De = {
1044
1045
  ] }) }) }),
1045
1046
  /* @__PURE__ */ a.jsxs("div", { className: "grid grid-cols-1 lg:grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
1046
1047
  /* @__PURE__ */ a.jsx("div", { className: "w-full justify-center hidden lg:flex", children: /* @__PURE__ */ a.jsx(tt, {}) }),
1047
- /* @__PURE__ */ a.jsx(ea, {}),
1048
+ /* @__PURE__ */ a.jsx(ta, {}),
1048
1049
  /* @__PURE__ */ a.jsxs("div", { className: "hidden lg:flex items-center justify-self-end text-sm gap-2", children: [
1049
1050
  /* @__PURE__ */ a.jsx(k, { name: "head-navigation-start" }),
1050
- o && !n ? /* @__PURE__ */ a.jsx(ie, { variant: "ghost", onClick: () => e.login(), children: "Login" }) : j.length > 0 && /* @__PURE__ */ a.jsxs(ar, { modal: !1, children: [
1051
- /* @__PURE__ */ a.jsx(sr, { asChild: !0, children: /* @__PURE__ */ a.jsx(ie, { variant: "ghost", children: i != null && i.email ? `${i.email}` : "My Account" }) }),
1052
- /* @__PURE__ */ a.jsxs(nr, { className: "w-56", children: [
1053
- /* @__PURE__ */ a.jsx(ir, { children: "My Account" }),
1054
- /* @__PURE__ */ a.jsx(or, {}),
1051
+ o && !n ? /* @__PURE__ */ a.jsx(ae, { variant: "ghost", onClick: () => e.login(), children: "Login" }) : j.length > 0 && /* @__PURE__ */ a.jsxs(nr, { modal: !1, children: [
1052
+ /* @__PURE__ */ a.jsx(ir, { asChild: !0, children: /* @__PURE__ */ a.jsx(ae, { variant: "ghost", children: i != null && i.email ? `${i.email}` : "My Account" }) }),
1053
+ /* @__PURE__ */ a.jsxs(or, { className: "w-56", children: [
1054
+ /* @__PURE__ */ a.jsx(lr, { children: "My Account" }),
1055
+ /* @__PURE__ */ a.jsx(cr, {}),
1055
1056
  j
1056
1057
  ] })
1057
1058
  ] }),
1058
1059
  /* @__PURE__ */ a.jsx(
1059
- "button",
1060
+ ae,
1060
1061
  {
1061
- type: "button",
1062
+ variant: "ghost",
1062
1063
  "aria-label": r ? "Switch to light mode" : "Switch to dark mode",
1063
- className: "cursor-pointer hover:bg-secondary p-2.5 -m-2.5 rounded-full",
1064
+ className: "p-2.5 -m-2.5 rounded-full",
1064
1065
  onClick: s,
1065
1066
  children: /* @__PURE__ */ a.jsx(N, { size: 18 })
1066
1067
  }
@@ -1070,30 +1071,30 @@ const De = {
1070
1071
  ] })
1071
1072
  ] }),
1072
1073
  /* @__PURE__ */ a.jsx(k, { name: "top-navigation-before" }),
1073
- /* @__PURE__ */ a.jsx(Jr, {}),
1074
+ /* @__PURE__ */ a.jsx(Gr, {}),
1074
1075
  /* @__PURE__ */ a.jsx(k, { name: "top-navigation-after" })
1075
1076
  ] })
1076
1077
  ] });
1077
1078
  }), nt = {
1078
1079
  Header: st
1079
- }, ta = Le(nt), ra = ta.Provider, aa = (t) => {
1080
+ }, ra = Be(nt), aa = ra.Provider, sa = (t) => {
1080
1081
  const [e, r] = Q(!1);
1081
1082
  _(() => {
1082
1083
  const i = localStorage.getItem("theme"), o = window.matchMedia("(prefers-color-scheme: dark)"), u = i === "dark" || !i && o.matches;
1083
1084
  r(u);
1084
1085
  }, [e]);
1085
- const s = Be(() => {
1086
+ const s = Le(() => {
1086
1087
  const i = !e;
1087
1088
  document.documentElement.classList.toggle("dark", i), localStorage.setItem("theme", i ? "dark" : "light"), r(i);
1088
1089
  }, [e]), n = [e, s];
1089
- return /* @__PURE__ */ a.jsx(Ut.Provider, { value: n, ...t });
1090
- }, sa = ({
1090
+ return /* @__PURE__ */ a.jsx(Vt.Provider, { value: n, ...t });
1091
+ }, na = ({
1091
1092
  children: t,
1092
1093
  context: e
1093
- }) => (Bt({
1094
+ }) => (Ht({
1094
1095
  queryFn: async () => (await e.initialize(), !0),
1095
1096
  queryKey: ["zudoku-initialize"]
1096
- }), /* @__PURE__ */ a.jsx(Ht.Provider, { value: e, children: t })), na = ({
1097
+ }), /* @__PURE__ */ a.jsx(zt.Provider, { value: e, children: t })), ia = ({
1097
1098
  children: t,
1098
1099
  ...e
1099
1100
  }) => {
@@ -1104,35 +1105,35 @@ const De = {
1104
1105
  ), s = re(() => {
1105
1106
  var h;
1106
1107
  return {
1107
- ...(e.plugins ?? []).filter(Vr).flatMap(
1108
+ ...(e.plugins ?? []).filter(Wr).flatMap(
1108
1109
  (f) => f.getMdxComponents ? [f.getMdxComponents()] : []
1109
- ).reduce((f, B) => ({ ...f, ...B }), {}),
1110
- ...Vt,
1110
+ ).reduce((f, L) => ({ ...f, ...L }), {}),
1111
+ ...Wt,
1111
1112
  ...(h = e.mdx) == null ? void 0 : h.components
1112
1113
  };
1113
- }, [(N = e.mdx) == null ? void 0 : N.components, e.plugins]), { stagger: n } = Et(oe), [i, o] = Q(!1), u = re(
1114
+ }, [(N = e.mdx) == null ? void 0 : N.components, e.plugins]), { stagger: n } = kt(oe), [i, o] = Q(!1), u = re(
1114
1115
  () => i ? { stagger: !0 } : { stagger: n },
1115
1116
  [n, i]
1116
1117
  ), c = xt();
1117
1118
  _(() => {
1118
1119
  i || o(!0);
1119
1120
  }, [i, c.location]);
1120
- const [m] = Q(() => new Yr(e)), j = (p = e.plugins) == null ? void 0 : p.filter(Ur).map((P, h) => {
1121
+ const [m] = Q(() => new Xr(e)), j = (p = e.plugins) == null ? void 0 : p.filter(Vr).map((P, h) => {
1121
1122
  var f;
1122
- return /* @__PURE__ */ a.jsx(kt, { children: (f = P.getHead) == null ? void 0 : f.call(P) }, h);
1123
+ return /* @__PURE__ */ a.jsx(At, { children: (f = P.getHead) == null ? void 0 : f.call(P) }, h);
1123
1124
  });
1124
- return /* @__PURE__ */ a.jsxs(zt, { client: et, children: [
1125
+ return /* @__PURE__ */ a.jsxs(qt, { client: et, children: [
1125
1126
  /* @__PURE__ */ a.jsx(ce, { children: j }),
1126
- /* @__PURE__ */ a.jsx(oe.Provider, { value: u, children: /* @__PURE__ */ a.jsx(sa, { context: m, children: /* @__PURE__ */ a.jsx(ht, { components: s, children: /* @__PURE__ */ a.jsx(aa, { children: /* @__PURE__ */ a.jsx(ra, { value: r, children: /* @__PURE__ */ a.jsx(wt, { slotlets: e.slotlets, children: /* @__PURE__ */ a.jsx(Wt, { children: t ?? /* @__PURE__ */ a.jsx(_e, {}) }) }) }) }) }) }) })
1127
+ /* @__PURE__ */ a.jsx(oe.Provider, { value: u, children: /* @__PURE__ */ a.jsx(na, { context: m, children: /* @__PURE__ */ a.jsx(ht, { components: s, children: /* @__PURE__ */ a.jsx(sa, { children: /* @__PURE__ */ a.jsx(aa, { value: r, children: /* @__PURE__ */ a.jsx(wt, { slotlets: e.slotlets, children: /* @__PURE__ */ a.jsx(Yt, { children: t ?? /* @__PURE__ */ a.jsx(_e, {}) }) }) }) }) }) }) })
1127
1128
  ] });
1128
- }, ia = He(na), pe = (t) => /* @__PURE__ */ a.jsx(Br, { FallbackComponent: Xr, children: /* @__PURE__ */ a.jsx(ia, { ...t }) });
1129
+ }, oa = He(ia), pe = (t) => /* @__PURE__ */ a.jsx(Hr, { FallbackComponent: Zr, children: /* @__PURE__ */ a.jsx(oa, { ...t }) });
1129
1130
  pe.displayName = "DevPortal";
1130
- const oa = ({
1131
+ const la = ({
1131
1132
  category: t,
1132
1133
  level: e
1133
1134
  }) => {
1134
1135
  var p, P;
1135
- const r = qt(t), [s, n] = Q(!1), i = t.collapsible ?? !0, o = t.collapsed ?? !0, u = !!(!i || !o || r), [c, m] = Q(u), j = bt(((p = t.link) == null ? void 0 : p.id) ?? "");
1136
+ const r = Kt(t), [s, n] = Q(!1), i = t.collapsible ?? !0, o = t.collapsed ?? !0, u = !!(!i || !o || r), [c, m] = Q(u), j = bt(((p = t.link) == null ? void 0 : p.id) ?? "");
1136
1137
  _(() => {
1137
1138
  r && m(!0);
1138
1139
  }, [r]);
@@ -1144,7 +1145,7 @@ const oa = ({
1144
1145
  h.preventDefault(), m((f) => !f), n(!0);
1145
1146
  },
1146
1147
  children: /* @__PURE__ */ a.jsx(
1147
- er,
1148
+ tr,
1148
1149
  {
1149
1150
  size: 16,
1150
1151
  className: A(
@@ -1156,14 +1157,14 @@ const oa = ({
1156
1157
  }
1157
1158
  );
1158
1159
  return /* @__PURE__ */ a.jsxs(
1159
- se.Root,
1160
+ ne.Root,
1160
1161
  {
1161
1162
  className: "flex flex-col",
1162
1163
  defaultOpen: u,
1163
1164
  open: c,
1164
1165
  onOpenChange: () => m(!0),
1165
1166
  children: [
1166
- /* @__PURE__ */ a.jsx(se.Trigger, { className: "group", asChild: !0, disabled: !i, children: /* @__PURE__ */ a.jsxs(
1167
+ /* @__PURE__ */ a.jsx(ne.Trigger, { className: "group", asChild: !0, disabled: !i, children: /* @__PURE__ */ a.jsxs(
1167
1168
  "div",
1168
1169
  {
1169
1170
  onClick: () => n(!0),
@@ -1189,7 +1190,7 @@ const oa = ({
1189
1190
  ((P = t.link) == null ? void 0 : P.type) === "doc" ? /* @__PURE__ */ a.jsx(
1190
1191
  G,
1191
1192
  {
1192
- to: L(t.link.id),
1193
+ to: B(t.link.id),
1193
1194
  className: "flex-1",
1194
1195
  onClick: () => {
1195
1196
  j && !c && m(!0);
@@ -1216,7 +1217,7 @@ const oa = ({
1216
1217
  }
1217
1218
  ) }),
1218
1219
  /* @__PURE__ */ a.jsx(
1219
- se.Content,
1220
+ ne.Content,
1220
1221
  {
1221
1222
  className: A(
1222
1223
  // CollapsibleContent class is used to animate and it should only be applied when the user has triggered the toggle
@@ -1235,7 +1236,7 @@ const oa = ({
1235
1236
  ]
1236
1237
  }
1237
1238
  );
1238
- }, U = fr(
1239
+ }, U = mr(
1239
1240
  "flex items-center gap-2 px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
1240
1241
  {
1241
1242
  variants: {
@@ -1264,18 +1265,18 @@ const oa = ({
1264
1265
  const { activeAnchor: r } = ge(), [s] = yt();
1265
1266
  switch (t.type) {
1266
1267
  case "category":
1267
- return /* @__PURE__ */ a.jsx(oa, { category: t, level: e });
1268
+ return /* @__PURE__ */ a.jsx(la, { category: t, level: e });
1268
1269
  case "doc":
1269
1270
  return /* @__PURE__ */ a.jsxs(
1270
1271
  G,
1271
1272
  {
1272
1273
  className: ({ isActive: o }) => U({ isActive: o, isTopLevel: e === 0 }),
1273
- to: L(t.id),
1274
+ to: B(t.id),
1274
1275
  children: [
1275
1276
  t.icon && /* @__PURE__ */ a.jsx(t.icon, { size: 16, className: "align-[-0.125em]" }),
1276
1277
  t.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1277
1278
  /* @__PURE__ */ a.jsx("span", { className: "truncate flex-1", title: t.label, children: t.label }),
1278
- /* @__PURE__ */ a.jsx(ae, { ...t.badge })
1279
+ /* @__PURE__ */ a.jsx(se, { ...t.badge })
1279
1280
  ] }) : t.label
1280
1281
  ]
1281
1282
  }
@@ -1293,7 +1294,7 @@ const oa = ({
1293
1294
  }),
1294
1295
  children: t.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1295
1296
  /* @__PURE__ */ a.jsx("span", { className: "truncate", title: t.label, children: t.label }),
1296
- /* @__PURE__ */ a.jsx(ae, { ...t.badge })
1297
+ /* @__PURE__ */ a.jsx(se, { ...t.badge })
1297
1298
  ] }) : /* @__PURE__ */ a.jsx("span", { className: "break-all", children: t.label })
1298
1299
  }
1299
1300
  ) : t.href.startsWith("http") ? /* @__PURE__ */ a.jsxs(
@@ -1305,7 +1306,7 @@ const oa = ({
1305
1306
  rel: "noopener noreferrer",
1306
1307
  children: [
1307
1308
  /* @__PURE__ */ a.jsx("span", { className: "whitespace-normal", children: t.label }),
1308
- /* @__PURE__ */ a.jsx("span", { className: "whitespace-nowrap", children: /* @__PURE__ */ a.jsx(tr, { className: "inline -translate-y-0.5", size: 12 }) })
1309
+ /* @__PURE__ */ a.jsx("span", { className: "whitespace-nowrap", children: /* @__PURE__ */ a.jsx(rr, { className: "inline -translate-y-0.5", size: 12 }) })
1309
1310
  ]
1310
1311
  }
1311
1312
  ) : /* @__PURE__ */ a.jsx(
@@ -1317,22 +1318,22 @@ const oa = ({
1317
1318
  to: t.href,
1318
1319
  children: t.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1319
1320
  /* @__PURE__ */ a.jsx("span", { className: "truncate", title: t.label, children: t.label }),
1320
- /* @__PURE__ */ a.jsx(ae, { ...t.badge })
1321
+ /* @__PURE__ */ a.jsx(se, { ...t.badge })
1321
1322
  ] }) : /* @__PURE__ */ a.jsx("span", { className: "break-all", children: t.label })
1322
1323
  }
1323
1324
  );
1324
1325
  }
1325
- }, la = (t, e = { block: "center" }) => {
1326
+ }, ca = (t, e = { block: "center" }) => {
1326
1327
  if (!t) return;
1327
1328
  const r = t.getBoundingClientRect();
1328
1329
  r.top >= 0 && r.left >= 0 && r.bottom <= (window.innerHeight || document.documentElement.clientHeight) && r.right <= (window.innerWidth || document.documentElement.clientWidth) || t.scrollIntoView(e);
1329
- }, ca = () => {
1330
+ }, ua = () => {
1330
1331
  const t = ue(), { setActiveAnchor: e } = ge();
1331
1332
  _(() => {
1332
1333
  if (!t.hash) return;
1333
1334
  const r = decodeURIComponent(t.hash.split("/")[0].slice(1)), s = () => {
1334
1335
  const n = document.getElementById(r), i = document.querySelector(`[${it}="${r}"]`);
1335
- return n ? (n.scrollIntoView(), la(i), requestIdleCallback(() => e(r)), !0) : !1;
1336
+ return n ? (n.scrollIntoView(), ca(i), requestIdleCallback(() => e(r)), !0) : !1;
1336
1337
  };
1337
1338
  if (!s()) {
1338
1339
  const n = new MutationObserver((i, o) => {
@@ -1341,12 +1342,12 @@ const oa = ({
1341
1342
  return n.observe(document.body, { childList: !0, subtree: !0 }), () => n.disconnect();
1342
1343
  }
1343
1344
  }, [t.hash, e]);
1344
- }, ua = () => {
1345
+ }, da = () => {
1345
1346
  const t = ue(), e = he(t.pathname);
1346
1347
  _(() => {
1347
1348
  e.current !== t.pathname && (window.scrollTo(0, 0), e.current = t.pathname);
1348
1349
  }, [t.pathname]);
1349
- }, ot = At(({ children: t, className: e, pushMainContent: r }, s) => /* @__PURE__ */ a.jsx(
1350
+ }, ot = Mt(({ children: t, className: e, pushMainContent: r }, s) => /* @__PURE__ */ a.jsx(
1350
1351
  "nav",
1351
1352
  {
1352
1353
  "data-navigation": String(r),
@@ -1361,7 +1362,7 @@ const oa = ({
1361
1362
  }
1362
1363
  ));
1363
1364
  ot.displayName = "SidebarWrapper";
1364
- const da = () => {
1365
+ const ha = () => {
1365
1366
  const t = he(null), e = Ke();
1366
1367
  return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1367
1368
  /* @__PURE__ */ a.jsxs(
@@ -1388,9 +1389,9 @@ const da = () => {
1388
1389
  }
1389
1390
  )
1390
1391
  ] });
1391
- }, ha = ({ children: t }) => {
1392
+ }, fa = ({ children: t }) => {
1392
1393
  const e = ue(), { setActiveAnchor: r } = ge(), { meta: s, authentication: n } = F();
1393
- ca(), ua();
1394
+ ua(), da();
1394
1395
  const i = he(e.pathname);
1395
1396
  return _(() => {
1396
1397
  var o;
@@ -1409,9 +1410,9 @@ const da = () => {
1409
1410
  /* @__PURE__ */ a.jsx("div", { className: "w-full max-w-screen-2xl mx-auto px-10 lg:px-12", children: /* @__PURE__ */ a.jsx(
1410
1411
  de,
1411
1412
  {
1412
- fallback: /* @__PURE__ */ a.jsx("main", { className: "grid h-[calc(100vh-var(--header-height))] place-items-center", children: /* @__PURE__ */ a.jsx(mr, {}) }),
1413
+ fallback: /* @__PURE__ */ a.jsx("main", { className: "grid h-[calc(100vh-var(--header-height))] place-items-center", children: /* @__PURE__ */ a.jsx(sr, {}) }),
1413
1414
  children: /* @__PURE__ */ a.jsxs(Ve, { direction: "left", children: [
1414
- /* @__PURE__ */ a.jsx(da, {}),
1415
+ /* @__PURE__ */ a.jsx(ha, {}),
1415
1416
  /* @__PURE__ */ a.jsx(
1416
1417
  "div",
1417
1418
  {
@@ -1420,7 +1421,7 @@ const da = () => {
1420
1421
  "peer-data-[navigation=false]:hidden"
1421
1422
  ),
1422
1423
  children: /* @__PURE__ */ a.jsxs(We, { className: "flex items-center gap-2", children: [
1423
- /* @__PURE__ */ a.jsx(rr, { size: 16, strokeWidth: 1.5 }),
1424
+ /* @__PURE__ */ a.jsx(ar, { size: 16, strokeWidth: 1.5 }),
1424
1425
  /* @__PURE__ */ a.jsx("span", { className: "text-sm", children: "Menu" })
1425
1426
  ] })
1426
1427
  }
@@ -1446,22 +1447,22 @@ const da = () => {
1446
1447
  }
1447
1448
  ) })
1448
1449
  ] });
1449
- }, _a = gt, Fa = pe, Qa = ha, La = Nt, Ba = pr, Ha = Rr, za = Ir, qa = ce, Ka = F, $a = jt, Ua = pe, Va = Pt, Wa = Dt, Ya = ie, Xa = te;
1450
+ }, Qa = gt, Ba = pe, La = fa, Ha = Nt, za = vr, qa = Ir, Ka = Tr, $a = ce, Ua = F, Va = jt, Wa = pe, Ya = St, Xa = Ot, Za = Pt, Ja = te;
1450
1451
  export {
1451
- Ha as Bootstrap,
1452
- za as BootstrapStatic,
1453
- Ya as Button,
1454
- Va as Callout,
1455
- Wa as ClientOnly,
1456
- Fa as DevPortal,
1457
- qa as Head,
1458
- Qa as Layout,
1459
- Xa as Link,
1460
- La as RouterError,
1461
- Ba as ServerError,
1462
- Ua as Zudoku,
1463
- $a as useAuth,
1464
- _a as useMDXComponents,
1465
- Ka as useZudoku
1452
+ qa as Bootstrap,
1453
+ Ka as BootstrapStatic,
1454
+ Za as Button,
1455
+ Ya as Callout,
1456
+ Xa as ClientOnly,
1457
+ Ba as DevPortal,
1458
+ $a as Head,
1459
+ La as Layout,
1460
+ Ja as Link,
1461
+ Ha as RouterError,
1462
+ za as ServerError,
1463
+ Wa as Zudoku,
1464
+ Va as useAuth,
1465
+ Qa as useMDXComponents,
1466
+ Ua as useZudoku
1466
1467
  };
1467
1468
  //# sourceMappingURL=zudoku.components.js.map