zudoku 0.17.0 → 0.18.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 (275) hide show
  1. package/dist/app/demo.js +0 -2
  2. package/dist/app/demo.js.map +1 -1
  3. package/dist/app/entry.client.js +14 -0
  4. package/dist/app/entry.client.js.map +1 -1
  5. package/dist/app/entry.server.js +5 -4
  6. package/dist/app/entry.server.js.map +1 -1
  7. package/dist/app/standalone.js +0 -2
  8. package/dist/app/standalone.js.map +1 -1
  9. package/dist/codegen.d.ts +3 -0
  10. package/dist/codegen.js +45 -0
  11. package/dist/codegen.js.map +1 -0
  12. package/dist/config/validators/InputSidebarSchema.d.ts +10 -10
  13. package/dist/config/validators/validate.d.ts +74 -74
  14. package/dist/lib/authentication/hook.d.ts +5 -4
  15. package/dist/lib/authentication/hook.js +1 -3
  16. package/dist/lib/authentication/hook.js.map +1 -1
  17. package/dist/lib/authentication/providers/auth0.js +11 -11
  18. package/dist/lib/authentication/providers/auth0.js.map +1 -1
  19. package/dist/lib/authentication/providers/openid.d.ts +0 -1
  20. package/dist/lib/authentication/providers/openid.js +11 -26
  21. package/dist/lib/authentication/providers/openid.js.map +1 -1
  22. package/dist/lib/authentication/state.d.ts +25 -4
  23. package/dist/lib/authentication/state.js +28 -5
  24. package/dist/lib/authentication/state.js.map +1 -1
  25. package/dist/lib/components/Bootstrap.d.ts +3 -1
  26. package/dist/lib/components/Bootstrap.js +10 -4
  27. package/dist/lib/components/Bootstrap.js.map +1 -1
  28. package/dist/lib/components/DeveloperHint.js +2 -1
  29. package/dist/lib/components/DeveloperHint.js.map +1 -1
  30. package/dist/lib/components/Header.js +3 -7
  31. package/dist/lib/components/Header.js.map +1 -1
  32. package/dist/lib/components/Heading.d.ts +1 -1
  33. package/dist/lib/components/Layout.js +11 -3
  34. package/dist/lib/components/Layout.js.map +1 -1
  35. package/dist/lib/components/MobileTopNavigation.js +6 -7
  36. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  37. package/dist/lib/components/SyntaxHighlight.js +16 -12
  38. package/dist/lib/components/SyntaxHighlight.js.map +1 -1
  39. package/dist/lib/components/ThemeSwitch.d.ts +1 -0
  40. package/dist/lib/components/ThemeSwitch.js +13 -0
  41. package/dist/lib/components/ThemeSwitch.js.map +1 -0
  42. package/dist/lib/components/TopNavigation.d.ts +2 -0
  43. package/dist/lib/components/TopNavigation.js +13 -7
  44. package/dist/lib/components/TopNavigation.js.map +1 -1
  45. package/dist/lib/components/Zudoku.js +4 -5
  46. package/dist/lib/components/Zudoku.js.map +1 -1
  47. package/dist/lib/components/context/ZudokuContext.d.ts +3 -3
  48. package/dist/lib/components/context/ZudokuContext.js +7 -12
  49. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  50. package/dist/lib/components/index.d.ts +14 -3
  51. package/dist/lib/components/navigation/Sidebar.js +1 -1
  52. package/dist/lib/components/navigation/Sidebar.js.map +1 -1
  53. package/dist/lib/components/navigation/utils.js +2 -2
  54. package/dist/lib/components/navigation/utils.js.map +1 -1
  55. package/dist/lib/core/ZudokuContext.d.ts +0 -4
  56. package/dist/lib/core/ZudokuContext.js +0 -5
  57. package/dist/lib/core/ZudokuContext.js.map +1 -1
  58. package/dist/lib/errors/ErrorAlert.js +1 -1
  59. package/dist/lib/errors/ErrorAlert.js.map +1 -1
  60. package/dist/lib/plugins/openapi/ColorizedParam.js +13 -9
  61. package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
  62. package/dist/lib/plugins/openapi/Endpoint.d.ts +1 -1
  63. package/dist/lib/plugins/openapi/Endpoint.js +5 -9
  64. package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
  65. package/dist/lib/plugins/openapi/OperationList.d.ts +2 -2
  66. package/dist/lib/plugins/openapi/OperationList.js +6 -21
  67. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  68. package/dist/lib/plugins/openapi/Route.d.ts +4 -4
  69. package/dist/lib/plugins/openapi/Route.js +2 -4
  70. package/dist/lib/plugins/openapi/Route.js.map +1 -1
  71. package/dist/lib/plugins/openapi/Sidecar.d.ts +1 -1
  72. package/dist/lib/plugins/openapi/Sidecar.js +8 -11
  73. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  74. package/dist/lib/plugins/openapi/client/GraphQLClient.d.ts +8 -0
  75. package/dist/lib/plugins/openapi/client/GraphQLClient.js +102 -0
  76. package/dist/lib/plugins/openapi/client/GraphQLClient.js.map +1 -0
  77. package/dist/lib/plugins/openapi/client/GraphQLContext.d.ts +7 -0
  78. package/dist/lib/plugins/openapi/client/GraphQLContext.js +5 -0
  79. package/dist/lib/plugins/openapi/client/GraphQLContext.js.map +1 -0
  80. package/dist/lib/plugins/openapi/client/createServer.d.ts +1 -0
  81. package/dist/lib/plugins/openapi/client/useCreateQuery.d.ts +5 -0
  82. package/dist/lib/plugins/openapi/client/useCreateQuery.js +13 -0
  83. package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -0
  84. package/dist/lib/plugins/openapi/client/worker.d.ts +4 -1
  85. package/dist/lib/plugins/openapi/client/worker.js +23 -14
  86. package/dist/lib/plugins/openapi/client/worker.js.map +1 -1
  87. package/dist/lib/plugins/openapi/graphql/fragment-masking.d.ts +3 -3
  88. package/dist/lib/plugins/openapi/graphql/fragment-masking.js +3 -4
  89. package/dist/lib/plugins/openapi/graphql/fragment-masking.js.map +1 -1
  90. package/dist/lib/plugins/openapi/graphql/gql.d.ts +5 -52
  91. package/dist/lib/plugins/openapi/graphql/gql.js +2 -1
  92. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  93. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +134 -9
  94. package/dist/lib/plugins/openapi/graphql/graphql.js +194 -778
  95. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
  96. package/dist/lib/plugins/openapi/index.js +40 -53
  97. package/dist/lib/plugins/openapi/index.js.map +1 -1
  98. package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
  99. package/dist/lib/plugins/openapi-worker.d.ts +1 -1
  100. package/dist/lib/plugins/openapi-worker.js +7 -1
  101. package/dist/lib/plugins/openapi-worker.js.map +1 -1
  102. package/dist/lib/util/MdxComponents.d.ts +1 -1
  103. package/dist/vite/config.js +0 -1
  104. package/dist/vite/config.js.map +1 -1
  105. package/dist/vite/html.js +0 -2
  106. package/dist/vite/html.js.map +1 -1
  107. package/dist/vite/plugin-component.js +1 -1
  108. package/dist/vite/plugin-component.js.map +1 -1
  109. package/dist/vite/plugin-mdx.js +3 -2
  110. package/dist/vite/plugin-mdx.js.map +1 -1
  111. package/dist/vite/plugin.js +0 -2
  112. package/dist/vite/plugin.js.map +1 -1
  113. package/dist/vite/remarkStaticGeneration.d.ts +3 -0
  114. package/dist/vite/remarkStaticGeneration.js +125 -0
  115. package/dist/vite/remarkStaticGeneration.js.map +1 -0
  116. package/lib/{AnchorLink-DYbUOP9U.js → AnchorLink-CDlhr8gL.js} +11 -10
  117. package/lib/{AnchorLink-DYbUOP9U.js.map → AnchorLink-CDlhr8gL.js.map} +1 -1
  118. package/lib/{AuthenticationPlugin-bqGAKfot.js → AuthenticationPlugin-DeGDVa1r.js} +6 -5
  119. package/lib/{AuthenticationPlugin-bqGAKfot.js.map → AuthenticationPlugin-DeGDVa1r.js.map} +1 -1
  120. package/lib/{Spinner-ChOGyPls.js → Button-jK0EsymC.js} +12 -15
  121. package/lib/Button-jK0EsymC.js.map +1 -0
  122. package/lib/Markdown-ievDDhFT.js +15192 -0
  123. package/lib/Markdown-ievDDhFT.js.map +1 -0
  124. package/lib/{MdxPage-DRKqyn2b.js → MdxPage-Bwn-VSsH.js} +5 -5
  125. package/lib/{MdxPage-DRKqyn2b.js.map → MdxPage-Bwn-VSsH.js.map} +1 -1
  126. package/lib/OperationList-BwBl1xrD.js +4691 -0
  127. package/lib/OperationList-BwBl1xrD.js.map +1 -0
  128. package/lib/Route-DlG_HTMu.js +11 -0
  129. package/lib/Route-DlG_HTMu.js.map +1 -0
  130. package/lib/{Select-DYKDahHt.js → Select-O9ZM3ZgX.js} +7 -7
  131. package/lib/Select-O9ZM3ZgX.js.map +1 -0
  132. package/lib/SidebarBadge-DxFJcJ6V.js +51 -0
  133. package/lib/SidebarBadge-DxFJcJ6V.js.map +1 -0
  134. package/lib/SlotletProvider-DyomlzGx.js +252 -0
  135. package/lib/SlotletProvider-DyomlzGx.js.map +1 -0
  136. package/lib/Spinner-3cQDBVGr.js +7 -0
  137. package/lib/Spinner-3cQDBVGr.js.map +1 -0
  138. package/lib/SyntaxHighlight-DkLOsjHS.js +2983 -0
  139. package/lib/SyntaxHighlight-DkLOsjHS.js.map +1 -0
  140. package/lib/assets/{worker-YA-aCP3P.js → worker-CPsGZsve.js} +24 -22
  141. package/lib/assets/{worker-YA-aCP3P.js.map → worker-CPsGZsve.js.map} +1 -1
  142. package/lib/context-D1nXWxm7.js +22 -0
  143. package/lib/context-D1nXWxm7.js.map +1 -0
  144. package/lib/createServer-DK-g7kbB.js +16089 -0
  145. package/lib/createServer-DK-g7kbB.js.map +1 -0
  146. package/lib/{hook-CjQERPa7.js → hook-hEqe7fPB.js} +12 -14
  147. package/lib/hook-hEqe7fPB.js.map +1 -0
  148. package/lib/index-Czzd9rjU.js +899 -0
  149. package/lib/index-Czzd9rjU.js.map +1 -0
  150. package/lib/index-DNxQ_rCt.js +1273 -0
  151. package/lib/index-DNxQ_rCt.js.map +1 -0
  152. package/lib/index-Yn8c3UWE.js +921 -0
  153. package/lib/index-Yn8c3UWE.js.map +1 -0
  154. package/lib/{router-BsfSoK2j.js → router-lfyopgBI.js} +23 -23
  155. package/lib/{router-BsfSoK2j.js.map → router-lfyopgBI.js.map} +1 -1
  156. package/lib/state-tsXBLONe.js +203 -0
  157. package/lib/state-tsXBLONe.js.map +1 -0
  158. package/lib/ui/ActionButton.js +11 -10
  159. package/lib/ui/ActionButton.js.map +1 -1
  160. package/lib/useExposedProps-CTPtylCV.js +10 -0
  161. package/lib/{useExposedProps-BxyHjPNN.js.map → useExposedProps-CTPtylCV.js.map} +1 -1
  162. package/lib/{utils-DNAltzXc.js → utils-DcpDOncX.js} +197 -202
  163. package/lib/utils-DcpDOncX.js.map +1 -0
  164. package/lib/zudoku.auth-auth0.js +24 -18
  165. package/lib/zudoku.auth-auth0.js.map +1 -1
  166. package/lib/zudoku.auth-clerk.js +2 -2
  167. package/lib/zudoku.auth-openid.js +124 -138
  168. package/lib/zudoku.auth-openid.js.map +1 -1
  169. package/lib/zudoku.components.js +1128 -992
  170. package/lib/zudoku.components.js.map +1 -1
  171. package/lib/zudoku.openapi-worker.js +10 -16346
  172. package/lib/zudoku.openapi-worker.js.map +1 -1
  173. package/lib/zudoku.plugin-api-keys.js +18 -18
  174. package/lib/zudoku.plugin-custom-pages.js +2 -2
  175. package/lib/zudoku.plugin-markdown.js +1 -1
  176. package/lib/zudoku.plugin-openapi.js +5 -9
  177. package/lib/zudoku.plugin-openapi.js.map +1 -1
  178. package/lib/zudoku.plugin-redirect.js +1 -1
  179. package/package.json +14 -4
  180. package/src/app/demo.tsx +0 -3
  181. package/src/app/entry.client.tsx +14 -0
  182. package/src/app/entry.server.tsx +59 -57
  183. package/src/app/standalone.tsx +0 -3
  184. package/src/lib/authentication/hook.ts +1 -3
  185. package/src/lib/authentication/providers/auth0.tsx +16 -11
  186. package/src/lib/authentication/providers/openid.tsx +12 -30
  187. package/src/lib/authentication/state.ts +44 -10
  188. package/src/lib/components/Bootstrap.tsx +36 -14
  189. package/src/lib/components/DeveloperHint.tsx +6 -1
  190. package/src/lib/components/Header.tsx +31 -42
  191. package/src/lib/components/Layout.tsx +48 -36
  192. package/src/lib/components/MobileTopNavigation.tsx +15 -18
  193. package/src/lib/components/SyntaxHighlight.tsx +81 -46
  194. package/src/lib/components/ThemeSwitch.tsx +26 -0
  195. package/src/lib/components/TopNavigation.tsx +27 -19
  196. package/src/lib/components/Zudoku.tsx +5 -10
  197. package/src/lib/components/context/ZudokuContext.ts +8 -13
  198. package/src/lib/components/navigation/Sidebar.tsx +3 -3
  199. package/src/lib/components/navigation/utils.ts +2 -2
  200. package/src/lib/core/ZudokuContext.ts +0 -8
  201. package/src/lib/errors/ErrorAlert.tsx +2 -1
  202. package/src/lib/plugins/openapi/ColorizedParam.tsx +23 -14
  203. package/src/lib/plugins/openapi/Endpoint.tsx +5 -10
  204. package/src/lib/plugins/openapi/OperationList.tsx +5 -40
  205. package/src/lib/plugins/openapi/Route.tsx +11 -12
  206. package/src/lib/plugins/openapi/Sidecar.tsx +10 -13
  207. package/src/lib/plugins/openapi/client/GraphQLClient.tsx +140 -0
  208. package/src/lib/plugins/openapi/client/GraphQLContext.tsx +16 -0
  209. package/src/lib/plugins/openapi/client/createServer.ts +2 -0
  210. package/src/lib/plugins/openapi/client/useCreateQuery.ts +18 -0
  211. package/src/lib/plugins/openapi/client/worker.ts +38 -24
  212. package/src/lib/plugins/openapi/graphql/fragment-masking.ts +11 -18
  213. package/src/lib/plugins/openapi/graphql/gql.ts +7 -25
  214. package/src/lib/plugins/openapi/graphql/graphql.ts +351 -782
  215. package/src/lib/plugins/openapi/index.tsx +40 -63
  216. package/src/lib/plugins/openapi/schema/SchemaView.tsx +1 -1
  217. package/src/lib/plugins/openapi-worker.ts +11 -1
  218. package/dist/lib/components/context/ThemeContext.d.ts +0 -2
  219. package/dist/lib/components/context/ThemeContext.js +0 -7
  220. package/dist/lib/components/context/ThemeContext.js.map +0 -1
  221. package/dist/lib/components/context/ThemeProvider.d.ts +0 -4
  222. package/dist/lib/components/context/ThemeProvider.js +0 -23
  223. package/dist/lib/components/context/ThemeProvider.js.map +0 -1
  224. package/dist/lib/plugins/openapi/client/createMemoryClient.d.ts +0 -9
  225. package/dist/lib/plugins/openapi/client/createMemoryClient.js +0 -54
  226. package/dist/lib/plugins/openapi/client/createMemoryClient.js.map +0 -1
  227. package/dist/lib/plugins/openapi/client/createWorkerClient.d.ts +0 -10
  228. package/dist/lib/plugins/openapi/client/createWorkerClient.js +0 -62
  229. package/dist/lib/plugins/openapi/client/createWorkerClient.js.map +0 -1
  230. package/dist/lib/plugins/openapi/client/interfaces.d.ts +0 -4
  231. package/dist/lib/plugins/openapi/client/interfaces.js +0 -2
  232. package/dist/lib/plugins/openapi/client/interfaces.js.map +0 -1
  233. package/dist/lib/themeToggle.d.ts +0 -1
  234. package/dist/lib/themeToggle.js +0 -7
  235. package/dist/lib/themeToggle.js.map +0 -1
  236. package/dist/lib/util/createWaitForNotify.d.ts +0 -1
  237. package/dist/lib/util/createWaitForNotify.js +0 -15
  238. package/dist/lib/util/createWaitForNotify.js.map +0 -1
  239. package/dist/vite/plugin-html-transform.d.ts +0 -2
  240. package/dist/vite/plugin-html-transform.js +0 -15
  241. package/dist/vite/plugin-html-transform.js.map +0 -1
  242. package/lib/DeveloperHint-DHdLXGHA.js +0 -16
  243. package/lib/DeveloperHint-DHdLXGHA.js.map +0 -1
  244. package/lib/Markdown-D6UxMbZm.js +0 -18059
  245. package/lib/Markdown-D6UxMbZm.js.map +0 -1
  246. package/lib/OperationList-BHUBGM0c.js +0 -621
  247. package/lib/OperationList-BHUBGM0c.js.map +0 -1
  248. package/lib/Route-B0XuN1oC.js +0 -13
  249. package/lib/Route-B0XuN1oC.js.map +0 -1
  250. package/lib/Select-DYKDahHt.js.map +0 -1
  251. package/lib/SidebarBadge-Bbt92M5K.js +0 -38
  252. package/lib/SidebarBadge-Bbt92M5K.js.map +0 -1
  253. package/lib/SlotletProvider-mhjLPG44.js +0 -241
  254. package/lib/SlotletProvider-mhjLPG44.js.map +0 -1
  255. package/lib/Spinner-ChOGyPls.js.map +0 -1
  256. package/lib/StaggeredRender-DDHSzQKE.js +0 -17
  257. package/lib/StaggeredRender-DDHSzQKE.js.map +0 -1
  258. package/lib/hook-CjQERPa7.js.map +0 -1
  259. package/lib/index-BRg5pi5D.js +0 -5902
  260. package/lib/index-BRg5pi5D.js.map +0 -1
  261. package/lib/index-DM9hrcCG.js +0 -1783
  262. package/lib/index-DM9hrcCG.js.map +0 -1
  263. package/lib/state-BsPrOUAh.js +0 -252
  264. package/lib/state-BsPrOUAh.js.map +0 -1
  265. package/lib/urql-core-35Qt_U4i.js +0 -1511
  266. package/lib/urql-core-35Qt_U4i.js.map +0 -1
  267. package/lib/useExposedProps-BxyHjPNN.js +0 -9
  268. package/lib/utils-DNAltzXc.js.map +0 -1
  269. package/src/lib/components/context/ThemeContext.tsx +0 -8
  270. package/src/lib/components/context/ThemeProvider.tsx +0 -27
  271. package/src/lib/plugins/openapi/client/createMemoryClient.ts +0 -65
  272. package/src/lib/plugins/openapi/client/createWorkerClient.ts +0 -79
  273. package/src/lib/plugins/openapi/client/interfaces.ts +0 -5
  274. package/src/lib/themeToggle.ts +0 -7
  275. package/src/lib/util/createWaitForNotify.ts +0 -18
@@ -1,778 +1,918 @@
1
- var ht = Object.defineProperty;
2
- var be = (t) => {
3
- throw TypeError(t);
1
+ var xt = Object.defineProperty;
2
+ var Ne = (e) => {
3
+ throw TypeError(e);
4
4
  };
5
- var ft = (t, e, r) => e in t ? ht(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
6
- var v = (t, e, r) => ft(t, typeof e != "symbol" ? e + "" : e, r), ye = (t, e, r) => e.has(t) || be("Cannot " + r);
7
- var l = (t, e, r) => (ye(t, e, "read from private field"), r ? r.call(t) : e.get(t)), y = (t, e, r) => e.has(t) ? be("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), m = (t, e, r, s) => (ye(t, e, "write to private field"), s ? s.call(t, r) : e.set(t, r), r);
8
- var Y = (t, e, r, s) => ({
5
+ var yt = (e, t, r) => t in e ? xt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
6
+ var S = (e, t, r) => yt(e, typeof t != "symbol" ? t + "" : t, r), Ee = (e, t, r) => t.has(e) || Ne("Cannot " + r);
7
+ var l = (e, t, r) => (Ee(e, t, "read from private field"), r ? r.call(e) : t.get(e)), N = (e, t, r) => t.has(e) ? Ne("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), y = (e, t, r, s) => (Ee(e, t, "write to private field"), s ? s.call(e, r) : t.set(e, r), r);
8
+ var J = (e, t, r, s) => ({
9
9
  set _(n) {
10
- m(t, e, n, r);
10
+ y(e, t, n, r);
11
11
  },
12
12
  get _() {
13
- return l(t, e, s);
13
+ return l(e, t, s);
14
14
  }
15
15
  });
16
- import { a as Ie, A as mt, H as ce, M as gt, u as pt } from "./AnchorLink-DYbUOP9U.js";
17
- import { e as vt, f as xt, R as bt, g as yt, h as G, b as jt, u as ue, L as te, O as Te, i as wt } from "./index-DM9hrcCG.js";
18
- import { u as Nt } from "./state-BsPrOUAh.js";
19
- import { E as _e, S as A, a as St, R as kt } from "./SlotletProvider-mhjLPG44.js";
16
+ import { a as Be, A as bt, H as he, M as jt, u as wt } from "./AnchorLink-CDlhr8gL.js";
17
+ import { d as St, R as Nt, N as re, u as Et, L as fe } from "./index-Yn8c3UWE.js";
18
+ import { u as Ct } from "./state-tsXBLONe.js";
19
+ import { E as ze, S as D, a as Pt, R as kt } from "./SlotletProvider-DyomlzGx.js";
20
20
  import { j as a } from "./jsx-runtime-B6kdoens.js";
21
- import { Button as Pt } from "./ui/Button.js";
22
- import { Callout as Ct } from "./ui/Callout.js";
23
- import Et, { StrictMode as Fe, useState as Q, useEffect as _, useRef as de, useCallback as Qe, Suspense as he, memo as Be, forwardRef as At, createContext as Le, Component as Mt, createElement as je, useMemo as re, useContext as Ot, Fragment as Dt } from "react";
24
- import { a as fe } from "./_commonjsHelpers-BkfeUUK-.js";
25
- import { B as Rt } from "./router-BsfSoK2j.js";
26
- import { a as oe } from "./StaggeredRender-DDHSzQKE.js";
27
- import { C as ze } from "./ClientOnly-E7hGysn1.js";
28
- import { ChevronRightIcon as It, ExternalLinkIcon as Tt, CircleXIcon as _t, SearchIcon as Ft, MenuIcon as Qt, MoonStarIcon as Bt, SunIcon as Lt, PanelLeftIcon as zt } from "lucide-react";
29
- import { Drawer as He, DrawerTrigger as qe, DrawerContent as Ke, DrawerTitle as $e, DrawerClose as Ht } from "./ui/Drawer.js";
30
- import { c as N } from "./cn-BmFQLtkS.js";
31
- import { u as me, a as qt, T as Kt, b as $t, V as Ut } from "./Markdown-D6UxMbZm.js";
32
- import { c as Vt, a as Ue } from "./index-BuAyrJe3.js";
33
- import { S as Ve, i as Ze, Q as Zt, n as b, m as we, j as Ne, k as M, l as Wt, o as Yt, p as Xt, q as Jt, r as Se, t as ke, v as Gt, h as Pe, w as Ce, x as er, y as tr, z as B, u as F, A as We, B as rr, g as ar, Z as sr, C as nr } from "./utils-DNAltzXc.js";
34
- import { S as ae } from "./SidebarBadge-Bbt92M5K.js";
35
- import * as se from "@radix-ui/react-collapsible";
36
- import { B as ne, S as ir } from "./Spinner-ChOGyPls.js";
37
- import { M as or, u as ee } from "./hook-CjQERPa7.js";
38
- import { DropdownMenu as lr, DropdownMenuTrigger as cr, DropdownMenuContent as ur, DropdownMenuLabel as dr, DropdownMenuSeparator as hr, DropdownMenuSub as fr, DropdownMenuSubTrigger as mr, DropdownMenuPortal as gr, DropdownMenuSubContent as pr, DropdownMenuItem as vr } from "./ui/DropdownMenu.js";
39
- import { VisuallyHidden as Ye } from "@radix-ui/react-visually-hidden";
40
- function xr({ error: t }) {
41
- return /* @__PURE__ */ a.jsx(_e, { error: t });
21
+ import { Button as At } from "./ui/Button.js";
22
+ import { Callout as Dt } from "./ui/Callout.js";
23
+ import { S as He, l as Ue, Q as Ot, n as w, m as Ce, o as Pe, p as O, q as Mt, r as Rt, t as It, v as Tt, w as ke, x as Ae, y as _t, h as De, z as Oe, A as Ft, d as Qt, B as $e, C as qt, j as Q, u as F, D as Ke, E as Lt, g as Bt, Z as zt } from "./utils-DcpDOncX.js";
24
+ import { M as Ht, u as ae } from "./hook-hEqe7fPB.js";
25
+ import * as G from "react";
26
+ import Ve, { StrictMode as Ze, useState as q, useEffect as L, useRef as me, useCallback as Ut, Suspense as ge, memo as Ye, forwardRef as $t, createContext as We, Component as Kt, createElement as Me, useMemo as se, useContext as Vt, Fragment as Zt } from "react";
27
+ import { a as pe, c as Yt } from "./_commonjsHelpers-BkfeUUK-.js";
28
+ import { B as Wt } from "./router-lfyopgBI.js";
29
+ import { I as Xt, y as Jt, u as ve, j as xe, O as Xe } from "./index-Czzd9rjU.js";
30
+ import { S as le, a as ne } from "./SidebarBadge-DxFJcJ6V.js";
31
+ import { C as ye } from "./ClientOnly-E7hGysn1.js";
32
+ import { ChevronRightIcon as Gt, ExternalLinkIcon as er, CircleXIcon as tr, SearchIcon as rr, MoonStarIcon as ar, SunIcon as sr, MenuIcon as nr, PanelLeftIcon as ir } from "lucide-react";
33
+ import { Drawer as Je, DrawerTrigger as Ge, DrawerContent as et, DrawerTitle as tt } from "./ui/Drawer.js";
34
+ import { c as R } from "./cn-BmFQLtkS.js";
35
+ import { u as be, a as or, V as lr } from "./Markdown-ievDDhFT.js";
36
+ import { c as cr, a as ur } from "./index-BuAyrJe3.js";
37
+ import * as ie from "@radix-ui/react-collapsible";
38
+ import { B as ce } from "./Button-jK0EsymC.js";
39
+ import { DropdownMenu as dr, DropdownMenuTrigger as hr, DropdownMenuContent as fr, DropdownMenuLabel as mr, DropdownMenuSeparator as gr, DropdownMenuSub as pr, DropdownMenuSubTrigger as vr, DropdownMenuPortal as xr, DropdownMenuSubContent as yr, DropdownMenuItem as br } from "./ui/DropdownMenu.js";
40
+ import { VisuallyHidden as rt } from "@radix-ui/react-visually-hidden";
41
+ import { z as jr, J as wr } from "./SyntaxHighlight-DkLOsjHS.js";
42
+ import { Z as Sr } from "./invariant-Caa8-XvF.js";
43
+ import { S as Nr } from "./Spinner-3cQDBVGr.js";
44
+ function Er({ error: e }) {
45
+ return /* @__PURE__ */ a.jsx(ze, { error: e });
42
46
  }
43
- var Z = {};
44
- const br = /* @__PURE__ */ fe(Rt), yr = /* @__PURE__ */ fe(vt), jr = /* @__PURE__ */ fe(xt);
45
- Object.defineProperty(Z, "__esModule", { value: !0 });
46
- var wr = Et, E = br, ge = yr, O = jr;
47
- function Nr(t) {
48
- if (t && t.__esModule) return t;
49
- var e = /* @__PURE__ */ Object.create(null);
50
- return t && Object.keys(t).forEach(function(r) {
51
- if (r !== "default") {
52
- var s = Object.getOwnPropertyDescriptor(t, r);
53
- Object.defineProperty(e, r, s.get ? s : {
54
- enumerable: !0,
55
- get: function() {
56
- return t[r];
57
- }
58
- });
59
- }
60
- }), e.default = t, Object.freeze(e);
61
- }
62
- var P = /* @__PURE__ */ Nr(wr);
63
- function Sr({
64
- basename: t,
65
- children: e,
66
- location: r = "/",
67
- future: s
68
- }) {
69
- typeof r == "string" && (r = O.parsePath(r));
70
- let n = E.Action.Pop, i = {
71
- pathname: r.pathname || "/",
72
- search: r.search || "",
73
- hash: r.hash || "",
74
- state: r.state != null ? r.state : null,
75
- key: r.key || "default"
76
- }, o = Xe();
77
- return /* @__PURE__ */ P.createElement(O.Router, {
78
- basename: t,
79
- children: e,
80
- location: i,
81
- navigationType: n,
82
- navigator: o,
83
- future: s,
84
- static: !0
85
- });
86
- }
87
- function kr({
88
- context: t,
89
- router: e,
90
- hydrate: r = !0,
91
- nonce: s
92
- }) {
93
- e && t || (process.env.NODE_ENV !== "production" ? E.UNSAFE_invariant(!1, "You must provide `router` and `context` to <StaticRouterProvider>") : E.UNSAFE_invariant(!1));
94
- let n = {
95
- router: e,
96
- navigator: Xe(),
97
- static: !0,
98
- staticContext: t,
99
- basename: t.basename || "/"
100
- }, i = /* @__PURE__ */ new Map(), o = "";
101
- if (r !== !1) {
102
- let c = {
103
- loaderData: t.loaderData,
104
- actionData: t.actionData,
105
- errors: Cr(t.errors)
106
- };
107
- o = `window.__staticRouterHydrationData = JSON.parse(${Rr(JSON.stringify(JSON.stringify(c)))});`;
108
- }
109
- let {
110
- state: u
111
- } = n.router;
112
- return /* @__PURE__ */ P.createElement(P.Fragment, null, /* @__PURE__ */ P.createElement(O.UNSAFE_DataRouterContext.Provider, {
113
- value: n
114
- }, /* @__PURE__ */ P.createElement(O.UNSAFE_DataRouterStateContext.Provider, {
115
- value: u
116
- }, /* @__PURE__ */ P.createElement(O.UNSAFE_FetchersContext.Provider, {
117
- value: i
118
- }, /* @__PURE__ */ P.createElement(O.UNSAFE_ViewTransitionContext.Provider, {
119
- value: {
120
- isTransitioning: !1
121
- }
122
- }, /* @__PURE__ */ P.createElement(O.Router, {
123
- basename: n.basename,
124
- location: u.location,
125
- navigationType: u.historyAction,
126
- navigator: n.navigator,
127
- static: n.static,
128
- future: {
129
- v7_relativeSplatPath: e.future.v7_relativeSplatPath
130
- }
131
- }, /* @__PURE__ */ P.createElement(Pr, {
132
- routes: e.routes,
133
- future: e.future,
134
- state: u
135
- })))))), o ? /* @__PURE__ */ P.createElement("script", {
136
- suppressHydrationWarning: !0,
137
- nonce: s,
138
- dangerouslySetInnerHTML: {
139
- __html: o
140
- }
141
- }) : null);
142
- }
143
- function Pr({
144
- routes: t,
145
- future: e,
146
- state: r
147
- }) {
148
- return ge.UNSAFE_useRoutesImpl(t, void 0, r, e);
149
- }
150
- function Cr(t) {
151
- if (!t) return null;
152
- let e = Object.entries(t), r = {};
153
- for (let [s, n] of e)
154
- E.isRouteErrorResponse(n) ? r[s] = {
155
- ...n,
156
- __type: "RouteErrorResponse"
157
- } : n instanceof Error ? r[s] = {
158
- message: n.message,
159
- __type: "Error",
160
- // If this is a subclass (i.e., ReferenceError), send up the type so we
161
- // can re-create the same type during hydration.
162
- ...n.name !== "Error" ? {
163
- __subType: n.name
164
- } : {}
165
- } : r[s] = n;
166
- return r;
167
- }
168
- function Xe() {
169
- return {
170
- createHref: Je,
171
- encodeLocation: Ge,
172
- push(t) {
173
- throw new Error(`You cannot use navigator.push() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(t)})\` somewhere in your app.`);
174
- },
175
- replace(t) {
176
- throw new Error(`You cannot use navigator.replace() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(t)}, { replace: true })\` somewhere in your app.`);
177
- },
178
- go(t) {
179
- throw new Error(`You cannot use navigator.go() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${t})\` somewhere in your app.`);
180
- },
181
- back() {
182
- throw new Error("You cannot use navigator.back() on the server because it is a stateless environment.");
183
- },
184
- forward() {
185
- throw new Error("You cannot use navigator.forward() on the server because it is a stateless environment.");
186
- }
187
- };
188
- }
189
- function Er(t, e) {
190
- return E.createStaticHandler(t, {
191
- ...e,
192
- mapRouteProperties: ge.UNSAFE_mapRouteProperties
193
- });
194
- }
195
- function Ar(t, e, r = {}) {
196
- let s = {}, n = E.UNSAFE_convertRoutesToDataRoutes(t, ge.UNSAFE_mapRouteProperties, void 0, s), i = e.matches.map((u) => {
197
- let c = s[u.route.id] || u.route;
198
- return {
199
- ...u,
200
- route: c
201
- };
202
- }), o = (u) => `You cannot use router.${u}() on the server because it is a stateless environment`;
203
- return {
204
- get basename() {
205
- return e.basename;
206
- },
207
- get future() {
208
- var u, c;
209
- return {
210
- v7_fetcherPersist: !1,
211
- v7_normalizeFormMethod: !1,
212
- v7_partialHydration: ((u = r.future) == null ? void 0 : u.v7_partialHydration) === !0,
213
- v7_prependBasename: !1,
214
- v7_relativeSplatPath: ((c = r.future) == null ? void 0 : c.v7_relativeSplatPath) === !0,
215
- v7_skipActionErrorRevalidation: !1
216
- };
217
- },
218
- get state() {
219
- return {
220
- historyAction: E.Action.Pop,
221
- location: e.location,
222
- matches: i,
223
- loaderData: e.loaderData,
224
- actionData: e.actionData,
225
- errors: e.errors,
226
- initialized: !0,
227
- navigation: E.IDLE_NAVIGATION,
228
- restoreScrollPosition: null,
229
- preventScrollReset: !1,
230
- revalidation: "idle",
231
- fetchers: /* @__PURE__ */ new Map(),
232
- blockers: /* @__PURE__ */ new Map()
233
- };
234
- },
235
- get routes() {
236
- return n;
237
- },
238
- get window() {
239
- },
240
- initialize() {
241
- throw o("initialize");
242
- },
243
- subscribe() {
244
- throw o("subscribe");
245
- },
246
- enableScrollRestoration() {
247
- throw o("enableScrollRestoration");
248
- },
249
- navigate() {
250
- throw o("navigate");
251
- },
252
- fetch() {
253
- throw o("fetch");
254
- },
255
- revalidate() {
256
- throw o("revalidate");
257
- },
258
- createHref: Je,
259
- encodeLocation: Ge,
260
- getFetcher() {
261
- return E.IDLE_FETCHER;
262
- },
263
- deleteFetcher() {
264
- throw o("deleteFetcher");
265
- },
266
- dispose() {
267
- throw o("dispose");
268
- },
269
- getBlocker() {
270
- return E.IDLE_BLOCKER;
271
- },
272
- deleteBlocker() {
273
- throw o("deleteBlocker");
274
- },
275
- patchRoutes() {
276
- throw o("patchRoutes");
277
- },
278
- _internalFetchControllers: /* @__PURE__ */ new Map(),
279
- _internalActiveDeferreds: /* @__PURE__ */ new Map(),
280
- _internalSetRoutes() {
281
- throw o("_internalSetRoutes");
282
- }
283
- };
284
- }
285
- function Je(t) {
286
- return typeof t == "string" ? t : O.createPath(t);
287
- }
288
- function Ge(t) {
289
- let e = typeof t == "string" ? t : O.createPath(t);
290
- e = e.replace(/ $/, "%20");
291
- let r = Mr.test(e) ? new URL(e) : new URL(e, "http://localhost");
292
- return {
293
- pathname: r.pathname,
294
- search: r.search,
295
- hash: r.hash
296
- };
297
- }
298
- const Mr = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Or = {
299
- "&": "\\u0026",
300
- ">": "\\u003e",
301
- "<": "\\u003c",
302
- "\u2028": "\\u2028",
303
- "\u2029": "\\u2029"
304
- }, Dr = /[&><\u2028\u2029]/g;
305
- function Rr(t) {
306
- return t.replace(Dr, (e) => Or[e]);
307
- }
308
- Z.StaticRouter = Sr;
309
- var Ir = Z.StaticRouterProvider = kr;
310
- Z.createStaticHandler = Er;
311
- Z.createStaticRouter = Ar;
312
- const Tr = ({
313
- router: t,
314
- hydrate: e = !1
315
- }) => /* @__PURE__ */ a.jsx(Fe, { children: /* @__PURE__ */ a.jsx(Ie, { children: /* @__PURE__ */ a.jsx(oe.Provider, { value: { stagger: !e }, children: /* @__PURE__ */ a.jsx(bt, { router: t }) }) }) }), _r = ({
316
- router: t,
317
- context: e,
318
- helmetContext: r
319
- }) => /* @__PURE__ */ a.jsx(Fe, { children: /* @__PURE__ */ a.jsx(Ie, { context: r, children: /* @__PURE__ */ a.jsx(Ir, { router: t, context: e }) }) });
320
- var C, Oe, Fr = (Oe = class extends Ve {
321
- constructor(e = {}) {
47
+ var k, Qe, Cr = (Qe = class extends He {
48
+ constructor(t = {}) {
322
49
  super();
323
- y(this, C);
324
- this.config = e, m(this, C, /* @__PURE__ */ new Map());
50
+ N(this, k);
51
+ this.config = t, y(this, k, /* @__PURE__ */ new Map());
325
52
  }
326
- build(e, r, s) {
327
- const n = r.queryKey, i = r.queryHash ?? Ze(n, r);
328
- let o = this.get(i);
329
- return o || (o = new Zt({
53
+ build(t, r, s) {
54
+ const n = r.queryKey, o = r.queryHash ?? Ue(n, r);
55
+ let i = this.get(o);
56
+ return i || (i = new Ot({
330
57
  cache: this,
331
58
  queryKey: n,
332
- queryHash: i,
333
- options: e.defaultQueryOptions(r),
59
+ queryHash: o,
60
+ options: t.defaultQueryOptions(r),
334
61
  state: s,
335
- defaultOptions: e.getQueryDefaults(n)
336
- }), this.add(o)), o;
62
+ defaultOptions: t.getQueryDefaults(n)
63
+ }), this.add(i)), i;
337
64
  }
338
- add(e) {
339
- l(this, C).has(e.queryHash) || (l(this, C).set(e.queryHash, e), this.notify({
65
+ add(t) {
66
+ l(this, k).has(t.queryHash) || (l(this, k).set(t.queryHash, t), this.notify({
340
67
  type: "added",
341
- query: e
68
+ query: t
342
69
  }));
343
70
  }
344
- remove(e) {
345
- const r = l(this, C).get(e.queryHash);
346
- r && (e.destroy(), r === e && l(this, C).delete(e.queryHash), this.notify({ type: "removed", query: e }));
71
+ remove(t) {
72
+ const r = l(this, k).get(t.queryHash);
73
+ r && (t.destroy(), r === t && l(this, k).delete(t.queryHash), this.notify({ type: "removed", query: t }));
347
74
  }
348
75
  clear() {
349
- b.batch(() => {
350
- this.getAll().forEach((e) => {
351
- this.remove(e);
76
+ w.batch(() => {
77
+ this.getAll().forEach((t) => {
78
+ this.remove(t);
352
79
  });
353
80
  });
354
81
  }
355
- get(e) {
356
- return l(this, C).get(e);
82
+ get(t) {
83
+ return l(this, k).get(t);
357
84
  }
358
85
  getAll() {
359
- return [...l(this, C).values()];
86
+ return [...l(this, k).values()];
360
87
  }
361
- find(e) {
362
- const r = { exact: !0, ...e };
88
+ find(t) {
89
+ const r = { exact: !0, ...t };
363
90
  return this.getAll().find(
364
- (s) => we(r, s)
91
+ (s) => Ce(r, s)
365
92
  );
366
93
  }
367
- findAll(e = {}) {
94
+ findAll(t = {}) {
368
95
  const r = this.getAll();
369
- return Object.keys(e).length > 0 ? r.filter((s) => we(e, s)) : r;
96
+ return Object.keys(t).length > 0 ? r.filter((s) => Ce(t, s)) : r;
370
97
  }
371
- notify(e) {
372
- b.batch(() => {
98
+ notify(t) {
99
+ w.batch(() => {
373
100
  this.listeners.forEach((r) => {
374
- r(e);
101
+ r(t);
375
102
  });
376
103
  });
377
104
  }
378
105
  onFocus() {
379
- b.batch(() => {
380
- this.getAll().forEach((e) => {
381
- e.onFocus();
106
+ w.batch(() => {
107
+ this.getAll().forEach((t) => {
108
+ t.onFocus();
382
109
  });
383
110
  });
384
111
  }
385
112
  onOnline() {
386
- b.batch(() => {
387
- this.getAll().forEach((e) => {
388
- e.onOnline();
113
+ w.batch(() => {
114
+ this.getAll().forEach((t) => {
115
+ t.onOnline();
389
116
  });
390
117
  });
391
118
  }
392
- }, C = new WeakMap(), Oe), x, V, De, Qr = (De = class extends Ve {
393
- constructor(e = {}) {
119
+ }, k = new WeakMap(), Qe), j, Z, qe, Pr = (qe = class extends He {
120
+ constructor(t = {}) {
394
121
  super();
395
- y(this, x);
396
- y(this, V);
397
- this.config = e, m(this, x, /* @__PURE__ */ new Map()), m(this, V, Date.now());
122
+ N(this, j);
123
+ N(this, Z);
124
+ this.config = t, y(this, j, /* @__PURE__ */ new Map()), y(this, Z, Date.now());
398
125
  }
399
- build(e, r, s) {
400
- const n = new or({
126
+ build(t, r, s) {
127
+ const n = new Ht({
401
128
  mutationCache: this,
402
- mutationId: ++Y(this, V)._,
403
- options: e.defaultMutationOptions(r),
129
+ mutationId: ++J(this, Z)._,
130
+ options: t.defaultMutationOptions(r),
404
131
  state: s
405
132
  });
406
133
  return this.add(n), n;
407
134
  }
408
- add(e) {
409
- const r = X(e), s = l(this, x).get(r) ?? [];
410
- s.push(e), l(this, x).set(r, s), this.notify({ type: "added", mutation: e });
135
+ add(t) {
136
+ const r = ee(t), s = l(this, j).get(r) ?? [];
137
+ s.push(t), l(this, j).set(r, s), this.notify({ type: "added", mutation: t });
411
138
  }
412
- remove(e) {
139
+ remove(t) {
413
140
  var s;
414
- const r = X(e);
415
- if (l(this, x).has(r)) {
416
- const n = (s = l(this, x).get(r)) == null ? void 0 : s.filter((i) => i !== e);
417
- n && (n.length === 0 ? l(this, x).delete(r) : l(this, x).set(r, n));
141
+ const r = ee(t);
142
+ if (l(this, j).has(r)) {
143
+ const n = (s = l(this, j).get(r)) == null ? void 0 : s.filter((o) => o !== t);
144
+ n && (n.length === 0 ? l(this, j).delete(r) : l(this, j).set(r, n));
418
145
  }
419
- this.notify({ type: "removed", mutation: e });
146
+ this.notify({ type: "removed", mutation: t });
420
147
  }
421
- canRun(e) {
148
+ canRun(t) {
422
149
  var s;
423
- const r = (s = l(this, x).get(X(e))) == null ? void 0 : s.find((n) => n.state.status === "pending");
424
- return !r || r === e;
150
+ const r = (s = l(this, j).get(ee(t))) == null ? void 0 : s.find((n) => n.state.status === "pending");
151
+ return !r || r === t;
425
152
  }
426
- runNext(e) {
153
+ runNext(t) {
427
154
  var s;
428
- const r = (s = l(this, x).get(X(e))) == null ? void 0 : s.find((n) => n !== e && n.state.isPaused);
155
+ const r = (s = l(this, j).get(ee(t))) == null ? void 0 : s.find((n) => n !== t && n.state.isPaused);
429
156
  return (r == null ? void 0 : r.continue()) ?? Promise.resolve();
430
157
  }
431
158
  clear() {
432
- b.batch(() => {
433
- this.getAll().forEach((e) => {
434
- this.remove(e);
159
+ w.batch(() => {
160
+ this.getAll().forEach((t) => {
161
+ this.remove(t);
435
162
  });
436
163
  });
437
164
  }
438
165
  getAll() {
439
- return [...l(this, x).values()].flat();
166
+ return [...l(this, j).values()].flat();
440
167
  }
441
- find(e) {
442
- const r = { exact: !0, ...e };
168
+ find(t) {
169
+ const r = { exact: !0, ...t };
443
170
  return this.getAll().find(
444
- (s) => Ne(r, s)
171
+ (s) => Pe(r, s)
445
172
  );
446
173
  }
447
- findAll(e = {}) {
448
- return this.getAll().filter((r) => Ne(e, r));
174
+ findAll(t = {}) {
175
+ return this.getAll().filter((r) => Pe(t, r));
449
176
  }
450
- notify(e) {
451
- b.batch(() => {
177
+ notify(t) {
178
+ w.batch(() => {
452
179
  this.listeners.forEach((r) => {
453
- r(e);
180
+ r(t);
454
181
  });
455
182
  });
456
183
  }
457
184
  resumePausedMutations() {
458
- const e = this.getAll().filter((r) => r.state.isPaused);
459
- return b.batch(
185
+ const t = this.getAll().filter((r) => r.state.isPaused);
186
+ return w.batch(
460
187
  () => Promise.all(
461
- e.map((r) => r.continue().catch(M))
188
+ t.map((r) => r.continue().catch(O))
462
189
  )
463
190
  );
464
191
  }
465
- }, x = new WeakMap(), V = new WeakMap(), De);
466
- function X(t) {
467
- var e;
468
- return ((e = t.options.scope) == null ? void 0 : e.id) ?? String(t.mutationId);
192
+ }, j = new WeakMap(), Z = new WeakMap(), qe);
193
+ function ee(e) {
194
+ var t;
195
+ return ((t = e.options.scope) == null ? void 0 : t.id) ?? String(e.mutationId);
469
196
  }
470
- function Ee(t) {
197
+ function Re(e) {
471
198
  return {
472
- onFetch: (e, r) => {
473
- var j, S, p, k, h;
474
- const s = e.options, n = (p = (S = (j = e.fetchOptions) == null ? void 0 : j.meta) == null ? void 0 : S.fetchMore) == null ? void 0 : p.direction, i = ((k = e.state.data) == null ? void 0 : k.pages) || [], o = ((h = e.state.data) == null ? void 0 : h.pageParams) || [];
475
- let u = { pages: [], pageParams: [] }, c = 0;
476
- const g = async () => {
477
- let f = !1;
478
- const L = (w) => {
479
- Object.defineProperty(w, "signal", {
199
+ onFetch: (t, r) => {
200
+ var p, f, h, g, v;
201
+ const s = t.options, n = (h = (f = (p = t.fetchOptions) == null ? void 0 : p.meta) == null ? void 0 : f.fetchMore) == null ? void 0 : h.direction, o = ((g = t.state.data) == null ? void 0 : g.pages) || [], i = ((v = t.state.data) == null ? void 0 : v.pageParams) || [];
202
+ let c = { pages: [], pageParams: [] }, u = 0;
203
+ const d = async () => {
204
+ let m = !1;
205
+ const E = (b) => {
206
+ Object.defineProperty(b, "signal", {
480
207
  enumerable: !0,
481
- get: () => (e.signal.aborted ? f = !0 : e.signal.addEventListener("abort", () => {
482
- f = !0;
483
- }), e.signal)
208
+ get: () => (t.signal.aborted ? m = !0 : t.signal.addEventListener("abort", () => {
209
+ m = !0;
210
+ }), t.signal)
484
211
  });
485
- }, ut = Wt(e.options, e.fetchOptions), pe = async (w, D, $) => {
486
- if (f)
212
+ }, W = Mt(t.options, t.fetchOptions), $ = async (b, C, K) => {
213
+ if (m)
487
214
  return Promise.reject();
488
- if (D == null && w.pages.length)
489
- return Promise.resolve(w);
490
- const W = {
491
- queryKey: e.queryKey,
492
- pageParam: D,
493
- direction: $ ? "backward" : "forward",
494
- meta: e.options.meta
215
+ if (C == null && b.pages.length)
216
+ return Promise.resolve(b);
217
+ const X = {
218
+ queryKey: t.queryKey,
219
+ pageParam: C,
220
+ direction: K ? "backward" : "forward",
221
+ meta: t.options.meta
495
222
  };
496
- L(W);
497
- const dt = await ut(
498
- W
499
- ), { maxPages: ve } = e.options, xe = $ ? Yt : Xt;
223
+ E(X);
224
+ const vt = await W(
225
+ X
226
+ ), { maxPages: we } = t.options, Se = K ? Rt : It;
500
227
  return {
501
- pages: xe(w.pages, dt, ve),
502
- pageParams: xe(w.pageParams, D, ve)
228
+ pages: Se(b.pages, vt, we),
229
+ pageParams: Se(b.pageParams, C, we)
503
230
  };
504
231
  };
505
- if (n && i.length) {
506
- const w = n === "backward", D = w ? Br : Ae, $ = {
507
- pages: i,
508
- pageParams: o
509
- }, W = D(s, $);
510
- u = await pe($, W, w);
232
+ if (n && o.length) {
233
+ const b = n === "backward", C = b ? kr : Ie, K = {
234
+ pages: o,
235
+ pageParams: i
236
+ }, X = C(s, K);
237
+ c = await $(K, X, b);
511
238
  } else {
512
- const w = t ?? i.length;
239
+ const b = e ?? o.length;
513
240
  do {
514
- const D = c === 0 ? o[0] ?? s.initialPageParam : Ae(s, u);
515
- if (c > 0 && D == null)
241
+ const C = u === 0 ? i[0] ?? s.initialPageParam : Ie(s, c);
242
+ if (u > 0 && C == null)
516
243
  break;
517
- u = await pe(u, D), c++;
518
- } while (c < w);
244
+ c = await $(c, C), u++;
245
+ } while (u < b);
519
246
  }
520
- return u;
247
+ return c;
521
248
  };
522
- e.options.persister ? e.fetchFn = () => {
523
- var f, L;
524
- return (L = (f = e.options).persister) == null ? void 0 : L.call(
525
- f,
526
- g,
249
+ t.options.persister ? t.fetchFn = () => {
250
+ var m, E;
251
+ return (E = (m = t.options).persister) == null ? void 0 : E.call(
252
+ m,
253
+ d,
527
254
  {
528
- queryKey: e.queryKey,
529
- meta: e.options.meta,
530
- signal: e.signal
255
+ queryKey: t.queryKey,
256
+ meta: t.options.meta,
257
+ signal: t.signal
531
258
  },
532
259
  r
533
260
  );
534
- } : e.fetchFn = g;
261
+ } : t.fetchFn = d;
535
262
  }
536
263
  };
537
264
  }
538
- function Ae(t, { pages: e, pageParams: r }) {
539
- const s = e.length - 1;
540
- return e.length > 0 ? t.getNextPageParam(
541
- e[s],
542
- e,
265
+ function Ie(e, { pages: t, pageParams: r }) {
266
+ const s = t.length - 1;
267
+ return t.length > 0 ? e.getNextPageParam(
268
+ t[s],
269
+ t,
543
270
  r[s],
544
271
  r
545
272
  ) : void 0;
546
273
  }
547
- function Br(t, { pages: e, pageParams: r }) {
274
+ function kr(e, { pages: t, pageParams: r }) {
548
275
  var s;
549
- return e.length > 0 ? (s = t.getPreviousPageParam) == null ? void 0 : s.call(t, e[0], e, r[0], r) : void 0;
276
+ return t.length > 0 ? (s = e.getPreviousPageParam) == null ? void 0 : s.call(e, t[0], t, r[0], r) : void 0;
550
277
  }
551
- var d, R, I, z, H, T, q, K, Re, Lr = (Re = class {
552
- constructor(t = {}) {
553
- y(this, d);
554
- y(this, R);
555
- y(this, I);
556
- y(this, z);
557
- y(this, H);
558
- y(this, T);
559
- y(this, q);
560
- y(this, K);
561
- m(this, d, t.queryCache || new Fr()), m(this, R, t.mutationCache || new Qr()), m(this, I, t.defaultOptions || {}), m(this, z, /* @__PURE__ */ new Map()), m(this, H, /* @__PURE__ */ new Map()), m(this, T, 0);
278
+ var x, I, T, B, z, _, H, U, Le, Ar = (Le = class {
279
+ constructor(e = {}) {
280
+ N(this, x);
281
+ N(this, I);
282
+ N(this, T);
283
+ N(this, B);
284
+ N(this, z);
285
+ N(this, _);
286
+ N(this, H);
287
+ N(this, U);
288
+ y(this, x, e.queryCache || new Cr()), y(this, I, e.mutationCache || new Pr()), y(this, T, e.defaultOptions || {}), y(this, B, /* @__PURE__ */ new Map()), y(this, z, /* @__PURE__ */ new Map()), y(this, _, 0);
562
289
  }
563
290
  mount() {
564
- Y(this, T)._++, l(this, T) === 1 && (m(this, q, Jt.subscribe(async (t) => {
565
- t && (await this.resumePausedMutations(), l(this, d).onFocus());
566
- })), m(this, K, Se.subscribe(async (t) => {
567
- t && (await this.resumePausedMutations(), l(this, d).onOnline());
291
+ J(this, _)._++, l(this, _) === 1 && (y(this, H, Tt.subscribe(async (e) => {
292
+ e && (await this.resumePausedMutations(), l(this, x).onFocus());
293
+ })), y(this, U, ke.subscribe(async (e) => {
294
+ e && (await this.resumePausedMutations(), l(this, x).onOnline());
568
295
  })));
569
296
  }
570
297
  unmount() {
571
- var t, e;
572
- Y(this, T)._--, l(this, T) === 0 && ((t = l(this, q)) == null || t.call(this), m(this, q, void 0), (e = l(this, K)) == null || e.call(this), m(this, K, void 0));
298
+ var e, t;
299
+ J(this, _)._--, l(this, _) === 0 && ((e = l(this, H)) == null || e.call(this), y(this, H, void 0), (t = l(this, U)) == null || t.call(this), y(this, U, void 0));
573
300
  }
574
- isFetching(t) {
575
- return l(this, d).findAll({ ...t, fetchStatus: "fetching" }).length;
301
+ isFetching(e) {
302
+ return l(this, x).findAll({ ...e, fetchStatus: "fetching" }).length;
576
303
  }
577
- isMutating(t) {
578
- return l(this, R).findAll({ ...t, status: "pending" }).length;
304
+ isMutating(e) {
305
+ return l(this, I).findAll({ ...e, status: "pending" }).length;
579
306
  }
580
- getQueryData(t) {
307
+ getQueryData(e) {
581
308
  var r;
582
- const e = this.defaultQueryOptions({ queryKey: t });
583
- return (r = l(this, d).get(e.queryHash)) == null ? void 0 : r.state.data;
309
+ const t = this.defaultQueryOptions({ queryKey: e });
310
+ return (r = l(this, x).get(t.queryHash)) == null ? void 0 : r.state.data;
584
311
  }
585
- ensureQueryData(t) {
586
- const e = this.getQueryData(t.queryKey);
587
- if (e === void 0)
588
- return this.fetchQuery(t);
312
+ ensureQueryData(e) {
313
+ const t = this.getQueryData(e.queryKey);
314
+ if (t === void 0)
315
+ return this.fetchQuery(e);
589
316
  {
590
- const r = this.defaultQueryOptions(t), s = l(this, d).build(this, r);
591
- return t.revalidateIfStale && s.isStaleByTime(ke(r.staleTime, s)) && this.prefetchQuery(r), Promise.resolve(e);
317
+ const r = this.defaultQueryOptions(e), s = l(this, x).build(this, r);
318
+ return e.revalidateIfStale && s.isStaleByTime(Ae(r.staleTime, s)) && this.prefetchQuery(r), Promise.resolve(t);
592
319
  }
593
320
  }
594
- getQueriesData(t) {
595
- return l(this, d).findAll(t).map(({ queryKey: e, state: r }) => {
321
+ getQueriesData(e) {
322
+ return l(this, x).findAll(e).map(({ queryKey: t, state: r }) => {
596
323
  const s = r.data;
597
- return [e, s];
324
+ return [t, s];
598
325
  });
599
326
  }
600
- setQueryData(t, e, r) {
601
- const s = this.defaultQueryOptions({ queryKey: t }), n = l(this, d).get(
327
+ setQueryData(e, t, r) {
328
+ const s = this.defaultQueryOptions({ queryKey: e }), n = l(this, x).get(
602
329
  s.queryHash
603
- ), i = n == null ? void 0 : n.state.data, o = Gt(e, i);
604
- if (o !== void 0)
605
- return l(this, d).build(this, s).setData(o, { ...r, manual: !0 });
330
+ ), o = n == null ? void 0 : n.state.data, i = _t(t, o);
331
+ if (i !== void 0)
332
+ return l(this, x).build(this, s).setData(i, { ...r, manual: !0 });
606
333
  }
607
- setQueriesData(t, e, r) {
608
- return b.batch(
609
- () => l(this, d).findAll(t).map(({ queryKey: s }) => [
334
+ setQueriesData(e, t, r) {
335
+ return w.batch(
336
+ () => l(this, x).findAll(e).map(({ queryKey: s }) => [
610
337
  s,
611
- this.setQueryData(s, e, r)
338
+ this.setQueryData(s, t, r)
612
339
  ])
613
340
  );
614
341
  }
615
- getQueryState(t) {
342
+ getQueryState(e) {
616
343
  var r;
617
- const e = this.defaultQueryOptions({ queryKey: t });
618
- return (r = l(this, d).get(e.queryHash)) == null ? void 0 : r.state;
619
- }
620
- removeQueries(t) {
621
- const e = l(this, d);
622
- b.batch(() => {
623
- e.findAll(t).forEach((r) => {
624
- e.remove(r);
344
+ const t = this.defaultQueryOptions({ queryKey: e });
345
+ return (r = l(this, x).get(t.queryHash)) == null ? void 0 : r.state;
346
+ }
347
+ removeQueries(e) {
348
+ const t = l(this, x);
349
+ w.batch(() => {
350
+ t.findAll(e).forEach((r) => {
351
+ t.remove(r);
625
352
  });
626
353
  });
627
354
  }
628
- resetQueries(t, e) {
629
- const r = l(this, d), s = {
355
+ resetQueries(e, t) {
356
+ const r = l(this, x), s = {
630
357
  type: "active",
631
- ...t
358
+ ...e
632
359
  };
633
- return b.batch(() => (r.findAll(t).forEach((n) => {
360
+ return w.batch(() => (r.findAll(e).forEach((n) => {
634
361
  n.reset();
635
- }), this.refetchQueries(s, e)));
362
+ }), this.refetchQueries(s, t)));
636
363
  }
637
- cancelQueries(t = {}, e = {}) {
638
- const r = { revert: !0, ...e }, s = b.batch(
639
- () => l(this, d).findAll(t).map((n) => n.cancel(r))
364
+ cancelQueries(e = {}, t = {}) {
365
+ const r = { revert: !0, ...t }, s = w.batch(
366
+ () => l(this, x).findAll(e).map((n) => n.cancel(r))
640
367
  );
641
- return Promise.all(s).then(M).catch(M);
368
+ return Promise.all(s).then(O).catch(O);
642
369
  }
643
- invalidateQueries(t = {}, e = {}) {
644
- return b.batch(() => {
645
- if (l(this, d).findAll(t).forEach((s) => {
370
+ invalidateQueries(e = {}, t = {}) {
371
+ return w.batch(() => {
372
+ if (l(this, x).findAll(e).forEach((s) => {
646
373
  s.invalidate();
647
- }), t.refetchType === "none")
374
+ }), e.refetchType === "none")
648
375
  return Promise.resolve();
649
376
  const r = {
650
- ...t,
651
- type: t.refetchType ?? t.type ?? "active"
377
+ ...e,
378
+ type: e.refetchType ?? e.type ?? "active"
652
379
  };
653
- return this.refetchQueries(r, e);
380
+ return this.refetchQueries(r, t);
654
381
  });
655
382
  }
656
- refetchQueries(t = {}, e) {
383
+ refetchQueries(e = {}, t) {
657
384
  const r = {
658
- ...e,
659
- cancelRefetch: (e == null ? void 0 : e.cancelRefetch) ?? !0
660
- }, s = b.batch(
661
- () => l(this, d).findAll(t).filter((n) => !n.isDisabled()).map((n) => {
662
- let i = n.fetch(void 0, r);
663
- return r.throwOnError || (i = i.catch(M)), n.state.fetchStatus === "paused" ? Promise.resolve() : i;
385
+ ...t,
386
+ cancelRefetch: (t == null ? void 0 : t.cancelRefetch) ?? !0
387
+ }, s = w.batch(
388
+ () => l(this, x).findAll(e).filter((n) => !n.isDisabled()).map((n) => {
389
+ let o = n.fetch(void 0, r);
390
+ return r.throwOnError || (o = o.catch(O)), n.state.fetchStatus === "paused" ? Promise.resolve() : o;
664
391
  })
665
392
  );
666
- return Promise.all(s).then(M);
393
+ return Promise.all(s).then(O);
667
394
  }
668
- fetchQuery(t) {
669
- const e = this.defaultQueryOptions(t);
670
- e.retry === void 0 && (e.retry = !1);
671
- const r = l(this, d).build(this, e);
395
+ fetchQuery(e) {
396
+ const t = this.defaultQueryOptions(e);
397
+ t.retry === void 0 && (t.retry = !1);
398
+ const r = l(this, x).build(this, t);
672
399
  return r.isStaleByTime(
673
- ke(e.staleTime, r)
674
- ) ? r.fetch(e) : Promise.resolve(r.state.data);
400
+ Ae(t.staleTime, r)
401
+ ) ? r.fetch(t) : Promise.resolve(r.state.data);
675
402
  }
676
- prefetchQuery(t) {
677
- return this.fetchQuery(t).then(M).catch(M);
403
+ prefetchQuery(e) {
404
+ return this.fetchQuery(e).then(O).catch(O);
678
405
  }
679
- fetchInfiniteQuery(t) {
680
- return t.behavior = Ee(t.pages), this.fetchQuery(t);
406
+ fetchInfiniteQuery(e) {
407
+ return e.behavior = Re(e.pages), this.fetchQuery(e);
681
408
  }
682
- prefetchInfiniteQuery(t) {
683
- return this.fetchInfiniteQuery(t).then(M).catch(M);
409
+ prefetchInfiniteQuery(e) {
410
+ return this.fetchInfiniteQuery(e).then(O).catch(O);
684
411
  }
685
- ensureInfiniteQueryData(t) {
686
- return t.behavior = Ee(t.pages), this.ensureQueryData(t);
412
+ ensureInfiniteQueryData(e) {
413
+ return e.behavior = Re(e.pages), this.ensureQueryData(e);
687
414
  }
688
415
  resumePausedMutations() {
689
- return Se.isOnline() ? l(this, R).resumePausedMutations() : Promise.resolve();
416
+ return ke.isOnline() ? l(this, I).resumePausedMutations() : Promise.resolve();
690
417
  }
691
418
  getQueryCache() {
692
- return l(this, d);
419
+ return l(this, x);
693
420
  }
694
421
  getMutationCache() {
695
- return l(this, R);
422
+ return l(this, I);
696
423
  }
697
424
  getDefaultOptions() {
698
- return l(this, I);
425
+ return l(this, T);
699
426
  }
700
- setDefaultOptions(t) {
701
- m(this, I, t);
427
+ setDefaultOptions(e) {
428
+ y(this, T, e);
702
429
  }
703
- setQueryDefaults(t, e) {
704
- l(this, z).set(Pe(t), {
705
- queryKey: t,
706
- defaultOptions: e
430
+ setQueryDefaults(e, t) {
431
+ l(this, B).set(De(e), {
432
+ queryKey: e,
433
+ defaultOptions: t
707
434
  });
708
435
  }
709
- getQueryDefaults(t) {
710
- const e = [...l(this, z).values()];
436
+ getQueryDefaults(e) {
437
+ const t = [...l(this, B).values()];
711
438
  let r = {};
712
- return e.forEach((s) => {
713
- Ce(t, s.queryKey) && (r = { ...r, ...s.defaultOptions });
439
+ return t.forEach((s) => {
440
+ Oe(e, s.queryKey) && (r = { ...r, ...s.defaultOptions });
714
441
  }), r;
715
442
  }
716
- setMutationDefaults(t, e) {
717
- l(this, H).set(Pe(t), {
718
- mutationKey: t,
719
- defaultOptions: e
443
+ setMutationDefaults(e, t) {
444
+ l(this, z).set(De(e), {
445
+ mutationKey: e,
446
+ defaultOptions: t
720
447
  });
721
448
  }
722
- getMutationDefaults(t) {
723
- const e = [...l(this, H).values()];
449
+ getMutationDefaults(e) {
450
+ const t = [...l(this, z).values()];
724
451
  let r = {};
725
- return e.forEach((s) => {
726
- Ce(t, s.mutationKey) && (r = { ...r, ...s.defaultOptions });
452
+ return t.forEach((s) => {
453
+ Oe(e, s.mutationKey) && (r = { ...r, ...s.defaultOptions });
727
454
  }), r;
728
455
  }
729
- defaultQueryOptions(t) {
730
- if (t._defaulted)
731
- return t;
732
- const e = {
733
- ...l(this, I).queries,
734
- ...this.getQueryDefaults(t.queryKey),
735
- ...t,
456
+ defaultQueryOptions(e) {
457
+ if (e._defaulted)
458
+ return e;
459
+ const t = {
460
+ ...l(this, T).queries,
461
+ ...this.getQueryDefaults(e.queryKey),
462
+ ...e,
736
463
  _defaulted: !0
737
464
  };
738
- return e.queryHash || (e.queryHash = Ze(
739
- e.queryKey,
740
- e
741
- )), e.refetchOnReconnect === void 0 && (e.refetchOnReconnect = e.networkMode !== "always"), e.throwOnError === void 0 && (e.throwOnError = !!e.suspense), !e.networkMode && e.persister && (e.networkMode = "offlineFirst"), e.enabled !== !0 && e.queryFn === er && (e.enabled = !1), e;
742
- }
743
- defaultMutationOptions(t) {
744
- return t != null && t._defaulted ? t : {
745
- ...l(this, I).mutations,
746
- ...(t == null ? void 0 : t.mutationKey) && this.getMutationDefaults(t.mutationKey),
747
- ...t,
465
+ return t.queryHash || (t.queryHash = Ue(
466
+ t.queryKey,
467
+ t
468
+ )), 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.enabled !== !0 && t.queryFn === Ft && (t.enabled = !1), t;
469
+ }
470
+ defaultMutationOptions(e) {
471
+ return e != null && e._defaulted ? e : {
472
+ ...l(this, T).mutations,
473
+ ...(e == null ? void 0 : e.mutationKey) && this.getMutationDefaults(e.mutationKey),
474
+ ...e,
748
475
  _defaulted: !0
749
476
  };
750
477
  }
751
478
  clear() {
752
- l(this, d).clear(), l(this, R).clear();
479
+ l(this, x).clear(), l(this, I).clear();
753
480
  }
754
- }, d = new WeakMap(), R = new WeakMap(), I = new WeakMap(), z = new WeakMap(), H = new WeakMap(), T = new WeakMap(), q = new WeakMap(), K = new WeakMap(), Re);
755
- const zr = ({
756
- category: t,
757
- level: e
481
+ }, x = new WeakMap(), I = new WeakMap(), T = new WeakMap(), B = new WeakMap(), z = new WeakMap(), _ = new WeakMap(), H = new WeakMap(), U = new WeakMap(), Le);
482
+ function Dr(e) {
483
+ return e;
484
+ }
485
+ function Te(e, t, r) {
486
+ var u, d;
487
+ if (typeof t != "object" || t === null)
488
+ return;
489
+ const s = e.getMutationCache(), n = e.getQueryCache(), o = ((u = r == null ? void 0 : r.defaultOptions) == null ? void 0 : u.deserializeData) ?? ((d = e.getDefaultOptions().hydrate) == null ? void 0 : d.deserializeData) ?? Dr, i = t.mutations || [], c = t.queries || [];
490
+ i.forEach(({ state: p, ...f }) => {
491
+ var h, g;
492
+ s.build(
493
+ e,
494
+ {
495
+ ...(h = e.getDefaultOptions().hydrate) == null ? void 0 : h.mutations,
496
+ ...(g = r == null ? void 0 : r.defaultOptions) == null ? void 0 : g.mutations,
497
+ ...f
498
+ },
499
+ p
500
+ );
501
+ }), c.forEach(({ queryKey: p, state: f, queryHash: h, meta: g, promise: v }) => {
502
+ var W, $;
503
+ let m = n.get(h);
504
+ const E = f.data === void 0 ? f.data : o(f.data);
505
+ if (m) {
506
+ if (m.state.dataUpdatedAt < f.dataUpdatedAt) {
507
+ const { fetchStatus: b, ...C } = f;
508
+ m.setState({
509
+ ...C,
510
+ data: E
511
+ });
512
+ }
513
+ } else
514
+ m = n.build(
515
+ e,
516
+ {
517
+ ...(W = e.getDefaultOptions().hydrate) == null ? void 0 : W.queries,
518
+ ...($ = r == null ? void 0 : r.defaultOptions) == null ? void 0 : $.queries,
519
+ queryKey: p,
520
+ queryHash: h,
521
+ meta: g
522
+ },
523
+ // Reset fetch status to idle to avoid
524
+ // query being stuck in fetching state upon hydration
525
+ {
526
+ ...f,
527
+ data: E,
528
+ fetchStatus: "idle"
529
+ }
530
+ );
531
+ if (v) {
532
+ const b = Promise.resolve(v).then(o);
533
+ m.fetch(void 0, { initialPromise: b });
534
+ }
535
+ });
536
+ }
537
+ var Or = ({
538
+ children: e,
539
+ options: t = {},
540
+ state: r,
541
+ queryClient: s
758
542
  }) => {
759
- var p, k;
760
- const r = tr(t), [s, n] = Q(!1), i = t.collapsible ?? !0, o = t.collapsed ?? !0, u = !!(!i || !o || r), [c, g] = Q(u), j = yt(((p = t.link) == null ? void 0 : p.id) ?? "");
761
- _(() => {
762
- r && g(!0);
543
+ const n = Qt(s), [o, i] = G.useState(), c = G.useRef(t);
544
+ return c.current = t, G.useMemo(() => {
545
+ if (r) {
546
+ if (typeof r != "object")
547
+ return;
548
+ const u = n.getQueryCache(), d = r.queries || [], p = [], f = [];
549
+ for (const h of d) {
550
+ const g = u.get(h.queryHash);
551
+ if (!g)
552
+ p.push(h);
553
+ else {
554
+ const v = h.state.dataUpdatedAt > g.state.dataUpdatedAt, m = o == null ? void 0 : o.find(
555
+ (E) => E.queryHash === h.queryHash
556
+ );
557
+ v && (!m || h.state.dataUpdatedAt > m.state.dataUpdatedAt) && f.push(h);
558
+ }
559
+ }
560
+ p.length > 0 && Te(n, { queries: p }, c.current), f.length > 0 && i(
561
+ (h) => h ? [...h, ...f] : f
562
+ );
563
+ }
564
+ }, [n, o, r]), G.useEffect(() => {
565
+ o && (Te(n, { queries: o }, c.current), i(void 0));
566
+ }, [n, o]), e;
567
+ }, Y = {};
568
+ const Mr = /* @__PURE__ */ pe(Wt), Rr = /* @__PURE__ */ pe(Xt), Ir = /* @__PURE__ */ pe(St);
569
+ Object.defineProperty(Y, "__esModule", { value: !0 });
570
+ var Tr = Ve, A = Mr, je = Rr, M = Ir;
571
+ function _r(e) {
572
+ if (e && e.__esModule) return e;
573
+ var t = /* @__PURE__ */ Object.create(null);
574
+ return e && Object.keys(e).forEach(function(r) {
575
+ if (r !== "default") {
576
+ var s = Object.getOwnPropertyDescriptor(e, r);
577
+ Object.defineProperty(t, r, s.get ? s : {
578
+ enumerable: !0,
579
+ get: function() {
580
+ return e[r];
581
+ }
582
+ });
583
+ }
584
+ }), t.default = e, Object.freeze(t);
585
+ }
586
+ var P = /* @__PURE__ */ _r(Tr);
587
+ function Fr({
588
+ basename: e,
589
+ children: t,
590
+ location: r = "/",
591
+ future: s
592
+ }) {
593
+ typeof r == "string" && (r = M.parsePath(r));
594
+ let n = A.Action.Pop, o = {
595
+ pathname: r.pathname || "/",
596
+ search: r.search || "",
597
+ hash: r.hash || "",
598
+ state: r.state != null ? r.state : null,
599
+ key: r.key || "default"
600
+ }, i = at();
601
+ return /* @__PURE__ */ P.createElement(M.Router, {
602
+ basename: e,
603
+ children: t,
604
+ location: o,
605
+ navigationType: n,
606
+ navigator: i,
607
+ future: s,
608
+ static: !0
609
+ });
610
+ }
611
+ function Qr({
612
+ context: e,
613
+ router: t,
614
+ hydrate: r = !0,
615
+ nonce: s
616
+ }) {
617
+ t && e || (process.env.NODE_ENV !== "production" ? A.UNSAFE_invariant(!1, "You must provide `router` and `context` to <StaticRouterProvider>") : A.UNSAFE_invariant(!1));
618
+ let n = {
619
+ router: t,
620
+ navigator: at(),
621
+ static: !0,
622
+ staticContext: e,
623
+ basename: e.basename || "/"
624
+ }, o = /* @__PURE__ */ new Map(), i = "";
625
+ if (r !== !1) {
626
+ let u = {
627
+ loaderData: e.loaderData,
628
+ actionData: e.actionData,
629
+ errors: Lr(e.errors)
630
+ };
631
+ i = `window.__staticRouterHydrationData = JSON.parse(${Kr(JSON.stringify(JSON.stringify(u)))});`;
632
+ }
633
+ let {
634
+ state: c
635
+ } = n.router;
636
+ return /* @__PURE__ */ P.createElement(P.Fragment, null, /* @__PURE__ */ P.createElement(M.UNSAFE_DataRouterContext.Provider, {
637
+ value: n
638
+ }, /* @__PURE__ */ P.createElement(M.UNSAFE_DataRouterStateContext.Provider, {
639
+ value: c
640
+ }, /* @__PURE__ */ P.createElement(M.UNSAFE_FetchersContext.Provider, {
641
+ value: o
642
+ }, /* @__PURE__ */ P.createElement(M.UNSAFE_ViewTransitionContext.Provider, {
643
+ value: {
644
+ isTransitioning: !1
645
+ }
646
+ }, /* @__PURE__ */ P.createElement(M.Router, {
647
+ basename: n.basename,
648
+ location: c.location,
649
+ navigationType: c.historyAction,
650
+ navigator: n.navigator,
651
+ static: n.static,
652
+ future: {
653
+ v7_relativeSplatPath: t.future.v7_relativeSplatPath
654
+ }
655
+ }, /* @__PURE__ */ P.createElement(qr, {
656
+ routes: t.routes,
657
+ future: t.future,
658
+ state: c
659
+ })))))), i ? /* @__PURE__ */ P.createElement("script", {
660
+ suppressHydrationWarning: !0,
661
+ nonce: s,
662
+ dangerouslySetInnerHTML: {
663
+ __html: i
664
+ }
665
+ }) : null);
666
+ }
667
+ function qr({
668
+ routes: e,
669
+ future: t,
670
+ state: r
671
+ }) {
672
+ return je.UNSAFE_useRoutesImpl(e, void 0, r, t);
673
+ }
674
+ function Lr(e) {
675
+ if (!e) return null;
676
+ let t = Object.entries(e), r = {};
677
+ for (let [s, n] of t)
678
+ A.isRouteErrorResponse(n) ? r[s] = {
679
+ ...n,
680
+ __type: "RouteErrorResponse"
681
+ } : n instanceof Error ? r[s] = {
682
+ message: n.message,
683
+ __type: "Error",
684
+ // If this is a subclass (i.e., ReferenceError), send up the type so we
685
+ // can re-create the same type during hydration.
686
+ ...n.name !== "Error" ? {
687
+ __subType: n.name
688
+ } : {}
689
+ } : r[s] = n;
690
+ return r;
691
+ }
692
+ function at() {
693
+ return {
694
+ createHref: st,
695
+ encodeLocation: nt,
696
+ push(e) {
697
+ throw new Error(`You cannot use navigator.push() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(e)})\` somewhere in your app.`);
698
+ },
699
+ replace(e) {
700
+ throw new Error(`You cannot use navigator.replace() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(e)}, { replace: true })\` somewhere in your app.`);
701
+ },
702
+ go(e) {
703
+ throw new Error(`You cannot use navigator.go() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${e})\` somewhere in your app.`);
704
+ },
705
+ back() {
706
+ throw new Error("You cannot use navigator.back() on the server because it is a stateless environment.");
707
+ },
708
+ forward() {
709
+ throw new Error("You cannot use navigator.forward() on the server because it is a stateless environment.");
710
+ }
711
+ };
712
+ }
713
+ function Br(e, t) {
714
+ return A.createStaticHandler(e, {
715
+ ...t,
716
+ mapRouteProperties: je.UNSAFE_mapRouteProperties
717
+ });
718
+ }
719
+ function zr(e, t, r = {}) {
720
+ let s = {}, n = A.UNSAFE_convertRoutesToDataRoutes(e, je.UNSAFE_mapRouteProperties, void 0, s), o = t.matches.map((c) => {
721
+ let u = s[c.route.id] || c.route;
722
+ return {
723
+ ...c,
724
+ route: u
725
+ };
726
+ }), i = (c) => `You cannot use router.${c}() on the server because it is a stateless environment`;
727
+ return {
728
+ get basename() {
729
+ return t.basename;
730
+ },
731
+ get future() {
732
+ var c, u;
733
+ return {
734
+ v7_fetcherPersist: !1,
735
+ v7_normalizeFormMethod: !1,
736
+ v7_partialHydration: ((c = r.future) == null ? void 0 : c.v7_partialHydration) === !0,
737
+ v7_prependBasename: !1,
738
+ v7_relativeSplatPath: ((u = r.future) == null ? void 0 : u.v7_relativeSplatPath) === !0,
739
+ v7_skipActionErrorRevalidation: !1
740
+ };
741
+ },
742
+ get state() {
743
+ return {
744
+ historyAction: A.Action.Pop,
745
+ location: t.location,
746
+ matches: o,
747
+ loaderData: t.loaderData,
748
+ actionData: t.actionData,
749
+ errors: t.errors,
750
+ initialized: !0,
751
+ navigation: A.IDLE_NAVIGATION,
752
+ restoreScrollPosition: null,
753
+ preventScrollReset: !1,
754
+ revalidation: "idle",
755
+ fetchers: /* @__PURE__ */ new Map(),
756
+ blockers: /* @__PURE__ */ new Map()
757
+ };
758
+ },
759
+ get routes() {
760
+ return n;
761
+ },
762
+ get window() {
763
+ },
764
+ initialize() {
765
+ throw i("initialize");
766
+ },
767
+ subscribe() {
768
+ throw i("subscribe");
769
+ },
770
+ enableScrollRestoration() {
771
+ throw i("enableScrollRestoration");
772
+ },
773
+ navigate() {
774
+ throw i("navigate");
775
+ },
776
+ fetch() {
777
+ throw i("fetch");
778
+ },
779
+ revalidate() {
780
+ throw i("revalidate");
781
+ },
782
+ createHref: st,
783
+ encodeLocation: nt,
784
+ getFetcher() {
785
+ return A.IDLE_FETCHER;
786
+ },
787
+ deleteFetcher() {
788
+ throw i("deleteFetcher");
789
+ },
790
+ dispose() {
791
+ throw i("dispose");
792
+ },
793
+ getBlocker() {
794
+ return A.IDLE_BLOCKER;
795
+ },
796
+ deleteBlocker() {
797
+ throw i("deleteBlocker");
798
+ },
799
+ patchRoutes() {
800
+ throw i("patchRoutes");
801
+ },
802
+ _internalFetchControllers: /* @__PURE__ */ new Map(),
803
+ _internalActiveDeferreds: /* @__PURE__ */ new Map(),
804
+ _internalSetRoutes() {
805
+ throw i("_internalSetRoutes");
806
+ }
807
+ };
808
+ }
809
+ function st(e) {
810
+ return typeof e == "string" ? e : M.createPath(e);
811
+ }
812
+ function nt(e) {
813
+ let t = typeof e == "string" ? e : M.createPath(e);
814
+ t = t.replace(/ $/, "%20");
815
+ let r = Hr.test(t) ? new URL(t) : new URL(t, "http://localhost");
816
+ return {
817
+ pathname: r.pathname,
818
+ search: r.search,
819
+ hash: r.hash
820
+ };
821
+ }
822
+ const Hr = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Ur = {
823
+ "&": "\\u0026",
824
+ ">": "\\u003e",
825
+ "<": "\\u003c",
826
+ "\u2028": "\\u2028",
827
+ "\u2029": "\\u2029"
828
+ }, $r = /[&><\u2028\u2029]/g;
829
+ function Kr(e) {
830
+ return e.replace($r, (t) => Ur[t]);
831
+ }
832
+ Y.StaticRouter = Fr;
833
+ var Vr = Y.StaticRouterProvider = Qr;
834
+ Y.createStaticHandler = Br;
835
+ Y.createStaticRouter = zr;
836
+ const Zr = new Ar({
837
+ defaultOptions: {
838
+ queries: {
839
+ staleTime: 1e3 * 60 * 5
840
+ }
841
+ }
842
+ }), Yr = ({
843
+ router: e,
844
+ hydrate: t = !1
845
+ }) => /* @__PURE__ */ a.jsx(Ze, { children: /* @__PURE__ */ a.jsx($e, { client: Zr, children: /* @__PURE__ */ a.jsx(Or, { state: t ? window.DATA : void 0, children: /* @__PURE__ */ a.jsx(Be, { children: /* @__PURE__ */ a.jsx(le.Provider, { value: { stagger: !t }, children: /* @__PURE__ */ a.jsx(
846
+ Nt,
847
+ {
848
+ router: e,
849
+ future: { v7_startTransition: !0 }
850
+ }
851
+ ) }) }) }) }) }), Wr = ({
852
+ router: e,
853
+ context: t,
854
+ queryClient: r,
855
+ helmetContext: s
856
+ }) => /* @__PURE__ */ a.jsx(Ze, { children: /* @__PURE__ */ a.jsx($e, { client: r, children: /* @__PURE__ */ a.jsx(Be, { context: s, children: /* @__PURE__ */ a.jsx(Vr, { router: e, context: t }) }) }) });
857
+ var ue = { exports: {} };
858
+ (function(e, t) {
859
+ (function(r, s) {
860
+ s(t, Ve);
861
+ })(Yt, function(r, s) {
862
+ const n = {
863
+ delay: 500,
864
+ minDuration: 200,
865
+ ssr: !0
866
+ };
867
+ function o() {
868
+ const [c, u] = s.useState(!0);
869
+ return s.useEffect(() => {
870
+ u(!1);
871
+ }, []), c;
872
+ }
873
+ function i(c, u) {
874
+ u = Object.assign({}, n, u);
875
+ const d = o() && u.ssr, p = d && c ? "DISPLAY" : "IDLE", [f, h] = s.useState(p), g = s.useRef(null);
876
+ return s.useEffect(() => {
877
+ if (c && (f === "IDLE" || d)) {
878
+ clearTimeout(g.current);
879
+ const v = d ? 0 : u.delay;
880
+ g.current = setTimeout(() => {
881
+ if (!c)
882
+ return h("IDLE");
883
+ g.current = setTimeout(() => {
884
+ h("EXPIRE");
885
+ }, u.minDuration), h("DISPLAY");
886
+ }, v), d || h("DELAY");
887
+ }
888
+ !c && f !== "DISPLAY" && (clearTimeout(g.current), h("IDLE"));
889
+ }, [c, f, u.delay, u.minDuration, d]), s.useEffect(() => () => clearTimeout(g.current), []), f === "DISPLAY" || f === "EXPIRE";
890
+ }
891
+ r.defaultOptions = n, r.useSpinDelay = i;
892
+ });
893
+ })(ue, ue.exports);
894
+ var Xr = ue.exports;
895
+ const Jr = ({
896
+ category: e,
897
+ level: t
898
+ }) => {
899
+ var h, g;
900
+ const r = qt(e), [s, n] = q(!1), o = e.collapsible ?? !0, i = e.collapsed ?? !0, c = !!(!o || !i || r), [u, d] = q(c), p = Jt(((h = e.link) == null ? void 0 : h.id) ?? "");
901
+ L(() => {
902
+ r && d(!0);
763
903
  }, [r]);
764
- const S = i && /* @__PURE__ */ a.jsx(
904
+ const f = o && /* @__PURE__ */ a.jsx(
765
905
  "button",
766
906
  {
767
907
  type: "button",
768
- onClick: (h) => {
769
- h.preventDefault(), g((f) => !f), n(!0);
908
+ onClick: (v) => {
909
+ v.preventDefault(), d((m) => !m), n(!0);
770
910
  },
771
911
  children: /* @__PURE__ */ a.jsx(
772
- It,
912
+ Gt,
773
913
  {
774
914
  size: 16,
775
- className: N(
915
+ className: R(
776
916
  s && "transition",
777
917
  "shrink-0 group-data-[state=open]:rotate-90"
778
918
  )
@@ -781,86 +921,86 @@ const zr = ({
781
921
  }
782
922
  );
783
923
  return /* @__PURE__ */ a.jsxs(
784
- se.Root,
924
+ ie.Root,
785
925
  {
786
926
  className: "flex flex-col",
787
- defaultOpen: u,
788
- open: c,
789
- onOpenChange: () => g(!0),
927
+ defaultOpen: c,
928
+ open: u,
929
+ onOpenChange: () => d(!0),
790
930
  children: [
791
- /* @__PURE__ */ a.jsx(se.Trigger, { className: "group", asChild: !0, disabled: !i, children: /* @__PURE__ */ a.jsxs(
931
+ /* @__PURE__ */ a.jsx(ie.Trigger, { className: "group", asChild: !0, disabled: !o, children: /* @__PURE__ */ a.jsxs(
792
932
  "div",
793
933
  {
794
934
  onClick: () => n(!0),
795
- className: U({
935
+ className: V({
796
936
  isActive: !1,
797
- isTopLevel: e === 0,
937
+ isTopLevel: t === 0,
798
938
  className: [
799
939
  "text-start",
800
- i ? "cursor-pointer" : "cursor-default hover:bg-transparent"
940
+ o ? "cursor-pointer" : "cursor-default hover:bg-transparent"
801
941
  ]
802
942
  }),
803
943
  children: [
804
- t.icon && /* @__PURE__ */ a.jsx(
805
- t.icon,
944
+ e.icon && /* @__PURE__ */ a.jsx(
945
+ e.icon,
806
946
  {
807
947
  size: 16,
808
- className: N(
948
+ className: R(
809
949
  "align-[-0.125em] -translate-x-1",
810
- j && "text-primary"
950
+ p && "text-primary"
811
951
  )
812
952
  }
813
953
  ),
814
- ((k = t.link) == null ? void 0 : k.type) === "doc" ? /* @__PURE__ */ a.jsx(
815
- G,
954
+ ((g = e.link) == null ? void 0 : g.type) === "doc" ? /* @__PURE__ */ a.jsx(
955
+ re,
816
956
  {
817
- to: B(t.link.id),
957
+ to: Q(e.link.id),
818
958
  className: "flex-1",
819
959
  onClick: () => {
820
- j && !c && g(!0);
960
+ p && !u && d(!0);
821
961
  },
822
962
  children: /* @__PURE__ */ a.jsxs(
823
963
  "div",
824
964
  {
825
- className: N(
965
+ className: R(
826
966
  "flex items-center gap-2 justify-between w-full",
827
- j ? "text-primary" : "text-foreground/80"
967
+ p ? "text-primary" : "text-foreground/80"
828
968
  ),
829
969
  children: [
830
- /* @__PURE__ */ a.jsx("div", { className: "truncate", children: t.label }),
831
- S
970
+ /* @__PURE__ */ a.jsx("div", { className: "truncate", children: e.label }),
971
+ f
832
972
  ]
833
973
  }
834
974
  )
835
975
  }
836
976
  ) : /* @__PURE__ */ a.jsxs("div", { className: "flex items-center justify-between w-full", children: [
837
- /* @__PURE__ */ a.jsx("div", { className: "flex gap-2 truncate w-full", children: t.label }),
838
- S
977
+ /* @__PURE__ */ a.jsx("div", { className: "flex gap-2 truncate w-full", children: e.label }),
978
+ f
839
979
  ] })
840
980
  ]
841
981
  }
842
982
  ) }),
843
983
  /* @__PURE__ */ a.jsx(
844
- se.Content,
984
+ ie.Content,
845
985
  {
846
- className: N(
986
+ className: R(
847
987
  // CollapsibleContent class is used to animate and it should only be applied when the user has triggered the toggle
848
988
  s && "CollapsibleContent"
849
989
  ),
850
- children: /* @__PURE__ */ a.jsx("ul", { className: "mt-1 border-l ms-0.5", children: t.items.map((h) => /* @__PURE__ */ a.jsx(
851
- le,
990
+ children: /* @__PURE__ */ a.jsx("ul", { className: "mt-1 border-l ms-0.5", children: e.items.map((v) => /* @__PURE__ */ a.jsx(
991
+ de,
852
992
  {
853
- level: e + 1,
854
- item: h
993
+ level: t + 1,
994
+ item: v
855
995
  },
856
- ("id" in h ? h.id : "") + ("href" in h ? h.href : "") + h.label
996
+ ("id" in v ? v.id : "") + ("href" in v ? v.href : "") + v.label
857
997
  )) })
858
998
  }
859
999
  )
860
1000
  ]
861
1001
  }
862
1002
  );
863
- }, U = Vt(
1003
+ }, V = cr(
864
1004
  "flex items-center gap-2 px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
865
1005
  {
866
1006
  variants: {
@@ -881,155 +1021,155 @@ const zr = ({
881
1021
  isActive: !1
882
1022
  }
883
1023
  }
884
- ), et = "data-anchor", le = ({
885
- item: t,
886
- level: e = 0
1024
+ ), it = "data-anchor", de = ({
1025
+ item: e,
1026
+ level: t = 0
887
1027
  }) => {
888
- var n, i;
889
- const { activeAnchor: r } = me(), [s] = jt();
890
- switch (t.type) {
1028
+ var n, o;
1029
+ const { activeAnchor: r } = be(), [s] = Et();
1030
+ switch (e.type) {
891
1031
  case "category":
892
- return /* @__PURE__ */ a.jsx(zr, { category: t, level: e });
1032
+ return /* @__PURE__ */ a.jsx(Jr, { category: e, level: t });
893
1033
  case "doc":
894
1034
  return /* @__PURE__ */ a.jsxs(
895
- G,
1035
+ re,
896
1036
  {
897
- className: ({ isActive: o }) => U({ isActive: o, isTopLevel: e === 0 }),
898
- to: B(t.id),
1037
+ className: ({ isActive: i }) => V({ isActive: i, isTopLevel: t === 0 }),
1038
+ to: Q(e.id),
899
1039
  children: [
900
- t.icon && /* @__PURE__ */ a.jsx(t.icon, { size: 16, className: "align-[-0.125em]" }),
901
- t.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
902
- /* @__PURE__ */ a.jsx("span", { className: "truncate flex-1", title: t.label, children: t.label }),
903
- /* @__PURE__ */ a.jsx(ae, { ...t.badge })
904
- ] }) : t.label
1040
+ e.icon && /* @__PURE__ */ a.jsx(e.icon, { size: 16, className: "align-[-0.125em]" }),
1041
+ e.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1042
+ /* @__PURE__ */ a.jsx("span", { className: "truncate flex-1", title: e.label, children: e.label }),
1043
+ /* @__PURE__ */ a.jsx(ne, { ...e.badge })
1044
+ ] }) : e.label
905
1045
  ]
906
1046
  }
907
1047
  );
908
1048
  case "link":
909
- return t.href.startsWith("#") ? /* @__PURE__ */ a.jsx(
910
- mt,
1049
+ return e.href.startsWith("#") ? /* @__PURE__ */ a.jsx(
1050
+ bt,
911
1051
  {
912
- to: { hash: t.href, search: s.toString() },
913
- [et]: t.href.slice(1),
914
- className: U({
915
- isActive: t.href.slice(1) === r,
916
- isTopLevel: e === 0,
917
- className: ((n = t.badge) == null ? void 0 : n.placement) !== "start" && "justify-between"
1052
+ to: { hash: e.href, search: s.toString() },
1053
+ [it]: e.href.slice(1),
1054
+ className: V({
1055
+ isActive: e.href.slice(1) === r,
1056
+ isTopLevel: t === 0,
1057
+ className: ((n = e.badge) == null ? void 0 : n.placement) !== "start" && "justify-between"
918
1058
  }),
919
- children: t.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
920
- /* @__PURE__ */ a.jsx("span", { className: "truncate", title: t.label, children: t.label }),
921
- /* @__PURE__ */ a.jsx(ae, { ...t.badge })
922
- ] }) : /* @__PURE__ */ a.jsx("span", { className: "break-all", children: t.label })
1059
+ children: e.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1060
+ /* @__PURE__ */ a.jsx("span", { className: "truncate", title: e.label, children: e.label }),
1061
+ /* @__PURE__ */ a.jsx(ne, { ...e.badge })
1062
+ ] }) : /* @__PURE__ */ a.jsx("span", { className: "break-all", children: e.label })
923
1063
  }
924
- ) : t.href.startsWith("http") ? /* @__PURE__ */ a.jsxs(
1064
+ ) : e.href.startsWith("http") ? /* @__PURE__ */ a.jsxs(
925
1065
  "a",
926
1066
  {
927
- className: U({ isTopLevel: e === 0 }),
928
- href: t.href,
1067
+ className: V({ isTopLevel: t === 0 }),
1068
+ href: e.href,
929
1069
  target: "_blank",
930
1070
  rel: "noopener noreferrer",
931
1071
  children: [
932
- /* @__PURE__ */ a.jsx("span", { className: "whitespace-normal", children: t.label }),
933
- /* @__PURE__ */ a.jsx("span", { className: "whitespace-nowrap", children: /* @__PURE__ */ a.jsx(Tt, { className: "inline -translate-y-0.5", size: 12 }) })
1072
+ /* @__PURE__ */ a.jsx("span", { className: "whitespace-normal", children: e.label }),
1073
+ /* @__PURE__ */ a.jsx("span", { className: "whitespace-nowrap", children: /* @__PURE__ */ a.jsx(er, { className: "inline -translate-y-0.5", size: 12 }) })
934
1074
  ]
935
1075
  }
936
1076
  ) : /* @__PURE__ */ a.jsx(
937
- G,
1077
+ re,
938
1078
  {
939
- className: U({
940
- className: ((i = t.badge) == null ? void 0 : i.placement) !== "start" && "justify-between"
1079
+ className: V({
1080
+ className: ((o = e.badge) == null ? void 0 : o.placement) !== "start" && "justify-between"
941
1081
  }),
942
- to: t.href,
943
- children: t.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
944
- /* @__PURE__ */ a.jsx("span", { className: "truncate", title: t.label, children: t.label }),
945
- /* @__PURE__ */ a.jsx(ae, { ...t.badge })
946
- ] }) : /* @__PURE__ */ a.jsx("span", { className: "break-all", children: t.label })
1082
+ to: e.href,
1083
+ children: e.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1084
+ /* @__PURE__ */ a.jsx("span", { className: "truncate", title: e.label, children: e.label }),
1085
+ /* @__PURE__ */ a.jsx(ne, { ...e.badge })
1086
+ ] }) : /* @__PURE__ */ a.jsx("span", { className: "break-all", children: e.label })
947
1087
  }
948
1088
  );
949
1089
  }
950
- }, Hr = (t, e = { block: "center" }) => {
951
- if (!t) return;
952
- const r = t.getBoundingClientRect();
953
- r.top >= 0 && r.left >= 0 && r.bottom <= (window.innerHeight || document.documentElement.clientHeight) && r.right <= (window.innerWidth || document.documentElement.clientWidth) || t.scrollIntoView(e);
954
- }, qr = () => {
955
- const t = ue(), { setActiveAnchor: e } = me();
956
- _(() => {
957
- if (!t.hash) return;
958
- const r = decodeURIComponent(t.hash.split("/")[0].slice(1)), s = () => {
959
- const n = document.getElementById(r), i = document.querySelector(`[${et}="${r}"]`);
960
- return n ? (n.scrollIntoView(), Hr(i), requestIdleCallback(() => e(r)), !0) : !1;
1090
+ }, Gr = (e, t = { block: "center" }) => {
1091
+ if (!e) return;
1092
+ const r = e.getBoundingClientRect();
1093
+ r.top >= 0 && r.left >= 0 && r.bottom <= (window.innerHeight || document.documentElement.clientHeight) && r.right <= (window.innerWidth || document.documentElement.clientWidth) || e.scrollIntoView(t);
1094
+ }, ea = () => {
1095
+ const e = ve(), { setActiveAnchor: t } = be();
1096
+ L(() => {
1097
+ if (!e.hash) return;
1098
+ const r = decodeURIComponent(e.hash.split("/")[0].slice(1)), s = () => {
1099
+ const n = document.getElementById(r), o = document.querySelector(`[${it}="${r}"]`);
1100
+ return n ? (n.scrollIntoView(), Gr(o), requestIdleCallback(() => t(r)), !0) : !1;
961
1101
  };
962
1102
  if (!s()) {
963
- const n = new MutationObserver((i, o) => {
964
- s() && o.disconnect();
1103
+ const n = new MutationObserver((o, i) => {
1104
+ s() && i.disconnect();
965
1105
  });
966
1106
  return n.observe(document.body, { childList: !0, subtree: !0 }), () => n.disconnect();
967
1107
  }
968
- }, [t.hash, e]);
969
- }, Kr = () => {
970
- const t = ue(), e = de(t.pathname);
971
- _(() => {
972
- e.current !== t.pathname && (window.scrollTo(0, 0), e.current = t.pathname);
973
- }, [t.pathname]);
1108
+ }, [e.hash, t]);
1109
+ }, ta = () => {
1110
+ const e = ve(), t = me(e.pathname);
1111
+ L(() => {
1112
+ t.current !== e.pathname && (window.scrollTo(0, 0), t.current = e.pathname);
1113
+ }, [e.pathname]);
974
1114
  };
975
- function $r({
976
- className: t,
977
- ...e
1115
+ function ra({
1116
+ className: e,
1117
+ ...t
978
1118
  }) {
979
1119
  return /* @__PURE__ */ a.jsx(
980
1120
  "div",
981
1121
  {
982
- className: N("animate-pulse rounded-md bg-muted", t),
983
- ...e
1122
+ className: R("animate-pulse rounded-md bg-muted", e),
1123
+ ...t
984
1124
  }
985
1125
  );
986
1126
  }
987
- const Ur = (t) => "getProfileMenuItems" in t && typeof t.getProfileMenuItems == "function", Vr = (t) => "getRoutes" in t && typeof t.getRoutes == "function", Zr = (t) => "renderSearch" in t && typeof t.renderSearch == "function", Wr = (t) => "initialize" in t && typeof t.initialize == "function", Yr = (t) => "getHead" in t && typeof t.getHead == "function", Xr = (t) => "getMdxComponents" in t && typeof t.getMdxComponents == "function", Jr = (t) => "getIdentities" in t && typeof t.getIdentities == "function", Me = {
1127
+ const aa = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems == "function", sa = (e) => "getRoutes" in e && typeof e.getRoutes == "function", na = (e) => "renderSearch" in e && typeof e.renderSearch == "function", ia = (e) => "initialize" in e && typeof e.initialize == "function", oa = (e) => "getHead" in e && typeof e.getHead == "function", la = (e) => "getMdxComponents" in e && typeof e.getMdxComponents == "function", ca = (e) => "getIdentities" in e && typeof e.getIdentities == "function", _e = {
988
1128
  info: "bg-blue-500",
989
1129
  note: "bg-gray-500",
990
1130
  tip: "bg-green-600",
991
1131
  caution: "bg-orange-500",
992
1132
  danger: "bg-rose-500"
993
- }, Gr = () => {
994
- const { page: t } = F(), [e, r] = Q(!0);
995
- if (!(t != null && t.banner) || !e)
1133
+ }, ua = () => {
1134
+ const { page: e } = F(), [t, r] = q(!0);
1135
+ if (!(e != null && e.banner) || !t)
996
1136
  return /* @__PURE__ */ a.jsx("style", { children: ":root { --banner-height: 0px; }" });
997
- const s = t.banner.color && t.banner.color in Me ? Me[t.banner.color] : t.banner.color ? void 0 : "bg-primary", n = s ? {} : { backgroundColor: t.banner.color };
1137
+ const s = e.banner.color && e.banner.color in _e ? _e[e.banner.color] : e.banner.color ? void 0 : "bg-primary", n = s ? {} : { backgroundColor: e.banner.color };
998
1138
  return /* @__PURE__ */ a.jsxs(
999
1139
  "div",
1000
1140
  {
1001
- className: N(
1141
+ className: R(
1002
1142
  "relative text-primary-foreground text-sm font-medium px-4 py-2 flex gap-2 items-center",
1003
1143
  s
1004
1144
  ),
1005
1145
  style: n,
1006
1146
  children: [
1007
- /* @__PURE__ */ a.jsx("div", { className: "w-full", children: t.banner.message }),
1008
- t.banner.dismissible && /* @__PURE__ */ a.jsx(
1147
+ /* @__PURE__ */ a.jsx("div", { className: "w-full", children: e.banner.message }),
1148
+ e.banner.dismissible && /* @__PURE__ */ a.jsx(
1009
1149
  "button",
1010
1150
  {
1011
1151
  type: "button",
1012
1152
  className: "md:absolute md:right-4 -m-1.5 p-1.5 hover:bg-accent-foreground/10 rounded-md",
1013
1153
  onClick: () => r(!1),
1014
- children: /* @__PURE__ */ a.jsx(_t, { size: 16 })
1154
+ children: /* @__PURE__ */ a.jsx(tr, { size: 16 })
1015
1155
  }
1016
1156
  )
1017
1157
  ]
1018
1158
  }
1019
1159
  );
1020
- }, tt = () => {
1021
- const t = F(), [e, r] = Q(!1), s = Qe(() => r(!1), []);
1022
- _(() => {
1023
- if (e)
1160
+ }, ot = () => {
1161
+ const e = F(), [t, r] = q(!1), s = Ut(() => r(!1), []);
1162
+ L(() => {
1163
+ if (t)
1024
1164
  return;
1025
- function i(o) {
1026
- o.key === "k" && (o.metaKey || o.ctrlKey) && (o.preventDefault(), r(!0));
1165
+ function o(i) {
1166
+ i.key === "k" && (i.metaKey || i.ctrlKey) && (i.preventDefault(), r(!0));
1027
1167
  }
1028
- return window.addEventListener("keydown", i), () => {
1029
- window.removeEventListener("keydown", i);
1168
+ return window.addEventListener("keydown", o), () => {
1169
+ window.removeEventListener("keydown", o);
1030
1170
  };
1031
- }, [e, r]);
1032
- const n = t.plugins.find(Zr);
1171
+ }, [t, r]);
1172
+ const n = e.plugins.find(na);
1033
1173
  return n ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1034
1174
  /* @__PURE__ */ a.jsxs(
1035
1175
  "button",
@@ -1039,452 +1179,448 @@ const Ur = (t) => "getProfileMenuItems" in t && typeof t.getProfileMenuItems ==
1039
1179
  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",
1040
1180
  children: [
1041
1181
  /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-2 flex-grow", children: [
1042
- /* @__PURE__ */ a.jsx(Ft, { size: 14 }),
1182
+ /* @__PURE__ */ a.jsx(rr, { size: 14 }),
1043
1183
  "Search"
1044
1184
  ] }),
1045
1185
  /* @__PURE__ */ a.jsx("kbd", { className: "absolute right-[0.3rem] top-[0.3rem] hidden h-5 select-none items-center gap-1 rounded border bg-muted px-1.5 font-mono text-[11px] font-medium opacity-100 sm:flex", children: "⌘K" })
1046
1186
  ]
1047
1187
  }
1048
1188
  ),
1049
- /* @__PURE__ */ a.jsx(he, { fallback: null, children: n.renderSearch({
1050
- isOpen: e,
1189
+ /* @__PURE__ */ a.jsx(ge, { fallback: null, children: n.renderSearch({
1190
+ isOpen: t,
1051
1191
  onClose: s
1052
1192
  }) })
1053
1193
  ] }) : null;
1054
- }, rt = (t) => (e) => e.display === "auth" && t || e.display === "anon" && !t || !e.display || e.display === "always", ea = () => {
1055
- const { topNavigation: t } = F(), { isAuthenticated: e } = ee();
1056
- return t.length <= 1 ? /* @__PURE__ */ a.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ a.jsx(he, { children: /* @__PURE__ */ a.jsx("nav", { className: "hidden lg:block border-b text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ a.jsx("ul", { className: "flex flex-row items-center gap-8", children: t.filter(rt(e)).map((r) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(ta, { ...r }) }, r.id)) }) }) });
1057
- }, ta = ({ id: t, label: e, default: r }) => {
1058
- var c;
1059
- const { sidebars: s } = F(), n = We(), i = s[t], o = r ?? (i ? rr(i, (g) => {
1060
- if (g.type === "doc") return B(g.id);
1061
- }) : B(t));
1062
- if (!o)
1063
- throw new Error(
1064
- `No links found in top navigation for top navigation '${t}'. Check that the sidebar isn't empty or that a default link set.`
1065
- );
1066
- const u = ((c = n.data.topNavItem) == null ? void 0 : c.id) === t;
1067
- return /* @__PURE__ */ a.jsx(
1068
- te,
1194
+ }, lt = () => {
1195
+ const { resolvedTheme: e, setTheme: t } = jr(), r = e === "dark" ? ar : sr;
1196
+ return /* @__PURE__ */ a.jsx(ye, { children: /* @__PURE__ */ a.jsx(
1197
+ ce,
1069
1198
  {
1070
- className: Ue(
1071
- "block py-3.5 font-medium -mb-px border-b-2",
1072
- u ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
1073
- ),
1074
- to: o,
1075
- children: e
1199
+ variant: "ghost",
1200
+ "aria-label": e === "dark" ? "Switch to light mode" : "Switch to dark mode",
1201
+ className: "p-2.5 -m-2.5 rounded-full",
1202
+ onClick: () => t(e === "dark" ? "light" : "dark"),
1203
+ children: /* @__PURE__ */ a.jsx(r, { size: 18 })
1076
1204
  }
1077
- );
1078
- }, ra = () => {
1079
- const { topNavigation: t } = F(), { isAuthenticated: e } = ee();
1080
- return /* @__PURE__ */ a.jsxs(He, { direction: "right", children: [
1081
- /* @__PURE__ */ a.jsx("div", { className: "flex lg:hidden justify-self-end", children: /* @__PURE__ */ a.jsx(qe, { className: "lg:hidden", children: /* @__PURE__ */ a.jsx(Qt, { size: 22 }) }) }),
1082
- /* @__PURE__ */ a.jsxs(
1083
- Ke,
1205
+ ) });
1206
+ }, ct = (e) => (t) => t.display === "auth" && e || t.display === "anon" && !e || !t.display || t.display === "always", da = () => {
1207
+ const { topNavigation: e } = F(), { isAuthenticated: t } = ae();
1208
+ return e.length <= 1 ? /* @__PURE__ */ a.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ a.jsx(ge, { children: /* @__PURE__ */ a.jsx("nav", { className: "hidden lg:block border-b text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ a.jsx("ul", { className: "flex flex-row items-center gap-8", children: e.filter(ct(t)).map((r) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(ut, { ...r }) }, r.id)) }) }) });
1209
+ }, ut = ({
1210
+ id: e,
1211
+ label: t,
1212
+ default: r
1213
+ }) => {
1214
+ var d;
1215
+ const { sidebars: s } = F(), n = s[e], o = Ke(), i = !!xe().location, c = ((d = o.topNavItem) == null ? void 0 : d.id) === e && !i, u = r ?? (n ? Lt(n, (p) => {
1216
+ if (p.type === "doc") return Q(p.id);
1217
+ }) : Q(e));
1218
+ if (!u)
1219
+ throw new Sr("Page not found.", {
1220
+ developerHint: `No links found in top navigation for '${e}'. Check that the sidebar isn't empty or that a default link is set.`
1221
+ });
1222
+ return (
1223
+ // We don't use isActive here because it has to be inside the sidebar,
1224
+ // the top nav id doesn't necessarily start with the sidebar id
1225
+ /* @__PURE__ */ a.jsx(
1226
+ re,
1084
1227
  {
1085
- className: "lg:hidden h-screen right-0 left-auto w-[320px] rounded-none overflow-auto",
1086
- "aria-describedby": void 0,
1087
- children: [
1088
- /* @__PURE__ */ a.jsx(Ye, { children: /* @__PURE__ */ a.jsx($e, { children: "Navigation" }) }),
1089
- /* @__PURE__ */ a.jsx("div", { className: "flex p-4", children: /* @__PURE__ */ a.jsx(tt, {}) }),
1090
- /* @__PURE__ */ a.jsx("ul", { className: "flex flex-col items-center gap-4 p-4", children: t.filter(rt(e)).map((r) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
1091
- G,
1092
- {
1093
- className: ({ isActive: s }) => Ue(
1094
- "block font-medium border-b-2",
1095
- s ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
1096
- ),
1097
- to: r.id,
1098
- children: /* @__PURE__ */ a.jsx(Ht, { children: r.label })
1099
- }
1100
- ) }, r.label)) })
1101
- ]
1228
+ className: ({ isPending: p }) => ur(
1229
+ "block lg:py-3.5 font-medium -mb-px border-b-2",
1230
+ c || p ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
1231
+ ),
1232
+ to: u,
1233
+ children: t
1102
1234
  }
1103
1235
  )
1104
- ] });
1105
- }, at = ({ item: t }) => t.children ? /* @__PURE__ */ a.jsxs(fr, { children: [
1106
- /* @__PURE__ */ a.jsx(mr, { children: t.label }),
1107
- /* @__PURE__ */ a.jsx(gr, { children: /* @__PURE__ */ a.jsx(pr, { children: t.children.map((e, r) => (
1236
+ );
1237
+ }, ha = () => {
1238
+ const { topNavigation: e } = F(), { isAuthenticated: t } = ae(), [r, s] = q(!1);
1239
+ return /* @__PURE__ */ a.jsxs(
1240
+ Je,
1241
+ {
1242
+ direction: "right",
1243
+ open: r,
1244
+ onOpenChange: (n) => s(n),
1245
+ children: [
1246
+ /* @__PURE__ */ a.jsx("div", { className: "flex lg:hidden justify-self-end", children: /* @__PURE__ */ a.jsx(Ge, { className: "lg:hidden", children: /* @__PURE__ */ a.jsx(nr, { size: 22 }) }) }),
1247
+ /* @__PURE__ */ a.jsxs(
1248
+ et,
1249
+ {
1250
+ className: "lg:hidden h-screen right-0 left-auto w-[320px] rounded-none overflow-auto",
1251
+ "aria-describedby": void 0,
1252
+ children: [
1253
+ /* @__PURE__ */ a.jsx(rt, { children: /* @__PURE__ */ a.jsx(tt, { children: "Navigation" }) }),
1254
+ /* @__PURE__ */ a.jsx("div", { className: "flex p-4", children: /* @__PURE__ */ a.jsx(ot, {}) }),
1255
+ /* @__PURE__ */ a.jsxs("ul", { className: "flex flex-col items-center gap-4 p-4", children: [
1256
+ /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(lt, {}) }),
1257
+ e.filter(ct(t)).map((n) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx("button", { onClick: () => s(!1), children: /* @__PURE__ */ a.jsx(ut, { ...n }) }) }, n.label))
1258
+ ] })
1259
+ ]
1260
+ }
1261
+ )
1262
+ ]
1263
+ }
1264
+ );
1265
+ }, dt = ({ item: e }) => e.children ? /* @__PURE__ */ a.jsxs(pr, { children: [
1266
+ /* @__PURE__ */ a.jsx(vr, { children: e.label }),
1267
+ /* @__PURE__ */ a.jsx(xr, { children: /* @__PURE__ */ a.jsx(yr, { children: e.children.map((t, r) => (
1108
1268
  // eslint-disable-next-line react/no-array-index-key
1109
- /* @__PURE__ */ a.jsx(at, { item: e }, r)
1269
+ /* @__PURE__ */ a.jsx(dt, { item: t }, r)
1110
1270
  )) }) })
1111
- ] }, t.label) : /* @__PURE__ */ a.jsx(te, { to: t.path ?? "", children: /* @__PURE__ */ a.jsx(vr, { children: t.label }, t.label) }), st = Be(function() {
1112
- const e = ee(), [r, s] = qt(), { isAuthenticated: n, profile: i, isAuthEnabled: o } = ee(), u = F(), { page: c, plugins: g } = u, j = g.filter((p) => Ur(p)).flatMap((p) => p.getProfileMenuItems(u)).map((p) => /* @__PURE__ */ a.jsx(at, { item: p }, p.label)), S = r ? Bt : Lt;
1271
+ ] }, e.label) : /* @__PURE__ */ a.jsx(fe, { to: e.path ?? "", children: /* @__PURE__ */ a.jsx(br, { children: e.label }, e.label) }), ht = Ye(function() {
1272
+ const t = ae(), { isAuthenticated: r, profile: s, isAuthEnabled: n } = ae(), o = F(), { page: i, plugins: c } = o, u = c.filter((d) => aa(d)).flatMap((d) => d.getProfileMenuItems(o)).map((d) => /* @__PURE__ */ a.jsx(dt, { item: d }, d.label));
1113
1273
  return /* @__PURE__ */ a.jsxs("header", { className: "sticky lg:top-0 z-10 bg-background/80 backdrop-blur w-full", children: [
1114
- /* @__PURE__ */ a.jsx(Gr, {}),
1274
+ /* @__PURE__ */ a.jsx(ua, {}),
1115
1275
  /* @__PURE__ */ a.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
1116
1276
  /* @__PURE__ */ a.jsxs("div", { className: "grid grid-cols-2 lg:grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center border-b px-10 lg:px-12 h-[--top-header-height]", children: [
1117
- /* @__PURE__ */ a.jsx("div", { className: "flex", children: /* @__PURE__ */ a.jsx(te, { to: "/", children: /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-3.5", children: [
1118
- (c == null ? void 0 : c.logo) && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1277
+ /* @__PURE__ */ a.jsx("div", { className: "flex", children: /* @__PURE__ */ a.jsx(fe, { to: "/", children: /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-3.5", children: [
1278
+ (i == null ? void 0 : i.logo) && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1119
1279
  /* @__PURE__ */ a.jsx(
1120
1280
  "img",
1121
1281
  {
1122
- src: /https?:\/\//.test(c.logo.src.light) ? c.logo.src.light : B(
1282
+ src: /https?:\/\//.test(i.logo.src.light) ? i.logo.src.light : Q(
1123
1283
  "/",
1124
- c.logo.src.light
1284
+ i.logo.src.light
1125
1285
  ),
1126
- alt: c.logo.alt ?? c.pageTitle,
1127
- style: { width: c.logo.width },
1128
- className: N("h-10", r && "hidden"),
1286
+ alt: i.logo.alt ?? i.pageTitle,
1287
+ style: { width: i.logo.width },
1288
+ className: "h-10 dark:hidden",
1129
1289
  loading: "lazy"
1130
1290
  }
1131
1291
  ),
1132
1292
  /* @__PURE__ */ a.jsx(
1133
1293
  "img",
1134
1294
  {
1135
- src: /https?:\/\//.test(c.logo.src.dark) ? c.logo.src.dark : B(
1295
+ "data-hide-on-theme": "light",
1296
+ src: /https?:\/\//.test(i.logo.src.dark) ? i.logo.src.dark : Q(
1136
1297
  "/",
1137
- c.logo.src.dark
1298
+ i.logo.src.dark
1138
1299
  ),
1139
- alt: c.logo.alt ?? c.pageTitle,
1140
- style: { width: c.logo.width },
1141
- className: N("h-10", !r && "hidden"),
1300
+ alt: i.logo.alt ?? i.pageTitle,
1301
+ style: { width: i.logo.width },
1302
+ className: "h-10",
1142
1303
  loading: "lazy"
1143
1304
  }
1144
1305
  )
1145
1306
  ] }),
1146
- /* @__PURE__ */ a.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: c == null ? void 0 : c.pageTitle })
1307
+ /* @__PURE__ */ a.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: i == null ? void 0 : i.pageTitle })
1147
1308
  ] }) }) }),
1148
1309
  /* @__PURE__ */ a.jsxs("div", { className: "grid grid-cols-1 lg:grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
1149
- /* @__PURE__ */ a.jsx("div", { className: "w-full justify-center hidden lg:flex", children: /* @__PURE__ */ a.jsx(tt, {}) }),
1150
- /* @__PURE__ */ a.jsx(ra, {}),
1310
+ /* @__PURE__ */ a.jsx("div", { className: "w-full justify-center hidden lg:flex", children: /* @__PURE__ */ a.jsx(ot, {}) }),
1311
+ /* @__PURE__ */ a.jsx(ha, {}),
1151
1312
  /* @__PURE__ */ a.jsxs("div", { className: "hidden lg:flex items-center justify-self-end text-sm gap-2", children: [
1152
- /* @__PURE__ */ a.jsx(A, { name: "head-navigation-start" }),
1153
- /* @__PURE__ */ a.jsx(
1154
- ze,
1313
+ /* @__PURE__ */ a.jsx(D, { name: "head-navigation-start" }),
1314
+ n && /* @__PURE__ */ a.jsx(
1315
+ ye,
1155
1316
  {
1156
- fallback: /* @__PURE__ */ a.jsx($r, { className: "rounded h-5 w-24 mr-4" }),
1157
- children: o && !n ? /* @__PURE__ */ a.jsx(ne, { variant: "ghost", onClick: () => e.login(), children: "Login" }) : j.length > 0 && /* @__PURE__ */ a.jsxs(lr, { modal: !1, children: [
1158
- /* @__PURE__ */ a.jsx(cr, { asChild: !0, children: /* @__PURE__ */ a.jsx(ne, { variant: "ghost", children: i != null && i.email ? `${i.email}` : "My Account" }) }),
1159
- /* @__PURE__ */ a.jsxs(ur, { className: "w-56", children: [
1160
- /* @__PURE__ */ a.jsx(dr, { children: "My Account" }),
1161
- /* @__PURE__ */ a.jsx(hr, {}),
1162
- j
1317
+ fallback: /* @__PURE__ */ a.jsx(ra, { className: "rounded h-5 w-24 mr-4" }),
1318
+ children: r ? u.length > 0 && /* @__PURE__ */ a.jsxs(dr, { modal: !1, children: [
1319
+ /* @__PURE__ */ a.jsx(hr, { asChild: !0, children: /* @__PURE__ */ a.jsx(ce, { variant: "ghost", children: s != null && s.email ? `${s.email}` : "My Account" }) }),
1320
+ /* @__PURE__ */ a.jsxs(fr, { className: "w-56", children: [
1321
+ /* @__PURE__ */ a.jsx(mr, { children: "My Account" }),
1322
+ /* @__PURE__ */ a.jsx(gr, {}),
1323
+ u
1163
1324
  ] })
1164
- ] })
1165
- }
1166
- ),
1167
- /* @__PURE__ */ a.jsx(
1168
- ne,
1169
- {
1170
- variant: "ghost",
1171
- "aria-label": r ? "Switch to light mode" : "Switch to dark mode",
1172
- className: "p-2.5 -m-2.5 rounded-full",
1173
- onClick: s,
1174
- children: /* @__PURE__ */ a.jsx(S, { size: 18 })
1325
+ ] }) : /* @__PURE__ */ a.jsx(ce, { variant: "ghost", onClick: () => t.login(), children: "Login" })
1175
1326
  }
1176
1327
  ),
1177
- /* @__PURE__ */ a.jsx(A, { name: "head-navigation-end" })
1328
+ /* @__PURE__ */ a.jsx(lt, {}),
1329
+ /* @__PURE__ */ a.jsx(D, { name: "head-navigation-end" })
1178
1330
  ] })
1179
1331
  ] })
1180
1332
  ] }),
1181
- /* @__PURE__ */ a.jsx(A, { name: "top-navigation-before" }),
1182
- /* @__PURE__ */ a.jsx(ea, {}),
1183
- /* @__PURE__ */ a.jsx(A, { name: "top-navigation-after" })
1333
+ /* @__PURE__ */ a.jsx(D, { name: "top-navigation-before" }),
1334
+ /* @__PURE__ */ a.jsx(da, {}),
1335
+ /* @__PURE__ */ a.jsx(D, { name: "top-navigation-after" })
1184
1336
  ] })
1185
1337
  ] });
1186
- }), nt = At(({ children: t, className: e, pushMainContent: r }, s) => /* @__PURE__ */ a.jsx(
1338
+ }), ft = $t(({ children: e, className: t, pushMainContent: r }, s) => /* @__PURE__ */ a.jsx(
1187
1339
  "nav",
1188
1340
  {
1189
1341
  "data-navigation": String(r),
1190
- className: N(
1342
+ className: R(
1191
1343
  "scrollbar peer hidden lg:flex flex-col fixed text-sm overflow-y-auto shrink-0",
1192
1344
  "px-[--padding-nav-item] -mx-[--padding-nav-item] pb-20 mt-[--padding-content-top]",
1193
1345
  "w-[--side-nav-width] h-[calc(100%-var(--header-height))] scroll-pt-2 gap-2",
1194
- e
1346
+ t
1195
1347
  ),
1196
1348
  ref: s,
1197
- children: t
1349
+ children: e
1198
1350
  }
1199
1351
  ));
1200
- nt.displayName = "SidebarWrapper";
1201
- const aa = () => {
1202
- const t = de(null), e = We();
1352
+ ft.displayName = "SidebarWrapper";
1353
+ const fa = () => {
1354
+ const e = me(null), t = Ke();
1203
1355
  return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1204
1356
  /* @__PURE__ */ a.jsxs(
1205
- nt,
1357
+ ft,
1206
1358
  {
1207
- ref: t,
1208
- pushMainContent: e.data.sidebar.length > 0,
1359
+ ref: e,
1360
+ pushMainContent: t.sidebar.length > 0,
1209
1361
  children: [
1210
- /* @__PURE__ */ a.jsx(A, { name: "zudoku-before-navigation" }),
1211
- e.data.sidebar.map((r) => /* @__PURE__ */ a.jsx(le, { item: r }, r.label)),
1212
- /* @__PURE__ */ a.jsx(A, { name: "zudoku-after-navigation" })
1362
+ /* @__PURE__ */ a.jsx(D, { name: "zudoku-before-navigation" }),
1363
+ t.sidebar.map((r) => /* @__PURE__ */ a.jsx(de, { item: r }, r.label)),
1364
+ /* @__PURE__ */ a.jsx(D, { name: "zudoku-after-navigation" })
1213
1365
  ]
1214
1366
  }
1215
1367
  ),
1216
1368
  /* @__PURE__ */ a.jsxs(
1217
- Ke,
1369
+ et,
1218
1370
  {
1219
1371
  className: "lg:hidden h-screen left-0 p-6 w-[320px] rounded-none overflow-auto",
1220
1372
  "aria-describedby": void 0,
1221
1373
  children: [
1222
- /* @__PURE__ */ a.jsx(Ye, { children: /* @__PURE__ */ a.jsx($e, { children: "Sidebar" }) }),
1223
- e.data.sidebar.map((r) => /* @__PURE__ */ a.jsx(le, { item: r }, r.label))
1374
+ /* @__PURE__ */ a.jsx(rt, { children: /* @__PURE__ */ a.jsx(tt, { children: "Sidebar" }) }),
1375
+ t.sidebar.map((r) => /* @__PURE__ */ a.jsx(de, { item: r }, r.label))
1224
1376
  ]
1225
1377
  }
1226
1378
  )
1227
1379
  ] });
1228
- }, sa = ({ children: t }) => {
1229
- const e = ue(), { setActiveAnchor: r } = me(), { meta: s, authentication: n } = F();
1230
- qr(), Kr();
1231
- const i = de(e.pathname);
1232
- return _(() => {
1233
- var o;
1234
- (o = n == null ? void 0 : n.pageLoad) == null || o.call(n);
1235
- }, [n]), _(() => {
1236
- e.pathname !== i.current && r(""), i.current = e.pathname;
1237
- }, [e.pathname, r]), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1380
+ }, Fe = () => /* @__PURE__ */ a.jsx("main", { className: "grid h-[calc(100vh-var(--header-height))] place-items-center", children: /* @__PURE__ */ a.jsx(Nr, {}) }), ma = ({ children: e }) => {
1381
+ const t = ve(), { setActiveAnchor: r } = be(), { meta: s, authentication: n } = F();
1382
+ ea(), ta();
1383
+ const o = me(t.pathname);
1384
+ L(() => {
1385
+ var u;
1386
+ (u = n == null ? void 0 : n.pageLoad) == null || u.call(n);
1387
+ }, [n]), L(() => {
1388
+ t.pathname !== o.current && r(""), o.current = t.pathname;
1389
+ }, [t.pathname, r]);
1390
+ const i = !!xe().location, c = Xr.useSpinDelay(i, {
1391
+ delay: 300,
1392
+ minDuration: 500
1393
+ });
1394
+ return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1238
1395
  !1,
1239
- /* @__PURE__ */ a.jsxs(ce, { titleTemplate: s == null ? void 0 : s.title, children: [
1396
+ /* @__PURE__ */ a.jsxs(he, { titleTemplate: s == null ? void 0 : s.title, children: [
1240
1397
  (s == null ? void 0 : s.description) && /* @__PURE__ */ a.jsx("meta", { name: "description", content: s.description }),
1241
1398
  (s == null ? void 0 : s.favicon) && /* @__PURE__ */ a.jsx("link", { rel: "icon", href: s.favicon })
1242
1399
  ] }),
1243
- /* @__PURE__ */ a.jsx(A, { name: "layout-before-head" }),
1244
- /* @__PURE__ */ a.jsx(st, {}),
1245
- /* @__PURE__ */ a.jsx(A, { name: "layout-after-head" }),
1246
- /* @__PURE__ */ a.jsx("div", { className: "w-full max-w-screen-2xl mx-auto px-10 lg:px-12", children: /* @__PURE__ */ a.jsx(
1247
- he,
1248
- {
1249
- fallback: /* @__PURE__ */ a.jsx("main", { className: "grid h-[calc(100vh-var(--header-height))] place-items-center", children: /* @__PURE__ */ a.jsx(ir, {}) }),
1250
- children: /* @__PURE__ */ a.jsxs(He, { direction: "left", children: [
1251
- /* @__PURE__ */ a.jsx(aa, {}),
1252
- /* @__PURE__ */ a.jsx(
1253
- "div",
1254
- {
1255
- className: N(
1256
- "lg:hidden -mx-10 px-10 py-2 sticky bg-background/80 backdrop-blur z-10 top-0 left-0 right-0 border-b",
1257
- "peer-data-[navigation=false]:hidden"
1258
- ),
1259
- children: /* @__PURE__ */ a.jsxs(qe, { className: "flex items-center gap-2", children: [
1260
- /* @__PURE__ */ a.jsx(zt, { size: 16, strokeWidth: 1.5 }),
1261
- /* @__PURE__ */ a.jsx("span", { className: "text-sm", children: "Menu" })
1262
- ] })
1263
- }
1400
+ /* @__PURE__ */ a.jsx(D, { name: "layout-before-head" }),
1401
+ /* @__PURE__ */ a.jsx(ht, {}),
1402
+ /* @__PURE__ */ a.jsx(D, { name: "layout-after-head" }),
1403
+ /* @__PURE__ */ a.jsx("div", { className: "w-full max-w-screen-2xl mx-auto px-10 lg:px-12", children: c ? /* @__PURE__ */ a.jsx(Fe, {}) : /* @__PURE__ */ a.jsx(ge, { fallback: /* @__PURE__ */ a.jsx(Fe, {}), children: /* @__PURE__ */ a.jsxs(Je, { direction: "left", children: [
1404
+ /* @__PURE__ */ a.jsx(fa, {}),
1405
+ /* @__PURE__ */ a.jsx(
1406
+ "div",
1407
+ {
1408
+ className: R(
1409
+ "lg:hidden -mx-10 px-10 py-2 sticky bg-background/80 backdrop-blur z-10 top-0 left-0 right-0 border-b",
1410
+ "peer-data-[navigation=false]:hidden"
1264
1411
  ),
1265
- /* @__PURE__ */ a.jsxs(
1266
- "main",
1267
- {
1268
- className: N(
1269
- "h-full dark:border-white/10 translate-x-0",
1270
- "lg:overflow-visible",
1271
- // This works in tandem with the `SidebarWrapper` component
1272
- "lg:peer-data-[navigation=true]:w-[calc(100%-var(--side-nav-width))]",
1273
- "lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] lg:peer-data-[navigation=true]:pl-12"
1274
- ),
1275
- children: [
1276
- /* @__PURE__ */ a.jsx(A, { name: "zudoku-before-content" }),
1277
- t ?? /* @__PURE__ */ a.jsx(Te, {}),
1278
- /* @__PURE__ */ a.jsx(A, { name: "zudoku-after-content" })
1279
- ]
1280
- }
1281
- )
1282
- ] })
1283
- }
1284
- ) })
1412
+ children: /* @__PURE__ */ a.jsxs(Ge, { className: "flex items-center gap-2", children: [
1413
+ /* @__PURE__ */ a.jsx(ir, { size: 16, strokeWidth: 1.5 }),
1414
+ /* @__PURE__ */ a.jsx("span", { className: "text-sm", children: "Menu" })
1415
+ ] })
1416
+ }
1417
+ ),
1418
+ /* @__PURE__ */ a.jsxs(
1419
+ "main",
1420
+ {
1421
+ className: R(
1422
+ "h-full dark:border-white/10 translate-x-0",
1423
+ "lg:overflow-visible",
1424
+ // This works in tandem with the `SidebarWrapper` component
1425
+ "lg:peer-data-[navigation=true]:w-[calc(100%-var(--side-nav-width))]",
1426
+ "lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] lg:peer-data-[navigation=true]:pl-12"
1427
+ ),
1428
+ children: [
1429
+ /* @__PURE__ */ a.jsx(D, { name: "zudoku-before-content" }),
1430
+ e ?? /* @__PURE__ */ a.jsx(Xe, {}),
1431
+ /* @__PURE__ */ a.jsx(D, { name: "zudoku-after-content" })
1432
+ ]
1433
+ }
1434
+ )
1435
+ ] }) }) })
1285
1436
  ] });
1286
- }, na = Le(null), ie = {
1437
+ }, ga = We(null), oe = {
1287
1438
  didCatch: !1,
1288
1439
  error: null
1289
1440
  };
1290
- class ia extends Mt {
1291
- constructor(e) {
1292
- super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = ie;
1441
+ class pa extends Kt {
1442
+ constructor(t) {
1443
+ super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = oe;
1293
1444
  }
1294
- static getDerivedStateFromError(e) {
1445
+ static getDerivedStateFromError(t) {
1295
1446
  return {
1296
1447
  didCatch: !0,
1297
- error: e
1448
+ error: t
1298
1449
  };
1299
1450
  }
1300
1451
  resetErrorBoundary() {
1301
1452
  const {
1302
- error: e
1453
+ error: t
1303
1454
  } = this.state;
1304
- if (e !== null) {
1305
- for (var r, s, n = arguments.length, i = new Array(n), o = 0; o < n; o++)
1306
- i[o] = arguments[o];
1455
+ if (t !== null) {
1456
+ for (var r, s, n = arguments.length, o = new Array(n), i = 0; i < n; i++)
1457
+ o[i] = arguments[i];
1307
1458
  (r = (s = this.props).onReset) === null || r === void 0 || r.call(s, {
1308
- args: i,
1459
+ args: o,
1309
1460
  reason: "imperative-api"
1310
- }), this.setState(ie);
1461
+ }), this.setState(oe);
1311
1462
  }
1312
1463
  }
1313
- componentDidCatch(e, r) {
1464
+ componentDidCatch(t, r) {
1314
1465
  var s, n;
1315
- (s = (n = this.props).onError) === null || s === void 0 || s.call(n, e, r);
1466
+ (s = (n = this.props).onError) === null || s === void 0 || s.call(n, t, r);
1316
1467
  }
1317
- componentDidUpdate(e, r) {
1468
+ componentDidUpdate(t, r) {
1318
1469
  const {
1319
1470
  didCatch: s
1320
1471
  } = this.state, {
1321
1472
  resetKeys: n
1322
1473
  } = this.props;
1323
- if (s && r.error !== null && oa(e.resetKeys, n)) {
1324
- var i, o;
1325
- (i = (o = this.props).onReset) === null || i === void 0 || i.call(o, {
1474
+ if (s && r.error !== null && va(t.resetKeys, n)) {
1475
+ var o, i;
1476
+ (o = (i = this.props).onReset) === null || o === void 0 || o.call(i, {
1326
1477
  next: n,
1327
- prev: e.resetKeys,
1478
+ prev: t.resetKeys,
1328
1479
  reason: "keys"
1329
- }), this.setState(ie);
1480
+ }), this.setState(oe);
1330
1481
  }
1331
1482
  }
1332
1483
  render() {
1333
1484
  const {
1334
- children: e,
1485
+ children: t,
1335
1486
  fallbackRender: r,
1336
1487
  FallbackComponent: s,
1337
1488
  fallback: n
1338
1489
  } = this.props, {
1339
- didCatch: i,
1340
- error: o
1490
+ didCatch: o,
1491
+ error: i
1341
1492
  } = this.state;
1342
- let u = e;
1343
- if (i) {
1344
- const c = {
1345
- error: o,
1493
+ let c = t;
1494
+ if (o) {
1495
+ const u = {
1496
+ error: i,
1346
1497
  resetErrorBoundary: this.resetErrorBoundary
1347
1498
  };
1348
1499
  if (typeof r == "function")
1349
- u = r(c);
1500
+ c = r(u);
1350
1501
  else if (s)
1351
- u = je(s, c);
1502
+ c = Me(s, u);
1352
1503
  else if (n !== void 0)
1353
- u = n;
1504
+ c = n;
1354
1505
  else
1355
- throw o;
1506
+ throw i;
1356
1507
  }
1357
- return je(na.Provider, {
1508
+ return Me(ga.Provider, {
1358
1509
  value: {
1359
- didCatch: i,
1360
- error: o,
1510
+ didCatch: o,
1511
+ error: i,
1361
1512
  resetErrorBoundary: this.resetErrorBoundary
1362
1513
  }
1363
- }, u);
1514
+ }, c);
1364
1515
  }
1365
1516
  }
1366
- function oa() {
1367
- let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
1368
- return t.length !== e.length || t.some((r, s) => !Object.is(r, e[s]));
1517
+ function va() {
1518
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
1519
+ return e.length !== t.length || e.some((r, s) => !Object.is(r, t[s]));
1369
1520
  }
1370
- const it = new Lr();
1371
- class la {
1372
- constructor(e) {
1373
- v(this, "plugins");
1374
- v(this, "sidebars");
1375
- v(this, "topNavigation");
1376
- v(this, "meta");
1377
- v(this, "page");
1378
- v(this, "authentication");
1379
- v(this, "navigationPlugins");
1380
- v(this, "initialize", async () => {
1521
+ class xa {
1522
+ constructor(t) {
1523
+ S(this, "plugins");
1524
+ S(this, "sidebars");
1525
+ S(this, "topNavigation");
1526
+ S(this, "meta");
1527
+ S(this, "page");
1528
+ S(this, "authentication");
1529
+ S(this, "navigationPlugins");
1530
+ S(this, "initialize", async () => {
1381
1531
  await Promise.all(
1382
- this.plugins.filter(Wr).map((e) => {
1532
+ this.plugins.filter(ia).map((t) => {
1383
1533
  var r;
1384
- return (r = e.initialize) == null ? void 0 : r.call(e, this);
1534
+ return (r = t.initialize) == null ? void 0 : r.call(t, this);
1385
1535
  })
1386
1536
  );
1387
1537
  });
1388
- v(this, "invalidateCache", async (e) => {
1389
- await it.invalidateQueries({ queryKey: e });
1390
- });
1391
- v(this, "getApiIdentities", async () => (await Promise.all(
1392
- this.plugins.filter(Jr).map((r) => r.getIdentities(this))
1538
+ S(this, "getApiIdentities", async () => (await Promise.all(
1539
+ this.plugins.filter(ca).map((r) => r.getIdentities(this))
1393
1540
  )).flat());
1394
- v(this, "getPluginSidebar", async (e) => (await Promise.all(
1541
+ S(this, "getPluginSidebar", async (t) => (await Promise.all(
1395
1542
  this.navigationPlugins.map(
1396
1543
  (s) => {
1397
1544
  var n;
1398
- return (n = s.getSidebar) == null ? void 0 : n.call(s, B(e));
1545
+ return (n = s.getSidebar) == null ? void 0 : n.call(s, Q(t));
1399
1546
  }
1400
1547
  )
1401
1548
  )).flatMap((s) => s ?? []));
1402
- v(this, "signRequest", async (e) => {
1549
+ S(this, "signRequest", async (t) => {
1403
1550
  if (!this.authentication)
1404
1551
  throw new Error("No authentication provider configured");
1405
1552
  const r = await this.authentication.getAccessToken();
1406
- return e.headers.set("Authorization", `Bearer ${r}`), e;
1553
+ return t.headers.set("Authorization", `Bearer ${r}`), t;
1407
1554
  });
1408
- this.plugins = e.plugins ?? [], this.topNavigation = e.topNavigation ?? [], this.sidebars = e.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(Vr), this.authentication = e.authentication, this.meta = e.metadata, this.page = e.page;
1555
+ this.plugins = t.plugins ?? [], this.topNavigation = t.topNavigation ?? [], this.sidebars = t.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(sa), this.authentication = t.authentication, this.meta = t.metadata, this.page = t.page;
1409
1556
  }
1410
1557
  }
1411
- function ca({ error: t, resetErrorBoundary: e }) {
1412
- return /* @__PURE__ */ a.jsx(_e, { error: t });
1558
+ function ya({ error: e, resetErrorBoundary: t }) {
1559
+ return /* @__PURE__ */ a.jsx(ze, { error: e });
1413
1560
  }
1414
- const J = globalThis;
1415
- (!J.requestIdleCallback || !J.cancelIdleCallback) && (J.requestIdleCallback = (t) => setTimeout(t, 1), J.cancelIdleCallback = clearTimeout);
1416
- const ot = {
1417
- Header: st
1418
- }, ua = Le(ot), da = ua.Provider, ha = (t) => {
1419
- const [e, r] = Q(!1);
1420
- _(() => {
1421
- const i = localStorage.getItem("theme"), o = window.matchMedia("(prefers-color-scheme: dark)"), u = i === "dark" || !i && o.matches;
1422
- r(u);
1423
- }, [e]);
1424
- const s = Qe(() => {
1425
- const i = !e;
1426
- document.documentElement.classList.toggle("dark", i), localStorage.setItem("theme", i ? "dark" : "light"), r(i);
1427
- }, [e]), n = [e, s];
1428
- return /* @__PURE__ */ a.jsx(Kt.Provider, { value: n, ...t });
1429
- }, fa = ({
1430
- children: t,
1431
- context: e
1432
- }) => (ar({
1433
- queryFn: async () => (await e.initialize(), !0),
1561
+ const te = globalThis;
1562
+ (!te.requestIdleCallback || !te.cancelIdleCallback) && (te.requestIdleCallback = (e) => setTimeout(e, 1), te.cancelIdleCallback = clearTimeout);
1563
+ const mt = {
1564
+ Header: ht
1565
+ }, ba = We(mt), ja = ba.Provider, wa = ({
1566
+ children: e,
1567
+ context: t
1568
+ }) => (Bt({
1569
+ queryFn: async () => (await t.initialize(), !0),
1434
1570
  queryKey: ["zudoku-initialize"]
1435
- }), /* @__PURE__ */ a.jsx(sr.Provider, { value: e, children: t })), lt = Be(
1436
- ({ children: t, ...e }) => {
1437
- var S, p;
1438
- const r = re(
1439
- () => ({ ...ot, ...e.overrides }),
1440
- [e.overrides]
1441
- ), s = re(() => {
1442
- var h;
1571
+ }), /* @__PURE__ */ a.jsx(zt.Provider, { value: t, children: e })), gt = Ye(
1572
+ ({ children: e, ...t }) => {
1573
+ var f, h;
1574
+ const r = se(
1575
+ () => ({ ...mt, ...t.overrides }),
1576
+ [t.overrides]
1577
+ ), s = se(() => {
1578
+ var v;
1443
1579
  return {
1444
- ...(e.plugins ?? []).filter(Xr).flatMap(
1445
- (f) => f.getMdxComponents ? [f.getMdxComponents()] : []
1580
+ ...(t.plugins ?? []).filter(la).flatMap(
1581
+ (m) => m.getMdxComponents ? [m.getMdxComponents()] : []
1446
1582
  ).reduce(
1447
- (f, L) => ({ ...f, ...L }),
1583
+ (m, E) => ({ ...m, ...E }),
1448
1584
  {}
1449
1585
  ),
1450
- ...$t,
1451
- ...(h = e.mdx) == null ? void 0 : h.components
1586
+ ...or,
1587
+ ...(v = t.mdx) == null ? void 0 : v.components
1452
1588
  };
1453
- }, [(S = e.mdx) == null ? void 0 : S.components, e.plugins]), { stagger: n } = Ot(oe), [i, o] = Q(!1), u = re(
1454
- () => i ? { stagger: !0 } : { stagger: n },
1455
- [n, i]
1456
- ), c = wt();
1457
- _(() => {
1458
- i || o(!0);
1459
- }, [i, c.location]);
1460
- const [g] = Q(() => new la(e)), j = (p = e.plugins) == null ? void 0 : p.filter(Yr).map((k, h) => {
1461
- var f;
1462
- return /* @__PURE__ */ a.jsx(Dt, { children: (f = k.getHead) == null ? void 0 : f.call(k) }, h);
1589
+ }, [(f = t.mdx) == null ? void 0 : f.components, t.plugins]), { stagger: n } = Vt(le), [o, i] = q(!1), c = se(
1590
+ () => o ? { stagger: !0 } : { stagger: n },
1591
+ [n, o]
1592
+ ), u = xe();
1593
+ L(() => {
1594
+ o || i(!0);
1595
+ }, [o, u.location]);
1596
+ const [d] = q(() => new xa(t)), p = (h = t.plugins) == null ? void 0 : h.filter(oa).map((g, v) => {
1597
+ var m;
1598
+ return /* @__PURE__ */ a.jsx(Zt, { children: (m = g.getHead) == null ? void 0 : m.call(g) }, v);
1463
1599
  });
1464
- return /* @__PURE__ */ a.jsxs(nr, { client: it, children: [
1465
- /* @__PURE__ */ a.jsx(ce, { children: j }),
1466
- /* @__PURE__ */ a.jsx(oe.Provider, { value: u, children: /* @__PURE__ */ a.jsx(fa, { context: g, children: /* @__PURE__ */ a.jsx(gt, { components: s, children: /* @__PURE__ */ a.jsx(ha, { children: /* @__PURE__ */ a.jsx(da, { value: r, children: /* @__PURE__ */ a.jsx(St, { slotlets: e.slotlets, children: /* @__PURE__ */ a.jsx(Ut, { children: t ?? /* @__PURE__ */ a.jsx(Te, {}) }) }) }) }) }) }) })
1600
+ return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1601
+ /* @__PURE__ */ a.jsx(he, { children: p }),
1602
+ /* @__PURE__ */ a.jsx(le.Provider, { value: c, children: /* @__PURE__ */ a.jsx(wa, { context: d, children: /* @__PURE__ */ a.jsx(jt, { components: s, children: /* @__PURE__ */ a.jsx(wr, { attribute: "class", disableTransitionOnChange: !0, children: /* @__PURE__ */ a.jsx(ja, { value: r, children: /* @__PURE__ */ a.jsx(Pt, { slotlets: t.slotlets, children: /* @__PURE__ */ a.jsx(lr, { children: e ?? /* @__PURE__ */ a.jsx(Xe, {}) }) }) }) }) }) }) })
1467
1603
  ] });
1468
1604
  }
1469
1605
  );
1470
- lt.displayName = "ZudokoInner";
1471
- const ct = (t) => /* @__PURE__ */ a.jsx(ia, { FallbackComponent: ca, children: /* @__PURE__ */ a.jsx(lt, { ...t }) });
1472
- ct.displayName = "Zudoku";
1473
- const Qa = pt, Ba = sa, La = kt, za = xr, Ha = Tr, qa = _r, Ka = ce, $a = F, Ua = Nt, Va = ct, Za = Ct, Wa = ze, Ya = Pt, Xa = te;
1606
+ gt.displayName = "ZudokoInner";
1607
+ const pt = (e) => /* @__PURE__ */ a.jsx(pa, { FallbackComponent: ya, children: /* @__PURE__ */ a.jsx(gt, { ...e }) });
1608
+ pt.displayName = "Zudoku";
1609
+ const Wa = wt, Xa = ma, Ja = kt, Ga = Er, es = Yr, ts = Wr, rs = he, as = F, ss = Ct, ns = pt, is = Dt, os = ye, ls = At, cs = fe;
1474
1610
  export {
1475
- Ha as Bootstrap,
1476
- qa as BootstrapStatic,
1477
- Ya as Button,
1478
- Za as Callout,
1479
- Wa as ClientOnly,
1480
- Ka as Head,
1481
- Ba as Layout,
1482
- Xa as Link,
1483
- La as RouterError,
1484
- za as ServerError,
1485
- Va as Zudoku,
1486
- Ua as useAuth,
1487
- Qa as useMDXComponents,
1488
- $a as useZudoku
1611
+ es as Bootstrap,
1612
+ ts as BootstrapStatic,
1613
+ ls as Button,
1614
+ is as Callout,
1615
+ os as ClientOnly,
1616
+ rs as Head,
1617
+ Xa as Layout,
1618
+ cs as Link,
1619
+ Ja as RouterError,
1620
+ Ga as ServerError,
1621
+ ns as Zudoku,
1622
+ ss as useAuth,
1623
+ Wa as useMDXComponents,
1624
+ as as useZudoku
1489
1625
  };
1490
1626
  //# sourceMappingURL=zudoku.components.js.map