zudoku 0.3.0-dev.5 → 0.3.0-dev.50

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 (483) hide show
  1. package/dist/app/App.d.ts +1 -2
  2. package/dist/app/App.js +1 -28
  3. package/dist/app/App.js.map +1 -1
  4. package/dist/app/demo.d.ts +2 -0
  5. package/dist/app/demo.js +27 -0
  6. package/dist/app/demo.js.map +1 -0
  7. package/dist/app/entry.client.d.ts +2 -0
  8. package/dist/app/entry.client.js +35 -0
  9. package/dist/app/entry.client.js.map +1 -0
  10. package/dist/app/entry.server.d.ts +12 -0
  11. package/dist/app/entry.server.js +104 -0
  12. package/dist/app/entry.server.js.map +1 -0
  13. package/dist/app/main.d.ts +6 -1
  14. package/dist/app/main.js +54 -12
  15. package/dist/app/main.js.map +1 -1
  16. package/dist/app/standalone.d.ts +2 -0
  17. package/dist/app/standalone.js +32 -0
  18. package/dist/app/standalone.js.map +1 -0
  19. package/dist/app/tailwind.d.ts +1 -1
  20. package/dist/app/tailwind.js +0 -4
  21. package/dist/app/tailwind.js.map +1 -1
  22. package/dist/app/zudoku-manifest.d.ts +1 -0
  23. package/dist/app/zudoku-manifest.js +20 -0
  24. package/dist/app/zudoku-manifest.js.map +1 -0
  25. package/dist/cli/cmds/dev.js +5 -0
  26. package/dist/cli/cmds/dev.js.map +1 -1
  27. package/dist/cli/dev/handler.d.ts +1 -0
  28. package/dist/cli/dev/handler.js +3 -1
  29. package/dist/cli/dev/handler.js.map +1 -1
  30. package/dist/config/config.d.ts +5 -39
  31. package/dist/config/validators/validate.d.ts +799 -2
  32. package/dist/config/validators/validate.js +134 -1
  33. package/dist/config/validators/validate.js.map +1 -1
  34. package/dist/internal.d.ts +1 -0
  35. package/dist/internal.js +2 -0
  36. package/dist/internal.js.map +1 -0
  37. package/dist/lib/authentication/Callback.js +1 -1
  38. package/dist/lib/authentication/Callback.js.map +1 -1
  39. package/dist/lib/authentication/authentication.d.ts +2 -2
  40. package/dist/lib/authentication/hook.d.ts +1 -0
  41. package/dist/lib/authentication/hook.js +1 -0
  42. package/dist/lib/authentication/hook.js.map +1 -1
  43. package/dist/lib/authentication/providers/auth0.js +1 -0
  44. package/dist/lib/authentication/providers/auth0.js.map +1 -1
  45. package/dist/lib/authentication/providers/clerk.js +4 -0
  46. package/dist/lib/authentication/providers/clerk.js.map +1 -1
  47. package/dist/lib/authentication/providers/openid.d.ts +1 -1
  48. package/dist/lib/authentication/providers/openid.js +2 -0
  49. package/dist/lib/authentication/providers/openid.js.map +1 -1
  50. package/dist/lib/authentication/state.d.ts +1 -0
  51. package/dist/lib/authentication/state.js +1 -0
  52. package/dist/lib/authentication/state.js.map +1 -1
  53. package/dist/lib/components/Bootstrap.d.ts +12 -0
  54. package/dist/lib/components/Bootstrap.js +9 -0
  55. package/dist/lib/components/Bootstrap.js.map +1 -0
  56. package/dist/lib/components/DevPortal.d.ts +4 -19
  57. package/dist/lib/components/DevPortal.js +17 -12
  58. package/dist/lib/components/DevPortal.js.map +1 -1
  59. package/dist/lib/components/ErrorPage.d.ts +6 -0
  60. package/dist/lib/components/ErrorPage.js +9 -0
  61. package/dist/lib/components/ErrorPage.js.map +1 -0
  62. package/dist/lib/components/Header.js +3 -3
  63. package/dist/lib/components/Header.js.map +1 -1
  64. package/dist/lib/components/Heading.d.ts +9 -4
  65. package/dist/lib/components/Heading.js +17 -2
  66. package/dist/lib/components/Heading.js.map +1 -1
  67. package/dist/lib/components/InlineCode.d.ts +5 -0
  68. package/dist/lib/components/InlineCode.js +4 -0
  69. package/dist/lib/components/InlineCode.js.map +1 -0
  70. package/dist/lib/components/Layout.js +3 -2
  71. package/dist/lib/components/Layout.js.map +1 -1
  72. package/dist/lib/components/NotFoundPage.d.ts +1 -0
  73. package/dist/lib/components/NotFoundPage.js +12 -0
  74. package/dist/lib/components/NotFoundPage.js.map +1 -0
  75. package/dist/lib/components/SyntaxHighlight.d.ts +3 -2
  76. package/dist/lib/components/SyntaxHighlight.js +21 -19
  77. package/dist/lib/components/SyntaxHighlight.js.map +1 -1
  78. package/dist/lib/components/TopNavigation.d.ts +1 -1
  79. package/dist/lib/components/TopNavigation.js +4 -0
  80. package/dist/lib/components/TopNavigation.js.map +1 -1
  81. package/dist/lib/components/context/DevPortalProvider.d.ts +1 -1
  82. package/dist/lib/components/context/DevPortalProvider.js +2 -2
  83. package/dist/lib/components/context/DevPortalProvider.js.map +1 -1
  84. package/dist/lib/components/index.d.ts +28 -3
  85. package/dist/lib/components/index.js +17 -3
  86. package/dist/lib/components/index.js.map +1 -1
  87. package/dist/lib/core/DevPortalContext.d.ts +36 -6
  88. package/dist/lib/core/DevPortalContext.js +9 -6
  89. package/dist/lib/core/DevPortalContext.js.map +1 -1
  90. package/dist/lib/core/plugins.d.ts +7 -4
  91. package/dist/lib/core/plugins.js +1 -0
  92. package/dist/lib/core/plugins.js.map +1 -1
  93. package/dist/lib/errors/ErrorAlert.d.ts +3 -0
  94. package/dist/lib/errors/ErrorAlert.js +8 -0
  95. package/dist/lib/errors/ErrorAlert.js.map +1 -0
  96. package/dist/lib/errors/RouterError.d.ts +1 -0
  97. package/dist/lib/errors/RouterError.js +12 -0
  98. package/dist/lib/errors/RouterError.js.map +1 -0
  99. package/dist/lib/errors/ServerError.d.ts +3 -0
  100. package/dist/lib/errors/ServerError.js +6 -0
  101. package/dist/lib/errors/ServerError.js.map +1 -0
  102. package/dist/lib/errors/TopLevelError.d.ts +2 -0
  103. package/dist/lib/errors/TopLevelError.js +7 -0
  104. package/dist/lib/errors/TopLevelError.js.map +1 -0
  105. package/dist/lib/oas/graphql/index.js +1 -1
  106. package/dist/lib/oas/graphql/index.js.map +1 -1
  107. package/dist/lib/oas/parser/index.d.ts +1 -1
  108. package/dist/lib/oas/parser/index.js +38 -12
  109. package/dist/lib/oas/parser/index.js.map +1 -1
  110. package/dist/lib/plugins/api-keys/CreateApiKey.d.ts +4 -0
  111. package/dist/lib/plugins/{api-key → api-keys}/CreateApiKey.js +1 -1
  112. package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -0
  113. package/dist/lib/plugins/api-keys/SettingsApiKeys.d.ts +4 -0
  114. package/dist/lib/plugins/api-keys/SettingsApiKeys.js +39 -0
  115. package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -0
  116. package/dist/lib/plugins/{api-key → api-keys}/index.d.ts +2 -3
  117. package/dist/lib/plugins/{api-key → api-keys}/index.js +15 -4
  118. package/dist/lib/plugins/api-keys/index.js.map +1 -0
  119. package/dist/lib/plugins/markdown/MdxPage.d.ts +3 -2
  120. package/dist/lib/plugins/markdown/MdxPage.js +7 -6
  121. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  122. package/dist/lib/plugins/markdown/Toc.js +1 -1
  123. package/dist/lib/plugins/markdown/Toc.js.map +1 -1
  124. package/dist/lib/plugins/markdown/generateRoutes.d.ts +3 -3
  125. package/dist/lib/plugins/markdown/generateRoutes.js +4 -4
  126. package/dist/lib/plugins/markdown/generateRoutes.js.map +1 -1
  127. package/dist/lib/plugins/markdown/index.d.ts +4 -1
  128. package/dist/lib/plugins/markdown/index.js +3 -7
  129. package/dist/lib/plugins/markdown/index.js.map +1 -1
  130. package/dist/lib/plugins/openapi/OperationList.js +16 -5
  131. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  132. package/dist/lib/plugins/openapi/OperationListItem.js +10 -5
  133. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  134. package/dist/lib/plugins/openapi/ParameterList.js +1 -1
  135. package/dist/lib/plugins/openapi/ParameterList.js.map +1 -1
  136. package/dist/lib/plugins/openapi/ParameterListItem.js +1 -1
  137. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  138. package/dist/lib/plugins/openapi/{MakeRequest.d.ts → PlaygroundDialogWrapper.d.ts} +1 -1
  139. package/dist/lib/plugins/openapi/{MakeRequest.js → PlaygroundDialogWrapper.js} +5 -5
  140. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -0
  141. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +1 -9
  142. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
  143. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +1 -1
  144. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
  145. package/dist/lib/plugins/openapi/Route.d.ts +6 -0
  146. package/dist/lib/plugins/openapi/Route.js +8 -0
  147. package/dist/lib/plugins/openapi/Route.js.map +1 -0
  148. package/dist/lib/plugins/openapi/SchemaListView.js +6 -27
  149. package/dist/lib/plugins/openapi/SchemaListView.js.map +1 -1
  150. package/dist/lib/plugins/openapi/SchemaListViewItem.d.ts +7 -0
  151. package/dist/lib/plugins/openapi/SchemaListViewItem.js +16 -0
  152. package/dist/lib/plugins/openapi/SchemaListViewItem.js.map +1 -0
  153. package/dist/lib/plugins/openapi/SchemaListViewItemGroup.d.ts +8 -0
  154. package/dist/lib/plugins/openapi/SchemaListViewItemGroup.js +17 -0
  155. package/dist/lib/plugins/openapi/SchemaListViewItemGroup.js.map +1 -0
  156. package/dist/lib/plugins/openapi/Sidecar.js +10 -8
  157. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  158. package/dist/lib/plugins/openapi/{Select.d.ts → SimpleSelect.d.ts} +3 -2
  159. package/dist/lib/plugins/openapi/SimpleSelect.js +5 -0
  160. package/dist/lib/plugins/openapi/SimpleSelect.js.map +1 -0
  161. package/dist/lib/plugins/openapi/client/createMemoryClient.d.ts +12 -0
  162. package/dist/lib/plugins/openapi/client/createMemoryClient.js +46 -0
  163. package/dist/lib/plugins/openapi/client/createMemoryClient.js.map +1 -0
  164. package/dist/lib/plugins/openapi/client/createServer.d.ts +4 -0
  165. package/dist/lib/plugins/openapi/client/createServer.js +30 -0
  166. package/dist/lib/plugins/openapi/client/createServer.js.map +1 -0
  167. package/dist/lib/plugins/openapi/client/createWorkerClient.d.ts +10 -0
  168. package/dist/lib/plugins/openapi/{worker/createSharedWorkerClient.js → client/createWorkerClient.js} +15 -2
  169. package/dist/lib/plugins/openapi/client/createWorkerClient.js.map +1 -0
  170. package/dist/lib/plugins/openapi/client/interfaces.d.ts +4 -0
  171. package/dist/lib/plugins/openapi/client/interfaces.js +2 -0
  172. package/dist/lib/plugins/openapi/client/interfaces.js.map +1 -0
  173. package/dist/lib/plugins/openapi/{worker → client}/worker.js +2 -2
  174. package/dist/lib/plugins/openapi/client/worker.js.map +1 -0
  175. package/dist/lib/plugins/openapi/context.d.ts +5 -0
  176. package/dist/lib/plugins/openapi/context.js +11 -0
  177. package/dist/lib/plugins/openapi/context.js.map +1 -0
  178. package/dist/lib/plugins/openapi/index.d.ts +4 -18
  179. package/dist/lib/plugins/openapi/index.js +35 -20
  180. package/dist/lib/plugins/openapi/index.js.map +1 -1
  181. package/dist/lib/plugins/openapi/interfaces.d.ts +15 -0
  182. package/dist/lib/plugins/openapi/interfaces.js +2 -0
  183. package/dist/lib/plugins/openapi/interfaces.js.map +1 -0
  184. package/dist/lib/plugins/openapi/playground/Headers.d.ts +2 -3
  185. package/dist/lib/plugins/openapi/playground/Headers.js +16 -6
  186. package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
  187. package/dist/lib/plugins/openapi/playground/PathParams.d.ts +1 -1
  188. package/dist/lib/plugins/openapi/playground/Playground.d.ts +4 -3
  189. package/dist/lib/plugins/openapi/playground/Playground.js +8 -12
  190. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  191. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.d.ts +3 -0
  192. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +10 -0
  193. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -0
  194. package/dist/lib/plugins/openapi/playground/QueryParams.d.ts +1 -1
  195. package/dist/lib/plugins/openapi/playground/QueryParams.js +2 -1
  196. package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
  197. package/dist/lib/plugins/openapi/playground/createUrl.d.ts +1 -1
  198. package/dist/lib/plugins/openapi/util/prose.d.ts +1 -0
  199. package/dist/lib/plugins/openapi/util/prose.js +4 -0
  200. package/dist/lib/plugins/openapi/util/prose.js.map +1 -0
  201. package/dist/lib/plugins/openapi-worker.d.ts +1 -1
  202. package/dist/lib/plugins/openapi-worker.js +1 -1
  203. package/dist/lib/plugins/openapi-worker.js.map +1 -1
  204. package/dist/lib/plugins/redirect/index.d.ts +0 -1
  205. package/dist/lib/plugins/redirect/index.js +3 -4
  206. package/dist/lib/plugins/redirect/index.js.map +1 -1
  207. package/dist/lib/ui/Callout.js +2 -2
  208. package/dist/lib/ui/Callout.js.map +1 -1
  209. package/dist/lib/ui/button-variants.d.ts +1 -1
  210. package/dist/lib/util/MdxComponents.d.ts +2 -2
  211. package/dist/lib/util/MdxComponents.js +6 -4
  212. package/dist/lib/util/MdxComponents.js.map +1 -1
  213. package/dist/lib/util/groupBy.d.ts +1 -6
  214. package/dist/lib/util/groupBy.js +10 -8
  215. package/dist/lib/util/groupBy.js.map +1 -1
  216. package/dist/lib/util/logInit.d.ts +1 -0
  217. package/dist/lib/util/logInit.js +9 -0
  218. package/dist/lib/util/logInit.js.map +1 -0
  219. package/dist/lib/util/objectEntries.d.ts +4 -0
  220. package/dist/lib/util/objectEntries.js +2 -0
  221. package/dist/lib/util/objectEntries.js.map +1 -0
  222. package/dist/lib/util/renderIf.d.ts +1 -0
  223. package/dist/lib/util/renderIf.js +2 -0
  224. package/dist/lib/util/renderIf.js.map +1 -0
  225. package/dist/vite/build.js +26 -6
  226. package/dist/vite/build.js.map +1 -1
  227. package/dist/vite/config.d.ts +13 -12
  228. package/dist/vite/config.js +100 -55
  229. package/dist/vite/config.js.map +1 -1
  230. package/dist/vite/config.test.js +7 -4
  231. package/dist/vite/config.test.js.map +1 -1
  232. package/dist/vite/dev-server.d.ts +2 -1
  233. package/dist/vite/dev-server.js +43 -15
  234. package/dist/vite/dev-server.js.map +1 -1
  235. package/dist/vite/html.js +18 -5
  236. package/dist/vite/html.js.map +1 -1
  237. package/dist/vite/plugin-api-keys.js +7 -8
  238. package/dist/vite/plugin-api-keys.js.map +1 -1
  239. package/dist/vite/plugin-api.js +9 -20
  240. package/dist/vite/plugin-api.js.map +1 -1
  241. package/dist/vite/plugin-auth.js +5 -6
  242. package/dist/vite/plugin-auth.js.map +1 -1
  243. package/dist/vite/plugin-component.js +4 -2
  244. package/dist/vite/plugin-component.js.map +1 -1
  245. package/dist/vite/plugin-config.d.ts +0 -2
  246. package/dist/vite/plugin-config.js +2 -13
  247. package/dist/vite/plugin-config.js.map +1 -1
  248. package/dist/vite/plugin-custom-css.d.ts +6 -0
  249. package/dist/vite/plugin-custom-css.js +55 -0
  250. package/dist/vite/plugin-custom-css.js.map +1 -0
  251. package/dist/vite/plugin-docs.js +15 -5
  252. package/dist/vite/plugin-docs.js.map +1 -1
  253. package/dist/vite/plugin-docs.test.js +1 -1
  254. package/dist/vite/plugin-docs.test.js.map +1 -1
  255. package/dist/vite/plugin-mdx.d.ts +3 -1
  256. package/dist/vite/plugin-mdx.js +5 -5
  257. package/dist/vite/plugin-mdx.js.map +1 -1
  258. package/dist/vite/plugin-metadata.js +1 -1
  259. package/dist/vite/plugin-metadata.js.map +1 -1
  260. package/dist/vite/plugin-redirect.js +10 -10
  261. package/dist/vite/plugin-redirect.js.map +1 -1
  262. package/dist/vite/plugin.js +3 -5
  263. package/dist/vite/plugin.js.map +1 -1
  264. package/dist/vite/prerender.d.ts +17 -0
  265. package/dist/vite/prerender.js +55 -0
  266. package/dist/vite/prerender.js.map +1 -0
  267. package/lib/AnchorLink-CZUp-F0P.js +705 -0
  268. package/lib/AnchorLink-CZUp-F0P.js.map +1 -0
  269. package/lib/DevPortalProvider-Do9oJqme.js +1081 -0
  270. package/lib/DevPortalProvider-Do9oJqme.js.map +1 -0
  271. package/lib/Markdown-Dbzrtopg.js +15030 -0
  272. package/lib/Markdown-Dbzrtopg.js.map +1 -0
  273. package/lib/MdxPage-JvboTsbK.js +190 -0
  274. package/lib/MdxPage-JvboTsbK.js.map +1 -0
  275. package/lib/OperationList-DGdaixGa.js +5562 -0
  276. package/lib/OperationList-DGdaixGa.js.map +1 -0
  277. package/lib/Route-C1LyvITr.js +13 -0
  278. package/lib/Route-C1LyvITr.js.map +1 -0
  279. package/lib/Select-DHm1jDdS.js +4571 -0
  280. package/lib/Select-DHm1jDdS.js.map +1 -0
  281. package/lib/Spinner-BSk0ImmP.js +182 -0
  282. package/lib/Spinner-BSk0ImmP.js.map +1 -0
  283. package/lib/_commonjsHelpers-BVfed4GL.js +29 -0
  284. package/lib/_commonjsHelpers-BVfed4GL.js.map +1 -0
  285. package/lib/assets/index-BPdJm2ty.js +1 -0
  286. package/lib/assets/index-BPdJm2ty.js.map +1 -0
  287. package/lib/assets/{worker-BCcpCNJ7.js → worker-BjPv-hjP.js} +10742 -10318
  288. package/lib/assets/worker-BjPv-hjP.js.map +1 -0
  289. package/lib/context-_fYfJFgk.js +14 -0
  290. package/lib/context-_fYfJFgk.js.map +1 -0
  291. package/lib/hook-DCYGmylw.js +77 -0
  292. package/lib/hook-DCYGmylw.js.map +1 -0
  293. package/lib/index-CXXn0D4E.js +412 -0
  294. package/lib/index-CXXn0D4E.js.map +1 -0
  295. package/lib/index-DSZ4Cj5q.js +725 -0
  296. package/lib/index-DSZ4Cj5q.js.map +1 -0
  297. package/lib/index-pI9JkN46.js +4765 -0
  298. package/lib/index-pI9JkN46.js.map +1 -0
  299. package/lib/jsx-runtime-CJZJivg2.js +1526 -0
  300. package/lib/jsx-runtime-CJZJivg2.js.map +1 -0
  301. package/lib/prism-bash.min-DadFsM4Z.js +1 -0
  302. package/lib/prism-bash.min-DadFsM4Z.js.map +1 -0
  303. package/lib/prism-csharp.min-Yizuc34Y.js +35 -0
  304. package/lib/prism-csharp.min-Yizuc34Y.js.map +1 -0
  305. package/lib/prism-java.min-d5iT_mOd.js +1 -0
  306. package/lib/prism-java.min-d5iT_mOd.js.map +1 -0
  307. package/lib/prism-json.min-B1GJqK1k.js +1 -0
  308. package/lib/prism-json.min-B1GJqK1k.js.map +1 -0
  309. package/lib/prism-markup-templating-DZrrEs0A.js +1 -0
  310. package/lib/prism-markup-templating-DZrrEs0A.js.map +1 -0
  311. package/lib/prism-objectivec.min-BXSWqpJJ.js +2 -0
  312. package/lib/prism-objectivec.min-BXSWqpJJ.js.map +1 -0
  313. package/lib/prism-php.min-o7FpoMP_.js +1 -0
  314. package/lib/prism-php.min-o7FpoMP_.js.map +1 -0
  315. package/lib/prism-ruby.min-C7LwcKyz.js +1 -0
  316. package/lib/prism-ruby.min-C7LwcKyz.js.map +1 -0
  317. package/lib/router-CBw2vqJE.js +2973 -0
  318. package/lib/router-CBw2vqJE.js.map +1 -0
  319. package/lib/slugify-CiPVjteN.js +28 -0
  320. package/lib/slugify-CiPVjteN.js.map +1 -0
  321. package/lib/state-D36MLDHk.js +289 -0
  322. package/lib/state-D36MLDHk.js.map +1 -0
  323. package/lib/urql-DMlBWUKL.js +1 -0
  324. package/lib/urql-DMlBWUKL.js.map +1 -0
  325. package/lib/util-_jwUlTBU.js +41 -0
  326. package/lib/util-_jwUlTBU.js.map +1 -0
  327. package/lib/zudoku.auth-auth0.js +3 -1
  328. package/lib/zudoku.auth-auth0.js.map +1 -0
  329. package/lib/zudoku.auth-clerk.js +11 -8
  330. package/lib/zudoku.auth-clerk.js.map +1 -0
  331. package/lib/zudoku.auth-openid.js +8 -4
  332. package/lib/zudoku.auth-openid.js.map +1 -0
  333. package/lib/zudoku.components.js +804 -447
  334. package/lib/zudoku.components.js.map +1 -0
  335. package/lib/zudoku.openapi-worker.js +15032 -146
  336. package/lib/zudoku.openapi-worker.js.map +1 -0
  337. package/lib/zudoku.plugin-api-keys.js +302 -0
  338. package/lib/zudoku.plugin-api-keys.js.map +1 -0
  339. package/lib/zudoku.plugin-markdown.js +49 -0
  340. package/lib/zudoku.plugin-markdown.js.map +1 -0
  341. package/lib/zudoku.plugin-openapi.js +10 -0
  342. package/lib/zudoku.plugin-openapi.js.map +1 -0
  343. package/lib/zudoku.plugin-redirect.js +11 -0
  344. package/lib/zudoku.plugin-redirect.js.map +1 -0
  345. package/package.json +37 -15
  346. package/src/app/App.tsx +0 -40
  347. package/src/app/demo-cdn.html +26 -0
  348. package/src/app/demo.html +18 -0
  349. package/src/app/demo.tsx +40 -0
  350. package/src/app/entry.client.tsx +47 -0
  351. package/src/app/entry.server.tsx +158 -0
  352. package/src/app/main.css +74 -0
  353. package/src/app/main.tsx +71 -15
  354. package/src/app/standalone.html +20 -0
  355. package/src/app/standalone.tsx +46 -0
  356. package/src/app/tailwind.ts +2 -6
  357. package/src/app/zudoku-manifest.ts +22 -0
  358. package/src/lib/authentication/Callback.tsx +1 -1
  359. package/src/lib/authentication/authentication.ts +2 -5
  360. package/src/lib/authentication/hook.ts +1 -0
  361. package/src/lib/authentication/providers/auth0.tsx +1 -0
  362. package/src/lib/authentication/providers/clerk.tsx +3 -0
  363. package/src/lib/authentication/providers/openid.tsx +3 -1
  364. package/src/lib/authentication/state.ts +2 -0
  365. package/src/lib/components/Bootstrap.tsx +37 -0
  366. package/src/lib/components/DevPortal.tsx +41 -56
  367. package/src/lib/components/ErrorPage.tsx +28 -0
  368. package/src/lib/components/Header.tsx +13 -7
  369. package/src/lib/components/Heading.tsx +26 -7
  370. package/src/lib/components/InlineCode.tsx +19 -0
  371. package/src/lib/components/Layout.tsx +9 -7
  372. package/src/lib/components/NotFoundPage.tsx +39 -0
  373. package/src/lib/components/SyntaxHighlight.tsx +27 -19
  374. package/src/lib/components/TopNavigation.tsx +5 -0
  375. package/src/lib/components/context/DevPortalProvider.ts +2 -2
  376. package/src/lib/components/index.ts +21 -3
  377. package/src/lib/core/DevPortalContext.ts +46 -17
  378. package/src/lib/core/plugins.ts +10 -5
  379. package/src/lib/errors/ErrorAlert.tsx +21 -0
  380. package/src/lib/errors/RouterError.tsx +13 -0
  381. package/src/lib/errors/ServerError.tsx +5 -0
  382. package/src/lib/errors/TopLevelError.tsx +8 -0
  383. package/src/lib/oas/graphql/index.ts +2 -2
  384. package/src/lib/oas/parser/index.ts +41 -20
  385. package/src/lib/plugins/{api-key → api-keys}/CreateApiKey.tsx +2 -8
  386. package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +139 -0
  387. package/src/lib/plugins/{api-key → api-keys}/index.tsx +22 -9
  388. package/src/lib/plugins/markdown/MdxPage.tsx +51 -34
  389. package/src/lib/plugins/markdown/Toc.tsx +1 -1
  390. package/src/lib/plugins/markdown/generateRoutes.tsx +16 -6
  391. package/src/lib/plugins/markdown/index.tsx +10 -7
  392. package/src/lib/plugins/openapi/OperationList.tsx +40 -4
  393. package/src/lib/plugins/openapi/OperationListItem.tsx +69 -42
  394. package/src/lib/plugins/openapi/ParameterList.tsx +1 -1
  395. package/src/lib/plugins/openapi/ParameterListItem.tsx +3 -4
  396. package/src/lib/plugins/openapi/{MakeRequest.tsx → PlaygroundDialogWrapper.tsx} +4 -4
  397. package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +2 -16
  398. package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +3 -1
  399. package/src/lib/plugins/openapi/Route.tsx +21 -0
  400. package/src/lib/plugins/openapi/SchemaListView.tsx +23 -192
  401. package/src/lib/plugins/openapi/SchemaListViewItem.tsx +110 -0
  402. package/src/lib/plugins/openapi/SchemaListViewItemGroup.tsx +63 -0
  403. package/src/lib/plugins/openapi/Sidecar.tsx +15 -10
  404. package/src/lib/plugins/openapi/{Select.tsx → SimpleSelect.tsx} +6 -3
  405. package/src/lib/plugins/openapi/client/createMemoryClient.ts +56 -0
  406. package/src/lib/plugins/openapi/client/createServer.ts +33 -0
  407. package/src/lib/plugins/openapi/{worker/createSharedWorkerClient.ts → client/createWorkerClient.ts} +21 -2
  408. package/src/lib/plugins/openapi/client/interfaces.ts +5 -0
  409. package/src/lib/plugins/openapi/{worker → client}/worker.ts +3 -3
  410. package/src/lib/plugins/openapi/context.tsx +16 -0
  411. package/src/lib/plugins/openapi/index.tsx +59 -52
  412. package/src/lib/plugins/openapi/interfaces.ts +9 -0
  413. package/src/lib/plugins/openapi/playground/Headers.tsx +60 -33
  414. package/src/lib/plugins/openapi/playground/PathParams.tsx +1 -1
  415. package/src/lib/plugins/openapi/playground/Playground.tsx +158 -193
  416. package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +34 -0
  417. package/src/lib/plugins/openapi/playground/QueryParams.tsx +7 -2
  418. package/src/lib/plugins/openapi/playground/createUrl.ts +1 -1
  419. package/src/lib/plugins/openapi/util/prose.ts +7 -0
  420. package/src/lib/plugins/openapi-worker.ts +1 -1
  421. package/src/lib/plugins/redirect/index.tsx +3 -4
  422. package/src/lib/ui/Callout.tsx +4 -4
  423. package/src/lib/util/MdxComponents.tsx +6 -14
  424. package/src/lib/util/groupBy.ts +7 -12
  425. package/src/lib/util/logInit.ts +9 -0
  426. package/src/lib/util/objectEntries.ts +5 -0
  427. package/src/lib/util/renderIf.ts +4 -0
  428. package/dist/lib/components/Link.d.ts +0 -1
  429. package/dist/lib/components/Link.js +0 -2
  430. package/dist/lib/components/Link.js.map +0 -1
  431. package/dist/lib/components/Router.d.ts +0 -4
  432. package/dist/lib/components/Router.js +0 -20
  433. package/dist/lib/components/Router.js.map +0 -1
  434. package/dist/lib/core/helmet.d.ts +0 -4
  435. package/dist/lib/core/helmet.js +0 -5
  436. package/dist/lib/core/helmet.js.map +0 -1
  437. package/dist/lib/core/icons.d.ts +0 -1
  438. package/dist/lib/core/icons.js +0 -2
  439. package/dist/lib/core/icons.js.map +0 -1
  440. package/dist/lib/core/router.d.ts +0 -1
  441. package/dist/lib/core/router.js +0 -2
  442. package/dist/lib/core/router.js.map +0 -1
  443. package/dist/lib/plugins/api-key/CreateApiKey.d.ts +0 -5
  444. package/dist/lib/plugins/api-key/CreateApiKey.js.map +0 -1
  445. package/dist/lib/plugins/api-key/SettingsApiKeys.d.ts +0 -5
  446. package/dist/lib/plugins/api-key/SettingsApiKeys.js +0 -37
  447. package/dist/lib/plugins/api-key/SettingsApiKeys.js.map +0 -1
  448. package/dist/lib/plugins/api-key/index.js.map +0 -1
  449. package/dist/lib/plugins/index.d.ts +0 -4
  450. package/dist/lib/plugins/index.js +0 -5
  451. package/dist/lib/plugins/index.js.map +0 -1
  452. package/dist/lib/plugins/openapi/MakeRequest.js.map +0 -1
  453. package/dist/lib/plugins/openapi/Select.js +0 -5
  454. package/dist/lib/plugins/openapi/Select.js.map +0 -1
  455. package/dist/lib/plugins/openapi/worker/createSharedWorkerClient.d.ts +0 -5
  456. package/dist/lib/plugins/openapi/worker/createSharedWorkerClient.js.map +0 -1
  457. package/dist/lib/plugins/openapi/worker/shared-worker.d.ts +0 -1
  458. package/dist/lib/plugins/openapi/worker/shared-worker.js +0 -6
  459. package/dist/lib/plugins/openapi/worker/shared-worker.js.map +0 -1
  460. package/dist/lib/plugins/openapi/worker/worker.js.map +0 -1
  461. package/dist/vite/common.d.ts +0 -1
  462. package/dist/vite/common.js +0 -5
  463. package/dist/vite/common.js.map +0 -1
  464. package/dist/vite/plugin-html.d.ts +0 -3
  465. package/dist/vite/plugin-html.js +0 -47
  466. package/dist/vite/plugin-html.js.map +0 -1
  467. package/dist/vite/plugin-openapi-worker.d.ts +0 -4
  468. package/dist/vite/plugin-openapi-worker.js +0 -28
  469. package/dist/vite/plugin-openapi-worker.js.map +0 -1
  470. package/lib/Spinner-DWHrSHMP.js +0 -8411
  471. package/lib/clerk-Wslx_mPo.js +0 -19685
  472. package/lib/index-DNx3xWa2.js +0 -3461
  473. package/lib/state-DfftBQ9X.js +0 -312
  474. package/lib/zudoku.plugins.js +0 -19873
  475. package/src/lib/components/Link.tsx +0 -1
  476. package/src/lib/components/Router.tsx +0 -28
  477. package/src/lib/core/helmet.ts +0 -5
  478. package/src/lib/core/icons.tsx +0 -1
  479. package/src/lib/core/router.tsx +0 -1
  480. package/src/lib/plugins/api-key/SettingsApiKeys.tsx +0 -122
  481. package/src/lib/plugins/index.ts +0 -4
  482. package/src/lib/plugins/openapi/worker/shared-worker.ts +0 -5
  483. /package/dist/lib/plugins/openapi/{worker → client}/worker.d.ts +0 -0
@@ -1,651 +1,1043 @@
1
- var De = Object.defineProperty;
2
- var se = (t) => {
1
+ var $e = Object.defineProperty;
2
+ var ce = (t) => {
3
3
  throw TypeError(t);
4
4
  };
5
- var Te = (t, e, s) => e in t ? De(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
6
- var x = (t, e, s) => Te(t, typeof e != "symbol" ? e + "" : e, s), ae = (t, e, s) => e.has(t) || se("Cannot " + s);
7
- var i = (t, e, s) => (ae(t, e, "read from private field"), s ? s.call(t) : e.get(t)), m = (t, e, s) => e.has(t) ? se("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, s), u = (t, e, s, a) => (ae(t, e, "write to private field"), a ? a.call(t, s) : e.set(t, s), s);
8
- var F = (t, e, s, a) => ({
9
- set _(r) {
10
- u(t, e, r, s);
5
+ var Ve = (t, e, r) => e in t ? $e(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
6
+ var v = (t, e, r) => Ve(t, typeof e != "symbol" ? e + "" : e, r), ue = (t, e, r) => e.has(t) || ce("Cannot " + r);
7
+ var l = (t, e, r) => (ue(t, e, "read from private field"), r ? r.call(t) : e.get(t)), y = (t, e, r) => e.has(t) ? ce("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), d = (t, e, r, a) => (ue(t, e, "write to private field"), a ? a.call(t, r) : e.set(t, r), r);
8
+ var L = (t, e, r, a) => ({
9
+ set _(s) {
10
+ d(t, e, s, r);
11
11
  },
12
12
  get _() {
13
- return i(t, e, a);
13
+ return l(t, e, a);
14
14
  }
15
15
  });
16
- import { j as n, u as D, O as Ie } from "./index-DNx3xWa2.js";
17
- import { S as me, h as ge, Q as Se, n as p, m as ne, M as Ee, a as re, b as j, e as Fe, c as Re, d as He, f as Le, o as ie, r as oe, g as ze, i as le, p as ce, s as Ke, j as I, u as U, N as B, k as _e, l as Be, q as Ve, t as W, v as X, w as V, x as ve, y as Ue, z, R as xe, T as ye, C as be, A as We, B as Xe, D as $e, E as Ge, H as Je, F as Ye, G as Ze, I as et, J as tt, K as st, L as at, O as nt, P as rt, U as it, V as ot } from "./Spinner-DWHrSHMP.js";
18
- import { X as Bt, W as Vt } from "./Spinner-DWHrSHMP.js";
19
- import { memo as je, createContext as lt, useEffect as S, useRef as K, useState as ct, forwardRef as ht, Suspense as Pe, useMemo as L } from "react";
20
- import { c as ut } from "./state-DfftBQ9X.js";
21
- var y, de, dt = (de = class extends me {
16
+ import { c as U, d as Ye, R as Je, N as J, a as Xe, u as We, M as Ge, T as Ze, V as et, b as W, e as F, f as tt, C as rt, L as at } from "./Markdown-Dbzrtopg.js";
17
+ import { E as Ee, u as st, R as nt } from "./hook-DCYGmylw.js";
18
+ import { j as n, d as it, u as T, O as ot } from "./jsx-runtime-CJZJivg2.js";
19
+ import { H as Pe, a as je, M as lt, A as ct, u as ut } from "./AnchorLink-CZUp-F0P.js";
20
+ import ht, { StrictMode as Se, createContext as Ne, Component as dt, createElement as he, isValidElement as ft, memo as Ce, useMemo as V, useEffect as I, Fragment as pt, useRef as K, useState as mt, forwardRef as gt, Suspense as vt } from "react";
21
+ import { g as G } from "./_commonjsHelpers-BVfed4GL.js";
22
+ import { r as yt } from "./router-CBw2vqJE.js";
23
+ import { S as Oe, h as Ae, Q as bt, n as g, m as de, a as fe, b as P, e as xt, c as wt, d as Et, f as Pt, o as pe, r as me, g as jt, i as ge, p as ve, s as St, u as Z, j as Nt, D as Ct, k as Ot, l as At } from "./DevPortalProvider-Do9oJqme.js";
24
+ import { c as Rt } from "./state-D36MLDHk.js";
25
+ import { M as kt } from "./index-CXXn0D4E.js";
26
+ import { R as Re, T as ke, C as Me, S as Mt } from "./Spinner-BSk0ImmP.js";
27
+ import { c as ee, i as X, j as De, a as Dt } from "./util-_jwUlTBU.js";
28
+ /**
29
+ * @license lucide-react v0.378.0 - ISC
30
+ *
31
+ * This source code is licensed under the ISC license.
32
+ * See the LICENSE file in the root directory of this source tree.
33
+ */
34
+ const _e = U("ChevronRight", [
35
+ ["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]
36
+ ]);
37
+ /**
38
+ * @license lucide-react v0.378.0 - ISC
39
+ *
40
+ * This source code is licensed under the ISC license.
41
+ * See the LICENSE file in the root directory of this source tree.
42
+ */
43
+ const _t = U("ExternalLink", [
44
+ ["path", { d: "M15 3h6v6", key: "1q9fwt" }],
45
+ ["path", { d: "M10 14 21 3", key: "gplh6r" }],
46
+ ["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
47
+ ]);
48
+ /**
49
+ * @license lucide-react v0.378.0 - ISC
50
+ *
51
+ * This source code is licensed under the ISC license.
52
+ * See the LICENSE file in the root directory of this source tree.
53
+ */
54
+ const Tt = U("MoonStar", [
55
+ ["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9", key: "4ay0iu" }],
56
+ ["path", { d: "M20 3v4", key: "1olli1" }],
57
+ ["path", { d: "M22 5h-4", key: "1gvqau" }]
58
+ ]);
59
+ /**
60
+ * @license lucide-react v0.378.0 - ISC
61
+ *
62
+ * This source code is licensed under the ISC license.
63
+ * See the LICENSE file in the root directory of this source tree.
64
+ */
65
+ const Ft = U("Sun", [
66
+ ["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
67
+ ["path", { d: "M12 2v2", key: "tus03m" }],
68
+ ["path", { d: "M12 20v2", key: "1lh1kg" }],
69
+ ["path", { d: "m4.93 4.93 1.41 1.41", key: "149t6j" }],
70
+ ["path", { d: "m17.66 17.66 1.41 1.41", key: "ptbguv" }],
71
+ ["path", { d: "M2 12h2", key: "1t8f8n" }],
72
+ ["path", { d: "M20 12h2", key: "1q8mjw" }],
73
+ ["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
74
+ ["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
75
+ ]);
76
+ function Qt({ error: t }) {
77
+ return /* @__PURE__ */ n.jsx(Ee, { error: t });
78
+ }
79
+ var q = {};
80
+ const It = /* @__PURE__ */ G(yt), qt = /* @__PURE__ */ G(it), Ht = /* @__PURE__ */ G(Ye);
81
+ Object.defineProperty(q, "__esModule", { value: !0 });
82
+ var Lt = ht, E = It, te = qt, j = Ht;
83
+ function Bt(t) {
84
+ if (t && t.__esModule) return t;
85
+ var e = /* @__PURE__ */ Object.create(null);
86
+ return t && Object.keys(t).forEach(function(r) {
87
+ if (r !== "default") {
88
+ var a = Object.getOwnPropertyDescriptor(t, r);
89
+ Object.defineProperty(e, r, a.get ? a : {
90
+ enumerable: !0,
91
+ get: function() {
92
+ return t[r];
93
+ }
94
+ });
95
+ }
96
+ }), e.default = t, Object.freeze(e);
97
+ }
98
+ var x = /* @__PURE__ */ Bt(Lt);
99
+ function zt({
100
+ basename: t,
101
+ children: e,
102
+ location: r = "/",
103
+ future: a
104
+ }) {
105
+ typeof r == "string" && (r = j.parsePath(r));
106
+ let s = E.Action.Pop, o = {
107
+ pathname: r.pathname || "/",
108
+ search: r.search || "",
109
+ hash: r.hash || "",
110
+ state: r.state != null ? r.state : null,
111
+ key: r.key || "default"
112
+ }, i = Te();
113
+ return /* @__PURE__ */ x.createElement(j.Router, {
114
+ basename: t,
115
+ children: e,
116
+ location: o,
117
+ navigationType: s,
118
+ navigator: i,
119
+ future: a,
120
+ static: !0
121
+ });
122
+ }
123
+ function Ut({
124
+ context: t,
125
+ router: e,
126
+ hydrate: r = !0,
127
+ nonce: a
128
+ }) {
129
+ e && t || (process.env.NODE_ENV !== "production" ? E.UNSAFE_invariant(!1, "You must provide `router` and `context` to <StaticRouterProvider>") : E.UNSAFE_invariant(!1));
130
+ let s = {
131
+ router: e,
132
+ navigator: Te(),
133
+ static: !0,
134
+ staticContext: t,
135
+ basename: t.basename || "/"
136
+ }, o = /* @__PURE__ */ new Map(), i = "";
137
+ if (r !== !1) {
138
+ let u = {
139
+ loaderData: t.loaderData,
140
+ actionData: t.actionData,
141
+ errors: $t(t.errors)
142
+ };
143
+ i = `window.__staticRouterHydrationData = JSON.parse(${Gt(JSON.stringify(JSON.stringify(u)))});`;
144
+ }
145
+ let {
146
+ state: c
147
+ } = s.router;
148
+ return /* @__PURE__ */ x.createElement(x.Fragment, null, /* @__PURE__ */ x.createElement(j.UNSAFE_DataRouterContext.Provider, {
149
+ value: s
150
+ }, /* @__PURE__ */ x.createElement(j.UNSAFE_DataRouterStateContext.Provider, {
151
+ value: c
152
+ }, /* @__PURE__ */ x.createElement(j.UNSAFE_FetchersContext.Provider, {
153
+ value: o
154
+ }, /* @__PURE__ */ x.createElement(j.UNSAFE_ViewTransitionContext.Provider, {
155
+ value: {
156
+ isTransitioning: !1
157
+ }
158
+ }, /* @__PURE__ */ x.createElement(j.Router, {
159
+ basename: s.basename,
160
+ location: c.location,
161
+ navigationType: c.historyAction,
162
+ navigator: s.navigator,
163
+ static: s.static,
164
+ future: {
165
+ v7_relativeSplatPath: e.future.v7_relativeSplatPath
166
+ }
167
+ }, /* @__PURE__ */ x.createElement(Kt, {
168
+ routes: e.routes,
169
+ future: e.future,
170
+ state: c
171
+ })))))), i ? /* @__PURE__ */ x.createElement("script", {
172
+ suppressHydrationWarning: !0,
173
+ nonce: a,
174
+ dangerouslySetInnerHTML: {
175
+ __html: i
176
+ }
177
+ }) : null);
178
+ }
179
+ function Kt({
180
+ routes: t,
181
+ future: e,
182
+ state: r
183
+ }) {
184
+ return te.UNSAFE_useRoutesImpl(t, void 0, r, e);
185
+ }
186
+ function $t(t) {
187
+ if (!t) return null;
188
+ let e = Object.entries(t), r = {};
189
+ for (let [a, s] of e)
190
+ E.isRouteErrorResponse(s) ? r[a] = {
191
+ ...s,
192
+ __type: "RouteErrorResponse"
193
+ } : s instanceof Error ? r[a] = {
194
+ message: s.message,
195
+ __type: "Error",
196
+ // If this is a subclass (i.e., ReferenceError), send up the type so we
197
+ // can re-create the same type during hydration.
198
+ ...s.name !== "Error" ? {
199
+ __subType: s.name
200
+ } : {}
201
+ } : r[a] = s;
202
+ return r;
203
+ }
204
+ function Te() {
205
+ return {
206
+ createHref: Fe,
207
+ encodeLocation: Qe,
208
+ push(t) {
209
+ 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.`);
210
+ },
211
+ replace(t) {
212
+ 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.`);
213
+ },
214
+ go(t) {
215
+ 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.`);
216
+ },
217
+ back() {
218
+ throw new Error("You cannot use navigator.back() on the server because it is a stateless environment.");
219
+ },
220
+ forward() {
221
+ throw new Error("You cannot use navigator.forward() on the server because it is a stateless environment.");
222
+ }
223
+ };
224
+ }
225
+ function Vt(t, e) {
226
+ return E.createStaticHandler(t, {
227
+ ...e,
228
+ mapRouteProperties: te.UNSAFE_mapRouteProperties
229
+ });
230
+ }
231
+ function Yt(t, e, r = {}) {
232
+ let a = {}, s = E.UNSAFE_convertRoutesToDataRoutes(t, te.UNSAFE_mapRouteProperties, void 0, a), o = e.matches.map((c) => {
233
+ let u = a[c.route.id] || c.route;
234
+ return {
235
+ ...c,
236
+ route: u
237
+ };
238
+ }), i = (c) => `You cannot use router.${c}() on the server because it is a stateless environment`;
239
+ return {
240
+ get basename() {
241
+ return e.basename;
242
+ },
243
+ get future() {
244
+ var c, u;
245
+ return {
246
+ v7_fetcherPersist: !1,
247
+ v7_normalizeFormMethod: !1,
248
+ v7_partialHydration: ((c = r.future) == null ? void 0 : c.v7_partialHydration) === !0,
249
+ v7_prependBasename: !1,
250
+ v7_relativeSplatPath: ((u = r.future) == null ? void 0 : u.v7_relativeSplatPath) === !0,
251
+ unstable_skipActionErrorRevalidation: !1
252
+ };
253
+ },
254
+ get state() {
255
+ return {
256
+ historyAction: E.Action.Pop,
257
+ location: e.location,
258
+ matches: o,
259
+ loaderData: e.loaderData,
260
+ actionData: e.actionData,
261
+ errors: e.errors,
262
+ initialized: !0,
263
+ navigation: E.IDLE_NAVIGATION,
264
+ restoreScrollPosition: null,
265
+ preventScrollReset: !1,
266
+ revalidation: "idle",
267
+ fetchers: /* @__PURE__ */ new Map(),
268
+ blockers: /* @__PURE__ */ new Map()
269
+ };
270
+ },
271
+ get routes() {
272
+ return s;
273
+ },
274
+ get window() {
275
+ },
276
+ initialize() {
277
+ throw i("initialize");
278
+ },
279
+ subscribe() {
280
+ throw i("subscribe");
281
+ },
282
+ enableScrollRestoration() {
283
+ throw i("enableScrollRestoration");
284
+ },
285
+ navigate() {
286
+ throw i("navigate");
287
+ },
288
+ fetch() {
289
+ throw i("fetch");
290
+ },
291
+ revalidate() {
292
+ throw i("revalidate");
293
+ },
294
+ createHref: Fe,
295
+ encodeLocation: Qe,
296
+ getFetcher() {
297
+ return E.IDLE_FETCHER;
298
+ },
299
+ deleteFetcher() {
300
+ throw i("deleteFetcher");
301
+ },
302
+ dispose() {
303
+ throw i("dispose");
304
+ },
305
+ getBlocker() {
306
+ return E.IDLE_BLOCKER;
307
+ },
308
+ deleteBlocker() {
309
+ throw i("deleteBlocker");
310
+ },
311
+ patchRoutes() {
312
+ throw i("patchRoutes");
313
+ },
314
+ _internalFetchControllers: /* @__PURE__ */ new Map(),
315
+ _internalActiveDeferreds: /* @__PURE__ */ new Map(),
316
+ _internalSetRoutes() {
317
+ throw i("_internalSetRoutes");
318
+ }
319
+ };
320
+ }
321
+ function Fe(t) {
322
+ return typeof t == "string" ? t : j.createPath(t);
323
+ }
324
+ function Qe(t) {
325
+ let e = typeof t == "string" ? t : j.createPath(t);
326
+ e = e.replace(/ $/, "%20");
327
+ let r = Jt.test(e) ? new URL(e) : new URL(e, "http://localhost");
328
+ return {
329
+ pathname: r.pathname,
330
+ search: r.search,
331
+ hash: r.hash
332
+ };
333
+ }
334
+ const Jt = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Xt = {
335
+ "&": "\\u0026",
336
+ ">": "\\u003e",
337
+ "<": "\\u003c",
338
+ "\u2028": "\\u2028",
339
+ "\u2029": "\\u2029"
340
+ }, Wt = /[&><\u2028\u2029]/g;
341
+ function Gt(t) {
342
+ return t.replace(Wt, (e) => Xt[e]);
343
+ }
344
+ q.StaticRouter = zt;
345
+ var Zt = q.StaticRouterProvider = Ut;
346
+ q.createStaticHandler = Vt;
347
+ q.createStaticRouter = Yt;
348
+ const er = ({
349
+ router: t
350
+ }) => /* @__PURE__ */ n.jsx(Se, { children: /* @__PURE__ */ n.jsx(Pe, { children: /* @__PURE__ */ n.jsx(Je, { router: t }) }) }), tr = ({
351
+ router: t,
352
+ context: e,
353
+ helmetContext: r
354
+ }) => /* @__PURE__ */ n.jsx(Se, { children: /* @__PURE__ */ n.jsx(Pe, { context: r, children: /* @__PURE__ */ n.jsx(Zt, { router: t, context: e }) }) });
355
+ var w, be, rr = (be = class extends Oe {
22
356
  constructor(e = {}) {
23
357
  super();
24
- m(this, y);
25
- this.config = e, u(this, y, /* @__PURE__ */ new Map());
358
+ y(this, w);
359
+ this.config = e, d(this, w, /* @__PURE__ */ new Map());
26
360
  }
27
- build(e, s, a) {
28
- const r = s.queryKey, o = s.queryHash ?? ge(r, s);
29
- let l = this.get(o);
30
- return l || (l = new Se({
361
+ build(e, r, a) {
362
+ const s = r.queryKey, o = r.queryHash ?? Ae(s, r);
363
+ let i = this.get(o);
364
+ return i || (i = new bt({
31
365
  cache: this,
32
- queryKey: r,
366
+ queryKey: s,
33
367
  queryHash: o,
34
- options: e.defaultQueryOptions(s),
368
+ options: e.defaultQueryOptions(r),
35
369
  state: a,
36
- defaultOptions: e.getQueryDefaults(r)
37
- }), this.add(l)), l;
370
+ defaultOptions: e.getQueryDefaults(s)
371
+ }), this.add(i)), i;
38
372
  }
39
373
  add(e) {
40
- i(this, y).has(e.queryHash) || (i(this, y).set(e.queryHash, e), this.notify({
374
+ l(this, w).has(e.queryHash) || (l(this, w).set(e.queryHash, e), this.notify({
41
375
  type: "added",
42
376
  query: e
43
377
  }));
44
378
  }
45
379
  remove(e) {
46
- const s = i(this, y).get(e.queryHash);
47
- s && (e.destroy(), s === e && i(this, y).delete(e.queryHash), this.notify({ type: "removed", query: e }));
380
+ const r = l(this, w).get(e.queryHash);
381
+ r && (e.destroy(), r === e && l(this, w).delete(e.queryHash), this.notify({ type: "removed", query: e }));
48
382
  }
49
383
  clear() {
50
- p.batch(() => {
384
+ g.batch(() => {
51
385
  this.getAll().forEach((e) => {
52
386
  this.remove(e);
53
387
  });
54
388
  });
55
389
  }
56
390
  get(e) {
57
- return i(this, y).get(e);
391
+ return l(this, w).get(e);
58
392
  }
59
393
  getAll() {
60
- return [...i(this, y).values()];
394
+ return [...l(this, w).values()];
61
395
  }
62
396
  find(e) {
63
- const s = { exact: !0, ...e };
397
+ const r = { exact: !0, ...e };
64
398
  return this.getAll().find(
65
- (a) => ne(s, a)
399
+ (a) => de(r, a)
66
400
  );
67
401
  }
68
402
  findAll(e = {}) {
69
- const s = this.getAll();
70
- return Object.keys(e).length > 0 ? s.filter((a) => ne(e, a)) : s;
403
+ const r = this.getAll();
404
+ return Object.keys(e).length > 0 ? r.filter((a) => de(e, a)) : r;
71
405
  }
72
406
  notify(e) {
73
- p.batch(() => {
74
- this.listeners.forEach((s) => {
75
- s(e);
407
+ g.batch(() => {
408
+ this.listeners.forEach((r) => {
409
+ r(e);
76
410
  });
77
411
  });
78
412
  }
79
413
  onFocus() {
80
- p.batch(() => {
414
+ g.batch(() => {
81
415
  this.getAll().forEach((e) => {
82
416
  e.onFocus();
83
417
  });
84
418
  });
85
419
  }
86
420
  onOnline() {
87
- p.batch(() => {
421
+ g.batch(() => {
88
422
  this.getAll().forEach((e) => {
89
423
  e.onOnline();
90
424
  });
91
425
  });
92
426
  }
93
- }, y = new WeakMap(), de), f, T, fe, ft = (fe = class extends me {
427
+ }, w = new WeakMap(), be), m, Q, xe, ar = (xe = class extends Oe {
94
428
  constructor(e = {}) {
95
429
  super();
96
- m(this, f);
97
- m(this, T);
98
- this.config = e, u(this, f, /* @__PURE__ */ new Map()), u(this, T, Date.now());
430
+ y(this, m);
431
+ y(this, Q);
432
+ this.config = e, d(this, m, /* @__PURE__ */ new Map()), d(this, Q, Date.now());
99
433
  }
100
- build(e, s, a) {
101
- const r = new Ee({
434
+ build(e, r, a) {
435
+ const s = new kt({
102
436
  mutationCache: this,
103
- mutationId: ++F(this, T)._,
104
- options: e.defaultMutationOptions(s),
437
+ mutationId: ++L(this, Q)._,
438
+ options: e.defaultMutationOptions(r),
105
439
  state: a
106
440
  });
107
- return this.add(r), r;
441
+ return this.add(s), s;
108
442
  }
109
443
  add(e) {
110
- const s = R(e), a = i(this, f).get(s) ?? [];
111
- a.push(e), i(this, f).set(s, a), this.notify({ type: "added", mutation: e });
444
+ const r = B(e), a = l(this, m).get(r) ?? [];
445
+ a.push(e), l(this, m).set(r, a), this.notify({ type: "added", mutation: e });
112
446
  }
113
447
  remove(e) {
114
448
  var a;
115
- const s = R(e);
116
- if (i(this, f).has(s)) {
117
- const r = (a = i(this, f).get(s)) == null ? void 0 : a.filter((o) => o !== e);
118
- r && (r.length === 0 ? i(this, f).delete(s) : i(this, f).set(s, r));
449
+ const r = B(e);
450
+ if (l(this, m).has(r)) {
451
+ const s = (a = l(this, m).get(r)) == null ? void 0 : a.filter((o) => o !== e);
452
+ s && (s.length === 0 ? l(this, m).delete(r) : l(this, m).set(r, s));
119
453
  }
120
454
  this.notify({ type: "removed", mutation: e });
121
455
  }
122
456
  canRun(e) {
123
457
  var a;
124
- const s = (a = i(this, f).get(R(e))) == null ? void 0 : a.find((r) => r.state.status === "pending");
125
- return !s || s === e;
458
+ const r = (a = l(this, m).get(B(e))) == null ? void 0 : a.find((s) => s.state.status === "pending");
459
+ return !r || r === e;
126
460
  }
127
461
  runNext(e) {
128
462
  var a;
129
- const s = (a = i(this, f).get(R(e))) == null ? void 0 : a.find((r) => r !== e && r.state.isPaused);
130
- return (s == null ? void 0 : s.continue()) ?? Promise.resolve();
463
+ const r = (a = l(this, m).get(B(e))) == null ? void 0 : a.find((s) => s !== e && s.state.isPaused);
464
+ return (r == null ? void 0 : r.continue()) ?? Promise.resolve();
131
465
  }
132
466
  clear() {
133
- p.batch(() => {
467
+ g.batch(() => {
134
468
  this.getAll().forEach((e) => {
135
469
  this.remove(e);
136
470
  });
137
471
  });
138
472
  }
139
473
  getAll() {
140
- return [...i(this, f).values()].flat();
474
+ return [...l(this, m).values()].flat();
141
475
  }
142
476
  find(e) {
143
- const s = { exact: !0, ...e };
477
+ const r = { exact: !0, ...e };
144
478
  return this.getAll().find(
145
- (a) => re(s, a)
479
+ (a) => fe(r, a)
146
480
  );
147
481
  }
148
482
  findAll(e = {}) {
149
- return this.getAll().filter((s) => re(e, s));
483
+ return this.getAll().filter((r) => fe(e, r));
150
484
  }
151
485
  notify(e) {
152
- p.batch(() => {
153
- this.listeners.forEach((s) => {
154
- s(e);
486
+ g.batch(() => {
487
+ this.listeners.forEach((r) => {
488
+ r(e);
155
489
  });
156
490
  });
157
491
  }
158
492
  resumePausedMutations() {
159
- const e = this.getAll().filter((s) => s.state.isPaused);
160
- return p.batch(
493
+ const e = this.getAll().filter((r) => r.state.isPaused);
494
+ return g.batch(
161
495
  () => Promise.all(
162
- e.map((s) => s.continue().catch(j))
496
+ e.map((r) => r.continue().catch(P))
163
497
  )
164
498
  );
165
499
  }
166
- }, f = new WeakMap(), T = new WeakMap(), fe);
167
- function R(t) {
500
+ }, m = new WeakMap(), Q = new WeakMap(), xe);
501
+ function B(t) {
168
502
  var e;
169
503
  return ((e = t.options.scope) == null ? void 0 : e.id) ?? String(t.mutationId);
170
504
  }
171
- function pt(t) {
505
+ function sr(t) {
172
506
  return {
173
- onFetch: (e, s) => {
507
+ onFetch: (e, r) => {
174
508
  const a = async () => {
175
- var $, G, J, Y, Z;
176
- const r = e.options, o = (J = (G = ($ = e.fetchOptions) == null ? void 0 : $.meta) == null ? void 0 : G.fetchMore) == null ? void 0 : J.direction, l = ((Y = e.state.data) == null ? void 0 : Y.pages) || [], h = ((Z = e.state.data) == null ? void 0 : Z.pageParams) || [], g = { pages: [], pageParams: [] };
177
- let b = !1;
178
- const d = (v) => {
179
- Object.defineProperty(v, "signal", {
509
+ var re, ae, se, ne, ie;
510
+ const s = e.options, o = (se = (ae = (re = e.fetchOptions) == null ? void 0 : re.meta) == null ? void 0 : ae.fetchMore) == null ? void 0 : se.direction, i = ((ne = e.state.data) == null ? void 0 : ne.pages) || [], c = ((ie = e.state.data) == null ? void 0 : ie.pageParams) || [], u = { pages: [], pageParams: [] };
511
+ let f = !1;
512
+ const p = (b) => {
513
+ Object.defineProperty(b, "signal", {
180
514
  enumerable: !0,
181
- get: () => (e.signal.aborted ? b = !0 : e.signal.addEventListener("abort", () => {
182
- b = !0;
515
+ get: () => (e.signal.aborted ? f = !0 : e.signal.addEventListener("abort", () => {
516
+ f = !0;
183
517
  }), e.signal)
184
518
  });
185
- }, Qe = Fe(e.options, e.fetchOptions), _ = async (v, P, O) => {
186
- if (b)
519
+ }, Ue = xt(e.options, e.fetchOptions), $ = async (b, S, A) => {
520
+ if (f)
187
521
  return Promise.reject();
188
- if (P == null && v.pages.length)
189
- return Promise.resolve(v);
190
- const E = {
522
+ if (S == null && b.pages.length)
523
+ return Promise.resolve(b);
524
+ const H = {
191
525
  queryKey: e.queryKey,
192
- pageParam: P,
193
- direction: O ? "backward" : "forward",
526
+ pageParam: S,
527
+ direction: A ? "backward" : "forward",
194
528
  meta: e.options.meta
195
529
  };
196
- d(E);
197
- const qe = await Qe(
198
- E
199
- ), { maxPages: ee } = e.options, te = O ? Re : He;
530
+ p(H);
531
+ const Ke = await Ue(
532
+ H
533
+ ), { maxPages: oe } = e.options, le = A ? wt : Et;
200
534
  return {
201
- pages: te(v.pages, qe, ee),
202
- pageParams: te(v.pageParams, P, ee)
535
+ pages: le(b.pages, Ke, oe),
536
+ pageParams: le(b.pageParams, S, oe)
203
537
  };
204
538
  };
205
- let C;
206
- if (o && l.length) {
207
- const v = o === "backward", P = v ? mt : he, O = {
208
- pages: l,
209
- pageParams: h
210
- }, E = P(r, O);
211
- C = await _(O, E, v);
539
+ let R;
540
+ if (o && i.length) {
541
+ const b = o === "backward", S = b ? nr : ye, A = {
542
+ pages: i,
543
+ pageParams: c
544
+ }, H = S(s, A);
545
+ R = await $(A, H, b);
212
546
  } else {
213
- C = await _(
214
- g,
215
- h[0] ?? r.initialPageParam
547
+ R = await $(
548
+ u,
549
+ c[0] ?? s.initialPageParam
216
550
  );
217
- const v = t ?? l.length;
218
- for (let P = 1; P < v; P++) {
219
- const O = he(r, C);
220
- C = await _(C, O);
551
+ const b = t ?? i.length;
552
+ for (let S = 1; S < b; S++) {
553
+ const A = ye(s, R);
554
+ R = await $(R, A);
221
555
  }
222
556
  }
223
- return C;
557
+ return R;
224
558
  };
225
559
  e.options.persister ? e.fetchFn = () => {
226
- var r, o;
227
- return (o = (r = e.options).persister) == null ? void 0 : o.call(
228
- r,
560
+ var s, o;
561
+ return (o = (s = e.options).persister) == null ? void 0 : o.call(
562
+ s,
229
563
  a,
230
564
  {
231
565
  queryKey: e.queryKey,
232
566
  meta: e.options.meta,
233
567
  signal: e.signal
234
568
  },
235
- s
569
+ r
236
570
  );
237
571
  } : e.fetchFn = a;
238
572
  }
239
573
  };
240
574
  }
241
- function he(t, { pages: e, pageParams: s }) {
575
+ function ye(t, { pages: e, pageParams: r }) {
242
576
  const a = e.length - 1;
243
577
  return t.getNextPageParam(
244
578
  e[a],
245
579
  e,
246
- s[a],
247
- s
580
+ r[a],
581
+ r
248
582
  );
249
583
  }
250
- function mt(t, { pages: e, pageParams: s }) {
584
+ function nr(t, { pages: e, pageParams: r }) {
251
585
  var a;
252
586
  return (a = t.getPreviousPageParam) == null ? void 0 : a.call(
253
587
  t,
254
588
  e[0],
255
589
  e,
256
- s[0],
257
- s
590
+ r[0],
591
+ r
258
592
  );
259
593
  }
260
- var c, w, N, M, A, k, Q, q, pe, gt = (pe = class {
594
+ var h, N, C, k, M, O, D, _, we, ir = (we = class {
261
595
  constructor(t = {}) {
262
- m(this, c);
263
- m(this, w);
264
- m(this, N);
265
- m(this, M);
266
- m(this, A);
267
- m(this, k);
268
- m(this, Q);
269
- m(this, q);
270
- u(this, c, t.queryCache || new dt()), u(this, w, t.mutationCache || new ft()), u(this, N, t.defaultOptions || {}), u(this, M, /* @__PURE__ */ new Map()), u(this, A, /* @__PURE__ */ new Map()), u(this, k, 0);
596
+ y(this, h);
597
+ y(this, N);
598
+ y(this, C);
599
+ y(this, k);
600
+ y(this, M);
601
+ y(this, O);
602
+ y(this, D);
603
+ y(this, _);
604
+ d(this, h, t.queryCache || new rr()), d(this, N, t.mutationCache || new ar()), d(this, C, t.defaultOptions || {}), d(this, k, /* @__PURE__ */ new Map()), d(this, M, /* @__PURE__ */ new Map()), d(this, O, 0);
271
605
  }
272
606
  mount() {
273
- F(this, k)._++, i(this, k) === 1 && (u(this, Q, Le.subscribe(async (t) => {
274
- t && (await this.resumePausedMutations(), i(this, c).onFocus());
275
- })), u(this, q, ie.subscribe(async (t) => {
276
- t && (await this.resumePausedMutations(), i(this, c).onOnline());
607
+ L(this, O)._++, l(this, O) === 1 && (d(this, D, Pt.subscribe(async (t) => {
608
+ t && (await this.resumePausedMutations(), l(this, h).onFocus());
609
+ })), d(this, _, pe.subscribe(async (t) => {
610
+ t && (await this.resumePausedMutations(), l(this, h).onOnline());
277
611
  })));
278
612
  }
279
613
  unmount() {
280
614
  var t, e;
281
- F(this, k)._--, i(this, k) === 0 && ((t = i(this, Q)) == null || t.call(this), u(this, Q, void 0), (e = i(this, q)) == null || e.call(this), u(this, q, void 0));
615
+ L(this, O)._--, l(this, O) === 0 && ((t = l(this, D)) == null || t.call(this), d(this, D, void 0), (e = l(this, _)) == null || e.call(this), d(this, _, void 0));
282
616
  }
283
617
  isFetching(t) {
284
- return i(this, c).findAll({ ...t, fetchStatus: "fetching" }).length;
618
+ return l(this, h).findAll({ ...t, fetchStatus: "fetching" }).length;
285
619
  }
286
620
  isMutating(t) {
287
- return i(this, w).findAll({ ...t, status: "pending" }).length;
621
+ return l(this, N).findAll({ ...t, status: "pending" }).length;
288
622
  }
289
623
  getQueryData(t) {
290
- var s;
624
+ var r;
291
625
  const e = this.defaultQueryOptions({ queryKey: t });
292
- return (s = i(this, c).get(e.queryHash)) == null ? void 0 : s.state.data;
626
+ return (r = l(this, h).get(e.queryHash)) == null ? void 0 : r.state.data;
293
627
  }
294
628
  ensureQueryData(t) {
295
629
  const e = this.getQueryData(t.queryKey);
296
630
  if (e === void 0)
297
631
  return this.fetchQuery(t);
298
632
  {
299
- const s = this.defaultQueryOptions(t), a = i(this, c).build(this, s);
300
- return t.revalidateIfStale && a.isStaleByTime(oe(s.staleTime, a)) && this.prefetchQuery(s), Promise.resolve(e);
633
+ const r = this.defaultQueryOptions(t), a = l(this, h).build(this, r);
634
+ return t.revalidateIfStale && a.isStaleByTime(me(r.staleTime, a)) && this.prefetchQuery(r), Promise.resolve(e);
301
635
  }
302
636
  }
303
637
  getQueriesData(t) {
304
- return i(this, c).findAll(t).map(({ queryKey: e, state: s }) => {
305
- const a = s.data;
638
+ return l(this, h).findAll(t).map(({ queryKey: e, state: r }) => {
639
+ const a = r.data;
306
640
  return [e, a];
307
641
  });
308
642
  }
309
- setQueryData(t, e, s) {
310
- const a = this.defaultQueryOptions({ queryKey: t }), r = i(this, c).get(
643
+ setQueryData(t, e, r) {
644
+ const a = this.defaultQueryOptions({ queryKey: t }), s = l(this, h).get(
311
645
  a.queryHash
312
- ), o = r == null ? void 0 : r.state.data, l = ze(e, o);
313
- if (l !== void 0)
314
- return i(this, c).build(this, a).setData(l, { ...s, manual: !0 });
646
+ ), o = s == null ? void 0 : s.state.data, i = jt(e, o);
647
+ if (i !== void 0)
648
+ return l(this, h).build(this, a).setData(i, { ...r, manual: !0 });
315
649
  }
316
- setQueriesData(t, e, s) {
317
- return p.batch(
318
- () => i(this, c).findAll(t).map(({ queryKey: a }) => [
650
+ setQueriesData(t, e, r) {
651
+ return g.batch(
652
+ () => l(this, h).findAll(t).map(({ queryKey: a }) => [
319
653
  a,
320
- this.setQueryData(a, e, s)
654
+ this.setQueryData(a, e, r)
321
655
  ])
322
656
  );
323
657
  }
324
658
  getQueryState(t) {
325
- var s;
659
+ var r;
326
660
  const e = this.defaultQueryOptions({ queryKey: t });
327
- return (s = i(this, c).get(e.queryHash)) == null ? void 0 : s.state;
661
+ return (r = l(this, h).get(e.queryHash)) == null ? void 0 : r.state;
328
662
  }
329
663
  removeQueries(t) {
330
- const e = i(this, c);
331
- p.batch(() => {
332
- e.findAll(t).forEach((s) => {
333
- e.remove(s);
664
+ const e = l(this, h);
665
+ g.batch(() => {
666
+ e.findAll(t).forEach((r) => {
667
+ e.remove(r);
334
668
  });
335
669
  });
336
670
  }
337
671
  resetQueries(t, e) {
338
- const s = i(this, c), a = {
672
+ const r = l(this, h), a = {
339
673
  type: "active",
340
674
  ...t
341
675
  };
342
- return p.batch(() => (s.findAll(t).forEach((r) => {
343
- r.reset();
676
+ return g.batch(() => (r.findAll(t).forEach((s) => {
677
+ s.reset();
344
678
  }), this.refetchQueries(a, e)));
345
679
  }
346
680
  cancelQueries(t = {}, e = {}) {
347
- const s = { revert: !0, ...e }, a = p.batch(
348
- () => i(this, c).findAll(t).map((r) => r.cancel(s))
681
+ const r = { revert: !0, ...e }, a = g.batch(
682
+ () => l(this, h).findAll(t).map((s) => s.cancel(r))
349
683
  );
350
- return Promise.all(a).then(j).catch(j);
684
+ return Promise.all(a).then(P).catch(P);
351
685
  }
352
686
  invalidateQueries(t = {}, e = {}) {
353
- return p.batch(() => {
354
- if (i(this, c).findAll(t).forEach((a) => {
687
+ return g.batch(() => {
688
+ if (l(this, h).findAll(t).forEach((a) => {
355
689
  a.invalidate();
356
690
  }), t.refetchType === "none")
357
691
  return Promise.resolve();
358
- const s = {
692
+ const r = {
359
693
  ...t,
360
694
  type: t.refetchType ?? t.type ?? "active"
361
695
  };
362
- return this.refetchQueries(s, e);
696
+ return this.refetchQueries(r, e);
363
697
  });
364
698
  }
365
699
  refetchQueries(t = {}, e) {
366
- const s = {
700
+ const r = {
367
701
  ...e,
368
702
  cancelRefetch: (e == null ? void 0 : e.cancelRefetch) ?? !0
369
- }, a = p.batch(
370
- () => i(this, c).findAll(t).filter((r) => !r.isDisabled()).map((r) => {
371
- let o = r.fetch(void 0, s);
372
- return s.throwOnError || (o = o.catch(j)), r.state.fetchStatus === "paused" ? Promise.resolve() : o;
703
+ }, a = g.batch(
704
+ () => l(this, h).findAll(t).filter((s) => !s.isDisabled()).map((s) => {
705
+ let o = s.fetch(void 0, r);
706
+ return r.throwOnError || (o = o.catch(P)), s.state.fetchStatus === "paused" ? Promise.resolve() : o;
373
707
  })
374
708
  );
375
- return Promise.all(a).then(j);
709
+ return Promise.all(a).then(P);
376
710
  }
377
711
  fetchQuery(t) {
378
712
  const e = this.defaultQueryOptions(t);
379
713
  e.retry === void 0 && (e.retry = !1);
380
- const s = i(this, c).build(this, e);
381
- return s.isStaleByTime(
382
- oe(e.staleTime, s)
383
- ) ? s.fetch(e) : Promise.resolve(s.state.data);
714
+ const r = l(this, h).build(this, e);
715
+ return r.isStaleByTime(
716
+ me(e.staleTime, r)
717
+ ) ? r.fetch(e) : Promise.resolve(r.state.data);
384
718
  }
385
719
  prefetchQuery(t) {
386
- return this.fetchQuery(t).then(j).catch(j);
720
+ return this.fetchQuery(t).then(P).catch(P);
387
721
  }
388
722
  fetchInfiniteQuery(t) {
389
- return t.behavior = pt(t.pages), this.fetchQuery(t);
723
+ return t.behavior = sr(t.pages), this.fetchQuery(t);
390
724
  }
391
725
  prefetchInfiniteQuery(t) {
392
- return this.fetchInfiniteQuery(t).then(j).catch(j);
726
+ return this.fetchInfiniteQuery(t).then(P).catch(P);
393
727
  }
394
728
  resumePausedMutations() {
395
- return ie.isOnline() ? i(this, w).resumePausedMutations() : Promise.resolve();
729
+ return pe.isOnline() ? l(this, N).resumePausedMutations() : Promise.resolve();
396
730
  }
397
731
  getQueryCache() {
398
- return i(this, c);
732
+ return l(this, h);
399
733
  }
400
734
  getMutationCache() {
401
- return i(this, w);
735
+ return l(this, N);
402
736
  }
403
737
  getDefaultOptions() {
404
- return i(this, N);
738
+ return l(this, C);
405
739
  }
406
740
  setDefaultOptions(t) {
407
- u(this, N, t);
741
+ d(this, C, t);
408
742
  }
409
743
  setQueryDefaults(t, e) {
410
- i(this, M).set(le(t), {
744
+ l(this, k).set(ge(t), {
411
745
  queryKey: t,
412
746
  defaultOptions: e
413
747
  });
414
748
  }
415
749
  getQueryDefaults(t) {
416
- const e = [...i(this, M).values()];
417
- let s = {};
750
+ const e = [...l(this, k).values()];
751
+ let r = {};
418
752
  return e.forEach((a) => {
419
- ce(t, a.queryKey) && (s = { ...s, ...a.defaultOptions });
420
- }), s;
753
+ ve(t, a.queryKey) && (r = { ...r, ...a.defaultOptions });
754
+ }), r;
421
755
  }
422
756
  setMutationDefaults(t, e) {
423
- i(this, A).set(le(t), {
757
+ l(this, M).set(ge(t), {
424
758
  mutationKey: t,
425
759
  defaultOptions: e
426
760
  });
427
761
  }
428
762
  getMutationDefaults(t) {
429
- const e = [...i(this, A).values()];
430
- let s = {};
763
+ const e = [...l(this, M).values()];
764
+ let r = {};
431
765
  return e.forEach((a) => {
432
- ce(t, a.mutationKey) && (s = { ...s, ...a.defaultOptions });
433
- }), s;
766
+ ve(t, a.mutationKey) && (r = { ...r, ...a.defaultOptions });
767
+ }), r;
434
768
  }
435
769
  defaultQueryOptions(t) {
436
770
  if (t._defaulted)
437
771
  return t;
438
772
  const e = {
439
- ...i(this, N).queries,
773
+ ...l(this, C).queries,
440
774
  ...this.getQueryDefaults(t.queryKey),
441
775
  ...t,
442
776
  _defaulted: !0
443
777
  };
444
- return e.queryHash || (e.queryHash = ge(
778
+ return e.queryHash || (e.queryHash = Ae(
445
779
  e.queryKey,
446
780
  e
447
- )), e.refetchOnReconnect === void 0 && (e.refetchOnReconnect = e.networkMode !== "always"), e.throwOnError === void 0 && (e.throwOnError = !!e.suspense), !e.networkMode && e.persister && (e.networkMode = "offlineFirst"), e.enabled !== !0 && e.queryFn === Ke && (e.enabled = !1), e;
781
+ )), 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 === St && (e.enabled = !1), e;
448
782
  }
449
783
  defaultMutationOptions(t) {
450
784
  return t != null && t._defaulted ? t : {
451
- ...i(this, N).mutations,
785
+ ...l(this, C).mutations,
452
786
  ...(t == null ? void 0 : t.mutationKey) && this.getMutationDefaults(t.mutationKey),
453
787
  ...t,
454
788
  _defaulted: !0
455
789
  };
456
790
  }
457
791
  clear() {
458
- i(this, c).clear(), i(this, w).clear();
792
+ l(this, h).clear(), l(this, N).clear();
459
793
  }
460
- }, c = new WeakMap(), w = new WeakMap(), N = new WeakMap(), M = new WeakMap(), A = new WeakMap(), k = new WeakMap(), Q = new WeakMap(), q = new WeakMap(), pe);
461
- const we = (t) => "getRoutes" in t && typeof t.getRoutes == "function", vt = (t) => "initialize" in t && typeof t.initialize == "function", xt = (t) => "getIdentities" in t && typeof t.getIdentities == "function", Ne = new gt(), yt = ut(() => ({}));
462
- class bt {
794
+ }, h = new WeakMap(), N = new WeakMap(), C = new WeakMap(), k = new WeakMap(), M = new WeakMap(), O = new WeakMap(), D = new WeakMap(), _ = new WeakMap(), we);
795
+ const or = Ne(null), Y = {
796
+ didCatch: !1,
797
+ error: null
798
+ };
799
+ class lr extends dt {
463
800
  constructor(e) {
464
- x(this, "plugins", []);
465
- x(this, "navigationPlugins");
466
- x(this, "navigation");
467
- x(this, "meta");
468
- x(this, "authentication");
469
- x(this, "state");
470
- x(this, "initialize", async () => {
471
- var e;
472
- this.plugins.filter(vt).forEach((s) => s.initialize(this)), (e = this.authentication) == null || e.initialize(this);
801
+ super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = Y;
802
+ }
803
+ static getDerivedStateFromError(e) {
804
+ return {
805
+ didCatch: !0,
806
+ error: e
807
+ };
808
+ }
809
+ resetErrorBoundary() {
810
+ const {
811
+ error: e
812
+ } = this.state;
813
+ if (e !== null) {
814
+ for (var r, a, s = arguments.length, o = new Array(s), i = 0; i < s; i++)
815
+ o[i] = arguments[i];
816
+ (r = (a = this.props).onReset) === null || r === void 0 || r.call(a, {
817
+ args: o,
818
+ reason: "imperative-api"
819
+ }), this.setState(Y);
820
+ }
821
+ }
822
+ componentDidCatch(e, r) {
823
+ var a, s;
824
+ (a = (s = this.props).onError) === null || a === void 0 || a.call(s, e, r);
825
+ }
826
+ componentDidUpdate(e, r) {
827
+ const {
828
+ didCatch: a
829
+ } = this.state, {
830
+ resetKeys: s
831
+ } = this.props;
832
+ if (a && r.error !== null && cr(e.resetKeys, s)) {
833
+ var o, i;
834
+ (o = (i = this.props).onReset) === null || o === void 0 || o.call(i, {
835
+ next: s,
836
+ prev: e.resetKeys,
837
+ reason: "keys"
838
+ }), this.setState(Y);
839
+ }
840
+ }
841
+ render() {
842
+ const {
843
+ children: e,
844
+ fallbackRender: r,
845
+ FallbackComponent: a,
846
+ fallback: s
847
+ } = this.props, {
848
+ didCatch: o,
849
+ error: i
850
+ } = this.state;
851
+ let c = e;
852
+ if (o) {
853
+ const u = {
854
+ error: i,
855
+ resetErrorBoundary: this.resetErrorBoundary
856
+ };
857
+ if (typeof r == "function")
858
+ c = r(u);
859
+ else if (a)
860
+ c = he(a, u);
861
+ else if (s === null || ft(s))
862
+ c = s;
863
+ else
864
+ throw i;
865
+ }
866
+ return he(or.Provider, {
867
+ value: {
868
+ didCatch: o,
869
+ error: i,
870
+ resetErrorBoundary: this.resetErrorBoundary
871
+ }
872
+ }, c);
873
+ }
874
+ }
875
+ function cr() {
876
+ let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
877
+ return t.length !== e.length || t.some((r, a) => !Object.is(r, e[a]));
878
+ }
879
+ const ur = (t) => "getRoutes" in t && typeof t.getRoutes == "function", hr = (t) => "initialize" in t && typeof t.initialize == "function", dr = (t) => "getHead" in t && typeof t.getHead == "function", fr = (t) => "getIdentities" in t && typeof t.getIdentities == "function", Ie = new ir(), pr = Rt(() => ({}));
880
+ class mr {
881
+ constructor(e) {
882
+ v(this, "plugins", []);
883
+ v(this, "navigation");
884
+ v(this, "meta");
885
+ v(this, "page");
886
+ v(this, "authentication");
887
+ v(this, "state");
888
+ v(this, "navigationPlugins");
889
+ v(this, "initialize", async () => {
890
+ await Promise.all([
891
+ this.plugins.filter(hr).map((e) => {
892
+ var r;
893
+ return (r = e.initialize) == null ? void 0 : r.call(e, this);
894
+ })
895
+ ]);
473
896
  });
474
- x(this, "invalidateCache", async (e) => {
475
- await Ne.invalidateQueries({ queryKey: e });
897
+ v(this, "invalidateCache", async (e) => {
898
+ await Ie.invalidateQueries({ queryKey: e });
476
899
  });
477
- x(this, "getApiIdentities", async () => (await Promise.all(
478
- this.plugins.filter(xt).map((s) => s.getIdentities(this))
900
+ v(this, "getApiIdentities", async () => (await Promise.all(
901
+ this.plugins.filter(fr).map((r) => r.getIdentities(this))
479
902
  )).flat());
480
- x(this, "getNavigation", async (e) => (await Promise.all(
903
+ v(this, "getNavigation", async (e) => (await Promise.all(
481
904
  this.navigationPlugins.map(
482
905
  async (a) => {
483
- var r;
484
- return (r = a.getNavigation) == null ? void 0 : r.call(a, e);
906
+ var s;
907
+ return (s = a.getNavigation) == null ? void 0 : s.call(a, e);
485
908
  }
486
909
  )
487
910
  )).flatMap((a) => a ?? []));
488
- this.plugins = e.plugins ?? [], this.navigation = e.navigation, this.navigationPlugins = this.plugins.filter(we), this.authentication = e.authentication, this.meta = e.meta, this.state = yt;
911
+ this.plugins = e.plugins ?? [], this.navigation = e.navigation, this.navigationPlugins = this.plugins.filter(ur), this.authentication = e.authentication, this.meta = e.metadata, this.page = e.page, this.state = pr;
489
912
  }
490
913
  async signRequest(e) {
491
914
  if (!this.authentication)
492
915
  throw new Error("No authentication provider configured");
493
- const s = await this.authentication.getAccessToken();
494
- return e.headers.set("Authorization", `Bearer ${s}`), e;
916
+ const r = await this.authentication.getAccessToken();
917
+ return e.headers.set("Authorization", `Bearer ${r}`), e;
495
918
  }
496
919
  }
497
- /**
498
- * @license lucide-react v0.378.0 - ISC
499
- *
500
- * This source code is licensed under the ISC license.
501
- * See the LICENSE file in the root directory of this source tree.
502
- */
503
- const ke = I("ChevronRight", [
504
- ["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]
505
- ]);
506
- /**
507
- * @license lucide-react v0.378.0 - ISC
508
- *
509
- * This source code is licensed under the ISC license.
510
- * See the LICENSE file in the root directory of this source tree.
511
- */
512
- const jt = I("ExternalLink", [
513
- ["path", { d: "M15 3h6v6", key: "1q9fwt" }],
514
- ["path", { d: "M10 14 21 3", key: "gplh6r" }],
515
- ["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
516
- ]);
517
- /**
518
- * @license lucide-react v0.378.0 - ISC
519
- *
520
- * This source code is licensed under the ISC license.
521
- * See the LICENSE file in the root directory of this source tree.
522
- */
523
- const Pt = I("MoonStar", [
524
- ["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9", key: "4ay0iu" }],
525
- ["path", { d: "M20 3v4", key: "1olli1" }],
526
- ["path", { d: "M22 5h-4", key: "1gvqau" }]
527
- ]);
528
- /**
529
- * @license lucide-react v0.378.0 - ISC
530
- *
531
- * This source code is licensed under the ISC license.
532
- * See the LICENSE file in the root directory of this source tree.
533
- */
534
- const wt = I("Search", [
535
- ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
536
- ["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
537
- ]);
538
- /**
539
- * @license lucide-react v0.378.0 - ISC
540
- *
541
- * This source code is licensed under the ISC license.
542
- * See the LICENSE file in the root directory of this source tree.
543
- */
544
- const Nt = I("Sun", [
545
- ["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
546
- ["path", { d: "M12 2v2", key: "tus03m" }],
547
- ["path", { d: "M12 20v2", key: "1lh1kg" }],
548
- ["path", { d: "m4.93 4.93 1.41 1.41", key: "149t6j" }],
549
- ["path", { d: "m17.66 17.66 1.41 1.41", key: "ptbguv" }],
550
- ["path", { d: "M2 12h2", key: "1t8f8n" }],
551
- ["path", { d: "M20 12h2", key: "1q8mjw" }],
552
- ["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
553
- ["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
554
- ]), kt = () => {
555
- const { navigation: t } = U();
556
- return /* @__PURE__ */ n.jsx("nav", { className: "border-b border-border text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ n.jsx("ul", { className: "flex flex-row items-center gap-8", children: t.map((e) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx(
557
- B,
920
+ function gr({ error: t, resetErrorBoundary: e }) {
921
+ return /* @__PURE__ */ n.jsx(Ee, { error: t });
922
+ }
923
+ const vr = () => {
924
+ const { navigation: t } = Z();
925
+ return t.length <= 1 ? null : /* @__PURE__ */ n.jsx("nav", { className: "border-b border-border text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ n.jsx("ul", { className: "flex flex-row items-center gap-8", children: t.map((e) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx(
926
+ J,
558
927
  {
559
- className: ({ isActive: s }) => _e(
928
+ className: ({ isActive: r }) => Xe(
560
929
  "block py-3.5 font-medium -mb-px border-b-2",
561
- s ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
930
+ r ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
562
931
  ),
563
932
  to: e.path,
564
933
  children: e.label
565
934
  }
566
935
  ) }, e.label)) }) });
567
- }, Oe = je(function() {
568
- const [e, s] = Be(), { isAuthenticated: a, profile: r, isAuthEnabled: o, login: l, logout: h } = Ve(), { meta: g } = U(), b = e ? Pt : Nt;
936
+ }, qe = Ce(function() {
937
+ const [e, r] = We(), { isAuthenticated: a, profile: s, isAuthEnabled: o, login: i, logout: c } = st(), { page: u } = Z(), f = e ? Tt : Ft;
569
938
  return /* @__PURE__ */ n.jsx("header", { className: "fixed top-0 w-full z-10 bg-background/80 backdrop-blur", children: /* @__PURE__ */ n.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
570
939
  /* @__PURE__ */ n.jsxs("div", { className: "grid grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center border-b border-border px-12 h-[--top-header-height]", children: [
571
940
  /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-3.5", children: [
572
- (g == null ? void 0 : g.logo) && /* @__PURE__ */ n.jsx("img", { src: g.logo, alt: "My Dev Portal", className: "h-10" }),
573
- /* @__PURE__ */ n.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: g == null ? void 0 : g.headerTitle })
941
+ (u == null ? void 0 : u.logo) && /* @__PURE__ */ n.jsx("img", { src: u.logo, alt: u.pageTitle, className: "h-10" }),
942
+ /* @__PURE__ */ n.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: u == null ? void 0 : u.pageTitle })
574
943
  ] }),
575
944
  /* @__PURE__ */ n.jsxs("div", { className: "grid grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
576
- /* @__PURE__ */ n.jsx("div", { className: "w-full max-w-prose", children: /* @__PURE__ */ n.jsxs("button", { className: "flex items-center border border-input hover:bg-accent hover:text-accent-foreground p-4 relative h-8 justify-start rounded-lg bg-background text-sm text-muted-foreground shadow-none w-40 sm:w-72", children: [
577
- /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2 flex-grow", children: [
578
- /* @__PURE__ */ n.jsx(wt, { size: 14 }),
579
- "Search"
580
- ] }),
581
- /* @__PURE__ */ n.jsx("kbd", { className: "absolute right-[0.3rem] top-[0.3rem] hidden h-5 select-none items-center gap-1 rounded border border-border bg-muted px-1.5 font-mono text-[11px] font-medium opacity-100 sm:flex", children: "⌘K" })
582
- ] }) }),
945
+ /* @__PURE__ */ n.jsx("div", { className: "w-full max-w-prose" }),
583
946
  /* @__PURE__ */ n.jsxs("div", { className: "items-center justify-self-end text-sm hidden lg:flex", children: [
584
947
  o && /* @__PURE__ */ n.jsx(n.Fragment, { children: a ? /* @__PURE__ */ n.jsxs(
585
948
  "button",
586
949
  {
950
+ type: "button",
587
951
  className: "cursor-pointer hover:bg-secondary p-1 px-2 mx-2 rounded text-nowrap",
588
- onClick: h,
952
+ onClick: c,
589
953
  children: [
590
954
  "Logout ",
591
- r != null && r.email ? `(${r.email})` : null
955
+ s != null && s.email ? `(${s.email})` : null
592
956
  ]
593
957
  }
594
958
  ) : /* @__PURE__ */ n.jsx(
595
959
  "button",
596
960
  {
961
+ type: "button",
597
962
  className: "cursor-pointer hover:bg-secondary p-1 px-2 mx-2 rounded",
598
- onClick: l,
963
+ onClick: i,
599
964
  children: "Login"
600
965
  }
601
966
  ) }),
602
967
  /* @__PURE__ */ n.jsx(
603
968
  "button",
604
969
  {
970
+ type: "button",
971
+ "aria-label": e ? "Switch to light mode" : "Switch to dark mode",
605
972
  className: "cursor-pointer hover:bg-secondary p-2.5 -m-2.5 rounded-full",
606
- onClick: s,
607
- children: /* @__PURE__ */ n.jsx(b, { size: 18 })
973
+ onClick: r,
974
+ children: /* @__PURE__ */ n.jsx(f, { size: 18 })
608
975
  }
609
976
  )
610
977
  ] })
611
978
  ] })
612
979
  ] }),
613
- /* @__PURE__ */ n.jsx(kt, {})
980
+ /* @__PURE__ */ n.jsx(vr, {})
614
981
  ] }) });
615
- }), Ce = {
616
- Header: Oe
617
- }, Ot = lt(Ce), Ct = Ot.Provider, Mt = () => {
618
- const t = D(), { setActiveAnchor: e } = W();
619
- S(() => {
982
+ }), He = {
983
+ Header: qe
984
+ }, yr = Ne(He), br = yr.Provider, xr = ({
985
+ children: t,
986
+ ...e
987
+ }) => {
988
+ var i;
989
+ const r = V(
990
+ () => ({ ...He, ...e.overrides }),
991
+ [e.overrides]
992
+ ), a = V(
993
+ () => ({ ...Ge, ...e.mdxComponents }),
994
+ [e.mdxComponents]
995
+ ), s = V(() => new mr(e), [e]);
996
+ I(() => {
997
+ s.initialize();
998
+ }, [s]);
999
+ const o = (i = e.plugins) == null ? void 0 : i.filter(dr).map((c, u) => {
1000
+ var f;
1001
+ return /* @__PURE__ */ n.jsx(pt, { children: (f = c.getHead) == null ? void 0 : f.call(c) }, u);
1002
+ });
1003
+ return /* @__PURE__ */ n.jsxs(Nt, { client: Ie, children: [
1004
+ /* @__PURE__ */ n.jsx(je, { children: o }),
1005
+ /* @__PURE__ */ n.jsx(Ct, { value: s, children: /* @__PURE__ */ n.jsx(lt, { components: a, children: /* @__PURE__ */ n.jsx(Ze, { children: /* @__PURE__ */ n.jsx(br, { value: r, children: /* @__PURE__ */ n.jsx(et, { children: t }) }) }) }) })
1006
+ ] });
1007
+ }, wr = Ce(xr), Le = (t) => /* @__PURE__ */ n.jsx(lr, { FallbackComponent: gr, children: /* @__PURE__ */ n.jsx(wr, { ...t }) });
1008
+ Le.displayName = "DevPortal";
1009
+ const Er = () => {
1010
+ const t = T(), { setActiveAnchor: e } = W();
1011
+ I(() => {
620
1012
  if (!t.hash) return;
621
- const s = t.hash.split("/")[0].slice(1), a = document.getElementById(decodeURIComponent(s));
1013
+ const r = t.hash.split("/")[0].slice(1), a = document.getElementById(decodeURIComponent(r));
622
1014
  if (a) {
623
1015
  requestAnimationFrame(() => {
624
- a.scrollIntoView(), requestIdleCallback(() => e(s));
1016
+ a.scrollIntoView(), requestIdleCallback(() => e(r));
625
1017
  });
626
1018
  return;
627
1019
  }
628
- const r = new MutationObserver((o, l) => {
629
- const h = document.getElementById(decodeURIComponent(s));
630
- h && (h.scrollIntoView(), requestIdleCallback(() => e(s)), l.disconnect());
1020
+ const s = new MutationObserver((o, i) => {
1021
+ const c = document.getElementById(decodeURIComponent(r));
1022
+ c && (c.scrollIntoView(), requestIdleCallback(() => e(r)), i.disconnect());
631
1023
  });
632
- return r.observe(document.body, { childList: !0, subtree: !0 }), () => r.disconnect();
1024
+ return s.observe(document.body, { childList: !0, subtree: !0 }), () => s.disconnect();
633
1025
  }, [t.hash, e]);
634
- }, At = () => {
635
- const t = D(), e = K(t.pathname);
636
- S(() => {
1026
+ }, Pr = () => {
1027
+ const t = T(), e = K(t.pathname);
1028
+ I(() => {
637
1029
  e.current !== t.pathname && (window.scrollTo(0, 0), e.current = t.pathname);
638
1030
  }, [t.pathname]);
639
- }, Me = ({
1031
+ }, Be = ({
640
1032
  item: t,
641
1033
  defaultOpen: e,
642
- path: s
1034
+ path: r
643
1035
  }) => {
644
- const [a, r] = ct(e), o = D(), l = K(o.pathname);
645
- return S(() => {
646
- !a && l.current !== o.pathname && r(X(t, o.pathname, s)), l.current = o.pathname;
647
- }, [a, t, s, o.pathname]), [a, r];
648
- }, H = Xe(
1036
+ const [a, s] = mt(e), o = T(), i = K(o.pathname);
1037
+ return I(() => {
1038
+ !a && i.current !== o.pathname && s(ee(t, o.pathname, r)), i.current = o.pathname;
1039
+ }, [a, t, r, o.pathname]), [a, s];
1040
+ }, z = tt(
649
1041
  "flex px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
650
1042
  {
651
1043
  variants: {
@@ -659,46 +1051,46 @@ const Nt = I("Sun", [
659
1051
  }
660
1052
  }
661
1053
  }
662
- ), Qt = "data-anchor", Ae = ({
1054
+ ), jr = "data-anchor", ze = ({
663
1055
  category: t,
664
1056
  item: e,
665
- activeAnchor: s,
1057
+ activeAnchor: r,
666
1058
  currentTopNavItem: a,
667
- basePath: r = ""
1059
+ basePath: s = ""
668
1060
  }) => {
669
- const o = V(e) ? ve(r, e.path) : "", l = D(), [h, g] = Me({
1061
+ const o = X(e) ? De(s, e.path) : "", i = T(), [c, u] = Be({
670
1062
  item: e,
671
1063
  path: o,
672
- defaultOpen: () => X(e, l.pathname, o)
1064
+ defaultOpen: () => ee(e, i.pathname, o)
673
1065
  });
674
- if (Ue(e)) {
675
- const d = z(
1066
+ if (Dt(e)) {
1067
+ const p = F(
676
1068
  "flex items-center gap-2",
677
- H({
678
- isActive: e.href === l.pathname
1069
+ z({
1070
+ isActive: e.href === i.pathname
679
1071
  })
680
1072
  );
681
1073
  return e.href.startsWith("http") ? /* @__PURE__ */ n.jsxs(
682
1074
  "a",
683
1075
  {
684
- className: d,
1076
+ className: p,
685
1077
  href: e.href,
686
1078
  target: "_blank",
687
1079
  rel: "noopener noreferrer",
688
1080
  children: [
689
1081
  e.label,
690
- /* @__PURE__ */ n.jsx(jt, { size: 14 })
1082
+ /* @__PURE__ */ n.jsx(_t, { size: 14 })
691
1083
  ]
692
1084
  }
693
- ) : /* @__PURE__ */ n.jsx(B, { className: d, to: e.href, children: e.label });
1085
+ ) : /* @__PURE__ */ n.jsx(J, { className: p, to: e.href, children: e.label });
694
1086
  }
695
- const b = /* @__PURE__ */ n.jsxs("div", { className: "flex justify-between w-full", children: [
1087
+ const f = /* @__PURE__ */ n.jsxs("div", { className: "flex justify-between w-full", children: [
696
1088
  /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2 truncate w-full", children: [
697
1089
  e.icon,
698
1090
  typeof e.label != "string" ? e.label : /* @__PURE__ */ n.jsx("span", { className: "truncate", children: e.label })
699
1091
  ] }),
700
1092
  e.children && /* @__PURE__ */ n.jsx(
701
- ke,
1093
+ _e,
702
1094
  {
703
1095
  size: 16,
704
1096
  className: "transition shrink-0 group-data-[state=open]:rotate-90"
@@ -706,79 +1098,79 @@ const Nt = I("Sun", [
706
1098
  )
707
1099
  ] });
708
1100
  return /* @__PURE__ */ n.jsx("li", { title: typeof e.label == "string" ? e.label : e.title, children: e.children ? /* @__PURE__ */ n.jsxs(
709
- xe,
1101
+ Re,
710
1102
  {
711
- open: h,
712
- onOpenChange: () => g((d) => !d),
1103
+ open: c,
1104
+ onOpenChange: () => u((p) => !p),
713
1105
  className: "flex flex-col",
714
1106
  children: [
715
1107
  /* @__PURE__ */ n.jsx(
716
- ye,
1108
+ ke,
717
1109
  {
718
- className: z(
1110
+ className: F(
719
1111
  "group text-start",
720
- H({ isActive: !1 })
1112
+ z({ isActive: !1 })
721
1113
  ),
722
- children: b
1114
+ children: f
723
1115
  }
724
1116
  ),
725
- /* @__PURE__ */ n.jsx(be, { className: "CollapsibleContent ms-[calc(var(--padding-nav-item)*1.125)]", children: /* @__PURE__ */ n.jsx("ul", { className: "mt-1 border-border border-l ps-1.5", children: e.children.map((d) => /* @__PURE__ */ n.jsx(
726
- Ae,
1117
+ /* @__PURE__ */ n.jsx(Me, { className: "CollapsibleContent ms-[calc(var(--padding-nav-item)*1.125)]", children: /* @__PURE__ */ n.jsx("ul", { className: "mt-1 border-border border-l ps-1.5", children: e.children.map((p) => /* @__PURE__ */ n.jsx(
1118
+ ze,
727
1119
  {
728
1120
  category: t,
729
- item: d,
730
- activeAnchor: s,
1121
+ item: p,
1122
+ activeAnchor: r,
731
1123
  currentTopNavItem: a,
732
1124
  basePath: o
733
1125
  },
734
- V(d) ? d.path : d.href
1126
+ X(p) ? p.path : p.href
735
1127
  )) }) })
736
1128
  ]
737
1129
  }
738
1130
  ) : e.path.startsWith("#") ? /* @__PURE__ */ n.jsx(
739
- We,
1131
+ ct,
740
1132
  {
741
1133
  to: e.path,
742
- [Qt]: e.path,
743
- className: H({
744
- isActive: e.path.slice(1) === s,
1134
+ [jr]: e.path,
1135
+ className: z({
1136
+ isActive: e.path.slice(1) === r,
745
1137
  isMuted: e.muted
746
1138
  }),
747
- children: b
1139
+ children: f
748
1140
  }
749
1141
  ) : /* @__PURE__ */ n.jsx(
750
- B,
1142
+ J,
751
1143
  {
752
- className: ({ isActive: d }) => H({ isActive: d }),
1144
+ className: ({ isActive: p }) => z({ isActive: p }),
753
1145
  to: o,
754
- children: b
1146
+ children: f
755
1147
  }
756
1148
  ) });
757
- }, qt = ({
1149
+ }, Sr = ({
758
1150
  category: t
759
1151
  }) => {
760
- const { activeAnchor: e } = W(), s = $e(), a = D(), r = t.collapsible ?? !0, [o, l] = Me({
1152
+ const { activeAnchor: e } = W(), r = Ot(), a = T(), s = t.collapsible ?? !0, [o, i] = Be({
761
1153
  item: t,
762
- path: (s == null ? void 0 : s.path) ?? "",
763
- defaultOpen: () => !r || t.expanded || X(t, a.pathname, (s == null ? void 0 : s.path) ?? "")
1154
+ path: (r == null ? void 0 : r.path) ?? "",
1155
+ defaultOpen: () => !s || t.expanded || ee(t, a.pathname, (r == null ? void 0 : r.path) ?? "")
764
1156
  });
765
1157
  return /* @__PURE__ */ n.jsxs(
766
- xe,
1158
+ Re,
767
1159
  {
768
1160
  open: o,
769
- onOpenChange: () => l((h) => !h),
1161
+ onOpenChange: () => i((c) => !c),
770
1162
  children: [
771
- t.label.length > 0 ? /* @__PURE__ */ n.jsx(ye, { asChild: r, disabled: !r, children: /* @__PURE__ */ n.jsxs(
1163
+ t.label.length > 0 ? /* @__PURE__ */ n.jsx(ke, { asChild: s, disabled: !s, children: /* @__PURE__ */ n.jsxs(
772
1164
  "h5",
773
1165
  {
774
- className: z(
1166
+ className: F(
775
1167
  "flex group items-center justify-between cursor-pointer font-semibold text-foreground/90 px-[--padding-nav-item] py-1.5 rounded-lg transition-colors duration-300 -mx-[--padding-nav-item]",
776
- r ? "hover:bg-accent" : "cursor-auto"
1168
+ s ? "hover:bg-accent" : "cursor-auto"
777
1169
  ),
778
1170
  children: [
779
1171
  t.label,
780
- r && /* @__PURE__ */ n.jsx(
781
- ke,
1172
+ s && /* @__PURE__ */ n.jsx(
1173
+ _e,
782
1174
  {
783
1175
  className: "group-data-[state=open]:rotate-90 transition",
784
1176
  size: 16
@@ -787,123 +1179,88 @@ const Nt = I("Sun", [
787
1179
  ]
788
1180
  }
789
1181
  ) }) : "Endpoints",
790
- /* @__PURE__ */ n.jsx(be, { className: "CollapsibleContent -mx-[--padding-nav-item]", children: /* @__PURE__ */ n.jsx("ul", { className: "space-y-0.5 mt-1.5 mb-4 ms-3", children: t.children.map((h) => /* @__PURE__ */ n.jsx(
791
- Ae,
1182
+ /* @__PURE__ */ n.jsx(Me, { className: "CollapsibleContent -mx-[--padding-nav-item]", children: /* @__PURE__ */ n.jsx("ul", { className: "space-y-0.5 mt-1.5 mb-4 ms-3", children: t.children.map((c) => /* @__PURE__ */ n.jsx(
1183
+ ze,
792
1184
  {
793
1185
  category: t,
794
- item: h,
1186
+ item: c,
795
1187
  activeAnchor: e,
796
- currentTopNavItem: s,
797
- basePath: ve(s == null ? void 0 : s.path, t.path)
1188
+ currentTopNavItem: r,
1189
+ basePath: De(r == null ? void 0 : r.path, t.path)
798
1190
  },
799
- V(h) ? h.path + h.label : h.href
1191
+ X(c) ? c.path + c.label : c.href
800
1192
  )) }) })
801
1193
  ]
802
1194
  },
803
1195
  t.label
804
1196
  );
805
- }, Dt = ht(function({ children: e, className: s, pushMainContent: a }, r) {
1197
+ }, Nr = gt(function({ children: e, className: r, pushMainContent: a }, s) {
806
1198
  return /* @__PURE__ */ n.jsx(
807
1199
  "nav",
808
1200
  {
809
1201
  "data-navigation": String(a),
810
- className: z(
1202
+ className: F(
811
1203
  "peer hidden lg:flex flex-col fixed text-sm overflow-y-auto shrink-0 p-[--padding-nav-item] -mx-[--padding-nav-item] pb-20 pt-[--padding-content-top] w-[--side-nav-width] h-[calc(100%-var(--header-height))] scroll-pt-2 gap-2",
812
- s
1204
+ r
813
1205
  ),
814
- ref: r,
1206
+ ref: s,
815
1207
  children: e
816
1208
  }
817
1209
  );
818
- }), Tt = () => {
819
- const t = K(null), e = Ge();
1210
+ }), Cr = () => {
1211
+ const t = K(null), e = At();
820
1212
  return /* @__PURE__ */ n.jsx(
821
- Dt,
1213
+ Nr,
822
1214
  {
823
1215
  ref: t,
824
1216
  pushMainContent: e.data.items.length > 0,
825
- children: e.data.items.map((s) => /* @__PURE__ */ n.jsx(qt, { category: s }, s.label))
1217
+ children: e.data.items.map((r) => /* @__PURE__ */ n.jsx(Sr, { category: r }, r.label))
826
1218
  }
827
1219
  );
828
- }, ue = ({ children: t }) => {
829
- const e = D(), { setActiveAnchor: s } = W(), { meta: a } = U();
830
- Mt(), At();
831
- const r = K(e.pathname);
832
- return S(() => {
833
- e.pathname !== r.current && s(""), r.current = e.pathname;
834
- }, [e.pathname, s]), /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
835
- /* @__PURE__ */ n.jsxs(Je, { titleTemplate: a == null ? void 0 : a.pageTitle, children: [
836
- /* @__PURE__ */ n.jsx("title", { children: "Home" }),
1220
+ }, Or = ({ children: t }) => {
1221
+ const e = T(), { setActiveAnchor: r } = W(), { meta: a } = Z();
1222
+ Er(), Pr();
1223
+ const s = K(e.pathname);
1224
+ return I(() => {
1225
+ e.pathname !== s.current && r(""), s.current = e.pathname;
1226
+ }, [e.pathname, r]), /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
1227
+ /* @__PURE__ */ n.jsxs(je, { titleTemplate: a == null ? void 0 : a.title, children: [
837
1228
  (a == null ? void 0 : a.description) && /* @__PURE__ */ n.jsx("meta", { name: "description", content: a.description }),
838
1229
  (a == null ? void 0 : a.favicon) && /* @__PURE__ */ n.jsx("link", { rel: "icon", href: a.favicon })
839
1230
  ] }),
840
- /* @__PURE__ */ n.jsx(Oe, {}),
1231
+ /* @__PURE__ */ n.jsx(qe, {}),
841
1232
  /* @__PURE__ */ n.jsx("div", { className: "max-w-screen-2xl mx-auto pt-[--header-height] px-10 lg:px-12 h-full", children: /* @__PURE__ */ n.jsxs(
842
- Pe,
1233
+ vt,
843
1234
  {
844
- fallback: /* @__PURE__ */ n.jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ n.jsx(Ye, {}) }),
1235
+ fallback: /* @__PURE__ */ n.jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ n.jsx(Mt, {}) }),
845
1236
  children: [
846
- /* @__PURE__ */ n.jsx(Tt, {}),
1237
+ /* @__PURE__ */ n.jsx(Cr, {}),
847
1238
  /* @__PURE__ */ n.jsx(
848
1239
  "main",
849
1240
  {
850
- className: `dark:border-white/10 translate-x-0 h-full
851
- lg:overflow-visible
852
- lg:peer-data-[navigation=true]:w-[calc(100%-var(--side-nav-width))]
853
- lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] peer-data-[navigation=true]:pl-12`,
854
- children: t ?? /* @__PURE__ */ n.jsx(Ie, {})
1241
+ className: F(
1242
+ "dark:border-white/10 translate-x-0 h-full",
1243
+ "lg:overflow-visible",
1244
+ "lg:peer-data-[navigation=true]:w-[calc(100%-var(--side-nav-width))]",
1245
+ "lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] lg:peer-data-[navigation=true]:pl-12"
1246
+ ),
1247
+ children: t ?? /* @__PURE__ */ n.jsx(ot, {})
855
1248
  }
856
1249
  )
857
1250
  ]
858
1251
  }
859
1252
  ) })
860
1253
  ] });
861
- };
862
- function It({ plugins: t }) {
863
- const e = L(() => {
864
- const s = (t ?? []).flatMap(
865
- (a) => we(a) ? a.getRoutes() : []
866
- );
867
- return Ze([
868
- {
869
- path: "/",
870
- element: /* @__PURE__ */ n.jsx(ue, {}),
871
- errorElement: /* @__PURE__ */ n.jsx(ue, { children: /* @__PURE__ */ n.jsx("div", { className: "h-[75vh] flex items-center justify-center", children: "Error, look at the console" }) }),
872
- children: s
873
- }
874
- ]);
875
- }, [t]);
876
- return /* @__PURE__ */ n.jsx(et, { router: e });
877
- }
878
- const St = (t) => {
879
- const e = L(
880
- () => ({ ...Ce, ...t.overrides }),
881
- [t.overrides]
882
- ), s = L(
883
- () => ({ ...tt, ...t.mdxComponents }),
884
- [t.mdxComponents]
885
- ), a = L(() => new bt(t), [t]);
886
- return S(() => {
887
- a.initialize();
888
- }, [a]), /* @__PURE__ */ n.jsx(st, { client: Ne, children: /* @__PURE__ */ n.jsx(at, { children: /* @__PURE__ */ n.jsx(nt, { value: a, children: /* @__PURE__ */ n.jsx(rt, { components: s, children: /* @__PURE__ */ n.jsx(it, { children: /* @__PURE__ */ n.jsx(Ct, { value: e, children: /* @__PURE__ */ n.jsx(ot, { children: /* @__PURE__ */ n.jsx(
889
- Pe,
890
- {
891
- fallback: /* @__PURE__ */ n.jsx("div", { className: "grid place-items-center h-full", children: "Loading..." }),
892
- children: /* @__PURE__ */ n.jsx(
893
- It,
894
- {
895
- plugins: [
896
- ...t.plugins ?? [],
897
- ...t.authentication ? [t.authentication] : []
898
- ]
899
- }
900
- )
901
- }
902
- ) }) }) }) }) }) }) });
903
- }, Et = je(St);
904
- Et.displayName = "DevPortal";
1254
+ }, Br = ut, zr = rt, Ur = Le, Kr = Or, $r = at, Vr = nt, Yr = Qt, Jr = er, Xr = tr;
905
1255
  export {
906
- Et as DevPortal,
907
- Bt as Link,
908
- Vt as useMDXComponents
1256
+ Jr as Bootstrap,
1257
+ Xr as BootstrapStatic,
1258
+ zr as Callout,
1259
+ Ur as DevPortal,
1260
+ Kr as Layout,
1261
+ $r as Link,
1262
+ Vr as RouterError,
1263
+ Yr as ServerError,
1264
+ Br as useMDXComponents
909
1265
  };
1266
+ //# sourceMappingURL=zudoku.components.js.map