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