zudoku 0.0.0-fdf886de → 0.0.0-fe92c9e1

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 (1220) hide show
  1. package/README.md +32 -12
  2. package/cli.js +1 -0
  3. package/client.d.ts +8 -0
  4. package/dist/app/ZuploBuildConfig.d.ts +1 -1
  5. package/dist/app/ZuploBuildConfig.js +1 -1
  6. package/dist/app/ZuploBuildConfig.js.map +1 -1
  7. package/dist/app/entry.client.js +5 -4
  8. package/dist/app/entry.client.js.map +1 -1
  9. package/dist/app/entry.server.js +16 -3
  10. package/dist/app/entry.server.js.map +1 -1
  11. package/dist/app/env.js +6 -6
  12. package/dist/app/env.js.map +1 -1
  13. package/dist/app/main.d.ts +91 -1
  14. package/dist/app/main.js +5 -1
  15. package/dist/app/main.js.map +1 -1
  16. package/dist/app/standalone.js +4 -1
  17. package/dist/app/standalone.js.map +1 -1
  18. package/dist/cli/cli.d.ts +9 -0
  19. package/dist/cli/cli.js +5 -10
  20. package/dist/cli/cli.js.map +1 -1
  21. package/dist/cli/cmds/build.d.ts +1 -1
  22. package/dist/cli/cmds/dev.d.ts +1 -1
  23. package/dist/cli/cmds/preview.d.ts +1 -1
  24. package/dist/cli/common/analytics/lib.js +1 -1
  25. package/dist/cli/common/analytics/lib.js.map +1 -1
  26. package/dist/cli/common/logger.js +0 -1
  27. package/dist/cli/common/logger.js.map +1 -1
  28. package/dist/cli/common/machine-id/lib.js +3 -2
  29. package/dist/cli/common/machine-id/lib.js.map +1 -1
  30. package/dist/cli/common/outdated.js +2 -1
  31. package/dist/cli/common/outdated.js.map +1 -1
  32. package/dist/cli/common/output.js +2 -3
  33. package/dist/cli/common/output.js.map +1 -1
  34. package/dist/cli/common/utils/box.js +2 -2
  35. package/dist/cli/common/utils/box.js.map +1 -1
  36. package/dist/cli/common/validators/lib.js +1 -1
  37. package/dist/cli/common/validators/lib.js.map +1 -1
  38. package/dist/cli/common/version-check.d.ts +2 -0
  39. package/dist/cli/common/version-check.js +58 -0
  40. package/dist/cli/common/version-check.js.map +1 -0
  41. package/dist/cli/dev/handler.js +0 -4
  42. package/dist/cli/dev/handler.js.map +1 -1
  43. package/dist/codegen.js +2 -2
  44. package/dist/codegen.js.map +1 -1
  45. package/dist/config/config.d.ts +15 -41
  46. package/dist/config/loader.js.map +1 -1
  47. package/dist/config/validators/BuildSchema.d.ts +16 -8
  48. package/dist/config/validators/BuildSchema.js +22 -5
  49. package/dist/config/validators/BuildSchema.js.map +1 -1
  50. package/dist/config/validators/InputNavigationSchema.d.ts +260 -78
  51. package/dist/config/validators/InputNavigationSchema.js +5 -2
  52. package/dist/config/validators/InputNavigationSchema.js.map +1 -1
  53. package/dist/config/validators/InputNavigationSchema.test-d.js +2 -1
  54. package/dist/config/validators/InputNavigationSchema.test-d.js.map +1 -1
  55. package/dist/config/validators/NavigationSchema.d.ts +1 -1
  56. package/dist/config/validators/NavigationSchema.js +2 -2
  57. package/dist/config/validators/NavigationSchema.js.map +1 -1
  58. package/dist/config/validators/ProtectedRoutesSchema.d.ts +2 -2
  59. package/dist/config/validators/ProtectedRoutesSchema.js +1 -1
  60. package/dist/config/validators/ProtectedRoutesSchema.js.map +1 -1
  61. package/dist/config/validators/auth.d.ts +2 -2
  62. package/dist/config/validators/auth.js +1 -1
  63. package/dist/config/validators/auth.js.map +1 -1
  64. package/dist/config/validators/icon-types.d.ts +1 -1
  65. package/dist/config/validators/icon-types.js +43 -0
  66. package/dist/config/validators/icon-types.js.map +1 -1
  67. package/dist/config/validators/validate.d.ts +202 -20
  68. package/dist/config/validators/validate.js +70 -11
  69. package/dist/config/validators/validate.js.map +1 -1
  70. package/dist/config/validators/validate.test.js +1 -2
  71. package/dist/config/validators/validate.test.js.map +1 -1
  72. package/dist/flat-config.d.ts +52 -3
  73. package/dist/index.d.ts +5 -5
  74. package/dist/index.js +2 -2
  75. package/dist/index.js.map +1 -1
  76. package/dist/lib/MissingIcon.d.ts +1 -1
  77. package/dist/lib/MissingIcon.js.map +1 -1
  78. package/dist/lib/assets/language-icons/c.d.ts +3 -0
  79. package/dist/lib/assets/language-icons/c.js +4 -0
  80. package/dist/lib/assets/language-icons/c.js.map +1 -0
  81. package/dist/lib/assets/language-icons/commonlisp.d.ts +3 -0
  82. package/dist/lib/assets/language-icons/commonlisp.js +4 -0
  83. package/dist/lib/assets/language-icons/commonlisp.js.map +1 -0
  84. package/dist/lib/assets/language-icons/cpp.d.ts +3 -0
  85. package/dist/lib/assets/language-icons/cpp.js +4 -0
  86. package/dist/lib/assets/language-icons/cpp.js.map +1 -0
  87. package/dist/lib/assets/language-icons/csharp.d.ts +3 -0
  88. package/dist/lib/assets/language-icons/csharp.js +4 -0
  89. package/dist/lib/assets/language-icons/csharp.js.map +1 -0
  90. package/dist/lib/assets/language-icons/css.d.ts +3 -0
  91. package/dist/lib/assets/language-icons/css.js +4 -0
  92. package/dist/lib/assets/language-icons/css.js.map +1 -0
  93. package/dist/lib/assets/language-icons/dart.d.ts +3 -0
  94. package/dist/lib/assets/language-icons/dart.js +4 -0
  95. package/dist/lib/assets/language-icons/dart.js.map +1 -0
  96. package/dist/lib/assets/language-icons/elixir.d.ts +3 -0
  97. package/dist/lib/assets/language-icons/elixir.js +4 -0
  98. package/dist/lib/assets/language-icons/elixir.js.map +1 -0
  99. package/dist/lib/assets/language-icons/go.d.ts +3 -0
  100. package/dist/lib/assets/language-icons/go.js +4 -0
  101. package/dist/lib/assets/language-icons/go.js.map +1 -0
  102. package/dist/lib/assets/language-icons/graphql.d.ts +3 -0
  103. package/dist/lib/assets/language-icons/graphql.js +4 -0
  104. package/dist/lib/assets/language-icons/graphql.js.map +1 -0
  105. package/dist/lib/assets/language-icons/html.d.ts +3 -0
  106. package/dist/lib/assets/language-icons/html.js +4 -0
  107. package/dist/lib/assets/language-icons/html.js.map +1 -0
  108. package/dist/lib/assets/language-icons/java.d.ts +3 -0
  109. package/dist/lib/assets/language-icons/java.js +4 -0
  110. package/dist/lib/assets/language-icons/java.js.map +1 -0
  111. package/dist/lib/assets/language-icons/javascript.d.ts +3 -0
  112. package/dist/lib/assets/language-icons/javascript.js +4 -0
  113. package/dist/lib/assets/language-icons/javascript.js.map +1 -0
  114. package/dist/lib/assets/language-icons/json.d.ts +3 -0
  115. package/dist/lib/assets/language-icons/json.js +4 -0
  116. package/dist/lib/assets/language-icons/json.js.map +1 -0
  117. package/dist/lib/assets/language-icons/kotlin.d.ts +3 -0
  118. package/dist/lib/assets/language-icons/kotlin.js +4 -0
  119. package/dist/lib/assets/language-icons/kotlin.js.map +1 -0
  120. package/dist/lib/assets/language-icons/markdown.d.ts +3 -0
  121. package/dist/lib/assets/language-icons/markdown.js +4 -0
  122. package/dist/lib/assets/language-icons/markdown.js.map +1 -0
  123. package/dist/lib/assets/language-icons/mdx.d.ts +3 -0
  124. package/dist/lib/assets/language-icons/mdx.js +4 -0
  125. package/dist/lib/assets/language-icons/mdx.js.map +1 -0
  126. package/dist/lib/assets/language-icons/objectivec.d.ts +3 -0
  127. package/dist/lib/assets/language-icons/objectivec.js +4 -0
  128. package/dist/lib/assets/language-icons/objectivec.js.map +1 -0
  129. package/dist/lib/assets/language-icons/ocaml.d.ts +3 -0
  130. package/dist/lib/assets/language-icons/ocaml.js +4 -0
  131. package/dist/lib/assets/language-icons/ocaml.js.map +1 -0
  132. package/dist/lib/assets/language-icons/php.d.ts +3 -0
  133. package/dist/lib/assets/language-icons/php.js +4 -0
  134. package/dist/lib/assets/language-icons/php.js.map +1 -0
  135. package/dist/lib/assets/language-icons/powershell.d.ts +3 -0
  136. package/dist/lib/assets/language-icons/powershell.js +4 -0
  137. package/dist/lib/assets/language-icons/powershell.js.map +1 -0
  138. package/dist/lib/assets/language-icons/python.d.ts +3 -0
  139. package/dist/lib/assets/language-icons/python.js +4 -0
  140. package/dist/lib/assets/language-icons/python.js.map +1 -0
  141. package/dist/lib/assets/language-icons/react.d.ts +3 -0
  142. package/dist/lib/assets/language-icons/react.js +4 -0
  143. package/dist/lib/assets/language-icons/react.js.map +1 -0
  144. package/dist/lib/assets/language-icons/ruby.d.ts +3 -0
  145. package/dist/lib/assets/language-icons/ruby.js +4 -0
  146. package/dist/lib/assets/language-icons/ruby.js.map +1 -0
  147. package/dist/lib/assets/language-icons/rust.d.ts +3 -0
  148. package/dist/lib/assets/language-icons/rust.js +4 -0
  149. package/dist/lib/assets/language-icons/rust.js.map +1 -0
  150. package/dist/lib/assets/language-icons/scala.d.ts +3 -0
  151. package/dist/lib/assets/language-icons/scala.js +4 -0
  152. package/dist/lib/assets/language-icons/scala.js.map +1 -0
  153. package/dist/lib/assets/language-icons/shell.d.ts +3 -0
  154. package/dist/lib/assets/language-icons/shell.js +4 -0
  155. package/dist/lib/assets/language-icons/shell.js.map +1 -0
  156. package/dist/lib/assets/language-icons/swift.d.ts +3 -0
  157. package/dist/lib/assets/language-icons/swift.js +4 -0
  158. package/dist/lib/assets/language-icons/swift.js.map +1 -0
  159. package/dist/lib/assets/language-icons/toml.d.ts +3 -0
  160. package/dist/lib/assets/language-icons/toml.js +4 -0
  161. package/dist/lib/assets/language-icons/toml.js.map +1 -0
  162. package/dist/lib/assets/language-icons/typescript.d.ts +3 -0
  163. package/dist/lib/assets/language-icons/typescript.js +4 -0
  164. package/dist/lib/assets/language-icons/typescript.js.map +1 -0
  165. package/dist/lib/assets/language-icons/xml.d.ts +3 -0
  166. package/dist/lib/assets/language-icons/xml.js +4 -0
  167. package/dist/lib/assets/language-icons/xml.js.map +1 -0
  168. package/dist/lib/assets/language-icons/yaml.d.ts +3 -0
  169. package/dist/lib/assets/language-icons/yaml.js +4 -0
  170. package/dist/lib/assets/language-icons/yaml.js.map +1 -0
  171. package/dist/lib/assets/language-icons/zig.d.ts +3 -0
  172. package/dist/lib/assets/language-icons/zig.js +4 -0
  173. package/dist/lib/assets/language-icons/zig.js.map +1 -0
  174. package/dist/lib/auth/issuer.js +3 -0
  175. package/dist/lib/auth/issuer.js.map +1 -1
  176. package/dist/lib/auth/issuer.test.js +1 -0
  177. package/dist/lib/auth/issuer.test.js.map +1 -1
  178. package/dist/lib/authentication/AuthenticationPlugin.d.ts +1 -1
  179. package/dist/lib/authentication/authentication.d.ts +19 -13
  180. package/dist/lib/authentication/components/OAuthErrorPage.d.ts +1 -1
  181. package/dist/lib/authentication/components/OAuthErrorPage.js +1 -1
  182. package/dist/lib/authentication/components/OAuthErrorPage.js.map +1 -1
  183. package/dist/lib/authentication/components/SignIn.js +6 -5
  184. package/dist/lib/authentication/components/SignIn.js.map +1 -1
  185. package/dist/lib/authentication/components/SignOut.js +6 -6
  186. package/dist/lib/authentication/components/SignOut.js.map +1 -1
  187. package/dist/lib/authentication/components/SignUp.js +5 -5
  188. package/dist/lib/authentication/components/SignUp.js.map +1 -1
  189. package/dist/lib/authentication/hook.d.ts +3 -2
  190. package/dist/lib/authentication/hook.js +12 -8
  191. package/dist/lib/authentication/hook.js.map +1 -1
  192. package/dist/lib/authentication/providers/auth0.d.ts +2 -2
  193. package/dist/lib/authentication/providers/auth0.js +9 -5
  194. package/dist/lib/authentication/providers/auth0.js.map +1 -1
  195. package/dist/lib/authentication/providers/azureb2c.d.ts +5 -5
  196. package/dist/lib/authentication/providers/azureb2c.js +3 -3
  197. package/dist/lib/authentication/providers/azureb2c.js.map +1 -1
  198. package/dist/lib/authentication/providers/clerk.d.ts +2 -2
  199. package/dist/lib/authentication/providers/clerk.js +2 -2
  200. package/dist/lib/authentication/providers/clerk.js.map +1 -1
  201. package/dist/lib/authentication/providers/firebase.d.ts +4 -0
  202. package/dist/lib/authentication/providers/firebase.js +215 -0
  203. package/dist/lib/authentication/providers/firebase.js.map +1 -0
  204. package/dist/lib/authentication/providers/openid.d.ts +8 -8
  205. package/dist/lib/authentication/providers/openid.js +5 -3
  206. package/dist/lib/authentication/providers/openid.js.map +1 -1
  207. package/dist/lib/authentication/providers/supabase/SupabaseAuthUI.d.ts +8 -0
  208. package/dist/lib/authentication/providers/supabase/SupabaseAuthUI.js +39 -0
  209. package/dist/lib/authentication/providers/supabase/SupabaseAuthUI.js.map +1 -0
  210. package/dist/lib/authentication/providers/supabase.d.ts +2 -2
  211. package/dist/lib/authentication/providers/supabase.js +30 -30
  212. package/dist/lib/authentication/providers/supabase.js.map +1 -1
  213. package/dist/lib/authentication/state.d.ts +5 -7
  214. package/dist/lib/authentication/state.js +2 -14
  215. package/dist/lib/authentication/state.js.map +1 -1
  216. package/dist/lib/authentication/ui/ZudokuAuthUi.d.ts +24 -0
  217. package/dist/lib/authentication/ui/ZudokuAuthUi.js +124 -0
  218. package/dist/lib/authentication/ui/ZudokuAuthUi.js.map +1 -0
  219. package/dist/lib/authentication/ui/icons/Apple.d.ts +3 -0
  220. package/dist/lib/authentication/ui/icons/Apple.js +4 -0
  221. package/dist/lib/authentication/ui/icons/Apple.js.map +1 -0
  222. package/dist/lib/authentication/ui/icons/Facebook.d.ts +3 -0
  223. package/dist/lib/authentication/ui/icons/Facebook.js +4 -0
  224. package/dist/lib/authentication/ui/icons/Facebook.js.map +1 -0
  225. package/dist/lib/authentication/ui/icons/Github.d.ts +3 -0
  226. package/dist/lib/authentication/ui/icons/Github.js +4 -0
  227. package/dist/lib/authentication/ui/icons/Github.js.map +1 -0
  228. package/dist/lib/authentication/ui/icons/Google.d.ts +3 -0
  229. package/dist/lib/authentication/ui/icons/Google.js +4 -0
  230. package/dist/lib/authentication/ui/icons/Google.js.map +1 -0
  231. package/dist/lib/authentication/ui/icons/Microsoft.d.ts +3 -0
  232. package/dist/lib/authentication/ui/icons/Microsoft.js +4 -0
  233. package/dist/lib/authentication/ui/icons/Microsoft.js.map +1 -0
  234. package/dist/lib/authentication/ui/icons/X.d.ts +3 -0
  235. package/dist/lib/authentication/ui/icons/X.js +4 -0
  236. package/dist/lib/authentication/ui/icons/X.js.map +1 -0
  237. package/dist/lib/authentication/use-broadcast/shared.d.ts +1 -1
  238. package/dist/lib/authentication/use-broadcast/shared.js +3 -3
  239. package/dist/lib/authentication/use-broadcast/shared.js.map +1 -1
  240. package/dist/lib/authentication/use-broadcast/useBroadcast.js +2 -2
  241. package/dist/lib/authentication/use-broadcast/useBroadcast.js.map +1 -1
  242. package/dist/lib/components/Autocomplete.d.ts +3 -1
  243. package/dist/lib/components/Autocomplete.js +6 -2
  244. package/dist/lib/components/Autocomplete.js.map +1 -1
  245. package/dist/lib/components/Bootstrap.js.map +1 -1
  246. package/dist/lib/components/BuildCheck.js +4 -3
  247. package/dist/lib/components/BuildCheck.js.map +1 -1
  248. package/dist/lib/components/Header.js +1 -3
  249. package/dist/lib/components/Header.js.map +1 -1
  250. package/dist/lib/components/Heading.d.ts +2 -2
  251. package/dist/lib/components/Heading.js +2 -6
  252. package/dist/lib/components/Heading.js.map +1 -1
  253. package/dist/lib/components/LanguageIcon.d.ts +3 -0
  254. package/dist/lib/components/LanguageIcon.js +163 -0
  255. package/dist/lib/components/LanguageIcon.js.map +1 -0
  256. package/dist/lib/components/Layout.js.map +1 -1
  257. package/dist/lib/components/Main.js +1 -1
  258. package/dist/lib/components/Main.js.map +1 -1
  259. package/dist/lib/components/Markdown.js +2 -2
  260. package/dist/lib/components/Markdown.js.map +1 -1
  261. package/dist/lib/components/Meta.js +1 -1
  262. package/dist/lib/components/Meta.js.map +1 -1
  263. package/dist/lib/components/MobileTopNavigation.js +4 -4
  264. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  265. package/dist/lib/components/PathRenderer.js +1 -1
  266. package/dist/lib/components/PathRenderer.js.map +1 -1
  267. package/dist/lib/components/Search.js +1 -1
  268. package/dist/lib/components/Search.js.map +1 -1
  269. package/dist/lib/components/Slot.js.map +1 -1
  270. package/dist/lib/components/Slot.test.js +7 -3
  271. package/dist/lib/components/Slot.test.js.map +1 -1
  272. package/dist/lib/components/TopNavigation.d.ts +1 -1
  273. package/dist/lib/components/TopNavigation.js +2 -2
  274. package/dist/lib/components/TopNavigation.js.map +1 -1
  275. package/dist/lib/components/Zudoku.js +5 -5
  276. package/dist/lib/components/Zudoku.js.map +1 -1
  277. package/dist/lib/components/cache.d.ts +3 -1
  278. package/dist/lib/components/cache.js +3 -5
  279. package/dist/lib/components/cache.js.map +1 -1
  280. package/dist/lib/components/context/ComponentsContext.js.map +1 -1
  281. package/dist/lib/components/context/RouterEventsEmitter.js.map +1 -1
  282. package/dist/lib/components/context/SlotProvider.js.map +1 -1
  283. package/dist/lib/components/context/ViewportAnchorContext.js +1 -1
  284. package/dist/lib/components/context/ViewportAnchorContext.js.map +1 -1
  285. package/dist/lib/components/context/ZudokuContext.d.ts +1 -1
  286. package/dist/lib/components/context/ZudokuContext.js +10 -2
  287. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  288. package/dist/lib/components/context/ZudokuProvider.d.ts +1 -1
  289. package/dist/lib/components/index.d.ts +14 -4
  290. package/dist/lib/components/index.js +3 -1
  291. package/dist/lib/components/index.js.map +1 -1
  292. package/dist/lib/components/navigation/NavigationCategory.js +6 -1
  293. package/dist/lib/components/navigation/NavigationCategory.js.map +1 -1
  294. package/dist/lib/components/navigation/NavigationItem.js +3 -3
  295. package/dist/lib/components/navigation/NavigationItem.js.map +1 -1
  296. package/dist/lib/components/navigation/NavigationWrapper.js.map +1 -1
  297. package/dist/lib/components/navigation/Toc.js +1 -1
  298. package/dist/lib/components/navigation/Toc.js.map +1 -1
  299. package/dist/lib/components/navigation/ZudokuLogo.d.ts +1 -1
  300. package/dist/lib/components/navigation/utils.d.ts +3 -3
  301. package/dist/lib/components/navigation/utils.js +1 -2
  302. package/dist/lib/components/navigation/utils.js.map +1 -1
  303. package/dist/lib/core/RouteGuard.d.ts +1 -1
  304. package/dist/lib/core/RouteGuard.js +12 -20
  305. package/dist/lib/core/RouteGuard.js.map +1 -1
  306. package/dist/lib/core/ZudokuContext.d.ts +2 -1
  307. package/dist/lib/core/ZudokuContext.js +3 -0
  308. package/dist/lib/core/ZudokuContext.js.map +1 -1
  309. package/dist/lib/core/__internal.d.ts +1 -1
  310. package/dist/lib/errors/ErrorAlert.js +1 -2
  311. package/dist/lib/errors/ErrorAlert.js.map +1 -1
  312. package/dist/lib/errors/RouterError.d.ts +3 -1
  313. package/dist/lib/errors/RouterError.js +3 -2
  314. package/dist/lib/errors/RouterError.js.map +1 -1
  315. package/dist/lib/errors/TopLevelError.d.ts +2 -2
  316. package/dist/lib/errors/TopLevelError.js +1 -2
  317. package/dist/lib/errors/TopLevelError.js.map +1 -1
  318. package/dist/lib/hooks/index.d.ts +3 -3
  319. package/dist/lib/oas/graphql/circular.js +2 -2
  320. package/dist/lib/oas/graphql/circular.js.map +1 -1
  321. package/dist/lib/oas/graphql/index.js +39 -3
  322. package/dist/lib/oas/graphql/index.js.map +1 -1
  323. package/dist/lib/oas/parser/dereference/index.js +2 -1
  324. package/dist/lib/oas/parser/dereference/index.js.map +1 -1
  325. package/dist/lib/oas/parser/dereference/resolveRef.js +3 -3
  326. package/dist/lib/oas/parser/dereference/resolveRef.js.map +1 -1
  327. package/dist/lib/oas/parser/index.js +8 -4
  328. package/dist/lib/oas/parser/index.js.map +1 -1
  329. package/dist/lib/oas/parser/upgrade/index.js +2 -1
  330. package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
  331. package/dist/lib/plugins/api-catalog/Catalog.js +7 -1
  332. package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -1
  333. package/dist/lib/plugins/api-keys/CreateApiKey.d.ts +1 -1
  334. package/dist/lib/plugins/api-keys/CreateApiKeyDialog.d.ts +11 -0
  335. package/dist/lib/plugins/api-keys/CreateApiKeyDialog.js +9 -0
  336. package/dist/lib/plugins/api-keys/CreateApiKeyDialog.js.map +1 -0
  337. package/dist/lib/plugins/api-keys/ProtectedRoute.js +4 -1
  338. package/dist/lib/plugins/api-keys/ProtectedRoute.js.map +1 -1
  339. package/dist/lib/plugins/api-keys/SettingsApiKeys.d.ts +1 -1
  340. package/dist/lib/plugins/api-keys/SettingsApiKeys.js +10 -16
  341. package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
  342. package/dist/lib/plugins/api-keys/index.d.ts +3 -3
  343. package/dist/lib/plugins/api-keys/index.js +1 -1
  344. package/dist/lib/plugins/api-keys/index.js.map +1 -1
  345. package/dist/lib/plugins/custom-pages/index.d.ts +1 -1
  346. package/dist/lib/plugins/markdown/MdxPage.d.ts +3 -2
  347. package/dist/lib/plugins/markdown/MdxPage.js +32 -8
  348. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  349. package/dist/lib/plugins/markdown/assets/ChatGPTLogo.d.ts +2 -0
  350. package/dist/lib/plugins/markdown/assets/ChatGPTLogo.js +3 -0
  351. package/dist/lib/plugins/markdown/assets/ChatGPTLogo.js.map +1 -0
  352. package/dist/lib/plugins/markdown/assets/ClaudeLogo.d.ts +2 -0
  353. package/dist/lib/plugins/markdown/assets/ClaudeLogo.js +3 -0
  354. package/dist/lib/plugins/markdown/assets/ClaudeLogo.js.map +1 -0
  355. package/dist/lib/plugins/markdown/index.d.ts +4 -2
  356. package/dist/lib/plugins/markdown/index.js +1 -1
  357. package/dist/lib/plugins/markdown/index.js.map +1 -1
  358. package/dist/lib/plugins/openapi/CollapsibleCode.d.ts +1 -0
  359. package/dist/lib/plugins/openapi/CollapsibleCode.js +2 -1
  360. package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -1
  361. package/dist/lib/plugins/openapi/ColorizedParam.js +4 -1
  362. package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
  363. package/dist/lib/plugins/openapi/Endpoint.js +2 -2
  364. package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
  365. package/dist/lib/plugins/openapi/GeneratedExampleSidecarBox.d.ts +5 -0
  366. package/dist/lib/plugins/openapi/GeneratedExampleSidecarBox.js +10 -0
  367. package/dist/lib/plugins/openapi/GeneratedExampleSidecarBox.js.map +1 -0
  368. package/dist/lib/plugins/openapi/MCPEndpoint.d.ts +5 -0
  369. package/dist/lib/plugins/openapi/MCPEndpoint.js +56 -0
  370. package/dist/lib/plugins/openapi/MCPEndpoint.js.map +1 -0
  371. package/dist/lib/plugins/openapi/OasProvider.d.ts +1 -1
  372. package/dist/lib/plugins/openapi/OasProvider.js +1 -0
  373. package/dist/lib/plugins/openapi/OasProvider.js.map +1 -1
  374. package/dist/lib/plugins/openapi/OperationList.d.ts +0 -2
  375. package/dist/lib/plugins/openapi/OperationList.js +31 -8
  376. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  377. package/dist/lib/plugins/openapi/OperationListItem.d.ts +4 -3
  378. package/dist/lib/plugins/openapi/OperationListItem.js +12 -5
  379. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  380. package/dist/lib/plugins/openapi/ParamInfos.d.ts +1 -1
  381. package/dist/lib/plugins/openapi/ParamInfos.js +11 -9
  382. package/dist/lib/plugins/openapi/ParamInfos.js.map +1 -1
  383. package/dist/lib/plugins/openapi/ParameterList.d.ts +2 -2
  384. package/dist/lib/plugins/openapi/ParameterList.js +1 -1
  385. package/dist/lib/plugins/openapi/ParameterList.js.map +1 -1
  386. package/dist/lib/plugins/openapi/ParameterListItem.d.ts +2 -3
  387. package/dist/lib/plugins/openapi/ParameterListItem.js +1 -1
  388. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  389. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.d.ts +3 -4
  390. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +3 -5
  391. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
  392. package/dist/lib/plugins/openapi/RequestBodySidecarBox.d.ts +11 -4
  393. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +2 -2
  394. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
  395. package/dist/lib/plugins/openapi/ResponsesSidecarBox.d.ts +3 -1
  396. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +14 -2
  397. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
  398. package/dist/lib/plugins/openapi/Sidecar.d.ts +5 -3
  399. package/dist/lib/plugins/openapi/Sidecar.js +54 -30
  400. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  401. package/dist/lib/plugins/openapi/SidecarExamples.d.ts +11 -6
  402. package/dist/lib/plugins/openapi/SidecarExamples.js +15 -33
  403. package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -1
  404. package/dist/lib/plugins/openapi/StaggeredRender.d.ts +1 -1
  405. package/dist/lib/plugins/openapi/client/GraphQLContext.d.ts +1 -1
  406. package/dist/lib/plugins/openapi/client/createServer.js +1 -2
  407. package/dist/lib/plugins/openapi/client/createServer.js.map +1 -1
  408. package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -1
  409. package/dist/lib/plugins/openapi/components/NonHighlightedCode.d.ts +4 -0
  410. package/dist/lib/plugins/openapi/components/NonHighlightedCode.js +5 -0
  411. package/dist/lib/plugins/openapi/components/NonHighlightedCode.js.map +1 -0
  412. package/dist/lib/plugins/openapi/components/ResponseContent.js +1 -1
  413. package/dist/lib/plugins/openapi/components/ResponseContent.js.map +1 -1
  414. package/dist/lib/plugins/openapi/context.d.ts +1 -1
  415. package/dist/lib/plugins/openapi/graphql/fragment-masking.d.ts +1 -1
  416. package/dist/lib/plugins/openapi/graphql/gql.d.ts +2 -2
  417. package/dist/lib/plugins/openapi/graphql/gql.js +2 -2
  418. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  419. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +11 -2
  420. package/dist/lib/plugins/openapi/graphql/graphql.js +11 -0
  421. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
  422. package/dist/lib/plugins/openapi/index.d.ts +2 -2
  423. package/dist/lib/plugins/openapi/index.js +7 -11
  424. package/dist/lib/plugins/openapi/index.js.map +1 -1
  425. package/dist/lib/plugins/openapi/interfaces.d.ts +18 -4
  426. package/dist/lib/plugins/openapi/playground/BodyPanel.d.ts +2 -2
  427. package/dist/lib/plugins/openapi/playground/BodyPanel.js +67 -15
  428. package/dist/lib/plugins/openapi/playground/BodyPanel.js.map +1 -1
  429. package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js +2 -2
  430. package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js.map +1 -1
  431. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.d.ts +3 -3
  432. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +1 -1
  433. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -1
  434. package/dist/lib/plugins/openapi/playground/Headers.d.ts +1 -1
  435. package/dist/lib/plugins/openapi/playground/Headers.js +23 -83
  436. package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
  437. package/dist/lib/plugins/openapi/playground/IdentityDialog.d.ts +1 -1
  438. package/dist/lib/plugins/openapi/playground/IdentitySelector.d.ts +1 -1
  439. package/dist/lib/plugins/openapi/playground/ParamsGrid.d.ts +10 -2
  440. package/dist/lib/plugins/openapi/playground/ParamsGrid.js +8 -1
  441. package/dist/lib/plugins/openapi/playground/ParamsGrid.js.map +1 -1
  442. package/dist/lib/plugins/openapi/playground/PathParams.js +2 -3
  443. package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
  444. package/dist/lib/plugins/openapi/playground/Playground.d.ts +9 -2
  445. package/dist/lib/plugins/openapi/playground/Playground.js +70 -32
  446. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  447. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +3 -1
  448. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
  449. package/dist/lib/plugins/openapi/playground/QueryParams.d.ts +1 -1
  450. package/dist/lib/plugins/openapi/playground/QueryParams.js +16 -40
  451. package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
  452. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.d.ts +2 -1
  453. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js +10 -2
  454. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js.map +1 -1
  455. package/dist/lib/plugins/openapi/playground/rememberedIdentity.d.ts +5 -3
  456. package/dist/lib/plugins/openapi/playground/request-panel/MultipartField.d.ts +8 -0
  457. package/dist/lib/plugins/openapi/playground/request-panel/MultipartField.js +19 -0
  458. package/dist/lib/plugins/openapi/playground/request-panel/MultipartField.js.map +1 -0
  459. package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.js +1 -1
  460. package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.js.map +1 -1
  461. package/dist/lib/plugins/openapi/playground/request-panel/fieldManager/useKeyValueFieldManager.test.d.ts +1 -0
  462. package/dist/lib/plugins/openapi/playground/request-panel/fieldManager/useKeyValueFieldManager.test.js +540 -0
  463. package/dist/lib/plugins/openapi/playground/request-panel/fieldManager/useKeyValueFieldManager.test.js.map +1 -0
  464. package/dist/lib/plugins/openapi/playground/request-panel/useKeyValueFieldManager.d.ts +40 -0
  465. package/dist/lib/plugins/openapi/playground/request-panel/useKeyValueFieldManager.js +205 -0
  466. package/dist/lib/plugins/openapi/playground/request-panel/useKeyValueFieldManager.js.map +1 -0
  467. package/dist/lib/plugins/openapi/playground/result-panel/Highlight.d.ts +1 -1
  468. package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.js +4 -2
  469. package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.js.map +1 -1
  470. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +33 -19
  471. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -1
  472. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.d.ts +2 -2
  473. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +1 -1
  474. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -1
  475. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.d.ts +1 -1
  476. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js +1 -1
  477. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js.map +1 -1
  478. package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.d.ts +5 -3
  479. package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js +2 -0
  480. package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js.map +1 -1
  481. package/dist/lib/plugins/openapi/processors/removeExtensions.test.js +1 -0
  482. package/dist/lib/plugins/openapi/processors/removeExtensions.test.js.map +1 -1
  483. package/dist/lib/plugins/openapi/processors/removeParameters.test.js +1 -0
  484. package/dist/lib/plugins/openapi/processors/removeParameters.test.js.map +1 -1
  485. package/dist/lib/plugins/openapi/processors/traverse.d.ts +1 -1
  486. package/dist/lib/plugins/openapi/processors/traverse.js.map +1 -1
  487. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.d.ts +0 -3
  488. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +6 -15
  489. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -1
  490. package/dist/lib/plugins/openapi/schema/SchemaView.d.ts +2 -1
  491. package/dist/lib/plugins/openapi/schema/SchemaView.js +12 -11
  492. package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
  493. package/dist/lib/plugins/openapi/schema/UnionView.d.ts +5 -0
  494. package/dist/lib/plugins/openapi/schema/UnionView.js +36 -0
  495. package/dist/lib/plugins/openapi/schema/UnionView.js.map +1 -0
  496. package/dist/lib/plugins/openapi/schema/union-helpers.d.ts +28 -0
  497. package/dist/lib/plugins/openapi/schema/union-helpers.js +71 -0
  498. package/dist/lib/plugins/openapi/schema/union-helpers.js.map +1 -0
  499. package/dist/lib/plugins/openapi/schema/utils.d.ts +0 -7
  500. package/dist/lib/plugins/openapi/schema/utils.js +0 -6
  501. package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
  502. package/dist/lib/plugins/openapi/state.d.ts +5 -3
  503. package/dist/lib/plugins/openapi/util/createHttpSnippet.d.ts +1 -1
  504. package/dist/lib/plugins/openapi/util/createHttpSnippet.js +1 -1
  505. package/dist/lib/plugins/openapi/util/createHttpSnippet.js.map +1 -1
  506. package/dist/lib/plugins/openapi/util/createNavigationCategory.js +1 -0
  507. package/dist/lib/plugins/openapi/util/createNavigationCategory.js.map +1 -1
  508. package/dist/lib/plugins/openapi/util/generateSchemaExample.d.ts +1 -1
  509. package/dist/lib/plugins/openapi/util/generateSchemaExample.js +10 -13
  510. package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
  511. package/dist/lib/plugins/openapi/util/getRoutes.js +1 -1
  512. package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -1
  513. package/dist/lib/plugins/openapi/util/methodColorMap.d.ts +1 -1
  514. package/dist/lib/plugins/search-inkeep/index.js +1 -1
  515. package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
  516. package/dist/lib/plugins/search-pagefind/PagefindSearch.js +1 -1
  517. package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -1
  518. package/dist/lib/plugins/search-pagefind/ResultList.d.ts +1 -1
  519. package/dist/lib/plugins/search-pagefind/ResultList.js +4 -1
  520. package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -1
  521. package/dist/lib/plugins/search-pagefind/get-results.js +0 -1
  522. package/dist/lib/plugins/search-pagefind/get-results.js.map +1 -1
  523. package/dist/lib/shiki.d.ts +3 -6
  524. package/dist/lib/shiki.js +29 -8
  525. package/dist/lib/shiki.js.map +1 -1
  526. package/dist/lib/ui/Breadcrumb.js +1 -1
  527. package/dist/lib/ui/Breadcrumb.js.map +1 -1
  528. package/dist/lib/ui/Button.d.ts +1 -1
  529. package/dist/lib/ui/Button.js +1 -0
  530. package/dist/lib/ui/Button.js.map +1 -1
  531. package/dist/lib/ui/Callout.d.ts +5 -5
  532. package/dist/lib/ui/Callout.js +5 -5
  533. package/dist/lib/ui/Callout.js.map +1 -1
  534. package/dist/lib/ui/Checkbox.d.ts +2 -2
  535. package/dist/lib/ui/Checkbox.js +4 -4
  536. package/dist/lib/ui/Checkbox.js.map +1 -1
  537. package/dist/lib/ui/CodeBlock.d.ts +1 -2
  538. package/dist/lib/ui/CodeBlock.js +3 -28
  539. package/dist/lib/ui/CodeBlock.js.map +1 -1
  540. package/dist/lib/ui/Command.d.ts +5 -5
  541. package/dist/lib/ui/Command.js +2 -6
  542. package/dist/lib/ui/Command.js.map +1 -1
  543. package/dist/lib/ui/Dialog.d.ts +12 -18
  544. package/dist/lib/ui/Dialog.js +30 -17
  545. package/dist/lib/ui/Dialog.js.map +1 -1
  546. package/dist/lib/ui/EmbeddedCodeBlock.d.ts +3 -2
  547. package/dist/lib/ui/EmbeddedCodeBlock.js +2 -2
  548. package/dist/lib/ui/EmbeddedCodeBlock.js.map +1 -1
  549. package/dist/lib/ui/Form.d.ts +2 -2
  550. package/dist/lib/ui/Pagination.d.ts +1 -1
  551. package/dist/lib/ui/Pagination.js +1 -1
  552. package/dist/lib/ui/Pagination.js.map +1 -1
  553. package/dist/lib/ui/ReactComponentDoc.d.ts +20 -0
  554. package/dist/lib/ui/ReactComponentDoc.js +10 -0
  555. package/dist/lib/ui/ReactComponentDoc.js.map +1 -0
  556. package/dist/lib/ui/Secret.d.ts +18 -0
  557. package/dist/lib/ui/Secret.js +26 -0
  558. package/dist/lib/ui/Secret.js.map +1 -0
  559. package/dist/lib/ui/Separator.d.ts +4 -0
  560. package/dist/lib/ui/Separator.js +8 -0
  561. package/dist/lib/ui/Separator.js.map +1 -0
  562. package/dist/lib/ui/SyntaxHighlight.d.ts +1 -0
  563. package/dist/lib/ui/SyntaxHighlight.js.map +1 -1
  564. package/dist/lib/ui/ToggleGroup.d.ts +1 -1
  565. package/dist/lib/ui/Tooltip.d.ts +7 -7
  566. package/dist/lib/ui/Tooltip.js +16 -10
  567. package/dist/lib/ui/Tooltip.js.map +1 -1
  568. package/dist/lib/ui/Value.d.ts +5 -0
  569. package/dist/lib/ui/Value.js +13 -0
  570. package/dist/lib/ui/Value.js.map +1 -0
  571. package/dist/lib/util/MdxComponents.d.ts +3 -2
  572. package/dist/lib/util/MdxComponents.js +7 -4
  573. package/dist/lib/util/MdxComponents.js.map +1 -1
  574. package/dist/lib/util/cn.js.map +1 -1
  575. package/dist/lib/util/createVariantComponent.d.ts +7 -4
  576. package/dist/lib/util/createVariantComponent.js +5 -2
  577. package/dist/lib/util/createVariantComponent.js.map +1 -1
  578. package/dist/lib/util/flattenAllOf.d.ts +4 -0
  579. package/dist/lib/util/flattenAllOf.js +65 -0
  580. package/dist/lib/util/flattenAllOf.js.map +1 -0
  581. package/dist/lib/util/flattenAllOf.test.d.ts +1 -0
  582. package/dist/lib/util/flattenAllOf.test.js +532 -0
  583. package/dist/lib/util/flattenAllOf.test.js.map +1 -0
  584. package/dist/lib/util/groupBy.js +1 -0
  585. package/dist/lib/util/groupBy.js.map +1 -1
  586. package/dist/lib/util/humanFileSize.js +1 -1
  587. package/dist/lib/util/humanFileSize.js.map +1 -1
  588. package/dist/lib/util/invariant.js +3 -1
  589. package/dist/lib/util/invariant.js.map +1 -1
  590. package/dist/lib/util/pastellize.js +4 -4
  591. package/dist/lib/util/pastellize.js.map +1 -1
  592. package/dist/lib/util/syncZustandState.d.ts +5 -0
  593. package/dist/lib/util/syncZustandState.js +14 -0
  594. package/dist/lib/util/syncZustandState.js.map +1 -0
  595. package/dist/lib/util/traverse.d.ts +1 -0
  596. package/dist/lib/util/traverse.js +25 -0
  597. package/dist/lib/util/traverse.js.map +1 -1
  598. package/dist/lib/util/useIsomorphicLayoutEffect.js.map +1 -1
  599. package/dist/lib/util/useScrollToAnchor.js +2 -0
  600. package/dist/lib/util/useScrollToAnchor.js.map +1 -1
  601. package/dist/ts.js +3 -3
  602. package/dist/ts.js.map +1 -1
  603. package/dist/vite/api/SchemaManager.d.ts +3 -1
  604. package/dist/vite/api/SchemaManager.js +43 -32
  605. package/dist/vite/api/SchemaManager.js.map +1 -1
  606. package/dist/vite/api/SchemaManager.test.js +2 -2
  607. package/dist/vite/api/SchemaManager.test.js.map +1 -1
  608. package/dist/vite/api/schema-codegen.js +60 -42
  609. package/dist/vite/api/schema-codegen.js.map +1 -1
  610. package/dist/vite/api/schema-codegen.test.js +76 -3
  611. package/dist/vite/api/schema-codegen.test.js.map +1 -1
  612. package/dist/vite/build.js +1 -1
  613. package/dist/vite/build.js.map +1 -1
  614. package/dist/vite/dev-server.js +2 -2
  615. package/dist/vite/dev-server.js.map +1 -1
  616. package/dist/vite/error-handler.d.ts +2 -2
  617. package/dist/vite/error-handler.js.map +1 -1
  618. package/dist/vite/llms.d.ts +12 -0
  619. package/dist/vite/llms.js +66 -0
  620. package/dist/vite/llms.js.map +1 -0
  621. package/dist/vite/mdx/remark-inject-filepath.js.map +1 -1
  622. package/dist/vite/mdx/remark-last-modified.js +57 -4
  623. package/dist/vite/mdx/remark-last-modified.js.map +1 -1
  624. package/dist/vite/mdx/remark-link-rewrite.js.map +1 -1
  625. package/dist/vite/mdx/remark-static-generation.js +1 -1
  626. package/dist/vite/mdx/remark-static-generation.js.map +1 -1
  627. package/dist/vite/output.d.ts +1 -1
  628. package/dist/vite/output.js +1 -1
  629. package/dist/vite/output.js.map +1 -1
  630. package/dist/vite/plugin-api-keys.d.ts +1 -1
  631. package/dist/vite/plugin-api-keys.js +1 -1
  632. package/dist/vite/plugin-api-keys.js.map +1 -1
  633. package/dist/vite/plugin-api.js +22 -21
  634. package/dist/vite/plugin-api.js.map +1 -1
  635. package/dist/vite/plugin-auth.d.ts +1 -1
  636. package/dist/vite/plugin-auth.js +1 -1
  637. package/dist/vite/plugin-auth.js.map +1 -1
  638. package/dist/vite/plugin-component.d.ts +1 -1
  639. package/dist/vite/plugin-config-reload.d.ts +1 -1
  640. package/dist/vite/plugin-custom-pages.d.ts +1 -1
  641. package/dist/vite/plugin-custom-pages.js +1 -1
  642. package/dist/vite/plugin-custom-pages.js.map +1 -1
  643. package/dist/vite/plugin-docs.d.ts +9 -0
  644. package/dist/vite/plugin-docs.js +70 -47
  645. package/dist/vite/plugin-docs.js.map +1 -1
  646. package/dist/vite/plugin-frontmatter.js +1 -1
  647. package/dist/vite/plugin-frontmatter.js.map +1 -1
  648. package/dist/vite/plugin-markdown-export.d.ts +21 -0
  649. package/dist/vite/plugin-markdown-export.js +141 -0
  650. package/dist/vite/plugin-markdown-export.js.map +1 -0
  651. package/dist/vite/plugin-mdx.d.ts +2 -2
  652. package/dist/vite/plugin-mdx.js +44 -34
  653. package/dist/vite/plugin-mdx.js.map +1 -1
  654. package/dist/vite/plugin-metadata.d.ts +1 -1
  655. package/dist/vite/plugin-navigation.d.ts +2 -2
  656. package/dist/vite/plugin-navigation.js +38 -35
  657. package/dist/vite/plugin-navigation.js.map +1 -1
  658. package/dist/vite/plugin-redirect.d.ts +1 -1
  659. package/dist/vite/plugin-redirect.js +1 -1
  660. package/dist/vite/plugin-redirect.js.map +1 -1
  661. package/dist/vite/plugin-search.d.ts +1 -1
  662. package/dist/vite/plugin-search.js +1 -1
  663. package/dist/vite/plugin-search.js.map +1 -1
  664. package/dist/vite/plugin-shiki-register.js +1 -1
  665. package/dist/vite/plugin-shiki-register.js.map +1 -1
  666. package/dist/vite/plugin-theme.js +16 -7
  667. package/dist/vite/plugin-theme.js.map +1 -1
  668. package/dist/vite/plugin-theme.test.js +2 -0
  669. package/dist/vite/plugin-theme.test.js.map +1 -1
  670. package/dist/vite/plugin.d.ts +1 -1
  671. package/dist/vite/plugin.js +4 -2
  672. package/dist/vite/plugin.js.map +1 -1
  673. package/dist/vite/prerender/FileWritingResponse.js +5 -3
  674. package/dist/vite/prerender/FileWritingResponse.js.map +1 -1
  675. package/dist/vite/prerender/InMemoryResponse.js +3 -1
  676. package/dist/vite/prerender/InMemoryResponse.js.map +1 -1
  677. package/dist/vite/prerender/prerender.js +38 -5
  678. package/dist/vite/prerender/prerender.js.map +1 -1
  679. package/dist/vite/prerender/worker.d.ts +1 -1
  680. package/dist/vite/prerender/worker.js.map +1 -1
  681. package/dist/vite/reporter.js +2 -2
  682. package/dist/vite/reporter.js.map +1 -1
  683. package/dist/vite/shadcn-registry.d.ts +8 -33
  684. package/dist/vite/sitemap.js +4 -4
  685. package/dist/vite/sitemap.js.map +1 -1
  686. package/dist/zuplo/enrich-with-zuplo-mcp.d.ts +4 -0
  687. package/dist/zuplo/enrich-with-zuplo-mcp.js +117 -0
  688. package/dist/zuplo/enrich-with-zuplo-mcp.js.map +1 -0
  689. package/dist/zuplo/enrich-with-zuplo.d.ts +1 -0
  690. package/dist/zuplo/enrich-with-zuplo.js +4 -4
  691. package/dist/zuplo/enrich-with-zuplo.js.map +1 -1
  692. package/dist/zuplo/policy-types.js +0 -1
  693. package/dist/zuplo/policy-types.js.map +1 -1
  694. package/dist/zuplo/with-zuplo-processors.js +2 -0
  695. package/dist/zuplo/with-zuplo-processors.js.map +1 -1
  696. package/dist/zuplo/with-zuplo.js +1 -1
  697. package/dist/zuplo/with-zuplo.js.map +1 -1
  698. package/lib/{Button-B3o-2Xdf.js → Button-B3ucvvQw.js} +7 -6
  699. package/lib/Button-B3ucvvQw.js.map +1 -0
  700. package/lib/{Card-CMDQUPM4.js → Card-KFniaZn5.js} +2 -2
  701. package/lib/{Card-CMDQUPM4.js.map → Card-KFniaZn5.js.map} +1 -1
  702. package/lib/{CategoryHeading-DCpZu3yG.js → CategoryHeading-DhmodDcq.js} +2 -2
  703. package/lib/{CategoryHeading-DCpZu3yG.js.map → CategoryHeading-DhmodDcq.js.map} +1 -1
  704. package/lib/{Command-CDn17s8X.js → Command-CUcrW3qs.js} +22 -28
  705. package/lib/Command-CUcrW3qs.js.map +1 -0
  706. package/lib/Dialog-BQciPiHN.js +144 -0
  707. package/lib/Dialog-BQciPiHN.js.map +1 -0
  708. package/lib/{Drawer-DJ05s2pH.js → Drawer-Ci7XwhqT.js} +2 -2
  709. package/lib/{Drawer-DJ05s2pH.js.map → Drawer-Ci7XwhqT.js.map} +1 -1
  710. package/lib/DropdownMenu-BZ2NKQ3K.js +126 -0
  711. package/lib/DropdownMenu-BZ2NKQ3K.js.map +1 -0
  712. package/lib/{Slot-DOtTvoyj.js → ErrorAlert-B4eXGBQj.js} +2413 -2431
  713. package/lib/ErrorAlert-B4eXGBQj.js.map +1 -0
  714. package/lib/MdxPage-BSxjb_Mb.js +240 -0
  715. package/lib/MdxPage-BSxjb_Mb.js.map +1 -0
  716. package/lib/{OAuthErrorPage-Jv3r8wnL.js → OAuthErrorPage-YbraVLZt.js} +9 -9
  717. package/lib/OAuthErrorPage-YbraVLZt.js.map +1 -0
  718. package/lib/{OasProvider-CA_lpILt.js → OasProvider-CgHWBl16.js} +5 -4
  719. package/lib/OasProvider-CgHWBl16.js.map +1 -0
  720. package/lib/OperationList-BNNhgkkk.js +5482 -0
  721. package/lib/OperationList-BNNhgkkk.js.map +1 -0
  722. package/lib/{Pagination-CBiRGddW.js → Pagination-BpxzD3Tn.js} +4 -4
  723. package/lib/{Pagination-CBiRGddW.js.map → Pagination-BpxzD3Tn.js.map} +1 -1
  724. package/lib/RouteGuard-Brz95MSt.js +77 -0
  725. package/lib/RouteGuard-Brz95MSt.js.map +1 -0
  726. package/lib/RouterError-BsnUU8eo.js +42 -0
  727. package/lib/RouterError-BsnUU8eo.js.map +1 -0
  728. package/lib/{SchemaList-BeYWvBC7.js → SchemaList-C8-SHBql.js} +10 -10
  729. package/lib/{SchemaList-BeYWvBC7.js.map → SchemaList-C8-SHBql.js.map} +1 -1
  730. package/lib/SchemaView-VsgUbgRw.js +397 -0
  731. package/lib/SchemaView-VsgUbgRw.js.map +1 -0
  732. package/lib/Select-C1DeCqKv.js +372 -0
  733. package/lib/Select-C1DeCqKv.js.map +1 -0
  734. package/lib/SignUp-Bnvel-zK.js +50 -0
  735. package/lib/SignUp-Bnvel-zK.js.map +1 -0
  736. package/lib/{Spinner-mNLZ6awP.js → Spinner-CI6bRyZw.js} +2 -2
  737. package/lib/{Spinner-mNLZ6awP.js.map → Spinner-CI6bRyZw.js.map} +1 -1
  738. package/lib/{SyntaxHighlight-GR0eix_L.js → SyntaxHighlight-C19vH0V_.js} +1074 -1030
  739. package/lib/SyntaxHighlight-C19vH0V_.js.map +1 -0
  740. package/lib/{Toc-BlcGIkXc.js → Toc-DR_4nkDQ.js} +6 -6
  741. package/lib/Toc-DR_4nkDQ.js.map +1 -0
  742. package/lib/ZudokuContext-BUZ5hkWB.js +1508 -0
  743. package/lib/ZudokuContext-BUZ5hkWB.js.map +1 -0
  744. package/lib/c-B-NUhs61.js +46 -0
  745. package/lib/c-B-NUhs61.js.map +1 -0
  746. package/lib/chunk-PVWAREVJ-BMhpCH5D.js +7965 -0
  747. package/lib/chunk-PVWAREVJ-BMhpCH5D.js.map +1 -0
  748. package/lib/{circular-CGTcsqA3.js → circular-BHuymtcS.js} +30 -30
  749. package/lib/{circular-CGTcsqA3.js.map → circular-BHuymtcS.js.map} +1 -1
  750. package/lib/cn-dYga0KKN.js.map +1 -1
  751. package/lib/commonlisp-De080z23.js +28 -0
  752. package/lib/commonlisp-De080z23.js.map +1 -0
  753. package/lib/cpp-79Paht7T.js +53 -0
  754. package/lib/cpp-79Paht7T.js.map +1 -0
  755. package/lib/{createServer-DjgpuLne.js → createServer-C4Kx4Ah4.js} +3703 -3225
  756. package/lib/createServer-C4Kx4Ah4.js.map +1 -0
  757. package/lib/csharp-D8MIL50B.js +53 -0
  758. package/lib/csharp-D8MIL50B.js.map +1 -0
  759. package/lib/css-Bt6hr1td.js +54 -0
  760. package/lib/css-Bt6hr1td.js.map +1 -0
  761. package/lib/dart-B0vy1jWB.js +60 -0
  762. package/lib/dart-B0vy1jWB.js.map +1 -0
  763. package/lib/elixir-Ds8r0sF8.js +25 -0
  764. package/lib/elixir-Ds8r0sF8.js.map +1 -0
  765. package/lib/{errors-CrI3s7mR.js → errors-C43bc4dH.js} +3 -3
  766. package/lib/errors-C43bc4dH.js.map +1 -0
  767. package/lib/go-D2VsmIOS.js +25 -0
  768. package/lib/go-D2VsmIOS.js.map +1 -0
  769. package/lib/graphql-BtA6M4m5.js +25 -0
  770. package/lib/graphql-BtA6M4m5.js.map +1 -0
  771. package/lib/hook-CMeoxziF.js +40 -0
  772. package/lib/hook-CMeoxziF.js.map +1 -0
  773. package/lib/html-MGnI2uzP.js +33 -0
  774. package/lib/html-MGnI2uzP.js.map +1 -0
  775. package/lib/index-BlL_RtG2.js +3665 -0
  776. package/lib/index-BlL_RtG2.js.map +1 -0
  777. package/lib/{index-DzO-Qh6S.js → index-CfR_Jx5Q.js} +276 -278
  778. package/lib/index-CfR_Jx5Q.js.map +1 -0
  779. package/lib/index-CrcNWbel.js.map +1 -1
  780. package/lib/{index-HarEI51d.js → index-Dc4KrhPf.js} +166 -50
  781. package/lib/index-Dc4KrhPf.js.map +1 -0
  782. package/lib/{index-DmNq2fbN.js → index-nGbmHh_A.js} +2 -2
  783. package/lib/index-nGbmHh_A.js.map +1 -0
  784. package/lib/index.esm-BYObtETB.js +1294 -0
  785. package/lib/index.esm-BYObtETB.js.map +1 -0
  786. package/lib/index.esm-BnYHxCYC.js.map +1 -1
  787. package/lib/invariant-Bm-FVUQE.js.map +1 -1
  788. package/lib/java-CVLzHfb1.js +53 -0
  789. package/lib/java-CVLzHfb1.js.map +1 -0
  790. package/lib/javascript-CcmIpL4G.js +10 -0
  791. package/lib/javascript-CcmIpL4G.js.map +1 -0
  792. package/lib/json-4AyP4uiY.js +25 -0
  793. package/lib/json-4AyP4uiY.js.map +1 -0
  794. package/lib/{jsx-runtime-C5mzlN2N.js → jsx-runtime-BzflLqGi.js} +110 -112
  795. package/lib/jsx-runtime-BzflLqGi.js.map +1 -0
  796. package/lib/kotlin-v2plddBQ.js +37 -0
  797. package/lib/kotlin-v2plddBQ.js.map +1 -0
  798. package/lib/markdown-DYGWCmGQ.js +25 -0
  799. package/lib/markdown-DYGWCmGQ.js.map +1 -0
  800. package/lib/mdx-CHwYvXd4.js +32 -0
  801. package/lib/mdx-CHwYvXd4.js.map +1 -0
  802. package/lib/{mutation-Dy_5up8v.js → mutation-BSU0xu4m.js} +2 -2
  803. package/lib/{mutation-Dy_5up8v.js.map → mutation-BSU0xu4m.js.map} +1 -1
  804. package/lib/objectivec-HZY8shkd.js +32 -0
  805. package/lib/objectivec-HZY8shkd.js.map +1 -0
  806. package/lib/ocaml-DqsdDdwb.js +52 -0
  807. package/lib/ocaml-DqsdDdwb.js.map +1 -0
  808. package/lib/php-rQXzo7K_.js +25 -0
  809. package/lib/php-rQXzo7K_.js.map +1 -0
  810. package/lib/powershell-CQje9pm1.js +39 -0
  811. package/lib/powershell-CQje9pm1.js.map +1 -0
  812. package/lib/processors/traverse.js.map +1 -1
  813. package/lib/python-QIQAE5Ei.js +32 -0
  814. package/lib/python-QIQAE5Ei.js.map +1 -0
  815. package/lib/react-DHpVpxRv.js +24 -0
  816. package/lib/react-DHpVpxRv.js.map +1 -0
  817. package/lib/ruby-B2dU8Ny5.js +25 -0
  818. package/lib/ruby-B2dU8Ny5.js.map +1 -0
  819. package/lib/rust-DYnLHAi2.js +25 -0
  820. package/lib/rust-DYnLHAi2.js.map +1 -0
  821. package/lib/scala-CeKInBR8.js +25 -0
  822. package/lib/scala-CeKInBR8.js.map +1 -0
  823. package/lib/shell-HUv9oVtp.js +25 -0
  824. package/lib/shell-HUv9oVtp.js.map +1 -0
  825. package/lib/swift-B4z6ig1Z.js +25 -0
  826. package/lib/swift-B4z6ig1Z.js.map +1 -0
  827. package/lib/toml-Co9mpdct.js +32 -0
  828. package/lib/toml-Co9mpdct.js.map +1 -0
  829. package/lib/typescript-C26xdBDC.js +32 -0
  830. package/lib/typescript-C26xdBDC.js.map +1 -0
  831. package/lib/ui/Accordion.js +1 -1
  832. package/lib/ui/ActionButton.js +3 -3
  833. package/lib/ui/Alert.js +1 -1
  834. package/lib/ui/AlertDialog.js +1 -1
  835. package/lib/ui/Badge.js +1 -1
  836. package/lib/ui/Breadcrumb.js +23 -22
  837. package/lib/ui/Breadcrumb.js.map +1 -1
  838. package/lib/ui/Button.js +6 -5
  839. package/lib/ui/Button.js.map +1 -1
  840. package/lib/ui/Callout.js +19 -19
  841. package/lib/ui/Callout.js.map +1 -1
  842. package/lib/ui/Card.js +1 -1
  843. package/lib/ui/Carousel.js +1 -1
  844. package/lib/ui/Carousel.js.map +1 -1
  845. package/lib/ui/Checkbox.js +29 -26
  846. package/lib/ui/Checkbox.js.map +1 -1
  847. package/lib/ui/CodeBlock.js +217 -6
  848. package/lib/ui/CodeBlock.js.map +1 -1
  849. package/lib/ui/Command.js +21 -27
  850. package/lib/ui/Command.js.map +1 -1
  851. package/lib/ui/Dialog.js +135 -105
  852. package/lib/ui/Dialog.js.map +1 -1
  853. package/lib/ui/Drawer.js +2 -2
  854. package/lib/ui/DropdownMenu.js +1 -1
  855. package/lib/ui/EmbeddedCodeBlock.js +25 -22
  856. package/lib/ui/EmbeddedCodeBlock.js.map +1 -1
  857. package/lib/ui/Form.js +2 -2
  858. package/lib/ui/Form.js.map +1 -1
  859. package/lib/ui/HoverCard.js +1 -1
  860. package/lib/ui/Input.js +1 -1
  861. package/lib/ui/Label.js +1 -1
  862. package/lib/ui/Pagination.js +28 -29
  863. package/lib/ui/Pagination.js.map +1 -1
  864. package/lib/ui/Popover.js +1 -1
  865. package/lib/ui/Progress.js +1 -1
  866. package/lib/ui/RadioGroup.js +1 -1
  867. package/lib/ui/ReactComponentDoc.js +28 -0
  868. package/lib/ui/ReactComponentDoc.js.map +1 -0
  869. package/lib/ui/ScrollArea.js +1 -1
  870. package/lib/ui/Secret.js +106 -0
  871. package/lib/ui/Secret.js.map +1 -0
  872. package/lib/ui/Select.js +1 -1
  873. package/lib/ui/Separator.js +27 -0
  874. package/lib/ui/Separator.js.map +1 -0
  875. package/lib/ui/Skeleton.js +1 -1
  876. package/lib/ui/Slider.js +1 -1
  877. package/lib/ui/Stepper.js +1 -1
  878. package/lib/ui/Switch.js +1 -1
  879. package/lib/ui/SyntaxHighlight.js +4 -4
  880. package/lib/ui/Tabs.js +1 -1
  881. package/lib/ui/Textarea.js +1 -1
  882. package/lib/ui/Toggle.js +1 -1
  883. package/lib/ui/ToggleGroup.js +1 -1
  884. package/lib/ui/ToggleGroup.js.map +1 -1
  885. package/lib/ui/Tooltip.js +55 -28
  886. package/lib/ui/Tooltip.js.map +1 -1
  887. package/lib/ui/Value.js +39 -0
  888. package/lib/ui/Value.js.map +1 -0
  889. package/lib/useCopyToClipboard-B_085nfO.js +14 -0
  890. package/lib/useCopyToClipboard-B_085nfO.js.map +1 -0
  891. package/lib/{useExposedProps-BH9aq4MD.js → useExposedProps-U3pmsHaG.js} +34 -34
  892. package/lib/{useExposedProps-BH9aq4MD.js.map → useExposedProps-U3pmsHaG.js.map} +1 -1
  893. package/lib/xml-BQOOC04j.js +25 -0
  894. package/lib/xml-BQOOC04j.js.map +1 -0
  895. package/lib/yaml-BGsJItKv.js +32 -0
  896. package/lib/yaml-BGsJItKv.js.map +1 -0
  897. package/lib/zig-CUV2sTct.js +35 -0
  898. package/lib/zig-CUV2sTct.js.map +1 -0
  899. package/lib/zudoku.__internal.js +1192 -1073
  900. package/lib/zudoku.__internal.js.map +1 -1
  901. package/lib/zudoku.auth-auth0.js +23 -22
  902. package/lib/zudoku.auth-auth0.js.map +1 -1
  903. package/lib/zudoku.auth-azureb2c.js +34 -35
  904. package/lib/zudoku.auth-azureb2c.js.map +1 -1
  905. package/lib/zudoku.auth-clerk.js +41 -41
  906. package/lib/zudoku.auth-clerk.js.map +1 -1
  907. package/lib/zudoku.auth-openid.js +104 -108
  908. package/lib/zudoku.auth-openid.js.map +1 -1
  909. package/lib/zudoku.auth-supabase.js +108 -51
  910. package/lib/zudoku.auth-supabase.js.map +1 -1
  911. package/lib/zudoku.components.js +21 -20
  912. package/lib/zudoku.hooks.js +6 -6
  913. package/lib/zudoku.hooks.js.map +1 -1
  914. package/lib/zudoku.icons.js +1 -1
  915. package/lib/zudoku.icons.js.map +1 -1
  916. package/lib/zudoku.plugin-api-catalog.js +34 -28
  917. package/lib/zudoku.plugin-api-catalog.js.map +1 -1
  918. package/lib/zudoku.plugin-api-keys.js +302 -327
  919. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  920. package/lib/zudoku.plugin-custom-pages.js +1 -1
  921. package/lib/zudoku.plugin-custom-pages.js.map +1 -1
  922. package/lib/zudoku.plugin-markdown.js +10 -9
  923. package/lib/zudoku.plugin-markdown.js.map +1 -1
  924. package/lib/zudoku.plugin-openapi.js +7 -8
  925. package/lib/zudoku.plugin-openapi.js.map +1 -1
  926. package/lib/zudoku.plugin-redirect.js +3 -3
  927. package/lib/zudoku.plugin-search-inkeep.js +1 -1
  928. package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
  929. package/lib/zudoku.plugin-search-pagefind.js +48 -49
  930. package/lib/zudoku.plugin-search-pagefind.js.map +1 -1
  931. package/lib/zudoku.router.js +2502 -118
  932. package/lib/zudoku.router.js.map +1 -1
  933. package/package.json +93 -92
  934. package/src/app/ZuploBuildConfig.ts +1 -1
  935. package/src/app/entry.client.tsx +6 -5
  936. package/src/app/entry.server.tsx +19 -9
  937. package/src/app/env.ts +6 -6
  938. package/src/app/main.css +71 -19
  939. package/src/app/main.tsx +7 -3
  940. package/src/app/standalone.tsx +7 -2
  941. package/src/lib/MissingIcon.tsx +1 -1
  942. package/src/lib/assets/language-icons/c.tsx +31 -0
  943. package/src/lib/assets/language-icons/commonlisp.tsx +22 -0
  944. package/src/lib/assets/language-icons/cpp.tsx +35 -0
  945. package/src/lib/assets/language-icons/csharp.tsx +35 -0
  946. package/src/lib/assets/language-icons/css.tsx +36 -0
  947. package/src/lib/assets/language-icons/dart.tsx +39 -0
  948. package/src/lib/assets/language-icons/elixir.tsx +19 -0
  949. package/src/lib/assets/language-icons/go.tsx +19 -0
  950. package/src/lib/assets/language-icons/graphql.tsx +19 -0
  951. package/src/lib/assets/language-icons/html.tsx +24 -0
  952. package/src/lib/assets/language-icons/java.tsx +35 -0
  953. package/src/lib/assets/language-icons/javascript.tsx +11 -0
  954. package/src/lib/assets/language-icons/json.tsx +19 -0
  955. package/src/lib/assets/language-icons/kotlin.tsx +30 -0
  956. package/src/lib/assets/language-icons/markdown.tsx +19 -0
  957. package/src/lib/assets/language-icons/mdx.tsx +23 -0
  958. package/src/lib/assets/language-icons/objectivec.tsx +23 -0
  959. package/src/lib/assets/language-icons/ocaml.tsx +34 -0
  960. package/src/lib/assets/language-icons/php.tsx +19 -0
  961. package/src/lib/assets/language-icons/powershell.tsx +27 -0
  962. package/src/lib/assets/language-icons/python.tsx +23 -0
  963. package/src/lib/assets/language-icons/react.tsx +21 -0
  964. package/src/lib/assets/language-icons/ruby.tsx +19 -0
  965. package/src/lib/assets/language-icons/rust.tsx +19 -0
  966. package/src/lib/assets/language-icons/scala.tsx +19 -0
  967. package/src/lib/assets/language-icons/shell.tsx +19 -0
  968. package/src/lib/assets/language-icons/swift.tsx +19 -0
  969. package/src/lib/assets/language-icons/toml.tsx +23 -0
  970. package/src/lib/assets/language-icons/typescript.tsx +23 -0
  971. package/src/lib/assets/language-icons/xml.tsx +19 -0
  972. package/src/lib/assets/language-icons/yaml.tsx +23 -0
  973. package/src/lib/assets/language-icons/zig.tsx +32 -0
  974. package/src/lib/auth/issuer.test.ts +1 -0
  975. package/src/lib/auth/issuer.ts +3 -0
  976. package/src/lib/authentication/AuthenticationPlugin.tsx +4 -4
  977. package/src/lib/authentication/authentication.ts +26 -8
  978. package/src/lib/authentication/components/OAuthErrorPage.tsx +2 -2
  979. package/src/lib/authentication/components/SignIn.tsx +7 -5
  980. package/src/lib/authentication/components/SignOut.tsx +7 -6
  981. package/src/lib/authentication/components/SignUp.tsx +5 -8
  982. package/src/lib/authentication/hook.ts +21 -10
  983. package/src/lib/authentication/providers/auth0.tsx +14 -9
  984. package/src/lib/authentication/providers/azureb2c.tsx +15 -8
  985. package/src/lib/authentication/providers/clerk.tsx +14 -7
  986. package/src/lib/authentication/providers/firebase.tsx +284 -0
  987. package/src/lib/authentication/providers/openid.tsx +26 -21
  988. package/src/lib/authentication/providers/supabase/SupabaseAuthUI.tsx +75 -0
  989. package/src/lib/authentication/providers/supabase.tsx +61 -49
  990. package/src/lib/authentication/state.ts +3 -23
  991. package/src/lib/authentication/ui/ZudokuAuthUi.tsx +335 -0
  992. package/src/lib/authentication/ui/icons/Apple.tsx +10 -0
  993. package/src/lib/authentication/ui/icons/Facebook.tsx +15 -0
  994. package/src/lib/authentication/ui/icons/Github.tsx +16 -0
  995. package/src/lib/authentication/ui/icons/Google.tsx +16 -0
  996. package/src/lib/authentication/ui/icons/Microsoft.tsx +12 -0
  997. package/src/lib/authentication/ui/icons/X.tsx +10 -0
  998. package/src/lib/authentication/use-broadcast/LICENSE.md +12 -3
  999. package/src/lib/authentication/use-broadcast/shared.ts +4 -4
  1000. package/src/lib/authentication/use-broadcast/useBroadcast.ts +2 -2
  1001. package/src/lib/components/AnchorLink.tsx +1 -1
  1002. package/src/lib/components/Autocomplete.tsx +12 -3
  1003. package/src/lib/components/Bootstrap.tsx +1 -0
  1004. package/src/lib/components/BuildCheck.tsx +14 -11
  1005. package/src/lib/components/Header.tsx +2 -3
  1006. package/src/lib/components/Heading.tsx +4 -9
  1007. package/src/lib/components/LanguageIcon.tsx +181 -0
  1008. package/src/lib/components/Layout.tsx +1 -1
  1009. package/src/lib/components/Main.tsx +1 -1
  1010. package/src/lib/components/Markdown.tsx +5 -2
  1011. package/src/lib/components/Meta.tsx +13 -0
  1012. package/src/lib/components/MobileTopNavigation.tsx +11 -13
  1013. package/src/lib/components/PathRenderer.tsx +2 -2
  1014. package/src/lib/components/Search.tsx +1 -1
  1015. package/src/lib/components/Slot.test.tsx +8 -8
  1016. package/src/lib/components/Slot.tsx +2 -2
  1017. package/src/lib/components/TopNavigation.tsx +3 -3
  1018. package/src/lib/components/Zudoku.tsx +5 -5
  1019. package/src/lib/components/cache.ts +9 -5
  1020. package/src/lib/components/context/ComponentsContext.tsx +2 -2
  1021. package/src/lib/components/context/RouterEventsEmitter.tsx +1 -1
  1022. package/src/lib/components/context/SlotProvider.tsx +4 -4
  1023. package/src/lib/components/context/ViewportAnchorContext.tsx +2 -2
  1024. package/src/lib/components/context/ZudokuContext.ts +12 -3
  1025. package/src/lib/components/context/ZudokuProvider.tsx +1 -1
  1026. package/src/lib/components/index.ts +3 -1
  1027. package/src/lib/components/navigation/NavigationCategory.tsx +8 -1
  1028. package/src/lib/components/navigation/NavigationItem.tsx +3 -3
  1029. package/src/lib/components/navigation/NavigationWrapper.tsx +1 -1
  1030. package/src/lib/components/navigation/Toc.tsx +5 -5
  1031. package/src/lib/components/navigation/ZudokuLogo.tsx +1 -1
  1032. package/src/lib/components/navigation/utils.ts +5 -6
  1033. package/src/lib/core/RouteGuard.tsx +41 -21
  1034. package/src/lib/core/ZudokuContext.ts +5 -1
  1035. package/src/lib/errors/ErrorAlert.tsx +1 -2
  1036. package/src/lib/errors/RouterError.tsx +7 -2
  1037. package/src/lib/errors/TopLevelError.tsx +2 -4
  1038. package/src/lib/hooks/useEvent.test.tsx +2 -2
  1039. package/src/lib/oas/graphql/circular.ts +3 -3
  1040. package/src/lib/oas/graphql/index.ts +39 -3
  1041. package/src/lib/oas/parser/dereference/index.ts +2 -1
  1042. package/src/lib/oas/parser/dereference/resolveRef.ts +4 -4
  1043. package/src/lib/oas/parser/index.ts +10 -5
  1044. package/src/lib/oas/parser/upgrade/index.ts +2 -1
  1045. package/src/lib/plugins/api-catalog/Catalog.tsx +7 -0
  1046. package/src/lib/plugins/api-keys/CreateApiKey.tsx +1 -1
  1047. package/src/lib/plugins/api-keys/CreateApiKeyDialog.tsx +49 -0
  1048. package/src/lib/plugins/api-keys/ProtectedRoute.tsx +11 -7
  1049. package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +23 -70
  1050. package/src/lib/plugins/api-keys/index.tsx +8 -8
  1051. package/src/lib/plugins/custom-pages/index.tsx +1 -1
  1052. package/src/lib/plugins/markdown/MdxPage.tsx +131 -14
  1053. package/src/lib/plugins/markdown/assets/ChatGPTLogo.tsx +11 -0
  1054. package/src/lib/plugins/markdown/assets/ClaudeLogo.tsx +19 -0
  1055. package/src/lib/plugins/markdown/index.tsx +6 -8
  1056. package/src/lib/plugins/openapi/CollapsibleCode.tsx +5 -3
  1057. package/src/lib/plugins/openapi/ColorizedParam.tsx +3 -1
  1058. package/src/lib/plugins/openapi/Endpoint.tsx +2 -2
  1059. package/src/lib/plugins/openapi/GeneratedExampleSidecarBox.tsx +52 -0
  1060. package/src/lib/plugins/openapi/MCPEndpoint.tsx +273 -0
  1061. package/src/lib/plugins/openapi/OasProvider.tsx +2 -1
  1062. package/src/lib/plugins/openapi/OperationList.tsx +39 -13
  1063. package/src/lib/plugins/openapi/OperationListItem.tsx +103 -76
  1064. package/src/lib/plugins/openapi/ParamInfos.tsx +10 -9
  1065. package/src/lib/plugins/openapi/ParameterList.tsx +3 -5
  1066. package/src/lib/plugins/openapi/ParameterListItem.tsx +6 -12
  1067. package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +8 -13
  1068. package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +23 -4
  1069. package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +27 -2
  1070. package/src/lib/plugins/openapi/Sidecar.tsx +112 -64
  1071. package/src/lib/plugins/openapi/SidecarExamples.tsx +40 -57
  1072. package/src/lib/plugins/openapi/StaggeredRender.tsx +1 -1
  1073. package/src/lib/plugins/openapi/client/GraphQLContext.tsx +1 -1
  1074. package/src/lib/plugins/openapi/client/createServer.ts +1 -2
  1075. package/src/lib/plugins/openapi/client/useCreateQuery.ts +3 -2
  1076. package/src/lib/plugins/openapi/components/NonHighlightedCode.tsx +22 -0
  1077. package/src/lib/plugins/openapi/components/ResponseContent.tsx +1 -1
  1078. package/src/lib/plugins/openapi/context.tsx +1 -1
  1079. package/src/lib/plugins/openapi/graphql/fragment-masking.ts +1 -1
  1080. package/src/lib/plugins/openapi/graphql/gql.ts +6 -6
  1081. package/src/lib/plugins/openapi/graphql/graphql.ts +25 -3
  1082. package/src/lib/plugins/openapi/index.tsx +14 -33
  1083. package/src/lib/plugins/openapi/interfaces.ts +19 -4
  1084. package/src/lib/plugins/openapi/playground/BodyPanel.tsx +249 -33
  1085. package/src/lib/plugins/openapi/playground/CollapsibleHeader.tsx +10 -6
  1086. package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +6 -5
  1087. package/src/lib/plugins/openapi/playground/Headers.tsx +104 -220
  1088. package/src/lib/plugins/openapi/playground/IdentityDialog.tsx +1 -1
  1089. package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +1 -1
  1090. package/src/lib/plugins/openapi/playground/ParamsGrid.tsx +33 -1
  1091. package/src/lib/plugins/openapi/playground/PathParams.tsx +26 -34
  1092. package/src/lib/plugins/openapi/playground/Playground.tsx +90 -41
  1093. package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +13 -2
  1094. package/src/lib/plugins/openapi/playground/QueryParams.tsx +83 -137
  1095. package/src/lib/plugins/openapi/playground/RequestLoginDialog.tsx +20 -1
  1096. package/src/lib/plugins/openapi/playground/request-panel/MultipartField.tsx +91 -0
  1097. package/src/lib/plugins/openapi/playground/request-panel/UrlPath.tsx +1 -1
  1098. package/src/lib/plugins/openapi/playground/request-panel/UrlQueryParams.tsx +2 -2
  1099. package/src/lib/plugins/openapi/playground/request-panel/fieldManager/useKeyValueFieldManager.test.tsx +872 -0
  1100. package/src/lib/plugins/openapi/playground/request-panel/useKeyValueFieldManager.ts +349 -0
  1101. package/src/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.tsx +5 -3
  1102. package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +124 -56
  1103. package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +4 -4
  1104. package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.ts +1 -1
  1105. package/src/lib/plugins/openapi/playground/useRememberSkipLoginDialog.tsx +3 -0
  1106. package/src/lib/plugins/openapi/processors/removeExtensions.test.ts +1 -0
  1107. package/src/lib/plugins/openapi/processors/removeParameters.test.ts +1 -0
  1108. package/src/lib/plugins/openapi/processors/traverse.ts +1 -1
  1109. package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +6 -27
  1110. package/src/lib/plugins/openapi/schema/SchemaView.tsx +30 -23
  1111. package/src/lib/plugins/openapi/schema/UnionView.tsx +143 -0
  1112. package/src/lib/plugins/openapi/schema/union-helpers.ts +123 -0
  1113. package/src/lib/plugins/openapi/schema/utils.ts +0 -11
  1114. package/src/lib/plugins/openapi/util/createHttpSnippet.ts +2 -2
  1115. package/src/lib/plugins/openapi/util/createNavigationCategory.tsx +1 -0
  1116. package/src/lib/plugins/openapi/util/generateSchemaExample.ts +14 -15
  1117. package/src/lib/plugins/openapi/util/getRoutes.tsx +2 -2
  1118. package/src/lib/plugins/openapi/util/methodColorMap.tsx +1 -1
  1119. package/src/lib/plugins/search-inkeep/index.tsx +3 -3
  1120. package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +2 -4
  1121. package/src/lib/plugins/search-pagefind/ResultList.tsx +3 -4
  1122. package/src/lib/plugins/search-pagefind/get-results.tsx +0 -1
  1123. package/src/lib/shiki.ts +35 -8
  1124. package/src/lib/ui/Breadcrumb.tsx +1 -0
  1125. package/src/lib/ui/Button.tsx +1 -0
  1126. package/src/lib/ui/Callout.tsx +10 -5
  1127. package/src/lib/ui/Checkbox.tsx +23 -24
  1128. package/src/lib/ui/CodeBlock.tsx +7 -41
  1129. package/src/lib/ui/Command.tsx +2 -4
  1130. package/src/lib/ui/Dialog.tsx +112 -107
  1131. package/src/lib/ui/EmbeddedCodeBlock.tsx +6 -4
  1132. package/src/lib/ui/Form.tsx +4 -4
  1133. package/src/lib/ui/Pagination.tsx +1 -2
  1134. package/src/lib/ui/ReactComponentDoc.tsx +68 -0
  1135. package/src/lib/ui/Secret.tsx +123 -0
  1136. package/src/lib/ui/Separator.tsx +25 -0
  1137. package/src/lib/ui/SyntaxHighlight.tsx +6 -1
  1138. package/src/lib/ui/ToggleGroup.tsx +1 -1
  1139. package/src/lib/ui/Tooltip.tsx +54 -32
  1140. package/src/lib/ui/Value.tsx +42 -0
  1141. package/src/lib/util/MdxComponents.tsx +12 -4
  1142. package/src/lib/util/cn.ts +1 -1
  1143. package/src/lib/util/createVariantComponent.tsx +33 -7
  1144. package/src/lib/util/flattenAllOf.test.ts +637 -0
  1145. package/src/lib/util/flattenAllOf.ts +101 -0
  1146. package/src/lib/util/groupBy.ts +1 -0
  1147. package/src/lib/util/humanFileSize.ts +2 -3
  1148. package/src/lib/util/invariant.ts +1 -0
  1149. package/src/lib/util/pastellize.ts +4 -4
  1150. package/src/lib/util/syncZustandState.ts +22 -0
  1151. package/src/lib/util/traverse.ts +36 -0
  1152. package/src/lib/util/types.ts +1 -1
  1153. package/src/lib/util/useIsomorphicLayoutEffect.ts +1 -0
  1154. package/src/lib/util/useScrollToAnchor.ts +3 -1
  1155. package/src/shiki/langs/hurl.js +1 -0
  1156. package/src/shiki/langs/kdl.js +1 -0
  1157. package/src/shiki/langs/pkl.js +1 -0
  1158. package/src/shiki/langs/rosmsg.js +1 -0
  1159. package/dist/lib/components/ReactMarkdown.d.ts +0 -29
  1160. package/dist/lib/components/ReactMarkdown.js +0 -182
  1161. package/dist/lib/components/ReactMarkdown.js.map +0 -1
  1162. package/dist/lib/plugins/openapi/playground/InlineInput.d.ts +0 -4
  1163. package/dist/lib/plugins/openapi/playground/InlineInput.js +0 -3
  1164. package/dist/lib/plugins/openapi/playground/InlineInput.js.map +0 -1
  1165. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.d.ts +0 -8
  1166. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js +0 -14
  1167. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js.map +0 -1
  1168. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.d.ts +0 -7
  1169. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js +0 -17
  1170. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js.map +0 -1
  1171. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.d.ts +0 -6
  1172. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js +0 -10
  1173. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js.map +0 -1
  1174. package/lib/Button-B3o-2Xdf.js.map +0 -1
  1175. package/lib/CodeBlock-yJjjRwj-.js +0 -98
  1176. package/lib/CodeBlock-yJjjRwj-.js.map +0 -1
  1177. package/lib/Command-CDn17s8X.js.map +0 -1
  1178. package/lib/Dialog-BrIjMmUK.js +0 -114
  1179. package/lib/Dialog-BrIjMmUK.js.map +0 -1
  1180. package/lib/MdxPage-BmOQ5m5g.js +0 -111
  1181. package/lib/MdxPage-BmOQ5m5g.js.map +0 -1
  1182. package/lib/OAuthErrorPage-Jv3r8wnL.js.map +0 -1
  1183. package/lib/OasProvider-CA_lpILt.js.map +0 -1
  1184. package/lib/OperationList-C-TObVw6.js +0 -5169
  1185. package/lib/OperationList-C-TObVw6.js.map +0 -1
  1186. package/lib/RouteGuard-JLH6tCY8.js +0 -56
  1187. package/lib/RouteGuard-JLH6tCY8.js.map +0 -1
  1188. package/lib/RouterError-DcVonMP1.js +0 -41
  1189. package/lib/RouterError-DcVonMP1.js.map +0 -1
  1190. package/lib/SchemaView-CRcShewo.js +0 -366
  1191. package/lib/SchemaView-CRcShewo.js.map +0 -1
  1192. package/lib/Select-C3efYI1n.js +0 -273
  1193. package/lib/Select-C3efYI1n.js.map +0 -1
  1194. package/lib/SignUp-CxBGHgba.js +0 -56
  1195. package/lib/SignUp-CxBGHgba.js.map +0 -1
  1196. package/lib/Slot-DOtTvoyj.js.map +0 -1
  1197. package/lib/SyntaxHighlight-GR0eix_L.js.map +0 -1
  1198. package/lib/Toc-BlcGIkXc.js.map +0 -1
  1199. package/lib/ZudokuContext-BuJD7yIX.js +0 -1286
  1200. package/lib/ZudokuContext-BuJD7yIX.js.map +0 -1
  1201. package/lib/chunk-QMGIS6GS-DqecZ6nq.js +0 -9204
  1202. package/lib/chunk-QMGIS6GS-DqecZ6nq.js.map +0 -1
  1203. package/lib/createServer-DjgpuLne.js.map +0 -1
  1204. package/lib/errors-CrI3s7mR.js.map +0 -1
  1205. package/lib/hook-bv3iuX7X.js +0 -247
  1206. package/lib/hook-bv3iuX7X.js.map +0 -1
  1207. package/lib/index-CvTWnHZF.js +0 -3391
  1208. package/lib/index-CvTWnHZF.js.map +0 -1
  1209. package/lib/index-DmNq2fbN.js.map +0 -1
  1210. package/lib/index-DzO-Qh6S.js.map +0 -1
  1211. package/lib/index-HarEI51d.js.map +0 -1
  1212. package/lib/index.esm-CdzlRw50.js +0 -1254
  1213. package/lib/index.esm-CdzlRw50.js.map +0 -1
  1214. package/lib/jsx-runtime-C5mzlN2N.js.map +0 -1
  1215. package/src/lib/components/ReactMarkdown.license.txt +0 -21
  1216. package/src/lib/components/ReactMarkdown.tsx +0 -264
  1217. package/src/lib/plugins/openapi/playground/InlineInput.tsx +0 -6
  1218. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.tsx +0 -40
  1219. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.tsx +0 -57
  1220. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.tsx +0 -33
@@ -1,31 +1,31 @@
1
- import { a as Qe, H as Me } from "./index.esm-BnYHxCYC.js";
2
- import { j as a } from "./jsx-runtime-C5mzlN2N.js";
3
- import { S as Le, q as Be, Q as _t, n as O, r as me, v as ge, i as A, w as yt, x as wt, y as bt, z as zt, A as ve, B as _e, D as xt, h as ye, E as we, F as $t, G as kt, g as Zt, H as We, e as jt, d as Y, o as Pt, j as Ot } from "./ZudokuContext-BuJD7yIX.js";
4
- import { M as Et } from "./mutation-Dy_5up8v.js";
5
- import * as C from "react";
6
- import { StrictMode as Ke, useEffect as X, useRef as He, useState as It, Suspense as St } from "react";
7
- import { h as Tt, m as Dt, aM as Ve, aQ as At, O as Ct } from "./chunk-QMGIS6GS-DqecZ6nq.js";
8
- import * as Nt from "react-dom";
9
- import { a as Rt, u as Ut, P as Ft, H as qt } from "./index-DzO-Qh6S.js";
10
- import { B as Ge, R as Qt } from "./RouteGuard-JLH6tCY8.js";
11
- import { CircleFadingArrowUpIcon as Mt, LoaderCircleIcon as Lt, ExternalLink as Bt, PanelLeftIcon as Wt } from "lucide-react";
12
- import { Button as Kt } from "./ui/Button.js";
1
+ import { a as Ke, H as He } from "./index.esm-BnYHxCYC.js";
2
+ import { j as a } from "./jsx-runtime-BzflLqGi.js";
3
+ import { S as Ve, r as Je, Q as Zt, n as j, v as ye, w as we, i as I, x as $t, y as jt, z as Pt, A as Ot, B as be, D as ze, E as Et, h as ke, F as xe, G as At, H as Tt, g as St, I as Ge, l as It, a as re, p as Dt, j as Ct } from "./ZudokuContext-BUZ5hkWB.js";
4
+ import { M as Nt } from "./mutation-BSU0xu4m.js";
5
+ import * as D from "react";
6
+ import { StrictMode as Ye, useEffect as oe, useRef as Xe, useState as Rt, Suspense as Ft } from "react";
7
+ import { t as Ut, S as qt, d as et, b2 as Mt, O as Qt } from "./chunk-PVWAREVJ-BMhpCH5D.js";
8
+ import * as Lt from "react-dom";
9
+ import { a as Bt, u as Wt, P as Kt, H as Ht } from "./index-CfR_Jx5Q.js";
10
+ import { B as tt, R as Vt } from "./RouteGuard-Brz95MSt.js";
11
+ import { CircleFadingArrowUpIcon as Jt, LoaderCircleIcon as Gt, ExternalLink as Yt, PanelLeftIcon as Xt } from "lucide-react";
12
+ import { Button as en } from "./ui/Button.js";
13
13
  import { c as E } from "./cn-dYga0KKN.js";
14
- import { a as N, A as Ht, s as Vt, N as be, f as Gt, T as Jt, H as Yt, E as Xt } from "./Slot-DOtTvoyj.js";
15
- import { d as I, b as en, c as tn } from "./Drawer-DJ05s2pH.js";
16
- import { VisuallyHidden as nn } from "@radix-ui/react-visually-hidden";
17
- import { S as rn } from "./Spinner-mNLZ6awP.js";
18
- import { C as on } from "./CategoryHeading-DCpZu3yG.js";
19
- import { N as sn, R as an } from "./RouterError-DcVonMP1.js";
20
- var cn = class extends Le {
14
+ import { a as C, A as tn, s as nn, N as Ze, f as rn, T as on, H as sn, E as an } from "./ErrorAlert-B4eXGBQj.js";
15
+ import { d as A, b as cn, c as un } from "./Drawer-Ci7XwhqT.js";
16
+ import { VisuallyHidden as ln } from "@radix-ui/react-visually-hidden";
17
+ import { S as dn } from "./Spinner-CI6bRyZw.js";
18
+ import { C as hn } from "./CategoryHeading-DhmodDcq.js";
19
+ import { N as fn, R as pn } from "./RouterError-BsnUU8eo.js";
20
+ var mn = class extends Ve {
21
21
  constructor(e = {}) {
22
22
  super(), this.config = e, this.#e = /* @__PURE__ */ new Map();
23
23
  }
24
24
  #e;
25
25
  build(e, t, n) {
26
- const r = t.queryKey, o = t.queryHash ?? Be(r, t);
26
+ const r = t.queryKey, o = t.queryHash ?? Je(r, t);
27
27
  let s = this.get(o);
28
- return s || (s = new _t({
28
+ return s || (s = new Zt({
29
29
  client: e,
30
30
  queryKey: r,
31
31
  queryHash: o,
@@ -45,7 +45,7 @@ var cn = class extends Le {
45
45
  t && (e.destroy(), t === e && this.#e.delete(e.queryHash), this.notify({ type: "removed", query: e }));
46
46
  }
47
47
  clear() {
48
- O.batch(() => {
48
+ j.batch(() => {
49
49
  this.getAll().forEach((e) => {
50
50
  this.remove(e);
51
51
  });
@@ -60,35 +60,35 @@ var cn = class extends Le {
60
60
  find(e) {
61
61
  const t = { exact: !0, ...e };
62
62
  return this.getAll().find(
63
- (n) => me(t, n)
63
+ (n) => ye(t, n)
64
64
  );
65
65
  }
66
66
  findAll(e = {}) {
67
67
  const t = this.getAll();
68
- return Object.keys(e).length > 0 ? t.filter((n) => me(e, n)) : t;
68
+ return Object.keys(e).length > 0 ? t.filter((n) => ye(e, n)) : t;
69
69
  }
70
70
  notify(e) {
71
- O.batch(() => {
71
+ j.batch(() => {
72
72
  this.listeners.forEach((t) => {
73
73
  t(e);
74
74
  });
75
75
  });
76
76
  }
77
77
  onFocus() {
78
- O.batch(() => {
78
+ j.batch(() => {
79
79
  this.getAll().forEach((e) => {
80
80
  e.onFocus();
81
81
  });
82
82
  });
83
83
  }
84
84
  onOnline() {
85
- O.batch(() => {
85
+ j.batch(() => {
86
86
  this.getAll().forEach((e) => {
87
87
  e.onOnline();
88
88
  });
89
89
  });
90
90
  }
91
- }, un = class extends Le {
91
+ }, gn = class extends Ve {
92
92
  constructor(e = {}) {
93
93
  super(), this.config = e, this.#e = /* @__PURE__ */ new Set(), this.#t = /* @__PURE__ */ new Map(), this.#n = 0;
94
94
  }
@@ -96,7 +96,7 @@ var cn = class extends Le {
96
96
  #t;
97
97
  #n;
98
98
  build(e, t, n) {
99
- const r = new Et({
99
+ const r = new Nt({
100
100
  mutationCache: this,
101
101
  mutationId: ++this.#n,
102
102
  options: e.defaultMutationOptions(t),
@@ -106,7 +106,7 @@ var cn = class extends Le {
106
106
  }
107
107
  add(e) {
108
108
  this.#e.add(e);
109
- const t = W(e);
109
+ const t = V(e);
110
110
  if (typeof t == "string") {
111
111
  const n = this.#t.get(t);
112
112
  n ? n.push(e) : this.#t.set(t, [e]);
@@ -115,7 +115,7 @@ var cn = class extends Le {
115
115
  }
116
116
  remove(e) {
117
117
  if (this.#e.delete(e)) {
118
- const t = W(e);
118
+ const t = V(e);
119
119
  if (typeof t == "string") {
120
120
  const n = this.#t.get(t);
121
121
  if (n)
@@ -128,7 +128,7 @@ var cn = class extends Le {
128
128
  this.notify({ type: "removed", mutation: e });
129
129
  }
130
130
  canRun(e) {
131
- const t = W(e);
131
+ const t = V(e);
132
132
  if (typeof t == "string") {
133
133
  const r = this.#t.get(t)?.find(
134
134
  (o) => o.state.status === "pending"
@@ -138,11 +138,11 @@ var cn = class extends Le {
138
138
  return !0;
139
139
  }
140
140
  runNext(e) {
141
- const t = W(e);
141
+ const t = V(e);
142
142
  return typeof t == "string" ? this.#t.get(t)?.find((r) => r !== e && r.state.isPaused)?.continue() ?? Promise.resolve() : Promise.resolve();
143
143
  }
144
144
  clear() {
145
- O.batch(() => {
145
+ j.batch(() => {
146
146
  this.#e.forEach((e) => {
147
147
  this.notify({ type: "removed", mutation: e });
148
148
  }), this.#e.clear(), this.#t.clear();
@@ -154,14 +154,14 @@ var cn = class extends Le {
154
154
  find(e) {
155
155
  const t = { exact: !0, ...e };
156
156
  return this.getAll().find(
157
- (n) => ge(t, n)
157
+ (n) => we(t, n)
158
158
  );
159
159
  }
160
160
  findAll(e = {}) {
161
- return this.getAll().filter((t) => ge(e, t));
161
+ return this.getAll().filter((t) => we(e, t));
162
162
  }
163
163
  notify(e) {
164
- O.batch(() => {
164
+ j.batch(() => {
165
165
  this.listeners.forEach((t) => {
166
166
  t(e);
167
167
  });
@@ -169,69 +169,69 @@ var cn = class extends Le {
169
169
  }
170
170
  resumePausedMutations() {
171
171
  const e = this.getAll().filter((t) => t.state.isPaused);
172
- return O.batch(
172
+ return j.batch(
173
173
  () => Promise.all(
174
- e.map((t) => t.continue().catch(A))
174
+ e.map((t) => t.continue().catch(I))
175
175
  )
176
176
  );
177
177
  }
178
178
  };
179
- function W(e) {
179
+ function V(e) {
180
180
  return e.options.scope?.id;
181
181
  }
182
- function ze(e) {
182
+ function $e(e) {
183
183
  return {
184
184
  onFetch: (t, n) => {
185
185
  const r = t.options, o = t.fetchOptions?.meta?.fetchMore?.direction, s = t.state.data?.pages || [], i = t.state.data?.pageParams || [];
186
- let u = { pages: [], pageParams: [] }, f = 0;
187
- const h = async () => {
188
- let g = !1;
189
- const d = (v) => {
190
- Object.defineProperty(v, "signal", {
186
+ let u = { pages: [], pageParams: [] }, d = 0;
187
+ const l = async () => {
188
+ let f = !1;
189
+ const g = (m) => {
190
+ Object.defineProperty(m, "signal", {
191
191
  enumerable: !0,
192
- get: () => (t.signal.aborted ? g = !0 : t.signal.addEventListener("abort", () => {
193
- g = !0;
192
+ get: () => (t.signal.aborted ? f = !0 : t.signal.addEventListener("abort", () => {
193
+ f = !0;
194
194
  }), t.signal)
195
195
  });
196
- }, p = yt(t.options, t.fetchOptions), m = async (v, x, P) => {
197
- if (g)
196
+ }, p = $t(t.options, t.fetchOptions), v = async (m, k, P) => {
197
+ if (f)
198
198
  return Promise.reject();
199
- if (x == null && v.pages.length)
200
- return Promise.resolve(v);
201
- const $ = (() => {
202
- const D = {
199
+ if (k == null && m.pages.length)
200
+ return Promise.resolve(m);
201
+ const L = (() => {
202
+ const H = {
203
203
  client: t.client,
204
204
  queryKey: t.queryKey,
205
- pageParam: x,
205
+ pageParam: k,
206
206
  direction: P ? "backward" : "forward",
207
207
  meta: t.options.meta
208
208
  };
209
- return d(D), D;
210
- })(), _ = await p($), { maxPages: y } = t.options, T = P ? wt : bt;
209
+ return g(H), H;
210
+ })(), $ = await p(L), { maxPages: x } = t.options, S = P ? jt : Pt;
211
211
  return {
212
- pages: T(v.pages, _, y),
213
- pageParams: T(v.pageParams, x, y)
212
+ pages: S(m.pages, $, x),
213
+ pageParams: S(m.pageParams, k, x)
214
214
  };
215
215
  };
216
216
  if (o && s.length) {
217
- const v = o === "backward", x = v ? ln : xe, P = {
217
+ const m = o === "backward", k = m ? vn : je, P = {
218
218
  pages: s,
219
219
  pageParams: i
220
- }, j = x(r, P);
221
- u = await m(P, j, v);
220
+ }, Z = k(r, P);
221
+ u = await v(P, Z, m);
222
222
  } else {
223
- const v = e ?? s.length;
223
+ const m = e ?? s.length;
224
224
  do {
225
- const x = f === 0 ? i[0] ?? r.initialPageParam : xe(r, u);
226
- if (f > 0 && x == null)
225
+ const k = d === 0 ? i[0] ?? r.initialPageParam : je(r, u);
226
+ if (d > 0 && k == null)
227
227
  break;
228
- u = await m(u, x), f++;
229
- } while (f < v);
228
+ u = await v(u, k), d++;
229
+ } while (d < m);
230
230
  }
231
231
  return u;
232
232
  };
233
233
  t.options.persister ? t.fetchFn = () => t.options.persister?.(
234
- h,
234
+ l,
235
235
  {
236
236
  client: t.client,
237
237
  queryKey: t.queryKey,
@@ -239,11 +239,11 @@ function ze(e) {
239
239
  signal: t.signal
240
240
  },
241
241
  n
242
- ) : t.fetchFn = h;
242
+ ) : t.fetchFn = l;
243
243
  }
244
244
  };
245
245
  }
246
- function xe(e, { pages: t, pageParams: n }) {
246
+ function je(e, { pages: t, pageParams: n }) {
247
247
  const r = t.length - 1;
248
248
  return t.length > 0 ? e.getNextPageParam(
249
249
  t[r],
@@ -252,10 +252,10 @@ function xe(e, { pages: t, pageParams: n }) {
252
252
  n
253
253
  ) : void 0;
254
254
  }
255
- function ln(e, { pages: t, pageParams: n }) {
255
+ function vn(e, { pages: t, pageParams: n }) {
256
256
  return t.length > 0 ? e.getPreviousPageParam?.(t[0], t, n[0], n) : void 0;
257
257
  }
258
- var dn = class {
258
+ var _n = class {
259
259
  #e;
260
260
  #t;
261
261
  #n;
@@ -265,12 +265,12 @@ var dn = class {
265
265
  #i;
266
266
  #a;
267
267
  constructor(e = {}) {
268
- this.#e = e.queryCache || new cn(), this.#t = e.mutationCache || new un(), this.#n = e.defaultOptions || {}, this.#o = /* @__PURE__ */ new Map(), this.#s = /* @__PURE__ */ new Map(), this.#r = 0;
268
+ this.#e = e.queryCache || new mn(), this.#t = e.mutationCache || new gn(), this.#n = e.defaultOptions || {}, this.#o = /* @__PURE__ */ new Map(), this.#s = /* @__PURE__ */ new Map(), this.#r = 0;
269
269
  }
270
270
  mount() {
271
- this.#r++, this.#r === 1 && (this.#i = zt.subscribe(async (e) => {
271
+ this.#r++, this.#r === 1 && (this.#i = Ot.subscribe(async (e) => {
272
272
  e && (await this.resumePausedMutations(), this.#e.onFocus());
273
- }), this.#a = ve.subscribe(async (e) => {
273
+ }), this.#a = be.subscribe(async (e) => {
274
274
  e && (await this.resumePausedMutations(), this.#e.onOnline());
275
275
  }));
276
276
  }
@@ -296,7 +296,7 @@ var dn = class {
296
296
  }
297
297
  ensureQueryData(e) {
298
298
  const t = this.defaultQueryOptions(e), n = this.#e.build(this, t), r = n.state.data;
299
- return r === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && n.isStaleByTime(_e(t.staleTime, n)) && this.prefetchQuery(t), Promise.resolve(r));
299
+ return r === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && n.isStaleByTime(ze(t.staleTime, n)) && this.prefetchQuery(t), Promise.resolve(r));
300
300
  }
301
301
  getQueriesData(e) {
302
302
  return this.#e.findAll(e).map(({ queryKey: t, state: n }) => {
@@ -307,12 +307,12 @@ var dn = class {
307
307
  setQueryData(e, t, n) {
308
308
  const r = this.defaultQueryOptions({ queryKey: e }), s = this.#e.get(
309
309
  r.queryHash
310
- )?.state.data, i = xt(t, s);
310
+ )?.state.data, i = Et(t, s);
311
311
  if (i !== void 0)
312
312
  return this.#e.build(this, r).setData(i, { ...n, manual: !0 });
313
313
  }
314
314
  setQueriesData(e, t, n) {
315
- return O.batch(
315
+ return j.batch(
316
316
  () => this.#e.findAll(e).map(({ queryKey: r }) => [
317
317
  r,
318
318
  this.setQueryData(r, t, n)
@@ -327,7 +327,7 @@ var dn = class {
327
327
  }
328
328
  removeQueries(e) {
329
329
  const t = this.#e;
330
- O.batch(() => {
330
+ j.batch(() => {
331
331
  t.findAll(e).forEach((n) => {
332
332
  t.remove(n);
333
333
  });
@@ -335,7 +335,7 @@ var dn = class {
335
335
  }
336
336
  resetQueries(e, t) {
337
337
  const n = this.#e;
338
- return O.batch(() => (n.findAll(e).forEach((r) => {
338
+ return j.batch(() => (n.findAll(e).forEach((r) => {
339
339
  r.reset();
340
340
  }), this.refetchQueries(
341
341
  {
@@ -346,13 +346,13 @@ var dn = class {
346
346
  )));
347
347
  }
348
348
  cancelQueries(e, t = {}) {
349
- const n = { revert: !0, ...t }, r = O.batch(
349
+ const n = { revert: !0, ...t }, r = j.batch(
350
350
  () => this.#e.findAll(e).map((o) => o.cancel(n))
351
351
  );
352
- return Promise.all(r).then(A).catch(A);
352
+ return Promise.all(r).then(I).catch(I);
353
353
  }
354
354
  invalidateQueries(e, t = {}) {
355
- return O.batch(() => (this.#e.findAll(e).forEach((n) => {
355
+ return j.batch(() => (this.#e.findAll(e).forEach((n) => {
356
356
  n.invalidate();
357
357
  }), e?.refetchType === "none" ? Promise.resolve() : this.refetchQueries(
358
358
  {
@@ -366,36 +366,36 @@ var dn = class {
366
366
  const n = {
367
367
  ...t,
368
368
  cancelRefetch: t.cancelRefetch ?? !0
369
- }, r = O.batch(
369
+ }, r = j.batch(
370
370
  () => this.#e.findAll(e).filter((o) => !o.isDisabled() && !o.isStatic()).map((o) => {
371
371
  let s = o.fetch(void 0, n);
372
- return n.throwOnError || (s = s.catch(A)), o.state.fetchStatus === "paused" ? Promise.resolve() : s;
372
+ return n.throwOnError || (s = s.catch(I)), o.state.fetchStatus === "paused" ? Promise.resolve() : s;
373
373
  })
374
374
  );
375
- return Promise.all(r).then(A);
375
+ return Promise.all(r).then(I);
376
376
  }
377
377
  fetchQuery(e) {
378
378
  const t = this.defaultQueryOptions(e);
379
379
  t.retry === void 0 && (t.retry = !1);
380
380
  const n = this.#e.build(this, t);
381
381
  return n.isStaleByTime(
382
- _e(t.staleTime, n)
382
+ ze(t.staleTime, n)
383
383
  ) ? n.fetch(t) : Promise.resolve(n.state.data);
384
384
  }
385
385
  prefetchQuery(e) {
386
- return this.fetchQuery(e).then(A).catch(A);
386
+ return this.fetchQuery(e).then(I).catch(I);
387
387
  }
388
388
  fetchInfiniteQuery(e) {
389
- return e.behavior = ze(e.pages), this.fetchQuery(e);
389
+ return e.behavior = $e(e.pages), this.fetchQuery(e);
390
390
  }
391
391
  prefetchInfiniteQuery(e) {
392
- return this.fetchInfiniteQuery(e).then(A).catch(A);
392
+ return this.fetchInfiniteQuery(e).then(I).catch(I);
393
393
  }
394
394
  ensureInfiniteQueryData(e) {
395
- return e.behavior = ze(e.pages), this.ensureQueryData(e);
395
+ return e.behavior = $e(e.pages), this.ensureQueryData(e);
396
396
  }
397
397
  resumePausedMutations() {
398
- return ve.isOnline() ? this.#t.resumePausedMutations() : Promise.resolve();
398
+ return be.isOnline() ? this.#t.resumePausedMutations() : Promise.resolve();
399
399
  }
400
400
  getQueryCache() {
401
401
  return this.#e;
@@ -410,7 +410,7 @@ var dn = class {
410
410
  this.#n = e;
411
411
  }
412
412
  setQueryDefaults(e, t) {
413
- this.#o.set(ye(e), {
413
+ this.#o.set(ke(e), {
414
414
  queryKey: e,
415
415
  defaultOptions: t
416
416
  });
@@ -418,11 +418,11 @@ var dn = class {
418
418
  getQueryDefaults(e) {
419
419
  const t = [...this.#o.values()], n = {};
420
420
  return t.forEach((r) => {
421
- we(e, r.queryKey) && Object.assign(n, r.defaultOptions);
421
+ xe(e, r.queryKey) && Object.assign(n, r.defaultOptions);
422
422
  }), n;
423
423
  }
424
424
  setMutationDefaults(e, t) {
425
- this.#s.set(ye(e), {
425
+ this.#s.set(ke(e), {
426
426
  mutationKey: e,
427
427
  defaultOptions: t
428
428
  });
@@ -430,7 +430,7 @@ var dn = class {
430
430
  getMutationDefaults(e) {
431
431
  const t = [...this.#s.values()], n = {};
432
432
  return t.forEach((r) => {
433
- we(e, r.mutationKey) && Object.assign(n, r.defaultOptions);
433
+ xe(e, r.mutationKey) && Object.assign(n, r.defaultOptions);
434
434
  }), n;
435
435
  }
436
436
  defaultQueryOptions(e) {
@@ -442,10 +442,10 @@ var dn = class {
442
442
  ...e,
443
443
  _defaulted: !0
444
444
  };
445
- return t.queryHash || (t.queryHash = Be(
445
+ return t.queryHash || (t.queryHash = Je(
446
446
  t.queryKey,
447
447
  t
448
- )), 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 === $t && (t.enabled = !1), t;
448
+ )), 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 === At && (t.enabled = !1), t;
449
449
  }
450
450
  defaultMutationOptions(e) {
451
451
  return e?._defaulted ? e : {
@@ -459,94 +459,94 @@ var dn = class {
459
459
  this.#e.clear(), this.#t.clear();
460
460
  }
461
461
  };
462
- function hn(e) {
462
+ function yn(e) {
463
463
  return e;
464
464
  }
465
- function $e(e, t, n) {
465
+ function Pe(e, t, n) {
466
466
  if (typeof t != "object" || t === null)
467
467
  return;
468
- const r = e.getMutationCache(), o = e.getQueryCache(), s = n?.defaultOptions?.deserializeData ?? e.getDefaultOptions().hydrate?.deserializeData ?? hn, i = t.mutations || [], u = t.queries || [];
469
- i.forEach(({ state: f, ...h }) => {
468
+ const r = e.getMutationCache(), o = e.getQueryCache(), s = n?.defaultOptions?.deserializeData ?? e.getDefaultOptions().hydrate?.deserializeData ?? yn, i = t.mutations || [], u = t.queries || [];
469
+ i.forEach(({ state: d, ...l }) => {
470
470
  r.build(
471
471
  e,
472
472
  {
473
473
  ...e.getDefaultOptions().hydrate?.mutations,
474
474
  ...n?.defaultOptions?.mutations,
475
- ...h
475
+ ...l
476
476
  },
477
- f
477
+ d
478
478
  );
479
479
  }), u.forEach(
480
- ({ queryKey: f, state: h, queryHash: g, meta: d, promise: p, dehydratedAt: m }) => {
481
- const v = p ? kt(p) : void 0, x = h.data === void 0 ? v?.data : h.data, P = x === void 0 ? x : s(x);
482
- let j = o.get(g);
483
- const $ = j?.state.status === "pending", _ = j?.state.fetchStatus === "fetching";
484
- if (j) {
485
- const y = v && // We only need this undefined check to handle older dehydration
480
+ ({ queryKey: d, state: l, queryHash: f, meta: g, promise: p, dehydratedAt: v }) => {
481
+ const m = p ? Tt(p) : void 0, k = l.data === void 0 ? m?.data : l.data, P = k === void 0 ? k : s(k);
482
+ let Z = o.get(f);
483
+ const L = Z?.state.status === "pending", $ = Z?.state.fetchStatus === "fetching";
484
+ if (Z) {
485
+ const x = m && // We only need this undefined check to handle older dehydration
486
486
  // payloads that might not have dehydratedAt
487
- m !== void 0 && m > j.state.dataUpdatedAt;
488
- if (h.dataUpdatedAt > j.state.dataUpdatedAt || y) {
489
- const { fetchStatus: T, ...D } = h;
490
- j.setState({
491
- ...D,
487
+ v !== void 0 && v > Z.state.dataUpdatedAt;
488
+ if (l.dataUpdatedAt > Z.state.dataUpdatedAt || x) {
489
+ const { fetchStatus: S, ...H } = l;
490
+ Z.setState({
491
+ ...H,
492
492
  data: P
493
493
  });
494
494
  }
495
495
  } else
496
- j = o.build(
496
+ Z = o.build(
497
497
  e,
498
498
  {
499
499
  ...e.getDefaultOptions().hydrate?.queries,
500
500
  ...n?.defaultOptions?.queries,
501
- queryKey: f,
502
- queryHash: g,
503
- meta: d
501
+ queryKey: d,
502
+ queryHash: f,
503
+ meta: g
504
504
  },
505
505
  // Reset fetch status to idle to avoid
506
506
  // query being stuck in fetching state upon hydration
507
507
  {
508
- ...h,
508
+ ...l,
509
509
  data: P,
510
510
  fetchStatus: "idle",
511
- status: P !== void 0 ? "success" : h.status
511
+ status: P !== void 0 ? "success" : l.status
512
512
  }
513
513
  );
514
- p && !$ && !_ && // Only hydrate if dehydration is newer than any existing data,
514
+ p && !L && !$ && // Only hydrate if dehydration is newer than any existing data,
515
515
  // this is always true for new queries
516
- (m === void 0 || m > j.state.dataUpdatedAt) && j.fetch(void 0, {
516
+ (v === void 0 || v > Z.state.dataUpdatedAt) && Z.fetch(void 0, {
517
517
  // RSC transformed promises are not thenable
518
518
  initialPromise: Promise.resolve(p).then(s)
519
519
  });
520
520
  }
521
521
  );
522
522
  }
523
- var fn = ({
523
+ var wn = ({
524
524
  children: e,
525
525
  options: t = {},
526
526
  state: n,
527
527
  queryClient: r
528
528
  }) => {
529
- const o = Zt(r), s = C.useRef(t);
529
+ const o = St(r), s = D.useRef(t);
530
530
  s.current = t;
531
- const i = C.useMemo(() => {
531
+ const i = D.useMemo(() => {
532
532
  if (n) {
533
533
  if (typeof n != "object")
534
534
  return;
535
- const u = o.getQueryCache(), f = n.queries || [], h = [], g = [];
536
- for (const d of f) {
537
- const p = u.get(d.queryHash);
538
- p ? (d.state.dataUpdatedAt > p.state.dataUpdatedAt || d.promise && p.state.status !== "pending" && p.state.fetchStatus !== "fetching" && d.dehydratedAt !== void 0 && d.dehydratedAt > p.state.dataUpdatedAt) && g.push(d) : h.push(d);
535
+ const u = o.getQueryCache(), d = n.queries || [], l = [], f = [];
536
+ for (const g of d) {
537
+ const p = u.get(g.queryHash);
538
+ p ? (g.state.dataUpdatedAt > p.state.dataUpdatedAt || g.promise && p.state.status !== "pending" && p.state.fetchStatus !== "fetching" && g.dehydratedAt !== void 0 && g.dehydratedAt > p.state.dataUpdatedAt) && f.push(g) : l.push(g);
539
539
  }
540
- if (h.length > 0 && $e(o, { queries: h }, s.current), g.length > 0)
541
- return g;
540
+ if (l.length > 0 && Pe(o, { queries: l }, s.current), f.length > 0)
541
+ return f;
542
542
  }
543
543
  }, [o, n]);
544
- return C.useEffect(() => {
545
- i && $e(o, { queries: i }, s.current);
544
+ return D.useEffect(() => {
545
+ i && Pe(o, { queries: i }, s.current);
546
546
  }, [o, i]), e;
547
547
  };
548
548
  /**
549
- * react-router v7.6.3
549
+ * react-router v7.8.2
550
550
  *
551
551
  * Copyright (c) Remix Software Inc.
552
552
  *
@@ -555,69 +555,74 @@ var fn = ({
555
555
  *
556
556
  * @license MIT
557
557
  */
558
- function pn(e) {
559
- return /* @__PURE__ */ C.createElement(Tt, { flushSync: Nt.flushSync, ...e });
558
+ function bn(e) {
559
+ return /* @__PURE__ */ D.createElement(Ut, { flushSync: Lt.flushSync, ...e });
560
560
  }
561
- const mn = new dn({
561
+ const zn = new _n({
562
562
  defaultOptions: {
563
563
  queries: {
564
564
  staleTime: 1e3 * 60 * 5
565
565
  }
566
566
  }
567
- }), gn = ({
567
+ }), kn = ({
568
568
  router: e,
569
569
  hydrate: t = !1
570
- }) => /* @__PURE__ */ a.jsx(Ke, { children: /* @__PURE__ */ a.jsx(We, { client: mn, children: /* @__PURE__ */ a.jsx(fn, { state: t ? window.DATA : void 0, children: /* @__PURE__ */ a.jsx(Ge, { value: !1, children: /* @__PURE__ */ a.jsx(Qe, { children: /* @__PURE__ */ a.jsx(Rt.Provider, { value: { stagger: !t }, children: /* @__PURE__ */ a.jsx(pn, { router: e }) }) }) }) }) }) }), vn = ({
570
+ }) => /* @__PURE__ */ a.jsx(Ye, { children: /* @__PURE__ */ a.jsx(Ge, { client: zn, children: /* @__PURE__ */ a.jsx(wn, { state: t ? window.DATA : void 0, children: /* @__PURE__ */ a.jsx(tt, { value: !1, children: /* @__PURE__ */ a.jsx(Ke, { children: /* @__PURE__ */ a.jsx(Bt.Provider, { value: { stagger: !t }, children: /* @__PURE__ */ a.jsx(bn, { router: e }) }) }) }) }) }) }), xn = ({
571
571
  router: e,
572
572
  context: t,
573
573
  queryClient: n,
574
574
  helmetContext: r,
575
575
  bypassProtection: o = !1
576
- }) => /* @__PURE__ */ a.jsx(Ke, { children: /* @__PURE__ */ a.jsx(We, { client: n, children: /* @__PURE__ */ a.jsx(Qe, { context: r, children: /* @__PURE__ */ a.jsx(Ge, { value: o, children: /* @__PURE__ */ a.jsx(Dt, { router: e, context: t }) }) }) }) });
576
+ }) => /* @__PURE__ */ a.jsx(Ye, { children: /* @__PURE__ */ a.jsx(Ge, { client: n, children: /* @__PURE__ */ a.jsx(Ke, { context: r, children: /* @__PURE__ */ a.jsx(tt, { value: o, children: /* @__PURE__ */ a.jsx(qt, { router: e, context: t }) }) }) }) });
577
577
  function c(e, t, n) {
578
- function r(u, f) {
579
- var h;
578
+ function r(u, d) {
579
+ var l;
580
580
  Object.defineProperty(u, "_zod", {
581
581
  value: u._zod ?? {},
582
582
  enumerable: !1
583
- }), (h = u._zod).traits ?? (h.traits = /* @__PURE__ */ new Set()), u._zod.traits.add(e), t(u, f);
584
- for (const g in i.prototype)
585
- g in u || Object.defineProperty(u, g, { value: i.prototype[g].bind(u) });
586
- u._zod.constr = i, u._zod.def = f;
583
+ }), (l = u._zod).traits ?? (l.traits = /* @__PURE__ */ new Set()), u._zod.traits.add(e), t(u, d);
584
+ for (const f in i.prototype)
585
+ f in u || Object.defineProperty(u, f, { value: i.prototype[f].bind(u) });
586
+ u._zod.constr = i, u._zod.def = d;
587
587
  }
588
588
  const o = n?.Parent ?? Object;
589
589
  class s extends o {
590
590
  }
591
591
  Object.defineProperty(s, "name", { value: e });
592
592
  function i(u) {
593
- var f;
594
- const h = n?.Parent ? new s() : this;
595
- r(h, u), (f = h._zod).deferred ?? (f.deferred = []);
596
- for (const g of h._zod.deferred)
597
- g();
598
- return h;
593
+ var d;
594
+ const l = n?.Parent ? new s() : this;
595
+ r(l, u), (d = l._zod).deferred ?? (d.deferred = []);
596
+ for (const f of l._zod.deferred)
597
+ f();
598
+ return l;
599
599
  }
600
600
  return Object.defineProperty(i, "init", { value: r }), Object.defineProperty(i, Symbol.hasInstance, {
601
601
  value: (u) => n?.Parent && u instanceof n.Parent ? !0 : u?._zod?.traits?.has(e)
602
602
  }), Object.defineProperty(i, "name", { value: e }), i;
603
603
  }
604
- class M extends Error {
604
+ class Q extends Error {
605
605
  constructor() {
606
606
  super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
607
607
  }
608
608
  }
609
- const Je = {};
609
+ class nt extends Error {
610
+ constructor(t) {
611
+ super(`Encountered unidirectional transform during encode: ${t}`), this.name = "ZodEncodeError";
612
+ }
613
+ }
614
+ const rt = {};
610
615
  function R(e) {
611
- return Je;
616
+ return rt;
612
617
  }
613
- function _n(e) {
618
+ function Zn(e) {
614
619
  const t = Object.values(e).filter((r) => typeof r == "number");
615
620
  return Object.entries(e).filter(([r, o]) => t.indexOf(+r) === -1).map(([r, o]) => o);
616
621
  }
617
- function yn(e, t) {
622
+ function ue(e, t) {
618
623
  return typeof t == "bigint" ? t.toString() : t;
619
624
  }
620
- function Ye(e) {
625
+ function he(e) {
621
626
  return {
622
627
  get value() {
623
628
  {
@@ -627,31 +632,31 @@ function Ye(e) {
627
632
  }
628
633
  };
629
634
  }
630
- function ae(e) {
635
+ function fe(e) {
631
636
  return e == null;
632
637
  }
633
- function ce(e) {
638
+ function pe(e) {
634
639
  const t = e.startsWith("^") ? 1 : 0, n = e.endsWith("$") ? e.length - 1 : e.length;
635
640
  return e.slice(t, n);
636
641
  }
637
- function w(e, t, n) {
642
+ const Oe = Symbol("evaluating");
643
+ function _(e, t, n) {
644
+ let r;
638
645
  Object.defineProperty(e, t, {
639
646
  get() {
640
- {
641
- const r = n();
642
- return e[t] = r, r;
643
- }
647
+ if (r !== Oe)
648
+ return r === void 0 && (r = Oe, r = n()), r;
644
649
  },
645
- set(r) {
650
+ set(o) {
646
651
  Object.defineProperty(e, t, {
647
- value: r
652
+ value: o
648
653
  // configurable: true,
649
654
  });
650
655
  },
651
656
  configurable: !0
652
657
  });
653
658
  }
654
- function ue(e, t, n) {
659
+ function U(e, t, n) {
655
660
  Object.defineProperty(e, t, {
656
661
  value: n,
657
662
  writable: !0,
@@ -659,15 +664,23 @@ function ue(e, t, n) {
659
664
  configurable: !0
660
665
  });
661
666
  }
662
- function q(e) {
667
+ function q(...e) {
668
+ const t = {};
669
+ for (const n of e) {
670
+ const r = Object.getOwnPropertyDescriptors(n);
671
+ Object.assign(t, r);
672
+ }
673
+ return Object.defineProperties({}, t);
674
+ }
675
+ function Ee(e) {
663
676
  return JSON.stringify(e);
664
677
  }
665
- const Xe = Error.captureStackTrace ? Error.captureStackTrace : (...e) => {
678
+ const ot = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {
666
679
  };
667
- function re(e) {
680
+ function ee(e) {
668
681
  return typeof e == "object" && e !== null && !Array.isArray(e);
669
682
  }
670
- const wn = Ye(() => {
683
+ const $n = he(() => {
671
684
  if (typeof navigator < "u" && navigator?.userAgent?.includes("Cloudflare"))
672
685
  return !1;
673
686
  try {
@@ -677,24 +690,27 @@ const wn = Ye(() => {
677
690
  return !1;
678
691
  }
679
692
  });
680
- function oe(e) {
681
- if (re(e) === !1)
693
+ function B(e) {
694
+ if (ee(e) === !1)
682
695
  return !1;
683
696
  const t = e.constructor;
684
697
  if (t === void 0)
685
698
  return !0;
686
699
  const n = t.prototype;
687
- return !(re(n) === !1 || Object.prototype.hasOwnProperty.call(n, "isPrototypeOf") === !1);
700
+ return !(ee(n) === !1 || Object.prototype.hasOwnProperty.call(n, "isPrototypeOf") === !1);
688
701
  }
689
- const bn = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
690
- function ee(e) {
702
+ function st(e) {
703
+ return B(e) ? { ...e } : Array.isArray(e) ? [...e] : e;
704
+ }
705
+ const jn = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
706
+ function se(e) {
691
707
  return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
692
708
  }
693
- function F(e, t, n) {
709
+ function N(e, t, n) {
694
710
  const r = new e._zod.constr(t ?? e._zod.def);
695
711
  return (!t || n?.parent) && (r._zod.parent = e), r;
696
712
  }
697
- function l(e) {
713
+ function h(e) {
698
714
  const t = e;
699
715
  if (!t)
700
716
  return {};
@@ -707,135 +723,160 @@ function l(e) {
707
723
  }
708
724
  return delete t.message, typeof t.error == "string" ? { ...t, error: () => t.error } : t;
709
725
  }
710
- function zn(e) {
726
+ function Pn(e) {
711
727
  return Object.keys(e).filter((t) => e[t]._zod.optin === "optional" && e[t]._zod.optout === "optional");
712
728
  }
713
- function xn(e, t) {
714
- const n = {}, r = e._zod.def;
715
- for (const o in t) {
716
- if (!(o in r.shape))
717
- throw new Error(`Unrecognized key: "${o}"`);
718
- t[o] && (n[o] = r.shape[o]);
719
- }
720
- return F(e, {
721
- ...e._zod.def,
722
- shape: n,
729
+ function On(e, t) {
730
+ const n = e._zod.def, r = q(e._zod.def, {
731
+ get shape() {
732
+ const o = {};
733
+ for (const s in t) {
734
+ if (!(s in n.shape))
735
+ throw new Error(`Unrecognized key: "${s}"`);
736
+ t[s] && (o[s] = n.shape[s]);
737
+ }
738
+ return U(this, "shape", o), o;
739
+ },
723
740
  checks: []
724
741
  });
742
+ return N(e, r);
725
743
  }
726
- function $n(e, t) {
727
- const n = { ...e._zod.def.shape }, r = e._zod.def;
728
- for (const o in t) {
729
- if (!(o in r.shape))
730
- throw new Error(`Unrecognized key: "${o}"`);
731
- t[o] && delete n[o];
732
- }
733
- return F(e, {
734
- ...e._zod.def,
735
- shape: n,
744
+ function En(e, t) {
745
+ const n = e._zod.def, r = q(e._zod.def, {
746
+ get shape() {
747
+ const o = { ...e._zod.def.shape };
748
+ for (const s in t) {
749
+ if (!(s in n.shape))
750
+ throw new Error(`Unrecognized key: "${s}"`);
751
+ t[s] && delete o[s];
752
+ }
753
+ return U(this, "shape", o), o;
754
+ },
736
755
  checks: []
737
756
  });
757
+ return N(e, r);
738
758
  }
739
- function kn(e, t) {
740
- if (!oe(t))
759
+ function An(e, t) {
760
+ if (!B(t))
741
761
  throw new Error("Invalid input to extend: expected a plain object");
762
+ const n = e._zod.def.checks;
763
+ if (n && n.length > 0)
764
+ throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");
765
+ const o = q(e._zod.def, {
766
+ get shape() {
767
+ const s = { ...e._zod.def.shape, ...t };
768
+ return U(this, "shape", s), s;
769
+ },
770
+ checks: []
771
+ });
772
+ return N(e, o);
773
+ }
774
+ function Tn(e, t) {
775
+ if (!B(t))
776
+ throw new Error("Invalid input to safeExtend: expected a plain object");
742
777
  const n = {
743
778
  ...e._zod.def,
744
779
  get shape() {
745
780
  const r = { ...e._zod.def.shape, ...t };
746
- return ue(this, "shape", r), r;
781
+ return U(this, "shape", r), r;
747
782
  },
748
- checks: []
749
- // delete existing checks
783
+ checks: e._zod.def.checks
750
784
  };
751
- return F(e, n);
785
+ return N(e, n);
752
786
  }
753
- function Zn(e, t) {
754
- return F(e, {
755
- ...e._zod.def,
787
+ function Sn(e, t) {
788
+ const n = q(e._zod.def, {
756
789
  get shape() {
757
- const n = { ...e._zod.def.shape, ...t._zod.def.shape };
758
- return ue(this, "shape", n), n;
790
+ const r = { ...e._zod.def.shape, ...t._zod.def.shape };
791
+ return U(this, "shape", r), r;
792
+ },
793
+ get catchall() {
794
+ return t._zod.def.catchall;
759
795
  },
760
- catchall: t._zod.def.catchall,
761
796
  checks: []
762
797
  // delete existing checks
763
798
  });
799
+ return N(e, n);
764
800
  }
765
- function jn(e, t, n) {
766
- const r = t._zod.def.shape, o = { ...r };
767
- if (n)
768
- for (const s in n) {
769
- if (!(s in r))
770
- throw new Error(`Unrecognized key: "${s}"`);
771
- n[s] && (o[s] = e ? new e({
772
- type: "optional",
773
- innerType: r[s]
774
- }) : r[s]);
775
- }
776
- else
777
- for (const s in r)
778
- o[s] = e ? new e({
779
- type: "optional",
780
- innerType: r[s]
781
- }) : r[s];
782
- return F(t, {
783
- ...t._zod.def,
784
- shape: o,
801
+ function In(e, t, n) {
802
+ const r = q(t._zod.def, {
803
+ get shape() {
804
+ const o = t._zod.def.shape, s = { ...o };
805
+ if (n)
806
+ for (const i in n) {
807
+ if (!(i in o))
808
+ throw new Error(`Unrecognized key: "${i}"`);
809
+ n[i] && (s[i] = e ? new e({
810
+ type: "optional",
811
+ innerType: o[i]
812
+ }) : o[i]);
813
+ }
814
+ else
815
+ for (const i in o)
816
+ s[i] = e ? new e({
817
+ type: "optional",
818
+ innerType: o[i]
819
+ }) : o[i];
820
+ return U(this, "shape", s), s;
821
+ },
785
822
  checks: []
786
823
  });
824
+ return N(t, r);
787
825
  }
788
- function Pn(e, t, n) {
789
- const r = t._zod.def.shape, o = { ...r };
790
- if (n)
791
- for (const s in n) {
792
- if (!(s in o))
793
- throw new Error(`Unrecognized key: "${s}"`);
794
- n[s] && (o[s] = new e({
795
- type: "nonoptional",
796
- innerType: r[s]
797
- }));
798
- }
799
- else
800
- for (const s in r)
801
- o[s] = new e({
802
- type: "nonoptional",
803
- innerType: r[s]
804
- });
805
- return F(t, {
806
- ...t._zod.def,
807
- shape: o,
808
- // optional: [],
826
+ function Dn(e, t, n) {
827
+ const r = q(t._zod.def, {
828
+ get shape() {
829
+ const o = t._zod.def.shape, s = { ...o };
830
+ if (n)
831
+ for (const i in n) {
832
+ if (!(i in s))
833
+ throw new Error(`Unrecognized key: "${i}"`);
834
+ n[i] && (s[i] = new e({
835
+ type: "nonoptional",
836
+ innerType: o[i]
837
+ }));
838
+ }
839
+ else
840
+ for (const i in o)
841
+ s[i] = new e({
842
+ type: "nonoptional",
843
+ innerType: o[i]
844
+ });
845
+ return U(this, "shape", s), s;
846
+ },
809
847
  checks: []
810
848
  });
849
+ return N(t, r);
811
850
  }
812
- function Q(e, t = 0) {
851
+ function M(e, t = 0) {
852
+ if (e.aborted === !0)
853
+ return !0;
813
854
  for (let n = t; n < e.issues.length; n++)
814
855
  if (e.issues[n]?.continue !== !0)
815
856
  return !0;
816
857
  return !1;
817
858
  }
818
- function le(e, t) {
859
+ function it(e, t) {
819
860
  return t.map((n) => {
820
861
  var r;
821
862
  return (r = n).path ?? (r.path = []), n.path.unshift(e), n;
822
863
  });
823
864
  }
824
- function K(e) {
865
+ function J(e) {
825
866
  return typeof e == "string" ? e : e?.message;
826
867
  }
827
- function U(e, t, n) {
868
+ function F(e, t, n) {
828
869
  const r = { ...e, path: e.path ?? [] };
829
870
  if (!e.message) {
830
- const o = K(e.inst?._zod.def?.error?.(e)) ?? K(t?.error?.(e)) ?? K(n.customError?.(e)) ?? K(n.localeError?.(e)) ?? "Invalid input";
871
+ const o = J(e.inst?._zod.def?.error?.(e)) ?? J(t?.error?.(e)) ?? J(n.customError?.(e)) ?? J(n.localeError?.(e)) ?? "Invalid input";
831
872
  r.message = o;
832
873
  }
833
874
  return delete r.inst, delete r.continue, t?.reportInput || delete r.input, r;
834
875
  }
835
- function de(e) {
876
+ function me(e) {
836
877
  return Array.isArray(e) ? "array" : typeof e == "string" ? "string" : "unknown";
837
878
  }
838
- function L(...e) {
879
+ function W(...e) {
839
880
  const [t, n, r] = e;
840
881
  return typeof t == "string" ? {
841
882
  message: t,
@@ -844,175 +885,185 @@ function L(...e) {
844
885
  inst: r
845
886
  } : { ...t };
846
887
  }
847
- const et = (e, t) => {
888
+ const at = (e, t) => {
848
889
  e.name = "$ZodError", Object.defineProperty(e, "_zod", {
849
890
  value: e._zod,
850
891
  enumerable: !1
851
892
  }), Object.defineProperty(e, "issues", {
852
893
  value: t,
853
894
  enumerable: !1
854
- }), Object.defineProperty(e, "message", {
855
- get() {
856
- return JSON.stringify(t, yn, 2);
857
- },
858
- enumerable: !0
859
- // configurable: false,
895
+ }), e.message = JSON.stringify(t, ue, 2), Object.defineProperty(e, "toString", {
896
+ value: () => e.message,
897
+ enumerable: !1
860
898
  });
861
- }, tt = c("$ZodError", et), nt = c("$ZodError", et, { Parent: Error });
862
- function On(e, t = (n) => n.message) {
899
+ }, ct = c("$ZodError", at), ut = c("$ZodError", at, { Parent: Error });
900
+ function Cn(e, t = (n) => n.message) {
863
901
  const n = {}, r = [];
864
902
  for (const o of e.issues)
865
903
  o.path.length > 0 ? (n[o.path[0]] = n[o.path[0]] || [], n[o.path[0]].push(t(o))) : r.push(t(o));
866
904
  return { formErrors: r, fieldErrors: n };
867
905
  }
868
- function En(e, t) {
869
- const n = t || function(s) {
870
- return s.message;
871
- }, r = { _errors: [] }, o = (s) => {
872
- for (const i of s.issues)
873
- if (i.code === "invalid_union" && i.errors.length)
874
- i.errors.map((u) => o({ issues: u }));
875
- else if (i.code === "invalid_key")
876
- o({ issues: i.issues });
877
- else if (i.code === "invalid_element")
878
- o({ issues: i.issues });
879
- else if (i.path.length === 0)
880
- r._errors.push(n(i));
906
+ function Nn(e, t = (n) => n.message) {
907
+ const n = { _errors: [] }, r = (o) => {
908
+ for (const s of o.issues)
909
+ if (s.code === "invalid_union" && s.errors.length)
910
+ s.errors.map((i) => r({ issues: i }));
911
+ else if (s.code === "invalid_key")
912
+ r({ issues: s.issues });
913
+ else if (s.code === "invalid_element")
914
+ r({ issues: s.issues });
915
+ else if (s.path.length === 0)
916
+ n._errors.push(t(s));
881
917
  else {
882
- let u = r, f = 0;
883
- for (; f < i.path.length; ) {
884
- const h = i.path[f];
885
- f === i.path.length - 1 ? (u[h] = u[h] || { _errors: [] }, u[h]._errors.push(n(i))) : u[h] = u[h] || { _errors: [] }, u = u[h], f++;
918
+ let i = n, u = 0;
919
+ for (; u < s.path.length; ) {
920
+ const d = s.path[u];
921
+ u === s.path.length - 1 ? (i[d] = i[d] || { _errors: [] }, i[d]._errors.push(t(s))) : i[d] = i[d] || { _errors: [] }, i = i[d], u++;
886
922
  }
887
923
  }
888
924
  };
889
- return o(e), r;
925
+ return r(e), n;
890
926
  }
891
- const In = (e) => (t, n, r, o) => {
927
+ const ge = (e) => (t, n, r, o) => {
892
928
  const s = r ? Object.assign(r, { async: !1 }) : { async: !1 }, i = t._zod.run({ value: n, issues: [] }, s);
893
929
  if (i instanceof Promise)
894
- throw new M();
930
+ throw new Q();
895
931
  if (i.issues.length) {
896
- const u = new (o?.Err ?? e)(i.issues.map((f) => U(f, s, R())));
897
- throw Xe(u, o?.callee), u;
932
+ const u = new (o?.Err ?? e)(i.issues.map((d) => F(d, s, R())));
933
+ throw ot(u, o?.callee), u;
898
934
  }
899
935
  return i.value;
900
- }, Sn = (e) => async (t, n, r, o) => {
936
+ }, ve = (e) => async (t, n, r, o) => {
901
937
  const s = r ? Object.assign(r, { async: !0 }) : { async: !0 };
902
938
  let i = t._zod.run({ value: n, issues: [] }, s);
903
939
  if (i instanceof Promise && (i = await i), i.issues.length) {
904
- const u = new (o?.Err ?? e)(i.issues.map((f) => U(f, s, R())));
905
- throw Xe(u, o?.callee), u;
940
+ const u = new (o?.Err ?? e)(i.issues.map((d) => F(d, s, R())));
941
+ throw ot(u, o?.callee), u;
906
942
  }
907
943
  return i.value;
908
- }, rt = (e) => (t, n, r) => {
944
+ }, ie = (e) => (t, n, r) => {
909
945
  const o = r ? { ...r, async: !1 } : { async: !1 }, s = t._zod.run({ value: n, issues: [] }, o);
910
946
  if (s instanceof Promise)
911
- throw new M();
947
+ throw new Q();
912
948
  return s.issues.length ? {
913
949
  success: !1,
914
- error: new (e ?? tt)(s.issues.map((i) => U(i, o, R())))
950
+ error: new (e ?? ct)(s.issues.map((i) => F(i, o, R())))
915
951
  } : { success: !0, data: s.value };
916
- }, Tn = /* @__PURE__ */ rt(nt), ot = (e) => async (t, n, r) => {
952
+ }, Rn = /* @__PURE__ */ ie(ut), ae = (e) => async (t, n, r) => {
917
953
  const o = r ? Object.assign(r, { async: !0 }) : { async: !0 };
918
954
  let s = t._zod.run({ value: n, issues: [] }, o);
919
955
  return s instanceof Promise && (s = await s), s.issues.length ? {
920
956
  success: !1,
921
- error: new e(s.issues.map((i) => U(i, o, R())))
957
+ error: new e(s.issues.map((i) => F(i, o, R())))
922
958
  } : { success: !0, data: s.value };
923
- }, Dn = /* @__PURE__ */ ot(nt), An = /^[cC][^\s-]{8,}$/, Cn = /^[0-9a-z]+$/, Nn = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, Rn = /^[0-9a-vA-V]{20}$/, Un = /^[A-Za-z0-9]{27}$/, Fn = /^[a-zA-Z0-9_-]{21}$/, qn = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, Qn = /^([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})$/, ke = (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)$/, Mn = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, Ln = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
924
- function Bn() {
925
- return new RegExp(Ln, "u");
926
- }
927
- const Wn = /^(?:(?: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])$/, Kn = /^(([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})$/, Hn = /^((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])$/, Vn = /^(([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])$/, Gn = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, st = /^[A-Za-z0-9_-]*$/, Jn = /^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/, Yn = /^\+(?:[0-9]){6,14}[0-9]$/, it = "(?:(?:\\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])))", Xn = /* @__PURE__ */ new RegExp(`^${it}$`);
928
- function at(e) {
959
+ }, Fn = /* @__PURE__ */ ae(ut), Un = (e) => (t, n, r) => {
960
+ const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
961
+ return ge(e)(t, n, o);
962
+ }, qn = (e) => (t, n, r) => ge(e)(t, n, r), Mn = (e) => async (t, n, r) => {
963
+ const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
964
+ return ve(e)(t, n, o);
965
+ }, Qn = (e) => async (t, n, r) => ve(e)(t, n, r), Ln = (e) => (t, n, r) => {
966
+ const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
967
+ return ie(e)(t, n, o);
968
+ }, Bn = (e) => (t, n, r) => ie(e)(t, n, r), Wn = (e) => async (t, n, r) => {
969
+ const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
970
+ return ae(e)(t, n, o);
971
+ }, Kn = (e) => async (t, n, r) => ae(e)(t, n, r), Hn = /^[cC][^\s-]{8,}$/, Vn = /^[0-9a-z]+$/, Jn = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, Gn = /^[0-9a-vA-V]{20}$/, Yn = /^[A-Za-z0-9]{27}$/, Xn = /^[a-zA-Z0-9_-]{21}$/, er = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, tr = /^([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})$/, Ae = (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|ffffffff-ffff-ffff-ffff-ffffffffffff)$/, nr = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, rr = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
972
+ function or() {
973
+ return new RegExp(rr, "u");
974
+ }
975
+ const sr = /^(?:(?: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])$/, ir = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/, ar = /^((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])$/, cr = /^(([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])$/, ur = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, lt = /^[A-Za-z0-9_-]*$/, lr = /^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/, dr = /^\+(?:[0-9]){6,14}[0-9]$/, dt = "(?:(?:\\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])))", hr = /* @__PURE__ */ new RegExp(`^${dt}$`);
976
+ function ht(e) {
929
977
  const t = "(?:[01]\\d|2[0-3]):[0-5]\\d";
930
978
  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+)?)?`;
931
979
  }
932
- function er(e) {
933
- return new RegExp(`^${at(e)}$`);
980
+ function fr(e) {
981
+ return new RegExp(`^${ht(e)}$`);
934
982
  }
935
- function tr(e) {
936
- const t = at({ precision: e.precision }), n = ["Z"];
937
- e.local && n.push(""), e.offset && n.push("([+-]\\d{2}:\\d{2})");
983
+ function pr(e) {
984
+ const t = ht({ precision: e.precision }), n = ["Z"];
985
+ e.local && n.push(""), e.offset && n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");
938
986
  const r = `${t}(?:${n.join("|")})`;
939
- return new RegExp(`^${it}T(?:${r})$`);
987
+ return new RegExp(`^${dt}T(?:${r})$`);
940
988
  }
941
- const nr = (e) => {
989
+ const mr = (e) => {
942
990
  const t = e ? `[\\s\\S]{${e?.minimum ?? 0},${e?.maximum ?? ""}}` : "[\\s\\S]*";
943
991
  return new RegExp(`^${t}$`);
944
- }, rr = /^[^A-Z]*$/, or = /^[^a-z]*$/, S = /* @__PURE__ */ c("$ZodCheck", (e, t) => {
992
+ }, gr = /^[^A-Z]*$/, vr = /^[^a-z]*$/, T = /* @__PURE__ */ c("$ZodCheck", (e, t) => {
945
993
  var n;
946
994
  e._zod ?? (e._zod = {}), e._zod.def = t, (n = e._zod).onattach ?? (n.onattach = []);
947
- }), sr = /* @__PURE__ */ c("$ZodCheckMaxLength", (e, t) => {
948
- S.init(e, t), e._zod.when = (n) => {
949
- const r = n.value;
950
- return !ae(r) && r.length !== void 0;
951
- }, e._zod.onattach.push((n) => {
952
- const r = n._zod.bag.maximum ?? Number.POSITIVE_INFINITY;
953
- t.maximum < r && (n._zod.bag.maximum = t.maximum);
954
- }), e._zod.check = (n) => {
955
- const r = n.value;
956
- if (r.length <= t.maximum)
995
+ }), _r = /* @__PURE__ */ c("$ZodCheckMaxLength", (e, t) => {
996
+ var n;
997
+ T.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
998
+ const o = r.value;
999
+ return !fe(o) && o.length !== void 0;
1000
+ }), e._zod.onattach.push((r) => {
1001
+ const o = r._zod.bag.maximum ?? Number.POSITIVE_INFINITY;
1002
+ t.maximum < o && (r._zod.bag.maximum = t.maximum);
1003
+ }), e._zod.check = (r) => {
1004
+ const o = r.value;
1005
+ if (o.length <= t.maximum)
957
1006
  return;
958
- const s = de(r);
959
- n.issues.push({
960
- origin: s,
1007
+ const i = me(o);
1008
+ r.issues.push({
1009
+ origin: i,
961
1010
  code: "too_big",
962
1011
  maximum: t.maximum,
963
1012
  inclusive: !0,
964
- input: r,
1013
+ input: o,
965
1014
  inst: e,
966
1015
  continue: !t.abort
967
1016
  });
968
1017
  };
969
- }), ir = /* @__PURE__ */ c("$ZodCheckMinLength", (e, t) => {
970
- S.init(e, t), e._zod.when = (n) => {
971
- const r = n.value;
972
- return !ae(r) && r.length !== void 0;
973
- }, e._zod.onattach.push((n) => {
974
- const r = n._zod.bag.minimum ?? Number.NEGATIVE_INFINITY;
975
- t.minimum > r && (n._zod.bag.minimum = t.minimum);
976
- }), e._zod.check = (n) => {
977
- const r = n.value;
978
- if (r.length >= t.minimum)
1018
+ }), yr = /* @__PURE__ */ c("$ZodCheckMinLength", (e, t) => {
1019
+ var n;
1020
+ T.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
1021
+ const o = r.value;
1022
+ return !fe(o) && o.length !== void 0;
1023
+ }), e._zod.onattach.push((r) => {
1024
+ const o = r._zod.bag.minimum ?? Number.NEGATIVE_INFINITY;
1025
+ t.minimum > o && (r._zod.bag.minimum = t.minimum);
1026
+ }), e._zod.check = (r) => {
1027
+ const o = r.value;
1028
+ if (o.length >= t.minimum)
979
1029
  return;
980
- const s = de(r);
981
- n.issues.push({
982
- origin: s,
1030
+ const i = me(o);
1031
+ r.issues.push({
1032
+ origin: i,
983
1033
  code: "too_small",
984
1034
  minimum: t.minimum,
985
1035
  inclusive: !0,
986
- input: r,
1036
+ input: o,
987
1037
  inst: e,
988
1038
  continue: !t.abort
989
1039
  });
990
1040
  };
991
- }), ar = /* @__PURE__ */ c("$ZodCheckLengthEquals", (e, t) => {
992
- S.init(e, t), e._zod.when = (n) => {
993
- const r = n.value;
994
- return !ae(r) && r.length !== void 0;
995
- }, e._zod.onattach.push((n) => {
996
- const r = n._zod.bag;
997
- r.minimum = t.length, r.maximum = t.length, r.length = t.length;
998
- }), e._zod.check = (n) => {
999
- const r = n.value, o = r.length;
1000
- if (o === t.length)
1041
+ }), wr = /* @__PURE__ */ c("$ZodCheckLengthEquals", (e, t) => {
1042
+ var n;
1043
+ T.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
1044
+ const o = r.value;
1045
+ return !fe(o) && o.length !== void 0;
1046
+ }), e._zod.onattach.push((r) => {
1047
+ const o = r._zod.bag;
1048
+ o.minimum = t.length, o.maximum = t.length, o.length = t.length;
1049
+ }), e._zod.check = (r) => {
1050
+ const o = r.value, s = o.length;
1051
+ if (s === t.length)
1001
1052
  return;
1002
- const s = de(r), i = o > t.length;
1003
- n.issues.push({
1004
- origin: s,
1005
- ...i ? { code: "too_big", maximum: t.length } : { code: "too_small", minimum: t.length },
1053
+ const i = me(o), u = s > t.length;
1054
+ r.issues.push({
1055
+ origin: i,
1056
+ ...u ? { code: "too_big", maximum: t.length } : { code: "too_small", minimum: t.length },
1006
1057
  inclusive: !0,
1007
1058
  exact: !0,
1008
- input: n.value,
1059
+ input: r.value,
1009
1060
  inst: e,
1010
1061
  continue: !t.abort
1011
1062
  });
1012
1063
  };
1013
- }), te = /* @__PURE__ */ c("$ZodCheckStringFormat", (e, t) => {
1064
+ }), ce = /* @__PURE__ */ c("$ZodCheckStringFormat", (e, t) => {
1014
1065
  var n, r;
1015
- S.init(e, t), e._zod.onattach.push((o) => {
1066
+ T.init(e, t), e._zod.onattach.push((o) => {
1016
1067
  const s = o._zod.bag;
1017
1068
  s.format = t.format, t.pattern && (s.patterns ?? (s.patterns = /* @__PURE__ */ new Set()), s.patterns.add(t.pattern));
1018
1069
  }), t.pattern ? (n = e._zod).check ?? (n.check = (o) => {
@@ -1027,8 +1078,8 @@ const nr = (e) => {
1027
1078
  });
1028
1079
  }) : (r = e._zod).check ?? (r.check = () => {
1029
1080
  });
1030
- }), cr = /* @__PURE__ */ c("$ZodCheckRegex", (e, t) => {
1031
- te.init(e, t), e._zod.check = (n) => {
1081
+ }), br = /* @__PURE__ */ c("$ZodCheckRegex", (e, t) => {
1082
+ ce.init(e, t), e._zod.check = (n) => {
1032
1083
  t.pattern.lastIndex = 0, !t.pattern.test(n.value) && n.issues.push({
1033
1084
  origin: "string",
1034
1085
  code: "invalid_format",
@@ -1039,13 +1090,13 @@ const nr = (e) => {
1039
1090
  continue: !t.abort
1040
1091
  });
1041
1092
  };
1042
- }), ur = /* @__PURE__ */ c("$ZodCheckLowerCase", (e, t) => {
1043
- t.pattern ?? (t.pattern = rr), te.init(e, t);
1044
- }), lr = /* @__PURE__ */ c("$ZodCheckUpperCase", (e, t) => {
1045
- t.pattern ?? (t.pattern = or), te.init(e, t);
1046
- }), dr = /* @__PURE__ */ c("$ZodCheckIncludes", (e, t) => {
1047
- S.init(e, t);
1048
- const n = ee(t.includes), r = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${n}` : n);
1093
+ }), zr = /* @__PURE__ */ c("$ZodCheckLowerCase", (e, t) => {
1094
+ t.pattern ?? (t.pattern = gr), ce.init(e, t);
1095
+ }), kr = /* @__PURE__ */ c("$ZodCheckUpperCase", (e, t) => {
1096
+ t.pattern ?? (t.pattern = vr), ce.init(e, t);
1097
+ }), xr = /* @__PURE__ */ c("$ZodCheckIncludes", (e, t) => {
1098
+ T.init(e, t);
1099
+ const n = se(t.includes), r = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${n}` : n);
1049
1100
  t.pattern = r, e._zod.onattach.push((o) => {
1050
1101
  const s = o._zod.bag;
1051
1102
  s.patterns ?? (s.patterns = /* @__PURE__ */ new Set()), s.patterns.add(r);
@@ -1060,9 +1111,9 @@ const nr = (e) => {
1060
1111
  continue: !t.abort
1061
1112
  });
1062
1113
  };
1063
- }), hr = /* @__PURE__ */ c("$ZodCheckStartsWith", (e, t) => {
1064
- S.init(e, t);
1065
- const n = new RegExp(`^${ee(t.prefix)}.*`);
1114
+ }), Zr = /* @__PURE__ */ c("$ZodCheckStartsWith", (e, t) => {
1115
+ T.init(e, t);
1116
+ const n = new RegExp(`^${se(t.prefix)}.*`);
1066
1117
  t.pattern ?? (t.pattern = n), e._zod.onattach.push((r) => {
1067
1118
  const o = r._zod.bag;
1068
1119
  o.patterns ?? (o.patterns = /* @__PURE__ */ new Set()), o.patterns.add(n);
@@ -1077,9 +1128,9 @@ const nr = (e) => {
1077
1128
  continue: !t.abort
1078
1129
  });
1079
1130
  };
1080
- }), fr = /* @__PURE__ */ c("$ZodCheckEndsWith", (e, t) => {
1081
- S.init(e, t);
1082
- const n = new RegExp(`.*${ee(t.suffix)}$`);
1131
+ }), $r = /* @__PURE__ */ c("$ZodCheckEndsWith", (e, t) => {
1132
+ T.init(e, t);
1133
+ const n = new RegExp(`.*${se(t.suffix)}$`);
1083
1134
  t.pattern ?? (t.pattern = n), e._zod.onattach.push((r) => {
1084
1135
  const o = r._zod.bag;
1085
1136
  o.patterns ?? (o.patterns = /* @__PURE__ */ new Set()), o.patterns.add(n);
@@ -1094,12 +1145,12 @@ const nr = (e) => {
1094
1145
  continue: !t.abort
1095
1146
  });
1096
1147
  };
1097
- }), pr = /* @__PURE__ */ c("$ZodCheckOverwrite", (e, t) => {
1098
- S.init(e, t), e._zod.check = (n) => {
1148
+ }), jr = /* @__PURE__ */ c("$ZodCheckOverwrite", (e, t) => {
1149
+ T.init(e, t), e._zod.check = (n) => {
1099
1150
  n.value = t.tx(n.value);
1100
1151
  };
1101
1152
  });
1102
- class mr {
1153
+ class Pr {
1103
1154
  constructor(t = []) {
1104
1155
  this.content = [], this.indent = 0, this && (this.args = t);
1105
1156
  }
@@ -1122,13 +1173,13 @@ class mr {
1122
1173
  `));
1123
1174
  }
1124
1175
  }
1125
- const gr = {
1176
+ const Or = {
1126
1177
  major: 4,
1127
- minor: 0,
1128
- patch: 0
1129
- }, k = /* @__PURE__ */ c("$ZodType", (e, t) => {
1178
+ minor: 1,
1179
+ patch: 12
1180
+ }, b = /* @__PURE__ */ c("$ZodType", (e, t) => {
1130
1181
  var n;
1131
- e ?? (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = gr;
1182
+ e ?? (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = Or;
1132
1183
  const r = [...e._zod.def.checks ?? []];
1133
1184
  e._zod.traits.has("$ZodCheck") && r.unshift(e);
1134
1185
  for (const o of r)
@@ -1139,53 +1190,69 @@ const gr = {
1139
1190
  e._zod.run = e._zod.parse;
1140
1191
  });
1141
1192
  else {
1142
- const o = (s, i, u) => {
1143
- let f = Q(s), h;
1144
- for (const g of i) {
1145
- if (g._zod.when) {
1146
- if (!g._zod.when(s))
1193
+ const o = (i, u, d) => {
1194
+ let l = M(i), f;
1195
+ for (const g of u) {
1196
+ if (g._zod.def.when) {
1197
+ if (!g._zod.def.when(i))
1147
1198
  continue;
1148
- } else if (f)
1199
+ } else if (l)
1149
1200
  continue;
1150
- const d = s.issues.length, p = g._zod.check(s);
1151
- if (p instanceof Promise && u?.async === !1)
1152
- throw new M();
1153
- if (h || p instanceof Promise)
1154
- h = (h ?? Promise.resolve()).then(async () => {
1155
- await p, s.issues.length !== d && (f || (f = Q(s, d)));
1201
+ const p = i.issues.length, v = g._zod.check(i);
1202
+ if (v instanceof Promise && d?.async === !1)
1203
+ throw new Q();
1204
+ if (f || v instanceof Promise)
1205
+ f = (f ?? Promise.resolve()).then(async () => {
1206
+ await v, i.issues.length !== p && (l || (l = M(i, p)));
1156
1207
  });
1157
1208
  else {
1158
- if (s.issues.length === d)
1209
+ if (i.issues.length === p)
1159
1210
  continue;
1160
- f || (f = Q(s, d));
1211
+ l || (l = M(i, p));
1161
1212
  }
1162
1213
  }
1163
- return h ? h.then(() => s) : s;
1214
+ return f ? f.then(() => i) : i;
1215
+ }, s = (i, u, d) => {
1216
+ if (M(i))
1217
+ return i.aborted = !0, i;
1218
+ const l = o(u, r, d);
1219
+ if (l instanceof Promise) {
1220
+ if (d.async === !1)
1221
+ throw new Q();
1222
+ return l.then((f) => e._zod.parse(f, d));
1223
+ }
1224
+ return e._zod.parse(l, d);
1164
1225
  };
1165
- e._zod.run = (s, i) => {
1166
- const u = e._zod.parse(s, i);
1167
- if (u instanceof Promise) {
1168
- if (i.async === !1)
1169
- throw new M();
1170
- return u.then((f) => o(f, r, i));
1226
+ e._zod.run = (i, u) => {
1227
+ if (u.skipChecks)
1228
+ return e._zod.parse(i, u);
1229
+ if (u.direction === "backward") {
1230
+ const l = e._zod.parse({ value: i.value, issues: [] }, { ...u, skipChecks: !0 });
1231
+ return l instanceof Promise ? l.then((f) => s(f, i, u)) : s(l, i, u);
1232
+ }
1233
+ const d = e._zod.parse(i, u);
1234
+ if (d instanceof Promise) {
1235
+ if (u.async === !1)
1236
+ throw new Q();
1237
+ return d.then((l) => o(l, r, u));
1171
1238
  }
1172
- return o(u, r, i);
1239
+ return o(d, r, u);
1173
1240
  };
1174
1241
  }
1175
1242
  e["~standard"] = {
1176
1243
  validate: (o) => {
1177
1244
  try {
1178
- const s = Tn(e, o);
1245
+ const s = Rn(e, o);
1179
1246
  return s.success ? { value: s.data } : { issues: s.error?.issues };
1180
1247
  } catch {
1181
- return Dn(e, o).then((i) => i.success ? { value: i.data } : { issues: i.error?.issues });
1248
+ return Fn(e, o).then((i) => i.success ? { value: i.data } : { issues: i.error?.issues });
1182
1249
  }
1183
1250
  },
1184
1251
  vendor: "zod",
1185
1252
  version: 1
1186
1253
  };
1187
- }), he = /* @__PURE__ */ c("$ZodString", (e, t) => {
1188
- k.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? nr(e._zod.bag), e._zod.parse = (n, r) => {
1254
+ }), _e = /* @__PURE__ */ c("$ZodString", (e, t) => {
1255
+ b.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? mr(e._zod.bag), e._zod.parse = (n, r) => {
1189
1256
  if (t.coerce)
1190
1257
  try {
1191
1258
  n.value = String(n.value);
@@ -1198,11 +1265,11 @@ const gr = {
1198
1265
  inst: e
1199
1266
  }), n;
1200
1267
  };
1201
- }), b = /* @__PURE__ */ c("$ZodStringFormat", (e, t) => {
1202
- te.init(e, t), he.init(e, t);
1203
- }), vr = /* @__PURE__ */ c("$ZodGUID", (e, t) => {
1204
- t.pattern ?? (t.pattern = Qn), b.init(e, t);
1205
- }), _r = /* @__PURE__ */ c("$ZodUUID", (e, t) => {
1268
+ }), y = /* @__PURE__ */ c("$ZodStringFormat", (e, t) => {
1269
+ ce.init(e, t), _e.init(e, t);
1270
+ }), Er = /* @__PURE__ */ c("$ZodGUID", (e, t) => {
1271
+ t.pattern ?? (t.pattern = tr), y.init(e, t);
1272
+ }), Ar = /* @__PURE__ */ c("$ZodUUID", (e, t) => {
1206
1273
  if (t.version) {
1207
1274
  const r = {
1208
1275
  v1: 1,
@@ -1216,21 +1283,21 @@ const gr = {
1216
1283
  }[t.version];
1217
1284
  if (r === void 0)
1218
1285
  throw new Error(`Invalid UUID version: "${t.version}"`);
1219
- t.pattern ?? (t.pattern = ke(r));
1286
+ t.pattern ?? (t.pattern = Ae(r));
1220
1287
  } else
1221
- t.pattern ?? (t.pattern = ke());
1222
- b.init(e, t);
1223
- }), yr = /* @__PURE__ */ c("$ZodEmail", (e, t) => {
1224
- t.pattern ?? (t.pattern = Mn), b.init(e, t);
1225
- }), wr = /* @__PURE__ */ c("$ZodURL", (e, t) => {
1226
- b.init(e, t), e._zod.check = (n) => {
1288
+ t.pattern ?? (t.pattern = Ae());
1289
+ y.init(e, t);
1290
+ }), Tr = /* @__PURE__ */ c("$ZodEmail", (e, t) => {
1291
+ t.pattern ?? (t.pattern = nr), y.init(e, t);
1292
+ }), Sr = /* @__PURE__ */ c("$ZodURL", (e, t) => {
1293
+ y.init(e, t), e._zod.check = (n) => {
1227
1294
  try {
1228
- const r = n.value, o = new URL(r), s = o.href;
1295
+ const r = n.value.trim(), o = new URL(r);
1229
1296
  t.hostname && (t.hostname.lastIndex = 0, t.hostname.test(o.hostname) || n.issues.push({
1230
1297
  code: "invalid_format",
1231
1298
  format: "url",
1232
1299
  note: "Invalid hostname",
1233
- pattern: Jn.source,
1300
+ pattern: lr.source,
1234
1301
  input: n.value,
1235
1302
  inst: e,
1236
1303
  continue: !t.abort
@@ -1242,7 +1309,7 @@ const gr = {
1242
1309
  input: n.value,
1243
1310
  inst: e,
1244
1311
  continue: !t.abort
1245
- })), !r.endsWith("/") && s.endsWith("/") ? n.value = s.slice(0, -1) : n.value = s;
1312
+ })), t.normalize ? n.value = o.href : n.value = r;
1246
1313
  return;
1247
1314
  } catch {
1248
1315
  n.issues.push({
@@ -1254,35 +1321,35 @@ const gr = {
1254
1321
  });
1255
1322
  }
1256
1323
  };
1257
- }), br = /* @__PURE__ */ c("$ZodEmoji", (e, t) => {
1258
- t.pattern ?? (t.pattern = Bn()), b.init(e, t);
1259
- }), zr = /* @__PURE__ */ c("$ZodNanoID", (e, t) => {
1260
- t.pattern ?? (t.pattern = Fn), b.init(e, t);
1261
- }), xr = /* @__PURE__ */ c("$ZodCUID", (e, t) => {
1262
- t.pattern ?? (t.pattern = An), b.init(e, t);
1263
- }), $r = /* @__PURE__ */ c("$ZodCUID2", (e, t) => {
1264
- t.pattern ?? (t.pattern = Cn), b.init(e, t);
1265
- }), kr = /* @__PURE__ */ c("$ZodULID", (e, t) => {
1266
- t.pattern ?? (t.pattern = Nn), b.init(e, t);
1267
- }), Zr = /* @__PURE__ */ c("$ZodXID", (e, t) => {
1268
- t.pattern ?? (t.pattern = Rn), b.init(e, t);
1269
- }), jr = /* @__PURE__ */ c("$ZodKSUID", (e, t) => {
1270
- t.pattern ?? (t.pattern = Un), b.init(e, t);
1271
- }), Pr = /* @__PURE__ */ c("$ZodISODateTime", (e, t) => {
1272
- t.pattern ?? (t.pattern = tr(t)), b.init(e, t);
1273
- }), Or = /* @__PURE__ */ c("$ZodISODate", (e, t) => {
1274
- t.pattern ?? (t.pattern = Xn), b.init(e, t);
1275
- }), Er = /* @__PURE__ */ c("$ZodISOTime", (e, t) => {
1276
- t.pattern ?? (t.pattern = er(t)), b.init(e, t);
1277
- }), Ir = /* @__PURE__ */ c("$ZodISODuration", (e, t) => {
1278
- t.pattern ?? (t.pattern = qn), b.init(e, t);
1279
- }), Sr = /* @__PURE__ */ c("$ZodIPv4", (e, t) => {
1280
- t.pattern ?? (t.pattern = Wn), b.init(e, t), e._zod.onattach.push((n) => {
1324
+ }), Ir = /* @__PURE__ */ c("$ZodEmoji", (e, t) => {
1325
+ t.pattern ?? (t.pattern = or()), y.init(e, t);
1326
+ }), Dr = /* @__PURE__ */ c("$ZodNanoID", (e, t) => {
1327
+ t.pattern ?? (t.pattern = Xn), y.init(e, t);
1328
+ }), Cr = /* @__PURE__ */ c("$ZodCUID", (e, t) => {
1329
+ t.pattern ?? (t.pattern = Hn), y.init(e, t);
1330
+ }), Nr = /* @__PURE__ */ c("$ZodCUID2", (e, t) => {
1331
+ t.pattern ?? (t.pattern = Vn), y.init(e, t);
1332
+ }), Rr = /* @__PURE__ */ c("$ZodULID", (e, t) => {
1333
+ t.pattern ?? (t.pattern = Jn), y.init(e, t);
1334
+ }), Fr = /* @__PURE__ */ c("$ZodXID", (e, t) => {
1335
+ t.pattern ?? (t.pattern = Gn), y.init(e, t);
1336
+ }), Ur = /* @__PURE__ */ c("$ZodKSUID", (e, t) => {
1337
+ t.pattern ?? (t.pattern = Yn), y.init(e, t);
1338
+ }), qr = /* @__PURE__ */ c("$ZodISODateTime", (e, t) => {
1339
+ t.pattern ?? (t.pattern = pr(t)), y.init(e, t);
1340
+ }), Mr = /* @__PURE__ */ c("$ZodISODate", (e, t) => {
1341
+ t.pattern ?? (t.pattern = hr), y.init(e, t);
1342
+ }), Qr = /* @__PURE__ */ c("$ZodISOTime", (e, t) => {
1343
+ t.pattern ?? (t.pattern = fr(t)), y.init(e, t);
1344
+ }), Lr = /* @__PURE__ */ c("$ZodISODuration", (e, t) => {
1345
+ t.pattern ?? (t.pattern = er), y.init(e, t);
1346
+ }), Br = /* @__PURE__ */ c("$ZodIPv4", (e, t) => {
1347
+ t.pattern ?? (t.pattern = sr), y.init(e, t), e._zod.onattach.push((n) => {
1281
1348
  const r = n._zod.bag;
1282
1349
  r.format = "ipv4";
1283
1350
  });
1284
- }), Tr = /* @__PURE__ */ c("$ZodIPv6", (e, t) => {
1285
- t.pattern ?? (t.pattern = Kn), b.init(e, t), e._zod.onattach.push((n) => {
1351
+ }), Wr = /* @__PURE__ */ c("$ZodIPv6", (e, t) => {
1352
+ t.pattern ?? (t.pattern = ir), y.init(e, t), e._zod.onattach.push((n) => {
1286
1353
  const r = n._zod.bag;
1287
1354
  r.format = "ipv6";
1288
1355
  }), e._zod.check = (n) => {
@@ -1298,20 +1365,23 @@ const gr = {
1298
1365
  });
1299
1366
  }
1300
1367
  };
1301
- }), Dr = /* @__PURE__ */ c("$ZodCIDRv4", (e, t) => {
1302
- t.pattern ?? (t.pattern = Hn), b.init(e, t);
1303
- }), Ar = /* @__PURE__ */ c("$ZodCIDRv6", (e, t) => {
1304
- t.pattern ?? (t.pattern = Vn), b.init(e, t), e._zod.check = (n) => {
1305
- const [r, o] = n.value.split("/");
1368
+ }), Kr = /* @__PURE__ */ c("$ZodCIDRv4", (e, t) => {
1369
+ t.pattern ?? (t.pattern = ar), y.init(e, t);
1370
+ }), Hr = /* @__PURE__ */ c("$ZodCIDRv6", (e, t) => {
1371
+ t.pattern ?? (t.pattern = cr), y.init(e, t), e._zod.check = (n) => {
1372
+ const r = n.value.split("/");
1306
1373
  try {
1307
- if (!o)
1374
+ if (r.length !== 2)
1308
1375
  throw new Error();
1309
- const s = Number(o);
1310
- if (`${s}` !== o)
1376
+ const [o, s] = r;
1377
+ if (!s)
1311
1378
  throw new Error();
1312
- if (s < 0 || s > 128)
1379
+ const i = Number(s);
1380
+ if (`${i}` !== s)
1313
1381
  throw new Error();
1314
- new URL(`http://[${r}]`);
1382
+ if (i < 0 || i > 128)
1383
+ throw new Error();
1384
+ new URL(`http://[${o}]`);
1315
1385
  } catch {
1316
1386
  n.issues.push({
1317
1387
  code: "invalid_format",
@@ -1323,7 +1393,7 @@ const gr = {
1323
1393
  }
1324
1394
  };
1325
1395
  });
1326
- function ct(e) {
1396
+ function ft(e) {
1327
1397
  if (e === "")
1328
1398
  return !0;
1329
1399
  if (e.length % 4 !== 0)
@@ -1334,11 +1404,11 @@ function ct(e) {
1334
1404
  return !1;
1335
1405
  }
1336
1406
  }
1337
- const Cr = /* @__PURE__ */ c("$ZodBase64", (e, t) => {
1338
- t.pattern ?? (t.pattern = Gn), b.init(e, t), e._zod.onattach.push((n) => {
1407
+ const Vr = /* @__PURE__ */ c("$ZodBase64", (e, t) => {
1408
+ t.pattern ?? (t.pattern = ur), y.init(e, t), e._zod.onattach.push((n) => {
1339
1409
  n._zod.bag.contentEncoding = "base64";
1340
1410
  }), e._zod.check = (n) => {
1341
- ct(n.value) || n.issues.push({
1411
+ ft(n.value) || n.issues.push({
1342
1412
  code: "invalid_format",
1343
1413
  format: "base64",
1344
1414
  input: n.value,
@@ -1347,17 +1417,17 @@ const Cr = /* @__PURE__ */ c("$ZodBase64", (e, t) => {
1347
1417
  });
1348
1418
  };
1349
1419
  });
1350
- function Nr(e) {
1351
- if (!st.test(e))
1420
+ function Jr(e) {
1421
+ if (!lt.test(e))
1352
1422
  return !1;
1353
1423
  const t = e.replace(/[-_]/g, (r) => r === "-" ? "+" : "/"), n = t.padEnd(Math.ceil(t.length / 4) * 4, "=");
1354
- return ct(n);
1424
+ return ft(n);
1355
1425
  }
1356
- const Rr = /* @__PURE__ */ c("$ZodBase64URL", (e, t) => {
1357
- t.pattern ?? (t.pattern = st), b.init(e, t), e._zod.onattach.push((n) => {
1426
+ const Gr = /* @__PURE__ */ c("$ZodBase64URL", (e, t) => {
1427
+ t.pattern ?? (t.pattern = lt), y.init(e, t), e._zod.onattach.push((n) => {
1358
1428
  n._zod.bag.contentEncoding = "base64url";
1359
1429
  }), e._zod.check = (n) => {
1360
- Nr(n.value) || n.issues.push({
1430
+ Jr(n.value) || n.issues.push({
1361
1431
  code: "invalid_format",
1362
1432
  format: "base64url",
1363
1433
  input: n.value,
@@ -1365,10 +1435,10 @@ const Rr = /* @__PURE__ */ c("$ZodBase64URL", (e, t) => {
1365
1435
  continue: !t.abort
1366
1436
  });
1367
1437
  };
1368
- }), Ur = /* @__PURE__ */ c("$ZodE164", (e, t) => {
1369
- t.pattern ?? (t.pattern = Yn), b.init(e, t);
1438
+ }), Yr = /* @__PURE__ */ c("$ZodE164", (e, t) => {
1439
+ t.pattern ?? (t.pattern = dr), y.init(e, t);
1370
1440
  });
1371
- function Fr(e, t = null) {
1441
+ function Xr(e, t = null) {
1372
1442
  try {
1373
1443
  const n = e.split(".");
1374
1444
  if (n.length !== 3)
@@ -1382,9 +1452,9 @@ function Fr(e, t = null) {
1382
1452
  return !1;
1383
1453
  }
1384
1454
  }
1385
- const qr = /* @__PURE__ */ c("$ZodJWT", (e, t) => {
1386
- b.init(e, t), e._zod.check = (n) => {
1387
- Fr(n.value, t.alg) || n.issues.push({
1455
+ const eo = /* @__PURE__ */ c("$ZodJWT", (e, t) => {
1456
+ y.init(e, t), e._zod.check = (n) => {
1457
+ Xr(n.value, t.alg) || n.issues.push({
1388
1458
  code: "invalid_format",
1389
1459
  format: "jwt",
1390
1460
  input: n.value,
@@ -1392,21 +1462,21 @@ const qr = /* @__PURE__ */ c("$ZodJWT", (e, t) => {
1392
1462
  continue: !t.abort
1393
1463
  });
1394
1464
  };
1395
- }), Qr = /* @__PURE__ */ c("$ZodUnknown", (e, t) => {
1396
- k.init(e, t), e._zod.parse = (n) => n;
1397
- }), Mr = /* @__PURE__ */ c("$ZodNever", (e, t) => {
1398
- k.init(e, t), e._zod.parse = (n, r) => (n.issues.push({
1465
+ }), to = /* @__PURE__ */ c("$ZodUnknown", (e, t) => {
1466
+ b.init(e, t), e._zod.parse = (n) => n;
1467
+ }), no = /* @__PURE__ */ c("$ZodNever", (e, t) => {
1468
+ b.init(e, t), e._zod.parse = (n, r) => (n.issues.push({
1399
1469
  expected: "never",
1400
1470
  code: "invalid_type",
1401
1471
  input: n.value,
1402
1472
  inst: e
1403
1473
  }), n);
1404
1474
  });
1405
- function Ze(e, t, n) {
1406
- e.issues.length && t.issues.push(...le(n, e.issues)), t.value[n] = e.value;
1475
+ function Te(e, t, n) {
1476
+ e.issues.length && t.issues.push(...it(n, e.issues)), t.value[n] = e.value;
1407
1477
  }
1408
- const Lr = /* @__PURE__ */ c("$ZodArray", (e, t) => {
1409
- k.init(e, t), e._zod.parse = (n, r) => {
1478
+ const ro = /* @__PURE__ */ c("$ZodArray", (e, t) => {
1479
+ b.init(e, t), e._zod.parse = (n, r) => {
1410
1480
  const o = n.value;
1411
1481
  if (!Array.isArray(o))
1412
1482
  return n.issues.push({
@@ -1418,195 +1488,206 @@ const Lr = /* @__PURE__ */ c("$ZodArray", (e, t) => {
1418
1488
  n.value = Array(o.length);
1419
1489
  const s = [];
1420
1490
  for (let i = 0; i < o.length; i++) {
1421
- const u = o[i], f = t.element._zod.run({
1491
+ const u = o[i], d = t.element._zod.run({
1422
1492
  value: u,
1423
1493
  issues: []
1424
1494
  }, r);
1425
- f instanceof Promise ? s.push(f.then((h) => Ze(h, n, i))) : Ze(f, n, i);
1495
+ d instanceof Promise ? s.push(d.then((l) => Te(l, n, i))) : Te(d, n, i);
1426
1496
  }
1427
1497
  return s.length ? Promise.all(s).then(() => n) : n;
1428
1498
  };
1429
1499
  });
1430
- function H(e, t, n) {
1431
- e.issues.length && t.issues.push(...le(n, e.issues)), t.value[n] = e.value;
1432
- }
1433
- function je(e, t, n, r) {
1434
- e.issues.length ? r[n] === void 0 ? n in r ? t.value[n] = void 0 : t.value[n] = e.value : t.issues.push(...le(n, e.issues)) : e.value === void 0 ? n in r && (t.value[n] = void 0) : t.value[n] = e.value;
1435
- }
1436
- const Br = /* @__PURE__ */ c("$ZodObject", (e, t) => {
1437
- k.init(e, t);
1438
- const n = Ye(() => {
1439
- const d = Object.keys(t.shape);
1440
- for (const m of d)
1441
- if (!(t.shape[m] instanceof k))
1442
- throw new Error(`Invalid element at key "${m}": expected a Zod schema`);
1443
- const p = zn(t.shape);
1444
- return {
1445
- shape: t.shape,
1446
- keys: d,
1447
- keySet: new Set(d),
1448
- numKeys: d.length,
1449
- optionalKeys: new Set(p)
1450
- };
1451
- });
1452
- w(e._zod, "propValues", () => {
1453
- const d = t.shape, p = {};
1454
- for (const m in d) {
1455
- const v = d[m]._zod;
1456
- if (v.values) {
1457
- p[m] ?? (p[m] = /* @__PURE__ */ new Set());
1458
- for (const x of v.values)
1459
- p[m].add(x);
1500
+ function te(e, t, n, r) {
1501
+ e.issues.length && t.issues.push(...it(n, e.issues)), e.value === void 0 ? n in r && (t.value[n] = void 0) : t.value[n] = e.value;
1502
+ }
1503
+ function pt(e) {
1504
+ const t = Object.keys(e.shape);
1505
+ for (const r of t)
1506
+ if (!e.shape?.[r]?._zod?.traits?.has("$ZodType"))
1507
+ throw new Error(`Invalid element at key "${r}": expected a Zod schema`);
1508
+ const n = Pn(e.shape);
1509
+ return {
1510
+ ...e,
1511
+ keys: t,
1512
+ keySet: new Set(t),
1513
+ numKeys: t.length,
1514
+ optionalKeys: new Set(n)
1515
+ };
1516
+ }
1517
+ function mt(e, t, n, r, o, s) {
1518
+ const i = [], u = o.keySet, d = o.catchall._zod, l = d.def.type;
1519
+ for (const f of Object.keys(t)) {
1520
+ if (u.has(f))
1521
+ continue;
1522
+ if (l === "never") {
1523
+ i.push(f);
1524
+ continue;
1525
+ }
1526
+ const g = d.run({ value: t[f], issues: [] }, r);
1527
+ g instanceof Promise ? e.push(g.then((p) => te(p, n, f, t))) : te(g, n, f, t);
1528
+ }
1529
+ return i.length && n.issues.push({
1530
+ code: "unrecognized_keys",
1531
+ keys: i,
1532
+ input: t,
1533
+ inst: s
1534
+ }), e.length ? Promise.all(e).then(() => n) : n;
1535
+ }
1536
+ const oo = /* @__PURE__ */ c("$ZodObject", (e, t) => {
1537
+ if (b.init(e, t), !Object.getOwnPropertyDescriptor(t, "shape")?.get) {
1538
+ const u = t.shape;
1539
+ Object.defineProperty(t, "shape", {
1540
+ get: () => {
1541
+ const d = { ...u };
1542
+ return Object.defineProperty(t, "shape", {
1543
+ value: d
1544
+ }), d;
1545
+ }
1546
+ });
1547
+ }
1548
+ const r = he(() => pt(t));
1549
+ _(e._zod, "propValues", () => {
1550
+ const u = t.shape, d = {};
1551
+ for (const l in u) {
1552
+ const f = u[l]._zod;
1553
+ if (f.values) {
1554
+ d[l] ?? (d[l] = /* @__PURE__ */ new Set());
1555
+ for (const g of f.values)
1556
+ d[l].add(g);
1460
1557
  }
1461
1558
  }
1462
- return p;
1463
- });
1464
- const r = (d) => {
1465
- const p = new mr(["shape", "payload", "ctx"]), m = n.value, v = ($) => {
1466
- const _ = q($);
1467
- return `shape[${_}]._zod.run({ value: input[${_}], issues: [] }, ctx)`;
1559
+ return d;
1560
+ });
1561
+ const o = ee, s = t.catchall;
1562
+ let i;
1563
+ e._zod.parse = (u, d) => {
1564
+ i ?? (i = r.value);
1565
+ const l = u.value;
1566
+ if (!o(l))
1567
+ return u.issues.push({
1568
+ expected: "object",
1569
+ code: "invalid_type",
1570
+ input: l,
1571
+ inst: e
1572
+ }), u;
1573
+ u.value = {};
1574
+ const f = [], g = i.shape;
1575
+ for (const p of i.keys) {
1576
+ const m = g[p]._zod.run({ value: l[p], issues: [] }, d);
1577
+ m instanceof Promise ? f.push(m.then((k) => te(k, u, p, l))) : te(m, u, p, l);
1578
+ }
1579
+ return s ? mt(f, l, u, d, r.value, e) : f.length ? Promise.all(f).then(() => u) : u;
1580
+ };
1581
+ }), so = /* @__PURE__ */ c("$ZodObjectJIT", (e, t) => {
1582
+ oo.init(e, t);
1583
+ const n = e._zod.parse, r = he(() => pt(t)), o = (p) => {
1584
+ const v = new Pr(["shape", "payload", "ctx"]), m = r.value, k = ($) => {
1585
+ const x = Ee($);
1586
+ return `shape[${x}]._zod.run({ value: input[${x}], issues: [] }, ctx)`;
1468
1587
  };
1469
- p.write("const input = payload.value;");
1470
- const x = /* @__PURE__ */ Object.create(null);
1471
- let P = 0;
1472
- for (const $ of m.keys)
1473
- x[$] = `key_${P++}`;
1474
- p.write("const newResult = {}");
1588
+ v.write("const input = payload.value;");
1589
+ const P = /* @__PURE__ */ Object.create(null);
1590
+ let Z = 0;
1475
1591
  for (const $ of m.keys)
1476
- if (m.optionalKeys.has($)) {
1477
- const _ = x[$];
1478
- p.write(`const ${_} = ${v($)};`);
1479
- const y = q($);
1480
- p.write(`
1481
- if (${_}.issues.length) {
1482
- if (input[${y}] === undefined) {
1483
- if (${y} in input) {
1484
- newResult[${y}] = undefined;
1485
- }
1486
- } else {
1487
- payload.issues = payload.issues.concat(
1488
- ${_}.issues.map((iss) => ({
1489
- ...iss,
1490
- path: iss.path ? [${y}, ...iss.path] : [${y}],
1491
- }))
1492
- );
1592
+ P[$] = `key_${Z++}`;
1593
+ v.write("const newResult = {};");
1594
+ for (const $ of m.keys) {
1595
+ const x = P[$], S = Ee($);
1596
+ v.write(`const ${x} = ${k($)};`), v.write(`
1597
+ if (${x}.issues.length) {
1598
+ payload.issues = payload.issues.concat(${x}.issues.map(iss => ({
1599
+ ...iss,
1600
+ path: iss.path ? [${S}, ...iss.path] : [${S}]
1601
+ })));
1602
+ }
1603
+
1604
+
1605
+ if (${x}.value === undefined) {
1606
+ if (${S} in input) {
1607
+ newResult[${S}] = undefined;
1493
1608
  }
1494
- } else if (${_}.value === undefined) {
1495
- if (${y} in input) newResult[${y}] = undefined;
1496
1609
  } else {
1497
- newResult[${y}] = ${_}.value;
1610
+ newResult[${S}] = ${x}.value;
1498
1611
  }
1499
- `);
1500
- } else {
1501
- const _ = x[$];
1502
- p.write(`const ${_} = ${v($)};`), p.write(`
1503
- if (${_}.issues.length) payload.issues = payload.issues.concat(${_}.issues.map(iss => ({
1504
- ...iss,
1505
- path: iss.path ? [${q($)}, ...iss.path] : [${q($)}]
1506
- })));`), p.write(`newResult[${q($)}] = ${_}.value`);
1507
- }
1508
- p.write("payload.value = newResult;"), p.write("return payload;");
1509
- const j = p.compile();
1510
- return ($, _) => j(d, $, _);
1612
+
1613
+ `);
1614
+ }
1615
+ v.write("payload.value = newResult;"), v.write("return payload;");
1616
+ const L = v.compile();
1617
+ return ($, x) => L(p, $, x);
1511
1618
  };
1512
- let o;
1513
- const s = re, i = !Je.jitless, f = i && wn.value, h = t.catchall;
1619
+ let s;
1620
+ const i = ee, u = !rt.jitless, l = u && $n.value, f = t.catchall;
1514
1621
  let g;
1515
- e._zod.parse = (d, p) => {
1516
- g ?? (g = n.value);
1517
- const m = d.value;
1518
- if (!s(m))
1519
- return d.issues.push({
1520
- expected: "object",
1521
- code: "invalid_type",
1522
- input: m,
1523
- inst: e
1524
- }), d;
1525
- const v = [];
1526
- if (i && f && p?.async === !1 && p.jitless !== !0)
1527
- o || (o = r(t.shape)), d = o(d, p);
1528
- else {
1529
- d.value = {};
1530
- const _ = g.shape;
1531
- for (const y of g.keys) {
1532
- const T = _[y], D = T._zod.run({ value: m[y], issues: [] }, p), fe = T._zod.optin === "optional" && T._zod.optout === "optional";
1533
- D instanceof Promise ? v.push(D.then((pe) => fe ? je(pe, d, y, m) : H(pe, d, y))) : fe ? je(D, d, y, m) : H(D, d, y);
1534
- }
1535
- }
1536
- if (!h)
1537
- return v.length ? Promise.all(v).then(() => d) : d;
1538
- const x = [], P = g.keySet, j = h._zod, $ = j.def.type;
1539
- for (const _ of Object.keys(m)) {
1540
- if (P.has(_))
1541
- continue;
1542
- if ($ === "never") {
1543
- x.push(_);
1544
- continue;
1545
- }
1546
- const y = j.run({ value: m[_], issues: [] }, p);
1547
- y instanceof Promise ? v.push(y.then((T) => H(T, d, _))) : H(y, d, _);
1548
- }
1549
- return x.length && d.issues.push({
1550
- code: "unrecognized_keys",
1551
- keys: x,
1622
+ e._zod.parse = (p, v) => {
1623
+ g ?? (g = r.value);
1624
+ const m = p.value;
1625
+ return i(m) ? u && l && v?.async === !1 && v.jitless !== !0 ? (s || (s = o(t.shape)), p = s(p, v), f ? mt([], m, p, v, g, e) : p) : n(p, v) : (p.issues.push({
1626
+ expected: "object",
1627
+ code: "invalid_type",
1552
1628
  input: m,
1553
1629
  inst: e
1554
- }), v.length ? Promise.all(v).then(() => d) : d;
1630
+ }), p);
1555
1631
  };
1556
1632
  });
1557
- function Pe(e, t, n, r) {
1558
- for (const o of e)
1559
- if (o.issues.length === 0)
1560
- return t.value = o.value, t;
1561
- return t.issues.push({
1633
+ function Se(e, t, n, r) {
1634
+ for (const s of e)
1635
+ if (s.issues.length === 0)
1636
+ return t.value = s.value, t;
1637
+ const o = e.filter((s) => !M(s));
1638
+ return o.length === 1 ? (t.value = o[0].value, o[0]) : (t.issues.push({
1562
1639
  code: "invalid_union",
1563
1640
  input: t.value,
1564
1641
  inst: n,
1565
- errors: e.map((o) => o.issues.map((s) => U(s, r, R())))
1566
- }), t;
1567
- }
1568
- const Wr = /* @__PURE__ */ c("$ZodUnion", (e, t) => {
1569
- k.init(e, t), w(e._zod, "optin", () => t.options.some((n) => n._zod.optin === "optional") ? "optional" : void 0), w(e._zod, "optout", () => t.options.some((n) => n._zod.optout === "optional") ? "optional" : void 0), w(e._zod, "values", () => {
1570
- if (t.options.every((n) => n._zod.values))
1571
- return new Set(t.options.flatMap((n) => Array.from(n._zod.values)));
1572
- }), w(e._zod, "pattern", () => {
1573
- if (t.options.every((n) => n._zod.pattern)) {
1574
- const n = t.options.map((r) => r._zod.pattern);
1575
- return new RegExp(`^(${n.map((r) => ce(r.source)).join("|")})$`);
1642
+ errors: e.map((s) => s.issues.map((i) => F(i, r, R())))
1643
+ }), t);
1644
+ }
1645
+ const io = /* @__PURE__ */ c("$ZodUnion", (e, t) => {
1646
+ b.init(e, t), _(e._zod, "optin", () => t.options.some((o) => o._zod.optin === "optional") ? "optional" : void 0), _(e._zod, "optout", () => t.options.some((o) => o._zod.optout === "optional") ? "optional" : void 0), _(e._zod, "values", () => {
1647
+ if (t.options.every((o) => o._zod.values))
1648
+ return new Set(t.options.flatMap((o) => Array.from(o._zod.values)));
1649
+ }), _(e._zod, "pattern", () => {
1650
+ if (t.options.every((o) => o._zod.pattern)) {
1651
+ const o = t.options.map((s) => s._zod.pattern);
1652
+ return new RegExp(`^(${o.map((s) => pe(s.source)).join("|")})$`);
1576
1653
  }
1577
- }), e._zod.parse = (n, r) => {
1578
- let o = !1;
1579
- const s = [];
1580
- for (const i of t.options) {
1581
- const u = i._zod.run({
1582
- value: n.value,
1654
+ });
1655
+ const n = t.options.length === 1, r = t.options[0]._zod.run;
1656
+ e._zod.parse = (o, s) => {
1657
+ if (n)
1658
+ return r(o, s);
1659
+ let i = !1;
1660
+ const u = [];
1661
+ for (const d of t.options) {
1662
+ const l = d._zod.run({
1663
+ value: o.value,
1583
1664
  issues: []
1584
- }, r);
1585
- if (u instanceof Promise)
1586
- s.push(u), o = !0;
1665
+ }, s);
1666
+ if (l instanceof Promise)
1667
+ u.push(l), i = !0;
1587
1668
  else {
1588
- if (u.issues.length === 0)
1589
- return u;
1590
- s.push(u);
1669
+ if (l.issues.length === 0)
1670
+ return l;
1671
+ u.push(l);
1591
1672
  }
1592
1673
  }
1593
- return o ? Promise.all(s).then((i) => Pe(i, n, e, r)) : Pe(s, n, e, r);
1674
+ return i ? Promise.all(u).then((d) => Se(d, o, e, s)) : Se(u, o, e, s);
1594
1675
  };
1595
- }), Kr = /* @__PURE__ */ c("$ZodIntersection", (e, t) => {
1596
- k.init(e, t), e._zod.parse = (n, r) => {
1676
+ }), ao = /* @__PURE__ */ c("$ZodIntersection", (e, t) => {
1677
+ b.init(e, t), e._zod.parse = (n, r) => {
1597
1678
  const o = n.value, s = t.left._zod.run({ value: o, issues: [] }, r), i = t.right._zod.run({ value: o, issues: [] }, r);
1598
- return s instanceof Promise || i instanceof Promise ? Promise.all([s, i]).then(([f, h]) => Oe(n, f, h)) : Oe(n, s, i);
1679
+ return s instanceof Promise || i instanceof Promise ? Promise.all([s, i]).then(([d, l]) => Ie(n, d, l)) : Ie(n, s, i);
1599
1680
  };
1600
1681
  });
1601
- function se(e, t) {
1682
+ function le(e, t) {
1602
1683
  if (e === t)
1603
1684
  return { valid: !0, data: e };
1604
1685
  if (e instanceof Date && t instanceof Date && +e == +t)
1605
1686
  return { valid: !0, data: e };
1606
- if (oe(e) && oe(t)) {
1687
+ if (B(e) && B(t)) {
1607
1688
  const n = Object.keys(t), r = Object.keys(e).filter((s) => n.indexOf(s) !== -1), o = { ...e, ...t };
1608
1689
  for (const s of r) {
1609
- const i = se(e[s], t[s]);
1690
+ const i = le(e[s], t[s]);
1610
1691
  if (!i.valid)
1611
1692
  return {
1612
1693
  valid: !1,
@@ -1621,7 +1702,7 @@ function se(e, t) {
1621
1702
  return { valid: !1, mergeErrorPath: [] };
1622
1703
  const n = [];
1623
1704
  for (let r = 0; r < e.length; r++) {
1624
- const o = e[r], s = t[r], i = se(o, s);
1705
+ const o = e[r], s = t[r], i = le(o, s);
1625
1706
  if (!i.valid)
1626
1707
  return {
1627
1708
  valid: !1,
@@ -1633,68 +1714,82 @@ function se(e, t) {
1633
1714
  }
1634
1715
  return { valid: !1, mergeErrorPath: [] };
1635
1716
  }
1636
- function Oe(e, t, n) {
1637
- if (t.issues.length && e.issues.push(...t.issues), n.issues.length && e.issues.push(...n.issues), Q(e))
1717
+ function Ie(e, t, n) {
1718
+ if (t.issues.length && e.issues.push(...t.issues), n.issues.length && e.issues.push(...n.issues), M(e))
1638
1719
  return e;
1639
- const r = se(t.value, n.value);
1720
+ const r = le(t.value, n.value);
1640
1721
  if (!r.valid)
1641
1722
  throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);
1642
1723
  return e.value = r.data, e;
1643
1724
  }
1644
- const Hr = /* @__PURE__ */ c("$ZodEnum", (e, t) => {
1645
- k.init(e, t);
1646
- const n = _n(t.entries);
1647
- e._zod.values = new Set(n), e._zod.pattern = new RegExp(`^(${n.filter((r) => bn.has(typeof r)).map((r) => typeof r == "string" ? ee(r) : r.toString()).join("|")})$`), e._zod.parse = (r, o) => {
1648
- const s = r.value;
1649
- return e._zod.values.has(s) || r.issues.push({
1725
+ const co = /* @__PURE__ */ c("$ZodEnum", (e, t) => {
1726
+ b.init(e, t);
1727
+ const n = Zn(t.entries), r = new Set(n);
1728
+ e._zod.values = r, e._zod.pattern = new RegExp(`^(${n.filter((o) => jn.has(typeof o)).map((o) => typeof o == "string" ? se(o) : o.toString()).join("|")})$`), e._zod.parse = (o, s) => {
1729
+ const i = o.value;
1730
+ return r.has(i) || o.issues.push({
1650
1731
  code: "invalid_value",
1651
1732
  values: n,
1652
- input: s,
1733
+ input: i,
1653
1734
  inst: e
1654
- }), r;
1735
+ }), o;
1655
1736
  };
1656
- }), Vr = /* @__PURE__ */ c("$ZodTransform", (e, t) => {
1657
- k.init(e, t), e._zod.parse = (n, r) => {
1737
+ }), uo = /* @__PURE__ */ c("$ZodTransform", (e, t) => {
1738
+ b.init(e, t), e._zod.parse = (n, r) => {
1739
+ if (r.direction === "backward")
1740
+ throw new nt(e.constructor.name);
1658
1741
  const o = t.transform(n.value, n);
1659
1742
  if (r.async)
1660
1743
  return (o instanceof Promise ? o : Promise.resolve(o)).then((i) => (n.value = i, n));
1661
1744
  if (o instanceof Promise)
1662
- throw new M();
1745
+ throw new Q();
1663
1746
  return n.value = o, n;
1664
1747
  };
1665
- }), Gr = /* @__PURE__ */ c("$ZodOptional", (e, t) => {
1666
- k.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", w(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, void 0]) : void 0), w(e._zod, "pattern", () => {
1748
+ });
1749
+ function De(e, t) {
1750
+ return e.issues.length && t === void 0 ? { issues: [], value: void 0 } : e;
1751
+ }
1752
+ const lo = /* @__PURE__ */ c("$ZodOptional", (e, t) => {
1753
+ b.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", _(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, void 0]) : void 0), _(e._zod, "pattern", () => {
1667
1754
  const n = t.innerType._zod.pattern;
1668
- return n ? new RegExp(`^(${ce(n.source)})?$`) : void 0;
1669
- }), e._zod.parse = (n, r) => t.innerType._zod.optin === "optional" ? t.innerType._zod.run(n, r) : n.value === void 0 ? n : t.innerType._zod.run(n, r);
1670
- }), Jr = /* @__PURE__ */ c("$ZodNullable", (e, t) => {
1671
- k.init(e, t), w(e._zod, "optin", () => t.innerType._zod.optin), w(e._zod, "optout", () => t.innerType._zod.optout), w(e._zod, "pattern", () => {
1755
+ return n ? new RegExp(`^(${pe(n.source)})?$`) : void 0;
1756
+ }), e._zod.parse = (n, r) => {
1757
+ if (t.innerType._zod.optin === "optional") {
1758
+ const o = t.innerType._zod.run(n, r);
1759
+ return o instanceof Promise ? o.then((s) => De(s, n.value)) : De(o, n.value);
1760
+ }
1761
+ return n.value === void 0 ? n : t.innerType._zod.run(n, r);
1762
+ };
1763
+ }), ho = /* @__PURE__ */ c("$ZodNullable", (e, t) => {
1764
+ b.init(e, t), _(e._zod, "optin", () => t.innerType._zod.optin), _(e._zod, "optout", () => t.innerType._zod.optout), _(e._zod, "pattern", () => {
1672
1765
  const n = t.innerType._zod.pattern;
1673
- return n ? new RegExp(`^(${ce(n.source)}|null)$`) : void 0;
1674
- }), w(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, null]) : void 0), e._zod.parse = (n, r) => n.value === null ? n : t.innerType._zod.run(n, r);
1675
- }), Yr = /* @__PURE__ */ c("$ZodDefault", (e, t) => {
1676
- k.init(e, t), e._zod.optin = "optional", w(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (n, r) => {
1766
+ return n ? new RegExp(`^(${pe(n.source)}|null)$`) : void 0;
1767
+ }), _(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, null]) : void 0), e._zod.parse = (n, r) => n.value === null ? n : t.innerType._zod.run(n, r);
1768
+ }), fo = /* @__PURE__ */ c("$ZodDefault", (e, t) => {
1769
+ b.init(e, t), e._zod.optin = "optional", _(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (n, r) => {
1770
+ if (r.direction === "backward")
1771
+ return t.innerType._zod.run(n, r);
1677
1772
  if (n.value === void 0)
1678
1773
  return n.value = t.defaultValue, n;
1679
1774
  const o = t.innerType._zod.run(n, r);
1680
- return o instanceof Promise ? o.then((s) => Ee(s, t)) : Ee(o, t);
1775
+ return o instanceof Promise ? o.then((s) => Ce(s, t)) : Ce(o, t);
1681
1776
  };
1682
1777
  });
1683
- function Ee(e, t) {
1778
+ function Ce(e, t) {
1684
1779
  return e.value === void 0 && (e.value = t.defaultValue), e;
1685
1780
  }
1686
- const Xr = /* @__PURE__ */ c("$ZodPrefault", (e, t) => {
1687
- k.init(e, t), e._zod.optin = "optional", w(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (n, r) => (n.value === void 0 && (n.value = t.defaultValue), t.innerType._zod.run(n, r));
1688
- }), eo = /* @__PURE__ */ c("$ZodNonOptional", (e, t) => {
1689
- k.init(e, t), w(e._zod, "values", () => {
1781
+ const po = /* @__PURE__ */ c("$ZodPrefault", (e, t) => {
1782
+ b.init(e, t), e._zod.optin = "optional", _(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (n, r) => (r.direction === "backward" || n.value === void 0 && (n.value = t.defaultValue), t.innerType._zod.run(n, r));
1783
+ }), mo = /* @__PURE__ */ c("$ZodNonOptional", (e, t) => {
1784
+ b.init(e, t), _(e._zod, "values", () => {
1690
1785
  const n = t.innerType._zod.values;
1691
1786
  return n ? new Set([...n].filter((r) => r !== void 0)) : void 0;
1692
1787
  }), e._zod.parse = (n, r) => {
1693
1788
  const o = t.innerType._zod.run(n, r);
1694
- return o instanceof Promise ? o.then((s) => Ie(s, e)) : Ie(o, e);
1789
+ return o instanceof Promise ? o.then((s) => Ne(s, e)) : Ne(o, e);
1695
1790
  };
1696
1791
  });
1697
- function Ie(e, t) {
1792
+ function Ne(e, t) {
1698
1793
  return !e.issues.length && e.value === void 0 && e.issues.push({
1699
1794
  code: "invalid_type",
1700
1795
  expected: "nonoptional",
@@ -1702,50 +1797,58 @@ function Ie(e, t) {
1702
1797
  inst: t
1703
1798
  }), e;
1704
1799
  }
1705
- const to = /* @__PURE__ */ c("$ZodCatch", (e, t) => {
1706
- k.init(e, t), e._zod.optin = "optional", w(e._zod, "optout", () => t.innerType._zod.optout), w(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (n, r) => {
1800
+ const go = /* @__PURE__ */ c("$ZodCatch", (e, t) => {
1801
+ b.init(e, t), _(e._zod, "optin", () => t.innerType._zod.optin), _(e._zod, "optout", () => t.innerType._zod.optout), _(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (n, r) => {
1802
+ if (r.direction === "backward")
1803
+ return t.innerType._zod.run(n, r);
1707
1804
  const o = t.innerType._zod.run(n, r);
1708
1805
  return o instanceof Promise ? o.then((s) => (n.value = s.value, s.issues.length && (n.value = t.catchValue({
1709
1806
  ...n,
1710
1807
  error: {
1711
- issues: s.issues.map((i) => U(i, r, R()))
1808
+ issues: s.issues.map((i) => F(i, r, R()))
1712
1809
  },
1713
1810
  input: n.value
1714
1811
  }), n.issues = []), n)) : (n.value = o.value, o.issues.length && (n.value = t.catchValue({
1715
1812
  ...n,
1716
1813
  error: {
1717
- issues: o.issues.map((s) => U(s, r, R()))
1814
+ issues: o.issues.map((s) => F(s, r, R()))
1718
1815
  },
1719
1816
  input: n.value
1720
1817
  }), n.issues = []), n);
1721
1818
  };
1722
- }), no = /* @__PURE__ */ c("$ZodPipe", (e, t) => {
1723
- k.init(e, t), w(e._zod, "values", () => t.in._zod.values), w(e._zod, "optin", () => t.in._zod.optin), w(e._zod, "optout", () => t.out._zod.optout), e._zod.parse = (n, r) => {
1819
+ }), vo = /* @__PURE__ */ c("$ZodPipe", (e, t) => {
1820
+ b.init(e, t), _(e._zod, "values", () => t.in._zod.values), _(e._zod, "optin", () => t.in._zod.optin), _(e._zod, "optout", () => t.out._zod.optout), _(e._zod, "propValues", () => t.in._zod.propValues), e._zod.parse = (n, r) => {
1821
+ if (r.direction === "backward") {
1822
+ const s = t.out._zod.run(n, r);
1823
+ return s instanceof Promise ? s.then((i) => G(i, t.in, r)) : G(s, t.in, r);
1824
+ }
1724
1825
  const o = t.in._zod.run(n, r);
1725
- return o instanceof Promise ? o.then((s) => Se(s, t, r)) : Se(o, t, r);
1826
+ return o instanceof Promise ? o.then((s) => G(s, t.out, r)) : G(o, t.out, r);
1726
1827
  };
1727
1828
  });
1728
- function Se(e, t, n) {
1729
- return Q(e) ? e : t.out._zod.run({ value: e.value, issues: e.issues }, n);
1829
+ function G(e, t, n) {
1830
+ return e.issues.length ? (e.aborted = !0, e) : t._zod.run({ value: e.value, issues: e.issues }, n);
1730
1831
  }
1731
- const ro = /* @__PURE__ */ c("$ZodReadonly", (e, t) => {
1732
- k.init(e, t), w(e._zod, "propValues", () => t.innerType._zod.propValues), w(e._zod, "values", () => t.innerType._zod.values), w(e._zod, "optin", () => t.innerType._zod.optin), w(e._zod, "optout", () => t.innerType._zod.optout), e._zod.parse = (n, r) => {
1832
+ const _o = /* @__PURE__ */ c("$ZodReadonly", (e, t) => {
1833
+ b.init(e, t), _(e._zod, "propValues", () => t.innerType._zod.propValues), _(e._zod, "values", () => t.innerType._zod.values), _(e._zod, "optin", () => t.innerType._zod.optin), _(e._zod, "optout", () => t.innerType._zod.optout), e._zod.parse = (n, r) => {
1834
+ if (r.direction === "backward")
1835
+ return t.innerType._zod.run(n, r);
1733
1836
  const o = t.innerType._zod.run(n, r);
1734
- return o instanceof Promise ? o.then(Te) : Te(o);
1837
+ return o instanceof Promise ? o.then(Re) : Re(o);
1735
1838
  };
1736
1839
  });
1737
- function Te(e) {
1840
+ function Re(e) {
1738
1841
  return e.value = Object.freeze(e.value), e;
1739
1842
  }
1740
- const oo = /* @__PURE__ */ c("$ZodCustom", (e, t) => {
1741
- S.init(e, t), k.init(e, t), e._zod.parse = (n, r) => n, e._zod.check = (n) => {
1843
+ const yo = /* @__PURE__ */ c("$ZodCustom", (e, t) => {
1844
+ T.init(e, t), b.init(e, t), e._zod.parse = (n, r) => n, e._zod.check = (n) => {
1742
1845
  const r = n.value, o = t.fn(r);
1743
1846
  if (o instanceof Promise)
1744
- return o.then((s) => De(s, n, r, e));
1745
- De(o, n, r, e);
1847
+ return o.then((s) => Fe(s, n, r, e));
1848
+ Fe(o, n, r, e);
1746
1849
  };
1747
1850
  });
1748
- function De(e, t, n, r) {
1851
+ function Fe(e, t, n, r) {
1749
1852
  if (!e) {
1750
1853
  const o = {
1751
1854
  code: "custom",
@@ -1757,10 +1860,10 @@ function De(e, t, n, r) {
1757
1860
  continue: !r._zod.def.abort
1758
1861
  // params: inst._zod.def.params,
1759
1862
  };
1760
- r._zod.def.params && (o.params = r._zod.def.params), t.issues.push(L(o));
1863
+ r._zod.def.params && (o.params = r._zod.def.params), t.issues.push(W(o));
1761
1864
  }
1762
1865
  }
1763
- class so {
1866
+ class wo {
1764
1867
  constructor() {
1765
1868
  this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map();
1766
1869
  }
@@ -1773,14 +1876,20 @@ class so {
1773
1876
  }
1774
1877
  return this;
1775
1878
  }
1879
+ clear() {
1880
+ return this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map(), this;
1881
+ }
1776
1882
  remove(t) {
1777
- return this._map.delete(t), this;
1883
+ const n = this._map.get(t);
1884
+ return n && typeof n == "object" && "id" in n && this._idmap.delete(n.id), this._map.delete(t), this;
1778
1885
  }
1779
1886
  get(t) {
1780
1887
  const n = t._zod.parent;
1781
1888
  if (n) {
1782
1889
  const r = { ...this.get(n) ?? {} };
1783
- return delete r.id, { ...r, ...this._map.get(t) };
1890
+ delete r.id;
1891
+ const o = { ...r, ...this._map.get(t) };
1892
+ return Object.keys(o).length ? o : void 0;
1784
1893
  }
1785
1894
  return this._map.get(t);
1786
1895
  }
@@ -1788,218 +1897,218 @@ class so {
1788
1897
  return this._map.has(t);
1789
1898
  }
1790
1899
  }
1791
- function io() {
1792
- return new so();
1900
+ function bo() {
1901
+ return new wo();
1793
1902
  }
1794
- const V = /* @__PURE__ */ io();
1795
- function ao(e, t) {
1903
+ const Y = /* @__PURE__ */ bo();
1904
+ function zo(e, t) {
1796
1905
  return new e({
1797
1906
  type: "string",
1798
- ...l(t)
1907
+ ...h(t)
1799
1908
  });
1800
1909
  }
1801
- function co(e, t) {
1910
+ function ko(e, t) {
1802
1911
  return new e({
1803
1912
  type: "string",
1804
1913
  format: "email",
1805
1914
  check: "string_format",
1806
1915
  abort: !1,
1807
- ...l(t)
1916
+ ...h(t)
1808
1917
  });
1809
1918
  }
1810
- function Ae(e, t) {
1919
+ function Ue(e, t) {
1811
1920
  return new e({
1812
1921
  type: "string",
1813
1922
  format: "guid",
1814
1923
  check: "string_format",
1815
1924
  abort: !1,
1816
- ...l(t)
1925
+ ...h(t)
1817
1926
  });
1818
1927
  }
1819
- function uo(e, t) {
1928
+ function xo(e, t) {
1820
1929
  return new e({
1821
1930
  type: "string",
1822
1931
  format: "uuid",
1823
1932
  check: "string_format",
1824
1933
  abort: !1,
1825
- ...l(t)
1934
+ ...h(t)
1826
1935
  });
1827
1936
  }
1828
- function lo(e, t) {
1937
+ function Zo(e, t) {
1829
1938
  return new e({
1830
1939
  type: "string",
1831
1940
  format: "uuid",
1832
1941
  check: "string_format",
1833
1942
  abort: !1,
1834
1943
  version: "v4",
1835
- ...l(t)
1944
+ ...h(t)
1836
1945
  });
1837
1946
  }
1838
- function ho(e, t) {
1947
+ function $o(e, t) {
1839
1948
  return new e({
1840
1949
  type: "string",
1841
1950
  format: "uuid",
1842
1951
  check: "string_format",
1843
1952
  abort: !1,
1844
1953
  version: "v6",
1845
- ...l(t)
1954
+ ...h(t)
1846
1955
  });
1847
1956
  }
1848
- function fo(e, t) {
1957
+ function jo(e, t) {
1849
1958
  return new e({
1850
1959
  type: "string",
1851
1960
  format: "uuid",
1852
1961
  check: "string_format",
1853
1962
  abort: !1,
1854
1963
  version: "v7",
1855
- ...l(t)
1964
+ ...h(t)
1856
1965
  });
1857
1966
  }
1858
- function po(e, t) {
1967
+ function Po(e, t) {
1859
1968
  return new e({
1860
1969
  type: "string",
1861
1970
  format: "url",
1862
1971
  check: "string_format",
1863
1972
  abort: !1,
1864
- ...l(t)
1973
+ ...h(t)
1865
1974
  });
1866
1975
  }
1867
- function mo(e, t) {
1976
+ function Oo(e, t) {
1868
1977
  return new e({
1869
1978
  type: "string",
1870
1979
  format: "emoji",
1871
1980
  check: "string_format",
1872
1981
  abort: !1,
1873
- ...l(t)
1982
+ ...h(t)
1874
1983
  });
1875
1984
  }
1876
- function go(e, t) {
1985
+ function Eo(e, t) {
1877
1986
  return new e({
1878
1987
  type: "string",
1879
1988
  format: "nanoid",
1880
1989
  check: "string_format",
1881
1990
  abort: !1,
1882
- ...l(t)
1991
+ ...h(t)
1883
1992
  });
1884
1993
  }
1885
- function vo(e, t) {
1994
+ function Ao(e, t) {
1886
1995
  return new e({
1887
1996
  type: "string",
1888
1997
  format: "cuid",
1889
1998
  check: "string_format",
1890
1999
  abort: !1,
1891
- ...l(t)
2000
+ ...h(t)
1892
2001
  });
1893
2002
  }
1894
- function _o(e, t) {
2003
+ function To(e, t) {
1895
2004
  return new e({
1896
2005
  type: "string",
1897
2006
  format: "cuid2",
1898
2007
  check: "string_format",
1899
2008
  abort: !1,
1900
- ...l(t)
2009
+ ...h(t)
1901
2010
  });
1902
2011
  }
1903
- function yo(e, t) {
2012
+ function So(e, t) {
1904
2013
  return new e({
1905
2014
  type: "string",
1906
2015
  format: "ulid",
1907
2016
  check: "string_format",
1908
2017
  abort: !1,
1909
- ...l(t)
2018
+ ...h(t)
1910
2019
  });
1911
2020
  }
1912
- function wo(e, t) {
2021
+ function Io(e, t) {
1913
2022
  return new e({
1914
2023
  type: "string",
1915
2024
  format: "xid",
1916
2025
  check: "string_format",
1917
2026
  abort: !1,
1918
- ...l(t)
2027
+ ...h(t)
1919
2028
  });
1920
2029
  }
1921
- function bo(e, t) {
2030
+ function Do(e, t) {
1922
2031
  return new e({
1923
2032
  type: "string",
1924
2033
  format: "ksuid",
1925
2034
  check: "string_format",
1926
2035
  abort: !1,
1927
- ...l(t)
2036
+ ...h(t)
1928
2037
  });
1929
2038
  }
1930
- function zo(e, t) {
2039
+ function Co(e, t) {
1931
2040
  return new e({
1932
2041
  type: "string",
1933
2042
  format: "ipv4",
1934
2043
  check: "string_format",
1935
2044
  abort: !1,
1936
- ...l(t)
2045
+ ...h(t)
1937
2046
  });
1938
2047
  }
1939
- function xo(e, t) {
2048
+ function No(e, t) {
1940
2049
  return new e({
1941
2050
  type: "string",
1942
2051
  format: "ipv6",
1943
2052
  check: "string_format",
1944
2053
  abort: !1,
1945
- ...l(t)
2054
+ ...h(t)
1946
2055
  });
1947
2056
  }
1948
- function $o(e, t) {
2057
+ function Ro(e, t) {
1949
2058
  return new e({
1950
2059
  type: "string",
1951
2060
  format: "cidrv4",
1952
2061
  check: "string_format",
1953
2062
  abort: !1,
1954
- ...l(t)
2063
+ ...h(t)
1955
2064
  });
1956
2065
  }
1957
- function ko(e, t) {
2066
+ function Fo(e, t) {
1958
2067
  return new e({
1959
2068
  type: "string",
1960
2069
  format: "cidrv6",
1961
2070
  check: "string_format",
1962
2071
  abort: !1,
1963
- ...l(t)
2072
+ ...h(t)
1964
2073
  });
1965
2074
  }
1966
- function Zo(e, t) {
2075
+ function Uo(e, t) {
1967
2076
  return new e({
1968
2077
  type: "string",
1969
2078
  format: "base64",
1970
2079
  check: "string_format",
1971
2080
  abort: !1,
1972
- ...l(t)
2081
+ ...h(t)
1973
2082
  });
1974
2083
  }
1975
- function jo(e, t) {
2084
+ function qo(e, t) {
1976
2085
  return new e({
1977
2086
  type: "string",
1978
2087
  format: "base64url",
1979
2088
  check: "string_format",
1980
2089
  abort: !1,
1981
- ...l(t)
2090
+ ...h(t)
1982
2091
  });
1983
2092
  }
1984
- function Po(e, t) {
2093
+ function Mo(e, t) {
1985
2094
  return new e({
1986
2095
  type: "string",
1987
2096
  format: "e164",
1988
2097
  check: "string_format",
1989
2098
  abort: !1,
1990
- ...l(t)
2099
+ ...h(t)
1991
2100
  });
1992
2101
  }
1993
- function Oo(e, t) {
2102
+ function Qo(e, t) {
1994
2103
  return new e({
1995
2104
  type: "string",
1996
2105
  format: "jwt",
1997
2106
  check: "string_format",
1998
2107
  abort: !1,
1999
- ...l(t)
2108
+ ...h(t)
2000
2109
  });
2001
2110
  }
2002
- function Eo(e, t) {
2111
+ function Lo(e, t) {
2003
2112
  return new e({
2004
2113
  type: "string",
2005
2114
  format: "datetime",
@@ -2007,188 +2116,210 @@ function Eo(e, t) {
2007
2116
  offset: !1,
2008
2117
  local: !1,
2009
2118
  precision: null,
2010
- ...l(t)
2119
+ ...h(t)
2011
2120
  });
2012
2121
  }
2013
- function Io(e, t) {
2122
+ function Bo(e, t) {
2014
2123
  return new e({
2015
2124
  type: "string",
2016
2125
  format: "date",
2017
2126
  check: "string_format",
2018
- ...l(t)
2127
+ ...h(t)
2019
2128
  });
2020
2129
  }
2021
- function So(e, t) {
2130
+ function Wo(e, t) {
2022
2131
  return new e({
2023
2132
  type: "string",
2024
2133
  format: "time",
2025
2134
  check: "string_format",
2026
2135
  precision: null,
2027
- ...l(t)
2136
+ ...h(t)
2028
2137
  });
2029
2138
  }
2030
- function To(e, t) {
2139
+ function Ko(e, t) {
2031
2140
  return new e({
2032
2141
  type: "string",
2033
2142
  format: "duration",
2034
2143
  check: "string_format",
2035
- ...l(t)
2144
+ ...h(t)
2036
2145
  });
2037
2146
  }
2038
- function Do(e) {
2147
+ function Ho(e) {
2039
2148
  return new e({
2040
2149
  type: "unknown"
2041
2150
  });
2042
2151
  }
2043
- function Ao(e, t) {
2152
+ function Vo(e, t) {
2044
2153
  return new e({
2045
2154
  type: "never",
2046
- ...l(t)
2155
+ ...h(t)
2047
2156
  });
2048
2157
  }
2049
- function ut(e, t) {
2050
- return new sr({
2158
+ function gt(e, t) {
2159
+ return new _r({
2051
2160
  check: "max_length",
2052
- ...l(t),
2161
+ ...h(t),
2053
2162
  maximum: e
2054
2163
  });
2055
2164
  }
2056
- function J(e, t) {
2057
- return new ir({
2165
+ function ne(e, t) {
2166
+ return new yr({
2058
2167
  check: "min_length",
2059
- ...l(t),
2168
+ ...h(t),
2060
2169
  minimum: e
2061
2170
  });
2062
2171
  }
2063
- function lt(e, t) {
2064
- return new ar({
2172
+ function vt(e, t) {
2173
+ return new wr({
2065
2174
  check: "length_equals",
2066
- ...l(t),
2175
+ ...h(t),
2067
2176
  length: e
2068
2177
  });
2069
2178
  }
2070
- function Co(e, t) {
2071
- return new cr({
2179
+ function Jo(e, t) {
2180
+ return new br({
2072
2181
  check: "string_format",
2073
2182
  format: "regex",
2074
- ...l(t),
2183
+ ...h(t),
2075
2184
  pattern: e
2076
2185
  });
2077
2186
  }
2078
- function No(e) {
2079
- return new ur({
2187
+ function Go(e) {
2188
+ return new zr({
2080
2189
  check: "string_format",
2081
2190
  format: "lowercase",
2082
- ...l(e)
2191
+ ...h(e)
2083
2192
  });
2084
2193
  }
2085
- function Ro(e) {
2086
- return new lr({
2194
+ function Yo(e) {
2195
+ return new kr({
2087
2196
  check: "string_format",
2088
2197
  format: "uppercase",
2089
- ...l(e)
2198
+ ...h(e)
2090
2199
  });
2091
2200
  }
2092
- function Uo(e, t) {
2093
- return new dr({
2201
+ function Xo(e, t) {
2202
+ return new xr({
2094
2203
  check: "string_format",
2095
2204
  format: "includes",
2096
- ...l(t),
2205
+ ...h(t),
2097
2206
  includes: e
2098
2207
  });
2099
2208
  }
2100
- function Fo(e, t) {
2101
- return new hr({
2209
+ function es(e, t) {
2210
+ return new Zr({
2102
2211
  check: "string_format",
2103
2212
  format: "starts_with",
2104
- ...l(t),
2213
+ ...h(t),
2105
2214
  prefix: e
2106
2215
  });
2107
2216
  }
2108
- function qo(e, t) {
2109
- return new fr({
2217
+ function ts(e, t) {
2218
+ return new $r({
2110
2219
  check: "string_format",
2111
2220
  format: "ends_with",
2112
- ...l(t),
2221
+ ...h(t),
2113
2222
  suffix: e
2114
2223
  });
2115
2224
  }
2116
- function B(e) {
2117
- return new pr({
2225
+ function K(e) {
2226
+ return new jr({
2118
2227
  check: "overwrite",
2119
2228
  tx: e
2120
2229
  });
2121
2230
  }
2122
- function Qo(e) {
2123
- return B((t) => t.normalize(e));
2231
+ function ns(e) {
2232
+ return K((t) => t.normalize(e));
2124
2233
  }
2125
- function Mo() {
2126
- return B((e) => e.trim());
2234
+ function rs() {
2235
+ return K((e) => e.trim());
2127
2236
  }
2128
- function Lo() {
2129
- return B((e) => e.toLowerCase());
2237
+ function os() {
2238
+ return K((e) => e.toLowerCase());
2130
2239
  }
2131
- function Bo() {
2132
- return B((e) => e.toUpperCase());
2240
+ function ss() {
2241
+ return K((e) => e.toUpperCase());
2133
2242
  }
2134
- function Wo(e, t, n) {
2243
+ function is(e, t, n) {
2135
2244
  return new e({
2136
2245
  type: "array",
2137
2246
  element: t,
2138
2247
  // get element() {
2139
2248
  // return element;
2140
2249
  // },
2141
- ...l(n)
2250
+ ...h(n)
2142
2251
  });
2143
2252
  }
2144
- function Ko(e, t, n) {
2253
+ function as(e, t, n) {
2145
2254
  return new e({
2146
2255
  type: "custom",
2147
2256
  check: "custom",
2148
2257
  fn: t,
2149
- ...l(n)
2258
+ ...h(n)
2150
2259
  });
2151
2260
  }
2152
- const Ho = /* @__PURE__ */ c("ZodISODateTime", (e, t) => {
2153
- Pr.init(e, t), z.init(e, t);
2261
+ function cs(e) {
2262
+ const t = us((n) => (n.addIssue = (r) => {
2263
+ if (typeof r == "string")
2264
+ n.issues.push(W(r, n.value, t._zod.def));
2265
+ else {
2266
+ const o = r;
2267
+ o.fatal && (o.continue = !1), o.code ?? (o.code = "custom"), o.input ?? (o.input = n.value), o.inst ?? (o.inst = t), o.continue ?? (o.continue = !t._zod.def.abort), n.issues.push(W(o));
2268
+ }
2269
+ }, e(n.value, n)));
2270
+ return t;
2271
+ }
2272
+ function us(e, t) {
2273
+ const n = new T({
2274
+ check: "custom",
2275
+ ...h(t)
2276
+ });
2277
+ return n._zod.check = e, n;
2278
+ }
2279
+ const ls = /* @__PURE__ */ c("ZodISODateTime", (e, t) => {
2280
+ qr.init(e, t), w.init(e, t);
2154
2281
  });
2155
- function Vo(e) {
2156
- return Eo(Ho, e);
2282
+ function ds(e) {
2283
+ return Lo(ls, e);
2157
2284
  }
2158
- const Go = /* @__PURE__ */ c("ZodISODate", (e, t) => {
2159
- Or.init(e, t), z.init(e, t);
2285
+ const hs = /* @__PURE__ */ c("ZodISODate", (e, t) => {
2286
+ Mr.init(e, t), w.init(e, t);
2160
2287
  });
2161
- function Jo(e) {
2162
- return Io(Go, e);
2288
+ function fs(e) {
2289
+ return Bo(hs, e);
2163
2290
  }
2164
- const Yo = /* @__PURE__ */ c("ZodISOTime", (e, t) => {
2165
- Er.init(e, t), z.init(e, t);
2291
+ const ps = /* @__PURE__ */ c("ZodISOTime", (e, t) => {
2292
+ Qr.init(e, t), w.init(e, t);
2166
2293
  });
2167
- function Xo(e) {
2168
- return So(Yo, e);
2294
+ function ms(e) {
2295
+ return Wo(ps, e);
2169
2296
  }
2170
- const es = /* @__PURE__ */ c("ZodISODuration", (e, t) => {
2171
- Ir.init(e, t), z.init(e, t);
2297
+ const gs = /* @__PURE__ */ c("ZodISODuration", (e, t) => {
2298
+ Lr.init(e, t), w.init(e, t);
2172
2299
  });
2173
- function ts(e) {
2174
- return To(es, e);
2300
+ function vs(e) {
2301
+ return Ko(gs, e);
2175
2302
  }
2176
- const ns = (e, t) => {
2177
- tt.init(e, t), e.name = "ZodError", Object.defineProperties(e, {
2303
+ const _s = (e, t) => {
2304
+ ct.init(e, t), e.name = "ZodError", Object.defineProperties(e, {
2178
2305
  format: {
2179
- value: (n) => En(e, n)
2306
+ value: (n) => Nn(e, n)
2180
2307
  // enumerable: false,
2181
2308
  },
2182
2309
  flatten: {
2183
- value: (n) => On(e, n)
2310
+ value: (n) => Cn(e, n)
2184
2311
  // enumerable: false,
2185
2312
  },
2186
2313
  addIssue: {
2187
- value: (n) => e.issues.push(n)
2314
+ value: (n) => {
2315
+ e.issues.push(n), e.message = JSON.stringify(e.issues, ue, 2);
2316
+ }
2188
2317
  // enumerable: false,
2189
2318
  },
2190
2319
  addIssues: {
2191
- value: (n) => e.issues.push(...n)
2320
+ value: (n) => {
2321
+ e.issues.push(...n), e.message = JSON.stringify(e.issues, ue, 2);
2322
+ }
2192
2323
  // enumerable: false,
2193
2324
  },
2194
2325
  isEmpty: {
@@ -2198,133 +2329,127 @@ const ns = (e, t) => {
2198
2329
  // enumerable: false,
2199
2330
  }
2200
2331
  });
2201
- }, ne = c("ZodError", ns, {
2332
+ }, O = c("ZodError", _s, {
2202
2333
  Parent: Error
2203
- }), rs = /* @__PURE__ */ In(ne), os = /* @__PURE__ */ Sn(ne), ss = /* @__PURE__ */ rt(ne), is = /* @__PURE__ */ ot(ne), Z = /* @__PURE__ */ c("ZodType", (e, t) => (k.init(e, t), e.def = t, Object.defineProperty(e, "_def", { value: t }), e.check = (...n) => e.clone(
2204
- {
2205
- ...t,
2206
- checks: [
2207
- ...t.checks ?? [],
2208
- ...n.map((r) => typeof r == "function" ? { _zod: { check: r, def: { check: "custom" }, onattach: [] } } : r)
2209
- ]
2210
- }
2211
- // { parent: true }
2212
- ), e.clone = (n, r) => F(e, n, r), e.brand = () => e, e.register = (n, r) => (n.add(e, r), e), e.parse = (n, r) => rs(e, n, r, { callee: e.parse }), e.safeParse = (n, r) => ss(e, n, r), e.parseAsync = async (n, r) => os(e, n, r, { callee: e.parseAsync }), e.safeParseAsync = async (n, r) => is(e, n, r), e.spa = e.safeParseAsync, e.refine = (n, r) => e.check(Js(n, r)), e.superRefine = (n) => e.check(Ys(n)), e.overwrite = (n) => e.check(B(n)), e.optional = () => Ue(e), e.nullable = () => Fe(e), e.nullish = () => Ue(Fe(e)), e.nonoptional = (n) => Ms(e, n), e.array = () => Os(e), e.or = (n) => Ts([e, n]), e.and = (n) => As(e, n), e.transform = (n) => qe(e, Ns(n)), e.default = (n) => Fs(e, n), e.prefault = (n) => Qs(e, n), e.catch = (n) => Bs(e, n), e.pipe = (n) => qe(e, n), e.readonly = () => Hs(e), e.describe = (n) => {
2334
+ }), ys = /* @__PURE__ */ ge(O), ws = /* @__PURE__ */ ve(O), bs = /* @__PURE__ */ ie(O), zs = /* @__PURE__ */ ae(O), ks = /* @__PURE__ */ Un(O), xs = /* @__PURE__ */ qn(O), Zs = /* @__PURE__ */ Mn(O), $s = /* @__PURE__ */ Qn(O), js = /* @__PURE__ */ Ln(O), Ps = /* @__PURE__ */ Bn(O), Os = /* @__PURE__ */ Wn(O), Es = /* @__PURE__ */ Kn(O), z = /* @__PURE__ */ c("ZodType", (e, t) => (b.init(e, t), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.check = (...n) => e.clone(q(t, {
2335
+ checks: [
2336
+ ...t.checks ?? [],
2337
+ ...n.map((r) => typeof r == "function" ? { _zod: { check: r, def: { check: "custom" }, onattach: [] } } : r)
2338
+ ]
2339
+ })), e.clone = (n, r) => N(e, n, r), e.brand = () => e, e.register = ((n, r) => (n.add(e, r), e)), e.parse = (n, r) => ys(e, n, r, { callee: e.parse }), e.safeParse = (n, r) => bs(e, n, r), e.parseAsync = async (n, r) => ws(e, n, r, { callee: e.parseAsync }), e.safeParseAsync = async (n, r) => zs(e, n, r), e.spa = e.safeParseAsync, e.encode = (n, r) => ks(e, n, r), e.decode = (n, r) => xs(e, n, r), e.encodeAsync = async (n, r) => Zs(e, n, r), e.decodeAsync = async (n, r) => $s(e, n, r), e.safeEncode = (n, r) => js(e, n, r), e.safeDecode = (n, r) => Ps(e, n, r), e.safeEncodeAsync = async (n, r) => Os(e, n, r), e.safeDecodeAsync = async (n, r) => Es(e, n, r), e.refine = (n, r) => e.check(wi(n, r)), e.superRefine = (n) => e.check(bi(n)), e.overwrite = (n) => e.check(K(n)), e.optional = () => Le(e), e.nullable = () => Be(e), e.nullish = () => Le(Be(e)), e.nonoptional = (n) => fi(e, n), e.array = () => Xs(e), e.or = (n) => ri([e, n]), e.and = (n) => si(e, n), e.transform = (n) => We(e, ai(n)), e.default = (n) => li(e, n), e.prefault = (n) => hi(e, n), e.catch = (n) => mi(e, n), e.pipe = (n) => We(e, n), e.readonly = () => _i(e), e.describe = (n) => {
2213
2340
  const r = e.clone();
2214
- return V.add(r, { description: n }), r;
2341
+ return Y.add(r, { description: n }), r;
2215
2342
  }, Object.defineProperty(e, "description", {
2216
2343
  get() {
2217
- return V.get(e)?.description;
2344
+ return Y.get(e)?.description;
2218
2345
  },
2219
2346
  configurable: !0
2220
2347
  }), e.meta = (...n) => {
2221
2348
  if (n.length === 0)
2222
- return V.get(e);
2349
+ return Y.get(e);
2223
2350
  const r = e.clone();
2224
- return V.add(r, n[0]), r;
2225
- }, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e)), dt = /* @__PURE__ */ c("_ZodString", (e, t) => {
2226
- he.init(e, t), Z.init(e, t);
2351
+ return Y.add(r, n[0]), r;
2352
+ }, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e)), _t = /* @__PURE__ */ c("_ZodString", (e, t) => {
2353
+ _e.init(e, t), z.init(e, t);
2227
2354
  const n = e._zod.bag;
2228
- e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, e.regex = (...r) => e.check(Co(...r)), e.includes = (...r) => e.check(Uo(...r)), e.startsWith = (...r) => e.check(Fo(...r)), e.endsWith = (...r) => e.check(qo(...r)), e.min = (...r) => e.check(J(...r)), e.max = (...r) => e.check(ut(...r)), e.length = (...r) => e.check(lt(...r)), e.nonempty = (...r) => e.check(J(1, ...r)), e.lowercase = (r) => e.check(No(r)), e.uppercase = (r) => e.check(Ro(r)), e.trim = () => e.check(Mo()), e.normalize = (...r) => e.check(Qo(...r)), e.toLowerCase = () => e.check(Lo()), e.toUpperCase = () => e.check(Bo());
2229
- }), as = /* @__PURE__ */ c("ZodString", (e, t) => {
2230
- he.init(e, t), dt.init(e, t), e.email = (n) => e.check(co(cs, n)), e.url = (n) => e.check(po(us, n)), e.jwt = (n) => e.check(Oo($s, n)), e.emoji = (n) => e.check(mo(ls, n)), e.guid = (n) => e.check(Ae(Ne, n)), e.uuid = (n) => e.check(uo(G, n)), e.uuidv4 = (n) => e.check(lo(G, n)), e.uuidv6 = (n) => e.check(ho(G, n)), e.uuidv7 = (n) => e.check(fo(G, n)), e.nanoid = (n) => e.check(go(ds, n)), e.guid = (n) => e.check(Ae(Ne, n)), e.cuid = (n) => e.check(vo(hs, n)), e.cuid2 = (n) => e.check(_o(fs, n)), e.ulid = (n) => e.check(yo(ps, n)), e.base64 = (n) => e.check(Zo(bs, n)), e.base64url = (n) => e.check(jo(zs, n)), e.xid = (n) => e.check(wo(ms, n)), e.ksuid = (n) => e.check(bo(gs, n)), e.ipv4 = (n) => e.check(zo(vs, n)), e.ipv6 = (n) => e.check(xo(_s, n)), e.cidrv4 = (n) => e.check($o(ys, n)), e.cidrv6 = (n) => e.check(ko(ws, n)), e.e164 = (n) => e.check(Po(xs, n)), e.datetime = (n) => e.check(Vo(n)), e.date = (n) => e.check(Jo(n)), e.time = (n) => e.check(Xo(n)), e.duration = (n) => e.check(ts(n));
2355
+ e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, e.regex = (...r) => e.check(Jo(...r)), e.includes = (...r) => e.check(Xo(...r)), e.startsWith = (...r) => e.check(es(...r)), e.endsWith = (...r) => e.check(ts(...r)), e.min = (...r) => e.check(ne(...r)), e.max = (...r) => e.check(gt(...r)), e.length = (...r) => e.check(vt(...r)), e.nonempty = (...r) => e.check(ne(1, ...r)), e.lowercase = (r) => e.check(Go(r)), e.uppercase = (r) => e.check(Yo(r)), e.trim = () => e.check(rs()), e.normalize = (...r) => e.check(ns(...r)), e.toLowerCase = () => e.check(os()), e.toUpperCase = () => e.check(ss());
2356
+ }), As = /* @__PURE__ */ c("ZodString", (e, t) => {
2357
+ _e.init(e, t), _t.init(e, t), e.email = (n) => e.check(ko(Ts, n)), e.url = (n) => e.check(Po(Ss, n)), e.jwt = (n) => e.check(Qo(Hs, n)), e.emoji = (n) => e.check(Oo(Is, n)), e.guid = (n) => e.check(Ue(Me, n)), e.uuid = (n) => e.check(xo(X, n)), e.uuidv4 = (n) => e.check(Zo(X, n)), e.uuidv6 = (n) => e.check($o(X, n)), e.uuidv7 = (n) => e.check(jo(X, n)), e.nanoid = (n) => e.check(Eo(Ds, n)), e.guid = (n) => e.check(Ue(Me, n)), e.cuid = (n) => e.check(Ao(Cs, n)), e.cuid2 = (n) => e.check(To(Ns, n)), e.ulid = (n) => e.check(So(Rs, n)), e.base64 = (n) => e.check(Uo(Bs, n)), e.base64url = (n) => e.check(qo(Ws, n)), e.xid = (n) => e.check(Io(Fs, n)), e.ksuid = (n) => e.check(Do(Us, n)), e.ipv4 = (n) => e.check(Co(qs, n)), e.ipv6 = (n) => e.check(No(Ms, n)), e.cidrv4 = (n) => e.check(Ro(Qs, n)), e.cidrv6 = (n) => e.check(Fo(Ls, n)), e.e164 = (n) => e.check(Mo(Ks, n)), e.datetime = (n) => e.check(ds(n)), e.date = (n) => e.check(fs(n)), e.time = (n) => e.check(ms(n)), e.duration = (n) => e.check(vs(n));
2231
2358
  });
2232
- function Ce(e) {
2233
- return ao(as, e);
2234
- }
2235
- const z = /* @__PURE__ */ c("ZodStringFormat", (e, t) => {
2236
- b.init(e, t), dt.init(e, t);
2237
- }), cs = /* @__PURE__ */ c("ZodEmail", (e, t) => {
2238
- yr.init(e, t), z.init(e, t);
2239
- }), Ne = /* @__PURE__ */ c("ZodGUID", (e, t) => {
2240
- vr.init(e, t), z.init(e, t);
2241
- }), G = /* @__PURE__ */ c("ZodUUID", (e, t) => {
2242
- _r.init(e, t), z.init(e, t);
2243
- }), us = /* @__PURE__ */ c("ZodURL", (e, t) => {
2244
- wr.init(e, t), z.init(e, t);
2245
- }), ls = /* @__PURE__ */ c("ZodEmoji", (e, t) => {
2246
- br.init(e, t), z.init(e, t);
2247
- }), ds = /* @__PURE__ */ c("ZodNanoID", (e, t) => {
2248
- zr.init(e, t), z.init(e, t);
2249
- }), hs = /* @__PURE__ */ c("ZodCUID", (e, t) => {
2250
- xr.init(e, t), z.init(e, t);
2251
- }), fs = /* @__PURE__ */ c("ZodCUID2", (e, t) => {
2252
- $r.init(e, t), z.init(e, t);
2253
- }), ps = /* @__PURE__ */ c("ZodULID", (e, t) => {
2254
- kr.init(e, t), z.init(e, t);
2255
- }), ms = /* @__PURE__ */ c("ZodXID", (e, t) => {
2256
- Zr.init(e, t), z.init(e, t);
2257
- }), gs = /* @__PURE__ */ c("ZodKSUID", (e, t) => {
2258
- jr.init(e, t), z.init(e, t);
2259
- }), vs = /* @__PURE__ */ c("ZodIPv4", (e, t) => {
2260
- Sr.init(e, t), z.init(e, t);
2261
- }), _s = /* @__PURE__ */ c("ZodIPv6", (e, t) => {
2262
- Tr.init(e, t), z.init(e, t);
2263
- }), ys = /* @__PURE__ */ c("ZodCIDRv4", (e, t) => {
2264
- Dr.init(e, t), z.init(e, t);
2265
- }), ws = /* @__PURE__ */ c("ZodCIDRv6", (e, t) => {
2266
- Ar.init(e, t), z.init(e, t);
2267
- }), bs = /* @__PURE__ */ c("ZodBase64", (e, t) => {
2268
- Cr.init(e, t), z.init(e, t);
2269
- }), zs = /* @__PURE__ */ c("ZodBase64URL", (e, t) => {
2270
- Rr.init(e, t), z.init(e, t);
2271
- }), xs = /* @__PURE__ */ c("ZodE164", (e, t) => {
2272
- Ur.init(e, t), z.init(e, t);
2273
- }), $s = /* @__PURE__ */ c("ZodJWT", (e, t) => {
2274
- qr.init(e, t), z.init(e, t);
2275
- }), ks = /* @__PURE__ */ c("ZodUnknown", (e, t) => {
2276
- Qr.init(e, t), Z.init(e, t);
2359
+ function qe(e) {
2360
+ return zo(As, e);
2361
+ }
2362
+ const w = /* @__PURE__ */ c("ZodStringFormat", (e, t) => {
2363
+ y.init(e, t), _t.init(e, t);
2364
+ }), Ts = /* @__PURE__ */ c("ZodEmail", (e, t) => {
2365
+ Tr.init(e, t), w.init(e, t);
2366
+ }), Me = /* @__PURE__ */ c("ZodGUID", (e, t) => {
2367
+ Er.init(e, t), w.init(e, t);
2368
+ }), X = /* @__PURE__ */ c("ZodUUID", (e, t) => {
2369
+ Ar.init(e, t), w.init(e, t);
2370
+ }), Ss = /* @__PURE__ */ c("ZodURL", (e, t) => {
2371
+ Sr.init(e, t), w.init(e, t);
2372
+ }), Is = /* @__PURE__ */ c("ZodEmoji", (e, t) => {
2373
+ Ir.init(e, t), w.init(e, t);
2374
+ }), Ds = /* @__PURE__ */ c("ZodNanoID", (e, t) => {
2375
+ Dr.init(e, t), w.init(e, t);
2376
+ }), Cs = /* @__PURE__ */ c("ZodCUID", (e, t) => {
2377
+ Cr.init(e, t), w.init(e, t);
2378
+ }), Ns = /* @__PURE__ */ c("ZodCUID2", (e, t) => {
2379
+ Nr.init(e, t), w.init(e, t);
2380
+ }), Rs = /* @__PURE__ */ c("ZodULID", (e, t) => {
2381
+ Rr.init(e, t), w.init(e, t);
2382
+ }), Fs = /* @__PURE__ */ c("ZodXID", (e, t) => {
2383
+ Fr.init(e, t), w.init(e, t);
2384
+ }), Us = /* @__PURE__ */ c("ZodKSUID", (e, t) => {
2385
+ Ur.init(e, t), w.init(e, t);
2386
+ }), qs = /* @__PURE__ */ c("ZodIPv4", (e, t) => {
2387
+ Br.init(e, t), w.init(e, t);
2388
+ }), Ms = /* @__PURE__ */ c("ZodIPv6", (e, t) => {
2389
+ Wr.init(e, t), w.init(e, t);
2390
+ }), Qs = /* @__PURE__ */ c("ZodCIDRv4", (e, t) => {
2391
+ Kr.init(e, t), w.init(e, t);
2392
+ }), Ls = /* @__PURE__ */ c("ZodCIDRv6", (e, t) => {
2393
+ Hr.init(e, t), w.init(e, t);
2394
+ }), Bs = /* @__PURE__ */ c("ZodBase64", (e, t) => {
2395
+ Vr.init(e, t), w.init(e, t);
2396
+ }), Ws = /* @__PURE__ */ c("ZodBase64URL", (e, t) => {
2397
+ Gr.init(e, t), w.init(e, t);
2398
+ }), Ks = /* @__PURE__ */ c("ZodE164", (e, t) => {
2399
+ Yr.init(e, t), w.init(e, t);
2400
+ }), Hs = /* @__PURE__ */ c("ZodJWT", (e, t) => {
2401
+ eo.init(e, t), w.init(e, t);
2402
+ }), Vs = /* @__PURE__ */ c("ZodUnknown", (e, t) => {
2403
+ to.init(e, t), z.init(e, t);
2277
2404
  });
2278
- function Re() {
2279
- return Do(ks);
2405
+ function Qe() {
2406
+ return Ho(Vs);
2280
2407
  }
2281
- const Zs = /* @__PURE__ */ c("ZodNever", (e, t) => {
2282
- Mr.init(e, t), Z.init(e, t);
2408
+ const Js = /* @__PURE__ */ c("ZodNever", (e, t) => {
2409
+ no.init(e, t), z.init(e, t);
2283
2410
  });
2284
- function js(e) {
2285
- return Ao(Zs, e);
2411
+ function Gs(e) {
2412
+ return Vo(Js, e);
2286
2413
  }
2287
- const Ps = /* @__PURE__ */ c("ZodArray", (e, t) => {
2288
- Lr.init(e, t), Z.init(e, t), e.element = t.element, e.min = (n, r) => e.check(J(n, r)), e.nonempty = (n) => e.check(J(1, n)), e.max = (n, r) => e.check(ut(n, r)), e.length = (n, r) => e.check(lt(n, r)), e.unwrap = () => e.element;
2414
+ const Ys = /* @__PURE__ */ c("ZodArray", (e, t) => {
2415
+ ro.init(e, t), z.init(e, t), e.element = t.element, e.min = (n, r) => e.check(ne(n, r)), e.nonempty = (n) => e.check(ne(1, n)), e.max = (n, r) => e.check(gt(n, r)), e.length = (n, r) => e.check(vt(n, r)), e.unwrap = () => e.element;
2289
2416
  });
2290
- function Os(e, t) {
2291
- return Wo(Ps, e, t);
2417
+ function Xs(e, t) {
2418
+ return is(Ys, e, t);
2292
2419
  }
2293
- const Es = /* @__PURE__ */ c("ZodObject", (e, t) => {
2294
- Br.init(e, t), Z.init(e, t), w(e, "shape", () => t.shape), e.keyof = () => ht(Object.keys(e._zod.def.shape)), e.catchall = (n) => e.clone({ ...e._zod.def, catchall: n }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: Re() }), e.loose = () => e.clone({ ...e._zod.def, catchall: Re() }), e.strict = () => e.clone({ ...e._zod.def, catchall: js() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (n) => kn(e, n), e.merge = (n) => Zn(e, n), e.pick = (n) => xn(e, n), e.omit = (n) => $n(e, n), e.partial = (...n) => jn(ft, e, n[0]), e.required = (...n) => Pn(pt, e, n[0]);
2420
+ const ei = /* @__PURE__ */ c("ZodObject", (e, t) => {
2421
+ so.init(e, t), z.init(e, t), _(e, "shape", () => t.shape), e.keyof = () => yt(Object.keys(e._zod.def.shape)), e.catchall = (n) => e.clone({ ...e._zod.def, catchall: n }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: Qe() }), e.loose = () => e.clone({ ...e._zod.def, catchall: Qe() }), e.strict = () => e.clone({ ...e._zod.def, catchall: Gs() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (n) => An(e, n), e.safeExtend = (n) => Tn(e, n), e.merge = (n) => Sn(e, n), e.pick = (n) => On(e, n), e.omit = (n) => En(e, n), e.partial = (...n) => In(wt, e, n[0]), e.required = (...n) => Dn(bt, e, n[0]);
2295
2422
  });
2296
- function Is(e, t) {
2423
+ function ti(e, t) {
2297
2424
  const n = {
2298
2425
  type: "object",
2299
- get shape() {
2300
- return ue(this, "shape", { ...e }), this.shape;
2301
- },
2302
- ...l(t)
2426
+ shape: e ?? {},
2427
+ ...h(t)
2303
2428
  };
2304
- return new Es(n);
2429
+ return new ei(n);
2305
2430
  }
2306
- const Ss = /* @__PURE__ */ c("ZodUnion", (e, t) => {
2307
- Wr.init(e, t), Z.init(e, t), e.options = t.options;
2431
+ const ni = /* @__PURE__ */ c("ZodUnion", (e, t) => {
2432
+ io.init(e, t), z.init(e, t), e.options = t.options;
2308
2433
  });
2309
- function Ts(e, t) {
2310
- return new Ss({
2434
+ function ri(e, t) {
2435
+ return new ni({
2311
2436
  type: "union",
2312
2437
  options: e,
2313
- ...l(t)
2438
+ ...h(t)
2314
2439
  });
2315
2440
  }
2316
- const Ds = /* @__PURE__ */ c("ZodIntersection", (e, t) => {
2317
- Kr.init(e, t), Z.init(e, t);
2441
+ const oi = /* @__PURE__ */ c("ZodIntersection", (e, t) => {
2442
+ ao.init(e, t), z.init(e, t);
2318
2443
  });
2319
- function As(e, t) {
2320
- return new Ds({
2444
+ function si(e, t) {
2445
+ return new oi({
2321
2446
  type: "intersection",
2322
2447
  left: e,
2323
2448
  right: t
2324
2449
  });
2325
2450
  }
2326
- const ie = /* @__PURE__ */ c("ZodEnum", (e, t) => {
2327
- Hr.init(e, t), Z.init(e, t), e.enum = t.entries, e.options = Object.values(t.entries);
2451
+ const de = /* @__PURE__ */ c("ZodEnum", (e, t) => {
2452
+ co.init(e, t), z.init(e, t), e.enum = t.entries, e.options = Object.values(t.entries);
2328
2453
  const n = new Set(Object.keys(t.entries));
2329
2454
  e.extract = (r, o) => {
2330
2455
  const s = {};
@@ -2333,10 +2458,10 @@ const ie = /* @__PURE__ */ c("ZodEnum", (e, t) => {
2333
2458
  s[i] = t.entries[i];
2334
2459
  else
2335
2460
  throw new Error(`Key ${i} not found in enum`);
2336
- return new ie({
2461
+ return new de({
2337
2462
  ...t,
2338
2463
  checks: [],
2339
- ...l(o),
2464
+ ...h(o),
2340
2465
  entries: s
2341
2466
  });
2342
2467
  }, e.exclude = (r, o) => {
@@ -2346,158 +2471,145 @@ const ie = /* @__PURE__ */ c("ZodEnum", (e, t) => {
2346
2471
  delete s[i];
2347
2472
  else
2348
2473
  throw new Error(`Key ${i} not found in enum`);
2349
- return new ie({
2474
+ return new de({
2350
2475
  ...t,
2351
2476
  checks: [],
2352
- ...l(o),
2477
+ ...h(o),
2353
2478
  entries: s
2354
2479
  });
2355
2480
  };
2356
2481
  });
2357
- function ht(e, t) {
2482
+ function yt(e, t) {
2358
2483
  const n = Array.isArray(e) ? Object.fromEntries(e.map((r) => [r, r])) : e;
2359
- return new ie({
2484
+ return new de({
2360
2485
  type: "enum",
2361
2486
  entries: n,
2362
- ...l(t)
2487
+ ...h(t)
2363
2488
  });
2364
2489
  }
2365
- const Cs = /* @__PURE__ */ c("ZodTransform", (e, t) => {
2366
- Vr.init(e, t), Z.init(e, t), e._zod.parse = (n, r) => {
2490
+ const ii = /* @__PURE__ */ c("ZodTransform", (e, t) => {
2491
+ uo.init(e, t), z.init(e, t), e._zod.parse = (n, r) => {
2492
+ if (r.direction === "backward")
2493
+ throw new nt(e.constructor.name);
2367
2494
  n.addIssue = (s) => {
2368
2495
  if (typeof s == "string")
2369
- n.issues.push(L(s, n.value, t));
2496
+ n.issues.push(W(s, n.value, t));
2370
2497
  else {
2371
2498
  const i = s;
2372
- i.fatal && (i.continue = !1), i.code ?? (i.code = "custom"), i.input ?? (i.input = n.value), i.inst ?? (i.inst = e), i.continue ?? (i.continue = !0), n.issues.push(L(i));
2499
+ i.fatal && (i.continue = !1), i.code ?? (i.code = "custom"), i.input ?? (i.input = n.value), i.inst ?? (i.inst = e), n.issues.push(W(i));
2373
2500
  }
2374
2501
  };
2375
2502
  const o = t.transform(n.value, n);
2376
2503
  return o instanceof Promise ? o.then((s) => (n.value = s, n)) : (n.value = o, n);
2377
2504
  };
2378
2505
  });
2379
- function Ns(e) {
2380
- return new Cs({
2506
+ function ai(e) {
2507
+ return new ii({
2381
2508
  type: "transform",
2382
2509
  transform: e
2383
2510
  });
2384
2511
  }
2385
- const ft = /* @__PURE__ */ c("ZodOptional", (e, t) => {
2386
- Gr.init(e, t), Z.init(e, t), e.unwrap = () => e._zod.def.innerType;
2512
+ const wt = /* @__PURE__ */ c("ZodOptional", (e, t) => {
2513
+ lo.init(e, t), z.init(e, t), e.unwrap = () => e._zod.def.innerType;
2387
2514
  });
2388
- function Ue(e) {
2389
- return new ft({
2515
+ function Le(e) {
2516
+ return new wt({
2390
2517
  type: "optional",
2391
2518
  innerType: e
2392
2519
  });
2393
2520
  }
2394
- const Rs = /* @__PURE__ */ c("ZodNullable", (e, t) => {
2395
- Jr.init(e, t), Z.init(e, t), e.unwrap = () => e._zod.def.innerType;
2521
+ const ci = /* @__PURE__ */ c("ZodNullable", (e, t) => {
2522
+ ho.init(e, t), z.init(e, t), e.unwrap = () => e._zod.def.innerType;
2396
2523
  });
2397
- function Fe(e) {
2398
- return new Rs({
2524
+ function Be(e) {
2525
+ return new ci({
2399
2526
  type: "nullable",
2400
2527
  innerType: e
2401
2528
  });
2402
2529
  }
2403
- const Us = /* @__PURE__ */ c("ZodDefault", (e, t) => {
2404
- Yr.init(e, t), Z.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
2530
+ const ui = /* @__PURE__ */ c("ZodDefault", (e, t) => {
2531
+ fo.init(e, t), z.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
2405
2532
  });
2406
- function Fs(e, t) {
2407
- return new Us({
2533
+ function li(e, t) {
2534
+ return new ui({
2408
2535
  type: "default",
2409
2536
  innerType: e,
2410
2537
  get defaultValue() {
2411
- return typeof t == "function" ? t() : t;
2538
+ return typeof t == "function" ? t() : st(t);
2412
2539
  }
2413
2540
  });
2414
2541
  }
2415
- const qs = /* @__PURE__ */ c("ZodPrefault", (e, t) => {
2416
- Xr.init(e, t), Z.init(e, t), e.unwrap = () => e._zod.def.innerType;
2542
+ const di = /* @__PURE__ */ c("ZodPrefault", (e, t) => {
2543
+ po.init(e, t), z.init(e, t), e.unwrap = () => e._zod.def.innerType;
2417
2544
  });
2418
- function Qs(e, t) {
2419
- return new qs({
2545
+ function hi(e, t) {
2546
+ return new di({
2420
2547
  type: "prefault",
2421
2548
  innerType: e,
2422
2549
  get defaultValue() {
2423
- return typeof t == "function" ? t() : t;
2550
+ return typeof t == "function" ? t() : st(t);
2424
2551
  }
2425
2552
  });
2426
2553
  }
2427
- const pt = /* @__PURE__ */ c("ZodNonOptional", (e, t) => {
2428
- eo.init(e, t), Z.init(e, t), e.unwrap = () => e._zod.def.innerType;
2554
+ const bt = /* @__PURE__ */ c("ZodNonOptional", (e, t) => {
2555
+ mo.init(e, t), z.init(e, t), e.unwrap = () => e._zod.def.innerType;
2429
2556
  });
2430
- function Ms(e, t) {
2431
- return new pt({
2557
+ function fi(e, t) {
2558
+ return new bt({
2432
2559
  type: "nonoptional",
2433
2560
  innerType: e,
2434
- ...l(t)
2561
+ ...h(t)
2435
2562
  });
2436
2563
  }
2437
- const Ls = /* @__PURE__ */ c("ZodCatch", (e, t) => {
2438
- to.init(e, t), Z.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
2564
+ const pi = /* @__PURE__ */ c("ZodCatch", (e, t) => {
2565
+ go.init(e, t), z.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
2439
2566
  });
2440
- function Bs(e, t) {
2441
- return new Ls({
2567
+ function mi(e, t) {
2568
+ return new pi({
2442
2569
  type: "catch",
2443
2570
  innerType: e,
2444
2571
  catchValue: typeof t == "function" ? t : () => t
2445
2572
  });
2446
2573
  }
2447
- const Ws = /* @__PURE__ */ c("ZodPipe", (e, t) => {
2448
- no.init(e, t), Z.init(e, t), e.in = t.in, e.out = t.out;
2574
+ const gi = /* @__PURE__ */ c("ZodPipe", (e, t) => {
2575
+ vo.init(e, t), z.init(e, t), e.in = t.in, e.out = t.out;
2449
2576
  });
2450
- function qe(e, t) {
2451
- return new Ws({
2577
+ function We(e, t) {
2578
+ return new gi({
2452
2579
  type: "pipe",
2453
2580
  in: e,
2454
2581
  out: t
2455
2582
  // ...util.normalizeParams(params),
2456
2583
  });
2457
2584
  }
2458
- const Ks = /* @__PURE__ */ c("ZodReadonly", (e, t) => {
2459
- ro.init(e, t), Z.init(e, t);
2585
+ const vi = /* @__PURE__ */ c("ZodReadonly", (e, t) => {
2586
+ _o.init(e, t), z.init(e, t), e.unwrap = () => e._zod.def.innerType;
2460
2587
  });
2461
- function Hs(e) {
2462
- return new Ks({
2588
+ function _i(e) {
2589
+ return new vi({
2463
2590
  type: "readonly",
2464
2591
  innerType: e
2465
2592
  });
2466
2593
  }
2467
- const Vs = /* @__PURE__ */ c("ZodCustom", (e, t) => {
2468
- oo.init(e, t), Z.init(e, t);
2594
+ const yi = /* @__PURE__ */ c("ZodCustom", (e, t) => {
2595
+ yo.init(e, t), z.init(e, t);
2469
2596
  });
2470
- function Gs(e, t) {
2471
- const n = new S({
2472
- check: "custom",
2473
- ...l(t)
2474
- });
2475
- return n._zod.check = e, n;
2597
+ function wi(e, t = {}) {
2598
+ return as(yi, e, t);
2476
2599
  }
2477
- function Js(e, t = {}) {
2478
- return Ko(Vs, e, t);
2600
+ function bi(e) {
2601
+ return cs(e);
2479
2602
  }
2480
- function Ys(e, t) {
2481
- const n = Gs((r) => (r.addIssue = (o) => {
2482
- if (typeof o == "string")
2483
- r.issues.push(L(o, r.value, n._zod.def));
2484
- else {
2485
- const s = o;
2486
- s.fatal && (s.continue = !1), s.code ?? (s.code = "custom"), s.input ?? (s.input = r.value), s.inst ?? (s.inst = n), s.continue ?? (s.continue = !n._zod.def.abort), r.issues.push(L(s));
2487
- }
2488
- }, e(r.value, r)), t);
2489
- return n;
2490
- }
2491
- const Xs = Is({
2492
- buildId: Ce(),
2493
- timestamp: Ce(),
2494
- status: ht(["in-progress", "success", "failed"])
2495
- }), ei = ({
2603
+ const zi = ti({
2604
+ buildId: qe(),
2605
+ timestamp: qe(),
2606
+ status: yt(["in-progress", "success", "failed"])
2607
+ }), ki = ({
2496
2608
  buildId: e,
2497
2609
  environmentType: t,
2498
2610
  endpoint: n = "/__zuplo/docs"
2499
2611
  }) => {
2500
- const r = jt({
2612
+ const r = It({
2501
2613
  queryKey: ["zuplo-build-check", e, n],
2502
2614
  refetchInterval: 3e3,
2503
2615
  enabled: e !== void 0 && t === "WORKING_COPY",
@@ -2505,24 +2617,24 @@ const Xs = Is({
2505
2617
  queryFn: () => fetch(n, { signal: AbortSignal.timeout(2e3) }).then((s) => {
2506
2618
  if (!s.ok) throw new Error("Failed to fetch build status");
2507
2619
  return s.json();
2508
- }).then((s) => Xs.parse(s))
2620
+ }).then((s) => zi.parse(s))
2509
2621
  });
2510
- if (X(() => {
2622
+ if (oe(() => {
2511
2623
  r.data?.status === "success" && r.data.buildId && (document.cookie = `zuplo-build=${r.data.buildId}; path=/; max-age=300; secure; SameSite=None`);
2512
2624
  }, [r.data]), r.isError || !r.data || r.data.buildId === e)
2513
2625
  return null;
2514
2626
  const o = r.data.status === "success";
2515
2627
  return /* @__PURE__ */ a.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: [
2516
2628
  o ? /* @__PURE__ */ a.jsxs("div", { className: "flex flex-row items-center gap-2", children: [
2517
- /* @__PURE__ */ a.jsx(Mt, { size: 16 }),
2629
+ /* @__PURE__ */ a.jsx(Jt, { size: 16 }),
2518
2630
  /* @__PURE__ */ a.jsx("span", { className: "text-sm", children: "New version available" })
2519
2631
  ] }) : /* @__PURE__ */ a.jsxs("div", { className: "flex flex-row items-center gap-2", children: [
2520
- /* @__PURE__ */ a.jsx(Lt, { size: 16, className: "animate-spin" }),
2632
+ /* @__PURE__ */ a.jsx(Gt, { size: 16, className: "animate-spin" }),
2521
2633
  /* @__PURE__ */ a.jsx("span", { className: "text-sm", children: "Building new version..." })
2522
2634
  ] }),
2523
2635
  /* @__PURE__ */ a.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." }),
2524
- /* @__PURE__ */ a.jsx(
2525
- Kt,
2636
+ o && /* @__PURE__ */ a.jsx(
2637
+ en,
2526
2638
  {
2527
2639
  variant: "outline",
2528
2640
  size: "sm",
@@ -2534,13 +2646,13 @@ const Xs = Is({
2534
2646
  }
2535
2647
  )
2536
2648
  ] });
2537
- }, ti = () => {
2538
- const e = Ve(), t = He(e.pathname);
2539
- X(() => {
2649
+ }, xi = () => {
2650
+ const e = et(), t = Xe(e.pathname);
2651
+ oe(() => {
2540
2652
  const n = t.current !== e.pathname, r = e.hash !== "";
2541
2653
  n && !r && window.scrollTo(0, 0), t.current = e.pathname;
2542
2654
  }, [e.pathname, e.hash]);
2543
- }, ni = ({
2655
+ }, Zi = ({
2544
2656
  icon: e
2545
2657
  }) => typeof e == "string" ? /* @__PURE__ */ a.jsx(
2546
2658
  "img",
@@ -2549,8 +2661,8 @@ const Xs = Is({
2549
2661
  className: "size-5",
2550
2662
  alt: e
2551
2663
  }
2552
- ) : e, ri = (e) => /^https?:/.test(e), oi = () => {
2553
- const { site: e } = Ut(), t = e?.footer;
2664
+ ) : e, $i = (e) => /^https?:/.test(e), ji = () => {
2665
+ const { site: e } = Wt(), t = e?.footer;
2554
2666
  return t ? /* @__PURE__ */ a.jsx("footer", { className: "border-t bg-background", children: /* @__PURE__ */ a.jsxs("div", { className: "mx-auto max-w-screen-2xl px-4 lg:px-8 py-8 pt-20", children: [
2555
2667
  /* @__PURE__ */ a.jsxs(
2556
2668
  "div",
@@ -2561,7 +2673,7 @@ const Xs = Is({
2561
2673
  "justify-end": t.position === "end"
2562
2674
  }),
2563
2675
  children: [
2564
- /* @__PURE__ */ a.jsx(N.Target, { name: "footer-before" }),
2676
+ /* @__PURE__ */ a.jsx(C.Target, { name: "footer-before" }),
2565
2677
  t.columns && /* @__PURE__ */ a.jsx(
2566
2678
  "div",
2567
2679
  {
@@ -2579,7 +2691,7 @@ const Xs = Is({
2579
2691
  /* @__PURE__ */ a.jsx("span", { className: "text-sm font-semibold", children: n.title }),
2580
2692
  /* @__PURE__ */ a.jsx("ul", { className: "mt-4 space-y-2", children: n.links.map((r) => {
2581
2693
  const o = "flex flex-row gap-1 items-center text-sm text-muted-foreground hover:text-accent-foreground";
2582
- return /* @__PURE__ */ a.jsx("li", { children: ri(r.href) ? /* @__PURE__ */ a.jsxs(
2694
+ return /* @__PURE__ */ a.jsx("li", { children: $i(r.href) ? /* @__PURE__ */ a.jsxs(
2583
2695
  "a",
2584
2696
  {
2585
2697
  href: r.href,
@@ -2588,10 +2700,10 @@ const Xs = Is({
2588
2700
  className: o,
2589
2701
  children: [
2590
2702
  /* @__PURE__ */ a.jsx("span", { children: r.label }),
2591
- /* @__PURE__ */ a.jsx(Bt, { size: 12 })
2703
+ /* @__PURE__ */ a.jsx(Yt, { size: 12 })
2592
2704
  ]
2593
2705
  }
2594
- ) : /* @__PURE__ */ a.jsx(Ht, { to: r.href, className: o, children: /* @__PURE__ */ a.jsx("span", { children: r.label }) }) }, r.href + r.label);
2706
+ ) : /* @__PURE__ */ a.jsx(tn, { to: r.href, className: o, children: /* @__PURE__ */ a.jsx("span", { children: r.label }) }) }, r.href + r.label);
2595
2707
  }) })
2596
2708
  ]
2597
2709
  },
@@ -2599,7 +2711,7 @@ const Xs = Is({
2599
2711
  ))
2600
2712
  }
2601
2713
  ),
2602
- /* @__PURE__ */ a.jsx(N.Target, { name: "footer-after" })
2714
+ /* @__PURE__ */ a.jsx(C.Target, { name: "footer-after" })
2603
2715
  ]
2604
2716
  }
2605
2717
  ),
@@ -2640,7 +2752,7 @@ const Xs = Is({
2640
2752
  rel: "noopener noreferrer",
2641
2753
  className: "w-auto gap-2 flex text-muted-foreground hover:text-accent-foreground",
2642
2754
  children: [
2643
- /* @__PURE__ */ a.jsx(ni, { icon: n.icon }),
2755
+ /* @__PURE__ */ a.jsx(Zi, { icon: n.icon }),
2644
2756
  n.label
2645
2757
  ]
2646
2758
  },
@@ -2650,31 +2762,31 @@ const Xs = Is({
2650
2762
  }
2651
2763
  )
2652
2764
  ] }) }) : null;
2653
- }, mt = ({
2765
+ }, zt = ({
2654
2766
  shouldScaleBackground: e = !0,
2655
2767
  ...t
2656
2768
  }) => /* @__PURE__ */ a.jsx(
2657
- I.Root,
2769
+ A.Root,
2658
2770
  {
2659
2771
  shouldScaleBackground: e,
2660
2772
  ...t
2661
2773
  }
2662
2774
  );
2663
- mt.displayName = "Drawer";
2664
- const si = I.Trigger, ii = I.Portal, gt = C.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
2665
- I.Overlay,
2775
+ zt.displayName = "Drawer";
2776
+ const Pi = A.Trigger, Oi = A.Portal, kt = D.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
2777
+ A.Overlay,
2666
2778
  {
2667
2779
  ref: n,
2668
2780
  className: E("fixed inset-0 z-50 bg-black/80", e),
2669
2781
  ...t
2670
2782
  }
2671
2783
  ));
2672
- gt.displayName = I.Overlay.displayName;
2673
- const ai = C.forwardRef(
2674
- ({ className: e, children: t, hideBar: n = !0, ...r }, o) => /* @__PURE__ */ a.jsxs(ii, { children: [
2675
- /* @__PURE__ */ a.jsx(gt, {}),
2784
+ kt.displayName = A.Overlay.displayName;
2785
+ const Ei = D.forwardRef(
2786
+ ({ className: e, children: t, hideBar: n = !0, ...r }, o) => /* @__PURE__ */ a.jsxs(Oi, { children: [
2787
+ /* @__PURE__ */ a.jsx(kt, {}),
2676
2788
  /* @__PURE__ */ a.jsxs(
2677
- I.Content,
2789
+ A.Content,
2678
2790
  {
2679
2791
  ref: o,
2680
2792
  className: E(
@@ -2690,9 +2802,9 @@ const ai = C.forwardRef(
2690
2802
  )
2691
2803
  ] })
2692
2804
  );
2693
- ai.displayName = "DrawerContent";
2694
- const ci = C.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
2695
- I.Title,
2805
+ Ei.displayName = "DrawerContent";
2806
+ const Ai = D.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
2807
+ A.Title,
2696
2808
  {
2697
2809
  ref: n,
2698
2810
  className: E(
@@ -2702,24 +2814,24 @@ const ci = C.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
2702
2814
  ...t
2703
2815
  }
2704
2816
  ));
2705
- ci.displayName = I.Title.displayName;
2706
- const ui = C.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
2707
- I.Description,
2817
+ Ai.displayName = A.Title.displayName;
2818
+ const Ti = D.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
2819
+ A.Description,
2708
2820
  {
2709
2821
  ref: n,
2710
2822
  className: E("text-sm text-muted-foreground", e),
2711
2823
  ...t
2712
2824
  }
2713
2825
  ));
2714
- ui.displayName = I.Description.displayName;
2715
- const vt = ({
2826
+ Ti.displayName = A.Description.displayName;
2827
+ const xt = ({
2716
2828
  children: e,
2717
2829
  className: t
2718
2830
  }) => {
2719
- const { options: n } = Y(), r = He(null);
2720
- return X(() => {
2831
+ const { options: n } = re(), r = Xe(null);
2832
+ return oe(() => {
2721
2833
  const o = r.current?.querySelector('[aria-current="page"]');
2722
- Vt(o ?? null);
2834
+ nn(o ?? null);
2723
2835
  }, []), /* @__PURE__ */ a.jsxs(
2724
2836
  "div",
2725
2837
  {
@@ -2743,36 +2855,36 @@ const vt = ({
2743
2855
  children: e
2744
2856
  }
2745
2857
  ),
2746
- /* @__PURE__ */ a.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: n.site?.showPoweredBy !== !1 && /* @__PURE__ */ a.jsx(Ft, {}) })
2858
+ /* @__PURE__ */ a.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: n.site?.showPoweredBy !== !1 && /* @__PURE__ */ a.jsx(Kt, {}) })
2747
2859
  ]
2748
2860
  }
2749
2861
  );
2750
2862
  };
2751
- vt.displayName = "NavigationWrapper";
2752
- const li = ({
2863
+ xt.displayName = "NavigationWrapper";
2864
+ const Si = ({
2753
2865
  onRequestClose: e,
2754
2866
  navigation: t
2755
2867
  }) => /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2756
- /* @__PURE__ */ a.jsxs(vt, { children: [
2757
- /* @__PURE__ */ a.jsx(N.Target, { name: "navigation-before" }),
2868
+ /* @__PURE__ */ a.jsxs(xt, { children: [
2869
+ /* @__PURE__ */ a.jsx(C.Target, { name: "navigation-before" }),
2758
2870
  t.map((n) => /* @__PURE__ */ a.jsx(
2759
- be,
2871
+ Ze,
2760
2872
  {
2761
2873
  item: n
2762
2874
  },
2763
2875
  n.type + (n.label ?? "") + ("path" in n ? n.path : "") + ("file" in n ? n.file : "") + ("to" in n ? n.to : "")
2764
2876
  )),
2765
- /* @__PURE__ */ a.jsx(N.Target, { name: "navigation-after" })
2877
+ /* @__PURE__ */ a.jsx(C.Target, { name: "navigation-after" })
2766
2878
  ] }),
2767
2879
  /* @__PURE__ */ a.jsx(
2768
- en,
2880
+ cn,
2769
2881
  {
2770
2882
  className: "lg:hidden h-[100dvh] start-0 w-[320px] rounded-none",
2771
2883
  "aria-describedby": void 0,
2772
2884
  children: /* @__PURE__ */ a.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none", children: [
2773
- /* @__PURE__ */ a.jsx(nn, { children: /* @__PURE__ */ a.jsx(tn, { children: "Navigation" }) }),
2885
+ /* @__PURE__ */ a.jsx(ln, { children: /* @__PURE__ */ a.jsx(un, { children: "Navigation" }) }),
2774
2886
  t.map((n) => /* @__PURE__ */ a.jsx(
2775
- be,
2887
+ Ze,
2776
2888
  {
2777
2889
  item: n,
2778
2890
  onRequestClose: e
@@ -2782,24 +2894,24 @@ const li = ({
2782
2894
  ] })
2783
2895
  }
2784
2896
  )
2785
- ] }), di = ({ children: e }) => {
2786
- const [t, n] = It(!1), { navigation: r } = Pt(), o = r.length > 0, s = At().state === "loading", { options: i } = Y();
2897
+ ] }), Ii = ({ children: e }) => {
2898
+ const [t, n] = Rt(!1), { navigation: r } = Dt(), o = r.length > 0, s = Mt().state === "loading", { options: i } = re();
2787
2899
  return /* @__PURE__ */ a.jsxs(
2788
- mt,
2900
+ zt,
2789
2901
  {
2790
2902
  direction: i.site?.dir === "rtl" ? "right" : "left",
2791
2903
  open: t,
2792
2904
  onOpenChange: (u) => n(u),
2793
2905
  children: [
2794
2906
  o && /* @__PURE__ */ a.jsx(
2795
- li,
2907
+ Si,
2796
2908
  {
2797
2909
  onRequestClose: () => n(!1),
2798
2910
  navigation: r
2799
2911
  }
2800
2912
  ),
2801
- o && /* @__PURE__ */ a.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__ */ a.jsxs(si, { className: "flex items-center gap-2 px-4", children: [
2802
- /* @__PURE__ */ a.jsx(Wt, { size: 16, strokeWidth: 1.5 }),
2913
+ o && /* @__PURE__ */ a.jsx("div", { className: "lg:hidden m-0 p-0 md:-mx-4 md:px-4 py-2 sticky bg-background/80 backdrop-blur-xs z-10 top-0 start-0 end-0 border-b", children: /* @__PURE__ */ a.jsxs(Pi, { className: "flex items-center gap-2 px-4", children: [
2914
+ /* @__PURE__ */ a.jsx(Xt, { size: 16, strokeWidth: 1.5 }),
2803
2915
  /* @__PURE__ */ a.jsx("span", { className: "text-sm", children: "Menu" })
2804
2916
  ] }) }),
2805
2917
  /* @__PURE__ */ a.jsxs(
@@ -2812,23 +2924,23 @@ const li = ({
2812
2924
  s && "animate-pulse"
2813
2925
  ),
2814
2926
  children: [
2815
- /* @__PURE__ */ a.jsx(N.Target, { name: "content-before" }),
2927
+ /* @__PURE__ */ a.jsx(C.Target, { name: "content-before" }),
2816
2928
  e,
2817
- /* @__PURE__ */ a.jsx(N.Target, { name: "content-after" })
2929
+ /* @__PURE__ */ a.jsx(C.Target, { name: "content-after" })
2818
2930
  ]
2819
2931
  }
2820
2932
  )
2821
2933
  ]
2822
2934
  }
2823
2935
  );
2824
- }, hi = () => /* @__PURE__ */ a.jsx("main", { className: "col-span-full row-span-full grid place-items-center", children: /* @__PURE__ */ a.jsx(rn, {}) }), fi = ({ children: e }) => {
2825
- const { authentication: t } = Y();
2826
- return Gt(), ti(), X(() => {
2936
+ }, Di = () => /* @__PURE__ */ a.jsx("main", { className: "col-span-full row-span-full grid place-items-center", children: /* @__PURE__ */ a.jsx(dn, {}) }), Ci = ({ children: e }) => {
2937
+ const { authentication: t } = re();
2938
+ return rn(), xi(), oe(() => {
2827
2939
  t?.onPageLoad?.();
2828
2940
  }, [t]), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2829
- /* @__PURE__ */ a.jsx(N.Target, { name: "layout-before-head" }),
2830
- /* @__PURE__ */ a.jsx(qt, {}),
2831
- /* @__PURE__ */ a.jsx(N.Target, { name: "layout-after-head" }),
2941
+ /* @__PURE__ */ a.jsx(C.Target, { name: "layout-before-head" }),
2942
+ /* @__PURE__ */ a.jsx(Ht, {}),
2943
+ /* @__PURE__ */ a.jsx(C.Target, { name: "layout-after-head" }),
2832
2944
  /* @__PURE__ */ a.jsx(
2833
2945
  "div",
2834
2946
  {
@@ -2837,20 +2949,20 @@ const li = ({
2837
2949
  "[&:has(>:only-child)]:grid-rows-1 grid-rows-[0_min-content_1fr] lg:grid-rows-[min-content_1fr]",
2838
2950
  "grid-cols-1 lg:grid-cols-[var(--side-nav-width)_1fr]"
2839
2951
  ),
2840
- children: /* @__PURE__ */ a.jsx(St, { fallback: /* @__PURE__ */ a.jsx(hi, {}), children: /* @__PURE__ */ a.jsx(di, { children: e ?? /* @__PURE__ */ a.jsx(Ct, {}) }) })
2952
+ children: /* @__PURE__ */ a.jsx(Ft, { fallback: /* @__PURE__ */ a.jsx(Di, {}), children: /* @__PURE__ */ a.jsx(Ii, { children: e ?? /* @__PURE__ */ a.jsx(Qt, {}) }) })
2841
2953
  }
2842
2954
  ),
2843
- /* @__PURE__ */ a.jsx(oi, {})
2955
+ /* @__PURE__ */ a.jsx(ji, {})
2844
2956
  ] });
2845
- }, pi = ({ children: e }) => {
2846
- const { meta: t, options: n } = Y(), r = Ve();
2957
+ }, Ni = ({ children: e }) => {
2958
+ const { meta: t, options: n } = re(), r = et();
2847
2959
  return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2848
- /* @__PURE__ */ a.jsxs(Me, { titleTemplate: t?.title, defaultTitle: t?.defaultTitle, children: [
2960
+ /* @__PURE__ */ a.jsxs(He, { titleTemplate: t?.title, defaultTitle: t?.defaultTitle, children: [
2849
2961
  n.canonicalUrlOrigin && /* @__PURE__ */ a.jsx(
2850
2962
  "link",
2851
2963
  {
2852
2964
  rel: "canonical",
2853
- href: Ot(
2965
+ href: Ct(
2854
2966
  n.canonicalUrlOrigin,
2855
2967
  n.basePath,
2856
2968
  r.pathname
@@ -2858,19 +2970,26 @@ const li = ({
2858
2970
  }
2859
2971
  ),
2860
2972
  t?.description && /* @__PURE__ */ a.jsx("meta", { name: "description", content: t.description }),
2861
- t?.favicon && /* @__PURE__ */ a.jsx("link", { rel: "icon", href: t.favicon })
2973
+ t?.favicon && /* @__PURE__ */ a.jsx("link", { rel: "icon", href: t.favicon }),
2974
+ t?.generator && /* @__PURE__ */ a.jsx("meta", { name: "generator", content: t.generator }),
2975
+ t?.applicationName && /* @__PURE__ */ a.jsx("meta", { name: "application-name", content: t.applicationName }),
2976
+ t?.referrer && /* @__PURE__ */ a.jsx("meta", { name: "referrer", content: t.referrer }),
2977
+ t?.keywords && t.keywords.length > 0 && /* @__PURE__ */ a.jsx("meta", { name: "keywords", content: t.keywords.join(", ") }),
2978
+ t?.authors?.map((o) => /* @__PURE__ */ a.jsx("meta", { name: "author", content: o }, o)),
2979
+ t?.creator && /* @__PURE__ */ a.jsx("meta", { name: "creator", content: t.creator }),
2980
+ t?.publisher && /* @__PURE__ */ a.jsx("meta", { name: "publisher", content: t.publisher })
2862
2981
  ] }),
2863
2982
  e
2864
2983
  ] });
2865
- }, mi = ({
2984
+ }, Ri = ({
2866
2985
  title: e = "An error occurred",
2867
2986
  message: t,
2868
2987
  category: n
2869
- }) => /* @__PURE__ */ a.jsxs(Jt, { className: "h-full pt-(--padding-content-top)", children: [
2870
- n && /* @__PURE__ */ a.jsx(on, { children: n }),
2871
- e && /* @__PURE__ */ a.jsx(Yt, { level: 1, className: "flex gap-3.5 items-center", children: e }),
2988
+ }) => /* @__PURE__ */ a.jsxs(on, { className: "h-full pt-(--padding-content-top)", children: [
2989
+ n && /* @__PURE__ */ a.jsx(hn, { children: n }),
2990
+ e && /* @__PURE__ */ a.jsx(sn, { level: 1, className: "flex gap-3.5 items-center", children: e }),
2872
2991
  /* @__PURE__ */ a.jsx("p", { children: t })
2873
- ] }), gi = (e) => {
2992
+ ] }), Fi = (e) => {
2874
2993
  switch (e) {
2875
2994
  case 400:
2876
2995
  return {
@@ -2933,12 +3052,12 @@ const li = ({
2933
3052
  message: "Something went wrong while processing your request."
2934
3053
  };
2935
3054
  }
2936
- }, vi = ({ statusCode: e, message: t }) => {
3055
+ }, Ui = ({ statusCode: e, message: t }) => {
2937
3056
  if (e === 404)
2938
- return /* @__PURE__ */ a.jsx(sn, {});
2939
- const n = gi(e);
3057
+ return /* @__PURE__ */ a.jsx(fn, {});
3058
+ const n = Fi(e);
2940
3059
  return /* @__PURE__ */ a.jsx(
2941
- mi,
3060
+ Ri,
2942
3061
  {
2943
3062
  title: n.title,
2944
3063
  message: t ?? n.message,
@@ -2946,20 +3065,20 @@ const li = ({
2946
3065
  }
2947
3066
  );
2948
3067
  };
2949
- function _i({ error: e }) {
2950
- return /* @__PURE__ */ a.jsx(Xt, { error: e });
3068
+ function qi({ error: e }) {
3069
+ return /* @__PURE__ */ a.jsx(an, { error: e });
2951
3070
  }
2952
- const Ci = fi, Ni = an, Ri = _i, Ui = gn, Fi = vn, qi = Qt, Qi = Me, Mi = vi, Li = ei, Bi = pi;
3071
+ const sa = Ci, ia = pn, aa = qi, ca = kn, ua = xn, la = Vt, da = He, ha = Ui, fa = ki, pa = Ni;
2953
3072
  export {
2954
- Ui as Bootstrap,
2955
- Fi as BootstrapStatic,
2956
- Li as BuildCheck,
2957
- Qi as Head,
2958
- Ci as Layout,
2959
- Bi as Meta,
2960
- qi as RouteGuard,
2961
- Ni as RouterError,
2962
- Ri as ServerError,
2963
- Mi as StatusPage
3073
+ ca as Bootstrap,
3074
+ ua as BootstrapStatic,
3075
+ fa as BuildCheck,
3076
+ da as Head,
3077
+ sa as Layout,
3078
+ pa as Meta,
3079
+ la as RouteGuard,
3080
+ ia as RouterError,
3081
+ aa as ServerError,
3082
+ ha as StatusPage
2964
3083
  };
2965
3084
  //# sourceMappingURL=zudoku.__internal.js.map