zudoku 0.0.0-fix-create-zudoku-run-build.eff26864 → 0.0.0-fix-downgrade-openapi-parser.aac00796
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +32 -12
- package/client.d.ts +8 -0
- package/dist/app/entry.server.js +14 -1
- package/dist/app/entry.server.js.map +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 +6 -1
- package/dist/config/validators/BuildSchema.d.ts +15 -7
- package/dist/config/validators/BuildSchema.js +19 -2
- package/dist/config/validators/BuildSchema.js.map +1 -1
- package/dist/config/validators/InputNavigationSchema.d.ts +184 -24
- package/dist/config/validators/InputNavigationSchema.js +1 -0
- package/dist/config/validators/InputNavigationSchema.js.map +1 -1
- package/dist/config/validators/icon-types.d.ts +1 -1
- package/dist/config/validators/icon-types.js +39 -0
- package/dist/config/validators/icon-types.js.map +1 -1
- package/dist/config/validators/validate.d.ts +45 -17
- package/dist/config/validators/validate.js +31 -8
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/flat-config.d.ts +357 -0
- package/dist/lib/assets/language-icons/c.d.ts +3 -0
- package/dist/lib/assets/language-icons/c.js +4 -0
- package/dist/lib/assets/language-icons/c.js.map +1 -0
- package/dist/lib/assets/language-icons/commonlisp.d.ts +3 -0
- package/dist/lib/assets/language-icons/commonlisp.js +4 -0
- package/dist/lib/assets/language-icons/commonlisp.js.map +1 -0
- package/dist/lib/assets/language-icons/cpp.d.ts +3 -0
- package/dist/lib/assets/language-icons/cpp.js +4 -0
- package/dist/lib/assets/language-icons/cpp.js.map +1 -0
- package/dist/lib/assets/language-icons/csharp.d.ts +3 -0
- package/dist/lib/assets/language-icons/csharp.js +4 -0
- package/dist/lib/assets/language-icons/csharp.js.map +1 -0
- package/dist/lib/assets/language-icons/css.d.ts +3 -0
- package/dist/lib/assets/language-icons/css.js +4 -0
- package/dist/lib/assets/language-icons/css.js.map +1 -0
- package/dist/lib/assets/language-icons/dart.d.ts +3 -0
- package/dist/lib/assets/language-icons/dart.js +4 -0
- package/dist/lib/assets/language-icons/dart.js.map +1 -0
- package/dist/lib/assets/language-icons/elixir.d.ts +3 -0
- package/dist/lib/assets/language-icons/elixir.js +4 -0
- package/dist/lib/assets/language-icons/elixir.js.map +1 -0
- package/dist/lib/assets/language-icons/go.d.ts +3 -0
- package/dist/lib/assets/language-icons/go.js +4 -0
- package/dist/lib/assets/language-icons/go.js.map +1 -0
- package/dist/lib/assets/language-icons/graphql.d.ts +3 -0
- package/dist/lib/assets/language-icons/graphql.js +4 -0
- package/dist/lib/assets/language-icons/graphql.js.map +1 -0
- package/dist/lib/assets/language-icons/html.d.ts +3 -0
- package/dist/lib/assets/language-icons/html.js +4 -0
- package/dist/lib/assets/language-icons/html.js.map +1 -0
- package/dist/lib/assets/language-icons/java.d.ts +3 -0
- package/dist/lib/assets/language-icons/java.js +4 -0
- package/dist/lib/assets/language-icons/java.js.map +1 -0
- package/dist/lib/assets/language-icons/javascript.d.ts +3 -0
- package/dist/lib/assets/language-icons/javascript.js +4 -0
- package/dist/lib/assets/language-icons/javascript.js.map +1 -0
- package/dist/lib/assets/language-icons/json.d.ts +3 -0
- package/dist/lib/assets/language-icons/json.js +4 -0
- package/dist/lib/assets/language-icons/json.js.map +1 -0
- package/dist/lib/assets/language-icons/kotlin.d.ts +3 -0
- package/dist/lib/assets/language-icons/kotlin.js +4 -0
- package/dist/lib/assets/language-icons/kotlin.js.map +1 -0
- package/dist/lib/assets/language-icons/markdown.d.ts +3 -0
- package/dist/lib/assets/language-icons/markdown.js +4 -0
- package/dist/lib/assets/language-icons/markdown.js.map +1 -0
- package/dist/lib/assets/language-icons/mdx.d.ts +3 -0
- package/dist/lib/assets/language-icons/mdx.js +4 -0
- package/dist/lib/assets/language-icons/mdx.js.map +1 -0
- package/dist/lib/assets/language-icons/objectivec.d.ts +3 -0
- package/dist/lib/assets/language-icons/objectivec.js +4 -0
- package/dist/lib/assets/language-icons/objectivec.js.map +1 -0
- package/dist/lib/assets/language-icons/ocaml.d.ts +3 -0
- package/dist/lib/assets/language-icons/ocaml.js +4 -0
- package/dist/lib/assets/language-icons/ocaml.js.map +1 -0
- package/dist/lib/assets/language-icons/php.d.ts +3 -0
- package/dist/lib/assets/language-icons/php.js +4 -0
- package/dist/lib/assets/language-icons/php.js.map +1 -0
- package/dist/lib/assets/language-icons/powershell.d.ts +3 -0
- package/dist/lib/assets/language-icons/powershell.js +4 -0
- package/dist/lib/assets/language-icons/powershell.js.map +1 -0
- package/dist/lib/assets/language-icons/python.d.ts +3 -0
- package/dist/lib/assets/language-icons/python.js +4 -0
- package/dist/lib/assets/language-icons/python.js.map +1 -0
- package/dist/lib/assets/language-icons/react.d.ts +3 -0
- package/dist/lib/assets/language-icons/react.js +4 -0
- package/dist/lib/assets/language-icons/react.js.map +1 -0
- package/dist/lib/assets/language-icons/ruby.d.ts +3 -0
- package/dist/lib/assets/language-icons/ruby.js +4 -0
- package/dist/lib/assets/language-icons/ruby.js.map +1 -0
- package/dist/lib/assets/language-icons/rust.d.ts +3 -0
- package/dist/lib/assets/language-icons/rust.js +4 -0
- package/dist/lib/assets/language-icons/rust.js.map +1 -0
- package/dist/lib/assets/language-icons/scala.d.ts +3 -0
- package/dist/lib/assets/language-icons/scala.js +4 -0
- package/dist/lib/assets/language-icons/scala.js.map +1 -0
- package/dist/lib/assets/language-icons/shell.d.ts +3 -0
- package/dist/lib/assets/language-icons/shell.js +4 -0
- package/dist/lib/assets/language-icons/shell.js.map +1 -0
- package/dist/lib/assets/language-icons/swift.d.ts +3 -0
- package/dist/lib/assets/language-icons/swift.js +4 -0
- package/dist/lib/assets/language-icons/swift.js.map +1 -0
- package/dist/lib/assets/language-icons/toml.d.ts +3 -0
- package/dist/lib/assets/language-icons/toml.js +4 -0
- package/dist/lib/assets/language-icons/toml.js.map +1 -0
- package/dist/lib/assets/language-icons/typescript.d.ts +3 -0
- package/dist/lib/assets/language-icons/typescript.js +4 -0
- package/dist/lib/assets/language-icons/typescript.js.map +1 -0
- package/dist/lib/assets/language-icons/xml.d.ts +3 -0
- package/dist/lib/assets/language-icons/xml.js +4 -0
- package/dist/lib/assets/language-icons/xml.js.map +1 -0
- package/dist/lib/assets/language-icons/yaml.d.ts +3 -0
- package/dist/lib/assets/language-icons/yaml.js +4 -0
- package/dist/lib/assets/language-icons/yaml.js.map +1 -0
- package/dist/lib/assets/language-icons/zig.d.ts +3 -0
- package/dist/lib/assets/language-icons/zig.js +4 -0
- package/dist/lib/assets/language-icons/zig.js.map +1 -0
- package/dist/lib/authentication/authentication.d.ts +17 -9
- package/dist/lib/authentication/components/OAuthErrorPage.js +1 -1
- package/dist/lib/authentication/components/OAuthErrorPage.js.map +1 -1
- package/dist/lib/authentication/components/SignIn.js +6 -5
- package/dist/lib/authentication/components/SignIn.js.map +1 -1
- package/dist/lib/authentication/components/SignOut.js +6 -6
- package/dist/lib/authentication/components/SignOut.js.map +1 -1
- package/dist/lib/authentication/components/SignUp.js +5 -5
- package/dist/lib/authentication/components/SignUp.js.map +1 -1
- package/dist/lib/authentication/hook.d.ts +3 -2
- package/dist/lib/authentication/hook.js +12 -8
- package/dist/lib/authentication/hook.js.map +1 -1
- package/dist/lib/authentication/providers/auth0.js +8 -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/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 +35 -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/components/BuildCheck.js +2 -2
- package/dist/lib/components/BuildCheck.js.map +1 -1
- package/dist/lib/components/Heading.js +1 -5
- package/dist/lib/components/Heading.js.map +1 -1
- package/dist/lib/components/LanguageIcon.d.ts +3 -0
- package/dist/lib/components/LanguageIcon.js +163 -0
- package/dist/lib/components/LanguageIcon.js.map +1 -0
- package/dist/lib/components/Main.js +1 -1
- package/dist/lib/components/Main.js.map +1 -1
- package/dist/lib/components/Meta.js +1 -1
- package/dist/lib/components/Meta.js.map +1 -1
- package/dist/lib/components/Zudoku.js +3 -3
- 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 +14 -4
- package/dist/lib/components/index.js +2 -0
- package/dist/lib/components/index.js.map +1 -1
- package/dist/lib/components/navigation/NavigationItem.js +1 -1
- 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 +6 -14
- 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/hooks/index.d.ts +3 -3
- package/dist/lib/oas/graphql/index.js +37 -2
- package/dist/lib/oas/graphql/index.js.map +1 -1
- package/dist/lib/plugins/api-catalog/Catalog.js +7 -1
- package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -1
- package/dist/lib/plugins/api-keys/CreateApiKeyDialog.d.ts +11 -0
- package/dist/lib/plugins/api-keys/CreateApiKeyDialog.js +9 -0
- package/dist/lib/plugins/api-keys/CreateApiKeyDialog.js.map +1 -0
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js +5 -10
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
- package/dist/lib/plugins/markdown/MdxPage.d.ts +2 -1
- package/dist/lib/plugins/markdown/MdxPage.js +29 -5
- 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/MCPEndpoint.d.ts +5 -0
- package/dist/lib/plugins/openapi/MCPEndpoint.js +56 -0
- package/dist/lib/plugins/openapi/MCPEndpoint.js.map +1 -0
- package/dist/lib/plugins/openapi/OperationList.d.ts +0 -2
- package/dist/lib/plugins/openapi/OperationList.js +22 -6
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationListItem.d.ts +2 -2
- package/dist/lib/plugins/openapi/OperationListItem.js +8 -3
- package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/ParameterList.d.ts +2 -2
- package/dist/lib/plugins/openapi/ParameterList.js +1 -1
- package/dist/lib/plugins/openapi/ParameterList.js.map +1 -1
- package/dist/lib/plugins/openapi/ParameterListItem.d.ts +2 -3
- package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.d.ts +3 -4
- 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 +2 -2
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/Sidecar.d.ts +4 -3
- package/dist/lib/plugins/openapi/Sidecar.js +6 -9
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/SidecarExamples.d.ts +2 -4
- package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/fragment-masking.d.ts +1 -1
- package/dist/lib/plugins/openapi/graphql/fragment-masking.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/gql.d.ts +2 -2
- package/dist/lib/plugins/openapi/graphql/gql.js +3 -2
- package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/graphql.d.ts +11 -2
- package/dist/lib/plugins/openapi/graphql/graphql.js +11 -0
- package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
- package/dist/lib/plugins/openapi/index.js +5 -10
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/plugins/openapi/interfaces.d.ts +3 -2
- package/dist/lib/plugins/openapi/playground/BodyPanel.d.ts +2 -2
- package/dist/lib/plugins/openapi/playground/BodyPanel.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js +1 -1
- package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.d.ts +3 -3
- package/dist/lib/plugins/openapi/playground/Playground.d.ts +2 -2
- package/dist/lib/plugins/openapi/playground/Playground.js +13 -3
- package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +3 -1
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/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/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/AllOfGroup/AllOfGroupView.d.ts +2 -1
- package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupView.js +2 -2
- package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupView.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaView.js +5 -5
- package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/UnionView.d.ts +2 -1
- package/dist/lib/plugins/openapi/schema/UnionView.js +13 -7
- package/dist/lib/plugins/openapi/schema/UnionView.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/union-helpers.js +25 -1
- package/dist/lib/plugins/openapi/schema/union-helpers.js.map +1 -1
- package/dist/lib/plugins/openapi/state.d.ts +5 -3
- package/dist/lib/shiki.d.ts +1 -1
- package/dist/lib/shiki.js +26 -2
- package/dist/lib/shiki.js.map +1 -1
- package/dist/lib/ui/Callout.d.ts +5 -5
- package/dist/lib/ui/Callout.js +5 -5
- package/dist/lib/ui/Callout.js.map +1 -1
- package/dist/lib/ui/Carousel.js.map +1 -1
- package/dist/lib/ui/CodeBlock.d.ts +1 -1
- package/dist/lib/ui/CodeBlock.js +3 -28
- package/dist/lib/ui/CodeBlock.js.map +1 -1
- package/dist/lib/ui/Dialog.d.ts +12 -18
- package/dist/lib/ui/Dialog.js +30 -17
- package/dist/lib/ui/Dialog.js.map +1 -1
- package/dist/lib/ui/EmbeddedCodeBlock.d.ts +3 -1
- package/dist/lib/ui/EmbeddedCodeBlock.js +2 -2
- package/dist/lib/ui/EmbeddedCodeBlock.js.map +1 -1
- package/dist/lib/ui/ReactComponentDoc.d.ts +20 -0
- package/dist/lib/ui/ReactComponentDoc.js +10 -0
- package/dist/lib/ui/ReactComponentDoc.js.map +1 -0
- package/dist/lib/ui/Secret.d.ts +18 -0
- package/dist/lib/ui/Secret.js +26 -0
- package/dist/lib/ui/Secret.js.map +1 -0
- package/dist/lib/ui/SyntaxHighlight.d.ts +1 -0
- package/dist/lib/ui/SyntaxHighlight.js.map +1 -1
- package/dist/lib/ui/Value.d.ts +5 -0
- package/dist/lib/ui/Value.js +13 -0
- package/dist/lib/ui/Value.js.map +1 -0
- package/dist/lib/util/MdxComponents.d.ts +2 -1
- package/dist/lib/util/MdxComponents.js +3 -2
- package/dist/lib/util/MdxComponents.js.map +1 -1
- package/dist/lib/util/pastellize.js +4 -4
- package/dist/lib/util/pastellize.js.map +1 -1
- package/dist/lib/util/syncZustandState.d.ts +5 -0
- package/dist/lib/util/syncZustandState.js +14 -0
- package/dist/lib/util/syncZustandState.js.map +1 -0
- package/dist/lib/util/traverse.d.ts +1 -0
- package/dist/lib/util/traverse.js +25 -0
- package/dist/lib/util/traverse.js.map +1 -1
- package/dist/vite/api/SchemaManager.d.ts +3 -1
- package/dist/vite/api/SchemaManager.js +32 -9
- package/dist/vite/api/SchemaManager.js.map +1 -1
- package/dist/vite/api/SchemaManager.test.js +2 -2
- package/dist/vite/api/SchemaManager.test.js.map +1 -1
- package/dist/vite/api/schema-codegen.js +60 -41
- package/dist/vite/api/schema-codegen.js.map +1 -1
- package/dist/vite/api/schema-codegen.test.js +75 -2
- package/dist/vite/api/schema-codegen.test.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/plugin-api.js +18 -17
- 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 -45
- package/dist/vite/plugin-docs.js.map +1 -1
- package/dist/vite/plugin-markdown-export.d.ts +21 -0
- package/dist/vite/plugin-markdown-export.js +141 -0
- package/dist/vite/plugin-markdown-export.js.map +1 -0
- package/dist/vite/plugin-mdx.d.ts +1 -1
- package/dist/vite/plugin-mdx.js +41 -32
- 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.js +2 -0
- package/dist/vite/plugin.js.map +1 -1
- package/dist/vite/prerender/prerender.js +37 -4
- package/dist/vite/prerender/prerender.js.map +1 -1
- package/dist/zuplo/enrich-with-zuplo-mcp.d.ts +4 -0
- package/dist/zuplo/enrich-with-zuplo-mcp.js +117 -0
- package/dist/zuplo/enrich-with-zuplo-mcp.js.map +1 -0
- package/dist/zuplo/enrich-with-zuplo.d.ts +1 -0
- package/dist/zuplo/enrich-with-zuplo.js +1 -1
- package/dist/zuplo/enrich-with-zuplo.js.map +1 -1
- package/dist/zuplo/with-zuplo-processors.js +2 -0
- package/dist/zuplo/with-zuplo-processors.js.map +1 -1
- package/lib/{Button-B3o-2Xdf.js → Button-DmS4u8Lj.js} +2 -2
- package/lib/{Button-B3o-2Xdf.js.map → Button-DmS4u8Lj.js.map} +1 -1
- package/lib/{Card-CMDQUPM4.js → Card-KFniaZn5.js} +2 -2
- package/lib/{Card-CMDQUPM4.js.map → Card-KFniaZn5.js.map} +1 -1
- package/lib/{CategoryHeading-DCpZu3yG.js → CategoryHeading-DhmodDcq.js} +2 -2
- package/lib/{CategoryHeading-DCpZu3yG.js.map → CategoryHeading-DhmodDcq.js.map} +1 -1
- package/lib/{Command-CUSlH0gJ.js → Command-CUcrW3qs.js} +3 -3
- package/lib/{Command-CUSlH0gJ.js.map → Command-CUcrW3qs.js.map} +1 -1
- package/lib/Dialog-BQciPiHN.js +144 -0
- package/lib/Dialog-BQciPiHN.js.map +1 -0
- package/lib/{Drawer-DJ05s2pH.js → Drawer-Ci7XwhqT.js} +2 -2
- package/lib/{Drawer-DJ05s2pH.js.map → Drawer-Ci7XwhqT.js.map} +1 -1
- package/lib/DropdownMenu-BZ2NKQ3K.js +126 -0
- package/lib/DropdownMenu-BZ2NKQ3K.js.map +1 -0
- package/lib/{Slot-BbdqiRXo.js → ErrorAlert-DE3Sf66a.js} +2176 -2251
- package/lib/ErrorAlert-DE3Sf66a.js.map +1 -0
- package/lib/MdxPage-DZfeC0QY.js +240 -0
- package/lib/MdxPage-DZfeC0QY.js.map +1 -0
- package/lib/{OAuthErrorPage-rAKHHveX.js → OAuthErrorPage-BycMozgn.js} +9 -9
- package/lib/{OAuthErrorPage-rAKHHveX.js.map → OAuthErrorPage-BycMozgn.js.map} +1 -1
- package/lib/{OasProvider-BW4OzAuR.js → OasProvider-Bf5zBDBY.js} +4 -4
- package/lib/{OasProvider-BW4OzAuR.js.map → OasProvider-Bf5zBDBY.js.map} +1 -1
- package/lib/OperationList-Cmiw1xm2.js +5446 -0
- package/lib/OperationList-Cmiw1xm2.js.map +1 -0
- package/lib/{Pagination-ZI2yyuxj.js → Pagination-CJszmeSA.js} +4 -4
- package/lib/{Pagination-ZI2yyuxj.js.map → Pagination-CJszmeSA.js.map} +1 -1
- package/lib/RouteGuard-DhU3LRr1.js +81 -0
- package/lib/RouteGuard-DhU3LRr1.js.map +1 -0
- package/lib/{RouterError-BYHrbLtD.js → RouterError-VDLnrFqF.js} +7 -7
- package/lib/{RouterError-BYHrbLtD.js.map → RouterError-VDLnrFqF.js.map} +1 -1
- package/lib/{SchemaList-C4Sk-tLI.js → SchemaList-xZSf3IMh.js} +10 -10
- package/lib/{SchemaList-C4Sk-tLI.js.map → SchemaList-xZSf3IMh.js.map} +1 -1
- package/lib/SchemaView-tHXTm5oM.js +458 -0
- package/lib/SchemaView-tHXTm5oM.js.map +1 -0
- package/lib/Select-C1DeCqKv.js +372 -0
- package/lib/Select-C1DeCqKv.js.map +1 -0
- package/lib/SignUp-6SGx9Yyq.js +50 -0
- package/lib/SignUp-6SGx9Yyq.js.map +1 -0
- package/lib/{Spinner-mNLZ6awP.js → Spinner-CI6bRyZw.js} +2 -2
- package/lib/{Spinner-mNLZ6awP.js.map → Spinner-CI6bRyZw.js.map} +1 -1
- package/lib/{SyntaxHighlight-CvzJ7DNa.js → SyntaxHighlight-zvlnSnHB.js} +815 -784
- package/lib/SyntaxHighlight-zvlnSnHB.js.map +1 -0
- package/lib/{Toc-BAa-kpqN.js → Toc-Da9yp7lo.js} +6 -6
- package/lib/Toc-Da9yp7lo.js.map +1 -0
- package/lib/ZudokuContext-BUZ5hkWB.js +1508 -0
- package/lib/ZudokuContext-BUZ5hkWB.js.map +1 -0
- package/lib/c-B-NUhs61.js +46 -0
- package/lib/c-B-NUhs61.js.map +1 -0
- package/lib/chunk-PVWAREVJ-BMhpCH5D.js +7965 -0
- package/lib/chunk-PVWAREVJ-BMhpCH5D.js.map +1 -0
- package/lib/{circular-BFte5TUt.js → circular-DvuimBGQ.js} +30 -30
- package/lib/{circular-BFte5TUt.js.map → circular-DvuimBGQ.js.map} +1 -1
- package/lib/commonlisp-De080z23.js +28 -0
- package/lib/commonlisp-De080z23.js.map +1 -0
- package/lib/cpp-79Paht7T.js +53 -0
- package/lib/cpp-79Paht7T.js.map +1 -0
- package/lib/{createServer-B4giw6jv.js → createServer-D9UvCoDf.js} +3411 -3342
- package/lib/createServer-D9UvCoDf.js.map +1 -0
- package/lib/csharp-D8MIL50B.js +53 -0
- package/lib/csharp-D8MIL50B.js.map +1 -0
- package/lib/css-Bt6hr1td.js +54 -0
- package/lib/css-Bt6hr1td.js.map +1 -0
- package/lib/dart-B0vy1jWB.js +60 -0
- package/lib/dart-B0vy1jWB.js.map +1 -0
- package/lib/elixir-Ds8r0sF8.js +25 -0
- package/lib/elixir-Ds8r0sF8.js.map +1 -0
- package/lib/{errors-CjmCml50.js → errors-CuGgh3hf.js} +3 -3
- package/lib/{errors-CjmCml50.js.map → errors-CuGgh3hf.js.map} +1 -1
- package/lib/go-D2VsmIOS.js +25 -0
- package/lib/go-D2VsmIOS.js.map +1 -0
- package/lib/graphql-BtA6M4m5.js +25 -0
- package/lib/graphql-BtA6M4m5.js.map +1 -0
- package/lib/hook-CMeoxziF.js +40 -0
- package/lib/hook-CMeoxziF.js.map +1 -0
- package/lib/html-MGnI2uzP.js +33 -0
- package/lib/html-MGnI2uzP.js.map +1 -0
- package/lib/{index-BuKx9nrj.js → index-B1rmok4X.js} +209 -207
- package/lib/index-B1rmok4X.js.map +1 -0
- package/lib/{index-Dp3Fmnfq.js → index-Cr9_YzOZ.js} +908 -938
- package/lib/index-Cr9_YzOZ.js.map +1 -0
- package/lib/index-CrcNWbel.js.map +1 -1
- package/lib/{index-DmNq2fbN.js → index-nGbmHh_A.js} +2 -2
- package/lib/index-nGbmHh_A.js.map +1 -0
- package/lib/{index-CQGi1b3U.js → index-rYHsvtTo.js} +166 -50
- package/lib/index-rYHsvtTo.js.map +1 -0
- package/lib/index.esm-BYObtETB.js +1294 -0
- package/lib/index.esm-BYObtETB.js.map +1 -0
- package/lib/index.esm-BnYHxCYC.js.map +1 -1
- package/lib/java-CVLzHfb1.js +53 -0
- package/lib/java-CVLzHfb1.js.map +1 -0
- package/lib/javascript-CcmIpL4G.js +10 -0
- package/lib/javascript-CcmIpL4G.js.map +1 -0
- package/lib/json-4AyP4uiY.js +25 -0
- package/lib/json-4AyP4uiY.js.map +1 -0
- package/lib/{jsx-runtime-C5mzlN2N.js → jsx-runtime-BzflLqGi.js} +110 -112
- package/lib/jsx-runtime-BzflLqGi.js.map +1 -0
- package/lib/kotlin-v2plddBQ.js +37 -0
- package/lib/kotlin-v2plddBQ.js.map +1 -0
- package/lib/markdown-DYGWCmGQ.js +25 -0
- package/lib/markdown-DYGWCmGQ.js.map +1 -0
- package/lib/mdx-CHwYvXd4.js +32 -0
- package/lib/mdx-CHwYvXd4.js.map +1 -0
- package/lib/{mutation-CiMUdKRU.js → mutation-BSU0xu4m.js} +2 -2
- package/lib/{mutation-CiMUdKRU.js.map → mutation-BSU0xu4m.js.map} +1 -1
- package/lib/objectivec-HZY8shkd.js +32 -0
- package/lib/objectivec-HZY8shkd.js.map +1 -0
- package/lib/ocaml-DqsdDdwb.js +52 -0
- package/lib/ocaml-DqsdDdwb.js.map +1 -0
- package/lib/php-rQXzo7K_.js +25 -0
- package/lib/php-rQXzo7K_.js.map +1 -0
- package/lib/powershell-CQje9pm1.js +39 -0
- package/lib/powershell-CQje9pm1.js.map +1 -0
- package/lib/processors/traverse.js.map +1 -1
- package/lib/python-QIQAE5Ei.js +32 -0
- package/lib/python-QIQAE5Ei.js.map +1 -0
- package/lib/react-DHpVpxRv.js +24 -0
- package/lib/react-DHpVpxRv.js.map +1 -0
- package/lib/ruby-B2dU8Ny5.js +25 -0
- package/lib/ruby-B2dU8Ny5.js.map +1 -0
- package/lib/rust-DYnLHAi2.js +25 -0
- package/lib/rust-DYnLHAi2.js.map +1 -0
- package/lib/scala-CeKInBR8.js +25 -0
- package/lib/scala-CeKInBR8.js.map +1 -0
- package/lib/shell-HUv9oVtp.js +25 -0
- package/lib/shell-HUv9oVtp.js.map +1 -0
- package/lib/swift-B4z6ig1Z.js +25 -0
- package/lib/swift-B4z6ig1Z.js.map +1 -0
- package/lib/toml-Co9mpdct.js +32 -0
- package/lib/toml-Co9mpdct.js.map +1 -0
- package/lib/typescript-C26xdBDC.js +32 -0
- package/lib/typescript-C26xdBDC.js.map +1 -0
- package/lib/ui/Accordion.js +1 -1
- package/lib/ui/ActionButton.js +3 -3
- package/lib/ui/Alert.js +1 -1
- package/lib/ui/AlertDialog.js +1 -1
- package/lib/ui/Badge.js +1 -1
- package/lib/ui/Breadcrumb.js +1 -1
- package/lib/ui/Button.js +1 -1
- package/lib/ui/Callout.js +19 -19
- package/lib/ui/Callout.js.map +1 -1
- package/lib/ui/Card.js +1 -1
- package/lib/ui/Carousel.js +1 -1
- package/lib/ui/Carousel.js.map +1 -1
- package/lib/ui/Checkbox.js +1 -1
- package/lib/ui/CodeBlock.js +217 -6
- package/lib/ui/CodeBlock.js.map +1 -1
- package/lib/ui/Command.js +2 -2
- package/lib/ui/Dialog.js +135 -105
- package/lib/ui/Dialog.js.map +1 -1
- package/lib/ui/Drawer.js +2 -2
- package/lib/ui/DropdownMenu.js +1 -1
- package/lib/ui/EmbeddedCodeBlock.js +23 -20
- package/lib/ui/EmbeddedCodeBlock.js.map +1 -1
- package/lib/ui/Form.js +2 -2
- package/lib/ui/HoverCard.js +1 -1
- package/lib/ui/Input.js +1 -1
- package/lib/ui/Label.js +1 -1
- package/lib/ui/Pagination.js +1 -1
- package/lib/ui/Popover.js +1 -1
- package/lib/ui/Progress.js +1 -1
- package/lib/ui/RadioGroup.js +1 -1
- package/lib/ui/ReactComponentDoc.js +28 -0
- package/lib/ui/ReactComponentDoc.js.map +1 -0
- package/lib/ui/ScrollArea.js +1 -1
- package/lib/ui/Secret.js +106 -0
- package/lib/ui/Secret.js.map +1 -0
- package/lib/ui/Select.js +1 -1
- package/lib/ui/Skeleton.js +1 -1
- package/lib/ui/Slider.js +1 -1
- package/lib/ui/Stepper.js +1 -1
- package/lib/ui/Switch.js +1 -1
- package/lib/ui/SyntaxHighlight.js +4 -4
- package/lib/ui/Tabs.js +1 -1
- package/lib/ui/Textarea.js +1 -1
- package/lib/ui/Toggle.js +1 -1
- package/lib/ui/ToggleGroup.js +1 -1
- package/lib/ui/Tooltip.js +1 -1
- package/lib/ui/Value.js +39 -0
- package/lib/ui/Value.js.map +1 -0
- package/lib/useCopyToClipboard-B_085nfO.js +14 -0
- package/lib/useCopyToClipboard-B_085nfO.js.map +1 -0
- package/lib/{useExposedProps-BH9aq4MD.js → useExposedProps-U3pmsHaG.js} +34 -34
- package/lib/{useExposedProps-BH9aq4MD.js.map → useExposedProps-U3pmsHaG.js.map} +1 -1
- package/lib/xml-BQOOC04j.js +25 -0
- package/lib/xml-BQOOC04j.js.map +1 -0
- package/lib/yaml-BGsJItKv.js +32 -0
- package/lib/yaml-BGsJItKv.js.map +1 -0
- package/lib/zig-CUV2sTct.js +35 -0
- package/lib/zig-CUV2sTct.js.map +1 -0
- package/lib/zudoku.__internal.js +1050 -940
- package/lib/zudoku.__internal.js.map +1 -1
- package/lib/zudoku.auth-auth0.js +23 -22
- package/lib/zudoku.auth-auth0.js.map +1 -1
- package/lib/zudoku.auth-azureb2c.js +34 -35
- package/lib/zudoku.auth-azureb2c.js.map +1 -1
- package/lib/zudoku.auth-clerk.js +41 -41
- package/lib/zudoku.auth-clerk.js.map +1 -1
- package/lib/zudoku.auth-openid.js +104 -108
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.auth-supabase.js +111 -52
- package/lib/zudoku.auth-supabase.js.map +1 -1
- package/lib/zudoku.components.js +21 -20
- package/lib/zudoku.hooks.js +6 -6
- package/lib/zudoku.hooks.js.map +1 -1
- package/lib/zudoku.icons.js +1 -1
- package/lib/zudoku.plugin-api-catalog.js +34 -28
- package/lib/zudoku.plugin-api-catalog.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +302 -327
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-custom-pages.js +1 -1
- package/lib/zudoku.plugin-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 +47 -48
- package/lib/zudoku.plugin-search-pagefind.js.map +1 -1
- package/lib/zudoku.router.js +2502 -118
- package/lib/zudoku.router.js.map +1 -1
- package/package.json +83 -72
- package/src/app/entry.server.tsx +16 -6
- package/src/app/main.css +71 -19
- package/src/lib/assets/language-icons/c.tsx +31 -0
- package/src/lib/assets/language-icons/commonlisp.tsx +22 -0
- package/src/lib/assets/language-icons/cpp.tsx +35 -0
- package/src/lib/assets/language-icons/csharp.tsx +35 -0
- package/src/lib/assets/language-icons/css.tsx +36 -0
- package/src/lib/assets/language-icons/dart.tsx +39 -0
- package/src/lib/assets/language-icons/elixir.tsx +19 -0
- package/src/lib/assets/language-icons/go.tsx +19 -0
- package/src/lib/assets/language-icons/graphql.tsx +19 -0
- package/src/lib/assets/language-icons/html.tsx +24 -0
- package/src/lib/assets/language-icons/java.tsx +35 -0
- package/src/lib/assets/language-icons/javascript.tsx +11 -0
- package/src/lib/assets/language-icons/json.tsx +19 -0
- package/src/lib/assets/language-icons/kotlin.tsx +30 -0
- package/src/lib/assets/language-icons/markdown.tsx +19 -0
- package/src/lib/assets/language-icons/mdx.tsx +23 -0
- package/src/lib/assets/language-icons/objectivec.tsx +23 -0
- package/src/lib/assets/language-icons/ocaml.tsx +34 -0
- package/src/lib/assets/language-icons/php.tsx +19 -0
- package/src/lib/assets/language-icons/powershell.tsx +27 -0
- package/src/lib/assets/language-icons/python.tsx +23 -0
- package/src/lib/assets/language-icons/react.tsx +21 -0
- package/src/lib/assets/language-icons/ruby.tsx +19 -0
- package/src/lib/assets/language-icons/rust.tsx +19 -0
- package/src/lib/assets/language-icons/scala.tsx +19 -0
- package/src/lib/assets/language-icons/shell.tsx +19 -0
- package/src/lib/assets/language-icons/swift.tsx +19 -0
- package/src/lib/assets/language-icons/toml.tsx +23 -0
- package/src/lib/assets/language-icons/typescript.tsx +23 -0
- package/src/lib/assets/language-icons/xml.tsx +19 -0
- package/src/lib/assets/language-icons/yaml.tsx +23 -0
- package/src/lib/assets/language-icons/zig.tsx +32 -0
- package/src/lib/authentication/authentication.ts +22 -4
- package/src/lib/authentication/components/OAuthErrorPage.tsx +1 -1
- package/src/lib/authentication/components/SignIn.tsx +7 -5
- package/src/lib/authentication/components/SignOut.tsx +7 -6
- package/src/lib/authentication/components/SignUp.tsx +5 -8
- package/src/lib/authentication/hook.ts +21 -10
- package/src/lib/authentication/providers/auth0.tsx +9 -4
- package/src/lib/authentication/providers/azureb2c.tsx +10 -3
- package/src/lib/authentication/providers/clerk.tsx +9 -2
- 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 +59 -43
- package/src/lib/authentication/state.ts +3 -23
- package/src/lib/authentication/use-broadcast/LICENSE.md +12 -3
- package/src/lib/components/BuildCheck.tsx +12 -10
- package/src/lib/components/Heading.tsx +2 -6
- package/src/lib/components/LanguageIcon.tsx +181 -0
- package/src/lib/components/Main.tsx +1 -1
- package/src/lib/components/Meta.tsx +13 -0
- package/src/lib/components/Zudoku.tsx +3 -3
- package/src/lib/components/cache.ts +9 -5
- package/src/lib/components/context/ZudokuContext.ts +11 -2
- package/src/lib/components/index.ts +2 -0
- package/src/lib/components/navigation/NavigationItem.tsx +1 -1
- package/src/lib/components/navigation/Toc.tsx +3 -3
- package/src/lib/core/RouteGuard.tsx +33 -13
- package/src/lib/core/ZudokuContext.ts +3 -0
- package/src/lib/oas/graphql/index.ts +37 -2
- package/src/lib/plugins/api-catalog/Catalog.tsx +7 -0
- package/src/lib/plugins/api-keys/CreateApiKeyDialog.tsx +49 -0
- package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +18 -64
- package/src/lib/plugins/markdown/MdxPage.tsx +126 -9
- 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/MCPEndpoint.tsx +273 -0
- package/src/lib/plugins/openapi/OperationList.tsx +30 -10
- package/src/lib/plugins/openapi/OperationListItem.tsx +107 -81
- package/src/lib/plugins/openapi/ParameterList.tsx +3 -5
- package/src/lib/plugins/openapi/ParameterListItem.tsx +3 -9
- package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +6 -11
- package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +3 -2
- package/src/lib/plugins/openapi/Sidecar.tsx +10 -10
- package/src/lib/plugins/openapi/SidecarExamples.tsx +2 -9
- package/src/lib/plugins/openapi/graphql/fragment-masking.ts +2 -1
- package/src/lib/plugins/openapi/graphql/gql.ts +7 -6
- package/src/lib/plugins/openapi/graphql/graphql.ts +26 -3
- package/src/lib/plugins/openapi/index.tsx +10 -30
- package/src/lib/plugins/openapi/interfaces.ts +3 -2
- package/src/lib/plugins/openapi/playground/BodyPanel.tsx +2 -2
- package/src/lib/plugins/openapi/playground/CollapsibleHeader.tsx +2 -2
- package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +3 -3
- package/src/lib/plugins/openapi/playground/Playground.tsx +16 -5
- package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +13 -2
- package/src/lib/plugins/openapi/playground/RequestLoginDialog.tsx +20 -1
- package/src/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.tsx +2 -2
- package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +124 -52
- 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/AllOfGroup/AllOfGroupView.tsx +11 -4
- package/src/lib/plugins/openapi/schema/SchemaView.tsx +18 -12
- package/src/lib/plugins/openapi/schema/UnionView.tsx +56 -36
- package/src/lib/plugins/openapi/schema/union-helpers.ts +30 -2
- package/src/lib/shiki.ts +29 -2
- package/src/lib/ui/Callout.tsx +10 -5
- package/src/lib/ui/Carousel.tsx +0 -1
- package/src/lib/ui/CodeBlock.tsx +7 -42
- package/src/lib/ui/Dialog.tsx +112 -106
- package/src/lib/ui/EmbeddedCodeBlock.tsx +6 -3
- package/src/lib/ui/ReactComponentDoc.tsx +68 -0
- package/src/lib/ui/Secret.tsx +123 -0
- package/src/lib/ui/SyntaxHighlight.tsx +6 -1
- package/src/lib/ui/Value.tsx +42 -0
- package/src/lib/util/MdxComponents.tsx +3 -2
- package/src/lib/util/pastellize.ts +4 -4
- package/src/lib/util/syncZustandState.ts +22 -0
- package/src/lib/util/traverse.ts +36 -0
- package/src/shiki/langs/hurl.js +1 -0
- package/src/shiki/langs/kdl.js +1 -0
- package/src/shiki/langs/pkl.js +1 -0
- package/src/shiki/langs/rosmsg.js +1 -0
- package/lib/CodeBlock-CX_J17Hf.js +0 -98
- package/lib/CodeBlock-CX_J17Hf.js.map +0 -1
- package/lib/Dialog-BmgXWOaz.js +0 -114
- package/lib/Dialog-BmgXWOaz.js.map +0 -1
- package/lib/MdxPage-yXbTtcWf.js +0 -111
- package/lib/MdxPage-yXbTtcWf.js.map +0 -1
- package/lib/OperationList-CWxpdIbO.js +0 -5165
- package/lib/OperationList-CWxpdIbO.js.map +0 -1
- package/lib/RouteGuard-BIksrt_C.js +0 -56
- package/lib/RouteGuard-BIksrt_C.js.map +0 -1
- package/lib/SchemaView-B2BeAuci.js +0 -429
- package/lib/SchemaView-B2BeAuci.js.map +0 -1
- package/lib/Select-DWh0wSay.js +0 -273
- package/lib/Select-DWh0wSay.js.map +0 -1
- package/lib/SignUp-CznaQsRx.js +0 -56
- package/lib/SignUp-CznaQsRx.js.map +0 -1
- package/lib/Slot-BbdqiRXo.js.map +0 -1
- package/lib/SyntaxHighlight-CvzJ7DNa.js.map +0 -1
- package/lib/Toc-BAa-kpqN.js.map +0 -1
- package/lib/ZudokuContext-BR-lnR7O.js +0 -1285
- package/lib/ZudokuContext-BR-lnR7O.js.map +0 -1
- package/lib/chunk-QMGIS6GS-DqecZ6nq.js +0 -9204
- package/lib/chunk-QMGIS6GS-DqecZ6nq.js.map +0 -1
- package/lib/createServer-B4giw6jv.js.map +0 -1
- package/lib/hook-B4Q30zMI.js +0 -247
- package/lib/hook-B4Q30zMI.js.map +0 -1
- package/lib/index-BuKx9nrj.js.map +0 -1
- package/lib/index-CQGi1b3U.js.map +0 -1
- package/lib/index-DmNq2fbN.js.map +0 -1
- package/lib/index-Dp3Fmnfq.js.map +0 -1
- package/lib/index.esm-CdzlRw50.js +0 -1254
- package/lib/index.esm-CdzlRw50.js.map +0 -1
- package/lib/jsx-runtime-C5mzlN2N.js.map +0 -1
package/lib/zudoku.router.js
CHANGED
|
@@ -1,123 +1,2507 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { f as We, s as $, g as ve, F as j, R as qe, S as Se, h as Ge, c as Xe, E as D, j as Ee, k as X, l as U, n as Ye, o as oe, p as Je, q as Ke, t as _e, v as Qe, w as be, x as Ce, i as A, y as De, z as Ze, A as C, B as et, C as tt, D as rt, G as at, O as nt, H as L, I as ot, J as st, K as it, M as lt, P as T, Q as ut, T as dt, r as ct, U as Z, V as ft, W as ht, X as pt, Y as mt, Z as yt, _ as Rt, $ as wt, a0 as gt, a1 as vt } from "./chunk-PVWAREVJ-BMhpCH5D.js";
|
|
2
|
+
import { a2 as Ur, a3 as Mr, a4 as Nr, a5 as Or, a6 as zr, a7 as Br, a8 as $r, L as jr, a9 as Vr, aa as Wr, ab as qr, ac as Gr, N as Xr, ad as Yr, ae as Jr, af as Kr, ag as Qr, ah as Zr, ai as ea, aj as ta, ak as ra, al as aa, am as na, an as oa, ao as sa, ap as ia, aq as la, ar as ua, as as da, at as ca, au as fa, av as ha, aw as pa, ax as ma, ay as ya, az as Ra, aA as wa, aB as ga, aC as va, aD as Sa, aE as Ea, aF as _a, aG as ba, aH as Ca, aI as Da, aJ as Aa, aK as xa, aL as Fa, m as ka, aM as La, aN as Ta, aO as Ha, aP as Ia, aQ as Pa, aR as Ua, aS as Ma, aT as Na, aU as Oa, aV as za, aW as Ba, aX as $a, aY as ja, aZ as Va, a_ as Wa, a$ as qa, b0 as Ga, d as Xa, e as Ya, b1 as Ja, u as Ka, b2 as Qa, b3 as Za, b4 as en, b5 as tn, b as rn, b6 as an, b7 as nn, b8 as on, b9 as sn, a as ln, ba as un, bb as dn } from "./chunk-PVWAREVJ-BMhpCH5D.js";
|
|
3
|
+
import * as g from "react";
|
|
4
|
+
import E from "react";
|
|
5
|
+
import * as St from "react-dom";
|
|
6
|
+
var k = {}, se;
|
|
7
|
+
function Et() {
|
|
8
|
+
if (se) return k;
|
|
9
|
+
se = 1, Object.defineProperty(k, "__esModule", { value: !0 }), k.parse = o, k.serialize = l;
|
|
10
|
+
const e = /^[\u0021-\u003A\u003C\u003E-\u007E]+$/, t = /^[\u0021-\u003A\u003C-\u007E]*$/, r = /^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i, a = /^[\u0020-\u003A\u003D-\u007E]*$/, n = Object.prototype.toString, s = /* @__PURE__ */ (() => {
|
|
11
|
+
const c = function() {
|
|
12
|
+
};
|
|
13
|
+
return c.prototype = /* @__PURE__ */ Object.create(null), c;
|
|
14
|
+
})();
|
|
15
|
+
function o(c, p) {
|
|
16
|
+
const f = new s(), m = c.length;
|
|
17
|
+
if (m < 2)
|
|
18
|
+
return f;
|
|
19
|
+
const y = p?.decode || d;
|
|
20
|
+
let R = 0;
|
|
21
|
+
do {
|
|
22
|
+
const S = c.indexOf("=", R);
|
|
23
|
+
if (S === -1)
|
|
24
|
+
break;
|
|
25
|
+
const v = c.indexOf(";", R), w = v === -1 ? m : v;
|
|
26
|
+
if (S > w) {
|
|
27
|
+
R = c.lastIndexOf(";", S - 1) + 1;
|
|
28
|
+
continue;
|
|
29
|
+
}
|
|
30
|
+
const _ = u(c, R, S), I = i(c, S, _), ae = c.slice(_, I);
|
|
31
|
+
if (f[ae] === void 0) {
|
|
32
|
+
let ne = u(c, S + 1, w), je = i(c, w, ne);
|
|
33
|
+
const Ve = y(c.slice(ne, je));
|
|
34
|
+
f[ae] = Ve;
|
|
35
|
+
}
|
|
36
|
+
R = w + 1;
|
|
37
|
+
} while (R < m);
|
|
38
|
+
return f;
|
|
39
|
+
}
|
|
40
|
+
function u(c, p, f) {
|
|
41
|
+
do {
|
|
42
|
+
const m = c.charCodeAt(p);
|
|
43
|
+
if (m !== 32 && m !== 9)
|
|
44
|
+
return p;
|
|
45
|
+
} while (++p < f);
|
|
46
|
+
return f;
|
|
47
|
+
}
|
|
48
|
+
function i(c, p, f) {
|
|
49
|
+
for (; p > f; ) {
|
|
50
|
+
const m = c.charCodeAt(--p);
|
|
51
|
+
if (m !== 32 && m !== 9)
|
|
52
|
+
return p + 1;
|
|
53
|
+
}
|
|
54
|
+
return f;
|
|
55
|
+
}
|
|
56
|
+
function l(c, p, f) {
|
|
57
|
+
const m = f?.encode || encodeURIComponent;
|
|
58
|
+
if (!e.test(c))
|
|
59
|
+
throw new TypeError(`argument name is invalid: ${c}`);
|
|
60
|
+
const y = m(p);
|
|
61
|
+
if (!t.test(y))
|
|
62
|
+
throw new TypeError(`argument val is invalid: ${p}`);
|
|
63
|
+
let R = c + "=" + y;
|
|
64
|
+
if (!f)
|
|
65
|
+
return R;
|
|
66
|
+
if (f.maxAge !== void 0) {
|
|
67
|
+
if (!Number.isInteger(f.maxAge))
|
|
68
|
+
throw new TypeError(`option maxAge is invalid: ${f.maxAge}`);
|
|
69
|
+
R += "; Max-Age=" + f.maxAge;
|
|
70
|
+
}
|
|
71
|
+
if (f.domain) {
|
|
72
|
+
if (!r.test(f.domain))
|
|
73
|
+
throw new TypeError(`option domain is invalid: ${f.domain}`);
|
|
74
|
+
R += "; Domain=" + f.domain;
|
|
75
|
+
}
|
|
76
|
+
if (f.path) {
|
|
77
|
+
if (!a.test(f.path))
|
|
78
|
+
throw new TypeError(`option path is invalid: ${f.path}`);
|
|
79
|
+
R += "; Path=" + f.path;
|
|
80
|
+
}
|
|
81
|
+
if (f.expires) {
|
|
82
|
+
if (!h(f.expires) || !Number.isFinite(f.expires.valueOf()))
|
|
83
|
+
throw new TypeError(`option expires is invalid: ${f.expires}`);
|
|
84
|
+
R += "; Expires=" + f.expires.toUTCString();
|
|
85
|
+
}
|
|
86
|
+
if (f.httpOnly && (R += "; HttpOnly"), f.secure && (R += "; Secure"), f.partitioned && (R += "; Partitioned"), f.priority)
|
|
87
|
+
switch (typeof f.priority == "string" ? f.priority.toLowerCase() : void 0) {
|
|
88
|
+
case "low":
|
|
89
|
+
R += "; Priority=Low";
|
|
90
|
+
break;
|
|
91
|
+
case "medium":
|
|
92
|
+
R += "; Priority=Medium";
|
|
93
|
+
break;
|
|
94
|
+
case "high":
|
|
95
|
+
R += "; Priority=High";
|
|
96
|
+
break;
|
|
97
|
+
default:
|
|
98
|
+
throw new TypeError(`option priority is invalid: ${f.priority}`);
|
|
99
|
+
}
|
|
100
|
+
if (f.sameSite)
|
|
101
|
+
switch (typeof f.sameSite == "string" ? f.sameSite.toLowerCase() : f.sameSite) {
|
|
102
|
+
case !0:
|
|
103
|
+
case "strict":
|
|
104
|
+
R += "; SameSite=Strict";
|
|
105
|
+
break;
|
|
106
|
+
case "lax":
|
|
107
|
+
R += "; SameSite=Lax";
|
|
108
|
+
break;
|
|
109
|
+
case "none":
|
|
110
|
+
R += "; SameSite=None";
|
|
111
|
+
break;
|
|
112
|
+
default:
|
|
113
|
+
throw new TypeError(`option sameSite is invalid: ${f.sameSite}`);
|
|
114
|
+
}
|
|
115
|
+
return R;
|
|
116
|
+
}
|
|
117
|
+
function d(c) {
|
|
118
|
+
if (c.indexOf("%") === -1)
|
|
119
|
+
return c;
|
|
120
|
+
try {
|
|
121
|
+
return decodeURIComponent(c);
|
|
122
|
+
} catch {
|
|
123
|
+
return c;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
function h(c) {
|
|
127
|
+
return n.call(c) === "[object Date]";
|
|
128
|
+
}
|
|
129
|
+
return k;
|
|
130
|
+
}
|
|
131
|
+
var ie = Et(), x = { exports: {} }, le;
|
|
132
|
+
function _t() {
|
|
133
|
+
if (le) return x.exports;
|
|
134
|
+
le = 1;
|
|
135
|
+
var e = {
|
|
136
|
+
decodeValues: !0,
|
|
137
|
+
map: !1,
|
|
138
|
+
silent: !1
|
|
139
|
+
};
|
|
140
|
+
function t(o) {
|
|
141
|
+
return typeof o == "string" && !!o.trim();
|
|
142
|
+
}
|
|
143
|
+
function r(o, u) {
|
|
144
|
+
var i = o.split(";").filter(t), l = i.shift(), d = a(l), h = d.name, c = d.value;
|
|
145
|
+
u = u ? Object.assign({}, e, u) : e;
|
|
146
|
+
try {
|
|
147
|
+
c = u.decodeValues ? decodeURIComponent(c) : c;
|
|
148
|
+
} catch (f) {
|
|
149
|
+
console.error(
|
|
150
|
+
"set-cookie-parser encountered an error while decoding a cookie with value '" + c + "'. Set options.decodeValues to false to disable this feature.",
|
|
151
|
+
f
|
|
152
|
+
);
|
|
153
|
+
}
|
|
154
|
+
var p = {
|
|
155
|
+
name: h,
|
|
156
|
+
value: c
|
|
157
|
+
};
|
|
158
|
+
return i.forEach(function(f) {
|
|
159
|
+
var m = f.split("="), y = m.shift().trimLeft().toLowerCase(), R = m.join("=");
|
|
160
|
+
y === "expires" ? p.expires = new Date(R) : y === "max-age" ? p.maxAge = parseInt(R, 10) : y === "secure" ? p.secure = !0 : y === "httponly" ? p.httpOnly = !0 : y === "samesite" ? p.sameSite = R : y === "partitioned" ? p.partitioned = !0 : p[y] = R;
|
|
161
|
+
}), p;
|
|
162
|
+
}
|
|
163
|
+
function a(o) {
|
|
164
|
+
var u = "", i = "", l = o.split("=");
|
|
165
|
+
return l.length > 1 ? (u = l.shift(), i = l.join("=")) : i = o, { name: u, value: i };
|
|
166
|
+
}
|
|
167
|
+
function n(o, u) {
|
|
168
|
+
if (u = u ? Object.assign({}, e, u) : e, !o)
|
|
169
|
+
return u.map ? {} : [];
|
|
170
|
+
if (o.headers)
|
|
171
|
+
if (typeof o.headers.getSetCookie == "function")
|
|
172
|
+
o = o.headers.getSetCookie();
|
|
173
|
+
else if (o.headers["set-cookie"])
|
|
174
|
+
o = o.headers["set-cookie"];
|
|
175
|
+
else {
|
|
176
|
+
var i = o.headers[Object.keys(o.headers).find(function(d) {
|
|
177
|
+
return d.toLowerCase() === "set-cookie";
|
|
178
|
+
})];
|
|
179
|
+
!i && o.headers.cookie && !u.silent && console.warn(
|
|
180
|
+
"Warning: set-cookie-parser appears to have been called on a request object. It is designed to parse Set-Cookie headers from responses, not Cookie headers from requests. Set the option {silent: true} to suppress this warning."
|
|
181
|
+
), o = i;
|
|
182
|
+
}
|
|
183
|
+
if (Array.isArray(o) || (o = [o]), u.map) {
|
|
184
|
+
var l = {};
|
|
185
|
+
return o.filter(t).reduce(function(d, h) {
|
|
186
|
+
var c = r(h, u);
|
|
187
|
+
return d[c.name] = c, d;
|
|
188
|
+
}, l);
|
|
189
|
+
} else
|
|
190
|
+
return o.filter(t).map(function(d) {
|
|
191
|
+
return r(d, u);
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
function s(o) {
|
|
195
|
+
if (Array.isArray(o))
|
|
196
|
+
return o;
|
|
197
|
+
if (typeof o != "string")
|
|
198
|
+
return [];
|
|
199
|
+
var u = [], i = 0, l, d, h, c, p;
|
|
200
|
+
function f() {
|
|
201
|
+
for (; i < o.length && /\s/.test(o.charAt(i)); )
|
|
202
|
+
i += 1;
|
|
203
|
+
return i < o.length;
|
|
204
|
+
}
|
|
205
|
+
function m() {
|
|
206
|
+
return d = o.charAt(i), d !== "=" && d !== ";" && d !== ",";
|
|
207
|
+
}
|
|
208
|
+
for (; i < o.length; ) {
|
|
209
|
+
for (l = i, p = !1; f(); )
|
|
210
|
+
if (d = o.charAt(i), d === ",") {
|
|
211
|
+
for (h = i, i += 1, f(), c = i; i < o.length && m(); )
|
|
212
|
+
i += 1;
|
|
213
|
+
i < o.length && o.charAt(i) === "=" ? (p = !0, i = c, u.push(o.substring(l, h)), l = i) : i = h + 1;
|
|
214
|
+
} else
|
|
215
|
+
i += 1;
|
|
216
|
+
(!p || i >= o.length) && u.push(o.substring(l, o.length));
|
|
217
|
+
}
|
|
218
|
+
return u;
|
|
219
|
+
}
|
|
220
|
+
return x.exports = n, x.exports.parse = n, x.exports.parseString = r, x.exports.splitCookiesString = s, x.exports;
|
|
221
|
+
}
|
|
222
|
+
var bt = /* @__PURE__ */ _t();
|
|
223
|
+
/**
|
|
224
|
+
* react-router v7.8.2
|
|
225
|
+
*
|
|
226
|
+
* Copyright (c) Remix Software Inc.
|
|
227
|
+
*
|
|
228
|
+
* This source code is licensed under the MIT license found in the
|
|
229
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
230
|
+
*
|
|
231
|
+
* @license MIT
|
|
232
|
+
*/
|
|
233
|
+
function gr({
|
|
234
|
+
context: e,
|
|
235
|
+
url: t,
|
|
236
|
+
nonce: r
|
|
237
|
+
}) {
|
|
238
|
+
typeof t == "string" && (t = new URL(t));
|
|
239
|
+
let { manifest: a, routeModules: n, criticalCss: s, serverHandoffString: o } = e, u = We(
|
|
240
|
+
a.routes,
|
|
241
|
+
n,
|
|
242
|
+
e.future,
|
|
243
|
+
e.isSpaMode
|
|
244
|
+
);
|
|
245
|
+
e.staticHandlerContext.loaderData = {
|
|
246
|
+
...e.staticHandlerContext.loaderData
|
|
247
|
+
};
|
|
248
|
+
for (let l of e.staticHandlerContext.matches) {
|
|
249
|
+
let d = l.route.id, h = n[d], c = e.manifest.routes[d];
|
|
250
|
+
h && c && $(
|
|
251
|
+
d,
|
|
252
|
+
h.clientLoader,
|
|
253
|
+
c.hasLoader,
|
|
254
|
+
e.isSpaMode
|
|
255
|
+
) && (h.HydrateFallback || !c.hasLoader) && delete e.staticHandlerContext.loaderData[d];
|
|
256
|
+
}
|
|
257
|
+
let i = ve(u, e.staticHandlerContext);
|
|
258
|
+
return /* @__PURE__ */ g.createElement(g.Fragment, null, /* @__PURE__ */ g.createElement(
|
|
259
|
+
j.Provider,
|
|
260
|
+
{
|
|
261
|
+
value: {
|
|
262
|
+
manifest: a,
|
|
263
|
+
routeModules: n,
|
|
264
|
+
criticalCss: s,
|
|
265
|
+
serverHandoffString: o,
|
|
266
|
+
future: e.future,
|
|
267
|
+
ssr: e.ssr,
|
|
268
|
+
isSpaMode: e.isSpaMode,
|
|
269
|
+
routeDiscovery: e.routeDiscovery,
|
|
270
|
+
serializeError: e.serializeError,
|
|
271
|
+
renderMeta: e.renderMeta
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
/* @__PURE__ */ g.createElement(qe, { location: i.state.location }, /* @__PURE__ */ g.createElement(
|
|
275
|
+
Se,
|
|
276
|
+
{
|
|
277
|
+
router: i,
|
|
278
|
+
context: e.staticHandlerContext,
|
|
279
|
+
hydrate: !1
|
|
280
|
+
}
|
|
281
|
+
))
|
|
282
|
+
), e.serverHandoffStream ? /* @__PURE__ */ g.createElement(g.Suspense, null, /* @__PURE__ */ g.createElement(
|
|
283
|
+
Ge,
|
|
284
|
+
{
|
|
285
|
+
context: e,
|
|
286
|
+
identifier: 0,
|
|
287
|
+
reader: e.serverHandoffStream.getReader(),
|
|
288
|
+
textDecoder: new TextDecoder(),
|
|
289
|
+
nonce: r
|
|
290
|
+
}
|
|
291
|
+
)) : null);
|
|
292
|
+
}
|
|
293
|
+
function vr(e, t) {
|
|
294
|
+
return function({
|
|
295
|
+
initialEntries: a,
|
|
296
|
+
initialIndex: n,
|
|
297
|
+
hydrationData: s,
|
|
298
|
+
future: o
|
|
299
|
+
}) {
|
|
300
|
+
let u = g.useRef(), i = g.useRef();
|
|
301
|
+
if (u.current == null) {
|
|
302
|
+
i.current = {
|
|
303
|
+
future: {
|
|
304
|
+
unstable_subResourceIntegrity: o?.unstable_subResourceIntegrity === !0,
|
|
305
|
+
unstable_middleware: o?.unstable_middleware === !0
|
|
306
|
+
},
|
|
307
|
+
manifest: {
|
|
308
|
+
routes: {},
|
|
309
|
+
entry: { imports: [], module: "" },
|
|
310
|
+
url: "",
|
|
311
|
+
version: ""
|
|
312
|
+
},
|
|
313
|
+
routeModules: {},
|
|
314
|
+
ssr: !1,
|
|
315
|
+
isSpaMode: !1,
|
|
316
|
+
routeDiscovery: { mode: "lazy", manifestPath: "/__manifest" }
|
|
317
|
+
};
|
|
318
|
+
let l = Ae(
|
|
319
|
+
// @ts-expect-error `StubRouteObject` is stricter about `loader`/`action`
|
|
320
|
+
// types compared to `AgnosticRouteObject`
|
|
321
|
+
Je(e, (d) => d),
|
|
322
|
+
t !== void 0 ? t : o?.unstable_middleware ? new X() : {},
|
|
323
|
+
i.current.manifest,
|
|
324
|
+
i.current.routeModules
|
|
325
|
+
);
|
|
326
|
+
u.current = Ke(l, {
|
|
327
|
+
initialEntries: a,
|
|
328
|
+
initialIndex: n,
|
|
329
|
+
hydrationData: s
|
|
330
|
+
});
|
|
331
|
+
}
|
|
332
|
+
return /* @__PURE__ */ g.createElement(j.Provider, { value: i.current }, /* @__PURE__ */ g.createElement(_e, { router: u.current }));
|
|
333
|
+
};
|
|
334
|
+
}
|
|
335
|
+
function Ae(e, t, r, a, n) {
|
|
336
|
+
return e.map((s) => {
|
|
337
|
+
if (!s.id)
|
|
338
|
+
throw new Error(
|
|
339
|
+
"Expected a route.id in react-router processRoutes() function"
|
|
340
|
+
);
|
|
341
|
+
let o = {
|
|
342
|
+
id: s.id,
|
|
343
|
+
path: s.path,
|
|
344
|
+
index: s.index,
|
|
345
|
+
Component: s.Component ? at(s.Component) : void 0,
|
|
346
|
+
HydrateFallback: s.HydrateFallback ? rt(s.HydrateFallback) : void 0,
|
|
347
|
+
ErrorBoundary: s.ErrorBoundary ? tt(s.ErrorBoundary) : void 0,
|
|
348
|
+
action: s.action ? (i) => s.action({ ...i, context: t }) : void 0,
|
|
349
|
+
loader: s.loader ? (i) => s.loader({ ...i, context: t }) : void 0,
|
|
350
|
+
handle: s.handle,
|
|
351
|
+
shouldRevalidate: s.shouldRevalidate
|
|
352
|
+
}, u = {
|
|
353
|
+
id: s.id,
|
|
354
|
+
path: s.path,
|
|
355
|
+
index: s.index,
|
|
356
|
+
parentId: n,
|
|
357
|
+
hasAction: s.action != null,
|
|
358
|
+
hasLoader: s.loader != null,
|
|
359
|
+
// When testing routes, you should be stubbing loader/action/middleware,
|
|
360
|
+
// not trying to re-implement the full loader/clientLoader/SSR/hydration
|
|
361
|
+
// flow. That is better tested via E2E tests.
|
|
362
|
+
hasClientAction: !1,
|
|
363
|
+
hasClientLoader: !1,
|
|
364
|
+
hasClientMiddleware: !1,
|
|
365
|
+
hasErrorBoundary: s.ErrorBoundary != null,
|
|
366
|
+
// any need for these?
|
|
367
|
+
module: "build/stub-path-to-module.js",
|
|
368
|
+
clientActionModule: void 0,
|
|
369
|
+
clientLoaderModule: void 0,
|
|
370
|
+
clientMiddlewareModule: void 0,
|
|
371
|
+
hydrateFallbackModule: void 0
|
|
372
|
+
};
|
|
373
|
+
return r.routes[o.id] = u, a[s.id] = {
|
|
374
|
+
default: o.Component || nt,
|
|
375
|
+
ErrorBoundary: o.ErrorBoundary || void 0,
|
|
376
|
+
handle: s.handle,
|
|
377
|
+
links: s.links,
|
|
378
|
+
meta: s.meta,
|
|
379
|
+
shouldRevalidate: s.shouldRevalidate
|
|
380
|
+
}, s.children && (o.children = Ae(
|
|
381
|
+
s.children,
|
|
382
|
+
t,
|
|
383
|
+
r,
|
|
384
|
+
a,
|
|
385
|
+
o.id
|
|
386
|
+
)), o;
|
|
387
|
+
});
|
|
388
|
+
}
|
|
389
|
+
var ee = /* @__PURE__ */ new TextEncoder(), Ct = async (e, t) => {
|
|
390
|
+
let r = ee.encode(e), a = await xe(t, ["sign"]), n = await crypto.subtle.sign("HMAC", a, r), s = btoa(String.fromCharCode(...new Uint8Array(n))).replace(
|
|
391
|
+
/=+$/,
|
|
392
|
+
""
|
|
393
|
+
);
|
|
394
|
+
return e + "." + s;
|
|
395
|
+
}, Dt = async (e, t) => {
|
|
396
|
+
let r = e.lastIndexOf("."), a = e.slice(0, r), n = e.slice(r + 1), s = ee.encode(a), o = await xe(t, ["verify"]);
|
|
397
|
+
try {
|
|
398
|
+
let u = At(atob(n));
|
|
399
|
+
return await crypto.subtle.verify("HMAC", o, u, s) ? a : !1;
|
|
400
|
+
} catch {
|
|
401
|
+
return !1;
|
|
402
|
+
}
|
|
403
|
+
}, xe = async (e, t) => crypto.subtle.importKey(
|
|
404
|
+
"raw",
|
|
405
|
+
ee.encode(e),
|
|
406
|
+
{ name: "HMAC", hash: "SHA-256" },
|
|
407
|
+
!1,
|
|
408
|
+
t
|
|
409
|
+
);
|
|
410
|
+
function At(e) {
|
|
411
|
+
let t = new Uint8Array(e.length);
|
|
412
|
+
for (let r = 0; r < e.length; r++)
|
|
413
|
+
t[r] = e.charCodeAt(r);
|
|
414
|
+
return t;
|
|
415
|
+
}
|
|
416
|
+
var Fe = (e, t = {}) => {
|
|
417
|
+
let { secrets: r = [], ...a } = {
|
|
418
|
+
path: "/",
|
|
419
|
+
sameSite: "lax",
|
|
420
|
+
...t
|
|
421
|
+
};
|
|
422
|
+
return Ht(e, a.expires), {
|
|
423
|
+
get name() {
|
|
424
|
+
return e;
|
|
425
|
+
},
|
|
426
|
+
get isSigned() {
|
|
427
|
+
return r.length > 0;
|
|
428
|
+
},
|
|
429
|
+
get expires() {
|
|
430
|
+
return typeof a.maxAge < "u" ? new Date(Date.now() + a.maxAge * 1e3) : a.expires;
|
|
431
|
+
},
|
|
432
|
+
async parse(n, s) {
|
|
433
|
+
if (!n) return null;
|
|
434
|
+
let o = ie.parse(n, { ...a, ...s });
|
|
435
|
+
if (e in o) {
|
|
436
|
+
let u = o[e];
|
|
437
|
+
return typeof u == "string" && u !== "" ? await Ft(u, r) : "";
|
|
438
|
+
} else
|
|
439
|
+
return null;
|
|
440
|
+
},
|
|
441
|
+
async serialize(n, s) {
|
|
442
|
+
return ie.serialize(
|
|
443
|
+
e,
|
|
444
|
+
n === "" ? "" : await xt(n, r),
|
|
445
|
+
{
|
|
446
|
+
...a,
|
|
447
|
+
...s
|
|
448
|
+
}
|
|
449
|
+
);
|
|
450
|
+
}
|
|
451
|
+
};
|
|
452
|
+
}, ke = (e) => e != null && typeof e.name == "string" && typeof e.isSigned == "boolean" && typeof e.parse == "function" && typeof e.serialize == "function";
|
|
453
|
+
async function xt(e, t) {
|
|
454
|
+
let r = kt(e);
|
|
455
|
+
return t.length > 0 && (r = await Ct(r, t[0])), r;
|
|
456
|
+
}
|
|
457
|
+
async function Ft(e, t) {
|
|
458
|
+
if (t.length > 0) {
|
|
459
|
+
for (let r of t) {
|
|
460
|
+
let a = await Dt(e, r);
|
|
461
|
+
if (a !== !1)
|
|
462
|
+
return ue(a);
|
|
463
|
+
}
|
|
464
|
+
return null;
|
|
465
|
+
}
|
|
466
|
+
return ue(e);
|
|
467
|
+
}
|
|
468
|
+
function kt(e) {
|
|
469
|
+
return btoa(Tt(encodeURIComponent(JSON.stringify(e))));
|
|
470
|
+
}
|
|
471
|
+
function ue(e) {
|
|
472
|
+
try {
|
|
473
|
+
return JSON.parse(decodeURIComponent(Lt(atob(e))));
|
|
474
|
+
} catch {
|
|
475
|
+
return {};
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
function Lt(e) {
|
|
479
|
+
let t = e.toString(), r = "", a = 0, n, s;
|
|
480
|
+
for (; a < t.length; )
|
|
481
|
+
n = t.charAt(a++), /[\w*+\-./@]/.exec(n) ? r += n : (s = n.charCodeAt(0), s < 256 ? r += "%" + de(s, 2) : r += "%u" + de(s, 4).toUpperCase());
|
|
482
|
+
return r;
|
|
483
|
+
}
|
|
484
|
+
function de(e, t) {
|
|
485
|
+
let r = e.toString(16);
|
|
486
|
+
for (; r.length < t; ) r = "0" + r;
|
|
487
|
+
return r;
|
|
488
|
+
}
|
|
489
|
+
function Tt(e) {
|
|
490
|
+
let t = e.toString(), r = "", a = 0, n, s;
|
|
491
|
+
for (; a < t.length; ) {
|
|
492
|
+
if (n = t.charAt(a++), n === "%") {
|
|
493
|
+
if (t.charAt(a) === "u") {
|
|
494
|
+
if (s = t.slice(a + 1, a + 5), /^[\da-f]{4}$/i.exec(s)) {
|
|
495
|
+
r += String.fromCharCode(parseInt(s, 16)), a += 5;
|
|
496
|
+
continue;
|
|
497
|
+
}
|
|
498
|
+
} else if (s = t.slice(a, a + 2), /^[\da-f]{2}$/i.exec(s)) {
|
|
499
|
+
r += String.fromCharCode(parseInt(s, 16)), a += 2;
|
|
500
|
+
continue;
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
r += n;
|
|
504
|
+
}
|
|
505
|
+
return r;
|
|
506
|
+
}
|
|
507
|
+
function Ht(e, t) {
|
|
508
|
+
De(
|
|
509
|
+
!t,
|
|
510
|
+
`The "${e}" cookie has an "expires" property set. This will cause the expires value to not be updated when the session is committed. Instead, you should set the expires value when serializing the cookie. You can use \`commitSession(session, { expires })\` if using a session storage object, or \`cookie.serialize("value", { expires })\` if you're using the cookie directly.`
|
|
511
|
+
);
|
|
512
|
+
}
|
|
513
|
+
function It(e) {
|
|
514
|
+
return Object.keys(e).reduce((t, r) => {
|
|
515
|
+
let a = e[r];
|
|
516
|
+
return a && (t[r] = a.module), t;
|
|
517
|
+
}, {});
|
|
518
|
+
}
|
|
519
|
+
var Pt = /* @__PURE__ */ ((e) => (e.Development = "development", e.Production = "production", e.Test = "test", e))(Pt || {});
|
|
520
|
+
function Ut(e) {
|
|
521
|
+
return e === "development" || e === "production" || e === "test";
|
|
522
|
+
}
|
|
523
|
+
function V(e, t) {
|
|
524
|
+
if (e instanceof Error && t !== "development") {
|
|
525
|
+
let r = new Error("Unexpected Server Error");
|
|
526
|
+
return r.stack = void 0, r;
|
|
527
|
+
}
|
|
528
|
+
return e;
|
|
529
|
+
}
|
|
530
|
+
function O(e, t) {
|
|
531
|
+
return Object.entries(e).reduce((r, [a, n]) => Object.assign(r, { [a]: V(n, t) }), {});
|
|
532
|
+
}
|
|
533
|
+
function Le(e, t) {
|
|
534
|
+
let r = V(e, t);
|
|
535
|
+
return {
|
|
536
|
+
message: r.message,
|
|
537
|
+
stack: r.stack
|
|
538
|
+
};
|
|
539
|
+
}
|
|
540
|
+
function ce(e, t) {
|
|
541
|
+
if (!e) return null;
|
|
542
|
+
let r = Object.entries(e), a = {};
|
|
543
|
+
for (let [n, s] of r)
|
|
544
|
+
if (A(s))
|
|
545
|
+
a[n] = { ...s, __type: "RouteErrorResponse" };
|
|
546
|
+
else if (s instanceof Error) {
|
|
547
|
+
let o = V(s, t);
|
|
548
|
+
a[n] = {
|
|
549
|
+
message: o.message,
|
|
550
|
+
stack: o.stack,
|
|
551
|
+
__type: "Error",
|
|
552
|
+
// If this is a subclass (i.e., ReferenceError), send up the type so we
|
|
553
|
+
// can re-create the same type during hydration. This will only apply
|
|
554
|
+
// in dev mode since all production errors are sanitized to normal
|
|
555
|
+
// Error instances
|
|
556
|
+
...o.name !== "Error" ? {
|
|
557
|
+
__subType: o.name
|
|
558
|
+
} : {}
|
|
559
|
+
};
|
|
560
|
+
} else
|
|
561
|
+
a[n] = s;
|
|
562
|
+
return a;
|
|
563
|
+
}
|
|
564
|
+
function Y(e, t, r) {
|
|
565
|
+
let a = Ee(
|
|
566
|
+
e,
|
|
567
|
+
t,
|
|
568
|
+
r
|
|
569
|
+
);
|
|
570
|
+
return a ? a.map((n) => ({
|
|
571
|
+
params: n.params,
|
|
572
|
+
pathname: n.pathname,
|
|
573
|
+
route: n.route
|
|
574
|
+
})) : null;
|
|
575
|
+
}
|
|
576
|
+
async function fe(e, t) {
|
|
577
|
+
let r = await e({
|
|
578
|
+
request: Nt(Mt(t.request)),
|
|
579
|
+
params: t.params,
|
|
580
|
+
context: t.context
|
|
581
|
+
});
|
|
582
|
+
if (yt(r) && r.init && r.init.status && Z(r.init.status))
|
|
583
|
+
throw new Response(null, r.init);
|
|
584
|
+
return r;
|
|
585
|
+
}
|
|
586
|
+
function Mt(e) {
|
|
587
|
+
let t = new URL(e.url), r = t.searchParams.getAll("index");
|
|
588
|
+
t.searchParams.delete("index");
|
|
589
|
+
let a = [];
|
|
590
|
+
for (let s of r)
|
|
591
|
+
s && a.push(s);
|
|
592
|
+
for (let s of a)
|
|
593
|
+
t.searchParams.append("index", s);
|
|
594
|
+
let n = {
|
|
595
|
+
method: e.method,
|
|
596
|
+
body: e.body,
|
|
597
|
+
headers: e.headers,
|
|
598
|
+
signal: e.signal
|
|
599
|
+
};
|
|
600
|
+
return n.body && (n.duplex = "half"), new Request(t.href, n);
|
|
601
|
+
}
|
|
602
|
+
function Nt(e) {
|
|
603
|
+
let t = new URL(e.url);
|
|
604
|
+
t.searchParams.delete("_routes");
|
|
605
|
+
let r = {
|
|
606
|
+
method: e.method,
|
|
607
|
+
body: e.body,
|
|
608
|
+
headers: e.headers,
|
|
609
|
+
signal: e.signal
|
|
610
|
+
};
|
|
611
|
+
return r.body && (r.duplex = "half"), new Request(t.href, r);
|
|
612
|
+
}
|
|
613
|
+
function M(e, t) {
|
|
614
|
+
if (e === !1 || e === null || typeof e > "u")
|
|
615
|
+
throw console.error(
|
|
616
|
+
"The following error is a bug in React Router; please open an issue! https://github.com/remix-run/react-router/issues/new/choose"
|
|
617
|
+
), new Error(t);
|
|
618
|
+
}
|
|
619
|
+
var Te = "__reactRouterDevServerHooks";
|
|
620
|
+
function Sr(e) {
|
|
621
|
+
globalThis[Te] = e;
|
|
622
|
+
}
|
|
623
|
+
function W() {
|
|
624
|
+
return globalThis[Te];
|
|
625
|
+
}
|
|
626
|
+
function He(e, t) {
|
|
627
|
+
if (typeof process < "u")
|
|
628
|
+
try {
|
|
629
|
+
if (process.env?.IS_RR_BUILD_REQUEST === "yes")
|
|
630
|
+
return e.headers.get(t);
|
|
631
|
+
} catch {
|
|
632
|
+
}
|
|
633
|
+
return null;
|
|
634
|
+
}
|
|
635
|
+
function Ie(e) {
|
|
636
|
+
let t = {};
|
|
637
|
+
return Object.values(e).forEach((r) => {
|
|
638
|
+
if (r) {
|
|
639
|
+
let a = r.parentId || "";
|
|
640
|
+
t[a] || (t[a] = []), t[a].push(r);
|
|
641
|
+
}
|
|
642
|
+
}), t;
|
|
643
|
+
}
|
|
644
|
+
function Pe(e, t = "", r = Ie(e)) {
|
|
645
|
+
return (r[t] || []).map((a) => ({
|
|
646
|
+
...a,
|
|
647
|
+
children: Pe(e, a.id, r)
|
|
648
|
+
}));
|
|
649
|
+
}
|
|
650
|
+
function Ue(e, t, r = "", a = Ie(e)) {
|
|
651
|
+
return (a[r] || []).map((n) => {
|
|
652
|
+
let s = {
|
|
653
|
+
// Always include root due to default boundaries
|
|
654
|
+
hasErrorBoundary: n.id === "root" || n.module.ErrorBoundary != null,
|
|
655
|
+
id: n.id,
|
|
656
|
+
path: n.path,
|
|
657
|
+
unstable_middleware: n.module.unstable_middleware,
|
|
658
|
+
// Need to use RR's version in the param typed here to permit the optional
|
|
659
|
+
// context even though we know it'll always be provided in remix
|
|
660
|
+
loader: n.module.loader ? async (o) => {
|
|
661
|
+
let u = He(
|
|
662
|
+
o.request,
|
|
663
|
+
"X-React-Router-Prerender-Data"
|
|
664
|
+
);
|
|
665
|
+
if (u != null) {
|
|
666
|
+
let l = u && decodeURI(u);
|
|
667
|
+
M(l, "Missing prerendered data for route");
|
|
668
|
+
let d = new TextEncoder().encode(l), h = new ReadableStream({
|
|
669
|
+
start(f) {
|
|
670
|
+
f.enqueue(d), f.close();
|
|
671
|
+
}
|
|
672
|
+
}), p = (await lt(h, global)).value;
|
|
673
|
+
if (p && T in p) {
|
|
674
|
+
let f = p[T], m = { status: f.status };
|
|
675
|
+
throw f.reload ? ut(f.redirect, m) : f.replace ? dt(f.redirect, m) : ct(f.redirect, m);
|
|
676
|
+
} else {
|
|
677
|
+
M(
|
|
678
|
+
p && n.id in p,
|
|
679
|
+
"Unable to decode prerendered data"
|
|
680
|
+
);
|
|
681
|
+
let f = p[n.id];
|
|
682
|
+
return M(
|
|
683
|
+
"data" in f,
|
|
684
|
+
"Unable to process prerendered data"
|
|
685
|
+
), f.data;
|
|
686
|
+
}
|
|
687
|
+
}
|
|
688
|
+
return await fe(n.module.loader, o);
|
|
689
|
+
} : void 0,
|
|
690
|
+
action: n.module.action ? (o) => fe(n.module.action, o) : void 0,
|
|
691
|
+
handle: n.module.handle
|
|
692
|
+
};
|
|
693
|
+
return n.index ? {
|
|
694
|
+
index: !0,
|
|
695
|
+
...s
|
|
696
|
+
} : {
|
|
697
|
+
caseSensitive: n.caseSensitive,
|
|
698
|
+
children: Ue(
|
|
699
|
+
e,
|
|
700
|
+
t,
|
|
701
|
+
n.id,
|
|
702
|
+
a
|
|
703
|
+
),
|
|
704
|
+
...s
|
|
705
|
+
};
|
|
706
|
+
});
|
|
707
|
+
}
|
|
708
|
+
var Ot = {
|
|
709
|
+
"&": "\\u0026",
|
|
710
|
+
">": "\\u003e",
|
|
711
|
+
"<": "\\u003c",
|
|
712
|
+
"\u2028": "\\u2028",
|
|
713
|
+
"\u2029": "\\u2029"
|
|
714
|
+
}, zt = /[&><\u2028\u2029]/g;
|
|
715
|
+
function Bt(e) {
|
|
716
|
+
return e.replace(zt, (t) => Ot[t]);
|
|
717
|
+
}
|
|
718
|
+
function he(e) {
|
|
719
|
+
return Bt(JSON.stringify(e));
|
|
720
|
+
}
|
|
721
|
+
function te(e, t) {
|
|
722
|
+
return $t(e, (r) => {
|
|
723
|
+
let a = t.routes[r.route.id];
|
|
724
|
+
return M(a, `Route with id "${r.route.id}" not found in build`), a.module.headers;
|
|
725
|
+
});
|
|
726
|
+
}
|
|
727
|
+
function $t(e, t, r) {
|
|
728
|
+
let a = e.errors ? e.matches.findIndex((u) => e.errors[u.route.id]) : -1, n = a >= 0 ? e.matches.slice(0, a + 1) : e.matches, s;
|
|
729
|
+
if (a >= 0) {
|
|
730
|
+
let { actionHeaders: u, actionData: i, loaderHeaders: l, loaderData: d } = e;
|
|
731
|
+
e.matches.slice(a).some((h) => {
|
|
732
|
+
let c = h.route.id;
|
|
733
|
+
return u[c] && (!i || !i.hasOwnProperty(c)) ? s = u[c] : l[c] && !d.hasOwnProperty(c) && (s = l[c]), s != null;
|
|
734
|
+
});
|
|
735
|
+
}
|
|
736
|
+
const o = new Headers(r);
|
|
737
|
+
return n.reduce((u, i, l) => {
|
|
738
|
+
let { id: d } = i.route, h = e.loaderHeaders[d] || new Headers(), c = e.actionHeaders[d] || new Headers(), p = s != null && l === n.length - 1, f = p && s !== h && s !== c, m = t(i);
|
|
739
|
+
if (m == null) {
|
|
740
|
+
let R = new Headers(u);
|
|
741
|
+
return f && b(s, R), b(c, R), b(h, R), R;
|
|
742
|
+
}
|
|
743
|
+
let y = new Headers(
|
|
744
|
+
typeof m == "function" ? m({
|
|
745
|
+
loaderHeaders: h,
|
|
746
|
+
parentHeaders: u,
|
|
747
|
+
actionHeaders: c,
|
|
748
|
+
errorHeaders: p ? s : void 0
|
|
749
|
+
}) : m
|
|
750
|
+
);
|
|
751
|
+
return f && b(s, y), b(c, y), b(h, y), b(u, y), y;
|
|
752
|
+
}, new Headers(o));
|
|
753
|
+
}
|
|
754
|
+
function b(e, t) {
|
|
755
|
+
let r = e.get("Set-Cookie");
|
|
756
|
+
if (r) {
|
|
757
|
+
let a = bt.splitCookiesString(r), n = new Set(t.getSetCookie());
|
|
758
|
+
a.forEach((s) => {
|
|
759
|
+
n.has(s) || t.append("Set-Cookie", s);
|
|
760
|
+
});
|
|
761
|
+
}
|
|
762
|
+
}
|
|
763
|
+
var Me = /* @__PURE__ */ new Set([
|
|
764
|
+
...ft,
|
|
765
|
+
304
|
|
766
|
+
]);
|
|
767
|
+
async function jt(e, t, r, a, n, s, o) {
|
|
768
|
+
try {
|
|
769
|
+
let d = new Request(n, {
|
|
770
|
+
method: a.method,
|
|
771
|
+
body: a.body,
|
|
772
|
+
headers: a.headers,
|
|
773
|
+
signal: a.signal,
|
|
774
|
+
...a.body ? { duplex: "half" } : void 0
|
|
775
|
+
}), h = await r.query(d, {
|
|
776
|
+
requestContext: s,
|
|
777
|
+
skipLoaderErrorBubbling: !0,
|
|
778
|
+
skipRevalidation: !0,
|
|
779
|
+
unstable_generateMiddlewareResponse: e.future.unstable_middleware ? async (c) => {
|
|
780
|
+
try {
|
|
781
|
+
let p = await c(d);
|
|
782
|
+
return u(p);
|
|
783
|
+
} catch (p) {
|
|
784
|
+
return i(p);
|
|
785
|
+
}
|
|
786
|
+
} : void 0
|
|
787
|
+
});
|
|
788
|
+
return u(h);
|
|
789
|
+
} catch (d) {
|
|
790
|
+
return i(d);
|
|
791
|
+
}
|
|
792
|
+
function u(d) {
|
|
793
|
+
return C(d) ? d : l(d);
|
|
794
|
+
}
|
|
795
|
+
function i(d) {
|
|
796
|
+
return o(d), H(a, e, t, {
|
|
797
|
+
result: { error: d },
|
|
798
|
+
headers: new Headers(),
|
|
799
|
+
status: 500
|
|
800
|
+
});
|
|
801
|
+
}
|
|
802
|
+
function l(d) {
|
|
803
|
+
let h = te(d, e);
|
|
804
|
+
if (Z(d.statusCode) && h.has("Location"))
|
|
805
|
+
return new Response(null, { status: d.statusCode, headers: h });
|
|
806
|
+
d.errors && (Object.values(d.errors).forEach((p) => {
|
|
807
|
+
(!A(p) || p.error) && o(p);
|
|
808
|
+
}), d.errors = O(d.errors, t));
|
|
809
|
+
let c;
|
|
810
|
+
return d.errors ? c = { error: Object.values(d.errors)[0] } : c = {
|
|
811
|
+
data: Object.values(d.actionData || {})[0]
|
|
812
|
+
}, H(a, e, t, {
|
|
813
|
+
result: c,
|
|
814
|
+
headers: h,
|
|
815
|
+
status: d.statusCode
|
|
816
|
+
});
|
|
817
|
+
}
|
|
818
|
+
}
|
|
819
|
+
async function Vt(e, t, r, a, n, s, o) {
|
|
820
|
+
let u = new URL(a.url).searchParams.get("_routes"), i = u ? new Set(u.split(",")) : null;
|
|
821
|
+
try {
|
|
822
|
+
let c = new Request(n, {
|
|
823
|
+
headers: a.headers,
|
|
824
|
+
signal: a.signal
|
|
825
|
+
}), p = await r.query(c, {
|
|
826
|
+
requestContext: s,
|
|
827
|
+
filterMatchesToLoad: (f) => !i || i.has(f.route.id),
|
|
828
|
+
skipLoaderErrorBubbling: !0,
|
|
829
|
+
unstable_generateMiddlewareResponse: e.future.unstable_middleware ? async (f) => {
|
|
830
|
+
try {
|
|
831
|
+
let m = await f(c);
|
|
832
|
+
return l(m);
|
|
833
|
+
} catch (m) {
|
|
834
|
+
return d(m);
|
|
835
|
+
}
|
|
836
|
+
} : void 0
|
|
837
|
+
});
|
|
838
|
+
return l(p);
|
|
839
|
+
} catch (c) {
|
|
840
|
+
return d(c);
|
|
841
|
+
}
|
|
842
|
+
function l(c) {
|
|
843
|
+
return C(c) ? c : h(c);
|
|
844
|
+
}
|
|
845
|
+
function d(c) {
|
|
846
|
+
return o(c), H(a, e, t, {
|
|
847
|
+
result: { error: c },
|
|
848
|
+
headers: new Headers(),
|
|
849
|
+
status: 500
|
|
850
|
+
});
|
|
851
|
+
}
|
|
852
|
+
function h(c) {
|
|
853
|
+
let p = te(c, e);
|
|
854
|
+
if (Z(c.statusCode) && p.has("Location"))
|
|
855
|
+
return new Response(null, { status: c.statusCode, headers: p });
|
|
856
|
+
c.errors && (Object.values(c.errors).forEach((y) => {
|
|
857
|
+
(!A(y) || y.error) && o(y);
|
|
858
|
+
}), c.errors = O(c.errors, t));
|
|
859
|
+
let f = {}, m = new Set(
|
|
860
|
+
c.matches.filter(
|
|
861
|
+
(y) => i ? i.has(y.route.id) : y.route.loader != null
|
|
862
|
+
).map((y) => y.route.id)
|
|
863
|
+
);
|
|
864
|
+
if (c.errors)
|
|
865
|
+
for (let [y, R] of Object.entries(c.errors))
|
|
866
|
+
f[y] = { error: R };
|
|
867
|
+
for (let [y, R] of Object.entries(c.loaderData))
|
|
868
|
+
!(y in f) && m.has(y) && (f[y] = { data: R });
|
|
869
|
+
return H(a, e, t, {
|
|
870
|
+
result: f,
|
|
871
|
+
headers: p,
|
|
872
|
+
status: c.statusCode
|
|
873
|
+
});
|
|
874
|
+
}
|
|
875
|
+
}
|
|
876
|
+
function H(e, t, r, {
|
|
877
|
+
result: a,
|
|
878
|
+
headers: n,
|
|
879
|
+
status: s
|
|
880
|
+
}) {
|
|
881
|
+
let o = new Headers(n);
|
|
882
|
+
return o.set("X-Remix-Response", "yes"), Me.has(s) ? new Response(null, { status: s, headers: o }) : (o.set("Content-Type", "text/x-script"), o.delete("Content-Length"), new Response(
|
|
883
|
+
J(
|
|
884
|
+
a,
|
|
885
|
+
e.signal,
|
|
886
|
+
t.entry.module.streamTimeout,
|
|
887
|
+
r
|
|
888
|
+
),
|
|
889
|
+
{
|
|
890
|
+
status: s || 200,
|
|
891
|
+
headers: o
|
|
892
|
+
}
|
|
893
|
+
));
|
|
894
|
+
}
|
|
895
|
+
function pe(e, t, r, a) {
|
|
896
|
+
let n = Wt(
|
|
897
|
+
e.status,
|
|
898
|
+
e.headers,
|
|
899
|
+
r.basename
|
|
900
|
+
), s = new Headers(e.headers);
|
|
901
|
+
return s.delete("Location"), s.set("Content-Type", "text/x-script"), H(t, r, a, {
|
|
902
|
+
result: t.method === "GET" ? { [T]: n } : n,
|
|
903
|
+
headers: s,
|
|
904
|
+
status: Ce
|
|
905
|
+
});
|
|
906
|
+
}
|
|
907
|
+
function Wt(e, t, r) {
|
|
908
|
+
let a = t.get("Location");
|
|
909
|
+
return r && (a = U(a, r) || a), {
|
|
910
|
+
redirect: a,
|
|
911
|
+
status: e,
|
|
912
|
+
revalidate: (
|
|
913
|
+
// Technically X-Remix-Revalidate isn't needed here - that was an implementation
|
|
914
|
+
// detail of ?_data requests as our way to tell the front end to revalidate when
|
|
915
|
+
// we didn't have a response body to include that information in.
|
|
916
|
+
// With single fetch, we tell the front end via this revalidate boolean field.
|
|
917
|
+
// However, we're respecting it for now because it may be something folks have
|
|
918
|
+
// used in their own responses
|
|
919
|
+
// TODO(v3): Consider removing or making this official public API
|
|
920
|
+
t.has("X-Remix-Revalidate") || t.has("Set-Cookie")
|
|
921
|
+
),
|
|
922
|
+
reload: t.has("X-Remix-Reload-Document"),
|
|
923
|
+
replace: t.has("X-Remix-Replace")
|
|
924
|
+
};
|
|
925
|
+
}
|
|
926
|
+
function J(e, t, r, a) {
|
|
927
|
+
let n = new AbortController(), s = setTimeout(
|
|
928
|
+
() => n.abort(new Error("Server Timeout")),
|
|
929
|
+
typeof r == "number" ? r : 4950
|
|
930
|
+
);
|
|
931
|
+
return t.addEventListener("abort", () => clearTimeout(s)), ht(e, {
|
|
932
|
+
signal: n.signal,
|
|
933
|
+
plugins: [
|
|
934
|
+
(o) => {
|
|
935
|
+
if (o instanceof Error) {
|
|
936
|
+
let { name: u, message: i, stack: l } = a === "production" ? V(o, a) : o;
|
|
937
|
+
return ["SanitizedError", u, i, l];
|
|
938
|
+
}
|
|
939
|
+
if (o instanceof D) {
|
|
940
|
+
let { data: u, status: i, statusText: l } = o;
|
|
941
|
+
return ["ErrorResponse", u, i, l];
|
|
942
|
+
}
|
|
943
|
+
if (o && typeof o == "object" && T in o)
|
|
944
|
+
return ["SingleFetchRedirect", o[T]];
|
|
945
|
+
}
|
|
946
|
+
],
|
|
947
|
+
postPlugins: [
|
|
948
|
+
(o) => {
|
|
949
|
+
if (o && typeof o == "object")
|
|
950
|
+
return [
|
|
951
|
+
"SingleFetchClassInstance",
|
|
952
|
+
Object.fromEntries(Object.entries(o))
|
|
953
|
+
];
|
|
954
|
+
},
|
|
955
|
+
() => ["SingleFetchFallback"]
|
|
956
|
+
]
|
|
957
|
+
});
|
|
958
|
+
}
|
|
959
|
+
function me(e, t) {
|
|
960
|
+
let r = Pe(e.routes), a = Ue(e.routes, e.future), n = Ut(t) ? t : "production", s = Ze(a, {
|
|
961
|
+
basename: e.basename
|
|
962
|
+
}), o = e.entry.module.handleError || ((u, { request: i }) => {
|
|
963
|
+
n !== "test" && !i.signal.aborted && console.error(
|
|
964
|
+
// @ts-expect-error This is "private" from users but intended for internal use
|
|
965
|
+
A(u) && u.error ? u.error : u
|
|
966
|
+
);
|
|
967
|
+
});
|
|
968
|
+
return {
|
|
969
|
+
routes: r,
|
|
970
|
+
dataRoutes: a,
|
|
971
|
+
serverMode: n,
|
|
972
|
+
staticHandler: s,
|
|
973
|
+
errorHandler: o
|
|
974
|
+
};
|
|
975
|
+
}
|
|
976
|
+
var Er = (e, t) => {
|
|
977
|
+
let r, a, n, s, o;
|
|
978
|
+
return async function(i, l) {
|
|
979
|
+
if (r = typeof e == "function" ? await e() : e, typeof e == "function") {
|
|
980
|
+
let w = me(r, t);
|
|
981
|
+
a = w.routes, n = w.serverMode, s = w.staticHandler, o = w.errorHandler;
|
|
982
|
+
} else if (!a || !n || !s || !o) {
|
|
983
|
+
let w = me(r, t);
|
|
984
|
+
a = w.routes, n = w.serverMode, s = w.staticHandler, o = w.errorHandler;
|
|
985
|
+
}
|
|
986
|
+
let d = {}, h, c = (w) => {
|
|
987
|
+
t === "development" && W()?.processRequestError?.(w), o(w, {
|
|
988
|
+
context: h,
|
|
989
|
+
params: d,
|
|
990
|
+
request: i
|
|
991
|
+
});
|
|
992
|
+
};
|
|
993
|
+
if (r.future.unstable_middleware) {
|
|
994
|
+
if (l && !(l instanceof X)) {
|
|
995
|
+
let w = new Error(
|
|
996
|
+
"Invalid `context` value provided to `handleRequest`. When middleware is enabled you must return an instance of `unstable_RouterContextProvider` from your `getLoadContext` function."
|
|
997
|
+
);
|
|
998
|
+
return c(w), z(w, n);
|
|
999
|
+
}
|
|
1000
|
+
h = l || new X();
|
|
1001
|
+
} else
|
|
1002
|
+
h = l || {};
|
|
1003
|
+
let p = new URL(i.url), f = r.basename || "/", m = p.pathname;
|
|
1004
|
+
U(m, f) === "/_root.data" ? m = f : m.endsWith(".data") && (m = m.replace(/\.data$/, "")), U(m, f) !== "/" && m.endsWith("/") && (m = m.slice(0, -1));
|
|
1005
|
+
let y = He(i, "X-React-Router-SPA-Mode") === "yes";
|
|
1006
|
+
if (!r.ssr) {
|
|
1007
|
+
let w = decodeURI(m);
|
|
1008
|
+
if (f !== "/") {
|
|
1009
|
+
let _ = U(w, f);
|
|
1010
|
+
if (_ == null)
|
|
1011
|
+
return o(
|
|
1012
|
+
new D(
|
|
1013
|
+
404,
|
|
1014
|
+
"Not Found",
|
|
1015
|
+
`Refusing to prerender the \`${w}\` path because it does not start with the basename \`${f}\``
|
|
1016
|
+
),
|
|
1017
|
+
{
|
|
1018
|
+
context: h,
|
|
1019
|
+
params: d,
|
|
1020
|
+
request: i
|
|
1021
|
+
}
|
|
1022
|
+
), new Response("Not Found", {
|
|
1023
|
+
status: 404,
|
|
1024
|
+
statusText: "Not Found"
|
|
1025
|
+
});
|
|
1026
|
+
w = _;
|
|
1027
|
+
}
|
|
1028
|
+
if (r.prerender.length === 0)
|
|
1029
|
+
y = !0;
|
|
1030
|
+
else if (!r.prerender.includes(w) && !r.prerender.includes(w + "/")) {
|
|
1031
|
+
if (p.pathname.endsWith(".data"))
|
|
1032
|
+
return o(
|
|
1033
|
+
new D(
|
|
1034
|
+
404,
|
|
1035
|
+
"Not Found",
|
|
1036
|
+
`Refusing to SSR the path \`${w}\` because \`ssr:false\` is set and the path is not included in the \`prerender\` config, so in production the path will be a 404.`
|
|
1037
|
+
),
|
|
1038
|
+
{
|
|
1039
|
+
context: h,
|
|
1040
|
+
params: d,
|
|
1041
|
+
request: i
|
|
1042
|
+
}
|
|
1043
|
+
), new Response("Not Found", {
|
|
1044
|
+
status: 404,
|
|
1045
|
+
statusText: "Not Found"
|
|
1046
|
+
});
|
|
1047
|
+
y = !0;
|
|
1048
|
+
}
|
|
1049
|
+
}
|
|
1050
|
+
let R = Ye(
|
|
1051
|
+
r.routeDiscovery.manifestPath,
|
|
1052
|
+
f
|
|
1053
|
+
);
|
|
1054
|
+
if (p.pathname === R)
|
|
1055
|
+
try {
|
|
1056
|
+
return await qt(r, a, p);
|
|
1057
|
+
} catch (w) {
|
|
1058
|
+
return c(w), new Response("Unknown Server Error", { status: 500 });
|
|
1059
|
+
}
|
|
1060
|
+
let S = Y(a, m, r.basename);
|
|
1061
|
+
S && S.length > 0 && Object.assign(d, S[0].params);
|
|
1062
|
+
let v;
|
|
1063
|
+
if (p.pathname.endsWith(".data")) {
|
|
1064
|
+
let w = new URL(i.url);
|
|
1065
|
+
w.pathname = m;
|
|
1066
|
+
let _ = Y(
|
|
1067
|
+
a,
|
|
1068
|
+
w.pathname,
|
|
1069
|
+
r.basename
|
|
1070
|
+
);
|
|
1071
|
+
v = await Gt(
|
|
1072
|
+
n,
|
|
1073
|
+
r,
|
|
1074
|
+
s,
|
|
1075
|
+
i,
|
|
1076
|
+
w,
|
|
1077
|
+
h,
|
|
1078
|
+
c
|
|
1079
|
+
), oe(v) && (v = pe(
|
|
1080
|
+
v,
|
|
1081
|
+
i,
|
|
1082
|
+
r,
|
|
1083
|
+
n
|
|
1084
|
+
)), r.entry.module.handleDataRequest && (v = await r.entry.module.handleDataRequest(v, {
|
|
1085
|
+
context: h,
|
|
1086
|
+
params: _ ? _[0].params : {},
|
|
1087
|
+
request: i
|
|
1088
|
+
}), oe(v) && (v = pe(
|
|
1089
|
+
v,
|
|
1090
|
+
i,
|
|
1091
|
+
r,
|
|
1092
|
+
n
|
|
1093
|
+
)));
|
|
1094
|
+
} else if (!y && S && S[S.length - 1].route.module.default == null && S[S.length - 1].route.module.ErrorBoundary == null)
|
|
1095
|
+
v = await Yt(
|
|
1096
|
+
n,
|
|
1097
|
+
r,
|
|
1098
|
+
s,
|
|
1099
|
+
S.slice(-1)[0].route.id,
|
|
1100
|
+
i,
|
|
1101
|
+
h,
|
|
1102
|
+
c
|
|
1103
|
+
);
|
|
1104
|
+
else {
|
|
1105
|
+
let { pathname: w } = p, _;
|
|
1106
|
+
r.unstable_getCriticalCss ? _ = await r.unstable_getCriticalCss({ pathname: w }) : t === "development" && W()?.getCriticalCss && (_ = await W()?.getCriticalCss?.(w)), v = await Xt(
|
|
1107
|
+
n,
|
|
1108
|
+
r,
|
|
1109
|
+
s,
|
|
1110
|
+
i,
|
|
1111
|
+
h,
|
|
1112
|
+
c,
|
|
1113
|
+
y,
|
|
1114
|
+
_
|
|
1115
|
+
);
|
|
1116
|
+
}
|
|
1117
|
+
return i.method === "HEAD" ? new Response(null, {
|
|
1118
|
+
headers: v.headers,
|
|
1119
|
+
status: v.status,
|
|
1120
|
+
statusText: v.statusText
|
|
1121
|
+
}) : v;
|
|
1122
|
+
};
|
|
1123
|
+
};
|
|
1124
|
+
async function qt(e, t, r) {
|
|
1125
|
+
if (e.assets.version !== r.searchParams.get("version"))
|
|
1126
|
+
return new Response(null, {
|
|
1127
|
+
status: 204,
|
|
1128
|
+
headers: {
|
|
1129
|
+
"X-Remix-Reload-Document": "true"
|
|
1130
|
+
}
|
|
1131
|
+
});
|
|
1132
|
+
let a = {};
|
|
1133
|
+
if (r.searchParams.has("p")) {
|
|
1134
|
+
let n = /* @__PURE__ */ new Set();
|
|
1135
|
+
r.searchParams.getAll("p").forEach((s) => {
|
|
1136
|
+
s.startsWith("/") || (s = `/${s}`);
|
|
1137
|
+
let o = s.split("/").slice(1);
|
|
1138
|
+
o.forEach((u, i) => {
|
|
1139
|
+
let l = o.slice(0, i + 1).join("/");
|
|
1140
|
+
n.add(`/${l}`);
|
|
1141
|
+
});
|
|
1142
|
+
});
|
|
1143
|
+
for (let s of n) {
|
|
1144
|
+
let o = Y(t, s, e.basename);
|
|
1145
|
+
if (o)
|
|
1146
|
+
for (let u of o) {
|
|
1147
|
+
let i = u.route.id, l = e.assets.routes[i];
|
|
1148
|
+
l && (a[i] = l);
|
|
1149
|
+
}
|
|
1150
|
+
}
|
|
1151
|
+
return Response.json(a, {
|
|
1152
|
+
headers: {
|
|
1153
|
+
"Cache-Control": "public, max-age=31536000, immutable"
|
|
1154
|
+
}
|
|
1155
|
+
});
|
|
1156
|
+
}
|
|
1157
|
+
return new Response("Invalid Request", { status: 400 });
|
|
1158
|
+
}
|
|
1159
|
+
async function Gt(e, t, r, a, n, s, o) {
|
|
1160
|
+
return a.method !== "GET" ? await jt(
|
|
1161
|
+
t,
|
|
1162
|
+
e,
|
|
1163
|
+
r,
|
|
1164
|
+
a,
|
|
1165
|
+
n,
|
|
1166
|
+
s,
|
|
1167
|
+
o
|
|
1168
|
+
) : await Vt(
|
|
1169
|
+
t,
|
|
1170
|
+
e,
|
|
1171
|
+
r,
|
|
1172
|
+
a,
|
|
1173
|
+
n,
|
|
1174
|
+
s,
|
|
1175
|
+
o
|
|
1176
|
+
);
|
|
1177
|
+
}
|
|
1178
|
+
async function Xt(e, t, r, a, n, s, o, u) {
|
|
1179
|
+
try {
|
|
1180
|
+
let l = await r.query(a, {
|
|
1181
|
+
requestContext: n,
|
|
1182
|
+
unstable_generateMiddlewareResponse: t.future.unstable_middleware ? async (d) => {
|
|
1183
|
+
try {
|
|
1184
|
+
let h = await d(a);
|
|
1185
|
+
return C(h) || (h = await i(h, o)), h;
|
|
1186
|
+
} catch (h) {
|
|
1187
|
+
return s(h), new Response(null, { status: 500 });
|
|
1188
|
+
}
|
|
1189
|
+
} : void 0
|
|
1190
|
+
});
|
|
1191
|
+
return C(l) || (l = await i(l, o)), l;
|
|
1192
|
+
} catch (l) {
|
|
1193
|
+
return s(l), new Response(null, { status: 500 });
|
|
1194
|
+
}
|
|
1195
|
+
async function i(l, d) {
|
|
1196
|
+
let h = te(l, t);
|
|
1197
|
+
if (Me.has(l.statusCode))
|
|
1198
|
+
return new Response(null, { status: l.statusCode, headers: h });
|
|
1199
|
+
l.errors && (Object.values(l.errors).forEach((y) => {
|
|
1200
|
+
(!A(y) || y.error) && s(y);
|
|
1201
|
+
}), l.errors = O(l.errors, e));
|
|
1202
|
+
let c = {
|
|
1203
|
+
loaderData: l.loaderData,
|
|
1204
|
+
actionData: l.actionData,
|
|
1205
|
+
errors: ce(l.errors, e)
|
|
1206
|
+
}, p = {
|
|
1207
|
+
basename: t.basename,
|
|
1208
|
+
future: t.future,
|
|
1209
|
+
routeDiscovery: t.routeDiscovery,
|
|
1210
|
+
ssr: t.ssr,
|
|
1211
|
+
isSpaMode: d
|
|
1212
|
+
}, f = {
|
|
1213
|
+
manifest: t.assets,
|
|
1214
|
+
routeModules: It(t.routes),
|
|
1215
|
+
staticHandlerContext: l,
|
|
1216
|
+
criticalCss: u,
|
|
1217
|
+
serverHandoffString: he({
|
|
1218
|
+
...p,
|
|
1219
|
+
criticalCss: u
|
|
1220
|
+
}),
|
|
1221
|
+
serverHandoffStream: J(
|
|
1222
|
+
c,
|
|
1223
|
+
a.signal,
|
|
1224
|
+
t.entry.module.streamTimeout,
|
|
1225
|
+
e
|
|
1226
|
+
),
|
|
1227
|
+
renderMeta: {},
|
|
1228
|
+
future: t.future,
|
|
1229
|
+
ssr: t.ssr,
|
|
1230
|
+
routeDiscovery: t.routeDiscovery,
|
|
1231
|
+
isSpaMode: d,
|
|
1232
|
+
serializeError: (y) => Le(y, e)
|
|
1233
|
+
}, m = t.entry.module.default;
|
|
1234
|
+
try {
|
|
1235
|
+
return await m(
|
|
1236
|
+
a,
|
|
1237
|
+
l.statusCode,
|
|
1238
|
+
h,
|
|
1239
|
+
f,
|
|
1240
|
+
n
|
|
1241
|
+
);
|
|
1242
|
+
} catch (y) {
|
|
1243
|
+
s(y);
|
|
1244
|
+
let R = y;
|
|
1245
|
+
if (C(y))
|
|
1246
|
+
try {
|
|
1247
|
+
let v = await Kt(y);
|
|
1248
|
+
R = new D(
|
|
1249
|
+
y.status,
|
|
1250
|
+
y.statusText,
|
|
1251
|
+
v
|
|
1252
|
+
);
|
|
1253
|
+
} catch {
|
|
1254
|
+
}
|
|
1255
|
+
l = et(
|
|
1256
|
+
r.dataRoutes,
|
|
1257
|
+
l,
|
|
1258
|
+
R
|
|
1259
|
+
), l.errors && (l.errors = O(l.errors, e));
|
|
1260
|
+
let S = {
|
|
1261
|
+
loaderData: l.loaderData,
|
|
1262
|
+
actionData: l.actionData,
|
|
1263
|
+
errors: ce(l.errors, e)
|
|
1264
|
+
};
|
|
1265
|
+
f = {
|
|
1266
|
+
...f,
|
|
1267
|
+
staticHandlerContext: l,
|
|
1268
|
+
serverHandoffString: he(p),
|
|
1269
|
+
serverHandoffStream: J(
|
|
1270
|
+
S,
|
|
1271
|
+
a.signal,
|
|
1272
|
+
t.entry.module.streamTimeout,
|
|
1273
|
+
e
|
|
1274
|
+
),
|
|
1275
|
+
renderMeta: {}
|
|
1276
|
+
};
|
|
1277
|
+
try {
|
|
1278
|
+
return await m(
|
|
1279
|
+
a,
|
|
1280
|
+
l.statusCode,
|
|
1281
|
+
h,
|
|
1282
|
+
f,
|
|
1283
|
+
n
|
|
1284
|
+
);
|
|
1285
|
+
} catch (v) {
|
|
1286
|
+
return s(v), z(v, e);
|
|
1287
|
+
}
|
|
1288
|
+
}
|
|
1289
|
+
}
|
|
1290
|
+
}
|
|
1291
|
+
async function Yt(e, t, r, a, n, s, o) {
|
|
1292
|
+
try {
|
|
1293
|
+
let l = await r.queryRoute(n, {
|
|
1294
|
+
routeId: a,
|
|
1295
|
+
requestContext: s,
|
|
1296
|
+
unstable_generateMiddlewareResponse: t.future.unstable_middleware ? async (d) => {
|
|
1297
|
+
try {
|
|
1298
|
+
let h = await d(n);
|
|
1299
|
+
return u(h);
|
|
1300
|
+
} catch (h) {
|
|
1301
|
+
return i(h);
|
|
1302
|
+
}
|
|
1303
|
+
} : void 0
|
|
1304
|
+
});
|
|
1305
|
+
return u(l);
|
|
1306
|
+
} catch (l) {
|
|
1307
|
+
return i(l);
|
|
1308
|
+
}
|
|
1309
|
+
function u(l) {
|
|
1310
|
+
return C(l) ? l : typeof l == "string" ? new Response(l) : Response.json(l);
|
|
1311
|
+
}
|
|
1312
|
+
function i(l) {
|
|
1313
|
+
if (C(l))
|
|
1314
|
+
return l.headers.set("X-Remix-Catch", "yes"), l;
|
|
1315
|
+
if (A(l))
|
|
1316
|
+
return o(l), Jt(l, e);
|
|
1317
|
+
if (l instanceof Error && l.message === "Expected a response from queryRoute") {
|
|
1318
|
+
let d = new Error(
|
|
1319
|
+
"Expected a Response to be returned from resource route handler"
|
|
1320
|
+
);
|
|
1321
|
+
return o(d), z(d, e);
|
|
1322
|
+
}
|
|
1323
|
+
return o(l), z(l, e);
|
|
1324
|
+
}
|
|
1325
|
+
}
|
|
1326
|
+
function Jt(e, t) {
|
|
1327
|
+
return Response.json(
|
|
1328
|
+
Le(
|
|
1329
|
+
// @ts-expect-error This is "private" from users but intended for internal use
|
|
1330
|
+
e.error || new Error("Unexpected Server Error"),
|
|
1331
|
+
t
|
|
1332
|
+
),
|
|
1333
|
+
{
|
|
1334
|
+
status: e.status,
|
|
1335
|
+
statusText: e.statusText,
|
|
1336
|
+
headers: {
|
|
1337
|
+
"X-Remix-Error": "yes"
|
|
1338
|
+
}
|
|
1339
|
+
}
|
|
1340
|
+
);
|
|
1341
|
+
}
|
|
1342
|
+
function z(e, t) {
|
|
1343
|
+
let r = "Unexpected Server Error";
|
|
1344
|
+
return t !== "production" && (r += `
|
|
1345
|
+
|
|
1346
|
+
${String(e)}`), new Response(r, {
|
|
1347
|
+
status: 500,
|
|
1348
|
+
headers: {
|
|
1349
|
+
"Content-Type": "text/plain"
|
|
1350
|
+
}
|
|
1351
|
+
});
|
|
1352
|
+
}
|
|
1353
|
+
function Kt(e) {
|
|
1354
|
+
let t = e.headers.get("Content-Type");
|
|
1355
|
+
return t && /\bapplication\/json\b/.test(t) ? e.body == null ? null : e.json() : e.text();
|
|
1356
|
+
}
|
|
1357
|
+
function q(e) {
|
|
1358
|
+
return `__flash_${e}__`;
|
|
1359
|
+
}
|
|
1360
|
+
var Ne = (e = {}, t = "") => {
|
|
1361
|
+
let r = new Map(Object.entries(e));
|
|
1362
|
+
return {
|
|
1363
|
+
get id() {
|
|
1364
|
+
return t;
|
|
1365
|
+
},
|
|
1366
|
+
get data() {
|
|
1367
|
+
return Object.fromEntries(r);
|
|
1368
|
+
},
|
|
1369
|
+
has(a) {
|
|
1370
|
+
return r.has(a) || r.has(q(a));
|
|
1371
|
+
},
|
|
1372
|
+
get(a) {
|
|
1373
|
+
if (r.has(a)) return r.get(a);
|
|
1374
|
+
let n = q(a);
|
|
1375
|
+
if (r.has(n)) {
|
|
1376
|
+
let s = r.get(n);
|
|
1377
|
+
return r.delete(n), s;
|
|
1378
|
+
}
|
|
1379
|
+
},
|
|
1380
|
+
set(a, n) {
|
|
1381
|
+
r.set(a, n);
|
|
1382
|
+
},
|
|
1383
|
+
flash(a, n) {
|
|
1384
|
+
r.set(q(a), n);
|
|
1385
|
+
},
|
|
1386
|
+
unset(a) {
|
|
1387
|
+
r.delete(a);
|
|
1388
|
+
}
|
|
1389
|
+
};
|
|
1390
|
+
}, _r = (e) => e != null && typeof e.id == "string" && typeof e.data < "u" && typeof e.has == "function" && typeof e.get == "function" && typeof e.set == "function" && typeof e.flash == "function" && typeof e.unset == "function";
|
|
1391
|
+
function Qt({
|
|
1392
|
+
cookie: e,
|
|
1393
|
+
createData: t,
|
|
1394
|
+
readData: r,
|
|
1395
|
+
updateData: a,
|
|
1396
|
+
deleteData: n
|
|
1397
|
+
}) {
|
|
1398
|
+
let s = ke(e) ? e : Fe(e?.name || "__session", e);
|
|
1399
|
+
return Oe(s), {
|
|
1400
|
+
async getSession(o, u) {
|
|
1401
|
+
let i = o && await s.parse(o, u), l = i && await r(i);
|
|
1402
|
+
return Ne(l || {}, i || "");
|
|
1403
|
+
},
|
|
1404
|
+
async commitSession(o, u) {
|
|
1405
|
+
let { id: i, data: l } = o, d = u?.maxAge != null ? new Date(Date.now() + u.maxAge * 1e3) : u?.expires != null ? u.expires : s.expires;
|
|
1406
|
+
return i ? await a(i, l, d) : i = await t(l, d), s.serialize(i, u);
|
|
1407
|
+
},
|
|
1408
|
+
async destroySession(o, u) {
|
|
1409
|
+
return await n(o.id), s.serialize("", {
|
|
1410
|
+
...u,
|
|
1411
|
+
maxAge: void 0,
|
|
1412
|
+
expires: /* @__PURE__ */ new Date(0)
|
|
1413
|
+
});
|
|
1414
|
+
}
|
|
1415
|
+
};
|
|
1416
|
+
}
|
|
1417
|
+
function Oe(e) {
|
|
1418
|
+
De(
|
|
1419
|
+
e.isSigned,
|
|
1420
|
+
`The "${e.name}" cookie is not signed, but session cookies should be signed to prevent tampering on the client before they are sent back to the server. See https://reactrouter.com/explanation/sessions-and-cookies#signing-cookies for more information.`
|
|
1421
|
+
);
|
|
1422
|
+
}
|
|
1423
|
+
function br({ cookie: e } = {}) {
|
|
1424
|
+
let t = ke(e) ? e : Fe(e?.name || "__session", e);
|
|
1425
|
+
return Oe(t), {
|
|
1426
|
+
async getSession(r, a) {
|
|
1427
|
+
return Ne(
|
|
1428
|
+
r && await t.parse(r, a) || {}
|
|
1429
|
+
);
|
|
1430
|
+
},
|
|
1431
|
+
async commitSession(r, a) {
|
|
1432
|
+
let n = await t.serialize(r.data, a);
|
|
1433
|
+
if (n.length > 4096)
|
|
1434
|
+
throw new Error(
|
|
1435
|
+
"Cookie length will exceed browser maximum. Length: " + n.length
|
|
1436
|
+
);
|
|
1437
|
+
return n;
|
|
1438
|
+
},
|
|
1439
|
+
async destroySession(r, a) {
|
|
1440
|
+
return t.serialize("", {
|
|
1441
|
+
...a,
|
|
1442
|
+
maxAge: void 0,
|
|
1443
|
+
expires: /* @__PURE__ */ new Date(0)
|
|
1444
|
+
});
|
|
1445
|
+
}
|
|
1446
|
+
};
|
|
1447
|
+
}
|
|
1448
|
+
function Cr({ cookie: e } = {}) {
|
|
1449
|
+
let t = /* @__PURE__ */ new Map();
|
|
1450
|
+
return Qt({
|
|
1451
|
+
cookie: e,
|
|
1452
|
+
async createData(r, a) {
|
|
1453
|
+
let n = Math.random().toString(36).substring(2, 10);
|
|
1454
|
+
return t.set(n, { data: r, expires: a }), n;
|
|
1455
|
+
},
|
|
1456
|
+
async readData(r) {
|
|
1457
|
+
if (t.has(r)) {
|
|
1458
|
+
let { data: a, expires: n } = t.get(r);
|
|
1459
|
+
if (!n || n > /* @__PURE__ */ new Date())
|
|
1460
|
+
return a;
|
|
1461
|
+
n && t.delete(r);
|
|
1462
|
+
}
|
|
1463
|
+
return null;
|
|
1464
|
+
},
|
|
1465
|
+
async updateData(r, a, n) {
|
|
1466
|
+
t.set(r, { data: a, expires: n });
|
|
1467
|
+
},
|
|
1468
|
+
async deleteData(r) {
|
|
1469
|
+
t.delete(r);
|
|
1470
|
+
}
|
|
1471
|
+
});
|
|
1472
|
+
}
|
|
1473
|
+
function Dr(e, ...t) {
|
|
1474
|
+
let r = t[0];
|
|
1475
|
+
return e.split("/").map((a) => {
|
|
1476
|
+
if (a === "*")
|
|
1477
|
+
return r ? r["*"] : void 0;
|
|
1478
|
+
const n = a.match(/^:([\w-]+)(\?)?/);
|
|
1479
|
+
if (!n) return a;
|
|
1480
|
+
const s = n[1], o = r ? r[s] : void 0;
|
|
1481
|
+
if (n[2] === void 0 && o === void 0)
|
|
1482
|
+
throw Error(
|
|
1483
|
+
`Path '${e}' requires param '${s}' but it was not provided`
|
|
1484
|
+
);
|
|
1485
|
+
return o;
|
|
1486
|
+
}).filter((a) => a !== void 0).join("/");
|
|
1487
|
+
}
|
|
1488
|
+
function Zt(e, t, r, a, n, s) {
|
|
1489
|
+
let o = {
|
|
1490
|
+
...e,
|
|
1491
|
+
loaderData: { ...e.loaderData }
|
|
1492
|
+
}, u = Ee(t, a, n);
|
|
1493
|
+
if (u)
|
|
1494
|
+
for (let i of u) {
|
|
1495
|
+
let l = i.route.id, d = r(l);
|
|
1496
|
+
$(
|
|
1497
|
+
l,
|
|
1498
|
+
d.clientLoader,
|
|
1499
|
+
d.hasLoader,
|
|
1500
|
+
s
|
|
1501
|
+
) && (d.hasHydrateFallback || !d.hasLoader) ? delete o.loaderData[l] : d.hasLoader || (o.loaderData[l] = null);
|
|
1502
|
+
}
|
|
1503
|
+
return o;
|
|
1504
|
+
}
|
|
1505
|
+
var ze = class extends E.Component {
|
|
1506
|
+
constructor(e) {
|
|
1507
|
+
super(e), this.state = { error: null, location: e.location };
|
|
1508
|
+
}
|
|
1509
|
+
static getDerivedStateFromError(e) {
|
|
1510
|
+
return { error: e };
|
|
1511
|
+
}
|
|
1512
|
+
static getDerivedStateFromProps(e, t) {
|
|
1513
|
+
return t.location !== e.location ? { error: null, location: e.location } : { error: t.error, location: t.location };
|
|
1514
|
+
}
|
|
1515
|
+
render() {
|
|
1516
|
+
return this.state.error ? /* @__PURE__ */ E.createElement(
|
|
1517
|
+
Be,
|
|
1518
|
+
{
|
|
1519
|
+
error: this.state.error,
|
|
1520
|
+
renderAppShell: !0
|
|
1521
|
+
}
|
|
1522
|
+
) : this.props.children;
|
|
1523
|
+
}
|
|
1524
|
+
};
|
|
1525
|
+
function ye({
|
|
1526
|
+
renderAppShell: e,
|
|
1527
|
+
title: t,
|
|
1528
|
+
children: r
|
|
1529
|
+
}) {
|
|
1530
|
+
return e ? /* @__PURE__ */ E.createElement("html", { lang: "en" }, /* @__PURE__ */ E.createElement("head", null, /* @__PURE__ */ E.createElement("meta", { charSet: "utf-8" }), /* @__PURE__ */ E.createElement(
|
|
1531
|
+
"meta",
|
|
1532
|
+
{
|
|
1533
|
+
name: "viewport",
|
|
1534
|
+
content: "width=device-width,initial-scale=1,viewport-fit=cover"
|
|
1535
|
+
}
|
|
1536
|
+
), /* @__PURE__ */ E.createElement("title", null, t)), /* @__PURE__ */ E.createElement("body", null, /* @__PURE__ */ E.createElement("main", { style: { fontFamily: "system-ui, sans-serif", padding: "2rem" } }, r))) : r;
|
|
1537
|
+
}
|
|
1538
|
+
function Be({
|
|
1539
|
+
error: e,
|
|
1540
|
+
renderAppShell: t
|
|
1541
|
+
}) {
|
|
1542
|
+
console.error(e);
|
|
1543
|
+
let r = /* @__PURE__ */ E.createElement(
|
|
1544
|
+
"script",
|
|
1545
|
+
{
|
|
1546
|
+
dangerouslySetInnerHTML: {
|
|
1547
|
+
__html: `
|
|
1548
|
+
console.log(
|
|
1549
|
+
"💿 Hey developer 👋. You can provide a way better UX than this when your app throws errors. Check out https://reactrouter.com/how-to/error-boundary for more information."
|
|
1550
|
+
);
|
|
1551
|
+
`
|
|
1552
|
+
}
|
|
1553
|
+
}
|
|
1554
|
+
);
|
|
1555
|
+
if (A(e))
|
|
1556
|
+
return /* @__PURE__ */ E.createElement(
|
|
1557
|
+
ye,
|
|
1558
|
+
{
|
|
1559
|
+
renderAppShell: t,
|
|
1560
|
+
title: "Unhandled Thrown Response!"
|
|
1561
|
+
},
|
|
1562
|
+
/* @__PURE__ */ E.createElement("h1", { style: { fontSize: "24px" } }, e.status, " ", e.statusText),
|
|
1563
|
+
r
|
|
1564
|
+
);
|
|
1565
|
+
let a;
|
|
1566
|
+
if (e instanceof Error)
|
|
1567
|
+
a = e;
|
|
1568
|
+
else {
|
|
1569
|
+
let n = e == null ? "Unknown Error" : typeof e == "object" && "toString" in e ? e.toString() : JSON.stringify(e);
|
|
1570
|
+
a = new Error(n);
|
|
1571
|
+
}
|
|
1572
|
+
return /* @__PURE__ */ E.createElement(ye, { renderAppShell: t, title: "Application Error!" }, /* @__PURE__ */ E.createElement("h1", { style: { fontSize: "24px" } }, "Application Error"), /* @__PURE__ */ E.createElement(
|
|
1573
|
+
"pre",
|
|
1574
|
+
{
|
|
1575
|
+
style: {
|
|
1576
|
+
padding: "2rem",
|
|
1577
|
+
background: "hsla(10, 50%, 50%, 0.1)",
|
|
1578
|
+
color: "red",
|
|
1579
|
+
overflow: "auto"
|
|
1580
|
+
}
|
|
1581
|
+
},
|
|
1582
|
+
a.stack
|
|
1583
|
+
), r);
|
|
1584
|
+
}
|
|
1585
|
+
function Ar({
|
|
1586
|
+
hasRootLayout: e
|
|
1587
|
+
}) {
|
|
1588
|
+
let t = Xe();
|
|
1589
|
+
if (e === void 0)
|
|
1590
|
+
throw new Error("Missing 'hasRootLayout' prop");
|
|
1591
|
+
return /* @__PURE__ */ E.createElement(
|
|
1592
|
+
Be,
|
|
1593
|
+
{
|
|
1594
|
+
renderAppShell: !e,
|
|
1595
|
+
error: t
|
|
1596
|
+
}
|
|
1597
|
+
);
|
|
1598
|
+
}
|
|
1599
|
+
function er(e) {
|
|
1600
|
+
const t = {};
|
|
1601
|
+
for (const r of e.matches)
|
|
1602
|
+
re(t, r);
|
|
1603
|
+
return t;
|
|
1604
|
+
}
|
|
1605
|
+
function re(e, t) {
|
|
1606
|
+
t = Array.isArray(t) ? t : [t];
|
|
1607
|
+
for (const r of t)
|
|
1608
|
+
e[r.id] = {
|
|
1609
|
+
links: r.links,
|
|
1610
|
+
meta: r.meta,
|
|
1611
|
+
default: tr
|
|
1612
|
+
};
|
|
1613
|
+
}
|
|
1614
|
+
var tr = () => null;
|
|
1615
|
+
function xr({
|
|
1616
|
+
createFromReadableStream: e,
|
|
1617
|
+
createTemporaryReferenceSet: t,
|
|
1618
|
+
encodeReply: r,
|
|
1619
|
+
fetch: a = fetch
|
|
1620
|
+
}) {
|
|
1621
|
+
const n = window;
|
|
1622
|
+
let s = 0;
|
|
1623
|
+
return async (o, u) => {
|
|
1624
|
+
let i = n.__routerActionID = (n.__routerActionID ?? (n.__routerActionID = 0)) + 1;
|
|
1625
|
+
const l = t(), d = await a(
|
|
1626
|
+
new Request(location.href, {
|
|
1627
|
+
body: await r(u, { temporaryReferences: l }),
|
|
1628
|
+
method: "POST",
|
|
1629
|
+
headers: {
|
|
1630
|
+
Accept: "text/x-component",
|
|
1631
|
+
"rsc-action-id": o
|
|
1632
|
+
}
|
|
1633
|
+
})
|
|
1634
|
+
);
|
|
1635
|
+
if (!d.body)
|
|
1636
|
+
throw new Error("No response body");
|
|
1637
|
+
const h = await e(d.body, {
|
|
1638
|
+
temporaryReferences: l
|
|
1639
|
+
});
|
|
1640
|
+
if (h.type === "redirect") {
|
|
1641
|
+
if (h.reload) {
|
|
1642
|
+
window.location.href = h.location;
|
|
1643
|
+
return;
|
|
1644
|
+
}
|
|
1645
|
+
return n.__reactRouterDataRouter.navigate(h.location, {
|
|
1646
|
+
replace: h.replace
|
|
1647
|
+
}), h.actionResult;
|
|
1648
|
+
}
|
|
1649
|
+
if (h.type !== "action")
|
|
1650
|
+
throw new Error("Unexpected payload type");
|
|
1651
|
+
return h.rerender && g.startTransition(
|
|
1652
|
+
// @ts-expect-error - We have old react types that don't know this can be async
|
|
1653
|
+
async () => {
|
|
1654
|
+
const c = await h.rerender;
|
|
1655
|
+
if (c && s < i && n.__routerActionID <= i) {
|
|
1656
|
+
if (s = i, c.type === "redirect") {
|
|
1657
|
+
if (c.reload) {
|
|
1658
|
+
window.location.href = c.location;
|
|
1659
|
+
return;
|
|
1660
|
+
}
|
|
1661
|
+
n.__reactRouterDataRouter.navigate(c.location, {
|
|
1662
|
+
replace: c.replace
|
|
1663
|
+
});
|
|
1664
|
+
return;
|
|
1665
|
+
}
|
|
1666
|
+
let p;
|
|
1667
|
+
for (const f of c.matches)
|
|
1668
|
+
n.__reactRouterDataRouter.patchRoutes(
|
|
1669
|
+
p?.id ?? null,
|
|
1670
|
+
[F(f)],
|
|
1671
|
+
!0
|
|
1672
|
+
), p = f;
|
|
1673
|
+
window.__reactRouterDataRouter._internalSetStateDoNotUseOrYouWillBreakYourApp(
|
|
1674
|
+
{}
|
|
1675
|
+
), g.startTransition(() => {
|
|
1676
|
+
window.__reactRouterDataRouter._internalSetStateDoNotUseOrYouWillBreakYourApp(
|
|
1677
|
+
{
|
|
1678
|
+
loaderData: Object.assign(
|
|
1679
|
+
{},
|
|
1680
|
+
n.__reactRouterDataRouter.state.loaderData,
|
|
1681
|
+
c.loaderData
|
|
1682
|
+
),
|
|
1683
|
+
errors: c.errors ? Object.assign(
|
|
1684
|
+
{},
|
|
1685
|
+
n.__reactRouterDataRouter.state.errors,
|
|
1686
|
+
c.errors
|
|
1687
|
+
) : null
|
|
1688
|
+
}
|
|
1689
|
+
);
|
|
1690
|
+
});
|
|
1691
|
+
}
|
|
1692
|
+
}
|
|
1693
|
+
), h.actionResult;
|
|
1694
|
+
};
|
|
1695
|
+
}
|
|
1696
|
+
function rr({
|
|
1697
|
+
fetchImplementation: e,
|
|
1698
|
+
createFromReadableStream: t,
|
|
1699
|
+
unstable_getContext: r,
|
|
1700
|
+
payload: a
|
|
1701
|
+
}) {
|
|
1702
|
+
const n = window;
|
|
1703
|
+
if (n.__reactRouterDataRouter && n.__reactRouterRouteModules)
|
|
1704
|
+
return {
|
|
1705
|
+
router: n.__reactRouterDataRouter,
|
|
1706
|
+
routeModules: n.__reactRouterRouteModules
|
|
1707
|
+
};
|
|
1708
|
+
if (a.type !== "render") throw new Error("Invalid payload type");
|
|
1709
|
+
n.__reactRouterRouteModules = n.__reactRouterRouteModules ?? {}, re(n.__reactRouterRouteModules, a.matches);
|
|
1710
|
+
let s = /* @__PURE__ */ new Map();
|
|
1711
|
+
a.patches?.forEach((i) => {
|
|
1712
|
+
L(i.parentId, "Invalid patch parentId"), s.has(i.parentId) || s.set(i.parentId, []), s.get(i.parentId)?.push(i);
|
|
1713
|
+
});
|
|
1714
|
+
let o = a.matches.reduceRight((i, l) => {
|
|
1715
|
+
const d = F(
|
|
1716
|
+
l,
|
|
1717
|
+
a
|
|
1718
|
+
);
|
|
1719
|
+
if (i.length > 0) {
|
|
1720
|
+
d.children = i;
|
|
1721
|
+
let h = s.get(l.id);
|
|
1722
|
+
h && d.children.push(
|
|
1723
|
+
...h.map((c) => F(c))
|
|
1724
|
+
);
|
|
1725
|
+
}
|
|
1726
|
+
return [d];
|
|
1727
|
+
}, []);
|
|
1728
|
+
n.__reactRouterDataRouter = ot({
|
|
1729
|
+
routes: o,
|
|
1730
|
+
unstable_getContext: r,
|
|
1731
|
+
basename: a.basename,
|
|
1732
|
+
history: st(),
|
|
1733
|
+
hydrationData: Zt(
|
|
1734
|
+
{
|
|
1735
|
+
loaderData: a.loaderData,
|
|
1736
|
+
actionData: a.actionData,
|
|
1737
|
+
errors: a.errors
|
|
1738
|
+
},
|
|
1739
|
+
o,
|
|
1740
|
+
(i) => {
|
|
1741
|
+
let l = a.matches.find((d) => d.id === i);
|
|
1742
|
+
return L(l, "Route not found in payload"), {
|
|
1743
|
+
clientLoader: l.clientLoader,
|
|
1744
|
+
hasLoader: l.hasLoader,
|
|
1745
|
+
hasHydrateFallback: l.hydrateFallbackElement != null
|
|
1746
|
+
};
|
|
1747
|
+
},
|
|
1748
|
+
a.location,
|
|
1749
|
+
void 0,
|
|
1750
|
+
!1
|
|
1751
|
+
),
|
|
1752
|
+
async patchRoutesOnNavigation({ path: i, signal: l }) {
|
|
1753
|
+
B.has(i) || await $e(
|
|
1754
|
+
[i],
|
|
1755
|
+
t,
|
|
1756
|
+
e,
|
|
1757
|
+
l
|
|
1758
|
+
);
|
|
1759
|
+
},
|
|
1760
|
+
// FIXME: Pass `build.ssr` into this function
|
|
1761
|
+
dataStrategy: ar(
|
|
1762
|
+
() => n.__reactRouterDataRouter,
|
|
1763
|
+
!0,
|
|
1764
|
+
a.basename,
|
|
1765
|
+
t,
|
|
1766
|
+
e
|
|
1767
|
+
)
|
|
1768
|
+
}), n.__reactRouterDataRouter.state.initialized ? (n.__routerInitialized = !0, n.__reactRouterDataRouter.initialize()) : n.__routerInitialized = !1;
|
|
1769
|
+
let u;
|
|
1770
|
+
return n.__reactRouterDataRouter.subscribe(({ loaderData: i, actionData: l }) => {
|
|
1771
|
+
u !== i && (n.__routerActionID = (n.__routerActionID ?? (n.__routerActionID = 0)) + 1);
|
|
1772
|
+
}), n.__reactRouterDataRouter._updateRoutesForHMR = (i) => {
|
|
1773
|
+
const l = window.__reactRouterDataRouter.routes, d = [];
|
|
1774
|
+
function h(c, p) {
|
|
1775
|
+
return c.map((f) => {
|
|
1776
|
+
const m = i.get(f.id);
|
|
1777
|
+
if (m) {
|
|
1778
|
+
const {
|
|
1779
|
+
routeModule: R,
|
|
1780
|
+
hasAction: S,
|
|
1781
|
+
hasComponent: v,
|
|
1782
|
+
hasErrorBoundary: w,
|
|
1783
|
+
hasLoader: _
|
|
1784
|
+
} = m, I = F({
|
|
1785
|
+
clientAction: R.clientAction,
|
|
1786
|
+
clientLoader: R.clientLoader,
|
|
1787
|
+
element: f.element,
|
|
1788
|
+
errorElement: f.errorElement,
|
|
1789
|
+
handle: f.handle,
|
|
1790
|
+
hasAction: S,
|
|
1791
|
+
hasComponent: v,
|
|
1792
|
+
hasErrorBoundary: w,
|
|
1793
|
+
hasLoader: _,
|
|
1794
|
+
hydrateFallbackElement: f.hydrateFallbackElement,
|
|
1795
|
+
id: f.id,
|
|
1796
|
+
index: f.index,
|
|
1797
|
+
links: R.links,
|
|
1798
|
+
meta: R.meta,
|
|
1799
|
+
parentId: p,
|
|
1800
|
+
path: f.path,
|
|
1801
|
+
shouldRevalidate: R.shouldRevalidate
|
|
1802
|
+
});
|
|
1803
|
+
return f.children && (I.children = h(f.children, f.id)), I;
|
|
1804
|
+
}
|
|
1805
|
+
const y = { ...f };
|
|
1806
|
+
return f.children && (y.children = h(f.children, f.id)), y;
|
|
1807
|
+
});
|
|
1808
|
+
}
|
|
1809
|
+
d.push(
|
|
1810
|
+
...h(l, void 0)
|
|
1811
|
+
), window.__reactRouterDataRouter._internalSetRoutes(d);
|
|
1812
|
+
}, {
|
|
1813
|
+
router: n.__reactRouterDataRouter,
|
|
1814
|
+
routeModules: n.__reactRouterRouteModules
|
|
1815
|
+
};
|
|
1816
|
+
}
|
|
1817
|
+
var K = pt();
|
|
1818
|
+
function ar(e, t, r, a, n) {
|
|
1819
|
+
let s = mt(
|
|
1820
|
+
e,
|
|
1821
|
+
(o) => {
|
|
1822
|
+
let u = o;
|
|
1823
|
+
return {
|
|
1824
|
+
hasLoader: u.route.hasLoader,
|
|
1825
|
+
hasClientLoader: u.route.hasClientLoader,
|
|
1826
|
+
hasComponent: u.route.hasComponent,
|
|
1827
|
+
hasAction: u.route.hasAction,
|
|
1828
|
+
hasClientAction: u.route.hasClientAction,
|
|
1829
|
+
hasShouldRevalidate: u.route.hasShouldRevalidate
|
|
1830
|
+
};
|
|
1831
|
+
},
|
|
1832
|
+
// pass map into fetchAndDecode so it can add payloads
|
|
1833
|
+
nr(a, n),
|
|
1834
|
+
t,
|
|
1835
|
+
r,
|
|
1836
|
+
// If the route has a component but we don't have an element, we need to hit
|
|
1837
|
+
// the server loader flow regardless of whether the client loader calls
|
|
1838
|
+
// `serverLoader` or not, otherwise we'll have nothing to render.
|
|
1839
|
+
(o) => {
|
|
1840
|
+
let u = o;
|
|
1841
|
+
return u.route.hasComponent && !u.route.element;
|
|
1842
|
+
}
|
|
1843
|
+
);
|
|
1844
|
+
return async (o) => o.unstable_runClientMiddleware(async () => {
|
|
1845
|
+
let u = o.context;
|
|
1846
|
+
u.set(K, []);
|
|
1847
|
+
let i = await s(o);
|
|
1848
|
+
const l = /* @__PURE__ */ new Map();
|
|
1849
|
+
for (const d of u.get(K))
|
|
1850
|
+
l.has(d.id) || l.set(d.id, []), l.get(d.id).push(d);
|
|
1851
|
+
for (const d of o.matches) {
|
|
1852
|
+
const h = l.get(d.route.id);
|
|
1853
|
+
if (h)
|
|
1854
|
+
for (const c of h)
|
|
1855
|
+
window.__reactRouterDataRouter.patchRoutes(
|
|
1856
|
+
c.parentId ?? null,
|
|
1857
|
+
[F(c)],
|
|
1858
|
+
!0
|
|
1859
|
+
);
|
|
1860
|
+
}
|
|
1861
|
+
return i;
|
|
1862
|
+
});
|
|
1863
|
+
}
|
|
1864
|
+
function nr(e, t) {
|
|
1865
|
+
return async (r, a, n) => {
|
|
1866
|
+
let { request: s, context: o } = r, u = Rt(s.url, a, "rsc");
|
|
1867
|
+
s.method === "GET" && (u = wt(u), n && u.searchParams.set("_routes", n.join(",")));
|
|
1868
|
+
let i = await t(
|
|
1869
|
+
new Request(u, await gt(s))
|
|
1870
|
+
);
|
|
1871
|
+
if (i.status === 404 && !i.headers.has("X-Remix-Response"))
|
|
1872
|
+
throw new D(404, "Not Found", !0);
|
|
1873
|
+
L(i.body, "No response body to decode");
|
|
1874
|
+
try {
|
|
1875
|
+
const l = await e(i.body, {
|
|
1876
|
+
temporaryReferences: void 0
|
|
1877
|
+
});
|
|
1878
|
+
if (l.type === "redirect")
|
|
1879
|
+
return {
|
|
1880
|
+
status: i.status,
|
|
1881
|
+
data: {
|
|
1882
|
+
redirect: {
|
|
1883
|
+
redirect: l.location,
|
|
1884
|
+
reload: l.reload,
|
|
1885
|
+
replace: l.replace,
|
|
1886
|
+
revalidate: !1,
|
|
1887
|
+
status: l.status
|
|
1888
|
+
}
|
|
1889
|
+
}
|
|
1890
|
+
};
|
|
1891
|
+
if (l.type !== "render")
|
|
1892
|
+
throw new Error("Unexpected payload type");
|
|
1893
|
+
o.get(K).push(...l.matches);
|
|
1894
|
+
let d = { routes: {} };
|
|
1895
|
+
const h = vt(s.method) ? "actionData" : "loaderData";
|
|
1896
|
+
for (let [c, p] of Object.entries(l[h] || {}))
|
|
1897
|
+
d.routes[c] = { data: p };
|
|
1898
|
+
if (l.errors)
|
|
1899
|
+
for (let [c, p] of Object.entries(l.errors))
|
|
1900
|
+
d.routes[c] = { error: p };
|
|
1901
|
+
return { status: i.status, data: d };
|
|
1902
|
+
} catch {
|
|
1903
|
+
throw new Error("Unable to decode RSC response");
|
|
1904
|
+
}
|
|
1905
|
+
};
|
|
1906
|
+
}
|
|
1907
|
+
function Fr({
|
|
1908
|
+
createFromReadableStream: e,
|
|
1909
|
+
fetch: t = fetch,
|
|
1910
|
+
payload: r,
|
|
1911
|
+
routeDiscovery: a = "eager",
|
|
1912
|
+
unstable_getContext: n
|
|
1913
|
+
}) {
|
|
1914
|
+
if (r.type !== "render") throw new Error("Invalid payload type");
|
|
1915
|
+
let { router: s, routeModules: o } = g.useMemo(
|
|
1916
|
+
() => rr({
|
|
1917
|
+
payload: r,
|
|
1918
|
+
fetchImplementation: t,
|
|
1919
|
+
unstable_getContext: n,
|
|
1920
|
+
createFromReadableStream: e
|
|
1921
|
+
}),
|
|
1922
|
+
[
|
|
1923
|
+
e,
|
|
1924
|
+
r,
|
|
1925
|
+
t,
|
|
1926
|
+
n
|
|
1927
|
+
]
|
|
1928
|
+
);
|
|
1929
|
+
g.useEffect(() => {
|
|
1930
|
+
Qe();
|
|
1931
|
+
}, []), g.useLayoutEffect(() => {
|
|
1932
|
+
const d = window;
|
|
1933
|
+
d.__routerInitialized || (d.__routerInitialized = !0, d.__reactRouterDataRouter.initialize());
|
|
1934
|
+
}, []);
|
|
1935
|
+
let [u, i] = g.useState(s.state.location);
|
|
1936
|
+
g.useLayoutEffect(
|
|
1937
|
+
() => s.subscribe((d) => {
|
|
1938
|
+
d.location !== u && i(d.location);
|
|
1939
|
+
}),
|
|
1940
|
+
[s, u]
|
|
1941
|
+
), g.useEffect(() => {
|
|
1942
|
+
if (a === "lazy" || // @ts-expect-error - TS doesn't know about this yet
|
|
1943
|
+
window.navigator?.connection?.saveData === !0)
|
|
1944
|
+
return;
|
|
1945
|
+
function d(f) {
|
|
1946
|
+
let m = f.tagName === "FORM" ? f.getAttribute("action") : f.getAttribute("href");
|
|
1947
|
+
if (!m)
|
|
1948
|
+
return;
|
|
1949
|
+
let y = f.tagName === "A" ? f.pathname : new URL(m, window.location.origin).pathname;
|
|
1950
|
+
B.has(y) || N.add(y);
|
|
1951
|
+
}
|
|
1952
|
+
async function h() {
|
|
1953
|
+
document.querySelectorAll("a[data-discover], form[data-discover]").forEach(d);
|
|
1954
|
+
let f = Array.from(N.keys()).filter((m) => B.has(m) ? (N.delete(m), !1) : !0);
|
|
1955
|
+
if (f.length !== 0)
|
|
1956
|
+
try {
|
|
1957
|
+
await $e(
|
|
1958
|
+
f,
|
|
1959
|
+
e,
|
|
1960
|
+
t
|
|
1961
|
+
);
|
|
1962
|
+
} catch (m) {
|
|
1963
|
+
console.error("Failed to fetch manifest patches", m);
|
|
1964
|
+
}
|
|
1965
|
+
}
|
|
1966
|
+
let c = ur(h, 100);
|
|
1967
|
+
h(), new MutationObserver(() => c()).observe(document.documentElement, {
|
|
1968
|
+
subtree: !0,
|
|
1969
|
+
childList: !0,
|
|
1970
|
+
attributes: !0,
|
|
1971
|
+
attributeFilter: ["data-discover", "href", "action"]
|
|
1972
|
+
});
|
|
1973
|
+
}, [a, e, t]);
|
|
1974
|
+
const l = {
|
|
1975
|
+
future: {
|
|
1976
|
+
// These flags have no runtime impact so can always be false. If we add
|
|
1977
|
+
// flags that drive runtime behavior they'll need to be proxied through.
|
|
1978
|
+
unstable_middleware: !1,
|
|
1979
|
+
unstable_subResourceIntegrity: !1
|
|
1980
|
+
},
|
|
1981
|
+
isSpaMode: !1,
|
|
1982
|
+
ssr: !0,
|
|
1983
|
+
criticalCss: "",
|
|
1984
|
+
manifest: {
|
|
1985
|
+
routes: {},
|
|
1986
|
+
version: "1",
|
|
1987
|
+
url: "",
|
|
1988
|
+
entry: {
|
|
1989
|
+
module: "",
|
|
1990
|
+
imports: []
|
|
1991
|
+
}
|
|
1992
|
+
},
|
|
1993
|
+
routeDiscovery: { mode: "lazy", manifestPath: "/__manifest" },
|
|
1994
|
+
routeModules: o
|
|
1995
|
+
};
|
|
1996
|
+
return /* @__PURE__ */ g.createElement(be.Provider, { value: !0 }, /* @__PURE__ */ g.createElement(ze, { location: u }, /* @__PURE__ */ g.createElement(j.Provider, { value: l }, /* @__PURE__ */ g.createElement(_e, { router: s, flushSync: St.flushSync }))));
|
|
1997
|
+
}
|
|
1998
|
+
function F(e, t) {
|
|
1999
|
+
let r = t && e.id in t.loaderData, a = t?.loaderData[e.id], n = t?.errors && e.id in t.errors, s = t?.errors?.[e.id], o = e.clientLoader?.hydrate === !0 || !e.hasLoader || // If the route has a component but we don't have an element, we need to hit
|
|
2000
|
+
// the server loader flow regardless of whether the client loader calls
|
|
2001
|
+
// `serverLoader` or not, otherwise we'll have nothing to render.
|
|
2002
|
+
e.hasComponent && !e.element;
|
|
2003
|
+
L(window.__reactRouterRouteModules), re(window.__reactRouterRouteModules, e);
|
|
2004
|
+
let u = {
|
|
2005
|
+
id: e.id,
|
|
2006
|
+
element: e.element,
|
|
2007
|
+
errorElement: e.errorElement,
|
|
2008
|
+
handle: e.handle,
|
|
2009
|
+
hasErrorBoundary: e.hasErrorBoundary,
|
|
2010
|
+
hydrateFallbackElement: e.hydrateFallbackElement,
|
|
2011
|
+
index: e.index,
|
|
2012
|
+
loader: e.clientLoader ? async (i, l) => {
|
|
2013
|
+
try {
|
|
2014
|
+
return await e.clientLoader({
|
|
2015
|
+
...i,
|
|
2016
|
+
serverLoader: () => {
|
|
2017
|
+
if (Re(
|
|
2018
|
+
"loader",
|
|
2019
|
+
e.id,
|
|
2020
|
+
e.hasLoader
|
|
2021
|
+
), o) {
|
|
2022
|
+
if (r)
|
|
2023
|
+
return a;
|
|
2024
|
+
if (n)
|
|
2025
|
+
throw s;
|
|
2026
|
+
}
|
|
2027
|
+
return P(l);
|
|
2028
|
+
}
|
|
2029
|
+
});
|
|
2030
|
+
} finally {
|
|
2031
|
+
o = !1;
|
|
2032
|
+
}
|
|
2033
|
+
} : (
|
|
2034
|
+
// We always make the call in this RSC world since even if we don't
|
|
2035
|
+
// have a `loader` we may need to get the `element` implementation
|
|
2036
|
+
((i, l) => P(l))
|
|
2037
|
+
),
|
|
2038
|
+
action: e.clientAction ? (i, l) => e.clientAction({
|
|
2039
|
+
...i,
|
|
2040
|
+
serverAction: async () => (Re(
|
|
2041
|
+
"action",
|
|
2042
|
+
e.id,
|
|
2043
|
+
e.hasLoader
|
|
2044
|
+
), await P(l))
|
|
2045
|
+
}) : e.hasAction ? (i, l) => P(l) : () => {
|
|
2046
|
+
throw it("action", e.id);
|
|
2047
|
+
},
|
|
2048
|
+
path: e.path,
|
|
2049
|
+
shouldRevalidate: e.shouldRevalidate,
|
|
2050
|
+
// We always have a "loader" in this RSC world since even if we don't
|
|
2051
|
+
// have a `loader` we may need to get the `element` implementation
|
|
2052
|
+
hasLoader: !0,
|
|
2053
|
+
hasClientLoader: e.clientLoader != null,
|
|
2054
|
+
hasAction: e.hasAction,
|
|
2055
|
+
hasClientAction: e.clientAction != null,
|
|
2056
|
+
hasShouldRevalidate: e.shouldRevalidate != null
|
|
2057
|
+
};
|
|
2058
|
+
return typeof u.loader == "function" && (u.loader.hydrate = $(
|
|
2059
|
+
e.id,
|
|
2060
|
+
e.clientLoader,
|
|
2061
|
+
e.hasLoader,
|
|
2062
|
+
!1
|
|
2063
|
+
)), u;
|
|
2064
|
+
}
|
|
2065
|
+
function P(e) {
|
|
2066
|
+
return L(typeof e == "function", "Invalid singleFetch parameter"), e();
|
|
2067
|
+
}
|
|
2068
|
+
function Re(e, t, r) {
|
|
2069
|
+
if (!r) {
|
|
2070
|
+
let n = `You are trying to call ${e === "action" ? "serverAction()" : "serverLoader()"} on a route that does not have a server ${e} (routeId: "${t}")`;
|
|
2071
|
+
throw console.error(n), new D(400, "Bad Request", new Error(n), !0);
|
|
2072
|
+
}
|
|
2073
|
+
}
|
|
2074
|
+
var N = /* @__PURE__ */ new Set(), or = 1e3, B = /* @__PURE__ */ new Set(), sr = 7680;
|
|
2075
|
+
function ir(e) {
|
|
2076
|
+
if (e.length === 0)
|
|
2077
|
+
return null;
|
|
2078
|
+
if (e.length === 1)
|
|
2079
|
+
return new URL(`${e[0]}.manifest`, window.location.origin);
|
|
2080
|
+
let r = (window.__reactRouterDataRouter.basename ?? "").replace(
|
|
2081
|
+
/^\/|\/$/g,
|
|
2082
|
+
""
|
|
2083
|
+
), a = new URL(`${r}/.manifest`, window.location.origin);
|
|
2084
|
+
return e.sort().forEach((n) => a.searchParams.append("p", n)), a;
|
|
2085
|
+
}
|
|
2086
|
+
async function $e(e, t, r, a) {
|
|
2087
|
+
let n = ir(e);
|
|
2088
|
+
if (n == null)
|
|
2089
|
+
return;
|
|
2090
|
+
if (n.toString().length > sr) {
|
|
2091
|
+
N.clear();
|
|
2092
|
+
return;
|
|
2093
|
+
}
|
|
2094
|
+
let s = await r(new Request(n, { signal: a }));
|
|
2095
|
+
if (!s.body || s.status < 200 || s.status >= 300)
|
|
2096
|
+
throw new Error("Unable to fetch new route matches from the server");
|
|
2097
|
+
let o = await t(s.body, {
|
|
2098
|
+
temporaryReferences: void 0
|
|
2099
|
+
});
|
|
2100
|
+
if (o.type !== "manifest")
|
|
2101
|
+
throw new Error("Failed to patch routes");
|
|
2102
|
+
e.forEach((u) => lr(u, B)), o.patches.forEach((u) => {
|
|
2103
|
+
window.__reactRouterDataRouter.patchRoutes(
|
|
2104
|
+
u.parentId ?? null,
|
|
2105
|
+
[F(u)]
|
|
2106
|
+
);
|
|
2107
|
+
});
|
|
2108
|
+
}
|
|
2109
|
+
function lr(e, t) {
|
|
2110
|
+
if (t.size >= or) {
|
|
2111
|
+
let r = t.values().next().value;
|
|
2112
|
+
t.delete(r);
|
|
2113
|
+
}
|
|
2114
|
+
t.add(e);
|
|
2115
|
+
}
|
|
2116
|
+
function ur(e, t) {
|
|
2117
|
+
let r;
|
|
2118
|
+
return (...a) => {
|
|
2119
|
+
window.clearTimeout(r), r = window.setTimeout(() => e(...a), t);
|
|
2120
|
+
};
|
|
2121
|
+
}
|
|
2122
|
+
var Q = new TextEncoder(), we = "</body></html>";
|
|
2123
|
+
function dr(e) {
|
|
2124
|
+
let t = new TextDecoder(), r, a = new Promise(
|
|
2125
|
+
(i) => r = i
|
|
2126
|
+
), n = !1, s = [], o = null;
|
|
2127
|
+
function u(i) {
|
|
2128
|
+
for (let l of s) {
|
|
2129
|
+
let d = t.decode(l, { stream: !0 });
|
|
2130
|
+
d.endsWith(we) && (d = d.slice(0, -we.length)), i.enqueue(Q.encode(d));
|
|
2131
|
+
}
|
|
2132
|
+
s.length = 0, o = null;
|
|
2133
|
+
}
|
|
2134
|
+
return new TransformStream({
|
|
2135
|
+
transform(i, l) {
|
|
2136
|
+
s.push(i), !o && (o = setTimeout(async () => {
|
|
2137
|
+
u(l), n || (n = !0, cr(e, l).catch((d) => l.error(d)).then(r));
|
|
2138
|
+
}, 0));
|
|
2139
|
+
},
|
|
2140
|
+
async flush(i) {
|
|
2141
|
+
await a, o && (clearTimeout(o), u(i)), i.enqueue(Q.encode("</body></html>"));
|
|
2142
|
+
}
|
|
2143
|
+
});
|
|
2144
|
+
}
|
|
2145
|
+
async function cr(e, t) {
|
|
2146
|
+
let r = new TextDecoder("utf-8", { fatal: !0 });
|
|
2147
|
+
const a = e.getReader();
|
|
2148
|
+
try {
|
|
2149
|
+
let s;
|
|
2150
|
+
for (; (s = await a.read()) && !s.done; ) {
|
|
2151
|
+
const o = s.value;
|
|
2152
|
+
try {
|
|
2153
|
+
G(
|
|
2154
|
+
JSON.stringify(r.decode(o, { stream: !0 })),
|
|
2155
|
+
t
|
|
2156
|
+
);
|
|
2157
|
+
} catch {
|
|
2158
|
+
let i = JSON.stringify(btoa(String.fromCodePoint(...o)));
|
|
2159
|
+
G(
|
|
2160
|
+
`Uint8Array.from(atob(${i}), m => m.codePointAt(0))`,
|
|
2161
|
+
t
|
|
2162
|
+
);
|
|
2163
|
+
}
|
|
2164
|
+
}
|
|
2165
|
+
} finally {
|
|
2166
|
+
a.releaseLock();
|
|
2167
|
+
}
|
|
2168
|
+
let n = r.decode();
|
|
2169
|
+
n.length && G(JSON.stringify(n), t);
|
|
2170
|
+
}
|
|
2171
|
+
function G(e, t) {
|
|
2172
|
+
t.enqueue(
|
|
2173
|
+
Q.encode(
|
|
2174
|
+
`<script>${fr(
|
|
2175
|
+
`(self.__FLIGHT_DATA||=[]).push(${e})`
|
|
2176
|
+
)}<\/script>`
|
|
2177
|
+
)
|
|
2178
|
+
);
|
|
2179
|
+
}
|
|
2180
|
+
function fr(e) {
|
|
2181
|
+
return e.replace(/<!--/g, "<\\!--").replace(/<\/(script)/gi, "</\\$1");
|
|
2182
|
+
}
|
|
2183
|
+
var hr = "use", ge = g[hr];
|
|
2184
|
+
function pr(e) {
|
|
2185
|
+
if (ge)
|
|
2186
|
+
return ge(e);
|
|
2187
|
+
throw new Error("React Router v7 requires React 19+ for RSC features.");
|
|
2188
|
+
}
|
|
2189
|
+
async function kr({
|
|
2190
|
+
request: e,
|
|
2191
|
+
fetchServer: t,
|
|
2192
|
+
createFromReadableStream: r,
|
|
2193
|
+
renderHTML: a,
|
|
2194
|
+
hydrate: n = !0
|
|
2195
|
+
}) {
|
|
2196
|
+
const s = new URL(e.url), u = mr(s) || yr(s) || e.headers.has("rsc-action-id"), i = await t(e);
|
|
2197
|
+
if (u || i.headers.get("React-Router-Resource") === "true")
|
|
2198
|
+
return i;
|
|
2199
|
+
if (!i.body)
|
|
2200
|
+
throw new Error("Missing body in server response");
|
|
2201
|
+
let l = null;
|
|
2202
|
+
n && (l = i.clone());
|
|
2203
|
+
const d = i.body;
|
|
2204
|
+
let h;
|
|
2205
|
+
const c = async () => h || (h = r(d), h);
|
|
2206
|
+
try {
|
|
2207
|
+
const p = await c();
|
|
2208
|
+
if (i.status === Ce && p.type === "redirect") {
|
|
2209
|
+
const R = new Headers(i.headers);
|
|
2210
|
+
return R.delete("Content-Encoding"), R.delete("Content-Length"), R.delete("Content-Type"), R.delete("x-remix-response"), R.set("Location", p.location), new Response(l?.body || "", {
|
|
2211
|
+
headers: R,
|
|
2212
|
+
status: p.status,
|
|
2213
|
+
statusText: i.statusText
|
|
2214
|
+
});
|
|
2215
|
+
}
|
|
2216
|
+
const f = await a(c), m = new Headers(i.headers);
|
|
2217
|
+
if (m.set("Content-Type", "text/html"), !n)
|
|
2218
|
+
return new Response(f, {
|
|
2219
|
+
status: i.status,
|
|
2220
|
+
headers: m
|
|
2221
|
+
});
|
|
2222
|
+
if (!l?.body)
|
|
2223
|
+
throw new Error("Failed to clone server response");
|
|
2224
|
+
const y = f.pipeThrough(dr(l.body));
|
|
2225
|
+
return new Response(y, {
|
|
2226
|
+
status: i.status,
|
|
2227
|
+
headers: m
|
|
2228
|
+
});
|
|
2229
|
+
} catch (p) {
|
|
2230
|
+
if (p instanceof Response)
|
|
2231
|
+
return p;
|
|
2232
|
+
throw p;
|
|
2233
|
+
}
|
|
2234
|
+
}
|
|
2235
|
+
function Lr({ getPayload: e }) {
|
|
2236
|
+
const t = pr(e());
|
|
2237
|
+
if (t.type === "redirect")
|
|
2238
|
+
throw new Response(null, {
|
|
2239
|
+
status: t.status,
|
|
2240
|
+
headers: {
|
|
2241
|
+
Location: t.location
|
|
2242
|
+
}
|
|
2243
|
+
});
|
|
2244
|
+
if (t.type !== "render") return null;
|
|
2245
|
+
let r = { ...t.loaderData };
|
|
2246
|
+
for (const o of t.matches)
|
|
2247
|
+
$(
|
|
2248
|
+
o.id,
|
|
2249
|
+
o.clientLoader,
|
|
2250
|
+
o.hasLoader,
|
|
2251
|
+
!1
|
|
2252
|
+
) && (o.hydrateFallbackElement || !o.hasLoader) && delete r[o.id];
|
|
2253
|
+
const a = {
|
|
2254
|
+
actionData: t.actionData,
|
|
2255
|
+
actionHeaders: {},
|
|
2256
|
+
basename: t.basename,
|
|
2257
|
+
errors: t.errors,
|
|
2258
|
+
loaderData: r,
|
|
2259
|
+
loaderHeaders: {},
|
|
2260
|
+
location: t.location,
|
|
2261
|
+
statusCode: 200,
|
|
2262
|
+
matches: t.matches.map((o) => ({
|
|
2263
|
+
params: o.params,
|
|
2264
|
+
pathname: o.pathname,
|
|
2265
|
+
pathnameBase: o.pathnameBase,
|
|
2266
|
+
route: {
|
|
2267
|
+
id: o.id,
|
|
2268
|
+
action: o.hasAction || !!o.clientAction,
|
|
2269
|
+
handle: o.handle,
|
|
2270
|
+
hasErrorBoundary: o.hasErrorBoundary,
|
|
2271
|
+
loader: o.hasLoader || !!o.clientLoader,
|
|
2272
|
+
index: o.index,
|
|
2273
|
+
path: o.path,
|
|
2274
|
+
shouldRevalidate: o.shouldRevalidate
|
|
2275
|
+
}
|
|
2276
|
+
}))
|
|
2277
|
+
}, n = ve(
|
|
2278
|
+
t.matches.reduceRight((o, u) => {
|
|
2279
|
+
const i = {
|
|
2280
|
+
id: u.id,
|
|
2281
|
+
action: u.hasAction || !!u.clientAction,
|
|
2282
|
+
element: u.element,
|
|
2283
|
+
errorElement: u.errorElement,
|
|
2284
|
+
handle: u.handle,
|
|
2285
|
+
hasErrorBoundary: !!u.errorElement,
|
|
2286
|
+
hydrateFallbackElement: u.hydrateFallbackElement,
|
|
2287
|
+
index: u.index,
|
|
2288
|
+
loader: u.hasLoader || !!u.clientLoader,
|
|
2289
|
+
path: u.path,
|
|
2290
|
+
shouldRevalidate: u.shouldRevalidate
|
|
2291
|
+
};
|
|
2292
|
+
return o.length > 0 && (i.children = o), [i];
|
|
2293
|
+
}, []),
|
|
2294
|
+
a
|
|
2295
|
+
), s = {
|
|
2296
|
+
future: {
|
|
2297
|
+
// These flags have no runtime impact so can always be false. If we add
|
|
2298
|
+
// flags that drive runtime behavior they'll need to be proxied through.
|
|
2299
|
+
unstable_middleware: !1,
|
|
2300
|
+
unstable_subResourceIntegrity: !1
|
|
2301
|
+
},
|
|
2302
|
+
isSpaMode: !1,
|
|
2303
|
+
ssr: !0,
|
|
2304
|
+
criticalCss: "",
|
|
2305
|
+
manifest: {
|
|
2306
|
+
routes: {},
|
|
2307
|
+
version: "1",
|
|
2308
|
+
url: "",
|
|
2309
|
+
entry: {
|
|
2310
|
+
module: "",
|
|
2311
|
+
imports: []
|
|
2312
|
+
}
|
|
2313
|
+
},
|
|
2314
|
+
routeDiscovery: { mode: "lazy", manifestPath: "/__manifest" },
|
|
2315
|
+
routeModules: er(t)
|
|
2316
|
+
};
|
|
2317
|
+
return /* @__PURE__ */ g.createElement(be.Provider, { value: !0 }, /* @__PURE__ */ g.createElement(ze, { location: t.location }, /* @__PURE__ */ g.createElement(j.Provider, { value: s }, /* @__PURE__ */ g.createElement(
|
|
2318
|
+
Se,
|
|
2319
|
+
{
|
|
2320
|
+
context: a,
|
|
2321
|
+
router: n,
|
|
2322
|
+
hydrate: !1,
|
|
2323
|
+
nonce: t.nonce
|
|
2324
|
+
}
|
|
2325
|
+
))));
|
|
2326
|
+
}
|
|
2327
|
+
function mr(e) {
|
|
2328
|
+
return e.pathname.endsWith(".rsc");
|
|
2329
|
+
}
|
|
2330
|
+
function yr(e) {
|
|
2331
|
+
return e.pathname.endsWith(".manifest");
|
|
2332
|
+
}
|
|
2333
|
+
function Tr() {
|
|
2334
|
+
let e = new TextEncoder(), t = null, r = new ReadableStream({
|
|
2335
|
+
start(a) {
|
|
2336
|
+
if (typeof window > "u")
|
|
2337
|
+
return;
|
|
2338
|
+
let n = (s) => {
|
|
2339
|
+
typeof s == "string" ? a.enqueue(e.encode(s)) : a.enqueue(s);
|
|
2340
|
+
};
|
|
2341
|
+
window.__FLIGHT_DATA || (window.__FLIGHT_DATA = []), window.__FLIGHT_DATA.forEach(n), window.__FLIGHT_DATA.push = (s) => (n(s), 0), t = a;
|
|
2342
|
+
}
|
|
2343
|
+
});
|
|
2344
|
+
return typeof document < "u" && document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", () => {
|
|
2345
|
+
t?.close();
|
|
2346
|
+
}) : t?.close(), r;
|
|
2347
|
+
}
|
|
2348
|
+
function Hr(e) {
|
|
2349
|
+
if (!e) return null;
|
|
2350
|
+
let t = Object.entries(e), r = {};
|
|
2351
|
+
for (let [a, n] of t)
|
|
2352
|
+
if (n && n.__type === "RouteErrorResponse")
|
|
2353
|
+
r[a] = new D(
|
|
2354
|
+
n.status,
|
|
2355
|
+
n.statusText,
|
|
2356
|
+
n.data,
|
|
2357
|
+
n.internal === !0
|
|
2358
|
+
);
|
|
2359
|
+
else if (n && n.__type === "Error") {
|
|
2360
|
+
if (n.__subType) {
|
|
2361
|
+
let s = window[n.__subType];
|
|
2362
|
+
if (typeof s == "function")
|
|
2363
|
+
try {
|
|
2364
|
+
let o = new s(n.message);
|
|
2365
|
+
o.stack = n.stack, r[a] = o;
|
|
2366
|
+
} catch {
|
|
2367
|
+
}
|
|
2368
|
+
}
|
|
2369
|
+
if (r[a] == null) {
|
|
2370
|
+
let s = new Error(n.message);
|
|
2371
|
+
s.stack = n.stack, r[a] = s;
|
|
2372
|
+
}
|
|
2373
|
+
} else
|
|
2374
|
+
r[a] = n;
|
|
2375
|
+
return r;
|
|
2376
|
+
}
|
|
2
2377
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
T as
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
2378
|
+
Ur as Await,
|
|
2379
|
+
Mr as BrowserRouter,
|
|
2380
|
+
Nr as Form,
|
|
2381
|
+
Or as HashRouter,
|
|
2382
|
+
zr as IDLE_BLOCKER,
|
|
2383
|
+
Br as IDLE_FETCHER,
|
|
2384
|
+
$r as IDLE_NAVIGATION,
|
|
2385
|
+
jr as Link,
|
|
2386
|
+
Vr as Links,
|
|
2387
|
+
Wr as MemoryRouter,
|
|
2388
|
+
qr as Meta,
|
|
2389
|
+
Gr as NavLink,
|
|
2390
|
+
Xr as Navigate,
|
|
2391
|
+
Yr as NavigationType,
|
|
2392
|
+
nt as Outlet,
|
|
2393
|
+
Jr as PrefetchPageLinks,
|
|
2394
|
+
Kr as Route,
|
|
2395
|
+
Qr as Router,
|
|
2396
|
+
_e as RouterProvider,
|
|
2397
|
+
Zr as Routes,
|
|
2398
|
+
ea as Scripts,
|
|
2399
|
+
ta as ScrollRestoration,
|
|
2400
|
+
gr as ServerRouter,
|
|
2401
|
+
ra as StaticRouter,
|
|
2402
|
+
Se as StaticRouterProvider,
|
|
2403
|
+
aa as UNSAFE_DataRouterContext,
|
|
2404
|
+
na as UNSAFE_DataRouterStateContext,
|
|
2405
|
+
D as UNSAFE_ErrorResponseImpl,
|
|
2406
|
+
oa as UNSAFE_FetchersContext,
|
|
2407
|
+
j as UNSAFE_FrameworkContext,
|
|
2408
|
+
sa as UNSAFE_LocationContext,
|
|
2409
|
+
ia as UNSAFE_NavigationContext,
|
|
2410
|
+
Ar as UNSAFE_RSCDefaultRootErrorBoundary,
|
|
2411
|
+
qe as UNSAFE_RemixErrorBoundary,
|
|
2412
|
+
la as UNSAFE_RouteContext,
|
|
2413
|
+
Pt as UNSAFE_ServerMode,
|
|
2414
|
+
T as UNSAFE_SingleFetchRedirectSymbol,
|
|
2415
|
+
ua as UNSAFE_ViewTransitionContext,
|
|
2416
|
+
da as UNSAFE_WithComponentProps,
|
|
2417
|
+
ca as UNSAFE_WithErrorBoundaryProps,
|
|
2418
|
+
fa as UNSAFE_WithHydrateFallbackProps,
|
|
2419
|
+
st as UNSAFE_createBrowserHistory,
|
|
2420
|
+
ha as UNSAFE_createClientRoutes,
|
|
2421
|
+
pa as UNSAFE_createClientRoutesWithHMRRevalidationOptOut,
|
|
2422
|
+
ot as UNSAFE_createRouter,
|
|
2423
|
+
lt as UNSAFE_decodeViaTurboStream,
|
|
2424
|
+
Hr as UNSAFE_deserializeErrors,
|
|
2425
|
+
Zt as UNSAFE_getHydrationData,
|
|
2426
|
+
ma as UNSAFE_getPatchRoutesOnNavigationFunction,
|
|
2427
|
+
ya as UNSAFE_getTurboStreamSingleFetchDataStrategy,
|
|
2428
|
+
Ra as UNSAFE_hydrationRouteProperties,
|
|
2429
|
+
L as UNSAFE_invariant,
|
|
2430
|
+
wa as UNSAFE_mapRouteProperties,
|
|
2431
|
+
$ as UNSAFE_shouldHydrateRouteLoader,
|
|
2432
|
+
ga as UNSAFE_useFogOFWarDiscovery,
|
|
2433
|
+
va as UNSAFE_useScrollRestoration,
|
|
2434
|
+
at as UNSAFE_withComponentProps,
|
|
2435
|
+
tt as UNSAFE_withErrorBoundaryProps,
|
|
2436
|
+
rt as UNSAFE_withHydrateFallbackProps,
|
|
2437
|
+
Sa as createBrowserRouter,
|
|
2438
|
+
Fe as createCookie,
|
|
2439
|
+
br as createCookieSessionStorage,
|
|
2440
|
+
Ea as createHashRouter,
|
|
2441
|
+
Ke as createMemoryRouter,
|
|
2442
|
+
Cr as createMemorySessionStorage,
|
|
2443
|
+
_a as createPath,
|
|
2444
|
+
Er as createRequestHandler,
|
|
2445
|
+
ba as createRoutesFromChildren,
|
|
2446
|
+
Ca as createRoutesFromElements,
|
|
2447
|
+
vr as createRoutesStub,
|
|
2448
|
+
Da as createSearchParams,
|
|
2449
|
+
Ne as createSession,
|
|
2450
|
+
Qt as createSessionStorage,
|
|
2451
|
+
Aa as createStaticHandler,
|
|
2452
|
+
ve as createStaticRouter,
|
|
2453
|
+
xa as data,
|
|
2454
|
+
Fa as generatePath,
|
|
2455
|
+
Dr as href,
|
|
2456
|
+
ke as isCookie,
|
|
2457
|
+
A as isRouteErrorResponse,
|
|
2458
|
+
_r as isSession,
|
|
2459
|
+
ka as matchPath,
|
|
2460
|
+
Ee as matchRoutes,
|
|
2461
|
+
La as parsePath,
|
|
2462
|
+
ct as redirect,
|
|
2463
|
+
ut as redirectDocument,
|
|
2464
|
+
Ta as renderMatches,
|
|
2465
|
+
dt as replace,
|
|
2466
|
+
Ha as resolvePath,
|
|
2467
|
+
Ia as unstable_HistoryRouter,
|
|
2468
|
+
Fr as unstable_RSCHydratedRouter,
|
|
2469
|
+
Lr as unstable_RSCStaticRouter,
|
|
2470
|
+
X as unstable_RouterContextProvider,
|
|
2471
|
+
xr as unstable_createCallServer,
|
|
2472
|
+
pt as unstable_createContext,
|
|
2473
|
+
Tr as unstable_getRSCStream,
|
|
2474
|
+
kr as unstable_routeRSCServerRequest,
|
|
2475
|
+
Sr as unstable_setDevServerHooks,
|
|
2476
|
+
Pa as unstable_usePrompt,
|
|
2477
|
+
Ua as useActionData,
|
|
2478
|
+
Ma as useAsyncError,
|
|
2479
|
+
Na as useAsyncValue,
|
|
2480
|
+
Oa as useBeforeUnload,
|
|
2481
|
+
za as useBlocker,
|
|
2482
|
+
Ba as useFetcher,
|
|
2483
|
+
$a as useFetchers,
|
|
2484
|
+
ja as useFormAction,
|
|
2485
|
+
Va as useHref,
|
|
2486
|
+
Wa as useInRouterContext,
|
|
2487
|
+
qa as useLinkClickHandler,
|
|
2488
|
+
Ga as useLoaderData,
|
|
105
2489
|
Xa as useLocation,
|
|
106
2490
|
Ya as useMatch,
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
2491
|
+
Ja as useMatches,
|
|
2492
|
+
Ka as useNavigate,
|
|
2493
|
+
Qa as useNavigation,
|
|
2494
|
+
Za as useNavigationType,
|
|
2495
|
+
en as useOutlet,
|
|
2496
|
+
tn as useOutletContext,
|
|
2497
|
+
rn as useParams,
|
|
2498
|
+
an as useResolvedPath,
|
|
2499
|
+
nn as useRevalidator,
|
|
2500
|
+
Xe as useRouteError,
|
|
2501
|
+
on as useRouteLoaderData,
|
|
2502
|
+
sn as useRoutes,
|
|
2503
|
+
ln as useSearchParams,
|
|
2504
|
+
un as useSubmit,
|
|
2505
|
+
dn as useViewTransitionState
|
|
122
2506
|
};
|
|
123
2507
|
//# sourceMappingURL=zudoku.router.js.map
|