zudoku 0.63.0 → 0.64.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (245) hide show
  1. package/client.d.ts +8 -0
  2. package/dist/app/entry.server.js +14 -1
  3. package/dist/app/entry.server.js.map +1 -1
  4. package/dist/config/config.d.ts +3 -1
  5. package/dist/config/validators/BuildSchema.d.ts +5 -4
  6. package/dist/config/validators/BuildSchema.js +5 -2
  7. package/dist/config/validators/BuildSchema.js.map +1 -1
  8. package/dist/config/validators/InputNavigationSchema.d.ts +20 -20
  9. package/dist/config/validators/validate.d.ts +10 -12
  10. package/dist/config/validators/validate.js +8 -8
  11. package/dist/config/validators/validate.js.map +1 -1
  12. package/dist/flat-config.d.ts +6 -1
  13. package/dist/lib/authentication/authentication.d.ts +17 -9
  14. package/dist/lib/authentication/components/OAuthErrorPage.js +1 -1
  15. package/dist/lib/authentication/components/OAuthErrorPage.js.map +1 -1
  16. package/dist/lib/authentication/components/SignIn.js +6 -5
  17. package/dist/lib/authentication/components/SignIn.js.map +1 -1
  18. package/dist/lib/authentication/components/SignOut.js +6 -6
  19. package/dist/lib/authentication/components/SignOut.js.map +1 -1
  20. package/dist/lib/authentication/components/SignUp.js +5 -5
  21. package/dist/lib/authentication/components/SignUp.js.map +1 -1
  22. package/dist/lib/authentication/hook.d.ts +3 -2
  23. package/dist/lib/authentication/hook.js +12 -8
  24. package/dist/lib/authentication/hook.js.map +1 -1
  25. package/dist/lib/authentication/providers/auth0.js +1 -1
  26. package/dist/lib/authentication/providers/auth0.js.map +1 -1
  27. package/dist/lib/authentication/providers/azureb2c.d.ts +4 -4
  28. package/dist/lib/authentication/providers/azureb2c.js +3 -3
  29. package/dist/lib/authentication/providers/azureb2c.js.map +1 -1
  30. package/dist/lib/authentication/providers/clerk.js +2 -2
  31. package/dist/lib/authentication/providers/clerk.js.map +1 -1
  32. package/dist/lib/authentication/providers/openid.d.ts +7 -7
  33. package/dist/lib/authentication/providers/openid.js +5 -3
  34. package/dist/lib/authentication/providers/openid.js.map +1 -1
  35. package/dist/lib/authentication/providers/supabase/SupabaseAuthUI.d.ts +8 -0
  36. package/dist/lib/authentication/providers/supabase/SupabaseAuthUI.js +39 -0
  37. package/dist/lib/authentication/providers/supabase/SupabaseAuthUI.js.map +1 -0
  38. package/dist/lib/authentication/providers/supabase.js +35 -31
  39. package/dist/lib/authentication/providers/supabase.js.map +1 -1
  40. package/dist/lib/authentication/state.d.ts +1 -5
  41. package/dist/lib/authentication/state.js +2 -14
  42. package/dist/lib/authentication/state.js.map +1 -1
  43. package/dist/lib/components/Zudoku.js +3 -3
  44. package/dist/lib/components/index.d.ts +2 -2
  45. package/dist/lib/components/navigation/Toc.js +1 -1
  46. package/dist/lib/components/navigation/Toc.js.map +1 -1
  47. package/dist/lib/core/RouteGuard.d.ts +1 -1
  48. package/dist/lib/core/RouteGuard.js +6 -14
  49. package/dist/lib/core/RouteGuard.js.map +1 -1
  50. package/dist/lib/core/ZudokuContext.d.ts +1 -0
  51. package/dist/lib/core/ZudokuContext.js +2 -0
  52. package/dist/lib/core/ZudokuContext.js.map +1 -1
  53. package/dist/lib/core/__internal.d.ts +1 -1
  54. package/dist/lib/hooks/index.d.ts +2 -2
  55. package/dist/lib/plugins/markdown/MdxPage.d.ts +2 -1
  56. package/dist/lib/plugins/markdown/MdxPage.js +3 -2
  57. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  58. package/dist/lib/plugins/markdown/index.d.ts +1 -0
  59. package/dist/lib/plugins/markdown/index.js +1 -1
  60. package/dist/lib/plugins/markdown/index.js.map +1 -1
  61. package/dist/lib/plugins/openapi/index.js +4 -9
  62. package/dist/lib/plugins/openapi/index.js.map +1 -1
  63. package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js +1 -1
  64. package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js.map +1 -1
  65. package/dist/lib/plugins/openapi/playground/Playground.js +12 -2
  66. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  67. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.d.ts +2 -1
  68. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js +10 -2
  69. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js.map +1 -1
  70. package/dist/lib/plugins/openapi/playground/result-panel/Highlight.d.ts +1 -1
  71. package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.js +1 -1
  72. package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.js.map +1 -1
  73. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +23 -21
  74. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -1
  75. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +1 -1
  76. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -1
  77. package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js +2 -0
  78. package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js.map +1 -1
  79. package/dist/lib/shiki.d.ts +1 -1
  80. package/dist/lib/shiki.js +13 -2
  81. package/dist/lib/shiki.js.map +1 -1
  82. package/dist/lib/ui/Callout.d.ts +5 -5
  83. package/dist/lib/ui/Callout.js +5 -5
  84. package/dist/lib/ui/Callout.js.map +1 -1
  85. package/dist/lib/ui/EmbeddedCodeBlock.d.ts +3 -1
  86. package/dist/lib/ui/EmbeddedCodeBlock.js +2 -2
  87. package/dist/lib/ui/EmbeddedCodeBlock.js.map +1 -1
  88. package/dist/lib/ui/ReactComponentDoc.d.ts +1 -1
  89. package/dist/lib/ui/ReactComponentDoc.js +2 -2
  90. package/dist/lib/ui/ReactComponentDoc.js.map +1 -1
  91. package/dist/lib/ui/SyntaxHighlight.d.ts +1 -0
  92. package/dist/lib/ui/SyntaxHighlight.js.map +1 -1
  93. package/dist/lib/util/MdxComponents.d.ts +2 -1
  94. package/dist/lib/util/MdxComponents.js +3 -2
  95. package/dist/lib/util/MdxComponents.js.map +1 -1
  96. package/dist/lib/util/syncZustandState.d.ts +5 -0
  97. package/dist/lib/util/syncZustandState.js +14 -0
  98. package/dist/lib/util/syncZustandState.js.map +1 -0
  99. package/dist/vite/api/SchemaManager.d.ts +3 -1
  100. package/dist/vite/api/SchemaManager.js +22 -3
  101. package/dist/vite/api/SchemaManager.js.map +1 -1
  102. package/dist/vite/api/SchemaManager.test.js +2 -2
  103. package/dist/vite/api/SchemaManager.test.js.map +1 -1
  104. package/dist/vite/plugin-api.js +14 -5
  105. package/dist/vite/plugin-api.js.map +1 -1
  106. package/dist/vite/plugin-docs.js +1 -1
  107. package/dist/vite/plugin-docs.js.map +1 -1
  108. package/dist/vite/plugin-markdown-export.js +4 -2
  109. package/dist/vite/plugin-markdown-export.js.map +1 -1
  110. package/dist/vite/plugin-mdx.js +36 -30
  111. package/dist/vite/plugin-mdx.js.map +1 -1
  112. package/lib/{ErrorAlert-VBJ8aHH7.js → ErrorAlert-DE3Sf66a.js} +1711 -1772
  113. package/lib/ErrorAlert-DE3Sf66a.js.map +1 -0
  114. package/lib/{MdxPage-DFRNwSsc.js → MdxPage-DZfeC0QY.js} +81 -80
  115. package/lib/MdxPage-DZfeC0QY.js.map +1 -0
  116. package/lib/{OAuthErrorPage-DJUOdr6Q.js → OAuthErrorPage-BycMozgn.js} +8 -8
  117. package/lib/{OAuthErrorPage-DJUOdr6Q.js.map → OAuthErrorPage-BycMozgn.js.map} +1 -1
  118. package/lib/{OasProvider-D2NYAaBN.js → OasProvider-Bf5zBDBY.js} +3 -3
  119. package/lib/{OasProvider-D2NYAaBN.js.map → OasProvider-Bf5zBDBY.js.map} +1 -1
  120. package/lib/{OperationList-DmXCI4NU.js → OperationList-Cmiw1xm2.js} +10 -10
  121. package/lib/{OperationList-DmXCI4NU.js.map → OperationList-Cmiw1xm2.js.map} +1 -1
  122. package/lib/{Pagination-CT4VUR6u.js → Pagination-CJszmeSA.js} +3 -3
  123. package/lib/{Pagination-CT4VUR6u.js.map → Pagination-CJszmeSA.js.map} +1 -1
  124. package/lib/RouteGuard-DhU3LRr1.js +81 -0
  125. package/lib/RouteGuard-DhU3LRr1.js.map +1 -0
  126. package/lib/{RouterError-fm21cqlj.js → RouterError-VDLnrFqF.js} +5 -5
  127. package/lib/{RouterError-fm21cqlj.js.map → RouterError-VDLnrFqF.js.map} +1 -1
  128. package/lib/{SchemaList-uElsscMN.js → SchemaList-xZSf3IMh.js} +7 -7
  129. package/lib/{SchemaList-uElsscMN.js.map → SchemaList-xZSf3IMh.js.map} +1 -1
  130. package/lib/{SchemaView-CNQ3VAbI.js → SchemaView-tHXTm5oM.js} +3 -3
  131. package/lib/{SchemaView-CNQ3VAbI.js.map → SchemaView-tHXTm5oM.js.map} +1 -1
  132. package/lib/{Select-CPoGZU_V.js → Select-C1DeCqKv.js} +3 -3
  133. package/lib/{Select-CPoGZU_V.js.map → Select-C1DeCqKv.js.map} +1 -1
  134. package/lib/SignUp-6SGx9Yyq.js +50 -0
  135. package/lib/SignUp-6SGx9Yyq.js.map +1 -0
  136. package/lib/{SyntaxHighlight-B0laqAqK.js → SyntaxHighlight-zvlnSnHB.js} +789 -778
  137. package/lib/{SyntaxHighlight-B0laqAqK.js.map → SyntaxHighlight-zvlnSnHB.js.map} +1 -1
  138. package/lib/{Toc-KzXCRqrX.js → Toc-Da9yp7lo.js} +5 -5
  139. package/lib/Toc-Da9yp7lo.js.map +1 -0
  140. package/lib/{ZudokuContext-BXTZApgy.js → ZudokuContext-BUZ5hkWB.js} +33 -31
  141. package/lib/ZudokuContext-BUZ5hkWB.js.map +1 -0
  142. package/lib/{chunk-PVWAREVJ-BO6B-RAk.js → chunk-PVWAREVJ-BMhpCH5D.js} +7 -7
  143. package/lib/{chunk-PVWAREVJ-BO6B-RAk.js.map → chunk-PVWAREVJ-BMhpCH5D.js.map} +1 -1
  144. package/lib/{circular-BWT7_Ahq.js → circular-DvuimBGQ.js} +2 -2
  145. package/lib/{circular-BWT7_Ahq.js.map → circular-DvuimBGQ.js.map} +1 -1
  146. package/lib/{createServer-zhJZSgor.js → createServer-D9UvCoDf.js} +4 -4
  147. package/lib/{createServer-zhJZSgor.js.map → createServer-D9UvCoDf.js.map} +1 -1
  148. package/lib/{errors-XqO6MsfU.js → errors-CuGgh3hf.js} +2 -2
  149. package/lib/{errors-XqO6MsfU.js.map → errors-CuGgh3hf.js.map} +1 -1
  150. package/lib/hook-CMeoxziF.js +40 -0
  151. package/lib/hook-CMeoxziF.js.map +1 -0
  152. package/lib/{index-BPSpOxTK.js → index-B1rmok4X.js} +148 -147
  153. package/lib/index-B1rmok4X.js.map +1 -0
  154. package/lib/{index-D8Btv4uT.js → index-Cr9_YzOZ.js} +826 -780
  155. package/lib/index-Cr9_YzOZ.js.map +1 -0
  156. package/lib/{index-C5L4favO.js → index-rYHsvtTo.js} +2 -2
  157. package/lib/{index-C5L4favO.js.map → index-rYHsvtTo.js.map} +1 -1
  158. package/lib/{mutation-CdGPxHNX.js → mutation-BSU0xu4m.js} +2 -2
  159. package/lib/{mutation-CdGPxHNX.js.map → mutation-BSU0xu4m.js.map} +1 -1
  160. package/lib/ui/Callout.js +18 -18
  161. package/lib/ui/Callout.js.map +1 -1
  162. package/lib/ui/CodeBlock.js +217 -7
  163. package/lib/ui/CodeBlock.js.map +1 -1
  164. package/lib/ui/EmbeddedCodeBlock.js +22 -19
  165. package/lib/ui/EmbeddedCodeBlock.js.map +1 -1
  166. package/lib/ui/ReactComponentDoc.js +13 -13
  167. package/lib/ui/ReactComponentDoc.js.map +1 -1
  168. package/lib/ui/SyntaxHighlight.js +3 -3
  169. package/lib/{useExposedProps-Cd7Yg_uG.js → useExposedProps-U3pmsHaG.js} +2 -2
  170. package/lib/{useExposedProps-Cd7Yg_uG.js.map → useExposedProps-U3pmsHaG.js.map} +1 -1
  171. package/lib/zudoku.__internal.js +7 -7
  172. package/lib/zudoku.auth-auth0.js +13 -13
  173. package/lib/zudoku.auth-auth0.js.map +1 -1
  174. package/lib/zudoku.auth-azureb2c.js +28 -28
  175. package/lib/zudoku.auth-azureb2c.js.map +1 -1
  176. package/lib/zudoku.auth-clerk.js +40 -40
  177. package/lib/zudoku.auth-clerk.js.map +1 -1
  178. package/lib/zudoku.auth-openid.js +53 -56
  179. package/lib/zudoku.auth-openid.js.map +1 -1
  180. package/lib/zudoku.auth-supabase.js +111 -52
  181. package/lib/zudoku.auth-supabase.js.map +1 -1
  182. package/lib/zudoku.components.js +6 -6
  183. package/lib/zudoku.hooks.js +4 -4
  184. package/lib/zudoku.plugin-api-catalog.js +5 -5
  185. package/lib/zudoku.plugin-api-keys.js +99 -99
  186. package/lib/zudoku.plugin-custom-pages.js +1 -1
  187. package/lib/zudoku.plugin-markdown.js +10 -9
  188. package/lib/zudoku.plugin-markdown.js.map +1 -1
  189. package/lib/zudoku.plugin-openapi.js +6 -7
  190. package/lib/zudoku.plugin-openapi.js.map +1 -1
  191. package/lib/zudoku.plugin-redirect.js +1 -1
  192. package/lib/zudoku.plugin-search-pagefind.js +38 -38
  193. package/lib/zudoku.plugin-search-pagefind.js.map +1 -1
  194. package/lib/zudoku.router.js +2 -2
  195. package/package.json +18 -10
  196. package/src/app/entry.server.tsx +16 -6
  197. package/src/app/main.css +61 -9
  198. package/src/lib/authentication/authentication.ts +22 -4
  199. package/src/lib/authentication/components/OAuthErrorPage.tsx +1 -1
  200. package/src/lib/authentication/components/SignIn.tsx +7 -5
  201. package/src/lib/authentication/components/SignOut.tsx +7 -6
  202. package/src/lib/authentication/components/SignUp.tsx +5 -8
  203. package/src/lib/authentication/hook.ts +21 -10
  204. package/src/lib/authentication/providers/auth0.tsx +2 -1
  205. package/src/lib/authentication/providers/azureb2c.tsx +10 -3
  206. package/src/lib/authentication/providers/clerk.tsx +9 -2
  207. package/src/lib/authentication/providers/openid.tsx +20 -15
  208. package/src/lib/authentication/providers/supabase/SupabaseAuthUI.tsx +75 -0
  209. package/src/lib/authentication/providers/supabase.tsx +59 -43
  210. package/src/lib/authentication/state.ts +3 -23
  211. package/src/lib/components/Zudoku.tsx +3 -3
  212. package/src/lib/components/navigation/Toc.tsx +3 -3
  213. package/src/lib/core/RouteGuard.tsx +33 -13
  214. package/src/lib/core/ZudokuContext.ts +3 -0
  215. package/src/lib/plugins/markdown/MdxPage.tsx +4 -1
  216. package/src/lib/plugins/markdown/index.tsx +2 -0
  217. package/src/lib/plugins/openapi/index.tsx +9 -29
  218. package/src/lib/plugins/openapi/playground/CollapsibleHeader.tsx +2 -2
  219. package/src/lib/plugins/openapi/playground/Playground.tsx +13 -2
  220. package/src/lib/plugins/openapi/playground/RequestLoginDialog.tsx +20 -1
  221. package/src/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.tsx +2 -2
  222. package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +102 -58
  223. package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +1 -1
  224. package/src/lib/plugins/openapi/playground/useRememberSkipLoginDialog.tsx +3 -0
  225. package/src/lib/shiki.ts +16 -2
  226. package/src/lib/ui/Callout.tsx +10 -5
  227. package/src/lib/ui/EmbeddedCodeBlock.tsx +6 -3
  228. package/src/lib/ui/ReactComponentDoc.tsx +17 -17
  229. package/src/lib/ui/SyntaxHighlight.tsx +6 -1
  230. package/src/lib/util/MdxComponents.tsx +3 -5
  231. package/src/lib/util/syncZustandState.ts +22 -0
  232. package/lib/CodeBlock-CanTUJLl.js +0 -221
  233. package/lib/CodeBlock-CanTUJLl.js.map +0 -1
  234. package/lib/ErrorAlert-VBJ8aHH7.js.map +0 -1
  235. package/lib/MdxPage-DFRNwSsc.js.map +0 -1
  236. package/lib/RouteGuard-Bg0Lu0OU.js +0 -56
  237. package/lib/RouteGuard-Bg0Lu0OU.js.map +0 -1
  238. package/lib/SignUp-BraHuRN_.js +0 -56
  239. package/lib/SignUp-BraHuRN_.js.map +0 -1
  240. package/lib/Toc-KzXCRqrX.js.map +0 -1
  241. package/lib/ZudokuContext-BXTZApgy.js.map +0 -1
  242. package/lib/hook-CAebs2rv.js +0 -31
  243. package/lib/hook-CAebs2rv.js.map +0 -1
  244. package/lib/index-BPSpOxTK.js.map +0 -1
  245. package/lib/index-D8Btv4uT.js.map +0 -1
@@ -1,16 +1,16 @@
1
- import { H as be } from "./index.esm-BnYHxCYC.js";
2
- import { z as je, M as rt, J as nt, a as ot } from "./useExposedProps-Cd7Yg_uG.js";
3
- import { b2 as Ee, ac as st, L as re, c as Se, O as at } from "./chunk-PVWAREVJ-BO6B-RAk.js";
4
- import { u as q } from "./hook-CAebs2rv.js";
5
- import { Button as it } from "./ui/Button.js";
6
- import { Callout as ct } from "./ui/Callout.js";
1
+ import { H as je } from "./index.esm-BnYHxCYC.js";
2
+ import { z as Se, M as nt, J as ot, a as st } from "./useExposedProps-U3pmsHaG.js";
3
+ import { b2 as Ee, ac as at, L as re, d as we, O as it } from "./chunk-PVWAREVJ-BMhpCH5D.js";
4
+ import { u as q } from "./hook-CMeoxziF.js";
5
+ import { Button as ct } from "./ui/Button.js";
6
+ import { Callout as lt } from "./ui/Callout.js";
7
7
  import { C as F } from "./ClientOnly-E7hGysn1.js";
8
- import { u as lt, j as z, a as O, o as we, p as ut, q as dt, b as ft, N as mt, Z as ht, i as pt, d as gt, C as vt } from "./ZudokuContext-BXTZApgy.js";
9
- import { E as xt, a as R, d as yt, b as bt, c as jt, V as Et, M as St, T as wt } from "./ErrorAlert-VBJ8aHH7.js";
8
+ import { u as ie, j as z, a as O, o as Ce, p as ut, q as dt, b as ft, N as mt, Z as ht, g as pt, d as gt, C as vt } from "./ZudokuContext-BUZ5hkWB.js";
9
+ import { E as xt, a as R, d as yt, b as bt, c as jt, V as St, M as Et, T as wt } from "./ErrorAlert-DE3Sf66a.js";
10
10
  import { S as Ct } from "./Spinner-CI6bRyZw.js";
11
11
  import { j as r } from "./jsx-runtime-BzflLqGi.js";
12
- import { Component as Pt, createElement as ie, createContext as ne, useState as L, useRef as D, useCallback as M, useEffect as $, Suspense as Ce, memo as Pe, useMemo as W, useContext as Nt } from "react";
13
- import { isNavigationPlugin as ce, isAuthenticationPlugin as Tt, isEventConsumerPlugin as _t, needsInitialization as Mt, isApiIdentityPlugin as At, isProfileMenuPlugin as Ne, isSearchPlugin as Rt, isMdxProviderPlugin as kt, hasHead as Ot } from "./zudoku.plugins.js";
12
+ import { Component as Pt, createElement as ce, createContext as ne, useState as L, useRef as D, useCallback as A, useEffect as $, Suspense as Pe, memo as Ne, useMemo as W, useContext as Nt } from "react";
13
+ import { isNavigationPlugin as le, isAuthenticationPlugin as Tt, isEventConsumerPlugin as _t, needsInitialization as At, isApiIdentityPlugin as Mt, isProfileMenuPlugin as Te, isSearchPlugin as Rt, isMdxProviderPlugin as kt, hasHead as Ot } from "./zudoku.plugins.js";
14
14
  import { B as J } from "./Button-DmS4u8Lj.js";
15
15
  import { c as k } from "./cn-dYga0KKN.js";
16
16
  import { DropdownMenu as $t, DropdownMenuTrigger as It, DropdownMenuContent as Dt, DropdownMenuLabel as Ft, DropdownMenuSeparator as X, DropdownMenuSub as Lt, DropdownMenuSubTrigger as qt, DropdownMenuPortal as zt, DropdownMenuSubContent as Bt, DropdownMenuItem as Yt } from "./ui/DropdownMenu.js";
@@ -83,13 +83,13 @@ class nr extends Pt {
83
83
  if (typeof n == "function")
84
84
  d = n(v);
85
85
  else if (o)
86
- d = ie(o, v);
86
+ d = ce(o, v);
87
87
  else if (i !== void 0)
88
88
  d = i;
89
89
  else
90
90
  throw s;
91
91
  }
92
- return ie(rr.Provider, {
92
+ return ce(rr.Provider, {
93
93
  value: {
94
94
  didCatch: c,
95
95
  error: s,
@@ -114,7 +114,7 @@ let sr = () => ({
114
114
  };
115
115
  }
116
116
  });
117
- const ar = (e) => Object.entries(e), le = (e) => {
117
+ const ar = (e) => Object.entries(e), ue = (e) => {
118
118
  if (e)
119
119
  return Array.isArray(e) ? Object.fromEntries(
120
120
  e.map((t) => [
@@ -129,6 +129,7 @@ class ir {
129
129
  meta;
130
130
  site;
131
131
  authentication;
132
+ getAuthState;
132
133
  queryClient;
133
134
  options;
134
135
  navigationPlugins;
@@ -137,18 +138,18 @@ class ir {
137
138
  const i = {
138
139
  ...Object.fromEntries(
139
140
  (t.plugins ?? []).flatMap((c) => {
140
- if (!ce(c)) return [];
141
+ if (!le(c)) return [];
141
142
  const s = c.getProtectedRoutes?.();
142
- return s ? Object.entries(le(s) ?? {}) : [];
143
+ return s ? Object.entries(ue(s) ?? {}) : [];
143
144
  })
144
145
  ),
145
- ...le(t.protectedRoutes)
146
+ ...ue(t.protectedRoutes)
146
147
  };
147
- this.queryClient = n, this.options = { ...t, protectedRoutes: i }, this.plugins = t.plugins ?? [], this.navigation = t.navigation ?? [], this.navigationPlugins = this.plugins.filter(ce), this.authentication = this.plugins.find(Tt), this.meta = t.metadata, this.site = t.site, this.plugins.forEach((c) => {
148
+ this.queryClient = n, this.options = { ...t, protectedRoutes: i }, this.plugins = t.plugins ?? [], this.navigation = t.navigation ?? [], this.navigationPlugins = this.plugins.filter(le), this.authentication = this.plugins.find(Tt), this.getAuthState = ie.getState, this.meta = t.metadata, this.site = t.site, this.plugins.forEach((c) => {
148
149
  _t(c) && ar(c.events).forEach(([s, d]) => {
149
150
  this.emitter.on(s, d);
150
151
  });
151
- }), lt.subscribe((c, s) => {
152
+ }), ie.subscribe((c, s) => {
152
153
  this.emitEvent("auth", {
153
154
  prev: s,
154
155
  next: c
@@ -157,11 +158,11 @@ class ir {
157
158
  }
158
159
  initialize = async () => {
159
160
  await Promise.all(
160
- this.plugins.filter(Mt).map((t) => t.initialize?.(this))
161
+ this.plugins.filter(At).map((t) => t.initialize?.(this))
161
162
  );
162
163
  };
163
164
  getApiIdentities = async () => (await Promise.all(
164
- this.plugins.filter(At).map((n) => n.getIdentities(this))
165
+ this.plugins.filter(Mt).map((n) => n.getIdentities(this))
165
166
  )).flat();
166
167
  addEventListener(t, n) {
167
168
  return this.emitter.on(t, n);
@@ -172,7 +173,7 @@ class ir {
172
173
  (o) => o.getNavigation?.(z(t), this)
173
174
  )
174
175
  )).flatMap((o) => o ?? []);
175
- getProfileMenuItems = () => this.plugins.filter((n) => Ne(n)).flatMap((n) => n.getProfileMenuItems(this)).sort(cr(["top", "middle", "bottom"])).sort((n) => n.weight ?? 0);
176
+ getProfileMenuItems = () => this.plugins.filter((n) => Te(n)).flatMap((n) => n.getProfileMenuItems(this)).sort(cr(["top", "middle", "bottom"])).sort((n) => n.weight ?? 0);
176
177
  signRequest = async (t) => {
177
178
  if (!this.authentication)
178
179
  throw new Error("No authentication provider configured");
@@ -186,7 +187,7 @@ const cr = (e) => (t, n) => {
186
187
  function lr({ error: e }) {
187
188
  return /* @__PURE__ */ r.jsx(xt, { error: e });
188
189
  }
189
- const ue = ne({ stagger: !1 }), Y = globalThis;
190
+ const de = ne({ stagger: !1 }), Y = globalThis;
190
191
  (!Y.requestIdleCallback || !Y.cancelIdleCallback) && (Y.requestIdleCallback = (e) => setTimeout(e, 1), Y.cancelIdleCallback = clearTimeout);
191
192
  function ee({
192
193
  className: e,
@@ -200,7 +201,7 @@ function ee({
200
201
  }
201
202
  );
202
203
  }
203
- const de = {
204
+ const fe = {
204
205
  info: "bg-blue-500",
205
206
  note: "bg-gray-500",
206
207
  tip: "bg-green-600",
@@ -210,7 +211,7 @@ const de = {
210
211
  const { site: e } = O(), [t, n] = L(!0);
211
212
  if (!e?.banner || !t)
212
213
  return /* @__PURE__ */ r.jsx("style", { children: ":root { --banner-height: 0px; }" });
213
- const o = e.banner.color && e.banner.color in de ? de[e.banner.color] : e.banner.color ? void 0 : "bg-primary", i = o ? {} : { backgroundColor: e.banner.color };
214
+ const o = e.banner.color && e.banner.color in fe ? fe[e.banner.color] : e.banner.color ? void 0 : "bg-primary", i = o ? {} : { backgroundColor: e.banner.color };
214
215
  return /* @__PURE__ */ r.jsxs(
215
216
  "div",
216
217
  {
@@ -233,7 +234,7 @@ const de = {
233
234
  ]
234
235
  }
235
236
  );
236
- }, Te = (e) => /* @__PURE__ */ r.jsxs(
237
+ }, _e = (e) => /* @__PURE__ */ r.jsxs(
237
238
  "svg",
238
239
  {
239
240
  xmlns: "http://www.w3.org/2000/svg",
@@ -260,7 +261,7 @@ const de = {
260
261
  ]
261
262
  }
262
263
  );
263
- Te.displayName = "ZudokuLogo";
264
+ _e.displayName = "ZudokuLogo";
264
265
  const dr = ({ className: e }) => /* @__PURE__ */ r.jsxs(
265
266
  "a",
266
267
  {
@@ -273,7 +274,7 @@ const dr = ({ className: e }) => /* @__PURE__ */ r.jsxs(
273
274
  ),
274
275
  children: [
275
276
  /* @__PURE__ */ r.jsxs("div", { className: "opacity-70 hover:opacity-100 transition-opacity gap-1.5 text-[11px] font-medium rounded-full h-7 flex items-center text-nowrap", children: [
276
- /* @__PURE__ */ r.jsx(Te, { className: "w-3.5 h-3.5 dark:fill-white" }),
277
+ /* @__PURE__ */ r.jsx(_e, { className: "w-3.5 h-3.5 dark:fill-white" }),
277
278
  "powered by ",
278
279
  "Zudoku"
279
280
  ] }),
@@ -307,11 +308,11 @@ var Z = { exports: {} }, h = {};
307
308
  * This source code is licensed under the MIT license found in the
308
309
  * LICENSE file in the root directory of this source tree.
309
310
  */
310
- var fe;
311
+ var me;
311
312
  function fr() {
312
- if (fe) return h;
313
- fe = 1;
314
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, c = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, d = e ? Symbol.for("react.context") : 60110, v = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, b = e ? Symbol.for("react.forward_ref") : 60112, y = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, l = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, S = e ? Symbol.for("react.block") : 60121, w = e ? Symbol.for("react.fundamental") : 60117, C = e ? Symbol.for("react.responder") : 60118, P = e ? Symbol.for("react.scope") : 60119;
313
+ if (me) return h;
314
+ me = 1;
315
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, c = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, d = e ? Symbol.for("react.context") : 60110, v = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, b = e ? Symbol.for("react.forward_ref") : 60112, y = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, l = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, E = e ? Symbol.for("react.block") : 60121, w = e ? Symbol.for("react.fundamental") : 60117, C = e ? Symbol.for("react.responder") : 60118, P = e ? Symbol.for("react.scope") : 60119;
315
316
  function j(a) {
316
317
  if (typeof a == "object" && a !== null) {
317
318
  var x = a.$$typeof;
@@ -342,12 +343,12 @@ function fr() {
342
343
  }
343
344
  }
344
345
  }
345
- function E(a) {
346
+ function S(a) {
346
347
  return j(a) === f;
347
348
  }
348
349
  return h.AsyncMode = v, h.ConcurrentMode = f, h.ContextConsumer = d, h.ContextProvider = s, h.Element = t, h.ForwardRef = b, h.Fragment = o, h.Lazy = g, h.Memo = l, h.Portal = n, h.Profiler = c, h.StrictMode = i, h.Suspense = y, h.isAsyncMode = function(a) {
349
- return E(a) || j(a) === v;
350
- }, h.isConcurrentMode = E, h.isContextConsumer = function(a) {
350
+ return S(a) || j(a) === v;
351
+ }, h.isConcurrentMode = S, h.isContextConsumer = function(a) {
351
352
  return j(a) === d;
352
353
  }, h.isContextProvider = function(a) {
353
354
  return j(a) === s;
@@ -370,7 +371,7 @@ function fr() {
370
371
  }, h.isSuspense = function(a) {
371
372
  return j(a) === y;
372
373
  }, h.isValidElementType = function(a) {
373
- return typeof a == "string" || typeof a == "function" || a === o || a === f || a === c || a === i || a === y || a === m || typeof a == "object" && a !== null && (a.$$typeof === g || a.$$typeof === l || a.$$typeof === s || a.$$typeof === d || a.$$typeof === b || a.$$typeof === w || a.$$typeof === C || a.$$typeof === P || a.$$typeof === S);
374
+ return typeof a == "string" || typeof a == "function" || a === o || a === f || a === c || a === i || a === y || a === m || typeof a == "object" && a !== null && (a.$$typeof === g || a.$$typeof === l || a.$$typeof === s || a.$$typeof === d || a.$$typeof === b || a.$$typeof === w || a.$$typeof === C || a.$$typeof === P || a.$$typeof === E);
374
375
  }, h.typeOf = j, h;
375
376
  }
376
377
  var p = {};
@@ -382,15 +383,15 @@ var p = {};
382
383
  * This source code is licensed under the MIT license found in the
383
384
  * LICENSE file in the root directory of this source tree.
384
385
  */
385
- var me;
386
+ var he;
386
387
  function mr() {
387
- return me || (me = 1, process.env.NODE_ENV !== "production" && (function() {
388
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, c = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, d = e ? Symbol.for("react.context") : 60110, v = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, b = e ? Symbol.for("react.forward_ref") : 60112, y = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, l = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, S = e ? Symbol.for("react.block") : 60121, w = e ? Symbol.for("react.fundamental") : 60117, C = e ? Symbol.for("react.responder") : 60118, P = e ? Symbol.for("react.scope") : 60119;
388
+ return he || (he = 1, process.env.NODE_ENV !== "production" && (function() {
389
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, c = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, d = e ? Symbol.for("react.context") : 60110, v = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, b = e ? Symbol.for("react.forward_ref") : 60112, y = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, l = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, E = e ? Symbol.for("react.block") : 60121, w = e ? Symbol.for("react.fundamental") : 60117, C = e ? Symbol.for("react.responder") : 60118, P = e ? Symbol.for("react.scope") : 60119;
389
390
  function j(u) {
390
391
  return typeof u == "string" || typeof u == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
391
- u === o || u === f || u === c || u === i || u === y || u === m || typeof u == "object" && u !== null && (u.$$typeof === g || u.$$typeof === l || u.$$typeof === s || u.$$typeof === d || u.$$typeof === b || u.$$typeof === w || u.$$typeof === C || u.$$typeof === P || u.$$typeof === S);
392
+ u === o || u === f || u === c || u === i || u === y || u === m || typeof u == "object" && u !== null && (u.$$typeof === g || u.$$typeof === l || u.$$typeof === s || u.$$typeof === d || u.$$typeof === b || u.$$typeof === w || u.$$typeof === C || u.$$typeof === P || u.$$typeof === E);
392
393
  }
393
- function E(u) {
394
+ function S(u) {
394
395
  if (typeof u == "object" && u !== null) {
395
396
  var V = u.$$typeof;
396
397
  switch (V) {
@@ -422,57 +423,57 @@ function mr() {
422
423
  }
423
424
  }
424
425
  }
425
- var a = v, x = f, N = d, T = s, I = t, _ = b, U = o, A = g, Le = l, qe = n, ze = c, Be = i, Ye = y, oe = !1;
426
- function Ze(u) {
427
- return oe || (oe = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), se(u) || E(u) === v;
426
+ var a = v, x = f, N = d, T = s, I = t, _ = b, U = o, M = g, qe = l, ze = n, Be = c, Ye = i, Ze = y, oe = !1;
427
+ function He(u) {
428
+ return oe || (oe = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), se(u) || S(u) === v;
428
429
  }
429
430
  function se(u) {
430
- return E(u) === f;
431
- }
432
- function He(u) {
433
- return E(u) === d;
431
+ return S(u) === f;
434
432
  }
435
433
  function Ke(u) {
436
- return E(u) === s;
434
+ return S(u) === d;
437
435
  }
438
436
  function Ue(u) {
439
- return typeof u == "object" && u !== null && u.$$typeof === t;
437
+ return S(u) === s;
440
438
  }
441
439
  function Ve(u) {
442
- return E(u) === b;
440
+ return typeof u == "object" && u !== null && u.$$typeof === t;
443
441
  }
444
442
  function We(u) {
445
- return E(u) === o;
443
+ return S(u) === b;
446
444
  }
447
445
  function Xe(u) {
448
- return E(u) === g;
446
+ return S(u) === o;
449
447
  }
450
448
  function Ge(u) {
451
- return E(u) === l;
449
+ return S(u) === g;
452
450
  }
453
451
  function Qe(u) {
454
- return E(u) === n;
452
+ return S(u) === l;
455
453
  }
456
454
  function Je(u) {
457
- return E(u) === c;
455
+ return S(u) === n;
458
456
  }
459
457
  function et(u) {
460
- return E(u) === i;
458
+ return S(u) === c;
461
459
  }
462
460
  function tt(u) {
463
- return E(u) === y;
461
+ return S(u) === i;
462
+ }
463
+ function rt(u) {
464
+ return S(u) === y;
464
465
  }
465
- p.AsyncMode = a, p.ConcurrentMode = x, p.ContextConsumer = N, p.ContextProvider = T, p.Element = I, p.ForwardRef = _, p.Fragment = U, p.Lazy = A, p.Memo = Le, p.Portal = qe, p.Profiler = ze, p.StrictMode = Be, p.Suspense = Ye, p.isAsyncMode = Ze, p.isConcurrentMode = se, p.isContextConsumer = He, p.isContextProvider = Ke, p.isElement = Ue, p.isForwardRef = Ve, p.isFragment = We, p.isLazy = Xe, p.isMemo = Ge, p.isPortal = Qe, p.isProfiler = Je, p.isStrictMode = et, p.isSuspense = tt, p.isValidElementType = j, p.typeOf = E;
466
+ p.AsyncMode = a, p.ConcurrentMode = x, p.ContextConsumer = N, p.ContextProvider = T, p.Element = I, p.ForwardRef = _, p.Fragment = U, p.Lazy = M, p.Memo = qe, p.Portal = ze, p.Profiler = Be, p.StrictMode = Ye, p.Suspense = Ze, p.isAsyncMode = He, p.isConcurrentMode = se, p.isContextConsumer = Ke, p.isContextProvider = Ue, p.isElement = Ve, p.isForwardRef = We, p.isFragment = Xe, p.isLazy = Ge, p.isMemo = Qe, p.isPortal = Je, p.isProfiler = et, p.isStrictMode = tt, p.isSuspense = rt, p.isValidElementType = j, p.typeOf = S;
466
467
  })()), p;
467
468
  }
468
- var he;
469
+ var pe;
469
470
  function hr() {
470
- return he || (he = 1, process.env.NODE_ENV === "production" ? Z.exports = fr() : Z.exports = mr()), Z.exports;
471
+ return pe || (pe = 1, process.env.NODE_ENV === "production" ? Z.exports = fr() : Z.exports = mr()), Z.exports;
471
472
  }
472
- var Q, pe;
473
+ var Q, ge;
473
474
  function pr() {
474
- if (pe) return Q;
475
- pe = 1;
475
+ if (ge) return Q;
476
+ ge = 1;
476
477
  var e = hr(), t = {
477
478
  childContextTypes: !0,
478
479
  contextType: !0,
@@ -512,18 +513,18 @@ function pr() {
512
513
  return e.isMemo(g) ? i : c[g.$$typeof] || t;
513
514
  }
514
515
  var d = Object.defineProperty, v = Object.getOwnPropertyNames, f = Object.getOwnPropertySymbols, b = Object.getOwnPropertyDescriptor, y = Object.getPrototypeOf, m = Object.prototype;
515
- function l(g, S, w) {
516
- if (typeof S != "string") {
516
+ function l(g, E, w) {
517
+ if (typeof E != "string") {
517
518
  if (m) {
518
- var C = y(S);
519
+ var C = y(E);
519
520
  C && C !== m && l(g, C, w);
520
521
  }
521
- var P = v(S);
522
- f && (P = P.concat(f(S)));
523
- for (var j = s(g), E = s(S), a = 0; a < P.length; ++a) {
522
+ var P = v(E);
523
+ f && (P = P.concat(f(E)));
524
+ for (var j = s(g), S = s(E), a = 0; a < P.length; ++a) {
524
525
  var x = P[a];
525
- if (!n[x] && !(w && w[x]) && !(E && E[x]) && !(j && j[x])) {
526
- var N = b(S, x);
526
+ if (!n[x] && !(w && w[x]) && !(S && S[x]) && !(j && j[x])) {
527
+ var N = b(E, x);
527
528
  try {
528
529
  d(g, x, N);
529
530
  } catch {
@@ -536,7 +537,7 @@ function pr() {
536
537
  return Q = l, Q;
537
538
  }
538
539
  pr();
539
- var _e = function(t, n, o) {
540
+ var Ae = function(t, n, o) {
540
541
  return t = t <= o ? t : o, t = t >= n ? t : n, t;
541
542
  }, gr = function() {
542
543
  var t = !1, n = [], o = function() {
@@ -573,56 +574,56 @@ var _e = function(t, n, o) {
573
574
  };
574
575
  }, xr = function(t) {
575
576
  var n = 0;
576
- return t >= 0 && t < 0.2 ? n = 0.1 : t >= 0.2 && t < 0.5 ? n = 0.04 : t >= 0.5 && t < 0.8 ? n = 0.02 : t >= 0.8 && t < 0.99 && (n = 5e-3), _e(t + n, 0, 0.994);
577
- }, ge = function(t) {
577
+ return t >= 0 && t < 0.2 ? n = 0.1 : t >= 0.2 && t < 0.5 ? n = 0.04 : t >= 0.5 && t < 0.8 ? n = 0.02 : t >= 0.8 && t < 0.99 && (n = 5e-3), Ae(t + n, 0, 0.994);
578
+ }, ve = function(t) {
578
579
  $(t, []);
579
580
  }, yr = function(t) {
580
581
  return ++t % 1e6;
581
582
  }, br = function() {
582
583
  var t = L(0), n = t[1];
583
- return M(function() {
584
+ return A(function() {
584
585
  return n(yr);
585
586
  }, []);
586
587
  }, jr = function(t) {
587
588
  t === void 0 && (t = {});
588
- var n = br(), o = D(K({}, t)), i = M(function() {
589
+ var n = br(), o = D(K({}, t)), i = A(function() {
589
590
  return o.current;
590
- }, []), c = M(function(s) {
591
+ }, []), c = A(function(s) {
591
592
  s && (Object.assign(o.current, s), n());
592
593
  }, []);
593
594
  return [i, c];
594
- }, Er = function() {
595
+ }, Sr = function() {
595
596
  var t = D(!0);
596
597
  return t.current ? (t.current = !1, !0) : t.current;
597
- }, ve = function(t, n) {
598
- var o = Er();
598
+ }, xe = function(t, n) {
599
+ var o = Sr();
599
600
  $(function() {
600
601
  if (!o)
601
602
  return t();
602
603
  }, n);
603
604
  }, Me = function() {
604
- }, xe = {
605
+ }, ye = {
605
606
  isFinished: !0,
606
607
  progress: 0,
607
608
  sideEffect: Me
608
- }, Sr = function(t) {
609
- var n = t === void 0 ? {} : t, o = n.animationDuration, i = o === void 0 ? 200 : o, c = n.incrementDuration, s = c === void 0 ? 800 : c, d = n.isAnimating, v = d === void 0 ? !1 : d, f = n.minimum, b = f === void 0 ? 0.08 : f, y = jr(xe), m = y[0], l = y[1], g = D(null), S = D(null);
610
- ge(function() {
611
- g.current = gr(), S.current = vr();
609
+ }, Er = function(t) {
610
+ var n = t === void 0 ? {} : t, o = n.animationDuration, i = o === void 0 ? 200 : o, c = n.incrementDuration, s = c === void 0 ? 800 : c, d = n.isAnimating, v = d === void 0 ? !1 : d, f = n.minimum, b = f === void 0 ? 0.08 : f, y = jr(ye), m = y[0], l = y[1], g = D(null), E = D(null);
611
+ ve(function() {
612
+ g.current = gr(), E.current = vr();
612
613
  });
613
- var w = M(function() {
614
+ var w = A(function() {
614
615
  var x, N;
615
- (x = S.current) == null || x.cancel(), (N = g.current) == null || N.clear();
616
- }, []), C = M(function(x) {
616
+ (x = E.current) == null || x.cancel(), (N = g.current) == null || N.clear();
617
+ }, []), C = A(function(x) {
617
618
  var N;
618
- if (x = _e(x, b, 1), x === 1) {
619
+ if (x = Ae(x, b, 1), x === 1) {
619
620
  var T, I;
620
621
  w(), (T = g.current) == null || T.enqueue(function(_) {
621
622
  l({
622
623
  progress: x,
623
624
  sideEffect: function() {
624
- var A;
625
- return (A = S.current) == null ? void 0 : A.schedule(_, i);
625
+ var M;
626
+ return (M = E.current) == null ? void 0 : M.schedule(_, i);
626
627
  }
627
628
  });
628
629
  }), (I = g.current) == null || I.enqueue(function() {
@@ -638,33 +639,33 @@ var _e = function(t, n, o) {
638
639
  isFinished: !1,
639
640
  progress: x,
640
641
  sideEffect: function() {
641
- var A;
642
- return (A = S.current) == null ? void 0 : A.schedule(_, i);
642
+ var M;
643
+ return (M = E.current) == null ? void 0 : M.schedule(_, i);
643
644
  }
644
645
  });
645
646
  });
646
- }, [i, w, b, g, l, S]), P = M(function() {
647
+ }, [i, w, b, g, l, E]), P = A(function() {
647
648
  C(xr(m().progress));
648
- }, [m, C]), j = M(function() {
649
+ }, [m, C]), j = A(function() {
649
650
  var x = function() {
650
651
  var T;
651
652
  P(), (T = g.current) == null || T.enqueue(function(I) {
652
653
  var _;
653
- (_ = S.current) == null || _.schedule(function() {
654
+ (_ = E.current) == null || _.schedule(function() {
654
655
  x(), I();
655
656
  }, s);
656
657
  });
657
658
  };
658
659
  x();
659
- }, [s, g, S, P]), E = D(Me), a = m().sideEffect;
660
+ }, [s, g, E, P]), S = D(Me), a = m().sideEffect;
660
661
  return $(function() {
661
- E.current = P;
662
- }), ge(function() {
663
- return v && j(), w;
662
+ S.current = P;
664
663
  }), ve(function() {
664
+ return v && j(), w;
665
+ }), xe(function() {
665
666
  m().sideEffect();
666
- }, [m, a]), ve(function() {
667
- v ? l(K({}, xe, {
667
+ }, [m, a]), xe(function() {
668
+ v ? l(K({}, ye, {
668
669
  sideEffect: j
669
670
  })) : C(1);
670
671
  }, [v, C, l, j]), {
@@ -673,13 +674,13 @@ var _e = function(t, n, o) {
673
674
  progress: m().progress
674
675
  };
675
676
  };
676
- const Ae = () => {
677
+ const Re = () => {
677
678
  const t = Ee().state === "loading", [n, o] = L(!1);
678
679
  $(() => {
679
680
  const s = setTimeout(() => o(t), 200);
680
681
  return () => clearTimeout(s);
681
682
  }, [t]);
682
- const { isFinished: i, progress: c } = Sr({ isAnimating: n });
683
+ const { isFinished: i, progress: c } = Er({ isAnimating: n });
683
684
  return /* @__PURE__ */ r.jsx(
684
685
  "div",
685
686
  {
@@ -697,8 +698,8 @@ function wr() {
697
698
  if (e.includes("mac")) return "macOS";
698
699
  if (e.includes("linux")) return "Linux";
699
700
  }
700
- const Re = ({ className: e }) => {
701
- const t = O(), [n, o] = L(!1), i = M(() => o(!1), []);
701
+ const ke = ({ className: e }) => {
702
+ const t = O(), [n, o] = L(!1), i = A(() => o(!1), []);
702
703
  $(() => {
703
704
  if (n)
704
705
  return;
@@ -726,7 +727,7 @@ const Re = ({ className: e }) => {
726
727
  ]
727
728
  }
728
729
  ),
729
- /* @__PURE__ */ r.jsx(Ce, { fallback: null, children: c.renderSearch({
730
+ /* @__PURE__ */ r.jsx(Pe, { fallback: null, children: c.renderSearch({
730
731
  isOpen: n,
731
732
  onClose: i
732
733
  }) })
@@ -737,8 +738,8 @@ const Re = ({ className: e }) => {
737
738
  e === "macOS" ? "⌘" : "Ctrl",
738
739
  "+K"
739
740
  ] });
740
- }, ke = () => {
741
- const { resolvedTheme: e, setTheme: t } = je();
741
+ }, Oe = () => {
742
+ const { resolvedTheme: e, setTheme: t } = Se();
742
743
  return /* @__PURE__ */ r.jsx(F, { fallback: /* @__PURE__ */ r.jsx(J, { variant: "ghost", size: "icon" }), children: /* @__PURE__ */ r.jsxs(
743
744
  "button",
744
745
  {
@@ -773,12 +774,12 @@ const Re = ({ className: e }) => {
773
774
  }
774
775
  ) });
775
776
  }, Pr = () => {
776
- const e = O(), { navigation: t } = e, n = q(), o = t.filter(we(n, e));
777
- return o.length === 0 ? /* @__PURE__ */ r.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ r.jsx(Ce, { children: /* @__PURE__ */ r.jsxs("div", { className: "items-center justify-between px-8 h-(--top-nav-height) hidden lg:flex text-sm relative", children: [
778
- /* @__PURE__ */ r.jsx("nav", { className: "text-sm", children: /* @__PURE__ */ r.jsx("ul", { className: "flex flex-row items-center gap-8", children: o.map((i) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx($e, { ...i }) }, i.label + i.type)) }) }),
777
+ const e = O(), { navigation: t } = e, n = q(), o = t.filter(Ce(n, e));
778
+ return o.length === 0 ? /* @__PURE__ */ r.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ r.jsx(Pe, { children: /* @__PURE__ */ r.jsxs("div", { className: "items-center justify-between px-8 h-(--top-nav-height) hidden lg:flex text-sm relative", children: [
779
+ /* @__PURE__ */ r.jsx("nav", { className: "text-sm", children: /* @__PURE__ */ r.jsx("ul", { className: "flex flex-row items-center gap-8", children: o.map((i) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(Ie, { ...i }) }, i.label + i.type)) }) }),
779
780
  /* @__PURE__ */ r.jsx(R.Target, { name: "top-navigation-side" })
780
781
  ] }) });
781
- }, Oe = (e) => {
782
+ }, $e = (e) => {
782
783
  switch (e.type) {
783
784
  case "doc":
784
785
  return z(e.path);
@@ -787,7 +788,7 @@ const Re = ({ className: e }) => {
787
788
  case "category":
788
789
  return e.link?.path ? z(e.link.path) : dt(e, (t) => {
789
790
  if (t.type !== "category")
790
- return Oe(t);
791
+ return $e(t);
791
792
  }) ?? "";
792
793
  case "custom-page":
793
794
  return e.path;
@@ -797,7 +798,7 @@ const Re = ({ className: e }) => {
797
798
  children: t,
798
799
  ...n
799
800
  }) => /* @__PURE__ */ r.jsx(
800
- st,
801
+ at,
801
802
  {
802
803
  viewTransition: !0,
803
804
  className: ({ isActive: o, isPending: i }) => {
@@ -817,8 +818,8 @@ const Re = ({ className: e }) => {
817
818
  ...n,
818
819
  children: t
819
820
  }
820
- ), $e = (e) => {
821
- const t = ut(), n = yt(t.topNavItem, e), o = Oe(e);
821
+ ), Ie = (e) => {
822
+ const t = ut(), n = yt(t.topNavItem, e), o = $e(e);
822
823
  return (
823
824
  // We don't use isActive here because it has to be inside the navigation,
824
825
  // the top nav id doesn't necessarily start with the navigation id
@@ -828,7 +829,7 @@ const Re = ({ className: e }) => {
828
829
  ] })
829
830
  );
830
831
  }, Nr = () => {
831
- const e = O(), t = q(), { navigation: n, options: o, getProfileMenuItems: i } = e, { isAuthenticated: c, profile: s, isAuthEnabled: d } = t, [v, f] = L(!1), b = i(), y = n.filter(we(t, e));
832
+ const e = O(), t = q(), { navigation: n, options: o, getProfileMenuItems: i } = e, { isAuthenticated: c, profile: s, isAuthEnabled: d } = t, [v, f] = L(!1), b = i(), y = n.filter(Ce(t, e));
832
833
  return /* @__PURE__ */ r.jsxs(
833
834
  Gt,
834
835
  {
@@ -838,7 +839,7 @@ const Re = ({ className: e }) => {
838
839
  children: [
839
840
  /* @__PURE__ */ r.jsxs("div", { className: "flex lg:hidden justify-self-end", children: [
840
841
  /* @__PURE__ */ r.jsx(Qt, { className: "lg:hidden", children: /* @__PURE__ */ r.jsx(Wt, { size: 22 }) }),
841
- /* @__PURE__ */ r.jsx(Ae, {})
842
+ /* @__PURE__ */ r.jsx(Re, {})
842
843
  ] }),
843
844
  /* @__PURE__ */ r.jsx(
844
845
  Jt,
@@ -848,7 +849,7 @@ const Re = ({ className: e }) => {
848
849
  children: /* @__PURE__ */ r.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none h-full flex flex-col justify-between", children: [
849
850
  /* @__PURE__ */ r.jsxs("div", { children: [
850
851
  /* @__PURE__ */ r.jsx(Xt, { children: /* @__PURE__ */ r.jsx(er, { children: "Navigation" }) }),
851
- /* @__PURE__ */ r.jsx(Re, { className: "flex p-4" }),
852
+ /* @__PURE__ */ r.jsx(ke, { className: "flex p-4" }),
852
853
  /* @__PURE__ */ r.jsxs("ul", { className: "flex flex-col items-center gap-4 p-4", children: [
853
854
  /* @__PURE__ */ r.jsx("li", { className: "empty:hidden", children: /* @__PURE__ */ r.jsx(R.Target, { name: "top-navigation-side" }) }),
854
855
  d && /* @__PURE__ */ r.jsx(
@@ -868,7 +869,7 @@ const Re = ({ className: e }) => {
868
869
  ) })
869
870
  }
870
871
  ),
871
- y.map((m) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx("button", { type: "button", onClick: () => f(!1), children: /* @__PURE__ */ r.jsx($e, { ...m }) }) }, m.label)),
872
+ y.map((m) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx("button", { type: "button", onClick: () => f(!1), children: /* @__PURE__ */ r.jsx(Ie, { ...m }) }) }, m.label)),
872
873
  d && c && b.length > 0 && /* @__PURE__ */ r.jsx(
873
874
  F,
874
875
  {
@@ -883,7 +884,7 @@ const Re = ({ className: e }) => {
883
884
  ) }, m.label))
884
885
  }
885
886
  ),
886
- /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(ke, {}) })
887
+ /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(Oe, {}) })
887
888
  ] })
888
889
  ] }),
889
890
  o.site?.showPoweredBy !== !1 && /* @__PURE__ */ r.jsx(dr, { className: "grow-0 justify-center gap-1" })
@@ -899,8 +900,8 @@ const Re = ({ className: e }) => {
899
900
  ] }, e.label) : /* @__PURE__ */ r.jsx(re, { to: e.path ?? "", children: /* @__PURE__ */ r.jsxs(Yt, { className: "flex gap-2", children: [
900
901
  e.icon && /* @__PURE__ */ r.jsx(e.icon, { size: 16, strokeWidth: 1, absoluteStrokeWidth: !0 }),
901
902
  e.label
902
- ] }, e.label) }), Tr = Pe(function() {
903
- const t = q(), { isAuthenticated: n, profile: o, isAuthEnabled: i } = q(), c = O(), { site: s, plugins: d, options: v } = c, f = d.filter((l) => Ne(l)).flatMap((l) => l.getProfileMenuItems(c)).sort((l) => l.weight ?? 0), b = s?.logo ? /https?:\/\//.test(s.logo.src.light) ? s.logo.src.light : z(v.basePath, s.logo.src.light) : void 0, y = s?.logo ? /https?:\/\//.test(s.logo.src.dark) ? s.logo.src.dark : z(v.basePath, s.logo.src.dark) : void 0, m = "inset-shadow-[0_-1px_0_0_var(--border)]";
903
+ ] }, e.label) }), Tr = Ne(function() {
904
+ const t = q(), { isAuthenticated: n, profile: o, isAuthEnabled: i } = q(), c = O(), { site: s, plugins: d, options: v } = c, f = d.filter((l) => Te(l)).flatMap((l) => l.getProfileMenuItems(c)).sort((l) => l.weight ?? 0), b = s?.logo ? /https?:\/\//.test(s.logo.src.light) ? s.logo.src.light : z(v.basePath, s.logo.src.light) : void 0, y = s?.logo ? /https?:\/\//.test(s.logo.src.dark) ? s.logo.src.dark : z(v.basePath, s.logo.src.dark) : void 0, m = "inset-shadow-[0_-1px_0_0_var(--border)]";
904
905
  return /* @__PURE__ */ r.jsxs(
905
906
  "header",
906
907
  {
@@ -909,7 +910,7 @@ const Re = ({ className: e }) => {
909
910
  children: [
910
911
  /* @__PURE__ */ r.jsx(ur, {}),
911
912
  /* @__PURE__ */ r.jsxs("div", { className: k(m, "relative"), children: [
912
- /* @__PURE__ */ r.jsx(Ae, {}),
913
+ /* @__PURE__ */ r.jsx(Re, {}),
913
914
  /* @__PURE__ */ r.jsxs("div", { className: "max-w-screen-2xl mx-auto flex items-center justify-between h-(--top-header-height) px-4 lg:px-8 border-transparent", children: [
914
915
  /* @__PURE__ */ r.jsx("div", { className: "flex", children: /* @__PURE__ */ r.jsx(re, { to: s?.logo?.href ?? "/", children: /* @__PURE__ */ r.jsx("div", { className: "flex items-center gap-3.5", children: s?.logo ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
915
916
  /* @__PURE__ */ r.jsx(
@@ -933,7 +934,7 @@ const Re = ({ className: e }) => {
933
934
  }
934
935
  )
935
936
  ] }) : /* @__PURE__ */ r.jsx("span", { className: "font-semibold text-2xl", children: s?.title }) }) }) }),
936
- /* @__PURE__ */ r.jsx("div", { className: "absolute inset-x-0 justify-center items-center hidden lg:flex w-full pointer-events-none", children: /* @__PURE__ */ r.jsx(Re, { className: "pointer-events-auto" }) }),
937
+ /* @__PURE__ */ r.jsx("div", { className: "absolute inset-x-0 justify-center items-center hidden lg:flex w-full pointer-events-none", children: /* @__PURE__ */ r.jsx(ke, { className: "pointer-events-auto" }) }),
937
938
  /* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-8", children: [
938
939
  /* @__PURE__ */ r.jsx(Nr, {}),
939
940
  /* @__PURE__ */ r.jsxs("div", { className: "hidden lg:flex items-center justify-self-end text-sm gap-2", children: [
@@ -964,7 +965,7 @@ const Re = ({ className: e }) => {
964
965
  }
965
966
  ),
966
967
  /* @__PURE__ */ r.jsx(R.Target, { name: "head-navigation-end" }),
967
- /* @__PURE__ */ r.jsx(ke, {})
968
+ /* @__PURE__ */ r.jsx(Oe, {})
968
969
  ] })
969
970
  ] })
970
971
  ] })
@@ -977,10 +978,10 @@ const Re = ({ className: e }) => {
977
978
  ]
978
979
  }
979
980
  );
980
- }), Ie = {
981
+ }), De = {
981
982
  Header: Tr
982
- }, _r = ne(Ie), Mr = _r.Provider, Ar = () => {
983
- const e = Se(), t = O(), n = D(void 0);
983
+ }, _r = ne(De), Ar = _r.Provider, Mr = () => {
984
+ const e = we(), t = O(), n = D(void 0);
984
985
  return $(() => {
985
986
  t.emitEvent("location", {
986
987
  from: n.current,
@@ -994,13 +995,13 @@ const Re = ({ className: e }) => {
994
995
  queryFn: async () => (await t.initialize(), !0),
995
996
  queryKey: ["zudoku-initialize", mt]
996
997
  }), /* @__PURE__ */ r.jsx(ht.Provider, { value: t, children: e }));
997
- let ye;
998
- const De = Pe(
998
+ let be;
999
+ const Fe = Ne(
999
1000
  ({ children: e, ...t }) => {
1000
1001
  const n = W(
1001
- () => ({ ...Ie, ...t.overrides }),
1002
+ () => ({ ...De, ...t.overrides }),
1002
1003
  [t.overrides]
1003
- ), o = Se(), i = W(() => ({
1004
+ ), o = we(), i = W(() => ({
1004
1005
  ...(t.plugins ?? []).filter(kt).flatMap(
1005
1006
  (l) => l.getMdxComponents ? [l.getMdxComponents()] : []
1006
1007
  ).reduce(
@@ -1009,29 +1010,29 @@ const De = Pe(
1009
1010
  ),
1010
1011
  ...bt,
1011
1012
  ...t.mdx?.components
1012
- }), [t.mdx?.components, t.plugins]), { stagger: c } = Nt(ue), [s, d] = L(!1), v = W(
1013
+ }), [t.mdx?.components, t.plugins]), { stagger: c } = Nt(de), [s, d] = L(!1), v = W(
1013
1014
  () => s ? { stagger: !0 } : { stagger: c },
1014
1015
  [c, s]
1015
1016
  ), f = Ee(), b = pt();
1016
1017
  $(() => {
1017
1018
  s || !f.location || d(!0);
1018
- }, [s, f.location]), ye ??= new ir(t, b);
1019
+ }, [s, f.location]), be ??= new ir(t, b);
1019
1020
  const y = t.plugins?.flatMap(
1020
1021
  (m) => Ot(m) ? m.getHead?.({ location: o }) ?? [] : []
1021
- ).map((m, l) => /* @__PURE__ */ r.jsx(be, { children: m }, l));
1022
+ ).map((m, l) => /* @__PURE__ */ r.jsx(je, { children: m }, l));
1022
1023
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
1023
1024
  y,
1024
- /* @__PURE__ */ r.jsx(ue.Provider, { value: v, children: /* @__PURE__ */ r.jsxs(Rr, { context: ye, children: [
1025
- /* @__PURE__ */ r.jsx(Ar, {}),
1026
- /* @__PURE__ */ r.jsx(jt, { slots: t.slots ?? t.UNSAFE_slotlets, children: /* @__PURE__ */ r.jsx(rt, { components: i, children: /* @__PURE__ */ r.jsx(nt, { attribute: "class", disableTransitionOnChange: !0, children: /* @__PURE__ */ r.jsx(Mr, { value: n, children: /* @__PURE__ */ r.jsx(Et, { children: e ?? /* @__PURE__ */ r.jsx(at, {}) }) }) }) }) })
1025
+ /* @__PURE__ */ r.jsx(de.Provider, { value: v, children: /* @__PURE__ */ r.jsxs(Rr, { context: be, children: [
1026
+ /* @__PURE__ */ r.jsx(Mr, {}),
1027
+ /* @__PURE__ */ r.jsx(jt, { slots: t.slots ?? t.UNSAFE_slotlets, children: /* @__PURE__ */ r.jsx(nt, { components: i, children: /* @__PURE__ */ r.jsx(ot, { attribute: "class", disableTransitionOnChange: !0, children: /* @__PURE__ */ r.jsx(Ar, { value: n, children: /* @__PURE__ */ r.jsx(St, { children: e ?? /* @__PURE__ */ r.jsx(it, {}) }) }) }) }) })
1027
1028
  ] }) })
1028
1029
  ] });
1029
1030
  }
1030
1031
  );
1031
- De.displayName = "ZudokoInner";
1032
- const Fe = (e) => /* @__PURE__ */ r.jsx(nr, { FallbackComponent: lr, children: /* @__PURE__ */ r.jsx(De, { ...e }) });
1033
- Fe.displayName = "Zudoku";
1034
- const Jr = be, en = ct, tn = St, rn = Ct, nn = F, on = it, sn = re, an = Fe, cn = wt, ln = R, un = ot, dn = O, fn = q, mn = gt, hn = vt, pn = je;
1032
+ Fe.displayName = "ZudokuInner";
1033
+ const Le = (e) => /* @__PURE__ */ r.jsx(nr, { FallbackComponent: lr, children: /* @__PURE__ */ r.jsx(Fe, { ...e }) });
1034
+ Le.displayName = "Zudoku";
1035
+ const Jr = je, en = lt, tn = Et, rn = Ct, nn = F, on = ct, sn = re, an = Le, cn = wt, ln = R, un = st, dn = O, fn = q, mn = gt, hn = vt, pn = Se;
1035
1036
  export {
1036
1037
  on as B,
1037
1038
  en as C,
@@ -1043,8 +1044,8 @@ export {
1043
1044
  rn as S,
1044
1045
  cn as T,
1045
1046
  an as Z,
1046
- ue as a,
1047
- Sr as b,
1047
+ de as a,
1048
+ Er as b,
1048
1049
  Jr as c,
1049
1050
  nn as d,
1050
1051
  ln as e,
@@ -1055,4 +1056,4 @@ export {
1055
1056
  pn as j,
1056
1057
  dn as u
1057
1058
  };
1058
- //# sourceMappingURL=index-BPSpOxTK.js.map
1059
+ //# sourceMappingURL=index-B1rmok4X.js.map