zudoku 0.0.0-ff3bc72 → 0.0.0-fix-image-base-path.c9e0e61c

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 (1933) hide show
  1. package/README.md +121 -0
  2. package/cli.js +11 -2
  3. package/dist/app/ZuploBuildConfig.d.ts +45 -0
  4. package/dist/app/ZuploBuildConfig.js +29 -0
  5. package/dist/app/ZuploBuildConfig.js.map +1 -0
  6. package/dist/app/demo.js +22 -9
  7. package/dist/app/demo.js.map +1 -1
  8. package/dist/app/entry.client.d.ts +6 -2
  9. package/dist/app/entry.client.js +53 -5
  10. package/dist/app/entry.client.js.map +1 -1
  11. package/dist/app/entry.server.d.ts +9 -8
  12. package/dist/app/entry.server.js +21 -16
  13. package/dist/app/entry.server.js.map +1 -1
  14. package/dist/app/env.d.ts +33 -0
  15. package/dist/app/env.js +37 -0
  16. package/dist/app/env.js.map +1 -0
  17. package/dist/app/main.d.ts +4 -2
  18. package/dist/app/main.js +51 -69
  19. package/dist/app/main.js.map +1 -1
  20. package/dist/app/sentry.d.ts +3 -0
  21. package/dist/app/sentry.js +19 -0
  22. package/dist/app/sentry.js.map +1 -0
  23. package/dist/app/standalone.js +8 -10
  24. package/dist/app/standalone.js.map +1 -1
  25. package/dist/cli/build/handler.d.ts +1 -3
  26. package/dist/cli/build/handler.js +18 -2
  27. package/dist/cli/build/handler.js.map +1 -1
  28. package/dist/cli/cli.js +18 -5
  29. package/dist/cli/cli.js.map +1 -1
  30. package/dist/cli/cmds/build.d.ts +11 -3
  31. package/dist/cli/cmds/build.js +21 -13
  32. package/dist/cli/cmds/build.js.map +1 -1
  33. package/dist/cli/cmds/dev.d.ts +1 -1
  34. package/dist/cli/cmds/dev.js +5 -0
  35. package/dist/cli/cmds/dev.js.map +1 -1
  36. package/dist/cli/cmds/preview.d.ts +16 -0
  37. package/dist/cli/cmds/preview.js +25 -0
  38. package/dist/cli/cmds/preview.js.map +1 -0
  39. package/dist/cli/common/logger.js +9 -0
  40. package/dist/cli/common/logger.js.map +1 -1
  41. package/dist/cli/common/machine-id/lib.js +1 -0
  42. package/dist/cli/common/machine-id/lib.js.map +1 -1
  43. package/dist/cli/common/outdated.js +2 -1
  44. package/dist/cli/common/outdated.js.map +1 -1
  45. package/dist/cli/common/output.js.map +1 -1
  46. package/dist/cli/common/utils/box.js.map +1 -1
  47. package/dist/cli/common/utils/ports.d.ts +1 -1
  48. package/dist/cli/common/utils/ports.js +16 -15
  49. package/dist/cli/common/utils/ports.js.map +1 -1
  50. package/dist/cli/dev/handler.d.ts +1 -0
  51. package/dist/cli/dev/handler.js +16 -13
  52. package/dist/cli/dev/handler.js.map +1 -1
  53. package/dist/cli/preview/handler.d.ts +3 -0
  54. package/dist/cli/preview/handler.js +35 -0
  55. package/dist/cli/preview/handler.js.map +1 -0
  56. package/dist/codegen.d.ts +3 -0
  57. package/dist/codegen.js +45 -0
  58. package/dist/codegen.js.map +1 -0
  59. package/dist/config/config.d.ts +29 -13
  60. package/dist/config/file-exists.d.ts +1 -0
  61. package/dist/config/file-exists.js +5 -0
  62. package/dist/config/file-exists.js.map +1 -0
  63. package/dist/config/loader.d.ts +21 -0
  64. package/dist/config/loader.js +141 -0
  65. package/dist/config/loader.js.map +1 -0
  66. package/dist/config/validators/BuildSchema.d.ts +36 -0
  67. package/dist/config/validators/BuildSchema.js +25 -0
  68. package/dist/config/validators/BuildSchema.js.map +1 -0
  69. package/dist/config/validators/InputNavigationSchema.d.ts +7460 -0
  70. package/dist/config/validators/InputNavigationSchema.js +74 -0
  71. package/dist/config/validators/InputNavigationSchema.js.map +1 -0
  72. package/dist/config/validators/InputNavigationSchema.test-d.js +145 -0
  73. package/dist/config/validators/InputNavigationSchema.test-d.js.map +1 -0
  74. package/dist/config/validators/NavigationSchema.d.ts +44 -0
  75. package/dist/config/validators/NavigationSchema.js +98 -0
  76. package/dist/config/validators/NavigationSchema.js.map +1 -0
  77. package/dist/config/validators/ProtectedRoutesSchema.d.ts +12 -0
  78. package/dist/config/validators/ProtectedRoutesSchema.js +19 -0
  79. package/dist/config/validators/ProtectedRoutesSchema.js.map +1 -0
  80. package/dist/config/validators/icon-types.d.ts +2 -0
  81. package/dist/config/validators/icon-types.js +1830 -0
  82. package/dist/config/validators/icon-types.js.map +1 -0
  83. package/dist/config/validators/validate.d.ts +679 -1417
  84. package/dist/config/validators/validate.js +356 -134
  85. package/dist/config/validators/validate.js.map +1 -1
  86. package/dist/config/validators/validate.test.js +141 -0
  87. package/dist/config/validators/validate.test.js.map +1 -0
  88. package/dist/index.d.ts +10 -2
  89. package/dist/index.js +5 -1
  90. package/dist/index.js.map +1 -1
  91. package/dist/lib/MissingIcon.d.ts +2 -0
  92. package/dist/lib/MissingIcon.js +7 -0
  93. package/dist/lib/MissingIcon.js.map +1 -0
  94. package/dist/lib/auth/issuer.d.ts +2 -0
  95. package/dist/lib/auth/issuer.js +37 -0
  96. package/dist/lib/auth/issuer.js.map +1 -0
  97. package/dist/lib/auth/issuer.test.js +94 -0
  98. package/dist/lib/auth/issuer.test.js.map +1 -0
  99. package/dist/lib/authentication/AuthenticationPlugin.d.ts +6 -4
  100. package/dist/lib/authentication/AuthenticationPlugin.js +4 -1
  101. package/dist/lib/authentication/AuthenticationPlugin.js.map +1 -1
  102. package/dist/lib/authentication/authentication.d.ts +6 -5
  103. package/dist/lib/authentication/components/CallbackHandler.js +27 -31
  104. package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
  105. package/dist/lib/authentication/components/OAuthErrorPage.d.ts +3 -0
  106. package/dist/lib/authentication/components/OAuthErrorPage.js +99 -0
  107. package/dist/lib/authentication/components/OAuthErrorPage.js.map +1 -0
  108. package/dist/lib/authentication/components/SignIn.d.ts +1 -1
  109. package/dist/lib/authentication/components/SignIn.js +6 -2
  110. package/dist/lib/authentication/components/SignIn.js.map +1 -1
  111. package/dist/lib/authentication/components/SignOut.js +2 -2
  112. package/dist/lib/authentication/components/SignOut.js.map +1 -1
  113. package/dist/lib/authentication/components/SignUp.d.ts +1 -1
  114. package/dist/lib/authentication/components/SignUp.js +4 -1
  115. package/dist/lib/authentication/components/SignUp.js.map +1 -1
  116. package/dist/lib/authentication/errors.d.ts +6 -12
  117. package/dist/lib/authentication/errors.js +2 -1
  118. package/dist/lib/authentication/errors.js.map +1 -1
  119. package/dist/lib/authentication/hook.d.ts +13 -4
  120. package/dist/lib/authentication/hook.js +12 -4
  121. package/dist/lib/authentication/hook.js.map +1 -1
  122. package/dist/lib/authentication/providers/auth0.d.ts +2 -2
  123. package/dist/lib/authentication/providers/auth0.js +16 -14
  124. package/dist/lib/authentication/providers/auth0.js.map +1 -1
  125. package/dist/lib/authentication/providers/azureb2c.d.ts +28 -0
  126. package/dist/lib/authentication/providers/azureb2c.js +147 -0
  127. package/dist/lib/authentication/providers/azureb2c.js.map +1 -0
  128. package/dist/lib/authentication/providers/clerk.d.ts +2 -2
  129. package/dist/lib/authentication/providers/clerk.js +111 -49
  130. package/dist/lib/authentication/providers/clerk.js.map +1 -1
  131. package/dist/lib/authentication/providers/openid.d.ts +26 -21
  132. package/dist/lib/authentication/providers/openid.js +112 -73
  133. package/dist/lib/authentication/providers/openid.js.map +1 -1
  134. package/dist/lib/authentication/providers/supabase.d.ts +4 -0
  135. package/dist/lib/authentication/providers/supabase.js +108 -0
  136. package/dist/lib/authentication/providers/supabase.js.map +1 -0
  137. package/dist/lib/authentication/state.d.ts +24 -19
  138. package/dist/lib/authentication/state.js +47 -7
  139. package/dist/lib/authentication/state.js.map +1 -1
  140. package/dist/lib/authentication/use-broadcast/shared.d.ts +48 -0
  141. package/dist/lib/authentication/use-broadcast/shared.js +243 -0
  142. package/dist/lib/authentication/use-broadcast/shared.js.map +1 -0
  143. package/dist/lib/authentication/use-broadcast/useBroadcast.d.ts +24 -0
  144. package/dist/lib/authentication/use-broadcast/useBroadcast.js +106 -0
  145. package/dist/lib/authentication/use-broadcast/useBroadcast.js.map +1 -0
  146. package/dist/lib/components/AnchorLink.d.ts +2 -2
  147. package/dist/lib/components/AnchorLink.js +9 -5
  148. package/dist/lib/components/AnchorLink.js.map +1 -1
  149. package/dist/lib/components/Autocomplete.d.ts +13 -0
  150. package/dist/lib/components/Autocomplete.js +47 -0
  151. package/dist/lib/components/Autocomplete.js.map +1 -0
  152. package/dist/lib/components/Banner.js +2 -2
  153. package/dist/lib/components/Banner.js.map +1 -1
  154. package/dist/lib/components/Bootstrap.d.ts +5 -3
  155. package/dist/lib/components/Bootstrap.js +13 -6
  156. package/dist/lib/components/Bootstrap.js.map +1 -1
  157. package/dist/lib/components/BuildCheck.d.ts +5 -0
  158. package/dist/lib/components/BuildCheck.js +37 -0
  159. package/dist/lib/components/BuildCheck.js.map +1 -0
  160. package/dist/lib/components/CategoryHeading.js +1 -1
  161. package/dist/lib/components/CategoryHeading.js.map +1 -1
  162. package/dist/lib/components/ClientOnly.d.ts +4 -2
  163. package/dist/lib/components/ClientOnly.js +1 -1
  164. package/dist/lib/components/ClientOnly.js.map +1 -1
  165. package/dist/lib/components/DeveloperHint.js +2 -1
  166. package/dist/lib/components/DeveloperHint.js.map +1 -1
  167. package/dist/lib/components/ErrorPage.js +2 -2
  168. package/dist/lib/components/ErrorPage.js.map +1 -1
  169. package/dist/lib/components/Footer.d.ts +1 -0
  170. package/dist/lib/components/Footer.js +32 -0
  171. package/dist/lib/components/Footer.js.map +1 -0
  172. package/dist/lib/components/Framed.d.ts +7 -0
  173. package/dist/lib/components/Framed.js +26 -0
  174. package/dist/lib/components/Framed.js.map +1 -0
  175. package/dist/lib/components/Header.js +32 -12
  176. package/dist/lib/components/Header.js.map +1 -1
  177. package/dist/lib/components/Heading.d.ts +10 -6
  178. package/dist/lib/components/Heading.js +7 -2
  179. package/dist/lib/components/Heading.js.map +1 -1
  180. package/dist/lib/components/InlineCode.d.ts +2 -1
  181. package/dist/lib/components/InlineCode.js +2 -9
  182. package/dist/lib/components/InlineCode.js.map +1 -1
  183. package/dist/lib/components/Layout.js +10 -21
  184. package/dist/lib/components/Layout.js.map +1 -1
  185. package/dist/lib/components/Main.d.ts +2 -0
  186. package/dist/lib/components/Main.js +18 -0
  187. package/dist/lib/components/Main.js.map +1 -0
  188. package/dist/lib/components/Markdown.d.ts +4 -3
  189. package/dist/lib/components/Markdown.js +14 -14
  190. package/dist/lib/components/Markdown.js.map +1 -1
  191. package/dist/lib/components/MobileTopNavigation.js +20 -7
  192. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  193. package/dist/lib/components/NotFoundPage.js +3 -3
  194. package/dist/lib/components/NotFoundPage.js.map +1 -1
  195. package/dist/lib/components/PageProgress.d.ts +1 -0
  196. package/dist/lib/components/PageProgress.js +20 -0
  197. package/dist/lib/components/PageProgress.js.map +1 -0
  198. package/dist/lib/components/Pagination.d.ts +11 -0
  199. package/dist/lib/components/Pagination.js +10 -0
  200. package/dist/lib/components/Pagination.js.map +1 -0
  201. package/dist/lib/components/PathRenderer.d.ts +11 -0
  202. package/dist/lib/components/PathRenderer.js +28 -0
  203. package/dist/lib/components/PathRenderer.js.map +1 -0
  204. package/dist/lib/components/ReactMarkdown.d.ts +29 -0
  205. package/dist/lib/components/ReactMarkdown.js +182 -0
  206. package/dist/lib/components/ReactMarkdown.js.map +1 -0
  207. package/dist/lib/components/Search.d.ts +3 -1
  208. package/dist/lib/components/Search.js +9 -3
  209. package/dist/lib/components/Search.js.map +1 -1
  210. package/dist/lib/components/Slot.d.ts +17 -0
  211. package/dist/lib/components/Slot.js +24 -0
  212. package/dist/lib/components/Slot.js.map +1 -0
  213. package/dist/lib/components/Slot.test.d.ts +1 -0
  214. package/dist/lib/components/Slot.test.js +168 -0
  215. package/dist/lib/components/Slot.test.js.map +1 -0
  216. package/dist/lib/components/StatusPage.d.ts +7 -0
  217. package/dist/lib/components/StatusPage.js +75 -0
  218. package/dist/lib/components/StatusPage.js.map +1 -0
  219. package/dist/lib/components/ThemeSwitch.d.ts +1 -0
  220. package/dist/lib/components/ThemeSwitch.js +16 -0
  221. package/dist/lib/components/ThemeSwitch.js.map +1 -0
  222. package/dist/lib/components/TopNavigation.d.ts +7 -0
  223. package/dist/lib/components/TopNavigation.js +60 -9
  224. package/dist/lib/components/TopNavigation.js.map +1 -1
  225. package/dist/lib/components/Typography.d.ts +5 -0
  226. package/dist/lib/components/Typography.js +8 -0
  227. package/dist/lib/components/Typography.js.map +1 -0
  228. package/dist/lib/components/Zudoku.d.ts +7 -0
  229. package/dist/lib/components/Zudoku.js +58 -0
  230. package/dist/lib/components/Zudoku.js.map +1 -0
  231. package/dist/lib/components/cache.d.ts +13 -0
  232. package/dist/lib/components/cache.js +20 -0
  233. package/dist/lib/components/cache.js.map +1 -0
  234. package/dist/lib/components/context/BypassProtectedRoutesContext.d.ts +1 -0
  235. package/dist/lib/components/context/BypassProtectedRoutesContext.js +3 -0
  236. package/dist/lib/components/context/BypassProtectedRoutesContext.js.map +1 -0
  237. package/dist/lib/components/context/RouterEventsEmitter.d.ts +1 -0
  238. package/dist/lib/components/context/RouterEventsEmitter.js +17 -0
  239. package/dist/lib/components/context/RouterEventsEmitter.js.map +1 -0
  240. package/dist/lib/components/context/SlotProvider.d.ts +26 -0
  241. package/dist/lib/components/context/SlotProvider.js +83 -0
  242. package/dist/lib/components/context/SlotProvider.js.map +1 -0
  243. package/dist/lib/components/context/ViewportAnchorContext.d.ts +2 -4
  244. package/dist/lib/components/context/ViewportAnchorContext.js +29 -23
  245. package/dist/lib/components/context/ViewportAnchorContext.js.map +1 -1
  246. package/dist/lib/components/context/ZudokuContext.d.ts +9 -17
  247. package/dist/lib/components/context/ZudokuContext.js +65 -26
  248. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  249. package/dist/lib/components/context/ZudokuProvider.d.ts +2 -2
  250. package/dist/lib/components/context/ZudokuProvider.js +2 -1
  251. package/dist/lib/components/context/ZudokuProvider.js.map +1 -1
  252. package/dist/lib/components/index.d.ts +77 -17
  253. package/dist/lib/components/index.js +36 -7
  254. package/dist/lib/components/index.js.map +1 -1
  255. package/dist/lib/components/navigation/Navigation.d.ts +5 -0
  256. package/dist/lib/components/navigation/Navigation.js +12 -0
  257. package/dist/lib/components/navigation/Navigation.js.map +1 -0
  258. package/dist/lib/components/navigation/NavigationBadge.d.ts +26 -0
  259. package/dist/lib/components/navigation/NavigationBadge.js +26 -0
  260. package/dist/lib/components/navigation/NavigationBadge.js.map +1 -0
  261. package/dist/lib/components/navigation/NavigationCategory.d.ts +5 -0
  262. package/dist/lib/components/navigation/NavigationCategory.js +61 -0
  263. package/dist/lib/components/navigation/NavigationCategory.js.map +1 -0
  264. package/dist/lib/components/navigation/NavigationItem.d.ts +6 -0
  265. package/dist/lib/components/navigation/NavigationItem.js +55 -0
  266. package/dist/lib/components/navigation/NavigationItem.js.map +1 -0
  267. package/dist/lib/components/navigation/NavigationWrapper.d.ts +7 -0
  268. package/dist/lib/components/navigation/NavigationWrapper.js +21 -0
  269. package/dist/lib/components/navigation/NavigationWrapper.js.map +1 -0
  270. package/dist/lib/components/navigation/PoweredByZudoku.d.ts +3 -0
  271. package/dist/lib/components/navigation/PoweredByZudoku.js +7 -0
  272. package/dist/lib/components/navigation/PoweredByZudoku.js.map +1 -0
  273. package/dist/lib/components/navigation/Toc.js +46 -0
  274. package/dist/lib/components/navigation/Toc.js.map +1 -0
  275. package/dist/lib/components/navigation/ZudokuLogo.d.ts +6 -0
  276. package/dist/lib/components/navigation/ZudokuLogo.js +5 -0
  277. package/dist/lib/components/navigation/ZudokuLogo.js.map +1 -0
  278. package/dist/lib/components/navigation/ZuploLogo.d.ts +3 -0
  279. package/dist/lib/components/navigation/ZuploLogo.js +4 -0
  280. package/dist/lib/components/navigation/ZuploLogo.js.map +1 -0
  281. package/dist/lib/components/navigation/utils.d.ts +14 -6
  282. package/dist/lib/components/navigation/utils.js +61 -33
  283. package/dist/lib/components/navigation/utils.js.map +1 -1
  284. package/dist/lib/core/RouteGuard.d.ts +2 -0
  285. package/dist/lib/core/RouteGuard.js +52 -0
  286. package/dist/lib/core/RouteGuard.js.map +1 -0
  287. package/dist/lib/core/ZudokuContext.d.ts +113 -0
  288. package/dist/lib/core/ZudokuContext.js +93 -0
  289. package/dist/lib/core/ZudokuContext.js.map +1 -0
  290. package/dist/lib/core/plugins.d.ts +37 -18
  291. package/dist/lib/core/plugins.js +4 -0
  292. package/dist/lib/core/plugins.js.map +1 -1
  293. package/dist/lib/errors/ErrorAlert.d.ts +1 -1
  294. package/dist/lib/errors/ErrorAlert.js +12 -3
  295. package/dist/lib/errors/ErrorAlert.js.map +1 -1
  296. package/dist/lib/errors/RouterError.js +1 -1
  297. package/dist/lib/errors/RouterError.js.map +1 -1
  298. package/dist/lib/hooks/index.d.ts +28 -0
  299. package/dist/lib/hooks/index.js +16 -0
  300. package/dist/lib/hooks/index.js.map +1 -0
  301. package/dist/lib/hooks/useEvent.d.ts +11 -0
  302. package/dist/lib/hooks/useEvent.js +19 -0
  303. package/dist/lib/hooks/useEvent.js.map +1 -0
  304. package/dist/lib/hooks/useEvent.test.d.ts +1 -0
  305. package/dist/lib/hooks/useEvent.test.js +102 -0
  306. package/dist/lib/hooks/useEvent.test.js.map +1 -0
  307. package/dist/lib/hooks/useHotkey.d.ts +4 -0
  308. package/dist/lib/hooks/useHotkey.js +58 -0
  309. package/dist/lib/hooks/useHotkey.js.map +1 -0
  310. package/dist/lib/icons.d.ts +1 -0
  311. package/dist/lib/icons.js +1 -0
  312. package/dist/lib/icons.js.map +1 -1
  313. package/dist/lib/oas/graphql/circular.d.ts +3 -0
  314. package/dist/lib/oas/graphql/circular.js +43 -0
  315. package/dist/lib/oas/graphql/circular.js.map +1 -0
  316. package/dist/lib/oas/graphql/index.d.ts +25 -1
  317. package/dist/lib/oas/graphql/index.js +216 -69
  318. package/dist/lib/oas/graphql/index.js.map +1 -1
  319. package/dist/lib/oas/parser/dereference/index.js +8 -3
  320. package/dist/lib/oas/parser/dereference/index.js.map +1 -1
  321. package/dist/lib/oas/parser/index.d.ts +8 -3
  322. package/dist/lib/oas/parser/index.js +7 -23
  323. package/dist/lib/oas/parser/index.js.map +1 -1
  324. package/dist/lib/oas/parser/upgrade/index.d.ts +3 -2
  325. package/dist/lib/oas/parser/upgrade/index.js +83 -31
  326. package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
  327. package/dist/lib/plugins/api-catalog/Catalog.d.ts +4 -0
  328. package/dist/lib/plugins/api-catalog/Catalog.js +26 -0
  329. package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -0
  330. package/dist/lib/plugins/api-catalog/index.d.ts +31 -0
  331. package/dist/lib/plugins/api-catalog/index.js +46 -0
  332. package/dist/lib/plugins/api-catalog/index.js.map +1 -0
  333. package/dist/lib/plugins/api-keys/CreateApiKey.d.ts +3 -2
  334. package/dist/lib/plugins/api-keys/CreateApiKey.js +26 -8
  335. package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
  336. package/dist/lib/plugins/api-keys/ProtectedRoute.js +1 -1
  337. package/dist/lib/plugins/api-keys/ProtectedRoute.js.map +1 -1
  338. package/dist/lib/plugins/api-keys/SettingsApiKeys.d.ts +1 -1
  339. package/dist/lib/plugins/api-keys/SettingsApiKeys.js +153 -28
  340. package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
  341. package/dist/lib/plugins/api-keys/index.d.ts +33 -18
  342. package/dist/lib/plugins/api-keys/index.js +65 -31
  343. package/dist/lib/plugins/api-keys/index.js.map +1 -1
  344. package/dist/lib/plugins/custom-pages/index.d.ts +8 -0
  345. package/dist/lib/plugins/custom-pages/index.js +16 -0
  346. package/dist/lib/plugins/custom-pages/index.js.map +1 -0
  347. package/dist/lib/plugins/markdown/MdxPage.d.ts +9 -2
  348. package/dist/lib/plugins/markdown/MdxPage.js +43 -10
  349. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  350. package/dist/lib/plugins/markdown/index.d.ts +17 -8
  351. package/dist/lib/plugins/markdown/index.js +14 -3
  352. package/dist/lib/plugins/markdown/index.js.map +1 -1
  353. package/dist/lib/plugins/openapi/CollapsibleCode.d.ts +5 -0
  354. package/dist/lib/plugins/openapi/CollapsibleCode.js +25 -0
  355. package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -0
  356. package/dist/lib/plugins/openapi/ColorizedParam.d.ts +10 -2
  357. package/dist/lib/plugins/openapi/ColorizedParam.js +29 -14
  358. package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
  359. package/dist/lib/plugins/openapi/Endpoint.js +13 -16
  360. package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
  361. package/dist/lib/plugins/openapi/OasProvider.d.ts +8 -0
  362. package/dist/lib/plugins/openapi/OasProvider.js +29 -0
  363. package/dist/lib/plugins/openapi/OasProvider.js.map +1 -0
  364. package/dist/lib/plugins/openapi/OperationList.d.ts +6 -3
  365. package/dist/lib/plugins/openapi/OperationList.js +109 -29
  366. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  367. package/dist/lib/plugins/openapi/OperationListItem.d.ts +5 -3
  368. package/dist/lib/plugins/openapi/OperationListItem.js +13 -7
  369. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  370. package/dist/lib/plugins/openapi/ParamInfos.d.ts +6 -0
  371. package/dist/lib/plugins/openapi/ParamInfos.js +45 -0
  372. package/dist/lib/plugins/openapi/ParamInfos.js.map +1 -0
  373. package/dist/lib/plugins/openapi/ParameterList.d.ts +2 -1
  374. package/dist/lib/plugins/openapi/ParameterList.js +3 -2
  375. package/dist/lib/plugins/openapi/ParameterList.js.map +1 -1
  376. package/dist/lib/plugins/openapi/ParameterListItem.js +19 -1
  377. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  378. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.d.ts +4 -2
  379. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +17 -4
  380. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
  381. package/dist/lib/plugins/openapi/RequestBodySidecarBox.d.ts +3 -4
  382. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +5 -9
  383. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
  384. package/dist/lib/plugins/openapi/ResponsesSidecarBox.d.ts +2 -4
  385. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +4 -6
  386. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
  387. package/dist/lib/plugins/openapi/SchemaList.d.ts +1 -0
  388. package/dist/lib/plugins/openapi/SchemaList.js +52 -0
  389. package/dist/lib/plugins/openapi/SchemaList.js.map +1 -0
  390. package/dist/lib/plugins/openapi/Sidecar.d.ts +1 -1
  391. package/dist/lib/plugins/openapi/Sidecar.js +87 -118
  392. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  393. package/dist/lib/plugins/openapi/SidecarBox.js +4 -4
  394. package/dist/lib/plugins/openapi/SidecarBox.js.map +1 -1
  395. package/dist/lib/plugins/openapi/SidecarExamples.d.ts +9 -0
  396. package/dist/lib/plugins/openapi/SidecarExamples.js +76 -0
  397. package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -0
  398. package/dist/lib/plugins/openapi/SimpleSelect.js +1 -1
  399. package/dist/lib/plugins/openapi/SimpleSelect.js.map +1 -1
  400. package/dist/lib/plugins/openapi/client/GraphQLClient.d.ts +8 -0
  401. package/dist/lib/plugins/openapi/client/GraphQLClient.js +43 -0
  402. package/dist/lib/plugins/openapi/client/GraphQLClient.js.map +1 -0
  403. package/dist/lib/plugins/openapi/client/GraphQLContext.d.ts +7 -0
  404. package/dist/lib/plugins/openapi/client/GraphQLContext.js +5 -0
  405. package/dist/lib/plugins/openapi/client/GraphQLContext.js.map +1 -0
  406. package/dist/lib/plugins/openapi/client/createServer.d.ts +3 -1
  407. package/dist/lib/plugins/openapi/client/createServer.js +5 -2
  408. package/dist/lib/plugins/openapi/client/createServer.js.map +1 -1
  409. package/dist/lib/plugins/openapi/client/useCreateQuery.d.ts +14 -0
  410. package/dist/lib/plugins/openapi/client/useCreateQuery.js +20 -0
  411. package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -0
  412. package/dist/lib/plugins/openapi/components/ConstValue.d.ts +5 -0
  413. package/dist/lib/plugins/openapi/components/ConstValue.js +6 -0
  414. package/dist/lib/plugins/openapi/components/ConstValue.js.map +1 -0
  415. package/dist/lib/plugins/openapi/components/EnumValues.d.ts +5 -0
  416. package/dist/lib/plugins/openapi/components/EnumValues.js +15 -0
  417. package/dist/lib/plugins/openapi/components/EnumValues.js.map +1 -0
  418. package/dist/lib/plugins/openapi/components/ResponseContent.d.ts +12 -0
  419. package/dist/lib/plugins/openapi/components/ResponseContent.js +21 -0
  420. package/dist/lib/plugins/openapi/components/ResponseContent.js.map +1 -0
  421. package/dist/lib/plugins/openapi/components/SelectOnClick.d.ts +5 -0
  422. package/dist/lib/plugins/openapi/components/SelectOnClick.js +16 -0
  423. package/dist/lib/plugins/openapi/components/SelectOnClick.js.map +1 -0
  424. package/dist/lib/plugins/openapi/context.d.ts +3 -3
  425. package/dist/lib/plugins/openapi/graphql/fragment-masking.d.ts +3 -3
  426. package/dist/lib/plugins/openapi/graphql/fragment-masking.js +3 -4
  427. package/dist/lib/plugins/openapi/graphql/fragment-masking.js.map +1 -1
  428. package/dist/lib/plugins/openapi/graphql/gql.d.ts +8 -46
  429. package/dist/lib/plugins/openapi/graphql/gql.js +6 -13
  430. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  431. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +142 -25
  432. package/dist/lib/plugins/openapi/graphql/graphql.js +239 -662
  433. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
  434. package/dist/lib/plugins/openapi/index.d.ts +11 -8
  435. package/dist/lib/plugins/openapi/index.js +106 -104
  436. package/dist/lib/plugins/openapi/index.js.map +1 -1
  437. package/dist/lib/plugins/openapi/interfaces.d.ts +58 -4
  438. package/dist/lib/plugins/openapi/playground/BodyPanel.d.ts +5 -0
  439. package/dist/lib/plugins/openapi/playground/BodyPanel.js +26 -0
  440. package/dist/lib/plugins/openapi/playground/BodyPanel.js.map +1 -0
  441. package/dist/lib/plugins/openapi/playground/CollapsibleHeader.d.ts +8 -0
  442. package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js +11 -0
  443. package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js.map +1 -0
  444. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.d.ts +6 -0
  445. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +9 -0
  446. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -0
  447. package/dist/lib/plugins/openapi/playground/Headers.d.ts +5 -4
  448. package/dist/lib/plugins/openapi/playground/Headers.js +108 -7
  449. package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
  450. package/dist/lib/plugins/openapi/playground/IdentityDialog.d.ts +11 -0
  451. package/dist/lib/plugins/openapi/playground/IdentityDialog.js +15 -0
  452. package/dist/lib/plugins/openapi/playground/IdentityDialog.js.map +1 -0
  453. package/dist/lib/plugins/openapi/playground/IdentitySelector.d.ts +7 -0
  454. package/dist/lib/plugins/openapi/playground/IdentitySelector.js +7 -0
  455. package/dist/lib/plugins/openapi/playground/IdentitySelector.js.map +1 -0
  456. package/dist/lib/plugins/openapi/playground/InlineInput.js +1 -1
  457. package/dist/lib/plugins/openapi/playground/InlineInput.js.map +1 -1
  458. package/dist/lib/plugins/openapi/playground/ParamsGrid.d.ts +9 -0
  459. package/dist/lib/plugins/openapi/playground/ParamsGrid.js +5 -0
  460. package/dist/lib/plugins/openapi/playground/ParamsGrid.js.map +1 -0
  461. package/dist/lib/plugins/openapi/playground/PathParams.d.ts +3 -2
  462. package/dist/lib/plugins/openapi/playground/PathParams.js +4 -7
  463. package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
  464. package/dist/lib/plugins/openapi/playground/Playground.d.ts +32 -2
  465. package/dist/lib/plugins/openapi/playground/Playground.js +170 -85
  466. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  467. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +2 -2
  468. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
  469. package/dist/lib/plugins/openapi/playground/QueryParams.d.ts +3 -3
  470. package/dist/lib/plugins/openapi/playground/QueryParams.js +43 -22
  471. package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
  472. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.d.ts +7 -0
  473. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js +8 -0
  474. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js.map +1 -0
  475. package/dist/lib/plugins/openapi/playground/Spinner.d.ts +2 -0
  476. package/dist/lib/plugins/openapi/playground/Spinner.js +63 -0
  477. package/dist/lib/plugins/openapi/playground/Spinner.js.map +1 -0
  478. package/dist/lib/plugins/openapi/playground/fileUtils.d.ts +2 -0
  479. package/dist/lib/plugins/openapi/playground/fileUtils.js +22 -0
  480. package/dist/lib/plugins/openapi/playground/fileUtils.js.map +1 -0
  481. package/dist/lib/plugins/openapi/playground/rememberedIdentity.d.ts +17 -0
  482. package/dist/lib/plugins/openapi/playground/rememberedIdentity.js +11 -0
  483. package/dist/lib/plugins/openapi/playground/rememberedIdentity.js.map +1 -0
  484. package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.d.ts +3 -0
  485. package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.js +13 -0
  486. package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.js.map +1 -0
  487. package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.d.ts +1 -0
  488. package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.js +12 -0
  489. package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.js.map +1 -0
  490. package/dist/lib/plugins/openapi/playground/result-panel/Highlight.d.ts +12 -0
  491. package/dist/lib/plugins/openapi/playground/result-panel/Highlight.js +11 -0
  492. package/dist/lib/plugins/openapi/playground/result-panel/Highlight.js.map +1 -0
  493. package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.d.ts +8 -0
  494. package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.js +69 -0
  495. package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.js.map +1 -0
  496. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.d.ts +14 -0
  497. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +103 -0
  498. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -0
  499. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.d.ts +11 -0
  500. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +15 -0
  501. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -0
  502. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.d.ts +10 -0
  503. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js +32 -0
  504. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js.map +1 -0
  505. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.d.ts +1 -0
  506. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.js +56 -0
  507. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.js.map +1 -0
  508. package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.d.ts +16 -0
  509. package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js +10 -0
  510. package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js.map +1 -0
  511. package/dist/lib/plugins/openapi/processors/removeExtensions.d.ts +8 -0
  512. package/dist/lib/plugins/openapi/processors/removeExtensions.js +16 -0
  513. package/dist/lib/plugins/openapi/processors/removeExtensions.js.map +1 -0
  514. package/dist/lib/plugins/openapi/processors/removeExtensions.test.d.ts +1 -0
  515. package/dist/lib/plugins/openapi/processors/removeExtensions.test.js +194 -0
  516. package/dist/lib/plugins/openapi/processors/removeExtensions.test.js.map +1 -0
  517. package/dist/lib/plugins/openapi/processors/removeParameters.d.ts +12 -0
  518. package/dist/lib/plugins/openapi/processors/removeParameters.js +66 -0
  519. package/dist/lib/plugins/openapi/processors/removeParameters.js.map +1 -0
  520. package/dist/lib/plugins/openapi/processors/removeParameters.test.d.ts +1 -0
  521. package/dist/lib/plugins/openapi/processors/removeParameters.test.js +159 -0
  522. package/dist/lib/plugins/openapi/processors/removeParameters.test.js.map +1 -0
  523. package/dist/lib/plugins/openapi/processors/removePaths.d.ts +13 -0
  524. package/dist/lib/plugins/openapi/processors/removePaths.js +33 -0
  525. package/dist/lib/plugins/openapi/processors/removePaths.js.map +1 -0
  526. package/dist/lib/plugins/openapi/processors/removePaths.test.d.ts +1 -0
  527. package/dist/lib/plugins/openapi/processors/removePaths.test.js +144 -0
  528. package/dist/lib/plugins/openapi/processors/removePaths.test.js.map +1 -0
  529. package/dist/lib/plugins/openapi/processors/traverse.d.ts +1 -0
  530. package/dist/lib/plugins/openapi/processors/traverse.js +2 -0
  531. package/dist/lib/plugins/openapi/processors/traverse.js.map +1 -0
  532. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.d.ts +1 -2
  533. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js +2 -2
  534. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js.map +1 -1
  535. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.d.ts +2 -1
  536. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js +2 -2
  537. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js.map +1 -1
  538. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.d.ts +0 -1
  539. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js +1 -1
  540. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js.map +1 -1
  541. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.d.ts +4 -0
  542. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js +15 -0
  543. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js.map +1 -0
  544. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.d.ts +11 -0
  545. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +44 -0
  546. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -0
  547. package/dist/lib/plugins/openapi/schema/SchemaView.d.ts +2 -2
  548. package/dist/lib/plugins/openapi/schema/SchemaView.js +40 -51
  549. package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
  550. package/dist/lib/plugins/openapi/schema/utils.d.ts +8 -1
  551. package/dist/lib/plugins/openapi/schema/utils.js +16 -4
  552. package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
  553. package/dist/lib/plugins/openapi/state.d.ts +25 -0
  554. package/dist/lib/plugins/openapi/state.js +18 -0
  555. package/dist/lib/plugins/openapi/state.js.map +1 -0
  556. package/dist/lib/plugins/openapi/util/createHttpSnippet.d.ts +11 -0
  557. package/dist/lib/plugins/openapi/util/createHttpSnippet.js +89 -0
  558. package/dist/lib/plugins/openapi/util/createHttpSnippet.js.map +1 -0
  559. package/dist/lib/plugins/openapi/util/createNavigationCategory.d.ts +9 -0
  560. package/dist/lib/plugins/openapi/util/createNavigationCategory.js +24 -0
  561. package/dist/lib/plugins/openapi/util/createNavigationCategory.js.map +1 -0
  562. package/dist/lib/plugins/openapi/util/generateSchemaExample.d.ts +1 -2
  563. package/dist/lib/plugins/openapi/util/generateSchemaExample.js +80 -39
  564. package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
  565. package/dist/lib/plugins/openapi/util/getRoutes.d.ts +10 -0
  566. package/dist/lib/plugins/openapi/util/getRoutes.js +117 -0
  567. package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -0
  568. package/dist/lib/plugins/openapi/util/methodColorMap.d.ts +2 -0
  569. package/dist/lib/plugins/openapi/util/methodColorMap.js +10 -0
  570. package/dist/lib/plugins/openapi/util/methodColorMap.js.map +1 -0
  571. package/dist/lib/plugins/openapi/util/methodToColor.d.ts +20 -0
  572. package/dist/lib/plugins/openapi/util/methodToColor.js +24 -0
  573. package/dist/lib/plugins/openapi/util/methodToColor.js.map +1 -0
  574. package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.d.ts +1 -0
  575. package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.js +27 -0
  576. package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.js.map +1 -0
  577. package/dist/lib/plugins/redirect/index.d.ts +4 -7
  578. package/dist/lib/plugins/redirect/index.js +2 -2
  579. package/dist/lib/plugins/redirect/index.js.map +1 -1
  580. package/dist/lib/plugins/search-inkeep/index.d.ts +8 -6
  581. package/dist/lib/plugins/search-inkeep/index.js +49 -7
  582. package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
  583. package/dist/lib/plugins/search-inkeep/inkeep.d.ts +2 -19
  584. package/dist/lib/plugins/search-inkeep/inkeep.js +10 -19
  585. package/dist/lib/plugins/search-inkeep/inkeep.js.map +1 -1
  586. package/dist/lib/plugins/search-pagefind/PagefindSearch.d.ts +6 -0
  587. package/dist/lib/plugins/search-pagefind/PagefindSearch.js +80 -0
  588. package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -0
  589. package/dist/lib/plugins/search-pagefind/ResultList.d.ts +8 -0
  590. package/dist/lib/plugins/search-pagefind/ResultList.js +39 -0
  591. package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -0
  592. package/dist/lib/plugins/search-pagefind/get-results.d.ts +10 -0
  593. package/dist/lib/plugins/search-pagefind/get-results.js +42 -0
  594. package/dist/lib/plugins/search-pagefind/get-results.js.map +1 -0
  595. package/dist/lib/plugins/search-pagefind/index.d.ts +6 -0
  596. package/dist/lib/plugins/search-pagefind/index.js +9 -0
  597. package/dist/lib/plugins/search-pagefind/index.js.map +1 -0
  598. package/dist/lib/plugins/search-pagefind/types.d.ts +85 -0
  599. package/dist/lib/plugins/search-pagefind/types.js +2 -0
  600. package/dist/lib/plugins/search-pagefind/types.js.map +1 -0
  601. package/dist/lib/shiki.d.ts +35 -0
  602. package/dist/lib/shiki.js +103 -0
  603. package/dist/lib/shiki.js.map +1 -0
  604. package/dist/lib/ui/Accordion.d.ts +7 -0
  605. package/dist/lib/ui/Accordion.js +14 -0
  606. package/dist/lib/ui/Accordion.js.map +1 -0
  607. package/dist/lib/ui/ActionButton.d.ts +4 -0
  608. package/dist/lib/ui/ActionButton.js +10 -0
  609. package/dist/lib/ui/ActionButton.js.map +1 -0
  610. package/dist/lib/ui/Alert.d.ts +9 -0
  611. package/dist/lib/ui/Alert.js +25 -0
  612. package/dist/lib/ui/Alert.js.map +1 -0
  613. package/dist/lib/ui/AlertDialog.d.ts +20 -0
  614. package/dist/lib/ui/AlertDialog.js +27 -0
  615. package/dist/lib/ui/AlertDialog.js.map +1 -0
  616. package/dist/lib/ui/AspectRatio.d.ts +3 -0
  617. package/dist/lib/ui/AspectRatio.js +4 -0
  618. package/dist/lib/ui/AspectRatio.js.map +1 -0
  619. package/dist/lib/ui/Badge.d.ts +9 -0
  620. package/dist/lib/ui/Badge.js +22 -0
  621. package/dist/lib/ui/Badge.js.map +1 -0
  622. package/dist/lib/ui/Breadcrumb.d.ts +19 -0
  623. package/dist/lib/ui/Breadcrumb.js +24 -0
  624. package/dist/lib/ui/Breadcrumb.js.map +1 -0
  625. package/dist/lib/ui/Button.d.ts +4 -5
  626. package/dist/lib/ui/Button.js +9 -6
  627. package/dist/lib/ui/Button.js.map +1 -1
  628. package/dist/lib/ui/Callout.d.ts +38 -36
  629. package/dist/lib/ui/Callout.js +3 -2
  630. package/dist/lib/ui/Callout.js.map +1 -1
  631. package/dist/lib/ui/Card.js +1 -1
  632. package/dist/lib/ui/Card.js.map +1 -1
  633. package/dist/lib/ui/Carousel.d.ts +18 -0
  634. package/dist/lib/ui/Carousel.js +99 -0
  635. package/dist/lib/ui/Carousel.js.map +1 -0
  636. package/dist/lib/ui/Checkbox.d.ts +4 -0
  637. package/dist/lib/ui/Checkbox.js +9 -0
  638. package/dist/lib/ui/Checkbox.js.map +1 -0
  639. package/dist/lib/ui/CodeBlock.d.ts +15 -0
  640. package/dist/lib/ui/CodeBlock.js +43 -0
  641. package/dist/lib/ui/CodeBlock.js.map +1 -0
  642. package/dist/lib/ui/Collapsible.d.ts +5 -0
  643. package/dist/lib/ui/Collapsible.js +6 -0
  644. package/dist/lib/ui/Collapsible.js.map +1 -0
  645. package/dist/lib/ui/Command.d.ts +94 -0
  646. package/dist/lib/ui/Command.js +35 -0
  647. package/dist/lib/ui/Command.js.map +1 -0
  648. package/dist/lib/ui/Dialog.d.ts +21 -0
  649. package/dist/lib/ui/Dialog.js +23 -0
  650. package/dist/lib/ui/Dialog.js.map +1 -0
  651. package/dist/lib/ui/Drawer.d.ts +8 -10
  652. package/dist/lib/ui/Drawer.js.map +1 -1
  653. package/dist/lib/ui/DropdownMenu.js +4 -4
  654. package/dist/lib/ui/DropdownMenu.js.map +1 -1
  655. package/dist/lib/ui/EmbeddedCodeBlock.d.ts +15 -0
  656. package/dist/lib/ui/EmbeddedCodeBlock.js +18 -0
  657. package/dist/lib/ui/EmbeddedCodeBlock.js.map +1 -0
  658. package/dist/lib/ui/Form.d.ts +23 -0
  659. package/dist/lib/ui/Form.js +63 -0
  660. package/dist/lib/ui/Form.js.map +1 -0
  661. package/dist/lib/ui/HoverCard.d.ts +6 -0
  662. package/dist/lib/ui/HoverCard.js +10 -0
  663. package/dist/lib/ui/HoverCard.js.map +1 -0
  664. package/dist/lib/ui/Input.d.ts +1 -2
  665. package/dist/lib/ui/Input.js +1 -1
  666. package/dist/lib/ui/Input.js.map +1 -1
  667. package/dist/lib/ui/Label.d.ts +5 -0
  668. package/dist/lib/ui/Label.js +10 -0
  669. package/dist/lib/ui/Label.js.map +1 -0
  670. package/dist/lib/ui/Pagination.d.ts +28 -0
  671. package/dist/lib/ui/Pagination.js +24 -0
  672. package/dist/lib/ui/Pagination.js.map +1 -0
  673. package/dist/lib/ui/Popover.d.ts +6 -0
  674. package/dist/lib/ui/Popover.js +10 -0
  675. package/dist/lib/ui/Popover.js.map +1 -0
  676. package/dist/lib/ui/Progress.d.ts +4 -0
  677. package/dist/lib/ui/Progress.js +8 -0
  678. package/dist/lib/ui/Progress.js.map +1 -0
  679. package/dist/lib/ui/RadioGroup.d.ts +5 -0
  680. package/dist/lib/ui/RadioGroup.js +15 -0
  681. package/dist/lib/ui/RadioGroup.js.map +1 -0
  682. package/dist/lib/ui/ScrollArea.d.ts +5 -0
  683. package/dist/lib/ui/ScrollArea.js +12 -0
  684. package/dist/lib/ui/ScrollArea.js.map +1 -0
  685. package/dist/lib/ui/Select.js +27 -0
  686. package/dist/lib/ui/Select.js.map +1 -0
  687. package/dist/lib/ui/Skeleton.d.ts +2 -0
  688. package/dist/lib/ui/Skeleton.js +7 -0
  689. package/dist/lib/ui/Skeleton.js.map +1 -0
  690. package/dist/lib/ui/Slider.d.ts +4 -0
  691. package/dist/lib/ui/Slider.js +8 -0
  692. package/dist/lib/ui/Slider.js.map +1 -0
  693. package/dist/lib/ui/Stepper.d.ts +3 -0
  694. package/dist/lib/ui/Stepper.js +7 -0
  695. package/dist/lib/ui/Stepper.js.map +1 -0
  696. package/dist/lib/ui/Switch.d.ts +4 -0
  697. package/dist/lib/ui/Switch.js +8 -0
  698. package/dist/lib/ui/Switch.js.map +1 -0
  699. package/dist/lib/ui/SyntaxHighlight.d.ts +12 -0
  700. package/dist/lib/ui/SyntaxHighlight.js +15 -0
  701. package/dist/lib/ui/SyntaxHighlight.js.map +1 -0
  702. package/dist/lib/ui/Tabs.js +2 -2
  703. package/dist/lib/ui/Tabs.js.map +1 -1
  704. package/dist/lib/ui/Textarea.d.ts +4 -0
  705. package/dist/lib/ui/Textarea.js +9 -0
  706. package/dist/lib/ui/Textarea.js.map +1 -0
  707. package/dist/lib/ui/Toggle.d.ts +12 -0
  708. package/dist/lib/ui/Toggle.js +26 -0
  709. package/dist/lib/ui/Toggle.js.map +1 -0
  710. package/dist/lib/ui/ToggleGroup.d.ts +12 -0
  711. package/dist/lib/ui/ToggleGroup.js +21 -0
  712. package/dist/lib/ui/ToggleGroup.js.map +1 -0
  713. package/dist/lib/ui/Tooltip.d.ts +8 -0
  714. package/dist/lib/ui/Tooltip.js +12 -0
  715. package/dist/lib/ui/Tooltip.js.map +1 -0
  716. package/dist/lib/ui/util.d.ts +2 -0
  717. package/dist/lib/ui/util.js +3 -0
  718. package/dist/lib/ui/util.js.map +1 -0
  719. package/dist/lib/util/MdxComponents.d.ts +38 -21
  720. package/dist/lib/util/MdxComponents.js +21 -17
  721. package/dist/lib/util/MdxComponents.js.map +1 -1
  722. package/dist/lib/util/createVariantComponent.d.ts +2 -2
  723. package/dist/lib/util/detectOS.d.ts +1 -0
  724. package/dist/lib/util/detectOS.js +11 -0
  725. package/dist/lib/util/detectOS.js.map +1 -0
  726. package/dist/lib/util/ensureArray.d.ts +1 -0
  727. package/dist/lib/util/ensureArray.js +2 -0
  728. package/dist/lib/util/ensureArray.js.map +1 -0
  729. package/dist/lib/util/humanFileSize.d.ts +6 -0
  730. package/dist/lib/util/humanFileSize.js +14 -0
  731. package/dist/lib/util/humanFileSize.js.map +1 -0
  732. package/dist/lib/util/humanFileSize.test.d.ts +1 -0
  733. package/dist/lib/util/humanFileSize.test.js +22 -0
  734. package/dist/lib/util/humanFileSize.test.js.map +1 -0
  735. package/dist/lib/util/invariant.d.ts +10 -0
  736. package/dist/lib/util/invariant.js +7 -3
  737. package/dist/lib/util/invariant.js.map +1 -1
  738. package/dist/lib/util/joinPath.d.ts +3 -0
  739. package/dist/lib/util/joinPath.js +3 -0
  740. package/dist/lib/util/joinPath.js.map +1 -1
  741. package/dist/lib/util/joinUrl.d.ts +1 -0
  742. package/dist/lib/util/joinUrl.js +40 -0
  743. package/dist/lib/util/joinUrl.js.map +1 -0
  744. package/dist/lib/util/joinUrl.test.d.ts +1 -0
  745. package/dist/lib/util/joinUrl.test.js +43 -0
  746. package/dist/lib/util/joinUrl.test.js.map +1 -0
  747. package/dist/lib/util/os.d.ts +2 -0
  748. package/dist/lib/util/os.js +21 -0
  749. package/dist/lib/util/os.js.map +1 -0
  750. package/dist/lib/util/scrollIntoViewIfNeeded.d.ts +1 -0
  751. package/dist/lib/util/scrollIntoViewIfNeeded.js +14 -0
  752. package/dist/lib/util/scrollIntoViewIfNeeded.js.map +1 -0
  753. package/dist/lib/util/traverse.d.ts +3 -0
  754. package/dist/lib/util/traverse.js +23 -0
  755. package/dist/lib/util/traverse.js.map +1 -0
  756. package/dist/lib/util/types.d.ts +7 -0
  757. package/dist/lib/util/types.js +2 -0
  758. package/dist/lib/util/types.js.map +1 -0
  759. package/dist/lib/util/url.d.ts +4 -0
  760. package/dist/lib/util/url.js +13 -0
  761. package/dist/lib/util/url.js.map +1 -0
  762. package/dist/lib/util/url.test.d.ts +1 -0
  763. package/dist/lib/util/url.test.js +26 -0
  764. package/dist/lib/util/url.test.js.map +1 -0
  765. package/dist/lib/util/useCopyToClipboard.d.ts +1 -0
  766. package/dist/lib/util/useCopyToClipboard.js +11 -0
  767. package/dist/lib/util/useCopyToClipboard.js.map +1 -0
  768. package/dist/lib/util/useExposedProps.d.ts +9 -0
  769. package/dist/lib/util/useExposedProps.js +9 -0
  770. package/dist/lib/util/useExposedProps.js.map +1 -0
  771. package/dist/lib/util/useIsomorphicLayoutEffect.d.ts +3 -0
  772. package/dist/lib/util/useIsomorphicLayoutEffect.js +4 -0
  773. package/dist/lib/util/useIsomorphicLayoutEffect.js.map +1 -0
  774. package/dist/lib/util/useLatest.d.ts +1 -0
  775. package/dist/lib/util/useLatest.js +15 -0
  776. package/dist/lib/util/useLatest.js.map +1 -0
  777. package/dist/lib/util/useOnScreen.d.ts +5 -0
  778. package/dist/lib/util/useOnScreen.js +19 -0
  779. package/dist/lib/util/useOnScreen.js.map +1 -0
  780. package/dist/lib/util/useScrollToAnchor.d.ts +1 -0
  781. package/dist/lib/util/useScrollToAnchor.js +43 -38
  782. package/dist/lib/util/useScrollToAnchor.js.map +1 -1
  783. package/dist/lib/util/useScrollToTop.js +7 -5
  784. package/dist/lib/util/useScrollToTop.js.map +1 -1
  785. package/dist/vite/api/SchemaManager.d.ts +36 -0
  786. package/dist/vite/api/SchemaManager.js +141 -0
  787. package/dist/vite/api/SchemaManager.js.map +1 -0
  788. package/dist/vite/api/SchemaManager.test.d.ts +1 -0
  789. package/dist/vite/api/SchemaManager.test.js +106 -0
  790. package/dist/vite/api/SchemaManager.test.js.map +1 -0
  791. package/dist/vite/api/schema-codegen.d.ts +12 -0
  792. package/dist/vite/api/schema-codegen.js +116 -0
  793. package/dist/vite/api/schema-codegen.js.map +1 -0
  794. package/dist/vite/api/schema-codegen.test.d.ts +1 -0
  795. package/dist/vite/api/schema-codegen.test.js +395 -0
  796. package/dist/vite/api/schema-codegen.test.js.map +1 -0
  797. package/dist/vite/build.js +62 -13
  798. package/dist/vite/build.js.map +1 -1
  799. package/dist/vite/config.d.ts +2 -16
  800. package/dist/vite/config.js +122 -147
  801. package/dist/vite/config.js.map +1 -1
  802. package/dist/vite/config.test.js +12 -6
  803. package/dist/vite/config.test.js.map +1 -1
  804. package/dist/vite/create-pagefind-index.d.ts +4 -0
  805. package/dist/vite/create-pagefind-index.js +12 -0
  806. package/dist/vite/create-pagefind-index.js.map +1 -0
  807. package/dist/vite/css/collect.d.ts +2 -0
  808. package/dist/vite/css/collect.js +27 -0
  809. package/dist/vite/css/collect.js.map +1 -0
  810. package/dist/vite/css/plugin.d.ts +4 -0
  811. package/dist/vite/css/plugin.js +91 -0
  812. package/dist/vite/css/plugin.js.map +1 -0
  813. package/dist/vite/debug.d.ts +1 -0
  814. package/dist/vite/debug.js +10 -0
  815. package/dist/vite/debug.js.map +1 -0
  816. package/dist/vite/dev-server.d.ts +11 -4
  817. package/dist/vite/dev-server.js +91 -22
  818. package/dist/vite/dev-server.js.map +1 -1
  819. package/dist/vite/error-handler.d.ts +1 -1
  820. package/dist/vite/error-handler.js +1 -1
  821. package/dist/vite/error-handler.js.map +1 -1
  822. package/dist/vite/html.d.ts +7 -3
  823. package/dist/vite/html.js +15 -11
  824. package/dist/vite/html.js.map +1 -1
  825. package/dist/vite/mdx/remark-inject-filepath.d.ts +3 -0
  826. package/dist/vite/mdx/remark-inject-filepath.js +6 -0
  827. package/dist/vite/mdx/remark-inject-filepath.js.map +1 -0
  828. package/dist/vite/mdx/remark-last-modified.d.ts +3 -0
  829. package/dist/vite/mdx/remark-last-modified.js +29 -0
  830. package/dist/vite/mdx/remark-last-modified.js.map +1 -0
  831. package/dist/vite/mdx/remark-link-rewrite.d.ts +2 -0
  832. package/dist/vite/mdx/remark-link-rewrite.js +20 -0
  833. package/dist/vite/mdx/remark-link-rewrite.js.map +1 -0
  834. package/dist/vite/mdx/remark-normalize-image-url.d.ts +2 -0
  835. package/dist/vite/mdx/remark-normalize-image-url.js +12 -0
  836. package/dist/vite/mdx/remark-normalize-image-url.js.map +1 -0
  837. package/dist/vite/mdx/remark-static-generation.d.ts +3 -0
  838. package/dist/vite/mdx/remark-static-generation.js +125 -0
  839. package/dist/vite/mdx/remark-static-generation.js.map +1 -0
  840. package/dist/vite/mdx/utils.d.ts +2 -0
  841. package/dist/vite/mdx/utils.js +31 -0
  842. package/dist/vite/mdx/utils.js.map +1 -0
  843. package/dist/vite/output.d.ts +113 -0
  844. package/dist/vite/output.js +60 -0
  845. package/dist/vite/output.js.map +1 -0
  846. package/dist/vite/plugin-api-keys.d.ts +1 -2
  847. package/dist/vite/plugin-api-keys.js +13 -7
  848. package/dist/vite/plugin-api-keys.js.map +1 -1
  849. package/dist/vite/plugin-api.d.ts +1 -2
  850. package/dist/vite/plugin-api.js +146 -32
  851. package/dist/vite/plugin-api.js.map +1 -1
  852. package/dist/vite/plugin-auth.d.ts +1 -2
  853. package/dist/vite/plugin-auth.js +10 -6
  854. package/dist/vite/plugin-auth.js.map +1 -1
  855. package/dist/vite/plugin-component.d.ts +1 -2
  856. package/dist/vite/plugin-component.js +25 -15
  857. package/dist/vite/plugin-component.js.map +1 -1
  858. package/dist/vite/plugin-config-reload.d.ts +3 -4
  859. package/dist/vite/plugin-config-reload.js +31 -25
  860. package/dist/vite/plugin-config-reload.js.map +1 -1
  861. package/dist/vite/plugin-config.d.ts +2 -4
  862. package/dist/vite/plugin-config.js +28 -3
  863. package/dist/vite/plugin-config.js.map +1 -1
  864. package/dist/vite/plugin-custom-pages.d.ts +3 -0
  865. package/dist/vite/plugin-custom-pages.js +31 -0
  866. package/dist/vite/plugin-custom-pages.js.map +1 -0
  867. package/dist/vite/plugin-docs.d.ts +2 -3
  868. package/dist/vite/plugin-docs.js +74 -38
  869. package/dist/vite/plugin-docs.js.map +1 -1
  870. package/dist/vite/plugin-frontmatter.js +33 -24
  871. package/dist/vite/plugin-frontmatter.js.map +1 -1
  872. package/dist/vite/plugin-mdx.d.ts +1 -8
  873. package/dist/vite/plugin-mdx.js +67 -21
  874. package/dist/vite/plugin-mdx.js.map +1 -1
  875. package/dist/vite/plugin-navigation.d.ts +4 -0
  876. package/dist/vite/plugin-navigation.js +64 -0
  877. package/dist/vite/plugin-navigation.js.map +1 -0
  878. package/dist/vite/plugin-redirect.d.ts +1 -2
  879. package/dist/vite/plugin-redirect.js +6 -5
  880. package/dist/vite/plugin-redirect.js.map +1 -1
  881. package/dist/vite/plugin-search.d.ts +2 -0
  882. package/dist/vite/plugin-search.js +31 -0
  883. package/dist/vite/plugin-search.js.map +1 -0
  884. package/dist/vite/plugin-shiki-register.d.ts +2 -0
  885. package/dist/vite/plugin-shiki-register.js +39 -0
  886. package/dist/vite/plugin-shiki-register.js.map +1 -0
  887. package/dist/vite/plugin-theme.d.ts +8 -0
  888. package/dist/vite/plugin-theme.js +274 -0
  889. package/dist/vite/plugin-theme.js.map +1 -0
  890. package/dist/vite/plugin-theme.test.d.ts +1 -0
  891. package/dist/vite/plugin-theme.test.js +312 -0
  892. package/dist/vite/plugin-theme.test.js.map +1 -0
  893. package/dist/vite/plugin.d.ts +1 -3
  894. package/dist/vite/plugin.js +25 -18
  895. package/dist/vite/plugin.js.map +1 -1
  896. package/dist/vite/prerender/FileWritingResponse.d.ts +25 -0
  897. package/dist/vite/prerender/FileWritingResponse.js +51 -0
  898. package/dist/vite/prerender/FileWritingResponse.js.map +1 -0
  899. package/dist/vite/prerender/InMemoryResponse.d.ts +16 -0
  900. package/dist/vite/prerender/InMemoryResponse.js +32 -0
  901. package/dist/vite/prerender/InMemoryResponse.js.map +1 -0
  902. package/dist/vite/prerender/PrerenderResponse.d.ts +10 -0
  903. package/dist/vite/prerender/PrerenderResponse.js +2 -0
  904. package/dist/vite/prerender/PrerenderResponse.js.map +1 -0
  905. package/dist/vite/prerender/prerender.d.ts +15 -0
  906. package/dist/vite/prerender/prerender.js +109 -0
  907. package/dist/vite/prerender/prerender.js.map +1 -0
  908. package/dist/vite/prerender/worker.d.ts +13 -0
  909. package/dist/vite/prerender/worker.js +63 -0
  910. package/dist/vite/prerender/worker.js.map +1 -0
  911. package/dist/vite/reporter.d.ts +3 -0
  912. package/dist/vite/reporter.js +33 -0
  913. package/dist/vite/reporter.js.map +1 -0
  914. package/dist/vite/shadcn-registry.d.ts +45 -0
  915. package/dist/vite/shadcn-registry.js +29 -0
  916. package/dist/vite/shadcn-registry.js.map +1 -0
  917. package/dist/vite/sitemap.d.ts +1 -1
  918. package/dist/vite/sitemap.js +2 -1
  919. package/dist/vite/sitemap.js.map +1 -1
  920. package/dist/zuplo/enrich-with-zuplo.d.ts +5 -0
  921. package/dist/zuplo/enrich-with-zuplo.js +185 -0
  922. package/dist/zuplo/enrich-with-zuplo.js.map +1 -0
  923. package/dist/zuplo/policy-types.d.ts +33 -0
  924. package/dist/zuplo/policy-types.js +8 -0
  925. package/dist/zuplo/policy-types.js.map +1 -0
  926. package/dist/zuplo/with-zuplo-processors.d.ts +3 -0
  927. package/dist/zuplo/with-zuplo-processors.js +26 -0
  928. package/dist/zuplo/with-zuplo-processors.js.map +1 -0
  929. package/dist/zuplo/with-zuplo.d.ts +6 -0
  930. package/dist/zuplo/with-zuplo.js +10 -0
  931. package/dist/zuplo/with-zuplo.js.map +1 -0
  932. package/lib/Button-B3o-2Xdf.js +51 -0
  933. package/lib/Button-B3o-2Xdf.js.map +1 -0
  934. package/lib/Card-CMDQUPM4.js +61 -0
  935. package/lib/Card-CMDQUPM4.js.map +1 -0
  936. package/lib/ClientOnly-E7hGysn1.js +11 -0
  937. package/lib/ClientOnly-E7hGysn1.js.map +1 -0
  938. package/lib/CodeBlock-CVT6z0PP.js +98 -0
  939. package/lib/CodeBlock-CVT6z0PP.js.map +1 -0
  940. package/lib/Command-BYukybsa.js +140 -0
  941. package/lib/Command-BYukybsa.js.map +1 -0
  942. package/lib/Dialog-u9Uz9sTt.js +99 -0
  943. package/lib/Dialog-u9Uz9sTt.js.map +1 -0
  944. package/lib/Drawer-DJ05s2pH.js +1133 -0
  945. package/lib/Drawer-DJ05s2pH.js.map +1 -0
  946. package/lib/MdxPage-plD-n8fm.js +110 -0
  947. package/lib/MdxPage-plD-n8fm.js.map +1 -0
  948. package/lib/OAuthErrorPage-BTP-t8Fq.js +150 -0
  949. package/lib/OAuthErrorPage-BTP-t8Fq.js.map +1 -0
  950. package/lib/OasProvider-CYf5xe1a.js +35 -0
  951. package/lib/OasProvider-CYf5xe1a.js.map +1 -0
  952. package/lib/OperationList-C_-vAmhs.js +5168 -0
  953. package/lib/OperationList-C_-vAmhs.js.map +1 -0
  954. package/lib/Pagination-BAO0V4os.js +37 -0
  955. package/lib/Pagination-BAO0V4os.js.map +1 -0
  956. package/lib/RouteGuard-gznKADdm.js +738 -0
  957. package/lib/RouteGuard-gznKADdm.js.map +1 -0
  958. package/lib/SchemaList-B8Ws7y1f.js +149 -0
  959. package/lib/SchemaList-B8Ws7y1f.js.map +1 -0
  960. package/lib/SchemaView-CHb3DJ6D.js +366 -0
  961. package/lib/SchemaView-CHb3DJ6D.js.map +1 -0
  962. package/lib/Select-ByPbK6BU.js +273 -0
  963. package/lib/Select-ByPbK6BU.js.map +1 -0
  964. package/lib/SignUp-BXxkBCGy.js +56 -0
  965. package/lib/SignUp-BXxkBCGy.js.map +1 -0
  966. package/lib/Slot-DDNiyFIv.js +15739 -0
  967. package/lib/Slot-DDNiyFIv.js.map +1 -0
  968. package/lib/Spinner-mNLZ6awP.js +7 -0
  969. package/lib/Spinner-mNLZ6awP.js.map +1 -0
  970. package/lib/SyntaxHighlight-jSFm3PeK.js +10308 -0
  971. package/lib/SyntaxHighlight-jSFm3PeK.js.map +1 -0
  972. package/lib/Toc-CKEI04R5.js +92 -0
  973. package/lib/Toc-CKEI04R5.js.map +1 -0
  974. package/lib/ZudokuContext-mDDq1hft.js +1286 -0
  975. package/lib/ZudokuContext-mDDq1hft.js.map +1 -0
  976. package/lib/chunk-QMGIS6GS-CdEm9pzB.js +1839 -0
  977. package/lib/chunk-QMGIS6GS-CdEm9pzB.js.map +1 -0
  978. package/lib/circular-CyP38iiX.js +14934 -0
  979. package/lib/circular-CyP38iiX.js.map +1 -0
  980. package/lib/clsx-OuTLNxxd.js +17 -0
  981. package/lib/clsx-OuTLNxxd.js.map +1 -0
  982. package/lib/cn-dYga0KKN.js +2731 -0
  983. package/lib/cn-dYga0KKN.js.map +1 -0
  984. package/lib/createServer-B4w9HCV7.js +12505 -0
  985. package/lib/createServer-B4w9HCV7.js.map +1 -0
  986. package/lib/errors-v4zc7txj.js +45 -0
  987. package/lib/errors-v4zc7txj.js.map +1 -0
  988. package/lib/hook-CGx8MPrU.js +247 -0
  989. package/lib/hook-CGx8MPrU.js.map +1 -0
  990. package/lib/index-C5fXNRSh.js +2094 -0
  991. package/lib/index-C5fXNRSh.js.map +1 -0
  992. package/lib/index-CrcNWbel.js +316 -0
  993. package/lib/index-CrcNWbel.js.map +1 -0
  994. package/lib/index-D1LmO5Bn.js +4082 -0
  995. package/lib/index-D1LmO5Bn.js.map +1 -0
  996. package/lib/index-DI5SPFK9.js +36 -0
  997. package/lib/index-DI5SPFK9.js.map +1 -0
  998. package/lib/index-DmNq2fbN.js +4827 -0
  999. package/lib/index-DmNq2fbN.js.map +1 -0
  1000. package/lib/index-DnkZAg98.js +3391 -0
  1001. package/lib/index-DnkZAg98.js.map +1 -0
  1002. package/lib/index.esm-CdzlRw50.js +1254 -0
  1003. package/lib/index.esm-CdzlRw50.js.map +1 -0
  1004. package/lib/invariant-Bm-FVUQE.js +44 -0
  1005. package/lib/invariant-Bm-FVUQE.js.map +1 -0
  1006. package/lib/jsx-runtime-C5mzlN2N.js +285 -0
  1007. package/lib/jsx-runtime-C5mzlN2N.js.map +1 -0
  1008. package/lib/processors/removeExtensions.js +11 -0
  1009. package/lib/processors/removeExtensions.js.map +1 -0
  1010. package/lib/processors/removeParameters.js +47 -0
  1011. package/lib/processors/removeParameters.js.map +1 -0
  1012. package/lib/processors/removePaths.js +28 -0
  1013. package/lib/processors/removePaths.js.map +1 -0
  1014. package/lib/processors/traverse.js +17 -0
  1015. package/lib/processors/traverse.js.map +1 -0
  1016. package/lib/ui/Accordion.js +47 -0
  1017. package/lib/ui/Accordion.js.map +1 -0
  1018. package/lib/ui/ActionButton.js +25 -0
  1019. package/lib/ui/ActionButton.js.map +1 -0
  1020. package/lib/ui/Alert.js +67 -0
  1021. package/lib/ui/Alert.js.map +1 -0
  1022. package/lib/ui/AlertDialog.js +114 -0
  1023. package/lib/ui/AlertDialog.js.map +1 -0
  1024. package/lib/ui/AspectRatio.js +6 -0
  1025. package/lib/ui/AspectRatio.js.map +1 -0
  1026. package/lib/ui/Badge.js +28 -0
  1027. package/lib/ui/Badge.js.map +1 -0
  1028. package/lib/ui/Breadcrumb.js +94 -0
  1029. package/lib/ui/Breadcrumb.js.map +1 -0
  1030. package/lib/ui/Button.js +52 -0
  1031. package/lib/ui/Button.js.map +1 -0
  1032. package/lib/ui/Callout.js +97 -0
  1033. package/lib/ui/Callout.js.map +1 -0
  1034. package/lib/ui/Card.js +62 -0
  1035. package/lib/ui/Card.js.map +1 -0
  1036. package/lib/ui/Carousel.js +1416 -0
  1037. package/lib/ui/Carousel.js.map +1 -0
  1038. package/lib/ui/Checkbox.js +29 -0
  1039. package/lib/ui/Checkbox.js.map +1 -0
  1040. package/lib/ui/CodeBlock.js +9 -0
  1041. package/lib/ui/CodeBlock.js.map +1 -0
  1042. package/lib/ui/Collapsible.js +8 -0
  1043. package/lib/ui/Collapsible.js.map +1 -0
  1044. package/lib/ui/Command.js +156 -0
  1045. package/lib/ui/Command.js.map +1 -0
  1046. package/lib/ui/Dialog.js +101 -0
  1047. package/lib/ui/Dialog.js.map +1 -0
  1048. package/lib/ui/Drawer.js +17 -0
  1049. package/lib/ui/Drawer.js.map +1 -0
  1050. package/lib/ui/DropdownMenu.js +145 -0
  1051. package/lib/ui/DropdownMenu.js.map +1 -0
  1052. package/lib/ui/EmbeddedCodeBlock.js +80 -0
  1053. package/lib/ui/EmbeddedCodeBlock.js.map +1 -0
  1054. package/lib/ui/Form.js +95 -0
  1055. package/lib/ui/Form.js.map +1 -0
  1056. package/lib/ui/HoverCard.js +24 -0
  1057. package/lib/ui/HoverCard.js.map +1 -0
  1058. package/lib/ui/Input.js +22 -0
  1059. package/lib/ui/Input.js.map +1 -0
  1060. package/lib/ui/Label.js +20 -0
  1061. package/lib/ui/Label.js.map +1 -0
  1062. package/lib/ui/Pagination.js +106 -0
  1063. package/lib/ui/Pagination.js.map +1 -0
  1064. package/lib/ui/Popover.js +24 -0
  1065. package/lib/ui/Popover.js.map +1 -0
  1066. package/lib/ui/Progress.js +27 -0
  1067. package/lib/ui/Progress.js.map +1 -0
  1068. package/lib/ui/RadioGroup.js +32 -0
  1069. package/lib/ui/RadioGroup.js.map +1 -0
  1070. package/lib/ui/ScrollArea.js +39 -0
  1071. package/lib/ui/ScrollArea.js.map +1 -0
  1072. package/lib/ui/Select.js +122 -0
  1073. package/lib/ui/Select.js.map +1 -0
  1074. package/lib/ui/Skeleton.js +18 -0
  1075. package/lib/ui/Skeleton.js.map +1 -0
  1076. package/lib/ui/Slider.js +24 -0
  1077. package/lib/ui/Slider.js.map +1 -0
  1078. package/lib/ui/Stepper.js +6 -0
  1079. package/lib/ui/Stepper.js.map +1 -0
  1080. package/lib/ui/Switch.js +28 -0
  1081. package/lib/ui/Switch.js.map +1 -0
  1082. package/lib/ui/SyntaxHighlight.js +11 -0
  1083. package/lib/ui/SyntaxHighlight.js.map +1 -0
  1084. package/lib/ui/Tabs.js +47 -0
  1085. package/lib/ui/Tabs.js.map +1 -0
  1086. package/lib/ui/Textarea.js +21 -0
  1087. package/lib/ui/Textarea.js.map +1 -0
  1088. package/lib/ui/Toggle.js +38 -0
  1089. package/lib/ui/Toggle.js.map +1 -0
  1090. package/lib/ui/ToggleGroup.js +42 -0
  1091. package/lib/ui/ToggleGroup.js.map +1 -0
  1092. package/lib/ui/Tooltip.js +31 -0
  1093. package/lib/ui/Tooltip.js.map +1 -0
  1094. package/lib/ui/util.js +6 -0
  1095. package/lib/ui/util.js.map +1 -0
  1096. package/lib/useExposedProps-DUoV7MCU.js +113 -0
  1097. package/lib/useExposedProps-DUoV7MCU.js.map +1 -0
  1098. package/lib/zudoku.auth-auth0.js +32 -30
  1099. package/lib/zudoku.auth-auth0.js.map +1 -1
  1100. package/lib/zudoku.auth-azureb2c.js +137 -0
  1101. package/lib/zudoku.auth-azureb2c.js.map +1 -0
  1102. package/lib/zudoku.auth-clerk.js +111 -60
  1103. package/lib/zudoku.auth-clerk.js.map +1 -1
  1104. package/lib/zudoku.auth-openid.js +637 -653
  1105. package/lib/zudoku.auth-openid.js.map +1 -1
  1106. package/lib/zudoku.auth-supabase.js +97 -0
  1107. package/lib/zudoku.auth-supabase.js.map +1 -0
  1108. package/lib/zudoku.components.js +34 -3364
  1109. package/lib/zudoku.components.js.map +1 -1
  1110. package/lib/zudoku.hooks.js +27 -0
  1111. package/lib/zudoku.hooks.js.map +1 -0
  1112. package/lib/zudoku.icons.js +10 -0
  1113. package/lib/zudoku.icons.js.map +1 -1
  1114. package/lib/zudoku.plugin-api-catalog.js +118 -0
  1115. package/lib/zudoku.plugin-api-catalog.js.map +1 -0
  1116. package/lib/zudoku.plugin-api-keys.js +659 -200
  1117. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  1118. package/lib/zudoku.plugin-custom-pages.js +16 -0
  1119. package/lib/zudoku.plugin-custom-pages.js.map +1 -0
  1120. package/lib/zudoku.plugin-markdown.js +21 -28
  1121. package/lib/zudoku.plugin-markdown.js.map +1 -1
  1122. package/lib/zudoku.plugin-openapi.js +9 -12
  1123. package/lib/zudoku.plugin-openapi.js.map +1 -1
  1124. package/lib/zudoku.plugin-redirect.js +2 -2
  1125. package/lib/zudoku.plugin-redirect.js.map +1 -1
  1126. package/lib/zudoku.plugin-search-inkeep.js +61 -40
  1127. package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
  1128. package/lib/zudoku.plugin-search-pagefind.js +325 -0
  1129. package/lib/zudoku.plugin-search-pagefind.js.map +1 -0
  1130. package/lib/zudoku.plugins.js +15 -0
  1131. package/lib/zudoku.plugins.js.map +1 -0
  1132. package/package.json +209 -107
  1133. package/src/app/ZuploBuildConfig.ts +33 -0
  1134. package/src/app/defaultTheme.css +73 -0
  1135. package/src/app/demo-cdn.html +31 -31
  1136. package/src/app/demo.html +1 -1
  1137. package/src/app/demo.tsx +25 -11
  1138. package/src/app/entry.client.tsx +71 -5
  1139. package/src/app/entry.server.tsx +81 -62
  1140. package/src/app/env.ts +43 -0
  1141. package/src/app/font.geist.css +73 -0
  1142. package/src/app/main.css +177 -131
  1143. package/src/app/main.tsx +79 -78
  1144. package/src/app/sentry.ts +24 -0
  1145. package/src/app/standalone.tsx +8 -11
  1146. package/src/lib/MissingIcon.tsx +22 -0
  1147. package/src/lib/auth/issuer.test.ts +120 -0
  1148. package/src/lib/auth/issuer.ts +41 -0
  1149. package/src/lib/authentication/AuthenticationPlugin.tsx +8 -5
  1150. package/src/lib/authentication/authentication.ts +7 -8
  1151. package/src/lib/authentication/components/CallbackHandler.tsx +36 -50
  1152. package/src/lib/authentication/components/OAuthErrorPage.tsx +171 -0
  1153. package/src/lib/authentication/components/SignIn.tsx +28 -2
  1154. package/src/lib/authentication/components/SignOut.tsx +3 -2
  1155. package/src/lib/authentication/components/SignUp.tsx +35 -1
  1156. package/src/lib/authentication/errors.ts +27 -13
  1157. package/src/lib/authentication/hook.ts +15 -4
  1158. package/src/lib/authentication/providers/auth0.tsx +29 -19
  1159. package/src/lib/authentication/providers/azureb2c.tsx +201 -0
  1160. package/src/lib/authentication/providers/clerk.tsx +131 -54
  1161. package/src/lib/authentication/providers/openid.tsx +169 -88
  1162. package/src/lib/authentication/providers/supabase.tsx +150 -0
  1163. package/src/lib/authentication/state.ts +86 -25
  1164. package/src/lib/authentication/use-broadcast/LICENSE.md +9 -0
  1165. package/src/lib/authentication/use-broadcast/shared.ts +372 -0
  1166. package/src/lib/authentication/use-broadcast/useBroadcast.ts +146 -0
  1167. package/src/lib/components/AnchorLink.tsx +13 -8
  1168. package/src/lib/components/Autocomplete.tsx +114 -0
  1169. package/src/lib/components/Banner.tsx +3 -3
  1170. package/src/lib/components/Bootstrap.tsx +43 -16
  1171. package/src/lib/components/BuildCheck.tsx +75 -0
  1172. package/src/lib/components/CategoryHeading.tsx +4 -1
  1173. package/src/lib/components/ClientOnly.tsx +6 -3
  1174. package/src/lib/components/DeveloperHint.tsx +6 -1
  1175. package/src/lib/components/ErrorPage.tsx +3 -3
  1176. package/src/lib/components/Footer.tsx +136 -0
  1177. package/src/lib/components/Framed.tsx +51 -0
  1178. package/src/lib/components/Header.tsx +119 -63
  1179. package/src/lib/components/Heading.tsx +26 -18
  1180. package/src/lib/components/InlineCode.tsx +13 -16
  1181. package/src/lib/components/Layout.tsx +36 -59
  1182. package/src/lib/components/Main.tsx +51 -0
  1183. package/src/lib/components/Markdown.tsx +42 -30
  1184. package/src/lib/components/MobileTopNavigation.tsx +100 -28
  1185. package/src/lib/components/NotFoundPage.tsx +7 -6
  1186. package/src/lib/components/PageProgress.tsx +28 -0
  1187. package/src/lib/components/Pagination.tsx +45 -0
  1188. package/src/lib/components/PathRenderer.tsx +61 -0
  1189. package/src/lib/components/ReactMarkdown.license.txt +21 -0
  1190. package/src/lib/components/ReactMarkdown.tsx +264 -0
  1191. package/src/lib/components/Search.tsx +19 -8
  1192. package/src/lib/components/Slot.test.tsx +465 -0
  1193. package/src/lib/components/Slot.tsx +64 -0
  1194. package/src/lib/components/StatusPage.tsx +96 -0
  1195. package/src/lib/components/ThemeSwitch.tsx +46 -0
  1196. package/src/lib/components/TopNavigation.tsx +104 -27
  1197. package/src/lib/components/Typography.tsx +14 -0
  1198. package/src/lib/components/Zudoku.tsx +119 -0
  1199. package/src/lib/components/cache.ts +23 -0
  1200. package/src/lib/components/context/BypassProtectedRoutesContext.ts +3 -0
  1201. package/src/lib/components/context/RouterEventsEmitter.tsx +19 -0
  1202. package/src/lib/components/context/SlotProvider.tsx +149 -0
  1203. package/src/lib/components/context/ViewportAnchorContext.tsx +34 -36
  1204. package/src/lib/components/context/ZudokuContext.ts +77 -28
  1205. package/src/lib/components/context/ZudokuProvider.tsx +4 -3
  1206. package/src/lib/components/index.ts +40 -7
  1207. package/src/lib/components/navigation/Navigation.tsx +50 -0
  1208. package/src/lib/components/navigation/NavigationBadge.tsx +48 -0
  1209. package/src/lib/components/navigation/NavigationCategory.tsx +146 -0
  1210. package/src/lib/components/navigation/NavigationItem.tsx +161 -0
  1211. package/src/lib/components/navigation/NavigationWrapper.tsx +49 -0
  1212. package/src/lib/components/navigation/PoweredByZudoku.tsx +33 -0
  1213. package/src/lib/components/navigation/Toc.tsx +126 -0
  1214. package/src/lib/components/navigation/ZudokuLogo.tsx +25 -0
  1215. package/src/lib/components/navigation/ZuploLogo.tsx +14 -0
  1216. package/src/lib/components/navigation/utils.ts +82 -46
  1217. package/src/lib/core/RouteGuard.tsx +96 -0
  1218. package/src/lib/core/ZudokuContext.ts +227 -0
  1219. package/src/lib/core/plugins.ts +56 -23
  1220. package/src/lib/errors/ErrorAlert.tsx +29 -16
  1221. package/src/lib/errors/RouterError.tsx +1 -1
  1222. package/src/lib/hooks/index.ts +16 -0
  1223. package/src/lib/hooks/useEvent.test.tsx +151 -0
  1224. package/src/lib/hooks/useEvent.ts +41 -0
  1225. package/src/lib/hooks/useHotkey.ts +70 -0
  1226. package/src/lib/icons.ts +1 -0
  1227. package/src/lib/oas/graphql/circular.ts +58 -0
  1228. package/src/lib/oas/graphql/index.ts +298 -104
  1229. package/src/lib/oas/parser/dereference/index.ts +10 -4
  1230. package/src/lib/oas/parser/index.ts +14 -30
  1231. package/src/lib/oas/parser/upgrade/index.ts +103 -38
  1232. package/src/lib/plugins/api-catalog/Catalog.tsx +73 -0
  1233. package/src/lib/plugins/api-catalog/index.tsx +115 -0
  1234. package/src/lib/plugins/api-keys/CreateApiKey.tsx +79 -49
  1235. package/src/lib/plugins/api-keys/ProtectedRoute.tsx +1 -1
  1236. package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +485 -119
  1237. package/src/lib/plugins/api-keys/index.tsx +149 -65
  1238. package/src/lib/plugins/custom-pages/index.tsx +29 -0
  1239. package/src/lib/plugins/markdown/MdxPage.tsx +120 -61
  1240. package/src/lib/plugins/markdown/index.tsx +41 -14
  1241. package/src/lib/plugins/openapi/CollapsibleCode.tsx +86 -0
  1242. package/src/lib/plugins/openapi/ColorizedParam.tsx +49 -23
  1243. package/src/lib/plugins/openapi/Endpoint.tsx +19 -22
  1244. package/src/lib/plugins/openapi/OasProvider.tsx +51 -0
  1245. package/src/lib/plugins/openapi/OperationList.tsx +234 -72
  1246. package/src/lib/plugins/openapi/OperationListItem.tsx +123 -94
  1247. package/src/lib/plugins/openapi/ParamInfos.tsx +90 -0
  1248. package/src/lib/plugins/openapi/ParameterList.tsx +4 -0
  1249. package/src/lib/plugins/openapi/ParameterListItem.tsx +84 -31
  1250. package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +28 -3
  1251. package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +15 -33
  1252. package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +36 -59
  1253. package/src/lib/plugins/openapi/SchemaList.tsx +157 -0
  1254. package/src/lib/plugins/openapi/Sidecar.tsx +154 -172
  1255. package/src/lib/plugins/openapi/SidecarBox.tsx +4 -16
  1256. package/src/lib/plugins/openapi/SidecarExamples.tsx +169 -0
  1257. package/src/lib/plugins/openapi/SimpleSelect.tsx +1 -1
  1258. package/src/lib/plugins/openapi/client/GraphQLClient.tsx +65 -0
  1259. package/src/lib/plugins/openapi/client/GraphQLContext.tsx +16 -0
  1260. package/src/lib/plugins/openapi/client/createServer.ts +8 -2
  1261. package/src/lib/plugins/openapi/client/useCreateQuery.ts +45 -0
  1262. package/src/lib/plugins/openapi/components/ConstValue.tsx +24 -0
  1263. package/src/lib/plugins/openapi/components/EnumValues.tsx +58 -0
  1264. package/src/lib/plugins/openapi/components/ResponseContent.tsx +104 -0
  1265. package/src/lib/plugins/openapi/components/SelectOnClick.tsx +29 -0
  1266. package/src/lib/plugins/openapi/context.tsx +2 -2
  1267. package/src/lib/plugins/openapi/graphql/fragment-masking.ts +11 -18
  1268. package/src/lib/plugins/openapi/graphql/gql.ts +38 -30
  1269. package/src/lib/plugins/openapi/graphql/graphql.ts +388 -682
  1270. package/src/lib/plugins/openapi/index.tsx +161 -138
  1271. package/src/lib/plugins/openapi/interfaces.ts +59 -4
  1272. package/src/lib/plugins/openapi/playground/BodyPanel.tsx +55 -0
  1273. package/src/lib/plugins/openapi/playground/CollapsibleHeader.tsx +47 -0
  1274. package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +59 -0
  1275. package/src/lib/plugins/openapi/playground/Headers.tsx +284 -53
  1276. package/src/lib/plugins/openapi/playground/IdentityDialog.tsx +75 -0
  1277. package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +38 -0
  1278. package/src/lib/plugins/openapi/playground/InlineInput.tsx +1 -1
  1279. package/src/lib/plugins/openapi/playground/ParamsGrid.tsx +13 -0
  1280. package/src/lib/plugins/openapi/playground/PathParams.tsx +38 -64
  1281. package/src/lib/plugins/openapi/playground/Playground.tsx +407 -289
  1282. package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +8 -4
  1283. package/src/lib/plugins/openapi/playground/QueryParams.tsx +134 -90
  1284. package/src/lib/plugins/openapi/playground/RequestLoginDialog.tsx +51 -0
  1285. package/src/lib/plugins/openapi/playground/Spinner.tsx +87 -0
  1286. package/src/lib/plugins/openapi/playground/fileUtils.ts +32 -0
  1287. package/src/lib/plugins/openapi/playground/rememberedIdentity.ts +26 -0
  1288. package/src/lib/plugins/openapi/playground/request-panel/UrlPath.tsx +31 -0
  1289. package/src/lib/plugins/openapi/playground/request-panel/UrlQueryParams.tsx +25 -0
  1290. package/src/lib/plugins/openapi/playground/result-panel/Highlight.tsx +26 -0
  1291. package/src/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.tsx +115 -0
  1292. package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +271 -0
  1293. package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +102 -0
  1294. package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.test.ts +64 -0
  1295. package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.ts +36 -0
  1296. package/src/lib/plugins/openapi/playground/useRememberSkipLoginDialog.tsx +20 -0
  1297. package/src/lib/plugins/openapi/processors/removeExtensions.test.ts +222 -0
  1298. package/src/lib/plugins/openapi/processors/removeExtensions.ts +29 -0
  1299. package/src/lib/plugins/openapi/processors/removeParameters.test.ts +182 -0
  1300. package/src/lib/plugins/openapi/processors/removeParameters.ts +103 -0
  1301. package/src/lib/plugins/openapi/processors/removePaths.test.ts +167 -0
  1302. package/src/lib/plugins/openapi/processors/removePaths.ts +57 -0
  1303. package/src/lib/plugins/openapi/processors/traverse.ts +1 -0
  1304. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.tsx +1 -8
  1305. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.tsx +3 -0
  1306. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.tsx +6 -3
  1307. package/src/lib/plugins/openapi/schema/SchemaExampleAndDefault.tsx +39 -0
  1308. package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +159 -0
  1309. package/src/lib/plugins/openapi/schema/SchemaView.tsx +103 -141
  1310. package/src/lib/plugins/openapi/schema/utils.ts +33 -5
  1311. package/src/lib/plugins/openapi/state.ts +36 -0
  1312. package/src/lib/plugins/openapi/util/createHttpSnippet.ts +107 -0
  1313. package/src/lib/plugins/openapi/util/createNavigationCategory.tsx +38 -0
  1314. package/src/lib/plugins/openapi/util/generateSchemaExample.ts +95 -44
  1315. package/src/lib/plugins/openapi/util/getRoutes.tsx +198 -0
  1316. package/src/lib/plugins/openapi/util/methodColorMap.tsx +11 -0
  1317. package/src/lib/plugins/openapi/util/methodToColor.ts +27 -0
  1318. package/src/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.tsx +32 -0
  1319. package/src/lib/plugins/redirect/index.tsx +6 -10
  1320. package/src/lib/plugins/search-inkeep/index.tsx +83 -32
  1321. package/src/lib/plugins/search-inkeep/inkeep.ts +15 -23
  1322. package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +165 -0
  1323. package/src/lib/plugins/search-pagefind/ResultList.tsx +114 -0
  1324. package/src/lib/plugins/search-pagefind/get-results.tsx +75 -0
  1325. package/src/lib/plugins/search-pagefind/index.tsx +21 -0
  1326. package/src/lib/plugins/search-pagefind/types.ts +118 -0
  1327. package/src/lib/shiki.ts +134 -0
  1328. package/src/lib/ui/Accordion.tsx +56 -0
  1329. package/src/lib/ui/ActionButton.tsx +30 -0
  1330. package/src/lib/ui/Alert.tsx +65 -0
  1331. package/src/lib/ui/AlertDialog.tsx +139 -0
  1332. package/src/lib/ui/AspectRatio.tsx +5 -0
  1333. package/src/lib/ui/Badge.tsx +37 -0
  1334. package/src/lib/ui/Breadcrumb.tsx +115 -0
  1335. package/src/lib/ui/Button.tsx +13 -8
  1336. package/src/lib/ui/Callout.tsx +37 -16
  1337. package/src/lib/ui/Card.tsx +1 -1
  1338. package/src/lib/ui/Carousel.tsx +260 -0
  1339. package/src/lib/ui/Checkbox.tsx +29 -0
  1340. package/src/lib/ui/CodeBlock.tsx +113 -0
  1341. package/src/lib/ui/Collapsible.tsx +9 -0
  1342. package/src/lib/ui/Command.tsx +193 -0
  1343. package/src/lib/ui/Dialog.tsx +124 -0
  1344. package/src/lib/ui/Drawer.tsx +38 -36
  1345. package/src/lib/ui/DropdownMenu.tsx +4 -4
  1346. package/src/lib/ui/EmbeddedCodeBlock.tsx +94 -0
  1347. package/src/lib/ui/Form.tsx +177 -0
  1348. package/src/lib/ui/HoverCard.tsx +27 -0
  1349. package/src/lib/ui/Input.tsx +2 -3
  1350. package/src/lib/ui/Label.tsx +24 -0
  1351. package/src/lib/ui/Pagination.tsx +117 -0
  1352. package/src/lib/ui/Popover.tsx +29 -0
  1353. package/src/lib/ui/Progress.tsx +26 -0
  1354. package/src/lib/ui/RadioGroup.tsx +42 -0
  1355. package/src/lib/ui/ScrollArea.tsx +46 -0
  1356. package/src/lib/ui/Select.tsx +157 -0
  1357. package/src/lib/ui/Skeleton.tsx +15 -0
  1358. package/src/lib/ui/Slider.tsx +26 -0
  1359. package/src/lib/ui/Stepper.tsx +8 -0
  1360. package/src/lib/ui/Switch.tsx +27 -0
  1361. package/src/lib/ui/SyntaxHighlight.tsx +35 -0
  1362. package/src/lib/ui/Tabs.tsx +2 -2
  1363. package/src/lib/ui/Textarea.tsx +23 -0
  1364. package/src/lib/ui/Toggle.tsx +43 -0
  1365. package/src/lib/ui/ToggleGroup.tsx +59 -0
  1366. package/src/lib/ui/Tooltip.tsx +43 -0
  1367. package/src/lib/ui/util.tsx +3 -0
  1368. package/src/lib/util/MdxComponents.tsx +50 -26
  1369. package/src/lib/util/createVariantComponent.tsx +2 -2
  1370. package/src/lib/util/detectOS.ts +9 -0
  1371. package/src/lib/util/ensureArray.ts +3 -0
  1372. package/src/lib/util/humanFileSize.test.ts +24 -0
  1373. package/src/lib/util/humanFileSize.ts +16 -0
  1374. package/src/lib/util/invariant.ts +17 -3
  1375. package/src/lib/util/joinPath.tsx +3 -0
  1376. package/src/lib/util/joinUrl.test.ts +62 -0
  1377. package/src/lib/util/joinUrl.ts +57 -0
  1378. package/src/lib/util/os.ts +18 -0
  1379. package/src/lib/util/scrollIntoViewIfNeeded.ts +18 -0
  1380. package/src/lib/util/traverse.ts +34 -0
  1381. package/src/lib/util/types.ts +7 -0
  1382. package/src/lib/util/url.test.ts +51 -0
  1383. package/src/lib/util/url.ts +18 -0
  1384. package/src/lib/util/useCopyToClipboard.ts +17 -0
  1385. package/src/lib/util/useExposedProps.tsx +27 -0
  1386. package/src/lib/util/useIsomorphicLayoutEffect.ts +5 -0
  1387. package/src/lib/util/useLatest.ts +18 -0
  1388. package/src/lib/util/useOnScreen.ts +34 -0
  1389. package/src/lib/util/useScrollToAnchor.ts +49 -40
  1390. package/src/lib/util/useScrollToTop.ts +9 -4
  1391. package/src/shiki/langs/abap.js +1 -0
  1392. package/src/shiki/langs/actionscript-3.js +1 -0
  1393. package/src/shiki/langs/ada.js +1 -0
  1394. package/src/shiki/langs/angular-expression.js +1 -0
  1395. package/src/shiki/langs/angular-html.js +1 -0
  1396. package/src/shiki/langs/angular-inline-style.js +1 -0
  1397. package/src/shiki/langs/angular-inline-template.js +1 -0
  1398. package/src/shiki/langs/angular-let-declaration.js +1 -0
  1399. package/src/shiki/langs/angular-template-blocks.js +1 -0
  1400. package/src/shiki/langs/angular-template.js +1 -0
  1401. package/src/shiki/langs/angular-ts.js +1 -0
  1402. package/src/shiki/langs/apache.js +1 -0
  1403. package/src/shiki/langs/apex.js +1 -0
  1404. package/src/shiki/langs/apl.js +1 -0
  1405. package/src/shiki/langs/applescript.js +1 -0
  1406. package/src/shiki/langs/ara.js +1 -0
  1407. package/src/shiki/langs/asciidoc.js +1 -0
  1408. package/src/shiki/langs/asm.js +1 -0
  1409. package/src/shiki/langs/astro.js +1 -0
  1410. package/src/shiki/langs/awk.js +1 -0
  1411. package/src/shiki/langs/ballerina.js +1 -0
  1412. package/src/shiki/langs/bat.js +1 -0
  1413. package/src/shiki/langs/beancount.js +1 -0
  1414. package/src/shiki/langs/berry.js +1 -0
  1415. package/src/shiki/langs/bibtex.js +1 -0
  1416. package/src/shiki/langs/bicep.js +1 -0
  1417. package/src/shiki/langs/blade.js +1 -0
  1418. package/src/shiki/langs/bsl.js +1 -0
  1419. package/src/shiki/langs/c.js +1 -0
  1420. package/src/shiki/langs/cadence.js +1 -0
  1421. package/src/shiki/langs/cairo.js +1 -0
  1422. package/src/shiki/langs/clarity.js +1 -0
  1423. package/src/shiki/langs/clojure.js +1 -0
  1424. package/src/shiki/langs/cmake.js +1 -0
  1425. package/src/shiki/langs/cobol.js +1 -0
  1426. package/src/shiki/langs/codeowners.js +1 -0
  1427. package/src/shiki/langs/codeql.js +1 -0
  1428. package/src/shiki/langs/coffee.js +1 -0
  1429. package/src/shiki/langs/common-lisp.js +1 -0
  1430. package/src/shiki/langs/coq.js +1 -0
  1431. package/src/shiki/langs/cpp-macro.js +1 -0
  1432. package/src/shiki/langs/cpp.js +1 -0
  1433. package/src/shiki/langs/crystal.js +1 -0
  1434. package/src/shiki/langs/csharp.js +1 -0
  1435. package/src/shiki/langs/css.js +1 -0
  1436. package/src/shiki/langs/csv.js +1 -0
  1437. package/src/shiki/langs/cue.js +1 -0
  1438. package/src/shiki/langs/cypher.js +1 -0
  1439. package/src/shiki/langs/d.js +1 -0
  1440. package/src/shiki/langs/dart.js +1 -0
  1441. package/src/shiki/langs/dax.js +1 -0
  1442. package/src/shiki/langs/desktop.js +1 -0
  1443. package/src/shiki/langs/diff.js +1 -0
  1444. package/src/shiki/langs/docker.js +1 -0
  1445. package/src/shiki/langs/dotenv.js +1 -0
  1446. package/src/shiki/langs/dream-maker.js +1 -0
  1447. package/src/shiki/langs/edge.js +1 -0
  1448. package/src/shiki/langs/elixir.js +1 -0
  1449. package/src/shiki/langs/elm.js +1 -0
  1450. package/src/shiki/langs/emacs-lisp.js +1 -0
  1451. package/src/shiki/langs/erb.js +1 -0
  1452. package/src/shiki/langs/erlang.js +1 -0
  1453. package/src/shiki/langs/es-tag-css.js +1 -0
  1454. package/src/shiki/langs/es-tag-glsl.js +1 -0
  1455. package/src/shiki/langs/es-tag-html.js +1 -0
  1456. package/src/shiki/langs/es-tag-sql.js +1 -0
  1457. package/src/shiki/langs/es-tag-xml.js +1 -0
  1458. package/src/shiki/langs/fennel.js +1 -0
  1459. package/src/shiki/langs/fish.js +1 -0
  1460. package/src/shiki/langs/fluent.js +1 -0
  1461. package/src/shiki/langs/fortran-fixed-form.js +1 -0
  1462. package/src/shiki/langs/fortran-free-form.js +1 -0
  1463. package/src/shiki/langs/fsharp.js +1 -0
  1464. package/src/shiki/langs/gdresource.js +1 -0
  1465. package/src/shiki/langs/gdscript.js +1 -0
  1466. package/src/shiki/langs/gdshader.js +1 -0
  1467. package/src/shiki/langs/genie.js +1 -0
  1468. package/src/shiki/langs/gherkin.js +1 -0
  1469. package/src/shiki/langs/git-commit.js +1 -0
  1470. package/src/shiki/langs/git-rebase.js +1 -0
  1471. package/src/shiki/langs/gleam.js +1 -0
  1472. package/src/shiki/langs/glimmer-js.js +1 -0
  1473. package/src/shiki/langs/glimmer-ts.js +1 -0
  1474. package/src/shiki/langs/glsl.js +1 -0
  1475. package/src/shiki/langs/gnuplot.js +1 -0
  1476. package/src/shiki/langs/go.js +1 -0
  1477. package/src/shiki/langs/graphql.js +1 -0
  1478. package/src/shiki/langs/groovy.js +1 -0
  1479. package/src/shiki/langs/hack.js +1 -0
  1480. package/src/shiki/langs/haml.js +1 -0
  1481. package/src/shiki/langs/handlebars.js +1 -0
  1482. package/src/shiki/langs/haskell.js +1 -0
  1483. package/src/shiki/langs/haxe.js +1 -0
  1484. package/src/shiki/langs/hcl.js +1 -0
  1485. package/src/shiki/langs/hjson.js +1 -0
  1486. package/src/shiki/langs/hlsl.js +1 -0
  1487. package/src/shiki/langs/html-derivative.js +1 -0
  1488. package/src/shiki/langs/html.js +1 -0
  1489. package/src/shiki/langs/http.js +1 -0
  1490. package/src/shiki/langs/hxml.js +1 -0
  1491. package/src/shiki/langs/hy.js +1 -0
  1492. package/src/shiki/langs/imba.js +1 -0
  1493. package/src/shiki/langs/ini.js +1 -0
  1494. package/src/shiki/langs/java.js +1 -0
  1495. package/src/shiki/langs/javascript.js +1 -0
  1496. package/src/shiki/langs/jinja-html.js +1 -0
  1497. package/src/shiki/langs/jinja.js +1 -0
  1498. package/src/shiki/langs/jison.js +1 -0
  1499. package/src/shiki/langs/json.js +1 -0
  1500. package/src/shiki/langs/json5.js +1 -0
  1501. package/src/shiki/langs/jsonc.js +1 -0
  1502. package/src/shiki/langs/jsonl.js +1 -0
  1503. package/src/shiki/langs/jsonnet.js +1 -0
  1504. package/src/shiki/langs/jssm.js +1 -0
  1505. package/src/shiki/langs/jsx.js +1 -0
  1506. package/src/shiki/langs/julia.js +1 -0
  1507. package/src/shiki/langs/kotlin.js +1 -0
  1508. package/src/shiki/langs/kusto.js +1 -0
  1509. package/src/shiki/langs/latex.js +1 -0
  1510. package/src/shiki/langs/lean.js +1 -0
  1511. package/src/shiki/langs/less.js +1 -0
  1512. package/src/shiki/langs/liquid.js +1 -0
  1513. package/src/shiki/langs/llvm.js +1 -0
  1514. package/src/shiki/langs/log.js +1 -0
  1515. package/src/shiki/langs/logo.js +1 -0
  1516. package/src/shiki/langs/lua.js +1 -0
  1517. package/src/shiki/langs/luau.js +1 -0
  1518. package/src/shiki/langs/make.js +1 -0
  1519. package/src/shiki/langs/markdown-vue.js +1 -0
  1520. package/src/shiki/langs/markdown.js +1 -0
  1521. package/src/shiki/langs/marko.js +1 -0
  1522. package/src/shiki/langs/matlab.js +1 -0
  1523. package/src/shiki/langs/mdc.js +1 -0
  1524. package/src/shiki/langs/mdx.js +1 -0
  1525. package/src/shiki/langs/mermaid.js +1 -0
  1526. package/src/shiki/langs/mipsasm.js +1 -0
  1527. package/src/shiki/langs/mojo.js +1 -0
  1528. package/src/shiki/langs/move.js +1 -0
  1529. package/src/shiki/langs/narrat.js +1 -0
  1530. package/src/shiki/langs/nextflow.js +1 -0
  1531. package/src/shiki/langs/nginx.js +1 -0
  1532. package/src/shiki/langs/nim.js +1 -0
  1533. package/src/shiki/langs/nix.js +1 -0
  1534. package/src/shiki/langs/nushell.js +1 -0
  1535. package/src/shiki/langs/objective-c.js +1 -0
  1536. package/src/shiki/langs/objective-cpp.js +1 -0
  1537. package/src/shiki/langs/ocaml.js +1 -0
  1538. package/src/shiki/langs/pascal.js +1 -0
  1539. package/src/shiki/langs/perl.js +1 -0
  1540. package/src/shiki/langs/php.js +1 -0
  1541. package/src/shiki/langs/plsql.js +1 -0
  1542. package/src/shiki/langs/po.js +1 -0
  1543. package/src/shiki/langs/polar.js +1 -0
  1544. package/src/shiki/langs/postcss.js +1 -0
  1545. package/src/shiki/langs/powerquery.js +1 -0
  1546. package/src/shiki/langs/powershell.js +1 -0
  1547. package/src/shiki/langs/prisma.js +1 -0
  1548. package/src/shiki/langs/prolog.js +1 -0
  1549. package/src/shiki/langs/proto.js +1 -0
  1550. package/src/shiki/langs/pug.js +1 -0
  1551. package/src/shiki/langs/puppet.js +1 -0
  1552. package/src/shiki/langs/purescript.js +1 -0
  1553. package/src/shiki/langs/python.js +1 -0
  1554. package/src/shiki/langs/qml.js +1 -0
  1555. package/src/shiki/langs/qmldir.js +1 -0
  1556. package/src/shiki/langs/qss.js +1 -0
  1557. package/src/shiki/langs/r.js +1 -0
  1558. package/src/shiki/langs/racket.js +1 -0
  1559. package/src/shiki/langs/raku.js +1 -0
  1560. package/src/shiki/langs/razor.js +1 -0
  1561. package/src/shiki/langs/reg.js +1 -0
  1562. package/src/shiki/langs/regexp.js +1 -0
  1563. package/src/shiki/langs/rel.js +1 -0
  1564. package/src/shiki/langs/riscv.js +1 -0
  1565. package/src/shiki/langs/rst.js +1 -0
  1566. package/src/shiki/langs/ruby.js +1 -0
  1567. package/src/shiki/langs/rust.js +1 -0
  1568. package/src/shiki/langs/sas.js +1 -0
  1569. package/src/shiki/langs/sass.js +1 -0
  1570. package/src/shiki/langs/scala.js +1 -0
  1571. package/src/shiki/langs/scheme.js +1 -0
  1572. package/src/shiki/langs/scss.js +1 -0
  1573. package/src/shiki/langs/sdbl.js +1 -0
  1574. package/src/shiki/langs/shaderlab.js +1 -0
  1575. package/src/shiki/langs/shellscript.js +1 -0
  1576. package/src/shiki/langs/shellsession.js +1 -0
  1577. package/src/shiki/langs/smalltalk.js +1 -0
  1578. package/src/shiki/langs/solidity.js +1 -0
  1579. package/src/shiki/langs/soy.js +1 -0
  1580. package/src/shiki/langs/sparql.js +1 -0
  1581. package/src/shiki/langs/splunk.js +1 -0
  1582. package/src/shiki/langs/sql.js +1 -0
  1583. package/src/shiki/langs/ssh-config.js +1 -0
  1584. package/src/shiki/langs/stata.js +1 -0
  1585. package/src/shiki/langs/stylus.js +1 -0
  1586. package/src/shiki/langs/svelte.js +1 -0
  1587. package/src/shiki/langs/swift.js +1 -0
  1588. package/src/shiki/langs/system-verilog.js +1 -0
  1589. package/src/shiki/langs/systemd.js +1 -0
  1590. package/src/shiki/langs/talonscript.js +1 -0
  1591. package/src/shiki/langs/tasl.js +1 -0
  1592. package/src/shiki/langs/tcl.js +1 -0
  1593. package/src/shiki/langs/templ.js +1 -0
  1594. package/src/shiki/langs/terraform.js +1 -0
  1595. package/src/shiki/langs/tex.js +1 -0
  1596. package/src/shiki/langs/toml.js +1 -0
  1597. package/src/shiki/langs/ts-tags.js +1 -0
  1598. package/src/shiki/langs/tsv.js +1 -0
  1599. package/src/shiki/langs/tsx.js +1 -0
  1600. package/src/shiki/langs/turtle.js +1 -0
  1601. package/src/shiki/langs/twig.js +1 -0
  1602. package/src/shiki/langs/typescript.js +1 -0
  1603. package/src/shiki/langs/typespec.js +1 -0
  1604. package/src/shiki/langs/typst.js +1 -0
  1605. package/src/shiki/langs/v.js +1 -0
  1606. package/src/shiki/langs/vala.js +1 -0
  1607. package/src/shiki/langs/vb.js +1 -0
  1608. package/src/shiki/langs/verilog.js +1 -0
  1609. package/src/shiki/langs/vhdl.js +1 -0
  1610. package/src/shiki/langs/viml.js +1 -0
  1611. package/src/shiki/langs/vue-directives.js +1 -0
  1612. package/src/shiki/langs/vue-html.js +1 -0
  1613. package/src/shiki/langs/vue-interpolations.js +1 -0
  1614. package/src/shiki/langs/vue-sfc-style-variable-injection.js +1 -0
  1615. package/src/shiki/langs/vue.js +1 -0
  1616. package/src/shiki/langs/vyper.js +1 -0
  1617. package/src/shiki/langs/wasm.js +1 -0
  1618. package/src/shiki/langs/wenyan.js +1 -0
  1619. package/src/shiki/langs/wgsl.js +1 -0
  1620. package/src/shiki/langs/wikitext.js +1 -0
  1621. package/src/shiki/langs/wit.js +1 -0
  1622. package/src/shiki/langs/wolfram.js +1 -0
  1623. package/src/shiki/langs/xml.js +1 -0
  1624. package/src/shiki/langs/xsl.js +1 -0
  1625. package/src/shiki/langs/yaml.js +1 -0
  1626. package/src/shiki/langs/zenscript.js +1 -0
  1627. package/src/shiki/langs/zig.js +1 -0
  1628. package/src/shiki/themes/andromeeda.js +1 -0
  1629. package/src/shiki/themes/aurora-x.js +1 -0
  1630. package/src/shiki/themes/ayu-dark.js +1 -0
  1631. package/src/shiki/themes/catppuccin-frappe.js +1 -0
  1632. package/src/shiki/themes/catppuccin-latte.js +1 -0
  1633. package/src/shiki/themes/catppuccin-macchiato.js +1 -0
  1634. package/src/shiki/themes/catppuccin-mocha.js +1 -0
  1635. package/src/shiki/themes/dark-plus.js +1 -0
  1636. package/src/shiki/themes/dracula-soft.js +1 -0
  1637. package/src/shiki/themes/dracula.js +1 -0
  1638. package/src/shiki/themes/everforest-dark.js +1 -0
  1639. package/src/shiki/themes/everforest-light.js +1 -0
  1640. package/src/shiki/themes/github-dark-default.js +1 -0
  1641. package/src/shiki/themes/github-dark-dimmed.js +1 -0
  1642. package/src/shiki/themes/github-dark-high-contrast.js +1 -0
  1643. package/src/shiki/themes/github-dark.js +1 -0
  1644. package/src/shiki/themes/github-light-default.js +1 -0
  1645. package/src/shiki/themes/github-light-high-contrast.js +1 -0
  1646. package/src/shiki/themes/github-light.js +1 -0
  1647. package/src/shiki/themes/gruvbox-dark-hard.js +1 -0
  1648. package/src/shiki/themes/gruvbox-dark-medium.js +1 -0
  1649. package/src/shiki/themes/gruvbox-dark-soft.js +1 -0
  1650. package/src/shiki/themes/gruvbox-light-hard.js +1 -0
  1651. package/src/shiki/themes/gruvbox-light-medium.js +1 -0
  1652. package/src/shiki/themes/gruvbox-light-soft.js +1 -0
  1653. package/src/shiki/themes/houston.js +1 -0
  1654. package/src/shiki/themes/kanagawa-dragon.js +1 -0
  1655. package/src/shiki/themes/kanagawa-lotus.js +1 -0
  1656. package/src/shiki/themes/kanagawa-wave.js +1 -0
  1657. package/src/shiki/themes/laserwave.js +1 -0
  1658. package/src/shiki/themes/light-plus.js +1 -0
  1659. package/src/shiki/themes/material-theme-darker.js +1 -0
  1660. package/src/shiki/themes/material-theme-lighter.js +1 -0
  1661. package/src/shiki/themes/material-theme-ocean.js +1 -0
  1662. package/src/shiki/themes/material-theme-palenight.js +1 -0
  1663. package/src/shiki/themes/material-theme.js +1 -0
  1664. package/src/shiki/themes/min-dark.js +1 -0
  1665. package/src/shiki/themes/min-light.js +1 -0
  1666. package/src/shiki/themes/monokai.js +1 -0
  1667. package/src/shiki/themes/night-owl.js +1 -0
  1668. package/src/shiki/themes/nord.js +1 -0
  1669. package/src/shiki/themes/one-dark-pro.js +1 -0
  1670. package/src/shiki/themes/one-light.js +1 -0
  1671. package/src/shiki/themes/plastic.js +1 -0
  1672. package/src/shiki/themes/poimandres.js +1 -0
  1673. package/src/shiki/themes/red.js +1 -0
  1674. package/src/shiki/themes/rose-pine-dawn.js +1 -0
  1675. package/src/shiki/themes/rose-pine-moon.js +1 -0
  1676. package/src/shiki/themes/rose-pine.js +1 -0
  1677. package/src/shiki/themes/slack-dark.js +1 -0
  1678. package/src/shiki/themes/slack-ochin.js +1 -0
  1679. package/src/shiki/themes/snazzy-light.js +1 -0
  1680. package/src/shiki/themes/solarized-dark.js +1 -0
  1681. package/src/shiki/themes/solarized-light.js +1 -0
  1682. package/src/shiki/themes/synthwave-84.js +1 -0
  1683. package/src/shiki/themes/tokyo-night.js +1 -0
  1684. package/src/shiki/themes/vesper.js +1 -0
  1685. package/src/shiki/themes/vitesse-black.js +1 -0
  1686. package/src/shiki/themes/vitesse-dark.js +1 -0
  1687. package/src/shiki/themes/vitesse-light.js +1 -0
  1688. package/LICENSE.md +0 -9
  1689. package/client.d.ts +0 -1
  1690. package/dist/app/tailwind.d.ts +0 -3
  1691. package/dist/app/tailwind.js +0 -65
  1692. package/dist/app/tailwind.js.map +0 -1
  1693. package/dist/config/validators/InputSidebarSchema.d.ts +0 -186
  1694. package/dist/config/validators/InputSidebarSchema.js +0 -73
  1695. package/dist/config/validators/InputSidebarSchema.js.map +0 -1
  1696. package/dist/config/validators/SidebarSchema.d.ts +0 -23
  1697. package/dist/config/validators/SidebarSchema.js +0 -82
  1698. package/dist/config/validators/SidebarSchema.js.map +0 -1
  1699. package/dist/internal.d.ts +0 -1
  1700. package/dist/internal.js +0 -2
  1701. package/dist/internal.js.map +0 -1
  1702. package/dist/lib/components/DevPortal.d.ts +0 -7
  1703. package/dist/lib/components/DevPortal.js +0 -54
  1704. package/dist/lib/components/DevPortal.js.map +0 -1
  1705. package/dist/lib/components/Dialog.d.ts +0 -19
  1706. package/dist/lib/components/Dialog.js +0 -23
  1707. package/dist/lib/components/Dialog.js.map +0 -1
  1708. package/dist/lib/components/Select.js +0 -27
  1709. package/dist/lib/components/Select.js.map +0 -1
  1710. package/dist/lib/components/SlotletProvider.d.ts +0 -9
  1711. package/dist/lib/components/SlotletProvider.js +0 -16
  1712. package/dist/lib/components/SlotletProvider.js.map +0 -1
  1713. package/dist/lib/components/SyntaxHighlight.d.ts +0 -11
  1714. package/dist/lib/components/SyntaxHighlight.js +0 -50
  1715. package/dist/lib/components/SyntaxHighlight.js.map +0 -1
  1716. package/dist/lib/components/context/PluginSystem.js +0 -2
  1717. package/dist/lib/components/context/PluginSystem.js.map +0 -1
  1718. package/dist/lib/components/context/ThemeContext.d.ts +0 -2
  1719. package/dist/lib/components/context/ThemeContext.js +0 -7
  1720. package/dist/lib/components/context/ThemeContext.js.map +0 -1
  1721. package/dist/lib/components/context/ThemeProvider.d.ts +0 -4
  1722. package/dist/lib/components/context/ThemeProvider.js +0 -23
  1723. package/dist/lib/components/context/ThemeProvider.js.map +0 -1
  1724. package/dist/lib/components/navigation/Sidebar.d.ts +0 -1
  1725. package/dist/lib/components/navigation/Sidebar.js +0 -14
  1726. package/dist/lib/components/navigation/Sidebar.js.map +0 -1
  1727. package/dist/lib/components/navigation/SidebarBadge.d.ts +0 -23
  1728. package/dist/lib/components/navigation/SidebarBadge.js +0 -24
  1729. package/dist/lib/components/navigation/SidebarBadge.js.map +0 -1
  1730. package/dist/lib/components/navigation/SidebarCategory.d.ts +0 -5
  1731. package/dist/lib/components/navigation/SidebarCategory.js +0 -41
  1732. package/dist/lib/components/navigation/SidebarCategory.js.map +0 -1
  1733. package/dist/lib/components/navigation/SidebarItem.d.ts +0 -12
  1734. package/dist/lib/components/navigation/SidebarItem.js +0 -43
  1735. package/dist/lib/components/navigation/SidebarItem.js.map +0 -1
  1736. package/dist/lib/components/navigation/SidebarWrapper.d.ts +0 -6
  1737. package/dist/lib/components/navigation/SidebarWrapper.js +0 -6
  1738. package/dist/lib/components/navigation/SidebarWrapper.js.map +0 -1
  1739. package/dist/lib/core/DevPortalContext.d.ts +0 -78
  1740. package/dist/lib/core/DevPortalContext.js +0 -49
  1741. package/dist/lib/core/DevPortalContext.js.map +0 -1
  1742. package/dist/lib/plugins/custom-page/index.d.ts +0 -8
  1743. package/dist/lib/plugins/custom-page/index.js +0 -12
  1744. package/dist/lib/plugins/custom-page/index.js.map +0 -1
  1745. package/dist/lib/plugins/markdown/Toc.js +0 -48
  1746. package/dist/lib/plugins/markdown/Toc.js.map +0 -1
  1747. package/dist/lib/plugins/markdown/generateRoutes.d.ts +0 -3
  1748. package/dist/lib/plugins/markdown/generateRoutes.js +0 -21
  1749. package/dist/lib/plugins/markdown/generateRoutes.js.map +0 -1
  1750. package/dist/lib/plugins/openapi/Route.d.ts +0 -6
  1751. package/dist/lib/plugins/openapi/Route.js +0 -8
  1752. package/dist/lib/plugins/openapi/Route.js.map +0 -1
  1753. package/dist/lib/plugins/openapi/client/createMemoryClient.d.ts +0 -12
  1754. package/dist/lib/plugins/openapi/client/createMemoryClient.js +0 -46
  1755. package/dist/lib/plugins/openapi/client/createMemoryClient.js.map +0 -1
  1756. package/dist/lib/plugins/openapi/client/createWorkerClient.d.ts +0 -10
  1757. package/dist/lib/plugins/openapi/client/createWorkerClient.js +0 -61
  1758. package/dist/lib/plugins/openapi/client/createWorkerClient.js.map +0 -1
  1759. package/dist/lib/plugins/openapi/client/interfaces.d.ts +0 -4
  1760. package/dist/lib/plugins/openapi/client/interfaces.js +0 -2
  1761. package/dist/lib/plugins/openapi/client/interfaces.js.map +0 -1
  1762. package/dist/lib/plugins/openapi/client/worker.js +0 -20
  1763. package/dist/lib/plugins/openapi/client/worker.js.map +0 -1
  1764. package/dist/lib/plugins/openapi/playground/Editor.d.ts +0 -1
  1765. package/dist/lib/plugins/openapi/playground/Editor.js +0 -5
  1766. package/dist/lib/plugins/openapi/playground/Editor.js.map +0 -1
  1767. package/dist/lib/plugins/openapi/playground/ResponseTab.d.ts +0 -4
  1768. package/dist/lib/plugins/openapi/playground/ResponseTab.js +0 -42
  1769. package/dist/lib/plugins/openapi/playground/ResponseTab.js.map +0 -1
  1770. package/dist/lib/plugins/openapi/playground/UrlDisplay.d.ts +0 -4
  1771. package/dist/lib/plugins/openapi/playground/UrlDisplay.js +0 -22
  1772. package/dist/lib/plugins/openapi/playground/UrlDisplay.js.map +0 -1
  1773. package/dist/lib/plugins/openapi/schema/SchemaComponents.d.ts +0 -13
  1774. package/dist/lib/plugins/openapi/schema/SchemaComponents.js +0 -28
  1775. package/dist/lib/plugins/openapi/schema/SchemaComponents.js.map +0 -1
  1776. package/dist/lib/plugins/openapi/util/urql.d.ts +0 -7
  1777. package/dist/lib/plugins/openapi/util/urql.js +0 -8
  1778. package/dist/lib/plugins/openapi/util/urql.js.map +0 -1
  1779. package/dist/lib/plugins/openapi-worker.d.ts +0 -1
  1780. package/dist/lib/plugins/openapi-worker.js +0 -2
  1781. package/dist/lib/plugins/openapi-worker.js.map +0 -1
  1782. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.d.ts +0 -2
  1783. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js +0 -3
  1784. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js.map +0 -1
  1785. package/dist/lib/themeToggle.d.ts +0 -1
  1786. package/dist/lib/themeToggle.js +0 -7
  1787. package/dist/lib/themeToggle.js.map +0 -1
  1788. package/dist/lib/ui/Note.d.ts +0 -8
  1789. package/dist/lib/ui/Note.js +0 -23
  1790. package/dist/lib/ui/Note.js.map +0 -1
  1791. package/dist/lib/util/createWaitForNotify.d.ts +0 -1
  1792. package/dist/lib/util/createWaitForNotify.js +0 -15
  1793. package/dist/lib/util/createWaitForNotify.js.map +0 -1
  1794. package/dist/vite/plugin-custom-css.d.ts +0 -6
  1795. package/dist/vite/plugin-custom-css.js +0 -55
  1796. package/dist/vite/plugin-custom-css.js.map +0 -1
  1797. package/dist/vite/plugin-docs.test.js +0 -30
  1798. package/dist/vite/plugin-docs.test.js.map +0 -1
  1799. package/dist/vite/plugin-html-transform.d.ts +0 -2
  1800. package/dist/vite/plugin-html-transform.js +0 -15
  1801. package/dist/vite/plugin-html-transform.js.map +0 -1
  1802. package/dist/vite/plugin-sidebar.d.ts +0 -3
  1803. package/dist/vite/plugin-sidebar.js +0 -46
  1804. package/dist/vite/plugin-sidebar.js.map +0 -1
  1805. package/dist/vite/prerender.d.ts +0 -17
  1806. package/dist/vite/prerender.js +0 -87
  1807. package/dist/vite/prerender.js.map +0 -1
  1808. package/lib/AuthenticationPlugin-Bx9FK124.js +0 -55
  1809. package/lib/AuthenticationPlugin-Bx9FK124.js.map +0 -1
  1810. package/lib/CategoryHeading-ovR-zHRq.js +0 -10
  1811. package/lib/CategoryHeading-ovR-zHRq.js.map +0 -1
  1812. package/lib/DeveloperHint-YeWHKvyr.js +0 -16
  1813. package/lib/DeveloperHint-YeWHKvyr.js.map +0 -1
  1814. package/lib/ErrorPage-CsZAN_za.js +0 -16
  1815. package/lib/ErrorPage-CsZAN_za.js.map +0 -1
  1816. package/lib/InkeepCustomTrigger-CE5-K5ex.js +0 -6
  1817. package/lib/InkeepCustomTrigger-CE5-K5ex.js.map +0 -1
  1818. package/lib/Input-CtVUl3eT.js +0 -2198
  1819. package/lib/Input-CtVUl3eT.js.map +0 -1
  1820. package/lib/Markdown-DapSf3wG.js +0 -20281
  1821. package/lib/Markdown-DapSf3wG.js.map +0 -1
  1822. package/lib/MdxPage-BqBWsXZ1.js +0 -172
  1823. package/lib/MdxPage-BqBWsXZ1.js.map +0 -1
  1824. package/lib/OperationList-CYrmxPa8.js +0 -602
  1825. package/lib/OperationList-CYrmxPa8.js.map +0 -1
  1826. package/lib/Route-Q5mqNQrv.js +0 -14
  1827. package/lib/Route-Q5mqNQrv.js.map +0 -1
  1828. package/lib/SidebarBadge-Dx7jtnoA.js +0 -498
  1829. package/lib/SidebarBadge-Dx7jtnoA.js.map +0 -1
  1830. package/lib/SlotletProvider-D3UD5Go3.js +0 -238
  1831. package/lib/SlotletProvider-D3UD5Go3.js.map +0 -1
  1832. package/lib/Spinner-3cQDBVGr.js +0 -7
  1833. package/lib/Spinner-3cQDBVGr.js.map +0 -1
  1834. package/lib/ZudokuContext-cr-pTRY1.js +0 -1084
  1835. package/lib/ZudokuContext-cr-pTRY1.js.map +0 -1
  1836. package/lib/_commonjsHelpers-BkfeUUK-.js +0 -29
  1837. package/lib/_commonjsHelpers-BkfeUUK-.js.map +0 -1
  1838. package/lib/assets/index-B9EWVYfo.js +0 -4790
  1839. package/lib/assets/index-B9EWVYfo.js.map +0 -1
  1840. package/lib/assets/worker-BP8Uzflt.js +0 -17916
  1841. package/lib/assets/worker-BP8Uzflt.js.map +0 -1
  1842. package/lib/index-BG0g4WW0.js +0 -1771
  1843. package/lib/index-BG0g4WW0.js.map +0 -1
  1844. package/lib/index-BlJ2rj99.js +0 -5815
  1845. package/lib/index-BlJ2rj99.js.map +0 -1
  1846. package/lib/index-Bn6Lc9tq.js +0 -9
  1847. package/lib/index-Bn6Lc9tq.js.map +0 -1
  1848. package/lib/index-BngPzhKn.js +0 -124
  1849. package/lib/index-BngPzhKn.js.map +0 -1
  1850. package/lib/index-CLd8ycZz.js +0 -4790
  1851. package/lib/index-CLd8ycZz.js.map +0 -1
  1852. package/lib/index-Dolisrci.js +0 -2814
  1853. package/lib/index-Dolisrci.js.map +0 -1
  1854. package/lib/index-LNp6rxyU.js +0 -2094
  1855. package/lib/index-LNp6rxyU.js.map +0 -1
  1856. package/lib/joinPath-B7kNnUX4.js +0 -8
  1857. package/lib/joinPath-B7kNnUX4.js.map +0 -1
  1858. package/lib/jsx-runtime-B6kdoens.js +0 -635
  1859. package/lib/jsx-runtime-B6kdoens.js.map +0 -1
  1860. package/lib/prism-bash.min-DadFsM4Z.js +0 -7
  1861. package/lib/prism-bash.min-DadFsM4Z.js.map +0 -1
  1862. package/lib/prism-csharp.min-Yizuc34Y.js +0 -35
  1863. package/lib/prism-csharp.min-Yizuc34Y.js.map +0 -1
  1864. package/lib/prism-java.min-d5iT_mOd.js +0 -7
  1865. package/lib/prism-java.min-d5iT_mOd.js.map +0 -1
  1866. package/lib/prism-javascript.min-CEqHqgbm.js +0 -9
  1867. package/lib/prism-javascript.min-CEqHqgbm.js.map +0 -1
  1868. package/lib/prism-json.min-B1GJqK1k.js +0 -2
  1869. package/lib/prism-json.min-B1GJqK1k.js.map +0 -1
  1870. package/lib/prism-markdown.min-F3U-vPBi.js +0 -61
  1871. package/lib/prism-markdown.min-F3U-vPBi.js.map +0 -1
  1872. package/lib/prism-markup-BNGj0Tvm.js +0 -174
  1873. package/lib/prism-markup-BNGj0Tvm.js.map +0 -1
  1874. package/lib/prism-markup-templating-DZrrEs0A.js +0 -62
  1875. package/lib/prism-markup-templating-DZrrEs0A.js.map +0 -1
  1876. package/lib/prism-objectivec.min-BXSWqpJJ.js +0 -2
  1877. package/lib/prism-objectivec.min-BXSWqpJJ.js.map +0 -1
  1878. package/lib/prism-php.min-o7FpoMP_.js +0 -11
  1879. package/lib/prism-php.min-o7FpoMP_.js.map +0 -1
  1880. package/lib/prism-ruby.min-C7LwcKyz.js +0 -10
  1881. package/lib/prism-ruby.min-C7LwcKyz.js.map +0 -1
  1882. package/lib/prism-typescript.min-oSVeWCAd.js +0 -6
  1883. package/lib/prism-typescript.min-oSVeWCAd.js.map +0 -1
  1884. package/lib/router-D2p7Olpn.js +0 -2971
  1885. package/lib/router-D2p7Olpn.js.map +0 -1
  1886. package/lib/state-hNe1dw4B.js +0 -548
  1887. package/lib/state-hNe1dw4B.js.map +0 -1
  1888. package/lib/urql-YhcsXYy8.js +0 -1591
  1889. package/lib/urql-YhcsXYy8.js.map +0 -1
  1890. package/lib/utils-ByIc_KIM.js +0 -749
  1891. package/lib/utils-ByIc_KIM.js.map +0 -1
  1892. package/lib/zudoku.openapi-worker.js +0 -16059
  1893. package/lib/zudoku.openapi-worker.js.map +0 -1
  1894. package/lib/zudoku.plugin-custom-page.js +0 -13
  1895. package/lib/zudoku.plugin-custom-page.js.map +0 -1
  1896. package/src/app/tailwind.ts +0 -68
  1897. package/src/lib/components/DevPortal.tsx +0 -111
  1898. package/src/lib/components/Dialog.tsx +0 -119
  1899. package/src/lib/components/Select.tsx +0 -157
  1900. package/src/lib/components/SlotletProvider.tsx +0 -30
  1901. package/src/lib/components/SyntaxHighlight.tsx +0 -122
  1902. package/src/lib/components/context/PluginSystem.ts +0 -0
  1903. package/src/lib/components/context/ThemeContext.tsx +0 -8
  1904. package/src/lib/components/context/ThemeProvider.tsx +0 -27
  1905. package/src/lib/components/navigation/Sidebar.tsx +0 -39
  1906. package/src/lib/components/navigation/SidebarBadge.tsx +0 -43
  1907. package/src/lib/components/navigation/SidebarCategory.tsx +0 -131
  1908. package/src/lib/components/navigation/SidebarItem.tsx +0 -130
  1909. package/src/lib/components/navigation/SidebarWrapper.tsx +0 -26
  1910. package/src/lib/core/DevPortalContext.ts +0 -135
  1911. package/src/lib/plugins/custom-page/index.tsx +0 -22
  1912. package/src/lib/plugins/markdown/Toc.tsx +0 -135
  1913. package/src/lib/plugins/markdown/generateRoutes.tsx +0 -38
  1914. package/src/lib/plugins/openapi/Route.tsx +0 -21
  1915. package/src/lib/plugins/openapi/client/createMemoryClient.ts +0 -56
  1916. package/src/lib/plugins/openapi/client/createWorkerClient.ts +0 -80
  1917. package/src/lib/plugins/openapi/client/interfaces.ts +0 -5
  1918. package/src/lib/plugins/openapi/client/worker.ts +0 -30
  1919. package/src/lib/plugins/openapi/playground/Editor.tsx +0 -4
  1920. package/src/lib/plugins/openapi/playground/ResponseTab.tsx +0 -76
  1921. package/src/lib/plugins/openapi/playground/UrlDisplay.tsx +0 -32
  1922. package/src/lib/plugins/openapi/schema/SchemaComponents.tsx +0 -126
  1923. package/src/lib/plugins/openapi/util/urql.ts +0 -8
  1924. package/src/lib/plugins/openapi-worker.ts +0 -1
  1925. package/src/lib/plugins/search-inkeep/InkeepCustomTrigger.tsx +0 -3
  1926. package/src/lib/themeToggle.ts +0 -7
  1927. package/src/lib/ui/Note.tsx +0 -58
  1928. package/src/lib/util/createWaitForNotify.ts +0 -18
  1929. /package/dist/{lib/components/context/PluginSystem.d.ts → config/validators/InputNavigationSchema.test-d.d.ts} +0 -0
  1930. /package/dist/{lib/plugins/openapi/client/worker.d.ts → config/validators/validate.test.d.ts} +0 -0
  1931. /package/dist/{vite/plugin-docs.test.d.ts → lib/auth/issuer.test.d.ts} +0 -0
  1932. /package/dist/lib/{plugins/markdown → components/navigation}/Toc.d.ts +0 -0
  1933. /package/dist/lib/{components → ui}/Select.d.ts +0 -0
@@ -0,0 +1,4082 @@
1
+ import { B as Rt, a as It, H as Me, R as tn } from "./RouteGuard-gznKADdm.js";
2
+ import { z as Dt, M as rn, J as nn, u as on } from "./useExposedProps-DUoV7MCU.js";
3
+ import { R as sn, S as an, c as we, e as Fe, f as cn, L as qe, O as Mt } from "./chunk-QMGIS6GS-CdEm9pzB.js";
4
+ import { a as se, u as un } from "./hook-CGx8MPrU.js";
5
+ import { h as ln, E as Ft, a as A, A as dn, i as fn, s as hn, N as Je, j as pn, T as qt, C as mn, H as gn, k as vn, l as yn, m as xn, V as _n, R as bn, M as wn } from "./Slot-DDNiyFIv.js";
6
+ import { j as i } from "./jsx-runtime-C5mzlN2N.js";
7
+ import { Button as Ut } from "./ui/Button.js";
8
+ import { Callout as jn } from "./ui/Callout.js";
9
+ import { S as Lt, m as Qt, Q as kn, n as I, o as Xe, p as et, f as L, q as zn, r as $n, v as Pn, w as En, x as tt, y as rt, z as Sn, h as nt, A as ot, B as Zn, D as Tn, e as Bt, E as Kt, i as Cn, c as M, F as Ht, G as Wt, j as te, H as On, b as Nn, N as An, Z as Rn, d as In, C as Dn } from "./ZudokuContext-mDDq1hft.js";
10
+ import * as K from "react";
11
+ import { createContext as Ue, StrictMode as Vt, useRef as H, useEffect as F, useState as J, useCallback as B, Suspense as Le, Fragment as Mn, memo as Yt, Component as Fn, createElement as st, useMemo as Ee, useContext as qn } from "react";
12
+ import * as Un from "react-dom";
13
+ import { CircleFadingArrowUpIcon as Ln, LoaderCircleIcon as Qn, ExternalLink as Bn, CircleXIcon as Kn, ChevronRightIcon as Hn, SearchIcon as Wn, SunIcon as Vn, MoonIcon as Yn, MenuIcon as Gn, PanelLeftIcon as Jn } from "lucide-react";
14
+ import { C as re } from "./ClientOnly-E7hGysn1.js";
15
+ import { c as N } from "./cn-dYga0KKN.js";
16
+ import { S as Gt } from "./Spinner-mNLZ6awP.js";
17
+ import { isSearchPlugin as Xn, isProfileMenuPlugin as Jt, isNavigationPlugin as it, isAuthenticationPlugin as eo, isEventConsumerPlugin as to, needsInitialization as ro, isApiIdentityPlugin as no, isMdxProviderPlugin as oo, hasHead as so } from "./zudoku.plugins.js";
18
+ import { B as Ce } from "./Button-B3o-2Xdf.js";
19
+ import { DropdownMenu as io, DropdownMenuTrigger as ao, DropdownMenuContent as co, DropdownMenuLabel as uo, DropdownMenuSeparator as Se, DropdownMenuSub as lo, DropdownMenuSubTrigger as fo, DropdownMenuPortal as ho, DropdownMenuSubContent as po, DropdownMenuItem as mo } from "./ui/DropdownMenu.js";
20
+ import { VisuallyHidden as Xt } from "@radix-ui/react-visually-hidden";
21
+ import { D as go, a as vo, b as er, c as tr, d as q } from "./Drawer-DJ05s2pH.js";
22
+ import { a as yo } from "./index-DI5SPFK9.js";
23
+ var xo = class extends Lt {
24
+ constructor(e = {}) {
25
+ super(), this.config = e, this.#e = /* @__PURE__ */ new Map();
26
+ }
27
+ #e;
28
+ build(e, t, r) {
29
+ const n = t.queryKey, o = t.queryHash ?? Qt(n, t);
30
+ let s = this.get(o);
31
+ return s || (s = new kn({
32
+ client: e,
33
+ queryKey: n,
34
+ queryHash: o,
35
+ options: e.defaultQueryOptions(t),
36
+ state: r,
37
+ defaultOptions: e.getQueryDefaults(n)
38
+ }), this.add(s)), s;
39
+ }
40
+ add(e) {
41
+ this.#e.has(e.queryHash) || (this.#e.set(e.queryHash, e), this.notify({
42
+ type: "added",
43
+ query: e
44
+ }));
45
+ }
46
+ remove(e) {
47
+ const t = this.#e.get(e.queryHash);
48
+ t && (e.destroy(), t === e && this.#e.delete(e.queryHash), this.notify({ type: "removed", query: e }));
49
+ }
50
+ clear() {
51
+ I.batch(() => {
52
+ this.getAll().forEach((e) => {
53
+ this.remove(e);
54
+ });
55
+ });
56
+ }
57
+ get(e) {
58
+ return this.#e.get(e);
59
+ }
60
+ getAll() {
61
+ return [...this.#e.values()];
62
+ }
63
+ find(e) {
64
+ const t = { exact: !0, ...e };
65
+ return this.getAll().find(
66
+ (r) => Xe(t, r)
67
+ );
68
+ }
69
+ findAll(e = {}) {
70
+ const t = this.getAll();
71
+ return Object.keys(e).length > 0 ? t.filter((r) => Xe(e, r)) : t;
72
+ }
73
+ notify(e) {
74
+ I.batch(() => {
75
+ this.listeners.forEach((t) => {
76
+ t(e);
77
+ });
78
+ });
79
+ }
80
+ onFocus() {
81
+ I.batch(() => {
82
+ this.getAll().forEach((e) => {
83
+ e.onFocus();
84
+ });
85
+ });
86
+ }
87
+ onOnline() {
88
+ I.batch(() => {
89
+ this.getAll().forEach((e) => {
90
+ e.onOnline();
91
+ });
92
+ });
93
+ }
94
+ }, _o = class extends Lt {
95
+ constructor(e = {}) {
96
+ super(), this.config = e, this.#e = /* @__PURE__ */ new Set(), this.#t = /* @__PURE__ */ new Map(), this.#r = 0;
97
+ }
98
+ #e;
99
+ #t;
100
+ #r;
101
+ build(e, t, r) {
102
+ const n = new ln({
103
+ mutationCache: this,
104
+ mutationId: ++this.#r,
105
+ options: e.defaultMutationOptions(t),
106
+ state: r
107
+ });
108
+ return this.add(n), n;
109
+ }
110
+ add(e) {
111
+ this.#e.add(e);
112
+ const t = le(e);
113
+ if (typeof t == "string") {
114
+ const r = this.#t.get(t);
115
+ r ? r.push(e) : this.#t.set(t, [e]);
116
+ }
117
+ this.notify({ type: "added", mutation: e });
118
+ }
119
+ remove(e) {
120
+ if (this.#e.delete(e)) {
121
+ const t = le(e);
122
+ if (typeof t == "string") {
123
+ const r = this.#t.get(t);
124
+ if (r)
125
+ if (r.length > 1) {
126
+ const n = r.indexOf(e);
127
+ n !== -1 && r.splice(n, 1);
128
+ } else r[0] === e && this.#t.delete(t);
129
+ }
130
+ }
131
+ this.notify({ type: "removed", mutation: e });
132
+ }
133
+ canRun(e) {
134
+ const t = le(e);
135
+ if (typeof t == "string") {
136
+ const n = this.#t.get(t)?.find(
137
+ (o) => o.state.status === "pending"
138
+ );
139
+ return !n || n === e;
140
+ } else
141
+ return !0;
142
+ }
143
+ runNext(e) {
144
+ const t = le(e);
145
+ return typeof t == "string" ? this.#t.get(t)?.find((n) => n !== e && n.state.isPaused)?.continue() ?? Promise.resolve() : Promise.resolve();
146
+ }
147
+ clear() {
148
+ I.batch(() => {
149
+ this.#e.forEach((e) => {
150
+ this.notify({ type: "removed", mutation: e });
151
+ }), this.#e.clear(), this.#t.clear();
152
+ });
153
+ }
154
+ getAll() {
155
+ return Array.from(this.#e);
156
+ }
157
+ find(e) {
158
+ const t = { exact: !0, ...e };
159
+ return this.getAll().find(
160
+ (r) => et(t, r)
161
+ );
162
+ }
163
+ findAll(e = {}) {
164
+ return this.getAll().filter((t) => et(e, t));
165
+ }
166
+ notify(e) {
167
+ I.batch(() => {
168
+ this.listeners.forEach((t) => {
169
+ t(e);
170
+ });
171
+ });
172
+ }
173
+ resumePausedMutations() {
174
+ const e = this.getAll().filter((t) => t.state.isPaused);
175
+ return I.batch(
176
+ () => Promise.all(
177
+ e.map((t) => t.continue().catch(L))
178
+ )
179
+ );
180
+ }
181
+ };
182
+ function le(e) {
183
+ return e.options.scope?.id;
184
+ }
185
+ function at(e) {
186
+ return {
187
+ onFetch: (t, r) => {
188
+ const n = t.options, o = t.fetchOptions?.meta?.fetchMore?.direction, s = t.state.data?.pages || [], a = t.state.data?.pageParams || [];
189
+ let c = { pages: [], pageParams: [] }, f = 0;
190
+ const l = async () => {
191
+ let v = !1;
192
+ const m = (g) => {
193
+ Object.defineProperty(g, "signal", {
194
+ enumerable: !0,
195
+ get: () => (t.signal.aborted ? v = !0 : t.signal.addEventListener("abort", () => {
196
+ v = !0;
197
+ }), t.signal)
198
+ });
199
+ }, p = zn(t.options, t.fetchOptions), d = async (g, w, E) => {
200
+ if (v)
201
+ return Promise.reject();
202
+ if (w == null && g.pages.length)
203
+ return Promise.resolve(g);
204
+ const j = (() => {
205
+ const k = {
206
+ client: t.client,
207
+ queryKey: t.queryKey,
208
+ pageParam: w,
209
+ direction: E ? "backward" : "forward",
210
+ meta: t.options.meta
211
+ };
212
+ return m(k), k;
213
+ })(), x = await p(j), { maxPages: b } = t.options, h = E ? $n : Pn;
214
+ return {
215
+ pages: h(g.pages, x, b),
216
+ pageParams: h(g.pageParams, w, b)
217
+ };
218
+ };
219
+ if (o && s.length) {
220
+ const g = o === "backward", w = g ? bo : ct, E = {
221
+ pages: s,
222
+ pageParams: a
223
+ }, z = w(n, E);
224
+ c = await d(E, z, g);
225
+ } else {
226
+ const g = e ?? s.length;
227
+ do {
228
+ const w = f === 0 ? a[0] ?? n.initialPageParam : ct(n, c);
229
+ if (f > 0 && w == null)
230
+ break;
231
+ c = await d(c, w), f++;
232
+ } while (f < g);
233
+ }
234
+ return c;
235
+ };
236
+ t.options.persister ? t.fetchFn = () => t.options.persister?.(
237
+ l,
238
+ {
239
+ client: t.client,
240
+ queryKey: t.queryKey,
241
+ meta: t.options.meta,
242
+ signal: t.signal
243
+ },
244
+ r
245
+ ) : t.fetchFn = l;
246
+ }
247
+ };
248
+ }
249
+ function ct(e, { pages: t, pageParams: r }) {
250
+ const n = t.length - 1;
251
+ return t.length > 0 ? e.getNextPageParam(
252
+ t[n],
253
+ t,
254
+ r[n],
255
+ r
256
+ ) : void 0;
257
+ }
258
+ function bo(e, { pages: t, pageParams: r }) {
259
+ return t.length > 0 ? e.getPreviousPageParam?.(t[0], t, r[0], r) : void 0;
260
+ }
261
+ var wo = class {
262
+ #e;
263
+ #t;
264
+ #r;
265
+ #o;
266
+ #s;
267
+ #n;
268
+ #i;
269
+ #a;
270
+ constructor(e = {}) {
271
+ this.#e = e.queryCache || new xo(), this.#t = e.mutationCache || new _o(), this.#r = e.defaultOptions || {}, this.#o = /* @__PURE__ */ new Map(), this.#s = /* @__PURE__ */ new Map(), this.#n = 0;
272
+ }
273
+ mount() {
274
+ this.#n++, this.#n === 1 && (this.#i = En.subscribe(async (e) => {
275
+ e && (await this.resumePausedMutations(), this.#e.onFocus());
276
+ }), this.#a = tt.subscribe(async (e) => {
277
+ e && (await this.resumePausedMutations(), this.#e.onOnline());
278
+ }));
279
+ }
280
+ unmount() {
281
+ this.#n--, this.#n === 0 && (this.#i?.(), this.#i = void 0, this.#a?.(), this.#a = void 0);
282
+ }
283
+ isFetching(e) {
284
+ return this.#e.findAll({ ...e, fetchStatus: "fetching" }).length;
285
+ }
286
+ isMutating(e) {
287
+ return this.#t.findAll({ ...e, status: "pending" }).length;
288
+ }
289
+ /**
290
+ * Imperative (non-reactive) way to retrieve data for a QueryKey.
291
+ * Should only be used in callbacks or functions where reading the latest data is necessary, e.g. for optimistic updates.
292
+ *
293
+ * Hint: Do not use this function inside a component, because it won't receive updates.
294
+ * Use `useQuery` to create a `QueryObserver` that subscribes to changes.
295
+ */
296
+ getQueryData(e) {
297
+ const t = this.defaultQueryOptions({ queryKey: e });
298
+ return this.#e.get(t.queryHash)?.state.data;
299
+ }
300
+ ensureQueryData(e) {
301
+ const t = this.defaultQueryOptions(e), r = this.#e.build(this, t), n = r.state.data;
302
+ return n === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && r.isStaleByTime(rt(t.staleTime, r)) && this.prefetchQuery(t), Promise.resolve(n));
303
+ }
304
+ getQueriesData(e) {
305
+ return this.#e.findAll(e).map(({ queryKey: t, state: r }) => {
306
+ const n = r.data;
307
+ return [t, n];
308
+ });
309
+ }
310
+ setQueryData(e, t, r) {
311
+ const n = this.defaultQueryOptions({ queryKey: e }), s = this.#e.get(
312
+ n.queryHash
313
+ )?.state.data, a = Sn(t, s);
314
+ if (a !== void 0)
315
+ return this.#e.build(this, n).setData(a, { ...r, manual: !0 });
316
+ }
317
+ setQueriesData(e, t, r) {
318
+ return I.batch(
319
+ () => this.#e.findAll(e).map(({ queryKey: n }) => [
320
+ n,
321
+ this.setQueryData(n, t, r)
322
+ ])
323
+ );
324
+ }
325
+ getQueryState(e) {
326
+ const t = this.defaultQueryOptions({ queryKey: e });
327
+ return this.#e.get(
328
+ t.queryHash
329
+ )?.state;
330
+ }
331
+ removeQueries(e) {
332
+ const t = this.#e;
333
+ I.batch(() => {
334
+ t.findAll(e).forEach((r) => {
335
+ t.remove(r);
336
+ });
337
+ });
338
+ }
339
+ resetQueries(e, t) {
340
+ const r = this.#e;
341
+ return I.batch(() => (r.findAll(e).forEach((n) => {
342
+ n.reset();
343
+ }), this.refetchQueries(
344
+ {
345
+ type: "active",
346
+ ...e
347
+ },
348
+ t
349
+ )));
350
+ }
351
+ cancelQueries(e, t = {}) {
352
+ const r = { revert: !0, ...t }, n = I.batch(
353
+ () => this.#e.findAll(e).map((o) => o.cancel(r))
354
+ );
355
+ return Promise.all(n).then(L).catch(L);
356
+ }
357
+ invalidateQueries(e, t = {}) {
358
+ return I.batch(() => (this.#e.findAll(e).forEach((r) => {
359
+ r.invalidate();
360
+ }), e?.refetchType === "none" ? Promise.resolve() : this.refetchQueries(
361
+ {
362
+ ...e,
363
+ type: e?.refetchType ?? e?.type ?? "active"
364
+ },
365
+ t
366
+ )));
367
+ }
368
+ refetchQueries(e, t = {}) {
369
+ const r = {
370
+ ...t,
371
+ cancelRefetch: t.cancelRefetch ?? !0
372
+ }, n = I.batch(
373
+ () => this.#e.findAll(e).filter((o) => !o.isDisabled() && !o.isStatic()).map((o) => {
374
+ let s = o.fetch(void 0, r);
375
+ return r.throwOnError || (s = s.catch(L)), o.state.fetchStatus === "paused" ? Promise.resolve() : s;
376
+ })
377
+ );
378
+ return Promise.all(n).then(L);
379
+ }
380
+ fetchQuery(e) {
381
+ const t = this.defaultQueryOptions(e);
382
+ t.retry === void 0 && (t.retry = !1);
383
+ const r = this.#e.build(this, t);
384
+ return r.isStaleByTime(
385
+ rt(t.staleTime, r)
386
+ ) ? r.fetch(t) : Promise.resolve(r.state.data);
387
+ }
388
+ prefetchQuery(e) {
389
+ return this.fetchQuery(e).then(L).catch(L);
390
+ }
391
+ fetchInfiniteQuery(e) {
392
+ return e.behavior = at(e.pages), this.fetchQuery(e);
393
+ }
394
+ prefetchInfiniteQuery(e) {
395
+ return this.fetchInfiniteQuery(e).then(L).catch(L);
396
+ }
397
+ ensureInfiniteQueryData(e) {
398
+ return e.behavior = at(e.pages), this.ensureQueryData(e);
399
+ }
400
+ resumePausedMutations() {
401
+ return tt.isOnline() ? this.#t.resumePausedMutations() : Promise.resolve();
402
+ }
403
+ getQueryCache() {
404
+ return this.#e;
405
+ }
406
+ getMutationCache() {
407
+ return this.#t;
408
+ }
409
+ getDefaultOptions() {
410
+ return this.#r;
411
+ }
412
+ setDefaultOptions(e) {
413
+ this.#r = e;
414
+ }
415
+ setQueryDefaults(e, t) {
416
+ this.#o.set(nt(e), {
417
+ queryKey: e,
418
+ defaultOptions: t
419
+ });
420
+ }
421
+ getQueryDefaults(e) {
422
+ const t = [...this.#o.values()], r = {};
423
+ return t.forEach((n) => {
424
+ ot(e, n.queryKey) && Object.assign(r, n.defaultOptions);
425
+ }), r;
426
+ }
427
+ setMutationDefaults(e, t) {
428
+ this.#s.set(nt(e), {
429
+ mutationKey: e,
430
+ defaultOptions: t
431
+ });
432
+ }
433
+ getMutationDefaults(e) {
434
+ const t = [...this.#s.values()], r = {};
435
+ return t.forEach((n) => {
436
+ ot(e, n.mutationKey) && Object.assign(r, n.defaultOptions);
437
+ }), r;
438
+ }
439
+ defaultQueryOptions(e) {
440
+ if (e._defaulted)
441
+ return e;
442
+ const t = {
443
+ ...this.#r.queries,
444
+ ...this.getQueryDefaults(e.queryKey),
445
+ ...e,
446
+ _defaulted: !0
447
+ };
448
+ return t.queryHash || (t.queryHash = Qt(
449
+ t.queryKey,
450
+ t
451
+ )), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.queryFn === Zn && (t.enabled = !1), t;
452
+ }
453
+ defaultMutationOptions(e) {
454
+ return e?._defaulted ? e : {
455
+ ...this.#r.mutations,
456
+ ...e?.mutationKey && this.getMutationDefaults(e.mutationKey),
457
+ ...e,
458
+ _defaulted: !0
459
+ };
460
+ }
461
+ clear() {
462
+ this.#e.clear(), this.#t.clear();
463
+ }
464
+ };
465
+ function jo(e) {
466
+ return e;
467
+ }
468
+ function ut(e, t, r) {
469
+ if (typeof t != "object" || t === null)
470
+ return;
471
+ const n = e.getMutationCache(), o = e.getQueryCache(), s = r?.defaultOptions?.deserializeData ?? e.getDefaultOptions().hydrate?.deserializeData ?? jo, a = t.mutations || [], c = t.queries || [];
472
+ a.forEach(({ state: f, ...l }) => {
473
+ n.build(
474
+ e,
475
+ {
476
+ ...e.getDefaultOptions().hydrate?.mutations,
477
+ ...r?.defaultOptions?.mutations,
478
+ ...l
479
+ },
480
+ f
481
+ );
482
+ }), c.forEach(
483
+ ({ queryKey: f, state: l, queryHash: v, meta: m, promise: p, dehydratedAt: d }) => {
484
+ const g = p ? Tn(p) : void 0, w = l.data === void 0 ? g?.data : l.data, E = w === void 0 ? w : s(w);
485
+ let z = o.get(v);
486
+ const j = z?.state.status === "pending", x = z?.state.fetchStatus === "fetching";
487
+ if (z) {
488
+ const b = g && // We only need this undefined check to handle older dehydration
489
+ // payloads that might not have dehydratedAt
490
+ d !== void 0 && d > z.state.dataUpdatedAt;
491
+ if (l.dataUpdatedAt > z.state.dataUpdatedAt || b) {
492
+ const { fetchStatus: h, ...k } = l;
493
+ z.setState({
494
+ ...k,
495
+ data: E
496
+ });
497
+ }
498
+ } else
499
+ z = o.build(
500
+ e,
501
+ {
502
+ ...e.getDefaultOptions().hydrate?.queries,
503
+ ...r?.defaultOptions?.queries,
504
+ queryKey: f,
505
+ queryHash: v,
506
+ meta: m
507
+ },
508
+ // Reset fetch status to idle to avoid
509
+ // query being stuck in fetching state upon hydration
510
+ {
511
+ ...l,
512
+ data: E,
513
+ fetchStatus: "idle",
514
+ status: E !== void 0 ? "success" : l.status
515
+ }
516
+ );
517
+ p && !j && !x && // Only hydrate if dehydration is newer than any existing data,
518
+ // this is always true for new queries
519
+ (d === void 0 || d > z.state.dataUpdatedAt) && z.fetch(void 0, {
520
+ // RSC transformed promises are not thenable
521
+ initialPromise: Promise.resolve(p).then(s)
522
+ });
523
+ }
524
+ );
525
+ }
526
+ var ko = ({
527
+ children: e,
528
+ options: t = {},
529
+ state: r,
530
+ queryClient: n
531
+ }) => {
532
+ const o = Bt(n), s = K.useRef(t);
533
+ s.current = t;
534
+ const a = K.useMemo(() => {
535
+ if (r) {
536
+ if (typeof r != "object")
537
+ return;
538
+ const c = o.getQueryCache(), f = r.queries || [], l = [], v = [];
539
+ for (const m of f) {
540
+ const p = c.get(m.queryHash);
541
+ p ? (m.state.dataUpdatedAt > p.state.dataUpdatedAt || m.promise && p.state.status !== "pending" && p.state.fetchStatus !== "fetching" && m.dehydratedAt !== void 0 && m.dehydratedAt > p.state.dataUpdatedAt) && v.push(m) : l.push(m);
542
+ }
543
+ if (l.length > 0 && ut(o, { queries: l }, s.current), v.length > 0)
544
+ return v;
545
+ }
546
+ }, [o, r]);
547
+ return K.useEffect(() => {
548
+ a && ut(o, { queries: a }, s.current);
549
+ }, [o, a]), e;
550
+ };
551
+ function zo({ error: e }) {
552
+ return /* @__PURE__ */ i.jsx(Ft, { error: e });
553
+ }
554
+ /**
555
+ * react-router v7.6.3
556
+ *
557
+ * Copyright (c) Remix Software Inc.
558
+ *
559
+ * This source code is licensed under the MIT license found in the
560
+ * LICENSE.md file in the root directory of this source tree.
561
+ *
562
+ * @license MIT
563
+ */
564
+ function $o(e) {
565
+ return /* @__PURE__ */ K.createElement(sn, { flushSync: Un.flushSync, ...e });
566
+ }
567
+ const Oe = Ue({ stagger: !1 }), Po = new wo({
568
+ defaultOptions: {
569
+ queries: {
570
+ staleTime: 1e3 * 60 * 5
571
+ }
572
+ }
573
+ }), Eo = ({
574
+ router: e,
575
+ hydrate: t = !1
576
+ }) => /* @__PURE__ */ i.jsx(Vt, { children: /* @__PURE__ */ i.jsx(Kt, { client: Po, children: /* @__PURE__ */ i.jsx(ko, { state: t ? window.DATA : void 0, children: /* @__PURE__ */ i.jsx(Rt, { value: !1, children: /* @__PURE__ */ i.jsx(It, { children: /* @__PURE__ */ i.jsx(Oe.Provider, { value: { stagger: !t }, children: /* @__PURE__ */ i.jsx($o, { router: e }) }) }) }) }) }) }), So = ({
577
+ router: e,
578
+ context: t,
579
+ queryClient: r,
580
+ helmetContext: n,
581
+ bypassProtection: o = !1
582
+ }) => /* @__PURE__ */ i.jsx(Vt, { children: /* @__PURE__ */ i.jsx(Kt, { client: r, children: /* @__PURE__ */ i.jsx(It, { context: n, children: /* @__PURE__ */ i.jsx(Rt, { value: o, children: /* @__PURE__ */ i.jsx(an, { router: e, context: t }) }) }) }) });
583
+ function u(e, t, r) {
584
+ function n(c, f) {
585
+ var l;
586
+ Object.defineProperty(c, "_zod", {
587
+ value: c._zod ?? {},
588
+ enumerable: !1
589
+ }), (l = c._zod).traits ?? (l.traits = /* @__PURE__ */ new Set()), c._zod.traits.add(e), t(c, f);
590
+ for (const v in a.prototype)
591
+ v in c || Object.defineProperty(c, v, { value: a.prototype[v].bind(c) });
592
+ c._zod.constr = a, c._zod.def = f;
593
+ }
594
+ const o = r?.Parent ?? Object;
595
+ class s extends o {
596
+ }
597
+ Object.defineProperty(s, "name", { value: e });
598
+ function a(c) {
599
+ var f;
600
+ const l = r?.Parent ? new s() : this;
601
+ n(l, c), (f = l._zod).deferred ?? (f.deferred = []);
602
+ for (const v of l._zod.deferred)
603
+ v();
604
+ return l;
605
+ }
606
+ return Object.defineProperty(a, "init", { value: n }), Object.defineProperty(a, Symbol.hasInstance, {
607
+ value: (c) => r?.Parent && c instanceof r.Parent ? !0 : c?._zod?.traits?.has(e)
608
+ }), Object.defineProperty(a, "name", { value: e }), a;
609
+ }
610
+ class ie extends Error {
611
+ constructor() {
612
+ super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
613
+ }
614
+ }
615
+ const rr = {};
616
+ function W(e) {
617
+ return rr;
618
+ }
619
+ function Zo(e) {
620
+ const t = Object.values(e).filter((n) => typeof n == "number");
621
+ return Object.entries(e).filter(([n, o]) => t.indexOf(+n) === -1).map(([n, o]) => o);
622
+ }
623
+ function To(e, t) {
624
+ return typeof t == "bigint" ? t.toString() : t;
625
+ }
626
+ function nr(e) {
627
+ return {
628
+ get value() {
629
+ {
630
+ const t = e();
631
+ return Object.defineProperty(this, "value", { value: t }), t;
632
+ }
633
+ }
634
+ };
635
+ }
636
+ function Qe(e) {
637
+ return e == null;
638
+ }
639
+ function Be(e) {
640
+ const t = e.startsWith("^") ? 1 : 0, r = e.endsWith("$") ? e.length - 1 : e.length;
641
+ return e.slice(t, r);
642
+ }
643
+ function S(e, t, r) {
644
+ Object.defineProperty(e, t, {
645
+ get() {
646
+ {
647
+ const n = r();
648
+ return e[t] = n, n;
649
+ }
650
+ },
651
+ set(n) {
652
+ Object.defineProperty(e, t, {
653
+ value: n
654
+ // configurable: true,
655
+ });
656
+ },
657
+ configurable: !0
658
+ });
659
+ }
660
+ function Ke(e, t, r) {
661
+ Object.defineProperty(e, t, {
662
+ value: r,
663
+ writable: !0,
664
+ enumerable: !0,
665
+ configurable: !0
666
+ });
667
+ }
668
+ function ne(e) {
669
+ return JSON.stringify(e);
670
+ }
671
+ const or = Error.captureStackTrace ? Error.captureStackTrace : (...e) => {
672
+ };
673
+ function Ne(e) {
674
+ return typeof e == "object" && e !== null && !Array.isArray(e);
675
+ }
676
+ const Co = nr(() => {
677
+ if (typeof navigator < "u" && navigator?.userAgent?.includes("Cloudflare"))
678
+ return !1;
679
+ try {
680
+ const e = Function;
681
+ return new e(""), !0;
682
+ } catch {
683
+ return !1;
684
+ }
685
+ });
686
+ function ye(e) {
687
+ if (Ne(e) === !1)
688
+ return !1;
689
+ const t = e.constructor;
690
+ if (t === void 0)
691
+ return !0;
692
+ const r = t.prototype;
693
+ return !(Ne(r) === !1 || Object.prototype.hasOwnProperty.call(r, "isPrototypeOf") === !1);
694
+ }
695
+ const Oo = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
696
+ function je(e) {
697
+ return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
698
+ }
699
+ function X(e, t, r) {
700
+ const n = new e._zod.constr(t ?? e._zod.def);
701
+ return (!t || r?.parent) && (n._zod.parent = e), n;
702
+ }
703
+ function _(e) {
704
+ const t = e;
705
+ if (!t)
706
+ return {};
707
+ if (typeof t == "string")
708
+ return { error: () => t };
709
+ if (t?.message !== void 0) {
710
+ if (t?.error !== void 0)
711
+ throw new Error("Cannot specify both `message` and `error` params");
712
+ t.error = t.message;
713
+ }
714
+ return delete t.message, typeof t.error == "string" ? { ...t, error: () => t.error } : t;
715
+ }
716
+ function No(e) {
717
+ return Object.keys(e).filter((t) => e[t]._zod.optin === "optional" && e[t]._zod.optout === "optional");
718
+ }
719
+ function Ao(e, t) {
720
+ const r = {}, n = e._zod.def;
721
+ for (const o in t) {
722
+ if (!(o in n.shape))
723
+ throw new Error(`Unrecognized key: "${o}"`);
724
+ t[o] && (r[o] = n.shape[o]);
725
+ }
726
+ return X(e, {
727
+ ...e._zod.def,
728
+ shape: r,
729
+ checks: []
730
+ });
731
+ }
732
+ function Ro(e, t) {
733
+ const r = { ...e._zod.def.shape }, n = e._zod.def;
734
+ for (const o in t) {
735
+ if (!(o in n.shape))
736
+ throw new Error(`Unrecognized key: "${o}"`);
737
+ t[o] && delete r[o];
738
+ }
739
+ return X(e, {
740
+ ...e._zod.def,
741
+ shape: r,
742
+ checks: []
743
+ });
744
+ }
745
+ function Io(e, t) {
746
+ if (!ye(t))
747
+ throw new Error("Invalid input to extend: expected a plain object");
748
+ const r = {
749
+ ...e._zod.def,
750
+ get shape() {
751
+ const n = { ...e._zod.def.shape, ...t };
752
+ return Ke(this, "shape", n), n;
753
+ },
754
+ checks: []
755
+ // delete existing checks
756
+ };
757
+ return X(e, r);
758
+ }
759
+ function Do(e, t) {
760
+ return X(e, {
761
+ ...e._zod.def,
762
+ get shape() {
763
+ const r = { ...e._zod.def.shape, ...t._zod.def.shape };
764
+ return Ke(this, "shape", r), r;
765
+ },
766
+ catchall: t._zod.def.catchall,
767
+ checks: []
768
+ // delete existing checks
769
+ });
770
+ }
771
+ function Mo(e, t, r) {
772
+ const n = t._zod.def.shape, o = { ...n };
773
+ if (r)
774
+ for (const s in r) {
775
+ if (!(s in n))
776
+ throw new Error(`Unrecognized key: "${s}"`);
777
+ r[s] && (o[s] = e ? new e({
778
+ type: "optional",
779
+ innerType: n[s]
780
+ }) : n[s]);
781
+ }
782
+ else
783
+ for (const s in n)
784
+ o[s] = e ? new e({
785
+ type: "optional",
786
+ innerType: n[s]
787
+ }) : n[s];
788
+ return X(t, {
789
+ ...t._zod.def,
790
+ shape: o,
791
+ checks: []
792
+ });
793
+ }
794
+ function Fo(e, t, r) {
795
+ const n = t._zod.def.shape, o = { ...n };
796
+ if (r)
797
+ for (const s in r) {
798
+ if (!(s in o))
799
+ throw new Error(`Unrecognized key: "${s}"`);
800
+ r[s] && (o[s] = new e({
801
+ type: "nonoptional",
802
+ innerType: n[s]
803
+ }));
804
+ }
805
+ else
806
+ for (const s in n)
807
+ o[s] = new e({
808
+ type: "nonoptional",
809
+ innerType: n[s]
810
+ });
811
+ return X(t, {
812
+ ...t._zod.def,
813
+ shape: o,
814
+ // optional: [],
815
+ checks: []
816
+ });
817
+ }
818
+ function oe(e, t = 0) {
819
+ for (let r = t; r < e.issues.length; r++)
820
+ if (e.issues[r]?.continue !== !0)
821
+ return !0;
822
+ return !1;
823
+ }
824
+ function G(e, t) {
825
+ return t.map((r) => {
826
+ var n;
827
+ return (n = r).path ?? (n.path = []), r.path.unshift(e), r;
828
+ });
829
+ }
830
+ function de(e) {
831
+ return typeof e == "string" ? e : e?.message;
832
+ }
833
+ function V(e, t, r) {
834
+ const n = { ...e, path: e.path ?? [] };
835
+ if (!e.message) {
836
+ const o = de(e.inst?._zod.def?.error?.(e)) ?? de(t?.error?.(e)) ?? de(r.customError?.(e)) ?? de(r.localeError?.(e)) ?? "Invalid input";
837
+ n.message = o;
838
+ }
839
+ return delete n.inst, delete n.continue, t?.reportInput || delete n.input, n;
840
+ }
841
+ function He(e) {
842
+ return Array.isArray(e) ? "array" : typeof e == "string" ? "string" : "unknown";
843
+ }
844
+ function ae(...e) {
845
+ const [t, r, n] = e;
846
+ return typeof t == "string" ? {
847
+ message: t,
848
+ code: "custom",
849
+ input: r,
850
+ inst: n
851
+ } : { ...t };
852
+ }
853
+ const sr = (e, t) => {
854
+ e.name = "$ZodError", Object.defineProperty(e, "_zod", {
855
+ value: e._zod,
856
+ enumerable: !1
857
+ }), Object.defineProperty(e, "issues", {
858
+ value: t,
859
+ enumerable: !1
860
+ }), Object.defineProperty(e, "message", {
861
+ get() {
862
+ return JSON.stringify(t, To, 2);
863
+ },
864
+ enumerable: !0
865
+ // configurable: false,
866
+ });
867
+ }, ir = u("$ZodError", sr), ar = u("$ZodError", sr, { Parent: Error });
868
+ function qo(e, t = (r) => r.message) {
869
+ const r = {}, n = [];
870
+ for (const o of e.issues)
871
+ o.path.length > 0 ? (r[o.path[0]] = r[o.path[0]] || [], r[o.path[0]].push(t(o))) : n.push(t(o));
872
+ return { formErrors: n, fieldErrors: r };
873
+ }
874
+ function Uo(e, t) {
875
+ const r = t || function(s) {
876
+ return s.message;
877
+ }, n = { _errors: [] }, o = (s) => {
878
+ for (const a of s.issues)
879
+ if (a.code === "invalid_union" && a.errors.length)
880
+ a.errors.map((c) => o({ issues: c }));
881
+ else if (a.code === "invalid_key")
882
+ o({ issues: a.issues });
883
+ else if (a.code === "invalid_element")
884
+ o({ issues: a.issues });
885
+ else if (a.path.length === 0)
886
+ n._errors.push(r(a));
887
+ else {
888
+ let c = n, f = 0;
889
+ for (; f < a.path.length; ) {
890
+ const l = a.path[f];
891
+ f === a.path.length - 1 ? (c[l] = c[l] || { _errors: [] }, c[l]._errors.push(r(a))) : c[l] = c[l] || { _errors: [] }, c = c[l], f++;
892
+ }
893
+ }
894
+ };
895
+ return o(e), n;
896
+ }
897
+ const Lo = (e) => (t, r, n, o) => {
898
+ const s = n ? Object.assign(n, { async: !1 }) : { async: !1 }, a = t._zod.run({ value: r, issues: [] }, s);
899
+ if (a instanceof Promise)
900
+ throw new ie();
901
+ if (a.issues.length) {
902
+ const c = new (o?.Err ?? e)(a.issues.map((f) => V(f, s, W())));
903
+ throw or(c, o?.callee), c;
904
+ }
905
+ return a.value;
906
+ }, Qo = (e) => async (t, r, n, o) => {
907
+ const s = n ? Object.assign(n, { async: !0 }) : { async: !0 };
908
+ let a = t._zod.run({ value: r, issues: [] }, s);
909
+ if (a instanceof Promise && (a = await a), a.issues.length) {
910
+ const c = new (o?.Err ?? e)(a.issues.map((f) => V(f, s, W())));
911
+ throw or(c, o?.callee), c;
912
+ }
913
+ return a.value;
914
+ }, cr = (e) => (t, r, n) => {
915
+ const o = n ? { ...n, async: !1 } : { async: !1 }, s = t._zod.run({ value: r, issues: [] }, o);
916
+ if (s instanceof Promise)
917
+ throw new ie();
918
+ return s.issues.length ? {
919
+ success: !1,
920
+ error: new (e ?? ir)(s.issues.map((a) => V(a, o, W())))
921
+ } : { success: !0, data: s.value };
922
+ }, Bo = /* @__PURE__ */ cr(ar), ur = (e) => async (t, r, n) => {
923
+ const o = n ? Object.assign(n, { async: !0 }) : { async: !0 };
924
+ let s = t._zod.run({ value: r, issues: [] }, o);
925
+ return s instanceof Promise && (s = await s), s.issues.length ? {
926
+ success: !1,
927
+ error: new e(s.issues.map((a) => V(a, o, W())))
928
+ } : { success: !0, data: s.value };
929
+ }, Ko = /* @__PURE__ */ ur(ar), Ho = /^[cC][^\s-]{8,}$/, Wo = /^[0-9a-z]+$/, Vo = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, Yo = /^[0-9a-vA-V]{20}$/, Go = /^[A-Za-z0-9]{27}$/, Jo = /^[a-zA-Z0-9_-]{21}$/, Xo = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, es = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/, lt = (e) => e ? new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`) : /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$/, ts = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, rs = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
930
+ function ns() {
931
+ return new RegExp(rs, "u");
932
+ }
933
+ const os = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, ss = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/, is = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/, as = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, cs = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, lr = /^[A-Za-z0-9_-]*$/, us = /^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/, ls = /^\+(?:[0-9]){6,14}[0-9]$/, dr = "(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))", ds = /* @__PURE__ */ new RegExp(`^${dr}$`);
934
+ function fr(e) {
935
+ const t = "(?:[01]\\d|2[0-3]):[0-5]\\d";
936
+ return typeof e.precision == "number" ? e.precision === -1 ? `${t}` : e.precision === 0 ? `${t}:[0-5]\\d` : `${t}:[0-5]\\d\\.\\d{${e.precision}}` : `${t}(?::[0-5]\\d(?:\\.\\d+)?)?`;
937
+ }
938
+ function fs(e) {
939
+ return new RegExp(`^${fr(e)}$`);
940
+ }
941
+ function hs(e) {
942
+ const t = fr({ precision: e.precision }), r = ["Z"];
943
+ e.local && r.push(""), e.offset && r.push("([+-]\\d{2}:\\d{2})");
944
+ const n = `${t}(?:${r.join("|")})`;
945
+ return new RegExp(`^${dr}T(?:${n})$`);
946
+ }
947
+ const ps = (e) => {
948
+ const t = e ? `[\\s\\S]{${e?.minimum ?? 0},${e?.maximum ?? ""}}` : "[\\s\\S]*";
949
+ return new RegExp(`^${t}$`);
950
+ }, ms = /^[^A-Z]*$/, gs = /^[^a-z]*$/, U = /* @__PURE__ */ u("$ZodCheck", (e, t) => {
951
+ var r;
952
+ e._zod ?? (e._zod = {}), e._zod.def = t, (r = e._zod).onattach ?? (r.onattach = []);
953
+ }), vs = /* @__PURE__ */ u("$ZodCheckMaxLength", (e, t) => {
954
+ U.init(e, t), e._zod.when = (r) => {
955
+ const n = r.value;
956
+ return !Qe(n) && n.length !== void 0;
957
+ }, e._zod.onattach.push((r) => {
958
+ const n = r._zod.bag.maximum ?? Number.POSITIVE_INFINITY;
959
+ t.maximum < n && (r._zod.bag.maximum = t.maximum);
960
+ }), e._zod.check = (r) => {
961
+ const n = r.value;
962
+ if (n.length <= t.maximum)
963
+ return;
964
+ const s = He(n);
965
+ r.issues.push({
966
+ origin: s,
967
+ code: "too_big",
968
+ maximum: t.maximum,
969
+ inclusive: !0,
970
+ input: n,
971
+ inst: e,
972
+ continue: !t.abort
973
+ });
974
+ };
975
+ }), ys = /* @__PURE__ */ u("$ZodCheckMinLength", (e, t) => {
976
+ U.init(e, t), e._zod.when = (r) => {
977
+ const n = r.value;
978
+ return !Qe(n) && n.length !== void 0;
979
+ }, e._zod.onattach.push((r) => {
980
+ const n = r._zod.bag.minimum ?? Number.NEGATIVE_INFINITY;
981
+ t.minimum > n && (r._zod.bag.minimum = t.minimum);
982
+ }), e._zod.check = (r) => {
983
+ const n = r.value;
984
+ if (n.length >= t.minimum)
985
+ return;
986
+ const s = He(n);
987
+ r.issues.push({
988
+ origin: s,
989
+ code: "too_small",
990
+ minimum: t.minimum,
991
+ inclusive: !0,
992
+ input: n,
993
+ inst: e,
994
+ continue: !t.abort
995
+ });
996
+ };
997
+ }), xs = /* @__PURE__ */ u("$ZodCheckLengthEquals", (e, t) => {
998
+ U.init(e, t), e._zod.when = (r) => {
999
+ const n = r.value;
1000
+ return !Qe(n) && n.length !== void 0;
1001
+ }, e._zod.onattach.push((r) => {
1002
+ const n = r._zod.bag;
1003
+ n.minimum = t.length, n.maximum = t.length, n.length = t.length;
1004
+ }), e._zod.check = (r) => {
1005
+ const n = r.value, o = n.length;
1006
+ if (o === t.length)
1007
+ return;
1008
+ const s = He(n), a = o > t.length;
1009
+ r.issues.push({
1010
+ origin: s,
1011
+ ...a ? { code: "too_big", maximum: t.length } : { code: "too_small", minimum: t.length },
1012
+ inclusive: !0,
1013
+ exact: !0,
1014
+ input: r.value,
1015
+ inst: e,
1016
+ continue: !t.abort
1017
+ });
1018
+ };
1019
+ }), ke = /* @__PURE__ */ u("$ZodCheckStringFormat", (e, t) => {
1020
+ var r, n;
1021
+ U.init(e, t), e._zod.onattach.push((o) => {
1022
+ const s = o._zod.bag;
1023
+ s.format = t.format, t.pattern && (s.patterns ?? (s.patterns = /* @__PURE__ */ new Set()), s.patterns.add(t.pattern));
1024
+ }), t.pattern ? (r = e._zod).check ?? (r.check = (o) => {
1025
+ t.pattern.lastIndex = 0, !t.pattern.test(o.value) && o.issues.push({
1026
+ origin: "string",
1027
+ code: "invalid_format",
1028
+ format: t.format,
1029
+ input: o.value,
1030
+ ...t.pattern ? { pattern: t.pattern.toString() } : {},
1031
+ inst: e,
1032
+ continue: !t.abort
1033
+ });
1034
+ }) : (n = e._zod).check ?? (n.check = () => {
1035
+ });
1036
+ }), _s = /* @__PURE__ */ u("$ZodCheckRegex", (e, t) => {
1037
+ ke.init(e, t), e._zod.check = (r) => {
1038
+ t.pattern.lastIndex = 0, !t.pattern.test(r.value) && r.issues.push({
1039
+ origin: "string",
1040
+ code: "invalid_format",
1041
+ format: "regex",
1042
+ input: r.value,
1043
+ pattern: t.pattern.toString(),
1044
+ inst: e,
1045
+ continue: !t.abort
1046
+ });
1047
+ };
1048
+ }), bs = /* @__PURE__ */ u("$ZodCheckLowerCase", (e, t) => {
1049
+ t.pattern ?? (t.pattern = ms), ke.init(e, t);
1050
+ }), ws = /* @__PURE__ */ u("$ZodCheckUpperCase", (e, t) => {
1051
+ t.pattern ?? (t.pattern = gs), ke.init(e, t);
1052
+ }), js = /* @__PURE__ */ u("$ZodCheckIncludes", (e, t) => {
1053
+ U.init(e, t);
1054
+ const r = je(t.includes), n = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${r}` : r);
1055
+ t.pattern = n, e._zod.onattach.push((o) => {
1056
+ const s = o._zod.bag;
1057
+ s.patterns ?? (s.patterns = /* @__PURE__ */ new Set()), s.patterns.add(n);
1058
+ }), e._zod.check = (o) => {
1059
+ o.value.includes(t.includes, t.position) || o.issues.push({
1060
+ origin: "string",
1061
+ code: "invalid_format",
1062
+ format: "includes",
1063
+ includes: t.includes,
1064
+ input: o.value,
1065
+ inst: e,
1066
+ continue: !t.abort
1067
+ });
1068
+ };
1069
+ }), ks = /* @__PURE__ */ u("$ZodCheckStartsWith", (e, t) => {
1070
+ U.init(e, t);
1071
+ const r = new RegExp(`^${je(t.prefix)}.*`);
1072
+ t.pattern ?? (t.pattern = r), e._zod.onattach.push((n) => {
1073
+ const o = n._zod.bag;
1074
+ o.patterns ?? (o.patterns = /* @__PURE__ */ new Set()), o.patterns.add(r);
1075
+ }), e._zod.check = (n) => {
1076
+ n.value.startsWith(t.prefix) || n.issues.push({
1077
+ origin: "string",
1078
+ code: "invalid_format",
1079
+ format: "starts_with",
1080
+ prefix: t.prefix,
1081
+ input: n.value,
1082
+ inst: e,
1083
+ continue: !t.abort
1084
+ });
1085
+ };
1086
+ }), zs = /* @__PURE__ */ u("$ZodCheckEndsWith", (e, t) => {
1087
+ U.init(e, t);
1088
+ const r = new RegExp(`.*${je(t.suffix)}$`);
1089
+ t.pattern ?? (t.pattern = r), e._zod.onattach.push((n) => {
1090
+ const o = n._zod.bag;
1091
+ o.patterns ?? (o.patterns = /* @__PURE__ */ new Set()), o.patterns.add(r);
1092
+ }), e._zod.check = (n) => {
1093
+ n.value.endsWith(t.suffix) || n.issues.push({
1094
+ origin: "string",
1095
+ code: "invalid_format",
1096
+ format: "ends_with",
1097
+ suffix: t.suffix,
1098
+ input: n.value,
1099
+ inst: e,
1100
+ continue: !t.abort
1101
+ });
1102
+ };
1103
+ }), $s = /* @__PURE__ */ u("$ZodCheckOverwrite", (e, t) => {
1104
+ U.init(e, t), e._zod.check = (r) => {
1105
+ r.value = t.tx(r.value);
1106
+ };
1107
+ });
1108
+ class Ps {
1109
+ constructor(t = []) {
1110
+ this.content = [], this.indent = 0, this && (this.args = t);
1111
+ }
1112
+ indented(t) {
1113
+ this.indent += 1, t(this), this.indent -= 1;
1114
+ }
1115
+ write(t) {
1116
+ if (typeof t == "function") {
1117
+ t(this, { execution: "sync" }), t(this, { execution: "async" });
1118
+ return;
1119
+ }
1120
+ const n = t.split(`
1121
+ `).filter((a) => a), o = Math.min(...n.map((a) => a.length - a.trimStart().length)), s = n.map((a) => a.slice(o)).map((a) => " ".repeat(this.indent * 2) + a);
1122
+ for (const a of s)
1123
+ this.content.push(a);
1124
+ }
1125
+ compile() {
1126
+ const t = Function, r = this?.args, o = [...(this?.content ?? [""]).map((s) => ` ${s}`)];
1127
+ return new t(...r, o.join(`
1128
+ `));
1129
+ }
1130
+ }
1131
+ const Es = {
1132
+ major: 4,
1133
+ minor: 0,
1134
+ patch: 0
1135
+ }, C = /* @__PURE__ */ u("$ZodType", (e, t) => {
1136
+ var r;
1137
+ e ?? (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = Es;
1138
+ const n = [...e._zod.def.checks ?? []];
1139
+ e._zod.traits.has("$ZodCheck") && n.unshift(e);
1140
+ for (const o of n)
1141
+ for (const s of o._zod.onattach)
1142
+ s(e);
1143
+ if (n.length === 0)
1144
+ (r = e._zod).deferred ?? (r.deferred = []), e._zod.deferred?.push(() => {
1145
+ e._zod.run = e._zod.parse;
1146
+ });
1147
+ else {
1148
+ const o = (s, a, c) => {
1149
+ let f = oe(s), l;
1150
+ for (const v of a) {
1151
+ if (v._zod.when) {
1152
+ if (!v._zod.when(s))
1153
+ continue;
1154
+ } else if (f)
1155
+ continue;
1156
+ const m = s.issues.length, p = v._zod.check(s);
1157
+ if (p instanceof Promise && c?.async === !1)
1158
+ throw new ie();
1159
+ if (l || p instanceof Promise)
1160
+ l = (l ?? Promise.resolve()).then(async () => {
1161
+ await p, s.issues.length !== m && (f || (f = oe(s, m)));
1162
+ });
1163
+ else {
1164
+ if (s.issues.length === m)
1165
+ continue;
1166
+ f || (f = oe(s, m));
1167
+ }
1168
+ }
1169
+ return l ? l.then(() => s) : s;
1170
+ };
1171
+ e._zod.run = (s, a) => {
1172
+ const c = e._zod.parse(s, a);
1173
+ if (c instanceof Promise) {
1174
+ if (a.async === !1)
1175
+ throw new ie();
1176
+ return c.then((f) => o(f, n, a));
1177
+ }
1178
+ return o(c, n, a);
1179
+ };
1180
+ }
1181
+ e["~standard"] = {
1182
+ validate: (o) => {
1183
+ try {
1184
+ const s = Bo(e, o);
1185
+ return s.success ? { value: s.data } : { issues: s.error?.issues };
1186
+ } catch {
1187
+ return Ko(e, o).then((a) => a.success ? { value: a.data } : { issues: a.error?.issues });
1188
+ }
1189
+ },
1190
+ vendor: "zod",
1191
+ version: 1
1192
+ };
1193
+ }), We = /* @__PURE__ */ u("$ZodString", (e, t) => {
1194
+ C.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? ps(e._zod.bag), e._zod.parse = (r, n) => {
1195
+ if (t.coerce)
1196
+ try {
1197
+ r.value = String(r.value);
1198
+ } catch {
1199
+ }
1200
+ return typeof r.value == "string" || r.issues.push({
1201
+ expected: "string",
1202
+ code: "invalid_type",
1203
+ input: r.value,
1204
+ inst: e
1205
+ }), r;
1206
+ };
1207
+ }), Z = /* @__PURE__ */ u("$ZodStringFormat", (e, t) => {
1208
+ ke.init(e, t), We.init(e, t);
1209
+ }), Ss = /* @__PURE__ */ u("$ZodGUID", (e, t) => {
1210
+ t.pattern ?? (t.pattern = es), Z.init(e, t);
1211
+ }), Zs = /* @__PURE__ */ u("$ZodUUID", (e, t) => {
1212
+ if (t.version) {
1213
+ const n = {
1214
+ v1: 1,
1215
+ v2: 2,
1216
+ v3: 3,
1217
+ v4: 4,
1218
+ v5: 5,
1219
+ v6: 6,
1220
+ v7: 7,
1221
+ v8: 8
1222
+ }[t.version];
1223
+ if (n === void 0)
1224
+ throw new Error(`Invalid UUID version: "${t.version}"`);
1225
+ t.pattern ?? (t.pattern = lt(n));
1226
+ } else
1227
+ t.pattern ?? (t.pattern = lt());
1228
+ Z.init(e, t);
1229
+ }), Ts = /* @__PURE__ */ u("$ZodEmail", (e, t) => {
1230
+ t.pattern ?? (t.pattern = ts), Z.init(e, t);
1231
+ }), Cs = /* @__PURE__ */ u("$ZodURL", (e, t) => {
1232
+ Z.init(e, t), e._zod.check = (r) => {
1233
+ try {
1234
+ const n = r.value, o = new URL(n), s = o.href;
1235
+ t.hostname && (t.hostname.lastIndex = 0, t.hostname.test(o.hostname) || r.issues.push({
1236
+ code: "invalid_format",
1237
+ format: "url",
1238
+ note: "Invalid hostname",
1239
+ pattern: us.source,
1240
+ input: r.value,
1241
+ inst: e,
1242
+ continue: !t.abort
1243
+ })), t.protocol && (t.protocol.lastIndex = 0, t.protocol.test(o.protocol.endsWith(":") ? o.protocol.slice(0, -1) : o.protocol) || r.issues.push({
1244
+ code: "invalid_format",
1245
+ format: "url",
1246
+ note: "Invalid protocol",
1247
+ pattern: t.protocol.source,
1248
+ input: r.value,
1249
+ inst: e,
1250
+ continue: !t.abort
1251
+ })), !n.endsWith("/") && s.endsWith("/") ? r.value = s.slice(0, -1) : r.value = s;
1252
+ return;
1253
+ } catch {
1254
+ r.issues.push({
1255
+ code: "invalid_format",
1256
+ format: "url",
1257
+ input: r.value,
1258
+ inst: e,
1259
+ continue: !t.abort
1260
+ });
1261
+ }
1262
+ };
1263
+ }), Os = /* @__PURE__ */ u("$ZodEmoji", (e, t) => {
1264
+ t.pattern ?? (t.pattern = ns()), Z.init(e, t);
1265
+ }), Ns = /* @__PURE__ */ u("$ZodNanoID", (e, t) => {
1266
+ t.pattern ?? (t.pattern = Jo), Z.init(e, t);
1267
+ }), As = /* @__PURE__ */ u("$ZodCUID", (e, t) => {
1268
+ t.pattern ?? (t.pattern = Ho), Z.init(e, t);
1269
+ }), Rs = /* @__PURE__ */ u("$ZodCUID2", (e, t) => {
1270
+ t.pattern ?? (t.pattern = Wo), Z.init(e, t);
1271
+ }), Is = /* @__PURE__ */ u("$ZodULID", (e, t) => {
1272
+ t.pattern ?? (t.pattern = Vo), Z.init(e, t);
1273
+ }), Ds = /* @__PURE__ */ u("$ZodXID", (e, t) => {
1274
+ t.pattern ?? (t.pattern = Yo), Z.init(e, t);
1275
+ }), Ms = /* @__PURE__ */ u("$ZodKSUID", (e, t) => {
1276
+ t.pattern ?? (t.pattern = Go), Z.init(e, t);
1277
+ }), Fs = /* @__PURE__ */ u("$ZodISODateTime", (e, t) => {
1278
+ t.pattern ?? (t.pattern = hs(t)), Z.init(e, t);
1279
+ }), qs = /* @__PURE__ */ u("$ZodISODate", (e, t) => {
1280
+ t.pattern ?? (t.pattern = ds), Z.init(e, t);
1281
+ }), Us = /* @__PURE__ */ u("$ZodISOTime", (e, t) => {
1282
+ t.pattern ?? (t.pattern = fs(t)), Z.init(e, t);
1283
+ }), Ls = /* @__PURE__ */ u("$ZodISODuration", (e, t) => {
1284
+ t.pattern ?? (t.pattern = Xo), Z.init(e, t);
1285
+ }), Qs = /* @__PURE__ */ u("$ZodIPv4", (e, t) => {
1286
+ t.pattern ?? (t.pattern = os), Z.init(e, t), e._zod.onattach.push((r) => {
1287
+ const n = r._zod.bag;
1288
+ n.format = "ipv4";
1289
+ });
1290
+ }), Bs = /* @__PURE__ */ u("$ZodIPv6", (e, t) => {
1291
+ t.pattern ?? (t.pattern = ss), Z.init(e, t), e._zod.onattach.push((r) => {
1292
+ const n = r._zod.bag;
1293
+ n.format = "ipv6";
1294
+ }), e._zod.check = (r) => {
1295
+ try {
1296
+ new URL(`http://[${r.value}]`);
1297
+ } catch {
1298
+ r.issues.push({
1299
+ code: "invalid_format",
1300
+ format: "ipv6",
1301
+ input: r.value,
1302
+ inst: e,
1303
+ continue: !t.abort
1304
+ });
1305
+ }
1306
+ };
1307
+ }), Ks = /* @__PURE__ */ u("$ZodCIDRv4", (e, t) => {
1308
+ t.pattern ?? (t.pattern = is), Z.init(e, t);
1309
+ }), Hs = /* @__PURE__ */ u("$ZodCIDRv6", (e, t) => {
1310
+ t.pattern ?? (t.pattern = as), Z.init(e, t), e._zod.check = (r) => {
1311
+ const [n, o] = r.value.split("/");
1312
+ try {
1313
+ if (!o)
1314
+ throw new Error();
1315
+ const s = Number(o);
1316
+ if (`${s}` !== o)
1317
+ throw new Error();
1318
+ if (s < 0 || s > 128)
1319
+ throw new Error();
1320
+ new URL(`http://[${n}]`);
1321
+ } catch {
1322
+ r.issues.push({
1323
+ code: "invalid_format",
1324
+ format: "cidrv6",
1325
+ input: r.value,
1326
+ inst: e,
1327
+ continue: !t.abort
1328
+ });
1329
+ }
1330
+ };
1331
+ });
1332
+ function hr(e) {
1333
+ if (e === "")
1334
+ return !0;
1335
+ if (e.length % 4 !== 0)
1336
+ return !1;
1337
+ try {
1338
+ return atob(e), !0;
1339
+ } catch {
1340
+ return !1;
1341
+ }
1342
+ }
1343
+ const Ws = /* @__PURE__ */ u("$ZodBase64", (e, t) => {
1344
+ t.pattern ?? (t.pattern = cs), Z.init(e, t), e._zod.onattach.push((r) => {
1345
+ r._zod.bag.contentEncoding = "base64";
1346
+ }), e._zod.check = (r) => {
1347
+ hr(r.value) || r.issues.push({
1348
+ code: "invalid_format",
1349
+ format: "base64",
1350
+ input: r.value,
1351
+ inst: e,
1352
+ continue: !t.abort
1353
+ });
1354
+ };
1355
+ });
1356
+ function Vs(e) {
1357
+ if (!lr.test(e))
1358
+ return !1;
1359
+ const t = e.replace(/[-_]/g, (n) => n === "-" ? "+" : "/"), r = t.padEnd(Math.ceil(t.length / 4) * 4, "=");
1360
+ return hr(r);
1361
+ }
1362
+ const Ys = /* @__PURE__ */ u("$ZodBase64URL", (e, t) => {
1363
+ t.pattern ?? (t.pattern = lr), Z.init(e, t), e._zod.onattach.push((r) => {
1364
+ r._zod.bag.contentEncoding = "base64url";
1365
+ }), e._zod.check = (r) => {
1366
+ Vs(r.value) || r.issues.push({
1367
+ code: "invalid_format",
1368
+ format: "base64url",
1369
+ input: r.value,
1370
+ inst: e,
1371
+ continue: !t.abort
1372
+ });
1373
+ };
1374
+ }), Gs = /* @__PURE__ */ u("$ZodE164", (e, t) => {
1375
+ t.pattern ?? (t.pattern = ls), Z.init(e, t);
1376
+ });
1377
+ function Js(e, t = null) {
1378
+ try {
1379
+ const r = e.split(".");
1380
+ if (r.length !== 3)
1381
+ return !1;
1382
+ const [n] = r;
1383
+ if (!n)
1384
+ return !1;
1385
+ const o = JSON.parse(atob(n));
1386
+ return !("typ" in o && o?.typ !== "JWT" || !o.alg || t && (!("alg" in o) || o.alg !== t));
1387
+ } catch {
1388
+ return !1;
1389
+ }
1390
+ }
1391
+ const Xs = /* @__PURE__ */ u("$ZodJWT", (e, t) => {
1392
+ Z.init(e, t), e._zod.check = (r) => {
1393
+ Js(r.value, t.alg) || r.issues.push({
1394
+ code: "invalid_format",
1395
+ format: "jwt",
1396
+ input: r.value,
1397
+ inst: e,
1398
+ continue: !t.abort
1399
+ });
1400
+ };
1401
+ }), ei = /* @__PURE__ */ u("$ZodUnknown", (e, t) => {
1402
+ C.init(e, t), e._zod.parse = (r) => r;
1403
+ }), ti = /* @__PURE__ */ u("$ZodNever", (e, t) => {
1404
+ C.init(e, t), e._zod.parse = (r, n) => (r.issues.push({
1405
+ expected: "never",
1406
+ code: "invalid_type",
1407
+ input: r.value,
1408
+ inst: e
1409
+ }), r);
1410
+ });
1411
+ function dt(e, t, r) {
1412
+ e.issues.length && t.issues.push(...G(r, e.issues)), t.value[r] = e.value;
1413
+ }
1414
+ const ri = /* @__PURE__ */ u("$ZodArray", (e, t) => {
1415
+ C.init(e, t), e._zod.parse = (r, n) => {
1416
+ const o = r.value;
1417
+ if (!Array.isArray(o))
1418
+ return r.issues.push({
1419
+ expected: "array",
1420
+ code: "invalid_type",
1421
+ input: o,
1422
+ inst: e
1423
+ }), r;
1424
+ r.value = Array(o.length);
1425
+ const s = [];
1426
+ for (let a = 0; a < o.length; a++) {
1427
+ const c = o[a], f = t.element._zod.run({
1428
+ value: c,
1429
+ issues: []
1430
+ }, n);
1431
+ f instanceof Promise ? s.push(f.then((l) => dt(l, r, a))) : dt(f, r, a);
1432
+ }
1433
+ return s.length ? Promise.all(s).then(() => r) : r;
1434
+ };
1435
+ });
1436
+ function fe(e, t, r) {
1437
+ e.issues.length && t.issues.push(...G(r, e.issues)), t.value[r] = e.value;
1438
+ }
1439
+ function ft(e, t, r, n) {
1440
+ e.issues.length ? n[r] === void 0 ? r in n ? t.value[r] = void 0 : t.value[r] = e.value : t.issues.push(...G(r, e.issues)) : e.value === void 0 ? r in n && (t.value[r] = void 0) : t.value[r] = e.value;
1441
+ }
1442
+ const ni = /* @__PURE__ */ u("$ZodObject", (e, t) => {
1443
+ C.init(e, t);
1444
+ const r = nr(() => {
1445
+ const m = Object.keys(t.shape);
1446
+ for (const d of m)
1447
+ if (!(t.shape[d] instanceof C))
1448
+ throw new Error(`Invalid element at key "${d}": expected a Zod schema`);
1449
+ const p = No(t.shape);
1450
+ return {
1451
+ shape: t.shape,
1452
+ keys: m,
1453
+ keySet: new Set(m),
1454
+ numKeys: m.length,
1455
+ optionalKeys: new Set(p)
1456
+ };
1457
+ });
1458
+ S(e._zod, "propValues", () => {
1459
+ const m = t.shape, p = {};
1460
+ for (const d in m) {
1461
+ const g = m[d]._zod;
1462
+ if (g.values) {
1463
+ p[d] ?? (p[d] = /* @__PURE__ */ new Set());
1464
+ for (const w of g.values)
1465
+ p[d].add(w);
1466
+ }
1467
+ }
1468
+ return p;
1469
+ });
1470
+ const n = (m) => {
1471
+ const p = new Ps(["shape", "payload", "ctx"]), d = r.value, g = (j) => {
1472
+ const x = ne(j);
1473
+ return `shape[${x}]._zod.run({ value: input[${x}], issues: [] }, ctx)`;
1474
+ };
1475
+ p.write("const input = payload.value;");
1476
+ const w = /* @__PURE__ */ Object.create(null);
1477
+ let E = 0;
1478
+ for (const j of d.keys)
1479
+ w[j] = `key_${E++}`;
1480
+ p.write("const newResult = {}");
1481
+ for (const j of d.keys)
1482
+ if (d.optionalKeys.has(j)) {
1483
+ const x = w[j];
1484
+ p.write(`const ${x} = ${g(j)};`);
1485
+ const b = ne(j);
1486
+ p.write(`
1487
+ if (${x}.issues.length) {
1488
+ if (input[${b}] === undefined) {
1489
+ if (${b} in input) {
1490
+ newResult[${b}] = undefined;
1491
+ }
1492
+ } else {
1493
+ payload.issues = payload.issues.concat(
1494
+ ${x}.issues.map((iss) => ({
1495
+ ...iss,
1496
+ path: iss.path ? [${b}, ...iss.path] : [${b}],
1497
+ }))
1498
+ );
1499
+ }
1500
+ } else if (${x}.value === undefined) {
1501
+ if (${b} in input) newResult[${b}] = undefined;
1502
+ } else {
1503
+ newResult[${b}] = ${x}.value;
1504
+ }
1505
+ `);
1506
+ } else {
1507
+ const x = w[j];
1508
+ p.write(`const ${x} = ${g(j)};`), p.write(`
1509
+ if (${x}.issues.length) payload.issues = payload.issues.concat(${x}.issues.map(iss => ({
1510
+ ...iss,
1511
+ path: iss.path ? [${ne(j)}, ...iss.path] : [${ne(j)}]
1512
+ })));`), p.write(`newResult[${ne(j)}] = ${x}.value`);
1513
+ }
1514
+ p.write("payload.value = newResult;"), p.write("return payload;");
1515
+ const z = p.compile();
1516
+ return (j, x) => z(m, j, x);
1517
+ };
1518
+ let o;
1519
+ const s = Ne, a = !rr.jitless, f = a && Co.value, l = t.catchall;
1520
+ let v;
1521
+ e._zod.parse = (m, p) => {
1522
+ v ?? (v = r.value);
1523
+ const d = m.value;
1524
+ if (!s(d))
1525
+ return m.issues.push({
1526
+ expected: "object",
1527
+ code: "invalid_type",
1528
+ input: d,
1529
+ inst: e
1530
+ }), m;
1531
+ const g = [];
1532
+ if (a && f && p?.async === !1 && p.jitless !== !0)
1533
+ o || (o = n(t.shape)), m = o(m, p);
1534
+ else {
1535
+ m.value = {};
1536
+ const x = v.shape;
1537
+ for (const b of v.keys) {
1538
+ const h = x[b], k = h._zod.run({ value: d[b], issues: [] }, p), R = h._zod.optin === "optional" && h._zod.optout === "optional";
1539
+ k instanceof Promise ? g.push(k.then((D) => R ? ft(D, m, b, d) : fe(D, m, b))) : R ? ft(k, m, b, d) : fe(k, m, b);
1540
+ }
1541
+ }
1542
+ if (!l)
1543
+ return g.length ? Promise.all(g).then(() => m) : m;
1544
+ const w = [], E = v.keySet, z = l._zod, j = z.def.type;
1545
+ for (const x of Object.keys(d)) {
1546
+ if (E.has(x))
1547
+ continue;
1548
+ if (j === "never") {
1549
+ w.push(x);
1550
+ continue;
1551
+ }
1552
+ const b = z.run({ value: d[x], issues: [] }, p);
1553
+ b instanceof Promise ? g.push(b.then((h) => fe(h, m, x))) : fe(b, m, x);
1554
+ }
1555
+ return w.length && m.issues.push({
1556
+ code: "unrecognized_keys",
1557
+ keys: w,
1558
+ input: d,
1559
+ inst: e
1560
+ }), g.length ? Promise.all(g).then(() => m) : m;
1561
+ };
1562
+ });
1563
+ function ht(e, t, r, n) {
1564
+ for (const o of e)
1565
+ if (o.issues.length === 0)
1566
+ return t.value = o.value, t;
1567
+ return t.issues.push({
1568
+ code: "invalid_union",
1569
+ input: t.value,
1570
+ inst: r,
1571
+ errors: e.map((o) => o.issues.map((s) => V(s, n, W())))
1572
+ }), t;
1573
+ }
1574
+ const oi = /* @__PURE__ */ u("$ZodUnion", (e, t) => {
1575
+ C.init(e, t), S(e._zod, "optin", () => t.options.some((r) => r._zod.optin === "optional") ? "optional" : void 0), S(e._zod, "optout", () => t.options.some((r) => r._zod.optout === "optional") ? "optional" : void 0), S(e._zod, "values", () => {
1576
+ if (t.options.every((r) => r._zod.values))
1577
+ return new Set(t.options.flatMap((r) => Array.from(r._zod.values)));
1578
+ }), S(e._zod, "pattern", () => {
1579
+ if (t.options.every((r) => r._zod.pattern)) {
1580
+ const r = t.options.map((n) => n._zod.pattern);
1581
+ return new RegExp(`^(${r.map((n) => Be(n.source)).join("|")})$`);
1582
+ }
1583
+ }), e._zod.parse = (r, n) => {
1584
+ let o = !1;
1585
+ const s = [];
1586
+ for (const a of t.options) {
1587
+ const c = a._zod.run({
1588
+ value: r.value,
1589
+ issues: []
1590
+ }, n);
1591
+ if (c instanceof Promise)
1592
+ s.push(c), o = !0;
1593
+ else {
1594
+ if (c.issues.length === 0)
1595
+ return c;
1596
+ s.push(c);
1597
+ }
1598
+ }
1599
+ return o ? Promise.all(s).then((a) => ht(a, r, e, n)) : ht(s, r, e, n);
1600
+ };
1601
+ }), si = /* @__PURE__ */ u("$ZodIntersection", (e, t) => {
1602
+ C.init(e, t), e._zod.parse = (r, n) => {
1603
+ const o = r.value, s = t.left._zod.run({ value: o, issues: [] }, n), a = t.right._zod.run({ value: o, issues: [] }, n);
1604
+ return s instanceof Promise || a instanceof Promise ? Promise.all([s, a]).then(([f, l]) => pt(r, f, l)) : pt(r, s, a);
1605
+ };
1606
+ });
1607
+ function Ae(e, t) {
1608
+ if (e === t)
1609
+ return { valid: !0, data: e };
1610
+ if (e instanceof Date && t instanceof Date && +e == +t)
1611
+ return { valid: !0, data: e };
1612
+ if (ye(e) && ye(t)) {
1613
+ const r = Object.keys(t), n = Object.keys(e).filter((s) => r.indexOf(s) !== -1), o = { ...e, ...t };
1614
+ for (const s of n) {
1615
+ const a = Ae(e[s], t[s]);
1616
+ if (!a.valid)
1617
+ return {
1618
+ valid: !1,
1619
+ mergeErrorPath: [s, ...a.mergeErrorPath]
1620
+ };
1621
+ o[s] = a.data;
1622
+ }
1623
+ return { valid: !0, data: o };
1624
+ }
1625
+ if (Array.isArray(e) && Array.isArray(t)) {
1626
+ if (e.length !== t.length)
1627
+ return { valid: !1, mergeErrorPath: [] };
1628
+ const r = [];
1629
+ for (let n = 0; n < e.length; n++) {
1630
+ const o = e[n], s = t[n], a = Ae(o, s);
1631
+ if (!a.valid)
1632
+ return {
1633
+ valid: !1,
1634
+ mergeErrorPath: [n, ...a.mergeErrorPath]
1635
+ };
1636
+ r.push(a.data);
1637
+ }
1638
+ return { valid: !0, data: r };
1639
+ }
1640
+ return { valid: !1, mergeErrorPath: [] };
1641
+ }
1642
+ function pt(e, t, r) {
1643
+ if (t.issues.length && e.issues.push(...t.issues), r.issues.length && e.issues.push(...r.issues), oe(e))
1644
+ return e;
1645
+ const n = Ae(t.value, r.value);
1646
+ if (!n.valid)
1647
+ throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(n.mergeErrorPath)}`);
1648
+ return e.value = n.data, e;
1649
+ }
1650
+ const ii = /* @__PURE__ */ u("$ZodRecord", (e, t) => {
1651
+ C.init(e, t), e._zod.parse = (r, n) => {
1652
+ const o = r.value;
1653
+ if (!ye(o))
1654
+ return r.issues.push({
1655
+ expected: "record",
1656
+ code: "invalid_type",
1657
+ input: o,
1658
+ inst: e
1659
+ }), r;
1660
+ const s = [];
1661
+ if (t.keyType._zod.values) {
1662
+ const a = t.keyType._zod.values;
1663
+ r.value = {};
1664
+ for (const f of a)
1665
+ if (typeof f == "string" || typeof f == "number" || typeof f == "symbol") {
1666
+ const l = t.valueType._zod.run({ value: o[f], issues: [] }, n);
1667
+ l instanceof Promise ? s.push(l.then((v) => {
1668
+ v.issues.length && r.issues.push(...G(f, v.issues)), r.value[f] = v.value;
1669
+ })) : (l.issues.length && r.issues.push(...G(f, l.issues)), r.value[f] = l.value);
1670
+ }
1671
+ let c;
1672
+ for (const f in o)
1673
+ a.has(f) || (c = c ?? [], c.push(f));
1674
+ c && c.length > 0 && r.issues.push({
1675
+ code: "unrecognized_keys",
1676
+ input: o,
1677
+ inst: e,
1678
+ keys: c
1679
+ });
1680
+ } else {
1681
+ r.value = {};
1682
+ for (const a of Reflect.ownKeys(o)) {
1683
+ if (a === "__proto__")
1684
+ continue;
1685
+ const c = t.keyType._zod.run({ value: a, issues: [] }, n);
1686
+ if (c instanceof Promise)
1687
+ throw new Error("Async schemas not supported in object keys currently");
1688
+ if (c.issues.length) {
1689
+ r.issues.push({
1690
+ origin: "record",
1691
+ code: "invalid_key",
1692
+ issues: c.issues.map((l) => V(l, n, W())),
1693
+ input: a,
1694
+ path: [a],
1695
+ inst: e
1696
+ }), r.value[c.value] = c.value;
1697
+ continue;
1698
+ }
1699
+ const f = t.valueType._zod.run({ value: o[a], issues: [] }, n);
1700
+ f instanceof Promise ? s.push(f.then((l) => {
1701
+ l.issues.length && r.issues.push(...G(a, l.issues)), r.value[c.value] = l.value;
1702
+ })) : (f.issues.length && r.issues.push(...G(a, f.issues)), r.value[c.value] = f.value);
1703
+ }
1704
+ }
1705
+ return s.length ? Promise.all(s).then(() => r) : r;
1706
+ };
1707
+ }), ai = /* @__PURE__ */ u("$ZodEnum", (e, t) => {
1708
+ C.init(e, t);
1709
+ const r = Zo(t.entries);
1710
+ e._zod.values = new Set(r), e._zod.pattern = new RegExp(`^(${r.filter((n) => Oo.has(typeof n)).map((n) => typeof n == "string" ? je(n) : n.toString()).join("|")})$`), e._zod.parse = (n, o) => {
1711
+ const s = n.value;
1712
+ return e._zod.values.has(s) || n.issues.push({
1713
+ code: "invalid_value",
1714
+ values: r,
1715
+ input: s,
1716
+ inst: e
1717
+ }), n;
1718
+ };
1719
+ }), ci = /* @__PURE__ */ u("$ZodTransform", (e, t) => {
1720
+ C.init(e, t), e._zod.parse = (r, n) => {
1721
+ const o = t.transform(r.value, r);
1722
+ if (n.async)
1723
+ return (o instanceof Promise ? o : Promise.resolve(o)).then((a) => (r.value = a, r));
1724
+ if (o instanceof Promise)
1725
+ throw new ie();
1726
+ return r.value = o, r;
1727
+ };
1728
+ }), ui = /* @__PURE__ */ u("$ZodOptional", (e, t) => {
1729
+ C.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", S(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, void 0]) : void 0), S(e._zod, "pattern", () => {
1730
+ const r = t.innerType._zod.pattern;
1731
+ return r ? new RegExp(`^(${Be(r.source)})?$`) : void 0;
1732
+ }), e._zod.parse = (r, n) => t.innerType._zod.optin === "optional" ? t.innerType._zod.run(r, n) : r.value === void 0 ? r : t.innerType._zod.run(r, n);
1733
+ }), li = /* @__PURE__ */ u("$ZodNullable", (e, t) => {
1734
+ C.init(e, t), S(e._zod, "optin", () => t.innerType._zod.optin), S(e._zod, "optout", () => t.innerType._zod.optout), S(e._zod, "pattern", () => {
1735
+ const r = t.innerType._zod.pattern;
1736
+ return r ? new RegExp(`^(${Be(r.source)}|null)$`) : void 0;
1737
+ }), S(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, null]) : void 0), e._zod.parse = (r, n) => r.value === null ? r : t.innerType._zod.run(r, n);
1738
+ }), di = /* @__PURE__ */ u("$ZodDefault", (e, t) => {
1739
+ C.init(e, t), e._zod.optin = "optional", S(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (r, n) => {
1740
+ if (r.value === void 0)
1741
+ return r.value = t.defaultValue, r;
1742
+ const o = t.innerType._zod.run(r, n);
1743
+ return o instanceof Promise ? o.then((s) => mt(s, t)) : mt(o, t);
1744
+ };
1745
+ });
1746
+ function mt(e, t) {
1747
+ return e.value === void 0 && (e.value = t.defaultValue), e;
1748
+ }
1749
+ const fi = /* @__PURE__ */ u("$ZodPrefault", (e, t) => {
1750
+ C.init(e, t), e._zod.optin = "optional", S(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (r, n) => (r.value === void 0 && (r.value = t.defaultValue), t.innerType._zod.run(r, n));
1751
+ }), hi = /* @__PURE__ */ u("$ZodNonOptional", (e, t) => {
1752
+ C.init(e, t), S(e._zod, "values", () => {
1753
+ const r = t.innerType._zod.values;
1754
+ return r ? new Set([...r].filter((n) => n !== void 0)) : void 0;
1755
+ }), e._zod.parse = (r, n) => {
1756
+ const o = t.innerType._zod.run(r, n);
1757
+ return o instanceof Promise ? o.then((s) => gt(s, e)) : gt(o, e);
1758
+ };
1759
+ });
1760
+ function gt(e, t) {
1761
+ return !e.issues.length && e.value === void 0 && e.issues.push({
1762
+ code: "invalid_type",
1763
+ expected: "nonoptional",
1764
+ input: e.value,
1765
+ inst: t
1766
+ }), e;
1767
+ }
1768
+ const pi = /* @__PURE__ */ u("$ZodCatch", (e, t) => {
1769
+ C.init(e, t), e._zod.optin = "optional", S(e._zod, "optout", () => t.innerType._zod.optout), S(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (r, n) => {
1770
+ const o = t.innerType._zod.run(r, n);
1771
+ return o instanceof Promise ? o.then((s) => (r.value = s.value, s.issues.length && (r.value = t.catchValue({
1772
+ ...r,
1773
+ error: {
1774
+ issues: s.issues.map((a) => V(a, n, W()))
1775
+ },
1776
+ input: r.value
1777
+ }), r.issues = []), r)) : (r.value = o.value, o.issues.length && (r.value = t.catchValue({
1778
+ ...r,
1779
+ error: {
1780
+ issues: o.issues.map((s) => V(s, n, W()))
1781
+ },
1782
+ input: r.value
1783
+ }), r.issues = []), r);
1784
+ };
1785
+ }), mi = /* @__PURE__ */ u("$ZodPipe", (e, t) => {
1786
+ C.init(e, t), S(e._zod, "values", () => t.in._zod.values), S(e._zod, "optin", () => t.in._zod.optin), S(e._zod, "optout", () => t.out._zod.optout), e._zod.parse = (r, n) => {
1787
+ const o = t.in._zod.run(r, n);
1788
+ return o instanceof Promise ? o.then((s) => vt(s, t, n)) : vt(o, t, n);
1789
+ };
1790
+ });
1791
+ function vt(e, t, r) {
1792
+ return oe(e) ? e : t.out._zod.run({ value: e.value, issues: e.issues }, r);
1793
+ }
1794
+ const gi = /* @__PURE__ */ u("$ZodReadonly", (e, t) => {
1795
+ C.init(e, t), S(e._zod, "propValues", () => t.innerType._zod.propValues), S(e._zod, "values", () => t.innerType._zod.values), S(e._zod, "optin", () => t.innerType._zod.optin), S(e._zod, "optout", () => t.innerType._zod.optout), e._zod.parse = (r, n) => {
1796
+ const o = t.innerType._zod.run(r, n);
1797
+ return o instanceof Promise ? o.then(yt) : yt(o);
1798
+ };
1799
+ });
1800
+ function yt(e) {
1801
+ return e.value = Object.freeze(e.value), e;
1802
+ }
1803
+ const vi = /* @__PURE__ */ u("$ZodCustom", (e, t) => {
1804
+ U.init(e, t), C.init(e, t), e._zod.parse = (r, n) => r, e._zod.check = (r) => {
1805
+ const n = r.value, o = t.fn(n);
1806
+ if (o instanceof Promise)
1807
+ return o.then((s) => xt(s, r, n, e));
1808
+ xt(o, r, n, e);
1809
+ };
1810
+ });
1811
+ function xt(e, t, r, n) {
1812
+ if (!e) {
1813
+ const o = {
1814
+ code: "custom",
1815
+ input: r,
1816
+ inst: n,
1817
+ // incorporates params.error into issue reporting
1818
+ path: [...n._zod.def.path ?? []],
1819
+ // incorporates params.error into issue reporting
1820
+ continue: !n._zod.def.abort
1821
+ // params: inst._zod.def.params,
1822
+ };
1823
+ n._zod.def.params && (o.params = n._zod.def.params), t.issues.push(ae(o));
1824
+ }
1825
+ }
1826
+ class yi {
1827
+ constructor() {
1828
+ this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map();
1829
+ }
1830
+ add(t, ...r) {
1831
+ const n = r[0];
1832
+ if (this._map.set(t, n), n && typeof n == "object" && "id" in n) {
1833
+ if (this._idmap.has(n.id))
1834
+ throw new Error(`ID ${n.id} already exists in the registry`);
1835
+ this._idmap.set(n.id, t);
1836
+ }
1837
+ return this;
1838
+ }
1839
+ remove(t) {
1840
+ return this._map.delete(t), this;
1841
+ }
1842
+ get(t) {
1843
+ const r = t._zod.parent;
1844
+ if (r) {
1845
+ const n = { ...this.get(r) ?? {} };
1846
+ return delete n.id, { ...n, ...this._map.get(t) };
1847
+ }
1848
+ return this._map.get(t);
1849
+ }
1850
+ has(t) {
1851
+ return this._map.has(t);
1852
+ }
1853
+ }
1854
+ function xi() {
1855
+ return new yi();
1856
+ }
1857
+ const he = /* @__PURE__ */ xi();
1858
+ function _i(e, t) {
1859
+ return new e({
1860
+ type: "string",
1861
+ ..._(t)
1862
+ });
1863
+ }
1864
+ function bi(e, t) {
1865
+ return new e({
1866
+ type: "string",
1867
+ format: "email",
1868
+ check: "string_format",
1869
+ abort: !1,
1870
+ ..._(t)
1871
+ });
1872
+ }
1873
+ function _t(e, t) {
1874
+ return new e({
1875
+ type: "string",
1876
+ format: "guid",
1877
+ check: "string_format",
1878
+ abort: !1,
1879
+ ..._(t)
1880
+ });
1881
+ }
1882
+ function wi(e, t) {
1883
+ return new e({
1884
+ type: "string",
1885
+ format: "uuid",
1886
+ check: "string_format",
1887
+ abort: !1,
1888
+ ..._(t)
1889
+ });
1890
+ }
1891
+ function ji(e, t) {
1892
+ return new e({
1893
+ type: "string",
1894
+ format: "uuid",
1895
+ check: "string_format",
1896
+ abort: !1,
1897
+ version: "v4",
1898
+ ..._(t)
1899
+ });
1900
+ }
1901
+ function ki(e, t) {
1902
+ return new e({
1903
+ type: "string",
1904
+ format: "uuid",
1905
+ check: "string_format",
1906
+ abort: !1,
1907
+ version: "v6",
1908
+ ..._(t)
1909
+ });
1910
+ }
1911
+ function zi(e, t) {
1912
+ return new e({
1913
+ type: "string",
1914
+ format: "uuid",
1915
+ check: "string_format",
1916
+ abort: !1,
1917
+ version: "v7",
1918
+ ..._(t)
1919
+ });
1920
+ }
1921
+ function $i(e, t) {
1922
+ return new e({
1923
+ type: "string",
1924
+ format: "url",
1925
+ check: "string_format",
1926
+ abort: !1,
1927
+ ..._(t)
1928
+ });
1929
+ }
1930
+ function Pi(e, t) {
1931
+ return new e({
1932
+ type: "string",
1933
+ format: "emoji",
1934
+ check: "string_format",
1935
+ abort: !1,
1936
+ ..._(t)
1937
+ });
1938
+ }
1939
+ function Ei(e, t) {
1940
+ return new e({
1941
+ type: "string",
1942
+ format: "nanoid",
1943
+ check: "string_format",
1944
+ abort: !1,
1945
+ ..._(t)
1946
+ });
1947
+ }
1948
+ function Si(e, t) {
1949
+ return new e({
1950
+ type: "string",
1951
+ format: "cuid",
1952
+ check: "string_format",
1953
+ abort: !1,
1954
+ ..._(t)
1955
+ });
1956
+ }
1957
+ function Zi(e, t) {
1958
+ return new e({
1959
+ type: "string",
1960
+ format: "cuid2",
1961
+ check: "string_format",
1962
+ abort: !1,
1963
+ ..._(t)
1964
+ });
1965
+ }
1966
+ function Ti(e, t) {
1967
+ return new e({
1968
+ type: "string",
1969
+ format: "ulid",
1970
+ check: "string_format",
1971
+ abort: !1,
1972
+ ..._(t)
1973
+ });
1974
+ }
1975
+ function Ci(e, t) {
1976
+ return new e({
1977
+ type: "string",
1978
+ format: "xid",
1979
+ check: "string_format",
1980
+ abort: !1,
1981
+ ..._(t)
1982
+ });
1983
+ }
1984
+ function Oi(e, t) {
1985
+ return new e({
1986
+ type: "string",
1987
+ format: "ksuid",
1988
+ check: "string_format",
1989
+ abort: !1,
1990
+ ..._(t)
1991
+ });
1992
+ }
1993
+ function Ni(e, t) {
1994
+ return new e({
1995
+ type: "string",
1996
+ format: "ipv4",
1997
+ check: "string_format",
1998
+ abort: !1,
1999
+ ..._(t)
2000
+ });
2001
+ }
2002
+ function Ai(e, t) {
2003
+ return new e({
2004
+ type: "string",
2005
+ format: "ipv6",
2006
+ check: "string_format",
2007
+ abort: !1,
2008
+ ..._(t)
2009
+ });
2010
+ }
2011
+ function Ri(e, t) {
2012
+ return new e({
2013
+ type: "string",
2014
+ format: "cidrv4",
2015
+ check: "string_format",
2016
+ abort: !1,
2017
+ ..._(t)
2018
+ });
2019
+ }
2020
+ function Ii(e, t) {
2021
+ return new e({
2022
+ type: "string",
2023
+ format: "cidrv6",
2024
+ check: "string_format",
2025
+ abort: !1,
2026
+ ..._(t)
2027
+ });
2028
+ }
2029
+ function Di(e, t) {
2030
+ return new e({
2031
+ type: "string",
2032
+ format: "base64",
2033
+ check: "string_format",
2034
+ abort: !1,
2035
+ ..._(t)
2036
+ });
2037
+ }
2038
+ function Mi(e, t) {
2039
+ return new e({
2040
+ type: "string",
2041
+ format: "base64url",
2042
+ check: "string_format",
2043
+ abort: !1,
2044
+ ..._(t)
2045
+ });
2046
+ }
2047
+ function Fi(e, t) {
2048
+ return new e({
2049
+ type: "string",
2050
+ format: "e164",
2051
+ check: "string_format",
2052
+ abort: !1,
2053
+ ..._(t)
2054
+ });
2055
+ }
2056
+ function qi(e, t) {
2057
+ return new e({
2058
+ type: "string",
2059
+ format: "jwt",
2060
+ check: "string_format",
2061
+ abort: !1,
2062
+ ..._(t)
2063
+ });
2064
+ }
2065
+ function Ui(e, t) {
2066
+ return new e({
2067
+ type: "string",
2068
+ format: "datetime",
2069
+ check: "string_format",
2070
+ offset: !1,
2071
+ local: !1,
2072
+ precision: null,
2073
+ ..._(t)
2074
+ });
2075
+ }
2076
+ function Li(e, t) {
2077
+ return new e({
2078
+ type: "string",
2079
+ format: "date",
2080
+ check: "string_format",
2081
+ ..._(t)
2082
+ });
2083
+ }
2084
+ function Qi(e, t) {
2085
+ return new e({
2086
+ type: "string",
2087
+ format: "time",
2088
+ check: "string_format",
2089
+ precision: null,
2090
+ ..._(t)
2091
+ });
2092
+ }
2093
+ function Bi(e, t) {
2094
+ return new e({
2095
+ type: "string",
2096
+ format: "duration",
2097
+ check: "string_format",
2098
+ ..._(t)
2099
+ });
2100
+ }
2101
+ function Ki(e) {
2102
+ return new e({
2103
+ type: "unknown"
2104
+ });
2105
+ }
2106
+ function Hi(e, t) {
2107
+ return new e({
2108
+ type: "never",
2109
+ ..._(t)
2110
+ });
2111
+ }
2112
+ function pr(e, t) {
2113
+ return new vs({
2114
+ check: "max_length",
2115
+ ..._(t),
2116
+ maximum: e
2117
+ });
2118
+ }
2119
+ function xe(e, t) {
2120
+ return new ys({
2121
+ check: "min_length",
2122
+ ..._(t),
2123
+ minimum: e
2124
+ });
2125
+ }
2126
+ function mr(e, t) {
2127
+ return new xs({
2128
+ check: "length_equals",
2129
+ ..._(t),
2130
+ length: e
2131
+ });
2132
+ }
2133
+ function Wi(e, t) {
2134
+ return new _s({
2135
+ check: "string_format",
2136
+ format: "regex",
2137
+ ..._(t),
2138
+ pattern: e
2139
+ });
2140
+ }
2141
+ function Vi(e) {
2142
+ return new bs({
2143
+ check: "string_format",
2144
+ format: "lowercase",
2145
+ ..._(e)
2146
+ });
2147
+ }
2148
+ function Yi(e) {
2149
+ return new ws({
2150
+ check: "string_format",
2151
+ format: "uppercase",
2152
+ ..._(e)
2153
+ });
2154
+ }
2155
+ function Gi(e, t) {
2156
+ return new js({
2157
+ check: "string_format",
2158
+ format: "includes",
2159
+ ..._(t),
2160
+ includes: e
2161
+ });
2162
+ }
2163
+ function Ji(e, t) {
2164
+ return new ks({
2165
+ check: "string_format",
2166
+ format: "starts_with",
2167
+ ..._(t),
2168
+ prefix: e
2169
+ });
2170
+ }
2171
+ function Xi(e, t) {
2172
+ return new zs({
2173
+ check: "string_format",
2174
+ format: "ends_with",
2175
+ ..._(t),
2176
+ suffix: e
2177
+ });
2178
+ }
2179
+ function ce(e) {
2180
+ return new $s({
2181
+ check: "overwrite",
2182
+ tx: e
2183
+ });
2184
+ }
2185
+ function ea(e) {
2186
+ return ce((t) => t.normalize(e));
2187
+ }
2188
+ function ta() {
2189
+ return ce((e) => e.trim());
2190
+ }
2191
+ function ra() {
2192
+ return ce((e) => e.toLowerCase());
2193
+ }
2194
+ function na() {
2195
+ return ce((e) => e.toUpperCase());
2196
+ }
2197
+ function oa(e, t, r) {
2198
+ return new e({
2199
+ type: "array",
2200
+ element: t,
2201
+ // get element() {
2202
+ // return element;
2203
+ // },
2204
+ ..._(r)
2205
+ });
2206
+ }
2207
+ function sa(e, t, r) {
2208
+ const n = _(r);
2209
+ return n.abort ?? (n.abort = !0), new e({
2210
+ type: "custom",
2211
+ check: "custom",
2212
+ fn: t,
2213
+ ...n
2214
+ });
2215
+ }
2216
+ function ia(e, t, r) {
2217
+ return new e({
2218
+ type: "custom",
2219
+ check: "custom",
2220
+ fn: t,
2221
+ ..._(r)
2222
+ });
2223
+ }
2224
+ const aa = /* @__PURE__ */ u("ZodISODateTime", (e, t) => {
2225
+ Fs.init(e, t), T.init(e, t);
2226
+ });
2227
+ function ca(e) {
2228
+ return Ui(aa, e);
2229
+ }
2230
+ const ua = /* @__PURE__ */ u("ZodISODate", (e, t) => {
2231
+ qs.init(e, t), T.init(e, t);
2232
+ });
2233
+ function la(e) {
2234
+ return Li(ua, e);
2235
+ }
2236
+ const da = /* @__PURE__ */ u("ZodISOTime", (e, t) => {
2237
+ Us.init(e, t), T.init(e, t);
2238
+ });
2239
+ function fa(e) {
2240
+ return Qi(da, e);
2241
+ }
2242
+ const ha = /* @__PURE__ */ u("ZodISODuration", (e, t) => {
2243
+ Ls.init(e, t), T.init(e, t);
2244
+ });
2245
+ function pa(e) {
2246
+ return Bi(ha, e);
2247
+ }
2248
+ const ma = (e, t) => {
2249
+ ir.init(e, t), e.name = "ZodError", Object.defineProperties(e, {
2250
+ format: {
2251
+ value: (r) => Uo(e, r)
2252
+ // enumerable: false,
2253
+ },
2254
+ flatten: {
2255
+ value: (r) => qo(e, r)
2256
+ // enumerable: false,
2257
+ },
2258
+ addIssue: {
2259
+ value: (r) => e.issues.push(r)
2260
+ // enumerable: false,
2261
+ },
2262
+ addIssues: {
2263
+ value: (r) => e.issues.push(...r)
2264
+ // enumerable: false,
2265
+ },
2266
+ isEmpty: {
2267
+ get() {
2268
+ return e.issues.length === 0;
2269
+ }
2270
+ // enumerable: false,
2271
+ }
2272
+ });
2273
+ }, ze = u("ZodError", ma, {
2274
+ Parent: Error
2275
+ }), ga = /* @__PURE__ */ Lo(ze), va = /* @__PURE__ */ Qo(ze), ya = /* @__PURE__ */ cr(ze), xa = /* @__PURE__ */ ur(ze), O = /* @__PURE__ */ u("ZodType", (e, t) => (C.init(e, t), e.def = t, Object.defineProperty(e, "_def", { value: t }), e.check = (...r) => e.clone(
2276
+ {
2277
+ ...t,
2278
+ checks: [
2279
+ ...t.checks ?? [],
2280
+ ...r.map((n) => typeof n == "function" ? { _zod: { check: n, def: { check: "custom" }, onattach: [] } } : n)
2281
+ ]
2282
+ }
2283
+ // { parent: true }
2284
+ ), e.clone = (r, n) => X(e, r, n), e.brand = () => e, e.register = (r, n) => (r.add(e, n), e), e.parse = (r, n) => ga(e, r, n, { callee: e.parse }), e.safeParse = (r, n) => ya(e, r, n), e.parseAsync = async (r, n) => va(e, r, n, { callee: e.parseAsync }), e.safeParseAsync = async (r, n) => xa(e, r, n), e.spa = e.safeParseAsync, e.refine = (r, n) => e.check(dc(r, n)), e.superRefine = (r) => e.check(fc(r)), e.overwrite = (r) => e.check(ce(r)), e.optional = () => jt(e), e.nullable = () => kt(e), e.nullish = () => jt(kt(e)), e.nonoptional = (r) => nc(e, r), e.array = () => Ua(e), e.or = (r) => vr([e, r]), e.and = (r) => Ha(e, r), e.transform = (r) => zt(e, Ga(r)), e.default = (r) => ec(e, r), e.prefault = (r) => rc(e, r), e.catch = (r) => sc(e, r), e.pipe = (r) => zt(e, r), e.readonly = () => cc(e), e.describe = (r) => {
2285
+ const n = e.clone();
2286
+ return he.add(n, { description: r }), n;
2287
+ }, Object.defineProperty(e, "description", {
2288
+ get() {
2289
+ return he.get(e)?.description;
2290
+ },
2291
+ configurable: !0
2292
+ }), e.meta = (...r) => {
2293
+ if (r.length === 0)
2294
+ return he.get(e);
2295
+ const n = e.clone();
2296
+ return he.add(n, r[0]), n;
2297
+ }, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e)), gr = /* @__PURE__ */ u("_ZodString", (e, t) => {
2298
+ We.init(e, t), O.init(e, t);
2299
+ const r = e._zod.bag;
2300
+ e.format = r.format ?? null, e.minLength = r.minimum ?? null, e.maxLength = r.maximum ?? null, e.regex = (...n) => e.check(Wi(...n)), e.includes = (...n) => e.check(Gi(...n)), e.startsWith = (...n) => e.check(Ji(...n)), e.endsWith = (...n) => e.check(Xi(...n)), e.min = (...n) => e.check(xe(...n)), e.max = (...n) => e.check(pr(...n)), e.length = (...n) => e.check(mr(...n)), e.nonempty = (...n) => e.check(xe(1, ...n)), e.lowercase = (n) => e.check(Vi(n)), e.uppercase = (n) => e.check(Yi(n)), e.trim = () => e.check(ta()), e.normalize = (...n) => e.check(ea(...n)), e.toLowerCase = () => e.check(ra()), e.toUpperCase = () => e.check(na());
2301
+ }), _a = /* @__PURE__ */ u("ZodString", (e, t) => {
2302
+ We.init(e, t), gr.init(e, t), e.email = (r) => e.check(bi(ba, r)), e.url = (r) => e.check($i(wa, r)), e.jwt = (r) => e.check(qi(Ia, r)), e.emoji = (r) => e.check(Pi(ja, r)), e.guid = (r) => e.check(_t(bt, r)), e.uuid = (r) => e.check(wi(pe, r)), e.uuidv4 = (r) => e.check(ji(pe, r)), e.uuidv6 = (r) => e.check(ki(pe, r)), e.uuidv7 = (r) => e.check(zi(pe, r)), e.nanoid = (r) => e.check(Ei(ka, r)), e.guid = (r) => e.check(_t(bt, r)), e.cuid = (r) => e.check(Si(za, r)), e.cuid2 = (r) => e.check(Zi($a, r)), e.ulid = (r) => e.check(Ti(Pa, r)), e.base64 = (r) => e.check(Di(Na, r)), e.base64url = (r) => e.check(Mi(Aa, r)), e.xid = (r) => e.check(Ci(Ea, r)), e.ksuid = (r) => e.check(Oi(Sa, r)), e.ipv4 = (r) => e.check(Ni(Za, r)), e.ipv6 = (r) => e.check(Ai(Ta, r)), e.cidrv4 = (r) => e.check(Ri(Ca, r)), e.cidrv6 = (r) => e.check(Ii(Oa, r)), e.e164 = (r) => e.check(Fi(Ra, r)), e.datetime = (r) => e.check(ca(r)), e.date = (r) => e.check(la(r)), e.time = (r) => e.check(fa(r)), e.duration = (r) => e.check(pa(r));
2303
+ });
2304
+ function _e(e) {
2305
+ return _i(_a, e);
2306
+ }
2307
+ const T = /* @__PURE__ */ u("ZodStringFormat", (e, t) => {
2308
+ Z.init(e, t), gr.init(e, t);
2309
+ }), ba = /* @__PURE__ */ u("ZodEmail", (e, t) => {
2310
+ Ts.init(e, t), T.init(e, t);
2311
+ }), bt = /* @__PURE__ */ u("ZodGUID", (e, t) => {
2312
+ Ss.init(e, t), T.init(e, t);
2313
+ }), pe = /* @__PURE__ */ u("ZodUUID", (e, t) => {
2314
+ Zs.init(e, t), T.init(e, t);
2315
+ }), wa = /* @__PURE__ */ u("ZodURL", (e, t) => {
2316
+ Cs.init(e, t), T.init(e, t);
2317
+ }), ja = /* @__PURE__ */ u("ZodEmoji", (e, t) => {
2318
+ Os.init(e, t), T.init(e, t);
2319
+ }), ka = /* @__PURE__ */ u("ZodNanoID", (e, t) => {
2320
+ Ns.init(e, t), T.init(e, t);
2321
+ }), za = /* @__PURE__ */ u("ZodCUID", (e, t) => {
2322
+ As.init(e, t), T.init(e, t);
2323
+ }), $a = /* @__PURE__ */ u("ZodCUID2", (e, t) => {
2324
+ Rs.init(e, t), T.init(e, t);
2325
+ }), Pa = /* @__PURE__ */ u("ZodULID", (e, t) => {
2326
+ Is.init(e, t), T.init(e, t);
2327
+ }), Ea = /* @__PURE__ */ u("ZodXID", (e, t) => {
2328
+ Ds.init(e, t), T.init(e, t);
2329
+ }), Sa = /* @__PURE__ */ u("ZodKSUID", (e, t) => {
2330
+ Ms.init(e, t), T.init(e, t);
2331
+ }), Za = /* @__PURE__ */ u("ZodIPv4", (e, t) => {
2332
+ Qs.init(e, t), T.init(e, t);
2333
+ }), Ta = /* @__PURE__ */ u("ZodIPv6", (e, t) => {
2334
+ Bs.init(e, t), T.init(e, t);
2335
+ }), Ca = /* @__PURE__ */ u("ZodCIDRv4", (e, t) => {
2336
+ Ks.init(e, t), T.init(e, t);
2337
+ }), Oa = /* @__PURE__ */ u("ZodCIDRv6", (e, t) => {
2338
+ Hs.init(e, t), T.init(e, t);
2339
+ }), Na = /* @__PURE__ */ u("ZodBase64", (e, t) => {
2340
+ Ws.init(e, t), T.init(e, t);
2341
+ }), Aa = /* @__PURE__ */ u("ZodBase64URL", (e, t) => {
2342
+ Ys.init(e, t), T.init(e, t);
2343
+ }), Ra = /* @__PURE__ */ u("ZodE164", (e, t) => {
2344
+ Gs.init(e, t), T.init(e, t);
2345
+ }), Ia = /* @__PURE__ */ u("ZodJWT", (e, t) => {
2346
+ Xs.init(e, t), T.init(e, t);
2347
+ }), Da = /* @__PURE__ */ u("ZodUnknown", (e, t) => {
2348
+ ei.init(e, t), O.init(e, t);
2349
+ });
2350
+ function wt() {
2351
+ return Ki(Da);
2352
+ }
2353
+ const Ma = /* @__PURE__ */ u("ZodNever", (e, t) => {
2354
+ ti.init(e, t), O.init(e, t);
2355
+ });
2356
+ function Fa(e) {
2357
+ return Hi(Ma, e);
2358
+ }
2359
+ const qa = /* @__PURE__ */ u("ZodArray", (e, t) => {
2360
+ ri.init(e, t), O.init(e, t), e.element = t.element, e.min = (r, n) => e.check(xe(r, n)), e.nonempty = (r) => e.check(xe(1, r)), e.max = (r, n) => e.check(pr(r, n)), e.length = (r, n) => e.check(mr(r, n)), e.unwrap = () => e.element;
2361
+ });
2362
+ function Ua(e, t) {
2363
+ return oa(qa, e, t);
2364
+ }
2365
+ const La = /* @__PURE__ */ u("ZodObject", (e, t) => {
2366
+ ni.init(e, t), O.init(e, t), S(e, "shape", () => t.shape), e.keyof = () => yr(Object.keys(e._zod.def.shape)), e.catchall = (r) => e.clone({ ...e._zod.def, catchall: r }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: wt() }), e.loose = () => e.clone({ ...e._zod.def, catchall: wt() }), e.strict = () => e.clone({ ...e._zod.def, catchall: Fa() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (r) => Io(e, r), e.merge = (r) => Do(e, r), e.pick = (r) => Ao(e, r), e.omit = (r) => Ro(e, r), e.partial = (...r) => Mo(xr, e, r[0]), e.required = (...r) => Fo(_r, e, r[0]);
2367
+ });
2368
+ function Qa(e, t) {
2369
+ const r = {
2370
+ type: "object",
2371
+ get shape() {
2372
+ return Ke(this, "shape", { ...e }), this.shape;
2373
+ },
2374
+ ..._(t)
2375
+ };
2376
+ return new La(r);
2377
+ }
2378
+ const Ba = /* @__PURE__ */ u("ZodUnion", (e, t) => {
2379
+ oi.init(e, t), O.init(e, t), e.options = t.options;
2380
+ });
2381
+ function vr(e, t) {
2382
+ return new Ba({
2383
+ type: "union",
2384
+ options: e,
2385
+ ..._(t)
2386
+ });
2387
+ }
2388
+ const Ka = /* @__PURE__ */ u("ZodIntersection", (e, t) => {
2389
+ si.init(e, t), O.init(e, t);
2390
+ });
2391
+ function Ha(e, t) {
2392
+ return new Ka({
2393
+ type: "intersection",
2394
+ left: e,
2395
+ right: t
2396
+ });
2397
+ }
2398
+ const Wa = /* @__PURE__ */ u("ZodRecord", (e, t) => {
2399
+ ii.init(e, t), O.init(e, t), e.keyType = t.keyType, e.valueType = t.valueType;
2400
+ });
2401
+ function Va(e, t, r) {
2402
+ return new Wa({
2403
+ type: "record",
2404
+ keyType: e,
2405
+ valueType: t,
2406
+ ..._(r)
2407
+ });
2408
+ }
2409
+ const Re = /* @__PURE__ */ u("ZodEnum", (e, t) => {
2410
+ ai.init(e, t), O.init(e, t), e.enum = t.entries, e.options = Object.values(t.entries);
2411
+ const r = new Set(Object.keys(t.entries));
2412
+ e.extract = (n, o) => {
2413
+ const s = {};
2414
+ for (const a of n)
2415
+ if (r.has(a))
2416
+ s[a] = t.entries[a];
2417
+ else
2418
+ throw new Error(`Key ${a} not found in enum`);
2419
+ return new Re({
2420
+ ...t,
2421
+ checks: [],
2422
+ ..._(o),
2423
+ entries: s
2424
+ });
2425
+ }, e.exclude = (n, o) => {
2426
+ const s = { ...t.entries };
2427
+ for (const a of n)
2428
+ if (r.has(a))
2429
+ delete s[a];
2430
+ else
2431
+ throw new Error(`Key ${a} not found in enum`);
2432
+ return new Re({
2433
+ ...t,
2434
+ checks: [],
2435
+ ..._(o),
2436
+ entries: s
2437
+ });
2438
+ };
2439
+ });
2440
+ function yr(e, t) {
2441
+ const r = Array.isArray(e) ? Object.fromEntries(e.map((n) => [n, n])) : e;
2442
+ return new Re({
2443
+ type: "enum",
2444
+ entries: r,
2445
+ ..._(t)
2446
+ });
2447
+ }
2448
+ const Ya = /* @__PURE__ */ u("ZodTransform", (e, t) => {
2449
+ ci.init(e, t), O.init(e, t), e._zod.parse = (r, n) => {
2450
+ r.addIssue = (s) => {
2451
+ if (typeof s == "string")
2452
+ r.issues.push(ae(s, r.value, t));
2453
+ else {
2454
+ const a = s;
2455
+ a.fatal && (a.continue = !1), a.code ?? (a.code = "custom"), a.input ?? (a.input = r.value), a.inst ?? (a.inst = e), a.continue ?? (a.continue = !0), r.issues.push(ae(a));
2456
+ }
2457
+ };
2458
+ const o = t.transform(r.value, r);
2459
+ return o instanceof Promise ? o.then((s) => (r.value = s, r)) : (r.value = o, r);
2460
+ };
2461
+ });
2462
+ function Ga(e) {
2463
+ return new Ya({
2464
+ type: "transform",
2465
+ transform: e
2466
+ });
2467
+ }
2468
+ const xr = /* @__PURE__ */ u("ZodOptional", (e, t) => {
2469
+ ui.init(e, t), O.init(e, t), e.unwrap = () => e._zod.def.innerType;
2470
+ });
2471
+ function jt(e) {
2472
+ return new xr({
2473
+ type: "optional",
2474
+ innerType: e
2475
+ });
2476
+ }
2477
+ const Ja = /* @__PURE__ */ u("ZodNullable", (e, t) => {
2478
+ li.init(e, t), O.init(e, t), e.unwrap = () => e._zod.def.innerType;
2479
+ });
2480
+ function kt(e) {
2481
+ return new Ja({
2482
+ type: "nullable",
2483
+ innerType: e
2484
+ });
2485
+ }
2486
+ const Xa = /* @__PURE__ */ u("ZodDefault", (e, t) => {
2487
+ di.init(e, t), O.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
2488
+ });
2489
+ function ec(e, t) {
2490
+ return new Xa({
2491
+ type: "default",
2492
+ innerType: e,
2493
+ get defaultValue() {
2494
+ return typeof t == "function" ? t() : t;
2495
+ }
2496
+ });
2497
+ }
2498
+ const tc = /* @__PURE__ */ u("ZodPrefault", (e, t) => {
2499
+ fi.init(e, t), O.init(e, t), e.unwrap = () => e._zod.def.innerType;
2500
+ });
2501
+ function rc(e, t) {
2502
+ return new tc({
2503
+ type: "prefault",
2504
+ innerType: e,
2505
+ get defaultValue() {
2506
+ return typeof t == "function" ? t() : t;
2507
+ }
2508
+ });
2509
+ }
2510
+ const _r = /* @__PURE__ */ u("ZodNonOptional", (e, t) => {
2511
+ hi.init(e, t), O.init(e, t), e.unwrap = () => e._zod.def.innerType;
2512
+ });
2513
+ function nc(e, t) {
2514
+ return new _r({
2515
+ type: "nonoptional",
2516
+ innerType: e,
2517
+ ..._(t)
2518
+ });
2519
+ }
2520
+ const oc = /* @__PURE__ */ u("ZodCatch", (e, t) => {
2521
+ pi.init(e, t), O.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
2522
+ });
2523
+ function sc(e, t) {
2524
+ return new oc({
2525
+ type: "catch",
2526
+ innerType: e,
2527
+ catchValue: typeof t == "function" ? t : () => t
2528
+ });
2529
+ }
2530
+ const ic = /* @__PURE__ */ u("ZodPipe", (e, t) => {
2531
+ mi.init(e, t), O.init(e, t), e.in = t.in, e.out = t.out;
2532
+ });
2533
+ function zt(e, t) {
2534
+ return new ic({
2535
+ type: "pipe",
2536
+ in: e,
2537
+ out: t
2538
+ // ...util.normalizeParams(params),
2539
+ });
2540
+ }
2541
+ const ac = /* @__PURE__ */ u("ZodReadonly", (e, t) => {
2542
+ gi.init(e, t), O.init(e, t);
2543
+ });
2544
+ function cc(e) {
2545
+ return new ac({
2546
+ type: "readonly",
2547
+ innerType: e
2548
+ });
2549
+ }
2550
+ const br = /* @__PURE__ */ u("ZodCustom", (e, t) => {
2551
+ vi.init(e, t), O.init(e, t);
2552
+ });
2553
+ function uc(e, t) {
2554
+ const r = new U({
2555
+ check: "custom",
2556
+ ..._(t)
2557
+ });
2558
+ return r._zod.check = e, r;
2559
+ }
2560
+ function lc(e, t) {
2561
+ return sa(br, e ?? (() => !0), t);
2562
+ }
2563
+ function dc(e, t = {}) {
2564
+ return ia(br, e, t);
2565
+ }
2566
+ function fc(e, t) {
2567
+ const r = uc((n) => (n.addIssue = (o) => {
2568
+ if (typeof o == "string")
2569
+ n.issues.push(ae(o, n.value, r._zod.def));
2570
+ else {
2571
+ const s = o;
2572
+ s.fatal && (s.continue = !1), s.code ?? (s.code = "custom"), s.input ?? (s.input = n.value), s.inst ?? (s.inst = r), s.continue ?? (s.continue = !r._zod.def.abort), n.issues.push(ae(s));
2573
+ }
2574
+ }, e(n.value, n)), t);
2575
+ return r;
2576
+ }
2577
+ const hc = Qa({
2578
+ buildId: _e(),
2579
+ timestamp: _e(),
2580
+ status: yr(["in-progress", "success", "failed"])
2581
+ }), pc = ({
2582
+ buildId: e,
2583
+ environmentType: t,
2584
+ endpoint: r = "/__zuplo/docs"
2585
+ }) => {
2586
+ const n = Cn({
2587
+ queryKey: ["zuplo-build-check", e, r],
2588
+ refetchInterval: 3e3,
2589
+ enabled: e !== void 0 && t === "WORKING_COPY",
2590
+ retry: !1,
2591
+ queryFn: () => fetch(r, { signal: AbortSignal.timeout(2e3) }).then((s) => {
2592
+ if (!s.ok) throw new Error("Failed to fetch build status");
2593
+ return s.json();
2594
+ }).then((s) => hc.parse(s))
2595
+ });
2596
+ if (n.isError || !n.data || n.data.buildId === e)
2597
+ return null;
2598
+ const o = n.data.status === "success";
2599
+ return /* @__PURE__ */ i.jsxs("div", { className: "fixed flex flex-col gap-3 p-4 rounded-xl w-96 border z-20 bg-background left-0 right-0 top-4 mx-auto shadow-lg", children: [
2600
+ o ? /* @__PURE__ */ i.jsxs("div", { className: "flex flex-row items-center gap-2", children: [
2601
+ /* @__PURE__ */ i.jsx(Ln, { size: 16 }),
2602
+ /* @__PURE__ */ i.jsx("span", { className: "text-sm", children: "New version available" })
2603
+ ] }) : /* @__PURE__ */ i.jsxs("div", { className: "flex flex-row items-center gap-2", children: [
2604
+ /* @__PURE__ */ i.jsx(Qn, { size: 16, className: "animate-spin" }),
2605
+ /* @__PURE__ */ i.jsx("span", { className: "text-sm", children: "Building new version..." })
2606
+ ] }),
2607
+ /* @__PURE__ */ i.jsx("span", { className: "text-xs", children: o ? "To see the new version, reload the page now." : "A new version of the developer portal will be available soon." }),
2608
+ /* @__PURE__ */ i.jsx(
2609
+ Ut,
2610
+ {
2611
+ variant: "outline",
2612
+ size: "sm",
2613
+ className: "w-full",
2614
+ onClick: () => {
2615
+ window.location.reload();
2616
+ },
2617
+ children: "Reload"
2618
+ }
2619
+ )
2620
+ ] });
2621
+ }, mc = () => {
2622
+ const e = we(), t = H(e.pathname);
2623
+ F(() => {
2624
+ const r = t.current !== e.pathname, n = e.hash !== "";
2625
+ r && !n && window.scrollTo(0, 0), t.current = e.pathname;
2626
+ }, [e.pathname, e.hash]);
2627
+ }, gc = ({
2628
+ icon: e
2629
+ }) => typeof e == "string" ? /* @__PURE__ */ i.jsx(
2630
+ "img",
2631
+ {
2632
+ src: `https://cdn.simpleicons.org/${e}/000000/ffffff`,
2633
+ className: "size-5",
2634
+ alt: e
2635
+ }
2636
+ ) : e, vc = (e) => /^https?:/.test(e), yc = () => {
2637
+ const { site: e } = iu(), t = e?.footer;
2638
+ return t ? /* @__PURE__ */ i.jsx("footer", { className: "border-t bg-background", children: /* @__PURE__ */ i.jsxs("div", { className: "mx-auto max-w-screen-2xl px-4 lg:px-8 py-8 pt-20", children: [
2639
+ /* @__PURE__ */ i.jsxs(
2640
+ "div",
2641
+ {
2642
+ className: N("flex flex-row gap-8", {
2643
+ "justify-center": !t.position || t.position === "center",
2644
+ "justify-start": t.position === "start",
2645
+ "justify-end": t.position === "end"
2646
+ }),
2647
+ children: [
2648
+ /* @__PURE__ */ i.jsx(A.Target, { name: "footer-before" }),
2649
+ t.columns && /* @__PURE__ */ i.jsx(
2650
+ "div",
2651
+ {
2652
+ className: "w-full md:max-w-screen-md grid grid-cols-[1fr_1fr] gap-8 md:grid-cols-[repeat(var(--columns),minmax(0,1fr))]",
2653
+ style: { "--columns": t.columns.length },
2654
+ children: t.columns.map((r) => /* @__PURE__ */ i.jsxs(
2655
+ "div",
2656
+ {
2657
+ className: N({
2658
+ "justify-self-center": !r.position || r.position === "center",
2659
+ "justify-self-start": r.position === "start",
2660
+ "justify-self-end": r.position === "end"
2661
+ }),
2662
+ children: [
2663
+ /* @__PURE__ */ i.jsx("span", { className: "text-sm font-semibold", children: r.title }),
2664
+ /* @__PURE__ */ i.jsx("ul", { className: "mt-4 space-y-2", children: r.links.map((n) => {
2665
+ const o = "flex flex-row gap-1 items-center text-sm text-muted-foreground hover:text-accent-foreground";
2666
+ return /* @__PURE__ */ i.jsx("li", { children: vc(n.href) ? /* @__PURE__ */ i.jsxs(
2667
+ "a",
2668
+ {
2669
+ href: n.href,
2670
+ target: "_blank",
2671
+ rel: "noopener noreferrer",
2672
+ className: o,
2673
+ children: [
2674
+ /* @__PURE__ */ i.jsx("span", { children: n.label }),
2675
+ /* @__PURE__ */ i.jsx(Bn, { size: 12 })
2676
+ ]
2677
+ }
2678
+ ) : /* @__PURE__ */ i.jsx(dn, { to: n.href, className: o, children: /* @__PURE__ */ i.jsx("span", { children: n.label }) }) }, n.href + n.label);
2679
+ }) })
2680
+ ]
2681
+ },
2682
+ r.title
2683
+ ))
2684
+ }
2685
+ ),
2686
+ /* @__PURE__ */ i.jsx(A.Target, { name: "footer-after" })
2687
+ ]
2688
+ }
2689
+ ),
2690
+ /* @__PURE__ */ i.jsxs(
2691
+ "div",
2692
+ {
2693
+ className: N(
2694
+ "flex items-center justify-between",
2695
+ t.columns && "border-t mt-8 pt-8"
2696
+ ),
2697
+ children: [
2698
+ t.logo && /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
2699
+ /* @__PURE__ */ i.jsx(
2700
+ "img",
2701
+ {
2702
+ src: t.logo.src.light,
2703
+ alt: t.logo.alt,
2704
+ className: "w-8 dark:hidden",
2705
+ style: { width: t.logo.width }
2706
+ }
2707
+ ),
2708
+ /* @__PURE__ */ i.jsx(
2709
+ "img",
2710
+ {
2711
+ src: t.logo.src.dark,
2712
+ alt: t.logo.alt,
2713
+ className: "w-8 hidden dark:block",
2714
+ style: { width: t.logo.width }
2715
+ }
2716
+ )
2717
+ ] }),
2718
+ t.copyright && /* @__PURE__ */ i.jsx("p", { className: "text-sm text-muted-foreground", children: t.copyright }),
2719
+ /* @__PURE__ */ i.jsx("div", { className: "flex items-center gap-2", children: t.social?.map((r) => /* @__PURE__ */ i.jsxs(
2720
+ "a",
2721
+ {
2722
+ href: r.href,
2723
+ target: "_blank",
2724
+ rel: "noopener noreferrer",
2725
+ className: "w-auto gap-2 flex text-muted-foreground hover:text-accent-foreground",
2726
+ children: [
2727
+ /* @__PURE__ */ i.jsx(gc, { icon: r.icon }),
2728
+ r.label
2729
+ ]
2730
+ },
2731
+ r.href
2732
+ )) })
2733
+ ]
2734
+ }
2735
+ )
2736
+ ] }) }) : null;
2737
+ };
2738
+ function Ie({
2739
+ className: e,
2740
+ ...t
2741
+ }) {
2742
+ return /* @__PURE__ */ i.jsx(
2743
+ "div",
2744
+ {
2745
+ className: N("animate-pulse rounded-md bg-muted", e),
2746
+ ...t
2747
+ }
2748
+ );
2749
+ }
2750
+ const $t = {
2751
+ info: "bg-blue-500",
2752
+ note: "bg-gray-500",
2753
+ tip: "bg-green-600",
2754
+ caution: "bg-orange-500",
2755
+ danger: "bg-rose-500"
2756
+ }, xc = () => {
2757
+ const { site: e } = M(), [t, r] = J(!0);
2758
+ if (!e?.banner || !t)
2759
+ return /* @__PURE__ */ i.jsx("style", { children: ":root { --banner-height: 0px; }" });
2760
+ const n = e.banner.color && e.banner.color in $t ? $t[e.banner.color] : e.banner.color ? void 0 : "bg-primary", o = n ? {} : { backgroundColor: e.banner.color };
2761
+ return /* @__PURE__ */ i.jsxs(
2762
+ "div",
2763
+ {
2764
+ className: N(
2765
+ "relative text-primary-foreground text-sm font-medium px-4 py-2 flex gap-2 items-center lg:h-(--banner-height)",
2766
+ n
2767
+ ),
2768
+ style: o,
2769
+ children: [
2770
+ /* @__PURE__ */ i.jsx("div", { className: "w-full", children: e.banner.message }),
2771
+ e.banner.dismissible && /* @__PURE__ */ i.jsx(
2772
+ "button",
2773
+ {
2774
+ type: "button",
2775
+ className: "md:absolute md:end-4 -m-1.5 p-1.5 hover:bg-accent-foreground/10 rounded-md",
2776
+ onClick: () => r(!1),
2777
+ children: /* @__PURE__ */ i.jsx(Kn, { size: 16 })
2778
+ }
2779
+ )
2780
+ ]
2781
+ }
2782
+ );
2783
+ }, wr = (e) => /* @__PURE__ */ i.jsxs(
2784
+ "svg",
2785
+ {
2786
+ xmlns: "http://www.w3.org/2000/svg",
2787
+ viewBox: "0 0 132 100",
2788
+ fill: "none",
2789
+ ...e,
2790
+ children: [
2791
+ /* @__PURE__ */ i.jsx(
2792
+ "path",
2793
+ {
2794
+ fill: "currentColor",
2795
+ fillRule: "evenodd",
2796
+ d: "M80.092 2.963A4.66 4.66 0 0 1 84.449 0h34.049c6.325 0 10.835 6.135 8.948 12.172L116.653 46.71a4.688 4.688 0 0 1-4.474 3.29H75c-5.178 0-7.813 4.687-9.375 9.374-1.288 3.864-11.07 28.963-14.467 37.662A4.66 4.66 0 0 1 46.801 100H12.75c-6.324 0-10.834-6.134-8.947-12.171l10.793-34.54A4.688 4.688 0 0 1 19.071 50H56.25c5.178 0 7.813-4.687 9.375-9.375 1.288-3.864 11.07-28.962 14.467-37.662Z",
2797
+ clipRule: "evenodd"
2798
+ }
2799
+ ),
2800
+ /* @__PURE__ */ i.jsx(
2801
+ "path",
2802
+ {
2803
+ fill: "currentColor",
2804
+ d: "M83.54 57.813a7.813 7.813 0 0 0-7.316 5.07L63.888 95.777c-.766 2.043.744 4.222 2.926 4.222h36.828c5.211 0 9.875-3.232 11.704-8.11l8.821-23.522c1.915-5.107-1.861-10.555-7.315-10.555H83.539ZM29.17 0a12.5 12.5 0 0 0-11.704 8.111l-8.82 23.521c-1.915 5.107 1.86 10.556 7.315 10.556h33.312a7.813 7.813 0 0 0 7.316-5.07L68.924 4.223C69.691 2.18 68.18 0 65.998 0H29.17Z"
2805
+ }
2806
+ )
2807
+ ]
2808
+ }
2809
+ );
2810
+ wr.displayName = "ZudokuLogo";
2811
+ const jr = ({ className: e }) => /* @__PURE__ */ i.jsxs(
2812
+ "a",
2813
+ {
2814
+ href: "https://zudoku.dev",
2815
+ target: "_blank",
2816
+ rel: "noopener noreferrer",
2817
+ className: N(
2818
+ "flex justify-between items-center w-full border border-transparent hover:border-border rounded-full hover:shadow-xs h-7 px-3 text-nowrap hover:bg-muted/80 transition-all",
2819
+ e
2820
+ ),
2821
+ children: [
2822
+ /* @__PURE__ */ i.jsxs("div", { className: "opacity-70 hover:opacity-100 transition-opacity gap-1.5 text-[11px] font-medium rounded-full h-7 flex items-center text-nowrap", children: [
2823
+ /* @__PURE__ */ i.jsx(wr, { className: "w-3.5 h-3.5 dark:fill-white" }),
2824
+ "powered by ",
2825
+ "Zudoku"
2826
+ ] }),
2827
+ /* @__PURE__ */ i.jsx("div", { className: "text-xs font-medium opacity-70 hover:text-foreground transition-colors cursor-pointer", children: /* @__PURE__ */ i.jsx(
2828
+ Hn,
2829
+ {
2830
+ size: 12,
2831
+ absoluteStrokeWidth: !0,
2832
+ strokeWidth: 1.5,
2833
+ className: "rtl:rotate-180"
2834
+ }
2835
+ ) })
2836
+ ]
2837
+ }
2838
+ );
2839
+ function be() {
2840
+ return be = Object.assign ? Object.assign.bind() : function(e) {
2841
+ for (var t = 1; t < arguments.length; t++) {
2842
+ var r = arguments[t];
2843
+ for (var n in r) ({}).hasOwnProperty.call(r, n) && (e[n] = r[n]);
2844
+ }
2845
+ return e;
2846
+ }, be.apply(null, arguments);
2847
+ }
2848
+ var me = { exports: {} }, $ = {};
2849
+ /** @license React v16.13.1
2850
+ * react-is.production.min.js
2851
+ *
2852
+ * Copyright (c) Facebook, Inc. and its affiliates.
2853
+ *
2854
+ * This source code is licensed under the MIT license found in the
2855
+ * LICENSE file in the root directory of this source tree.
2856
+ */
2857
+ var Pt;
2858
+ function _c() {
2859
+ if (Pt) return $;
2860
+ Pt = 1;
2861
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, f = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, v = e ? Symbol.for("react.forward_ref") : 60112, m = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, d = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, w = e ? Symbol.for("react.block") : 60121, E = e ? Symbol.for("react.fundamental") : 60117, z = e ? Symbol.for("react.responder") : 60118, j = e ? Symbol.for("react.scope") : 60119;
2862
+ function x(h) {
2863
+ if (typeof h == "object" && h !== null) {
2864
+ var k = h.$$typeof;
2865
+ switch (k) {
2866
+ case t:
2867
+ switch (h = h.type, h) {
2868
+ case f:
2869
+ case l:
2870
+ case n:
2871
+ case s:
2872
+ case o:
2873
+ case m:
2874
+ return h;
2875
+ default:
2876
+ switch (h = h && h.$$typeof, h) {
2877
+ case c:
2878
+ case v:
2879
+ case g:
2880
+ case d:
2881
+ case a:
2882
+ return h;
2883
+ default:
2884
+ return k;
2885
+ }
2886
+ }
2887
+ case r:
2888
+ return k;
2889
+ }
2890
+ }
2891
+ }
2892
+ function b(h) {
2893
+ return x(h) === l;
2894
+ }
2895
+ return $.AsyncMode = f, $.ConcurrentMode = l, $.ContextConsumer = c, $.ContextProvider = a, $.Element = t, $.ForwardRef = v, $.Fragment = n, $.Lazy = g, $.Memo = d, $.Portal = r, $.Profiler = s, $.StrictMode = o, $.Suspense = m, $.isAsyncMode = function(h) {
2896
+ return b(h) || x(h) === f;
2897
+ }, $.isConcurrentMode = b, $.isContextConsumer = function(h) {
2898
+ return x(h) === c;
2899
+ }, $.isContextProvider = function(h) {
2900
+ return x(h) === a;
2901
+ }, $.isElement = function(h) {
2902
+ return typeof h == "object" && h !== null && h.$$typeof === t;
2903
+ }, $.isForwardRef = function(h) {
2904
+ return x(h) === v;
2905
+ }, $.isFragment = function(h) {
2906
+ return x(h) === n;
2907
+ }, $.isLazy = function(h) {
2908
+ return x(h) === g;
2909
+ }, $.isMemo = function(h) {
2910
+ return x(h) === d;
2911
+ }, $.isPortal = function(h) {
2912
+ return x(h) === r;
2913
+ }, $.isProfiler = function(h) {
2914
+ return x(h) === s;
2915
+ }, $.isStrictMode = function(h) {
2916
+ return x(h) === o;
2917
+ }, $.isSuspense = function(h) {
2918
+ return x(h) === m;
2919
+ }, $.isValidElementType = function(h) {
2920
+ return typeof h == "string" || typeof h == "function" || h === n || h === l || h === s || h === o || h === m || h === p || typeof h == "object" && h !== null && (h.$$typeof === g || h.$$typeof === d || h.$$typeof === a || h.$$typeof === c || h.$$typeof === v || h.$$typeof === E || h.$$typeof === z || h.$$typeof === j || h.$$typeof === w);
2921
+ }, $.typeOf = x, $;
2922
+ }
2923
+ var P = {};
2924
+ /** @license React v16.13.1
2925
+ * react-is.development.js
2926
+ *
2927
+ * Copyright (c) Facebook, Inc. and its affiliates.
2928
+ *
2929
+ * This source code is licensed under the MIT license found in the
2930
+ * LICENSE file in the root directory of this source tree.
2931
+ */
2932
+ var Et;
2933
+ function bc() {
2934
+ return Et || (Et = 1, process.env.NODE_ENV !== "production" && function() {
2935
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, f = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, v = e ? Symbol.for("react.forward_ref") : 60112, m = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, d = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, w = e ? Symbol.for("react.block") : 60121, E = e ? Symbol.for("react.fundamental") : 60117, z = e ? Symbol.for("react.responder") : 60118, j = e ? Symbol.for("react.scope") : 60119;
2936
+ function x(y) {
2937
+ return typeof y == "string" || typeof y == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
2938
+ y === n || y === l || y === s || y === o || y === m || y === p || typeof y == "object" && y !== null && (y.$$typeof === g || y.$$typeof === d || y.$$typeof === a || y.$$typeof === c || y.$$typeof === v || y.$$typeof === E || y.$$typeof === z || y.$$typeof === j || y.$$typeof === w);
2939
+ }
2940
+ function b(y) {
2941
+ if (typeof y == "object" && y !== null) {
2942
+ var Pe = y.$$typeof;
2943
+ switch (Pe) {
2944
+ case t:
2945
+ var ue = y.type;
2946
+ switch (ue) {
2947
+ case f:
2948
+ case l:
2949
+ case n:
2950
+ case s:
2951
+ case o:
2952
+ case m:
2953
+ return ue;
2954
+ default:
2955
+ var Ge = ue && ue.$$typeof;
2956
+ switch (Ge) {
2957
+ case c:
2958
+ case v:
2959
+ case g:
2960
+ case d:
2961
+ case a:
2962
+ return Ge;
2963
+ default:
2964
+ return Pe;
2965
+ }
2966
+ }
2967
+ case r:
2968
+ return Pe;
2969
+ }
2970
+ }
2971
+ }
2972
+ var h = f, k = l, R = c, D = a, ee = t, Q = v, $e = n, Y = g, Dr = d, Mr = r, Fr = s, qr = o, Ur = m, Ve = !1;
2973
+ function Lr(y) {
2974
+ return Ve || (Ve = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), Ye(y) || b(y) === f;
2975
+ }
2976
+ function Ye(y) {
2977
+ return b(y) === l;
2978
+ }
2979
+ function Qr(y) {
2980
+ return b(y) === c;
2981
+ }
2982
+ function Br(y) {
2983
+ return b(y) === a;
2984
+ }
2985
+ function Kr(y) {
2986
+ return typeof y == "object" && y !== null && y.$$typeof === t;
2987
+ }
2988
+ function Hr(y) {
2989
+ return b(y) === v;
2990
+ }
2991
+ function Wr(y) {
2992
+ return b(y) === n;
2993
+ }
2994
+ function Vr(y) {
2995
+ return b(y) === g;
2996
+ }
2997
+ function Yr(y) {
2998
+ return b(y) === d;
2999
+ }
3000
+ function Gr(y) {
3001
+ return b(y) === r;
3002
+ }
3003
+ function Jr(y) {
3004
+ return b(y) === s;
3005
+ }
3006
+ function Xr(y) {
3007
+ return b(y) === o;
3008
+ }
3009
+ function en(y) {
3010
+ return b(y) === m;
3011
+ }
3012
+ P.AsyncMode = h, P.ConcurrentMode = k, P.ContextConsumer = R, P.ContextProvider = D, P.Element = ee, P.ForwardRef = Q, P.Fragment = $e, P.Lazy = Y, P.Memo = Dr, P.Portal = Mr, P.Profiler = Fr, P.StrictMode = qr, P.Suspense = Ur, P.isAsyncMode = Lr, P.isConcurrentMode = Ye, P.isContextConsumer = Qr, P.isContextProvider = Br, P.isElement = Kr, P.isForwardRef = Hr, P.isFragment = Wr, P.isLazy = Vr, P.isMemo = Yr, P.isPortal = Gr, P.isProfiler = Jr, P.isStrictMode = Xr, P.isSuspense = en, P.isValidElementType = x, P.typeOf = b;
3013
+ }()), P;
3014
+ }
3015
+ var St;
3016
+ function wc() {
3017
+ return St || (St = 1, process.env.NODE_ENV === "production" ? me.exports = _c() : me.exports = bc()), me.exports;
3018
+ }
3019
+ var Ze, Zt;
3020
+ function jc() {
3021
+ if (Zt) return Ze;
3022
+ Zt = 1;
3023
+ var e = wc(), t = {
3024
+ childContextTypes: !0,
3025
+ contextType: !0,
3026
+ contextTypes: !0,
3027
+ defaultProps: !0,
3028
+ displayName: !0,
3029
+ getDefaultProps: !0,
3030
+ getDerivedStateFromError: !0,
3031
+ getDerivedStateFromProps: !0,
3032
+ mixins: !0,
3033
+ propTypes: !0,
3034
+ type: !0
3035
+ }, r = {
3036
+ name: !0,
3037
+ length: !0,
3038
+ prototype: !0,
3039
+ caller: !0,
3040
+ callee: !0,
3041
+ arguments: !0,
3042
+ arity: !0
3043
+ }, n = {
3044
+ $$typeof: !0,
3045
+ render: !0,
3046
+ defaultProps: !0,
3047
+ displayName: !0,
3048
+ propTypes: !0
3049
+ }, o = {
3050
+ $$typeof: !0,
3051
+ compare: !0,
3052
+ defaultProps: !0,
3053
+ displayName: !0,
3054
+ propTypes: !0,
3055
+ type: !0
3056
+ }, s = {};
3057
+ s[e.ForwardRef] = n, s[e.Memo] = o;
3058
+ function a(g) {
3059
+ return e.isMemo(g) ? o : s[g.$$typeof] || t;
3060
+ }
3061
+ var c = Object.defineProperty, f = Object.getOwnPropertyNames, l = Object.getOwnPropertySymbols, v = Object.getOwnPropertyDescriptor, m = Object.getPrototypeOf, p = Object.prototype;
3062
+ function d(g, w, E) {
3063
+ if (typeof w != "string") {
3064
+ if (p) {
3065
+ var z = m(w);
3066
+ z && z !== p && d(g, z, E);
3067
+ }
3068
+ var j = f(w);
3069
+ l && (j = j.concat(l(w)));
3070
+ for (var x = a(g), b = a(w), h = 0; h < j.length; ++h) {
3071
+ var k = j[h];
3072
+ if (!r[k] && !(E && E[k]) && !(b && b[k]) && !(x && x[k])) {
3073
+ var R = v(w, k);
3074
+ try {
3075
+ c(g, k, R);
3076
+ } catch {
3077
+ }
3078
+ }
3079
+ }
3080
+ }
3081
+ return g;
3082
+ }
3083
+ return Ze = d, Ze;
3084
+ }
3085
+ jc();
3086
+ var kr = function(t, r, n) {
3087
+ return t = t <= n ? t : n, t = t >= r ? t : r, t;
3088
+ }, kc = function() {
3089
+ var t = !1, r = [], n = function() {
3090
+ t = !0;
3091
+ var c = r.shift();
3092
+ if (c)
3093
+ return c(n);
3094
+ t = !1;
3095
+ }, o = function() {
3096
+ t = !1, r = [];
3097
+ }, s = function(c) {
3098
+ r.push(c), !t && r.length === 1 && n();
3099
+ };
3100
+ return {
3101
+ clear: o,
3102
+ enqueue: s
3103
+ };
3104
+ }, zc = function() {
3105
+ var t, r = function() {
3106
+ t && window.cancelAnimationFrame(t);
3107
+ }, n = function(s, a) {
3108
+ var c, f, l = function(m) {
3109
+ if (f = f || m, c = m - f, c > a) {
3110
+ s();
3111
+ return;
3112
+ }
3113
+ t = window.requestAnimationFrame(l);
3114
+ };
3115
+ t = window.requestAnimationFrame(l);
3116
+ };
3117
+ return {
3118
+ cancel: r,
3119
+ schedule: n
3120
+ };
3121
+ }, $c = function(t) {
3122
+ var r = 0;
3123
+ return t >= 0 && t < 0.2 ? r = 0.1 : t >= 0.2 && t < 0.5 ? r = 0.04 : t >= 0.5 && t < 0.8 ? r = 0.02 : t >= 0.8 && t < 0.99 && (r = 5e-3), kr(t + r, 0, 0.994);
3124
+ }, Tt = function(t) {
3125
+ F(t, []);
3126
+ }, Pc = function(t) {
3127
+ return ++t % 1e6;
3128
+ }, Ec = function() {
3129
+ var t = J(0), r = t[1];
3130
+ return B(function() {
3131
+ return r(Pc);
3132
+ }, []);
3133
+ }, Sc = function(t) {
3134
+ t === void 0 && (t = {});
3135
+ var r = Ec(), n = H(be({}, t)), o = B(function() {
3136
+ return n.current;
3137
+ }, []), s = B(function(a) {
3138
+ a && (Object.assign(n.current, a), r());
3139
+ }, []);
3140
+ return [o, s];
3141
+ }, Zc = function() {
3142
+ var t = H(!0);
3143
+ return t.current ? (t.current = !1, !0) : t.current;
3144
+ }, Ct = function(t, r) {
3145
+ var n = Zc();
3146
+ F(function() {
3147
+ if (!n)
3148
+ return t();
3149
+ }, r);
3150
+ }, zr = function() {
3151
+ }, Ot = {
3152
+ isFinished: !0,
3153
+ progress: 0,
3154
+ sideEffect: zr
3155
+ }, Tc = function(t) {
3156
+ var r = t === void 0 ? {} : t, n = r.animationDuration, o = n === void 0 ? 200 : n, s = r.incrementDuration, a = s === void 0 ? 800 : s, c = r.isAnimating, f = c === void 0 ? !1 : c, l = r.minimum, v = l === void 0 ? 0.08 : l, m = Sc(Ot), p = m[0], d = m[1], g = H(null), w = H(null);
3157
+ Tt(function() {
3158
+ g.current = kc(), w.current = zc();
3159
+ });
3160
+ var E = B(function() {
3161
+ var k, R;
3162
+ (k = w.current) == null || k.cancel(), (R = g.current) == null || R.clear();
3163
+ }, []), z = B(function(k) {
3164
+ var R;
3165
+ if (k = kr(k, v, 1), k === 1) {
3166
+ var D, ee;
3167
+ E(), (D = g.current) == null || D.enqueue(function(Q) {
3168
+ d({
3169
+ progress: k,
3170
+ sideEffect: function() {
3171
+ var Y;
3172
+ return (Y = w.current) == null ? void 0 : Y.schedule(Q, o);
3173
+ }
3174
+ });
3175
+ }), (ee = g.current) == null || ee.enqueue(function() {
3176
+ d({
3177
+ isFinished: !0,
3178
+ sideEffect: E
3179
+ });
3180
+ });
3181
+ return;
3182
+ }
3183
+ (R = g.current) == null || R.enqueue(function(Q) {
3184
+ d({
3185
+ isFinished: !1,
3186
+ progress: k,
3187
+ sideEffect: function() {
3188
+ var Y;
3189
+ return (Y = w.current) == null ? void 0 : Y.schedule(Q, o);
3190
+ }
3191
+ });
3192
+ });
3193
+ }, [o, E, v, g, d, w]), j = B(function() {
3194
+ z($c(p().progress));
3195
+ }, [p, z]), x = B(function() {
3196
+ var k = function() {
3197
+ var D;
3198
+ j(), (D = g.current) == null || D.enqueue(function(ee) {
3199
+ var Q;
3200
+ (Q = w.current) == null || Q.schedule(function() {
3201
+ k(), ee();
3202
+ }, a);
3203
+ });
3204
+ };
3205
+ k();
3206
+ }, [a, g, w, j]), b = H(zr), h = p().sideEffect;
3207
+ return F(function() {
3208
+ b.current = j;
3209
+ }), Tt(function() {
3210
+ return f && x(), E;
3211
+ }), Ct(function() {
3212
+ p().sideEffect();
3213
+ }, [p, h]), Ct(function() {
3214
+ f ? d(be({}, Ot, {
3215
+ sideEffect: x
3216
+ })) : z(1);
3217
+ }, [f, z, d, x]), {
3218
+ animationDuration: o,
3219
+ isFinished: p().isFinished,
3220
+ progress: p().progress
3221
+ };
3222
+ };
3223
+ const $r = () => {
3224
+ const t = Fe().state === "loading", [r, n] = J(!1);
3225
+ F(() => {
3226
+ const a = setTimeout(() => n(t), 200);
3227
+ return () => clearTimeout(a);
3228
+ }, [t]);
3229
+ const { isFinished: o, progress: s } = Tc({ isAnimating: r });
3230
+ return /* @__PURE__ */ i.jsx(
3231
+ "div",
3232
+ {
3233
+ className: "absolute w-0 left-0 right-0 bottom-[-1px] h-[2px] bg-primary transition-all duration-300 ease-in-out",
3234
+ style: {
3235
+ opacity: o ? 0 : 1,
3236
+ width: o ? 0 : `${s * 100}%`
3237
+ }
3238
+ }
3239
+ );
3240
+ };
3241
+ function Cc() {
3242
+ const e = navigator.userAgent.toLowerCase();
3243
+ if (e.includes("win")) return "Windows";
3244
+ if (e.includes("mac")) return "macOS";
3245
+ if (e.includes("linux")) return "Linux";
3246
+ }
3247
+ const Pr = ({ className: e }) => {
3248
+ const t = M(), [r, n] = J(!1), o = B(() => n(!1), []);
3249
+ F(() => {
3250
+ if (r)
3251
+ return;
3252
+ function a(c) {
3253
+ c.key === "k" && (c.metaKey || c.ctrlKey) && (c.preventDefault(), n(!0));
3254
+ }
3255
+ return window.addEventListener("keydown", a), () => {
3256
+ window.removeEventListener("keydown", a);
3257
+ };
3258
+ }, [r, n]);
3259
+ const s = t.plugins.find(Xn);
3260
+ return s ? /* @__PURE__ */ i.jsxs("div", { className: e, children: [
3261
+ /* @__PURE__ */ i.jsxs(
3262
+ "button",
3263
+ {
3264
+ type: "button",
3265
+ onClick: () => n(!0),
3266
+ className: "flex items-center border border-input hover:bg-accent hover:text-accent-foreground p-4 relative h-8 justify-start rounded-lg bg-background text-sm text-muted-foreground shadow-none w-full sm:w-72",
3267
+ children: [
3268
+ /* @__PURE__ */ i.jsxs("div", { className: "flex items-center gap-2 grow", children: [
3269
+ /* @__PURE__ */ i.jsx(Wn, { size: 14 }),
3270
+ "Search"
3271
+ ] }),
3272
+ /* @__PURE__ */ i.jsx(re, { children: /* @__PURE__ */ i.jsx(Oc, {}) })
3273
+ ]
3274
+ }
3275
+ ),
3276
+ /* @__PURE__ */ i.jsx(Le, { fallback: null, children: s.renderSearch({
3277
+ isOpen: r,
3278
+ onClose: o
3279
+ }) })
3280
+ ] }) : null;
3281
+ }, Oc = () => {
3282
+ const e = Cc();
3283
+ return /* @__PURE__ */ i.jsxs("kbd", { className: "absolute end-1.5 hidden h-5 select-none items-center gap-1 rounded-sm border bg-muted px-1.5 font-mono text-[11px] font-medium opacity-100 sm:flex", children: [
3284
+ e === "macOS" ? "⌘" : "Ctrl",
3285
+ "+K"
3286
+ ] });
3287
+ }, Er = () => {
3288
+ const { resolvedTheme: e, setTheme: t } = Dt();
3289
+ return /* @__PURE__ */ i.jsx(re, { fallback: /* @__PURE__ */ i.jsx(Ce, { variant: "ghost", size: "icon" }), children: /* @__PURE__ */ i.jsxs(
3290
+ "button",
3291
+ {
3292
+ type: "button",
3293
+ className: "flex rounded-full border p-0.5 gap-0.5 group",
3294
+ onClick: () => t(e === "dark" ? "light" : "dark"),
3295
+ "aria-label": e === "dark" ? "Switch to light mode" : "Switch to dark mode",
3296
+ children: [
3297
+ /* @__PURE__ */ i.jsx(
3298
+ "div",
3299
+ {
3300
+ className: N(
3301
+ "border border-transparent rounded-full p-0.5 [&>svg>circle]:transition-colors [&>svg>path]:transition-transform transition-all [&>svg>path]:duration-200 [&>svg>circle]:duration-500 [&>svg>circle]:fill-transparent",
3302
+ e === "light" && "border-border bg-muted",
3303
+ e === "dark" && "group-hover:[&>svg>path]:scale-110 group-hover:[&>svg>path]:-translate-x-[1px] group-hover:[&>svg>path]:-translate-y-[1px] group-hover:rotate-[15deg] "
3304
+ ),
3305
+ children: /* @__PURE__ */ i.jsx(Vn, { size: 16 })
3306
+ }
3307
+ ),
3308
+ /* @__PURE__ */ i.jsx(
3309
+ "div",
3310
+ {
3311
+ className: N(
3312
+ "border border-transparent rounded-full p-0.5 transition-transform transform-gpu duration-500",
3313
+ e === "dark" && "border-border bg-muted [&>svg>path]:fill-white [&>svg>path]:stroke-transparent",
3314
+ e === "light" && "group-hover:rotate-[-10deg] [&>svg>path]:stroke-currentColor"
3315
+ ),
3316
+ children: /* @__PURE__ */ i.jsx(Yn, { size: 16 })
3317
+ }
3318
+ )
3319
+ ]
3320
+ }
3321
+ ) });
3322
+ }, Nc = () => {
3323
+ const e = M(), { navigation: t } = e, r = se(), n = t.filter(Ht(r, e));
3324
+ return n.length === 0 ? /* @__PURE__ */ i.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ i.jsx(Le, { children: /* @__PURE__ */ i.jsxs("div", { className: "items-center justify-between px-8 h-(--top-nav-height) hidden lg:flex text-sm relative", children: [
3325
+ /* @__PURE__ */ i.jsx("nav", { className: "text-sm", children: /* @__PURE__ */ i.jsx("ul", { className: "flex flex-row items-center gap-8", children: n.map((o) => /* @__PURE__ */ i.jsx("li", { children: /* @__PURE__ */ i.jsx(Zr, { ...o }) }, o.label + o.type)) }) }),
3326
+ /* @__PURE__ */ i.jsx(A.Target, { name: "top-navigation-side" })
3327
+ ] }) });
3328
+ }, Sr = (e) => {
3329
+ switch (e.type) {
3330
+ case "doc":
3331
+ return te(e.path);
3332
+ case "link":
3333
+ return e.to;
3334
+ case "category":
3335
+ return e.link?.path ? te(e.link.path) : On(e, (t) => {
3336
+ if (t.type !== "category")
3337
+ return Sr(t);
3338
+ }) ?? "";
3339
+ case "custom-page":
3340
+ return e.path;
3341
+ }
3342
+ }, De = ({
3343
+ isActive: e,
3344
+ children: t,
3345
+ ...r
3346
+ }) => /* @__PURE__ */ i.jsx(
3347
+ cn,
3348
+ {
3349
+ viewTransition: !0,
3350
+ className: ({ isActive: n, isPending: o }) => {
3351
+ const s = n || e;
3352
+ return yo(
3353
+ "flex items-center gap-2 lg:py-3.5 font-medium -mb-px transition duration-150 delay-75 relative",
3354
+ s || o ? [
3355
+ "text-foreground",
3356
+ // underline with view transition animation
3357
+ "after:content-[''] after:absolute after:bottom-0 after:left-0 after:right-0",
3358
+ "after:h-0.5 after:bg-primary",
3359
+ s && "after:[view-transition-name:top-nav-underline]",
3360
+ o && "after:bg-primary/25"
3361
+ ] : "text-foreground/75 hover:text-foreground"
3362
+ );
3363
+ },
3364
+ ...r,
3365
+ children: t
3366
+ }
3367
+ ), Zr = (e) => {
3368
+ const t = Wt(), r = fn(t.topNavItem, e), n = Sr(e);
3369
+ return (
3370
+ // We don't use isActive here because it has to be inside the navigation,
3371
+ // the top nav id doesn't necessarily start with the navigation id
3372
+ /* @__PURE__ */ i.jsxs(De, { to: n, isActive: r, children: [
3373
+ e.icon && /* @__PURE__ */ i.jsx(e.icon, { size: 16, className: "align-[-0.125em]" }),
3374
+ e.label
3375
+ ] })
3376
+ );
3377
+ }, Ac = () => {
3378
+ const e = M(), t = se(), { navigation: r, options: n, getProfileMenuItems: o } = e, { isAuthenticated: s, profile: a, isAuthEnabled: c } = t, [f, l] = J(!1), v = o(), m = r.filter(Ht(t, e));
3379
+ return /* @__PURE__ */ i.jsxs(
3380
+ go,
3381
+ {
3382
+ direction: n.site?.dir === "rtl" ? "left" : "right",
3383
+ open: f,
3384
+ onOpenChange: (p) => l(p),
3385
+ children: [
3386
+ /* @__PURE__ */ i.jsxs("div", { className: "flex lg:hidden justify-self-end", children: [
3387
+ /* @__PURE__ */ i.jsx(vo, { className: "lg:hidden", children: /* @__PURE__ */ i.jsx(Gn, { size: 22 }) }),
3388
+ /* @__PURE__ */ i.jsx($r, {})
3389
+ ] }),
3390
+ /* @__PURE__ */ i.jsx(
3391
+ er,
3392
+ {
3393
+ className: "lg:hidden h-[100dvh] end-0 start-auto w-[320px] rounded-none",
3394
+ "aria-describedby": void 0,
3395
+ children: /* @__PURE__ */ i.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none h-full flex flex-col justify-between", children: [
3396
+ /* @__PURE__ */ i.jsxs("div", { children: [
3397
+ /* @__PURE__ */ i.jsx(Xt, { children: /* @__PURE__ */ i.jsx(tr, { children: "Navigation" }) }),
3398
+ /* @__PURE__ */ i.jsx(Pr, { className: "flex p-4" }),
3399
+ /* @__PURE__ */ i.jsxs("ul", { className: "flex flex-col items-center gap-4 p-4", children: [
3400
+ /* @__PURE__ */ i.jsx("li", { className: "empty:hidden", children: /* @__PURE__ */ i.jsx(A.Target, { name: "top-navigation-side" }) }),
3401
+ c && /* @__PURE__ */ i.jsx(
3402
+ re,
3403
+ {
3404
+ fallback: /* @__PURE__ */ i.jsx(Ie, { className: "rounded-sm h-5 w-24 mr-4" }),
3405
+ children: s ? Object.values(o()).length > 0 && /* @__PURE__ */ i.jsx(Mn, { children: /* @__PURE__ */ i.jsxs("li", { children: [
3406
+ a?.name ? `${a.name}` : "My Account",
3407
+ a?.email && /* @__PURE__ */ i.jsx("div", { className: "font-normal text-muted-foreground", children: a.email })
3408
+ ] }) }) : /* @__PURE__ */ i.jsx("li", { children: /* @__PURE__ */ i.jsx(
3409
+ De,
3410
+ {
3411
+ to: "/signin",
3412
+ onClick: () => l(!1),
3413
+ children: "Login"
3414
+ }
3415
+ ) })
3416
+ }
3417
+ ),
3418
+ m.map((p) => /* @__PURE__ */ i.jsx("li", { children: /* @__PURE__ */ i.jsx("button", { type: "button", onClick: () => l(!1), children: /* @__PURE__ */ i.jsx(Zr, { ...p }) }) }, p.label)),
3419
+ c && s && v.length > 0 && /* @__PURE__ */ i.jsx(
3420
+ re,
3421
+ {
3422
+ fallback: /* @__PURE__ */ i.jsx(Ie, { className: "rounded-sm h-5 w-24 mr-4" }),
3423
+ children: v.map((p) => /* @__PURE__ */ i.jsx("li", { children: /* @__PURE__ */ i.jsx(
3424
+ De,
3425
+ {
3426
+ to: p.path ?? "",
3427
+ onClick: () => l(!1),
3428
+ children: p.label
3429
+ }
3430
+ ) }, p.label))
3431
+ }
3432
+ ),
3433
+ /* @__PURE__ */ i.jsx("li", { children: /* @__PURE__ */ i.jsx(Er, {}) })
3434
+ ] })
3435
+ ] }),
3436
+ n.site?.showPoweredBy !== !1 && /* @__PURE__ */ i.jsx(jr, { className: "grow-0 justify-center gap-1" })
3437
+ ] })
3438
+ }
3439
+ )
3440
+ ]
3441
+ }
3442
+ );
3443
+ }, ve = ({ item: e }) => e.children ? /* @__PURE__ */ i.jsxs(lo, { children: [
3444
+ /* @__PURE__ */ i.jsx(fo, { children: e.label }),
3445
+ /* @__PURE__ */ i.jsx(ho, { children: /* @__PURE__ */ i.jsx(po, { children: e.children.map((t, r) => (
3446
+ // eslint-disable-next-line react/no-array-index-key
3447
+ /* @__PURE__ */ i.jsx(ve, { item: t }, r)
3448
+ )) }) })
3449
+ ] }, e.label) : /* @__PURE__ */ i.jsx(qe, { to: e.path ?? "", children: /* @__PURE__ */ i.jsxs(mo, { className: "flex gap-2", children: [
3450
+ e.icon && /* @__PURE__ */ i.jsx(e.icon, { size: 16, strokeWidth: 1, absoluteStrokeWidth: !0 }),
3451
+ e.label
3452
+ ] }, e.label) }), Tr = Yt(function() {
3453
+ const t = se(), { isAuthenticated: r, profile: n, isAuthEnabled: o } = se(), s = M(), { site: a, plugins: c, options: f } = s, l = c.filter((d) => Jt(d)).flatMap((d) => d.getProfileMenuItems(s)).sort((d) => d.weight ?? 0), v = a?.logo ? /https?:\/\//.test(a.logo.src.light) ? a.logo.src.light : te(f.basePath, a.logo.src.light) : void 0, m = a?.logo ? /https?:\/\//.test(a.logo.src.dark) ? a.logo.src.dark : te(f.basePath, a.logo.src.dark) : void 0, p = "inset-shadow-[0_-1px_0_0_var(--border)]";
3454
+ return /* @__PURE__ */ i.jsxs(
3455
+ "header",
3456
+ {
3457
+ className: "sticky lg:top-0 z-10 bg-background/80 backdrop-blur w-full",
3458
+ "data-pagefind-ignore": "all",
3459
+ children: [
3460
+ /* @__PURE__ */ i.jsx(xc, {}),
3461
+ /* @__PURE__ */ i.jsxs("div", { className: N(p, "relative"), children: [
3462
+ /* @__PURE__ */ i.jsx($r, {}),
3463
+ /* @__PURE__ */ i.jsxs("div", { className: "max-w-screen-2xl mx-auto flex items-center justify-between h-(--top-header-height) px-4 lg:px-8 border-transparent", children: [
3464
+ /* @__PURE__ */ i.jsx("div", { className: "flex", children: /* @__PURE__ */ i.jsx(qe, { to: a?.logo?.href ?? "/", children: /* @__PURE__ */ i.jsxs("div", { className: "flex items-center gap-3.5", children: [
3465
+ a?.logo && /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
3466
+ /* @__PURE__ */ i.jsx(
3467
+ "img",
3468
+ {
3469
+ src: v,
3470
+ alt: a.logo.alt ?? a.title,
3471
+ style: { width: a.logo.width },
3472
+ className: "max-h-(--top-header-height) dark:hidden",
3473
+ loading: "lazy"
3474
+ }
3475
+ ),
3476
+ /* @__PURE__ */ i.jsx(
3477
+ "img",
3478
+ {
3479
+ src: m,
3480
+ alt: a.logo.alt ?? a.title,
3481
+ style: { width: a.logo.width },
3482
+ className: "max-h-(--top-header-height) hidden dark:block",
3483
+ loading: "lazy"
3484
+ }
3485
+ )
3486
+ ] }),
3487
+ /* @__PURE__ */ i.jsx("span", { className: "font-semibold text-2xl", children: a?.title })
3488
+ ] }) }) }),
3489
+ /* @__PURE__ */ i.jsx("div", { className: "absolute inset-x-0 justify-center items-center hidden lg:flex w-full pointer-events-none", children: /* @__PURE__ */ i.jsx(Pr, { className: "pointer-events-auto" }) }),
3490
+ /* @__PURE__ */ i.jsxs("div", { className: "flex items-center gap-8", children: [
3491
+ /* @__PURE__ */ i.jsx(Ac, {}),
3492
+ /* @__PURE__ */ i.jsxs("div", { className: "hidden lg:flex items-center justify-self-end text-sm gap-2", children: [
3493
+ /* @__PURE__ */ i.jsx(A.Target, { name: "head-navigation-start" }),
3494
+ o && /* @__PURE__ */ i.jsx(
3495
+ re,
3496
+ {
3497
+ fallback: /* @__PURE__ */ i.jsx(Ie, { className: "rounded-sm h-5 w-24 mr-4" }),
3498
+ children: r ? Object.values(l).length > 0 && /* @__PURE__ */ i.jsxs(io, { modal: !1, children: [
3499
+ /* @__PURE__ */ i.jsx(ao, { asChild: !0, children: /* @__PURE__ */ i.jsx(Ce, { variant: "ghost", children: n?.name ?? "My Account" }) }),
3500
+ /* @__PURE__ */ i.jsxs(co, { className: "w-56", children: [
3501
+ /* @__PURE__ */ i.jsxs(uo, { children: [
3502
+ n?.name ? `${n.name}` : "My Account",
3503
+ n?.email && /* @__PURE__ */ i.jsx("div", { className: "font-normal text-muted-foreground", children: n.email })
3504
+ ] }),
3505
+ l.filter((d) => d.category === "top").length > 0 && /* @__PURE__ */ i.jsx(Se, {}),
3506
+ l.filter((d) => d.category === "top").map((d) => /* @__PURE__ */ i.jsx(ve, { item: d }, d.label)),
3507
+ l.filter(
3508
+ (d) => !d.category || d.category === "middle"
3509
+ ).length > 0 && /* @__PURE__ */ i.jsx(Se, {}),
3510
+ l.filter(
3511
+ (d) => !d.category || d.category === "middle"
3512
+ ).map((d) => /* @__PURE__ */ i.jsx(ve, { item: d }, d.label)),
3513
+ l.filter((d) => d.category === "bottom").length > 0 && /* @__PURE__ */ i.jsx(Se, {}),
3514
+ l.filter((d) => d.category === "bottom").map((d) => /* @__PURE__ */ i.jsx(ve, { item: d }, d.label))
3515
+ ] })
3516
+ ] }) : /* @__PURE__ */ i.jsx(Ce, { variant: "ghost", onClick: () => t.login(), children: "Login" })
3517
+ }
3518
+ ),
3519
+ /* @__PURE__ */ i.jsx(A.Target, { name: "head-navigation-end" }),
3520
+ /* @__PURE__ */ i.jsx(Er, {})
3521
+ ] })
3522
+ ] })
3523
+ ] })
3524
+ ] }),
3525
+ /* @__PURE__ */ i.jsx("div", { className: N("hidden lg:block", p), children: /* @__PURE__ */ i.jsxs("div", { className: "max-w-screen-2xl mx-auto border-transparent relative", children: [
3526
+ /* @__PURE__ */ i.jsx(A.Target, { name: "top-navigation-before" }),
3527
+ /* @__PURE__ */ i.jsx(Nc, {}),
3528
+ /* @__PURE__ */ i.jsx(A.Target, { name: "top-navigation-after" })
3529
+ ] }) })
3530
+ ]
3531
+ }
3532
+ );
3533
+ }), Cr = ({
3534
+ shouldScaleBackground: e = !0,
3535
+ ...t
3536
+ }) => /* @__PURE__ */ i.jsx(
3537
+ q.Root,
3538
+ {
3539
+ shouldScaleBackground: e,
3540
+ ...t
3541
+ }
3542
+ );
3543
+ Cr.displayName = "Drawer";
3544
+ const Rc = q.Trigger, Ic = q.Portal, Or = K.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ i.jsx(
3545
+ q.Overlay,
3546
+ {
3547
+ ref: r,
3548
+ className: N("fixed inset-0 z-50 bg-black/80", e),
3549
+ ...t
3550
+ }
3551
+ ));
3552
+ Or.displayName = q.Overlay.displayName;
3553
+ const Dc = K.forwardRef(
3554
+ ({ className: e, children: t, hideBar: r = !0, ...n }, o) => /* @__PURE__ */ i.jsxs(Ic, { children: [
3555
+ /* @__PURE__ */ i.jsx(Or, {}),
3556
+ /* @__PURE__ */ i.jsxs(
3557
+ q.Content,
3558
+ {
3559
+ ref: o,
3560
+ className: N(
3561
+ "fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",
3562
+ e
3563
+ ),
3564
+ ...n,
3565
+ children: [
3566
+ !r && /* @__PURE__ */ i.jsx("div", { className: "mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted" }),
3567
+ t
3568
+ ]
3569
+ }
3570
+ )
3571
+ ] })
3572
+ );
3573
+ Dc.displayName = "DrawerContent";
3574
+ const Mc = K.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ i.jsx(
3575
+ q.Title,
3576
+ {
3577
+ ref: r,
3578
+ className: N(
3579
+ "text-lg font-semibold leading-none tracking-tight",
3580
+ e
3581
+ ),
3582
+ ...t
3583
+ }
3584
+ ));
3585
+ Mc.displayName = q.Title.displayName;
3586
+ const Fc = K.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ i.jsx(
3587
+ q.Description,
3588
+ {
3589
+ ref: r,
3590
+ className: N("text-sm text-muted-foreground", e),
3591
+ ...t
3592
+ }
3593
+ ));
3594
+ Fc.displayName = q.Description.displayName;
3595
+ const Nr = ({
3596
+ children: e,
3597
+ className: t
3598
+ }) => {
3599
+ const { options: r } = M(), n = H(null);
3600
+ return F(() => {
3601
+ const o = n.current?.querySelector('[aria-current="page"]');
3602
+ hn(o ?? null);
3603
+ }, []), /* @__PURE__ */ i.jsxs(
3604
+ "div",
3605
+ {
3606
+ className: "grid sticky top-(--header-height) lg:h-[calc(100vh-var(--header-height))] grid-rows-[1fr_min-content] border-r",
3607
+ "data-pagefind-ignore": "all",
3608
+ children: [
3609
+ /* @__PURE__ */ i.jsx(
3610
+ "nav",
3611
+ {
3612
+ ref: n,
3613
+ className: N(
3614
+ "hidden max-w-[calc(var(--side-nav-width)+var(--padding-nav-item))] lg:flex scrollbar flex-col overflow-y-auto shrink-0 text-sm pe-3 ps-4 lg:ps-8",
3615
+ "-mx-(--padding-nav-item) pb-[8vh] pt-(--padding-content-top) scroll-pt-2 gap-1",
3616
+ // Revert the padding/margin on the first child
3617
+ "-mt-2.5",
3618
+ t
3619
+ ),
3620
+ style: {
3621
+ maskImage: "linear-gradient(180deg, transparent 1%, rgba(0, 0, 0, 1) 20px, rgba(0, 0, 0, 1) 90%, transparent 99%)"
3622
+ },
3623
+ children: e
3624
+ }
3625
+ ),
3626
+ /* @__PURE__ */ i.jsx("div", { className: "bg-background border-t p-2 mx-5 gap-2 items-center mt-2 drop-shadow-[0_-3px_1px_rgba(0,0,0,0.015)] hidden lg:[&:has(>_:nth-child(1):last-child)]:flex", children: r.site?.showPoweredBy !== !1 && /* @__PURE__ */ i.jsx(jr, {}) })
3627
+ ]
3628
+ }
3629
+ );
3630
+ };
3631
+ Nr.displayName = "NavigationWrapper";
3632
+ const qc = ({
3633
+ onRequestClose: e,
3634
+ navigation: t
3635
+ }) => /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
3636
+ /* @__PURE__ */ i.jsxs(Nr, { children: [
3637
+ /* @__PURE__ */ i.jsx(A.Target, { name: "navigation-before" }),
3638
+ t.map((r) => /* @__PURE__ */ i.jsx(
3639
+ Je,
3640
+ {
3641
+ item: r
3642
+ },
3643
+ r.type + (r.label ?? "") + ("path" in r ? r.path : "") + ("file" in r ? r.file : "") + ("to" in r ? r.to : "")
3644
+ )),
3645
+ /* @__PURE__ */ i.jsx(A.Target, { name: "navigation-after" })
3646
+ ] }),
3647
+ /* @__PURE__ */ i.jsx(
3648
+ er,
3649
+ {
3650
+ className: "lg:hidden h-[100dvh] start-0 w-[320px] rounded-none",
3651
+ "aria-describedby": void 0,
3652
+ children: /* @__PURE__ */ i.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none", children: [
3653
+ /* @__PURE__ */ i.jsx(Xt, { children: /* @__PURE__ */ i.jsx(tr, { children: "Navigation" }) }),
3654
+ t.map((r) => /* @__PURE__ */ i.jsx(
3655
+ Je,
3656
+ {
3657
+ item: r,
3658
+ onRequestClose: e
3659
+ },
3660
+ r.label
3661
+ ))
3662
+ ] })
3663
+ }
3664
+ )
3665
+ ] }), Uc = ({ children: e }) => {
3666
+ const [t, r] = J(!1), { navigation: n } = Wt(), o = n.length > 0, s = Fe().state === "loading", { options: a } = M();
3667
+ return /* @__PURE__ */ i.jsxs(
3668
+ Cr,
3669
+ {
3670
+ direction: a.site?.dir === "rtl" ? "right" : "left",
3671
+ open: t,
3672
+ onOpenChange: (c) => r(c),
3673
+ children: [
3674
+ o && /* @__PURE__ */ i.jsx(
3675
+ qc,
3676
+ {
3677
+ onRequestClose: () => r(!1),
3678
+ navigation: n
3679
+ }
3680
+ ),
3681
+ o && /* @__PURE__ */ i.jsx("div", { className: "lg:hidden -mx-4 px-4 py-2 sticky bg-background/80 backdrop-blur-xs z-10 top-0 start-0 end-0 border-b", children: /* @__PURE__ */ i.jsxs(Rc, { className: "flex items-center gap-2 px-4", children: [
3682
+ /* @__PURE__ */ i.jsx(Jn, { size: 16, strokeWidth: 1.5 }),
3683
+ /* @__PURE__ */ i.jsx("span", { className: "text-sm", children: "Menu" })
3684
+ ] }) }),
3685
+ /* @__PURE__ */ i.jsxs(
3686
+ "main",
3687
+ {
3688
+ "data-pagefind-body": !0,
3689
+ className: N(
3690
+ "px-4 lg:pe-8 lg:px-8",
3691
+ !o && "col-span-full",
3692
+ s && "animate-pulse"
3693
+ ),
3694
+ children: [
3695
+ /* @__PURE__ */ i.jsx(A.Target, { name: "content-before" }),
3696
+ e,
3697
+ /* @__PURE__ */ i.jsx(A.Target, { name: "content-after" })
3698
+ ]
3699
+ }
3700
+ )
3701
+ ]
3702
+ }
3703
+ );
3704
+ }, Lc = () => /* @__PURE__ */ i.jsx("main", { className: "col-span-full row-span-full grid place-items-center", children: /* @__PURE__ */ i.jsx(Gt, {}) }), Qc = ({ children: e }) => {
3705
+ const { meta: t, authentication: r, options: n } = M(), o = we();
3706
+ return pn(), mc(), F(() => {
3707
+ r?.onPageLoad?.();
3708
+ }, [r]), /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
3709
+ /* @__PURE__ */ i.jsxs(Me, { titleTemplate: t?.title, children: [
3710
+ n.canonicalUrlOrigin && /* @__PURE__ */ i.jsx(
3711
+ "link",
3712
+ {
3713
+ rel: "canonical",
3714
+ href: te(
3715
+ n.canonicalUrlOrigin,
3716
+ n.basePath,
3717
+ o.pathname
3718
+ )
3719
+ }
3720
+ ),
3721
+ t?.description && /* @__PURE__ */ i.jsx("meta", { name: "description", content: t.description }),
3722
+ t?.favicon && /* @__PURE__ */ i.jsx("link", { rel: "icon", href: t.favicon })
3723
+ ] }),
3724
+ /* @__PURE__ */ i.jsx(A.Target, { name: "layout-before-head" }),
3725
+ /* @__PURE__ */ i.jsx(Tr, {}),
3726
+ /* @__PURE__ */ i.jsx(A.Target, { name: "layout-after-head" }),
3727
+ /* @__PURE__ */ i.jsx(
3728
+ "div",
3729
+ {
3730
+ className: N(
3731
+ "grid max-w-screen-2xl w-full lg:mx-auto",
3732
+ "[&:has(>:only-child)]:grid-rows-1 grid-rows-[0_min-content_1fr] lg:grid-rows-[min-content_1fr]",
3733
+ "grid-cols-1 lg:grid-cols-[var(--side-nav-width)_1fr]"
3734
+ ),
3735
+ children: /* @__PURE__ */ i.jsx(Le, { fallback: /* @__PURE__ */ i.jsx(Lc, {}), children: /* @__PURE__ */ i.jsx(Uc, { children: e ?? /* @__PURE__ */ i.jsx(Mt, {}) }) })
3736
+ }
3737
+ ),
3738
+ /* @__PURE__ */ i.jsx(yc, {})
3739
+ ] });
3740
+ }, Bc = ({
3741
+ title: e = "An error occurred",
3742
+ message: t,
3743
+ category: r
3744
+ }) => /* @__PURE__ */ i.jsxs(qt, { className: "h-full pt-(--padding-content-top)", children: [
3745
+ r && /* @__PURE__ */ i.jsx(mn, { children: r }),
3746
+ e && /* @__PURE__ */ i.jsx(gn, { level: 1, className: "flex gap-3.5 items-center", children: e }),
3747
+ /* @__PURE__ */ i.jsx("p", { children: t })
3748
+ ] }), Kc = (e) => {
3749
+ switch (e) {
3750
+ case 400:
3751
+ return {
3752
+ title: "Bad Request",
3753
+ message: "The request could not be understood by the server due to malformed syntax."
3754
+ };
3755
+ case 403:
3756
+ return {
3757
+ title: "Forbidden",
3758
+ message: "You don't have permission to access this resource."
3759
+ };
3760
+ case 404:
3761
+ return {
3762
+ title: "Not Found",
3763
+ message: "The requested resource could not be found."
3764
+ };
3765
+ case 405:
3766
+ return {
3767
+ title: "Method Not Allowed",
3768
+ message: "The request method is not supported for the requested resource."
3769
+ };
3770
+ case 414:
3771
+ return {
3772
+ title: "Request URI Too Large",
3773
+ message: "The request URI is too large."
3774
+ };
3775
+ case 416:
3776
+ return {
3777
+ title: "Range Not Satisfiable",
3778
+ message: "The server cannot satisfy the request range."
3779
+ };
3780
+ case 500:
3781
+ return {
3782
+ title: "Internal Server Error",
3783
+ message: "An unexpected error occurred while processing your request."
3784
+ };
3785
+ case 501:
3786
+ return {
3787
+ title: "Not Implemented",
3788
+ message: "The server does not support the functionality required to fulfill the request."
3789
+ };
3790
+ case 502:
3791
+ return {
3792
+ title: "Bad Gateway",
3793
+ message: "The server received an invalid response from the upstream server."
3794
+ };
3795
+ case 503:
3796
+ return {
3797
+ title: "Service Unavailable",
3798
+ message: "The server is temporarily unable to handle the request."
3799
+ };
3800
+ case 504:
3801
+ return {
3802
+ title: "Gateway Timeout",
3803
+ message: "The server did not receive a timely response from the upstream server."
3804
+ };
3805
+ default:
3806
+ return {
3807
+ title: "An error occurred",
3808
+ message: "Something went wrong while processing your request."
3809
+ };
3810
+ }
3811
+ }, Hc = ({ statusCode: e, message: t }) => {
3812
+ if (e === 404)
3813
+ return /* @__PURE__ */ i.jsx(vn, {});
3814
+ const r = Kc(e);
3815
+ return /* @__PURE__ */ i.jsx(
3816
+ Bc,
3817
+ {
3818
+ title: r.title,
3819
+ message: t ?? r.message,
3820
+ category: e
3821
+ }
3822
+ );
3823
+ }, Wc = Ue(null), Te = {
3824
+ didCatch: !1,
3825
+ error: null
3826
+ };
3827
+ class Vc extends Fn {
3828
+ constructor(t) {
3829
+ super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = Te;
3830
+ }
3831
+ static getDerivedStateFromError(t) {
3832
+ return {
3833
+ didCatch: !0,
3834
+ error: t
3835
+ };
3836
+ }
3837
+ resetErrorBoundary() {
3838
+ const {
3839
+ error: t
3840
+ } = this.state;
3841
+ if (t !== null) {
3842
+ for (var r, n, o = arguments.length, s = new Array(o), a = 0; a < o; a++)
3843
+ s[a] = arguments[a];
3844
+ (r = (n = this.props).onReset) === null || r === void 0 || r.call(n, {
3845
+ args: s,
3846
+ reason: "imperative-api"
3847
+ }), this.setState(Te);
3848
+ }
3849
+ }
3850
+ componentDidCatch(t, r) {
3851
+ var n, o;
3852
+ (n = (o = this.props).onError) === null || n === void 0 || n.call(o, t, r);
3853
+ }
3854
+ componentDidUpdate(t, r) {
3855
+ const {
3856
+ didCatch: n
3857
+ } = this.state, {
3858
+ resetKeys: o
3859
+ } = this.props;
3860
+ if (n && r.error !== null && Yc(t.resetKeys, o)) {
3861
+ var s, a;
3862
+ (s = (a = this.props).onReset) === null || s === void 0 || s.call(a, {
3863
+ next: o,
3864
+ prev: t.resetKeys,
3865
+ reason: "keys"
3866
+ }), this.setState(Te);
3867
+ }
3868
+ }
3869
+ render() {
3870
+ const {
3871
+ children: t,
3872
+ fallbackRender: r,
3873
+ FallbackComponent: n,
3874
+ fallback: o
3875
+ } = this.props, {
3876
+ didCatch: s,
3877
+ error: a
3878
+ } = this.state;
3879
+ let c = t;
3880
+ if (s) {
3881
+ const f = {
3882
+ error: a,
3883
+ resetErrorBoundary: this.resetErrorBoundary
3884
+ };
3885
+ if (typeof r == "function")
3886
+ c = r(f);
3887
+ else if (n)
3888
+ c = st(n, f);
3889
+ else if (o !== void 0)
3890
+ c = o;
3891
+ else
3892
+ throw a;
3893
+ }
3894
+ return st(Wc.Provider, {
3895
+ value: {
3896
+ didCatch: s,
3897
+ error: a,
3898
+ resetErrorBoundary: this.resetErrorBoundary
3899
+ }
3900
+ }, c);
3901
+ }
3902
+ }
3903
+ function Yc() {
3904
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
3905
+ return e.length !== t.length || e.some((r, n) => !Object.is(r, t[n]));
3906
+ }
3907
+ let Gc = () => ({
3908
+ emit(e, ...t) {
3909
+ for (let r = this.events[e] || [], n = 0, o = r.length; n < o; n++)
3910
+ r[n](...t);
3911
+ },
3912
+ events: {},
3913
+ on(e, t) {
3914
+ return (this.events[e] ||= []).push(t), () => {
3915
+ this.events[e] = this.events[e]?.filter((r) => t !== r);
3916
+ };
3917
+ }
3918
+ });
3919
+ const Nt = vr([
3920
+ _e().array(),
3921
+ Va(
3922
+ _e(),
3923
+ lc((e) => typeof e == "function")
3924
+ )
3925
+ ]).optional().transform((e) => {
3926
+ if (e)
3927
+ return Array.isArray(e) ? Object.fromEntries(
3928
+ e.map((t) => [
3929
+ t,
3930
+ (r) => r.auth.isAuthenticated
3931
+ ])
3932
+ ) : e;
3933
+ }), Jc = (e) => Object.entries(e);
3934
+ class Xc {
3935
+ plugins;
3936
+ navigation;
3937
+ meta;
3938
+ site;
3939
+ authentication;
3940
+ queryClient;
3941
+ options;
3942
+ navigationPlugins;
3943
+ emitter = Gc();
3944
+ constructor(t, r) {
3945
+ const o = {
3946
+ ...Object.fromEntries(
3947
+ (t.plugins ?? []).flatMap((s) => {
3948
+ if (!it(s)) return [];
3949
+ const a = s.getProtectedRoutes?.();
3950
+ return a ? Object.entries(Nt.parse(a) ?? {}) : [];
3951
+ })
3952
+ ),
3953
+ ...Nt.parse(t.protectedRoutes)
3954
+ };
3955
+ this.queryClient = r, this.options = { ...t, protectedRoutes: o }, this.plugins = t.plugins ?? [], this.navigation = t.navigation ?? [], this.navigationPlugins = this.plugins.filter(it), this.authentication = this.plugins.find(eo), this.meta = t.metadata, this.site = t.site, this.plugins.forEach((s) => {
3956
+ to(s) && Jc(s.events).forEach(([a, c]) => {
3957
+ this.emitter.on(a, c);
3958
+ });
3959
+ }), un.subscribe((s, a) => {
3960
+ this.emitEvent("auth", {
3961
+ prev: a,
3962
+ next: s
3963
+ });
3964
+ });
3965
+ }
3966
+ initialize = async () => {
3967
+ await Promise.all(
3968
+ this.plugins.filter(ro).map((t) => t.initialize?.(this))
3969
+ );
3970
+ };
3971
+ getApiIdentities = async () => (await Promise.all(
3972
+ this.plugins.filter(no).map((r) => r.getIdentities(this))
3973
+ )).flat();
3974
+ addEventListener(t, r) {
3975
+ return this.emitter.on(t, r);
3976
+ }
3977
+ emitEvent = (t, ...r) => this.emitter.emit(t, ...r);
3978
+ getPluginNavigation = async (t) => (await Promise.all(
3979
+ this.navigationPlugins.map(
3980
+ (n) => n.getNavigation?.(te(t), this)
3981
+ )
3982
+ )).flatMap((n) => n ?? []);
3983
+ getProfileMenuItems = () => this.plugins.filter((r) => Jt(r)).flatMap((r) => r.getProfileMenuItems(this)).sort(eu(["top", "middle", "bottom"])).sort((r) => r.weight ?? 0);
3984
+ signRequest = async (t) => {
3985
+ if (!this.authentication)
3986
+ throw new Error("No authentication provider configured");
3987
+ return await this.authentication.signRequest(t);
3988
+ };
3989
+ }
3990
+ const eu = (e) => (t, r) => {
3991
+ const n = e.indexOf(t.category ?? "middle"), o = e.indexOf(r.category ?? "middle");
3992
+ return n - o;
3993
+ };
3994
+ function tu({ error: e, resetErrorBoundary: t }) {
3995
+ return /* @__PURE__ */ i.jsx(Ft, { error: e });
3996
+ }
3997
+ const ge = globalThis;
3998
+ (!ge.requestIdleCallback || !ge.cancelIdleCallback) && (ge.requestIdleCallback = (e) => setTimeout(e, 1), ge.cancelIdleCallback = clearTimeout);
3999
+ const Ar = {
4000
+ Header: Tr
4001
+ }, ru = Ue(Ar), nu = ru.Provider, ou = () => {
4002
+ const e = we(), t = M(), r = H(void 0);
4003
+ return F(() => {
4004
+ t.emitEvent("location", {
4005
+ from: r.current,
4006
+ to: e
4007
+ }), r.current = e;
4008
+ }, [t, e]), null;
4009
+ }, su = ({
4010
+ children: e,
4011
+ context: t
4012
+ }) => (Nn({
4013
+ queryFn: async () => (await t.initialize(), !0),
4014
+ queryKey: ["zudoku-initialize", An]
4015
+ }), /* @__PURE__ */ i.jsx(Rn.Provider, { value: t, children: e }));
4016
+ let At;
4017
+ const Rr = Yt(
4018
+ ({ children: e, ...t }) => {
4019
+ const r = Ee(
4020
+ () => ({ ...Ar, ...t.overrides }),
4021
+ [t.overrides]
4022
+ ), n = we(), o = Ee(() => ({
4023
+ ...(t.plugins ?? []).filter(oo).flatMap(
4024
+ (d) => d.getMdxComponents ? [d.getMdxComponents()] : []
4025
+ ).reduce(
4026
+ (d, g) => ({ ...d, ...g }),
4027
+ {}
4028
+ ),
4029
+ ...yn,
4030
+ ...t.mdx?.components
4031
+ }), [t.mdx?.components, t.plugins]), { stagger: s } = qn(Oe), [a, c] = J(!1), f = Ee(
4032
+ () => a ? { stagger: !0 } : { stagger: s },
4033
+ [s, a]
4034
+ ), l = Fe(), v = Bt();
4035
+ F(() => {
4036
+ a || c(!0);
4037
+ }, [a, l.location]), At ??= new Xc(t, v);
4038
+ const m = t.plugins?.flatMap(
4039
+ (p) => so(p) ? p.getHead?.({ location: n }) ?? [] : []
4040
+ ).map((p, d) => /* @__PURE__ */ i.jsx(Me, { children: p }, d));
4041
+ return /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
4042
+ m,
4043
+ /* @__PURE__ */ i.jsx(Oe.Provider, { value: f, children: /* @__PURE__ */ i.jsxs(su, { context: At, children: [
4044
+ /* @__PURE__ */ i.jsx(ou, {}),
4045
+ /* @__PURE__ */ i.jsx(xn, { slots: t.slots ?? t.UNSAFE_slotlets, children: /* @__PURE__ */ i.jsx(rn, { components: o, children: /* @__PURE__ */ i.jsx(nn, { attribute: "class", disableTransitionOnChange: !0, children: /* @__PURE__ */ i.jsx(nu, { value: r, children: /* @__PURE__ */ i.jsx(_n, { children: e ?? /* @__PURE__ */ i.jsx(Mt, {}) }) }) }) }) })
4046
+ ] }) })
4047
+ ] });
4048
+ }
4049
+ );
4050
+ Rr.displayName = "ZudokoInner";
4051
+ const Ir = (e) => /* @__PURE__ */ i.jsx(Vc, { FallbackComponent: tu, children: /* @__PURE__ */ i.jsx(Rr, { ...e }) });
4052
+ Ir.displayName = "Zudoku";
4053
+ const Pu = Qc, Eu = bn, Su = zo, Zu = Eo, Tu = So, Cu = tn, Ou = Me, Nu = Hc, Au = jn, Ru = wn, Iu = Gt, Du = re, Mu = Ut, Fu = qe, qu = pc, Uu = Ir, Lu = qt, Qu = on, iu = M, Bu = se, Ku = In, Hu = Dn, Wu = Dt;
4054
+ export {
4055
+ Mu as B,
4056
+ Au as C,
4057
+ Vc as E,
4058
+ Ou as H,
4059
+ Fu as L,
4060
+ Ru as M,
4061
+ Eu as R,
4062
+ Iu as S,
4063
+ Lu as T,
4064
+ Uu as Z,
4065
+ Tc as a,
4066
+ Bu as b,
4067
+ Pu as c,
4068
+ Su as d,
4069
+ Zu as e,
4070
+ Tu as f,
4071
+ Cu as g,
4072
+ Nu as h,
4073
+ Du as i,
4074
+ qu as j,
4075
+ Qu as k,
4076
+ Ku as l,
4077
+ Hu as m,
4078
+ Wu as n,
4079
+ Jc as o,
4080
+ iu as u
4081
+ };
4082
+ //# sourceMappingURL=index-D1LmO5Bn.js.map