zudoku 0.32.1 → 0.32.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 (205) hide show
  1. package/dist/app/tailwind.js +6 -0
  2. package/dist/app/tailwind.js.map +1 -1
  3. package/dist/config/validators/InputSidebarSchema.d.ts +15 -15
  4. package/dist/config/validators/InputSidebarSchema.js +10 -1
  5. package/dist/config/validators/InputSidebarSchema.js.map +1 -1
  6. package/dist/config/validators/common.d.ts +40 -40
  7. package/dist/config/validators/icon-types.d.ts +1 -1
  8. package/dist/config/validators/validate.d.ts +19 -19
  9. package/dist/lib/components/Header.js +2 -2
  10. package/dist/lib/components/Header.js.map +1 -1
  11. package/dist/lib/components/Layout.js +1 -1
  12. package/dist/lib/components/Layout.js.map +1 -1
  13. package/dist/lib/components/TopNavigation.js +3 -2
  14. package/dist/lib/components/TopNavigation.js.map +1 -1
  15. package/dist/lib/components/context/ZudokuContext.d.ts +1 -1
  16. package/dist/lib/components/index.d.ts +1 -0
  17. package/dist/lib/components/index.js +2 -0
  18. package/dist/lib/components/index.js.map +1 -1
  19. package/dist/lib/components/navigation/SidebarBadge.d.ts +2 -0
  20. package/dist/lib/components/navigation/SidebarBadge.js +3 -1
  21. package/dist/lib/components/navigation/SidebarBadge.js.map +1 -1
  22. package/dist/lib/components/navigation/SidebarItem.js +1 -1
  23. package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
  24. package/dist/lib/components/navigation/SidebarWrapper.js +1 -1
  25. package/dist/lib/components/navigation/SidebarWrapper.js.map +1 -1
  26. package/dist/lib/oas/graphql/index.js +3 -1
  27. package/dist/lib/oas/graphql/index.js.map +1 -1
  28. package/dist/lib/plugins/api-catalog/Catalog.d.ts +2 -2
  29. package/dist/lib/plugins/api-catalog/Catalog.js +11 -24
  30. package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -1
  31. package/dist/lib/plugins/api-catalog/index.d.ts +1 -0
  32. package/dist/lib/plugins/api-catalog/index.js +37 -8
  33. package/dist/lib/plugins/api-catalog/index.js.map +1 -1
  34. package/dist/lib/plugins/markdown/MdxPage.js +1 -1
  35. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  36. package/dist/lib/plugins/openapi/Sidecar.js +1 -1
  37. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  38. package/dist/lib/plugins/openapi/SidecarExamples.js +2 -2
  39. package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -1
  40. package/dist/lib/plugins/openapi/graphql/gql.js +0 -11
  41. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  42. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +1 -1
  43. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -1
  44. package/dist/lib/ui/Badge.d.ts +1 -1
  45. package/dist/lib/ui/Button.d.ts +1 -1
  46. package/dist/lib/ui/Command.d.ts +1 -1
  47. package/dist/lib/ui/SyntaxHighlight.d.ts +14 -0
  48. package/dist/lib/{components → ui}/SyntaxHighlight.js +9 -6
  49. package/dist/lib/ui/SyntaxHighlight.js.map +1 -0
  50. package/dist/lib/ui/util.d.ts +2 -0
  51. package/dist/lib/ui/util.js +3 -0
  52. package/dist/lib/ui/util.js.map +1 -0
  53. package/dist/lib/util/MdxComponents.js +1 -1
  54. package/dist/lib/util/MdxComponents.js.map +1 -1
  55. package/dist/vite/config.js +4 -14
  56. package/dist/vite/config.js.map +1 -1
  57. package/dist/vite/plugin-api.js +2 -2
  58. package/dist/vite/plugin-api.js.map +1 -1
  59. package/dist/vite/plugin-config-reload.js +2 -1
  60. package/dist/vite/plugin-config-reload.js.map +1 -1
  61. package/dist/vite/plugin-config.js +5 -2
  62. package/dist/vite/plugin-config.js.map +1 -1
  63. package/lib/{AuthenticationPlugin-_YVa673u.js → AuthenticationPlugin-BlxA4Mbn.js} +4 -4
  64. package/lib/{AuthenticationPlugin-_YVa673u.js.map → AuthenticationPlugin-BlxA4Mbn.js.map} +1 -1
  65. package/lib/{CategoryHeading-MYL1u_6K.js → CategoryHeading-DpB47wvk.js} +3 -3
  66. package/lib/{CategoryHeading-MYL1u_6K.js.map → CategoryHeading-DpB47wvk.js.map} +1 -1
  67. package/lib/{Markdown-8mv9nhGd.js → Markdown-Cr9sYpR_.js} +4800 -4729
  68. package/lib/Markdown-Cr9sYpR_.js.map +1 -0
  69. package/lib/{MdxPage-GM1T5jmO.js → MdxPage-Dt-UEQl8.js} +10 -10
  70. package/lib/MdxPage-Dt-UEQl8.js.map +1 -0
  71. package/lib/{OasProvider-IS9wBrb7.js → OasProvider-WVtvHP5H.js} +6 -6
  72. package/lib/{OasProvider-IS9wBrb7.js.map → OasProvider-WVtvHP5H.js.map} +1 -1
  73. package/lib/{OperationList-BTmRbbXk.js → OperationList-DhOwupvv.js} +18 -19
  74. package/lib/{OperationList-BTmRbbXk.js.map → OperationList-DhOwupvv.js.map} +1 -1
  75. package/lib/Select-D9hI1G-y.js +223 -0
  76. package/lib/{Select-D9CKL33X.js.map → Select-D9hI1G-y.js.map} +1 -1
  77. package/lib/{SlotletProvider-D0mFmGJu.js → SlotletProvider-CEfNOA8i.js} +53 -53
  78. package/lib/{SlotletProvider-D0mFmGJu.js.map → SlotletProvider-CEfNOA8i.js.map} +1 -1
  79. package/lib/{Spinner-BlzrEEk1.js → Spinner-1KrEmx1V.js} +3 -3
  80. package/lib/{Spinner-BlzrEEk1.js.map → Spinner-1KrEmx1V.js.map} +1 -1
  81. package/lib/{SyntaxHighlight-B0L4SC_N.js → SyntaxHighlight-CcnUjERD.js} +445 -445
  82. package/lib/SyntaxHighlight-CcnUjERD.js.map +1 -0
  83. package/lib/{chunk-SYFQ2XB5-QijJrSf0.js → chunk-IR6S3I6Y-D_3UmFIn.js} +597 -597
  84. package/lib/chunk-IR6S3I6Y-D_3UmFIn.js.map +1 -0
  85. package/lib/{circular-DxaIIlWD.js → circular-v7K6lDDh.js} +1413 -1413
  86. package/lib/{circular-DxaIIlWD.js.map → circular-v7K6lDDh.js.map} +1 -1
  87. package/lib/context-DLCwaMXN.js +22 -0
  88. package/lib/{context-rwLGh-6_.js.map → context-DLCwaMXN.js.map} +1 -1
  89. package/lib/{createServer-DSQiPwjN.js → createServer-DMf6O2Rz.js} +3669 -3562
  90. package/lib/createServer-DMf6O2Rz.js.map +1 -0
  91. package/lib/{hook-C_t2ISLC.js → hook-CWwSAAlH.js} +384 -379
  92. package/lib/hook-CWwSAAlH.js.map +1 -0
  93. package/lib/index-Bn6Lc9tq.js +9 -0
  94. package/lib/index-Bn6Lc9tq.js.map +1 -0
  95. package/lib/index-CPNSgwSb.js +36 -0
  96. package/lib/{index-Djenk2Hj.js.map → index-CPNSgwSb.js.map} +1 -1
  97. package/lib/{index-BANyVRgL.js → index-Do_30Hpk.js} +78 -78
  98. package/lib/index-Do_30Hpk.js.map +1 -0
  99. package/lib/{index-B7mqiOei.js → index-Du5aNddU.js} +101 -101
  100. package/lib/index-Du5aNddU.js.map +1 -0
  101. package/lib/{index-CjJS0l4l.js → index-LNp6rxyU.js} +2 -2
  102. package/lib/{index-CjJS0l4l.js.map → index-LNp6rxyU.js.map} +1 -1
  103. package/lib/{index.esm-CrSoEshU.js → index.esm--gIChbWs.js} +3 -3
  104. package/lib/{index.esm-CrSoEshU.js.map → index.esm--gIChbWs.js.map} +1 -1
  105. package/lib/{index.esm-9-TF9KQB.js → index.esm-CQHE3GEU.js} +52 -53
  106. package/lib/{index.esm-9-TF9KQB.js.map → index.esm-CQHE3GEU.js.map} +1 -1
  107. package/lib/joinUrl-10po2Jdj.js +20 -0
  108. package/lib/{joinUrl-nLx9pD-Z.js.map → joinUrl-10po2Jdj.js.map} +1 -1
  109. package/lib/{jsx-runtime-Bdg6XQ1m.js → jsx-runtime-CYK1ROHF.js} +99 -99
  110. package/lib/{jsx-runtime-Bdg6XQ1m.js.map → jsx-runtime-CYK1ROHF.js.map} +1 -1
  111. package/lib/{mutation-Cm3O9f3X.js → mutation-B0wxqzSN.js} +26 -26
  112. package/lib/{mutation-Cm3O9f3X.js.map → mutation-B0wxqzSN.js.map} +1 -1
  113. package/lib/post-processors/removeExtensions.js +4 -4
  114. package/lib/ui/Accordion.js +1 -1
  115. package/lib/ui/ActionButton.js +2 -2
  116. package/lib/ui/Alert.js +2 -2
  117. package/lib/ui/AlertDialog.js +1 -1
  118. package/lib/ui/Badge.js +2 -2
  119. package/lib/ui/Breadcrumb.js +4 -4
  120. package/lib/ui/Button.js +2 -2
  121. package/lib/ui/Callout.js +4 -4
  122. package/lib/ui/Card.js +1 -1
  123. package/lib/ui/Carousel.js +1 -1
  124. package/lib/ui/Checkbox.js +2 -2
  125. package/lib/ui/Command.js +2 -2
  126. package/lib/ui/Dialog.js +1 -1
  127. package/lib/ui/Drawer.js +521 -543
  128. package/lib/ui/Drawer.js.map +1 -1
  129. package/lib/ui/DropdownMenu.js +1 -1
  130. package/lib/ui/Form.js +5 -5
  131. package/lib/ui/HoverCard.js +1 -1
  132. package/lib/ui/Input.js +1 -1
  133. package/lib/ui/Label.js +2 -2
  134. package/lib/ui/Pagination.js +10 -10
  135. package/lib/ui/Popover.js +1 -1
  136. package/lib/ui/Progress.js +1 -1
  137. package/lib/ui/RadioGroup.js +1 -1
  138. package/lib/ui/ScrollArea.js +1 -1
  139. package/lib/ui/Select.js +1 -1
  140. package/lib/ui/Skeleton.js +1 -1
  141. package/lib/ui/Slider.js +1 -1
  142. package/lib/ui/Switch.js +1 -1
  143. package/lib/ui/SyntaxHighlight.js +10 -0
  144. package/lib/ui/SyntaxHighlight.js.map +1 -0
  145. package/lib/ui/Tabs.js +1 -1
  146. package/lib/ui/Textarea.js +1 -1
  147. package/lib/ui/Toggle.js +2 -2
  148. package/lib/ui/ToggleGroup.js +1 -1
  149. package/lib/ui/Tooltip.js +1 -1
  150. package/lib/ui/util.js +6 -0
  151. package/lib/ui/util.js.map +1 -0
  152. package/lib/{useExposedProps-Bbf99zic.js → useExposedProps-RIvey2Oy.js} +2 -2
  153. package/lib/{useExposedProps-Bbf99zic.js.map → useExposedProps-RIvey2Oy.js.map} +1 -1
  154. package/lib/{useScrollToAnchor-BGEcH3HM.js → useScrollToAnchor-C-sRxs9o.js} +13 -9
  155. package/lib/useScrollToAnchor-C-sRxs9o.js.map +1 -0
  156. package/lib/zudoku.auth-auth0.js +1 -1
  157. package/lib/zudoku.auth-clerk.js +18 -18
  158. package/lib/zudoku.auth-openid.js +255 -295
  159. package/lib/zudoku.auth-openid.js.map +1 -1
  160. package/lib/zudoku.components.js +290 -283
  161. package/lib/zudoku.components.js.map +1 -1
  162. package/lib/zudoku.icons.js +1 -1
  163. package/lib/zudoku.plugin-api-catalog.js +91 -108
  164. package/lib/zudoku.plugin-api-catalog.js.map +1 -1
  165. package/lib/zudoku.plugin-api-keys.js +6 -6
  166. package/lib/zudoku.plugin-custom-pages.js +3 -3
  167. package/lib/zudoku.plugin-markdown.js +2 -2
  168. package/lib/zudoku.plugin-openapi.js +6 -6
  169. package/lib/zudoku.plugin-redirect.js +1 -1
  170. package/lib/zudoku.plugin-search-inkeep.js +9 -9
  171. package/package.json +49 -50
  172. package/src/app/tailwind.ts +6 -0
  173. package/src/lib/components/Header.tsx +3 -3
  174. package/src/lib/components/Layout.tsx +2 -2
  175. package/src/lib/components/TopNavigation.tsx +13 -9
  176. package/src/lib/components/index.ts +2 -0
  177. package/src/lib/components/navigation/SidebarBadge.tsx +4 -1
  178. package/src/lib/components/navigation/SidebarItem.tsx +1 -0
  179. package/src/lib/components/navigation/SidebarWrapper.tsx +1 -1
  180. package/src/lib/oas/graphql/index.ts +4 -1
  181. package/src/lib/plugins/api-catalog/Catalog.tsx +31 -94
  182. package/src/lib/plugins/api-catalog/index.tsx +54 -9
  183. package/src/lib/plugins/markdown/MdxPage.tsx +1 -1
  184. package/src/lib/plugins/openapi/Sidecar.tsx +1 -1
  185. package/src/lib/plugins/openapi/SidecarExamples.tsx +1 -2
  186. package/src/lib/plugins/openapi/graphql/gql.ts +9 -1
  187. package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +1 -1
  188. package/src/lib/{components → ui}/SyntaxHighlight.tsx +23 -8
  189. package/src/lib/ui/util.tsx +3 -0
  190. package/src/lib/util/MdxComponents.tsx +1 -1
  191. package/dist/lib/components/SyntaxHighlight.d.ts +0 -12
  192. package/dist/lib/components/SyntaxHighlight.js.map +0 -1
  193. package/lib/Markdown-8mv9nhGd.js.map +0 -1
  194. package/lib/MdxPage-GM1T5jmO.js.map +0 -1
  195. package/lib/Select-D9CKL33X.js +0 -223
  196. package/lib/SyntaxHighlight-B0L4SC_N.js.map +0 -1
  197. package/lib/chunk-SYFQ2XB5-QijJrSf0.js.map +0 -1
  198. package/lib/context-rwLGh-6_.js +0 -22
  199. package/lib/createServer-DSQiPwjN.js.map +0 -1
  200. package/lib/hook-C_t2ISLC.js.map +0 -1
  201. package/lib/index-B7mqiOei.js.map +0 -1
  202. package/lib/index-BANyVRgL.js.map +0 -1
  203. package/lib/index-Djenk2Hj.js +0 -36
  204. package/lib/joinUrl-nLx9pD-Z.js +0 -20
  205. package/lib/useScrollToAnchor-BGEcH3HM.js.map +0 -1
@@ -1,55 +1,55 @@
1
- var lt = Object.defineProperty;
1
+ var ut = Object.defineProperty;
2
2
  var xe = (t) => {
3
3
  throw TypeError(t);
4
4
  };
5
- var ct = (t, e, r) => e in t ? lt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
6
- var P = (t, e, r) => ct(t, typeof e != "symbol" ? e + "" : e, r), ye = (t, e, r) => e.has(t) || xe("Cannot " + r);
7
- var l = (t, e, r) => (ye(t, e, "read from private field"), r ? r.call(t) : e.get(t)), j = (t, e, r) => e.has(t) ? xe("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), y = (t, e, r, n) => (ye(t, e, "write to private field"), n ? n.call(t, r) : e.set(t, r), r);
5
+ var dt = (t, e, r) => e in t ? ut(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
6
+ var P = (t, e, r) => dt(t, typeof e != "symbol" ? e + "" : e, r), ve = (t, e, r) => e.has(t) || xe("Cannot " + r);
7
+ var l = (t, e, r) => (ve(t, e, "read from private field"), r ? r.call(t) : e.get(t)), j = (t, e, r) => e.has(t) ? xe("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), v = (t, e, r, n) => (ve(t, e, "write to private field"), n ? n.call(t, r) : e.set(t, r), r);
8
8
  var G = (t, e, r, n) => ({
9
9
  set _(a) {
10
- y(t, e, a, r);
10
+ v(t, e, a, r);
11
11
  },
12
12
  get _() {
13
13
  return l(t, e, n);
14
14
  }
15
15
  });
16
- import { a as Re, H as oe } from "./index.esm-9-TF9KQB.js";
17
- import { u as le, m as ut, O as ce, R as dt, S as ht, h as ue, f as ft, L as de } from "./chunk-SYFQ2XB5-QijJrSf0.js";
18
- import { S as Fe, m as Be, Q as gt, n as w, o as ve, p as be, q as M, r as mt, t as pt, v as xt, w as yt, x as je, y as we, z as vt, h as Pe, A as ke, B as bt, e as jt, k as z, i as A, C as He, D as ze, E as wt, j as ne, a as Pt, Z as kt, F as Ct, G as St } from "./hook-C_t2ISLC.js";
19
- import { j as s } from "./jsx-runtime-Bdg6XQ1m.js";
16
+ import { a as Fe, H as oe } from "./index.esm-CQHE3GEU.js";
17
+ import { z as Be, J as ht } from "./SyntaxHighlight-CcnUjERD.js";
18
+ import { u as le, m as ft, O as ce, R as gt, S as mt, h as ue, f as pt, L as de } from "./chunk-IR6S3I6Y-D_3UmFIn.js";
19
+ import { S as He, m as ze, Q as xt, n as w, o as ye, p as be, q as M, r as vt, t as yt, v as bt, w as jt, x as je, y as we, z as wt, h as Pe, A as ke, B as Pt, e as kt, k as z, i as A, C as Le, D as Ke, E as Ct, j as ne, a as St, Z as Nt, F as Dt, G as Mt } from "./hook-CWwSAAlH.js";
20
+ import { j as s } from "./jsx-runtime-CYK1ROHF.js";
20
21
  import * as U from "react";
21
- import Nt, { useRef as ee, useEffect as I, createContext as he, StrictMode as Le, useState as L, useCallback as Dt, Suspense as fe, memo as Ke, forwardRef as Mt, Component as Ot, createElement as Ce, useMemo as te, useContext as At, Fragment as Et } from "react";
22
- import { Z as $e } from "./invariant-Caa8-XvF.js";
23
- import { E as Ue, S as D, a as qt, R as Tt } from "./SlotletProvider-D0mFmGJu.js";
24
- import { Button as It } from "./ui/Button.js";
25
- import { Callout as Qt } from "./ui/Callout.js";
26
- import { M as Rt } from "./mutation-Cm3O9f3X.js";
27
- import * as Ft from "react-dom";
22
+ import Ot, { useRef as ee, useEffect as I, createContext as he, StrictMode as $e, useState as L, useCallback as At, Suspense as fe, memo as Ue, forwardRef as Et, Component as qt, createElement as Ce, useMemo as te, useContext as Tt, Fragment as It } from "react";
23
+ import { Z as Ze } from "./invariant-Caa8-XvF.js";
24
+ import { E as Ye, S, a as Qt, R as Rt } from "./SlotletProvider-CEfNOA8i.js";
25
+ import { Button as Ft } from "./ui/Button.js";
26
+ import { Callout as Bt } from "./ui/Callout.js";
27
+ import { M as Ht } from "./mutation-B0wxqzSN.js";
28
+ import * as zt from "react-dom";
28
29
  import { C as ge } from "./ClientOnly-E7hGysn1.js";
29
- import { CircleXIcon as Bt, SearchIcon as Ht, SunIcon as zt, MoonIcon as Lt, MenuIcon as Kt, PanelLeftIcon as $t } from "lucide-react";
30
- import { Drawer as Ze, DrawerTrigger as Ye, DrawerContent as Ve, DrawerTitle as Xe } from "./ui/Drawer.js";
30
+ import { CircleXIcon as Lt, SearchIcon as Kt, SunIcon as $t, MoonIcon as Ut, MenuIcon as Zt, PanelLeftIcon as Yt } from "lucide-react";
31
+ import { Drawer as Ve, DrawerTrigger as Xe, DrawerContent as Ge, DrawerTitle as _e } from "./ui/Drawer.js";
31
32
  import { c as Q } from "./cn-qaFjX9_3.js";
32
- import { s as Ut, S as Se, a as Zt, M as Yt, u as Vt } from "./useScrollToAnchor-BGEcH3HM.js";
33
- import { u as Xt, P as Gt, H as _t, a as Wt, V as Jt, M as er } from "./Markdown-8mv9nhGd.js";
34
- import { B as ae, S as Ge } from "./Spinner-BlzrEEk1.js";
35
- import { isSearchPlugin as tr, isProfileMenuPlugin as rr, isNavigationPlugin as sr, needsInitialization as nr, isApiIdentityPlugin as ar, isMdxProviderPlugin as ir, hasHead as or } from "./zudoku.plugins.js";
36
- import { DropdownMenu as lr, DropdownMenuTrigger as cr, DropdownMenuContent as ur, DropdownMenuLabel as dr, DropdownMenuSeparator as re, DropdownMenuSub as hr, DropdownMenuSubTrigger as fr, DropdownMenuPortal as gr, DropdownMenuSubContent as mr, DropdownMenuItem as pr } from "./ui/DropdownMenu.js";
37
- import { j as Ne } from "./joinUrl-nLx9pD-Z.js";
38
- import { VisuallyHidden as _e } from "@radix-ui/react-visually-hidden";
39
- import { z as xr, J as yr } from "./SyntaxHighlight-B0L4SC_N.js";
40
- import { a as vr } from "./index-Djenk2Hj.js";
41
- import { C as br } from "./CategoryHeading-MYL1u_6K.js";
42
- var N, Te, jr = (Te = class extends Fe {
33
+ import { s as Vt, S as Se, a as Xt, M as Gt, u as _t } from "./useScrollToAnchor-C-sRxs9o.js";
34
+ import { u as Wt, H as Jt, P as er, a as tr, V as rr, M as sr } from "./Markdown-Cr9sYpR_.js";
35
+ import { B as ae, S as We } from "./Spinner-1KrEmx1V.js";
36
+ import { isSearchPlugin as nr, isProfileMenuPlugin as ar, isNavigationPlugin as ir, needsInitialization as or, isApiIdentityPlugin as lr, isMdxProviderPlugin as cr, hasHead as ur } from "./zudoku.plugins.js";
37
+ import { DropdownMenu as dr, DropdownMenuTrigger as hr, DropdownMenuContent as fr, DropdownMenuLabel as gr, DropdownMenuSeparator as re, DropdownMenuSub as mr, DropdownMenuSubTrigger as pr, DropdownMenuPortal as xr, DropdownMenuSubContent as vr, DropdownMenuItem as yr } from "./ui/DropdownMenu.js";
38
+ import { j as Ne } from "./joinUrl-10po2Jdj.js";
39
+ import { VisuallyHidden as Je } from "@radix-ui/react-visually-hidden";
40
+ import { a as br } from "./index-CPNSgwSb.js";
41
+ import { C as jr } from "./CategoryHeading-DpB47wvk.js";
42
+ var D, Ie, wr = (Ie = class extends He {
43
43
  constructor(e = {}) {
44
44
  super();
45
- j(this, N);
46
- this.config = e, y(this, N, /* @__PURE__ */ new Map());
45
+ j(this, D);
46
+ this.config = e, v(this, D, /* @__PURE__ */ new Map());
47
47
  }
48
48
  build(e, r, n) {
49
- const a = r.queryKey, o = r.queryHash ?? Be(a, r);
49
+ const a = r.queryKey, o = r.queryHash ?? ze(a, r);
50
50
  let i = this.get(o);
51
- return i || (i = new gt({
52
- cache: this,
51
+ return i || (i = new xt({
52
+ client: e,
53
53
  queryKey: a,
54
54
  queryHash: o,
55
55
  options: e.defaultQueryOptions(r),
@@ -58,14 +58,14 @@ var N, Te, jr = (Te = class extends Fe {
58
58
  }), this.add(i)), i;
59
59
  }
60
60
  add(e) {
61
- l(this, N).has(e.queryHash) || (l(this, N).set(e.queryHash, e), this.notify({
61
+ l(this, D).has(e.queryHash) || (l(this, D).set(e.queryHash, e), this.notify({
62
62
  type: "added",
63
63
  query: e
64
64
  }));
65
65
  }
66
66
  remove(e) {
67
- const r = l(this, N).get(e.queryHash);
68
- r && (e.destroy(), r === e && l(this, N).delete(e.queryHash), this.notify({ type: "removed", query: e }));
67
+ const r = l(this, D).get(e.queryHash);
68
+ r && (e.destroy(), r === e && l(this, D).delete(e.queryHash), this.notify({ type: "removed", query: e }));
69
69
  }
70
70
  clear() {
71
71
  w.batch(() => {
@@ -75,20 +75,20 @@ var N, Te, jr = (Te = class extends Fe {
75
75
  });
76
76
  }
77
77
  get(e) {
78
- return l(this, N).get(e);
78
+ return l(this, D).get(e);
79
79
  }
80
80
  getAll() {
81
- return [...l(this, N).values()];
81
+ return [...l(this, D).values()];
82
82
  }
83
83
  find(e) {
84
84
  const r = { exact: !0, ...e };
85
85
  return this.getAll().find(
86
- (n) => ve(r, n)
86
+ (n) => ye(r, n)
87
87
  );
88
88
  }
89
89
  findAll(e = {}) {
90
90
  const r = this.getAll();
91
- return Object.keys(e).length > 0 ? r.filter((n) => ve(e, n)) : r;
91
+ return Object.keys(e).length > 0 ? r.filter((n) => ye(e, n)) : r;
92
92
  }
93
93
  notify(e) {
94
94
  w.batch(() => {
@@ -111,16 +111,16 @@ var N, Te, jr = (Te = class extends Fe {
111
111
  });
112
112
  });
113
113
  }
114
- }, N = new WeakMap(), Te), O, C, Y, Ie, wr = (Ie = class extends Fe {
114
+ }, D = new WeakMap(), Ie), O, C, Y, Qe, Pr = (Qe = class extends He {
115
115
  constructor(e = {}) {
116
116
  super();
117
117
  j(this, O);
118
118
  j(this, C);
119
119
  j(this, Y);
120
- this.config = e, y(this, O, /* @__PURE__ */ new Set()), y(this, C, /* @__PURE__ */ new Map()), y(this, Y, 0);
120
+ this.config = e, v(this, O, /* @__PURE__ */ new Set()), v(this, C, /* @__PURE__ */ new Map()), v(this, Y, 0);
121
121
  }
122
122
  build(e, r, n) {
123
- const a = new Rt({
123
+ const a = new Ht({
124
124
  mutationCache: this,
125
125
  mutationId: ++G(this, Y)._,
126
126
  options: e.defaultMutationOptions(r),
@@ -204,7 +204,7 @@ var N, Te, jr = (Te = class extends Fe {
204
204
  )
205
205
  );
206
206
  }
207
- }, O = new WeakMap(), C = new WeakMap(), Y = new WeakMap(), Ie);
207
+ }, O = new WeakMap(), C = new WeakMap(), Y = new WeakMap(), Qe);
208
208
  function _(t) {
209
209
  var e;
210
210
  return (e = t.options.scope) == null ? void 0 : e.id;
@@ -212,61 +212,63 @@ function _(t) {
212
212
  function De(t) {
213
213
  return {
214
214
  onFetch: (e, r) => {
215
- var g, f, h, x, v;
216
- const n = e.options, a = (h = (f = (g = e.fetchOptions) == null ? void 0 : g.meta) == null ? void 0 : f.fetchMore) == null ? void 0 : h.direction, o = ((x = e.state.data) == null ? void 0 : x.pages) || [], i = ((v = e.state.data) == null ? void 0 : v.pageParams) || [];
215
+ var g, f, h, m, y;
216
+ const n = e.options, a = (h = (f = (g = e.fetchOptions) == null ? void 0 : g.meta) == null ? void 0 : f.fetchMore) == null ? void 0 : h.direction, o = ((m = e.state.data) == null ? void 0 : m.pages) || [], i = ((y = e.state.data) == null ? void 0 : y.pageParams) || [];
217
217
  let u = { pages: [], pageParams: [] }, d = 0;
218
218
  const c = async () => {
219
- let m = !1;
219
+ let p = !1;
220
220
  const k = (b) => {
221
221
  Object.defineProperty(b, "signal", {
222
222
  enumerable: !0,
223
- get: () => (e.signal.aborted ? m = !0 : e.signal.addEventListener("abort", () => {
224
- m = !0;
223
+ get: () => (e.signal.aborted ? p = !0 : e.signal.addEventListener("abort", () => {
224
+ p = !0;
225
225
  }), e.signal)
226
226
  });
227
- }, V = mt(e.options, e.fetchOptions), K = async (b, S, $) => {
228
- if (m)
227
+ }, V = vt(e.options, e.fetchOptions), K = async (b, N, $) => {
228
+ if (p)
229
229
  return Promise.reject();
230
- if (S == null && b.pages.length)
230
+ if (N == null && b.pages.length)
231
231
  return Promise.resolve(b);
232
232
  const X = {
233
+ client: e.client,
233
234
  queryKey: e.queryKey,
234
- pageParam: S,
235
+ pageParam: N,
235
236
  direction: $ ? "backward" : "forward",
236
237
  meta: e.options.meta
237
238
  };
238
239
  k(X);
239
- const ot = await V(
240
+ const ct = await V(
240
241
  X
241
- ), { maxPages: me } = e.options, pe = $ ? pt : xt;
242
+ ), { maxPages: me } = e.options, pe = $ ? yt : bt;
242
243
  return {
243
- pages: pe(b.pages, ot, me),
244
- pageParams: pe(b.pageParams, S, me)
244
+ pages: pe(b.pages, ct, me),
245
+ pageParams: pe(b.pageParams, N, me)
245
246
  };
246
247
  };
247
248
  if (a && o.length) {
248
- const b = a === "backward", S = b ? Pr : Me, $ = {
249
+ const b = a === "backward", N = b ? kr : Me, $ = {
249
250
  pages: o,
250
251
  pageParams: i
251
- }, X = S(n, $);
252
+ }, X = N(n, $);
252
253
  u = await K($, X, b);
253
254
  } else {
254
255
  const b = t ?? o.length;
255
256
  do {
256
- const S = d === 0 ? i[0] ?? n.initialPageParam : Me(n, u);
257
- if (d > 0 && S == null)
257
+ const N = d === 0 ? i[0] ?? n.initialPageParam : Me(n, u);
258
+ if (d > 0 && N == null)
258
259
  break;
259
- u = await K(u, S), d++;
260
+ u = await K(u, N), d++;
260
261
  } while (d < b);
261
262
  }
262
263
  return u;
263
264
  };
264
265
  e.options.persister ? e.fetchFn = () => {
265
- var m, k;
266
- return (k = (m = e.options).persister) == null ? void 0 : k.call(
267
- m,
266
+ var p, k;
267
+ return (k = (p = e.options).persister) == null ? void 0 : k.call(
268
+ p,
268
269
  c,
269
270
  {
271
+ client: e.client,
270
272
  queryKey: e.queryKey,
271
273
  meta: e.options.meta,
272
274
  signal: e.signal
@@ -286,13 +288,13 @@ function Me(t, { pages: e, pageParams: r }) {
286
288
  r
287
289
  ) : void 0;
288
290
  }
289
- function Pr(t, { pages: e, pageParams: r }) {
291
+ function kr(t, { pages: e, pageParams: r }) {
290
292
  var n;
291
293
  return e.length > 0 ? (n = t.getPreviousPageParam) == null ? void 0 : n.call(t, e[0], e, r[0], r) : void 0;
292
294
  }
293
- var p, E, q, R, F, T, B, H, Qe, kr = (Qe = class {
295
+ var x, E, q, R, F, T, B, H, Re, Cr = (Re = class {
294
296
  constructor(t = {}) {
295
- j(this, p);
297
+ j(this, x);
296
298
  j(this, E);
297
299
  j(this, q);
298
300
  j(this, R);
@@ -300,21 +302,21 @@ var p, E, q, R, F, T, B, H, Qe, kr = (Qe = class {
300
302
  j(this, T);
301
303
  j(this, B);
302
304
  j(this, H);
303
- y(this, p, t.queryCache || new jr()), y(this, E, t.mutationCache || new wr()), y(this, q, t.defaultOptions || {}), y(this, R, /* @__PURE__ */ new Map()), y(this, F, /* @__PURE__ */ new Map()), y(this, T, 0);
305
+ v(this, x, t.queryCache || new wr()), v(this, E, t.mutationCache || new Pr()), v(this, q, t.defaultOptions || {}), v(this, R, /* @__PURE__ */ new Map()), v(this, F, /* @__PURE__ */ new Map()), v(this, T, 0);
304
306
  }
305
307
  mount() {
306
- G(this, T)._++, l(this, T) === 1 && (y(this, B, yt.subscribe(async (t) => {
307
- t && (await this.resumePausedMutations(), l(this, p).onFocus());
308
- })), y(this, H, je.subscribe(async (t) => {
309
- t && (await this.resumePausedMutations(), l(this, p).onOnline());
308
+ G(this, T)._++, l(this, T) === 1 && (v(this, B, jt.subscribe(async (t) => {
309
+ t && (await this.resumePausedMutations(), l(this, x).onFocus());
310
+ })), v(this, H, je.subscribe(async (t) => {
311
+ t && (await this.resumePausedMutations(), l(this, x).onOnline());
310
312
  })));
311
313
  }
312
314
  unmount() {
313
315
  var t, e;
314
- G(this, T)._--, l(this, T) === 0 && ((t = l(this, B)) == null || t.call(this), y(this, B, void 0), (e = l(this, H)) == null || e.call(this), y(this, H, void 0));
316
+ G(this, T)._--, l(this, T) === 0 && ((t = l(this, B)) == null || t.call(this), v(this, B, void 0), (e = l(this, H)) == null || e.call(this), v(this, H, void 0));
315
317
  }
316
318
  isFetching(t) {
317
- return l(this, p).findAll({ ...t, fetchStatus: "fetching" }).length;
319
+ return l(this, x).findAll({ ...t, fetchStatus: "fetching" }).length;
318
320
  }
319
321
  isMutating(t) {
320
322
  return l(this, E).findAll({ ...t, status: "pending" }).length;
@@ -322,28 +324,28 @@ var p, E, q, R, F, T, B, H, Qe, kr = (Qe = class {
322
324
  getQueryData(t) {
323
325
  var r;
324
326
  const e = this.defaultQueryOptions({ queryKey: t });
325
- return (r = l(this, p).get(e.queryHash)) == null ? void 0 : r.state.data;
327
+ return (r = l(this, x).get(e.queryHash)) == null ? void 0 : r.state.data;
326
328
  }
327
329
  ensureQueryData(t) {
328
- const e = this.defaultQueryOptions(t), r = l(this, p).build(this, e), n = r.state.data;
330
+ const e = this.defaultQueryOptions(t), r = l(this, x).build(this, e), n = r.state.data;
329
331
  return n === void 0 ? this.fetchQuery(t) : (t.revalidateIfStale && r.isStaleByTime(we(e.staleTime, r)) && this.prefetchQuery(e), Promise.resolve(n));
330
332
  }
331
333
  getQueriesData(t) {
332
- return l(this, p).findAll(t).map(({ queryKey: e, state: r }) => {
334
+ return l(this, x).findAll(t).map(({ queryKey: e, state: r }) => {
333
335
  const n = r.data;
334
336
  return [e, n];
335
337
  });
336
338
  }
337
339
  setQueryData(t, e, r) {
338
- const n = this.defaultQueryOptions({ queryKey: t }), a = l(this, p).get(
340
+ const n = this.defaultQueryOptions({ queryKey: t }), a = l(this, x).get(
339
341
  n.queryHash
340
- ), o = a == null ? void 0 : a.state.data, i = vt(e, o);
342
+ ), o = a == null ? void 0 : a.state.data, i = wt(e, o);
341
343
  if (i !== void 0)
342
- return l(this, p).build(this, n).setData(i, { ...r, manual: !0 });
344
+ return l(this, x).build(this, n).setData(i, { ...r, manual: !0 });
343
345
  }
344
346
  setQueriesData(t, e, r) {
345
347
  return w.batch(
346
- () => l(this, p).findAll(t).map(({ queryKey: n }) => [
348
+ () => l(this, x).findAll(t).map(({ queryKey: n }) => [
347
349
  n,
348
350
  this.setQueryData(n, e, r)
349
351
  ])
@@ -352,12 +354,12 @@ var p, E, q, R, F, T, B, H, Qe, kr = (Qe = class {
352
354
  getQueryState(t) {
353
355
  var r;
354
356
  const e = this.defaultQueryOptions({ queryKey: t });
355
- return (r = l(this, p).get(
357
+ return (r = l(this, x).get(
356
358
  e.queryHash
357
359
  )) == null ? void 0 : r.state;
358
360
  }
359
361
  removeQueries(t) {
360
- const e = l(this, p);
362
+ const e = l(this, x);
361
363
  w.batch(() => {
362
364
  e.findAll(t).forEach((r) => {
363
365
  e.remove(r);
@@ -365,7 +367,7 @@ var p, E, q, R, F, T, B, H, Qe, kr = (Qe = class {
365
367
  });
366
368
  }
367
369
  resetQueries(t, e) {
368
- const r = l(this, p), n = {
370
+ const r = l(this, x), n = {
369
371
  type: "active",
370
372
  ...t
371
373
  };
@@ -375,13 +377,13 @@ var p, E, q, R, F, T, B, H, Qe, kr = (Qe = class {
375
377
  }
376
378
  cancelQueries(t, e = {}) {
377
379
  const r = { revert: !0, ...e }, n = w.batch(
378
- () => l(this, p).findAll(t).map((a) => a.cancel(r))
380
+ () => l(this, x).findAll(t).map((a) => a.cancel(r))
379
381
  );
380
382
  return Promise.all(n).then(M).catch(M);
381
383
  }
382
384
  invalidateQueries(t, e = {}) {
383
385
  return w.batch(() => {
384
- if (l(this, p).findAll(t).forEach((n) => {
386
+ if (l(this, x).findAll(t).forEach((n) => {
385
387
  n.invalidate();
386
388
  }), (t == null ? void 0 : t.refetchType) === "none")
387
389
  return Promise.resolve();
@@ -397,7 +399,7 @@ var p, E, q, R, F, T, B, H, Qe, kr = (Qe = class {
397
399
  ...e,
398
400
  cancelRefetch: e.cancelRefetch ?? !0
399
401
  }, n = w.batch(
400
- () => l(this, p).findAll(t).filter((a) => !a.isDisabled()).map((a) => {
402
+ () => l(this, x).findAll(t).filter((a) => !a.isDisabled()).map((a) => {
401
403
  let o = a.fetch(void 0, r);
402
404
  return r.throwOnError || (o = o.catch(M)), a.state.fetchStatus === "paused" ? Promise.resolve() : o;
403
405
  })
@@ -407,7 +409,7 @@ var p, E, q, R, F, T, B, H, Qe, kr = (Qe = class {
407
409
  fetchQuery(t) {
408
410
  const e = this.defaultQueryOptions(t);
409
411
  e.retry === void 0 && (e.retry = !1);
410
- const r = l(this, p).build(this, e);
412
+ const r = l(this, x).build(this, e);
411
413
  return r.isStaleByTime(
412
414
  we(e.staleTime, r)
413
415
  ) ? r.fetch(e) : Promise.resolve(r.state.data);
@@ -428,7 +430,7 @@ var p, E, q, R, F, T, B, H, Qe, kr = (Qe = class {
428
430
  return je.isOnline() ? l(this, E).resumePausedMutations() : Promise.resolve();
429
431
  }
430
432
  getQueryCache() {
431
- return l(this, p);
433
+ return l(this, x);
432
434
  }
433
435
  getMutationCache() {
434
436
  return l(this, E);
@@ -437,7 +439,7 @@ var p, E, q, R, F, T, B, H, Qe, kr = (Qe = class {
437
439
  return l(this, q);
438
440
  }
439
441
  setDefaultOptions(t) {
440
- y(this, q, t);
442
+ v(this, q, t);
441
443
  }
442
444
  setQueryDefaults(t, e) {
443
445
  l(this, R).set(Pe(t), {
@@ -473,10 +475,10 @@ var p, E, q, R, F, T, B, H, Qe, kr = (Qe = class {
473
475
  ...t,
474
476
  _defaulted: !0
475
477
  };
476
- return e.queryHash || (e.queryHash = Be(
478
+ return e.queryHash || (e.queryHash = ze(
477
479
  e.queryKey,
478
480
  e
479
- )), 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.queryFn === bt && (e.enabled = !1), e;
481
+ )), 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.queryFn === Pt && (e.enabled = !1), e;
480
482
  }
481
483
  defaultMutationOptions(t) {
482
484
  return t != null && t._defaulted ? t : {
@@ -487,49 +489,49 @@ var p, E, q, R, F, T, B, H, Qe, kr = (Qe = class {
487
489
  };
488
490
  }
489
491
  clear() {
490
- l(this, p).clear(), l(this, E).clear();
492
+ l(this, x).clear(), l(this, E).clear();
491
493
  }
492
- }, p = new WeakMap(), E = new WeakMap(), q = new WeakMap(), R = new WeakMap(), F = new WeakMap(), T = new WeakMap(), B = new WeakMap(), H = new WeakMap(), Qe);
493
- function Cr(t) {
494
+ }, x = new WeakMap(), E = new WeakMap(), q = new WeakMap(), R = new WeakMap(), F = new WeakMap(), T = new WeakMap(), B = new WeakMap(), H = new WeakMap(), Re);
495
+ function Sr(t) {
494
496
  return t;
495
497
  }
496
498
  function Oe(t, e, r) {
497
499
  var d, c;
498
500
  if (typeof e != "object" || e === null)
499
501
  return;
500
- const n = t.getMutationCache(), a = t.getQueryCache(), o = ((d = r == null ? void 0 : r.defaultOptions) == null ? void 0 : d.deserializeData) ?? ((c = t.getDefaultOptions().hydrate) == null ? void 0 : c.deserializeData) ?? Cr, i = e.mutations || [], u = e.queries || [];
502
+ const n = t.getMutationCache(), a = t.getQueryCache(), o = ((d = r == null ? void 0 : r.defaultOptions) == null ? void 0 : d.deserializeData) ?? ((c = t.getDefaultOptions().hydrate) == null ? void 0 : c.deserializeData) ?? Sr, i = e.mutations || [], u = e.queries || [];
501
503
  i.forEach(({ state: g, ...f }) => {
502
- var h, x;
504
+ var h, m;
503
505
  n.build(
504
506
  t,
505
507
  {
506
508
  ...(h = t.getDefaultOptions().hydrate) == null ? void 0 : h.mutations,
507
- ...(x = r == null ? void 0 : r.defaultOptions) == null ? void 0 : x.mutations,
509
+ ...(m = r == null ? void 0 : r.defaultOptions) == null ? void 0 : m.mutations,
508
510
  ...f
509
511
  },
510
512
  g
511
513
  );
512
- }), u.forEach(({ queryKey: g, state: f, queryHash: h, meta: x, promise: v }) => {
514
+ }), u.forEach(({ queryKey: g, state: f, queryHash: h, meta: m, promise: y }) => {
513
515
  var V, K;
514
- let m = a.get(h);
516
+ let p = a.get(h);
515
517
  const k = f.data === void 0 ? f.data : o(f.data);
516
- if (m) {
517
- if (m.state.dataUpdatedAt < f.dataUpdatedAt) {
518
- const { fetchStatus: b, ...S } = f;
519
- m.setState({
520
- ...S,
518
+ if (p) {
519
+ if (p.state.dataUpdatedAt < f.dataUpdatedAt) {
520
+ const { fetchStatus: b, ...N } = f;
521
+ p.setState({
522
+ ...N,
521
523
  data: k
522
524
  });
523
525
  }
524
526
  } else
525
- m = a.build(
527
+ p = a.build(
526
528
  t,
527
529
  {
528
530
  ...(V = t.getDefaultOptions().hydrate) == null ? void 0 : V.queries,
529
531
  ...(K = r == null ? void 0 : r.defaultOptions) == null ? void 0 : K.queries,
530
532
  queryKey: g,
531
533
  queryHash: h,
532
- meta: x
534
+ meta: m
533
535
  },
534
536
  // Reset fetch status to idle to avoid
535
537
  // query being stuck in fetching state upon hydration
@@ -539,33 +541,34 @@ function Oe(t, e, r) {
539
541
  fetchStatus: "idle"
540
542
  }
541
543
  );
542
- if (v) {
543
- const b = Promise.resolve(v).then(o);
544
- m.fetch(void 0, { initialPromise: b });
544
+ if (y) {
545
+ const b = Promise.resolve(y).then(o);
546
+ p.fetch(void 0, { initialPromise: b });
545
547
  }
546
548
  });
547
549
  }
548
- var Sr = ({
550
+ var Ae = (t, e) => typeof t == "object" && t !== null && e in t, Nr = ({
549
551
  children: t,
550
552
  options: e = {},
551
553
  state: r,
552
554
  queryClient: n
553
555
  }) => {
554
- const a = jt(n), [o, i] = U.useState(), u = U.useRef(e);
556
+ const a = kt(n), [o, i] = U.useState(), u = U.useRef(e);
555
557
  return u.current = e, U.useMemo(() => {
556
558
  if (r) {
557
559
  if (typeof r != "object")
558
560
  return;
559
561
  const d = a.getQueryCache(), c = r.queries || [], g = [], f = [];
560
562
  for (const h of c) {
561
- const x = d.get(h.queryHash);
562
- if (!x)
563
+ const m = d.get(h.queryHash);
564
+ if (!m)
563
565
  g.push(h);
564
566
  else {
565
- const v = h.state.dataUpdatedAt > x.state.dataUpdatedAt, m = o == null ? void 0 : o.find(
567
+ const y = h.state.dataUpdatedAt > m.state.dataUpdatedAt || // RSC special serialized then-able chunks
568
+ Ae(h.promise, "status") && Ae(m.promise, "status") && h.promise.status !== m.promise.status, p = o == null ? void 0 : o.find(
566
569
  (k) => k.queryHash === h.queryHash
567
570
  );
568
- v && (!m || h.state.dataUpdatedAt > m.state.dataUpdatedAt) && f.push(h);
571
+ y && (!p || h.state.dataUpdatedAt > p.state.dataUpdatedAt) && f.push(h);
569
572
  }
570
573
  }
571
574
  g.length > 0 && Oe(a, { queries: g }, u.current), f.length > 0 && i(
@@ -576,15 +579,15 @@ var Sr = ({
576
579
  o && (Oe(a, { queries: o }, u.current), i(void 0));
577
580
  }, [a, o]), t;
578
581
  };
579
- const Nr = (t) => {
582
+ const Dr = (t) => {
580
583
  const e = ee(t);
581
584
  return e.current = t, I(() => {
582
585
  e.current = t;
583
586
  }, [t]), e;
584
- }, Dr = () => {
587
+ }, Mr = () => {
585
588
  var o;
586
- const t = z(), e = A(), r = le(), n = Nr(r.pathname), a = (o = e.options.protectedRoutes) == null ? void 0 : o.some(
587
- (i) => ut({ path: i, end: !0 }, r.pathname)
589
+ const t = z(), e = A(), r = le(), n = Dr(r.pathname), a = (o = e.options.protectedRoutes) == null ? void 0 : o.some(
590
+ (i) => ft({ path: i, end: !0 }, r.pathname)
588
591
  );
589
592
  if (I(() => {
590
593
  var i;
@@ -594,17 +597,17 @@ const Nr = (t) => {
594
597
  }, [a, t.isAuthenticated, e.authentication, n]), a && !t.isAuthenticated)
595
598
  return null;
596
599
  if (a && !t.isAuthEnabled)
597
- throw new $e("Authentication is not enabled", {
600
+ throw new Ze("Authentication is not enabled", {
598
601
  title: "Authentication is not enabled",
599
602
  developerHint: "To use protectedRoutes you need authentication to be enabled"
600
603
  });
601
604
  return /* @__PURE__ */ s.jsx(ce, {});
602
605
  };
603
- function Mr({ error: t }) {
604
- return /* @__PURE__ */ s.jsx(Ue, { error: t });
606
+ function Or({ error: t }) {
607
+ return /* @__PURE__ */ s.jsx(Ye, { error: t });
605
608
  }
606
609
  /**
607
- * react-router v7.1.3
610
+ * react-router v7.1.5
608
611
  *
609
612
  * Copyright (c) Remix Software Inc.
610
613
  *
@@ -613,30 +616,30 @@ function Mr({ error: t }) {
613
616
  *
614
617
  * @license MIT
615
618
  */
616
- function Or(t) {
617
- return /* @__PURE__ */ U.createElement(dt, { flushSync: Ft.flushSync, ...t });
619
+ function Ar(t) {
620
+ return /* @__PURE__ */ U.createElement(gt, { flushSync: zt.flushSync, ...t });
618
621
  }
619
- const ie = he({ stagger: !1 }), Ar = new kr({
622
+ const ie = he({ stagger: !1 }), Er = new Cr({
620
623
  defaultOptions: {
621
624
  queries: {
622
625
  staleTime: 1e3 * 60 * 5
623
626
  }
624
627
  }
625
- }), Er = ({
628
+ }), qr = ({
626
629
  router: t,
627
630
  hydrate: e = !1
628
- }) => /* @__PURE__ */ s.jsx(Le, { children: /* @__PURE__ */ s.jsx(He, { client: Ar, children: /* @__PURE__ */ s.jsx(Sr, { state: e ? window.DATA : void 0, children: /* @__PURE__ */ s.jsx(Re, { children: /* @__PURE__ */ s.jsx(ie.Provider, { value: { stagger: !e }, children: /* @__PURE__ */ s.jsx(Or, { router: t }) }) }) }) }) }), qr = ({
631
+ }) => /* @__PURE__ */ s.jsx($e, { children: /* @__PURE__ */ s.jsx(Le, { client: Er, children: /* @__PURE__ */ s.jsx(Nr, { state: e ? window.DATA : void 0, children: /* @__PURE__ */ s.jsx(Fe, { children: /* @__PURE__ */ s.jsx(ie.Provider, { value: { stagger: !e }, children: /* @__PURE__ */ s.jsx(Ar, { router: t }) }) }) }) }) }), Tr = ({
629
632
  router: t,
630
633
  context: e,
631
634
  queryClient: r,
632
635
  helmetContext: n
633
- }) => /* @__PURE__ */ s.jsx(Le, { children: /* @__PURE__ */ s.jsx(He, { client: r, children: /* @__PURE__ */ s.jsx(Re, { context: n, children: /* @__PURE__ */ s.jsx(ht, { router: t, context: e }) }) }) });
634
- var Z = { exports: {} }, Tr = Z.exports, Ae;
635
- function Ir() {
636
- return Ae || (Ae = 1, function(t, e) {
636
+ }) => /* @__PURE__ */ s.jsx($e, { children: /* @__PURE__ */ s.jsx(Le, { client: r, children: /* @__PURE__ */ s.jsx(Fe, { context: n, children: /* @__PURE__ */ s.jsx(mt, { router: t, context: e }) }) }) });
637
+ var Z = { exports: {} }, Ir = Z.exports, Ee;
638
+ function Qr() {
639
+ return Ee || (Ee = 1, function(t, e) {
637
640
  (function(r, n) {
638
- n(e, Nt);
639
- })(Tr, function(r, n) {
641
+ n(e, Ot);
642
+ })(Ir, function(r, n) {
640
643
  const a = {
641
644
  delay: 500,
642
645
  minDuration: 200,
@@ -650,35 +653,35 @@ function Ir() {
650
653
  }
651
654
  function i(u, d) {
652
655
  d = Object.assign({}, a, d);
653
- const c = o() && d.ssr, g = c && u ? "DISPLAY" : "IDLE", [f, h] = n.useState(g), x = n.useRef(null);
656
+ const c = o() && d.ssr, g = c && u ? "DISPLAY" : "IDLE", [f, h] = n.useState(g), m = n.useRef(null);
654
657
  return n.useEffect(() => {
655
658
  if (u && (f === "IDLE" || c)) {
656
- clearTimeout(x.current);
657
- const v = c ? 0 : d.delay;
658
- x.current = setTimeout(() => {
659
+ clearTimeout(m.current);
660
+ const y = c ? 0 : d.delay;
661
+ m.current = setTimeout(() => {
659
662
  if (!u)
660
663
  return h("IDLE");
661
- x.current = setTimeout(() => {
664
+ m.current = setTimeout(() => {
662
665
  h("EXPIRE");
663
666
  }, d.minDuration), h("DISPLAY");
664
- }, v), c || h("DELAY");
667
+ }, y), c || h("DELAY");
665
668
  }
666
- !u && f !== "DISPLAY" && (clearTimeout(x.current), h("IDLE"));
667
- }, [u, f, d.delay, d.minDuration, c]), n.useEffect(() => () => clearTimeout(x.current), []), f === "DISPLAY" || f === "EXPIRE";
669
+ !u && f !== "DISPLAY" && (clearTimeout(m.current), h("IDLE"));
670
+ }, [u, f, d.delay, d.minDuration, c]), n.useEffect(() => () => clearTimeout(m.current), []), f === "DISPLAY" || f === "EXPIRE";
668
671
  }
669
672
  r.defaultOptions = a, r.useSpinDelay = i;
670
673
  });
671
674
  }(Z, Z.exports)), Z.exports;
672
675
  }
673
- var Qr = Ir();
674
- const Rr = () => {
676
+ var Rr = Qr();
677
+ const Fr = () => {
675
678
  const t = le(), e = ee(t.pathname);
676
679
  I(() => {
677
680
  const r = e.current !== t.pathname, n = t.hash !== "";
678
681
  r && !n && window.scrollTo(0, 0), e.current = t.pathname;
679
682
  }, [t.pathname, t.hash]);
680
683
  };
681
- function Fr({
684
+ function Br({
682
685
  className: t,
683
686
  ...e
684
687
  }) {
@@ -690,17 +693,17 @@ function Fr({
690
693
  }
691
694
  );
692
695
  }
693
- const Ee = {
696
+ const qe = {
694
697
  info: "bg-blue-500",
695
698
  note: "bg-gray-500",
696
699
  tip: "bg-green-600",
697
700
  caution: "bg-orange-500",
698
701
  danger: "bg-rose-500"
699
- }, Br = () => {
702
+ }, Hr = () => {
700
703
  const { page: t } = A(), [e, r] = L(!0);
701
704
  if (!(t != null && t.banner) || !e)
702
705
  return /* @__PURE__ */ s.jsx("style", { children: ":root { --banner-height: 0px; }" });
703
- const n = t.banner.color && t.banner.color in Ee ? Ee[t.banner.color] : t.banner.color ? void 0 : "bg-primary", a = n ? {} : { backgroundColor: t.banner.color };
706
+ const n = t.banner.color && t.banner.color in qe ? qe[t.banner.color] : t.banner.color ? void 0 : "bg-primary", a = n ? {} : { backgroundColor: t.banner.color };
704
707
  return /* @__PURE__ */ s.jsxs(
705
708
  "div",
706
709
  {
@@ -717,14 +720,14 @@ const Ee = {
717
720
  type: "button",
718
721
  className: "md:absolute md:right-4 -m-1.5 p-1.5 hover:bg-accent-foreground/10 rounded-md",
719
722
  onClick: () => r(!1),
720
- children: /* @__PURE__ */ s.jsx(Bt, { size: 16 })
723
+ children: /* @__PURE__ */ s.jsx(Lt, { size: 16 })
721
724
  }
722
725
  )
723
726
  ]
724
727
  }
725
728
  );
726
- }, We = ({ className: t }) => {
727
- const e = A(), [r, n] = L(!1), a = Dt(() => n(!1), []);
729
+ }, et = ({ className: t }) => {
730
+ const e = A(), [r, n] = L(!1), a = At(() => n(!1), []);
728
731
  I(() => {
729
732
  if (r)
730
733
  return;
@@ -735,7 +738,7 @@ const Ee = {
735
738
  window.removeEventListener("keydown", i);
736
739
  };
737
740
  }, [r, n]);
738
- const o = e.plugins.find(tr);
741
+ const o = e.plugins.find(nr);
739
742
  return o ? /* @__PURE__ */ s.jsxs("div", { className: t, children: [
740
743
  /* @__PURE__ */ s.jsxs(
741
744
  "button",
@@ -745,7 +748,7 @@ const Ee = {
745
748
  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",
746
749
  children: [
747
750
  /* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-2 flex-grow", children: [
748
- /* @__PURE__ */ s.jsx(Ht, { size: 14 }),
751
+ /* @__PURE__ */ s.jsx(Kt, { size: 14 }),
749
752
  "Search"
750
753
  ] }),
751
754
  /* @__PURE__ */ s.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" })
@@ -757,8 +760,8 @@ const Ee = {
757
760
  onClose: a
758
761
  }) })
759
762
  ] }) : null;
760
- }, Je = () => {
761
- const { resolvedTheme: t, setTheme: e } = xr();
763
+ }, tt = () => {
764
+ const { resolvedTheme: t, setTheme: e } = Be();
762
765
  return /* @__PURE__ */ s.jsx(ge, { fallback: /* @__PURE__ */ s.jsx(ae, { variant: "ghost", size: "icon" }), children: /* @__PURE__ */ s.jsxs(
763
766
  "button",
764
767
  {
@@ -775,7 +778,7 @@ const Ee = {
775
778
  t === "light" && "border-border bg-muted/50",
776
779
  t === "dark" && "group-hover:[&>svg>path]:scale-110 group-hover:[&>svg>path]:-translate-x-[1px] group-hover:[&>svg>path]:-translate-y-[1px] group-hover:rotate-[15deg] "
777
780
  ),
778
- children: /* @__PURE__ */ s.jsx(zt, { size: 16 })
781
+ children: /* @__PURE__ */ s.jsx($t, { size: 16 })
779
782
  }
780
783
  ),
781
784
  /* @__PURE__ */ s.jsx(
@@ -786,35 +789,38 @@ const Ee = {
786
789
  t === "dark" && "border-border bg-muted [&>svg>path]:fill-white [&>svg>path]:stroke-transparent",
787
790
  t === "light" && "group-hover:rotate-[-10deg] [&>svg>path]:stroke-currentColor"
788
791
  ),
789
- children: /* @__PURE__ */ s.jsx(Lt, { size: 16 })
792
+ children: /* @__PURE__ */ s.jsx(Ut, { size: 16 })
790
793
  }
791
794
  )
792
795
  ]
793
796
  }
794
797
  ) });
795
- }, et = (t) => (e) => e.display === "auth" && t || e.display === "anon" && !t || !e.display || e.display === "always", Hr = () => {
798
+ }, rt = (t) => (e) => e.display === "auth" && t || e.display === "anon" && !t || !e.display || e.display === "always", zr = () => {
796
799
  const { topNavigation: t } = A(), { isAuthenticated: e } = z();
797
- return t.length <= 1 ? /* @__PURE__ */ s.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ s.jsx(fe, { children: /* @__PURE__ */ s.jsx("nav", { className: "hidden lg:block text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ s.jsx("ul", { className: "flex flex-row items-center gap-8", children: t.filter(et(e)).map((r) => /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(tt, { ...r }) }, r.id)) }) }) });
798
- }, tt = ({
800
+ return t.length <= 1 ? /* @__PURE__ */ s.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ s.jsx(fe, { children: /* @__PURE__ */ s.jsxs("div", { className: " items-center justify-between px-8 h-[--top-nav-height] hidden lg:flex text-sm", children: [
801
+ /* @__PURE__ */ s.jsx("nav", { className: "text-sm", children: /* @__PURE__ */ s.jsx("ul", { className: "flex flex-row items-center gap-8", children: t.filter(rt(e)).map((r) => /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(st, { ...r }) }, r.id)) }) }),
802
+ /* @__PURE__ */ s.jsx(S, { name: "top-navigation-side" })
803
+ ] }) });
804
+ }, st = ({
799
805
  id: t,
800
806
  label: e,
801
807
  default: r
802
808
  }) => {
803
809
  var c;
804
- const { sidebars: n } = A(), a = n[t], o = ze(), i = !!ue().location, u = ((c = o.topNavItem) == null ? void 0 : c.id) === t && !i, d = r ?? (a ? wt(a, (g) => {
810
+ const { sidebars: n } = A(), a = n[t], o = Ke(), i = !!ue().location, u = ((c = o.topNavItem) == null ? void 0 : c.id) === t && !i, d = r ?? (a ? Ct(a, (g) => {
805
811
  if (g.type === "doc") return ne(g.id);
806
812
  }) : ne(t));
807
813
  if (!d)
808
- throw new $e("Page not found.", {
814
+ throw new Ze("Page not found.", {
809
815
  developerHint: `No links found in top navigation for '${t}'. Check that the sidebar isn't empty or that a default link is set.`
810
816
  });
811
817
  return (
812
818
  // We don't use isActive here because it has to be inside the sidebar,
813
819
  // the top nav id doesn't necessarily start with the sidebar id
814
820
  /* @__PURE__ */ s.jsx(
815
- ft,
821
+ pt,
816
822
  {
817
- className: ({ isPending: g }) => vr(
823
+ className: ({ isPending: g }) => br(
818
824
  "block lg:py-3.5 font-medium -mb-px",
819
825
  u || g ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
820
826
  ),
@@ -823,27 +829,27 @@ const Ee = {
823
829
  }
824
830
  )
825
831
  );
826
- }, zr = () => {
832
+ }, Lr = () => {
827
833
  const { topNavigation: t } = A(), { isAuthenticated: e } = z(), [r, n] = L(!1);
828
834
  return /* @__PURE__ */ s.jsxs(
829
- Ze,
835
+ Ve,
830
836
  {
831
837
  direction: "right",
832
838
  open: r,
833
839
  onOpenChange: (a) => n(a),
834
840
  children: [
835
- /* @__PURE__ */ s.jsx("div", { className: "flex lg:hidden justify-self-end", children: /* @__PURE__ */ s.jsx(Ye, { className: "lg:hidden", children: /* @__PURE__ */ s.jsx(Kt, { size: 22 }) }) }),
841
+ /* @__PURE__ */ s.jsx("div", { className: "flex lg:hidden justify-self-end", children: /* @__PURE__ */ s.jsx(Xe, { className: "lg:hidden", children: /* @__PURE__ */ s.jsx(Zt, { size: 22 }) }) }),
836
842
  /* @__PURE__ */ s.jsx(
837
- Ve,
843
+ Ge,
838
844
  {
839
845
  className: "lg:hidden h-[100dvh] right-0 left-auto w-[320px] rounded-none",
840
846
  "aria-describedby": void 0,
841
847
  children: /* @__PURE__ */ s.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none", children: [
842
- /* @__PURE__ */ s.jsx(_e, { children: /* @__PURE__ */ s.jsx(Xe, { children: "Navigation" }) }),
843
- /* @__PURE__ */ s.jsx(We, { className: "flex p-4" }),
848
+ /* @__PURE__ */ s.jsx(Je, { children: /* @__PURE__ */ s.jsx(_e, { children: "Navigation" }) }),
849
+ /* @__PURE__ */ s.jsx(et, { className: "flex p-4" }),
844
850
  /* @__PURE__ */ s.jsxs("ul", { className: "flex flex-col items-center gap-4 p-4", children: [
845
- /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(Je, {}) }),
846
- t.filter(et(e)).map((a) => /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx("button", { onClick: () => n(!1), children: /* @__PURE__ */ s.jsx(tt, { ...a }) }) }, a.label))
851
+ /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(tt, {}) }),
852
+ t.filter(rt(e)).map((a) => /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx("button", { onClick: () => n(!1), children: /* @__PURE__ */ s.jsx(st, { ...a }) }) }, a.label))
847
853
  ] })
848
854
  ] })
849
855
  }
@@ -851,20 +857,20 @@ const Ee = {
851
857
  ]
852
858
  }
853
859
  );
854
- }, J = ({ item: t }) => t.children ? /* @__PURE__ */ s.jsxs(hr, { children: [
855
- /* @__PURE__ */ s.jsx(fr, { children: t.label }),
856
- /* @__PURE__ */ s.jsx(gr, { children: /* @__PURE__ */ s.jsx(mr, { children: t.children.map((e, r) => (
860
+ }, J = ({ item: t }) => t.children ? /* @__PURE__ */ s.jsxs(mr, { children: [
861
+ /* @__PURE__ */ s.jsx(pr, { children: t.label }),
862
+ /* @__PURE__ */ s.jsx(xr, { children: /* @__PURE__ */ s.jsx(vr, { children: t.children.map((e, r) => (
857
863
  // eslint-disable-next-line react/no-array-index-key
858
864
  /* @__PURE__ */ s.jsx(J, { item: e }, r)
859
865
  )) }) })
860
- ] }, t.label) : /* @__PURE__ */ s.jsx(de, { to: t.path ?? "", children: /* @__PURE__ */ s.jsxs(pr, { className: "flex gap-2", children: [
866
+ ] }, t.label) : /* @__PURE__ */ s.jsx(de, { to: t.path ?? "", children: /* @__PURE__ */ s.jsxs(yr, { className: "flex gap-2", children: [
861
867
  t.icon && /* @__PURE__ */ s.jsx(t.icon, { size: 16, strokeWidth: 1, absoluteStrokeWidth: !0 }),
862
868
  t.label
863
- ] }, t.label) }), rt = Ke(function() {
864
- const e = z(), { isAuthenticated: r, profile: n, isAuthEnabled: a } = z(), o = A(), { page: i, plugins: u } = o, d = u.filter((c) => rr(c)).flatMap((c) => c.getProfileMenuItems(o)).sort((c) => c.weight ?? 0);
869
+ ] }, t.label) }), nt = Ue(function() {
870
+ const e = z(), { isAuthenticated: r, profile: n, isAuthEnabled: a } = z(), o = A(), { page: i, plugins: u } = o, d = u.filter((c) => ar(c)).flatMap((c) => c.getProfileMenuItems(o)).sort((c) => c.weight ?? 0);
865
871
  return /* @__PURE__ */ s.jsxs("header", { className: "sticky lg:top-0 z-10 bg-background/80 backdrop-blur w-full", children: [
866
- /* @__PURE__ */ s.jsx(Br, {}),
867
- /* @__PURE__ */ s.jsx("div", { className: "border-b", children: /* @__PURE__ */ s.jsxs("div", { className: "max-w-screen-2xl border-l border-r mx-auto grid grid-cols-[1fr_auto] lg:grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center px-4 lg:px-12 h-[--top-header-height]", children: [
872
+ /* @__PURE__ */ s.jsx(Hr, {}),
873
+ /* @__PURE__ */ s.jsx("div", { className: "border-b", children: /* @__PURE__ */ s.jsxs("div", { className: "max-w-screen-2xl 2xl:border-x mx-auto grid grid-cols-[1fr_auto] lg:grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center px-4 lg:px-8 h-[--top-header-height]", children: [
868
874
  /* @__PURE__ */ s.jsx("div", { className: "flex", children: /* @__PURE__ */ s.jsx(de, { to: "/", children: /* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-3.5", children: [
869
875
  (i == null ? void 0 : i.logo) && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
870
876
  /* @__PURE__ */ s.jsx(
@@ -897,18 +903,18 @@ const Ee = {
897
903
  /* @__PURE__ */ s.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: i == null ? void 0 : i.pageTitle })
898
904
  ] }) }) }),
899
905
  /* @__PURE__ */ s.jsxs("div", { className: "grid grid-cols-1 lg:grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
900
- /* @__PURE__ */ s.jsx("div", { className: "w-full justify-center hidden lg:flex", children: /* @__PURE__ */ s.jsx(We, {}) }),
901
- /* @__PURE__ */ s.jsx(zr, {}),
906
+ /* @__PURE__ */ s.jsx("div", { className: "w-full justify-center hidden lg:flex", children: /* @__PURE__ */ s.jsx(et, {}) }),
907
+ /* @__PURE__ */ s.jsx(Lr, {}),
902
908
  /* @__PURE__ */ s.jsxs("div", { className: "hidden lg:flex items-center justify-self-end text-sm gap-2", children: [
903
- /* @__PURE__ */ s.jsx(D, { name: "head-navigation-start" }),
909
+ /* @__PURE__ */ s.jsx(S, { name: "head-navigation-start" }),
904
910
  a && /* @__PURE__ */ s.jsx(
905
911
  ge,
906
912
  {
907
- fallback: /* @__PURE__ */ s.jsx(Fr, { className: "rounded h-5 w-24 mr-4" }),
908
- children: r ? Object.values(d).length > 0 && /* @__PURE__ */ s.jsxs(lr, { modal: !1, children: [
909
- /* @__PURE__ */ s.jsx(cr, { asChild: !0, children: /* @__PURE__ */ s.jsx(ae, { variant: "ghost", children: n != null && n.name ? `${n.name}` : "My Account" }) }),
910
- /* @__PURE__ */ s.jsxs(ur, { className: "w-56", children: [
911
- /* @__PURE__ */ s.jsxs(dr, { children: [
913
+ fallback: /* @__PURE__ */ s.jsx(Br, { className: "rounded h-5 w-24 mr-4" }),
914
+ children: r ? Object.values(d).length > 0 && /* @__PURE__ */ s.jsxs(dr, { modal: !1, children: [
915
+ /* @__PURE__ */ s.jsx(hr, { asChild: !0, children: /* @__PURE__ */ s.jsx(ae, { variant: "ghost", children: n != null && n.name ? `${n.name}` : "My Account" }) }),
916
+ /* @__PURE__ */ s.jsxs(fr, { className: "w-56", children: [
917
+ /* @__PURE__ */ s.jsxs(gr, { children: [
912
918
  n != null && n.name ? `${n.name}` : "My Account",
913
919
  (n == null ? void 0 : n.email) && /* @__PURE__ */ s.jsx("div", { className: "font-normal text-muted-foreground", children: n.email })
914
920
  ] }),
@@ -926,23 +932,23 @@ const Ee = {
926
932
  ] }) : /* @__PURE__ */ s.jsx(ae, { variant: "ghost", onClick: () => e.login(), children: "Login" })
927
933
  }
928
934
  ),
929
- /* @__PURE__ */ s.jsx(D, { name: "head-navigation-end" }),
930
- /* @__PURE__ */ s.jsx(Je, {})
935
+ /* @__PURE__ */ s.jsx(S, { name: "head-navigation-end" }),
936
+ /* @__PURE__ */ s.jsx(tt, {})
931
937
  ] })
932
938
  ] })
933
939
  ] }) }),
934
- /* @__PURE__ */ s.jsx("div", { className: "border-b", children: /* @__PURE__ */ s.jsxs("div", { className: "max-w-screen-2xl mx-auto border-l border-r", children: [
935
- /* @__PURE__ */ s.jsx(D, { name: "top-navigation-before" }),
936
- /* @__PURE__ */ s.jsx(Hr, {}),
937
- /* @__PURE__ */ s.jsx(D, { name: "top-navigation-after" })
940
+ /* @__PURE__ */ s.jsx("div", { className: "border-b hidden lg:block", children: /* @__PURE__ */ s.jsxs("div", { className: "max-w-screen-2xl mx-auto 2xl:border-x", children: [
941
+ /* @__PURE__ */ s.jsx(S, { name: "top-navigation-before" }),
942
+ /* @__PURE__ */ s.jsx(zr, {}),
943
+ /* @__PURE__ */ s.jsx(S, { name: "top-navigation-after" })
938
944
  ] }) })
939
945
  ] });
940
- }), st = Mt(({ children: t, className: e, pushMainContent: r }, n) => /* @__PURE__ */ s.jsx(
946
+ }), at = Et(({ children: t, className: e, pushMainContent: r }, n) => /* @__PURE__ */ s.jsx(
941
947
  "nav",
942
948
  {
943
949
  "data-navigation": String(r),
944
950
  className: Q(
945
- "scrollbar peer hidden lg:flex flex-col fixed text-sm overflow-y-auto shrink-0 border-r pr-10",
951
+ "scrollbar peer hidden lg:flex flex-col fixed text-sm overflow-y-auto shrink-0 border-r pr-6",
946
952
  "-mx-[--padding-nav-item] pb-20 pt-[--padding-content-top]",
947
953
  "w-[--side-nav-width] h-[calc(100%-var(--header-height))] scroll-pt-2 gap-2",
948
954
  !r && "border-r-0",
@@ -952,35 +958,35 @@ const Ee = {
952
958
  children: t
953
959
  }
954
960
  ));
955
- st.displayName = "SidebarWrapper";
956
- const Lr = ({
961
+ at.displayName = "SidebarWrapper";
962
+ const Kr = ({
957
963
  onRequestClose: t
958
964
  }) => {
959
- const e = ee(null), r = ze();
965
+ const e = ee(null), r = Ke();
960
966
  return I(() => {
961
967
  var a;
962
968
  const n = (a = e.current) == null ? void 0 : a.querySelector('[aria-current="page"]');
963
- Ut(n ?? null);
969
+ Vt(n ?? null);
964
970
  }, []), /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
965
971
  /* @__PURE__ */ s.jsxs(
966
- st,
972
+ at,
967
973
  {
968
974
  ref: e,
969
975
  pushMainContent: r.sidebar.length > 0,
970
976
  children: [
971
- /* @__PURE__ */ s.jsx(D, { name: "zudoku-before-navigation" }),
977
+ /* @__PURE__ */ s.jsx(S, { name: "zudoku-before-navigation" }),
972
978
  r.sidebar.map((n) => /* @__PURE__ */ s.jsx(Se, { item: n }, n.label)),
973
- /* @__PURE__ */ s.jsx(D, { name: "zudoku-after-navigation" })
979
+ /* @__PURE__ */ s.jsx(S, { name: "zudoku-after-navigation" })
974
980
  ]
975
981
  }
976
982
  ),
977
983
  /* @__PURE__ */ s.jsx(
978
- Ve,
984
+ Ge,
979
985
  {
980
986
  className: "lg:hidden h-[100dvh] left-0 w-[320px] rounded-none",
981
987
  "aria-describedby": void 0,
982
988
  children: /* @__PURE__ */ s.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none", children: [
983
- /* @__PURE__ */ s.jsx(_e, { children: /* @__PURE__ */ s.jsx(Xe, { children: "Sidebar" }) }),
989
+ /* @__PURE__ */ s.jsx(Je, { children: /* @__PURE__ */ s.jsx(_e, { children: "Sidebar" }) }),
984
990
  r.sidebar.map((n) => /* @__PURE__ */ s.jsx(
985
991
  Se,
986
992
  {
@@ -993,9 +999,9 @@ const Lr = ({
993
999
  }
994
1000
  )
995
1001
  ] });
996
- }, qe = () => /* @__PURE__ */ s.jsx("main", { className: "grid h-[calc(100vh-var(--header-height))] place-items-center", children: /* @__PURE__ */ s.jsx(Ge, {}) }), Kr = ({ children: t }) => {
997
- const e = le(), { setActiveAnchor: r } = Xt(), { meta: n, authentication: a } = A();
998
- Zt(), Rr();
1002
+ }, Te = () => /* @__PURE__ */ s.jsx("main", { className: "grid h-[calc(100vh-var(--header-height))] place-items-center", children: /* @__PURE__ */ s.jsx(We, {}) }), $r = ({ children: t }) => {
1003
+ const e = le(), { setActiveAnchor: r } = Wt(), { meta: n, authentication: a } = A();
1004
+ Xt(), Fr();
999
1005
  const o = ee(e.pathname);
1000
1006
  I(() => {
1001
1007
  var g;
@@ -1003,7 +1009,7 @@ const Lr = ({
1003
1009
  }, [a]), I(() => {
1004
1010
  e.pathname !== o.current && r(""), o.current = e.pathname;
1005
1011
  }, [e.pathname, r]);
1006
- const i = !!ue().location, u = Qr.useSpinDelay(i, {
1012
+ const i = !!ue().location, u = Rr.useSpinDelay(i, {
1007
1013
  delay: 300,
1008
1014
  minDuration: 500
1009
1015
  }), [d, c] = L(!1);
@@ -1013,26 +1019,26 @@ const Lr = ({
1013
1019
  (n == null ? void 0 : n.description) && /* @__PURE__ */ s.jsx("meta", { name: "description", content: n.description }),
1014
1020
  (n == null ? void 0 : n.favicon) && /* @__PURE__ */ s.jsx("link", { rel: "icon", href: n.favicon })
1015
1021
  ] }),
1016
- /* @__PURE__ */ s.jsx(D, { name: "layout-before-head" }),
1017
- /* @__PURE__ */ s.jsx(rt, {}),
1018
- /* @__PURE__ */ s.jsx(D, { name: "layout-after-head" }),
1019
- /* @__PURE__ */ s.jsx("div", { className: "w-full max-w-screen-2xl mx-auto px-4 lg:px-12 border-l border-r", children: u ? /* @__PURE__ */ s.jsx(qe, {}) : /* @__PURE__ */ s.jsx(fe, { fallback: /* @__PURE__ */ s.jsx(qe, {}), children: /* @__PURE__ */ s.jsxs(
1020
- Ze,
1022
+ /* @__PURE__ */ s.jsx(S, { name: "layout-before-head" }),
1023
+ /* @__PURE__ */ s.jsx(nt, {}),
1024
+ /* @__PURE__ */ s.jsx(S, { name: "layout-after-head" }),
1025
+ /* @__PURE__ */ s.jsx("div", { className: "w-full min-h-[calc(100vh-var(--header-height))] max-w-screen-2xl mx-auto px-4 lg:px-8 2xl:border-x", children: u ? /* @__PURE__ */ s.jsx(Te, {}) : /* @__PURE__ */ s.jsx(fe, { fallback: /* @__PURE__ */ s.jsx(Te, {}), children: /* @__PURE__ */ s.jsxs(
1026
+ Ve,
1021
1027
  {
1022
1028
  direction: "left",
1023
1029
  open: d,
1024
1030
  onOpenChange: (g) => c(g),
1025
1031
  children: [
1026
- /* @__PURE__ */ s.jsx(Lr, { onRequestClose: () => c(!1) }),
1032
+ /* @__PURE__ */ s.jsx(Kr, { onRequestClose: () => c(!1) }),
1027
1033
  /* @__PURE__ */ s.jsx(
1028
1034
  "div",
1029
1035
  {
1030
1036
  className: Q(
1031
- "lg:hidden -mx-10 px-10 py-2 sticky bg-background/80 backdrop-blur z-10 top-0 left-0 right-0 border-b",
1037
+ "lg:hidden -mx-4 px-4 py-2 sticky bg-background/80 backdrop-blur z-10 top-0 left-0 right-0 border-b",
1032
1038
  "peer-data-[navigation=false]:hidden"
1033
1039
  ),
1034
- children: /* @__PURE__ */ s.jsxs(Ye, { className: "flex items-center gap-2", children: [
1035
- /* @__PURE__ */ s.jsx($t, { size: 16, strokeWidth: 1.5 }),
1040
+ children: /* @__PURE__ */ s.jsxs(Xe, { className: "flex items-center gap-2", children: [
1041
+ /* @__PURE__ */ s.jsx(Yt, { size: 16, strokeWidth: 1.5 }),
1036
1042
  /* @__PURE__ */ s.jsx("span", { className: "text-sm", children: "Menu" })
1037
1043
  ] })
1038
1044
  }
@@ -1048,9 +1054,9 @@ const Lr = ({
1048
1054
  "lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] lg:peer-data-[navigation=true]:pl-12"
1049
1055
  ),
1050
1056
  children: [
1051
- /* @__PURE__ */ s.jsx(D, { name: "zudoku-before-content" }),
1057
+ /* @__PURE__ */ s.jsx(S, { name: "zudoku-before-content" }),
1052
1058
  t ?? /* @__PURE__ */ s.jsx(ce, {}),
1053
- /* @__PURE__ */ s.jsx(D, { name: "zudoku-after-content" })
1059
+ /* @__PURE__ */ s.jsx(S, { name: "zudoku-after-content" })
1054
1060
  ]
1055
1061
  }
1056
1062
  )
@@ -1058,15 +1064,15 @@ const Lr = ({
1058
1064
  }
1059
1065
  ) }) })
1060
1066
  ] });
1061
- }, $r = ({
1067
+ }, Ur = ({
1062
1068
  title: t = "An error occurred",
1063
1069
  message: e,
1064
1070
  category: r
1065
- }) => /* @__PURE__ */ s.jsxs("div", { className: Gt + " h-full pt-[--padding-content-top]", children: [
1066
- r && /* @__PURE__ */ s.jsx(br, { children: r }),
1067
- t && /* @__PURE__ */ s.jsx(_t, { level: 1, className: "flex gap-3.5 items-center", children: t }),
1071
+ }) => /* @__PURE__ */ s.jsxs("div", { className: er + " h-full pt-[--padding-content-top]", children: [
1072
+ r && /* @__PURE__ */ s.jsx(jr, { children: r }),
1073
+ t && /* @__PURE__ */ s.jsx(Jt, { level: 1, className: "flex gap-3.5 items-center", children: t }),
1068
1074
  /* @__PURE__ */ s.jsx("p", { children: e })
1069
- ] }), Ur = (t) => {
1075
+ ] }), Zr = (t) => {
1070
1076
  switch (t) {
1071
1077
  case 400:
1072
1078
  return {
@@ -1129,21 +1135,21 @@ const Lr = ({
1129
1135
  message: "Something went wrong while processing your request."
1130
1136
  };
1131
1137
  }
1132
- }, Zr = ({ statusCode: t, message: e }) => {
1133
- const r = Ur(t);
1138
+ }, Yr = ({ statusCode: t, message: e }) => {
1139
+ const r = Zr(t);
1134
1140
  return /* @__PURE__ */ s.jsx(
1135
- $r,
1141
+ Ur,
1136
1142
  {
1137
1143
  title: r.title,
1138
1144
  message: e ?? r.message,
1139
1145
  category: t
1140
1146
  }
1141
1147
  );
1142
- }, Yr = he(null), se = {
1148
+ }, Vr = he(null), se = {
1143
1149
  didCatch: !1,
1144
1150
  error: null
1145
1151
  };
1146
- class Vr extends Ot {
1152
+ class Xr extends qt {
1147
1153
  constructor(e) {
1148
1154
  super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = se;
1149
1155
  }
@@ -1176,7 +1182,7 @@ class Vr extends Ot {
1176
1182
  } = this.state, {
1177
1183
  resetKeys: a
1178
1184
  } = this.props;
1179
- if (n && r.error !== null && Xr(e.resetKeys, a)) {
1185
+ if (n && r.error !== null && Gr(e.resetKeys, a)) {
1180
1186
  var o, i;
1181
1187
  (o = (i = this.props).onReset) === null || o === void 0 || o.call(i, {
1182
1188
  next: a,
@@ -1210,7 +1216,7 @@ class Vr extends Ot {
1210
1216
  else
1211
1217
  throw i;
1212
1218
  }
1213
- return Ce(Yr.Provider, {
1219
+ return Ce(Vr.Provider, {
1214
1220
  value: {
1215
1221
  didCatch: o,
1216
1222
  error: i,
@@ -1219,11 +1225,11 @@ class Vr extends Ot {
1219
1225
  }, u);
1220
1226
  }
1221
1227
  }
1222
- function Xr() {
1228
+ function Gr() {
1223
1229
  let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
1224
1230
  return t.length !== e.length || t.some((r, n) => !Object.is(r, e[n]));
1225
1231
  }
1226
- class Gr {
1232
+ class _r {
1227
1233
  constructor(e) {
1228
1234
  P(this, "plugins");
1229
1235
  P(this, "sidebars");
@@ -1234,14 +1240,14 @@ class Gr {
1234
1240
  P(this, "navigationPlugins");
1235
1241
  P(this, "initialize", async () => {
1236
1242
  await Promise.all(
1237
- this.plugins.filter(nr).map((e) => {
1243
+ this.plugins.filter(or).map((e) => {
1238
1244
  var r;
1239
1245
  return (r = e.initialize) == null ? void 0 : r.call(e, this);
1240
1246
  })
1241
1247
  );
1242
1248
  });
1243
1249
  P(this, "getApiIdentities", async () => (await Promise.all(
1244
- this.plugins.filter(ar).map((r) => r.getIdentities(this))
1250
+ this.plugins.filter(lr).map((r) => r.getIdentities(this))
1245
1251
  )).flat());
1246
1252
  P(this, "getPluginSidebar", async (e) => (await Promise.all(
1247
1253
  this.navigationPlugins.map(
@@ -1257,81 +1263,82 @@ class Gr {
1257
1263
  const r = await this.authentication.getAccessToken();
1258
1264
  return e.headers.set("Authorization", `Bearer ${r}`), e;
1259
1265
  });
1260
- this.options = e, this.plugins = e.plugins ?? [], this.topNavigation = e.topNavigation ?? [], this.sidebars = e.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(sr), this.authentication = e.authentication, this.meta = e.metadata, this.page = e.page;
1266
+ this.options = e, this.plugins = e.plugins ?? [], this.topNavigation = e.topNavigation ?? [], this.sidebars = e.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(ir), this.authentication = e.authentication, this.meta = e.metadata, this.page = e.page;
1261
1267
  }
1262
1268
  }
1263
- function _r({ error: t, resetErrorBoundary: e }) {
1264
- return /* @__PURE__ */ s.jsx(Ue, { error: t });
1269
+ function Wr({ error: t, resetErrorBoundary: e }) {
1270
+ return /* @__PURE__ */ s.jsx(Ye, { error: t });
1265
1271
  }
1266
1272
  const W = globalThis;
1267
1273
  (!W.requestIdleCallback || !W.cancelIdleCallback) && (W.requestIdleCallback = (t) => setTimeout(t, 1), W.cancelIdleCallback = clearTimeout);
1268
- const nt = {
1269
- Header: rt
1270
- }, Wr = he(nt), Jr = Wr.Provider, es = ({
1274
+ const it = {
1275
+ Header: nt
1276
+ }, Jr = he(it), es = Jr.Provider, ts = ({
1271
1277
  children: t,
1272
1278
  context: e
1273
- }) => (Pt({
1279
+ }) => (St({
1274
1280
  queryFn: async () => (await e.initialize(), !0),
1275
1281
  queryKey: ["zudoku-initialize"]
1276
- }), /* @__PURE__ */ s.jsx(kt.Provider, { value: e, children: t })), at = Ke(
1282
+ }), /* @__PURE__ */ s.jsx(Nt.Provider, { value: e, children: t })), ot = Ue(
1277
1283
  ({ children: t, ...e }) => {
1278
1284
  var f, h;
1279
1285
  const r = te(
1280
- () => ({ ...nt, ...e.overrides }),
1286
+ () => ({ ...it, ...e.overrides }),
1281
1287
  [e.overrides]
1282
1288
  ), n = te(() => {
1283
- var v;
1289
+ var y;
1284
1290
  return {
1285
- ...(e.plugins ?? []).filter(ir).flatMap(
1286
- (m) => m.getMdxComponents ? [m.getMdxComponents()] : []
1291
+ ...(e.plugins ?? []).filter(cr).flatMap(
1292
+ (p) => p.getMdxComponents ? [p.getMdxComponents()] : []
1287
1293
  ).reduce(
1288
- (m, k) => ({ ...m, ...k }),
1294
+ (p, k) => ({ ...p, ...k }),
1289
1295
  {}
1290
1296
  ),
1291
- ...Wt,
1292
- ...(v = e.mdx) == null ? void 0 : v.components
1297
+ ...tr,
1298
+ ...(y = e.mdx) == null ? void 0 : y.components
1293
1299
  };
1294
- }, [(f = e.mdx) == null ? void 0 : f.components, e.plugins]), { stagger: a } = At(ie), [o, i] = L(!1), u = te(
1300
+ }, [(f = e.mdx) == null ? void 0 : f.components, e.plugins]), { stagger: a } = Tt(ie), [o, i] = L(!1), u = te(
1295
1301
  () => o ? { stagger: !0 } : { stagger: a },
1296
1302
  [a, o]
1297
1303
  ), d = ue();
1298
1304
  I(() => {
1299
1305
  o || i(!0);
1300
1306
  }, [o, d.location]);
1301
- const [c] = L(() => new Gr(e)), g = (h = e.plugins) == null ? void 0 : h.filter(or).map((x, v) => {
1302
- var m;
1303
- return /* @__PURE__ */ s.jsx(Et, { children: (m = x.getHead) == null ? void 0 : m.call(x) }, v);
1307
+ const [c] = L(() => new _r(e)), g = (h = e.plugins) == null ? void 0 : h.filter(ur).map((m, y) => {
1308
+ var p;
1309
+ return /* @__PURE__ */ s.jsx(It, { children: (p = m.getHead) == null ? void 0 : p.call(m) }, y);
1304
1310
  });
1305
1311
  return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
1306
1312
  /* @__PURE__ */ s.jsx(oe, { children: g }),
1307
- /* @__PURE__ */ s.jsx(ie.Provider, { value: u, children: /* @__PURE__ */ s.jsx(es, { context: c, children: /* @__PURE__ */ s.jsx(Yt, { components: n, children: /* @__PURE__ */ s.jsx(yr, { attribute: "class", disableTransitionOnChange: !0, children: /* @__PURE__ */ s.jsx(Jr, { value: r, children: /* @__PURE__ */ s.jsx(qt, { slotlets: e.slotlets, children: /* @__PURE__ */ s.jsx(Jt, { children: t ?? /* @__PURE__ */ s.jsx(ce, {}) }) }) }) }) }) }) })
1313
+ /* @__PURE__ */ s.jsx(ie.Provider, { value: u, children: /* @__PURE__ */ s.jsx(ts, { context: c, children: /* @__PURE__ */ s.jsx(Gt, { components: n, children: /* @__PURE__ */ s.jsx(ht, { attribute: "class", disableTransitionOnChange: !0, children: /* @__PURE__ */ s.jsx(es, { value: r, children: /* @__PURE__ */ s.jsx(Qt, { slotlets: e.slotlets, children: /* @__PURE__ */ s.jsx(rr, { children: t ?? /* @__PURE__ */ s.jsx(ce, {}) }) }) }) }) }) }) })
1308
1314
  ] });
1309
1315
  }
1310
1316
  );
1311
- at.displayName = "ZudokoInner";
1312
- const it = (t) => /* @__PURE__ */ s.jsx(Vr, { FallbackComponent: _r, children: /* @__PURE__ */ s.jsx(at, { ...t }) });
1313
- it.displayName = "Zudoku";
1314
- const Ss = Vt, Ns = Kr, Ds = Tt, Ms = Mr, Os = Er, As = qr, Es = Dr, qs = oe, Ts = A, Is = z, Qs = Ct, Rs = St, Fs = it, Bs = Zr, Hs = Qt, zs = er, Ls = Ge, Ks = ge, $s = It, Us = de;
1317
+ ot.displayName = "ZudokoInner";
1318
+ const lt = (t) => /* @__PURE__ */ s.jsx(Xr, { FallbackComponent: Wr, children: /* @__PURE__ */ s.jsx(ot, { ...t }) });
1319
+ lt.displayName = "Zudoku";
1320
+ const Ns = _t, Ds = $r, Ms = Rt, Os = Or, As = qr, Es = Tr, qs = Mr, Ts = oe, Is = A, Qs = z, Rs = Dt, Fs = Mt, Bs = lt, Hs = Yr, zs = Bt, Ls = sr, Ks = We, $s = ge, Us = Ft, Zs = de, Ys = Be;
1315
1321
  export {
1316
- Os as Bootstrap,
1317
- As as BootstrapStatic,
1318
- $s as Button,
1319
- Rs as CACHE_KEYS,
1320
- Hs as Callout,
1321
- Ks as ClientOnly,
1322
- qs as Head,
1323
- Ns as Layout,
1324
- Us as Link,
1325
- zs as Markdown,
1326
- Es as RouteGuard,
1327
- Ds as RouterError,
1328
- Ms as ServerError,
1329
- Ls as Spinner,
1330
- Bs as StatusPage,
1331
- Fs as Zudoku,
1332
- Is as useAuth,
1333
- Qs as useCache,
1334
- Ss as useMDXComponents,
1335
- Ts as useZudoku
1322
+ As as Bootstrap,
1323
+ Es as BootstrapStatic,
1324
+ Us as Button,
1325
+ Fs as CACHE_KEYS,
1326
+ zs as Callout,
1327
+ $s as ClientOnly,
1328
+ Ts as Head,
1329
+ Ds as Layout,
1330
+ Zs as Link,
1331
+ Ls as Markdown,
1332
+ qs as RouteGuard,
1333
+ Ms as RouterError,
1334
+ Os as ServerError,
1335
+ Ks as Spinner,
1336
+ Hs as StatusPage,
1337
+ Bs as Zudoku,
1338
+ Qs as useAuth,
1339
+ Rs as useCache,
1340
+ Ns as useMDXComponents,
1341
+ Ys as useTheme,
1342
+ Is as useZudoku
1336
1343
  };
1337
1344
  //# sourceMappingURL=zudoku.components.js.map