zudoku 0.0.0-f9d5b02 → 0.0.0-fd8f8ad

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.
@@ -27,6 +27,13 @@ async function hydrateLazyRoutes(routes) {
27
27
  function render(routes) {
28
28
  const router = createBrowserRouter(routes, {
29
29
  basename: config.basePath,
30
+ future: {
31
+ v7_relativeSplatPath: true,
32
+ v7_fetcherPersist: true,
33
+ v7_partialHydration: true,
34
+ v7_skipActionErrorRevalidation: true,
35
+ v7_normalizeFormMethod: true,
36
+ },
30
37
  });
31
38
  createRoot(root).render(_jsx(Bootstrap, { router: router }));
32
39
  }
@@ -34,6 +41,13 @@ async function hydrate(routes) {
34
41
  await hydrateLazyRoutes(routes);
35
42
  const router = createBrowserRouter(routes, {
36
43
  basename: config.basePath,
44
+ future: {
45
+ v7_relativeSplatPath: true,
46
+ v7_fetcherPersist: true,
47
+ v7_partialHydration: true,
48
+ v7_skipActionErrorRevalidation: true,
49
+ v7_normalizeFormMethod: true,
50
+ },
37
51
  });
38
52
  hydrateRoot(root, _jsx(Bootstrap, { hydrate: true, router: router }));
39
53
  }
@@ -1 +1 @@
1
- {"version":3,"file":"entry.client.js","sourceRoot":"","sources":["../../src/app/entry.client.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,EACL,mBAAmB,EACnB,WAAW,GAEZ,MAAM,kBAAkB,CAAC;AAC1B,OAAO,MAAM,MAAM,uBAAuB,CAAC;AAC3C,OAAO,0BAA0B,CAAC;AAClC,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,YAAY,CAAC;AACpB,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAE9C,MAAM,MAAM,GAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC;AACzC,MAAM,IAAI,GAAG,QAAQ,CAAC,cAAc,CAA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ueryClientProvider, } from "@tanstack/react-query";
3
3
  import { HelmetProvider } from "@zudoku/react-helmet-async";
4
- import { StrictMode, useMemo } from "react";
4
+ import { StrictMode, useState } from "react";
5
5
  import { RouterProvider } from "react-router-dom";
6
6
  import { StaticRouterProvider, } from "react-router-dom/server.js";
7
7
  import { StaggeredRenderContext } from "../plugins/openapi/StaggeredRender.js";
8
8
  const Bootstrap = ({ router, hydrate = false, }) => {
9
- const queryClient = useMemo(() => new QueryClient(), []);
10
- return (_jsx(StrictMode, { children: _jsx(QueryClientProvider, { client: queryClient, children: _jsx(HydrationBoundary, { state: hydrate ? window.DATA : undefined, children: _jsx(HelmetProvider, { children: _jsx(StaggeredRenderContext.Provider, { value: { stagger: !hydrate }, children: _jsx(RouterProvider, { router: router }) }) }) }) }) }));
9
+ const [queryClient] = useState(() => new QueryClient({
10
+ defaultOptions: {
11
+ queries: {
12
+ staleTime: 1000 * 60 * 5,
13
+ },
14
+ },
15
+ }));
16
+ return (_jsx(StrictMode, { children: _jsx(QueryClientProvider, { client: queryClient, children: _jsx(HydrationBoundary, { state: hydrate ? window.DATA : undefined, children: _jsx(HelmetProvider, { children: _jsx(StaggeredRenderContext.Provider, { value: { stagger: !hydrate }, children: _jsx(RouterProvider, { router: router, future: { v7_startTransition: true } }) }) }) }) }) }));
11
17
  };
12
18
  const BootstrapStatic = ({ router, context, queryClient, helmetContext, }) => (_jsx(StrictMode, { children: _jsx(QueryClientProvider, { client: queryClient, children: _jsx(HelmetProvider, { context: helmetContext, children: _jsx(StaticRouterProvider, { router: router, context: context }) }) }) }));
13
19
  export { Bootstrap, BootstrapStatic };
@@ -1 +1 @@
1
- {"version":3,"file":"Bootstrap.js","sourceRoot":"","sources":["../../../src/lib/components/Bootstrap.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,iBAAiB,EACjB,WAAW,EACX,mBAAmB,GACpB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAmB,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC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C,cAAc,IAAC,OAAO,EAAE,aAAa,YACpC,KAAC,oBAAoB,IAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAI,GAC3C,GACG,GACX,CACd,CAAC;AAEF,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,CAAC"}
@@ -14,16 +14,16 @@ var X = (e, t, r, s) => ({
14
14
  }
15
15
  });
16
16
  import { a as Fe, A as pt, H as he, M as vt, u as xt } from "./AnchorLink-CDlhr8gL.js";
17
- import { d as yt, R as bt, N as ae, u as jt, L as ne } from "./index-Yn8c3UWE.js";
17
+ import { d as yt, R as bt, N as re, u as jt, L as se } from "./index-Yn8c3UWE.js";
18
18
  import { u as wt } from "./state-BsPrOUAh.js";
19
19
  import { E as qe, S as O, a as Nt, R as Ct } from "./SlotletProvider-D2v6rJy1.js";
20
20
  import { j as a } from "./jsx-runtime-B6kdoens.js";
21
21
  import { Button as St } from "./ui/Button.js";
22
22
  import { Callout as Pt } from "./ui/Callout.js";
23
- import { S as ze, l as Be, Q as Et, n as w, m as Ce, o as Se, p as M, q as kt, r as At, t as Ot, v as Mt, w as Pe, x as Ee, y as Dt, h as ke, z as Ae, A as Rt, d as It, B as He, C as Tt, j as F, u as _, D as Le, E as Qt, g as _t, Z as Ft } from "./utils-DcpDOncX.js";
24
- import { M as qt, u as se } from "./hook-Diu0rqp-.js";
23
+ import { S as ze, l as Be, Q as Et, n as w, m as Ce, o as Se, p as M, q as kt, r as At, t as Ot, v as Mt, w as Pe, x as Ee, y as Dt, h as ke, z as Ae, A as Rt, d as Tt, B as He, C as It, j as F, u as Q, D as Le, E as _t, g as Qt, Z as Ft } from "./utils-DcpDOncX.js";
24
+ import { M as qt, u as ae } from "./hook-Diu0rqp-.js";
25
25
  import * as G from "react";
26
- import zt, { useMemo as re, StrictMode as Ue, useState as U, useEffect as q, useRef as fe, useCallback as Bt, Suspense as me, memo as Ke, forwardRef as Ht, createContext as $e, Component as Lt, createElement as Oe, useContext as Ut, Fragment as Kt } from "react";
26
+ import zt, { useState as q, StrictMode as Ue, useEffect as z, useRef as fe, useCallback as Bt, Suspense as me, memo as Ke, forwardRef as Ht, createContext as $e, Component as Lt, createElement as Oe, useMemo as ne, useContext as Ut, Fragment as Kt } from "react";
27
27
  import { a as ge } from "./_commonjsHelpers-BkfeUUK-.js";
28
28
  import { B as $t } from "./router-lfyopgBI.js";
29
29
  import { I as Vt, y as Zt, u as pe, O as Ve, j as Wt } from "./index-Czzd9rjU.js";
@@ -43,7 +43,7 @@ import { S as br } from "./Spinner-3cQDBVGr.js";
43
43
  function jr({ error: e }) {
44
44
  return /* @__PURE__ */ a.jsx(qe, { error: e });
45
45
  }
46
- var k, Te, wr = (Te = class extends ze {
46
+ var k, Ie, wr = (Ie = class extends ze {
47
47
  constructor(t = {}) {
48
48
  super();
49
49
  C(this, k);
@@ -115,7 +115,7 @@ var k, Te, wr = (Te = class extends ze {
115
115
  });
116
116
  });
117
117
  }
118
- }, k = new WeakMap(), Te), j, Z, Qe, Nr = (Qe = class extends ze {
118
+ }, k = new WeakMap(), Ie), j, Z, _e, Nr = (_e = class extends ze {
119
119
  constructor(t = {}) {
120
120
  super();
121
121
  C(this, j);
@@ -188,7 +188,7 @@ var k, Te, wr = (Te = class extends ze {
188
188
  )
189
189
  );
190
190
  }
191
- }, j = new WeakMap(), Z = new WeakMap(), Qe);
191
+ }, j = new WeakMap(), Z = new WeakMap(), _e);
192
192
  function ee(e) {
193
193
  var t;
194
194
  return ((t = e.options.scope) == null ? void 0 : t.id) ?? String(e.mutationId);
@@ -274,34 +274,34 @@ function Cr(e, { pages: t, pageParams: r }) {
274
274
  var s;
275
275
  return t.length > 0 ? (s = e.getPreviousPageParam) == null ? void 0 : s.call(e, t[0], t, r[0], r) : void 0;
276
276
  }
277
- var g, I, T, z, B, Q, H, L, _e, Sr = (_e = class {
277
+ var g, T, I, B, H, _, L, U, Qe, Sr = (Qe = class {
278
278
  constructor(e = {}) {
279
279
  C(this, g);
280
- C(this, I);
281
280
  C(this, T);
282
- C(this, z);
281
+ C(this, I);
283
282
  C(this, B);
284
- C(this, Q);
285
283
  C(this, H);
284
+ C(this, _);
286
285
  C(this, L);
287
- y(this, g, e.queryCache || new wr()), y(this, I, e.mutationCache || new Nr()), y(this, T, e.defaultOptions || {}), y(this, z, /* @__PURE__ */ new Map()), y(this, B, /* @__PURE__ */ new Map()), y(this, Q, 0);
286
+ C(this, U);
287
+ y(this, g, e.queryCache || new wr()), y(this, T, e.mutationCache || new Nr()), y(this, I, e.defaultOptions || {}), y(this, B, /* @__PURE__ */ new Map()), y(this, H, /* @__PURE__ */ new Map()), y(this, _, 0);
288
288
  }
289
289
  mount() {
290
- X(this, Q)._++, l(this, Q) === 1 && (y(this, H, Mt.subscribe(async (e) => {
290
+ X(this, _)._++, l(this, _) === 1 && (y(this, L, Mt.subscribe(async (e) => {
291
291
  e && (await this.resumePausedMutations(), l(this, g).onFocus());
292
- })), y(this, L, Pe.subscribe(async (e) => {
292
+ })), y(this, U, Pe.subscribe(async (e) => {
293
293
  e && (await this.resumePausedMutations(), l(this, g).onOnline());
294
294
  })));
295
295
  }
296
296
  unmount() {
297
297
  var e, t;
298
- X(this, Q)._--, l(this, Q) === 0 && ((e = l(this, H)) == null || e.call(this), y(this, H, void 0), (t = l(this, L)) == null || t.call(this), y(this, L, void 0));
298
+ X(this, _)._--, l(this, _) === 0 && ((e = l(this, L)) == null || e.call(this), y(this, L, void 0), (t = l(this, U)) == null || t.call(this), y(this, U, void 0));
299
299
  }
300
300
  isFetching(e) {
301
301
  return l(this, g).findAll({ ...e, fetchStatus: "fetching" }).length;
302
302
  }
303
303
  isMutating(e) {
304
- return l(this, I).findAll({ ...e, status: "pending" }).length;
304
+ return l(this, T).findAll({ ...e, status: "pending" }).length;
305
305
  }
306
306
  getQueryData(e) {
307
307
  var r;
@@ -412,41 +412,41 @@ var g, I, T, z, B, Q, H, L, _e, Sr = (_e = class {
412
412
  return e.behavior = Me(e.pages), this.ensureQueryData(e);
413
413
  }
414
414
  resumePausedMutations() {
415
- return Pe.isOnline() ? l(this, I).resumePausedMutations() : Promise.resolve();
415
+ return Pe.isOnline() ? l(this, T).resumePausedMutations() : Promise.resolve();
416
416
  }
417
417
  getQueryCache() {
418
418
  return l(this, g);
419
419
  }
420
420
  getMutationCache() {
421
- return l(this, I);
421
+ return l(this, T);
422
422
  }
423
423
  getDefaultOptions() {
424
- return l(this, T);
424
+ return l(this, I);
425
425
  }
426
426
  setDefaultOptions(e) {
427
- y(this, T, e);
427
+ y(this, I, e);
428
428
  }
429
429
  setQueryDefaults(e, t) {
430
- l(this, z).set(ke(e), {
430
+ l(this, B).set(ke(e), {
431
431
  queryKey: e,
432
432
  defaultOptions: t
433
433
  });
434
434
  }
435
435
  getQueryDefaults(e) {
436
- const t = [...l(this, z).values()];
436
+ const t = [...l(this, B).values()];
437
437
  let r = {};
438
438
  return t.forEach((s) => {
439
439
  Ae(e, s.queryKey) && (r = { ...r, ...s.defaultOptions });
440
440
  }), r;
441
441
  }
442
442
  setMutationDefaults(e, t) {
443
- l(this, B).set(ke(e), {
443
+ l(this, H).set(ke(e), {
444
444
  mutationKey: e,
445
445
  defaultOptions: t
446
446
  });
447
447
  }
448
448
  getMutationDefaults(e) {
449
- const t = [...l(this, B).values()];
449
+ const t = [...l(this, H).values()];
450
450
  let r = {};
451
451
  return t.forEach((s) => {
452
452
  Ae(e, s.mutationKey) && (r = { ...r, ...s.defaultOptions });
@@ -456,7 +456,7 @@ var g, I, T, z, B, Q, H, L, _e, Sr = (_e = class {
456
456
  if (e._defaulted)
457
457
  return e;
458
458
  const t = {
459
- ...l(this, T).queries,
459
+ ...l(this, I).queries,
460
460
  ...this.getQueryDefaults(e.queryKey),
461
461
  ...e,
462
462
  _defaulted: !0
@@ -468,16 +468,16 @@ var g, I, T, z, B, Q, H, L, _e, Sr = (_e = class {
468
468
  }
469
469
  defaultMutationOptions(e) {
470
470
  return e != null && e._defaulted ? e : {
471
- ...l(this, T).mutations,
471
+ ...l(this, I).mutations,
472
472
  ...(e == null ? void 0 : e.mutationKey) && this.getMutationDefaults(e.mutationKey),
473
473
  ...e,
474
474
  _defaulted: !0
475
475
  };
476
476
  }
477
477
  clear() {
478
- l(this, g).clear(), l(this, I).clear();
478
+ l(this, g).clear(), l(this, T).clear();
479
479
  }
480
- }, g = new WeakMap(), I = new WeakMap(), T = new WeakMap(), z = new WeakMap(), B = new WeakMap(), Q = new WeakMap(), H = new WeakMap(), L = new WeakMap(), _e);
480
+ }, g = new WeakMap(), T = new WeakMap(), I = new WeakMap(), B = new WeakMap(), H = new WeakMap(), _ = new WeakMap(), L = new WeakMap(), U = new WeakMap(), Qe);
481
481
  function Pr(e) {
482
482
  return e;
483
483
  }
@@ -539,7 +539,7 @@ var Er = ({
539
539
  state: r,
540
540
  queryClient: s
541
541
  }) => {
542
- const n = It(s), [o, i] = G.useState(), c = G.useRef(t);
542
+ const n = Tt(s), [o, i] = G.useState(), c = G.useRef(t);
543
543
  return c.current = t, G.useMemo(() => {
544
544
  if (r) {
545
545
  if (typeof r != "object")
@@ -607,7 +607,7 @@ function Rr({
607
607
  static: !0
608
608
  });
609
609
  }
610
- function Ir({
610
+ function Tr({
611
611
  context: e,
612
612
  router: t,
613
613
  hydrate: r = !0,
@@ -625,7 +625,7 @@ function Ir({
625
625
  let u = {
626
626
  loaderData: e.loaderData,
627
627
  actionData: e.actionData,
628
- errors: Qr(e.errors)
628
+ errors: _r(e.errors)
629
629
  };
630
630
  i = `window.__staticRouterHydrationData = JSON.parse(${Hr(JSON.stringify(JSON.stringify(u)))});`;
631
631
  }
@@ -651,7 +651,7 @@ function Ir({
651
651
  future: {
652
652
  v7_relativeSplatPath: t.future.v7_relativeSplatPath
653
653
  }
654
- }, /* @__PURE__ */ E.createElement(Tr, {
654
+ }, /* @__PURE__ */ E.createElement(Ir, {
655
655
  routes: t.routes,
656
656
  future: t.future,
657
657
  state: c
@@ -663,14 +663,14 @@ function Ir({
663
663
  }
664
664
  }) : null);
665
665
  }
666
- function Tr({
666
+ function Ir({
667
667
  routes: e,
668
668
  future: t,
669
669
  state: r
670
670
  }) {
671
671
  return ye.UNSAFE_useRoutesImpl(e, void 0, r, t);
672
672
  }
673
- function Qr(e) {
673
+ function _r(e) {
674
674
  if (!e) return null;
675
675
  let t = Object.entries(e), r = {};
676
676
  for (let [s, n] of t)
@@ -709,7 +709,7 @@ function et() {
709
709
  }
710
710
  };
711
711
  }
712
- function _r(e, t) {
712
+ function Qr(e, t) {
713
713
  return A.createStaticHandler(e, {
714
714
  ...t,
715
715
  mapRouteProperties: ye.UNSAFE_mapRouteProperties
@@ -829,15 +829,29 @@ function Hr(e) {
829
829
  return e.replace(Br, (t) => zr[t]);
830
830
  }
831
831
  W.StaticRouter = Rr;
832
- var Lr = W.StaticRouterProvider = Ir;
833
- W.createStaticHandler = _r;
832
+ var Lr = W.StaticRouterProvider = Tr;
833
+ W.createStaticHandler = Qr;
834
834
  W.createStaticRouter = Fr;
835
835
  const Ur = ({
836
836
  router: e,
837
837
  hydrate: t = !1
838
838
  }) => {
839
- const r = re(() => new Sr(), []);
840
- return /* @__PURE__ */ a.jsx(Ue, { children: /* @__PURE__ */ a.jsx(He, { client: r, children: /* @__PURE__ */ a.jsx(Er, { state: t ? window.DATA : void 0, children: /* @__PURE__ */ a.jsx(Fe, { children: /* @__PURE__ */ a.jsx(ce.Provider, { value: { stagger: !t }, children: /* @__PURE__ */ a.jsx(bt, { router: e }) }) }) }) }) });
839
+ const [r] = q(
840
+ () => new Sr({
841
+ defaultOptions: {
842
+ queries: {
843
+ staleTime: 3e5
844
+ }
845
+ }
846
+ })
847
+ );
848
+ return /* @__PURE__ */ a.jsx(Ue, { children: /* @__PURE__ */ a.jsx(He, { client: r, children: /* @__PURE__ */ a.jsx(Er, { state: t ? window.DATA : void 0, children: /* @__PURE__ */ a.jsx(Fe, { children: /* @__PURE__ */ a.jsx(ce.Provider, { value: { stagger: !t }, children: /* @__PURE__ */ a.jsx(
849
+ bt,
850
+ {
851
+ router: e,
852
+ future: { v7_startTransition: !0 }
853
+ }
854
+ ) }) }) }) }) });
841
855
  }, Kr = ({
842
856
  router: e,
843
857
  context: t,
@@ -848,8 +862,8 @@ const Ur = ({
848
862
  level: t
849
863
  }) => {
850
864
  var f, v;
851
- const r = Tt(e), [s, n] = U(!1), o = e.collapsible ?? !0, i = e.collapsed ?? !0, c = !!(!o || !i || r), [u, d] = U(c), x = Zt(((f = e.link) == null ? void 0 : f.id) ?? "");
852
- q(() => {
865
+ const r = It(e), [s, n] = q(!1), o = e.collapsible ?? !0, i = e.collapsed ?? !0, c = !!(!o || !i || r), [u, d] = q(c), x = Zt(((f = e.link) == null ? void 0 : f.id) ?? "");
866
+ z(() => {
853
867
  r && d(!0);
854
868
  }, [r]);
855
869
  const m = o && /* @__PURE__ */ a.jsx(
@@ -903,7 +917,7 @@ const Ur = ({
903
917
  }
904
918
  ),
905
919
  ((v = e.link) == null ? void 0 : v.type) === "doc" ? /* @__PURE__ */ a.jsx(
906
- ae,
920
+ re,
907
921
  {
908
922
  to: F(e.link.id),
909
923
  className: "flex-1",
@@ -983,7 +997,7 @@ const Ur = ({
983
997
  return /* @__PURE__ */ a.jsx($r, { category: e, level: t });
984
998
  case "doc":
985
999
  return /* @__PURE__ */ a.jsxs(
986
- ae,
1000
+ re,
987
1001
  {
988
1002
  className: ({ isActive: i }) => V({ isActive: i, isTopLevel: t === 0 }),
989
1003
  to: F(e.id),
@@ -1025,7 +1039,7 @@ const Ur = ({
1025
1039
  ]
1026
1040
  }
1027
1041
  ) : /* @__PURE__ */ a.jsx(
1028
- ae,
1042
+ re,
1029
1043
  {
1030
1044
  className: V({
1031
1045
  className: ((o = e.badge) == null ? void 0 : o.placement) !== "start" && "justify-between"
@@ -1044,7 +1058,7 @@ const Ur = ({
1044
1058
  r.top >= 0 && r.left >= 0 && r.bottom <= (window.innerHeight || document.documentElement.clientHeight) && r.right <= (window.innerWidth || document.documentElement.clientWidth) || e.scrollIntoView(t);
1045
1059
  }, Zr = () => {
1046
1060
  const e = pe(), { setActiveAnchor: t } = xe();
1047
- q(() => {
1061
+ z(() => {
1048
1062
  if (!e.hash) return;
1049
1063
  const r = decodeURIComponent(e.hash.split("/")[0].slice(1)), s = () => {
1050
1064
  const n = document.getElementById(r), o = document.querySelector(`[${at}="${r}"]`);
@@ -1059,7 +1073,7 @@ const Ur = ({
1059
1073
  }, [e.hash, t]);
1060
1074
  }, Wr = () => {
1061
1075
  const e = pe(), t = fe(e.pathname);
1062
- q(() => {
1076
+ z(() => {
1063
1077
  t.current !== e.pathname && (window.scrollTo(0, 0), t.current = e.pathname);
1064
1078
  }, [e.pathname]);
1065
1079
  };
@@ -1075,17 +1089,17 @@ function Yr({
1075
1089
  }
1076
1090
  );
1077
1091
  }
1078
- const Jr = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems == "function", Xr = (e) => "getRoutes" in e && typeof e.getRoutes == "function", Gr = (e) => "renderSearch" in e && typeof e.renderSearch == "function", ea = (e) => "initialize" in e && typeof e.initialize == "function", ta = (e) => "getHead" in e && typeof e.getHead == "function", ra = (e) => "getMdxComponents" in e && typeof e.getMdxComponents == "function", aa = (e) => "getIdentities" in e && typeof e.getIdentities == "function", Ie = {
1092
+ const Jr = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems == "function", Xr = (e) => "getRoutes" in e && typeof e.getRoutes == "function", Gr = (e) => "renderSearch" in e && typeof e.renderSearch == "function", ea = (e) => "initialize" in e && typeof e.initialize == "function", ta = (e) => "getHead" in e && typeof e.getHead == "function", ra = (e) => "getMdxComponents" in e && typeof e.getMdxComponents == "function", aa = (e) => "getIdentities" in e && typeof e.getIdentities == "function", Te = {
1079
1093
  info: "bg-blue-500",
1080
1094
  note: "bg-gray-500",
1081
1095
  tip: "bg-green-600",
1082
1096
  caution: "bg-orange-500",
1083
1097
  danger: "bg-rose-500"
1084
1098
  }, sa = () => {
1085
- const { page: e } = _(), [t, r] = U(!0);
1099
+ const { page: e } = Q(), [t, r] = q(!0);
1086
1100
  if (!(e != null && e.banner) || !t)
1087
1101
  return /* @__PURE__ */ a.jsx("style", { children: ":root { --banner-height: 0px; }" });
1088
- const s = e.banner.color && e.banner.color in Ie ? Ie[e.banner.color] : e.banner.color ? void 0 : "bg-primary", n = s ? {} : { backgroundColor: e.banner.color };
1102
+ const s = e.banner.color && e.banner.color in Te ? Te[e.banner.color] : e.banner.color ? void 0 : "bg-primary", n = s ? {} : { backgroundColor: e.banner.color };
1089
1103
  return /* @__PURE__ */ a.jsxs(
1090
1104
  "div",
1091
1105
  {
@@ -1109,8 +1123,8 @@ const Jr = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
1109
1123
  }
1110
1124
  );
1111
1125
  }, st = () => {
1112
- const e = _(), [t, r] = U(!1), s = Bt(() => r(!1), []);
1113
- q(() => {
1126
+ const e = Q(), [t, r] = q(!1), s = Bt(() => r(!1), []);
1127
+ z(() => {
1114
1128
  if (t)
1115
1129
  return;
1116
1130
  function o(i) {
@@ -1155,11 +1169,11 @@ const Jr = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
1155
1169
  }
1156
1170
  ) });
1157
1171
  }, it = (e) => (t) => t.display === "auth" && e || t.display === "anon" && !e || !t.display || t.display === "always", na = () => {
1158
- const { topNavigation: e } = _(), { isAuthenticated: t } = se();
1172
+ const { topNavigation: e } = Q(), { isAuthenticated: t } = ae();
1159
1173
  return e.length <= 1 ? /* @__PURE__ */ a.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ a.jsx(me, { 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(it(t)).map((r) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(ia, { ...r }) }, r.id)) }) }) });
1160
1174
  }, ia = ({ id: e, label: t, default: r }) => {
1161
1175
  var u;
1162
- const { sidebars: s } = _(), n = Le(), o = s[e], i = r ?? (o ? Qt(o, (d) => {
1176
+ const { sidebars: s } = Q(), n = Le(), o = s[e], i = r ?? (o ? _t(o, (d) => {
1163
1177
  if (d.type === "doc") return F(d.id);
1164
1178
  }) : F(e));
1165
1179
  if (!i)
@@ -1168,7 +1182,7 @@ const Jr = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
1168
1182
  );
1169
1183
  const c = ((u = n.topNavItem) == null ? void 0 : u.id) === e;
1170
1184
  return /* @__PURE__ */ a.jsx(
1171
- ne,
1185
+ se,
1172
1186
  {
1173
1187
  className: Xe(
1174
1188
  "block py-3.5 font-medium -mb-px border-b-2",
@@ -1179,7 +1193,7 @@ const Jr = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
1179
1193
  }
1180
1194
  );
1181
1195
  }, oa = () => {
1182
- const { topNavigation: e } = _(), { isAuthenticated: t } = se();
1196
+ const { topNavigation: e } = Q(), { isAuthenticated: t } = ae();
1183
1197
  return /* @__PURE__ */ a.jsxs(Ze, { direction: "right", children: [
1184
1198
  /* @__PURE__ */ a.jsx("div", { className: "flex lg:hidden justify-self-end", children: /* @__PURE__ */ a.jsx(We, { className: "lg:hidden", children: /* @__PURE__ */ a.jsx(rr, { size: 22 }) }) }),
1185
1199
  /* @__PURE__ */ a.jsxs(
@@ -1193,7 +1207,7 @@ const Jr = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
1193
1207
  /* @__PURE__ */ a.jsxs("ul", { className: "flex flex-col items-center gap-4 p-4", children: [
1194
1208
  /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(nt, {}) }),
1195
1209
  e.filter(it(t)).map((r) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
1196
- ae,
1210
+ re,
1197
1211
  {
1198
1212
  className: ({ isActive: s }) => Xe(
1199
1213
  "block font-medium border-b-2",
@@ -1214,13 +1228,13 @@ const Jr = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
1214
1228
  // eslint-disable-next-line react/no-array-index-key
1215
1229
  /* @__PURE__ */ a.jsx(ot, { item: t }, r)
1216
1230
  )) }) })
1217
- ] }, e.label) : /* @__PURE__ */ a.jsx(ne, { to: e.path ?? "", children: /* @__PURE__ */ a.jsx(vr, { children: e.label }, e.label) }), lt = Ke(function() {
1218
- const t = se(), { isAuthenticated: r, profile: s, isAuthEnabled: n } = se(), o = _(), { page: i, plugins: c } = o, u = c.filter((d) => Jr(d)).flatMap((d) => d.getProfileMenuItems(o)).map((d) => /* @__PURE__ */ a.jsx(ot, { item: d }, d.label));
1231
+ ] }, e.label) : /* @__PURE__ */ a.jsx(se, { to: e.path ?? "", children: /* @__PURE__ */ a.jsx(vr, { children: e.label }, e.label) }), lt = Ke(function() {
1232
+ const t = ae(), { isAuthenticated: r, profile: s, isAuthEnabled: n } = ae(), o = Q(), { page: i, plugins: c } = o, u = c.filter((d) => Jr(d)).flatMap((d) => d.getProfileMenuItems(o)).map((d) => /* @__PURE__ */ a.jsx(ot, { item: d }, d.label));
1219
1233
  return /* @__PURE__ */ a.jsxs("header", { className: "sticky lg:top-0 z-10 bg-background/80 backdrop-blur w-full", children: [
1220
1234
  /* @__PURE__ */ a.jsx(sa, {}),
1221
1235
  /* @__PURE__ */ a.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
1222
1236
  /* @__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: [
1223
- /* @__PURE__ */ a.jsx("div", { className: "flex", children: /* @__PURE__ */ a.jsx(ne, { to: "/", children: /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-3.5", children: [
1237
+ /* @__PURE__ */ a.jsx("div", { className: "flex", children: /* @__PURE__ */ a.jsx(se, { to: "/", children: /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-3.5", children: [
1224
1238
  (i == null ? void 0 : i.logo) && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1225
1239
  /* @__PURE__ */ a.jsx(
1226
1240
  "img",
@@ -1324,13 +1338,13 @@ const la = () => {
1324
1338
  )
1325
1339
  ] });
1326
1340
  }, ca = ({ children: e }) => {
1327
- const t = pe(), { setActiveAnchor: r } = xe(), { meta: s, authentication: n } = _();
1341
+ const t = pe(), { setActiveAnchor: r } = xe(), { meta: s, authentication: n } = Q();
1328
1342
  Zr(), Wr();
1329
1343
  const o = fe(t.pathname);
1330
- return q(() => {
1344
+ return z(() => {
1331
1345
  var i;
1332
1346
  (i = n == null ? void 0 : n.pageLoad) == null || i.call(n);
1333
- }, [n]), q(() => {
1347
+ }, [n]), z(() => {
1334
1348
  t.pathname !== o.current && r(""), o.current = t.pathname;
1335
1349
  }, [t.pathname, r]), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1336
1350
  !1,
@@ -1512,16 +1526,16 @@ const ut = {
1512
1526
  }, ga = $e(ut), pa = ga.Provider, va = ({
1513
1527
  children: e,
1514
1528
  context: t
1515
- }) => (_t({
1529
+ }) => (Qt({
1516
1530
  queryFn: async () => (await t.initialize(), !0),
1517
1531
  queryKey: ["zudoku-initialize"]
1518
1532
  }), /* @__PURE__ */ a.jsx(Ft.Provider, { value: t, children: e })), dt = Ke(
1519
1533
  ({ children: e, ...t }) => {
1520
1534
  var m, f;
1521
- const r = re(
1535
+ const r = ne(
1522
1536
  () => ({ ...ut, ...t.overrides }),
1523
1537
  [t.overrides]
1524
- ), s = re(() => {
1538
+ ), s = ne(() => {
1525
1539
  var p;
1526
1540
  return {
1527
1541
  ...(t.plugins ?? []).filter(ra).flatMap(
@@ -1533,14 +1547,14 @@ const ut = {
1533
1547
  ...nr,
1534
1548
  ...(p = t.mdx) == null ? void 0 : p.components
1535
1549
  };
1536
- }, [(m = t.mdx) == null ? void 0 : m.components, t.plugins]), { stagger: n } = Ut(ce), [o, i] = U(!1), c = re(
1550
+ }, [(m = t.mdx) == null ? void 0 : m.components, t.plugins]), { stagger: n } = Ut(ce), [o, i] = q(!1), c = ne(
1537
1551
  () => o ? { stagger: !0 } : { stagger: n },
1538
1552
  [n, o]
1539
1553
  ), u = Wt();
1540
- q(() => {
1554
+ z(() => {
1541
1555
  o || i(!0);
1542
1556
  }, [o, u.location]);
1543
- const [d] = U(() => new fa(t)), x = (f = t.plugins) == null ? void 0 : f.filter(ta).map((v, p) => {
1557
+ const [d] = q(() => new fa(t)), x = (f = t.plugins) == null ? void 0 : f.filter(ta).map((v, p) => {
1544
1558
  var h;
1545
1559
  return /* @__PURE__ */ a.jsx(Kt, { children: (h = v.getHead) == null ? void 0 : h.call(v) }, p);
1546
1560
  });
@@ -1553,7 +1567,7 @@ const ut = {
1553
1567
  dt.displayName = "ZudokoInner";
1554
1568
  const ht = (e) => /* @__PURE__ */ a.jsx(da, { FallbackComponent: ma, children: /* @__PURE__ */ a.jsx(dt, { ...e }) });
1555
1569
  ht.displayName = "Zudoku";
1556
- const Ua = xt, Ka = ca, $a = Ct, Va = jr, Za = Ur, Wa = Kr, Ya = he, Ja = _, Xa = wt, Ga = ht, es = Pt, ts = ve, rs = St, as = ne;
1570
+ const Ua = xt, Ka = ca, $a = Ct, Va = jr, Za = Ur, Wa = Kr, Ya = he, Ja = Q, Xa = wt, Ga = ht, es = Pt, ts = ve, rs = St, as = se;
1557
1571
  export {
1558
1572
  Za as Bootstrap,
1559
1573
  Wa as BootstrapStatic,