zudoku 0.26.1 → 0.28.0

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 (264) hide show
  1. package/dist/app/main.d.ts +1 -1
  2. package/dist/app/main.js +19 -7
  3. package/dist/app/main.js.map +1 -1
  4. package/dist/config/loader.js +1 -1
  5. package/dist/config/loader.js.map +1 -1
  6. package/dist/config/validators/InputSidebarSchema.d.ts +2 -2
  7. package/dist/config/validators/common.d.ts +67 -0
  8. package/dist/config/validators/common.js +5 -0
  9. package/dist/config/validators/common.js.map +1 -1
  10. package/dist/config/validators/validate.d.ts +29 -0
  11. package/dist/lib/components/AnchorLink.js +5 -2
  12. package/dist/lib/components/AnchorLink.js.map +1 -1
  13. package/dist/lib/components/Header.js +1 -1
  14. package/dist/lib/components/Header.js.map +1 -1
  15. package/dist/lib/components/Heading.d.ts +1 -1
  16. package/dist/lib/components/Markdown.d.ts +2 -2
  17. package/dist/lib/components/Markdown.js +3 -1
  18. package/dist/lib/components/Markdown.js.map +1 -1
  19. package/dist/lib/components/StatusPage.d.ts +7 -0
  20. package/dist/lib/components/StatusPage.js +71 -0
  21. package/dist/lib/components/StatusPage.js.map +1 -0
  22. package/dist/lib/components/SyntaxHighlight.d.ts +2 -1
  23. package/dist/lib/components/SyntaxHighlight.js +2 -2
  24. package/dist/lib/components/SyntaxHighlight.js.map +1 -1
  25. package/dist/lib/components/ThemeSwitch.js +4 -4
  26. package/dist/lib/components/ThemeSwitch.js.map +1 -1
  27. package/dist/lib/components/cache.d.ts +6 -0
  28. package/dist/lib/components/cache.js +13 -0
  29. package/dist/lib/components/cache.js.map +1 -0
  30. package/dist/lib/components/context/ViewportAnchorContext.js +16 -4
  31. package/dist/lib/components/context/ViewportAnchorContext.js.map +1 -1
  32. package/dist/lib/components/context/ZudokuContext.js +2 -1
  33. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  34. package/dist/lib/components/index.d.ts +9 -2
  35. package/dist/lib/components/index.js +3 -0
  36. package/dist/lib/components/index.js.map +1 -1
  37. package/dist/lib/components/navigation/SidebarCategory.js +3 -3
  38. package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
  39. package/dist/lib/core/RouteGuard.d.ts +1 -0
  40. package/dist/lib/core/RouteGuard.js +28 -0
  41. package/dist/lib/core/RouteGuard.js.map +1 -0
  42. package/dist/lib/core/ZudokuContext.d.ts +4 -2
  43. package/dist/lib/core/ZudokuContext.js +9 -7
  44. package/dist/lib/core/ZudokuContext.js.map +1 -1
  45. package/dist/lib/oas/graphql/circular.d.ts +3 -0
  46. package/dist/lib/oas/graphql/circular.js +27 -0
  47. package/dist/lib/oas/graphql/circular.js.map +1 -0
  48. package/dist/lib/oas/graphql/index.d.ts +1 -0
  49. package/dist/lib/oas/graphql/index.js +46 -29
  50. package/dist/lib/oas/graphql/index.js.map +1 -1
  51. package/dist/lib/oas/parser/dereference/index.d.ts +0 -1
  52. package/dist/lib/oas/parser/dereference/index.js +1 -1
  53. package/dist/lib/oas/parser/dereference/index.js.map +1 -1
  54. package/dist/lib/plugins/openapi/Endpoint.js +2 -2
  55. package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
  56. package/dist/lib/plugins/openapi/{Route.d.ts → OpenApiRoute.d.ts} +2 -1
  57. package/dist/lib/plugins/openapi/{Route.js → OpenApiRoute.js} +3 -4
  58. package/dist/lib/plugins/openapi/OpenApiRoute.js.map +1 -0
  59. package/dist/lib/plugins/openapi/OperationList.d.ts +4 -1
  60. package/dist/lib/plugins/openapi/OperationList.js +20 -14
  61. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  62. package/dist/lib/plugins/openapi/OperationListItem.js +1 -1
  63. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  64. package/dist/lib/plugins/openapi/ParameterListItem.js +1 -1
  65. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  66. package/dist/lib/plugins/openapi/RequestBodySidecarBox.d.ts +1 -1
  67. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +2 -0
  68. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
  69. package/dist/lib/plugins/openapi/Sidecar.js +3 -3
  70. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  71. package/dist/lib/plugins/openapi/SidecarExamples.js +17 -14
  72. package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -1
  73. package/dist/lib/plugins/openapi/graphql/gql.d.ts +6 -2
  74. package/dist/lib/plugins/openapi/graphql/gql.js +3 -2
  75. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  76. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +47 -26
  77. package/dist/lib/plugins/openapi/graphql/graphql.js +20 -16
  78. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
  79. package/dist/lib/plugins/openapi/index.js +101 -65
  80. package/dist/lib/plugins/openapi/index.js.map +1 -1
  81. package/dist/lib/plugins/openapi/interfaces.d.ts +8 -2
  82. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +5 -5
  83. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -1
  84. package/dist/lib/plugins/openapi/playground/Headers.js +17 -16
  85. package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
  86. package/dist/lib/plugins/openapi/playground/ParamsGrid.d.ts +5 -0
  87. package/dist/lib/plugins/openapi/playground/ParamsGrid.js +4 -0
  88. package/dist/lib/plugins/openapi/playground/ParamsGrid.js.map +1 -0
  89. package/dist/lib/plugins/openapi/playground/PathParams.js +4 -12
  90. package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
  91. package/dist/lib/plugins/openapi/playground/Playground.d.ts +13 -0
  92. package/dist/lib/plugins/openapi/playground/Playground.js +19 -31
  93. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  94. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +1 -1
  95. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
  96. package/dist/lib/plugins/openapi/playground/QueryParams.js +4 -3
  97. package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
  98. package/dist/lib/plugins/openapi/playground/SubmitButton.d.ts +7 -0
  99. package/dist/lib/plugins/openapi/playground/SubmitButton.js +22 -0
  100. package/dist/lib/plugins/openapi/playground/SubmitButton.js.map +1 -0
  101. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.d.ts +7 -0
  102. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js +11 -0
  103. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js.map +1 -0
  104. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.d.ts +8 -0
  105. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +95 -0
  106. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -0
  107. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.d.ts +7 -0
  108. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +16 -0
  109. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -0
  110. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.d.ts +10 -0
  111. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js +32 -0
  112. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js.map +1 -0
  113. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.d.ts +1 -0
  114. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.js +56 -0
  115. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.js.map +1 -0
  116. package/dist/lib/plugins/openapi/schema/SchemaComponents.js +1 -1
  117. package/dist/lib/plugins/openapi/schema/SchemaComponents.js.map +1 -1
  118. package/dist/lib/ui/Command.js +1 -1
  119. package/dist/lib/ui/Command.js.map +1 -1
  120. package/dist/lib/ui/Select.js +2 -2
  121. package/dist/lib/ui/Select.js.map +1 -1
  122. package/dist/lib/util/MdxComponents.js +2 -2
  123. package/dist/lib/util/MdxComponents.js.map +1 -1
  124. package/dist/lib/util/joinUrl.js +1 -1
  125. package/dist/lib/util/joinUrl.js.map +1 -1
  126. package/dist/lib/util/joinUrl.test.d.ts +1 -0
  127. package/dist/lib/util/joinUrl.test.js +43 -0
  128. package/dist/lib/util/joinUrl.test.js.map +1 -0
  129. package/dist/lib/util/useScrollToAnchor.d.ts +1 -0
  130. package/dist/lib/util/useScrollToAnchor.js +26 -15
  131. package/dist/lib/util/useScrollToAnchor.js.map +1 -1
  132. package/dist/vite/plugin-api.js +15 -3
  133. package/dist/vite/plugin-api.js.map +1 -1
  134. package/dist/vite/prerender.js +1 -0
  135. package/dist/vite/prerender.js.map +1 -1
  136. package/dist/zuplo/enrich-with-zuplo.js +1 -1
  137. package/dist/zuplo/enrich-with-zuplo.js.map +1 -1
  138. package/dist/zuplo/with-zuplo.d.ts +2 -1
  139. package/dist/zuplo/with-zuplo.js +3 -1
  140. package/dist/zuplo/with-zuplo.js.map +1 -1
  141. package/lib/{AuthenticationPlugin-C9SwOxkc.js → AuthenticationPlugin-Du8cLBSr.js} +3 -3
  142. package/lib/{AuthenticationPlugin-C9SwOxkc.js.map → AuthenticationPlugin-Du8cLBSr.js.map} +1 -1
  143. package/lib/{Markdown-DFN6p0J-.js → Markdown-Cyrx_JrO.js} +1195 -1185
  144. package/lib/{Markdown-DFN6p0J-.js.map → Markdown-Cyrx_JrO.js.map} +1 -1
  145. package/lib/{MdxPage-D9c4z09Q.js → MdxPage-DewragjB.js} +6 -6
  146. package/lib/{MdxPage-D9c4z09Q.js.map → MdxPage-DewragjB.js.map} +1 -1
  147. package/lib/OpenApiRoute-UrC_t0e5.js +36 -0
  148. package/lib/OpenApiRoute-UrC_t0e5.js.map +1 -0
  149. package/lib/{OperationList-DGJWDx1G.js → OperationList-D_ejrepA.js} +1970 -1957
  150. package/lib/OperationList-D_ejrepA.js.map +1 -0
  151. package/lib/{Select-D3O7wISy.js → Select-CnCZ4WhS.js} +61 -61
  152. package/lib/Select-CnCZ4WhS.js.map +1 -0
  153. package/lib/{SlotletProvider-_3zzX_g_.js → SlotletProvider-mQiPDQIH.js} +4 -4
  154. package/lib/{SlotletProvider-_3zzX_g_.js.map → SlotletProvider-mQiPDQIH.js.map} +1 -1
  155. package/lib/{SyntaxHighlight-CJCSPG1F.js → SyntaxHighlight-B0L4SC_N.js} +309 -298
  156. package/lib/SyntaxHighlight-B0L4SC_N.js.map +1 -0
  157. package/lib/{ZudokuContext-DeQZEp-x.js → ZudokuContext-BTUJPpQl.js} +257 -246
  158. package/lib/ZudokuContext-BTUJPpQl.js.map +1 -0
  159. package/lib/{chunk-SYFQ2XB5-BF5IDYrB.js → chunk-SYFQ2XB5-BPvC-soB.js} +5 -5
  160. package/lib/{chunk-SYFQ2XB5-BF5IDYrB.js.map → chunk-SYFQ2XB5-BPvC-soB.js.map} +1 -1
  161. package/lib/circular-Dgpd6AN-.js +15397 -0
  162. package/lib/circular-Dgpd6AN-.js.map +1 -0
  163. package/lib/{createServer-BcaswoFO.js → createServer-BydbkTsd.js} +3487 -5601
  164. package/lib/createServer-BydbkTsd.js.map +1 -0
  165. package/lib/{hook-BRQEDRbn.js → hook-FT3SJLe_.js} +2 -2
  166. package/lib/{hook-BRQEDRbn.js.map → hook-FT3SJLe_.js.map} +1 -1
  167. package/lib/{index-LNp6rxyU.js → index-CjJS0l4l.js} +2 -2
  168. package/lib/{index-LNp6rxyU.js.map → index-CjJS0l4l.js.map} +1 -1
  169. package/lib/index-DGugJOLc.js +1974 -0
  170. package/lib/index-DGugJOLc.js.map +1 -0
  171. package/lib/{joinUrl-BTy9bvoK.js → joinUrl-nLx9pD-Z.js} +2 -2
  172. package/lib/joinUrl-nLx9pD-Z.js.map +1 -0
  173. package/lib/ui/Command.js +27 -27
  174. package/lib/ui/Command.js.map +1 -1
  175. package/lib/ui/Select.js +2 -2
  176. package/lib/ui/Select.js.map +1 -1
  177. package/lib/{useExposedProps-CetwhZpP.js → useExposedProps-BLKFBylA.js} +2 -2
  178. package/lib/{useExposedProps-CetwhZpP.js.map → useExposedProps-BLKFBylA.js.map} +1 -1
  179. package/lib/useScrollToAnchor-eRM9tVvD.js +289 -0
  180. package/lib/useScrollToAnchor-eRM9tVvD.js.map +1 -0
  181. package/lib/zudoku.auth-clerk.js +1 -1
  182. package/lib/zudoku.auth-openid.js +4 -4
  183. package/lib/zudoku.components.js +740 -979
  184. package/lib/zudoku.components.js.map +1 -1
  185. package/lib/zudoku.plugin-api-catalog.js +4 -4
  186. package/lib/zudoku.plugin-api-keys.js +5 -5
  187. package/lib/zudoku.plugin-custom-pages.js +2 -2
  188. package/lib/zudoku.plugin-markdown.js +1 -1
  189. package/lib/zudoku.plugin-openapi.js +6 -5
  190. package/lib/zudoku.plugin-openapi.js.map +1 -1
  191. package/lib/zudoku.plugin-redirect.js +1 -1
  192. package/package.json +2 -2
  193. package/src/app/main.tsx +26 -7
  194. package/src/lib/components/AnchorLink.tsx +5 -2
  195. package/src/lib/components/Header.tsx +1 -1
  196. package/src/lib/components/Markdown.tsx +14 -15
  197. package/src/lib/components/StatusPage.tsx +91 -0
  198. package/src/lib/components/SyntaxHighlight.tsx +14 -0
  199. package/src/lib/components/ThemeSwitch.tsx +14 -15
  200. package/src/lib/components/cache.ts +15 -0
  201. package/src/lib/components/context/ViewportAnchorContext.tsx +20 -6
  202. package/src/lib/components/context/ZudokuContext.ts +3 -1
  203. package/src/lib/components/index.ts +7 -0
  204. package/src/lib/components/navigation/SidebarCategory.tsx +3 -2
  205. package/src/lib/core/RouteGuard.tsx +35 -0
  206. package/src/lib/core/ZudokuContext.ts +9 -8
  207. package/src/lib/oas/graphql/circular.ts +29 -0
  208. package/src/lib/oas/graphql/index.ts +72 -44
  209. package/src/lib/oas/parser/dereference/index.ts +1 -2
  210. package/src/lib/plugins/openapi/Endpoint.tsx +2 -2
  211. package/src/lib/plugins/openapi/{Route.tsx → OpenApiRoute.tsx} +3 -3
  212. package/src/lib/plugins/openapi/OperationList.tsx +34 -12
  213. package/src/lib/plugins/openapi/OperationListItem.tsx +0 -2
  214. package/src/lib/plugins/openapi/ParameterListItem.tsx +1 -0
  215. package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +2 -0
  216. package/src/lib/plugins/openapi/Sidecar.tsx +4 -3
  217. package/src/lib/plugins/openapi/SidecarExamples.tsx +24 -24
  218. package/src/lib/plugins/openapi/graphql/gql.ts +12 -4
  219. package/src/lib/plugins/openapi/graphql/graphql.ts +66 -43
  220. package/src/lib/plugins/openapi/index.tsx +134 -82
  221. package/src/lib/plugins/openapi/interfaces.ts +11 -2
  222. package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +30 -27
  223. package/src/lib/plugins/openapi/playground/Headers.tsx +65 -65
  224. package/src/lib/plugins/openapi/playground/ParamsGrid.tsx +8 -0
  225. package/src/lib/plugins/openapi/playground/PathParams.tsx +34 -74
  226. package/src/lib/plugins/openapi/playground/Playground.tsx +64 -116
  227. package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +1 -1
  228. package/src/lib/plugins/openapi/playground/QueryParams.tsx +46 -45
  229. package/src/lib/plugins/openapi/playground/SubmitButton.tsx +75 -0
  230. package/src/lib/plugins/openapi/playground/result-panel/RequestTab.tsx +73 -0
  231. package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +210 -0
  232. package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +101 -0
  233. package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.test.ts +64 -0
  234. package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.ts +36 -0
  235. package/src/lib/plugins/openapi/schema/SchemaComponents.tsx +1 -1
  236. package/src/lib/ui/Command.tsx +1 -1
  237. package/src/lib/ui/Select.tsx +1 -1
  238. package/src/lib/util/MdxComponents.tsx +2 -1
  239. package/src/lib/util/joinUrl.test.ts +62 -0
  240. package/src/lib/util/joinUrl.ts +1 -1
  241. package/src/lib/util/useScrollToAnchor.ts +32 -15
  242. package/dist/lib/plugins/openapi/Route.js.map +0 -1
  243. package/dist/lib/plugins/openapi/playground/ResponseTab.d.ts +0 -4
  244. package/dist/lib/plugins/openapi/playground/ResponseTab.js +0 -42
  245. package/dist/lib/plugins/openapi/playground/ResponseTab.js.map +0 -1
  246. package/lib/AnchorLink-bObQitZv.js +0 -34
  247. package/lib/AnchorLink-bObQitZv.js.map +0 -1
  248. package/lib/OperationList-DGJWDx1G.js.map +0 -1
  249. package/lib/Route-VdmEyOD0.js +0 -35
  250. package/lib/Route-VdmEyOD0.js.map +0 -1
  251. package/lib/Select-D3O7wISy.js.map +0 -1
  252. package/lib/StaggeredRender-DgsamH_G.js +0 -17
  253. package/lib/StaggeredRender-DgsamH_G.js.map +0 -1
  254. package/lib/SyntaxHighlight-CJCSPG1F.js.map +0 -1
  255. package/lib/ZudokuContext-DeQZEp-x.js.map +0 -1
  256. package/lib/createServer-BcaswoFO.js.map +0 -1
  257. package/lib/index-Bn6Lc9tq.js +0 -9
  258. package/lib/index-Bn6Lc9tq.js.map +0 -1
  259. package/lib/index-CXRrqOIl.js +0 -1750
  260. package/lib/index-CXRrqOIl.js.map +0 -1
  261. package/lib/index-TaRXY2w1.js +0 -43
  262. package/lib/index-TaRXY2w1.js.map +0 -1
  263. package/lib/joinUrl-BTy9bvoK.js.map +0 -1
  264. package/src/lib/plugins/openapi/playground/ResponseTab.tsx +0 -76
@@ -1,583 +1,581 @@
1
- var ft = Object.defineProperty;
2
- var je = (e) => {
3
- throw TypeError(e);
1
+ var ot = Object.defineProperty;
2
+ var ge = (t) => {
3
+ throw TypeError(t);
4
4
  };
5
- var gt = (e, t, s) => t in e ? ft(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s;
6
- var k = (e, t, s) => gt(e, typeof t != "symbol" ? t + "" : t, s), we = (e, t, s) => t.has(e) || je("Cannot " + s);
7
- var c = (e, t, s) => (we(e, t, "read from private field"), s ? s.call(e) : t.get(e)), j = (e, t, s) => t.has(e) ? je("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, s), b = (e, t, s, r) => (we(e, t, "write to private field"), r ? r.call(e, s) : t.set(e, s), s);
8
- var J = (e, t, s, r) => ({
5
+ var lt = (t, e, n) => e in t ? ot(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
6
+ var P = (t, e, n) => lt(t, typeof e != "symbol" ? e + "" : e, n), me = (t, e, n) => e.has(t) || ge("Cannot " + n);
7
+ var l = (t, e, n) => (me(t, e, "read from private field"), n ? n.call(t) : e.get(t)), j = (t, e, n) => e.has(t) ? ge("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), y = (t, e, n, s) => (me(t, e, "write to private field"), s ? s.call(t, n) : e.set(t, n), n);
8
+ var _ = (t, e, n, s) => ({
9
9
  set _(a) {
10
- b(e, t, a, s);
10
+ y(t, e, a, n);
11
11
  },
12
12
  get _() {
13
- return c(e, t, r);
13
+ return l(t, e, s);
14
14
  }
15
15
  });
16
- import { a as ze, H as ue } from "./index.esm-9-TF9KQB.js";
17
- import { R as mt, S as pt, f as xt, g as se, b as yt, u as he, h as fe, L as ge, O as He } from "./chunk-SYFQ2XB5-BF5IDYrB.js";
18
- import { M as bt, u as V } from "./hook-BRQEDRbn.js";
19
- import { E as Le, S as M, a as vt, R as jt } from "./SlotletProvider-_3zzX_g_.js";
20
- import { j as n } from "./jsx-runtime-Bdg6XQ1m.js";
21
- import { Button as wt } from "./ui/Button.js";
22
- import { Callout as kt } from "./ui/Callout.js";
23
- import { S as Ke, l as $e, Q as Ct, n as w, m as ke, o as Ce, p as D, q as Nt, r as Pt, t as St, v as Mt, w as Ne, x as Pe, y as Ot, h as Se, z as Me, A as Dt, e as At, B as Ze, C as Et, j as W, a as q, D as Ue, E as It, u as Qt, Z as Tt } from "./ZudokuContext-DeQZEp-x.js";
24
- import * as $ from "react";
25
- import qt, { StrictMode as Ve, useState as T, useEffect as R, useRef as me, useCallback as Rt, Suspense as pe, memo as We, forwardRef as Ft, createContext as _e, Component as Bt, createElement as Oe, useMemo as ne, useContext as zt, Fragment as Ht } from "react";
26
- import * as Lt from "react-dom";
27
- import { S as le } from "./StaggeredRender-DgsamH_G.js";
28
- import { C as xe } from "./ClientOnly-E7hGysn1.js";
29
- import { ChevronRightIcon as Kt, ExternalLinkIcon as $t, CircleXIcon as Zt, SearchIcon as Ut, MoonStarIcon as Vt, SunIcon as Wt, MenuIcon as _t, PanelLeftIcon as Xt } from "lucide-react";
30
- import { Drawer as Xe, DrawerTrigger as Ye, DrawerContent as Je, DrawerTitle as Ge } from "./ui/Drawer.js";
31
- import { c as O } from "./cn-qaFjX9_3.js";
32
- import { u as ye, a as Yt, V as Jt, M as Gt } from "./Markdown-DFN6p0J-.js";
33
- import { c as es, a as ts } from "./index-Djenk2Hj.js";
34
- import { A as ss, M as ns, u as rs } from "./AnchorLink-bObQitZv.js";
35
- import * as re from "@radix-ui/react-collapsible";
36
- import { B as ce, S as et } from "./Spinner-BlzrEEk1.js";
37
- import { DropdownMenu as as, DropdownMenuTrigger as is, DropdownMenuContent as os, DropdownMenuLabel as ls, DropdownMenuSeparator as ae, DropdownMenuSub as cs, DropdownMenuSubTrigger as ds, DropdownMenuPortal as us, DropdownMenuSubContent as hs, DropdownMenuItem as fs } from "./ui/DropdownMenu.js";
38
- import { j as De } from "./joinUrl-BTy9bvoK.js";
39
- import { VisuallyHidden as tt } from "@radix-ui/react-visually-hidden";
40
- import { z as gs, J as ms } from "./SyntaxHighlight-CJCSPG1F.js";
41
- import { Z as ps } from "./invariant-Caa8-XvF.js";
42
- var S, Re, xs = (Re = class extends Ke {
43
- constructor(t = {}) {
16
+ import { a as Ie, H as ie } from "./index.esm-9-TF9KQB.js";
17
+ import { R as ct, S as ut, u as Te, h as oe, N as dt, L as le, O as qe } from "./chunk-SYFQ2XB5-BPvC-soB.js";
18
+ import { M as ht, u as Z } from "./hook-FT3SJLe_.js";
19
+ import { E as Re, S as M, a as ft, R as gt } from "./SlotletProvider-mQiPDQIH.js";
20
+ import { j as r } from "./jsx-runtime-Bdg6XQ1m.js";
21
+ import { Button as mt } from "./ui/Button.js";
22
+ import { Callout as pt } from "./ui/Callout.js";
23
+ import { S as Fe, m as ze, Q as xt, n as w, o as pe, p as xe, q as N, r as yt, t as vt, v as bt, w as jt, x as ye, y as ve, z as wt, h as be, A as je, B as Pt, e as Ct, C as Be, a as I, D as He, E as St, j as se, u as kt, Z as Dt, F as Mt, G as Nt } from "./ZudokuContext-BTUJPpQl.js";
24
+ import * as K from "react";
25
+ import Ot, { createContext as ce, StrictMode as Le, useRef as ue, useEffect as U, useState as z, useCallback as Et, Suspense as de, memo as Ke, forwardRef as At, Component as Qt, createElement as we, useMemo as ee, useContext as It, Fragment as Tt } from "react";
26
+ import * as qt from "react-dom";
27
+ import { C as $e } from "./ClientOnly-E7hGysn1.js";
28
+ import { CircleXIcon as Rt, SearchIcon as Ft, MoonStarIcon as zt, SunIcon as Bt, MenuIcon as Ht, PanelLeftIcon as Lt } from "lucide-react";
29
+ import { Drawer as Ze, DrawerTrigger as Ue, DrawerContent as Ye, DrawerTitle as Xe } from "./ui/Drawer.js";
30
+ import { c as B } from "./cn-qaFjX9_3.js";
31
+ import { S as Pe, a as Kt, M as $t, u as Zt } from "./useScrollToAnchor-eRM9tVvD.js";
32
+ import { u as Ut, a as Yt, V as Xt, M as Vt } from "./Markdown-Cyrx_JrO.js";
33
+ import { B as re, S as Ve } from "./Spinner-BlzrEEk1.js";
34
+ import { DropdownMenu as _t, DropdownMenuTrigger as Wt, DropdownMenuContent as Gt, DropdownMenuLabel as Jt, DropdownMenuSeparator as te, DropdownMenuSub as en, DropdownMenuSubTrigger as tn, DropdownMenuPortal as nn, DropdownMenuSubContent as sn, DropdownMenuItem as rn } from "./ui/DropdownMenu.js";
35
+ import { j as Ce } from "./joinUrl-nLx9pD-Z.js";
36
+ import { VisuallyHidden as _e } from "@radix-ui/react-visually-hidden";
37
+ import { z as an, J as on } from "./SyntaxHighlight-B0L4SC_N.js";
38
+ import { a as ln } from "./index-Djenk2Hj.js";
39
+ import { Z as cn } from "./invariant-Caa8-XvF.js";
40
+ var D, Ee, un = (Ee = class extends Fe {
41
+ constructor(e = {}) {
44
42
  super();
45
- j(this, S);
46
- this.config = t, b(this, S, /* @__PURE__ */ new Map());
43
+ j(this, D);
44
+ this.config = e, y(this, D, /* @__PURE__ */ new Map());
47
45
  }
48
- build(t, s, r) {
49
- const a = s.queryKey, i = s.queryHash ?? $e(a, s);
50
- let o = this.get(i);
51
- return o || (o = new Ct({
46
+ build(e, n, s) {
47
+ const a = n.queryKey, o = n.queryHash ?? ze(a, n);
48
+ let i = this.get(o);
49
+ return i || (i = new xt({
52
50
  cache: this,
53
51
  queryKey: a,
54
- queryHash: i,
55
- options: t.defaultQueryOptions(s),
56
- state: r,
57
- defaultOptions: t.getQueryDefaults(a)
58
- }), this.add(o)), o;
59
- }
60
- add(t) {
61
- c(this, S).has(t.queryHash) || (c(this, S).set(t.queryHash, t), this.notify({
52
+ queryHash: o,
53
+ options: e.defaultQueryOptions(n),
54
+ state: s,
55
+ defaultOptions: e.getQueryDefaults(a)
56
+ }), this.add(i)), i;
57
+ }
58
+ add(e) {
59
+ l(this, D).has(e.queryHash) || (l(this, D).set(e.queryHash, e), this.notify({
62
60
  type: "added",
63
- query: t
61
+ query: e
64
62
  }));
65
63
  }
66
- remove(t) {
67
- const s = c(this, S).get(t.queryHash);
68
- s && (t.destroy(), s === t && c(this, S).delete(t.queryHash), this.notify({ type: "removed", query: t }));
64
+ remove(e) {
65
+ const n = l(this, D).get(e.queryHash);
66
+ n && (e.destroy(), n === e && l(this, D).delete(e.queryHash), this.notify({ type: "removed", query: e }));
69
67
  }
70
68
  clear() {
71
69
  w.batch(() => {
72
- this.getAll().forEach((t) => {
73
- this.remove(t);
70
+ this.getAll().forEach((e) => {
71
+ this.remove(e);
74
72
  });
75
73
  });
76
74
  }
77
- get(t) {
78
- return c(this, S).get(t);
75
+ get(e) {
76
+ return l(this, D).get(e);
79
77
  }
80
78
  getAll() {
81
- return [...c(this, S).values()];
79
+ return [...l(this, D).values()];
82
80
  }
83
- find(t) {
84
- const s = { exact: !0, ...t };
81
+ find(e) {
82
+ const n = { exact: !0, ...e };
85
83
  return this.getAll().find(
86
- (r) => ke(s, r)
84
+ (s) => pe(n, s)
87
85
  );
88
86
  }
89
- findAll(t = {}) {
90
- const s = this.getAll();
91
- return Object.keys(t).length > 0 ? s.filter((r) => ke(t, r)) : s;
87
+ findAll(e = {}) {
88
+ const n = this.getAll();
89
+ return Object.keys(e).length > 0 ? n.filter((s) => pe(e, s)) : n;
92
90
  }
93
- notify(t) {
91
+ notify(e) {
94
92
  w.batch(() => {
95
- this.listeners.forEach((s) => {
96
- s(t);
93
+ this.listeners.forEach((n) => {
94
+ n(e);
97
95
  });
98
96
  });
99
97
  }
100
98
  onFocus() {
101
99
  w.batch(() => {
102
- this.getAll().forEach((t) => {
103
- t.onFocus();
100
+ this.getAll().forEach((e) => {
101
+ e.onFocus();
104
102
  });
105
103
  });
106
104
  }
107
105
  onOnline() {
108
106
  w.batch(() => {
109
- this.getAll().forEach((t) => {
110
- t.onOnline();
107
+ this.getAll().forEach((e) => {
108
+ e.onOnline();
111
109
  });
112
110
  });
113
111
  }
114
- }, S = new WeakMap(), Re), A, N, _, Fe, ys = (Fe = class extends Ke {
115
- constructor(t = {}) {
112
+ }, D = new WeakMap(), Ee), O, S, Y, Ae, dn = (Ae = class extends Fe {
113
+ constructor(e = {}) {
116
114
  super();
117
- j(this, A);
118
- j(this, N);
119
- j(this, _);
120
- this.config = t, b(this, A, /* @__PURE__ */ new Set()), b(this, N, /* @__PURE__ */ new Map()), b(this, _, 0);
115
+ j(this, O);
116
+ j(this, S);
117
+ j(this, Y);
118
+ this.config = e, y(this, O, /* @__PURE__ */ new Set()), y(this, S, /* @__PURE__ */ new Map()), y(this, Y, 0);
121
119
  }
122
- build(t, s, r) {
123
- const a = new bt({
120
+ build(e, n, s) {
121
+ const a = new ht({
124
122
  mutationCache: this,
125
- mutationId: ++J(this, _)._,
126
- options: t.defaultMutationOptions(s),
127
- state: r
123
+ mutationId: ++_(this, Y)._,
124
+ options: e.defaultMutationOptions(n),
125
+ state: s
128
126
  });
129
127
  return this.add(a), a;
130
128
  }
131
- add(t) {
132
- c(this, A).add(t);
133
- const s = G(t);
134
- if (typeof s == "string") {
135
- const r = c(this, N).get(s);
136
- r ? r.push(t) : c(this, N).set(s, [t]);
129
+ add(e) {
130
+ l(this, O).add(e);
131
+ const n = W(e);
132
+ if (typeof n == "string") {
133
+ const s = l(this, S).get(n);
134
+ s ? s.push(e) : l(this, S).set(n, [e]);
137
135
  }
138
- this.notify({ type: "added", mutation: t });
139
- }
140
- remove(t) {
141
- if (c(this, A).delete(t)) {
142
- const s = G(t);
143
- if (typeof s == "string") {
144
- const r = c(this, N).get(s);
145
- if (r)
146
- if (r.length > 1) {
147
- const a = r.indexOf(t);
148
- a !== -1 && r.splice(a, 1);
149
- } else r[0] === t && c(this, N).delete(s);
136
+ this.notify({ type: "added", mutation: e });
137
+ }
138
+ remove(e) {
139
+ if (l(this, O).delete(e)) {
140
+ const n = W(e);
141
+ if (typeof n == "string") {
142
+ const s = l(this, S).get(n);
143
+ if (s)
144
+ if (s.length > 1) {
145
+ const a = s.indexOf(e);
146
+ a !== -1 && s.splice(a, 1);
147
+ } else s[0] === e && l(this, S).delete(n);
150
148
  }
151
149
  }
152
- this.notify({ type: "removed", mutation: t });
150
+ this.notify({ type: "removed", mutation: e });
153
151
  }
154
- canRun(t) {
155
- const s = G(t);
156
- if (typeof s == "string") {
157
- const r = c(this, N).get(s), a = r == null ? void 0 : r.find(
158
- (i) => i.state.status === "pending"
152
+ canRun(e) {
153
+ const n = W(e);
154
+ if (typeof n == "string") {
155
+ const s = l(this, S).get(n), a = s == null ? void 0 : s.find(
156
+ (o) => o.state.status === "pending"
159
157
  );
160
- return !a || a === t;
158
+ return !a || a === e;
161
159
  } else
162
160
  return !0;
163
161
  }
164
- runNext(t) {
165
- var r;
166
- const s = G(t);
167
- if (typeof s == "string") {
168
- const a = (r = c(this, N).get(s)) == null ? void 0 : r.find((i) => i !== t && i.state.isPaused);
162
+ runNext(e) {
163
+ var s;
164
+ const n = W(e);
165
+ if (typeof n == "string") {
166
+ const a = (s = l(this, S).get(n)) == null ? void 0 : s.find((o) => o !== e && o.state.isPaused);
169
167
  return (a == null ? void 0 : a.continue()) ?? Promise.resolve();
170
168
  } else
171
169
  return Promise.resolve();
172
170
  }
173
171
  clear() {
174
172
  w.batch(() => {
175
- c(this, A).forEach((t) => {
176
- this.notify({ type: "removed", mutation: t });
177
- }), c(this, A).clear(), c(this, N).clear();
173
+ l(this, O).forEach((e) => {
174
+ this.notify({ type: "removed", mutation: e });
175
+ }), l(this, O).clear(), l(this, S).clear();
178
176
  });
179
177
  }
180
178
  getAll() {
181
- return Array.from(c(this, A));
179
+ return Array.from(l(this, O));
182
180
  }
183
- find(t) {
184
- const s = { exact: !0, ...t };
181
+ find(e) {
182
+ const n = { exact: !0, ...e };
185
183
  return this.getAll().find(
186
- (r) => Ce(s, r)
184
+ (s) => xe(n, s)
187
185
  );
188
186
  }
189
- findAll(t = {}) {
190
- return this.getAll().filter((s) => Ce(t, s));
187
+ findAll(e = {}) {
188
+ return this.getAll().filter((n) => xe(e, n));
191
189
  }
192
- notify(t) {
190
+ notify(e) {
193
191
  w.batch(() => {
194
- this.listeners.forEach((s) => {
195
- s(t);
192
+ this.listeners.forEach((n) => {
193
+ n(e);
196
194
  });
197
195
  });
198
196
  }
199
197
  resumePausedMutations() {
200
- const t = this.getAll().filter((s) => s.state.isPaused);
198
+ const e = this.getAll().filter((n) => n.state.isPaused);
201
199
  return w.batch(
202
200
  () => Promise.all(
203
- t.map((s) => s.continue().catch(D))
201
+ e.map((n) => n.continue().catch(N))
204
202
  )
205
203
  );
206
204
  }
207
- }, A = new WeakMap(), N = new WeakMap(), _ = new WeakMap(), Fe);
208
- function G(e) {
209
- var t;
210
- return (t = e.options.scope) == null ? void 0 : t.id;
205
+ }, O = new WeakMap(), S = new WeakMap(), Y = new WeakMap(), Ae);
206
+ function W(t) {
207
+ var e;
208
+ return (e = t.options.scope) == null ? void 0 : e.id;
211
209
  }
212
- function Ae(e) {
210
+ function Se(t) {
213
211
  return {
214
- onFetch: (t, s) => {
215
- var f, g, h, p, x;
216
- const r = t.options, a = (h = (g = (f = t.fetchOptions) == null ? void 0 : f.meta) == null ? void 0 : g.fetchMore) == null ? void 0 : h.direction, i = ((p = t.state.data) == null ? void 0 : p.pages) || [], o = ((x = t.state.data) == null ? void 0 : x.pageParams) || [];
217
- let d = { pages: [], pageParams: [] }, u = 0;
218
- const l = async () => {
212
+ onFetch: (e, n) => {
213
+ var g, f, h, x, v;
214
+ const s = 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
+ let u = { pages: [], pageParams: [] }, d = 0;
216
+ const c = async () => {
219
217
  let m = !1;
220
- const C = (v) => {
221
- Object.defineProperty(v, "signal", {
218
+ const C = (b) => {
219
+ Object.defineProperty(b, "signal", {
222
220
  enumerable: !0,
223
- get: () => (t.signal.aborted ? m = !0 : t.signal.addEventListener("abort", () => {
221
+ get: () => (e.signal.aborted ? m = !0 : e.signal.addEventListener("abort", () => {
224
222
  m = !0;
225
- }), t.signal)
223
+ }), e.signal)
226
224
  });
227
- }, X = Nt(t.options, t.fetchOptions), L = async (v, P, K) => {
225
+ }, X = yt(e.options, e.fetchOptions), H = async (b, k, L) => {
228
226
  if (m)
229
227
  return Promise.reject();
230
- if (P == null && v.pages.length)
231
- return Promise.resolve(v);
232
- const Y = {
233
- queryKey: t.queryKey,
234
- pageParam: P,
235
- direction: K ? "backward" : "forward",
236
- meta: t.options.meta
228
+ if (k == null && b.pages.length)
229
+ return Promise.resolve(b);
230
+ const V = {
231
+ queryKey: e.queryKey,
232
+ pageParam: k,
233
+ direction: L ? "backward" : "forward",
234
+ meta: e.options.meta
237
235
  };
238
- C(Y);
239
- const ht = await X(
240
- Y
241
- ), { maxPages: be } = t.options, ve = K ? Pt : St;
236
+ C(V);
237
+ const it = await X(
238
+ V
239
+ ), { maxPages: he } = e.options, fe = L ? vt : bt;
242
240
  return {
243
- pages: ve(v.pages, ht, be),
244
- pageParams: ve(v.pageParams, P, be)
241
+ pages: fe(b.pages, it, he),
242
+ pageParams: fe(b.pageParams, k, he)
245
243
  };
246
244
  };
247
- if (a && i.length) {
248
- const v = a === "backward", P = v ? bs : Ee, K = {
249
- pages: i,
250
- pageParams: o
251
- }, Y = P(r, K);
252
- d = await L(K, Y, v);
245
+ if (a && o.length) {
246
+ const b = a === "backward", k = b ? hn : ke, L = {
247
+ pages: o,
248
+ pageParams: i
249
+ }, V = k(s, L);
250
+ u = await H(L, V, b);
253
251
  } else {
254
- const v = e ?? i.length;
252
+ const b = t ?? o.length;
255
253
  do {
256
- const P = u === 0 ? o[0] ?? r.initialPageParam : Ee(r, d);
257
- if (u > 0 && P == null)
254
+ const k = d === 0 ? i[0] ?? s.initialPageParam : ke(s, u);
255
+ if (d > 0 && k == null)
258
256
  break;
259
- d = await L(d, P), u++;
260
- } while (u < v);
257
+ u = await H(u, k), d++;
258
+ } while (d < b);
261
259
  }
262
- return d;
260
+ return u;
263
261
  };
264
- t.options.persister ? t.fetchFn = () => {
262
+ e.options.persister ? e.fetchFn = () => {
265
263
  var m, C;
266
- return (C = (m = t.options).persister) == null ? void 0 : C.call(
264
+ return (C = (m = e.options).persister) == null ? void 0 : C.call(
267
265
  m,
268
- l,
266
+ c,
269
267
  {
270
- queryKey: t.queryKey,
271
- meta: t.options.meta,
272
- signal: t.signal
268
+ queryKey: e.queryKey,
269
+ meta: e.options.meta,
270
+ signal: e.signal
273
271
  },
274
- s
272
+ n
275
273
  );
276
- } : t.fetchFn = l;
274
+ } : e.fetchFn = c;
277
275
  }
278
276
  };
279
277
  }
280
- function Ee(e, { pages: t, pageParams: s }) {
281
- const r = t.length - 1;
282
- return t.length > 0 ? e.getNextPageParam(
283
- t[r],
284
- t,
285
- s[r],
286
- s
278
+ function ke(t, { pages: e, pageParams: n }) {
279
+ const s = e.length - 1;
280
+ return e.length > 0 ? t.getNextPageParam(
281
+ e[s],
282
+ e,
283
+ n[s],
284
+ n
287
285
  ) : void 0;
288
286
  }
289
- function bs(e, { pages: t, pageParams: s }) {
290
- var r;
291
- return t.length > 0 ? (r = e.getPreviousPageParam) == null ? void 0 : r.call(e, t[0], t, s[0], s) : void 0;
287
+ function hn(t, { pages: e, pageParams: n }) {
288
+ var s;
289
+ return e.length > 0 ? (s = t.getPreviousPageParam) == null ? void 0 : s.call(t, e[0], e, n[0], n) : void 0;
292
290
  }
293
- var y, E, I, F, B, Q, z, H, Be, vs = (Be = class {
294
- constructor(e = {}) {
295
- j(this, y);
291
+ var p, E, A, T, q, Q, R, F, Qe, fn = (Qe = class {
292
+ constructor(t = {}) {
293
+ j(this, p);
296
294
  j(this, E);
297
- j(this, I);
298
- j(this, F);
299
- j(this, B);
295
+ j(this, A);
296
+ j(this, T);
297
+ j(this, q);
300
298
  j(this, Q);
301
- j(this, z);
302
- j(this, H);
303
- b(this, y, e.queryCache || new xs()), b(this, E, e.mutationCache || new ys()), b(this, I, e.defaultOptions || {}), b(this, F, /* @__PURE__ */ new Map()), b(this, B, /* @__PURE__ */ new Map()), b(this, Q, 0);
299
+ j(this, R);
300
+ j(this, F);
301
+ y(this, p, t.queryCache || new un()), y(this, E, t.mutationCache || new dn()), y(this, A, t.defaultOptions || {}), y(this, T, /* @__PURE__ */ new Map()), y(this, q, /* @__PURE__ */ new Map()), y(this, Q, 0);
304
302
  }
305
303
  mount() {
306
- J(this, Q)._++, c(this, Q) === 1 && (b(this, z, Mt.subscribe(async (e) => {
307
- e && (await this.resumePausedMutations(), c(this, y).onFocus());
308
- })), b(this, H, Ne.subscribe(async (e) => {
309
- e && (await this.resumePausedMutations(), c(this, y).onOnline());
304
+ _(this, Q)._++, l(this, Q) === 1 && (y(this, R, jt.subscribe(async (t) => {
305
+ t && (await this.resumePausedMutations(), l(this, p).onFocus());
306
+ })), y(this, F, ye.subscribe(async (t) => {
307
+ t && (await this.resumePausedMutations(), l(this, p).onOnline());
310
308
  })));
311
309
  }
312
310
  unmount() {
313
- var e, t;
314
- J(this, Q)._--, c(this, Q) === 0 && ((e = c(this, z)) == null || e.call(this), b(this, z, void 0), (t = c(this, H)) == null || t.call(this), b(this, H, void 0));
311
+ var t, e;
312
+ _(this, Q)._--, l(this, Q) === 0 && ((t = l(this, R)) == null || t.call(this), y(this, R, void 0), (e = l(this, F)) == null || e.call(this), y(this, F, void 0));
315
313
  }
316
- isFetching(e) {
317
- return c(this, y).findAll({ ...e, fetchStatus: "fetching" }).length;
314
+ isFetching(t) {
315
+ return l(this, p).findAll({ ...t, fetchStatus: "fetching" }).length;
318
316
  }
319
- isMutating(e) {
320
- return c(this, E).findAll({ ...e, status: "pending" }).length;
317
+ isMutating(t) {
318
+ return l(this, E).findAll({ ...t, status: "pending" }).length;
321
319
  }
322
- getQueryData(e) {
323
- var s;
324
- const t = this.defaultQueryOptions({ queryKey: e });
325
- return (s = c(this, y).get(t.queryHash)) == null ? void 0 : s.state.data;
320
+ getQueryData(t) {
321
+ var n;
322
+ const e = this.defaultQueryOptions({ queryKey: t });
323
+ return (n = l(this, p).get(e.queryHash)) == null ? void 0 : n.state.data;
326
324
  }
327
- ensureQueryData(e) {
328
- const t = this.defaultQueryOptions(e), s = c(this, y).build(this, t), r = s.state.data;
329
- return r === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && s.isStaleByTime(Pe(t.staleTime, s)) && this.prefetchQuery(t), Promise.resolve(r));
325
+ ensureQueryData(t) {
326
+ const e = this.defaultQueryOptions(t), n = l(this, p).build(this, e), s = n.state.data;
327
+ return s === void 0 ? this.fetchQuery(t) : (t.revalidateIfStale && n.isStaleByTime(ve(e.staleTime, n)) && this.prefetchQuery(e), Promise.resolve(s));
330
328
  }
331
- getQueriesData(e) {
332
- return c(this, y).findAll(e).map(({ queryKey: t, state: s }) => {
333
- const r = s.data;
334
- return [t, r];
329
+ getQueriesData(t) {
330
+ return l(this, p).findAll(t).map(({ queryKey: e, state: n }) => {
331
+ const s = n.data;
332
+ return [e, s];
335
333
  });
336
334
  }
337
- setQueryData(e, t, s) {
338
- const r = this.defaultQueryOptions({ queryKey: e }), a = c(this, y).get(
339
- r.queryHash
340
- ), i = a == null ? void 0 : a.state.data, o = Ot(t, i);
341
- if (o !== void 0)
342
- return c(this, y).build(this, r).setData(o, { ...s, manual: !0 });
335
+ setQueryData(t, e, n) {
336
+ const s = this.defaultQueryOptions({ queryKey: t }), a = l(this, p).get(
337
+ s.queryHash
338
+ ), o = a == null ? void 0 : a.state.data, i = wt(e, o);
339
+ if (i !== void 0)
340
+ return l(this, p).build(this, s).setData(i, { ...n, manual: !0 });
343
341
  }
344
- setQueriesData(e, t, s) {
342
+ setQueriesData(t, e, n) {
345
343
  return w.batch(
346
- () => c(this, y).findAll(e).map(({ queryKey: r }) => [
347
- r,
348
- this.setQueryData(r, t, s)
344
+ () => l(this, p).findAll(t).map(({ queryKey: s }) => [
345
+ s,
346
+ this.setQueryData(s, e, n)
349
347
  ])
350
348
  );
351
349
  }
352
- getQueryState(e) {
353
- var s;
354
- const t = this.defaultQueryOptions({ queryKey: e });
355
- return (s = c(this, y).get(
356
- t.queryHash
357
- )) == null ? void 0 : s.state;
350
+ getQueryState(t) {
351
+ var n;
352
+ const e = this.defaultQueryOptions({ queryKey: t });
353
+ return (n = l(this, p).get(
354
+ e.queryHash
355
+ )) == null ? void 0 : n.state;
358
356
  }
359
- removeQueries(e) {
360
- const t = c(this, y);
357
+ removeQueries(t) {
358
+ const e = l(this, p);
361
359
  w.batch(() => {
362
- t.findAll(e).forEach((s) => {
363
- t.remove(s);
360
+ e.findAll(t).forEach((n) => {
361
+ e.remove(n);
364
362
  });
365
363
  });
366
364
  }
367
- resetQueries(e, t) {
368
- const s = c(this, y), r = {
365
+ resetQueries(t, e) {
366
+ const n = l(this, p), s = {
369
367
  type: "active",
370
- ...e
368
+ ...t
371
369
  };
372
- return w.batch(() => (s.findAll(e).forEach((a) => {
370
+ return w.batch(() => (n.findAll(t).forEach((a) => {
373
371
  a.reset();
374
- }), this.refetchQueries(r, t)));
372
+ }), this.refetchQueries(s, e)));
375
373
  }
376
- cancelQueries(e, t = {}) {
377
- const s = { revert: !0, ...t }, r = w.batch(
378
- () => c(this, y).findAll(e).map((a) => a.cancel(s))
374
+ cancelQueries(t, e = {}) {
375
+ const n = { revert: !0, ...e }, s = w.batch(
376
+ () => l(this, p).findAll(t).map((a) => a.cancel(n))
379
377
  );
380
- return Promise.all(r).then(D).catch(D);
378
+ return Promise.all(s).then(N).catch(N);
381
379
  }
382
- invalidateQueries(e, t = {}) {
380
+ invalidateQueries(t, e = {}) {
383
381
  return w.batch(() => {
384
- if (c(this, y).findAll(e).forEach((r) => {
385
- r.invalidate();
386
- }), (e == null ? void 0 : e.refetchType) === "none")
382
+ if (l(this, p).findAll(t).forEach((s) => {
383
+ s.invalidate();
384
+ }), (t == null ? void 0 : t.refetchType) === "none")
387
385
  return Promise.resolve();
388
- const s = {
389
- ...e,
390
- type: (e == null ? void 0 : e.refetchType) ?? (e == null ? void 0 : e.type) ?? "active"
386
+ const n = {
387
+ ...t,
388
+ type: (t == null ? void 0 : t.refetchType) ?? (t == null ? void 0 : t.type) ?? "active"
391
389
  };
392
- return this.refetchQueries(s, t);
390
+ return this.refetchQueries(n, e);
393
391
  });
394
392
  }
395
- refetchQueries(e, t = {}) {
396
- const s = {
397
- ...t,
398
- cancelRefetch: t.cancelRefetch ?? !0
399
- }, r = w.batch(
400
- () => c(this, y).findAll(e).filter((a) => !a.isDisabled()).map((a) => {
401
- let i = a.fetch(void 0, s);
402
- return s.throwOnError || (i = i.catch(D)), a.state.fetchStatus === "paused" ? Promise.resolve() : i;
393
+ refetchQueries(t, e = {}) {
394
+ const n = {
395
+ ...e,
396
+ cancelRefetch: e.cancelRefetch ?? !0
397
+ }, s = w.batch(
398
+ () => l(this, p).findAll(t).filter((a) => !a.isDisabled()).map((a) => {
399
+ let o = a.fetch(void 0, n);
400
+ return n.throwOnError || (o = o.catch(N)), a.state.fetchStatus === "paused" ? Promise.resolve() : o;
403
401
  })
404
402
  );
405
- return Promise.all(r).then(D);
403
+ return Promise.all(s).then(N);
406
404
  }
407
- fetchQuery(e) {
408
- const t = this.defaultQueryOptions(e);
409
- t.retry === void 0 && (t.retry = !1);
410
- const s = c(this, y).build(this, t);
411
- return s.isStaleByTime(
412
- Pe(t.staleTime, s)
413
- ) ? s.fetch(t) : Promise.resolve(s.state.data);
405
+ fetchQuery(t) {
406
+ const e = this.defaultQueryOptions(t);
407
+ e.retry === void 0 && (e.retry = !1);
408
+ const n = l(this, p).build(this, e);
409
+ return n.isStaleByTime(
410
+ ve(e.staleTime, n)
411
+ ) ? n.fetch(e) : Promise.resolve(n.state.data);
414
412
  }
415
- prefetchQuery(e) {
416
- return this.fetchQuery(e).then(D).catch(D);
413
+ prefetchQuery(t) {
414
+ return this.fetchQuery(t).then(N).catch(N);
417
415
  }
418
- fetchInfiniteQuery(e) {
419
- return e.behavior = Ae(e.pages), this.fetchQuery(e);
416
+ fetchInfiniteQuery(t) {
417
+ return t.behavior = Se(t.pages), this.fetchQuery(t);
420
418
  }
421
- prefetchInfiniteQuery(e) {
422
- return this.fetchInfiniteQuery(e).then(D).catch(D);
419
+ prefetchInfiniteQuery(t) {
420
+ return this.fetchInfiniteQuery(t).then(N).catch(N);
423
421
  }
424
- ensureInfiniteQueryData(e) {
425
- return e.behavior = Ae(e.pages), this.ensureQueryData(e);
422
+ ensureInfiniteQueryData(t) {
423
+ return t.behavior = Se(t.pages), this.ensureQueryData(t);
426
424
  }
427
425
  resumePausedMutations() {
428
- return Ne.isOnline() ? c(this, E).resumePausedMutations() : Promise.resolve();
426
+ return ye.isOnline() ? l(this, E).resumePausedMutations() : Promise.resolve();
429
427
  }
430
428
  getQueryCache() {
431
- return c(this, y);
429
+ return l(this, p);
432
430
  }
433
431
  getMutationCache() {
434
- return c(this, E);
432
+ return l(this, E);
435
433
  }
436
434
  getDefaultOptions() {
437
- return c(this, I);
435
+ return l(this, A);
438
436
  }
439
- setDefaultOptions(e) {
440
- b(this, I, e);
437
+ setDefaultOptions(t) {
438
+ y(this, A, t);
441
439
  }
442
- setQueryDefaults(e, t) {
443
- c(this, F).set(Se(e), {
444
- queryKey: e,
445
- defaultOptions: t
440
+ setQueryDefaults(t, e) {
441
+ l(this, T).set(be(t), {
442
+ queryKey: t,
443
+ defaultOptions: e
446
444
  });
447
445
  }
448
- getQueryDefaults(e) {
449
- const t = [...c(this, F).values()], s = {};
450
- return t.forEach((r) => {
451
- Me(e, r.queryKey) && Object.assign(s, r.defaultOptions);
452
- }), s;
446
+ getQueryDefaults(t) {
447
+ const e = [...l(this, T).values()], n = {};
448
+ return e.forEach((s) => {
449
+ je(t, s.queryKey) && Object.assign(n, s.defaultOptions);
450
+ }), n;
453
451
  }
454
- setMutationDefaults(e, t) {
455
- c(this, B).set(Se(e), {
456
- mutationKey: e,
457
- defaultOptions: t
452
+ setMutationDefaults(t, e) {
453
+ l(this, q).set(be(t), {
454
+ mutationKey: t,
455
+ defaultOptions: e
458
456
  });
459
457
  }
460
- getMutationDefaults(e) {
461
- const t = [...c(this, B).values()];
462
- let s = {};
463
- return t.forEach((r) => {
464
- Me(e, r.mutationKey) && (s = { ...s, ...r.defaultOptions });
465
- }), s;
466
- }
467
- defaultQueryOptions(e) {
468
- if (e._defaulted)
469
- return e;
470
- const t = {
471
- ...c(this, I).queries,
472
- ...this.getQueryDefaults(e.queryKey),
473
- ...e,
458
+ getMutationDefaults(t) {
459
+ const e = [...l(this, q).values()];
460
+ let n = {};
461
+ return e.forEach((s) => {
462
+ je(t, s.mutationKey) && (n = { ...n, ...s.defaultOptions });
463
+ }), n;
464
+ }
465
+ defaultQueryOptions(t) {
466
+ if (t._defaulted)
467
+ return t;
468
+ const e = {
469
+ ...l(this, A).queries,
470
+ ...this.getQueryDefaults(t.queryKey),
471
+ ...t,
474
472
  _defaulted: !0
475
473
  };
476
- return t.queryHash || (t.queryHash = $e(
477
- t.queryKey,
478
- t
479
- )), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.queryFn === Dt && (t.enabled = !1), t;
480
- }
481
- defaultMutationOptions(e) {
482
- return e != null && e._defaulted ? e : {
483
- ...c(this, I).mutations,
484
- ...(e == null ? void 0 : e.mutationKey) && this.getMutationDefaults(e.mutationKey),
485
- ...e,
474
+ return e.queryHash || (e.queryHash = ze(
475
+ e.queryKey,
476
+ e
477
+ )), 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;
478
+ }
479
+ defaultMutationOptions(t) {
480
+ return t != null && t._defaulted ? t : {
481
+ ...l(this, A).mutations,
482
+ ...(t == null ? void 0 : t.mutationKey) && this.getMutationDefaults(t.mutationKey),
483
+ ...t,
486
484
  _defaulted: !0
487
485
  };
488
486
  }
489
487
  clear() {
490
- c(this, y).clear(), c(this, E).clear();
488
+ l(this, p).clear(), l(this, E).clear();
491
489
  }
492
- }, y = new WeakMap(), E = new WeakMap(), I = new WeakMap(), F = new WeakMap(), B = new WeakMap(), Q = new WeakMap(), z = new WeakMap(), H = new WeakMap(), Be);
493
- function js(e) {
494
- return e;
490
+ }, p = new WeakMap(), E = new WeakMap(), A = new WeakMap(), T = new WeakMap(), q = new WeakMap(), Q = new WeakMap(), R = new WeakMap(), F = new WeakMap(), Qe);
491
+ function gn(t) {
492
+ return t;
495
493
  }
496
- function Ie(e, t, s) {
497
- var u, l;
498
- if (typeof t != "object" || t === null)
494
+ function De(t, e, n) {
495
+ var d, c;
496
+ if (typeof e != "object" || e === null)
499
497
  return;
500
- const r = e.getMutationCache(), a = e.getQueryCache(), i = ((u = s == null ? void 0 : s.defaultOptions) == null ? void 0 : u.deserializeData) ?? ((l = e.getDefaultOptions().hydrate) == null ? void 0 : l.deserializeData) ?? js, o = t.mutations || [], d = t.queries || [];
501
- o.forEach(({ state: f, ...g }) => {
502
- var h, p;
503
- r.build(
504
- e,
498
+ const s = t.getMutationCache(), a = t.getQueryCache(), o = ((d = n == null ? void 0 : n.defaultOptions) == null ? void 0 : d.deserializeData) ?? ((c = t.getDefaultOptions().hydrate) == null ? void 0 : c.deserializeData) ?? gn, i = e.mutations || [], u = e.queries || [];
499
+ i.forEach(({ state: g, ...f }) => {
500
+ var h, x;
501
+ s.build(
502
+ t,
505
503
  {
506
- ...(h = e.getDefaultOptions().hydrate) == null ? void 0 : h.mutations,
507
- ...(p = s == null ? void 0 : s.defaultOptions) == null ? void 0 : p.mutations,
508
- ...g
504
+ ...(h = t.getDefaultOptions().hydrate) == null ? void 0 : h.mutations,
505
+ ...(x = n == null ? void 0 : n.defaultOptions) == null ? void 0 : x.mutations,
506
+ ...f
509
507
  },
510
- f
508
+ g
511
509
  );
512
- }), d.forEach(({ queryKey: f, state: g, queryHash: h, meta: p, promise: x }) => {
513
- var X, L;
510
+ }), u.forEach(({ queryKey: g, state: f, queryHash: h, meta: x, promise: v }) => {
511
+ var X, H;
514
512
  let m = a.get(h);
515
- const C = g.data === void 0 ? g.data : i(g.data);
513
+ const C = f.data === void 0 ? f.data : o(f.data);
516
514
  if (m) {
517
- if (m.state.dataUpdatedAt < g.dataUpdatedAt) {
518
- const { fetchStatus: v, ...P } = g;
515
+ if (m.state.dataUpdatedAt < f.dataUpdatedAt) {
516
+ const { fetchStatus: b, ...k } = f;
519
517
  m.setState({
520
- ...P,
518
+ ...k,
521
519
  data: C
522
520
  });
523
521
  }
524
522
  } else
525
523
  m = a.build(
526
- e,
524
+ t,
527
525
  {
528
- ...(X = e.getDefaultOptions().hydrate) == null ? void 0 : X.queries,
529
- ...(L = s == null ? void 0 : s.defaultOptions) == null ? void 0 : L.queries,
530
- queryKey: f,
526
+ ...(X = t.getDefaultOptions().hydrate) == null ? void 0 : X.queries,
527
+ ...(H = n == null ? void 0 : n.defaultOptions) == null ? void 0 : H.queries,
528
+ queryKey: g,
531
529
  queryHash: h,
532
- meta: p
530
+ meta: x
533
531
  },
534
532
  // Reset fetch status to idle to avoid
535
533
  // query being stuck in fetching state upon hydration
536
534
  {
537
- ...g,
535
+ ...f,
538
536
  data: C,
539
537
  fetchStatus: "idle"
540
538
  }
541
539
  );
542
- if (x) {
543
- const v = Promise.resolve(x).then(i);
544
- m.fetch(void 0, { initialPromise: v });
540
+ if (v) {
541
+ const b = Promise.resolve(v).then(o);
542
+ m.fetch(void 0, { initialPromise: b });
545
543
  }
546
544
  });
547
545
  }
548
- var ws = ({
549
- children: e,
550
- options: t = {},
551
- state: s,
552
- queryClient: r
546
+ var mn = ({
547
+ children: t,
548
+ options: e = {},
549
+ state: n,
550
+ queryClient: s
553
551
  }) => {
554
- const a = At(r), [i, o] = $.useState(), d = $.useRef(t);
555
- return d.current = t, $.useMemo(() => {
556
- if (s) {
557
- if (typeof s != "object")
552
+ const a = Ct(s), [o, i] = K.useState(), u = K.useRef(e);
553
+ return u.current = e, K.useMemo(() => {
554
+ if (n) {
555
+ if (typeof n != "object")
558
556
  return;
559
- const u = a.getQueryCache(), l = s.queries || [], f = [], g = [];
560
- for (const h of l) {
561
- const p = u.get(h.queryHash);
562
- if (!p)
563
- f.push(h);
557
+ const d = a.getQueryCache(), c = n.queries || [], g = [], f = [];
558
+ for (const h of c) {
559
+ const x = d.get(h.queryHash);
560
+ if (!x)
561
+ g.push(h);
564
562
  else {
565
- const x = h.state.dataUpdatedAt > p.state.dataUpdatedAt, m = i == null ? void 0 : i.find(
563
+ const v = h.state.dataUpdatedAt > x.state.dataUpdatedAt, m = o == null ? void 0 : o.find(
566
564
  (C) => C.queryHash === h.queryHash
567
565
  );
568
- x && (!m || h.state.dataUpdatedAt > m.state.dataUpdatedAt) && g.push(h);
566
+ v && (!m || h.state.dataUpdatedAt > m.state.dataUpdatedAt) && f.push(h);
569
567
  }
570
568
  }
571
- f.length > 0 && Ie(a, { queries: f }, d.current), g.length > 0 && o(
572
- (h) => h ? [...h, ...g] : g
569
+ g.length > 0 && De(a, { queries: g }, u.current), f.length > 0 && i(
570
+ (h) => h ? [...h, ...f] : f
573
571
  );
574
572
  }
575
- }, [a, i, s]), $.useEffect(() => {
576
- i && (Ie(a, { queries: i }, d.current), o(void 0));
577
- }, [a, i]), e;
573
+ }, [a, o, n]), K.useEffect(() => {
574
+ o && (De(a, { queries: o }, u.current), i(void 0));
575
+ }, [a, o]), t;
578
576
  };
579
- function ks({ error: e }) {
580
- return /* @__PURE__ */ n.jsx(Le, { error: e });
577
+ function pn({ error: t }) {
578
+ return /* @__PURE__ */ r.jsx(Re, { error: t });
581
579
  }
582
580
  /**
583
581
  * react-router v7.1.3
@@ -589,453 +587,214 @@ function ks({ error: e }) {
589
587
  *
590
588
  * @license MIT
591
589
  */
592
- function Cs(e) {
593
- return /* @__PURE__ */ $.createElement(mt, { flushSync: Lt.flushSync, ...e });
590
+ function xn(t) {
591
+ return /* @__PURE__ */ K.createElement(ct, { flushSync: qt.flushSync, ...t });
594
592
  }
595
- const Ns = new vs({
593
+ const ae = ce({ stagger: !1 }), yn = new fn({
596
594
  defaultOptions: {
597
595
  queries: {
598
596
  staleTime: 1e3 * 60 * 5
599
597
  }
600
598
  }
601
- }), Ps = ({
602
- router: e,
603
- hydrate: t = !1
604
- }) => /* @__PURE__ */ n.jsx(Ve, { children: /* @__PURE__ */ n.jsx(Ze, { client: Ns, children: /* @__PURE__ */ n.jsx(ws, { state: t ? window.DATA : void 0, children: /* @__PURE__ */ n.jsx(ze, { children: /* @__PURE__ */ n.jsx(le.Provider, { value: { stagger: !t }, children: /* @__PURE__ */ n.jsx(Cs, { router: e }) }) }) }) }) }), Ss = ({
605
- router: e,
606
- context: t,
607
- queryClient: s,
608
- helmetContext: r
609
- }) => /* @__PURE__ */ n.jsx(Ve, { children: /* @__PURE__ */ n.jsx(Ze, { client: s, children: /* @__PURE__ */ n.jsx(ze, { context: r, children: /* @__PURE__ */ n.jsx(pt, { router: e, context: t }) }) }) });
610
- var Z = { exports: {} }, Ms = Z.exports, Qe;
611
- function Os() {
612
- return Qe || (Qe = 1, function(e, t) {
613
- (function(s, r) {
614
- r(t, qt);
615
- })(Ms, function(s, r) {
599
+ }), vn = ({
600
+ router: t,
601
+ hydrate: e = !1
602
+ }) => /* @__PURE__ */ r.jsx(Le, { children: /* @__PURE__ */ r.jsx(Be, { client: yn, children: /* @__PURE__ */ r.jsx(mn, { state: e ? window.DATA : void 0, children: /* @__PURE__ */ r.jsx(Ie, { children: /* @__PURE__ */ r.jsx(ae.Provider, { value: { stagger: !e }, children: /* @__PURE__ */ r.jsx(xn, { router: t }) }) }) }) }) }), bn = ({
603
+ router: t,
604
+ context: e,
605
+ queryClient: n,
606
+ helmetContext: s
607
+ }) => /* @__PURE__ */ r.jsx(Le, { children: /* @__PURE__ */ r.jsx(Be, { client: n, children: /* @__PURE__ */ r.jsx(Ie, { context: s, children: /* @__PURE__ */ r.jsx(ut, { router: t, context: e }) }) }) });
608
+ var $ = { exports: {} }, jn = $.exports, Me;
609
+ function wn() {
610
+ return Me || (Me = 1, function(t, e) {
611
+ (function(n, s) {
612
+ s(e, Ot);
613
+ })(jn, function(n, s) {
616
614
  const a = {
617
615
  delay: 500,
618
616
  minDuration: 200,
619
617
  ssr: !0
620
618
  };
621
- function i() {
622
- const [d, u] = r.useState(!0);
623
- return r.useEffect(() => {
624
- u(!1);
625
- }, []), d;
619
+ function o() {
620
+ const [u, d] = s.useState(!0);
621
+ return s.useEffect(() => {
622
+ d(!1);
623
+ }, []), u;
626
624
  }
627
- function o(d, u) {
628
- u = Object.assign({}, a, u);
629
- const l = i() && u.ssr, f = l && d ? "DISPLAY" : "IDLE", [g, h] = r.useState(f), p = r.useRef(null);
630
- return r.useEffect(() => {
631
- if (d && (g === "IDLE" || l)) {
632
- clearTimeout(p.current);
633
- const x = l ? 0 : u.delay;
634
- p.current = setTimeout(() => {
635
- if (!d)
625
+ function i(u, d) {
626
+ d = Object.assign({}, a, d);
627
+ const c = o() && d.ssr, g = c && u ? "DISPLAY" : "IDLE", [f, h] = s.useState(g), x = s.useRef(null);
628
+ return s.useEffect(() => {
629
+ if (u && (f === "IDLE" || c)) {
630
+ clearTimeout(x.current);
631
+ const v = c ? 0 : d.delay;
632
+ x.current = setTimeout(() => {
633
+ if (!u)
636
634
  return h("IDLE");
637
- p.current = setTimeout(() => {
635
+ x.current = setTimeout(() => {
638
636
  h("EXPIRE");
639
- }, u.minDuration), h("DISPLAY");
640
- }, x), l || h("DELAY");
637
+ }, d.minDuration), h("DISPLAY");
638
+ }, v), c || h("DELAY");
641
639
  }
642
- !d && g !== "DISPLAY" && (clearTimeout(p.current), h("IDLE"));
643
- }, [d, g, u.delay, u.minDuration, l]), r.useEffect(() => () => clearTimeout(p.current), []), g === "DISPLAY" || g === "EXPIRE";
640
+ !u && f !== "DISPLAY" && (clearTimeout(x.current), h("IDLE"));
641
+ }, [u, f, d.delay, d.minDuration, c]), s.useEffect(() => () => clearTimeout(x.current), []), f === "DISPLAY" || f === "EXPIRE";
644
642
  }
645
- s.defaultOptions = a, s.useSpinDelay = o;
643
+ n.defaultOptions = a, n.useSpinDelay = i;
646
644
  });
647
- }(Z, Z.exports)), Z.exports;
645
+ }($, $.exports)), $.exports;
648
646
  }
649
- var Ds = Os();
650
- const As = {
651
- green: "bg-green-400 dark:bg-green-800",
652
- blue: "bg-sky-400 dark:bg-sky-800",
653
- yellow: "bg-yellow-400 dark:bg-yellow-800",
654
- red: "bg-red-400 dark:bg-red-800",
655
- purple: "bg-purple-400 dark:bg-purple-600",
656
- indigo: "bg-indigo-400 dark:bg-indigo-600",
657
- gray: "bg-gray-400 dark:bg-gray-600"
658
- }, Es = {
659
- green: "text-green-500 dark:text-green-600",
660
- blue: "text-sky-400 dark:text-sky-600",
661
- yellow: "text-yellow-400 dark:text-yellow-600",
662
- red: "text-red-400 dark:text-red-600",
663
- purple: "text-purple-400 dark:text-purple-600",
664
- indigo: "text-indigo-400 dark:text-indigo-600",
665
- gray: "text-gray-400 dark:text-gray-600"
666
- }, ie = ({
667
- color: e,
668
- label: t,
669
- className: s,
670
- invert: r
671
- }) => /* @__PURE__ */ n.jsx(
672
- "span",
673
- {
674
- className: O(
675
- "mt-0.5 flex items-center duration-200 transition-opacity text-center uppercase font-mono text-[0.65rem] font-bold rounded text-background dark:text-zinc-50 h-4 px-1",
676
- r ? Es[e] : As[e],
677
- s
678
- ),
679
- children: t
680
- }
681
- ), Is = ({
682
- category: e,
683
- onRequestClose: t
684
- }) => {
685
- var h, p;
686
- const s = Et(e), [r, a] = T(!1), i = e.collapsible ?? !0, o = e.collapsed ?? !0, d = !!(!i || !o || s), [u, l] = T(d), f = xt(((h = e.link) == null ? void 0 : h.id) ?? "");
687
- R(() => {
688
- s && l(!0);
689
- }, [s]);
690
- const g = i && /* @__PURE__ */ n.jsx(
691
- "button",
692
- {
693
- type: "button",
694
- onClick: (x) => {
695
- x.preventDefault(), l((m) => !m), a(!0);
696
- },
697
- children: /* @__PURE__ */ n.jsx(
698
- Kt,
699
- {
700
- size: 16,
701
- className: O(
702
- r && "transition",
703
- "shrink-0 group-data-[state=open]:rotate-90"
704
- )
705
- }
706
- )
707
- }
708
- );
709
- return /* @__PURE__ */ n.jsxs(
710
- re.Root,
711
- {
712
- className: "flex flex-col",
713
- defaultOpen: d,
714
- open: u,
715
- onOpenChange: () => l(!0),
716
- children: [
717
- /* @__PURE__ */ n.jsx(re.Trigger, { className: "group", asChild: !0, disabled: !i, children: /* @__PURE__ */ n.jsxs(
718
- "div",
719
- {
720
- onClick: () => a(!0),
721
- className: U({
722
- isActive: !1,
723
- className: [
724
- "text-start font-medium",
725
- i ? "cursor-pointer" : "cursor-default hover:bg-transparent"
726
- ]
727
- }),
728
- children: [
729
- e.icon && /* @__PURE__ */ n.jsx(
730
- e.icon,
731
- {
732
- size: 16,
733
- className: O("align-[-0.125em] ", f && "text-primary")
734
- }
735
- ),
736
- ((p = e.link) == null ? void 0 : p.type) === "doc" ? /* @__PURE__ */ n.jsx(
737
- se,
738
- {
739
- to: W(e.link.id),
740
- className: "flex-1",
741
- onClick: () => {
742
- f && !u && l(!0);
743
- },
744
- children: /* @__PURE__ */ n.jsxs(
745
- "div",
746
- {
747
- className: O(
748
- "flex items-center gap-2 justify-between w-full",
749
- f ? "text-primary" : "text-foreground/80"
750
- ),
751
- children: [
752
- /* @__PURE__ */ n.jsx("div", { className: "truncate", children: e.label }),
753
- g
754
- ]
755
- }
756
- )
757
- }
758
- ) : /* @__PURE__ */ n.jsxs("div", { className: "flex items-center justify-between w-full", children: [
759
- /* @__PURE__ */ n.jsx("div", { className: "flex gap-2 truncate w-full", children: e.label }),
760
- g
761
- ] })
762
- ]
763
- }
764
- ) }),
765
- /* @__PURE__ */ n.jsx(
766
- re.Content,
767
- {
768
- className: O(
769
- // CollapsibleContent class is used to animate and it should only be applied when the user has triggered the toggle
770
- r && "CollapsibleContent",
771
- "ms-6 my-1"
772
- ),
773
- children: /* @__PURE__ */ n.jsx("ul", { className: "relative after:absolute after:-left-[--padding-nav-item] after:translate-x-[1.5px] after:top-0 after:bottom-0 after:w-px after:bg-border", children: e.items.map((x) => /* @__PURE__ */ n.jsx(
774
- de,
775
- {
776
- onRequestClose: t,
777
- item: x
778
- },
779
- ("id" in x ? x.id : "") + ("href" in x ? x.href : "") + x.label
780
- )) })
781
- }
782
- )
783
- ]
784
- }
785
- );
786
- }, U = es(
787
- "flex items-center gap-2 px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent",
788
- {
789
- variants: {
790
- isActive: {
791
- true: "text-primary font-medium",
792
- false: "text-foreground/80"
793
- },
794
- isMuted: {
795
- true: "text-foreground/30",
796
- false: ""
797
- }
798
- },
799
- defaultVariants: {
800
- isActive: !1
801
- }
802
- }
803
- ), st = "data-anchor", de = ({
804
- item: e,
805
- onRequestClose: t
806
- }) => {
807
- var a, i;
808
- const { activeAnchor: s } = ye(), [r] = yt();
809
- switch (e.type) {
810
- case "category":
811
- return /* @__PURE__ */ n.jsx(Is, { category: e, onRequestClose: t });
812
- case "doc":
813
- return /* @__PURE__ */ n.jsxs(
814
- se,
815
- {
816
- className: ({ isActive: o }) => U({ isActive: o }),
817
- to: W(e.id),
818
- onClick: t,
819
- children: [
820
- e.icon && /* @__PURE__ */ n.jsx(e.icon, { size: 16, className: "align-[-0.125em]" }),
821
- e.badge ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
822
- /* @__PURE__ */ n.jsx("span", { className: "truncate flex-1", title: e.label, children: e.label }),
823
- /* @__PURE__ */ n.jsx(ie, { ...e.badge })
824
- ] }) : e.label
825
- ]
826
- }
827
- );
828
- case "link":
829
- return e.href.startsWith("#") ? /* @__PURE__ */ n.jsx(
830
- ss,
831
- {
832
- to: { hash: e.href, search: r.toString() },
833
- [st]: e.href.slice(1),
834
- className: U({
835
- isActive: e.href.slice(1) === s,
836
- className: ((a = e.badge) == null ? void 0 : a.placement) !== "start" && "justify-between"
837
- }),
838
- onClick: t,
839
- children: e.badge ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
840
- /* @__PURE__ */ n.jsx("span", { className: "truncate", title: e.label, children: e.label }),
841
- /* @__PURE__ */ n.jsx(ie, { ...e.badge })
842
- ] }) : /* @__PURE__ */ n.jsx("span", { className: "break-all", children: e.label })
843
- }
844
- ) : e.href.startsWith("http") ? /* @__PURE__ */ n.jsxs(
845
- "a",
846
- {
847
- className: U(),
848
- href: e.href,
849
- target: "_blank",
850
- rel: "noopener noreferrer",
851
- onClick: t,
852
- children: [
853
- /* @__PURE__ */ n.jsx("span", { className: "whitespace-normal", children: e.label }),
854
- /* @__PURE__ */ n.jsx("span", { className: "whitespace-nowrap", children: /* @__PURE__ */ n.jsx($t, { className: "inline -translate-y-0.5", size: 12 }) })
855
- ]
856
- }
857
- ) : /* @__PURE__ */ n.jsx(
858
- se,
859
- {
860
- className: U({
861
- className: ((i = e.badge) == null ? void 0 : i.placement) !== "start" && "justify-between"
862
- }),
863
- to: e.href,
864
- children: e.badge ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
865
- /* @__PURE__ */ n.jsx("span", { className: "truncate", title: e.label, children: e.label }),
866
- /* @__PURE__ */ n.jsx(ie, { ...e.badge })
867
- ] }) : /* @__PURE__ */ n.jsx("span", { className: "break-all", children: e.label })
868
- }
869
- );
870
- }
871
- }, Qs = (e, t = { block: "center" }) => {
872
- if (!e) return;
873
- const s = e.getBoundingClientRect();
874
- s.top >= 0 && s.left >= 0 && s.bottom <= (window.innerHeight || document.documentElement.clientHeight) && s.right <= (window.innerWidth || document.documentElement.clientWidth) || e.scrollIntoView(t);
875
- }, Ts = () => {
876
- const e = he(), { setActiveAnchor: t } = ye();
877
- R(() => {
878
- if (!e.hash) return;
879
- const s = decodeURIComponent(e.hash.split("/")[0].slice(1)), r = () => {
880
- const a = document.getElementById(s), i = document.querySelector(`[${st}="${s}"]`);
881
- return a ? (a.scrollIntoView(), Qs(i), requestIdleCallback(() => t(s)), !0) : !1;
882
- };
883
- if (!r()) {
884
- const a = new MutationObserver((i, o) => {
885
- r() && o.disconnect();
886
- });
887
- return a.observe(document.body, { childList: !0, subtree: !0 }), () => a.disconnect();
888
- }
889
- }, [e.hash, t]);
890
- }, qs = () => {
891
- const e = he(), t = me(e.pathname);
892
- R(() => {
893
- t.current !== e.pathname && (window.scrollTo(0, 0), t.current = e.pathname);
894
- }, [e.pathname]);
647
+ var Pn = wn();
648
+ const Cn = () => {
649
+ const t = Te(), e = ue(t.pathname);
650
+ U(() => {
651
+ e.current !== t.pathname && (window.scrollTo(0, 0), e.current = t.pathname);
652
+ }, [t.pathname]);
895
653
  };
896
- function Rs({
897
- className: e,
898
- ...t
654
+ function Sn({
655
+ className: t,
656
+ ...e
899
657
  }) {
900
- return /* @__PURE__ */ n.jsx(
658
+ return /* @__PURE__ */ r.jsx(
901
659
  "div",
902
660
  {
903
- className: O("animate-pulse rounded-md bg-muted", e),
904
- ...t
661
+ className: B("animate-pulse rounded-md bg-muted", t),
662
+ ...e
905
663
  }
906
664
  );
907
665
  }
908
- const Fs = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems == "function", Bs = (e) => "getRoutes" in e && typeof e.getRoutes == "function", zs = (e) => "renderSearch" in e && typeof e.renderSearch == "function", Hs = (e) => "initialize" in e && typeof e.initialize == "function", Ls = (e) => "getHead" in e && typeof e.getHead == "function", Ks = (e) => "getMdxComponents" in e && typeof e.getMdxComponents == "function", $s = (e) => "getIdentities" in e && typeof e.getIdentities == "function", Te = {
666
+ const kn = (t) => "getProfileMenuItems" in t && typeof t.getProfileMenuItems == "function", Dn = (t) => "getRoutes" in t && typeof t.getRoutes == "function", Mn = (t) => "renderSearch" in t && typeof t.renderSearch == "function", Nn = (t) => "initialize" in t && typeof t.initialize == "function", On = (t) => "getHead" in t && typeof t.getHead == "function", En = (t) => "getMdxComponents" in t && typeof t.getMdxComponents == "function", An = (t) => "getIdentities" in t && typeof t.getIdentities == "function", Ne = {
909
667
  info: "bg-blue-500",
910
668
  note: "bg-gray-500",
911
669
  tip: "bg-green-600",
912
670
  caution: "bg-orange-500",
913
671
  danger: "bg-rose-500"
914
- }, Zs = () => {
915
- const { page: e } = q(), [t, s] = T(!0);
916
- if (!(e != null && e.banner) || !t)
917
- return /* @__PURE__ */ n.jsx("style", { children: ":root { --banner-height: 0px; }" });
918
- const r = e.banner.color && e.banner.color in Te ? Te[e.banner.color] : e.banner.color ? void 0 : "bg-primary", a = r ? {} : { backgroundColor: e.banner.color };
919
- return /* @__PURE__ */ n.jsxs(
672
+ }, Qn = () => {
673
+ const { page: t } = I(), [e, n] = z(!0);
674
+ if (!(t != null && t.banner) || !e)
675
+ return /* @__PURE__ */ r.jsx("style", { children: ":root { --banner-height: 0px; }" });
676
+ const s = t.banner.color && t.banner.color in Ne ? Ne[t.banner.color] : t.banner.color ? void 0 : "bg-primary", a = s ? {} : { backgroundColor: t.banner.color };
677
+ return /* @__PURE__ */ r.jsxs(
920
678
  "div",
921
679
  {
922
- className: O(
680
+ className: B(
923
681
  "relative text-primary-foreground text-sm font-medium px-4 py-2 flex gap-2 items-center",
924
- r
682
+ s
925
683
  ),
926
684
  style: a,
927
685
  children: [
928
- /* @__PURE__ */ n.jsx("div", { className: "w-full", children: e.banner.message }),
929
- e.banner.dismissible && /* @__PURE__ */ n.jsx(
686
+ /* @__PURE__ */ r.jsx("div", { className: "w-full", children: t.banner.message }),
687
+ t.banner.dismissible && /* @__PURE__ */ r.jsx(
930
688
  "button",
931
689
  {
932
690
  type: "button",
933
691
  className: "md:absolute md:right-4 -m-1.5 p-1.5 hover:bg-accent-foreground/10 rounded-md",
934
- onClick: () => s(!1),
935
- children: /* @__PURE__ */ n.jsx(Zt, { size: 16 })
692
+ onClick: () => n(!1),
693
+ children: /* @__PURE__ */ r.jsx(Rt, { size: 16 })
936
694
  }
937
695
  )
938
696
  ]
939
697
  }
940
698
  );
941
- }, nt = ({ className: e }) => {
942
- const t = q(), [s, r] = T(!1), a = Rt(() => r(!1), []);
943
- R(() => {
944
- if (s)
699
+ }, We = ({ className: t }) => {
700
+ const e = I(), [n, s] = z(!1), a = Et(() => s(!1), []);
701
+ U(() => {
702
+ if (n)
945
703
  return;
946
- function o(d) {
947
- d.key === "k" && (d.metaKey || d.ctrlKey) && (d.preventDefault(), r(!0));
704
+ function i(u) {
705
+ u.key === "k" && (u.metaKey || u.ctrlKey) && (u.preventDefault(), s(!0));
948
706
  }
949
- return window.addEventListener("keydown", o), () => {
950
- window.removeEventListener("keydown", o);
707
+ return window.addEventListener("keydown", i), () => {
708
+ window.removeEventListener("keydown", i);
951
709
  };
952
- }, [s, r]);
953
- const i = t.plugins.find(zs);
954
- return i ? /* @__PURE__ */ n.jsxs("div", { className: e, children: [
955
- /* @__PURE__ */ n.jsxs(
710
+ }, [n, s]);
711
+ const o = e.plugins.find(Mn);
712
+ return o ? /* @__PURE__ */ r.jsxs("div", { className: t, children: [
713
+ /* @__PURE__ */ r.jsxs(
956
714
  "button",
957
715
  {
958
716
  type: "button",
959
- onClick: () => r(!0),
717
+ onClick: () => s(!0),
960
718
  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",
961
719
  children: [
962
- /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2 flex-grow", children: [
963
- /* @__PURE__ */ n.jsx(Ut, { size: 14 }),
720
+ /* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-2 flex-grow", children: [
721
+ /* @__PURE__ */ r.jsx(Ft, { size: 14 }),
964
722
  "Search"
965
723
  ] }),
966
- /* @__PURE__ */ n.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" })
724
+ /* @__PURE__ */ r.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" })
967
725
  ]
968
726
  }
969
727
  ),
970
- /* @__PURE__ */ n.jsx(pe, { fallback: null, children: i.renderSearch({
971
- isOpen: s,
728
+ /* @__PURE__ */ r.jsx(de, { fallback: null, children: o.renderSearch({
729
+ isOpen: n,
972
730
  onClose: a
973
731
  }) })
974
732
  ] }) : null;
975
- }, rt = () => {
976
- const { resolvedTheme: e, setTheme: t } = gs(), s = e === "dark" ? Vt : Wt;
977
- return /* @__PURE__ */ n.jsx(xe, { children: /* @__PURE__ */ n.jsx(
978
- ce,
733
+ }, Ge = () => {
734
+ const { resolvedTheme: t, setTheme: e } = an(), n = t === "dark" ? zt : Bt;
735
+ return /* @__PURE__ */ r.jsx(
736
+ re,
979
737
  {
980
738
  variant: "ghost",
981
- "aria-label": e === "dark" ? "Switch to light mode" : "Switch to dark mode",
982
- className: "p-2.5 -m-2.5 rounded-full",
983
- onClick: () => t(e === "dark" ? "light" : "dark"),
984
- children: /* @__PURE__ */ n.jsx(s, { size: 18 })
739
+ size: "icon",
740
+ "aria-label": t === "dark" ? "Switch to light mode" : "Switch to dark mode",
741
+ className: B(t ? "opacity-100" : "opacity-0"),
742
+ onClick: () => e(t === "dark" ? "light" : "dark"),
743
+ children: /* @__PURE__ */ r.jsx(n, { size: 18 })
985
744
  }
986
- ) });
987
- }, at = (e) => (t) => t.display === "auth" && e || t.display === "anon" && !e || !t.display || t.display === "always", Us = () => {
988
- const { topNavigation: e } = q(), { isAuthenticated: t } = V();
989
- return e.length <= 1 ? /* @__PURE__ */ n.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ n.jsx(pe, { children: /* @__PURE__ */ n.jsx("nav", { className: "hidden lg:block text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ n.jsx("ul", { className: "flex flex-row items-center gap-8", children: e.filter(at(t)).map((s) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx(it, { ...s }) }, s.id)) }) }) });
990
- }, it = ({
991
- id: e,
992
- label: t,
993
- default: s
745
+ );
746
+ }, Je = (t) => (e) => e.display === "auth" && t || e.display === "anon" && !t || !e.display || e.display === "always", In = () => {
747
+ const { topNavigation: t } = I(), { isAuthenticated: e } = Z();
748
+ return t.length <= 1 ? /* @__PURE__ */ r.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ r.jsx(de, { children: /* @__PURE__ */ r.jsx("nav", { className: "hidden lg:block text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ r.jsx("ul", { className: "flex flex-row items-center gap-8", children: t.filter(Je(e)).map((n) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(et, { ...n }) }, n.id)) }) }) });
749
+ }, et = ({
750
+ id: t,
751
+ label: e,
752
+ default: n
994
753
  }) => {
995
- var l;
996
- const { sidebars: r } = q(), a = r[e], i = Ue(), o = !!fe().location, d = ((l = i.topNavItem) == null ? void 0 : l.id) === e && !o, u = s ?? (a ? It(a, (f) => {
997
- if (f.type === "doc") return W(f.id);
998
- }) : W(e));
999
- if (!u)
1000
- throw new ps("Page not found.", {
1001
- developerHint: `No links found in top navigation for '${e}'. Check that the sidebar isn't empty or that a default link is set.`
754
+ var c;
755
+ const { sidebars: s } = I(), a = s[t], o = He(), i = !!oe().location, u = ((c = o.topNavItem) == null ? void 0 : c.id) === t && !i, d = n ?? (a ? St(a, (g) => {
756
+ if (g.type === "doc") return se(g.id);
757
+ }) : se(t));
758
+ if (!d)
759
+ throw new cn("Page not found.", {
760
+ developerHint: `No links found in top navigation for '${t}'. Check that the sidebar isn't empty or that a default link is set.`
1002
761
  });
1003
762
  return (
1004
763
  // We don't use isActive here because it has to be inside the sidebar,
1005
764
  // the top nav id doesn't necessarily start with the sidebar id
1006
- /* @__PURE__ */ n.jsx(
1007
- se,
765
+ /* @__PURE__ */ r.jsx(
766
+ dt,
1008
767
  {
1009
- className: ({ isPending: f }) => ts(
768
+ className: ({ isPending: g }) => ln(
1010
769
  "block lg:py-3.5 font-medium -mb-px",
1011
- d || f ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
770
+ u || g ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
1012
771
  ),
1013
- to: u,
1014
- children: t
772
+ to: d,
773
+ children: e
1015
774
  }
1016
775
  )
1017
776
  );
1018
- }, Vs = () => {
1019
- const { topNavigation: e } = q(), { isAuthenticated: t } = V(), [s, r] = T(!1);
1020
- return /* @__PURE__ */ n.jsxs(
1021
- Xe,
777
+ }, Tn = () => {
778
+ const { topNavigation: t } = I(), { isAuthenticated: e } = Z(), [n, s] = z(!1);
779
+ return /* @__PURE__ */ r.jsxs(
780
+ Ze,
1022
781
  {
1023
782
  direction: "right",
1024
- open: s,
1025
- onOpenChange: (a) => r(a),
783
+ open: n,
784
+ onOpenChange: (a) => s(a),
1026
785
  children: [
1027
- /* @__PURE__ */ n.jsx("div", { className: "flex lg:hidden justify-self-end", children: /* @__PURE__ */ n.jsx(Ye, { className: "lg:hidden", children: /* @__PURE__ */ n.jsx(_t, { size: 22 }) }) }),
1028
- /* @__PURE__ */ n.jsx(
1029
- Je,
786
+ /* @__PURE__ */ r.jsx("div", { className: "flex lg:hidden justify-self-end", children: /* @__PURE__ */ r.jsx(Ue, { className: "lg:hidden", children: /* @__PURE__ */ r.jsx(Ht, { size: 22 }) }) }),
787
+ /* @__PURE__ */ r.jsx(
788
+ Ye,
1030
789
  {
1031
790
  className: "lg:hidden h-[100dvh] right-0 left-auto w-[320px] rounded-none",
1032
791
  "aria-describedby": void 0,
1033
- children: /* @__PURE__ */ n.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none", children: [
1034
- /* @__PURE__ */ n.jsx(tt, { children: /* @__PURE__ */ n.jsx(Ge, { children: "Navigation" }) }),
1035
- /* @__PURE__ */ n.jsx(nt, { className: "flex p-4" }),
1036
- /* @__PURE__ */ n.jsxs("ul", { className: "flex flex-col items-center gap-4 p-4", children: [
1037
- /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx(rt, {}) }),
1038
- e.filter(at(t)).map((a) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx("button", { onClick: () => r(!1), children: /* @__PURE__ */ n.jsx(it, { ...a }) }) }, a.label))
792
+ children: /* @__PURE__ */ r.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none", children: [
793
+ /* @__PURE__ */ r.jsx(_e, { children: /* @__PURE__ */ r.jsx(Xe, { children: "Navigation" }) }),
794
+ /* @__PURE__ */ r.jsx(We, { className: "flex p-4" }),
795
+ /* @__PURE__ */ r.jsxs("ul", { className: "flex flex-col items-center gap-4 p-4", children: [
796
+ /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(Ge, {}) }),
797
+ t.filter(Je(e)).map((a) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx("button", { onClick: () => s(!1), children: /* @__PURE__ */ r.jsx(et, { ...a }) }) }, a.label))
1039
798
  ] })
1040
799
  ] })
1041
800
  }
@@ -1043,192 +802,192 @@ const Fs = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
1043
802
  ]
1044
803
  }
1045
804
  );
1046
- }, te = ({ item: e }) => e.children ? /* @__PURE__ */ n.jsxs(cs, { children: [
1047
- /* @__PURE__ */ n.jsx(ds, { children: e.label }),
1048
- /* @__PURE__ */ n.jsx(us, { children: /* @__PURE__ */ n.jsx(hs, { children: e.children.map((t, s) => (
805
+ }, J = ({ item: t }) => t.children ? /* @__PURE__ */ r.jsxs(en, { children: [
806
+ /* @__PURE__ */ r.jsx(tn, { children: t.label }),
807
+ /* @__PURE__ */ r.jsx(nn, { children: /* @__PURE__ */ r.jsx(sn, { children: t.children.map((e, n) => (
1049
808
  // eslint-disable-next-line react/no-array-index-key
1050
- /* @__PURE__ */ n.jsx(te, { item: t }, s)
809
+ /* @__PURE__ */ r.jsx(J, { item: e }, n)
1051
810
  )) }) })
1052
- ] }, e.label) : /* @__PURE__ */ n.jsx(ge, { to: e.path ?? "", children: /* @__PURE__ */ n.jsxs(fs, { className: "flex gap-2", children: [
1053
- e.icon && /* @__PURE__ */ n.jsx(e.icon, { size: 16, strokeWidth: 1, absoluteStrokeWidth: !0 }),
1054
- e.label
1055
- ] }, e.label) }), ot = We(function() {
1056
- const t = V(), { isAuthenticated: s, profile: r, isAuthEnabled: a } = V(), i = q(), { page: o, plugins: d } = i, u = d.filter((l) => Fs(l)).flatMap((l) => l.getProfileMenuItems(i)).sort((l) => l.weight ?? 0);
1057
- return /* @__PURE__ */ n.jsxs("header", { className: "sticky lg:top-0 z-10 bg-background/80 backdrop-blur w-full", children: [
1058
- /* @__PURE__ */ n.jsx(Zs, {}),
1059
- /* @__PURE__ */ n.jsx("div", { className: "border-b", children: /* @__PURE__ */ n.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: [
1060
- /* @__PURE__ */ n.jsx("div", { className: "flex", children: /* @__PURE__ */ n.jsx(ge, { to: "/", children: /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-3.5", children: [
1061
- (o == null ? void 0 : o.logo) && /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
1062
- /* @__PURE__ */ n.jsx(
811
+ ] }, t.label) : /* @__PURE__ */ r.jsx(le, { to: t.path ?? "", children: /* @__PURE__ */ r.jsxs(rn, { className: "flex gap-2", children: [
812
+ t.icon && /* @__PURE__ */ r.jsx(t.icon, { size: 16, strokeWidth: 1, absoluteStrokeWidth: !0 }),
813
+ t.label
814
+ ] }, t.label) }), tt = Ke(function() {
815
+ const e = Z(), { isAuthenticated: n, profile: s, isAuthEnabled: a } = Z(), o = I(), { page: i, plugins: u } = o, d = u.filter((c) => kn(c)).flatMap((c) => c.getProfileMenuItems(o)).sort((c) => c.weight ?? 0);
816
+ return /* @__PURE__ */ r.jsxs("header", { className: "sticky lg:top-0 z-10 bg-background/80 backdrop-blur w-full", children: [
817
+ /* @__PURE__ */ r.jsx(Qn, {}),
818
+ /* @__PURE__ */ r.jsx("div", { className: "border-b", children: /* @__PURE__ */ r.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: [
819
+ /* @__PURE__ */ r.jsx("div", { className: "flex", children: /* @__PURE__ */ r.jsx(le, { to: "/", children: /* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-3.5", children: [
820
+ (i == null ? void 0 : i.logo) && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
821
+ /* @__PURE__ */ r.jsx(
1063
822
  "img",
1064
823
  {
1065
- src: /https?:\/\//.test(o.logo.src.light) ? o.logo.src.light : De(
824
+ src: /https?:\/\//.test(i.logo.src.light) ? i.logo.src.light : Ce(
1066
825
  "/",
1067
- o.logo.src.light
826
+ i.logo.src.light
1068
827
  ),
1069
- alt: o.logo.alt ?? o.pageTitle,
1070
- style: { width: o.logo.width },
828
+ alt: i.logo.alt ?? i.pageTitle,
829
+ style: { width: i.logo.width },
1071
830
  className: "h-10 dark:hidden",
1072
831
  loading: "lazy"
1073
832
  }
1074
833
  ),
1075
- /* @__PURE__ */ n.jsx(
834
+ /* @__PURE__ */ r.jsx(
1076
835
  "img",
1077
836
  {
1078
- src: /https?:\/\//.test(o.logo.src.dark) ? o.logo.src.dark : De(
837
+ src: /https?:\/\//.test(i.logo.src.dark) ? i.logo.src.dark : Ce(
1079
838
  "/",
1080
- o.logo.src.dark
839
+ i.logo.src.dark
1081
840
  ),
1082
- alt: o.logo.alt ?? o.pageTitle,
1083
- style: { width: o.logo.width },
841
+ alt: i.logo.alt ?? i.pageTitle,
842
+ style: { width: i.logo.width },
1084
843
  className: "h-10 hidden dark:block",
1085
844
  loading: "lazy"
1086
845
  }
1087
846
  )
1088
847
  ] }),
1089
- /* @__PURE__ */ n.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: o == null ? void 0 : o.pageTitle })
848
+ /* @__PURE__ */ r.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: i == null ? void 0 : i.pageTitle })
1090
849
  ] }) }) }),
1091
- /* @__PURE__ */ n.jsxs("div", { className: "grid grid-cols-1 lg:grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
1092
- /* @__PURE__ */ n.jsx("div", { className: "w-full justify-center hidden lg:flex", children: /* @__PURE__ */ n.jsx(nt, {}) }),
1093
- /* @__PURE__ */ n.jsx(Vs, {}),
1094
- /* @__PURE__ */ n.jsxs("div", { className: "hidden lg:flex items-center justify-self-end text-sm gap-2", children: [
1095
- /* @__PURE__ */ n.jsx(M, { name: "head-navigation-start" }),
1096
- a && /* @__PURE__ */ n.jsx(
1097
- xe,
850
+ /* @__PURE__ */ r.jsxs("div", { className: "grid grid-cols-1 lg:grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
851
+ /* @__PURE__ */ r.jsx("div", { className: "w-full justify-center hidden lg:flex", children: /* @__PURE__ */ r.jsx(We, {}) }),
852
+ /* @__PURE__ */ r.jsx(Tn, {}),
853
+ /* @__PURE__ */ r.jsxs("div", { className: "hidden lg:flex items-center justify-self-end text-sm gap-2", children: [
854
+ /* @__PURE__ */ r.jsx(M, { name: "head-navigation-start" }),
855
+ a && /* @__PURE__ */ r.jsx(
856
+ $e,
1098
857
  {
1099
- fallback: /* @__PURE__ */ n.jsx(Rs, { className: "rounded h-5 w-24 mr-4" }),
1100
- children: s ? Object.values(u).length > 0 && /* @__PURE__ */ n.jsxs(as, { modal: !1, children: [
1101
- /* @__PURE__ */ n.jsx(is, { asChild: !0, children: /* @__PURE__ */ n.jsx(ce, { variant: "ghost", children: r != null && r.name ? `${r.name}` : "My Account" }) }),
1102
- /* @__PURE__ */ n.jsxs(os, { className: "w-56", children: [
1103
- /* @__PURE__ */ n.jsxs(ls, { children: [
1104
- r != null && r.name ? `${r.name}` : "My Account",
1105
- (r == null ? void 0 : r.email) && /* @__PURE__ */ n.jsx("div", { className: "font-normal text-muted-foreground", children: r.email })
858
+ fallback: /* @__PURE__ */ r.jsx(Sn, { className: "rounded h-5 w-24 mr-4" }),
859
+ children: n ? Object.values(d).length > 0 && /* @__PURE__ */ r.jsxs(_t, { modal: !1, children: [
860
+ /* @__PURE__ */ r.jsx(Wt, { asChild: !0, children: /* @__PURE__ */ r.jsx(re, { variant: "ghost", children: s != null && s.name ? `${s.name}` : "My Account" }) }),
861
+ /* @__PURE__ */ r.jsxs(Gt, { className: "w-56", children: [
862
+ /* @__PURE__ */ r.jsxs(Jt, { children: [
863
+ s != null && s.name ? `${s.name}` : "My Account",
864
+ (s == null ? void 0 : s.email) && /* @__PURE__ */ r.jsx("div", { className: "font-normal text-muted-foreground", children: s.email })
1106
865
  ] }),
1107
- u.filter((l) => l.category === "top").length > 0 && /* @__PURE__ */ n.jsx(ae, {}),
1108
- u.filter((l) => l.category === "top").map((l) => /* @__PURE__ */ n.jsx(te, { item: l }, l.label)),
1109
- u.filter(
1110
- (l) => !l.category || l.category === "middle"
1111
- ).length > 0 && /* @__PURE__ */ n.jsx(ae, {}),
1112
- u.filter(
1113
- (l) => !l.category || l.category === "middle"
1114
- ).map((l) => /* @__PURE__ */ n.jsx(te, { item: l }, l.label)),
1115
- u.filter((l) => l.category === "bottom").length > 0 && /* @__PURE__ */ n.jsx(ae, {}),
1116
- u.filter((l) => l.category === "bottom").map((l) => /* @__PURE__ */ n.jsx(te, { item: l }, l.label))
866
+ d.filter((c) => c.category === "top").length > 0 && /* @__PURE__ */ r.jsx(te, {}),
867
+ d.filter((c) => c.category === "top").map((c) => /* @__PURE__ */ r.jsx(J, { item: c }, c.label)),
868
+ d.filter(
869
+ (c) => !c.category || c.category === "middle"
870
+ ).length > 0 && /* @__PURE__ */ r.jsx(te, {}),
871
+ d.filter(
872
+ (c) => !c.category || c.category === "middle"
873
+ ).map((c) => /* @__PURE__ */ r.jsx(J, { item: c }, c.label)),
874
+ d.filter((c) => c.category === "bottom").length > 0 && /* @__PURE__ */ r.jsx(te, {}),
875
+ d.filter((c) => c.category === "bottom").map((c) => /* @__PURE__ */ r.jsx(J, { item: c }, c.label))
1117
876
  ] })
1118
- ] }) : /* @__PURE__ */ n.jsx(ce, { variant: "ghost", onClick: () => t.login(), children: "Login" })
877
+ ] }) : /* @__PURE__ */ r.jsx(re, { variant: "ghost", onClick: () => e.login(), children: "Login" })
1119
878
  }
1120
879
  ),
1121
- /* @__PURE__ */ n.jsx(rt, {}),
1122
- /* @__PURE__ */ n.jsx(M, { name: "head-navigation-end" })
880
+ /* @__PURE__ */ r.jsx(M, { name: "head-navigation-end" }),
881
+ /* @__PURE__ */ r.jsx(Ge, {})
1123
882
  ] })
1124
883
  ] })
1125
884
  ] }) }),
1126
- /* @__PURE__ */ n.jsx("div", { className: "border-b", children: /* @__PURE__ */ n.jsxs("div", { className: "max-w-screen-2xl mx-auto border-l border-r", children: [
1127
- /* @__PURE__ */ n.jsx(M, { name: "top-navigation-before" }),
1128
- /* @__PURE__ */ n.jsx(Us, {}),
1129
- /* @__PURE__ */ n.jsx(M, { name: "top-navigation-after" })
885
+ /* @__PURE__ */ r.jsx("div", { className: "border-b", children: /* @__PURE__ */ r.jsxs("div", { className: "max-w-screen-2xl mx-auto border-l border-r", children: [
886
+ /* @__PURE__ */ r.jsx(M, { name: "top-navigation-before" }),
887
+ /* @__PURE__ */ r.jsx(In, {}),
888
+ /* @__PURE__ */ r.jsx(M, { name: "top-navigation-after" })
1130
889
  ] }) })
1131
890
  ] });
1132
- }), lt = Ft(({ children: e, className: t, pushMainContent: s }, r) => /* @__PURE__ */ n.jsx(
891
+ }), nt = At(({ children: t, className: e, pushMainContent: n }, s) => /* @__PURE__ */ r.jsx(
1133
892
  "nav",
1134
893
  {
1135
- "data-navigation": String(s),
1136
- className: O(
894
+ "data-navigation": String(n),
895
+ className: B(
1137
896
  "scrollbar peer hidden lg:flex flex-col fixed text-sm overflow-y-auto shrink-0 border-r pr-10",
1138
897
  "-mx-[--padding-nav-item] pb-20 pt-[--padding-content-top]",
1139
898
  "w-[--side-nav-width] h-[calc(100%-var(--header-height))] scroll-pt-2 gap-2",
1140
- !s && "border-r-0",
1141
- t
899
+ !n && "border-r-0",
900
+ e
1142
901
  ),
1143
- ref: r,
1144
- children: e
902
+ ref: s,
903
+ children: t
1145
904
  }
1146
905
  ));
1147
- lt.displayName = "SidebarWrapper";
1148
- const Ws = ({
1149
- onRequestClose: e
906
+ nt.displayName = "SidebarWrapper";
907
+ const qn = ({
908
+ onRequestClose: t
1150
909
  }) => {
1151
- const t = me(null), s = Ue();
1152
- return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
1153
- /* @__PURE__ */ n.jsxs(
1154
- lt,
910
+ const e = ue(null), n = He();
911
+ return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
912
+ /* @__PURE__ */ r.jsxs(
913
+ nt,
1155
914
  {
1156
- ref: t,
1157
- pushMainContent: s.sidebar.length > 0,
915
+ ref: e,
916
+ pushMainContent: n.sidebar.length > 0,
1158
917
  children: [
1159
- /* @__PURE__ */ n.jsx(M, { name: "zudoku-before-navigation" }),
1160
- s.sidebar.map((r) => /* @__PURE__ */ n.jsx(de, { item: r }, r.label)),
1161
- /* @__PURE__ */ n.jsx(M, { name: "zudoku-after-navigation" })
918
+ /* @__PURE__ */ r.jsx(M, { name: "zudoku-before-navigation" }),
919
+ n.sidebar.map((s) => /* @__PURE__ */ r.jsx(Pe, { item: s }, s.label)),
920
+ /* @__PURE__ */ r.jsx(M, { name: "zudoku-after-navigation" })
1162
921
  ]
1163
922
  }
1164
923
  ),
1165
- /* @__PURE__ */ n.jsx(
1166
- Je,
924
+ /* @__PURE__ */ r.jsx(
925
+ Ye,
1167
926
  {
1168
927
  className: "lg:hidden h-[100dvh] left-0 w-[320px] rounded-none",
1169
928
  "aria-describedby": void 0,
1170
- children: /* @__PURE__ */ n.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none", children: [
1171
- /* @__PURE__ */ n.jsx(tt, { children: /* @__PURE__ */ n.jsx(Ge, { children: "Sidebar" }) }),
1172
- s.sidebar.map((r) => /* @__PURE__ */ n.jsx(
1173
- de,
929
+ children: /* @__PURE__ */ r.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none", children: [
930
+ /* @__PURE__ */ r.jsx(_e, { children: /* @__PURE__ */ r.jsx(Xe, { children: "Sidebar" }) }),
931
+ n.sidebar.map((s) => /* @__PURE__ */ r.jsx(
932
+ Pe,
1174
933
  {
1175
- item: r,
1176
- onRequestClose: e
934
+ item: s,
935
+ onRequestClose: t
1177
936
  },
1178
- r.label
937
+ s.label
1179
938
  ))
1180
939
  ] })
1181
940
  }
1182
941
  )
1183
942
  ] });
1184
- }, qe = () => /* @__PURE__ */ n.jsx("main", { className: "grid h-[calc(100vh-var(--header-height))] place-items-center", children: /* @__PURE__ */ n.jsx(et, {}) }), _s = ({ children: e }) => {
1185
- const t = he(), { setActiveAnchor: s } = ye(), { meta: r, authentication: a } = q();
1186
- Ts(), qs();
1187
- const i = me(t.pathname);
1188
- R(() => {
1189
- var f;
1190
- (f = a == null ? void 0 : a.onPageLoad) == null || f.call(a);
1191
- }, [a]), R(() => {
1192
- t.pathname !== i.current && s(""), i.current = t.pathname;
1193
- }, [t.pathname, s]);
1194
- const o = !!fe().location, d = Ds.useSpinDelay(o, {
943
+ }, Oe = () => /* @__PURE__ */ r.jsx("main", { className: "grid h-[calc(100vh-var(--header-height))] place-items-center", children: /* @__PURE__ */ r.jsx(Ve, {}) }), Rn = ({ children: t }) => {
944
+ const e = Te(), { setActiveAnchor: n } = Ut(), { meta: s, authentication: a } = I();
945
+ Kt(), Cn();
946
+ const o = ue(e.pathname);
947
+ U(() => {
948
+ var g;
949
+ (g = a == null ? void 0 : a.onPageLoad) == null || g.call(a);
950
+ }, [a]), U(() => {
951
+ e.pathname !== o.current && n(""), o.current = e.pathname;
952
+ }, [e.pathname, n]);
953
+ const i = !!oe().location, u = Pn.useSpinDelay(i, {
1195
954
  delay: 300,
1196
955
  minDuration: 500
1197
- }), [u, l] = T(!1);
1198
- return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
956
+ }), [d, c] = z(!1);
957
+ return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
1199
958
  !1,
1200
- /* @__PURE__ */ n.jsxs(ue, { titleTemplate: r == null ? void 0 : r.title, children: [
1201
- (r == null ? void 0 : r.description) && /* @__PURE__ */ n.jsx("meta", { name: "description", content: r.description }),
1202
- (r == null ? void 0 : r.favicon) && /* @__PURE__ */ n.jsx("link", { rel: "icon", href: r.favicon })
959
+ /* @__PURE__ */ r.jsxs(ie, { titleTemplate: s == null ? void 0 : s.title, children: [
960
+ (s == null ? void 0 : s.description) && /* @__PURE__ */ r.jsx("meta", { name: "description", content: s.description }),
961
+ (s == null ? void 0 : s.favicon) && /* @__PURE__ */ r.jsx("link", { rel: "icon", href: s.favicon })
1203
962
  ] }),
1204
- /* @__PURE__ */ n.jsx(M, { name: "layout-before-head" }),
1205
- /* @__PURE__ */ n.jsx(ot, {}),
1206
- /* @__PURE__ */ n.jsx(M, { name: "layout-after-head" }),
1207
- /* @__PURE__ */ n.jsx("div", { className: "w-full max-w-screen-2xl mx-auto px-4 lg:px-12 border-l border-r", children: d ? /* @__PURE__ */ n.jsx(qe, {}) : /* @__PURE__ */ n.jsx(pe, { fallback: /* @__PURE__ */ n.jsx(qe, {}), children: /* @__PURE__ */ n.jsxs(
1208
- Xe,
963
+ /* @__PURE__ */ r.jsx(M, { name: "layout-before-head" }),
964
+ /* @__PURE__ */ r.jsx(tt, {}),
965
+ /* @__PURE__ */ r.jsx(M, { name: "layout-after-head" }),
966
+ /* @__PURE__ */ r.jsx("div", { className: "w-full max-w-screen-2xl mx-auto px-4 lg:px-12 border-l border-r", children: u ? /* @__PURE__ */ r.jsx(Oe, {}) : /* @__PURE__ */ r.jsx(de, { fallback: /* @__PURE__ */ r.jsx(Oe, {}), children: /* @__PURE__ */ r.jsxs(
967
+ Ze,
1209
968
  {
1210
969
  direction: "left",
1211
- open: u,
1212
- onOpenChange: (f) => l(f),
970
+ open: d,
971
+ onOpenChange: (g) => c(g),
1213
972
  children: [
1214
- /* @__PURE__ */ n.jsx(Ws, { onRequestClose: () => l(!1) }),
1215
- /* @__PURE__ */ n.jsx(
973
+ /* @__PURE__ */ r.jsx(qn, { onRequestClose: () => c(!1) }),
974
+ /* @__PURE__ */ r.jsx(
1216
975
  "div",
1217
976
  {
1218
- className: O(
977
+ className: B(
1219
978
  "lg:hidden -mx-10 px-10 py-2 sticky bg-background/80 backdrop-blur z-10 top-0 left-0 right-0 border-b",
1220
979
  "peer-data-[navigation=false]:hidden"
1221
980
  ),
1222
- children: /* @__PURE__ */ n.jsxs(Ye, { className: "flex items-center gap-2", children: [
1223
- /* @__PURE__ */ n.jsx(Xt, { size: 16, strokeWidth: 1.5 }),
1224
- /* @__PURE__ */ n.jsx("span", { className: "text-sm", children: "Menu" })
981
+ children: /* @__PURE__ */ r.jsxs(Ue, { className: "flex items-center gap-2", children: [
982
+ /* @__PURE__ */ r.jsx(Lt, { size: 16, strokeWidth: 1.5 }),
983
+ /* @__PURE__ */ r.jsx("span", { className: "text-sm", children: "Menu" })
1225
984
  ] })
1226
985
  }
1227
986
  ),
1228
- /* @__PURE__ */ n.jsxs(
987
+ /* @__PURE__ */ r.jsxs(
1229
988
  "main",
1230
989
  {
1231
- className: O(
990
+ className: B(
1232
991
  "h-full dark:border-white/10 translate-x-0",
1233
992
  "lg:overflow-visible",
1234
993
  // This works in tandem with the `SidebarWrapper` component
@@ -1236,9 +995,9 @@ const Ws = ({
1236
995
  "lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] lg:peer-data-[navigation=true]:pl-12"
1237
996
  ),
1238
997
  children: [
1239
- /* @__PURE__ */ n.jsx(M, { name: "zudoku-before-content" }),
1240
- e ?? /* @__PURE__ */ n.jsx(He, {}),
1241
- /* @__PURE__ */ n.jsx(M, { name: "zudoku-after-content" })
998
+ /* @__PURE__ */ r.jsx(M, { name: "zudoku-before-content" }),
999
+ t ?? /* @__PURE__ */ r.jsx(qe, {}),
1000
+ /* @__PURE__ */ r.jsx(M, { name: "zudoku-after-content" })
1242
1001
  ]
1243
1002
  }
1244
1003
  )
@@ -1246,195 +1005,197 @@ const Ws = ({
1246
1005
  }
1247
1006
  ) }) })
1248
1007
  ] });
1249
- }, Xs = _e(null), oe = {
1008
+ }, Fn = ce(null), ne = {
1250
1009
  didCatch: !1,
1251
1010
  error: null
1252
1011
  };
1253
- class Ys extends Bt {
1254
- constructor(t) {
1255
- super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = oe;
1012
+ class zn extends Qt {
1013
+ constructor(e) {
1014
+ super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = ne;
1256
1015
  }
1257
- static getDerivedStateFromError(t) {
1016
+ static getDerivedStateFromError(e) {
1258
1017
  return {
1259
1018
  didCatch: !0,
1260
- error: t
1019
+ error: e
1261
1020
  };
1262
1021
  }
1263
1022
  resetErrorBoundary() {
1264
1023
  const {
1265
- error: t
1024
+ error: e
1266
1025
  } = this.state;
1267
- if (t !== null) {
1268
- for (var s, r, a = arguments.length, i = new Array(a), o = 0; o < a; o++)
1269
- i[o] = arguments[o];
1270
- (s = (r = this.props).onReset) === null || s === void 0 || s.call(r, {
1271
- args: i,
1026
+ if (e !== null) {
1027
+ for (var n, s, a = arguments.length, o = new Array(a), i = 0; i < a; i++)
1028
+ o[i] = arguments[i];
1029
+ (n = (s = this.props).onReset) === null || n === void 0 || n.call(s, {
1030
+ args: o,
1272
1031
  reason: "imperative-api"
1273
- }), this.setState(oe);
1032
+ }), this.setState(ne);
1274
1033
  }
1275
1034
  }
1276
- componentDidCatch(t, s) {
1277
- var r, a;
1278
- (r = (a = this.props).onError) === null || r === void 0 || r.call(a, t, s);
1035
+ componentDidCatch(e, n) {
1036
+ var s, a;
1037
+ (s = (a = this.props).onError) === null || s === void 0 || s.call(a, e, n);
1279
1038
  }
1280
- componentDidUpdate(t, s) {
1039
+ componentDidUpdate(e, n) {
1281
1040
  const {
1282
- didCatch: r
1041
+ didCatch: s
1283
1042
  } = this.state, {
1284
1043
  resetKeys: a
1285
1044
  } = this.props;
1286
- if (r && s.error !== null && Js(t.resetKeys, a)) {
1287
- var i, o;
1288
- (i = (o = this.props).onReset) === null || i === void 0 || i.call(o, {
1045
+ if (s && n.error !== null && Bn(e.resetKeys, a)) {
1046
+ var o, i;
1047
+ (o = (i = this.props).onReset) === null || o === void 0 || o.call(i, {
1289
1048
  next: a,
1290
- prev: t.resetKeys,
1049
+ prev: e.resetKeys,
1291
1050
  reason: "keys"
1292
- }), this.setState(oe);
1051
+ }), this.setState(ne);
1293
1052
  }
1294
1053
  }
1295
1054
  render() {
1296
1055
  const {
1297
- children: t,
1298
- fallbackRender: s,
1299
- FallbackComponent: r,
1056
+ children: e,
1057
+ fallbackRender: n,
1058
+ FallbackComponent: s,
1300
1059
  fallback: a
1301
1060
  } = this.props, {
1302
- didCatch: i,
1303
- error: o
1061
+ didCatch: o,
1062
+ error: i
1304
1063
  } = this.state;
1305
- let d = t;
1306
- if (i) {
1307
- const u = {
1308
- error: o,
1064
+ let u = e;
1065
+ if (o) {
1066
+ const d = {
1067
+ error: i,
1309
1068
  resetErrorBoundary: this.resetErrorBoundary
1310
1069
  };
1311
- if (typeof s == "function")
1312
- d = s(u);
1313
- else if (r)
1314
- d = Oe(r, u);
1070
+ if (typeof n == "function")
1071
+ u = n(d);
1072
+ else if (s)
1073
+ u = we(s, d);
1315
1074
  else if (a !== void 0)
1316
- d = a;
1075
+ u = a;
1317
1076
  else
1318
- throw o;
1077
+ throw i;
1319
1078
  }
1320
- return Oe(Xs.Provider, {
1079
+ return we(Fn.Provider, {
1321
1080
  value: {
1322
- didCatch: i,
1323
- error: o,
1081
+ didCatch: o,
1082
+ error: i,
1324
1083
  resetErrorBoundary: this.resetErrorBoundary
1325
1084
  }
1326
- }, d);
1085
+ }, u);
1327
1086
  }
1328
1087
  }
1329
- function Js() {
1330
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
1331
- return e.length !== t.length || e.some((s, r) => !Object.is(s, t[r]));
1088
+ function Bn() {
1089
+ let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
1090
+ return t.length !== e.length || t.some((n, s) => !Object.is(n, e[s]));
1332
1091
  }
1333
- class Gs {
1334
- constructor(t) {
1335
- k(this, "plugins");
1336
- k(this, "sidebars");
1337
- k(this, "topNavigation");
1338
- k(this, "meta");
1339
- k(this, "page");
1340
- k(this, "authentication");
1341
- k(this, "navigationPlugins");
1342
- k(this, "initialize", async () => {
1092
+ class Hn {
1093
+ constructor(e) {
1094
+ P(this, "plugins");
1095
+ P(this, "sidebars");
1096
+ P(this, "topNavigation");
1097
+ P(this, "meta");
1098
+ P(this, "page");
1099
+ P(this, "authentication");
1100
+ P(this, "navigationPlugins");
1101
+ P(this, "initialize", async () => {
1343
1102
  await Promise.all(
1344
- this.plugins.filter(Hs).map((t) => {
1345
- var s;
1346
- return (s = t.initialize) == null ? void 0 : s.call(t, this);
1103
+ this.plugins.filter(Nn).map((e) => {
1104
+ var n;
1105
+ return (n = e.initialize) == null ? void 0 : n.call(e, this);
1347
1106
  })
1348
1107
  );
1349
1108
  });
1350
- k(this, "getApiIdentities", async () => (await Promise.all(
1351
- this.plugins.filter($s).map((s) => s.getIdentities(this))
1109
+ P(this, "getApiIdentities", async () => (await Promise.all(
1110
+ this.plugins.filter(An).map((n) => n.getIdentities(this))
1352
1111
  )).flat());
1353
- k(this, "getPluginSidebar", async (t) => (await Promise.all(
1112
+ P(this, "getPluginSidebar", async (e) => (await Promise.all(
1354
1113
  this.navigationPlugins.map(
1355
- (r) => {
1114
+ (s) => {
1356
1115
  var a;
1357
- return (a = r.getSidebar) == null ? void 0 : a.call(r, W(t));
1116
+ return (a = s.getSidebar) == null ? void 0 : a.call(s, se(e));
1358
1117
  }
1359
1118
  )
1360
- )).flatMap((r) => r ?? []));
1361
- k(this, "signRequest", async (t) => {
1119
+ )).flatMap((s) => s ?? []));
1120
+ P(this, "signRequest", async (e) => {
1362
1121
  if (!this.authentication)
1363
1122
  throw new Error("No authentication provider configured");
1364
- const s = await this.authentication.getAccessToken();
1365
- return t.headers.set("Authorization", `Bearer ${s}`), t;
1123
+ const n = await this.authentication.getAccessToken();
1124
+ return e.headers.set("Authorization", `Bearer ${n}`), e;
1366
1125
  });
1367
- this.plugins = t.plugins ?? [], this.topNavigation = t.topNavigation ?? [], this.sidebars = t.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(Bs), this.authentication = t.authentication, this.meta = t.metadata, this.page = t.page;
1126
+ this.options = e, this.plugins = e.plugins ?? [], this.topNavigation = e.topNavigation ?? [], this.sidebars = e.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(Dn), this.authentication = e.authentication, this.meta = e.metadata, this.page = e.page;
1368
1127
  }
1369
1128
  }
1370
- function en({ error: e, resetErrorBoundary: t }) {
1371
- return /* @__PURE__ */ n.jsx(Le, { error: e });
1129
+ function Ln({ error: t, resetErrorBoundary: e }) {
1130
+ return /* @__PURE__ */ r.jsx(Re, { error: t });
1372
1131
  }
1373
- const ee = globalThis;
1374
- (!ee.requestIdleCallback || !ee.cancelIdleCallback) && (ee.requestIdleCallback = (e) => setTimeout(e, 1), ee.cancelIdleCallback = clearTimeout);
1375
- const ct = {
1376
- Header: ot
1377
- }, tn = _e(ct), sn = tn.Provider, nn = ({
1378
- children: e,
1379
- context: t
1380
- }) => (Qt({
1381
- queryFn: async () => (await t.initialize(), !0),
1132
+ const G = globalThis;
1133
+ (!G.requestIdleCallback || !G.cancelIdleCallback) && (G.requestIdleCallback = (t) => setTimeout(t, 1), G.cancelIdleCallback = clearTimeout);
1134
+ const st = {
1135
+ Header: tt
1136
+ }, Kn = ce(st), $n = Kn.Provider, Zn = ({
1137
+ children: t,
1138
+ context: e
1139
+ }) => (kt({
1140
+ queryFn: async () => (await e.initialize(), !0),
1382
1141
  queryKey: ["zudoku-initialize"]
1383
- }), /* @__PURE__ */ n.jsx(Tt.Provider, { value: t, children: e })), dt = We(
1384
- ({ children: e, ...t }) => {
1385
- var g, h;
1386
- const s = ne(
1387
- () => ({ ...ct, ...t.overrides }),
1388
- [t.overrides]
1389
- ), r = ne(() => {
1390
- var x;
1142
+ }), /* @__PURE__ */ r.jsx(Dt.Provider, { value: e, children: t })), rt = Ke(
1143
+ ({ children: t, ...e }) => {
1144
+ var f, h;
1145
+ const n = ee(
1146
+ () => ({ ...st, ...e.overrides }),
1147
+ [e.overrides]
1148
+ ), s = ee(() => {
1149
+ var v;
1391
1150
  return {
1392
- ...(t.plugins ?? []).filter(Ks).flatMap(
1151
+ ...(e.plugins ?? []).filter(En).flatMap(
1393
1152
  (m) => m.getMdxComponents ? [m.getMdxComponents()] : []
1394
1153
  ).reduce(
1395
1154
  (m, C) => ({ ...m, ...C }),
1396
1155
  {}
1397
1156
  ),
1398
1157
  ...Yt,
1399
- ...(x = t.mdx) == null ? void 0 : x.components
1158
+ ...(v = e.mdx) == null ? void 0 : v.components
1400
1159
  };
1401
- }, [(g = t.mdx) == null ? void 0 : g.components, t.plugins]), { stagger: a } = zt(le), [i, o] = T(!1), d = ne(
1402
- () => i ? { stagger: !0 } : { stagger: a },
1403
- [a, i]
1404
- ), u = fe();
1405
- R(() => {
1406
- i || o(!0);
1407
- }, [i, u.location]);
1408
- const [l] = T(() => new Gs(t)), f = (h = t.plugins) == null ? void 0 : h.filter(Ls).map((p, x) => {
1160
+ }, [(f = e.mdx) == null ? void 0 : f.components, e.plugins]), { stagger: a } = It(ae), [o, i] = z(!1), u = ee(
1161
+ () => o ? { stagger: !0 } : { stagger: a },
1162
+ [a, o]
1163
+ ), d = oe();
1164
+ U(() => {
1165
+ o || i(!0);
1166
+ }, [o, d.location]);
1167
+ const [c] = z(() => new Hn(e)), g = (h = e.plugins) == null ? void 0 : h.filter(On).map((x, v) => {
1409
1168
  var m;
1410
- return /* @__PURE__ */ n.jsx(Ht, { children: (m = p.getHead) == null ? void 0 : m.call(p) }, x);
1169
+ return /* @__PURE__ */ r.jsx(Tt, { children: (m = x.getHead) == null ? void 0 : m.call(x) }, v);
1411
1170
  });
1412
- return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
1413
- /* @__PURE__ */ n.jsx(ue, { children: f }),
1414
- /* @__PURE__ */ n.jsx(le.Provider, { value: d, children: /* @__PURE__ */ n.jsx(nn, { context: l, children: /* @__PURE__ */ n.jsx(ns, { components: r, children: /* @__PURE__ */ n.jsx(ms, { attribute: "class", disableTransitionOnChange: !0, children: /* @__PURE__ */ n.jsx(sn, { value: s, children: /* @__PURE__ */ n.jsx(vt, { slotlets: t.slotlets, children: /* @__PURE__ */ n.jsx(Jt, { children: e ?? /* @__PURE__ */ n.jsx(He, {}) }) }) }) }) }) }) })
1171
+ return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
1172
+ /* @__PURE__ */ r.jsx(ie, { children: g }),
1173
+ /* @__PURE__ */ r.jsx(ae.Provider, { value: u, children: /* @__PURE__ */ r.jsx(Zn, { context: c, children: /* @__PURE__ */ r.jsx($t, { components: s, children: /* @__PURE__ */ r.jsx(on, { attribute: "class", disableTransitionOnChange: !0, children: /* @__PURE__ */ r.jsx($n, { value: n, children: /* @__PURE__ */ r.jsx(ft, { slotlets: e.slotlets, children: /* @__PURE__ */ r.jsx(Xt, { children: t ?? /* @__PURE__ */ r.jsx(qe, {}) }) }) }) }) }) }) })
1415
1174
  ] });
1416
1175
  }
1417
1176
  );
1418
- dt.displayName = "ZudokoInner";
1419
- const ut = (e) => /* @__PURE__ */ n.jsx(Ys, { FallbackComponent: en, children: /* @__PURE__ */ n.jsx(dt, { ...e }) });
1420
- ut.displayName = "Zudoku";
1421
- const On = rs, Dn = _s, An = jt, En = ks, In = Ps, Qn = Ss, Tn = ue, qn = q, Rn = V, Fn = ut, Bn = kt, zn = Gt, Hn = et, Ln = xe, Kn = wt, $n = ge;
1177
+ rt.displayName = "ZudokoInner";
1178
+ const at = (t) => /* @__PURE__ */ r.jsx(zn, { FallbackComponent: Ln, children: /* @__PURE__ */ r.jsx(rt, { ...t }) });
1179
+ at.displayName = "Zudoku";
1180
+ const ms = Zt, ps = Rn, xs = gt, ys = pn, vs = vn, bs = bn, js = ie, ws = I, Ps = Z, Cs = Mt, Ss = Nt, ks = at, Ds = pt, Ms = Vt, Ns = Ve, Os = $e, Es = mt, As = le;
1422
1181
  export {
1423
- In as Bootstrap,
1424
- Qn as BootstrapStatic,
1425
- Kn as Button,
1426
- Bn as Callout,
1427
- Ln as ClientOnly,
1428
- Tn as Head,
1429
- Dn as Layout,
1430
- $n as Link,
1431
- zn as Markdown,
1432
- An as RouterError,
1433
- En as ServerError,
1434
- Hn as Spinner,
1435
- Fn as Zudoku,
1436
- Rn as useAuth,
1437
- On as useMDXComponents,
1438
- qn as useZudoku
1182
+ vs as Bootstrap,
1183
+ bs as BootstrapStatic,
1184
+ Es as Button,
1185
+ Ss as CACHE_KEYS,
1186
+ Ds as Callout,
1187
+ Os as ClientOnly,
1188
+ js as Head,
1189
+ ps as Layout,
1190
+ As as Link,
1191
+ Ms as Markdown,
1192
+ xs as RouterError,
1193
+ ys as ServerError,
1194
+ Ns as Spinner,
1195
+ ks as Zudoku,
1196
+ Ps as useAuth,
1197
+ Cs as useCache,
1198
+ ms as useMDXComponents,
1199
+ ws as useZudoku
1439
1200
  };
1440
1201
  //# sourceMappingURL=zudoku.components.js.map