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.
- package/README.md +32 -12
- package/cli.js +1 -0
- package/client.d.ts +8 -0
- package/dist/app/ZuploBuildConfig.d.ts +1 -1
- package/dist/app/ZuploBuildConfig.js +1 -1
- package/dist/app/ZuploBuildConfig.js.map +1 -1
- package/dist/app/entry.client.js +5 -4
- package/dist/app/entry.client.js.map +1 -1
- package/dist/app/entry.server.js +16 -3
- package/dist/app/entry.server.js.map +1 -1
- package/dist/app/env.js +6 -6
- package/dist/app/env.js.map +1 -1
- package/dist/app/main.d.ts +91 -1
- package/dist/app/main.js +5 -1
- package/dist/app/main.js.map +1 -1
- package/dist/app/standalone.js +4 -1
- package/dist/app/standalone.js.map +1 -1
- package/dist/cli/cli.d.ts +9 -0
- package/dist/cli/cli.js +5 -10
- package/dist/cli/cli.js.map +1 -1
- package/dist/cli/cmds/build.d.ts +1 -1
- package/dist/cli/cmds/dev.d.ts +1 -1
- package/dist/cli/cmds/preview.d.ts +1 -1
- package/dist/cli/common/analytics/lib.js +1 -1
- package/dist/cli/common/analytics/lib.js.map +1 -1
- package/dist/cli/common/logger.js +0 -1
- package/dist/cli/common/logger.js.map +1 -1
- package/dist/cli/common/machine-id/lib.js +3 -2
- package/dist/cli/common/machine-id/lib.js.map +1 -1
- package/dist/cli/common/outdated.js +2 -1
- package/dist/cli/common/outdated.js.map +1 -1
- package/dist/cli/common/output.js +2 -3
- package/dist/cli/common/output.js.map +1 -1
- package/dist/cli/common/utils/box.js +2 -2
- package/dist/cli/common/utils/box.js.map +1 -1
- package/dist/cli/common/validators/lib.js +1 -1
- package/dist/cli/common/validators/lib.js.map +1 -1
- package/dist/cli/common/version-check.d.ts +2 -0
- package/dist/cli/common/version-check.js +58 -0
- package/dist/cli/common/version-check.js.map +1 -0
- package/dist/cli/dev/handler.js +0 -4
- package/dist/cli/dev/handler.js.map +1 -1
- package/dist/codegen.js +2 -2
- package/dist/codegen.js.map +1 -1
- package/dist/config/config.d.ts +15 -41
- package/dist/config/loader.js.map +1 -1
- package/dist/config/validators/BuildSchema.d.ts +16 -8
- package/dist/config/validators/BuildSchema.js +22 -5
- package/dist/config/validators/BuildSchema.js.map +1 -1
- package/dist/config/validators/InputNavigationSchema.d.ts +260 -78
- package/dist/config/validators/InputNavigationSchema.js +5 -2
- package/dist/config/validators/InputNavigationSchema.js.map +1 -1
- package/dist/config/validators/InputNavigationSchema.test-d.js +2 -1
- package/dist/config/validators/InputNavigationSchema.test-d.js.map +1 -1
- package/dist/config/validators/NavigationSchema.d.ts +1 -1
- package/dist/config/validators/NavigationSchema.js +2 -2
- package/dist/config/validators/NavigationSchema.js.map +1 -1
- package/dist/config/validators/ProtectedRoutesSchema.d.ts +2 -2
- package/dist/config/validators/ProtectedRoutesSchema.js +1 -1
- package/dist/config/validators/ProtectedRoutesSchema.js.map +1 -1
- package/dist/config/validators/auth.d.ts +2 -2
- package/dist/config/validators/auth.js +1 -1
- package/dist/config/validators/auth.js.map +1 -1
- package/dist/config/validators/icon-types.d.ts +1 -1
- package/dist/config/validators/icon-types.js +43 -0
- package/dist/config/validators/icon-types.js.map +1 -1
- package/dist/config/validators/validate.d.ts +202 -20
- package/dist/config/validators/validate.js +70 -11
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/config/validators/validate.test.js +1 -2
- package/dist/config/validators/validate.test.js.map +1 -1
- package/dist/flat-config.d.ts +52 -3
- package/dist/index.d.ts +5 -5
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/lib/MissingIcon.d.ts +1 -1
- package/dist/lib/MissingIcon.js.map +1 -1
- package/dist/lib/assets/language-icons/c.d.ts +3 -0
- package/dist/lib/assets/language-icons/c.js +4 -0
- package/dist/lib/assets/language-icons/c.js.map +1 -0
- package/dist/lib/assets/language-icons/commonlisp.d.ts +3 -0
- package/dist/lib/assets/language-icons/commonlisp.js +4 -0
- package/dist/lib/assets/language-icons/commonlisp.js.map +1 -0
- package/dist/lib/assets/language-icons/cpp.d.ts +3 -0
- package/dist/lib/assets/language-icons/cpp.js +4 -0
- package/dist/lib/assets/language-icons/cpp.js.map +1 -0
- package/dist/lib/assets/language-icons/csharp.d.ts +3 -0
- package/dist/lib/assets/language-icons/csharp.js +4 -0
- package/dist/lib/assets/language-icons/csharp.js.map +1 -0
- package/dist/lib/assets/language-icons/css.d.ts +3 -0
- package/dist/lib/assets/language-icons/css.js +4 -0
- package/dist/lib/assets/language-icons/css.js.map +1 -0
- package/dist/lib/assets/language-icons/dart.d.ts +3 -0
- package/dist/lib/assets/language-icons/dart.js +4 -0
- package/dist/lib/assets/language-icons/dart.js.map +1 -0
- package/dist/lib/assets/language-icons/elixir.d.ts +3 -0
- package/dist/lib/assets/language-icons/elixir.js +4 -0
- package/dist/lib/assets/language-icons/elixir.js.map +1 -0
- package/dist/lib/assets/language-icons/go.d.ts +3 -0
- package/dist/lib/assets/language-icons/go.js +4 -0
- package/dist/lib/assets/language-icons/go.js.map +1 -0
- package/dist/lib/assets/language-icons/graphql.d.ts +3 -0
- package/dist/lib/assets/language-icons/graphql.js +4 -0
- package/dist/lib/assets/language-icons/graphql.js.map +1 -0
- package/dist/lib/assets/language-icons/html.d.ts +3 -0
- package/dist/lib/assets/language-icons/html.js +4 -0
- package/dist/lib/assets/language-icons/html.js.map +1 -0
- package/dist/lib/assets/language-icons/java.d.ts +3 -0
- package/dist/lib/assets/language-icons/java.js +4 -0
- package/dist/lib/assets/language-icons/java.js.map +1 -0
- package/dist/lib/assets/language-icons/javascript.d.ts +3 -0
- package/dist/lib/assets/language-icons/javascript.js +4 -0
- package/dist/lib/assets/language-icons/javascript.js.map +1 -0
- package/dist/lib/assets/language-icons/json.d.ts +3 -0
- package/dist/lib/assets/language-icons/json.js +4 -0
- package/dist/lib/assets/language-icons/json.js.map +1 -0
- package/dist/lib/assets/language-icons/kotlin.d.ts +3 -0
- package/dist/lib/assets/language-icons/kotlin.js +4 -0
- package/dist/lib/assets/language-icons/kotlin.js.map +1 -0
- package/dist/lib/assets/language-icons/markdown.d.ts +3 -0
- package/dist/lib/assets/language-icons/markdown.js +4 -0
- package/dist/lib/assets/language-icons/markdown.js.map +1 -0
- package/dist/lib/assets/language-icons/mdx.d.ts +3 -0
- package/dist/lib/assets/language-icons/mdx.js +4 -0
- package/dist/lib/assets/language-icons/mdx.js.map +1 -0
- package/dist/lib/assets/language-icons/objectivec.d.ts +3 -0
- package/dist/lib/assets/language-icons/objectivec.js +4 -0
- package/dist/lib/assets/language-icons/objectivec.js.map +1 -0
- package/dist/lib/assets/language-icons/ocaml.d.ts +3 -0
- package/dist/lib/assets/language-icons/ocaml.js +4 -0
- package/dist/lib/assets/language-icons/ocaml.js.map +1 -0
- package/dist/lib/assets/language-icons/php.d.ts +3 -0
- package/dist/lib/assets/language-icons/php.js +4 -0
- package/dist/lib/assets/language-icons/php.js.map +1 -0
- package/dist/lib/assets/language-icons/powershell.d.ts +3 -0
- package/dist/lib/assets/language-icons/powershell.js +4 -0
- package/dist/lib/assets/language-icons/powershell.js.map +1 -0
- package/dist/lib/assets/language-icons/python.d.ts +3 -0
- package/dist/lib/assets/language-icons/python.js +4 -0
- package/dist/lib/assets/language-icons/python.js.map +1 -0
- package/dist/lib/assets/language-icons/react.d.ts +3 -0
- package/dist/lib/assets/language-icons/react.js +4 -0
- package/dist/lib/assets/language-icons/react.js.map +1 -0
- package/dist/lib/assets/language-icons/ruby.d.ts +3 -0
- package/dist/lib/assets/language-icons/ruby.js +4 -0
- package/dist/lib/assets/language-icons/ruby.js.map +1 -0
- package/dist/lib/assets/language-icons/rust.d.ts +3 -0
- package/dist/lib/assets/language-icons/rust.js +4 -0
- package/dist/lib/assets/language-icons/rust.js.map +1 -0
- package/dist/lib/assets/language-icons/scala.d.ts +3 -0
- package/dist/lib/assets/language-icons/scala.js +4 -0
- package/dist/lib/assets/language-icons/scala.js.map +1 -0
- package/dist/lib/assets/language-icons/shell.d.ts +3 -0
- package/dist/lib/assets/language-icons/shell.js +4 -0
- package/dist/lib/assets/language-icons/shell.js.map +1 -0
- package/dist/lib/assets/language-icons/swift.d.ts +3 -0
- package/dist/lib/assets/language-icons/swift.js +4 -0
- package/dist/lib/assets/language-icons/swift.js.map +1 -0
- package/dist/lib/assets/language-icons/toml.d.ts +3 -0
- package/dist/lib/assets/language-icons/toml.js +4 -0
- package/dist/lib/assets/language-icons/toml.js.map +1 -0
- package/dist/lib/assets/language-icons/typescript.d.ts +3 -0
- package/dist/lib/assets/language-icons/typescript.js +4 -0
- package/dist/lib/assets/language-icons/typescript.js.map +1 -0
- package/dist/lib/assets/language-icons/xml.d.ts +3 -0
- package/dist/lib/assets/language-icons/xml.js +4 -0
- package/dist/lib/assets/language-icons/xml.js.map +1 -0
- package/dist/lib/assets/language-icons/yaml.d.ts +3 -0
- package/dist/lib/assets/language-icons/yaml.js +4 -0
- package/dist/lib/assets/language-icons/yaml.js.map +1 -0
- package/dist/lib/assets/language-icons/zig.d.ts +3 -0
- package/dist/lib/assets/language-icons/zig.js +4 -0
- package/dist/lib/assets/language-icons/zig.js.map +1 -0
- package/dist/lib/auth/issuer.js +3 -0
- package/dist/lib/auth/issuer.js.map +1 -1
- package/dist/lib/auth/issuer.test.js +1 -0
- package/dist/lib/auth/issuer.test.js.map +1 -1
- package/dist/lib/authentication/AuthenticationPlugin.d.ts +1 -1
- package/dist/lib/authentication/authentication.d.ts +19 -13
- package/dist/lib/authentication/components/OAuthErrorPage.d.ts +1 -1
- package/dist/lib/authentication/components/OAuthErrorPage.js +1 -1
- package/dist/lib/authentication/components/OAuthErrorPage.js.map +1 -1
- package/dist/lib/authentication/components/SignIn.js +6 -5
- package/dist/lib/authentication/components/SignIn.js.map +1 -1
- package/dist/lib/authentication/components/SignOut.js +6 -6
- package/dist/lib/authentication/components/SignOut.js.map +1 -1
- package/dist/lib/authentication/components/SignUp.js +5 -5
- package/dist/lib/authentication/components/SignUp.js.map +1 -1
- package/dist/lib/authentication/hook.d.ts +3 -2
- package/dist/lib/authentication/hook.js +12 -8
- package/dist/lib/authentication/hook.js.map +1 -1
- package/dist/lib/authentication/providers/auth0.d.ts +2 -2
- package/dist/lib/authentication/providers/auth0.js +9 -5
- package/dist/lib/authentication/providers/auth0.js.map +1 -1
- package/dist/lib/authentication/providers/azureb2c.d.ts +5 -5
- package/dist/lib/authentication/providers/azureb2c.js +3 -3
- package/dist/lib/authentication/providers/azureb2c.js.map +1 -1
- package/dist/lib/authentication/providers/clerk.d.ts +2 -2
- package/dist/lib/authentication/providers/clerk.js +2 -2
- package/dist/lib/authentication/providers/clerk.js.map +1 -1
- package/dist/lib/authentication/providers/firebase.d.ts +4 -0
- package/dist/lib/authentication/providers/firebase.js +215 -0
- package/dist/lib/authentication/providers/firebase.js.map +1 -0
- package/dist/lib/authentication/providers/openid.d.ts +8 -8
- package/dist/lib/authentication/providers/openid.js +5 -3
- package/dist/lib/authentication/providers/openid.js.map +1 -1
- package/dist/lib/authentication/providers/supabase/SupabaseAuthUI.d.ts +8 -0
- package/dist/lib/authentication/providers/supabase/SupabaseAuthUI.js +39 -0
- package/dist/lib/authentication/providers/supabase/SupabaseAuthUI.js.map +1 -0
- package/dist/lib/authentication/providers/supabase.d.ts +2 -2
- package/dist/lib/authentication/providers/supabase.js +30 -30
- package/dist/lib/authentication/providers/supabase.js.map +1 -1
- package/dist/lib/authentication/state.d.ts +5 -7
- package/dist/lib/authentication/state.js +2 -14
- package/dist/lib/authentication/state.js.map +1 -1
- package/dist/lib/authentication/ui/ZudokuAuthUi.d.ts +24 -0
- package/dist/lib/authentication/ui/ZudokuAuthUi.js +124 -0
- package/dist/lib/authentication/ui/ZudokuAuthUi.js.map +1 -0
- package/dist/lib/authentication/ui/icons/Apple.d.ts +3 -0
- package/dist/lib/authentication/ui/icons/Apple.js +4 -0
- package/dist/lib/authentication/ui/icons/Apple.js.map +1 -0
- package/dist/lib/authentication/ui/icons/Facebook.d.ts +3 -0
- package/dist/lib/authentication/ui/icons/Facebook.js +4 -0
- package/dist/lib/authentication/ui/icons/Facebook.js.map +1 -0
- package/dist/lib/authentication/ui/icons/Github.d.ts +3 -0
- package/dist/lib/authentication/ui/icons/Github.js +4 -0
- package/dist/lib/authentication/ui/icons/Github.js.map +1 -0
- package/dist/lib/authentication/ui/icons/Google.d.ts +3 -0
- package/dist/lib/authentication/ui/icons/Google.js +4 -0
- package/dist/lib/authentication/ui/icons/Google.js.map +1 -0
- package/dist/lib/authentication/ui/icons/Microsoft.d.ts +3 -0
- package/dist/lib/authentication/ui/icons/Microsoft.js +4 -0
- package/dist/lib/authentication/ui/icons/Microsoft.js.map +1 -0
- package/dist/lib/authentication/ui/icons/X.d.ts +3 -0
- package/dist/lib/authentication/ui/icons/X.js +4 -0
- package/dist/lib/authentication/ui/icons/X.js.map +1 -0
- package/dist/lib/authentication/use-broadcast/shared.d.ts +1 -1
- package/dist/lib/authentication/use-broadcast/shared.js +3 -3
- package/dist/lib/authentication/use-broadcast/shared.js.map +1 -1
- package/dist/lib/authentication/use-broadcast/useBroadcast.js +2 -2
- package/dist/lib/authentication/use-broadcast/useBroadcast.js.map +1 -1
- package/dist/lib/components/Autocomplete.d.ts +3 -1
- package/dist/lib/components/Autocomplete.js +6 -2
- package/dist/lib/components/Autocomplete.js.map +1 -1
- package/dist/lib/components/Bootstrap.js.map +1 -1
- package/dist/lib/components/BuildCheck.js +4 -3
- package/dist/lib/components/BuildCheck.js.map +1 -1
- package/dist/lib/components/Header.js +1 -3
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/Heading.d.ts +2 -2
- package/dist/lib/components/Heading.js +2 -6
- package/dist/lib/components/Heading.js.map +1 -1
- package/dist/lib/components/LanguageIcon.d.ts +3 -0
- package/dist/lib/components/LanguageIcon.js +163 -0
- package/dist/lib/components/LanguageIcon.js.map +1 -0
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/components/Main.js +1 -1
- package/dist/lib/components/Main.js.map +1 -1
- package/dist/lib/components/Markdown.js +2 -2
- package/dist/lib/components/Markdown.js.map +1 -1
- package/dist/lib/components/Meta.js +1 -1
- package/dist/lib/components/Meta.js.map +1 -1
- package/dist/lib/components/MobileTopNavigation.js +4 -4
- package/dist/lib/components/MobileTopNavigation.js.map +1 -1
- package/dist/lib/components/PathRenderer.js +1 -1
- package/dist/lib/components/PathRenderer.js.map +1 -1
- package/dist/lib/components/Search.js +1 -1
- package/dist/lib/components/Search.js.map +1 -1
- package/dist/lib/components/Slot.js.map +1 -1
- package/dist/lib/components/Slot.test.js +7 -3
- package/dist/lib/components/Slot.test.js.map +1 -1
- package/dist/lib/components/TopNavigation.d.ts +1 -1
- package/dist/lib/components/TopNavigation.js +2 -2
- package/dist/lib/components/TopNavigation.js.map +1 -1
- package/dist/lib/components/Zudoku.js +5 -5
- package/dist/lib/components/Zudoku.js.map +1 -1
- package/dist/lib/components/cache.d.ts +3 -1
- package/dist/lib/components/cache.js +3 -5
- package/dist/lib/components/cache.js.map +1 -1
- package/dist/lib/components/context/ComponentsContext.js.map +1 -1
- package/dist/lib/components/context/RouterEventsEmitter.js.map +1 -1
- package/dist/lib/components/context/SlotProvider.js.map +1 -1
- package/dist/lib/components/context/ViewportAnchorContext.js +1 -1
- package/dist/lib/components/context/ViewportAnchorContext.js.map +1 -1
- package/dist/lib/components/context/ZudokuContext.d.ts +1 -1
- package/dist/lib/components/context/ZudokuContext.js +10 -2
- package/dist/lib/components/context/ZudokuContext.js.map +1 -1
- package/dist/lib/components/context/ZudokuProvider.d.ts +1 -1
- package/dist/lib/components/index.d.ts +14 -4
- package/dist/lib/components/index.js +3 -1
- package/dist/lib/components/index.js.map +1 -1
- package/dist/lib/components/navigation/NavigationCategory.js +6 -1
- package/dist/lib/components/navigation/NavigationCategory.js.map +1 -1
- package/dist/lib/components/navigation/NavigationItem.js +3 -3
- package/dist/lib/components/navigation/NavigationItem.js.map +1 -1
- package/dist/lib/components/navigation/NavigationWrapper.js.map +1 -1
- package/dist/lib/components/navigation/Toc.js +1 -1
- package/dist/lib/components/navigation/Toc.js.map +1 -1
- package/dist/lib/components/navigation/ZudokuLogo.d.ts +1 -1
- package/dist/lib/components/navigation/utils.d.ts +3 -3
- package/dist/lib/components/navigation/utils.js +1 -2
- package/dist/lib/components/navigation/utils.js.map +1 -1
- package/dist/lib/core/RouteGuard.d.ts +1 -1
- package/dist/lib/core/RouteGuard.js +12 -20
- package/dist/lib/core/RouteGuard.js.map +1 -1
- package/dist/lib/core/ZudokuContext.d.ts +2 -1
- package/dist/lib/core/ZudokuContext.js +3 -0
- package/dist/lib/core/ZudokuContext.js.map +1 -1
- package/dist/lib/core/__internal.d.ts +1 -1
- package/dist/lib/errors/ErrorAlert.js +1 -2
- package/dist/lib/errors/ErrorAlert.js.map +1 -1
- package/dist/lib/errors/RouterError.d.ts +3 -1
- package/dist/lib/errors/RouterError.js +3 -2
- package/dist/lib/errors/RouterError.js.map +1 -1
- package/dist/lib/errors/TopLevelError.d.ts +2 -2
- package/dist/lib/errors/TopLevelError.js +1 -2
- package/dist/lib/errors/TopLevelError.js.map +1 -1
- package/dist/lib/hooks/index.d.ts +3 -3
- package/dist/lib/oas/graphql/circular.js +2 -2
- package/dist/lib/oas/graphql/circular.js.map +1 -1
- package/dist/lib/oas/graphql/index.js +39 -3
- package/dist/lib/oas/graphql/index.js.map +1 -1
- package/dist/lib/oas/parser/dereference/index.js +2 -1
- package/dist/lib/oas/parser/dereference/index.js.map +1 -1
- package/dist/lib/oas/parser/dereference/resolveRef.js +3 -3
- package/dist/lib/oas/parser/dereference/resolveRef.js.map +1 -1
- package/dist/lib/oas/parser/index.js +8 -4
- package/dist/lib/oas/parser/index.js.map +1 -1
- package/dist/lib/oas/parser/upgrade/index.js +2 -1
- package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
- package/dist/lib/plugins/api-catalog/Catalog.js +7 -1
- package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -1
- package/dist/lib/plugins/api-keys/CreateApiKey.d.ts +1 -1
- package/dist/lib/plugins/api-keys/CreateApiKeyDialog.d.ts +11 -0
- package/dist/lib/plugins/api-keys/CreateApiKeyDialog.js +9 -0
- package/dist/lib/plugins/api-keys/CreateApiKeyDialog.js.map +1 -0
- package/dist/lib/plugins/api-keys/ProtectedRoute.js +4 -1
- package/dist/lib/plugins/api-keys/ProtectedRoute.js.map +1 -1
- package/dist/lib/plugins/api-keys/SettingsApiKeys.d.ts +1 -1
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js +10 -16
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
- package/dist/lib/plugins/api-keys/index.d.ts +3 -3
- package/dist/lib/plugins/api-keys/index.js +1 -1
- package/dist/lib/plugins/api-keys/index.js.map +1 -1
- package/dist/lib/plugins/custom-pages/index.d.ts +1 -1
- package/dist/lib/plugins/markdown/MdxPage.d.ts +3 -2
- package/dist/lib/plugins/markdown/MdxPage.js +32 -8
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
- package/dist/lib/plugins/markdown/assets/ChatGPTLogo.d.ts +2 -0
- package/dist/lib/plugins/markdown/assets/ChatGPTLogo.js +3 -0
- package/dist/lib/plugins/markdown/assets/ChatGPTLogo.js.map +1 -0
- package/dist/lib/plugins/markdown/assets/ClaudeLogo.d.ts +2 -0
- package/dist/lib/plugins/markdown/assets/ClaudeLogo.js +3 -0
- package/dist/lib/plugins/markdown/assets/ClaudeLogo.js.map +1 -0
- package/dist/lib/plugins/markdown/index.d.ts +4 -2
- package/dist/lib/plugins/markdown/index.js +1 -1
- package/dist/lib/plugins/markdown/index.js.map +1 -1
- package/dist/lib/plugins/openapi/CollapsibleCode.d.ts +1 -0
- package/dist/lib/plugins/openapi/CollapsibleCode.js +2 -1
- package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -1
- package/dist/lib/plugins/openapi/ColorizedParam.js +4 -1
- package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
- package/dist/lib/plugins/openapi/Endpoint.js +2 -2
- package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
- package/dist/lib/plugins/openapi/GeneratedExampleSidecarBox.d.ts +5 -0
- package/dist/lib/plugins/openapi/GeneratedExampleSidecarBox.js +10 -0
- package/dist/lib/plugins/openapi/GeneratedExampleSidecarBox.js.map +1 -0
- package/dist/lib/plugins/openapi/MCPEndpoint.d.ts +5 -0
- package/dist/lib/plugins/openapi/MCPEndpoint.js +56 -0
- package/dist/lib/plugins/openapi/MCPEndpoint.js.map +1 -0
- package/dist/lib/plugins/openapi/OasProvider.d.ts +1 -1
- package/dist/lib/plugins/openapi/OasProvider.js +1 -0
- package/dist/lib/plugins/openapi/OasProvider.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.d.ts +0 -2
- package/dist/lib/plugins/openapi/OperationList.js +31 -8
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationListItem.d.ts +4 -3
- package/dist/lib/plugins/openapi/OperationListItem.js +12 -5
- package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/ParamInfos.d.ts +1 -1
- package/dist/lib/plugins/openapi/ParamInfos.js +11 -9
- package/dist/lib/plugins/openapi/ParamInfos.js.map +1 -1
- package/dist/lib/plugins/openapi/ParameterList.d.ts +2 -2
- package/dist/lib/plugins/openapi/ParameterList.js +1 -1
- package/dist/lib/plugins/openapi/ParameterList.js.map +1 -1
- package/dist/lib/plugins/openapi/ParameterListItem.d.ts +2 -3
- package/dist/lib/plugins/openapi/ParameterListItem.js +1 -1
- package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.d.ts +3 -4
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +3 -5
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.d.ts +11 -4
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +2 -2
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.d.ts +3 -1
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +14 -2
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/Sidecar.d.ts +5 -3
- package/dist/lib/plugins/openapi/Sidecar.js +54 -30
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/SidecarExamples.d.ts +11 -6
- package/dist/lib/plugins/openapi/SidecarExamples.js +15 -33
- package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -1
- package/dist/lib/plugins/openapi/StaggeredRender.d.ts +1 -1
- package/dist/lib/plugins/openapi/client/GraphQLContext.d.ts +1 -1
- package/dist/lib/plugins/openapi/client/createServer.js +1 -2
- package/dist/lib/plugins/openapi/client/createServer.js.map +1 -1
- package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -1
- package/dist/lib/plugins/openapi/components/NonHighlightedCode.d.ts +4 -0
- package/dist/lib/plugins/openapi/components/NonHighlightedCode.js +5 -0
- package/dist/lib/plugins/openapi/components/NonHighlightedCode.js.map +1 -0
- package/dist/lib/plugins/openapi/components/ResponseContent.js +1 -1
- package/dist/lib/plugins/openapi/components/ResponseContent.js.map +1 -1
- package/dist/lib/plugins/openapi/context.d.ts +1 -1
- package/dist/lib/plugins/openapi/graphql/fragment-masking.d.ts +1 -1
- package/dist/lib/plugins/openapi/graphql/gql.d.ts +2 -2
- package/dist/lib/plugins/openapi/graphql/gql.js +2 -2
- package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/graphql.d.ts +11 -2
- package/dist/lib/plugins/openapi/graphql/graphql.js +11 -0
- package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
- package/dist/lib/plugins/openapi/index.d.ts +2 -2
- package/dist/lib/plugins/openapi/index.js +7 -11
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/plugins/openapi/interfaces.d.ts +18 -4
- package/dist/lib/plugins/openapi/playground/BodyPanel.d.ts +2 -2
- package/dist/lib/plugins/openapi/playground/BodyPanel.js +67 -15
- package/dist/lib/plugins/openapi/playground/BodyPanel.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js +2 -2
- package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.d.ts +3 -3
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +1 -1
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Headers.d.ts +1 -1
- package/dist/lib/plugins/openapi/playground/Headers.js +23 -83
- package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/IdentityDialog.d.ts +1 -1
- package/dist/lib/plugins/openapi/playground/IdentitySelector.d.ts +1 -1
- package/dist/lib/plugins/openapi/playground/ParamsGrid.d.ts +10 -2
- package/dist/lib/plugins/openapi/playground/ParamsGrid.js +8 -1
- package/dist/lib/plugins/openapi/playground/ParamsGrid.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/PathParams.js +2 -3
- package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.d.ts +9 -2
- package/dist/lib/plugins/openapi/playground/Playground.js +70 -32
- package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +3 -1
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/QueryParams.d.ts +1 -1
- package/dist/lib/plugins/openapi/playground/QueryParams.js +16 -40
- package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/RequestLoginDialog.d.ts +2 -1
- package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js +10 -2
- package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/rememberedIdentity.d.ts +5 -3
- package/dist/lib/plugins/openapi/playground/request-panel/MultipartField.d.ts +8 -0
- package/dist/lib/plugins/openapi/playground/request-panel/MultipartField.js +19 -0
- package/dist/lib/plugins/openapi/playground/request-panel/MultipartField.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.js +1 -1
- package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/request-panel/fieldManager/useKeyValueFieldManager.test.d.ts +1 -0
- package/dist/lib/plugins/openapi/playground/request-panel/fieldManager/useKeyValueFieldManager.test.js +540 -0
- package/dist/lib/plugins/openapi/playground/request-panel/fieldManager/useKeyValueFieldManager.test.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/request-panel/useKeyValueFieldManager.d.ts +40 -0
- package/dist/lib/plugins/openapi/playground/request-panel/useKeyValueFieldManager.js +205 -0
- package/dist/lib/plugins/openapi/playground/request-panel/useKeyValueFieldManager.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/Highlight.d.ts +1 -1
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.js +4 -2
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +33 -19
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.d.ts +2 -2
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +1 -1
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.d.ts +1 -1
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js +1 -1
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.d.ts +5 -3
- package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js +2 -0
- package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js.map +1 -1
- package/dist/lib/plugins/openapi/processors/removeExtensions.test.js +1 -0
- package/dist/lib/plugins/openapi/processors/removeExtensions.test.js.map +1 -1
- package/dist/lib/plugins/openapi/processors/removeParameters.test.js +1 -0
- package/dist/lib/plugins/openapi/processors/removeParameters.test.js.map +1 -1
- package/dist/lib/plugins/openapi/processors/traverse.d.ts +1 -1
- package/dist/lib/plugins/openapi/processors/traverse.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.d.ts +0 -3
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +6 -15
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaView.d.ts +2 -1
- package/dist/lib/plugins/openapi/schema/SchemaView.js +12 -11
- package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/UnionView.d.ts +5 -0
- package/dist/lib/plugins/openapi/schema/UnionView.js +36 -0
- package/dist/lib/plugins/openapi/schema/UnionView.js.map +1 -0
- package/dist/lib/plugins/openapi/schema/union-helpers.d.ts +28 -0
- package/dist/lib/plugins/openapi/schema/union-helpers.js +71 -0
- package/dist/lib/plugins/openapi/schema/union-helpers.js.map +1 -0
- package/dist/lib/plugins/openapi/schema/utils.d.ts +0 -7
- package/dist/lib/plugins/openapi/schema/utils.js +0 -6
- package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
- package/dist/lib/plugins/openapi/state.d.ts +5 -3
- package/dist/lib/plugins/openapi/util/createHttpSnippet.d.ts +1 -1
- package/dist/lib/plugins/openapi/util/createHttpSnippet.js +1 -1
- package/dist/lib/plugins/openapi/util/createHttpSnippet.js.map +1 -1
- package/dist/lib/plugins/openapi/util/createNavigationCategory.js +1 -0
- package/dist/lib/plugins/openapi/util/createNavigationCategory.js.map +1 -1
- package/dist/lib/plugins/openapi/util/generateSchemaExample.d.ts +1 -1
- package/dist/lib/plugins/openapi/util/generateSchemaExample.js +10 -13
- package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
- package/dist/lib/plugins/openapi/util/getRoutes.js +1 -1
- package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -1
- package/dist/lib/plugins/openapi/util/methodColorMap.d.ts +1 -1
- package/dist/lib/plugins/search-inkeep/index.js +1 -1
- package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
- package/dist/lib/plugins/search-pagefind/PagefindSearch.js +1 -1
- package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -1
- package/dist/lib/plugins/search-pagefind/ResultList.d.ts +1 -1
- package/dist/lib/plugins/search-pagefind/ResultList.js +4 -1
- package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -1
- package/dist/lib/plugins/search-pagefind/get-results.js +0 -1
- package/dist/lib/plugins/search-pagefind/get-results.js.map +1 -1
- package/dist/lib/shiki.d.ts +3 -6
- package/dist/lib/shiki.js +29 -8
- package/dist/lib/shiki.js.map +1 -1
- package/dist/lib/ui/Breadcrumb.js +1 -1
- package/dist/lib/ui/Breadcrumb.js.map +1 -1
- package/dist/lib/ui/Button.d.ts +1 -1
- package/dist/lib/ui/Button.js +1 -0
- package/dist/lib/ui/Button.js.map +1 -1
- package/dist/lib/ui/Callout.d.ts +5 -5
- package/dist/lib/ui/Callout.js +5 -5
- package/dist/lib/ui/Callout.js.map +1 -1
- package/dist/lib/ui/Checkbox.d.ts +2 -2
- package/dist/lib/ui/Checkbox.js +4 -4
- package/dist/lib/ui/Checkbox.js.map +1 -1
- package/dist/lib/ui/CodeBlock.d.ts +1 -2
- package/dist/lib/ui/CodeBlock.js +3 -28
- package/dist/lib/ui/CodeBlock.js.map +1 -1
- package/dist/lib/ui/Command.d.ts +5 -5
- package/dist/lib/ui/Command.js +2 -6
- package/dist/lib/ui/Command.js.map +1 -1
- package/dist/lib/ui/Dialog.d.ts +12 -18
- package/dist/lib/ui/Dialog.js +30 -17
- package/dist/lib/ui/Dialog.js.map +1 -1
- package/dist/lib/ui/EmbeddedCodeBlock.d.ts +3 -2
- package/dist/lib/ui/EmbeddedCodeBlock.js +2 -2
- package/dist/lib/ui/EmbeddedCodeBlock.js.map +1 -1
- package/dist/lib/ui/Form.d.ts +2 -2
- package/dist/lib/ui/Pagination.d.ts +1 -1
- package/dist/lib/ui/Pagination.js +1 -1
- package/dist/lib/ui/Pagination.js.map +1 -1
- package/dist/lib/ui/ReactComponentDoc.d.ts +20 -0
- package/dist/lib/ui/ReactComponentDoc.js +10 -0
- package/dist/lib/ui/ReactComponentDoc.js.map +1 -0
- package/dist/lib/ui/Secret.d.ts +18 -0
- package/dist/lib/ui/Secret.js +26 -0
- package/dist/lib/ui/Secret.js.map +1 -0
- package/dist/lib/ui/Separator.d.ts +4 -0
- package/dist/lib/ui/Separator.js +8 -0
- package/dist/lib/ui/Separator.js.map +1 -0
- package/dist/lib/ui/SyntaxHighlight.d.ts +1 -0
- package/dist/lib/ui/SyntaxHighlight.js.map +1 -1
- package/dist/lib/ui/ToggleGroup.d.ts +1 -1
- package/dist/lib/ui/Tooltip.d.ts +7 -7
- package/dist/lib/ui/Tooltip.js +16 -10
- package/dist/lib/ui/Tooltip.js.map +1 -1
- package/dist/lib/ui/Value.d.ts +5 -0
- package/dist/lib/ui/Value.js +13 -0
- package/dist/lib/ui/Value.js.map +1 -0
- package/dist/lib/util/MdxComponents.d.ts +3 -2
- package/dist/lib/util/MdxComponents.js +7 -4
- package/dist/lib/util/MdxComponents.js.map +1 -1
- package/dist/lib/util/cn.js.map +1 -1
- package/dist/lib/util/createVariantComponent.d.ts +7 -4
- package/dist/lib/util/createVariantComponent.js +5 -2
- package/dist/lib/util/createVariantComponent.js.map +1 -1
- package/dist/lib/util/flattenAllOf.d.ts +4 -0
- package/dist/lib/util/flattenAllOf.js +65 -0
- package/dist/lib/util/flattenAllOf.js.map +1 -0
- package/dist/lib/util/flattenAllOf.test.d.ts +1 -0
- package/dist/lib/util/flattenAllOf.test.js +532 -0
- package/dist/lib/util/flattenAllOf.test.js.map +1 -0
- package/dist/lib/util/groupBy.js +1 -0
- package/dist/lib/util/groupBy.js.map +1 -1
- package/dist/lib/util/humanFileSize.js +1 -1
- package/dist/lib/util/humanFileSize.js.map +1 -1
- package/dist/lib/util/invariant.js +3 -1
- package/dist/lib/util/invariant.js.map +1 -1
- package/dist/lib/util/pastellize.js +4 -4
- package/dist/lib/util/pastellize.js.map +1 -1
- package/dist/lib/util/syncZustandState.d.ts +5 -0
- package/dist/lib/util/syncZustandState.js +14 -0
- package/dist/lib/util/syncZustandState.js.map +1 -0
- package/dist/lib/util/traverse.d.ts +1 -0
- package/dist/lib/util/traverse.js +25 -0
- package/dist/lib/util/traverse.js.map +1 -1
- package/dist/lib/util/useIsomorphicLayoutEffect.js.map +1 -1
- package/dist/lib/util/useScrollToAnchor.js +2 -0
- package/dist/lib/util/useScrollToAnchor.js.map +1 -1
- package/dist/ts.js +3 -3
- package/dist/ts.js.map +1 -1
- package/dist/vite/api/SchemaManager.d.ts +3 -1
- package/dist/vite/api/SchemaManager.js +43 -32
- package/dist/vite/api/SchemaManager.js.map +1 -1
- package/dist/vite/api/SchemaManager.test.js +2 -2
- package/dist/vite/api/SchemaManager.test.js.map +1 -1
- package/dist/vite/api/schema-codegen.js +60 -42
- package/dist/vite/api/schema-codegen.js.map +1 -1
- package/dist/vite/api/schema-codegen.test.js +76 -3
- package/dist/vite/api/schema-codegen.test.js.map +1 -1
- package/dist/vite/build.js +1 -1
- package/dist/vite/build.js.map +1 -1
- package/dist/vite/dev-server.js +2 -2
- package/dist/vite/dev-server.js.map +1 -1
- package/dist/vite/error-handler.d.ts +2 -2
- package/dist/vite/error-handler.js.map +1 -1
- package/dist/vite/llms.d.ts +12 -0
- package/dist/vite/llms.js +66 -0
- package/dist/vite/llms.js.map +1 -0
- package/dist/vite/mdx/remark-inject-filepath.js.map +1 -1
- package/dist/vite/mdx/remark-last-modified.js +57 -4
- package/dist/vite/mdx/remark-last-modified.js.map +1 -1
- package/dist/vite/mdx/remark-link-rewrite.js.map +1 -1
- package/dist/vite/mdx/remark-static-generation.js +1 -1
- package/dist/vite/mdx/remark-static-generation.js.map +1 -1
- package/dist/vite/output.d.ts +1 -1
- package/dist/vite/output.js +1 -1
- package/dist/vite/output.js.map +1 -1
- package/dist/vite/plugin-api-keys.d.ts +1 -1
- package/dist/vite/plugin-api-keys.js +1 -1
- package/dist/vite/plugin-api-keys.js.map +1 -1
- package/dist/vite/plugin-api.js +22 -21
- package/dist/vite/plugin-api.js.map +1 -1
- package/dist/vite/plugin-auth.d.ts +1 -1
- package/dist/vite/plugin-auth.js +1 -1
- package/dist/vite/plugin-auth.js.map +1 -1
- package/dist/vite/plugin-component.d.ts +1 -1
- package/dist/vite/plugin-config-reload.d.ts +1 -1
- package/dist/vite/plugin-custom-pages.d.ts +1 -1
- package/dist/vite/plugin-custom-pages.js +1 -1
- package/dist/vite/plugin-custom-pages.js.map +1 -1
- package/dist/vite/plugin-docs.d.ts +9 -0
- package/dist/vite/plugin-docs.js +70 -47
- package/dist/vite/plugin-docs.js.map +1 -1
- package/dist/vite/plugin-frontmatter.js +1 -1
- package/dist/vite/plugin-frontmatter.js.map +1 -1
- package/dist/vite/plugin-markdown-export.d.ts +21 -0
- package/dist/vite/plugin-markdown-export.js +141 -0
- package/dist/vite/plugin-markdown-export.js.map +1 -0
- package/dist/vite/plugin-mdx.d.ts +2 -2
- package/dist/vite/plugin-mdx.js +44 -34
- package/dist/vite/plugin-mdx.js.map +1 -1
- package/dist/vite/plugin-metadata.d.ts +1 -1
- package/dist/vite/plugin-navigation.d.ts +2 -2
- package/dist/vite/plugin-navigation.js +38 -35
- package/dist/vite/plugin-navigation.js.map +1 -1
- package/dist/vite/plugin-redirect.d.ts +1 -1
- package/dist/vite/plugin-redirect.js +1 -1
- package/dist/vite/plugin-redirect.js.map +1 -1
- package/dist/vite/plugin-search.d.ts +1 -1
- package/dist/vite/plugin-search.js +1 -1
- package/dist/vite/plugin-search.js.map +1 -1
- package/dist/vite/plugin-shiki-register.js +1 -1
- package/dist/vite/plugin-shiki-register.js.map +1 -1
- package/dist/vite/plugin-theme.js +16 -7
- package/dist/vite/plugin-theme.js.map +1 -1
- package/dist/vite/plugin-theme.test.js +2 -0
- package/dist/vite/plugin-theme.test.js.map +1 -1
- package/dist/vite/plugin.d.ts +1 -1
- package/dist/vite/plugin.js +4 -2
- package/dist/vite/plugin.js.map +1 -1
- package/dist/vite/prerender/FileWritingResponse.js +5 -3
- package/dist/vite/prerender/FileWritingResponse.js.map +1 -1
- package/dist/vite/prerender/InMemoryResponse.js +3 -1
- package/dist/vite/prerender/InMemoryResponse.js.map +1 -1
- package/dist/vite/prerender/prerender.js +38 -5
- package/dist/vite/prerender/prerender.js.map +1 -1
- package/dist/vite/prerender/worker.d.ts +1 -1
- package/dist/vite/prerender/worker.js.map +1 -1
- package/dist/vite/reporter.js +2 -2
- package/dist/vite/reporter.js.map +1 -1
- package/dist/vite/shadcn-registry.d.ts +8 -33
- package/dist/vite/sitemap.js +4 -4
- package/dist/vite/sitemap.js.map +1 -1
- package/dist/zuplo/enrich-with-zuplo-mcp.d.ts +4 -0
- package/dist/zuplo/enrich-with-zuplo-mcp.js +117 -0
- package/dist/zuplo/enrich-with-zuplo-mcp.js.map +1 -0
- package/dist/zuplo/enrich-with-zuplo.d.ts +1 -0
- package/dist/zuplo/enrich-with-zuplo.js +4 -4
- package/dist/zuplo/enrich-with-zuplo.js.map +1 -1
- package/dist/zuplo/policy-types.js +0 -1
- package/dist/zuplo/policy-types.js.map +1 -1
- package/dist/zuplo/with-zuplo-processors.js +2 -0
- package/dist/zuplo/with-zuplo-processors.js.map +1 -1
- package/dist/zuplo/with-zuplo.js +1 -1
- package/dist/zuplo/with-zuplo.js.map +1 -1
- package/lib/{Button-B3o-2Xdf.js → Button-B3ucvvQw.js} +7 -6
- package/lib/Button-B3ucvvQw.js.map +1 -0
- package/lib/{Card-CMDQUPM4.js → Card-KFniaZn5.js} +2 -2
- package/lib/{Card-CMDQUPM4.js.map → Card-KFniaZn5.js.map} +1 -1
- package/lib/{CategoryHeading-DCpZu3yG.js → CategoryHeading-DhmodDcq.js} +2 -2
- package/lib/{CategoryHeading-DCpZu3yG.js.map → CategoryHeading-DhmodDcq.js.map} +1 -1
- package/lib/{Command-CDn17s8X.js → Command-CUcrW3qs.js} +22 -28
- package/lib/Command-CUcrW3qs.js.map +1 -0
- package/lib/Dialog-BQciPiHN.js +144 -0
- package/lib/Dialog-BQciPiHN.js.map +1 -0
- package/lib/{Drawer-DJ05s2pH.js → Drawer-Ci7XwhqT.js} +2 -2
- package/lib/{Drawer-DJ05s2pH.js.map → Drawer-Ci7XwhqT.js.map} +1 -1
- package/lib/DropdownMenu-BZ2NKQ3K.js +126 -0
- package/lib/DropdownMenu-BZ2NKQ3K.js.map +1 -0
- package/lib/{Slot-DOtTvoyj.js → ErrorAlert-B4eXGBQj.js} +2413 -2431
- package/lib/ErrorAlert-B4eXGBQj.js.map +1 -0
- package/lib/MdxPage-BSxjb_Mb.js +240 -0
- package/lib/MdxPage-BSxjb_Mb.js.map +1 -0
- package/lib/{OAuthErrorPage-Jv3r8wnL.js → OAuthErrorPage-YbraVLZt.js} +9 -9
- package/lib/OAuthErrorPage-YbraVLZt.js.map +1 -0
- package/lib/{OasProvider-CA_lpILt.js → OasProvider-CgHWBl16.js} +5 -4
- package/lib/OasProvider-CgHWBl16.js.map +1 -0
- package/lib/OperationList-BNNhgkkk.js +5482 -0
- package/lib/OperationList-BNNhgkkk.js.map +1 -0
- package/lib/{Pagination-CBiRGddW.js → Pagination-BpxzD3Tn.js} +4 -4
- package/lib/{Pagination-CBiRGddW.js.map → Pagination-BpxzD3Tn.js.map} +1 -1
- package/lib/RouteGuard-Brz95MSt.js +77 -0
- package/lib/RouteGuard-Brz95MSt.js.map +1 -0
- package/lib/RouterError-BsnUU8eo.js +42 -0
- package/lib/RouterError-BsnUU8eo.js.map +1 -0
- package/lib/{SchemaList-BeYWvBC7.js → SchemaList-C8-SHBql.js} +10 -10
- package/lib/{SchemaList-BeYWvBC7.js.map → SchemaList-C8-SHBql.js.map} +1 -1
- package/lib/SchemaView-VsgUbgRw.js +397 -0
- package/lib/SchemaView-VsgUbgRw.js.map +1 -0
- package/lib/Select-C1DeCqKv.js +372 -0
- package/lib/Select-C1DeCqKv.js.map +1 -0
- package/lib/SignUp-Bnvel-zK.js +50 -0
- package/lib/SignUp-Bnvel-zK.js.map +1 -0
- package/lib/{Spinner-mNLZ6awP.js → Spinner-CI6bRyZw.js} +2 -2
- package/lib/{Spinner-mNLZ6awP.js.map → Spinner-CI6bRyZw.js.map} +1 -1
- package/lib/{SyntaxHighlight-GR0eix_L.js → SyntaxHighlight-C19vH0V_.js} +1074 -1030
- package/lib/SyntaxHighlight-C19vH0V_.js.map +1 -0
- package/lib/{Toc-BlcGIkXc.js → Toc-DR_4nkDQ.js} +6 -6
- package/lib/Toc-DR_4nkDQ.js.map +1 -0
- package/lib/ZudokuContext-BUZ5hkWB.js +1508 -0
- package/lib/ZudokuContext-BUZ5hkWB.js.map +1 -0
- package/lib/c-B-NUhs61.js +46 -0
- package/lib/c-B-NUhs61.js.map +1 -0
- package/lib/chunk-PVWAREVJ-BMhpCH5D.js +7965 -0
- package/lib/chunk-PVWAREVJ-BMhpCH5D.js.map +1 -0
- package/lib/{circular-CGTcsqA3.js → circular-BHuymtcS.js} +30 -30
- package/lib/{circular-CGTcsqA3.js.map → circular-BHuymtcS.js.map} +1 -1
- package/lib/cn-dYga0KKN.js.map +1 -1
- package/lib/commonlisp-De080z23.js +28 -0
- package/lib/commonlisp-De080z23.js.map +1 -0
- package/lib/cpp-79Paht7T.js +53 -0
- package/lib/cpp-79Paht7T.js.map +1 -0
- package/lib/{createServer-DjgpuLne.js → createServer-C4Kx4Ah4.js} +3703 -3225
- package/lib/createServer-C4Kx4Ah4.js.map +1 -0
- package/lib/csharp-D8MIL50B.js +53 -0
- package/lib/csharp-D8MIL50B.js.map +1 -0
- package/lib/css-Bt6hr1td.js +54 -0
- package/lib/css-Bt6hr1td.js.map +1 -0
- package/lib/dart-B0vy1jWB.js +60 -0
- package/lib/dart-B0vy1jWB.js.map +1 -0
- package/lib/elixir-Ds8r0sF8.js +25 -0
- package/lib/elixir-Ds8r0sF8.js.map +1 -0
- package/lib/{errors-CrI3s7mR.js → errors-C43bc4dH.js} +3 -3
- package/lib/errors-C43bc4dH.js.map +1 -0
- package/lib/go-D2VsmIOS.js +25 -0
- package/lib/go-D2VsmIOS.js.map +1 -0
- package/lib/graphql-BtA6M4m5.js +25 -0
- package/lib/graphql-BtA6M4m5.js.map +1 -0
- package/lib/hook-CMeoxziF.js +40 -0
- package/lib/hook-CMeoxziF.js.map +1 -0
- package/lib/html-MGnI2uzP.js +33 -0
- package/lib/html-MGnI2uzP.js.map +1 -0
- package/lib/index-BlL_RtG2.js +3665 -0
- package/lib/index-BlL_RtG2.js.map +1 -0
- package/lib/{index-DzO-Qh6S.js → index-CfR_Jx5Q.js} +276 -278
- package/lib/index-CfR_Jx5Q.js.map +1 -0
- package/lib/index-CrcNWbel.js.map +1 -1
- package/lib/{index-HarEI51d.js → index-Dc4KrhPf.js} +166 -50
- package/lib/index-Dc4KrhPf.js.map +1 -0
- package/lib/{index-DmNq2fbN.js → index-nGbmHh_A.js} +2 -2
- package/lib/index-nGbmHh_A.js.map +1 -0
- package/lib/index.esm-BYObtETB.js +1294 -0
- package/lib/index.esm-BYObtETB.js.map +1 -0
- package/lib/index.esm-BnYHxCYC.js.map +1 -1
- package/lib/invariant-Bm-FVUQE.js.map +1 -1
- package/lib/java-CVLzHfb1.js +53 -0
- package/lib/java-CVLzHfb1.js.map +1 -0
- package/lib/javascript-CcmIpL4G.js +10 -0
- package/lib/javascript-CcmIpL4G.js.map +1 -0
- package/lib/json-4AyP4uiY.js +25 -0
- package/lib/json-4AyP4uiY.js.map +1 -0
- package/lib/{jsx-runtime-C5mzlN2N.js → jsx-runtime-BzflLqGi.js} +110 -112
- package/lib/jsx-runtime-BzflLqGi.js.map +1 -0
- package/lib/kotlin-v2plddBQ.js +37 -0
- package/lib/kotlin-v2plddBQ.js.map +1 -0
- package/lib/markdown-DYGWCmGQ.js +25 -0
- package/lib/markdown-DYGWCmGQ.js.map +1 -0
- package/lib/mdx-CHwYvXd4.js +32 -0
- package/lib/mdx-CHwYvXd4.js.map +1 -0
- package/lib/{mutation-Dy_5up8v.js → mutation-BSU0xu4m.js} +2 -2
- package/lib/{mutation-Dy_5up8v.js.map → mutation-BSU0xu4m.js.map} +1 -1
- package/lib/objectivec-HZY8shkd.js +32 -0
- package/lib/objectivec-HZY8shkd.js.map +1 -0
- package/lib/ocaml-DqsdDdwb.js +52 -0
- package/lib/ocaml-DqsdDdwb.js.map +1 -0
- package/lib/php-rQXzo7K_.js +25 -0
- package/lib/php-rQXzo7K_.js.map +1 -0
- package/lib/powershell-CQje9pm1.js +39 -0
- package/lib/powershell-CQje9pm1.js.map +1 -0
- package/lib/processors/traverse.js.map +1 -1
- package/lib/python-QIQAE5Ei.js +32 -0
- package/lib/python-QIQAE5Ei.js.map +1 -0
- package/lib/react-DHpVpxRv.js +24 -0
- package/lib/react-DHpVpxRv.js.map +1 -0
- package/lib/ruby-B2dU8Ny5.js +25 -0
- package/lib/ruby-B2dU8Ny5.js.map +1 -0
- package/lib/rust-DYnLHAi2.js +25 -0
- package/lib/rust-DYnLHAi2.js.map +1 -0
- package/lib/scala-CeKInBR8.js +25 -0
- package/lib/scala-CeKInBR8.js.map +1 -0
- package/lib/shell-HUv9oVtp.js +25 -0
- package/lib/shell-HUv9oVtp.js.map +1 -0
- package/lib/swift-B4z6ig1Z.js +25 -0
- package/lib/swift-B4z6ig1Z.js.map +1 -0
- package/lib/toml-Co9mpdct.js +32 -0
- package/lib/toml-Co9mpdct.js.map +1 -0
- package/lib/typescript-C26xdBDC.js +32 -0
- package/lib/typescript-C26xdBDC.js.map +1 -0
- package/lib/ui/Accordion.js +1 -1
- package/lib/ui/ActionButton.js +3 -3
- package/lib/ui/Alert.js +1 -1
- package/lib/ui/AlertDialog.js +1 -1
- package/lib/ui/Badge.js +1 -1
- package/lib/ui/Breadcrumb.js +23 -22
- package/lib/ui/Breadcrumb.js.map +1 -1
- package/lib/ui/Button.js +6 -5
- package/lib/ui/Button.js.map +1 -1
- package/lib/ui/Callout.js +19 -19
- package/lib/ui/Callout.js.map +1 -1
- package/lib/ui/Card.js +1 -1
- package/lib/ui/Carousel.js +1 -1
- package/lib/ui/Carousel.js.map +1 -1
- package/lib/ui/Checkbox.js +29 -26
- package/lib/ui/Checkbox.js.map +1 -1
- package/lib/ui/CodeBlock.js +217 -6
- package/lib/ui/CodeBlock.js.map +1 -1
- package/lib/ui/Command.js +21 -27
- package/lib/ui/Command.js.map +1 -1
- package/lib/ui/Dialog.js +135 -105
- package/lib/ui/Dialog.js.map +1 -1
- package/lib/ui/Drawer.js +2 -2
- package/lib/ui/DropdownMenu.js +1 -1
- package/lib/ui/EmbeddedCodeBlock.js +25 -22
- package/lib/ui/EmbeddedCodeBlock.js.map +1 -1
- package/lib/ui/Form.js +2 -2
- package/lib/ui/Form.js.map +1 -1
- package/lib/ui/HoverCard.js +1 -1
- package/lib/ui/Input.js +1 -1
- package/lib/ui/Label.js +1 -1
- package/lib/ui/Pagination.js +28 -29
- package/lib/ui/Pagination.js.map +1 -1
- package/lib/ui/Popover.js +1 -1
- package/lib/ui/Progress.js +1 -1
- package/lib/ui/RadioGroup.js +1 -1
- package/lib/ui/ReactComponentDoc.js +28 -0
- package/lib/ui/ReactComponentDoc.js.map +1 -0
- package/lib/ui/ScrollArea.js +1 -1
- package/lib/ui/Secret.js +106 -0
- package/lib/ui/Secret.js.map +1 -0
- package/lib/ui/Select.js +1 -1
- package/lib/ui/Separator.js +27 -0
- package/lib/ui/Separator.js.map +1 -0
- package/lib/ui/Skeleton.js +1 -1
- package/lib/ui/Slider.js +1 -1
- package/lib/ui/Stepper.js +1 -1
- package/lib/ui/Switch.js +1 -1
- package/lib/ui/SyntaxHighlight.js +4 -4
- package/lib/ui/Tabs.js +1 -1
- package/lib/ui/Textarea.js +1 -1
- package/lib/ui/Toggle.js +1 -1
- package/lib/ui/ToggleGroup.js +1 -1
- package/lib/ui/ToggleGroup.js.map +1 -1
- package/lib/ui/Tooltip.js +55 -28
- package/lib/ui/Tooltip.js.map +1 -1
- package/lib/ui/Value.js +39 -0
- package/lib/ui/Value.js.map +1 -0
- package/lib/useCopyToClipboard-B_085nfO.js +14 -0
- package/lib/useCopyToClipboard-B_085nfO.js.map +1 -0
- package/lib/{useExposedProps-BH9aq4MD.js → useExposedProps-U3pmsHaG.js} +34 -34
- package/lib/{useExposedProps-BH9aq4MD.js.map → useExposedProps-U3pmsHaG.js.map} +1 -1
- package/lib/xml-BQOOC04j.js +25 -0
- package/lib/xml-BQOOC04j.js.map +1 -0
- package/lib/yaml-BGsJItKv.js +32 -0
- package/lib/yaml-BGsJItKv.js.map +1 -0
- package/lib/zig-CUV2sTct.js +35 -0
- package/lib/zig-CUV2sTct.js.map +1 -0
- package/lib/zudoku.__internal.js +1192 -1073
- package/lib/zudoku.__internal.js.map +1 -1
- package/lib/zudoku.auth-auth0.js +23 -22
- package/lib/zudoku.auth-auth0.js.map +1 -1
- package/lib/zudoku.auth-azureb2c.js +34 -35
- package/lib/zudoku.auth-azureb2c.js.map +1 -1
- package/lib/zudoku.auth-clerk.js +41 -41
- package/lib/zudoku.auth-clerk.js.map +1 -1
- package/lib/zudoku.auth-openid.js +104 -108
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.auth-supabase.js +108 -51
- package/lib/zudoku.auth-supabase.js.map +1 -1
- package/lib/zudoku.components.js +21 -20
- package/lib/zudoku.hooks.js +6 -6
- package/lib/zudoku.hooks.js.map +1 -1
- package/lib/zudoku.icons.js +1 -1
- package/lib/zudoku.icons.js.map +1 -1
- package/lib/zudoku.plugin-api-catalog.js +34 -28
- package/lib/zudoku.plugin-api-catalog.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +302 -327
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-custom-pages.js +1 -1
- package/lib/zudoku.plugin-custom-pages.js.map +1 -1
- package/lib/zudoku.plugin-markdown.js +10 -9
- package/lib/zudoku.plugin-markdown.js.map +1 -1
- package/lib/zudoku.plugin-openapi.js +7 -8
- package/lib/zudoku.plugin-openapi.js.map +1 -1
- package/lib/zudoku.plugin-redirect.js +3 -3
- package/lib/zudoku.plugin-search-inkeep.js +1 -1
- package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
- package/lib/zudoku.plugin-search-pagefind.js +48 -49
- package/lib/zudoku.plugin-search-pagefind.js.map +1 -1
- package/lib/zudoku.router.js +2502 -118
- package/lib/zudoku.router.js.map +1 -1
- package/package.json +93 -92
- package/src/app/ZuploBuildConfig.ts +1 -1
- package/src/app/entry.client.tsx +6 -5
- package/src/app/entry.server.tsx +19 -9
- package/src/app/env.ts +6 -6
- package/src/app/main.css +71 -19
- package/src/app/main.tsx +7 -3
- package/src/app/standalone.tsx +7 -2
- package/src/lib/MissingIcon.tsx +1 -1
- package/src/lib/assets/language-icons/c.tsx +31 -0
- package/src/lib/assets/language-icons/commonlisp.tsx +22 -0
- package/src/lib/assets/language-icons/cpp.tsx +35 -0
- package/src/lib/assets/language-icons/csharp.tsx +35 -0
- package/src/lib/assets/language-icons/css.tsx +36 -0
- package/src/lib/assets/language-icons/dart.tsx +39 -0
- package/src/lib/assets/language-icons/elixir.tsx +19 -0
- package/src/lib/assets/language-icons/go.tsx +19 -0
- package/src/lib/assets/language-icons/graphql.tsx +19 -0
- package/src/lib/assets/language-icons/html.tsx +24 -0
- package/src/lib/assets/language-icons/java.tsx +35 -0
- package/src/lib/assets/language-icons/javascript.tsx +11 -0
- package/src/lib/assets/language-icons/json.tsx +19 -0
- package/src/lib/assets/language-icons/kotlin.tsx +30 -0
- package/src/lib/assets/language-icons/markdown.tsx +19 -0
- package/src/lib/assets/language-icons/mdx.tsx +23 -0
- package/src/lib/assets/language-icons/objectivec.tsx +23 -0
- package/src/lib/assets/language-icons/ocaml.tsx +34 -0
- package/src/lib/assets/language-icons/php.tsx +19 -0
- package/src/lib/assets/language-icons/powershell.tsx +27 -0
- package/src/lib/assets/language-icons/python.tsx +23 -0
- package/src/lib/assets/language-icons/react.tsx +21 -0
- package/src/lib/assets/language-icons/ruby.tsx +19 -0
- package/src/lib/assets/language-icons/rust.tsx +19 -0
- package/src/lib/assets/language-icons/scala.tsx +19 -0
- package/src/lib/assets/language-icons/shell.tsx +19 -0
- package/src/lib/assets/language-icons/swift.tsx +19 -0
- package/src/lib/assets/language-icons/toml.tsx +23 -0
- package/src/lib/assets/language-icons/typescript.tsx +23 -0
- package/src/lib/assets/language-icons/xml.tsx +19 -0
- package/src/lib/assets/language-icons/yaml.tsx +23 -0
- package/src/lib/assets/language-icons/zig.tsx +32 -0
- package/src/lib/auth/issuer.test.ts +1 -0
- package/src/lib/auth/issuer.ts +3 -0
- package/src/lib/authentication/AuthenticationPlugin.tsx +4 -4
- package/src/lib/authentication/authentication.ts +26 -8
- package/src/lib/authentication/components/OAuthErrorPage.tsx +2 -2
- package/src/lib/authentication/components/SignIn.tsx +7 -5
- package/src/lib/authentication/components/SignOut.tsx +7 -6
- package/src/lib/authentication/components/SignUp.tsx +5 -8
- package/src/lib/authentication/hook.ts +21 -10
- package/src/lib/authentication/providers/auth0.tsx +14 -9
- package/src/lib/authentication/providers/azureb2c.tsx +15 -8
- package/src/lib/authentication/providers/clerk.tsx +14 -7
- package/src/lib/authentication/providers/firebase.tsx +284 -0
- package/src/lib/authentication/providers/openid.tsx +26 -21
- package/src/lib/authentication/providers/supabase/SupabaseAuthUI.tsx +75 -0
- package/src/lib/authentication/providers/supabase.tsx +61 -49
- package/src/lib/authentication/state.ts +3 -23
- package/src/lib/authentication/ui/ZudokuAuthUi.tsx +335 -0
- package/src/lib/authentication/ui/icons/Apple.tsx +10 -0
- package/src/lib/authentication/ui/icons/Facebook.tsx +15 -0
- package/src/lib/authentication/ui/icons/Github.tsx +16 -0
- package/src/lib/authentication/ui/icons/Google.tsx +16 -0
- package/src/lib/authentication/ui/icons/Microsoft.tsx +12 -0
- package/src/lib/authentication/ui/icons/X.tsx +10 -0
- package/src/lib/authentication/use-broadcast/LICENSE.md +12 -3
- package/src/lib/authentication/use-broadcast/shared.ts +4 -4
- package/src/lib/authentication/use-broadcast/useBroadcast.ts +2 -2
- package/src/lib/components/AnchorLink.tsx +1 -1
- package/src/lib/components/Autocomplete.tsx +12 -3
- package/src/lib/components/Bootstrap.tsx +1 -0
- package/src/lib/components/BuildCheck.tsx +14 -11
- package/src/lib/components/Header.tsx +2 -3
- package/src/lib/components/Heading.tsx +4 -9
- package/src/lib/components/LanguageIcon.tsx +181 -0
- package/src/lib/components/Layout.tsx +1 -1
- package/src/lib/components/Main.tsx +1 -1
- package/src/lib/components/Markdown.tsx +5 -2
- package/src/lib/components/Meta.tsx +13 -0
- package/src/lib/components/MobileTopNavigation.tsx +11 -13
- package/src/lib/components/PathRenderer.tsx +2 -2
- package/src/lib/components/Search.tsx +1 -1
- package/src/lib/components/Slot.test.tsx +8 -8
- package/src/lib/components/Slot.tsx +2 -2
- package/src/lib/components/TopNavigation.tsx +3 -3
- package/src/lib/components/Zudoku.tsx +5 -5
- package/src/lib/components/cache.ts +9 -5
- package/src/lib/components/context/ComponentsContext.tsx +2 -2
- package/src/lib/components/context/RouterEventsEmitter.tsx +1 -1
- package/src/lib/components/context/SlotProvider.tsx +4 -4
- package/src/lib/components/context/ViewportAnchorContext.tsx +2 -2
- package/src/lib/components/context/ZudokuContext.ts +12 -3
- package/src/lib/components/context/ZudokuProvider.tsx +1 -1
- package/src/lib/components/index.ts +3 -1
- package/src/lib/components/navigation/NavigationCategory.tsx +8 -1
- package/src/lib/components/navigation/NavigationItem.tsx +3 -3
- package/src/lib/components/navigation/NavigationWrapper.tsx +1 -1
- package/src/lib/components/navigation/Toc.tsx +5 -5
- package/src/lib/components/navigation/ZudokuLogo.tsx +1 -1
- package/src/lib/components/navigation/utils.ts +5 -6
- package/src/lib/core/RouteGuard.tsx +41 -21
- package/src/lib/core/ZudokuContext.ts +5 -1
- package/src/lib/errors/ErrorAlert.tsx +1 -2
- package/src/lib/errors/RouterError.tsx +7 -2
- package/src/lib/errors/TopLevelError.tsx +2 -4
- package/src/lib/hooks/useEvent.test.tsx +2 -2
- package/src/lib/oas/graphql/circular.ts +3 -3
- package/src/lib/oas/graphql/index.ts +39 -3
- package/src/lib/oas/parser/dereference/index.ts +2 -1
- package/src/lib/oas/parser/dereference/resolveRef.ts +4 -4
- package/src/lib/oas/parser/index.ts +10 -5
- package/src/lib/oas/parser/upgrade/index.ts +2 -1
- package/src/lib/plugins/api-catalog/Catalog.tsx +7 -0
- package/src/lib/plugins/api-keys/CreateApiKey.tsx +1 -1
- package/src/lib/plugins/api-keys/CreateApiKeyDialog.tsx +49 -0
- package/src/lib/plugins/api-keys/ProtectedRoute.tsx +11 -7
- package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +23 -70
- package/src/lib/plugins/api-keys/index.tsx +8 -8
- package/src/lib/plugins/custom-pages/index.tsx +1 -1
- package/src/lib/plugins/markdown/MdxPage.tsx +131 -14
- package/src/lib/plugins/markdown/assets/ChatGPTLogo.tsx +11 -0
- package/src/lib/plugins/markdown/assets/ClaudeLogo.tsx +19 -0
- package/src/lib/plugins/markdown/index.tsx +6 -8
- package/src/lib/plugins/openapi/CollapsibleCode.tsx +5 -3
- package/src/lib/plugins/openapi/ColorizedParam.tsx +3 -1
- package/src/lib/plugins/openapi/Endpoint.tsx +2 -2
- package/src/lib/plugins/openapi/GeneratedExampleSidecarBox.tsx +52 -0
- package/src/lib/plugins/openapi/MCPEndpoint.tsx +273 -0
- package/src/lib/plugins/openapi/OasProvider.tsx +2 -1
- package/src/lib/plugins/openapi/OperationList.tsx +39 -13
- package/src/lib/plugins/openapi/OperationListItem.tsx +103 -76
- package/src/lib/plugins/openapi/ParamInfos.tsx +10 -9
- package/src/lib/plugins/openapi/ParameterList.tsx +3 -5
- package/src/lib/plugins/openapi/ParameterListItem.tsx +6 -12
- package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +8 -13
- package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +23 -4
- package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +27 -2
- package/src/lib/plugins/openapi/Sidecar.tsx +112 -64
- package/src/lib/plugins/openapi/SidecarExamples.tsx +40 -57
- package/src/lib/plugins/openapi/StaggeredRender.tsx +1 -1
- package/src/lib/plugins/openapi/client/GraphQLContext.tsx +1 -1
- package/src/lib/plugins/openapi/client/createServer.ts +1 -2
- package/src/lib/plugins/openapi/client/useCreateQuery.ts +3 -2
- package/src/lib/plugins/openapi/components/NonHighlightedCode.tsx +22 -0
- package/src/lib/plugins/openapi/components/ResponseContent.tsx +1 -1
- package/src/lib/plugins/openapi/context.tsx +1 -1
- package/src/lib/plugins/openapi/graphql/fragment-masking.ts +1 -1
- package/src/lib/plugins/openapi/graphql/gql.ts +6 -6
- package/src/lib/plugins/openapi/graphql/graphql.ts +25 -3
- package/src/lib/plugins/openapi/index.tsx +14 -33
- package/src/lib/plugins/openapi/interfaces.ts +19 -4
- package/src/lib/plugins/openapi/playground/BodyPanel.tsx +249 -33
- package/src/lib/plugins/openapi/playground/CollapsibleHeader.tsx +10 -6
- package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +6 -5
- package/src/lib/plugins/openapi/playground/Headers.tsx +104 -220
- package/src/lib/plugins/openapi/playground/IdentityDialog.tsx +1 -1
- package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +1 -1
- package/src/lib/plugins/openapi/playground/ParamsGrid.tsx +33 -1
- package/src/lib/plugins/openapi/playground/PathParams.tsx +26 -34
- package/src/lib/plugins/openapi/playground/Playground.tsx +90 -41
- package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +13 -2
- package/src/lib/plugins/openapi/playground/QueryParams.tsx +83 -137
- package/src/lib/plugins/openapi/playground/RequestLoginDialog.tsx +20 -1
- package/src/lib/plugins/openapi/playground/request-panel/MultipartField.tsx +91 -0
- package/src/lib/plugins/openapi/playground/request-panel/UrlPath.tsx +1 -1
- package/src/lib/plugins/openapi/playground/request-panel/UrlQueryParams.tsx +2 -2
- package/src/lib/plugins/openapi/playground/request-panel/fieldManager/useKeyValueFieldManager.test.tsx +872 -0
- package/src/lib/plugins/openapi/playground/request-panel/useKeyValueFieldManager.ts +349 -0
- package/src/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.tsx +5 -3
- package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +124 -56
- package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +4 -4
- package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.ts +1 -1
- package/src/lib/plugins/openapi/playground/useRememberSkipLoginDialog.tsx +3 -0
- package/src/lib/plugins/openapi/processors/removeExtensions.test.ts +1 -0
- package/src/lib/plugins/openapi/processors/removeParameters.test.ts +1 -0
- package/src/lib/plugins/openapi/processors/traverse.ts +1 -1
- package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +6 -27
- package/src/lib/plugins/openapi/schema/SchemaView.tsx +30 -23
- package/src/lib/plugins/openapi/schema/UnionView.tsx +143 -0
- package/src/lib/plugins/openapi/schema/union-helpers.ts +123 -0
- package/src/lib/plugins/openapi/schema/utils.ts +0 -11
- package/src/lib/plugins/openapi/util/createHttpSnippet.ts +2 -2
- package/src/lib/plugins/openapi/util/createNavigationCategory.tsx +1 -0
- package/src/lib/plugins/openapi/util/generateSchemaExample.ts +14 -15
- package/src/lib/plugins/openapi/util/getRoutes.tsx +2 -2
- package/src/lib/plugins/openapi/util/methodColorMap.tsx +1 -1
- package/src/lib/plugins/search-inkeep/index.tsx +3 -3
- package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +2 -4
- package/src/lib/plugins/search-pagefind/ResultList.tsx +3 -4
- package/src/lib/plugins/search-pagefind/get-results.tsx +0 -1
- package/src/lib/shiki.ts +35 -8
- package/src/lib/ui/Breadcrumb.tsx +1 -0
- package/src/lib/ui/Button.tsx +1 -0
- package/src/lib/ui/Callout.tsx +10 -5
- package/src/lib/ui/Checkbox.tsx +23 -24
- package/src/lib/ui/CodeBlock.tsx +7 -41
- package/src/lib/ui/Command.tsx +2 -4
- package/src/lib/ui/Dialog.tsx +112 -107
- package/src/lib/ui/EmbeddedCodeBlock.tsx +6 -4
- package/src/lib/ui/Form.tsx +4 -4
- package/src/lib/ui/Pagination.tsx +1 -2
- package/src/lib/ui/ReactComponentDoc.tsx +68 -0
- package/src/lib/ui/Secret.tsx +123 -0
- package/src/lib/ui/Separator.tsx +25 -0
- package/src/lib/ui/SyntaxHighlight.tsx +6 -1
- package/src/lib/ui/ToggleGroup.tsx +1 -1
- package/src/lib/ui/Tooltip.tsx +54 -32
- package/src/lib/ui/Value.tsx +42 -0
- package/src/lib/util/MdxComponents.tsx +12 -4
- package/src/lib/util/cn.ts +1 -1
- package/src/lib/util/createVariantComponent.tsx +33 -7
- package/src/lib/util/flattenAllOf.test.ts +637 -0
- package/src/lib/util/flattenAllOf.ts +101 -0
- package/src/lib/util/groupBy.ts +1 -0
- package/src/lib/util/humanFileSize.ts +2 -3
- package/src/lib/util/invariant.ts +1 -0
- package/src/lib/util/pastellize.ts +4 -4
- package/src/lib/util/syncZustandState.ts +22 -0
- package/src/lib/util/traverse.ts +36 -0
- package/src/lib/util/types.ts +1 -1
- package/src/lib/util/useIsomorphicLayoutEffect.ts +1 -0
- package/src/lib/util/useScrollToAnchor.ts +3 -1
- package/src/shiki/langs/hurl.js +1 -0
- package/src/shiki/langs/kdl.js +1 -0
- package/src/shiki/langs/pkl.js +1 -0
- package/src/shiki/langs/rosmsg.js +1 -0
- package/dist/lib/components/ReactMarkdown.d.ts +0 -29
- package/dist/lib/components/ReactMarkdown.js +0 -182
- package/dist/lib/components/ReactMarkdown.js.map +0 -1
- package/dist/lib/plugins/openapi/playground/InlineInput.d.ts +0 -4
- package/dist/lib/plugins/openapi/playground/InlineInput.js +0 -3
- package/dist/lib/plugins/openapi/playground/InlineInput.js.map +0 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.d.ts +0 -8
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js +0 -14
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js.map +0 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.d.ts +0 -7
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js +0 -17
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js.map +0 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.d.ts +0 -6
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js +0 -10
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js.map +0 -1
- package/lib/Button-B3o-2Xdf.js.map +0 -1
- package/lib/CodeBlock-yJjjRwj-.js +0 -98
- package/lib/CodeBlock-yJjjRwj-.js.map +0 -1
- package/lib/Command-CDn17s8X.js.map +0 -1
- package/lib/Dialog-BrIjMmUK.js +0 -114
- package/lib/Dialog-BrIjMmUK.js.map +0 -1
- package/lib/MdxPage-BmOQ5m5g.js +0 -111
- package/lib/MdxPage-BmOQ5m5g.js.map +0 -1
- package/lib/OAuthErrorPage-Jv3r8wnL.js.map +0 -1
- package/lib/OasProvider-CA_lpILt.js.map +0 -1
- package/lib/OperationList-C-TObVw6.js +0 -5169
- package/lib/OperationList-C-TObVw6.js.map +0 -1
- package/lib/RouteGuard-JLH6tCY8.js +0 -56
- package/lib/RouteGuard-JLH6tCY8.js.map +0 -1
- package/lib/RouterError-DcVonMP1.js +0 -41
- package/lib/RouterError-DcVonMP1.js.map +0 -1
- package/lib/SchemaView-CRcShewo.js +0 -366
- package/lib/SchemaView-CRcShewo.js.map +0 -1
- package/lib/Select-C3efYI1n.js +0 -273
- package/lib/Select-C3efYI1n.js.map +0 -1
- package/lib/SignUp-CxBGHgba.js +0 -56
- package/lib/SignUp-CxBGHgba.js.map +0 -1
- package/lib/Slot-DOtTvoyj.js.map +0 -1
- package/lib/SyntaxHighlight-GR0eix_L.js.map +0 -1
- package/lib/Toc-BlcGIkXc.js.map +0 -1
- package/lib/ZudokuContext-BuJD7yIX.js +0 -1286
- package/lib/ZudokuContext-BuJD7yIX.js.map +0 -1
- package/lib/chunk-QMGIS6GS-DqecZ6nq.js +0 -9204
- package/lib/chunk-QMGIS6GS-DqecZ6nq.js.map +0 -1
- package/lib/createServer-DjgpuLne.js.map +0 -1
- package/lib/errors-CrI3s7mR.js.map +0 -1
- package/lib/hook-bv3iuX7X.js +0 -247
- package/lib/hook-bv3iuX7X.js.map +0 -1
- package/lib/index-CvTWnHZF.js +0 -3391
- package/lib/index-CvTWnHZF.js.map +0 -1
- package/lib/index-DmNq2fbN.js.map +0 -1
- package/lib/index-DzO-Qh6S.js.map +0 -1
- package/lib/index-HarEI51d.js.map +0 -1
- package/lib/index.esm-CdzlRw50.js +0 -1254
- package/lib/index.esm-CdzlRw50.js.map +0 -1
- package/lib/jsx-runtime-C5mzlN2N.js.map +0 -1
- package/src/lib/components/ReactMarkdown.license.txt +0 -21
- package/src/lib/components/ReactMarkdown.tsx +0 -264
- package/src/lib/plugins/openapi/playground/InlineInput.tsx +0 -6
- package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.tsx +0 -40
- package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.tsx +0 -57
- package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.tsx +0 -33
package/lib/zudoku.__internal.js
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import { j as a } from "./jsx-runtime-
|
|
3
|
-
import { S as
|
|
4
|
-
import { M as
|
|
5
|
-
import * as
|
|
6
|
-
import { StrictMode as
|
|
7
|
-
import {
|
|
8
|
-
import * as
|
|
9
|
-
import { a as
|
|
10
|
-
import { B as
|
|
11
|
-
import { CircleFadingArrowUpIcon as
|
|
12
|
-
import { Button as
|
|
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
|
|
15
|
-
import { d as
|
|
16
|
-
import { VisuallyHidden as
|
|
17
|
-
import { S as
|
|
18
|
-
import { C as
|
|
19
|
-
import { N as
|
|
20
|
-
var
|
|
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 ??
|
|
26
|
+
const r = t.queryKey, o = t.queryHash ?? Je(r, t);
|
|
27
27
|
let s = this.get(o);
|
|
28
|
-
return s || (s = new
|
|
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
|
-
|
|
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) =>
|
|
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) =>
|
|
68
|
+
return Object.keys(e).length > 0 ? t.filter((n) => ye(e, n)) : t;
|
|
69
69
|
}
|
|
70
70
|
notify(e) {
|
|
71
|
-
|
|
71
|
+
j.batch(() => {
|
|
72
72
|
this.listeners.forEach((t) => {
|
|
73
73
|
t(e);
|
|
74
74
|
});
|
|
75
75
|
});
|
|
76
76
|
}
|
|
77
77
|
onFocus() {
|
|
78
|
-
|
|
78
|
+
j.batch(() => {
|
|
79
79
|
this.getAll().forEach((e) => {
|
|
80
80
|
e.onFocus();
|
|
81
81
|
});
|
|
82
82
|
});
|
|
83
83
|
}
|
|
84
84
|
onOnline() {
|
|
85
|
-
|
|
85
|
+
j.batch(() => {
|
|
86
86
|
this.getAll().forEach((e) => {
|
|
87
87
|
e.onOnline();
|
|
88
88
|
});
|
|
89
89
|
});
|
|
90
90
|
}
|
|
91
|
-
},
|
|
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
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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
|
-
|
|
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) =>
|
|
157
|
+
(n) => we(t, n)
|
|
158
158
|
);
|
|
159
159
|
}
|
|
160
160
|
findAll(e = {}) {
|
|
161
|
-
return this.getAll().filter((t) =>
|
|
161
|
+
return this.getAll().filter((t) => we(e, t));
|
|
162
162
|
}
|
|
163
163
|
notify(e) {
|
|
164
|
-
|
|
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
|
|
172
|
+
return j.batch(
|
|
173
173
|
() => Promise.all(
|
|
174
|
-
e.map((t) => t.continue().catch(
|
|
174
|
+
e.map((t) => t.continue().catch(I))
|
|
175
175
|
)
|
|
176
176
|
);
|
|
177
177
|
}
|
|
178
178
|
};
|
|
179
|
-
function
|
|
179
|
+
function V(e) {
|
|
180
180
|
return e.options.scope?.id;
|
|
181
181
|
}
|
|
182
|
-
function
|
|
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: [] },
|
|
187
|
-
const
|
|
188
|
-
let
|
|
189
|
-
const
|
|
190
|
-
Object.defineProperty(
|
|
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 ?
|
|
193
|
-
|
|
192
|
+
get: () => (t.signal.aborted ? f = !0 : t.signal.addEventListener("abort", () => {
|
|
193
|
+
f = !0;
|
|
194
194
|
}), t.signal)
|
|
195
195
|
});
|
|
196
|
-
}, p =
|
|
197
|
-
if (
|
|
196
|
+
}, p = $t(t.options, t.fetchOptions), v = async (m, k, P) => {
|
|
197
|
+
if (f)
|
|
198
198
|
return Promise.reject();
|
|
199
|
-
if (
|
|
200
|
-
return Promise.resolve(
|
|
201
|
-
const
|
|
202
|
-
const
|
|
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:
|
|
205
|
+
pageParam: k,
|
|
206
206
|
direction: P ? "backward" : "forward",
|
|
207
207
|
meta: t.options.meta
|
|
208
208
|
};
|
|
209
|
-
return
|
|
210
|
-
})(),
|
|
209
|
+
return g(H), H;
|
|
210
|
+
})(), $ = await p(L), { maxPages: x } = t.options, S = P ? jt : Pt;
|
|
211
211
|
return {
|
|
212
|
-
pages:
|
|
213
|
-
pageParams:
|
|
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
|
|
217
|
+
const m = o === "backward", k = m ? vn : je, P = {
|
|
218
218
|
pages: s,
|
|
219
219
|
pageParams: i
|
|
220
|
-
},
|
|
221
|
-
u = await
|
|
220
|
+
}, Z = k(r, P);
|
|
221
|
+
u = await v(P, Z, m);
|
|
222
222
|
} else {
|
|
223
|
-
const
|
|
223
|
+
const m = e ?? s.length;
|
|
224
224
|
do {
|
|
225
|
-
const
|
|
226
|
-
if (
|
|
225
|
+
const k = d === 0 ? i[0] ?? r.initialPageParam : je(r, u);
|
|
226
|
+
if (d > 0 && k == null)
|
|
227
227
|
break;
|
|
228
|
-
u = await
|
|
229
|
-
} while (
|
|
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
|
-
|
|
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 =
|
|
242
|
+
) : t.fetchFn = l;
|
|
243
243
|
}
|
|
244
244
|
};
|
|
245
245
|
}
|
|
246
|
-
function
|
|
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
|
|
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
|
|
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
|
|
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 =
|
|
271
|
+
this.#r++, this.#r === 1 && (this.#i = Ot.subscribe(async (e) => {
|
|
272
272
|
e && (await this.resumePausedMutations(), this.#e.onFocus());
|
|
273
|
-
}), this.#a =
|
|
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(
|
|
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 =
|
|
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
|
|
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
|
-
|
|
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
|
|
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 =
|
|
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(
|
|
352
|
+
return Promise.all(r).then(I).catch(I);
|
|
353
353
|
}
|
|
354
354
|
invalidateQueries(e, t = {}) {
|
|
355
|
-
return
|
|
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 =
|
|
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(
|
|
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(
|
|
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
|
-
|
|
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(
|
|
386
|
+
return this.fetchQuery(e).then(I).catch(I);
|
|
387
387
|
}
|
|
388
388
|
fetchInfiniteQuery(e) {
|
|
389
|
-
return e.behavior =
|
|
389
|
+
return e.behavior = $e(e.pages), this.fetchQuery(e);
|
|
390
390
|
}
|
|
391
391
|
prefetchInfiniteQuery(e) {
|
|
392
|
-
return this.fetchInfiniteQuery(e).then(
|
|
392
|
+
return this.fetchInfiniteQuery(e).then(I).catch(I);
|
|
393
393
|
}
|
|
394
394
|
ensureInfiniteQueryData(e) {
|
|
395
|
-
return e.behavior =
|
|
395
|
+
return e.behavior = $e(e.pages), this.ensureQueryData(e);
|
|
396
396
|
}
|
|
397
397
|
resumePausedMutations() {
|
|
398
|
-
return
|
|
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(
|
|
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
|
-
|
|
421
|
+
xe(e, r.queryKey) && Object.assign(n, r.defaultOptions);
|
|
422
422
|
}), n;
|
|
423
423
|
}
|
|
424
424
|
setMutationDefaults(e, t) {
|
|
425
|
-
this.#s.set(
|
|
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
|
-
|
|
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 =
|
|
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 ===
|
|
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
|
|
462
|
+
function yn(e) {
|
|
463
463
|
return e;
|
|
464
464
|
}
|
|
465
|
-
function
|
|
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 ??
|
|
469
|
-
i.forEach(({ state:
|
|
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
|
-
...
|
|
475
|
+
...l
|
|
476
476
|
},
|
|
477
|
-
|
|
477
|
+
d
|
|
478
478
|
);
|
|
479
479
|
}), u.forEach(
|
|
480
|
-
({ queryKey:
|
|
481
|
-
const
|
|
482
|
-
let
|
|
483
|
-
const
|
|
484
|
-
if (
|
|
485
|
-
const
|
|
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
|
-
|
|
488
|
-
if (
|
|
489
|
-
const { fetchStatus:
|
|
490
|
-
|
|
491
|
-
...
|
|
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
|
-
|
|
496
|
+
Z = o.build(
|
|
497
497
|
e,
|
|
498
498
|
{
|
|
499
499
|
...e.getDefaultOptions().hydrate?.queries,
|
|
500
500
|
...n?.defaultOptions?.queries,
|
|
501
|
-
queryKey:
|
|
502
|
-
queryHash:
|
|
503
|
-
meta:
|
|
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
|
-
...
|
|
508
|
+
...l,
|
|
509
509
|
data: P,
|
|
510
510
|
fetchStatus: "idle",
|
|
511
|
-
status: P !== void 0 ? "success" :
|
|
511
|
+
status: P !== void 0 ? "success" : l.status
|
|
512
512
|
}
|
|
513
513
|
);
|
|
514
|
-
p &&
|
|
514
|
+
p && !L && !$ && // Only hydrate if dehydration is newer than any existing data,
|
|
515
515
|
// this is always true for new queries
|
|
516
|
-
(
|
|
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
|
|
523
|
+
var wn = ({
|
|
524
524
|
children: e,
|
|
525
525
|
options: t = {},
|
|
526
526
|
state: n,
|
|
527
527
|
queryClient: r
|
|
528
528
|
}) => {
|
|
529
|
-
const o =
|
|
529
|
+
const o = St(r), s = D.useRef(t);
|
|
530
530
|
s.current = t;
|
|
531
|
-
const i =
|
|
531
|
+
const i = D.useMemo(() => {
|
|
532
532
|
if (n) {
|
|
533
533
|
if (typeof n != "object")
|
|
534
534
|
return;
|
|
535
|
-
const u = o.getQueryCache(),
|
|
536
|
-
for (const
|
|
537
|
-
const p = u.get(
|
|
538
|
-
p ? (
|
|
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 (
|
|
541
|
-
return
|
|
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
|
|
545
|
-
i &&
|
|
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.
|
|
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
|
|
559
|
-
return /* @__PURE__ */
|
|
558
|
+
function bn(e) {
|
|
559
|
+
return /* @__PURE__ */ D.createElement(Ut, { flushSync: Lt.flushSync, ...e });
|
|
560
560
|
}
|
|
561
|
-
const
|
|
561
|
+
const zn = new _n({
|
|
562
562
|
defaultOptions: {
|
|
563
563
|
queries: {
|
|
564
564
|
staleTime: 1e3 * 60 * 5
|
|
565
565
|
}
|
|
566
566
|
}
|
|
567
|
-
}),
|
|
567
|
+
}), kn = ({
|
|
568
568
|
router: e,
|
|
569
569
|
hydrate: t = !1
|
|
570
|
-
}) => /* @__PURE__ */ a.jsx(
|
|
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(
|
|
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,
|
|
579
|
-
var
|
|
578
|
+
function r(u, d) {
|
|
579
|
+
var l;
|
|
580
580
|
Object.defineProperty(u, "_zod", {
|
|
581
581
|
value: u._zod ?? {},
|
|
582
582
|
enumerable: !1
|
|
583
|
-
}), (
|
|
584
|
-
for (const
|
|
585
|
-
|
|
586
|
-
u._zod.constr = i, u._zod.def =
|
|
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
|
|
594
|
-
const
|
|
595
|
-
r(
|
|
596
|
-
for (const
|
|
597
|
-
|
|
598
|
-
return
|
|
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
|
|
604
|
+
class Q extends Error {
|
|
605
605
|
constructor() {
|
|
606
606
|
super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
|
|
607
607
|
}
|
|
608
608
|
}
|
|
609
|
-
|
|
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
|
|
616
|
+
return rt;
|
|
612
617
|
}
|
|
613
|
-
function
|
|
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
|
|
622
|
+
function ue(e, t) {
|
|
618
623
|
return typeof t == "bigint" ? t.toString() : t;
|
|
619
624
|
}
|
|
620
|
-
function
|
|
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
|
|
635
|
+
function fe(e) {
|
|
631
636
|
return e == null;
|
|
632
637
|
}
|
|
633
|
-
function
|
|
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
|
-
|
|
642
|
+
const Oe = Symbol("evaluating");
|
|
643
|
+
function _(e, t, n) {
|
|
644
|
+
let r;
|
|
638
645
|
Object.defineProperty(e, t, {
|
|
639
646
|
get() {
|
|
640
|
-
|
|
641
|
-
|
|
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(
|
|
650
|
+
set(o) {
|
|
646
651
|
Object.defineProperty(e, t, {
|
|
647
|
-
value:
|
|
652
|
+
value: o
|
|
648
653
|
// configurable: true,
|
|
649
654
|
});
|
|
650
655
|
},
|
|
651
656
|
configurable: !0
|
|
652
657
|
});
|
|
653
658
|
}
|
|
654
|
-
function
|
|
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
|
|
678
|
+
const ot = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {
|
|
666
679
|
};
|
|
667
|
-
function
|
|
680
|
+
function ee(e) {
|
|
668
681
|
return typeof e == "object" && e !== null && !Array.isArray(e);
|
|
669
682
|
}
|
|
670
|
-
const
|
|
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
|
|
681
|
-
if (
|
|
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 !(
|
|
700
|
+
return !(ee(n) === !1 || Object.prototype.hasOwnProperty.call(n, "isPrototypeOf") === !1);
|
|
688
701
|
}
|
|
689
|
-
|
|
690
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
|
714
|
-
const n =
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
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
|
|
727
|
-
const n =
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
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
|
|
740
|
-
if (!
|
|
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
|
|
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
|
|
785
|
+
return N(e, n);
|
|
752
786
|
}
|
|
753
|
-
function
|
|
754
|
-
|
|
755
|
-
...e._zod.def,
|
|
787
|
+
function Sn(e, t) {
|
|
788
|
+
const n = q(e._zod.def, {
|
|
756
789
|
get shape() {
|
|
757
|
-
const
|
|
758
|
-
return
|
|
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
|
|
766
|
-
const r = t._zod.def
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
if (
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
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
|
|
789
|
-
const r = t._zod.def
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
if (
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
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
|
|
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
|
|
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
|
|
865
|
+
function J(e) {
|
|
825
866
|
return typeof e == "string" ? e : e?.message;
|
|
826
867
|
}
|
|
827
|
-
function
|
|
868
|
+
function F(e, t, n) {
|
|
828
869
|
const r = { ...e, path: e.path ?? [] };
|
|
829
870
|
if (!e.message) {
|
|
830
|
-
const o =
|
|
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
|
|
876
|
+
function me(e) {
|
|
836
877
|
return Array.isArray(e) ? "array" : typeof e == "string" ? "string" : "unknown";
|
|
837
878
|
}
|
|
838
|
-
function
|
|
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
|
|
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, "
|
|
855
|
-
|
|
856
|
-
|
|
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
|
-
},
|
|
862
|
-
function
|
|
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
|
|
869
|
-
const n =
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
if (
|
|
874
|
-
|
|
875
|
-
else if (
|
|
876
|
-
|
|
877
|
-
else if (
|
|
878
|
-
|
|
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
|
|
883
|
-
for (;
|
|
884
|
-
const
|
|
885
|
-
|
|
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
|
|
925
|
+
return r(e), n;
|
|
890
926
|
}
|
|
891
|
-
const
|
|
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
|
|
930
|
+
throw new Q();
|
|
895
931
|
if (i.issues.length) {
|
|
896
|
-
const u = new (o?.Err ?? e)(i.issues.map((
|
|
897
|
-
throw
|
|
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
|
-
},
|
|
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((
|
|
905
|
-
throw
|
|
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
|
-
},
|
|
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
|
|
947
|
+
throw new Q();
|
|
912
948
|
return s.issues.length ? {
|
|
913
949
|
success: !1,
|
|
914
|
-
error: new (e ??
|
|
950
|
+
error: new (e ?? ct)(s.issues.map((i) => F(i, o, R())))
|
|
915
951
|
} : { success: !0, data: s.value };
|
|
916
|
-
},
|
|
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) =>
|
|
957
|
+
error: new e(s.issues.map((i) => F(i, o, R())))
|
|
922
958
|
} : { success: !0, data: s.value };
|
|
923
|
-
},
|
|
924
|
-
|
|
925
|
-
return
|
|
926
|
-
}
|
|
927
|
-
const
|
|
928
|
-
|
|
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
|
|
933
|
-
return new RegExp(`^${
|
|
980
|
+
function fr(e) {
|
|
981
|
+
return new RegExp(`^${ht(e)}$`);
|
|
934
982
|
}
|
|
935
|
-
function
|
|
936
|
-
const t =
|
|
937
|
-
e.local && n.push(""), e.offset && n.push("([+-]\\d
|
|
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(`^${
|
|
987
|
+
return new RegExp(`^${dt}T(?:${r})$`);
|
|
940
988
|
}
|
|
941
|
-
const
|
|
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
|
-
},
|
|
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
|
-
}),
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
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
|
|
959
|
-
|
|
960
|
-
origin:
|
|
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:
|
|
1013
|
+
input: o,
|
|
965
1014
|
inst: e,
|
|
966
1015
|
continue: !t.abort
|
|
967
1016
|
});
|
|
968
1017
|
};
|
|
969
|
-
}),
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
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
|
|
981
|
-
|
|
982
|
-
origin:
|
|
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:
|
|
1036
|
+
input: o,
|
|
987
1037
|
inst: e,
|
|
988
1038
|
continue: !t.abort
|
|
989
1039
|
});
|
|
990
1040
|
};
|
|
991
|
-
}),
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
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
|
|
1003
|
-
|
|
1004
|
-
origin:
|
|
1005
|
-
...
|
|
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:
|
|
1059
|
+
input: r.value,
|
|
1009
1060
|
inst: e,
|
|
1010
1061
|
continue: !t.abort
|
|
1011
1062
|
});
|
|
1012
1063
|
};
|
|
1013
|
-
}),
|
|
1064
|
+
}), ce = /* @__PURE__ */ c("$ZodCheckStringFormat", (e, t) => {
|
|
1014
1065
|
var n, r;
|
|
1015
|
-
|
|
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
|
-
}),
|
|
1031
|
-
|
|
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
|
-
}),
|
|
1043
|
-
t.pattern ?? (t.pattern =
|
|
1044
|
-
}),
|
|
1045
|
-
t.pattern ?? (t.pattern =
|
|
1046
|
-
}),
|
|
1047
|
-
|
|
1048
|
-
const 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
|
-
}),
|
|
1064
|
-
|
|
1065
|
-
const n = new RegExp(`^${
|
|
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
|
-
}),
|
|
1081
|
-
|
|
1082
|
-
const n = new RegExp(`.*${
|
|
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
|
-
}),
|
|
1098
|
-
|
|
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
|
|
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
|
|
1176
|
+
const Or = {
|
|
1126
1177
|
major: 4,
|
|
1127
|
-
minor:
|
|
1128
|
-
patch:
|
|
1129
|
-
},
|
|
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 =
|
|
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 = (
|
|
1143
|
-
let
|
|
1144
|
-
for (const g of
|
|
1145
|
-
if (g._zod.when) {
|
|
1146
|
-
if (!g._zod.when(
|
|
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 (
|
|
1199
|
+
} else if (l)
|
|
1149
1200
|
continue;
|
|
1150
|
-
const
|
|
1151
|
-
if (
|
|
1152
|
-
throw new
|
|
1153
|
-
if (
|
|
1154
|
-
|
|
1155
|
-
await
|
|
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 (
|
|
1209
|
+
if (i.issues.length === p)
|
|
1159
1210
|
continue;
|
|
1160
|
-
|
|
1211
|
+
l || (l = M(i, p));
|
|
1161
1212
|
}
|
|
1162
1213
|
}
|
|
1163
|
-
return
|
|
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 = (
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
return
|
|
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(
|
|
1239
|
+
return o(d, r, u);
|
|
1173
1240
|
};
|
|
1174
1241
|
}
|
|
1175
1242
|
e["~standard"] = {
|
|
1176
1243
|
validate: (o) => {
|
|
1177
1244
|
try {
|
|
1178
|
-
const s =
|
|
1245
|
+
const s = Rn(e, o);
|
|
1179
1246
|
return s.success ? { value: s.data } : { issues: s.error?.issues };
|
|
1180
1247
|
} catch {
|
|
1181
|
-
return
|
|
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
|
-
}),
|
|
1188
|
-
|
|
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
|
-
}),
|
|
1202
|
-
|
|
1203
|
-
}),
|
|
1204
|
-
t.pattern ?? (t.pattern =
|
|
1205
|
-
}),
|
|
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 =
|
|
1286
|
+
t.pattern ?? (t.pattern = Ae(r));
|
|
1220
1287
|
} else
|
|
1221
|
-
t.pattern ?? (t.pattern =
|
|
1222
|
-
|
|
1223
|
-
}),
|
|
1224
|
-
t.pattern ?? (t.pattern =
|
|
1225
|
-
}),
|
|
1226
|
-
|
|
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)
|
|
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:
|
|
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
|
-
})),
|
|
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
|
-
}),
|
|
1258
|
-
t.pattern ?? (t.pattern =
|
|
1259
|
-
}),
|
|
1260
|
-
t.pattern ?? (t.pattern =
|
|
1261
|
-
}),
|
|
1262
|
-
t.pattern ?? (t.pattern =
|
|
1263
|
-
}),
|
|
1264
|
-
t.pattern ?? (t.pattern =
|
|
1265
|
-
}),
|
|
1266
|
-
t.pattern ?? (t.pattern =
|
|
1267
|
-
}),
|
|
1268
|
-
t.pattern ?? (t.pattern =
|
|
1269
|
-
}),
|
|
1270
|
-
t.pattern ?? (t.pattern =
|
|
1271
|
-
}),
|
|
1272
|
-
t.pattern ?? (t.pattern =
|
|
1273
|
-
}),
|
|
1274
|
-
t.pattern ?? (t.pattern =
|
|
1275
|
-
}),
|
|
1276
|
-
t.pattern ?? (t.pattern =
|
|
1277
|
-
}),
|
|
1278
|
-
t.pattern ?? (t.pattern =
|
|
1279
|
-
}),
|
|
1280
|
-
t.pattern ?? (t.pattern =
|
|
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
|
-
}),
|
|
1285
|
-
t.pattern ?? (t.pattern =
|
|
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
|
-
}),
|
|
1302
|
-
t.pattern ?? (t.pattern =
|
|
1303
|
-
}),
|
|
1304
|
-
t.pattern ?? (t.pattern =
|
|
1305
|
-
const
|
|
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 (
|
|
1374
|
+
if (r.length !== 2)
|
|
1308
1375
|
throw new Error();
|
|
1309
|
-
const s =
|
|
1310
|
-
if (
|
|
1376
|
+
const [o, s] = r;
|
|
1377
|
+
if (!s)
|
|
1311
1378
|
throw new Error();
|
|
1312
|
-
|
|
1379
|
+
const i = Number(s);
|
|
1380
|
+
if (`${i}` !== s)
|
|
1313
1381
|
throw new Error();
|
|
1314
|
-
|
|
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
|
|
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
|
|
1338
|
-
t.pattern ?? (t.pattern =
|
|
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
|
-
|
|
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
|
|
1351
|
-
if (!
|
|
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
|
|
1424
|
+
return ft(n);
|
|
1355
1425
|
}
|
|
1356
|
-
const
|
|
1357
|
-
t.pattern ?? (t.pattern =
|
|
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
|
-
|
|
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
|
-
}),
|
|
1369
|
-
t.pattern ?? (t.pattern =
|
|
1438
|
+
}), Yr = /* @__PURE__ */ c("$ZodE164", (e, t) => {
|
|
1439
|
+
t.pattern ?? (t.pattern = dr), y.init(e, t);
|
|
1370
1440
|
});
|
|
1371
|
-
function
|
|
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
|
|
1386
|
-
|
|
1387
|
-
|
|
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
|
-
}),
|
|
1396
|
-
|
|
1397
|
-
}),
|
|
1398
|
-
|
|
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
|
|
1406
|
-
e.issues.length && t.issues.push(...
|
|
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
|
|
1409
|
-
|
|
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],
|
|
1491
|
+
const u = o[i], d = t.element._zod.run({
|
|
1422
1492
|
value: u,
|
|
1423
1493
|
issues: []
|
|
1424
1494
|
}, r);
|
|
1425
|
-
|
|
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
|
|
1431
|
-
e.issues.length && t.issues.push(...
|
|
1432
|
-
}
|
|
1433
|
-
function
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
const n =
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
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
|
|
1463
|
-
});
|
|
1464
|
-
const
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
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
|
-
|
|
1470
|
-
const
|
|
1471
|
-
let
|
|
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
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
if (${
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
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[${
|
|
1610
|
+
newResult[${S}] = ${x}.value;
|
|
1498
1611
|
}
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
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
|
|
1513
|
-
const
|
|
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 = (
|
|
1516
|
-
g ?? (g =
|
|
1517
|
-
const m =
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
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
|
-
}),
|
|
1630
|
+
}), p);
|
|
1555
1631
|
};
|
|
1556
1632
|
});
|
|
1557
|
-
function
|
|
1558
|
-
for (const
|
|
1559
|
-
if (
|
|
1560
|
-
return t.value =
|
|
1561
|
-
|
|
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((
|
|
1566
|
-
}), t;
|
|
1567
|
-
}
|
|
1568
|
-
const
|
|
1569
|
-
|
|
1570
|
-
if (t.options.every((
|
|
1571
|
-
return new Set(t.options.flatMap((
|
|
1572
|
-
}),
|
|
1573
|
-
if (t.options.every((
|
|
1574
|
-
const
|
|
1575
|
-
return new RegExp(`^(${
|
|
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
|
-
})
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
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
|
-
},
|
|
1585
|
-
if (
|
|
1586
|
-
|
|
1665
|
+
}, s);
|
|
1666
|
+
if (l instanceof Promise)
|
|
1667
|
+
u.push(l), i = !0;
|
|
1587
1668
|
else {
|
|
1588
|
-
if (
|
|
1589
|
-
return
|
|
1590
|
-
|
|
1669
|
+
if (l.issues.length === 0)
|
|
1670
|
+
return l;
|
|
1671
|
+
u.push(l);
|
|
1591
1672
|
}
|
|
1592
1673
|
}
|
|
1593
|
-
return
|
|
1674
|
+
return i ? Promise.all(u).then((d) => Se(d, o, e, s)) : Se(u, o, e, s);
|
|
1594
1675
|
};
|
|
1595
|
-
}),
|
|
1596
|
-
|
|
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(([
|
|
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
|
|
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 (
|
|
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 =
|
|
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 =
|
|
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
|
|
1637
|
-
if (t.issues.length && e.issues.push(...t.issues), n.issues.length && e.issues.push(...n.issues),
|
|
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 =
|
|
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
|
|
1645
|
-
|
|
1646
|
-
const n =
|
|
1647
|
-
e._zod.values =
|
|
1648
|
-
const
|
|
1649
|
-
return
|
|
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:
|
|
1733
|
+
input: i,
|
|
1653
1734
|
inst: e
|
|
1654
|
-
}),
|
|
1735
|
+
}), o;
|
|
1655
1736
|
};
|
|
1656
|
-
}),
|
|
1657
|
-
|
|
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
|
|
1745
|
+
throw new Q();
|
|
1663
1746
|
return n.value = o, n;
|
|
1664
1747
|
};
|
|
1665
|
-
})
|
|
1666
|
-
|
|
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(`^(${
|
|
1669
|
-
}), e._zod.parse = (n, r) =>
|
|
1670
|
-
|
|
1671
|
-
|
|
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(`^(${
|
|
1674
|
-
}),
|
|
1675
|
-
}),
|
|
1676
|
-
|
|
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) =>
|
|
1775
|
+
return o instanceof Promise ? o.then((s) => Ce(s, t)) : Ce(o, t);
|
|
1681
1776
|
};
|
|
1682
1777
|
});
|
|
1683
|
-
function
|
|
1778
|
+
function Ce(e, t) {
|
|
1684
1779
|
return e.value === void 0 && (e.value = t.defaultValue), e;
|
|
1685
1780
|
}
|
|
1686
|
-
const
|
|
1687
|
-
|
|
1688
|
-
}),
|
|
1689
|
-
|
|
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) =>
|
|
1789
|
+
return o instanceof Promise ? o.then((s) => Ne(s, e)) : Ne(o, e);
|
|
1695
1790
|
};
|
|
1696
1791
|
});
|
|
1697
|
-
function
|
|
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
|
|
1706
|
-
|
|
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) =>
|
|
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) =>
|
|
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
|
-
}),
|
|
1723
|
-
|
|
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) =>
|
|
1826
|
+
return o instanceof Promise ? o.then((s) => G(s, t.out, r)) : G(o, t.out, r);
|
|
1726
1827
|
};
|
|
1727
1828
|
});
|
|
1728
|
-
function
|
|
1729
|
-
return
|
|
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
|
|
1732
|
-
|
|
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(
|
|
1837
|
+
return o instanceof Promise ? o.then(Re) : Re(o);
|
|
1735
1838
|
};
|
|
1736
1839
|
});
|
|
1737
|
-
function
|
|
1840
|
+
function Re(e) {
|
|
1738
1841
|
return e.value = Object.freeze(e.value), e;
|
|
1739
1842
|
}
|
|
1740
|
-
const
|
|
1741
|
-
|
|
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) =>
|
|
1745
|
-
|
|
1847
|
+
return o.then((s) => Fe(s, n, r, e));
|
|
1848
|
+
Fe(o, n, r, e);
|
|
1746
1849
|
};
|
|
1747
1850
|
});
|
|
1748
|
-
function
|
|
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(
|
|
1863
|
+
r._zod.def.params && (o.params = r._zod.def.params), t.issues.push(W(o));
|
|
1761
1864
|
}
|
|
1762
1865
|
}
|
|
1763
|
-
class
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
1792
|
-
return new
|
|
1900
|
+
function bo() {
|
|
1901
|
+
return new wo();
|
|
1793
1902
|
}
|
|
1794
|
-
const
|
|
1795
|
-
function
|
|
1903
|
+
const Y = /* @__PURE__ */ bo();
|
|
1904
|
+
function zo(e, t) {
|
|
1796
1905
|
return new e({
|
|
1797
1906
|
type: "string",
|
|
1798
|
-
...
|
|
1907
|
+
...h(t)
|
|
1799
1908
|
});
|
|
1800
1909
|
}
|
|
1801
|
-
function
|
|
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
|
-
...
|
|
1916
|
+
...h(t)
|
|
1808
1917
|
});
|
|
1809
1918
|
}
|
|
1810
|
-
function
|
|
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
|
-
...
|
|
1925
|
+
...h(t)
|
|
1817
1926
|
});
|
|
1818
1927
|
}
|
|
1819
|
-
function
|
|
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
|
-
...
|
|
1934
|
+
...h(t)
|
|
1826
1935
|
});
|
|
1827
1936
|
}
|
|
1828
|
-
function
|
|
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
|
-
...
|
|
1944
|
+
...h(t)
|
|
1836
1945
|
});
|
|
1837
1946
|
}
|
|
1838
|
-
function
|
|
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
|
-
...
|
|
1954
|
+
...h(t)
|
|
1846
1955
|
});
|
|
1847
1956
|
}
|
|
1848
|
-
function
|
|
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
|
-
...
|
|
1964
|
+
...h(t)
|
|
1856
1965
|
});
|
|
1857
1966
|
}
|
|
1858
|
-
function
|
|
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
|
-
...
|
|
1973
|
+
...h(t)
|
|
1865
1974
|
});
|
|
1866
1975
|
}
|
|
1867
|
-
function
|
|
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
|
-
...
|
|
1982
|
+
...h(t)
|
|
1874
1983
|
});
|
|
1875
1984
|
}
|
|
1876
|
-
function
|
|
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
|
-
...
|
|
1991
|
+
...h(t)
|
|
1883
1992
|
});
|
|
1884
1993
|
}
|
|
1885
|
-
function
|
|
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
|
-
...
|
|
2000
|
+
...h(t)
|
|
1892
2001
|
});
|
|
1893
2002
|
}
|
|
1894
|
-
function
|
|
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
|
-
...
|
|
2009
|
+
...h(t)
|
|
1901
2010
|
});
|
|
1902
2011
|
}
|
|
1903
|
-
function
|
|
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
|
-
...
|
|
2018
|
+
...h(t)
|
|
1910
2019
|
});
|
|
1911
2020
|
}
|
|
1912
|
-
function
|
|
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
|
-
...
|
|
2027
|
+
...h(t)
|
|
1919
2028
|
});
|
|
1920
2029
|
}
|
|
1921
|
-
function
|
|
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
|
-
...
|
|
2036
|
+
...h(t)
|
|
1928
2037
|
});
|
|
1929
2038
|
}
|
|
1930
|
-
function
|
|
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
|
-
...
|
|
2045
|
+
...h(t)
|
|
1937
2046
|
});
|
|
1938
2047
|
}
|
|
1939
|
-
function
|
|
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
|
-
...
|
|
2054
|
+
...h(t)
|
|
1946
2055
|
});
|
|
1947
2056
|
}
|
|
1948
|
-
function
|
|
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
|
-
...
|
|
2063
|
+
...h(t)
|
|
1955
2064
|
});
|
|
1956
2065
|
}
|
|
1957
|
-
function
|
|
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
|
-
...
|
|
2072
|
+
...h(t)
|
|
1964
2073
|
});
|
|
1965
2074
|
}
|
|
1966
|
-
function
|
|
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
|
-
...
|
|
2081
|
+
...h(t)
|
|
1973
2082
|
});
|
|
1974
2083
|
}
|
|
1975
|
-
function
|
|
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
|
-
...
|
|
2090
|
+
...h(t)
|
|
1982
2091
|
});
|
|
1983
2092
|
}
|
|
1984
|
-
function
|
|
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
|
-
...
|
|
2099
|
+
...h(t)
|
|
1991
2100
|
});
|
|
1992
2101
|
}
|
|
1993
|
-
function
|
|
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
|
-
...
|
|
2108
|
+
...h(t)
|
|
2000
2109
|
});
|
|
2001
2110
|
}
|
|
2002
|
-
function
|
|
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
|
-
...
|
|
2119
|
+
...h(t)
|
|
2011
2120
|
});
|
|
2012
2121
|
}
|
|
2013
|
-
function
|
|
2122
|
+
function Bo(e, t) {
|
|
2014
2123
|
return new e({
|
|
2015
2124
|
type: "string",
|
|
2016
2125
|
format: "date",
|
|
2017
2126
|
check: "string_format",
|
|
2018
|
-
...
|
|
2127
|
+
...h(t)
|
|
2019
2128
|
});
|
|
2020
2129
|
}
|
|
2021
|
-
function
|
|
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
|
-
...
|
|
2136
|
+
...h(t)
|
|
2028
2137
|
});
|
|
2029
2138
|
}
|
|
2030
|
-
function
|
|
2139
|
+
function Ko(e, t) {
|
|
2031
2140
|
return new e({
|
|
2032
2141
|
type: "string",
|
|
2033
2142
|
format: "duration",
|
|
2034
2143
|
check: "string_format",
|
|
2035
|
-
...
|
|
2144
|
+
...h(t)
|
|
2036
2145
|
});
|
|
2037
2146
|
}
|
|
2038
|
-
function
|
|
2147
|
+
function Ho(e) {
|
|
2039
2148
|
return new e({
|
|
2040
2149
|
type: "unknown"
|
|
2041
2150
|
});
|
|
2042
2151
|
}
|
|
2043
|
-
function
|
|
2152
|
+
function Vo(e, t) {
|
|
2044
2153
|
return new e({
|
|
2045
2154
|
type: "never",
|
|
2046
|
-
...
|
|
2155
|
+
...h(t)
|
|
2047
2156
|
});
|
|
2048
2157
|
}
|
|
2049
|
-
function
|
|
2050
|
-
return new
|
|
2158
|
+
function gt(e, t) {
|
|
2159
|
+
return new _r({
|
|
2051
2160
|
check: "max_length",
|
|
2052
|
-
...
|
|
2161
|
+
...h(t),
|
|
2053
2162
|
maximum: e
|
|
2054
2163
|
});
|
|
2055
2164
|
}
|
|
2056
|
-
function
|
|
2057
|
-
return new
|
|
2165
|
+
function ne(e, t) {
|
|
2166
|
+
return new yr({
|
|
2058
2167
|
check: "min_length",
|
|
2059
|
-
...
|
|
2168
|
+
...h(t),
|
|
2060
2169
|
minimum: e
|
|
2061
2170
|
});
|
|
2062
2171
|
}
|
|
2063
|
-
function
|
|
2064
|
-
return new
|
|
2172
|
+
function vt(e, t) {
|
|
2173
|
+
return new wr({
|
|
2065
2174
|
check: "length_equals",
|
|
2066
|
-
...
|
|
2175
|
+
...h(t),
|
|
2067
2176
|
length: e
|
|
2068
2177
|
});
|
|
2069
2178
|
}
|
|
2070
|
-
function
|
|
2071
|
-
return new
|
|
2179
|
+
function Jo(e, t) {
|
|
2180
|
+
return new br({
|
|
2072
2181
|
check: "string_format",
|
|
2073
2182
|
format: "regex",
|
|
2074
|
-
...
|
|
2183
|
+
...h(t),
|
|
2075
2184
|
pattern: e
|
|
2076
2185
|
});
|
|
2077
2186
|
}
|
|
2078
|
-
function
|
|
2079
|
-
return new
|
|
2187
|
+
function Go(e) {
|
|
2188
|
+
return new zr({
|
|
2080
2189
|
check: "string_format",
|
|
2081
2190
|
format: "lowercase",
|
|
2082
|
-
...
|
|
2191
|
+
...h(e)
|
|
2083
2192
|
});
|
|
2084
2193
|
}
|
|
2085
|
-
function
|
|
2086
|
-
return new
|
|
2194
|
+
function Yo(e) {
|
|
2195
|
+
return new kr({
|
|
2087
2196
|
check: "string_format",
|
|
2088
2197
|
format: "uppercase",
|
|
2089
|
-
...
|
|
2198
|
+
...h(e)
|
|
2090
2199
|
});
|
|
2091
2200
|
}
|
|
2092
|
-
function
|
|
2093
|
-
return new
|
|
2201
|
+
function Xo(e, t) {
|
|
2202
|
+
return new xr({
|
|
2094
2203
|
check: "string_format",
|
|
2095
2204
|
format: "includes",
|
|
2096
|
-
...
|
|
2205
|
+
...h(t),
|
|
2097
2206
|
includes: e
|
|
2098
2207
|
});
|
|
2099
2208
|
}
|
|
2100
|
-
function
|
|
2101
|
-
return new
|
|
2209
|
+
function es(e, t) {
|
|
2210
|
+
return new Zr({
|
|
2102
2211
|
check: "string_format",
|
|
2103
2212
|
format: "starts_with",
|
|
2104
|
-
...
|
|
2213
|
+
...h(t),
|
|
2105
2214
|
prefix: e
|
|
2106
2215
|
});
|
|
2107
2216
|
}
|
|
2108
|
-
function
|
|
2109
|
-
return new
|
|
2217
|
+
function ts(e, t) {
|
|
2218
|
+
return new $r({
|
|
2110
2219
|
check: "string_format",
|
|
2111
2220
|
format: "ends_with",
|
|
2112
|
-
...
|
|
2221
|
+
...h(t),
|
|
2113
2222
|
suffix: e
|
|
2114
2223
|
});
|
|
2115
2224
|
}
|
|
2116
|
-
function
|
|
2117
|
-
return new
|
|
2225
|
+
function K(e) {
|
|
2226
|
+
return new jr({
|
|
2118
2227
|
check: "overwrite",
|
|
2119
2228
|
tx: e
|
|
2120
2229
|
});
|
|
2121
2230
|
}
|
|
2122
|
-
function
|
|
2123
|
-
return
|
|
2231
|
+
function ns(e) {
|
|
2232
|
+
return K((t) => t.normalize(e));
|
|
2124
2233
|
}
|
|
2125
|
-
function
|
|
2126
|
-
return
|
|
2234
|
+
function rs() {
|
|
2235
|
+
return K((e) => e.trim());
|
|
2127
2236
|
}
|
|
2128
|
-
function
|
|
2129
|
-
return
|
|
2237
|
+
function os() {
|
|
2238
|
+
return K((e) => e.toLowerCase());
|
|
2130
2239
|
}
|
|
2131
|
-
function
|
|
2132
|
-
return
|
|
2240
|
+
function ss() {
|
|
2241
|
+
return K((e) => e.toUpperCase());
|
|
2133
2242
|
}
|
|
2134
|
-
function
|
|
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
|
-
...
|
|
2250
|
+
...h(n)
|
|
2142
2251
|
});
|
|
2143
2252
|
}
|
|
2144
|
-
function
|
|
2253
|
+
function as(e, t, n) {
|
|
2145
2254
|
return new e({
|
|
2146
2255
|
type: "custom",
|
|
2147
2256
|
check: "custom",
|
|
2148
2257
|
fn: t,
|
|
2149
|
-
...
|
|
2258
|
+
...h(n)
|
|
2150
2259
|
});
|
|
2151
2260
|
}
|
|
2152
|
-
|
|
2153
|
-
|
|
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
|
|
2156
|
-
return
|
|
2282
|
+
function ds(e) {
|
|
2283
|
+
return Lo(ls, e);
|
|
2157
2284
|
}
|
|
2158
|
-
const
|
|
2159
|
-
|
|
2285
|
+
const hs = /* @__PURE__ */ c("ZodISODate", (e, t) => {
|
|
2286
|
+
Mr.init(e, t), w.init(e, t);
|
|
2160
2287
|
});
|
|
2161
|
-
function
|
|
2162
|
-
return
|
|
2288
|
+
function fs(e) {
|
|
2289
|
+
return Bo(hs, e);
|
|
2163
2290
|
}
|
|
2164
|
-
const
|
|
2165
|
-
|
|
2291
|
+
const ps = /* @__PURE__ */ c("ZodISOTime", (e, t) => {
|
|
2292
|
+
Qr.init(e, t), w.init(e, t);
|
|
2166
2293
|
});
|
|
2167
|
-
function
|
|
2168
|
-
return
|
|
2294
|
+
function ms(e) {
|
|
2295
|
+
return Wo(ps, e);
|
|
2169
2296
|
}
|
|
2170
|
-
const
|
|
2171
|
-
|
|
2297
|
+
const gs = /* @__PURE__ */ c("ZodISODuration", (e, t) => {
|
|
2298
|
+
Lr.init(e, t), w.init(e, t);
|
|
2172
2299
|
});
|
|
2173
|
-
function
|
|
2174
|
-
return
|
|
2300
|
+
function vs(e) {
|
|
2301
|
+
return Ko(gs, e);
|
|
2175
2302
|
}
|
|
2176
|
-
const
|
|
2177
|
-
|
|
2303
|
+
const _s = (e, t) => {
|
|
2304
|
+
ct.init(e, t), e.name = "ZodError", Object.defineProperties(e, {
|
|
2178
2305
|
format: {
|
|
2179
|
-
value: (n) =>
|
|
2306
|
+
value: (n) => Nn(e, n)
|
|
2180
2307
|
// enumerable: false,
|
|
2181
2308
|
},
|
|
2182
2309
|
flatten: {
|
|
2183
|
-
value: (n) =>
|
|
2310
|
+
value: (n) => Cn(e, n)
|
|
2184
2311
|
// enumerable: false,
|
|
2185
2312
|
},
|
|
2186
2313
|
addIssue: {
|
|
2187
|
-
value: (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) =>
|
|
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
|
-
},
|
|
2332
|
+
}, O = c("ZodError", _s, {
|
|
2202
2333
|
Parent: Error
|
|
2203
|
-
}),
|
|
2204
|
-
|
|
2205
|
-
...t,
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
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
|
|
2341
|
+
return Y.add(r, { description: n }), r;
|
|
2215
2342
|
}, Object.defineProperty(e, "description", {
|
|
2216
2343
|
get() {
|
|
2217
|
-
return
|
|
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
|
|
2349
|
+
return Y.get(e);
|
|
2223
2350
|
const r = e.clone();
|
|
2224
|
-
return
|
|
2225
|
-
}, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e)),
|
|
2226
|
-
|
|
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(
|
|
2229
|
-
}),
|
|
2230
|
-
|
|
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
|
|
2233
|
-
return
|
|
2234
|
-
}
|
|
2235
|
-
const
|
|
2236
|
-
|
|
2237
|
-
}),
|
|
2238
|
-
|
|
2239
|
-
}),
|
|
2240
|
-
|
|
2241
|
-
}),
|
|
2242
|
-
|
|
2243
|
-
}),
|
|
2244
|
-
|
|
2245
|
-
}),
|
|
2246
|
-
|
|
2247
|
-
}),
|
|
2248
|
-
|
|
2249
|
-
}),
|
|
2250
|
-
|
|
2251
|
-
}),
|
|
2252
|
-
|
|
2253
|
-
}),
|
|
2254
|
-
|
|
2255
|
-
}),
|
|
2256
|
-
|
|
2257
|
-
}),
|
|
2258
|
-
|
|
2259
|
-
}),
|
|
2260
|
-
|
|
2261
|
-
}),
|
|
2262
|
-
|
|
2263
|
-
}),
|
|
2264
|
-
|
|
2265
|
-
}),
|
|
2266
|
-
|
|
2267
|
-
}),
|
|
2268
|
-
|
|
2269
|
-
}),
|
|
2270
|
-
|
|
2271
|
-
}),
|
|
2272
|
-
|
|
2273
|
-
}),
|
|
2274
|
-
|
|
2275
|
-
}),
|
|
2276
|
-
|
|
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
|
|
2279
|
-
return
|
|
2405
|
+
function Qe() {
|
|
2406
|
+
return Ho(Vs);
|
|
2280
2407
|
}
|
|
2281
|
-
const
|
|
2282
|
-
|
|
2408
|
+
const Js = /* @__PURE__ */ c("ZodNever", (e, t) => {
|
|
2409
|
+
no.init(e, t), z.init(e, t);
|
|
2283
2410
|
});
|
|
2284
|
-
function
|
|
2285
|
-
return
|
|
2411
|
+
function Gs(e) {
|
|
2412
|
+
return Vo(Js, e);
|
|
2286
2413
|
}
|
|
2287
|
-
const
|
|
2288
|
-
|
|
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
|
|
2291
|
-
return
|
|
2417
|
+
function Xs(e, t) {
|
|
2418
|
+
return is(Ys, e, t);
|
|
2292
2419
|
}
|
|
2293
|
-
const
|
|
2294
|
-
|
|
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
|
|
2423
|
+
function ti(e, t) {
|
|
2297
2424
|
const n = {
|
|
2298
2425
|
type: "object",
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
},
|
|
2302
|
-
...l(t)
|
|
2426
|
+
shape: e ?? {},
|
|
2427
|
+
...h(t)
|
|
2303
2428
|
};
|
|
2304
|
-
return new
|
|
2429
|
+
return new ei(n);
|
|
2305
2430
|
}
|
|
2306
|
-
const
|
|
2307
|
-
|
|
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
|
|
2310
|
-
return new
|
|
2434
|
+
function ri(e, t) {
|
|
2435
|
+
return new ni({
|
|
2311
2436
|
type: "union",
|
|
2312
2437
|
options: e,
|
|
2313
|
-
...
|
|
2438
|
+
...h(t)
|
|
2314
2439
|
});
|
|
2315
2440
|
}
|
|
2316
|
-
const
|
|
2317
|
-
|
|
2441
|
+
const oi = /* @__PURE__ */ c("ZodIntersection", (e, t) => {
|
|
2442
|
+
ao.init(e, t), z.init(e, t);
|
|
2318
2443
|
});
|
|
2319
|
-
function
|
|
2320
|
-
return new
|
|
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
|
|
2327
|
-
|
|
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
|
|
2461
|
+
return new de({
|
|
2337
2462
|
...t,
|
|
2338
2463
|
checks: [],
|
|
2339
|
-
...
|
|
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
|
|
2474
|
+
return new de({
|
|
2350
2475
|
...t,
|
|
2351
2476
|
checks: [],
|
|
2352
|
-
...
|
|
2477
|
+
...h(o),
|
|
2353
2478
|
entries: s
|
|
2354
2479
|
});
|
|
2355
2480
|
};
|
|
2356
2481
|
});
|
|
2357
|
-
function
|
|
2482
|
+
function yt(e, t) {
|
|
2358
2483
|
const n = Array.isArray(e) ? Object.fromEntries(e.map((r) => [r, r])) : e;
|
|
2359
|
-
return new
|
|
2484
|
+
return new de({
|
|
2360
2485
|
type: "enum",
|
|
2361
2486
|
entries: n,
|
|
2362
|
-
...
|
|
2487
|
+
...h(t)
|
|
2363
2488
|
});
|
|
2364
2489
|
}
|
|
2365
|
-
const
|
|
2366
|
-
|
|
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(
|
|
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),
|
|
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
|
|
2380
|
-
return new
|
|
2506
|
+
function ai(e) {
|
|
2507
|
+
return new ii({
|
|
2381
2508
|
type: "transform",
|
|
2382
2509
|
transform: e
|
|
2383
2510
|
});
|
|
2384
2511
|
}
|
|
2385
|
-
const
|
|
2386
|
-
|
|
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
|
|
2389
|
-
return new
|
|
2515
|
+
function Le(e) {
|
|
2516
|
+
return new wt({
|
|
2390
2517
|
type: "optional",
|
|
2391
2518
|
innerType: e
|
|
2392
2519
|
});
|
|
2393
2520
|
}
|
|
2394
|
-
const
|
|
2395
|
-
|
|
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
|
|
2398
|
-
return new
|
|
2524
|
+
function Be(e) {
|
|
2525
|
+
return new ci({
|
|
2399
2526
|
type: "nullable",
|
|
2400
2527
|
innerType: e
|
|
2401
2528
|
});
|
|
2402
2529
|
}
|
|
2403
|
-
const
|
|
2404
|
-
|
|
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
|
|
2407
|
-
return new
|
|
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
|
|
2416
|
-
|
|
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
|
|
2419
|
-
return new
|
|
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
|
|
2428
|
-
|
|
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
|
|
2431
|
-
return new
|
|
2557
|
+
function fi(e, t) {
|
|
2558
|
+
return new bt({
|
|
2432
2559
|
type: "nonoptional",
|
|
2433
2560
|
innerType: e,
|
|
2434
|
-
...
|
|
2561
|
+
...h(t)
|
|
2435
2562
|
});
|
|
2436
2563
|
}
|
|
2437
|
-
const
|
|
2438
|
-
|
|
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
|
|
2441
|
-
return new
|
|
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
|
|
2448
|
-
|
|
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
|
|
2451
|
-
return new
|
|
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
|
|
2459
|
-
|
|
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
|
|
2462
|
-
return new
|
|
2588
|
+
function _i(e) {
|
|
2589
|
+
return new vi({
|
|
2463
2590
|
type: "readonly",
|
|
2464
2591
|
innerType: e
|
|
2465
2592
|
});
|
|
2466
2593
|
}
|
|
2467
|
-
const
|
|
2468
|
-
|
|
2594
|
+
const yi = /* @__PURE__ */ c("ZodCustom", (e, t) => {
|
|
2595
|
+
yo.init(e, t), z.init(e, t);
|
|
2469
2596
|
});
|
|
2470
|
-
function
|
|
2471
|
-
|
|
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
|
|
2478
|
-
return
|
|
2600
|
+
function bi(e) {
|
|
2601
|
+
return cs(e);
|
|
2479
2602
|
}
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
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 =
|
|
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) =>
|
|
2620
|
+
}).then((s) => zi.parse(s))
|
|
2509
2621
|
});
|
|
2510
|
-
if (
|
|
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(
|
|
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(
|
|
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
|
-
|
|
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
|
-
},
|
|
2538
|
-
const e =
|
|
2539
|
-
|
|
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
|
-
},
|
|
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,
|
|
2553
|
-
const { site: e } =
|
|
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(
|
|
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:
|
|
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(
|
|
2703
|
+
/* @__PURE__ */ a.jsx(Yt, { size: 12 })
|
|
2592
2704
|
]
|
|
2593
2705
|
}
|
|
2594
|
-
) : /* @__PURE__ */ a.jsx(
|
|
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(
|
|
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(
|
|
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
|
-
},
|
|
2765
|
+
}, zt = ({
|
|
2654
2766
|
shouldScaleBackground: e = !0,
|
|
2655
2767
|
...t
|
|
2656
2768
|
}) => /* @__PURE__ */ a.jsx(
|
|
2657
|
-
|
|
2769
|
+
A.Root,
|
|
2658
2770
|
{
|
|
2659
2771
|
shouldScaleBackground: e,
|
|
2660
2772
|
...t
|
|
2661
2773
|
}
|
|
2662
2774
|
);
|
|
2663
|
-
|
|
2664
|
-
const
|
|
2665
|
-
|
|
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
|
-
|
|
2673
|
-
const
|
|
2674
|
-
({ className: e, children: t, hideBar: n = !0, ...r }, o) => /* @__PURE__ */ a.jsxs(
|
|
2675
|
-
/* @__PURE__ */ a.jsx(
|
|
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
|
-
|
|
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
|
-
|
|
2694
|
-
const
|
|
2695
|
-
|
|
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
|
-
|
|
2706
|
-
const
|
|
2707
|
-
|
|
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
|
-
|
|
2715
|
-
const
|
|
2826
|
+
Ti.displayName = A.Description.displayName;
|
|
2827
|
+
const xt = ({
|
|
2716
2828
|
children: e,
|
|
2717
2829
|
className: t
|
|
2718
2830
|
}) => {
|
|
2719
|
-
const { options: n } =
|
|
2720
|
-
return
|
|
2831
|
+
const { options: n } = re(), r = Xe(null);
|
|
2832
|
+
return oe(() => {
|
|
2721
2833
|
const o = r.current?.querySelector('[aria-current="page"]');
|
|
2722
|
-
|
|
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(
|
|
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
|
-
|
|
2752
|
-
const
|
|
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(
|
|
2757
|
-
/* @__PURE__ */ a.jsx(
|
|
2868
|
+
/* @__PURE__ */ a.jsxs(xt, { children: [
|
|
2869
|
+
/* @__PURE__ */ a.jsx(C.Target, { name: "navigation-before" }),
|
|
2758
2870
|
t.map((n) => /* @__PURE__ */ a.jsx(
|
|
2759
|
-
|
|
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(
|
|
2877
|
+
/* @__PURE__ */ a.jsx(C.Target, { name: "navigation-after" })
|
|
2766
2878
|
] }),
|
|
2767
2879
|
/* @__PURE__ */ a.jsx(
|
|
2768
|
-
|
|
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(
|
|
2885
|
+
/* @__PURE__ */ a.jsx(ln, { children: /* @__PURE__ */ a.jsx(un, { children: "Navigation" }) }),
|
|
2774
2886
|
t.map((n) => /* @__PURE__ */ a.jsx(
|
|
2775
|
-
|
|
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
|
-
] }),
|
|
2786
|
-
const [t, n] =
|
|
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
|
-
|
|
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
|
-
|
|
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(
|
|
2802
|
-
/* @__PURE__ */ a.jsx(
|
|
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(
|
|
2927
|
+
/* @__PURE__ */ a.jsx(C.Target, { name: "content-before" }),
|
|
2816
2928
|
e,
|
|
2817
|
-
/* @__PURE__ */ a.jsx(
|
|
2929
|
+
/* @__PURE__ */ a.jsx(C.Target, { name: "content-after" })
|
|
2818
2930
|
]
|
|
2819
2931
|
}
|
|
2820
2932
|
)
|
|
2821
2933
|
]
|
|
2822
2934
|
}
|
|
2823
2935
|
);
|
|
2824
|
-
},
|
|
2825
|
-
const { authentication: t } =
|
|
2826
|
-
return
|
|
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(
|
|
2830
|
-
/* @__PURE__ */ a.jsx(
|
|
2831
|
-
/* @__PURE__ */ a.jsx(
|
|
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(
|
|
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(
|
|
2955
|
+
/* @__PURE__ */ a.jsx(ji, {})
|
|
2844
2956
|
] });
|
|
2845
|
-
},
|
|
2846
|
-
const { meta: t, options: n } =
|
|
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(
|
|
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:
|
|
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
|
-
},
|
|
2984
|
+
}, Ri = ({
|
|
2866
2985
|
title: e = "An error occurred",
|
|
2867
2986
|
message: t,
|
|
2868
2987
|
category: n
|
|
2869
|
-
}) => /* @__PURE__ */ a.jsxs(
|
|
2870
|
-
n && /* @__PURE__ */ a.jsx(
|
|
2871
|
-
e && /* @__PURE__ */ a.jsx(
|
|
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
|
-
] }),
|
|
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
|
-
},
|
|
3055
|
+
}, Ui = ({ statusCode: e, message: t }) => {
|
|
2937
3056
|
if (e === 404)
|
|
2938
|
-
return /* @__PURE__ */ a.jsx(
|
|
2939
|
-
const n =
|
|
3057
|
+
return /* @__PURE__ */ a.jsx(fn, {});
|
|
3058
|
+
const n = Fi(e);
|
|
2940
3059
|
return /* @__PURE__ */ a.jsx(
|
|
2941
|
-
|
|
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
|
|
2950
|
-
return /* @__PURE__ */ a.jsx(
|
|
3068
|
+
function qi({ error: e }) {
|
|
3069
|
+
return /* @__PURE__ */ a.jsx(an, { error: e });
|
|
2951
3070
|
}
|
|
2952
|
-
const
|
|
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
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
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
|