zudoku 0.3.0-dev.13 → 0.3.0-dev.130

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 (699) hide show
  1. package/LICENSE.md +21 -0
  2. package/cli.js +5 -1
  3. package/dist/app/App.d.ts +1 -2
  4. package/dist/app/App.js +1 -31
  5. package/dist/app/App.js.map +1 -1
  6. package/dist/app/demo.d.ts +2 -0
  7. package/dist/app/demo.js +48 -0
  8. package/dist/app/demo.js.map +1 -0
  9. package/dist/app/entry.client.d.ts +2 -0
  10. package/dist/app/entry.client.js +35 -0
  11. package/dist/app/entry.client.js.map +1 -0
  12. package/dist/app/entry.server.d.ts +14 -0
  13. package/dist/app/entry.server.js +105 -0
  14. package/dist/app/entry.server.js.map +1 -0
  15. package/dist/app/main.d.ts +6 -1
  16. package/dist/app/main.js +82 -12
  17. package/dist/app/main.js.map +1 -1
  18. package/dist/app/standalone.d.ts +2 -0
  19. package/dist/app/standalone.js +53 -0
  20. package/dist/app/standalone.js.map +1 -0
  21. package/dist/app/tailwind.d.ts +1 -1
  22. package/dist/app/tailwind.js +0 -4
  23. package/dist/app/tailwind.js.map +1 -1
  24. package/dist/cli/cmds/dev.js +5 -0
  25. package/dist/cli/cmds/dev.js.map +1 -1
  26. package/dist/cli/dev/handler.d.ts +1 -0
  27. package/dist/cli/dev/handler.js +4 -2
  28. package/dist/cli/dev/handler.js.map +1 -1
  29. package/dist/config/config.d.ts +17 -34
  30. package/dist/config/validators/InputSidebarSchema.d.ts +176 -0
  31. package/dist/config/validators/InputSidebarSchema.js +71 -0
  32. package/dist/config/validators/InputSidebarSchema.js.map +1 -0
  33. package/dist/config/validators/SidebarSchema.d.ts +17 -0
  34. package/dist/config/validators/SidebarSchema.js +81 -0
  35. package/dist/config/validators/SidebarSchema.js.map +1 -0
  36. package/dist/config/validators/validate.d.ts +1323 -2
  37. package/dist/config/validators/validate.js +179 -1
  38. package/dist/config/validators/validate.js.map +1 -1
  39. package/dist/index.d.ts +1 -1
  40. package/dist/internal.d.ts +1 -0
  41. package/dist/internal.js +2 -0
  42. package/dist/internal.js.map +1 -0
  43. package/dist/lib/authentication/AuthenticationPlugin.d.ts +13 -0
  44. package/dist/lib/authentication/AuthenticationPlugin.js +31 -0
  45. package/dist/lib/authentication/AuthenticationPlugin.js.map +1 -0
  46. package/dist/lib/authentication/authentication.d.ts +10 -9
  47. package/dist/lib/authentication/components/SignIn.d.ts +1 -0
  48. package/dist/lib/authentication/components/SignIn.js +14 -0
  49. package/dist/lib/authentication/components/SignIn.js.map +1 -0
  50. package/dist/lib/authentication/components/SignOut.d.ts +1 -0
  51. package/dist/lib/authentication/components/SignOut.js +12 -0
  52. package/dist/lib/authentication/components/SignOut.js.map +1 -0
  53. package/dist/lib/authentication/components/SignUp.d.ts +1 -0
  54. package/dist/lib/authentication/components/SignUp.js +10 -0
  55. package/dist/lib/authentication/components/SignUp.js.map +1 -0
  56. package/dist/lib/authentication/hook.js +4 -4
  57. package/dist/lib/authentication/hook.js.map +1 -1
  58. package/dist/lib/authentication/providers/auth0.js +11 -6
  59. package/dist/lib/authentication/providers/auth0.js.map +1 -1
  60. package/dist/lib/authentication/providers/clerk.js +59 -30
  61. package/dist/lib/authentication/providers/clerk.js.map +1 -1
  62. package/dist/lib/authentication/providers/openid.d.ts +30 -7
  63. package/dist/lib/authentication/providers/openid.js +79 -29
  64. package/dist/lib/authentication/providers/openid.js.map +1 -1
  65. package/dist/lib/authentication/state.js +1 -1
  66. package/dist/lib/authentication/state.js.map +1 -1
  67. package/dist/lib/components/Bootstrap.d.ts +13 -0
  68. package/dist/lib/components/Bootstrap.js +12 -0
  69. package/dist/lib/components/Bootstrap.js.map +1 -0
  70. package/dist/lib/components/ClientOnly.d.ts +3 -0
  71. package/dist/lib/components/ClientOnly.js +7 -0
  72. package/dist/lib/components/ClientOnly.js.map +1 -0
  73. package/dist/lib/components/DevPortal.d.ts +4 -4
  74. package/dist/lib/components/DevPortal.js +37 -19
  75. package/dist/lib/components/DevPortal.js.map +1 -1
  76. package/dist/lib/components/DeveloperHint.d.ts +5 -0
  77. package/dist/lib/components/DeveloperHint.js +10 -0
  78. package/dist/lib/components/DeveloperHint.js.map +1 -0
  79. package/dist/lib/components/ErrorPage.d.ts +6 -0
  80. package/dist/lib/components/ErrorPage.js +9 -0
  81. package/dist/lib/components/ErrorPage.js.map +1 -0
  82. package/dist/lib/components/Header.js +26 -5
  83. package/dist/lib/components/Header.js.map +1 -1
  84. package/dist/lib/components/Heading.d.ts +1 -1
  85. package/dist/lib/components/InlineCode.d.ts +5 -0
  86. package/dist/lib/components/InlineCode.js +4 -0
  87. package/dist/lib/components/InlineCode.js.map +1 -0
  88. package/dist/lib/components/Layout.js +7 -5
  89. package/dist/lib/components/Layout.js.map +1 -1
  90. package/dist/lib/components/Markdown.js +3 -2
  91. package/dist/lib/components/Markdown.js.map +1 -1
  92. package/dist/lib/components/NotFoundPage.d.ts +1 -0
  93. package/dist/lib/components/NotFoundPage.js +12 -0
  94. package/dist/lib/components/NotFoundPage.js.map +1 -0
  95. package/dist/lib/components/Search.d.ts +1 -0
  96. package/dist/lib/components/Search.js +34 -0
  97. package/dist/lib/components/Search.js.map +1 -0
  98. package/dist/lib/components/SlotletProvider.d.ts +9 -0
  99. package/dist/lib/components/SlotletProvider.js +16 -0
  100. package/dist/lib/components/SlotletProvider.js.map +1 -0
  101. package/dist/lib/components/SyntaxHighlight.d.ts +3 -2
  102. package/dist/lib/components/SyntaxHighlight.js +24 -22
  103. package/dist/lib/components/SyntaxHighlight.js.map +1 -1
  104. package/dist/lib/components/TopNavigation.d.ts +1 -1
  105. package/dist/lib/components/TopNavigation.js +8 -4
  106. package/dist/lib/components/TopNavigation.js.map +1 -1
  107. package/dist/lib/components/context/ThemeContext.d.ts +1 -4
  108. package/dist/lib/components/context/ThemeContext.js +3 -29
  109. package/dist/lib/components/context/ThemeContext.js.map +1 -1
  110. package/dist/lib/components/context/ThemeProvider.d.ts +4 -0
  111. package/dist/lib/components/context/ThemeProvider.js +23 -0
  112. package/dist/lib/components/context/ThemeProvider.js.map +1 -0
  113. package/dist/lib/components/context/ZudokuContext.d.ts +15 -0
  114. package/dist/lib/components/context/ZudokuContext.js +46 -0
  115. package/dist/lib/components/context/ZudokuContext.js.map +1 -0
  116. package/dist/lib/components/context/ZudokuProvider.d.ts +5 -0
  117. package/dist/lib/components/context/ZudokuProvider.js +16 -0
  118. package/dist/lib/components/context/ZudokuProvider.js.map +1 -0
  119. package/dist/lib/components/index.d.ts +32 -3
  120. package/dist/lib/components/index.js +21 -3
  121. package/dist/lib/components/index.js.map +1 -1
  122. package/dist/lib/components/navigation/Sidebar.d.ts +1 -0
  123. package/dist/lib/components/navigation/Sidebar.js +12 -0
  124. package/dist/lib/components/navigation/Sidebar.js.map +1 -0
  125. package/dist/lib/components/navigation/SidebarBadge.d.ts +23 -0
  126. package/dist/lib/components/navigation/SidebarBadge.js +24 -0
  127. package/dist/lib/components/navigation/SidebarBadge.js.map +1 -0
  128. package/dist/lib/components/navigation/SidebarCategory.d.ts +5 -0
  129. package/dist/lib/components/navigation/SidebarCategory.js +37 -0
  130. package/dist/lib/components/navigation/SidebarCategory.js.map +1 -0
  131. package/dist/lib/components/navigation/SidebarItem.d.ts +12 -0
  132. package/dist/lib/components/navigation/SidebarItem.js +43 -0
  133. package/dist/lib/components/navigation/SidebarItem.js.map +1 -0
  134. package/dist/lib/components/navigation/{SideNavigationWrapper.d.ts → SidebarWrapper.d.ts} +1 -1
  135. package/dist/lib/components/navigation/SidebarWrapper.js +6 -0
  136. package/dist/lib/components/navigation/SidebarWrapper.js.map +1 -0
  137. package/dist/lib/components/navigation/utils.d.ts +16 -0
  138. package/dist/lib/components/navigation/utils.js +85 -0
  139. package/dist/lib/components/navigation/utils.js.map +1 -0
  140. package/dist/lib/core/DevPortalContext.d.ts +34 -48
  141. package/dist/lib/core/DevPortalContext.js +15 -18
  142. package/dist/lib/core/DevPortalContext.js.map +1 -1
  143. package/dist/lib/core/plugins.d.ts +27 -8
  144. package/dist/lib/core/plugins.js +3 -0
  145. package/dist/lib/core/plugins.js.map +1 -1
  146. package/dist/lib/errors/ErrorAlert.d.ts +3 -0
  147. package/dist/lib/errors/ErrorAlert.js +8 -0
  148. package/dist/lib/errors/ErrorAlert.js.map +1 -0
  149. package/dist/lib/errors/RouterError.d.ts +1 -0
  150. package/dist/lib/errors/RouterError.js +12 -0
  151. package/dist/lib/errors/RouterError.js.map +1 -0
  152. package/dist/lib/errors/ServerError.d.ts +3 -0
  153. package/dist/lib/errors/ServerError.js +6 -0
  154. package/dist/lib/errors/ServerError.js.map +1 -0
  155. package/dist/lib/errors/TopLevelError.d.ts +2 -0
  156. package/dist/lib/errors/TopLevelError.js +7 -0
  157. package/dist/lib/errors/TopLevelError.js.map +1 -0
  158. package/dist/lib/oas/graphql/index.js +34 -10
  159. package/dist/lib/oas/graphql/index.js.map +1 -1
  160. package/dist/lib/oas/parser/index.d.ts +1 -1
  161. package/dist/lib/oas/parser/index.js +38 -14
  162. package/dist/lib/oas/parser/index.js.map +1 -1
  163. package/dist/lib/plugins/{api-key → api-keys}/CreateApiKey.js +4 -4
  164. package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -0
  165. package/dist/lib/plugins/api-keys/ProtectedRoute.d.ts +1 -0
  166. package/dist/lib/plugins/api-keys/ProtectedRoute.js +14 -0
  167. package/dist/lib/plugins/api-keys/ProtectedRoute.js.map +1 -0
  168. package/dist/lib/plugins/api-keys/SettingsApiKeys.js +54 -0
  169. package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -0
  170. package/dist/lib/plugins/{api-key → api-keys}/index.d.ts +4 -5
  171. package/dist/lib/plugins/{api-key → api-keys}/index.js +18 -20
  172. package/dist/lib/plugins/api-keys/index.js.map +1 -0
  173. package/dist/lib/plugins/custom-page/index.d.ts +8 -0
  174. package/dist/lib/plugins/custom-page/index.js +12 -0
  175. package/dist/lib/plugins/custom-page/index.js.map +1 -0
  176. package/dist/lib/plugins/markdown/MdxPage.js +7 -38
  177. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  178. package/dist/lib/plugins/markdown/Toc.js +17 -9
  179. package/dist/lib/plugins/markdown/Toc.js.map +1 -1
  180. package/dist/lib/plugins/markdown/generateRoutes.d.ts +1 -1
  181. package/dist/lib/plugins/markdown/generateRoutes.js +20 -43
  182. package/dist/lib/plugins/markdown/generateRoutes.js.map +1 -1
  183. package/dist/lib/plugins/markdown/index.js +3 -7
  184. package/dist/lib/plugins/markdown/index.js.map +1 -1
  185. package/dist/lib/plugins/openapi/ColorizedParam.d.ts +2 -1
  186. package/dist/lib/plugins/openapi/ColorizedParam.js +14 -9
  187. package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
  188. package/dist/lib/plugins/openapi/OperationList.js +14 -3
  189. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  190. package/dist/lib/plugins/openapi/OperationListItem.js +7 -5
  191. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  192. package/dist/lib/plugins/openapi/ParameterList.js +4 -1
  193. package/dist/lib/plugins/openapi/ParameterList.js.map +1 -1
  194. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.d.ts +2 -1
  195. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +8 -28
  196. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
  197. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +3 -1
  198. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
  199. package/dist/lib/plugins/openapi/ResponsesSidecarBox.d.ts +3 -1
  200. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +5 -9
  201. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
  202. package/dist/lib/plugins/openapi/Route.d.ts +6 -0
  203. package/dist/lib/plugins/openapi/Route.js +8 -0
  204. package/dist/lib/plugins/openapi/Route.js.map +1 -0
  205. package/dist/lib/plugins/openapi/Sidecar.d.ts +7 -1
  206. package/dist/lib/plugins/openapi/Sidecar.js +58 -20
  207. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  208. package/dist/lib/plugins/openapi/SidecarBox.d.ts +1 -0
  209. package/dist/lib/plugins/openapi/SidecarBox.js +3 -2
  210. package/dist/lib/plugins/openapi/SidecarBox.js.map +1 -1
  211. package/dist/lib/plugins/openapi/SimpleSelect.js +1 -1
  212. package/dist/lib/plugins/openapi/SimpleSelect.js.map +1 -1
  213. package/dist/lib/plugins/openapi/StaggeredRender.d.ts +8 -0
  214. package/dist/lib/plugins/openapi/StaggeredRender.js +18 -0
  215. package/dist/lib/plugins/openapi/StaggeredRender.js.map +1 -0
  216. package/dist/lib/plugins/openapi/client/createMemoryClient.d.ts +12 -0
  217. package/dist/lib/plugins/openapi/client/createMemoryClient.js +46 -0
  218. package/dist/lib/plugins/openapi/client/createMemoryClient.js.map +1 -0
  219. package/dist/lib/plugins/openapi/client/createServer.d.ts +4 -0
  220. package/dist/lib/plugins/openapi/{worker/worker.js → client/createServer.js} +5 -19
  221. package/dist/lib/plugins/openapi/client/createServer.js.map +1 -0
  222. package/dist/lib/plugins/openapi/client/createWorkerClient.d.ts +10 -0
  223. package/dist/lib/plugins/openapi/{worker/createSharedWorkerClient.js → client/createWorkerClient.js} +15 -2
  224. package/dist/lib/plugins/openapi/client/createWorkerClient.js.map +1 -0
  225. package/dist/lib/plugins/openapi/client/interfaces.d.ts +4 -0
  226. package/dist/lib/plugins/openapi/client/interfaces.js +2 -0
  227. package/dist/lib/plugins/openapi/client/interfaces.js.map +1 -0
  228. package/dist/lib/plugins/openapi/client/worker.js +20 -0
  229. package/dist/lib/plugins/openapi/client/worker.js.map +1 -0
  230. package/dist/lib/plugins/openapi/context.d.ts +5 -0
  231. package/dist/lib/plugins/openapi/context.js +11 -0
  232. package/dist/lib/plugins/openapi/context.js.map +1 -0
  233. package/dist/lib/plugins/openapi/graphql/gql.d.ts +6 -6
  234. package/dist/lib/plugins/openapi/graphql/gql.js +1 -1
  235. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  236. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +15 -15
  237. package/dist/lib/plugins/openapi/graphql/graphql.js +67 -67
  238. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
  239. package/dist/lib/plugins/openapi/index.d.ts +4 -18
  240. package/dist/lib/plugins/openapi/index.js +79 -34
  241. package/dist/lib/plugins/openapi/index.js.map +1 -1
  242. package/dist/lib/plugins/openapi/interfaces.d.ts +16 -0
  243. package/dist/lib/plugins/openapi/interfaces.js +2 -0
  244. package/dist/lib/plugins/openapi/interfaces.js.map +1 -0
  245. package/dist/lib/plugins/openapi/playground/Headers.js +1 -1
  246. package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
  247. package/dist/lib/plugins/openapi/playground/PathParams.d.ts +4 -5
  248. package/dist/lib/plugins/openapi/playground/PathParams.js +9 -13
  249. package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
  250. package/dist/lib/plugins/openapi/playground/Playground.d.ts +23 -11
  251. package/dist/lib/plugins/openapi/playground/Playground.js +51 -20
  252. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  253. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.d.ts +3 -1
  254. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +3 -1
  255. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
  256. package/dist/lib/plugins/openapi/playground/QueryParams.d.ts +4 -3
  257. package/dist/lib/plugins/openapi/playground/QueryParams.js +21 -12
  258. package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
  259. package/dist/lib/plugins/openapi/playground/ResponseTab.d.ts +4 -0
  260. package/dist/lib/plugins/openapi/playground/ResponseTab.js +40 -0
  261. package/dist/lib/plugins/openapi/playground/ResponseTab.js.map +1 -0
  262. package/dist/lib/plugins/openapi/playground/createUrl.d.ts +1 -1
  263. package/dist/lib/plugins/openapi/playground/createUrl.js +9 -9
  264. package/dist/lib/plugins/openapi/playground/createUrl.js.map +1 -1
  265. package/dist/lib/plugins/openapi/schema/SchemaComponents.d.ts +13 -0
  266. package/dist/lib/plugins/openapi/schema/SchemaComponents.js +28 -0
  267. package/dist/lib/plugins/openapi/schema/SchemaComponents.js.map +1 -0
  268. package/dist/lib/plugins/openapi/schema/SchemaView.d.ts +6 -0
  269. package/dist/lib/plugins/openapi/schema/SchemaView.js +58 -0
  270. package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -0
  271. package/dist/lib/plugins/openapi/schema/utils.d.ts +3 -0
  272. package/dist/lib/plugins/openapi/schema/utils.js +6 -0
  273. package/dist/lib/plugins/openapi/schema/utils.js.map +1 -0
  274. package/dist/lib/plugins/openapi-worker.d.ts +1 -1
  275. package/dist/lib/plugins/openapi-worker.js +1 -1
  276. package/dist/lib/plugins/openapi-worker.js.map +1 -1
  277. package/dist/lib/plugins/redirect/index.d.ts +0 -1
  278. package/dist/lib/plugins/redirect/index.js +3 -4
  279. package/dist/lib/plugins/redirect/index.js.map +1 -1
  280. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.d.ts +2 -0
  281. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js +3 -0
  282. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js.map +1 -0
  283. package/dist/lib/plugins/search-inkeep/index.d.ts +6 -0
  284. package/dist/lib/plugins/search-inkeep/index.js +18 -0
  285. package/dist/lib/plugins/search-inkeep/index.js.map +1 -0
  286. package/dist/lib/plugins/search-inkeep/inkeep.d.ts +23 -0
  287. package/dist/lib/plugins/search-inkeep/inkeep.js +23 -0
  288. package/dist/lib/plugins/search-inkeep/inkeep.js.map +1 -0
  289. package/dist/lib/themeToggle.d.ts +1 -0
  290. package/dist/lib/themeToggle.js +7 -0
  291. package/dist/lib/themeToggle.js.map +1 -0
  292. package/dist/lib/ui/Button.d.ts +5 -1
  293. package/dist/lib/ui/Button.js +24 -1
  294. package/dist/lib/ui/Button.js.map +1 -1
  295. package/dist/lib/ui/Callout.js +2 -2
  296. package/dist/lib/ui/Callout.js.map +1 -1
  297. package/dist/lib/ui/Card.js +1 -1
  298. package/dist/lib/ui/Card.js.map +1 -1
  299. package/dist/lib/ui/DropdownMenu.d.ts +27 -0
  300. package/dist/lib/ui/DropdownMenu.js +36 -0
  301. package/dist/lib/ui/DropdownMenu.js.map +1 -0
  302. package/dist/lib/ui/Input.js.map +1 -0
  303. package/dist/lib/util/MdxComponents.d.ts +2 -2
  304. package/dist/lib/util/MdxComponents.js +9 -7
  305. package/dist/lib/util/MdxComponents.js.map +1 -1
  306. package/dist/lib/util/fetchTimeout.d.ts +1 -0
  307. package/dist/lib/util/fetchTimeout.js +14 -0
  308. package/dist/lib/util/fetchTimeout.js.map +1 -0
  309. package/dist/lib/util/groupBy.d.ts +1 -6
  310. package/dist/lib/util/groupBy.js +10 -8
  311. package/dist/lib/util/groupBy.js.map +1 -1
  312. package/dist/lib/util/invariant.d.ts +6 -0
  313. package/dist/lib/util/invariant.js +21 -0
  314. package/dist/lib/util/invariant.js.map +1 -0
  315. package/dist/lib/util/joinPath.js +3 -2
  316. package/dist/lib/util/joinPath.js.map +1 -1
  317. package/dist/lib/util/logInit.d.ts +1 -0
  318. package/dist/lib/util/logInit.js +9 -0
  319. package/dist/lib/util/logInit.js.map +1 -0
  320. package/dist/lib/util/requestIdleCallbackPolyfill.d.ts +1 -0
  321. package/dist/lib/util/requestIdleCallbackPolyfill.js +7 -0
  322. package/dist/lib/util/requestIdleCallbackPolyfill.js.map +1 -0
  323. package/dist/lib/util/useScrollToAnchor.js +31 -17
  324. package/dist/lib/util/useScrollToAnchor.js.map +1 -1
  325. package/dist/vite/build.js +30 -7
  326. package/dist/vite/build.js.map +1 -1
  327. package/dist/vite/config.d.ts +20 -12
  328. package/dist/vite/config.js +110 -55
  329. package/dist/vite/config.js.map +1 -1
  330. package/dist/vite/config.test.js +7 -4
  331. package/dist/vite/config.test.js.map +1 -1
  332. package/dist/vite/dev-server.d.ts +2 -2
  333. package/dist/vite/dev-server.js +38 -28
  334. package/dist/vite/dev-server.js.map +1 -1
  335. package/dist/vite/html.js +9 -5
  336. package/dist/vite/html.js.map +1 -1
  337. package/dist/vite/plugin-api-keys.d.ts +3 -3
  338. package/dist/vite/plugin-api-keys.js +9 -9
  339. package/dist/vite/plugin-api-keys.js.map +1 -1
  340. package/dist/vite/plugin-api.d.ts +3 -3
  341. package/dist/vite/plugin-api.js +10 -25
  342. package/dist/vite/plugin-api.js.map +1 -1
  343. package/dist/vite/plugin-auth.d.ts +3 -3
  344. package/dist/vite/plugin-auth.js +7 -7
  345. package/dist/vite/plugin-auth.js.map +1 -1
  346. package/dist/vite/plugin-component.d.ts +4 -4
  347. package/dist/vite/plugin-component.js +18 -10
  348. package/dist/vite/plugin-component.js.map +1 -1
  349. package/dist/vite/plugin-config-reload.d.ts +4 -0
  350. package/dist/vite/plugin-config-reload.js +24 -0
  351. package/dist/vite/plugin-config-reload.js.map +1 -0
  352. package/dist/vite/plugin-config.d.ts +2 -4
  353. package/dist/vite/plugin-config.js +2 -13
  354. package/dist/vite/plugin-config.js.map +1 -1
  355. package/dist/vite/plugin-custom-css.d.ts +6 -0
  356. package/dist/vite/plugin-custom-css.js +55 -0
  357. package/dist/vite/plugin-custom-css.js.map +1 -0
  358. package/dist/vite/plugin-docs.d.ts +3 -3
  359. package/dist/vite/plugin-docs.js +12 -5
  360. package/dist/vite/plugin-docs.js.map +1 -1
  361. package/dist/vite/plugin-html-transform.d.ts +2 -0
  362. package/dist/vite/plugin-html-transform.js +15 -0
  363. package/dist/vite/plugin-html-transform.js.map +1 -0
  364. package/dist/vite/plugin-mdx.d.ts +4 -2
  365. package/dist/vite/plugin-mdx.js +6 -5
  366. package/dist/vite/plugin-mdx.js.map +1 -1
  367. package/dist/vite/plugin-metadata.d.ts +1 -1
  368. package/dist/vite/plugin-metadata.js +1 -1
  369. package/dist/vite/plugin-metadata.js.map +1 -1
  370. package/dist/vite/plugin-redirect.d.ts +3 -3
  371. package/dist/vite/plugin-redirect.js +12 -11
  372. package/dist/vite/plugin-redirect.js.map +1 -1
  373. package/dist/vite/plugin-sidebar.d.ts +3 -0
  374. package/dist/vite/plugin-sidebar.js +24 -0
  375. package/dist/vite/plugin-sidebar.js.map +1 -0
  376. package/dist/vite/plugin.d.ts +3 -2
  377. package/dist/vite/plugin.js +19 -14
  378. package/dist/vite/plugin.js.map +1 -1
  379. package/dist/vite/prerender.d.ts +17 -0
  380. package/dist/vite/prerender.js +79 -0
  381. package/dist/vite/prerender.js.map +1 -0
  382. package/lib/AuthenticationPlugin-CH5NSVOu.js +55 -0
  383. package/lib/AuthenticationPlugin-CH5NSVOu.js.map +1 -0
  384. package/lib/CategoryHeading-z15xh7Jb.js +10 -0
  385. package/lib/CategoryHeading-z15xh7Jb.js.map +1 -0
  386. package/lib/Combination-DTfV-c98.js +2789 -0
  387. package/lib/Combination-DTfV-c98.js.map +1 -0
  388. package/lib/DeveloperHint-BQSFXH01.js +10 -0
  389. package/lib/DeveloperHint-BQSFXH01.js.map +1 -0
  390. package/lib/InkeepCustomTrigger-CE5-K5ex.js +6 -0
  391. package/lib/InkeepCustomTrigger-CE5-K5ex.js.map +1 -0
  392. package/lib/Input-DB9VROFR.js +2239 -0
  393. package/lib/Input-DB9VROFR.js.map +1 -0
  394. package/lib/Markdown-CEccPMI_.js +20508 -0
  395. package/lib/Markdown-CEccPMI_.js.map +1 -0
  396. package/lib/MdxPage-CnqOoqvp.js +184 -0
  397. package/lib/MdxPage-CnqOoqvp.js.map +1 -0
  398. package/lib/OperationList-Cxiw2Z-v.js +457 -0
  399. package/lib/OperationList-Cxiw2Z-v.js.map +1 -0
  400. package/lib/Route-DfAFiR7v.js +14 -0
  401. package/lib/Route-DfAFiR7v.js.map +1 -0
  402. package/lib/SlotletProvider-ByLSCZQa.js +262 -0
  403. package/lib/SlotletProvider-ByLSCZQa.js.map +1 -0
  404. package/lib/Spinner-BT_AYFrA.js +276 -0
  405. package/lib/Spinner-BT_AYFrA.js.map +1 -0
  406. package/lib/ZudokuContext-BIZ8zHbZ.js +1084 -0
  407. package/lib/ZudokuContext-BIZ8zHbZ.js.map +1 -0
  408. package/lib/_commonjsHelpers-BVfed4GL.js +29 -0
  409. package/lib/_commonjsHelpers-BVfed4GL.js.map +1 -0
  410. package/lib/assets/index-BPdJm2ty.js +1 -0
  411. package/lib/assets/index-BPdJm2ty.js.map +1 -0
  412. package/lib/assets/{worker-DGvzLstc.js → worker-CzHUifWA.js} +3124 -2733
  413. package/lib/assets/worker-CzHUifWA.js.map +1 -0
  414. package/lib/index-7kcHaXD6.js +1771 -0
  415. package/lib/index-7kcHaXD6.js.map +1 -0
  416. package/lib/index-D-9zqIOh.js +5954 -0
  417. package/lib/index-D-9zqIOh.js.map +1 -0
  418. package/lib/index-Dz4LyXZI.js +124 -0
  419. package/lib/index-Dz4LyXZI.js.map +1 -0
  420. package/lib/index-pI9JkN46.js +4765 -0
  421. package/lib/index-pI9JkN46.js.map +1 -0
  422. package/lib/joinPath-B7kNnUX4.js +8 -0
  423. package/lib/joinPath-B7kNnUX4.js.map +1 -0
  424. package/lib/jsx-runtime-B6kdoens.js +635 -0
  425. package/lib/jsx-runtime-B6kdoens.js.map +1 -0
  426. package/lib/prism-bash.min-DadFsM4Z.js +1 -0
  427. package/lib/prism-bash.min-DadFsM4Z.js.map +1 -0
  428. package/lib/prism-csharp.min-Yizuc34Y.js +1 -0
  429. package/lib/prism-csharp.min-Yizuc34Y.js.map +1 -0
  430. package/lib/prism-java.min-d5iT_mOd.js +1 -0
  431. package/lib/prism-java.min-d5iT_mOd.js.map +1 -0
  432. package/lib/prism-json.min-B1GJqK1k.js +1 -0
  433. package/lib/prism-json.min-B1GJqK1k.js.map +1 -0
  434. package/lib/prism-markup-templating-DZrrEs0A.js +1 -0
  435. package/lib/prism-markup-templating-DZrrEs0A.js.map +1 -0
  436. package/lib/prism-objectivec.min-BXSWqpJJ.js +1 -0
  437. package/lib/prism-objectivec.min-BXSWqpJJ.js.map +1 -0
  438. package/lib/prism-php.min-o7FpoMP_.js +1 -0
  439. package/lib/prism-php.min-o7FpoMP_.js.map +1 -0
  440. package/lib/prism-ruby.min-C7LwcKyz.js +1 -0
  441. package/lib/prism-ruby.min-C7LwcKyz.js.map +1 -0
  442. package/lib/router-BiRCp01d.js +2971 -0
  443. package/lib/router-BiRCp01d.js.map +1 -0
  444. package/lib/slugify-CiPVjteN.js +28 -0
  445. package/lib/slugify-CiPVjteN.js.map +1 -0
  446. package/lib/state-DsXXkBLH.js +288 -0
  447. package/lib/state-DsXXkBLH.js.map +1 -0
  448. package/lib/{urql-DMlBWUKL.js → urql-DrBfkb92.js} +2 -2
  449. package/lib/urql-DrBfkb92.js.map +1 -0
  450. package/lib/utils-Bh4upQ0e.js +749 -0
  451. package/lib/utils-Bh4upQ0e.js.map +1 -0
  452. package/lib/zudoku.auth-auth0.js +31 -20
  453. package/lib/zudoku.auth-auth0.js.map +1 -0
  454. package/lib/zudoku.auth-clerk.js +59 -29
  455. package/lib/zudoku.auth-clerk.js.map +1 -0
  456. package/lib/zudoku.auth-openid.js +742 -573
  457. package/lib/zudoku.auth-openid.js.map +1 -0
  458. package/lib/zudoku.components.js +2084 -701
  459. package/lib/zudoku.components.js.map +1 -0
  460. package/lib/zudoku.openapi-worker.js +15042 -146
  461. package/lib/zudoku.openapi-worker.js.map +1 -0
  462. package/lib/zudoku.plugin-api-keys.js +325 -0
  463. package/lib/zudoku.plugin-api-keys.js.map +1 -0
  464. package/lib/zudoku.plugin-custom-page.js +13 -0
  465. package/lib/zudoku.plugin-custom-page.js.map +1 -0
  466. package/lib/zudoku.plugin-markdown.js +31 -0
  467. package/lib/zudoku.plugin-markdown.js.map +1 -0
  468. package/lib/zudoku.plugin-openapi.js +14 -0
  469. package/lib/zudoku.plugin-openapi.js.map +1 -0
  470. package/lib/zudoku.plugin-redirect.js +11 -0
  471. package/lib/zudoku.plugin-redirect.js.map +1 -0
  472. package/lib/zudoku.plugin-search-inkeep.js +51 -0
  473. package/lib/zudoku.plugin-search-inkeep.js.map +1 -0
  474. package/package.json +71 -28
  475. package/src/app/App.tsx +0 -44
  476. package/src/app/demo-cdn.html +26 -0
  477. package/src/app/demo.html +18 -0
  478. package/src/app/demo.tsx +59 -0
  479. package/src/app/entry.client.tsx +47 -0
  480. package/src/app/entry.server.tsx +160 -0
  481. package/src/app/main.css +105 -3
  482. package/src/app/main.tsx +96 -15
  483. package/src/app/standalone.html +20 -0
  484. package/src/app/standalone.tsx +58 -0
  485. package/src/app/tailwind.ts +2 -6
  486. package/src/lib/authentication/AuthenticationPlugin.tsx +38 -0
  487. package/src/lib/authentication/authentication.ts +6 -9
  488. package/src/lib/authentication/components/SignIn.tsx +15 -0
  489. package/src/lib/authentication/components/SignOut.tsx +13 -0
  490. package/src/lib/authentication/components/SignUp.tsx +11 -0
  491. package/src/lib/authentication/hook.ts +4 -4
  492. package/src/lib/authentication/providers/auth0.tsx +16 -6
  493. package/src/lib/authentication/providers/clerk.tsx +63 -31
  494. package/src/lib/authentication/providers/openid.tsx +104 -34
  495. package/src/lib/authentication/state.ts +1 -1
  496. package/src/lib/components/Bootstrap.tsx +45 -0
  497. package/src/lib/components/ClientOnly.tsx +13 -0
  498. package/src/lib/components/DevPortal.tsx +68 -44
  499. package/src/lib/components/DeveloperHint.tsx +25 -0
  500. package/src/lib/components/ErrorPage.tsx +28 -0
  501. package/src/lib/components/Header.tsx +112 -41
  502. package/src/lib/components/InlineCode.tsx +19 -0
  503. package/src/lib/components/Layout.tsx +18 -10
  504. package/src/lib/components/Markdown.tsx +3 -2
  505. package/src/lib/components/NotFoundPage.tsx +33 -0
  506. package/src/lib/components/Search.tsx +60 -0
  507. package/src/lib/components/SlotletProvider.tsx +30 -0
  508. package/src/lib/components/SyntaxHighlight.tsx +53 -44
  509. package/src/lib/components/TopNavigation.tsx +10 -5
  510. package/src/lib/components/context/ThemeContext.tsx +3 -41
  511. package/src/lib/components/context/ThemeProvider.tsx +27 -0
  512. package/src/lib/components/context/{DevPortalProvider.ts → ZudokuContext.ts} +19 -15
  513. package/src/lib/components/context/ZudokuProvider.tsx +26 -0
  514. package/src/lib/components/index.ts +25 -3
  515. package/src/lib/components/navigation/Sidebar.tsx +24 -0
  516. package/src/lib/components/navigation/SidebarBadge.tsx +43 -0
  517. package/src/lib/components/navigation/SidebarCategory.tsx +116 -0
  518. package/src/lib/components/navigation/SidebarItem.tsx +129 -0
  519. package/src/lib/components/navigation/SidebarWrapper.tsx +26 -0
  520. package/src/lib/components/navigation/utils.ts +117 -0
  521. package/src/lib/core/DevPortalContext.ts +44 -68
  522. package/src/lib/core/plugins.ts +45 -13
  523. package/src/lib/errors/ErrorAlert.tsx +21 -0
  524. package/src/lib/errors/RouterError.tsx +13 -0
  525. package/src/lib/errors/ServerError.tsx +5 -0
  526. package/src/lib/errors/TopLevelError.tsx +8 -0
  527. package/src/lib/oas/graphql/index.ts +46 -16
  528. package/src/lib/oas/parser/index.ts +41 -22
  529. package/src/lib/plugins/{api-key → api-keys}/CreateApiKey.tsx +4 -4
  530. package/src/lib/plugins/api-keys/ProtectedRoute.tsx +29 -0
  531. package/src/lib/plugins/{api-key → api-keys}/SettingsApiKeys.tsx +49 -16
  532. package/src/lib/plugins/{api-key → api-keys}/index.tsx +27 -41
  533. package/src/lib/plugins/custom-page/index.tsx +22 -0
  534. package/src/lib/plugins/markdown/MdxPage.tsx +17 -54
  535. package/src/lib/plugins/markdown/Toc.tsx +53 -40
  536. package/src/lib/plugins/markdown/generateRoutes.tsx +30 -58
  537. package/src/lib/plugins/markdown/index.tsx +3 -7
  538. package/src/lib/plugins/openapi/ColorizedParam.tsx +23 -16
  539. package/src/lib/plugins/openapi/OperationList.tsx +37 -7
  540. package/src/lib/plugins/openapi/OperationListItem.tsx +39 -34
  541. package/src/lib/plugins/openapi/ParameterList.tsx +15 -10
  542. package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +9 -33
  543. package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +3 -1
  544. package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +51 -40
  545. package/src/lib/plugins/openapi/Route.tsx +21 -0
  546. package/src/lib/plugins/openapi/Sidecar.tsx +101 -44
  547. package/src/lib/plugins/openapi/SidecarBox.tsx +13 -2
  548. package/src/lib/plugins/openapi/SimpleSelect.tsx +1 -1
  549. package/src/lib/plugins/openapi/StaggeredRender.tsx +31 -0
  550. package/src/lib/plugins/openapi/client/createMemoryClient.ts +56 -0
  551. package/src/lib/plugins/openapi/client/createServer.ts +33 -0
  552. package/src/lib/plugins/openapi/{worker/createSharedWorkerClient.ts → client/createWorkerClient.ts} +21 -2
  553. package/src/lib/plugins/openapi/client/interfaces.ts +5 -0
  554. package/src/lib/plugins/openapi/client/worker.ts +30 -0
  555. package/src/lib/plugins/openapi/context.tsx +16 -0
  556. package/src/lib/plugins/openapi/graphql/gql.ts +8 -8
  557. package/src/lib/plugins/openapi/graphql/graphql.ts +80 -80
  558. package/src/lib/plugins/openapi/index.tsx +131 -75
  559. package/src/lib/plugins/openapi/interfaces.ts +10 -0
  560. package/src/lib/plugins/openapi/playground/Headers.tsx +1 -1
  561. package/src/lib/plugins/openapi/playground/PathParams.tsx +76 -50
  562. package/src/lib/plugins/openapi/playground/Playground.tsx +121 -84
  563. package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +13 -7
  564. package/src/lib/plugins/openapi/playground/QueryParams.tsx +107 -66
  565. package/src/lib/plugins/openapi/playground/ResponseTab.tsx +76 -0
  566. package/src/lib/plugins/openapi/playground/createUrl.ts +13 -15
  567. package/src/lib/plugins/openapi/schema/SchemaComponents.tsx +126 -0
  568. package/src/lib/plugins/openapi/schema/SchemaView.tsx +172 -0
  569. package/src/lib/plugins/openapi/schema/utils.ts +10 -0
  570. package/src/lib/plugins/openapi-worker.ts +1 -1
  571. package/src/lib/plugins/redirect/index.tsx +3 -4
  572. package/src/lib/plugins/search-inkeep/InkeepCustomTrigger.tsx +3 -0
  573. package/src/lib/plugins/search-inkeep/index.tsx +63 -0
  574. package/src/lib/plugins/search-inkeep/inkeep.ts +32 -0
  575. package/src/lib/themeToggle.ts +7 -0
  576. package/src/lib/ui/Button.tsx +32 -2
  577. package/src/lib/ui/Callout.tsx +4 -4
  578. package/src/lib/ui/Card.tsx +1 -1
  579. package/src/lib/ui/DropdownMenu.tsx +199 -0
  580. package/src/lib/util/MdxComponents.tsx +15 -23
  581. package/src/lib/util/fetchTimeout.tsx +21 -0
  582. package/src/lib/util/groupBy.ts +7 -12
  583. package/src/lib/util/invariant.ts +26 -0
  584. package/src/lib/util/joinPath.tsx +3 -2
  585. package/src/lib/util/logInit.ts +9 -0
  586. package/src/lib/util/requestIdleCallbackPolyfill.ts +6 -0
  587. package/src/lib/util/useScrollToAnchor.ts +39 -18
  588. package/dist/lib/authentication/Callback.d.ts +0 -3
  589. package/dist/lib/authentication/Callback.js +0 -34
  590. package/dist/lib/authentication/Callback.js.map +0 -1
  591. package/dist/lib/components/Input.js.map +0 -1
  592. package/dist/lib/components/Link.d.ts +0 -1
  593. package/dist/lib/components/Link.js +0 -2
  594. package/dist/lib/components/Link.js.map +0 -1
  595. package/dist/lib/components/Router.d.ts +0 -4
  596. package/dist/lib/components/Router.js +0 -20
  597. package/dist/lib/components/Router.js.map +0 -1
  598. package/dist/lib/components/context/DevPortalProvider.d.ts +0 -9
  599. package/dist/lib/components/context/DevPortalProvider.js +0 -39
  600. package/dist/lib/components/context/DevPortalProvider.js.map +0 -1
  601. package/dist/lib/components/navigation/SideNavigation.d.ts +0 -1
  602. package/dist/lib/components/navigation/SideNavigation.js +0 -11
  603. package/dist/lib/components/navigation/SideNavigation.js.map +0 -1
  604. package/dist/lib/components/navigation/SideNavigationCategory.d.ts +0 -4
  605. package/dist/lib/components/navigation/SideNavigationCategory.js +0 -26
  606. package/dist/lib/components/navigation/SideNavigationCategory.js.map +0 -1
  607. package/dist/lib/components/navigation/SideNavigationItem.d.ts +0 -13
  608. package/dist/lib/components/navigation/SideNavigationItem.js +0 -44
  609. package/dist/lib/components/navigation/SideNavigationItem.js.map +0 -1
  610. package/dist/lib/components/navigation/SideNavigationWrapper.js +0 -7
  611. package/dist/lib/components/navigation/SideNavigationWrapper.js.map +0 -1
  612. package/dist/lib/components/navigation/useNavigationCollapsibleState.d.ts +0 -6
  613. package/dist/lib/components/navigation/useNavigationCollapsibleState.js +0 -16
  614. package/dist/lib/components/navigation/useNavigationCollapsibleState.js.map +0 -1
  615. package/dist/lib/components/navigation/util.d.ts +0 -8
  616. package/dist/lib/components/navigation/util.js +0 -15
  617. package/dist/lib/components/navigation/util.js.map +0 -1
  618. package/dist/lib/core/helmet.d.ts +0 -4
  619. package/dist/lib/core/helmet.js +0 -5
  620. package/dist/lib/core/helmet.js.map +0 -1
  621. package/dist/lib/core/icons.d.ts +0 -1
  622. package/dist/lib/core/icons.js +0 -2
  623. package/dist/lib/core/icons.js.map +0 -1
  624. package/dist/lib/core/router.d.ts +0 -1
  625. package/dist/lib/core/router.js +0 -2
  626. package/dist/lib/core/router.js.map +0 -1
  627. package/dist/lib/plugins/api-key/CreateApiKey.js.map +0 -1
  628. package/dist/lib/plugins/api-key/SettingsApiKeys.js +0 -38
  629. package/dist/lib/plugins/api-key/SettingsApiKeys.js.map +0 -1
  630. package/dist/lib/plugins/api-key/index.js.map +0 -1
  631. package/dist/lib/plugins/index.d.ts +0 -4
  632. package/dist/lib/plugins/index.js +0 -5
  633. package/dist/lib/plugins/index.js.map +0 -1
  634. package/dist/lib/plugins/openapi/MethodBadge.d.ts +0 -13
  635. package/dist/lib/plugins/openapi/MethodBadge.js +0 -26
  636. package/dist/lib/plugins/openapi/MethodBadge.js.map +0 -1
  637. package/dist/lib/plugins/openapi/SchemaListView.d.ts +0 -7
  638. package/dist/lib/plugins/openapi/SchemaListView.js +0 -21
  639. package/dist/lib/plugins/openapi/SchemaListView.js.map +0 -1
  640. package/dist/lib/plugins/openapi/SchemaListViewItem.d.ts +0 -7
  641. package/dist/lib/plugins/openapi/SchemaListViewItem.js +0 -16
  642. package/dist/lib/plugins/openapi/SchemaListViewItem.js.map +0 -1
  643. package/dist/lib/plugins/openapi/SchemaListViewItemGroup.d.ts +0 -8
  644. package/dist/lib/plugins/openapi/SchemaListViewItemGroup.js +0 -17
  645. package/dist/lib/plugins/openapi/SchemaListViewItemGroup.js.map +0 -1
  646. package/dist/lib/plugins/openapi/worker/createSharedWorkerClient.d.ts +0 -5
  647. package/dist/lib/plugins/openapi/worker/createSharedWorkerClient.js.map +0 -1
  648. package/dist/lib/plugins/openapi/worker/shared-worker.d.ts +0 -1
  649. package/dist/lib/plugins/openapi/worker/shared-worker.js +0 -6
  650. package/dist/lib/plugins/openapi/worker/shared-worker.js.map +0 -1
  651. package/dist/lib/plugins/openapi/worker/worker.js.map +0 -1
  652. package/dist/lib/ui/button-variants.d.ts +0 -4
  653. package/dist/lib/ui/button-variants.js +0 -24
  654. package/dist/lib/ui/button-variants.js.map +0 -1
  655. package/dist/lib/util/traverseNavigation.d.ts +0 -6
  656. package/dist/lib/util/traverseNavigation.js +0 -30
  657. package/dist/lib/util/traverseNavigation.js.map +0 -1
  658. package/dist/vite/common.d.ts +0 -1
  659. package/dist/vite/common.js +0 -5
  660. package/dist/vite/common.js.map +0 -1
  661. package/dist/vite/plugin-html.d.ts +0 -3
  662. package/dist/vite/plugin-html.js +0 -47
  663. package/dist/vite/plugin-html.js.map +0 -1
  664. package/dist/vite/plugin-openapi-worker.d.ts +0 -4
  665. package/dist/vite/plugin-openapi-worker.js +0 -28
  666. package/dist/vite/plugin-openapi-worker.js.map +0 -1
  667. package/lib/Spinner-CbtkR-Im.js +0 -8458
  668. package/lib/clerk-Wslx_mPo.js +0 -19685
  669. package/lib/index-PyGcnQFX.js +0 -3462
  670. package/lib/loglevel-CoH7VSwE.js +0 -152
  671. package/lib/state-2Hu1renZ.js +0 -313
  672. package/lib/zudoku.plugins.js +0 -19918
  673. package/src/lib/authentication/Callback.tsx +0 -60
  674. package/src/lib/components/Link.tsx +0 -1
  675. package/src/lib/components/Router.tsx +0 -28
  676. package/src/lib/components/navigation/SideNavigation.tsx +0 -21
  677. package/src/lib/components/navigation/SideNavigationCategory.tsx +0 -76
  678. package/src/lib/components/navigation/SideNavigationItem.tsx +0 -152
  679. package/src/lib/components/navigation/SideNavigationWrapper.tsx +0 -24
  680. package/src/lib/components/navigation/useNavigationCollapsibleState.ts +0 -27
  681. package/src/lib/components/navigation/util.ts +0 -38
  682. package/src/lib/core/helmet.ts +0 -5
  683. package/src/lib/core/icons.tsx +0 -1
  684. package/src/lib/core/router.tsx +0 -1
  685. package/src/lib/plugins/index.ts +0 -4
  686. package/src/lib/plugins/openapi/MethodBadge.tsx +0 -36
  687. package/src/lib/plugins/openapi/SchemaListView.tsx +0 -61
  688. package/src/lib/plugins/openapi/SchemaListViewItem.tsx +0 -110
  689. package/src/lib/plugins/openapi/SchemaListViewItemGroup.tsx +0 -63
  690. package/src/lib/plugins/openapi/worker/shared-worker.ts +0 -5
  691. package/src/lib/plugins/openapi/worker/worker.ts +0 -56
  692. package/src/lib/ui/button-variants.ts +0 -31
  693. package/src/lib/util/traverseNavigation.ts +0 -55
  694. /package/dist/lib/plugins/{api-key → api-keys}/CreateApiKey.d.ts +0 -0
  695. /package/dist/lib/plugins/{api-key → api-keys}/SettingsApiKeys.d.ts +0 -0
  696. /package/dist/lib/plugins/openapi/{worker → client}/worker.d.ts +0 -0
  697. /package/dist/lib/{components → ui}/Input.d.ts +0 -0
  698. /package/dist/lib/{components → ui}/Input.js +0 -0
  699. /package/src/lib/{components → ui}/Input.tsx +0 -0
@@ -1,643 +1,2108 @@
1
- var Te = Object.defineProperty;
2
- var se = (t) => {
3
- throw TypeError(t);
1
+ var ir = Object.defineProperty;
2
+ var dt = (e) => {
3
+ throw TypeError(e);
4
4
  };
5
- var Ie = (t, e, s) => e in t ? Te(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
6
- var g = (t, e, s) => Ie(t, typeof e != "symbol" ? e + "" : e, s), ae = (t, e, s) => e.has(t) || se("Cannot " + s);
7
- var i = (t, e, s) => (ae(t, e, "read from private field"), s ? s.call(t) : e.get(t)), v = (t, e, s) => e.has(t) ? se("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, s), u = (t, e, s, a) => (ae(t, e, "write to private field"), a ? a.call(t, s) : e.set(t, s), s);
8
- var S = (t, e, s, a) => ({
9
- set _(r) {
10
- u(t, e, r, s);
5
+ var cr = (e, t, n) => t in e ? ir(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
6
+ var j = (e, t, n) => cr(e, typeof t != "symbol" ? t + "" : t, n), ht = (e, t, n) => t.has(e) || dt("Cannot " + n);
7
+ var f = (e, t, n) => (ht(e, t, "read from private field"), n ? n.call(e) : t.get(e)), N = (e, t, n) => t.has(e) ? dt("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), S = (e, t, n, r) => (ht(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n);
8
+ var Ce = (e, t, n, r) => ({
9
+ set _(o) {
10
+ S(e, t, o, n);
11
11
  },
12
12
  get _() {
13
- return i(t, e, a);
13
+ return f(e, t, r);
14
14
  }
15
15
  });
16
- import { j as n, u as D, O as Ee } from "./index-PyGcnQFX.js";
17
- import { S as me, h as ge, Q as Se, n as m, m as ne, M as Fe, a as re, b as j, e as Re, c as He, d as Le, f as ze, o as ie, r as oe, g as Ke, i as le, p as ce, s as _e, j as z, u as U, N as B, k as Be, l as Ve, q as Ue, t as W, v as X, w as V, x as ve, y as We, z as L, R as ye, T as xe, C as be, A as Xe, B as $e, D as Ge, E as Je, H as je, F as Ye, G as Ze, I as et, J as tt, K as st, L as at, O as nt, P as rt, U as it, V as ot } from "./Spinner-CbtkR-Im.js";
18
- import { X as Vt, W as Ut } from "./Spinner-CbtkR-Im.js";
19
- import { memo as Pe, createContext as lt, useEffect as I, useRef as K, useState as ct, forwardRef as ht, Suspense as we, useMemo as H, Fragment as ut } from "react";
20
- import { c as dt } from "./state-2Hu1renZ.js";
21
- var x, de, ft = (de = class extends me {
22
- constructor(e = {}) {
16
+ import { H as Pt, a as Ge, M as ur, u as lr, A as dr, b as hr } from "./utils-Bh4upQ0e.js";
17
+ import { d as fr, a as pr, R as mr, N as je, u as De, L as Re, b as gr, c as vr, O as jt, e as xr } from "./index-7kcHaXD6.js";
18
+ import { E as Rt, S as se, a as yr, R as wr } from "./SlotletProvider-ByLSCZQa.js";
19
+ import { j as a } from "./jsx-runtime-B6kdoens.js";
20
+ import { M as br, c as Mr, a as Et, b as _t, A as Cr, u as ge, h as Sr, d as y, e as Pr, F as jr, D as Rr, C as Er, P as ce, f as He, g as _r, i as Nt, R as Nr, S as Dr, j as Ir, k as kr, l as Dt, m as Ar, n as Ee, o as It, p as Or, B as Qe } from "./Combination-DTfV-c98.js";
21
+ import { c as ue, a as b, C as Tr, b as Fr, u as Lr, T as Kr, M as $r, V as Br, d as ze, e as Qr, f as qr } from "./Markdown-CEccPMI_.js";
22
+ import * as c from "react";
23
+ import Ur, { StrictMode as kt, createContext as At, Component as Gr, createElement as ft, isValidElement as Hr, useState as ie, useCallback as Ot, useEffect as W, Suspense as Tt, memo as Ft, useMemo as Ke, useContext as zr, Fragment as Vr, useRef as Ve, forwardRef as Yr } from "react";
24
+ import { g as Ye } from "./_commonjsHelpers-BVfed4GL.js";
25
+ import { r as Xr } from "./router-BiRCp01d.js";
26
+ import { S as qe, R as Wr, T as Jr, C as Zr } from "./index-Dz4LyXZI.js";
27
+ import { S as Lt, h as Kt, Q as ea, n as E, m as pt, a as mt, b as $, e as ta, c as na, d as ra, f as aa, o as gt, r as vt, g as oa, i as xt, p as yt, s as sa, u as Ie, j as ia, Z as ca, k as ua, l as $t, q as la } from "./ZudokuContext-BIZ8zHbZ.js";
28
+ import { j as Xe } from "./joinPath-B7kNnUX4.js";
29
+ import { c as Bt, P as ke, R as da, I as ha, S as $e, a as fa } from "./Spinner-BT_AYFrA.js";
30
+ /**
31
+ * @license lucide-react v0.378.0 - ISC
32
+ *
33
+ * This source code is licensed under the ISC license.
34
+ * See the LICENSE file in the root directory of this source tree.
35
+ */
36
+ const Qt = ue("ChevronRight", [
37
+ ["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]
38
+ ]);
39
+ /**
40
+ * @license lucide-react v0.378.0 - ISC
41
+ *
42
+ * This source code is licensed under the ISC license.
43
+ * See the LICENSE file in the root directory of this source tree.
44
+ */
45
+ const pa = ue("Dot", [
46
+ ["circle", { cx: "12.1", cy: "12.1", r: "1", key: "18d7e5" }]
47
+ ]);
48
+ /**
49
+ * @license lucide-react v0.378.0 - ISC
50
+ *
51
+ * This source code is licensed under the ISC license.
52
+ * See the LICENSE file in the root directory of this source tree.
53
+ */
54
+ const ma = ue("ExternalLink", [
55
+ ["path", { d: "M15 3h6v6", key: "1q9fwt" }],
56
+ ["path", { d: "M10 14 21 3", key: "gplh6r" }],
57
+ ["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
58
+ ]);
59
+ /**
60
+ * @license lucide-react v0.378.0 - ISC
61
+ *
62
+ * This source code is licensed under the ISC license.
63
+ * See the LICENSE file in the root directory of this source tree.
64
+ */
65
+ const ga = ue("MoonStar", [
66
+ ["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9", key: "4ay0iu" }],
67
+ ["path", { d: "M20 3v4", key: "1olli1" }],
68
+ ["path", { d: "M22 5h-4", key: "1gvqau" }]
69
+ ]);
70
+ /**
71
+ * @license lucide-react v0.378.0 - ISC
72
+ *
73
+ * This source code is licensed under the ISC license.
74
+ * See the LICENSE file in the root directory of this source tree.
75
+ */
76
+ const va = ue("Search", [
77
+ ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
78
+ ["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
79
+ ]);
80
+ /**
81
+ * @license lucide-react v0.378.0 - ISC
82
+ *
83
+ * This source code is licensed under the ISC license.
84
+ * See the LICENSE file in the root directory of this source tree.
85
+ */
86
+ const xa = ue("Sun", [
87
+ ["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
88
+ ["path", { d: "M12 2v2", key: "tus03m" }],
89
+ ["path", { d: "M12 20v2", key: "1lh1kg" }],
90
+ ["path", { d: "m4.93 4.93 1.41 1.41", key: "149t6j" }],
91
+ ["path", { d: "m17.66 17.66 1.41 1.41", key: "ptbguv" }],
92
+ ["path", { d: "M2 12h2", key: "1t8f8n" }],
93
+ ["path", { d: "M20 12h2", key: "1q8mjw" }],
94
+ ["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
95
+ ["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
96
+ ]);
97
+ function ya({ error: e }) {
98
+ return /* @__PURE__ */ a.jsx(Rt, { error: e });
99
+ }
100
+ var ve = {};
101
+ const wa = /* @__PURE__ */ Ye(Xr), ba = /* @__PURE__ */ Ye(fr), Ma = /* @__PURE__ */ Ye(pr);
102
+ Object.defineProperty(ve, "__esModule", { value: !0 });
103
+ var Ca = Ur, F = wa, We = ba, B = Ma;
104
+ function Sa(e) {
105
+ if (e && e.__esModule) return e;
106
+ var t = /* @__PURE__ */ Object.create(null);
107
+ return e && Object.keys(e).forEach(function(n) {
108
+ if (n !== "default") {
109
+ var r = Object.getOwnPropertyDescriptor(e, n);
110
+ Object.defineProperty(t, n, r.get ? r : {
111
+ enumerable: !0,
112
+ get: function() {
113
+ return e[n];
114
+ }
115
+ });
116
+ }
117
+ }), t.default = e, Object.freeze(t);
118
+ }
119
+ var O = /* @__PURE__ */ Sa(Ca);
120
+ function Pa({
121
+ basename: e,
122
+ children: t,
123
+ location: n = "/",
124
+ future: r
125
+ }) {
126
+ typeof n == "string" && (n = B.parsePath(n));
127
+ let o = F.Action.Pop, s = {
128
+ pathname: n.pathname || "/",
129
+ search: n.search || "",
130
+ hash: n.hash || "",
131
+ state: n.state != null ? n.state : null,
132
+ key: n.key || "default"
133
+ }, i = qt();
134
+ return /* @__PURE__ */ O.createElement(B.Router, {
135
+ basename: e,
136
+ children: t,
137
+ location: s,
138
+ navigationType: o,
139
+ navigator: i,
140
+ future: r,
141
+ static: !0
142
+ });
143
+ }
144
+ function ja({
145
+ context: e,
146
+ router: t,
147
+ hydrate: n = !0,
148
+ nonce: r
149
+ }) {
150
+ t && e || (process.env.NODE_ENV !== "production" ? F.UNSAFE_invariant(!1, "You must provide `router` and `context` to <StaticRouterProvider>") : F.UNSAFE_invariant(!1));
151
+ let o = {
152
+ router: t,
153
+ navigator: qt(),
154
+ static: !0,
155
+ staticContext: e,
156
+ basename: e.basename || "/"
157
+ }, s = /* @__PURE__ */ new Map(), i = "";
158
+ if (n !== !1) {
159
+ let l = {
160
+ loaderData: e.loaderData,
161
+ actionData: e.actionData,
162
+ errors: Ea(e.errors)
163
+ };
164
+ i = `window.__staticRouterHydrationData = JSON.parse(${Aa(JSON.stringify(JSON.stringify(l)))});`;
165
+ }
166
+ let {
167
+ state: u
168
+ } = o.router;
169
+ return /* @__PURE__ */ O.createElement(O.Fragment, null, /* @__PURE__ */ O.createElement(B.UNSAFE_DataRouterContext.Provider, {
170
+ value: o
171
+ }, /* @__PURE__ */ O.createElement(B.UNSAFE_DataRouterStateContext.Provider, {
172
+ value: u
173
+ }, /* @__PURE__ */ O.createElement(B.UNSAFE_FetchersContext.Provider, {
174
+ value: s
175
+ }, /* @__PURE__ */ O.createElement(B.UNSAFE_ViewTransitionContext.Provider, {
176
+ value: {
177
+ isTransitioning: !1
178
+ }
179
+ }, /* @__PURE__ */ O.createElement(B.Router, {
180
+ basename: o.basename,
181
+ location: u.location,
182
+ navigationType: u.historyAction,
183
+ navigator: o.navigator,
184
+ static: o.static,
185
+ future: {
186
+ v7_relativeSplatPath: t.future.v7_relativeSplatPath
187
+ }
188
+ }, /* @__PURE__ */ O.createElement(Ra, {
189
+ routes: t.routes,
190
+ future: t.future,
191
+ state: u
192
+ })))))), i ? /* @__PURE__ */ O.createElement("script", {
193
+ suppressHydrationWarning: !0,
194
+ nonce: r,
195
+ dangerouslySetInnerHTML: {
196
+ __html: i
197
+ }
198
+ }) : null);
199
+ }
200
+ function Ra({
201
+ routes: e,
202
+ future: t,
203
+ state: n
204
+ }) {
205
+ return We.UNSAFE_useRoutesImpl(e, void 0, n, t);
206
+ }
207
+ function Ea(e) {
208
+ if (!e) return null;
209
+ let t = Object.entries(e), n = {};
210
+ for (let [r, o] of t)
211
+ F.isRouteErrorResponse(o) ? n[r] = {
212
+ ...o,
213
+ __type: "RouteErrorResponse"
214
+ } : o instanceof Error ? n[r] = {
215
+ message: o.message,
216
+ __type: "Error",
217
+ // If this is a subclass (i.e., ReferenceError), send up the type so we
218
+ // can re-create the same type during hydration.
219
+ ...o.name !== "Error" ? {
220
+ __subType: o.name
221
+ } : {}
222
+ } : n[r] = o;
223
+ return n;
224
+ }
225
+ function qt() {
226
+ return {
227
+ createHref: Ut,
228
+ encodeLocation: Gt,
229
+ push(e) {
230
+ 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.`);
231
+ },
232
+ replace(e) {
233
+ 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.`);
234
+ },
235
+ go(e) {
236
+ 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.`);
237
+ },
238
+ back() {
239
+ throw new Error("You cannot use navigator.back() on the server because it is a stateless environment.");
240
+ },
241
+ forward() {
242
+ throw new Error("You cannot use navigator.forward() on the server because it is a stateless environment.");
243
+ }
244
+ };
245
+ }
246
+ function _a(e, t) {
247
+ return F.createStaticHandler(e, {
248
+ ...t,
249
+ mapRouteProperties: We.UNSAFE_mapRouteProperties
250
+ });
251
+ }
252
+ function Na(e, t, n = {}) {
253
+ let r = {}, o = F.UNSAFE_convertRoutesToDataRoutes(e, We.UNSAFE_mapRouteProperties, void 0, r), s = t.matches.map((u) => {
254
+ let l = r[u.route.id] || u.route;
255
+ return {
256
+ ...u,
257
+ route: l
258
+ };
259
+ }), i = (u) => `You cannot use router.${u}() on the server because it is a stateless environment`;
260
+ return {
261
+ get basename() {
262
+ return t.basename;
263
+ },
264
+ get future() {
265
+ var u, l;
266
+ return {
267
+ v7_fetcherPersist: !1,
268
+ v7_normalizeFormMethod: !1,
269
+ v7_partialHydration: ((u = n.future) == null ? void 0 : u.v7_partialHydration) === !0,
270
+ v7_prependBasename: !1,
271
+ v7_relativeSplatPath: ((l = n.future) == null ? void 0 : l.v7_relativeSplatPath) === !0,
272
+ v7_skipActionErrorRevalidation: !1
273
+ };
274
+ },
275
+ get state() {
276
+ return {
277
+ historyAction: F.Action.Pop,
278
+ location: t.location,
279
+ matches: s,
280
+ loaderData: t.loaderData,
281
+ actionData: t.actionData,
282
+ errors: t.errors,
283
+ initialized: !0,
284
+ navigation: F.IDLE_NAVIGATION,
285
+ restoreScrollPosition: null,
286
+ preventScrollReset: !1,
287
+ revalidation: "idle",
288
+ fetchers: /* @__PURE__ */ new Map(),
289
+ blockers: /* @__PURE__ */ new Map()
290
+ };
291
+ },
292
+ get routes() {
293
+ return o;
294
+ },
295
+ get window() {
296
+ },
297
+ initialize() {
298
+ throw i("initialize");
299
+ },
300
+ subscribe() {
301
+ throw i("subscribe");
302
+ },
303
+ enableScrollRestoration() {
304
+ throw i("enableScrollRestoration");
305
+ },
306
+ navigate() {
307
+ throw i("navigate");
308
+ },
309
+ fetch() {
310
+ throw i("fetch");
311
+ },
312
+ revalidate() {
313
+ throw i("revalidate");
314
+ },
315
+ createHref: Ut,
316
+ encodeLocation: Gt,
317
+ getFetcher() {
318
+ return F.IDLE_FETCHER;
319
+ },
320
+ deleteFetcher() {
321
+ throw i("deleteFetcher");
322
+ },
323
+ dispose() {
324
+ throw i("dispose");
325
+ },
326
+ getBlocker() {
327
+ return F.IDLE_BLOCKER;
328
+ },
329
+ deleteBlocker() {
330
+ throw i("deleteBlocker");
331
+ },
332
+ patchRoutes() {
333
+ throw i("patchRoutes");
334
+ },
335
+ _internalFetchControllers: /* @__PURE__ */ new Map(),
336
+ _internalActiveDeferreds: /* @__PURE__ */ new Map(),
337
+ _internalSetRoutes() {
338
+ throw i("_internalSetRoutes");
339
+ }
340
+ };
341
+ }
342
+ function Ut(e) {
343
+ return typeof e == "string" ? e : B.createPath(e);
344
+ }
345
+ function Gt(e) {
346
+ let t = typeof e == "string" ? e : B.createPath(e);
347
+ t = t.replace(/ $/, "%20");
348
+ let n = Da.test(t) ? new URL(t) : new URL(t, "http://localhost");
349
+ return {
350
+ pathname: n.pathname,
351
+ search: n.search,
352
+ hash: n.hash
353
+ };
354
+ }
355
+ const Da = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Ia = {
356
+ "&": "\\u0026",
357
+ ">": "\\u003e",
358
+ "<": "\\u003c",
359
+ "\u2028": "\\u2028",
360
+ "\u2029": "\\u2029"
361
+ }, ka = /[&><\u2028\u2029]/g;
362
+ function Aa(e) {
363
+ return e.replace(ka, (t) => Ia[t]);
364
+ }
365
+ ve.StaticRouter = Pa;
366
+ var Oa = ve.StaticRouterProvider = ja;
367
+ ve.createStaticHandler = _a;
368
+ ve.createStaticRouter = Na;
369
+ const Ta = ({
370
+ router: e,
371
+ hydrate: t = !1
372
+ }) => /* @__PURE__ */ a.jsx(kt, { children: /* @__PURE__ */ a.jsx(Pt, { children: /* @__PURE__ */ a.jsx(qe.Provider, { value: { stagger: !t }, children: /* @__PURE__ */ a.jsx(mr, { router: e }) }) }) }), Fa = ({
373
+ router: e,
374
+ context: t,
375
+ helmetContext: n
376
+ }) => /* @__PURE__ */ a.jsx(kt, { children: /* @__PURE__ */ a.jsx(Pt, { context: n, children: /* @__PURE__ */ a.jsx(Oa, { router: e, context: t }) }) });
377
+ var T, Mt, La = (Mt = class extends Lt {
378
+ constructor(t = {}) {
23
379
  super();
24
- v(this, x);
25
- this.config = e, u(this, x, /* @__PURE__ */ new Map());
380
+ N(this, T);
381
+ this.config = t, S(this, T, /* @__PURE__ */ new Map());
26
382
  }
27
- build(e, s, a) {
28
- const r = s.queryKey, o = s.queryHash ?? ge(r, s);
29
- let l = this.get(o);
30
- return l || (l = new Se({
383
+ build(t, n, r) {
384
+ const o = n.queryKey, s = n.queryHash ?? Kt(o, n);
385
+ let i = this.get(s);
386
+ return i || (i = new ea({
31
387
  cache: this,
32
- queryKey: r,
33
- queryHash: o,
34
- options: e.defaultQueryOptions(s),
35
- state: a,
36
- defaultOptions: e.getQueryDefaults(r)
37
- }), this.add(l)), l;
38
- }
39
- add(e) {
40
- i(this, x).has(e.queryHash) || (i(this, x).set(e.queryHash, e), this.notify({
388
+ queryKey: o,
389
+ queryHash: s,
390
+ options: t.defaultQueryOptions(n),
391
+ state: r,
392
+ defaultOptions: t.getQueryDefaults(o)
393
+ }), this.add(i)), i;
394
+ }
395
+ add(t) {
396
+ f(this, T).has(t.queryHash) || (f(this, T).set(t.queryHash, t), this.notify({
41
397
  type: "added",
42
- query: e
398
+ query: t
43
399
  }));
44
400
  }
45
- remove(e) {
46
- const s = i(this, x).get(e.queryHash);
47
- s && (e.destroy(), s === e && i(this, x).delete(e.queryHash), this.notify({ type: "removed", query: e }));
401
+ remove(t) {
402
+ const n = f(this, T).get(t.queryHash);
403
+ n && (t.destroy(), n === t && f(this, T).delete(t.queryHash), this.notify({ type: "removed", query: t }));
48
404
  }
49
405
  clear() {
50
- m.batch(() => {
51
- this.getAll().forEach((e) => {
52
- this.remove(e);
406
+ E.batch(() => {
407
+ this.getAll().forEach((t) => {
408
+ this.remove(t);
53
409
  });
54
410
  });
55
411
  }
56
- get(e) {
57
- return i(this, x).get(e);
412
+ get(t) {
413
+ return f(this, T).get(t);
58
414
  }
59
415
  getAll() {
60
- return [...i(this, x).values()];
416
+ return [...f(this, T).values()];
61
417
  }
62
- find(e) {
63
- const s = { exact: !0, ...e };
418
+ find(t) {
419
+ const n = { exact: !0, ...t };
64
420
  return this.getAll().find(
65
- (a) => ne(s, a)
421
+ (r) => pt(n, r)
66
422
  );
67
423
  }
68
- findAll(e = {}) {
69
- const s = this.getAll();
70
- return Object.keys(e).length > 0 ? s.filter((a) => ne(e, a)) : s;
424
+ findAll(t = {}) {
425
+ const n = this.getAll();
426
+ return Object.keys(t).length > 0 ? n.filter((r) => pt(t, r)) : n;
71
427
  }
72
- notify(e) {
73
- m.batch(() => {
74
- this.listeners.forEach((s) => {
75
- s(e);
428
+ notify(t) {
429
+ E.batch(() => {
430
+ this.listeners.forEach((n) => {
431
+ n(t);
76
432
  });
77
433
  });
78
434
  }
79
435
  onFocus() {
80
- m.batch(() => {
81
- this.getAll().forEach((e) => {
82
- e.onFocus();
436
+ E.batch(() => {
437
+ this.getAll().forEach((t) => {
438
+ t.onFocus();
83
439
  });
84
440
  });
85
441
  }
86
442
  onOnline() {
87
- m.batch(() => {
88
- this.getAll().forEach((e) => {
89
- e.onOnline();
443
+ E.batch(() => {
444
+ this.getAll().forEach((t) => {
445
+ t.onOnline();
90
446
  });
91
447
  });
92
448
  }
93
- }, x = new WeakMap(), de), p, T, fe, pt = (fe = class extends me {
94
- constructor(e = {}) {
449
+ }, T = new WeakMap(), Mt), R, me, Ct, Ka = (Ct = class extends Lt {
450
+ constructor(t = {}) {
95
451
  super();
96
- v(this, p);
97
- v(this, T);
98
- this.config = e, u(this, p, /* @__PURE__ */ new Map()), u(this, T, Date.now());
452
+ N(this, R);
453
+ N(this, me);
454
+ this.config = t, S(this, R, /* @__PURE__ */ new Map()), S(this, me, Date.now());
99
455
  }
100
- build(e, s, a) {
101
- const r = new Fe({
456
+ build(t, n, r) {
457
+ const o = new br({
102
458
  mutationCache: this,
103
- mutationId: ++S(this, T)._,
104
- options: e.defaultMutationOptions(s),
105
- state: a
459
+ mutationId: ++Ce(this, me)._,
460
+ options: t.defaultMutationOptions(n),
461
+ state: r
106
462
  });
107
- return this.add(r), r;
108
- }
109
- add(e) {
110
- const s = F(e), a = i(this, p).get(s) ?? [];
111
- a.push(e), i(this, p).set(s, a), this.notify({ type: "added", mutation: e });
112
- }
113
- remove(e) {
114
- var a;
115
- const s = F(e);
116
- if (i(this, p).has(s)) {
117
- const r = (a = i(this, p).get(s)) == null ? void 0 : a.filter((o) => o !== e);
118
- r && (r.length === 0 ? i(this, p).delete(s) : i(this, p).set(s, r));
463
+ return this.add(o), o;
464
+ }
465
+ add(t) {
466
+ const n = Se(t), r = f(this, R).get(n) ?? [];
467
+ r.push(t), f(this, R).set(n, r), this.notify({ type: "added", mutation: t });
468
+ }
469
+ remove(t) {
470
+ var r;
471
+ const n = Se(t);
472
+ if (f(this, R).has(n)) {
473
+ const o = (r = f(this, R).get(n)) == null ? void 0 : r.filter((s) => s !== t);
474
+ o && (o.length === 0 ? f(this, R).delete(n) : f(this, R).set(n, o));
119
475
  }
120
- this.notify({ type: "removed", mutation: e });
476
+ this.notify({ type: "removed", mutation: t });
121
477
  }
122
- canRun(e) {
123
- var a;
124
- const s = (a = i(this, p).get(F(e))) == null ? void 0 : a.find((r) => r.state.status === "pending");
125
- return !s || s === e;
478
+ canRun(t) {
479
+ var r;
480
+ const n = (r = f(this, R).get(Se(t))) == null ? void 0 : r.find((o) => o.state.status === "pending");
481
+ return !n || n === t;
126
482
  }
127
- runNext(e) {
128
- var a;
129
- const s = (a = i(this, p).get(F(e))) == null ? void 0 : a.find((r) => r !== e && r.state.isPaused);
130
- return (s == null ? void 0 : s.continue()) ?? Promise.resolve();
483
+ runNext(t) {
484
+ var r;
485
+ const n = (r = f(this, R).get(Se(t))) == null ? void 0 : r.find((o) => o !== t && o.state.isPaused);
486
+ return (n == null ? void 0 : n.continue()) ?? Promise.resolve();
131
487
  }
132
488
  clear() {
133
- m.batch(() => {
134
- this.getAll().forEach((e) => {
135
- this.remove(e);
489
+ E.batch(() => {
490
+ this.getAll().forEach((t) => {
491
+ this.remove(t);
136
492
  });
137
493
  });
138
494
  }
139
495
  getAll() {
140
- return [...i(this, p).values()].flat();
496
+ return [...f(this, R).values()].flat();
141
497
  }
142
- find(e) {
143
- const s = { exact: !0, ...e };
498
+ find(t) {
499
+ const n = { exact: !0, ...t };
144
500
  return this.getAll().find(
145
- (a) => re(s, a)
501
+ (r) => mt(n, r)
146
502
  );
147
503
  }
148
- findAll(e = {}) {
149
- return this.getAll().filter((s) => re(e, s));
504
+ findAll(t = {}) {
505
+ return this.getAll().filter((n) => mt(t, n));
150
506
  }
151
- notify(e) {
152
- m.batch(() => {
153
- this.listeners.forEach((s) => {
154
- s(e);
507
+ notify(t) {
508
+ E.batch(() => {
509
+ this.listeners.forEach((n) => {
510
+ n(t);
155
511
  });
156
512
  });
157
513
  }
158
514
  resumePausedMutations() {
159
- const e = this.getAll().filter((s) => s.state.isPaused);
160
- return m.batch(
515
+ const t = this.getAll().filter((n) => n.state.isPaused);
516
+ return E.batch(
161
517
  () => Promise.all(
162
- e.map((s) => s.continue().catch(j))
518
+ t.map((n) => n.continue().catch($))
163
519
  )
164
520
  );
165
521
  }
166
- }, p = new WeakMap(), T = new WeakMap(), fe);
167
- function F(t) {
168
- var e;
169
- return ((e = t.options.scope) == null ? void 0 : e.id) ?? String(t.mutationId);
522
+ }, R = new WeakMap(), me = new WeakMap(), Ct);
523
+ function Se(e) {
524
+ var t;
525
+ return ((t = e.options.scope) == null ? void 0 : t.id) ?? String(e.mutationId);
170
526
  }
171
- function mt(t) {
527
+ function $a(e) {
172
528
  return {
173
- onFetch: (e, s) => {
174
- const a = async () => {
175
- var $, G, J, Y, Z;
176
- const r = e.options, o = (J = (G = ($ = e.fetchOptions) == null ? void 0 : $.meta) == null ? void 0 : G.fetchMore) == null ? void 0 : J.direction, l = ((Y = e.state.data) == null ? void 0 : Y.pages) || [], h = ((Z = e.state.data) == null ? void 0 : Z.pageParams) || [], d = { pages: [], pageParams: [] };
177
- let b = !1;
178
- const f = (y) => {
179
- Object.defineProperty(y, "signal", {
529
+ onFetch: (t, n) => {
530
+ const r = async () => {
531
+ var x, M, I, Q, V;
532
+ const o = t.options, s = (I = (M = (x = t.fetchOptions) == null ? void 0 : x.meta) == null ? void 0 : M.fetchMore) == null ? void 0 : I.direction, i = ((Q = t.state.data) == null ? void 0 : Q.pages) || [], u = ((V = t.state.data) == null ? void 0 : V.pageParams) || [], l = { pages: [], pageParams: [] };
533
+ let g = !1;
534
+ const p = (C) => {
535
+ Object.defineProperty(C, "signal", {
180
536
  enumerable: !0,
181
- get: () => (e.signal.aborted ? b = !0 : e.signal.addEventListener("abort", () => {
182
- b = !0;
183
- }), e.signal)
537
+ get: () => (t.signal.aborted ? g = !0 : t.signal.addEventListener("abort", () => {
538
+ g = !0;
539
+ }), t.signal)
184
540
  });
185
- }, qe = Re(e.options, e.fetchOptions), _ = async (y, P, O) => {
186
- if (b)
541
+ }, d = ta(t.options, t.fetchOptions), h = async (C, k, L) => {
542
+ if (g)
187
543
  return Promise.reject();
188
- if (P == null && y.pages.length)
189
- return Promise.resolve(y);
190
- const E = {
191
- queryKey: e.queryKey,
192
- pageParam: P,
193
- direction: O ? "backward" : "forward",
194
- meta: e.options.meta
544
+ if (k == null && C.pages.length)
545
+ return Promise.resolve(C);
546
+ const Y = {
547
+ queryKey: t.queryKey,
548
+ pageParam: k,
549
+ direction: L ? "backward" : "forward",
550
+ meta: t.options.meta
195
551
  };
196
- f(E);
197
- const De = await qe(
198
- E
199
- ), { maxPages: ee } = e.options, te = O ? He : Le;
552
+ p(Y);
553
+ const Z = await d(
554
+ Y
555
+ ), { maxPages: be } = t.options, X = L ? na : ra;
200
556
  return {
201
- pages: te(y.pages, De, ee),
202
- pageParams: te(y.pageParams, P, ee)
557
+ pages: X(C.pages, Z, be),
558
+ pageParams: X(C.pageParams, k, be)
203
559
  };
204
560
  };
205
- let C;
206
- if (o && l.length) {
207
- const y = o === "backward", P = y ? gt : he, O = {
208
- pages: l,
209
- pageParams: h
210
- }, E = P(r, O);
211
- C = await _(O, E, y);
561
+ let v;
562
+ if (s && i.length) {
563
+ const C = s === "backward", k = C ? Ba : wt, L = {
564
+ pages: i,
565
+ pageParams: u
566
+ }, Y = k(o, L);
567
+ v = await h(L, Y, C);
212
568
  } else {
213
- C = await _(
214
- d,
215
- h[0] ?? r.initialPageParam
569
+ v = await h(
570
+ l,
571
+ u[0] ?? o.initialPageParam
216
572
  );
217
- const y = t ?? l.length;
218
- for (let P = 1; P < y; P++) {
219
- const O = he(r, C);
220
- C = await _(C, O);
573
+ const C = e ?? i.length;
574
+ for (let k = 1; k < C; k++) {
575
+ const L = wt(o, v);
576
+ v = await h(v, L);
221
577
  }
222
578
  }
223
- return C;
579
+ return v;
224
580
  };
225
- e.options.persister ? e.fetchFn = () => {
226
- var r, o;
227
- return (o = (r = e.options).persister) == null ? void 0 : o.call(
581
+ t.options.persister ? t.fetchFn = () => {
582
+ var o, s;
583
+ return (s = (o = t.options).persister) == null ? void 0 : s.call(
584
+ o,
228
585
  r,
229
- a,
230
586
  {
231
- queryKey: e.queryKey,
232
- meta: e.options.meta,
233
- signal: e.signal
587
+ queryKey: t.queryKey,
588
+ meta: t.options.meta,
589
+ signal: t.signal
234
590
  },
235
- s
591
+ n
236
592
  );
237
- } : e.fetchFn = a;
593
+ } : t.fetchFn = r;
238
594
  }
239
595
  };
240
596
  }
241
- function he(t, { pages: e, pageParams: s }) {
242
- const a = e.length - 1;
243
- return t.getNextPageParam(
244
- e[a],
245
- e,
246
- s[a],
247
- s
597
+ function wt(e, { pages: t, pageParams: n }) {
598
+ const r = t.length - 1;
599
+ return e.getNextPageParam(
600
+ t[r],
601
+ t,
602
+ n[r],
603
+ n
248
604
  );
249
605
  }
250
- function gt(t, { pages: e, pageParams: s }) {
251
- var a;
252
- return (a = t.getPreviousPageParam) == null ? void 0 : a.call(
253
- t,
254
- e[0],
606
+ function Ba(e, { pages: t, pageParams: n }) {
607
+ var r;
608
+ return (r = e.getPreviousPageParam) == null ? void 0 : r.call(
255
609
  e,
256
- s[0],
257
- s
610
+ t[0],
611
+ t,
612
+ n[0],
613
+ n
258
614
  );
259
615
  }
260
- var c, w, N, M, A, k, Q, q, pe, vt = (pe = class {
261
- constructor(t = {}) {
262
- v(this, c);
263
- v(this, w);
264
- v(this, N);
265
- v(this, M);
266
- v(this, A);
267
- v(this, k);
268
- v(this, Q);
269
- v(this, q);
270
- u(this, c, t.queryCache || new ft()), u(this, w, t.mutationCache || new pt()), u(this, N, t.defaultOptions || {}), u(this, M, /* @__PURE__ */ new Map()), u(this, A, /* @__PURE__ */ new Map()), u(this, k, 0);
616
+ var w, U, G, ne, re, H, ae, oe, St, Qa = (St = class {
617
+ constructor(e = {}) {
618
+ N(this, w);
619
+ N(this, U);
620
+ N(this, G);
621
+ N(this, ne);
622
+ N(this, re);
623
+ N(this, H);
624
+ N(this, ae);
625
+ N(this, oe);
626
+ S(this, w, e.queryCache || new La()), S(this, U, e.mutationCache || new Ka()), S(this, G, e.defaultOptions || {}), S(this, ne, /* @__PURE__ */ new Map()), S(this, re, /* @__PURE__ */ new Map()), S(this, H, 0);
271
627
  }
272
628
  mount() {
273
- S(this, k)._++, i(this, k) === 1 && (u(this, Q, ze.subscribe(async (t) => {
274
- t && (await this.resumePausedMutations(), i(this, c).onFocus());
275
- })), u(this, q, ie.subscribe(async (t) => {
276
- t && (await this.resumePausedMutations(), i(this, c).onOnline());
629
+ Ce(this, H)._++, f(this, H) === 1 && (S(this, ae, aa.subscribe(async (e) => {
630
+ e && (await this.resumePausedMutations(), f(this, w).onFocus());
631
+ })), S(this, oe, gt.subscribe(async (e) => {
632
+ e && (await this.resumePausedMutations(), f(this, w).onOnline());
277
633
  })));
278
634
  }
279
635
  unmount() {
280
- var t, e;
281
- S(this, k)._--, i(this, k) === 0 && ((t = i(this, Q)) == null || t.call(this), u(this, Q, void 0), (e = i(this, q)) == null || e.call(this), u(this, q, void 0));
636
+ var e, t;
637
+ Ce(this, H)._--, f(this, H) === 0 && ((e = f(this, ae)) == null || e.call(this), S(this, ae, void 0), (t = f(this, oe)) == null || t.call(this), S(this, oe, void 0));
282
638
  }
283
- isFetching(t) {
284
- return i(this, c).findAll({ ...t, fetchStatus: "fetching" }).length;
639
+ isFetching(e) {
640
+ return f(this, w).findAll({ ...e, fetchStatus: "fetching" }).length;
285
641
  }
286
- isMutating(t) {
287
- return i(this, w).findAll({ ...t, status: "pending" }).length;
642
+ isMutating(e) {
643
+ return f(this, U).findAll({ ...e, status: "pending" }).length;
288
644
  }
289
- getQueryData(t) {
290
- var s;
291
- const e = this.defaultQueryOptions({ queryKey: t });
292
- return (s = i(this, c).get(e.queryHash)) == null ? void 0 : s.state.data;
645
+ getQueryData(e) {
646
+ var n;
647
+ const t = this.defaultQueryOptions({ queryKey: e });
648
+ return (n = f(this, w).get(t.queryHash)) == null ? void 0 : n.state.data;
293
649
  }
294
- ensureQueryData(t) {
295
- const e = this.getQueryData(t.queryKey);
296
- if (e === void 0)
297
- return this.fetchQuery(t);
650
+ ensureQueryData(e) {
651
+ const t = this.getQueryData(e.queryKey);
652
+ if (t === void 0)
653
+ return this.fetchQuery(e);
298
654
  {
299
- const s = this.defaultQueryOptions(t), a = i(this, c).build(this, s);
300
- return t.revalidateIfStale && a.isStaleByTime(oe(s.staleTime, a)) && this.prefetchQuery(s), Promise.resolve(e);
655
+ const n = this.defaultQueryOptions(e), r = f(this, w).build(this, n);
656
+ return e.revalidateIfStale && r.isStaleByTime(vt(n.staleTime, r)) && this.prefetchQuery(n), Promise.resolve(t);
301
657
  }
302
658
  }
303
- getQueriesData(t) {
304
- return i(this, c).findAll(t).map(({ queryKey: e, state: s }) => {
305
- const a = s.data;
306
- return [e, a];
659
+ getQueriesData(e) {
660
+ return f(this, w).findAll(e).map(({ queryKey: t, state: n }) => {
661
+ const r = n.data;
662
+ return [t, r];
307
663
  });
308
664
  }
309
- setQueryData(t, e, s) {
310
- const a = this.defaultQueryOptions({ queryKey: t }), r = i(this, c).get(
311
- a.queryHash
312
- ), o = r == null ? void 0 : r.state.data, l = Ke(e, o);
313
- if (l !== void 0)
314
- return i(this, c).build(this, a).setData(l, { ...s, manual: !0 });
315
- }
316
- setQueriesData(t, e, s) {
317
- return m.batch(
318
- () => i(this, c).findAll(t).map(({ queryKey: a }) => [
319
- a,
320
- this.setQueryData(a, e, s)
665
+ setQueryData(e, t, n) {
666
+ const r = this.defaultQueryOptions({ queryKey: e }), o = f(this, w).get(
667
+ r.queryHash
668
+ ), s = o == null ? void 0 : o.state.data, i = oa(t, s);
669
+ if (i !== void 0)
670
+ return f(this, w).build(this, r).setData(i, { ...n, manual: !0 });
671
+ }
672
+ setQueriesData(e, t, n) {
673
+ return E.batch(
674
+ () => f(this, w).findAll(e).map(({ queryKey: r }) => [
675
+ r,
676
+ this.setQueryData(r, t, n)
321
677
  ])
322
678
  );
323
679
  }
324
- getQueryState(t) {
325
- var s;
326
- const e = this.defaultQueryOptions({ queryKey: t });
327
- return (s = i(this, c).get(e.queryHash)) == null ? void 0 : s.state;
680
+ getQueryState(e) {
681
+ var n;
682
+ const t = this.defaultQueryOptions({ queryKey: e });
683
+ return (n = f(this, w).get(t.queryHash)) == null ? void 0 : n.state;
328
684
  }
329
- removeQueries(t) {
330
- const e = i(this, c);
331
- m.batch(() => {
332
- e.findAll(t).forEach((s) => {
333
- e.remove(s);
685
+ removeQueries(e) {
686
+ const t = f(this, w);
687
+ E.batch(() => {
688
+ t.findAll(e).forEach((n) => {
689
+ t.remove(n);
334
690
  });
335
691
  });
336
692
  }
337
- resetQueries(t, e) {
338
- const s = i(this, c), a = {
693
+ resetQueries(e, t) {
694
+ const n = f(this, w), r = {
339
695
  type: "active",
340
- ...t
696
+ ...e
341
697
  };
342
- return m.batch(() => (s.findAll(t).forEach((r) => {
343
- r.reset();
344
- }), this.refetchQueries(a, e)));
698
+ return E.batch(() => (n.findAll(e).forEach((o) => {
699
+ o.reset();
700
+ }), this.refetchQueries(r, t)));
345
701
  }
346
- cancelQueries(t = {}, e = {}) {
347
- const s = { revert: !0, ...e }, a = m.batch(
348
- () => i(this, c).findAll(t).map((r) => r.cancel(s))
702
+ cancelQueries(e = {}, t = {}) {
703
+ const n = { revert: !0, ...t }, r = E.batch(
704
+ () => f(this, w).findAll(e).map((o) => o.cancel(n))
349
705
  );
350
- return Promise.all(a).then(j).catch(j);
706
+ return Promise.all(r).then($).catch($);
351
707
  }
352
- invalidateQueries(t = {}, e = {}) {
353
- return m.batch(() => {
354
- if (i(this, c).findAll(t).forEach((a) => {
355
- a.invalidate();
356
- }), t.refetchType === "none")
708
+ invalidateQueries(e = {}, t = {}) {
709
+ return E.batch(() => {
710
+ if (f(this, w).findAll(e).forEach((r) => {
711
+ r.invalidate();
712
+ }), e.refetchType === "none")
357
713
  return Promise.resolve();
358
- const s = {
359
- ...t,
360
- type: t.refetchType ?? t.type ?? "active"
714
+ const n = {
715
+ ...e,
716
+ type: e.refetchType ?? e.type ?? "active"
361
717
  };
362
- return this.refetchQueries(s, e);
718
+ return this.refetchQueries(n, t);
363
719
  });
364
720
  }
365
- refetchQueries(t = {}, e) {
366
- const s = {
367
- ...e,
368
- cancelRefetch: (e == null ? void 0 : e.cancelRefetch) ?? !0
369
- }, a = m.batch(
370
- () => i(this, c).findAll(t).filter((r) => !r.isDisabled()).map((r) => {
371
- let o = r.fetch(void 0, s);
372
- return s.throwOnError || (o = o.catch(j)), r.state.fetchStatus === "paused" ? Promise.resolve() : o;
721
+ refetchQueries(e = {}, t) {
722
+ const n = {
723
+ ...t,
724
+ cancelRefetch: (t == null ? void 0 : t.cancelRefetch) ?? !0
725
+ }, r = E.batch(
726
+ () => f(this, w).findAll(e).filter((o) => !o.isDisabled()).map((o) => {
727
+ let s = o.fetch(void 0, n);
728
+ return n.throwOnError || (s = s.catch($)), o.state.fetchStatus === "paused" ? Promise.resolve() : s;
373
729
  })
374
730
  );
375
- return Promise.all(a).then(j);
731
+ return Promise.all(r).then($);
376
732
  }
377
- fetchQuery(t) {
378
- const e = this.defaultQueryOptions(t);
379
- e.retry === void 0 && (e.retry = !1);
380
- const s = i(this, c).build(this, e);
381
- return s.isStaleByTime(
382
- oe(e.staleTime, s)
383
- ) ? s.fetch(e) : Promise.resolve(s.state.data);
733
+ fetchQuery(e) {
734
+ const t = this.defaultQueryOptions(e);
735
+ t.retry === void 0 && (t.retry = !1);
736
+ const n = f(this, w).build(this, t);
737
+ return n.isStaleByTime(
738
+ vt(t.staleTime, n)
739
+ ) ? n.fetch(t) : Promise.resolve(n.state.data);
384
740
  }
385
- prefetchQuery(t) {
386
- return this.fetchQuery(t).then(j).catch(j);
741
+ prefetchQuery(e) {
742
+ return this.fetchQuery(e).then($).catch($);
387
743
  }
388
- fetchInfiniteQuery(t) {
389
- return t.behavior = mt(t.pages), this.fetchQuery(t);
744
+ fetchInfiniteQuery(e) {
745
+ return e.behavior = $a(e.pages), this.fetchQuery(e);
390
746
  }
391
- prefetchInfiniteQuery(t) {
392
- return this.fetchInfiniteQuery(t).then(j).catch(j);
747
+ prefetchInfiniteQuery(e) {
748
+ return this.fetchInfiniteQuery(e).then($).catch($);
393
749
  }
394
750
  resumePausedMutations() {
395
- return ie.isOnline() ? i(this, w).resumePausedMutations() : Promise.resolve();
751
+ return gt.isOnline() ? f(this, U).resumePausedMutations() : Promise.resolve();
396
752
  }
397
753
  getQueryCache() {
398
- return i(this, c);
754
+ return f(this, w);
399
755
  }
400
756
  getMutationCache() {
401
- return i(this, w);
757
+ return f(this, U);
402
758
  }
403
759
  getDefaultOptions() {
404
- return i(this, N);
760
+ return f(this, G);
405
761
  }
406
- setDefaultOptions(t) {
407
- u(this, N, t);
762
+ setDefaultOptions(e) {
763
+ S(this, G, e);
408
764
  }
409
- setQueryDefaults(t, e) {
410
- i(this, M).set(le(t), {
411
- queryKey: t,
412
- defaultOptions: e
765
+ setQueryDefaults(e, t) {
766
+ f(this, ne).set(xt(e), {
767
+ queryKey: e,
768
+ defaultOptions: t
413
769
  });
414
770
  }
415
- getQueryDefaults(t) {
416
- const e = [...i(this, M).values()];
417
- let s = {};
418
- return e.forEach((a) => {
419
- ce(t, a.queryKey) && (s = { ...s, ...a.defaultOptions });
420
- }), s;
421
- }
422
- setMutationDefaults(t, e) {
423
- i(this, A).set(le(t), {
424
- mutationKey: t,
425
- defaultOptions: e
771
+ getQueryDefaults(e) {
772
+ const t = [...f(this, ne).values()];
773
+ let n = {};
774
+ return t.forEach((r) => {
775
+ yt(e, r.queryKey) && (n = { ...n, ...r.defaultOptions });
776
+ }), n;
777
+ }
778
+ setMutationDefaults(e, t) {
779
+ f(this, re).set(xt(e), {
780
+ mutationKey: e,
781
+ defaultOptions: t
426
782
  });
427
783
  }
428
- getMutationDefaults(t) {
429
- const e = [...i(this, A).values()];
430
- let s = {};
431
- return e.forEach((a) => {
432
- ce(t, a.mutationKey) && (s = { ...s, ...a.defaultOptions });
433
- }), s;
434
- }
435
- defaultQueryOptions(t) {
436
- if (t._defaulted)
437
- return t;
438
- const e = {
439
- ...i(this, N).queries,
440
- ...this.getQueryDefaults(t.queryKey),
441
- ...t,
784
+ getMutationDefaults(e) {
785
+ const t = [...f(this, re).values()];
786
+ let n = {};
787
+ return t.forEach((r) => {
788
+ yt(e, r.mutationKey) && (n = { ...n, ...r.defaultOptions });
789
+ }), n;
790
+ }
791
+ defaultQueryOptions(e) {
792
+ if (e._defaulted)
793
+ return e;
794
+ const t = {
795
+ ...f(this, G).queries,
796
+ ...this.getQueryDefaults(e.queryKey),
797
+ ...e,
442
798
  _defaulted: !0
443
799
  };
444
- return e.queryHash || (e.queryHash = ge(
445
- e.queryKey,
446
- e
447
- )), 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 === _e && (e.enabled = !1), e;
800
+ return t.queryHash || (t.queryHash = Kt(
801
+ t.queryKey,
802
+ t
803
+ )), 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 === sa && (t.enabled = !1), t;
448
804
  }
449
- defaultMutationOptions(t) {
450
- return t != null && t._defaulted ? t : {
451
- ...i(this, N).mutations,
452
- ...(t == null ? void 0 : t.mutationKey) && this.getMutationDefaults(t.mutationKey),
453
- ...t,
805
+ defaultMutationOptions(e) {
806
+ return e != null && e._defaulted ? e : {
807
+ ...f(this, G).mutations,
808
+ ...(e == null ? void 0 : e.mutationKey) && this.getMutationDefaults(e.mutationKey),
809
+ ...e,
454
810
  _defaulted: !0
455
811
  };
456
812
  }
457
813
  clear() {
458
- i(this, c).clear(), i(this, w).clear();
459
- }
460
- }, c = new WeakMap(), w = new WeakMap(), N = new WeakMap(), M = new WeakMap(), A = new WeakMap(), k = new WeakMap(), Q = new WeakMap(), q = new WeakMap(), pe);
461
- const Ne = (t) => "getRoutes" in t && typeof t.getRoutes == "function", yt = (t) => "initialize" in t && typeof t.initialize == "function", xt = (t) => "getHead" in t && typeof t.getHead == "function", bt = (t) => "getIdentities" in t && typeof t.getIdentities == "function", ke = new vt(), jt = dt(() => ({}));
462
- class Pt {
463
- constructor(e) {
464
- g(this, "plugins", []);
465
- g(this, "navigationPlugins");
466
- g(this, "navigation");
467
- g(this, "meta");
468
- g(this, "page");
469
- g(this, "authentication");
470
- g(this, "state");
471
- g(this, "initialize", async () => {
472
- await Promise.all([
473
- this.plugins.filter(yt).map((e) => {
474
- var s;
475
- return (s = e.initialize) == null ? void 0 : s.call(e, this);
814
+ f(this, w).clear(), f(this, U).clear();
815
+ }
816
+ }, w = new WeakMap(), U = new WeakMap(), G = new WeakMap(), ne = new WeakMap(), re = new WeakMap(), H = new WeakMap(), ae = new WeakMap(), oe = new WeakMap(), St);
817
+ const qa = At(null), Be = {
818
+ didCatch: !1,
819
+ error: null
820
+ };
821
+ class Ua extends Gr {
822
+ constructor(t) {
823
+ super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = Be;
824
+ }
825
+ static getDerivedStateFromError(t) {
826
+ return {
827
+ didCatch: !0,
828
+ error: t
829
+ };
830
+ }
831
+ resetErrorBoundary() {
832
+ const {
833
+ error: t
834
+ } = this.state;
835
+ if (t !== null) {
836
+ for (var n, r, o = arguments.length, s = new Array(o), i = 0; i < o; i++)
837
+ s[i] = arguments[i];
838
+ (n = (r = this.props).onReset) === null || n === void 0 || n.call(r, {
839
+ args: s,
840
+ reason: "imperative-api"
841
+ }), this.setState(Be);
842
+ }
843
+ }
844
+ componentDidCatch(t, n) {
845
+ var r, o;
846
+ (r = (o = this.props).onError) === null || r === void 0 || r.call(o, t, n);
847
+ }
848
+ componentDidUpdate(t, n) {
849
+ const {
850
+ didCatch: r
851
+ } = this.state, {
852
+ resetKeys: o
853
+ } = this.props;
854
+ if (r && n.error !== null && Ga(t.resetKeys, o)) {
855
+ var s, i;
856
+ (s = (i = this.props).onReset) === null || s === void 0 || s.call(i, {
857
+ next: o,
858
+ prev: t.resetKeys,
859
+ reason: "keys"
860
+ }), this.setState(Be);
861
+ }
862
+ }
863
+ render() {
864
+ const {
865
+ children: t,
866
+ fallbackRender: n,
867
+ FallbackComponent: r,
868
+ fallback: o
869
+ } = this.props, {
870
+ didCatch: s,
871
+ error: i
872
+ } = this.state;
873
+ let u = t;
874
+ if (s) {
875
+ const l = {
876
+ error: i,
877
+ resetErrorBoundary: this.resetErrorBoundary
878
+ };
879
+ if (typeof n == "function")
880
+ u = n(l);
881
+ else if (r)
882
+ u = ft(r, l);
883
+ else if (o === null || Hr(o))
884
+ u = o;
885
+ else
886
+ throw i;
887
+ }
888
+ return ft(qa.Provider, {
889
+ value: {
890
+ didCatch: s,
891
+ error: i,
892
+ resetErrorBoundary: this.resetErrorBoundary
893
+ }
894
+ }, u);
895
+ }
896
+ }
897
+ function Ga() {
898
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
899
+ return e.length !== t.length || e.some((n, r) => !Object.is(n, t[r]));
900
+ }
901
+ const Ha = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems == "function", za = (e) => "getRoutes" in e && typeof e.getRoutes == "function", Va = (e) => "renderSearch" in e && typeof e.renderSearch == "function", Ya = (e) => "initialize" in e && typeof e.initialize == "function", Xa = (e) => "getHead" in e && typeof e.getHead == "function", Wa = (e) => "getMdxComponents" in e && typeof e.getMdxComponents == "function", Ja = (e) => "getIdentities" in e && typeof e.getIdentities == "function", Ht = new Qa();
902
+ class Za {
903
+ constructor(t) {
904
+ j(this, "plugins");
905
+ j(this, "sidebars");
906
+ j(this, "topNavigation");
907
+ j(this, "meta");
908
+ j(this, "page");
909
+ j(this, "authentication");
910
+ j(this, "navigationPlugins");
911
+ j(this, "initialize", async ({
912
+ navigate: t
913
+ }) => {
914
+ await Promise.all(
915
+ this.plugins.filter(Ya).map((n) => {
916
+ var r;
917
+ return (r = n.initialize) == null ? void 0 : r.call(n, this, { navigate: t });
476
918
  })
477
- ]);
919
+ );
478
920
  });
479
- g(this, "invalidateCache", async (e) => {
480
- await ke.invalidateQueries({ queryKey: e });
921
+ j(this, "invalidateCache", async (t) => {
922
+ await Ht.invalidateQueries({ queryKey: t });
481
923
  });
482
- g(this, "getApiIdentities", async () => (await Promise.all(
483
- this.plugins.filter(bt).map((s) => s.getIdentities(this))
924
+ j(this, "getApiIdentities", async () => (await Promise.all(
925
+ this.plugins.filter(Ja).map((n) => n.getIdentities(this))
484
926
  )).flat());
485
- g(this, "getNavigation", async (e) => (await Promise.all(
927
+ j(this, "getPluginSidebar", async (t) => (await Promise.all(
486
928
  this.navigationPlugins.map(
487
- async (a) => {
488
- var r;
489
- return (r = a.getNavigation) == null ? void 0 : r.call(a, e);
929
+ (r) => {
930
+ var o;
931
+ return (o = r.getSidebar) == null ? void 0 : o.call(r, Xe(t));
932
+ }
933
+ )
934
+ )).flatMap((r) => r ?? []));
935
+ j(this, "signRequest", async (t) => {
936
+ if (!this.authentication)
937
+ throw new Error("No authentication provider configured");
938
+ const n = await this.authentication.getAccessToken();
939
+ return t.headers.set("Authorization", `Bearer ${n}`), t;
940
+ });
941
+ this.plugins = t.plugins ?? [], this.topNavigation = t.topNavigation ?? [], this.sidebars = t.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(za), this.authentication = t.authentication, this.meta = t.metadata, this.page = t.page;
942
+ }
943
+ }
944
+ function eo({ error: e, resetErrorBoundary: t }) {
945
+ return /* @__PURE__ */ a.jsx(Rt, { error: e });
946
+ }
947
+ const Pe = globalThis;
948
+ (!Pe.requestIdleCallback || !Pe.cancelIdleCallback) && (Pe.requestIdleCallback = (e) => setTimeout(e, 1), Pe.cancelIdleCallback = clearTimeout);
949
+ var Ue = ["Enter", " "], to = ["ArrowDown", "PageUp", "Home"], zt = ["ArrowUp", "PageDown", "End"], no = [...to, ...zt], ro = {
950
+ ltr: [...Ue, "ArrowRight"],
951
+ rtl: [...Ue, "ArrowLeft"]
952
+ }, ao = {
953
+ ltr: ["ArrowLeft"],
954
+ rtl: ["ArrowRight"]
955
+ }, xe = "Menu", [fe, oo, so] = Mr(xe), [J, Vt] = Et(xe, [
956
+ so,
957
+ _t,
958
+ Bt
959
+ ]), ye = _t(), Yt = Bt(), [Xt, z] = J(xe), [io, we] = J(xe), Wt = (e) => {
960
+ const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: s, modal: i = !0 } = e, u = ye(t), [l, g] = c.useState(null), p = c.useRef(!1), d = He(s), h = kr(o);
961
+ return c.useEffect(() => {
962
+ const v = () => {
963
+ p.current = !0, document.addEventListener("pointerdown", x, { capture: !0, once: !0 }), document.addEventListener("pointermove", x, { capture: !0, once: !0 });
964
+ }, x = () => p.current = !1;
965
+ return document.addEventListener("keydown", v, { capture: !0 }), () => {
966
+ document.removeEventListener("keydown", v, { capture: !0 }), document.removeEventListener("pointerdown", x, { capture: !0 }), document.removeEventListener("pointermove", x, { capture: !0 });
967
+ };
968
+ }, []), /* @__PURE__ */ a.jsx(Dt, { ...u, children: /* @__PURE__ */ a.jsx(
969
+ Xt,
970
+ {
971
+ scope: t,
972
+ open: n,
973
+ onOpenChange: d,
974
+ content: l,
975
+ onContentChange: g,
976
+ children: /* @__PURE__ */ a.jsx(
977
+ io,
978
+ {
979
+ scope: t,
980
+ onClose: c.useCallback(() => d(!1), [d]),
981
+ isUsingKeyboardRef: p,
982
+ dir: h,
983
+ modal: i,
984
+ children: r
985
+ }
986
+ )
987
+ }
988
+ ) });
989
+ };
990
+ Wt.displayName = xe;
991
+ var co = "MenuAnchor", Je = c.forwardRef(
992
+ (e, t) => {
993
+ const { __scopeMenu: n, ...r } = e, o = ye(n);
994
+ return /* @__PURE__ */ a.jsx(Cr, { ...o, ...r, ref: t });
995
+ }
996
+ );
997
+ Je.displayName = co;
998
+ var Ze = "MenuPortal", [uo, Jt] = J(Ze, {
999
+ forceMount: void 0
1000
+ }), Zt = (e) => {
1001
+ const { __scopeMenu: t, forceMount: n, children: r, container: o } = e, s = z(Ze, t);
1002
+ return /* @__PURE__ */ a.jsx(uo, { scope: t, forceMount: n, children: /* @__PURE__ */ a.jsx(ke, { present: n || s.open, children: /* @__PURE__ */ a.jsx(Ar, { asChild: !0, container: o, children: r }) }) });
1003
+ };
1004
+ Zt.displayName = Ze;
1005
+ var D = "MenuContent", [lo, et] = J(D), en = c.forwardRef(
1006
+ (e, t) => {
1007
+ const n = Jt(D, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = z(D, e.__scopeMenu), i = we(D, e.__scopeMenu);
1008
+ return /* @__PURE__ */ a.jsx(fe.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(ke, { present: r || s.open, children: /* @__PURE__ */ a.jsx(fe.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ a.jsx(ho, { ...o, ref: t }) : /* @__PURE__ */ a.jsx(fo, { ...o, ref: t }) }) }) });
1009
+ }
1010
+ ), ho = c.forwardRef(
1011
+ (e, t) => {
1012
+ const n = z(D, e.__scopeMenu), r = c.useRef(null), o = ge(t, r);
1013
+ return c.useEffect(() => {
1014
+ const s = r.current;
1015
+ if (s) return Sr(s);
1016
+ }, []), /* @__PURE__ */ a.jsx(
1017
+ tt,
1018
+ {
1019
+ ...e,
1020
+ ref: o,
1021
+ trapFocus: n.open,
1022
+ disableOutsidePointerEvents: n.open,
1023
+ disableOutsideScroll: !0,
1024
+ onFocusOutside: y(
1025
+ e.onFocusOutside,
1026
+ (s) => s.preventDefault(),
1027
+ { checkForDefaultPrevented: !1 }
1028
+ ),
1029
+ onDismiss: () => n.onOpenChange(!1)
1030
+ }
1031
+ );
1032
+ }
1033
+ ), fo = c.forwardRef((e, t) => {
1034
+ const n = z(D, e.__scopeMenu);
1035
+ return /* @__PURE__ */ a.jsx(
1036
+ tt,
1037
+ {
1038
+ ...e,
1039
+ ref: t,
1040
+ trapFocus: !1,
1041
+ disableOutsidePointerEvents: !1,
1042
+ disableOutsideScroll: !1,
1043
+ onDismiss: () => n.onOpenChange(!1)
1044
+ }
1045
+ );
1046
+ }), tt = c.forwardRef(
1047
+ (e, t) => {
1048
+ const {
1049
+ __scopeMenu: n,
1050
+ loop: r = !1,
1051
+ trapFocus: o,
1052
+ onOpenAutoFocus: s,
1053
+ onCloseAutoFocus: i,
1054
+ disableOutsidePointerEvents: u,
1055
+ onEntryFocus: l,
1056
+ onEscapeKeyDown: g,
1057
+ onPointerDownOutside: p,
1058
+ onFocusOutside: d,
1059
+ onInteractOutside: h,
1060
+ onDismiss: v,
1061
+ disableOutsideScroll: x,
1062
+ ...M
1063
+ } = e, I = z(D, n), Q = we(D, n), V = ye(n), C = Yt(n), k = oo(n), [L, Y] = c.useState(null), Z = c.useRef(null), be = ge(t, Z, I.onContentChange), X = c.useRef(0), Me = c.useRef(""), rr = c.useRef(0), Oe = c.useRef(null), it = c.useRef("right"), Te = c.useRef(0), ar = x ? Nr : c.Fragment, or = x ? { as: Dr, allowPinchZoom: !0 } : void 0, sr = (m) => {
1064
+ var te, ut;
1065
+ const _ = Me.current + m, A = k().filter((K) => !K.disabled), q = document.activeElement, Fe = (te = A.find((K) => K.ref.current === q)) == null ? void 0 : te.textValue, Le = A.map((K) => K.textValue), ct = Po(Le, _, Fe), le = (ut = A.find((K) => K.textValue === ct)) == null ? void 0 : ut.ref.current;
1066
+ (function K(lt) {
1067
+ Me.current = lt, window.clearTimeout(X.current), lt !== "" && (X.current = window.setTimeout(() => K(""), 1e3));
1068
+ })(_), le && setTimeout(() => le.focus());
1069
+ };
1070
+ c.useEffect(() => () => window.clearTimeout(X.current), []), Pr();
1071
+ const ee = c.useCallback((m) => {
1072
+ var A, q;
1073
+ return it.current === ((A = Oe.current) == null ? void 0 : A.side) && Ro(m, (q = Oe.current) == null ? void 0 : q.area);
1074
+ }, []);
1075
+ return /* @__PURE__ */ a.jsx(
1076
+ lo,
1077
+ {
1078
+ scope: n,
1079
+ searchRef: Me,
1080
+ onItemEnter: c.useCallback(
1081
+ (m) => {
1082
+ ee(m) && m.preventDefault();
1083
+ },
1084
+ [ee]
1085
+ ),
1086
+ onItemLeave: c.useCallback(
1087
+ (m) => {
1088
+ var _;
1089
+ ee(m) || ((_ = Z.current) == null || _.focus(), Y(null));
1090
+ },
1091
+ [ee]
1092
+ ),
1093
+ onTriggerLeave: c.useCallback(
1094
+ (m) => {
1095
+ ee(m) && m.preventDefault();
1096
+ },
1097
+ [ee]
1098
+ ),
1099
+ pointerGraceTimerRef: rr,
1100
+ onPointerGraceIntentChange: c.useCallback((m) => {
1101
+ Oe.current = m;
1102
+ }, []),
1103
+ children: /* @__PURE__ */ a.jsx(ar, { ...or, children: /* @__PURE__ */ a.jsx(
1104
+ jr,
1105
+ {
1106
+ asChild: !0,
1107
+ trapped: o,
1108
+ onMountAutoFocus: y(s, (m) => {
1109
+ var _;
1110
+ m.preventDefault(), (_ = Z.current) == null || _.focus({ preventScroll: !0 });
1111
+ }),
1112
+ onUnmountAutoFocus: i,
1113
+ children: /* @__PURE__ */ a.jsx(
1114
+ Rr,
1115
+ {
1116
+ asChild: !0,
1117
+ disableOutsidePointerEvents: u,
1118
+ onEscapeKeyDown: g,
1119
+ onPointerDownOutside: p,
1120
+ onFocusOutside: d,
1121
+ onInteractOutside: h,
1122
+ onDismiss: v,
1123
+ children: /* @__PURE__ */ a.jsx(
1124
+ da,
1125
+ {
1126
+ asChild: !0,
1127
+ ...C,
1128
+ dir: Q.dir,
1129
+ orientation: "vertical",
1130
+ loop: r,
1131
+ currentTabStopId: L,
1132
+ onCurrentTabStopIdChange: Y,
1133
+ onEntryFocus: y(l, (m) => {
1134
+ Q.isUsingKeyboardRef.current || m.preventDefault();
1135
+ }),
1136
+ preventScrollOnEntryFocus: !0,
1137
+ children: /* @__PURE__ */ a.jsx(
1138
+ Er,
1139
+ {
1140
+ role: "menu",
1141
+ "aria-orientation": "vertical",
1142
+ "data-state": xn(I.open),
1143
+ "data-radix-menu-content": "",
1144
+ dir: Q.dir,
1145
+ ...V,
1146
+ ...M,
1147
+ ref: be,
1148
+ style: { outline: "none", ...M.style },
1149
+ onKeyDown: y(M.onKeyDown, (m) => {
1150
+ const A = m.target.closest("[data-radix-menu-content]") === m.currentTarget, q = m.ctrlKey || m.altKey || m.metaKey, Fe = m.key.length === 1;
1151
+ A && (m.key === "Tab" && m.preventDefault(), !q && Fe && sr(m.key));
1152
+ const Le = Z.current;
1153
+ if (m.target !== Le || !no.includes(m.key)) return;
1154
+ m.preventDefault();
1155
+ const le = k().filter((te) => !te.disabled).map((te) => te.ref.current);
1156
+ zt.includes(m.key) && le.reverse(), Co(le);
1157
+ }),
1158
+ onBlur: y(e.onBlur, (m) => {
1159
+ m.currentTarget.contains(m.target) || (window.clearTimeout(X.current), Me.current = "");
1160
+ }),
1161
+ onPointerMove: y(
1162
+ e.onPointerMove,
1163
+ pe((m) => {
1164
+ const _ = m.target, A = Te.current !== m.clientX;
1165
+ if (m.currentTarget.contains(_) && A) {
1166
+ const q = m.clientX > Te.current ? "right" : "left";
1167
+ it.current = q, Te.current = m.clientX;
1168
+ }
1169
+ })
1170
+ )
1171
+ }
1172
+ )
1173
+ }
1174
+ )
1175
+ }
1176
+ )
1177
+ }
1178
+ ) })
1179
+ }
1180
+ );
1181
+ }
1182
+ );
1183
+ en.displayName = D;
1184
+ var po = "MenuGroup", nt = c.forwardRef(
1185
+ (e, t) => {
1186
+ const { __scopeMenu: n, ...r } = e;
1187
+ return /* @__PURE__ */ a.jsx(ce.div, { role: "group", ...r, ref: t });
1188
+ }
1189
+ );
1190
+ nt.displayName = po;
1191
+ var mo = "MenuLabel", tn = c.forwardRef(
1192
+ (e, t) => {
1193
+ const { __scopeMenu: n, ...r } = e;
1194
+ return /* @__PURE__ */ a.jsx(ce.div, { ...r, ref: t });
1195
+ }
1196
+ );
1197
+ tn.displayName = mo;
1198
+ var _e = "MenuItem", bt = "menu.itemSelect", Ae = c.forwardRef(
1199
+ (e, t) => {
1200
+ const { disabled: n = !1, onSelect: r, ...o } = e, s = c.useRef(null), i = we(_e, e.__scopeMenu), u = et(_e, e.__scopeMenu), l = ge(t, s), g = c.useRef(!1), p = () => {
1201
+ const d = s.current;
1202
+ if (!n && d) {
1203
+ const h = new CustomEvent(bt, { bubbles: !0, cancelable: !0 });
1204
+ d.addEventListener(bt, (v) => r == null ? void 0 : r(v), { once: !0 }), Ir(d, h), h.defaultPrevented ? g.current = !1 : i.onClose();
1205
+ }
1206
+ };
1207
+ return /* @__PURE__ */ a.jsx(
1208
+ nn,
1209
+ {
1210
+ ...o,
1211
+ ref: l,
1212
+ disabled: n,
1213
+ onClick: y(e.onClick, p),
1214
+ onPointerDown: (d) => {
1215
+ var h;
1216
+ (h = e.onPointerDown) == null || h.call(e, d), g.current = !0;
1217
+ },
1218
+ onPointerUp: y(e.onPointerUp, (d) => {
1219
+ var h;
1220
+ g.current || (h = d.currentTarget) == null || h.click();
1221
+ }),
1222
+ onKeyDown: y(e.onKeyDown, (d) => {
1223
+ const h = u.searchRef.current !== "";
1224
+ n || h && d.key === " " || Ue.includes(d.key) && (d.currentTarget.click(), d.preventDefault());
1225
+ })
1226
+ }
1227
+ );
1228
+ }
1229
+ );
1230
+ Ae.displayName = _e;
1231
+ var nn = c.forwardRef(
1232
+ (e, t) => {
1233
+ const { __scopeMenu: n, disabled: r = !1, textValue: o, ...s } = e, i = et(_e, n), u = Yt(n), l = c.useRef(null), g = ge(t, l), [p, d] = c.useState(!1), [h, v] = c.useState("");
1234
+ return c.useEffect(() => {
1235
+ const x = l.current;
1236
+ x && v((x.textContent ?? "").trim());
1237
+ }, [s.children]), /* @__PURE__ */ a.jsx(
1238
+ fe.ItemSlot,
1239
+ {
1240
+ scope: n,
1241
+ disabled: r,
1242
+ textValue: o ?? h,
1243
+ children: /* @__PURE__ */ a.jsx(ha, { asChild: !0, ...u, focusable: !r, children: /* @__PURE__ */ a.jsx(
1244
+ ce.div,
1245
+ {
1246
+ role: "menuitem",
1247
+ "data-highlighted": p ? "" : void 0,
1248
+ "aria-disabled": r || void 0,
1249
+ "data-disabled": r ? "" : void 0,
1250
+ ...s,
1251
+ ref: g,
1252
+ onPointerMove: y(
1253
+ e.onPointerMove,
1254
+ pe((x) => {
1255
+ r ? i.onItemLeave(x) : (i.onItemEnter(x), x.defaultPrevented || x.currentTarget.focus({ preventScroll: !0 }));
1256
+ })
1257
+ ),
1258
+ onPointerLeave: y(
1259
+ e.onPointerLeave,
1260
+ pe((x) => i.onItemLeave(x))
1261
+ ),
1262
+ onFocus: y(e.onFocus, () => d(!0)),
1263
+ onBlur: y(e.onBlur, () => d(!1))
1264
+ }
1265
+ ) })
1266
+ }
1267
+ );
1268
+ }
1269
+ ), go = "MenuCheckboxItem", rn = c.forwardRef(
1270
+ (e, t) => {
1271
+ const { checked: n = !1, onCheckedChange: r, ...o } = e;
1272
+ return /* @__PURE__ */ a.jsx(un, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ a.jsx(
1273
+ Ae,
1274
+ {
1275
+ role: "menuitemcheckbox",
1276
+ "aria-checked": Ne(n) ? "mixed" : n,
1277
+ ...o,
1278
+ ref: t,
1279
+ "data-state": ot(n),
1280
+ onSelect: y(
1281
+ o.onSelect,
1282
+ () => r == null ? void 0 : r(Ne(n) ? !0 : !n),
1283
+ { checkForDefaultPrevented: !1 }
1284
+ )
1285
+ }
1286
+ ) });
1287
+ }
1288
+ );
1289
+ rn.displayName = go;
1290
+ var an = "MenuRadioGroup", [vo, xo] = J(
1291
+ an,
1292
+ { value: void 0, onValueChange: () => {
1293
+ } }
1294
+ ), on = c.forwardRef(
1295
+ (e, t) => {
1296
+ const { value: n, onValueChange: r, ...o } = e, s = He(r);
1297
+ return /* @__PURE__ */ a.jsx(vo, { scope: e.__scopeMenu, value: n, onValueChange: s, children: /* @__PURE__ */ a.jsx(nt, { ...o, ref: t }) });
1298
+ }
1299
+ );
1300
+ on.displayName = an;
1301
+ var sn = "MenuRadioItem", cn = c.forwardRef(
1302
+ (e, t) => {
1303
+ const { value: n, ...r } = e, o = xo(sn, e.__scopeMenu), s = n === o.value;
1304
+ return /* @__PURE__ */ a.jsx(un, { scope: e.__scopeMenu, checked: s, children: /* @__PURE__ */ a.jsx(
1305
+ Ae,
1306
+ {
1307
+ role: "menuitemradio",
1308
+ "aria-checked": s,
1309
+ ...r,
1310
+ ref: t,
1311
+ "data-state": ot(s),
1312
+ onSelect: y(
1313
+ r.onSelect,
1314
+ () => {
1315
+ var i;
1316
+ return (i = o.onValueChange) == null ? void 0 : i.call(o, n);
1317
+ },
1318
+ { checkForDefaultPrevented: !1 }
1319
+ )
1320
+ }
1321
+ ) });
1322
+ }
1323
+ );
1324
+ cn.displayName = sn;
1325
+ var rt = "MenuItemIndicator", [un, yo] = J(
1326
+ rt,
1327
+ { checked: !1 }
1328
+ ), ln = c.forwardRef(
1329
+ (e, t) => {
1330
+ const { __scopeMenu: n, forceMount: r, ...o } = e, s = yo(rt, n);
1331
+ return /* @__PURE__ */ a.jsx(
1332
+ ke,
1333
+ {
1334
+ present: r || Ne(s.checked) || s.checked === !0,
1335
+ children: /* @__PURE__ */ a.jsx(
1336
+ ce.span,
1337
+ {
1338
+ ...o,
1339
+ ref: t,
1340
+ "data-state": ot(s.checked)
1341
+ }
1342
+ )
1343
+ }
1344
+ );
1345
+ }
1346
+ );
1347
+ ln.displayName = rt;
1348
+ var wo = "MenuSeparator", dn = c.forwardRef(
1349
+ (e, t) => {
1350
+ const { __scopeMenu: n, ...r } = e;
1351
+ return /* @__PURE__ */ a.jsx(
1352
+ ce.div,
1353
+ {
1354
+ role: "separator",
1355
+ "aria-orientation": "horizontal",
1356
+ ...r,
1357
+ ref: t
1358
+ }
1359
+ );
1360
+ }
1361
+ );
1362
+ dn.displayName = wo;
1363
+ var bo = "MenuArrow", hn = c.forwardRef(
1364
+ (e, t) => {
1365
+ const { __scopeMenu: n, ...r } = e, o = ye(n);
1366
+ return /* @__PURE__ */ a.jsx(_r, { ...o, ...r, ref: t });
1367
+ }
1368
+ );
1369
+ hn.displayName = bo;
1370
+ var at = "MenuSub", [Mo, fn] = J(at), pn = (e) => {
1371
+ const { __scopeMenu: t, children: n, open: r = !1, onOpenChange: o } = e, s = z(at, t), i = ye(t), [u, l] = c.useState(null), [g, p] = c.useState(null), d = He(o);
1372
+ return c.useEffect(() => (s.open === !1 && d(!1), () => d(!1)), [s.open, d]), /* @__PURE__ */ a.jsx(Dt, { ...i, children: /* @__PURE__ */ a.jsx(
1373
+ Xt,
1374
+ {
1375
+ scope: t,
1376
+ open: r,
1377
+ onOpenChange: d,
1378
+ content: g,
1379
+ onContentChange: p,
1380
+ children: /* @__PURE__ */ a.jsx(
1381
+ Mo,
1382
+ {
1383
+ scope: t,
1384
+ contentId: Ee(),
1385
+ triggerId: Ee(),
1386
+ trigger: u,
1387
+ onTriggerChange: l,
1388
+ children: n
490
1389
  }
491
1390
  )
492
- )).flatMap((a) => a ?? []));
493
- this.plugins = e.plugins ?? [], this.navigation = e.navigation, this.navigationPlugins = this.plugins.filter(Ne), this.authentication = e.authentication, this.meta = e.metadata, this.page = e.page, this.state = jt;
1391
+ }
1392
+ ) });
1393
+ };
1394
+ pn.displayName = at;
1395
+ var de = "MenuSubTrigger", mn = c.forwardRef(
1396
+ (e, t) => {
1397
+ const n = z(de, e.__scopeMenu), r = we(de, e.__scopeMenu), o = fn(de, e.__scopeMenu), s = et(de, e.__scopeMenu), i = c.useRef(null), { pointerGraceTimerRef: u, onPointerGraceIntentChange: l } = s, g = { __scopeMenu: e.__scopeMenu }, p = c.useCallback(() => {
1398
+ i.current && window.clearTimeout(i.current), i.current = null;
1399
+ }, []);
1400
+ return c.useEffect(() => p, [p]), c.useEffect(() => {
1401
+ const d = u.current;
1402
+ return () => {
1403
+ window.clearTimeout(d), l(null);
1404
+ };
1405
+ }, [u, l]), /* @__PURE__ */ a.jsx(Je, { asChild: !0, ...g, children: /* @__PURE__ */ a.jsx(
1406
+ nn,
1407
+ {
1408
+ id: o.triggerId,
1409
+ "aria-haspopup": "menu",
1410
+ "aria-expanded": n.open,
1411
+ "aria-controls": o.contentId,
1412
+ "data-state": xn(n.open),
1413
+ ...e,
1414
+ ref: Nt(t, o.onTriggerChange),
1415
+ onClick: (d) => {
1416
+ var h;
1417
+ (h = e.onClick) == null || h.call(e, d), !(e.disabled || d.defaultPrevented) && (d.currentTarget.focus(), n.open || n.onOpenChange(!0));
1418
+ },
1419
+ onPointerMove: y(
1420
+ e.onPointerMove,
1421
+ pe((d) => {
1422
+ s.onItemEnter(d), !d.defaultPrevented && !e.disabled && !n.open && !i.current && (s.onPointerGraceIntentChange(null), i.current = window.setTimeout(() => {
1423
+ n.onOpenChange(!0), p();
1424
+ }, 100));
1425
+ })
1426
+ ),
1427
+ onPointerLeave: y(
1428
+ e.onPointerLeave,
1429
+ pe((d) => {
1430
+ var v, x;
1431
+ p();
1432
+ const h = (v = n.content) == null ? void 0 : v.getBoundingClientRect();
1433
+ if (h) {
1434
+ const M = (x = n.content) == null ? void 0 : x.dataset.side, I = M === "right", Q = I ? -5 : 5, V = h[I ? "left" : "right"], C = h[I ? "right" : "left"];
1435
+ s.onPointerGraceIntentChange({
1436
+ area: [
1437
+ // Apply a bleed on clientX to ensure that our exit point is
1438
+ // consistently within polygon bounds
1439
+ { x: d.clientX + Q, y: d.clientY },
1440
+ { x: V, y: h.top },
1441
+ { x: C, y: h.top },
1442
+ { x: C, y: h.bottom },
1443
+ { x: V, y: h.bottom }
1444
+ ],
1445
+ side: M
1446
+ }), window.clearTimeout(u.current), u.current = window.setTimeout(
1447
+ () => s.onPointerGraceIntentChange(null),
1448
+ 300
1449
+ );
1450
+ } else {
1451
+ if (s.onTriggerLeave(d), d.defaultPrevented) return;
1452
+ s.onPointerGraceIntentChange(null);
1453
+ }
1454
+ })
1455
+ ),
1456
+ onKeyDown: y(e.onKeyDown, (d) => {
1457
+ var v;
1458
+ const h = s.searchRef.current !== "";
1459
+ e.disabled || h && d.key === " " || ro[r.dir].includes(d.key) && (n.onOpenChange(!0), (v = n.content) == null || v.focus(), d.preventDefault());
1460
+ })
1461
+ }
1462
+ ) });
494
1463
  }
495
- async signRequest(e) {
496
- if (!this.authentication)
497
- throw new Error("No authentication provider configured");
498
- const s = await this.authentication.getAccessToken();
499
- return e.headers.set("Authorization", `Bearer ${s}`), e;
1464
+ );
1465
+ mn.displayName = de;
1466
+ var gn = "MenuSubContent", vn = c.forwardRef(
1467
+ (e, t) => {
1468
+ const n = Jt(D, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = z(D, e.__scopeMenu), i = we(D, e.__scopeMenu), u = fn(gn, e.__scopeMenu), l = c.useRef(null), g = ge(t, l);
1469
+ return /* @__PURE__ */ a.jsx(fe.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(ke, { present: r || s.open, children: /* @__PURE__ */ a.jsx(fe.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(
1470
+ tt,
1471
+ {
1472
+ id: u.contentId,
1473
+ "aria-labelledby": u.triggerId,
1474
+ ...o,
1475
+ ref: g,
1476
+ align: "start",
1477
+ side: i.dir === "rtl" ? "left" : "right",
1478
+ disableOutsidePointerEvents: !1,
1479
+ disableOutsideScroll: !1,
1480
+ trapFocus: !1,
1481
+ onOpenAutoFocus: (p) => {
1482
+ var d;
1483
+ i.isUsingKeyboardRef.current && ((d = l.current) == null || d.focus()), p.preventDefault();
1484
+ },
1485
+ onCloseAutoFocus: (p) => p.preventDefault(),
1486
+ onFocusOutside: y(e.onFocusOutside, (p) => {
1487
+ p.target !== u.trigger && s.onOpenChange(!1);
1488
+ }),
1489
+ onEscapeKeyDown: y(e.onEscapeKeyDown, (p) => {
1490
+ i.onClose(), p.preventDefault();
1491
+ }),
1492
+ onKeyDown: y(e.onKeyDown, (p) => {
1493
+ var v;
1494
+ const d = p.currentTarget.contains(p.target), h = ao[i.dir].includes(p.key);
1495
+ d && h && (s.onOpenChange(!1), (v = u.trigger) == null || v.focus(), p.preventDefault());
1496
+ })
1497
+ }
1498
+ ) }) }) });
500
1499
  }
1500
+ );
1501
+ vn.displayName = gn;
1502
+ function xn(e) {
1503
+ return e ? "open" : "closed";
501
1504
  }
502
- /**
503
- * @license lucide-react v0.378.0 - ISC
504
- *
505
- * This source code is licensed under the ISC license.
506
- * See the LICENSE file in the root directory of this source tree.
507
- */
508
- const Oe = z("ChevronRight", [
509
- ["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]
510
- ]);
511
- /**
512
- * @license lucide-react v0.378.0 - ISC
513
- *
514
- * This source code is licensed under the ISC license.
515
- * See the LICENSE file in the root directory of this source tree.
516
- */
517
- const wt = z("ExternalLink", [
518
- ["path", { d: "M15 3h6v6", key: "1q9fwt" }],
519
- ["path", { d: "M10 14 21 3", key: "gplh6r" }],
520
- ["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
521
- ]);
522
- /**
523
- * @license lucide-react v0.378.0 - ISC
524
- *
525
- * This source code is licensed under the ISC license.
526
- * See the LICENSE file in the root directory of this source tree.
527
- */
528
- const Nt = z("MoonStar", [
529
- ["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9", key: "4ay0iu" }],
530
- ["path", { d: "M20 3v4", key: "1olli1" }],
531
- ["path", { d: "M22 5h-4", key: "1gvqau" }]
532
- ]);
533
- /**
534
- * @license lucide-react v0.378.0 - ISC
535
- *
536
- * This source code is licensed under the ISC license.
537
- * See the LICENSE file in the root directory of this source tree.
538
- */
539
- const kt = z("Sun", [
540
- ["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
541
- ["path", { d: "M12 2v2", key: "tus03m" }],
542
- ["path", { d: "M12 20v2", key: "1lh1kg" }],
543
- ["path", { d: "m4.93 4.93 1.41 1.41", key: "149t6j" }],
544
- ["path", { d: "m17.66 17.66 1.41 1.41", key: "ptbguv" }],
545
- ["path", { d: "M2 12h2", key: "1t8f8n" }],
546
- ["path", { d: "M20 12h2", key: "1q8mjw" }],
547
- ["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
548
- ["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
549
- ]), Ot = () => {
550
- const { navigation: t } = U();
551
- return /* @__PURE__ */ n.jsx("nav", { className: "border-b border-border text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ n.jsx("ul", { className: "flex flex-row items-center gap-8", children: t.map((e) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx(
552
- B,
1505
+ function Ne(e) {
1506
+ return e === "indeterminate";
1507
+ }
1508
+ function ot(e) {
1509
+ return Ne(e) ? "indeterminate" : e ? "checked" : "unchecked";
1510
+ }
1511
+ function Co(e) {
1512
+ const t = document.activeElement;
1513
+ for (const n of e)
1514
+ if (n === t || (n.focus(), document.activeElement !== t)) return;
1515
+ }
1516
+ function So(e, t) {
1517
+ return e.map((n, r) => e[(t + r) % e.length]);
1518
+ }
1519
+ function Po(e, t, n) {
1520
+ const o = t.length > 1 && Array.from(t).every((g) => g === t[0]) ? t[0] : t, s = n ? e.indexOf(n) : -1;
1521
+ let i = So(e, Math.max(s, 0));
1522
+ o.length === 1 && (i = i.filter((g) => g !== n));
1523
+ const l = i.find(
1524
+ (g) => g.toLowerCase().startsWith(o.toLowerCase())
1525
+ );
1526
+ return l !== n ? l : void 0;
1527
+ }
1528
+ function jo(e, t) {
1529
+ const { x: n, y: r } = e;
1530
+ let o = !1;
1531
+ for (let s = 0, i = t.length - 1; s < t.length; i = s++) {
1532
+ const u = t[s].x, l = t[s].y, g = t[i].x, p = t[i].y;
1533
+ l > r != p > r && n < (g - u) * (r - l) / (p - l) + u && (o = !o);
1534
+ }
1535
+ return o;
1536
+ }
1537
+ function Ro(e, t) {
1538
+ if (!t) return !1;
1539
+ const n = { x: e.clientX, y: e.clientY };
1540
+ return jo(n, t);
1541
+ }
1542
+ function pe(e) {
1543
+ return (t) => t.pointerType === "mouse" ? e(t) : void 0;
1544
+ }
1545
+ var Eo = Wt, _o = Je, No = Zt, Do = en, Io = nt, ko = tn, Ao = Ae, Oo = rn, To = on, Fo = cn, Lo = ln, Ko = dn, $o = hn, Bo = pn, Qo = mn, qo = vn, st = "DropdownMenu", [Uo, Gs] = Et(
1546
+ st,
1547
+ [Vt]
1548
+ ), P = Vt(), [Go, yn] = Uo(st), wn = (e) => {
1549
+ const {
1550
+ __scopeDropdownMenu: t,
1551
+ children: n,
1552
+ dir: r,
1553
+ open: o,
1554
+ defaultOpen: s,
1555
+ onOpenChange: i,
1556
+ modal: u = !0
1557
+ } = e, l = P(t), g = c.useRef(null), [p = !1, d] = It({
1558
+ prop: o,
1559
+ defaultProp: s,
1560
+ onChange: i
1561
+ });
1562
+ return /* @__PURE__ */ a.jsx(
1563
+ Go,
1564
+ {
1565
+ scope: t,
1566
+ triggerId: Ee(),
1567
+ triggerRef: g,
1568
+ contentId: Ee(),
1569
+ open: p,
1570
+ onOpenChange: d,
1571
+ onOpenToggle: c.useCallback(() => d((h) => !h), [d]),
1572
+ modal: u,
1573
+ children: /* @__PURE__ */ a.jsx(Eo, { ...l, open: p, onOpenChange: d, dir: r, modal: u, children: n })
1574
+ }
1575
+ );
1576
+ };
1577
+ wn.displayName = st;
1578
+ var bn = "DropdownMenuTrigger", Mn = c.forwardRef(
1579
+ (e, t) => {
1580
+ const { __scopeDropdownMenu: n, disabled: r = !1, ...o } = e, s = yn(bn, n), i = P(n);
1581
+ return /* @__PURE__ */ a.jsx(_o, { asChild: !0, ...i, children: /* @__PURE__ */ a.jsx(
1582
+ ce.button,
1583
+ {
1584
+ type: "button",
1585
+ id: s.triggerId,
1586
+ "aria-haspopup": "menu",
1587
+ "aria-expanded": s.open,
1588
+ "aria-controls": s.open ? s.contentId : void 0,
1589
+ "data-state": s.open ? "open" : "closed",
1590
+ "data-disabled": r ? "" : void 0,
1591
+ disabled: r,
1592
+ ...o,
1593
+ ref: Nt(t, s.triggerRef),
1594
+ onPointerDown: y(e.onPointerDown, (u) => {
1595
+ !r && u.button === 0 && u.ctrlKey === !1 && (s.onOpenToggle(), s.open || u.preventDefault());
1596
+ }),
1597
+ onKeyDown: y(e.onKeyDown, (u) => {
1598
+ r || (["Enter", " "].includes(u.key) && s.onOpenToggle(), u.key === "ArrowDown" && s.onOpenChange(!0), ["Enter", " ", "ArrowDown"].includes(u.key) && u.preventDefault());
1599
+ })
1600
+ }
1601
+ ) });
1602
+ }
1603
+ );
1604
+ Mn.displayName = bn;
1605
+ var Ho = "DropdownMenuPortal", Cn = (e) => {
1606
+ const { __scopeDropdownMenu: t, ...n } = e, r = P(t);
1607
+ return /* @__PURE__ */ a.jsx(No, { ...r, ...n });
1608
+ };
1609
+ Cn.displayName = Ho;
1610
+ var Sn = "DropdownMenuContent", Pn = c.forwardRef(
1611
+ (e, t) => {
1612
+ const { __scopeDropdownMenu: n, ...r } = e, o = yn(Sn, n), s = P(n), i = c.useRef(!1);
1613
+ return /* @__PURE__ */ a.jsx(
1614
+ Do,
1615
+ {
1616
+ id: o.contentId,
1617
+ "aria-labelledby": o.triggerId,
1618
+ ...s,
1619
+ ...r,
1620
+ ref: t,
1621
+ onCloseAutoFocus: y(e.onCloseAutoFocus, (u) => {
1622
+ var l;
1623
+ i.current || (l = o.triggerRef.current) == null || l.focus(), i.current = !1, u.preventDefault();
1624
+ }),
1625
+ onInteractOutside: y(e.onInteractOutside, (u) => {
1626
+ const l = u.detail.originalEvent, g = l.button === 0 && l.ctrlKey === !0, p = l.button === 2 || g;
1627
+ (!o.modal || p) && (i.current = !0);
1628
+ }),
1629
+ style: {
1630
+ ...e.style,
1631
+ "--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
1632
+ "--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
1633
+ "--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
1634
+ "--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
1635
+ "--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
1636
+ }
1637
+ }
1638
+ );
1639
+ }
1640
+ );
1641
+ Pn.displayName = Sn;
1642
+ var zo = "DropdownMenuGroup", Vo = c.forwardRef(
1643
+ (e, t) => {
1644
+ const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
1645
+ return /* @__PURE__ */ a.jsx(Io, { ...o, ...r, ref: t });
1646
+ }
1647
+ );
1648
+ Vo.displayName = zo;
1649
+ var Yo = "DropdownMenuLabel", jn = c.forwardRef(
1650
+ (e, t) => {
1651
+ const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
1652
+ return /* @__PURE__ */ a.jsx(ko, { ...o, ...r, ref: t });
1653
+ }
1654
+ );
1655
+ jn.displayName = Yo;
1656
+ var Xo = "DropdownMenuItem", Rn = c.forwardRef(
1657
+ (e, t) => {
1658
+ const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
1659
+ return /* @__PURE__ */ a.jsx(Ao, { ...o, ...r, ref: t });
1660
+ }
1661
+ );
1662
+ Rn.displayName = Xo;
1663
+ var Wo = "DropdownMenuCheckboxItem", En = c.forwardRef((e, t) => {
1664
+ const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
1665
+ return /* @__PURE__ */ a.jsx(Oo, { ...o, ...r, ref: t });
1666
+ });
1667
+ En.displayName = Wo;
1668
+ var Jo = "DropdownMenuRadioGroup", Zo = c.forwardRef((e, t) => {
1669
+ const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
1670
+ return /* @__PURE__ */ a.jsx(To, { ...o, ...r, ref: t });
1671
+ });
1672
+ Zo.displayName = Jo;
1673
+ var es = "DropdownMenuRadioItem", _n = c.forwardRef((e, t) => {
1674
+ const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
1675
+ return /* @__PURE__ */ a.jsx(Fo, { ...o, ...r, ref: t });
1676
+ });
1677
+ _n.displayName = es;
1678
+ var ts = "DropdownMenuItemIndicator", Nn = c.forwardRef((e, t) => {
1679
+ const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
1680
+ return /* @__PURE__ */ a.jsx(Lo, { ...o, ...r, ref: t });
1681
+ });
1682
+ Nn.displayName = ts;
1683
+ var ns = "DropdownMenuSeparator", Dn = c.forwardRef((e, t) => {
1684
+ const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
1685
+ return /* @__PURE__ */ a.jsx(Ko, { ...o, ...r, ref: t });
1686
+ });
1687
+ Dn.displayName = ns;
1688
+ var rs = "DropdownMenuArrow", as = c.forwardRef(
1689
+ (e, t) => {
1690
+ const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
1691
+ return /* @__PURE__ */ a.jsx($o, { ...o, ...r, ref: t });
1692
+ }
1693
+ );
1694
+ as.displayName = rs;
1695
+ var os = (e) => {
1696
+ const { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: o, defaultOpen: s } = e, i = P(t), [u = !1, l] = It({
1697
+ prop: r,
1698
+ defaultProp: s,
1699
+ onChange: o
1700
+ });
1701
+ return /* @__PURE__ */ a.jsx(Bo, { ...i, open: u, onOpenChange: l, children: n });
1702
+ }, ss = "DropdownMenuSubTrigger", In = c.forwardRef((e, t) => {
1703
+ const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
1704
+ return /* @__PURE__ */ a.jsx(Qo, { ...o, ...r, ref: t });
1705
+ });
1706
+ In.displayName = ss;
1707
+ var is = "DropdownMenuSubContent", kn = c.forwardRef((e, t) => {
1708
+ const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
1709
+ return /* @__PURE__ */ a.jsx(
1710
+ qo,
553
1711
  {
554
- className: ({ isActive: s }) => Be(
1712
+ ...o,
1713
+ ...r,
1714
+ ref: t,
1715
+ style: {
1716
+ ...e.style,
1717
+ "--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
1718
+ "--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
1719
+ "--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
1720
+ "--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
1721
+ "--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
1722
+ }
1723
+ }
1724
+ );
1725
+ });
1726
+ kn.displayName = is;
1727
+ var cs = wn, us = Mn, An = Cn, On = Pn, Tn = jn, Fn = Rn, Ln = En, Kn = _n, $n = Nn, Bn = Dn, ls = os, Qn = In, qn = kn;
1728
+ const ds = cs, hs = us, fs = An, ps = ls, Un = c.forwardRef(({ className: e, inset: t, children: n, ...r }, o) => /* @__PURE__ */ a.jsxs(
1729
+ Qn,
1730
+ {
1731
+ ref: o,
1732
+ className: b(
1733
+ "flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",
1734
+ t && "pl-8",
1735
+ e
1736
+ ),
1737
+ ...r,
1738
+ children: [
1739
+ n,
1740
+ /* @__PURE__ */ a.jsx(Qt, { className: "ml-auto h-4 w-4" })
1741
+ ]
1742
+ }
1743
+ ));
1744
+ Un.displayName = Qn.displayName;
1745
+ const Gn = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
1746
+ qn,
1747
+ {
1748
+ ref: n,
1749
+ className: b(
1750
+ "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
1751
+ e
1752
+ ),
1753
+ ...t
1754
+ }
1755
+ ));
1756
+ Gn.displayName = qn.displayName;
1757
+ const Hn = c.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ a.jsx(An, { children: /* @__PURE__ */ a.jsx(
1758
+ On,
1759
+ {
1760
+ ref: r,
1761
+ sideOffset: t,
1762
+ className: b(
1763
+ "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
1764
+ "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
1765
+ e
1766
+ ),
1767
+ ...n
1768
+ }
1769
+ ) }));
1770
+ Hn.displayName = On.displayName;
1771
+ const zn = c.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ a.jsx(
1772
+ Fn,
1773
+ {
1774
+ ref: r,
1775
+ className: b(
1776
+ "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1777
+ t && "pl-8",
1778
+ e
1779
+ ),
1780
+ ...n
1781
+ }
1782
+ ));
1783
+ zn.displayName = Fn.displayName;
1784
+ const ms = c.forwardRef(({ className: e, children: t, checked: n, ...r }, o) => /* @__PURE__ */ a.jsxs(
1785
+ Ln,
1786
+ {
1787
+ ref: o,
1788
+ className: b(
1789
+ "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1790
+ e
1791
+ ),
1792
+ checked: n,
1793
+ ...r,
1794
+ children: [
1795
+ /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx($n, { children: /* @__PURE__ */ a.jsx(Tr, { className: "h-4 w-4" }) }) }),
1796
+ t
1797
+ ]
1798
+ }
1799
+ ));
1800
+ ms.displayName = Ln.displayName;
1801
+ const gs = c.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ a.jsxs(
1802
+ Kn,
1803
+ {
1804
+ ref: r,
1805
+ className: b(
1806
+ "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1807
+ e
1808
+ ),
1809
+ ...n,
1810
+ children: [
1811
+ /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx($n, { children: /* @__PURE__ */ a.jsx(pa, { className: "h-4 w-4 fill-current" }) }) }),
1812
+ t
1813
+ ]
1814
+ }
1815
+ ));
1816
+ gs.displayName = Kn.displayName;
1817
+ const Vn = c.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ a.jsx(
1818
+ Tn,
1819
+ {
1820
+ ref: r,
1821
+ className: b(
1822
+ "px-2 py-1.5 text-sm font-semibold",
1823
+ t && "pl-8",
1824
+ e
1825
+ ),
1826
+ ...n
1827
+ }
1828
+ ));
1829
+ Vn.displayName = Tn.displayName;
1830
+ const Yn = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
1831
+ Bn,
1832
+ {
1833
+ ref: n,
1834
+ className: b("-mx-1 my-1 h-px bg-muted", e),
1835
+ ...t
1836
+ }
1837
+ ));
1838
+ Yn.displayName = Bn.displayName;
1839
+ const vs = () => {
1840
+ const e = Ie(), [t, n] = ie(!1), r = Ot(() => n(!1), []);
1841
+ W(() => {
1842
+ if (t)
1843
+ return;
1844
+ function s(i) {
1845
+ i.key === "k" && (i.metaKey || i.ctrlKey) && (i.preventDefault(), n(!0));
1846
+ }
1847
+ return window.addEventListener("keydown", s), () => {
1848
+ window.removeEventListener("keydown", s);
1849
+ };
1850
+ }, [t, n]);
1851
+ const o = e.plugins.find(Va);
1852
+ return o ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1853
+ /* @__PURE__ */ a.jsxs(
1854
+ "button",
1855
+ {
1856
+ type: "button",
1857
+ onClick: () => n(!0),
1858
+ 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-40 sm:w-72",
1859
+ children: [
1860
+ /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-2 flex-grow", children: [
1861
+ /* @__PURE__ */ a.jsx(va, { size: 14 }),
1862
+ "Search"
1863
+ ] }),
1864
+ /* @__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" })
1865
+ ]
1866
+ }
1867
+ ),
1868
+ /* @__PURE__ */ a.jsx(Tt, { fallback: null, children: o.renderSearch({
1869
+ isOpen: t,
1870
+ onClose: r
1871
+ }) })
1872
+ ] }) : null;
1873
+ }, xs = () => {
1874
+ const { topNavigation: e } = Ie();
1875
+ return e.length <= 1 ? null : /* @__PURE__ */ a.jsx("nav", { className: "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.map((t) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
1876
+ je,
1877
+ {
1878
+ className: ({ isActive: n }) => Fr(
555
1879
  "block py-3.5 font-medium -mb-px border-b-2",
556
- s ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
1880
+ n ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
557
1881
  ),
558
- to: e.path,
559
- children: e.label
1882
+ to: t.id,
1883
+ children: t.label
560
1884
  }
561
- ) }, e.label)) }) });
562
- }, Ce = Pe(function() {
563
- const [e, s] = Ve(), { isAuthenticated: a, profile: r, isAuthEnabled: o, login: l, logout: h } = Ue(), { page: d } = U(), b = e ? Nt : kt;
564
- return /* @__PURE__ */ n.jsx("header", { className: "fixed top-0 w-full z-10 bg-background/80 backdrop-blur", children: /* @__PURE__ */ n.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
565
- /* @__PURE__ */ n.jsxs("div", { className: "grid grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center border-b border-border px-12 h-[--top-header-height]", children: [
566
- /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-3.5", children: [
567
- (d == null ? void 0 : d.logo) && /* @__PURE__ */ n.jsx("img", { src: d.logo, alt: d.pageTitle, className: "h-10" }),
568
- /* @__PURE__ */ n.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: d == null ? void 0 : d.pageTitle })
569
- ] }),
570
- /* @__PURE__ */ n.jsxs("div", { className: "grid grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
571
- /* @__PURE__ */ n.jsx("div", { className: "w-full max-w-prose" }),
572
- /* @__PURE__ */ n.jsxs("div", { className: "items-center justify-self-end text-sm hidden lg:flex", children: [
573
- o && /* @__PURE__ */ n.jsx(n.Fragment, { children: a ? /* @__PURE__ */ n.jsxs(
574
- "button",
1885
+ ) }, t.label)) }) });
1886
+ }, Xn = ({ item: e }) => e.children ? /* @__PURE__ */ a.jsxs(ps, { children: [
1887
+ /* @__PURE__ */ a.jsx(Un, { children: e.label }),
1888
+ /* @__PURE__ */ a.jsx(fs, { children: /* @__PURE__ */ a.jsx(Gn, { children: e.children.map((t, n) => (
1889
+ // eslint-disable-next-line react/no-array-index-key
1890
+ /* @__PURE__ */ a.jsx(Xn, { item: t }, n)
1891
+ )) }) })
1892
+ ] }, e.label) : /* @__PURE__ */ a.jsx(Re, { to: e.path ?? "", children: /* @__PURE__ */ a.jsx(zn, { children: e.label }, e.label) }), Wn = Ft(function() {
1893
+ const [t, n] = Lr(), { isAuthenticated: r, profile: o, isAuthEnabled: s } = Or(), { pathname: i } = De(), u = Ie(), { page: l, plugins: g } = u, p = g.filter((h) => Ha(h)).flatMap((h) => h.getProfileMenuItems(u)).map((h) => /* @__PURE__ */ a.jsx(Xn, { item: h }, h.label)), d = t ? ga : xa;
1894
+ return /* @__PURE__ */ a.jsx("header", { className: "fixed top-0 w-full z-10 bg-background/80 backdrop-blur", children: /* @__PURE__ */ a.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
1895
+ /* @__PURE__ */ a.jsxs("div", { className: "grid grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center border-b px-12 h-[--top-header-height]", children: [
1896
+ /* @__PURE__ */ a.jsx("div", { className: "flex", children: /* @__PURE__ */ a.jsx(Re, { to: "/", children: /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-3.5", children: [
1897
+ (l == null ? void 0 : l.logo) && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1898
+ /* @__PURE__ */ a.jsx(
1899
+ "img",
575
1900
  {
576
- className: "cursor-pointer hover:bg-secondary p-1 px-2 mx-2 rounded text-nowrap",
577
- onClick: h,
578
- children: [
579
- "Logout ",
580
- r != null && r.email ? `(${r.email})` : null
581
- ]
1901
+ src: l.logo.src.light,
1902
+ alt: l.logo.alt ?? l.pageTitle,
1903
+ style: { width: l.logo.width },
1904
+ className: b("h-10", t && "hidden"),
1905
+ loading: "lazy"
582
1906
  }
583
- ) : /* @__PURE__ */ n.jsx(
584
- "button",
1907
+ ),
1908
+ /* @__PURE__ */ a.jsx(
1909
+ "img",
585
1910
  {
586
- className: "cursor-pointer hover:bg-secondary p-1 px-2 mx-2 rounded",
587
- onClick: l,
1911
+ src: l.logo.src.dark,
1912
+ alt: l.logo.alt ?? l.pageTitle,
1913
+ style: { width: l.logo.width },
1914
+ className: b("h-10", !t && "hidden"),
1915
+ loading: "lazy"
1916
+ }
1917
+ )
1918
+ ] }),
1919
+ /* @__PURE__ */ a.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: l == null ? void 0 : l.pageTitle })
1920
+ ] }) }) }),
1921
+ /* @__PURE__ */ a.jsxs("div", { className: "grid grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
1922
+ /* @__PURE__ */ a.jsx("div", { className: "w-full justify-center flex", children: /* @__PURE__ */ a.jsx(vs, {}) }),
1923
+ /* @__PURE__ */ a.jsxs("div", { className: "items-center justify-self-end text-sm hidden lg:flex gap-2", children: [
1924
+ /* @__PURE__ */ a.jsx(se, { name: "head-navigation-start" }),
1925
+ s && !r ? /* @__PURE__ */ a.jsx(Qe, { variant: "ghost", asChild: !0, children: /* @__PURE__ */ a.jsx(
1926
+ Re,
1927
+ {
1928
+ to: {
1929
+ pathname: "/signin",
1930
+ search: `?redirect=${encodeURIComponent(i)}`
1931
+ },
588
1932
  children: "Login"
589
1933
  }
590
- ) }),
591
- /* @__PURE__ */ n.jsx(
1934
+ ) }) : p.length > 0 && /* @__PURE__ */ a.jsxs(ds, { children: [
1935
+ /* @__PURE__ */ a.jsx(hs, { asChild: !0, children: /* @__PURE__ */ a.jsx(Qe, { variant: "ghost", children: o != null && o.email ? `${o.email}` : "My Account" }) }),
1936
+ /* @__PURE__ */ a.jsxs(Hn, { className: "w-56", children: [
1937
+ /* @__PURE__ */ a.jsx(Vn, { children: "My Account" }),
1938
+ /* @__PURE__ */ a.jsx(Yn, {}),
1939
+ p
1940
+ ] })
1941
+ ] }),
1942
+ /* @__PURE__ */ a.jsx(
592
1943
  "button",
593
1944
  {
1945
+ type: "button",
1946
+ "aria-label": t ? "Switch to light mode" : "Switch to dark mode",
594
1947
  className: "cursor-pointer hover:bg-secondary p-2.5 -m-2.5 rounded-full",
595
- onClick: s,
596
- children: /* @__PURE__ */ n.jsx(b, { size: 18 })
1948
+ onClick: n,
1949
+ children: /* @__PURE__ */ a.jsx(d, { size: 18 })
597
1950
  }
598
- )
1951
+ ),
1952
+ /* @__PURE__ */ a.jsx(se, { name: "head-navigation-end" })
599
1953
  ] })
600
1954
  ] })
601
1955
  ] }),
602
- /* @__PURE__ */ n.jsx(Ot, {})
1956
+ /* @__PURE__ */ a.jsx(xs, {})
603
1957
  ] }) });
604
- }), Me = {
605
- Header: Ce
606
- }, Ct = lt(Me), Mt = Ct.Provider, At = () => {
607
- const t = D(), { setActiveAnchor: e } = W();
608
- I(() => {
609
- if (!t.hash) return;
610
- const s = t.hash.split("/")[0].slice(1), a = document.getElementById(decodeURIComponent(s));
611
- if (a) {
612
- requestAnimationFrame(() => {
613
- a.scrollIntoView(), requestIdleCallback(() => e(s));
614
- });
615
- return;
616
- }
617
- const r = new MutationObserver((o, l) => {
618
- const h = document.getElementById(decodeURIComponent(s));
619
- h && (h.scrollIntoView(), requestIdleCallback(() => e(s)), l.disconnect());
620
- });
621
- return r.observe(document.body, { childList: !0, subtree: !0 }), () => r.disconnect();
622
- }, [t.hash, e]);
623
- }, Qt = () => {
624
- const t = D(), e = K(t.pathname);
625
- I(() => {
626
- e.current !== t.pathname && (window.scrollTo(0, 0), e.current = t.pathname);
627
- }, [t.pathname]);
628
- }, Ae = ({
629
- item: t,
630
- defaultOpen: e,
631
- path: s
1958
+ }), Jn = {
1959
+ Header: Wn
1960
+ }, ys = At(Jn), ws = ys.Provider, bs = (e) => {
1961
+ const [t, n] = ie(!1);
1962
+ W(() => {
1963
+ const s = localStorage.getItem("theme"), i = window.matchMedia("(prefers-color-scheme: dark)"), u = s === "dark" || !s && i.matches;
1964
+ n(u);
1965
+ }, [t]);
1966
+ const r = Ot(() => {
1967
+ const s = !t;
1968
+ document.documentElement.classList.toggle("dark", s), localStorage.setItem("theme", s ? "dark" : "light"), n(s);
1969
+ }, [t]), o = [t, r];
1970
+ return /* @__PURE__ */ a.jsx(Kr.Provider, { value: o, ...e });
1971
+ }, Ms = ({
1972
+ children: e,
1973
+ context: t
1974
+ }) => {
1975
+ const n = gr();
1976
+ return ia({
1977
+ queryFn: async () => (await t.initialize({ navigate: n }), !0),
1978
+ queryKey: ["zudoku-initialize"]
1979
+ }), /* @__PURE__ */ a.jsx(ca.Provider, { value: t, children: e });
1980
+ }, Cs = ({
1981
+ children: e,
1982
+ ...t
1983
+ }) => {
1984
+ var d, h;
1985
+ const n = Ke(
1986
+ () => ({ ...Jn, ...t.overrides }),
1987
+ [t.overrides]
1988
+ ), r = Ke(() => {
1989
+ var x;
1990
+ return {
1991
+ ...(t.plugins ?? []).filter(Wa).flatMap(
1992
+ (M) => M.getMdxComponents ? [M.getMdxComponents()] : []
1993
+ ).reduce((M, I) => ({ ...M, ...I }), {}),
1994
+ ...$r,
1995
+ ...(x = t.mdx) == null ? void 0 : x.components
1996
+ };
1997
+ }, [(d = t.mdx) == null ? void 0 : d.components, t.plugins]), { stagger: o } = zr(qe), [s, i] = ie(!1), u = Ke(
1998
+ () => s ? { stagger: !0 } : { stagger: o },
1999
+ [o, s]
2000
+ ), l = vr();
2001
+ W(() => {
2002
+ s || i(!0);
2003
+ }, [s, l.location]);
2004
+ const [g] = ie(() => new Za(t)), p = (h = t.plugins) == null ? void 0 : h.filter(Xa).map((v, x) => {
2005
+ var M;
2006
+ return /* @__PURE__ */ a.jsx(Vr, { children: (M = v.getHead) == null ? void 0 : M.call(v) }, x);
2007
+ });
2008
+ return /* @__PURE__ */ a.jsxs(ua, { client: Ht, children: [
2009
+ /* @__PURE__ */ a.jsx(Ge, { children: p }),
2010
+ /* @__PURE__ */ a.jsx(qe.Provider, { value: u, children: /* @__PURE__ */ a.jsx(Ms, { context: g, children: /* @__PURE__ */ a.jsx(ur, { components: r, children: /* @__PURE__ */ a.jsx(bs, { children: /* @__PURE__ */ a.jsx(ws, { value: n, children: /* @__PURE__ */ a.jsx(yr, { slotlets: t.slotlets, children: /* @__PURE__ */ a.jsx(Br, { children: e ?? /* @__PURE__ */ a.jsx(jt, {}) }) }) }) }) }) }) })
2011
+ ] });
2012
+ }, Ss = Ft(Cs), Zn = (e) => /* @__PURE__ */ a.jsx(Ua, { FallbackComponent: eo, children: /* @__PURE__ */ a.jsx(Ss, { ...e }) });
2013
+ Zn.displayName = "DevPortal";
2014
+ const Ps = ({
2015
+ category: e,
2016
+ level: t
632
2017
  }) => {
633
- const [a, r] = ct(e), o = D(), l = K(o.pathname);
634
- return I(() => {
635
- !a && l.current !== o.pathname && r(X(t, o.pathname, s)), l.current = o.pathname;
636
- }, [a, t, s, o.pathname]), [a, r];
637
- }, R = $e(
2018
+ var h;
2019
+ const n = $t(), r = lr(e), [o, s] = ie(!1), i = e.collapsible ?? !0, u = e.collapsed ?? !0, l = !!(!i || !u || r), [g, p] = ie(l);
2020
+ W(() => {
2021
+ r && p(!0);
2022
+ }, [r]);
2023
+ const d = i && /* @__PURE__ */ a.jsx(
2024
+ "button",
2025
+ {
2026
+ type: "button",
2027
+ onClick: (v) => {
2028
+ v.preventDefault(), p((x) => !x), s(!0);
2029
+ },
2030
+ children: /* @__PURE__ */ a.jsx(
2031
+ Qt,
2032
+ {
2033
+ size: 16,
2034
+ className: b(
2035
+ o && "transition",
2036
+ "shrink-0 group-data-[state=open]:rotate-90"
2037
+ )
2038
+ }
2039
+ )
2040
+ }
2041
+ );
2042
+ return /* @__PURE__ */ a.jsxs(
2043
+ Wr,
2044
+ {
2045
+ className: b("flex flex-col", t === 0 && "-mx-[--padding-nav-item]"),
2046
+ defaultOpen: l,
2047
+ open: g,
2048
+ onOpenChange: () => p(!0),
2049
+ children: [
2050
+ /* @__PURE__ */ a.jsx(
2051
+ Jr,
2052
+ {
2053
+ className: b(
2054
+ "group text-start",
2055
+ he({ isActive: !1, isTopLevel: t === 0 }),
2056
+ i ? "cursor-pointer" : "cursor-default hover:bg-transparent"
2057
+ ),
2058
+ asChild: !0,
2059
+ disabled: !i,
2060
+ children: ((h = e.link) == null ? void 0 : h.type) === "doc" ? /* @__PURE__ */ a.jsx(je, { to: Xe(n == null ? void 0 : n.id, e.link.id), children: ({ isActive: v }) => /* @__PURE__ */ a.jsxs(
2061
+ "div",
2062
+ {
2063
+ className: b(
2064
+ "flex items-center gap-2 justify-between w-full",
2065
+ v ? "text-primary font-medium" : "text-foreground/80"
2066
+ ),
2067
+ children: [
2068
+ /* @__PURE__ */ a.jsx("div", { className: "truncate", children: e.label }),
2069
+ d
2070
+ ]
2071
+ }
2072
+ ) }) : /* @__PURE__ */ a.jsxs("div", { className: "flex items-center justify-between w-full", children: [
2073
+ /* @__PURE__ */ a.jsx("div", { className: "flex gap-2 truncate w-full", children: e.label }),
2074
+ d
2075
+ ] })
2076
+ }
2077
+ ),
2078
+ /* @__PURE__ */ a.jsx(
2079
+ Zr,
2080
+ {
2081
+ className: b(
2082
+ // CollapsibleContent class is used to animate and it should only be applied when the user has triggered the toggle
2083
+ o && "CollapsibleContent",
2084
+ "ms-[calc(var(--padding-nav-item)*1.125)]"
2085
+ ),
2086
+ children: /* @__PURE__ */ a.jsx("ul", { className: "mt-1 border-l ps-2", children: e.items.map((v) => /* @__PURE__ */ a.jsx(
2087
+ tr,
2088
+ {
2089
+ level: t + 1,
2090
+ item: v
2091
+ },
2092
+ v.label
2093
+ )) })
2094
+ }
2095
+ )
2096
+ ]
2097
+ }
2098
+ );
2099
+ }, he = Qr(
638
2100
  "flex px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
639
2101
  {
640
2102
  variants: {
2103
+ isTopLevel: {
2104
+ true: "font-semibold"
2105
+ },
641
2106
  isActive: {
642
2107
  true: "text-primary font-medium",
643
2108
  false: "text-foreground/80"
@@ -648,260 +2113,178 @@ const kt = z("Sun", [
648
2113
  }
649
2114
  }
650
2115
  }
651
- ), qt = "data-anchor", Qe = ({
652
- category: t,
2116
+ ), er = "data-anchor", tr = ({
653
2117
  item: e,
654
- activeAnchor: s,
655
- currentTopNavItem: a,
656
- basePath: r = ""
2118
+ level: t = 0
657
2119
  }) => {
658
- const o = V(e) ? ve(r, e.path) : "", l = D(), [h, d] = Ae({
659
- item: e,
660
- path: o,
661
- defaultOpen: () => X(e, l.pathname, o)
662
- });
663
- if (We(e)) {
664
- const f = L(
665
- "flex items-center gap-2",
666
- R({
667
- isActive: e.href === l.pathname
668
- })
669
- );
670
- return e.href.startsWith("http") ? /* @__PURE__ */ n.jsxs(
671
- "a",
672
- {
673
- className: f,
674
- href: e.href,
675
- target: "_blank",
676
- rel: "noopener noreferrer",
677
- children: [
678
- e.label,
679
- /* @__PURE__ */ n.jsx(wt, { size: 14 })
680
- ]
681
- }
682
- ) : /* @__PURE__ */ n.jsx(B, { className: f, to: e.href, children: e.label });
2120
+ const n = $t(), { activeAnchor: r } = ze(), [o] = xr();
2121
+ switch (e.type) {
2122
+ case "category":
2123
+ return /* @__PURE__ */ a.jsx(Ps, { category: e, level: t });
2124
+ case "doc":
2125
+ return /* @__PURE__ */ a.jsx(
2126
+ je,
2127
+ {
2128
+ className: ({ isActive: s }) => he({ isActive: s, isTopLevel: t === 0 }),
2129
+ to: Xe(n == null ? void 0 : n.id, e.id),
2130
+ children: e.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2131
+ /* @__PURE__ */ a.jsx("span", { className: "truncate", title: e.label, children: e.label }),
2132
+ /* @__PURE__ */ a.jsx($e, { ...e.badge })
2133
+ ] }) : e.label
2134
+ }
2135
+ );
2136
+ case "link":
2137
+ return e.href.startsWith("#") ? /* @__PURE__ */ a.jsx(
2138
+ dr,
2139
+ {
2140
+ to: { hash: e.href, search: o.toString() },
2141
+ [er]: e.href.slice(1),
2142
+ className: b(
2143
+ "flex gap-2.5 justify-between",
2144
+ t === 0 && "-mx-[--padding-nav-item]",
2145
+ he({
2146
+ isActive: e.href.slice(1) === r
2147
+ })
2148
+ ),
2149
+ children: e.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2150
+ /* @__PURE__ */ a.jsx("span", { className: "truncate", title: e.label, children: e.label }),
2151
+ /* @__PURE__ */ a.jsx($e, { ...e.badge })
2152
+ ] }) : /* @__PURE__ */ a.jsx("span", { className: "break-all", children: e.label })
2153
+ }
2154
+ ) : e.href.startsWith("http") ? /* @__PURE__ */ a.jsxs(
2155
+ "a",
2156
+ {
2157
+ className: b(
2158
+ he({ isTopLevel: t === 0 }),
2159
+ "block"
2160
+ ),
2161
+ href: e.href,
2162
+ target: "_blank",
2163
+ rel: "noopener noreferrer",
2164
+ children: [
2165
+ /* @__PURE__ */ a.jsx("span", { className: "whitespace-normal", children: e.label }),
2166
+ /* @__PURE__ */ a.jsxs("span", { className: "whitespace-nowrap", children: [
2167
+ " ",
2168
+ /* @__PURE__ */ a.jsx(ma, { className: "inline ml-1", size: 12 })
2169
+ ] })
2170
+ ]
2171
+ }
2172
+ ) : /* @__PURE__ */ a.jsx(
2173
+ je,
2174
+ {
2175
+ className: b("flex gap-2.5 justify-between", he()),
2176
+ to: e.href,
2177
+ children: e.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2178
+ /* @__PURE__ */ a.jsx("span", { className: "truncate", title: e.label, children: e.label }),
2179
+ /* @__PURE__ */ a.jsx($e, { ...e.badge })
2180
+ ] }) : /* @__PURE__ */ a.jsx("span", { className: "break-all", children: e.label })
2181
+ }
2182
+ );
683
2183
  }
684
- const b = /* @__PURE__ */ n.jsxs("div", { className: "flex justify-between w-full", children: [
685
- /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2 truncate w-full", children: [
686
- e.icon,
687
- typeof e.label != "string" ? e.label : /* @__PURE__ */ n.jsx("span", { className: "truncate", children: e.label })
688
- ] }),
689
- e.children && /* @__PURE__ */ n.jsx(
690
- Oe,
691
- {
692
- size: 16,
693
- className: "transition shrink-0 group-data-[state=open]:rotate-90"
694
- }
695
- )
696
- ] });
697
- return /* @__PURE__ */ n.jsx("li", { title: typeof e.label == "string" ? e.label : e.title, children: e.children ? /* @__PURE__ */ n.jsxs(
698
- ye,
699
- {
700
- open: h,
701
- onOpenChange: () => d((f) => !f),
702
- className: "flex flex-col",
703
- children: [
704
- /* @__PURE__ */ n.jsx(
705
- xe,
706
- {
707
- className: L(
708
- "group text-start",
709
- R({ isActive: !1 })
710
- ),
711
- children: b
712
- }
713
- ),
714
- /* @__PURE__ */ n.jsx(be, { className: "CollapsibleContent ms-[calc(var(--padding-nav-item)*1.125)]", children: /* @__PURE__ */ n.jsx("ul", { className: "mt-1 border-border border-l ps-1.5", children: e.children.map((f) => /* @__PURE__ */ n.jsx(
715
- Qe,
716
- {
717
- category: t,
718
- item: f,
719
- activeAnchor: s,
720
- currentTopNavItem: a,
721
- basePath: o
722
- },
723
- V(f) ? f.path : f.href
724
- )) }) })
725
- ]
726
- }
727
- ) : e.path.startsWith("#") ? /* @__PURE__ */ n.jsx(
728
- Xe,
729
- {
730
- to: e.path,
731
- [qt]: e.path,
732
- className: R({
733
- isActive: e.path.slice(1) === s,
734
- isMuted: e.muted
735
- }),
736
- children: b
737
- }
738
- ) : /* @__PURE__ */ n.jsx(
739
- B,
740
- {
741
- className: ({ isActive: f }) => R({ isActive: f }),
742
- to: o,
743
- children: b
2184
+ }, js = (e, t = { block: "center" }) => {
2185
+ if (!e) return;
2186
+ const n = e.getBoundingClientRect();
2187
+ n.top >= 0 && n.left >= 0 && n.bottom <= (window.innerHeight || document.documentElement.clientHeight) && n.right <= (window.innerWidth || document.documentElement.clientWidth) || e.scrollIntoView(t);
2188
+ }, Rs = () => {
2189
+ const e = De(), { setActiveAnchor: t } = ze();
2190
+ W(() => {
2191
+ if (!e.hash) return;
2192
+ const n = decodeURIComponent(e.hash.split("/")[0].slice(1)), r = () => {
2193
+ const o = document.getElementById(n), s = document.querySelector(`[${er}="${n}"]`);
2194
+ return o ? (o.scrollIntoView(), js(s), requestIdleCallback(() => t(n)), !0) : !1;
2195
+ };
2196
+ if (!r()) {
2197
+ const o = new MutationObserver((s, i) => {
2198
+ r() && i.disconnect();
2199
+ });
2200
+ return o.observe(document.body, { childList: !0, subtree: !0 }), () => o.disconnect();
744
2201
  }
745
- ) });
746
- }, Dt = ({
747
- category: t
748
- }) => {
749
- const { activeAnchor: e } = W(), s = Ge(), a = D(), r = t.collapsible ?? !0, [o, l] = Ae({
750
- item: t,
751
- path: (s == null ? void 0 : s.path) ?? "",
752
- defaultOpen: () => !r || t.expanded || X(t, a.pathname, (s == null ? void 0 : s.path) ?? "")
753
- });
754
- return /* @__PURE__ */ n.jsxs(
755
- ye,
2202
+ }, [e.hash, t]);
2203
+ }, Es = () => {
2204
+ const e = De(), t = Ve(e.pathname);
2205
+ W(() => {
2206
+ t.current !== e.pathname && (window.scrollTo(0, 0), t.current = e.pathname);
2207
+ }, [e.pathname]);
2208
+ }, nr = Yr(({ children: e, className: t, pushMainContent: n }, r) => /* @__PURE__ */ a.jsx(
2209
+ "nav",
2210
+ {
2211
+ "data-navigation": String(n),
2212
+ className: b(
2213
+ "scrollbar peer hidden lg:flex flex-col fixed text-sm overflow-y-auto shrink-0",
2214
+ "px-[--padding-nav-item] -mx-[--padding-nav-item] pb-20 mt-[--padding-content-top]",
2215
+ "w-[--side-nav-width] h-[calc(100%-var(--header-height))] scroll-pt-2 gap-2",
2216
+ t
2217
+ ),
2218
+ ref: r,
2219
+ children: e
2220
+ }
2221
+ ));
2222
+ nr.displayName = "SidebarWrapper";
2223
+ const _s = () => {
2224
+ const e = Ve(null), t = la();
2225
+ return /* @__PURE__ */ a.jsxs(
2226
+ nr,
756
2227
  {
757
- open: o,
758
- onOpenChange: () => l((h) => !h),
2228
+ ref: e,
2229
+ pushMainContent: t.data.items.length > 0,
759
2230
  children: [
760
- t.label.length > 0 ? /* @__PURE__ */ n.jsx(xe, { asChild: r, disabled: !r, children: /* @__PURE__ */ n.jsxs(
761
- "h5",
762
- {
763
- className: L(
764
- "flex group items-center justify-between cursor-pointer font-semibold text-foreground/90 px-[--padding-nav-item] py-1.5 rounded-lg transition-colors duration-300 -mx-[--padding-nav-item]",
765
- r ? "hover:bg-accent" : "cursor-auto"
766
- ),
767
- children: [
768
- t.label,
769
- r && /* @__PURE__ */ n.jsx(
770
- Oe,
771
- {
772
- className: "group-data-[state=open]:rotate-90 transition",
773
- size: 16
774
- }
775
- )
776
- ]
777
- }
778
- ) }) : "Endpoints",
779
- /* @__PURE__ */ n.jsx(be, { className: "CollapsibleContent -mx-[--padding-nav-item]", children: /* @__PURE__ */ n.jsx("ul", { className: "space-y-0.5 mt-1.5 mb-4 ms-3", children: t.children.map((h) => /* @__PURE__ */ n.jsx(
780
- Qe,
781
- {
782
- category: t,
783
- item: h,
784
- activeAnchor: e,
785
- currentTopNavItem: s,
786
- basePath: ve(s == null ? void 0 : s.path, t.path)
787
- },
788
- V(h) ? h.path + h.label : h.href
789
- )) }) })
2231
+ /* @__PURE__ */ a.jsx(se, { name: "zudoku-before-navigation" }),
2232
+ t.data.items.map((n) => /* @__PURE__ */ a.jsx(tr, { item: n }, n.label)),
2233
+ /* @__PURE__ */ a.jsx(se, { name: "zudoku-after-navigation" })
790
2234
  ]
791
- },
792
- t.label
793
- );
794
- }, Tt = ht(function({ children: e, className: s, pushMainContent: a }, r) {
795
- return /* @__PURE__ */ n.jsx(
796
- "nav",
797
- {
798
- "data-navigation": String(a),
799
- className: L(
800
- "peer hidden lg:flex flex-col fixed text-sm overflow-y-auto shrink-0 p-[--padding-nav-item] -mx-[--padding-nav-item] pb-20 pt-[--padding-content-top] w-[--side-nav-width] h-[calc(100%-var(--header-height))] scroll-pt-2 gap-2",
801
- s
802
- ),
803
- ref: r,
804
- children: e
805
2235
  }
806
2236
  );
807
- }), It = () => {
808
- const t = K(null), e = Je();
809
- return /* @__PURE__ */ n.jsx(
810
- Tt,
811
- {
812
- ref: t,
813
- pushMainContent: e.data.items.length > 0,
814
- children: e.data.items.map((s) => /* @__PURE__ */ n.jsx(Dt, { category: s }, s.label))
815
- }
816
- );
817
- }, ue = ({ children: t }) => {
818
- const e = D(), { setActiveAnchor: s } = W(), { meta: a } = U();
819
- At(), Qt();
820
- const r = K(e.pathname);
821
- return I(() => {
822
- e.pathname !== r.current && s(""), r.current = e.pathname;
823
- }, [e.pathname, s]), /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
824
- /* @__PURE__ */ n.jsxs(je, { titleTemplate: a == null ? void 0 : a.title, children: [
825
- /* @__PURE__ */ n.jsx("title", { children: "Home" }),
826
- (a == null ? void 0 : a.description) && /* @__PURE__ */ n.jsx("meta", { name: "description", content: a.description }),
827
- (a == null ? void 0 : a.favicon) && /* @__PURE__ */ n.jsx("link", { rel: "icon", href: a.favicon })
2237
+ }, Ns = ({ children: e }) => {
2238
+ const t = De(), { setActiveAnchor: n } = ze(), { meta: r } = Ie();
2239
+ Rs(), Es();
2240
+ const o = Ve(t.pathname);
2241
+ return W(() => {
2242
+ t.pathname !== o.current && n(""), o.current = t.pathname;
2243
+ }, [t.pathname, n]), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2244
+ !1,
2245
+ /* @__PURE__ */ a.jsxs(Ge, { titleTemplate: r == null ? void 0 : r.title, children: [
2246
+ (r == null ? void 0 : r.description) && /* @__PURE__ */ a.jsx("meta", { name: "description", content: r.description }),
2247
+ (r == null ? void 0 : r.favicon) && /* @__PURE__ */ a.jsx("link", { rel: "icon", href: r.favicon })
828
2248
  ] }),
829
- /* @__PURE__ */ n.jsx(Ce, {}),
830
- /* @__PURE__ */ n.jsx("div", { className: "max-w-screen-2xl mx-auto pt-[--header-height] px-10 lg:px-12 h-full", children: /* @__PURE__ */ n.jsxs(
831
- we,
2249
+ /* @__PURE__ */ a.jsx(Wn, {}),
2250
+ /* @__PURE__ */ a.jsx("div", { className: "max-w-screen-2xl mx-auto pt-[--header-height] px-10 lg:px-12 h-full", children: /* @__PURE__ */ a.jsxs(
2251
+ Tt,
832
2252
  {
833
- fallback: /* @__PURE__ */ n.jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ n.jsx(Ye, {}) }),
2253
+ fallback: /* @__PURE__ */ a.jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ a.jsx(fa, {}) }),
834
2254
  children: [
835
- /* @__PURE__ */ n.jsx(It, {}),
836
- /* @__PURE__ */ n.jsx(
2255
+ /* @__PURE__ */ a.jsx(_s, {}),
2256
+ /* @__PURE__ */ a.jsxs(
837
2257
  "main",
838
2258
  {
839
- className: `dark:border-white/10 translate-x-0 h-full
840
- lg:overflow-visible
841
- lg:peer-data-[navigation=true]:w-[calc(100%-var(--side-nav-width))]
842
- lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] peer-data-[navigation=true]:pl-12`,
843
- children: t ?? /* @__PURE__ */ n.jsx(Ee, {})
2259
+ className: b(
2260
+ "dark:border-white/10 translate-x-0 h-full",
2261
+ "lg:overflow-visible",
2262
+ "lg:peer-data-[navigation=true]:w-[calc(100%-var(--side-nav-width))]",
2263
+ "lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] lg:peer-data-[navigation=true]:pl-12"
2264
+ ),
2265
+ children: [
2266
+ /* @__PURE__ */ a.jsx(se, { name: "zudoku-before-content" }),
2267
+ e ?? /* @__PURE__ */ a.jsx(jt, {}),
2268
+ /* @__PURE__ */ a.jsx(se, { name: "zudoku-after-content" })
2269
+ ]
844
2270
  }
845
2271
  )
846
2272
  ]
847
2273
  }
848
2274
  ) })
849
2275
  ] });
850
- };
851
- function Et({ plugins: t }) {
852
- const e = H(() => {
853
- const s = (t ?? []).flatMap(
854
- (a) => Ne(a) ? a.getRoutes() : []
855
- );
856
- return Ze([
857
- {
858
- path: "/",
859
- element: /* @__PURE__ */ n.jsx(ue, {}),
860
- errorElement: /* @__PURE__ */ n.jsx(ue, { children: /* @__PURE__ */ n.jsx("div", { className: "h-[75vh] flex items-center justify-center", children: "Error, look at the console" }) }),
861
- children: s
862
- }
863
- ]);
864
- }, [t]);
865
- return /* @__PURE__ */ n.jsx(et, { router: e });
866
- }
867
- const St = (t) => {
868
- var o;
869
- const e = H(
870
- () => ({ ...Me, ...t.overrides }),
871
- [t.overrides]
872
- ), s = H(
873
- () => ({ ...tt, ...t.mdxComponents }),
874
- [t.mdxComponents]
875
- ), a = H(() => new Pt(t), [t]);
876
- I(() => {
877
- a.initialize();
878
- }, [a]);
879
- const r = (o = t.plugins) == null ? void 0 : o.filter(xt).map((l, h) => {
880
- var d;
881
- return /* @__PURE__ */ n.jsx(ut, { children: (d = l.getHead) == null ? void 0 : d.call(l) }, h);
882
- });
883
- return /* @__PURE__ */ n.jsx(st, { client: ke, children: /* @__PURE__ */ n.jsxs(at, { children: [
884
- /* @__PURE__ */ n.jsx(je, { children: r }),
885
- /* @__PURE__ */ n.jsx(nt, { value: a, children: /* @__PURE__ */ n.jsx(rt, { components: s, children: /* @__PURE__ */ n.jsx(it, { children: /* @__PURE__ */ n.jsx(Mt, { value: e, children: /* @__PURE__ */ n.jsx(ot, { children: /* @__PURE__ */ n.jsx(
886
- we,
887
- {
888
- fallback: /* @__PURE__ */ n.jsx("div", { className: "grid place-items-center h-full", children: "Loading..." }),
889
- children: /* @__PURE__ */ n.jsx(
890
- Et,
891
- {
892
- plugins: [
893
- ...t.plugins ?? [],
894
- ...t.authentication ? [t.authentication] : []
895
- ]
896
- }
897
- )
898
- }
899
- ) }) }) }) }) })
900
- ] }) });
901
- }, Ft = Pe(St);
902
- Ft.displayName = "DevPortal";
2276
+ }, Hs = hr, zs = qr, Vs = Zn, Ys = Ns, Xs = Re, Ws = wr, Js = ya, Zs = Ta, ei = Fa, ti = Qe, ni = Ge;
903
2277
  export {
904
- Ft as DevPortal,
905
- Vt as Link,
906
- Ut as useMDXComponents
2278
+ Zs as Bootstrap,
2279
+ ei as BootstrapStatic,
2280
+ ti as Button,
2281
+ zs as Callout,
2282
+ Vs as DevPortal,
2283
+ ni as Head,
2284
+ Ys as Layout,
2285
+ Xs as Link,
2286
+ Ws as RouterError,
2287
+ Js as ServerError,
2288
+ Hs as useMDXComponents
907
2289
  };
2290
+ //# sourceMappingURL=zudoku.components.js.map