zudoku 0.0.0-f2fd45c → 0.0.0-f3786a4

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