zudoku 0.25.3 → 0.26.1

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