zudoku 0.0.0-ff3bc72 → 0.0.0-zuplo-api-keys.534c6f8
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 +121 -0
- package/cli.js +11 -2
- package/dist/app/ZuploBuildConfig.d.ts +155 -0
- package/dist/app/ZuploBuildConfig.js +29 -0
- package/dist/app/ZuploBuildConfig.js.map +1 -0
- package/dist/app/demo.js +1 -4
- package/dist/app/demo.js.map +1 -1
- package/dist/app/entry.client.d.ts +6 -0
- package/dist/app/entry.client.js +53 -3
- package/dist/app/entry.client.js.map +1 -1
- package/dist/app/entry.server.d.ts +9 -6
- package/dist/app/entry.server.js +21 -14
- package/dist/app/entry.server.js.map +1 -1
- package/dist/app/env.d.ts +33 -0
- package/dist/app/env.js +29 -0
- package/dist/app/env.js.map +1 -0
- package/dist/app/main.d.ts +3 -2
- package/dist/app/main.js +50 -61
- package/dist/app/main.js.map +1 -1
- package/dist/app/sentry.d.ts +3 -0
- package/dist/app/sentry.js +19 -0
- package/dist/app/sentry.js.map +1 -0
- package/dist/app/standalone.js +1 -4
- package/dist/app/standalone.js.map +1 -1
- package/dist/cli/build/handler.d.ts +1 -3
- package/dist/cli/build/handler.js +9 -1
- package/dist/cli/build/handler.js.map +1 -1
- package/dist/cli/cli.js +18 -5
- package/dist/cli/cli.js.map +1 -1
- package/dist/cli/cmds/build.d.ts +11 -3
- package/dist/cli/cmds/build.js +21 -13
- package/dist/cli/cmds/build.js.map +1 -1
- package/dist/cli/cmds/dev.d.ts +1 -1
- package/dist/cli/cmds/dev.js +5 -0
- package/dist/cli/cmds/dev.js.map +1 -1
- package/dist/cli/cmds/preview.d.ts +16 -0
- package/dist/cli/cmds/preview.js +25 -0
- package/dist/cli/cmds/preview.js.map +1 -0
- package/dist/cli/common/logger.js +9 -0
- package/dist/cli/common/logger.js.map +1 -1
- package/dist/cli/common/machine-id/lib.js +1 -0
- package/dist/cli/common/machine-id/lib.js.map +1 -1
- package/dist/cli/common/outdated.js +2 -1
- package/dist/cli/common/outdated.js.map +1 -1
- package/dist/cli/common/output.js.map +1 -1
- package/dist/cli/common/utils/box.js.map +1 -1
- package/dist/cli/common/utils/ports.d.ts +1 -1
- package/dist/cli/common/utils/ports.js +16 -15
- package/dist/cli/common/utils/ports.js.map +1 -1
- package/dist/cli/dev/handler.d.ts +1 -0
- package/dist/cli/dev/handler.js +16 -13
- package/dist/cli/dev/handler.js.map +1 -1
- package/dist/cli/preview/handler.d.ts +3 -0
- package/dist/cli/preview/handler.js +35 -0
- package/dist/cli/preview/handler.js.map +1 -0
- package/dist/codegen.d.ts +3 -0
- package/dist/codegen.js +45 -0
- package/dist/codegen.js.map +1 -0
- package/dist/config/config.d.ts +20 -16
- package/dist/config/file-exists.d.ts +1 -0
- package/dist/config/file-exists.js +5 -0
- package/dist/config/file-exists.js.map +1 -0
- package/dist/config/loader.d.ts +19 -0
- package/dist/config/loader.js +135 -0
- package/dist/config/loader.js.map +1 -0
- package/dist/config/validators/BuildSchema.d.ts +60 -0
- package/dist/config/validators/BuildSchema.js +31 -0
- package/dist/config/validators/BuildSchema.js.map +1 -0
- package/dist/config/validators/InputSidebarSchema.d.ts +63 -32
- package/dist/config/validators/InputSidebarSchema.js +17 -28
- package/dist/config/validators/InputSidebarSchema.js.map +1 -1
- package/dist/config/validators/SidebarSchema.d.ts +24 -1
- package/dist/config/validators/SidebarSchema.js +80 -44
- package/dist/config/validators/SidebarSchema.js.map +1 -1
- package/dist/config/validators/icon-types.d.ts +1 -0
- package/dist/config/validators/icon-types.js +2 -0
- package/dist/config/validators/icon-types.js.map +1 -0
- package/dist/config/validators/validate.d.ts +4690 -332
- package/dist/config/validators/validate.js +273 -82
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/index.d.ts +9 -2
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/lib/MissingIcon.d.ts +2 -0
- package/dist/lib/MissingIcon.js +7 -0
- package/dist/lib/MissingIcon.js.map +1 -0
- package/dist/lib/authentication/AuthenticationPlugin.d.ts +11 -4
- package/dist/lib/authentication/AuthenticationPlugin.js +16 -1
- package/dist/lib/authentication/AuthenticationPlugin.js.map +1 -1
- package/dist/lib/authentication/authentication.d.ts +4 -5
- package/dist/lib/authentication/components/CallbackHandler.js +25 -31
- package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
- package/dist/lib/authentication/components/SignIn.d.ts +1 -1
- package/dist/lib/authentication/components/SignIn.js +5 -2
- package/dist/lib/authentication/components/SignIn.js.map +1 -1
- package/dist/lib/authentication/components/SignOut.js +2 -2
- package/dist/lib/authentication/components/SignOut.js.map +1 -1
- package/dist/lib/authentication/components/SignUp.d.ts +1 -1
- package/dist/lib/authentication/components/SignUp.js +4 -1
- package/dist/lib/authentication/components/SignUp.js.map +1 -1
- package/dist/lib/authentication/hook.d.ts +6 -4
- package/dist/lib/authentication/hook.js +12 -4
- package/dist/lib/authentication/hook.js.map +1 -1
- package/dist/lib/authentication/providers/auth0.d.ts +2 -2
- package/dist/lib/authentication/providers/auth0.js +15 -13
- package/dist/lib/authentication/providers/auth0.js.map +1 -1
- package/dist/lib/authentication/providers/clerk.d.ts +2 -2
- package/dist/lib/authentication/providers/clerk.js +116 -47
- package/dist/lib/authentication/providers/clerk.js.map +1 -1
- package/dist/lib/authentication/providers/openid.d.ts +21 -19
- package/dist/lib/authentication/providers/openid.js +62 -69
- package/dist/lib/authentication/providers/openid.js.map +1 -1
- package/dist/lib/authentication/providers/supabase.d.ts +4 -0
- package/dist/lib/authentication/providers/supabase.js +115 -0
- package/dist/lib/authentication/providers/supabase.js.map +1 -0
- package/dist/lib/authentication/state.d.ts +23 -19
- package/dist/lib/authentication/state.js +34 -7
- package/dist/lib/authentication/state.js.map +1 -1
- package/dist/lib/authentication/use-broadcast/shared.d.ts +48 -0
- package/dist/lib/authentication/use-broadcast/shared.js +243 -0
- package/dist/lib/authentication/use-broadcast/shared.js.map +1 -0
- package/dist/lib/authentication/use-broadcast/useBroadcast.d.ts +24 -0
- package/dist/lib/authentication/use-broadcast/useBroadcast.js +106 -0
- package/dist/lib/authentication/use-broadcast/useBroadcast.js.map +1 -0
- package/dist/lib/components/AnchorLink.d.ts +2 -2
- package/dist/lib/components/AnchorLink.js +9 -5
- package/dist/lib/components/AnchorLink.js.map +1 -1
- package/dist/lib/components/Autocomplete.d.ts +13 -0
- package/dist/lib/components/Autocomplete.js +47 -0
- package/dist/lib/components/Autocomplete.js.map +1 -0
- package/dist/lib/components/Banner.js +1 -1
- package/dist/lib/components/Banner.js.map +1 -1
- package/dist/lib/components/Bootstrap.d.ts +5 -3
- package/dist/lib/components/Bootstrap.js +13 -6
- package/dist/lib/components/Bootstrap.js.map +1 -1
- package/dist/lib/components/BuildCheck.d.ts +4 -0
- package/dist/lib/components/BuildCheck.js +38 -0
- package/dist/lib/components/BuildCheck.js.map +1 -0
- package/dist/lib/components/ClientOnly.d.ts +4 -2
- package/dist/lib/components/ClientOnly.js +1 -1
- package/dist/lib/components/ClientOnly.js.map +1 -1
- package/dist/lib/components/DeveloperHint.js +2 -1
- package/dist/lib/components/DeveloperHint.js.map +1 -1
- package/dist/lib/components/ErrorPage.js +1 -1
- package/dist/lib/components/Footer.d.ts +1 -0
- package/dist/lib/components/Footer.js +32 -0
- package/dist/lib/components/Footer.js.map +1 -0
- package/dist/lib/components/Header.js +31 -12
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/Heading.d.ts +5 -5
- package/dist/lib/components/Heading.js +1 -1
- package/dist/lib/components/Heading.js.map +1 -1
- package/dist/lib/components/InlineCode.d.ts +2 -1
- package/dist/lib/components/InlineCode.js +2 -9
- package/dist/lib/components/InlineCode.js.map +1 -1
- package/dist/lib/components/Layout.js +10 -21
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/components/Main.d.ts +2 -0
- package/dist/lib/components/Main.js +18 -0
- package/dist/lib/components/Main.js.map +1 -0
- package/dist/lib/components/Markdown.d.ts +4 -2
- package/dist/lib/components/Markdown.js +10 -14
- package/dist/lib/components/Markdown.js.map +1 -1
- package/dist/lib/components/MobileTopNavigation.js +14 -7
- package/dist/lib/components/MobileTopNavigation.js.map +1 -1
- package/dist/lib/components/NotFoundPage.js +2 -2
- package/dist/lib/components/NotFoundPage.js.map +1 -1
- package/dist/lib/components/Pagination.d.ts +11 -0
- package/dist/lib/components/Pagination.js +10 -0
- package/dist/lib/components/Pagination.js.map +1 -0
- package/dist/lib/components/PathRenderer.d.ts +11 -0
- package/dist/lib/components/PathRenderer.js +28 -0
- package/dist/lib/components/PathRenderer.js.map +1 -0
- package/dist/lib/components/ReactMarkdown.d.ts +29 -0
- package/dist/lib/components/ReactMarkdown.js +182 -0
- package/dist/lib/components/ReactMarkdown.js.map +1 -0
- package/dist/lib/components/Search.d.ts +3 -1
- package/dist/lib/components/Search.js +9 -3
- package/dist/lib/components/Search.js.map +1 -1
- package/dist/lib/components/Slot.d.ts +17 -0
- package/dist/lib/components/Slot.js +24 -0
- package/dist/lib/components/Slot.js.map +1 -0
- package/dist/lib/components/Slot.test.js +163 -0
- package/dist/lib/components/Slot.test.js.map +1 -0
- package/dist/lib/components/StatusPage.d.ts +7 -0
- package/dist/lib/components/StatusPage.js +71 -0
- package/dist/lib/components/StatusPage.js.map +1 -0
- package/dist/lib/components/ThemeSwitch.d.ts +1 -0
- package/dist/lib/components/ThemeSwitch.js +16 -0
- package/dist/lib/components/ThemeSwitch.js.map +1 -0
- package/dist/lib/components/TopNavigation.d.ts +3 -0
- package/dist/lib/components/TopNavigation.js +53 -8
- package/dist/lib/components/TopNavigation.js.map +1 -1
- package/dist/lib/components/Zudoku.d.ts +7 -0
- package/dist/lib/components/Zudoku.js +58 -0
- package/dist/lib/components/Zudoku.js.map +1 -0
- package/dist/lib/components/cache.d.ts +13 -0
- package/dist/lib/components/cache.js +20 -0
- package/dist/lib/components/cache.js.map +1 -0
- package/dist/lib/components/context/BypassProtectedRoutesContext.d.ts +1 -0
- package/dist/lib/components/context/BypassProtectedRoutesContext.js +3 -0
- package/dist/lib/components/context/BypassProtectedRoutesContext.js.map +1 -0
- package/dist/lib/components/context/RouterEventsEmitter.d.ts +1 -0
- package/dist/lib/components/context/RouterEventsEmitter.js +17 -0
- package/dist/lib/components/context/RouterEventsEmitter.js.map +1 -0
- package/dist/lib/components/context/SlotProvider.d.ts +26 -0
- package/dist/lib/components/context/SlotProvider.js +83 -0
- package/dist/lib/components/context/SlotProvider.js.map +1 -0
- package/dist/lib/components/context/ViewportAnchorContext.d.ts +2 -4
- package/dist/lib/components/context/ViewportAnchorContext.js +29 -23
- package/dist/lib/components/context/ViewportAnchorContext.js.map +1 -1
- package/dist/lib/components/context/ZudokuContext.d.ts +10 -14
- package/dist/lib/components/context/ZudokuContext.js +40 -27
- package/dist/lib/components/context/ZudokuContext.js.map +1 -1
- package/dist/lib/components/context/ZudokuProvider.d.ts +2 -2
- package/dist/lib/components/context/ZudokuProvider.js +2 -1
- package/dist/lib/components/context/ZudokuProvider.js.map +1 -1
- package/dist/lib/components/index.d.ts +59 -16
- package/dist/lib/components/index.js +27 -6
- package/dist/lib/components/index.js.map +1 -1
- package/dist/lib/components/navigation/PoweredByZudoku.d.ts +3 -0
- package/dist/lib/components/navigation/PoweredByZudoku.js +7 -0
- package/dist/lib/components/navigation/PoweredByZudoku.js.map +1 -0
- package/dist/lib/components/navigation/Sidebar.d.ts +5 -1
- package/dist/lib/components/navigation/Sidebar.js +4 -8
- package/dist/lib/components/navigation/Sidebar.js.map +1 -1
- package/dist/lib/components/navigation/SidebarBadge.d.ts +6 -3
- package/dist/lib/components/navigation/SidebarBadge.js +13 -11
- package/dist/lib/components/navigation/SidebarBadge.js.map +1 -1
- package/dist/lib/components/navigation/SidebarCategory.d.ts +3 -3
- package/dist/lib/components/navigation/SidebarCategory.js +32 -14
- package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
- package/dist/lib/components/navigation/SidebarItem.d.ts +3 -4
- package/dist/lib/components/navigation/SidebarItem.js +23 -17
- package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
- package/dist/lib/components/navigation/SidebarWrapper.d.ts +7 -6
- package/dist/lib/components/navigation/SidebarWrapper.js +18 -3
- package/dist/lib/components/navigation/SidebarWrapper.js.map +1 -1
- package/dist/lib/components/navigation/Toc.js +46 -0
- package/dist/lib/components/navigation/Toc.js.map +1 -0
- package/dist/lib/components/navigation/ZudokuLogo.d.ts +6 -0
- package/dist/lib/components/navigation/ZudokuLogo.js +5 -0
- package/dist/lib/components/navigation/ZudokuLogo.js.map +1 -0
- package/dist/lib/components/navigation/ZuploLogo.d.ts +3 -0
- package/dist/lib/components/navigation/ZuploLogo.js +4 -0
- package/dist/lib/components/navigation/ZuploLogo.js.map +1 -0
- package/dist/lib/components/navigation/utils.d.ts +3 -0
- package/dist/lib/components/navigation/utils.js +19 -15
- package/dist/lib/components/navigation/utils.js.map +1 -1
- package/dist/lib/core/RouteGuard.d.ts +2 -0
- package/dist/lib/core/RouteGuard.js +52 -0
- package/dist/lib/core/RouteGuard.js.map +1 -0
- package/dist/lib/core/ZudokuContext.d.ts +112 -0
- package/dist/lib/core/ZudokuContext.js +70 -0
- package/dist/lib/core/ZudokuContext.js.map +1 -0
- package/dist/lib/core/plugins.d.ts +35 -17
- package/dist/lib/core/plugins.js +4 -0
- package/dist/lib/core/plugins.js.map +1 -1
- package/dist/lib/errors/ErrorAlert.d.ts +1 -1
- package/dist/lib/errors/ErrorAlert.js +13 -3
- package/dist/lib/errors/ErrorAlert.js.map +1 -1
- package/dist/lib/errors/RouterError.js +1 -1
- package/dist/lib/errors/RouterError.js.map +1 -1
- package/dist/lib/hooks/index.d.ts +3 -0
- package/dist/lib/hooks/index.js +5 -0
- package/dist/lib/hooks/index.js.map +1 -0
- package/dist/lib/hooks/useEvent.d.ts +11 -0
- package/dist/lib/hooks/useEvent.js +19 -0
- package/dist/lib/hooks/useEvent.js.map +1 -0
- package/dist/lib/hooks/useEvent.test.js +100 -0
- package/dist/lib/hooks/useEvent.test.js.map +1 -0
- package/dist/lib/icons.d.ts +1 -0
- package/dist/lib/icons.js +1 -0
- package/dist/lib/icons.js.map +1 -1
- package/dist/lib/oas/graphql/circular.d.ts +3 -0
- package/dist/lib/oas/graphql/circular.js +43 -0
- package/dist/lib/oas/graphql/circular.js.map +1 -0
- package/dist/lib/oas/graphql/index.d.ts +25 -1
- package/dist/lib/oas/graphql/index.js +216 -69
- package/dist/lib/oas/graphql/index.js.map +1 -1
- package/dist/lib/oas/parser/dereference/index.js +8 -3
- package/dist/lib/oas/parser/dereference/index.js.map +1 -1
- package/dist/lib/oas/parser/index.d.ts +8 -3
- package/dist/lib/oas/parser/index.js +7 -23
- package/dist/lib/oas/parser/index.js.map +1 -1
- package/dist/lib/oas/parser/upgrade/index.d.ts +3 -2
- package/dist/lib/oas/parser/upgrade/index.js +83 -31
- package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
- package/dist/lib/plugins/api-catalog/Catalog.d.ts +4 -0
- package/dist/lib/plugins/api-catalog/Catalog.js +26 -0
- package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -0
- package/dist/lib/plugins/api-catalog/index.d.ts +31 -0
- package/dist/lib/plugins/api-catalog/index.js +46 -0
- package/dist/lib/plugins/api-catalog/index.js.map +1 -0
- package/dist/lib/plugins/api-keys/CreateApiKey.d.ts +3 -2
- package/dist/lib/plugins/api-keys/CreateApiKey.js +16 -8
- package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
- package/dist/lib/plugins/api-keys/ProtectedRoute.js +1 -1
- package/dist/lib/plugins/api-keys/ProtectedRoute.js.map +1 -1
- package/dist/lib/plugins/api-keys/SettingsApiKeys.d.ts +1 -1
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js +55 -24
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
- package/dist/lib/plugins/api-keys/index.d.ts +23 -13
- package/dist/lib/plugins/api-keys/index.js +48 -32
- package/dist/lib/plugins/api-keys/index.js.map +1 -1
- package/dist/lib/plugins/custom-pages/CustomPage.d.ts +2 -0
- package/dist/lib/plugins/custom-pages/CustomPage.js +11 -0
- package/dist/lib/plugins/custom-pages/CustomPage.js.map +1 -0
- package/dist/lib/plugins/custom-pages/index.d.ts +10 -0
- package/dist/lib/plugins/custom-pages/index.js +11 -0
- package/dist/lib/plugins/custom-pages/index.js.map +1 -0
- package/dist/lib/plugins/markdown/MdxPage.d.ts +10 -2
- package/dist/lib/plugins/markdown/MdxPage.js +17 -4
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
- package/dist/lib/plugins/markdown/index.d.ts +8 -7
- package/dist/lib/plugins/markdown/index.js +31 -3
- package/dist/lib/plugins/markdown/index.js.map +1 -1
- package/dist/lib/plugins/markdown/resolver.d.ts +32 -0
- package/dist/lib/plugins/markdown/resolver.js +46 -0
- package/dist/lib/plugins/markdown/resolver.js.map +1 -0
- package/dist/lib/plugins/openapi/CollapsibleCode.d.ts +5 -0
- package/dist/lib/plugins/openapi/CollapsibleCode.js +25 -0
- package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -0
- package/dist/lib/plugins/openapi/ColorizedParam.d.ts +10 -2
- package/dist/lib/plugins/openapi/ColorizedParam.js +29 -14
- package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
- package/dist/lib/plugins/openapi/Endpoint.js +13 -16
- package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
- package/dist/lib/plugins/openapi/OasProvider.d.ts +8 -0
- package/dist/lib/plugins/openapi/OasProvider.js +29 -0
- package/dist/lib/plugins/openapi/OasProvider.js.map +1 -0
- package/dist/lib/plugins/openapi/OperationList.d.ts +6 -3
- package/dist/lib/plugins/openapi/OperationList.js +107 -27
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationListItem.d.ts +5 -3
- package/dist/lib/plugins/openapi/OperationListItem.js +12 -6
- package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/ParamInfos.d.ts +6 -0
- package/dist/lib/plugins/openapi/ParamInfos.js +45 -0
- package/dist/lib/plugins/openapi/ParamInfos.js.map +1 -0
- package/dist/lib/plugins/openapi/ParameterList.d.ts +2 -1
- package/dist/lib/plugins/openapi/ParameterList.js +3 -2
- package/dist/lib/plugins/openapi/ParameterList.js.map +1 -1
- package/dist/lib/plugins/openapi/ParameterListItem.js +19 -1
- package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.d.ts +4 -2
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +12 -3
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.d.ts +3 -4
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +5 -9
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.d.ts +2 -4
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +4 -6
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/SchemaList.d.ts +1 -0
- package/dist/lib/plugins/openapi/SchemaList.js +53 -0
- package/dist/lib/plugins/openapi/SchemaList.js.map +1 -0
- package/dist/lib/plugins/openapi/Sidecar.d.ts +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js +114 -65
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/SidecarBox.js +4 -4
- package/dist/lib/plugins/openapi/SidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/SidecarExamples.d.ts +9 -0
- package/dist/lib/plugins/openapi/SidecarExamples.js +76 -0
- package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -0
- package/dist/lib/plugins/openapi/SimpleSelect.js +1 -1
- package/dist/lib/plugins/openapi/SimpleSelect.js.map +1 -1
- package/dist/lib/plugins/openapi/client/GraphQLClient.d.ts +8 -0
- package/dist/lib/plugins/openapi/client/GraphQLClient.js +43 -0
- package/dist/lib/plugins/openapi/client/GraphQLClient.js.map +1 -0
- package/dist/lib/plugins/openapi/client/GraphQLContext.d.ts +7 -0
- package/dist/lib/plugins/openapi/client/GraphQLContext.js +5 -0
- package/dist/lib/plugins/openapi/client/GraphQLContext.js.map +1 -0
- package/dist/lib/plugins/openapi/client/createServer.d.ts +3 -1
- package/dist/lib/plugins/openapi/client/createServer.js +5 -2
- package/dist/lib/plugins/openapi/client/createServer.js.map +1 -1
- package/dist/lib/plugins/openapi/client/useCreateQuery.d.ts +14 -0
- package/dist/lib/plugins/openapi/client/useCreateQuery.js +20 -0
- package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -0
- package/dist/lib/plugins/openapi/components/ConstValue.d.ts +5 -0
- package/dist/lib/plugins/openapi/components/ConstValue.js +6 -0
- package/dist/lib/plugins/openapi/components/ConstValue.js.map +1 -0
- package/dist/lib/plugins/openapi/components/EnumValues.d.ts +5 -0
- package/dist/lib/plugins/openapi/components/EnumValues.js +15 -0
- package/dist/lib/plugins/openapi/components/EnumValues.js.map +1 -0
- package/dist/lib/plugins/openapi/components/ResponseContent.d.ts +12 -0
- package/dist/lib/plugins/openapi/components/ResponseContent.js +21 -0
- package/dist/lib/plugins/openapi/components/ResponseContent.js.map +1 -0
- package/dist/lib/plugins/openapi/components/SelectOnClick.d.ts +5 -0
- package/dist/lib/plugins/openapi/components/SelectOnClick.js +16 -0
- package/dist/lib/plugins/openapi/components/SelectOnClick.js.map +1 -0
- package/dist/lib/plugins/openapi/context.d.ts +3 -3
- package/dist/lib/plugins/openapi/graphql/fragment-masking.d.ts +3 -3
- package/dist/lib/plugins/openapi/graphql/fragment-masking.js +3 -4
- package/dist/lib/plugins/openapi/graphql/fragment-masking.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/gql.d.ts +8 -46
- package/dist/lib/plugins/openapi/graphql/gql.js +6 -13
- package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/graphql.d.ts +141 -25
- package/dist/lib/plugins/openapi/graphql/graphql.js +238 -662
- package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
- package/dist/lib/plugins/openapi/index.d.ts +11 -8
- package/dist/lib/plugins/openapi/index.js +74 -104
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/plugins/openapi/interfaces.d.ts +57 -3
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.d.ts +6 -0
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +8 -0
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/Headers.d.ts +4 -4
- package/dist/lib/plugins/openapi/playground/Headers.js +84 -5
- package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/IdentityDialog.d.ts +11 -0
- package/dist/lib/plugins/openapi/playground/IdentityDialog.js +14 -0
- package/dist/lib/plugins/openapi/playground/IdentityDialog.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/IdentitySelector.d.ts +7 -0
- package/dist/lib/plugins/openapi/playground/IdentitySelector.js +8 -0
- package/dist/lib/plugins/openapi/playground/IdentitySelector.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/ParamsGrid.d.ts +9 -0
- package/dist/lib/plugins/openapi/playground/ParamsGrid.js +5 -0
- package/dist/lib/plugins/openapi/playground/ParamsGrid.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/PathParams.d.ts +3 -2
- package/dist/lib/plugins/openapi/playground/PathParams.js +5 -7
- package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.d.ts +37 -2
- package/dist/lib/plugins/openapi/playground/Playground.js +133 -70
- package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +2 -2
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/QueryParams.d.ts +1 -1
- package/dist/lib/plugins/openapi/playground/QueryParams.js +24 -18
- package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/RequestLoginDialog.d.ts +7 -0
- package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js +8 -0
- package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/SubmitButton.d.ts +7 -0
- package/dist/lib/plugins/openapi/playground/SubmitButton.js +22 -0
- package/dist/lib/plugins/openapi/playground/SubmitButton.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/rememberedIdentity.d.ts +17 -0
- package/dist/lib/plugins/openapi/playground/rememberedIdentity.js +11 -0
- package/dist/lib/plugins/openapi/playground/rememberedIdentity.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.d.ts +7 -0
- package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js +11 -0
- package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.d.ts +8 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +101 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.d.ts +9 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +17 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.d.ts +10 -0
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js +32 -0
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.d.ts +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.js +56 -0
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.js.map +1 -0
- package/dist/lib/plugins/openapi/processors/removeExtensions.d.ts +8 -0
- package/dist/lib/plugins/openapi/processors/removeExtensions.js +16 -0
- package/dist/lib/plugins/openapi/processors/removeExtensions.js.map +1 -0
- package/dist/lib/plugins/openapi/processors/removeExtensions.test.d.ts +1 -0
- package/dist/lib/plugins/openapi/processors/removeExtensions.test.js +194 -0
- package/dist/lib/plugins/openapi/processors/removeExtensions.test.js.map +1 -0
- package/dist/lib/plugins/openapi/processors/removeParameters.d.ts +12 -0
- package/dist/lib/plugins/openapi/processors/removeParameters.js +66 -0
- package/dist/lib/plugins/openapi/processors/removeParameters.js.map +1 -0
- package/dist/lib/plugins/openapi/processors/removeParameters.test.d.ts +1 -0
- package/dist/lib/plugins/openapi/processors/removeParameters.test.js +159 -0
- package/dist/lib/plugins/openapi/processors/removeParameters.test.js.map +1 -0
- package/dist/lib/plugins/openapi/processors/removePaths.d.ts +13 -0
- package/dist/lib/plugins/openapi/processors/removePaths.js +33 -0
- package/dist/lib/plugins/openapi/processors/removePaths.js.map +1 -0
- package/dist/lib/plugins/openapi/processors/removePaths.test.d.ts +1 -0
- package/dist/lib/plugins/openapi/processors/removePaths.test.js +144 -0
- package/dist/lib/plugins/openapi/processors/removePaths.test.js.map +1 -0
- package/dist/lib/plugins/openapi/processors/traverse.d.ts +1 -0
- package/dist/lib/plugins/openapi/processors/traverse.js +2 -0
- package/dist/lib/plugins/openapi/processors/traverse.js.map +1 -0
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.d.ts +1 -2
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js +2 -2
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.d.ts +2 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js +2 -2
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.d.ts +0 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js +1 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.d.ts +4 -0
- package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js +15 -0
- package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js.map +1 -0
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.d.ts +11 -0
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +45 -0
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -0
- package/dist/lib/plugins/openapi/schema/SchemaView.d.ts +2 -2
- package/dist/lib/plugins/openapi/schema/SchemaView.js +38 -49
- package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/utils.d.ts +8 -1
- package/dist/lib/plugins/openapi/schema/utils.js +15 -4
- package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
- package/dist/lib/plugins/openapi/state.d.ts +25 -0
- package/dist/lib/plugins/openapi/state.js +18 -0
- package/dist/lib/plugins/openapi/state.js.map +1 -0
- package/dist/lib/plugins/openapi/util/createSidebarCategory.d.ts +9 -0
- package/dist/lib/plugins/openapi/util/createSidebarCategory.js +23 -0
- package/dist/lib/plugins/openapi/util/createSidebarCategory.js.map +1 -0
- package/dist/lib/plugins/openapi/util/generateSchemaExample.d.ts +1 -2
- package/dist/lib/plugins/openapi/util/generateSchemaExample.js +80 -39
- package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
- package/dist/lib/plugins/openapi/util/getRoutes.d.ts +10 -0
- package/dist/lib/plugins/openapi/util/getRoutes.js +117 -0
- package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -0
- package/dist/lib/plugins/openapi/util/methodColorMap.d.ts +2 -0
- package/dist/lib/plugins/openapi/util/methodColorMap.js +10 -0
- package/dist/lib/plugins/openapi/util/methodColorMap.js.map +1 -0
- package/dist/lib/plugins/openapi/util/methodToColor.d.ts +20 -0
- package/dist/lib/plugins/openapi/util/methodToColor.js +24 -0
- package/dist/lib/plugins/openapi/util/methodToColor.js.map +1 -0
- package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.d.ts +1 -0
- package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.js +27 -0
- package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.js.map +1 -0
- package/dist/lib/plugins/redirect/index.d.ts +4 -7
- package/dist/lib/plugins/redirect/index.js +2 -2
- package/dist/lib/plugins/redirect/index.js.map +1 -1
- package/dist/lib/plugins/search-inkeep/index.d.ts +24 -5
- package/dist/lib/plugins/search-inkeep/index.js +41 -5
- package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
- package/dist/lib/plugins/search-inkeep/inkeep.d.ts +3 -4
- package/dist/lib/plugins/search-inkeep/inkeep.js.map +1 -1
- package/dist/lib/plugins/search-pagefind/PagefindSearch.d.ts +6 -0
- package/dist/lib/plugins/search-pagefind/PagefindSearch.js +80 -0
- package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -0
- package/dist/lib/plugins/search-pagefind/ResultList.d.ts +8 -0
- package/dist/lib/plugins/search-pagefind/ResultList.js +32 -0
- package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -0
- package/dist/lib/plugins/search-pagefind/get-results.d.ts +10 -0
- package/dist/lib/plugins/search-pagefind/get-results.js +42 -0
- package/dist/lib/plugins/search-pagefind/get-results.js.map +1 -0
- package/dist/lib/plugins/search-pagefind/index.d.ts +6 -0
- package/dist/lib/plugins/search-pagefind/index.js +9 -0
- package/dist/lib/plugins/search-pagefind/index.js.map +1 -0
- package/dist/lib/plugins/search-pagefind/types.d.ts +85 -0
- package/dist/lib/plugins/search-pagefind/types.js +2 -0
- package/dist/lib/plugins/search-pagefind/types.js.map +1 -0
- package/dist/lib/shiki.d.ts +35 -0
- package/dist/lib/shiki.js +103 -0
- package/dist/lib/shiki.js.map +1 -0
- package/dist/lib/ui/Accordion.d.ts +7 -0
- package/dist/lib/ui/Accordion.js +14 -0
- package/dist/lib/ui/Accordion.js.map +1 -0
- package/dist/lib/ui/ActionButton.d.ts +4 -0
- package/dist/lib/ui/ActionButton.js +10 -0
- package/dist/lib/ui/ActionButton.js.map +1 -0
- package/dist/lib/ui/Alert.d.ts +8 -0
- package/dist/lib/ui/Alert.js +23 -0
- package/dist/lib/ui/Alert.js.map +1 -0
- package/dist/lib/ui/AlertDialog.d.ts +20 -0
- package/dist/lib/ui/AlertDialog.js +27 -0
- package/dist/lib/ui/AlertDialog.js.map +1 -0
- package/dist/lib/ui/AspectRatio.d.ts +3 -0
- package/dist/lib/ui/AspectRatio.js +4 -0
- package/dist/lib/ui/AspectRatio.js.map +1 -0
- package/dist/lib/ui/Badge.d.ts +9 -0
- package/dist/lib/ui/Badge.js +22 -0
- package/dist/lib/ui/Badge.js.map +1 -0
- package/dist/lib/ui/Breadcrumb.d.ts +19 -0
- package/dist/lib/ui/Breadcrumb.js +24 -0
- package/dist/lib/ui/Breadcrumb.js.map +1 -0
- package/dist/lib/ui/Button.d.ts +4 -5
- package/dist/lib/ui/Button.js +9 -6
- package/dist/lib/ui/Button.js.map +1 -1
- package/dist/lib/ui/Callout.d.ts +38 -36
- package/dist/lib/ui/Callout.js +3 -2
- package/dist/lib/ui/Callout.js.map +1 -1
- package/dist/lib/ui/Card.js +1 -1
- package/dist/lib/ui/Card.js.map +1 -1
- package/dist/lib/ui/Carousel.d.ts +18 -0
- package/dist/lib/ui/Carousel.js +99 -0
- package/dist/lib/ui/Carousel.js.map +1 -0
- package/dist/lib/ui/Checkbox.d.ts +4 -0
- package/dist/lib/ui/Checkbox.js +9 -0
- package/dist/lib/ui/Checkbox.js.map +1 -0
- package/dist/lib/ui/CodeBlock.d.ts +16 -0
- package/dist/lib/ui/CodeBlock.js +18 -0
- package/dist/lib/ui/CodeBlock.js.map +1 -0
- package/dist/lib/ui/Collapsible.d.ts +5 -0
- package/dist/lib/ui/Collapsible.js +6 -0
- package/dist/lib/ui/Collapsible.js.map +1 -0
- package/dist/lib/ui/Command.d.ts +94 -0
- package/dist/lib/ui/Command.js +35 -0
- package/dist/lib/ui/Command.js.map +1 -0
- package/dist/lib/ui/Dialog.js +23 -0
- package/dist/lib/ui/Dialog.js.map +1 -0
- package/dist/lib/ui/Drawer.d.ts +8 -10
- package/dist/lib/ui/Drawer.js.map +1 -1
- package/dist/lib/ui/DropdownMenu.js +4 -4
- package/dist/lib/ui/DropdownMenu.js.map +1 -1
- package/dist/lib/ui/Form.d.ts +23 -0
- package/dist/lib/ui/Form.js +63 -0
- package/dist/lib/ui/Form.js.map +1 -0
- package/dist/lib/ui/HoverCard.d.ts +6 -0
- package/dist/lib/ui/HoverCard.js +10 -0
- package/dist/lib/ui/HoverCard.js.map +1 -0
- package/dist/lib/ui/Input.d.ts +1 -2
- package/dist/lib/ui/Input.js +1 -1
- package/dist/lib/ui/Input.js.map +1 -1
- package/dist/lib/ui/Label.d.ts +5 -0
- package/dist/lib/ui/Label.js +10 -0
- package/dist/lib/ui/Label.js.map +1 -0
- package/dist/lib/ui/Pagination.d.ts +28 -0
- package/dist/lib/ui/Pagination.js +24 -0
- package/dist/lib/ui/Pagination.js.map +1 -0
- package/dist/lib/ui/Popover.d.ts +6 -0
- package/dist/lib/ui/Popover.js +10 -0
- package/dist/lib/ui/Popover.js.map +1 -0
- package/dist/lib/ui/Progress.d.ts +4 -0
- package/dist/lib/ui/Progress.js +8 -0
- package/dist/lib/ui/Progress.js.map +1 -0
- package/dist/lib/ui/RadioGroup.d.ts +5 -0
- package/dist/lib/ui/RadioGroup.js +15 -0
- package/dist/lib/ui/RadioGroup.js.map +1 -0
- package/dist/lib/ui/ScrollArea.d.ts +5 -0
- package/dist/lib/ui/ScrollArea.js +12 -0
- package/dist/lib/ui/ScrollArea.js.map +1 -0
- package/dist/lib/ui/Select.js +27 -0
- package/dist/lib/ui/Select.js.map +1 -0
- package/dist/lib/ui/Skeleton.d.ts +2 -0
- package/dist/lib/ui/Skeleton.js +7 -0
- package/dist/lib/ui/Skeleton.js.map +1 -0
- package/dist/lib/ui/Slider.d.ts +4 -0
- package/dist/lib/ui/Slider.js +8 -0
- package/dist/lib/ui/Slider.js.map +1 -0
- package/dist/lib/ui/Stepper.d.ts +3 -0
- package/dist/lib/ui/Stepper.js +7 -0
- package/dist/lib/ui/Stepper.js.map +1 -0
- package/dist/lib/ui/Switch.d.ts +4 -0
- package/dist/lib/ui/Switch.js +8 -0
- package/dist/lib/ui/Switch.js.map +1 -0
- package/dist/lib/ui/SyntaxHighlight.d.ts +10 -0
- package/dist/lib/ui/SyntaxHighlight.js +14 -0
- package/dist/lib/ui/SyntaxHighlight.js.map +1 -0
- package/dist/lib/ui/Tabs.js +2 -2
- package/dist/lib/ui/Tabs.js.map +1 -1
- package/dist/lib/ui/Textarea.d.ts +4 -0
- package/dist/lib/ui/Textarea.js +9 -0
- package/dist/lib/ui/Textarea.js.map +1 -0
- package/dist/lib/ui/Toggle.d.ts +12 -0
- package/dist/lib/ui/Toggle.js +26 -0
- package/dist/lib/ui/Toggle.js.map +1 -0
- package/dist/lib/ui/ToggleGroup.d.ts +12 -0
- package/dist/lib/ui/ToggleGroup.js +21 -0
- package/dist/lib/ui/ToggleGroup.js.map +1 -0
- package/dist/lib/ui/Tooltip.d.ts +7 -0
- package/dist/lib/ui/Tooltip.js +11 -0
- package/dist/lib/ui/Tooltip.js.map +1 -0
- package/dist/lib/ui/util.d.ts +2 -0
- package/dist/lib/ui/util.js +3 -0
- package/dist/lib/ui/util.js.map +1 -0
- package/dist/lib/util/MdxComponents.d.ts +30 -21
- package/dist/lib/util/MdxComponents.js +17 -15
- package/dist/lib/util/MdxComponents.js.map +1 -1
- package/dist/lib/util/createVariantComponent.d.ts +2 -2
- package/dist/lib/util/detectOS.d.ts +1 -0
- package/dist/lib/util/detectOS.js +11 -0
- package/dist/lib/util/detectOS.js.map +1 -0
- package/dist/lib/util/ensureArray.d.ts +1 -0
- package/dist/lib/util/ensureArray.js +2 -0
- package/dist/lib/util/ensureArray.js.map +1 -0
- package/dist/lib/util/invariant.d.ts +9 -0
- package/dist/lib/util/invariant.js +7 -3
- package/dist/lib/util/invariant.js.map +1 -1
- package/dist/lib/util/joinPath.d.ts +3 -0
- package/dist/lib/util/joinPath.js +3 -0
- package/dist/lib/util/joinPath.js.map +1 -1
- package/dist/lib/util/joinUrl.d.ts +1 -0
- package/dist/lib/util/joinUrl.js +40 -0
- package/dist/lib/util/joinUrl.js.map +1 -0
- package/dist/lib/util/joinUrl.test.d.ts +1 -0
- package/dist/lib/util/joinUrl.test.js +43 -0
- package/dist/lib/util/joinUrl.test.js.map +1 -0
- package/dist/lib/util/scrollIntoViewIfNeeded.d.ts +1 -0
- package/dist/lib/util/scrollIntoViewIfNeeded.js +14 -0
- package/dist/lib/util/scrollIntoViewIfNeeded.js.map +1 -0
- package/dist/lib/util/traverse.d.ts +3 -0
- package/dist/lib/util/traverse.js +23 -0
- package/dist/lib/util/traverse.js.map +1 -0
- package/dist/lib/util/types.d.ts +7 -0
- package/dist/lib/util/types.js +2 -0
- package/dist/lib/util/types.js.map +1 -0
- package/dist/lib/util/url.d.ts +4 -0
- package/dist/lib/util/url.js +13 -0
- package/dist/lib/util/url.js.map +1 -0
- package/dist/lib/util/url.test.d.ts +1 -0
- package/dist/lib/util/url.test.js +26 -0
- package/dist/lib/util/url.test.js.map +1 -0
- package/dist/lib/util/useExposedProps.d.ts +9 -0
- package/dist/lib/util/useExposedProps.js +9 -0
- package/dist/lib/util/useExposedProps.js.map +1 -0
- package/dist/lib/util/useIsomorphicLayoutEffect.d.ts +3 -0
- package/dist/lib/util/useIsomorphicLayoutEffect.js +4 -0
- package/dist/lib/util/useIsomorphicLayoutEffect.js.map +1 -0
- package/dist/lib/util/useLatest.d.ts +1 -0
- package/dist/lib/util/useLatest.js +15 -0
- package/dist/lib/util/useLatest.js.map +1 -0
- package/dist/lib/util/useOnScreen.d.ts +5 -0
- package/dist/lib/util/useOnScreen.js +19 -0
- package/dist/lib/util/useOnScreen.js.map +1 -0
- package/dist/lib/util/useScrollToAnchor.d.ts +1 -0
- package/dist/lib/util/useScrollToAnchor.js +42 -37
- package/dist/lib/util/useScrollToAnchor.js.map +1 -1
- package/dist/lib/util/useScrollToTop.js +7 -5
- package/dist/lib/util/useScrollToTop.js.map +1 -1
- package/dist/vite/api/SchemaManager.d.ts +36 -0
- package/dist/vite/api/SchemaManager.js +122 -0
- package/dist/vite/api/SchemaManager.js.map +1 -0
- package/dist/vite/api/SchemaManager.test.d.ts +1 -0
- package/dist/vite/api/SchemaManager.test.js +106 -0
- package/dist/vite/api/SchemaManager.test.js.map +1 -0
- package/dist/vite/api/schema-codegen.d.ts +12 -0
- package/dist/vite/api/schema-codegen.js +85 -0
- package/dist/vite/api/schema-codegen.js.map +1 -0
- package/dist/vite/api/schema-codegen.test.d.ts +1 -0
- package/dist/vite/api/schema-codegen.test.js +313 -0
- package/dist/vite/api/schema-codegen.test.js.map +1 -0
- package/dist/vite/build.js +83 -12
- package/dist/vite/build.js.map +1 -1
- package/dist/vite/config.d.ts +2 -15
- package/dist/vite/config.js +121 -144
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/config.test.js +12 -6
- package/dist/vite/config.test.js.map +1 -1
- package/dist/vite/create-pagefind-index.d.ts +4 -0
- package/dist/vite/create-pagefind-index.js +12 -0
- package/dist/vite/create-pagefind-index.js.map +1 -0
- package/dist/vite/css/collect.d.ts +2 -0
- package/dist/vite/css/collect.js +27 -0
- package/dist/vite/css/collect.js.map +1 -0
- package/dist/vite/css/plugin.d.ts +5 -0
- package/dist/vite/css/plugin.js +79 -0
- package/dist/vite/css/plugin.js.map +1 -0
- package/dist/vite/debug.d.ts +1 -0
- package/dist/vite/debug.js +10 -0
- package/dist/vite/debug.js.map +1 -0
- package/dist/vite/dev-server.d.ts +11 -4
- package/dist/vite/dev-server.js +83 -22
- package/dist/vite/dev-server.js.map +1 -1
- package/dist/vite/error-handler.d.ts +1 -1
- package/dist/vite/error-handler.js +1 -1
- package/dist/vite/error-handler.js.map +1 -1
- package/dist/vite/html.d.ts +6 -2
- package/dist/vite/html.js +11 -10
- package/dist/vite/html.js.map +1 -1
- package/dist/vite/output.d.ts +113 -0
- package/dist/vite/output.js +60 -0
- package/dist/vite/output.js.map +1 -0
- package/dist/vite/plugin-api-keys.d.ts +2 -2
- package/dist/vite/plugin-api-keys.js +10 -5
- package/dist/vite/plugin-api-keys.js.map +1 -1
- package/dist/vite/plugin-api.d.ts +2 -2
- package/dist/vite/plugin-api.js +145 -32
- package/dist/vite/plugin-api.js.map +1 -1
- package/dist/vite/plugin-auth.d.ts +2 -2
- package/dist/vite/plugin-auth.js +7 -4
- package/dist/vite/plugin-auth.js.map +1 -1
- package/dist/vite/plugin-component.d.ts +2 -2
- package/dist/vite/plugin-component.js +22 -13
- package/dist/vite/plugin-component.js.map +1 -1
- package/dist/vite/plugin-config-reload.d.ts +4 -4
- package/dist/vite/plugin-config-reload.js +15 -8
- package/dist/vite/plugin-config-reload.js.map +1 -1
- package/dist/vite/plugin-config.d.ts +2 -3
- package/dist/vite/plugin-config.js +26 -3
- package/dist/vite/plugin-config.js.map +1 -1
- package/dist/vite/plugin-configure-tailwind.d.ts +3 -0
- package/dist/vite/plugin-configure-tailwind.js +37 -0
- package/dist/vite/plugin-configure-tailwind.js.map +1 -0
- package/dist/vite/plugin-custom-pages.d.ts +4 -0
- package/dist/vite/plugin-custom-pages.js +30 -0
- package/dist/vite/plugin-custom-pages.js.map +1 -0
- package/dist/vite/plugin-docs.d.ts +3 -3
- package/dist/vite/plugin-docs.js +57 -29
- package/dist/vite/plugin-docs.js.map +1 -1
- package/dist/vite/plugin-docs.test.js +15 -23
- package/dist/vite/plugin-docs.test.js.map +1 -1
- package/dist/vite/plugin-frontmatter.d.ts +2 -1
- package/dist/vite/plugin-frontmatter.js +28 -24
- package/dist/vite/plugin-frontmatter.js.map +1 -1
- package/dist/vite/plugin-mdx.d.ts +2 -8
- package/dist/vite/plugin-mdx.js +96 -13
- package/dist/vite/plugin-mdx.js.map +1 -1
- package/dist/vite/plugin-redirect.d.ts +2 -2
- package/dist/vite/plugin-redirect.js +3 -3
- package/dist/vite/plugin-redirect.js.map +1 -1
- package/dist/vite/plugin-search.d.ts +3 -0
- package/dist/vite/plugin-search.js +30 -0
- package/dist/vite/plugin-search.js.map +1 -0
- package/dist/vite/plugin-shiki-register.d.ts +3 -0
- package/dist/vite/plugin-shiki-register.js +38 -0
- package/dist/vite/plugin-shiki-register.js.map +1 -0
- package/dist/vite/plugin-sidebar.d.ts +5 -3
- package/dist/vite/plugin-sidebar.js +26 -10
- package/dist/vite/plugin-sidebar.js.map +1 -1
- package/dist/vite/plugin-theme-css.d.ts +6 -0
- package/dist/vite/plugin-theme-css.js +118 -0
- package/dist/vite/plugin-theme-css.js.map +1 -0
- package/dist/vite/plugin.d.ts +2 -3
- package/dist/vite/plugin.js +18 -6
- package/dist/vite/plugin.js.map +1 -1
- package/dist/vite/prerender/FileWritingResponse.d.ts +25 -0
- package/dist/vite/prerender/FileWritingResponse.js +51 -0
- package/dist/vite/prerender/FileWritingResponse.js.map +1 -0
- package/dist/vite/prerender/InMemoryResponse.d.ts +16 -0
- package/dist/vite/prerender/InMemoryResponse.js +32 -0
- package/dist/vite/prerender/InMemoryResponse.js.map +1 -0
- package/dist/vite/prerender/PrerenderResponse.d.ts +10 -0
- package/dist/vite/prerender/PrerenderResponse.js +2 -0
- package/dist/vite/prerender/PrerenderResponse.js.map +1 -0
- package/dist/vite/prerender/prerender.d.ts +15 -0
- package/dist/vite/prerender/prerender.js +109 -0
- package/dist/vite/prerender/prerender.js.map +1 -0
- package/dist/vite/prerender/worker.d.ts +13 -0
- package/dist/vite/prerender/worker.js +59 -0
- package/dist/vite/prerender/worker.js.map +1 -0
- package/dist/vite/remarkStaticGeneration.d.ts +3 -0
- package/dist/vite/remarkStaticGeneration.js +125 -0
- package/dist/vite/remarkStaticGeneration.js.map +1 -0
- package/dist/vite/reporter.d.ts +3 -0
- package/dist/vite/reporter.js +33 -0
- package/dist/vite/reporter.js.map +1 -0
- package/dist/vite/sitemap.d.ts +1 -1
- package/dist/vite/sitemap.js +2 -1
- package/dist/vite/sitemap.js.map +1 -1
- package/dist/zuplo/enrich-with-zuplo.d.ts +5 -0
- package/dist/zuplo/enrich-with-zuplo.js +185 -0
- package/dist/zuplo/enrich-with-zuplo.js.map +1 -0
- package/dist/zuplo/policy-types.d.ts +33 -0
- package/dist/zuplo/policy-types.js +8 -0
- package/dist/zuplo/policy-types.js.map +1 -0
- package/dist/zuplo/with-zuplo-processors.d.ts +3 -0
- package/dist/zuplo/with-zuplo-processors.js +26 -0
- package/dist/zuplo/with-zuplo-processors.js.map +1 -0
- package/dist/zuplo/with-zuplo.d.ts +6 -0
- package/dist/zuplo/with-zuplo.js +10 -0
- package/dist/zuplo/with-zuplo.js.map +1 -0
- package/lib/Button-u7M2QYds.js +51 -0
- package/lib/Button-u7M2QYds.js.map +1 -0
- package/lib/Callout-CtCQJ6Cc.js +230 -0
- package/lib/Callout-CtCQJ6Cc.js.map +1 -0
- package/lib/Card-DkH-AU1V.js +61 -0
- package/lib/Card-DkH-AU1V.js.map +1 -0
- package/lib/CategoryHeading-BA7lKNWz.js +10 -0
- package/lib/CategoryHeading-BA7lKNWz.js.map +1 -0
- package/lib/ClientOnly-E7hGysn1.js +11 -0
- package/lib/ClientOnly-E7hGysn1.js.map +1 -0
- package/lib/Dialog-irKZWXGg.js +99 -0
- package/lib/Dialog-irKZWXGg.js.map +1 -0
- package/lib/Drawer-DZ214i5V.js +1133 -0
- package/lib/Drawer-DZ214i5V.js.map +1 -0
- package/lib/Markdown-BNG8bTDA.js +7691 -0
- package/lib/Markdown-BNG8bTDA.js.map +1 -0
- package/lib/MdxPage-C-P_N-H3.js +84 -0
- package/lib/MdxPage-C-P_N-H3.js.map +1 -0
- package/lib/OasProvider-DjFXGgWa.js +33 -0
- package/lib/OasProvider-DjFXGgWa.js.map +1 -0
- package/lib/OperationList-CchpZz4h.js +5141 -0
- package/lib/OperationList-CchpZz4h.js.map +1 -0
- package/lib/Pagination-BbcrfwgM.js +36 -0
- package/lib/Pagination-BbcrfwgM.js.map +1 -0
- package/lib/RouteGuard-CIyGFkFD.js +55 -0
- package/lib/RouteGuard-CIyGFkFD.js.map +1 -0
- package/lib/SchemaList-CrQd3KiR.js +160 -0
- package/lib/SchemaList-CrQd3KiR.js.map +1 -0
- package/lib/SchemaView-CQ_hMc8m.js +375 -0
- package/lib/SchemaView-CQ_hMc8m.js.map +1 -0
- package/lib/SignUp-DSn8NjRS.js +63 -0
- package/lib/SignUp-DSn8NjRS.js.map +1 -0
- package/lib/Slot-Dw-g06lX.js +160 -0
- package/lib/Slot-Dw-g06lX.js.map +1 -0
- package/lib/Spinner-mNLZ6awP.js +7 -0
- package/lib/Spinner-mNLZ6awP.js.map +1 -0
- package/lib/SyntaxHighlight-DTgNHbGp.js +9107 -0
- package/lib/SyntaxHighlight-DTgNHbGp.js.map +1 -0
- package/lib/Toc-Ccycwd-T.js +92 -0
- package/lib/Toc-Ccycwd-T.js.map +1 -0
- package/lib/chunk-BAXFHI7N-C9WnHsLV.js +1839 -0
- package/lib/chunk-BAXFHI7N-C9WnHsLV.js.map +1 -0
- package/lib/circular-DdByufCW.js +14929 -0
- package/lib/circular-DdByufCW.js.map +1 -0
- package/lib/cn-BOFVZgHd.js +2744 -0
- package/lib/cn-BOFVZgHd.js.map +1 -0
- package/lib/createServer-BL0QaN9q.js +12494 -0
- package/lib/createServer-BL0QaN9q.js.map +1 -0
- package/lib/hook-BpiAQVtd.js +1446 -0
- package/lib/hook-BpiAQVtd.js.map +1 -0
- package/lib/index--oeBayMa.js +86 -0
- package/lib/index--oeBayMa.js.map +1 -0
- package/lib/index-BjB1BHZu.js +3268 -0
- package/lib/index-BjB1BHZu.js.map +1 -0
- package/lib/index-BvvmIczU.js +2094 -0
- package/lib/index-BvvmIczU.js.map +1 -0
- package/lib/index-C1S4w-gl.js +36 -0
- package/lib/index-C1S4w-gl.js.map +1 -0
- package/lib/index-CrcNWbel.js +316 -0
- package/lib/index-CrcNWbel.js.map +1 -0
- package/lib/index-rsSMIHTN.js +4977 -0
- package/lib/index-rsSMIHTN.js.map +1 -0
- package/lib/index-zddirpDj.js +4822 -0
- package/lib/index-zddirpDj.js.map +1 -0
- package/lib/index.esm-BFcSKCe-.js +683 -0
- package/lib/index.esm-BFcSKCe-.js.map +1 -0
- package/lib/index.esm-DSfX_eMP.js +1216 -0
- package/lib/index.esm-DSfX_eMP.js.map +1 -0
- package/lib/invariant-DAFpPywt.js +48 -0
- package/lib/invariant-DAFpPywt.js.map +1 -0
- package/lib/jsx-runtime-C5mzlN2N.js +285 -0
- package/lib/jsx-runtime-C5mzlN2N.js.map +1 -0
- package/lib/mutation-CJrIFMgY.js +196 -0
- package/lib/mutation-CJrIFMgY.js.map +1 -0
- package/lib/objectEntries-yMIkr2mI.js +5 -0
- package/lib/objectEntries-yMIkr2mI.js.map +1 -0
- package/lib/processors/removeExtensions.js +11 -0
- package/lib/processors/removeExtensions.js.map +1 -0
- package/lib/processors/removeParameters.js +47 -0
- package/lib/processors/removeParameters.js.map +1 -0
- package/lib/processors/removePaths.js +28 -0
- package/lib/processors/removePaths.js.map +1 -0
- package/lib/processors/traverse.js +17 -0
- package/lib/processors/traverse.js.map +1 -0
- package/lib/ui/Accordion.js +47 -0
- package/lib/ui/Accordion.js.map +1 -0
- package/lib/ui/ActionButton.js +25 -0
- package/lib/ui/ActionButton.js.map +1 -0
- package/lib/ui/Alert.js +51 -0
- package/lib/ui/Alert.js.map +1 -0
- package/lib/ui/AlertDialog.js +114 -0
- package/lib/ui/AlertDialog.js.map +1 -0
- package/lib/ui/AspectRatio.js +6 -0
- package/lib/ui/AspectRatio.js.map +1 -0
- package/lib/ui/Badge.js +28 -0
- package/lib/ui/Badge.js.map +1 -0
- package/lib/ui/Breadcrumb.js +94 -0
- package/lib/ui/Breadcrumb.js.map +1 -0
- package/lib/ui/Button.js +52 -0
- package/lib/ui/Button.js.map +1 -0
- package/lib/ui/Callout.js +96 -0
- package/lib/ui/Callout.js.map +1 -0
- package/lib/ui/Card.js +62 -0
- package/lib/ui/Card.js.map +1 -0
- package/lib/ui/Carousel.js +1416 -0
- package/lib/ui/Carousel.js.map +1 -0
- package/lib/ui/Checkbox.js +29 -0
- package/lib/ui/Checkbox.js.map +1 -0
- package/lib/ui/CodeBlock.js +83 -0
- package/lib/ui/CodeBlock.js.map +1 -0
- package/lib/ui/Collapsible.js +8 -0
- package/lib/ui/Collapsible.js.map +1 -0
- package/lib/ui/Command.js +156 -0
- package/lib/ui/Command.js.map +1 -0
- package/lib/ui/Dialog.js +101 -0
- package/lib/ui/Dialog.js.map +1 -0
- package/lib/ui/Drawer.js +17 -0
- package/lib/ui/Drawer.js.map +1 -0
- package/lib/ui/DropdownMenu.js +145 -0
- package/lib/ui/DropdownMenu.js.map +1 -0
- package/lib/ui/Form.js +95 -0
- package/lib/ui/Form.js.map +1 -0
- package/lib/ui/HoverCard.js +24 -0
- package/lib/ui/HoverCard.js.map +1 -0
- package/lib/ui/Input.js +22 -0
- package/lib/ui/Input.js.map +1 -0
- package/lib/ui/Label.js +20 -0
- package/lib/ui/Label.js.map +1 -0
- package/lib/ui/Pagination.js +106 -0
- package/lib/ui/Pagination.js.map +1 -0
- package/lib/ui/Popover.js +24 -0
- package/lib/ui/Popover.js.map +1 -0
- package/lib/ui/Progress.js +27 -0
- package/lib/ui/Progress.js.map +1 -0
- package/lib/ui/RadioGroup.js +32 -0
- package/lib/ui/RadioGroup.js.map +1 -0
- package/lib/ui/ScrollArea.js +39 -0
- package/lib/ui/ScrollArea.js.map +1 -0
- package/lib/ui/Select.js +122 -0
- package/lib/ui/Select.js.map +1 -0
- package/lib/ui/Skeleton.js +18 -0
- package/lib/ui/Skeleton.js.map +1 -0
- package/lib/ui/Slider.js +24 -0
- package/lib/ui/Slider.js.map +1 -0
- package/lib/ui/Stepper.js +6 -0
- package/lib/ui/Stepper.js.map +1 -0
- package/lib/ui/Switch.js +28 -0
- package/lib/ui/Switch.js.map +1 -0
- package/lib/ui/SyntaxHighlight.js +10 -0
- package/lib/ui/SyntaxHighlight.js.map +1 -0
- package/lib/ui/Tabs.js +47 -0
- package/lib/ui/Tabs.js.map +1 -0
- package/lib/ui/Textarea.js +21 -0
- package/lib/ui/Textarea.js.map +1 -0
- package/lib/ui/Toggle.js +38 -0
- package/lib/ui/Toggle.js.map +1 -0
- package/lib/ui/ToggleGroup.js +42 -0
- package/lib/ui/ToggleGroup.js.map +1 -0
- package/lib/ui/Tooltip.js +24 -0
- package/lib/ui/Tooltip.js.map +1 -0
- package/lib/ui/util.js +6 -0
- package/lib/ui/util.js.map +1 -0
- package/lib/useExposedProps-DG8J6ewJ.js +9 -0
- package/lib/useExposedProps-DG8J6ewJ.js.map +1 -0
- package/lib/useLatest-hmRS46UF.js +11 -0
- package/lib/useLatest-hmRS46UF.js.map +1 -0
- package/lib/useMutation-B2LNwShM.js +97 -0
- package/lib/useMutation-B2LNwShM.js.map +1 -0
- package/lib/zudoku.auth-auth0.js +32 -30
- package/lib/zudoku.auth-auth0.js.map +1 -1
- package/lib/zudoku.auth-clerk.js +115 -58
- package/lib/zudoku.auth-clerk.js.map +1 -1
- package/lib/zudoku.auth-openid.js +628 -628
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.components.js +34 -3364
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.hooks.js +19 -0
- package/lib/zudoku.hooks.js.map +1 -0
- package/lib/zudoku.icons.js +10 -0
- package/lib/zudoku.icons.js.map +1 -1
- package/lib/zudoku.plugin-api-catalog.js +117 -0
- package/lib/zudoku.plugin-api-catalog.js.map +1 -0
- package/lib/zudoku.plugin-api-keys.js +5019 -212
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-custom-pages.js +22 -0
- package/lib/zudoku.plugin-custom-pages.js.map +1 -0
- package/lib/zudoku.plugin-markdown.js +70 -27
- package/lib/zudoku.plugin-markdown.js.map +1 -1
- package/lib/zudoku.plugin-openapi.js +8 -12
- package/lib/zudoku.plugin-openapi.js.map +1 -1
- package/lib/zudoku.plugin-redirect.js +2 -2
- package/lib/zudoku.plugin-redirect.js.map +1 -1
- package/lib/zudoku.plugin-search-inkeep.js +52 -28
- package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
- package/lib/zudoku.plugin-search-pagefind.js +230 -0
- package/lib/zudoku.plugin-search-pagefind.js.map +1 -0
- package/lib/zudoku.plugins.js +15 -0
- package/lib/zudoku.plugins.js.map +1 -0
- package/package.json +186 -105
- package/src/app/ZuploBuildConfig.ts +33 -0
- package/src/app/defaultTheme.css +54 -0
- package/src/app/demo-cdn.html +31 -31
- package/src/app/demo.html +1 -1
- package/src/app/demo.tsx +1 -5
- package/src/app/entry.client.tsx +71 -3
- package/src/app/entry.server.tsx +81 -60
- package/src/app/env.ts +35 -0
- package/src/app/font.geist.css +73 -0
- package/src/app/main.css +202 -131
- package/src/app/main.tsx +81 -71
- package/src/app/sentry.ts +24 -0
- package/src/app/standalone.tsx +2 -6
- package/src/lib/MissingIcon.tsx +22 -0
- package/src/lib/authentication/AuthenticationPlugin.tsx +22 -5
- package/src/lib/authentication/authentication.ts +5 -6
- package/src/lib/authentication/components/CallbackHandler.tsx +30 -51
- package/src/lib/authentication/components/SignIn.tsx +35 -2
- package/src/lib/authentication/components/SignOut.tsx +3 -2
- package/src/lib/authentication/components/SignUp.tsx +35 -1
- package/src/lib/authentication/hook.ts +13 -4
- package/src/lib/authentication/providers/auth0.tsx +28 -18
- package/src/lib/authentication/providers/clerk.tsx +136 -53
- package/src/lib/authentication/providers/openid.tsx +87 -84
- package/src/lib/authentication/providers/supabase.tsx +157 -0
- package/src/lib/authentication/state.ts +56 -25
- package/src/lib/authentication/use-broadcast/LICENSE.md +9 -0
- package/src/lib/authentication/use-broadcast/shared.ts +372 -0
- package/src/lib/authentication/use-broadcast/useBroadcast.ts +146 -0
- package/src/lib/components/AnchorLink.tsx +13 -8
- package/src/lib/components/Autocomplete.tsx +113 -0
- package/src/lib/components/Banner.tsx +2 -1
- package/src/lib/components/Bootstrap.tsx +43 -16
- package/src/lib/components/BuildCheck.tsx +75 -0
- package/src/lib/components/ClientOnly.tsx +6 -3
- package/src/lib/components/DeveloperHint.tsx +6 -1
- package/src/lib/components/ErrorPage.tsx +1 -1
- package/src/lib/components/Footer.tsx +136 -0
- package/src/lib/components/Header.tsx +108 -55
- package/src/lib/components/Heading.tsx +14 -14
- package/src/lib/components/InlineCode.tsx +13 -16
- package/src/lib/components/Layout.tsx +36 -59
- package/src/lib/components/Main.tsx +51 -0
- package/src/lib/components/Markdown.tsx +33 -29
- package/src/lib/components/MobileTopNavigation.tsx +43 -28
- package/src/lib/components/NotFoundPage.tsx +2 -2
- package/src/lib/components/Pagination.tsx +44 -0
- package/src/lib/components/PathRenderer.tsx +61 -0
- package/src/lib/components/ReactMarkdown.license.txt +21 -0
- package/src/lib/components/ReactMarkdown.tsx +264 -0
- package/src/lib/components/Search.tsx +19 -8
- package/src/lib/components/Slot.test.tsx +456 -0
- package/src/lib/components/Slot.tsx +64 -0
- package/src/lib/components/StatusPage.tsx +91 -0
- package/src/lib/components/ThemeSwitch.tsx +46 -0
- package/src/lib/components/TopNavigation.tsx +95 -25
- package/src/lib/components/Zudoku.tsx +119 -0
- package/src/lib/components/cache.ts +23 -0
- package/src/lib/components/context/BypassProtectedRoutesContext.ts +3 -0
- package/src/lib/components/context/RouterEventsEmitter.tsx +19 -0
- package/src/lib/components/context/SlotProvider.tsx +149 -0
- package/src/lib/components/context/ViewportAnchorContext.tsx +34 -36
- package/src/lib/components/context/ZudokuContext.ts +53 -29
- package/src/lib/components/context/ZudokuProvider.tsx +4 -3
- package/src/lib/components/index.ts +33 -6
- package/src/lib/components/navigation/PoweredByZudoku.tsx +33 -0
- package/src/lib/components/navigation/Sidebar.tsx +39 -30
- package/src/lib/components/navigation/SidebarBadge.tsx +17 -12
- package/src/lib/components/navigation/SidebarCategory.tsx +67 -54
- package/src/lib/components/navigation/SidebarItem.tsx +38 -51
- package/src/lib/components/navigation/SidebarWrapper.tsx +42 -22
- package/src/lib/components/navigation/Toc.tsx +126 -0
- package/src/lib/components/navigation/ZudokuLogo.tsx +25 -0
- package/src/lib/components/navigation/ZuploLogo.tsx +14 -0
- package/src/lib/components/navigation/utils.ts +24 -17
- package/src/lib/core/RouteGuard.tsx +96 -0
- package/src/lib/core/ZudokuContext.ts +198 -0
- package/src/lib/core/plugins.ts +54 -22
- package/src/lib/errors/ErrorAlert.tsx +36 -15
- package/src/lib/errors/RouterError.tsx +1 -1
- package/src/lib/hooks/index.ts +5 -0
- package/src/lib/hooks/useEvent.test.tsx +149 -0
- package/src/lib/hooks/useEvent.ts +41 -0
- package/src/lib/icons.ts +1 -0
- package/src/lib/oas/graphql/circular.ts +58 -0
- package/src/lib/oas/graphql/index.ts +298 -104
- package/src/lib/oas/parser/dereference/index.ts +10 -4
- package/src/lib/oas/parser/index.ts +14 -30
- package/src/lib/oas/parser/upgrade/index.ts +103 -38
- package/src/lib/plugins/api-catalog/Catalog.tsx +73 -0
- package/src/lib/plugins/api-catalog/index.tsx +115 -0
- package/src/lib/plugins/api-keys/CreateApiKey.tsx +63 -47
- package/src/lib/plugins/api-keys/ProtectedRoute.tsx +1 -1
- package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +293 -113
- package/src/lib/plugins/api-keys/index.tsx +107 -59
- package/src/lib/plugins/custom-pages/CustomPage.tsx +18 -0
- package/src/lib/plugins/custom-pages/index.tsx +24 -0
- package/src/lib/plugins/markdown/MdxPage.tsx +53 -49
- package/src/lib/plugins/markdown/index.tsx +53 -13
- package/src/lib/plugins/markdown/resolver.ts +59 -0
- package/src/lib/plugins/openapi/CollapsibleCode.tsx +86 -0
- package/src/lib/plugins/openapi/ColorizedParam.tsx +49 -23
- package/src/lib/plugins/openapi/Endpoint.tsx +19 -22
- package/src/lib/plugins/openapi/OasProvider.tsx +51 -0
- package/src/lib/plugins/openapi/OperationList.tsx +240 -70
- package/src/lib/plugins/openapi/OperationListItem.tsx +122 -93
- package/src/lib/plugins/openapi/ParamInfos.tsx +90 -0
- package/src/lib/plugins/openapi/ParameterList.tsx +4 -0
- package/src/lib/plugins/openapi/ParameterListItem.tsx +78 -31
- package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +21 -2
- package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +15 -33
- package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +36 -59
- package/src/lib/plugins/openapi/SchemaList.tsx +163 -0
- package/src/lib/plugins/openapi/Sidecar.tsx +181 -114
- package/src/lib/plugins/openapi/SidecarBox.tsx +4 -16
- package/src/lib/plugins/openapi/SidecarExamples.tsx +168 -0
- package/src/lib/plugins/openapi/SimpleSelect.tsx +1 -1
- package/src/lib/plugins/openapi/client/GraphQLClient.tsx +65 -0
- package/src/lib/plugins/openapi/client/GraphQLContext.tsx +16 -0
- package/src/lib/plugins/openapi/client/createServer.ts +8 -2
- package/src/lib/plugins/openapi/client/useCreateQuery.ts +45 -0
- package/src/lib/plugins/openapi/components/ConstValue.tsx +24 -0
- package/src/lib/plugins/openapi/components/EnumValues.tsx +58 -0
- package/src/lib/plugins/openapi/components/ResponseContent.tsx +104 -0
- package/src/lib/plugins/openapi/components/SelectOnClick.tsx +29 -0
- package/src/lib/plugins/openapi/context.tsx +2 -2
- package/src/lib/plugins/openapi/graphql/fragment-masking.ts +11 -18
- package/src/lib/plugins/openapi/graphql/gql.ts +38 -30
- package/src/lib/plugins/openapi/graphql/graphql.ts +386 -682
- package/src/lib/plugins/openapi/index.tsx +111 -138
- package/src/lib/plugins/openapi/interfaces.ts +58 -3
- package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +52 -0
- package/src/lib/plugins/openapi/playground/Headers.tsx +165 -36
- package/src/lib/plugins/openapi/playground/IdentityDialog.tsx +74 -0
- package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +41 -0
- package/src/lib/plugins/openapi/playground/ParamsGrid.tsx +13 -0
- package/src/lib/plugins/openapi/playground/PathParams.tsx +39 -64
- package/src/lib/plugins/openapi/playground/Playground.tsx +386 -245
- package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +7 -4
- package/src/lib/plugins/openapi/playground/QueryParams.tsx +87 -89
- package/src/lib/plugins/openapi/playground/RequestLoginDialog.tsx +51 -0
- package/src/lib/plugins/openapi/playground/SubmitButton.tsx +75 -0
- package/src/lib/plugins/openapi/playground/rememberedIdentity.ts +26 -0
- package/src/lib/plugins/openapi/playground/result-panel/RequestTab.tsx +73 -0
- package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +230 -0
- package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +123 -0
- package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.test.ts +64 -0
- package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.ts +36 -0
- package/src/lib/plugins/openapi/processors/removeExtensions.test.ts +222 -0
- package/src/lib/plugins/openapi/processors/removeExtensions.ts +29 -0
- package/src/lib/plugins/openapi/processors/removeParameters.test.ts +182 -0
- package/src/lib/plugins/openapi/processors/removeParameters.ts +103 -0
- package/src/lib/plugins/openapi/processors/removePaths.test.ts +167 -0
- package/src/lib/plugins/openapi/processors/removePaths.ts +57 -0
- package/src/lib/plugins/openapi/processors/traverse.ts +1 -0
- package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.tsx +1 -8
- package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.tsx +3 -0
- package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.tsx +6 -3
- package/src/lib/plugins/openapi/schema/SchemaExampleAndDefault.tsx +39 -0
- package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +160 -0
- package/src/lib/plugins/openapi/schema/SchemaView.tsx +105 -138
- package/src/lib/plugins/openapi/schema/utils.ts +32 -5
- package/src/lib/plugins/openapi/state.ts +36 -0
- package/src/lib/plugins/openapi/util/createSidebarCategory.tsx +37 -0
- package/src/lib/plugins/openapi/util/generateSchemaExample.ts +95 -44
- package/src/lib/plugins/openapi/util/getRoutes.tsx +198 -0
- package/src/lib/plugins/openapi/util/methodColorMap.tsx +11 -0
- package/src/lib/plugins/openapi/util/methodToColor.ts +27 -0
- package/src/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.tsx +32 -0
- package/src/lib/plugins/redirect/index.tsx +6 -10
- package/src/lib/plugins/search-inkeep/index.tsx +80 -25
- package/src/lib/plugins/search-inkeep/inkeep.ts +3 -9
- package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +164 -0
- package/src/lib/plugins/search-pagefind/ResultList.tsx +105 -0
- package/src/lib/plugins/search-pagefind/get-results.tsx +75 -0
- package/src/lib/plugins/search-pagefind/index.tsx +21 -0
- package/src/lib/plugins/search-pagefind/types.ts +118 -0
- package/src/lib/shiki.ts +133 -0
- package/src/lib/ui/Accordion.tsx +56 -0
- package/src/lib/ui/ActionButton.tsx +28 -0
- package/src/lib/ui/Alert.tsx +59 -0
- package/src/lib/ui/AlertDialog.tsx +139 -0
- package/src/lib/ui/AspectRatio.tsx +5 -0
- package/src/lib/ui/Badge.tsx +37 -0
- package/src/lib/ui/Breadcrumb.tsx +115 -0
- package/src/lib/ui/Button.tsx +13 -8
- package/src/lib/ui/Callout.tsx +36 -16
- package/src/lib/ui/Card.tsx +1 -1
- package/src/lib/ui/Carousel.tsx +260 -0
- package/src/lib/ui/Checkbox.tsx +29 -0
- package/src/lib/ui/CodeBlock.tsx +102 -0
- package/src/lib/ui/Collapsible.tsx +9 -0
- package/src/lib/ui/Command.tsx +193 -0
- package/src/lib/ui/Dialog.tsx +120 -0
- package/src/lib/ui/Drawer.tsx +38 -36
- package/src/lib/ui/DropdownMenu.tsx +4 -4
- package/src/lib/ui/Form.tsx +177 -0
- package/src/lib/ui/HoverCard.tsx +27 -0
- package/src/lib/ui/Input.tsx +2 -3
- package/src/lib/ui/Label.tsx +24 -0
- package/src/lib/ui/Pagination.tsx +117 -0
- package/src/lib/ui/Popover.tsx +29 -0
- package/src/lib/ui/Progress.tsx +26 -0
- package/src/lib/ui/RadioGroup.tsx +42 -0
- package/src/lib/ui/ScrollArea.tsx +46 -0
- package/src/lib/ui/Select.tsx +157 -0
- package/src/lib/ui/Skeleton.tsx +15 -0
- package/src/lib/ui/Slider.tsx +26 -0
- package/src/lib/ui/Stepper.tsx +8 -0
- package/src/lib/ui/Switch.tsx +27 -0
- package/src/lib/ui/SyntaxHighlight.tsx +27 -0
- package/src/lib/ui/Tabs.tsx +2 -2
- package/src/lib/ui/Textarea.tsx +23 -0
- package/src/lib/ui/Toggle.tsx +43 -0
- package/src/lib/ui/ToggleGroup.tsx +59 -0
- package/src/lib/ui/Tooltip.tsx +28 -0
- package/src/lib/ui/util.tsx +3 -0
- package/src/lib/util/MdxComponents.tsx +37 -24
- package/src/lib/util/createVariantComponent.tsx +2 -2
- package/src/lib/util/detectOS.ts +9 -0
- package/src/lib/util/ensureArray.ts +3 -0
- package/src/lib/util/invariant.ts +15 -3
- package/src/lib/util/joinPath.tsx +3 -0
- package/src/lib/util/joinUrl.test.ts +62 -0
- package/src/lib/util/joinUrl.ts +57 -0
- package/src/lib/util/scrollIntoViewIfNeeded.ts +18 -0
- package/src/lib/util/traverse.ts +34 -0
- package/src/lib/util/types.ts +7 -0
- package/src/lib/util/url.test.ts +51 -0
- package/src/lib/util/url.ts +18 -0
- package/src/lib/util/useExposedProps.tsx +27 -0
- package/src/lib/util/useIsomorphicLayoutEffect.ts +5 -0
- package/src/lib/util/useLatest.ts +18 -0
- package/src/lib/util/useOnScreen.ts +34 -0
- package/src/lib/util/useScrollToAnchor.ts +48 -39
- package/src/lib/util/useScrollToTop.ts +9 -4
- package/src/shiki/langs/abap.js +1 -0
- package/src/shiki/langs/actionscript-3.js +1 -0
- package/src/shiki/langs/ada.js +1 -0
- package/src/shiki/langs/angular-expression.js +1 -0
- package/src/shiki/langs/angular-html.js +1 -0
- package/src/shiki/langs/angular-inline-style.js +1 -0
- package/src/shiki/langs/angular-inline-template.js +1 -0
- package/src/shiki/langs/angular-let-declaration.js +1 -0
- package/src/shiki/langs/angular-template-blocks.js +1 -0
- package/src/shiki/langs/angular-template.js +1 -0
- package/src/shiki/langs/angular-ts.js +1 -0
- package/src/shiki/langs/apache.js +1 -0
- package/src/shiki/langs/apex.js +1 -0
- package/src/shiki/langs/apl.js +1 -0
- package/src/shiki/langs/applescript.js +1 -0
- package/src/shiki/langs/ara.js +1 -0
- package/src/shiki/langs/asciidoc.js +1 -0
- package/src/shiki/langs/asm.js +1 -0
- package/src/shiki/langs/astro.js +1 -0
- package/src/shiki/langs/awk.js +1 -0
- package/src/shiki/langs/ballerina.js +1 -0
- package/src/shiki/langs/bat.js +1 -0
- package/src/shiki/langs/beancount.js +1 -0
- package/src/shiki/langs/berry.js +1 -0
- package/src/shiki/langs/bibtex.js +1 -0
- package/src/shiki/langs/bicep.js +1 -0
- package/src/shiki/langs/blade.js +1 -0
- package/src/shiki/langs/bsl.js +1 -0
- package/src/shiki/langs/c.js +1 -0
- package/src/shiki/langs/cadence.js +1 -0
- package/src/shiki/langs/cairo.js +1 -0
- package/src/shiki/langs/clarity.js +1 -0
- package/src/shiki/langs/clojure.js +1 -0
- package/src/shiki/langs/cmake.js +1 -0
- package/src/shiki/langs/cobol.js +1 -0
- package/src/shiki/langs/codeowners.js +1 -0
- package/src/shiki/langs/codeql.js +1 -0
- package/src/shiki/langs/coffee.js +1 -0
- package/src/shiki/langs/common-lisp.js +1 -0
- package/src/shiki/langs/coq.js +1 -0
- package/src/shiki/langs/cpp-macro.js +1 -0
- package/src/shiki/langs/cpp.js +1 -0
- package/src/shiki/langs/crystal.js +1 -0
- package/src/shiki/langs/csharp.js +1 -0
- package/src/shiki/langs/css.js +1 -0
- package/src/shiki/langs/csv.js +1 -0
- package/src/shiki/langs/cue.js +1 -0
- package/src/shiki/langs/cypher.js +1 -0
- package/src/shiki/langs/d.js +1 -0
- package/src/shiki/langs/dart.js +1 -0
- package/src/shiki/langs/dax.js +1 -0
- package/src/shiki/langs/desktop.js +1 -0
- package/src/shiki/langs/diff.js +1 -0
- package/src/shiki/langs/docker.js +1 -0
- package/src/shiki/langs/dotenv.js +1 -0
- package/src/shiki/langs/dream-maker.js +1 -0
- package/src/shiki/langs/edge.js +1 -0
- package/src/shiki/langs/elixir.js +1 -0
- package/src/shiki/langs/elm.js +1 -0
- package/src/shiki/langs/emacs-lisp.js +1 -0
- package/src/shiki/langs/erb.js +1 -0
- package/src/shiki/langs/erlang.js +1 -0
- package/src/shiki/langs/es-tag-css.js +1 -0
- package/src/shiki/langs/es-tag-glsl.js +1 -0
- package/src/shiki/langs/es-tag-html.js +1 -0
- package/src/shiki/langs/es-tag-sql.js +1 -0
- package/src/shiki/langs/es-tag-xml.js +1 -0
- package/src/shiki/langs/fennel.js +1 -0
- package/src/shiki/langs/fish.js +1 -0
- package/src/shiki/langs/fluent.js +1 -0
- package/src/shiki/langs/fortran-fixed-form.js +1 -0
- package/src/shiki/langs/fortran-free-form.js +1 -0
- package/src/shiki/langs/fsharp.js +1 -0
- package/src/shiki/langs/gdresource.js +1 -0
- package/src/shiki/langs/gdscript.js +1 -0
- package/src/shiki/langs/gdshader.js +1 -0
- package/src/shiki/langs/genie.js +1 -0
- package/src/shiki/langs/gherkin.js +1 -0
- package/src/shiki/langs/git-commit.js +1 -0
- package/src/shiki/langs/git-rebase.js +1 -0
- package/src/shiki/langs/gleam.js +1 -0
- package/src/shiki/langs/glimmer-js.js +1 -0
- package/src/shiki/langs/glimmer-ts.js +1 -0
- package/src/shiki/langs/glsl.js +1 -0
- package/src/shiki/langs/gnuplot.js +1 -0
- package/src/shiki/langs/go.js +1 -0
- package/src/shiki/langs/graphql.js +1 -0
- package/src/shiki/langs/groovy.js +1 -0
- package/src/shiki/langs/hack.js +1 -0
- package/src/shiki/langs/haml.js +1 -0
- package/src/shiki/langs/handlebars.js +1 -0
- package/src/shiki/langs/haskell.js +1 -0
- package/src/shiki/langs/haxe.js +1 -0
- package/src/shiki/langs/hcl.js +1 -0
- package/src/shiki/langs/hjson.js +1 -0
- package/src/shiki/langs/hlsl.js +1 -0
- package/src/shiki/langs/html-derivative.js +1 -0
- package/src/shiki/langs/html.js +1 -0
- package/src/shiki/langs/http.js +1 -0
- package/src/shiki/langs/hxml.js +1 -0
- package/src/shiki/langs/hy.js +1 -0
- package/src/shiki/langs/imba.js +1 -0
- package/src/shiki/langs/ini.js +1 -0
- package/src/shiki/langs/java.js +1 -0
- package/src/shiki/langs/javascript.js +1 -0
- package/src/shiki/langs/jinja-html.js +1 -0
- package/src/shiki/langs/jinja.js +1 -0
- package/src/shiki/langs/jison.js +1 -0
- package/src/shiki/langs/json.js +1 -0
- package/src/shiki/langs/json5.js +1 -0
- package/src/shiki/langs/jsonc.js +1 -0
- package/src/shiki/langs/jsonl.js +1 -0
- package/src/shiki/langs/jsonnet.js +1 -0
- package/src/shiki/langs/jssm.js +1 -0
- package/src/shiki/langs/jsx.js +1 -0
- package/src/shiki/langs/julia.js +1 -0
- package/src/shiki/langs/kotlin.js +1 -0
- package/src/shiki/langs/kusto.js +1 -0
- package/src/shiki/langs/latex.js +1 -0
- package/src/shiki/langs/lean.js +1 -0
- package/src/shiki/langs/less.js +1 -0
- package/src/shiki/langs/liquid.js +1 -0
- package/src/shiki/langs/llvm.js +1 -0
- package/src/shiki/langs/log.js +1 -0
- package/src/shiki/langs/logo.js +1 -0
- package/src/shiki/langs/lua.js +1 -0
- package/src/shiki/langs/luau.js +1 -0
- package/src/shiki/langs/make.js +1 -0
- package/src/shiki/langs/markdown-vue.js +1 -0
- package/src/shiki/langs/markdown.js +1 -0
- package/src/shiki/langs/marko.js +1 -0
- package/src/shiki/langs/matlab.js +1 -0
- package/src/shiki/langs/mdc.js +1 -0
- package/src/shiki/langs/mdx.js +1 -0
- package/src/shiki/langs/mermaid.js +1 -0
- package/src/shiki/langs/mipsasm.js +1 -0
- package/src/shiki/langs/mojo.js +1 -0
- package/src/shiki/langs/move.js +1 -0
- package/src/shiki/langs/narrat.js +1 -0
- package/src/shiki/langs/nextflow.js +1 -0
- package/src/shiki/langs/nginx.js +1 -0
- package/src/shiki/langs/nim.js +1 -0
- package/src/shiki/langs/nix.js +1 -0
- package/src/shiki/langs/nushell.js +1 -0
- package/src/shiki/langs/objective-c.js +1 -0
- package/src/shiki/langs/objective-cpp.js +1 -0
- package/src/shiki/langs/ocaml.js +1 -0
- package/src/shiki/langs/pascal.js +1 -0
- package/src/shiki/langs/perl.js +1 -0
- package/src/shiki/langs/php.js +1 -0
- package/src/shiki/langs/plsql.js +1 -0
- package/src/shiki/langs/po.js +1 -0
- package/src/shiki/langs/polar.js +1 -0
- package/src/shiki/langs/postcss.js +1 -0
- package/src/shiki/langs/powerquery.js +1 -0
- package/src/shiki/langs/powershell.js +1 -0
- package/src/shiki/langs/prisma.js +1 -0
- package/src/shiki/langs/prolog.js +1 -0
- package/src/shiki/langs/proto.js +1 -0
- package/src/shiki/langs/pug.js +1 -0
- package/src/shiki/langs/puppet.js +1 -0
- package/src/shiki/langs/purescript.js +1 -0
- package/src/shiki/langs/python.js +1 -0
- package/src/shiki/langs/qml.js +1 -0
- package/src/shiki/langs/qmldir.js +1 -0
- package/src/shiki/langs/qss.js +1 -0
- package/src/shiki/langs/r.js +1 -0
- package/src/shiki/langs/racket.js +1 -0
- package/src/shiki/langs/raku.js +1 -0
- package/src/shiki/langs/razor.js +1 -0
- package/src/shiki/langs/reg.js +1 -0
- package/src/shiki/langs/regexp.js +1 -0
- package/src/shiki/langs/rel.js +1 -0
- package/src/shiki/langs/riscv.js +1 -0
- package/src/shiki/langs/rst.js +1 -0
- package/src/shiki/langs/ruby.js +1 -0
- package/src/shiki/langs/rust.js +1 -0
- package/src/shiki/langs/sas.js +1 -0
- package/src/shiki/langs/sass.js +1 -0
- package/src/shiki/langs/scala.js +1 -0
- package/src/shiki/langs/scheme.js +1 -0
- package/src/shiki/langs/scss.js +1 -0
- package/src/shiki/langs/sdbl.js +1 -0
- package/src/shiki/langs/shaderlab.js +1 -0
- package/src/shiki/langs/shellscript.js +1 -0
- package/src/shiki/langs/shellsession.js +1 -0
- package/src/shiki/langs/smalltalk.js +1 -0
- package/src/shiki/langs/solidity.js +1 -0
- package/src/shiki/langs/soy.js +1 -0
- package/src/shiki/langs/sparql.js +1 -0
- package/src/shiki/langs/splunk.js +1 -0
- package/src/shiki/langs/sql.js +1 -0
- package/src/shiki/langs/ssh-config.js +1 -0
- package/src/shiki/langs/stata.js +1 -0
- package/src/shiki/langs/stylus.js +1 -0
- package/src/shiki/langs/svelte.js +1 -0
- package/src/shiki/langs/swift.js +1 -0
- package/src/shiki/langs/system-verilog.js +1 -0
- package/src/shiki/langs/systemd.js +1 -0
- package/src/shiki/langs/talonscript.js +1 -0
- package/src/shiki/langs/tasl.js +1 -0
- package/src/shiki/langs/tcl.js +1 -0
- package/src/shiki/langs/templ.js +1 -0
- package/src/shiki/langs/terraform.js +1 -0
- package/src/shiki/langs/tex.js +1 -0
- package/src/shiki/langs/toml.js +1 -0
- package/src/shiki/langs/ts-tags.js +1 -0
- package/src/shiki/langs/tsv.js +1 -0
- package/src/shiki/langs/tsx.js +1 -0
- package/src/shiki/langs/turtle.js +1 -0
- package/src/shiki/langs/twig.js +1 -0
- package/src/shiki/langs/typescript.js +1 -0
- package/src/shiki/langs/typespec.js +1 -0
- package/src/shiki/langs/typst.js +1 -0
- package/src/shiki/langs/v.js +1 -0
- package/src/shiki/langs/vala.js +1 -0
- package/src/shiki/langs/vb.js +1 -0
- package/src/shiki/langs/verilog.js +1 -0
- package/src/shiki/langs/vhdl.js +1 -0
- package/src/shiki/langs/viml.js +1 -0
- package/src/shiki/langs/vue-directives.js +1 -0
- package/src/shiki/langs/vue-html.js +1 -0
- package/src/shiki/langs/vue-interpolations.js +1 -0
- package/src/shiki/langs/vue-sfc-style-variable-injection.js +1 -0
- package/src/shiki/langs/vue.js +1 -0
- package/src/shiki/langs/vyper.js +1 -0
- package/src/shiki/langs/wasm.js +1 -0
- package/src/shiki/langs/wenyan.js +1 -0
- package/src/shiki/langs/wgsl.js +1 -0
- package/src/shiki/langs/wikitext.js +1 -0
- package/src/shiki/langs/wit.js +1 -0
- package/src/shiki/langs/wolfram.js +1 -0
- package/src/shiki/langs/xml.js +1 -0
- package/src/shiki/langs/xsl.js +1 -0
- package/src/shiki/langs/yaml.js +1 -0
- package/src/shiki/langs/zenscript.js +1 -0
- package/src/shiki/langs/zig.js +1 -0
- package/src/shiki/themes/andromeeda.js +1 -0
- package/src/shiki/themes/aurora-x.js +1 -0
- package/src/shiki/themes/ayu-dark.js +1 -0
- package/src/shiki/themes/catppuccin-frappe.js +1 -0
- package/src/shiki/themes/catppuccin-latte.js +1 -0
- package/src/shiki/themes/catppuccin-macchiato.js +1 -0
- package/src/shiki/themes/catppuccin-mocha.js +1 -0
- package/src/shiki/themes/dark-plus.js +1 -0
- package/src/shiki/themes/dracula-soft.js +1 -0
- package/src/shiki/themes/dracula.js +1 -0
- package/src/shiki/themes/everforest-dark.js +1 -0
- package/src/shiki/themes/everforest-light.js +1 -0
- package/src/shiki/themes/github-dark-default.js +1 -0
- package/src/shiki/themes/github-dark-dimmed.js +1 -0
- package/src/shiki/themes/github-dark-high-contrast.js +1 -0
- package/src/shiki/themes/github-dark.js +1 -0
- package/src/shiki/themes/github-light-default.js +1 -0
- package/src/shiki/themes/github-light-high-contrast.js +1 -0
- package/src/shiki/themes/github-light.js +1 -0
- package/src/shiki/themes/gruvbox-dark-hard.js +1 -0
- package/src/shiki/themes/gruvbox-dark-medium.js +1 -0
- package/src/shiki/themes/gruvbox-dark-soft.js +1 -0
- package/src/shiki/themes/gruvbox-light-hard.js +1 -0
- package/src/shiki/themes/gruvbox-light-medium.js +1 -0
- package/src/shiki/themes/gruvbox-light-soft.js +1 -0
- package/src/shiki/themes/houston.js +1 -0
- package/src/shiki/themes/kanagawa-dragon.js +1 -0
- package/src/shiki/themes/kanagawa-lotus.js +1 -0
- package/src/shiki/themes/kanagawa-wave.js +1 -0
- package/src/shiki/themes/laserwave.js +1 -0
- package/src/shiki/themes/light-plus.js +1 -0
- package/src/shiki/themes/material-theme-darker.js +1 -0
- package/src/shiki/themes/material-theme-lighter.js +1 -0
- package/src/shiki/themes/material-theme-ocean.js +1 -0
- package/src/shiki/themes/material-theme-palenight.js +1 -0
- package/src/shiki/themes/material-theme.js +1 -0
- package/src/shiki/themes/min-dark.js +1 -0
- package/src/shiki/themes/min-light.js +1 -0
- package/src/shiki/themes/monokai.js +1 -0
- package/src/shiki/themes/night-owl.js +1 -0
- package/src/shiki/themes/nord.js +1 -0
- package/src/shiki/themes/one-dark-pro.js +1 -0
- package/src/shiki/themes/one-light.js +1 -0
- package/src/shiki/themes/plastic.js +1 -0
- package/src/shiki/themes/poimandres.js +1 -0
- package/src/shiki/themes/red.js +1 -0
- package/src/shiki/themes/rose-pine-dawn.js +1 -0
- package/src/shiki/themes/rose-pine-moon.js +1 -0
- package/src/shiki/themes/rose-pine.js +1 -0
- package/src/shiki/themes/slack-dark.js +1 -0
- package/src/shiki/themes/slack-ochin.js +1 -0
- package/src/shiki/themes/snazzy-light.js +1 -0
- package/src/shiki/themes/solarized-dark.js +1 -0
- package/src/shiki/themes/solarized-light.js +1 -0
- package/src/shiki/themes/synthwave-84.js +1 -0
- package/src/shiki/themes/tokyo-night.js +1 -0
- package/src/shiki/themes/vesper.js +1 -0
- package/src/shiki/themes/vitesse-black.js +1 -0
- package/src/shiki/themes/vitesse-dark.js +1 -0
- package/src/shiki/themes/vitesse-light.js +1 -0
- package/LICENSE.md +0 -9
- package/client.d.ts +0 -1
- package/dist/app/tailwind.d.ts +0 -3
- package/dist/app/tailwind.js +0 -65
- package/dist/app/tailwind.js.map +0 -1
- package/dist/internal.d.ts +0 -1
- package/dist/internal.js +0 -2
- package/dist/internal.js.map +0 -1
- package/dist/lib/components/DevPortal.d.ts +0 -7
- package/dist/lib/components/DevPortal.js +0 -54
- package/dist/lib/components/DevPortal.js.map +0 -1
- package/dist/lib/components/Dialog.js +0 -23
- package/dist/lib/components/Dialog.js.map +0 -1
- package/dist/lib/components/Select.js +0 -27
- package/dist/lib/components/Select.js.map +0 -1
- package/dist/lib/components/SlotletProvider.d.ts +0 -9
- package/dist/lib/components/SlotletProvider.js +0 -16
- package/dist/lib/components/SlotletProvider.js.map +0 -1
- package/dist/lib/components/SyntaxHighlight.d.ts +0 -11
- package/dist/lib/components/SyntaxHighlight.js +0 -50
- package/dist/lib/components/SyntaxHighlight.js.map +0 -1
- package/dist/lib/components/context/PluginSystem.js +0 -2
- package/dist/lib/components/context/PluginSystem.js.map +0 -1
- package/dist/lib/components/context/ThemeContext.d.ts +0 -2
- package/dist/lib/components/context/ThemeContext.js +0 -7
- package/dist/lib/components/context/ThemeContext.js.map +0 -1
- package/dist/lib/components/context/ThemeProvider.d.ts +0 -4
- package/dist/lib/components/context/ThemeProvider.js +0 -23
- package/dist/lib/components/context/ThemeProvider.js.map +0 -1
- package/dist/lib/core/DevPortalContext.d.ts +0 -78
- package/dist/lib/core/DevPortalContext.js +0 -49
- package/dist/lib/core/DevPortalContext.js.map +0 -1
- package/dist/lib/plugins/custom-page/index.d.ts +0 -8
- package/dist/lib/plugins/custom-page/index.js +0 -12
- package/dist/lib/plugins/custom-page/index.js.map +0 -1
- package/dist/lib/plugins/markdown/Toc.js +0 -48
- package/dist/lib/plugins/markdown/Toc.js.map +0 -1
- package/dist/lib/plugins/markdown/generateRoutes.d.ts +0 -3
- package/dist/lib/plugins/markdown/generateRoutes.js +0 -21
- package/dist/lib/plugins/markdown/generateRoutes.js.map +0 -1
- package/dist/lib/plugins/openapi/Route.d.ts +0 -6
- package/dist/lib/plugins/openapi/Route.js +0 -8
- package/dist/lib/plugins/openapi/Route.js.map +0 -1
- package/dist/lib/plugins/openapi/client/createMemoryClient.d.ts +0 -12
- package/dist/lib/plugins/openapi/client/createMemoryClient.js +0 -46
- package/dist/lib/plugins/openapi/client/createMemoryClient.js.map +0 -1
- package/dist/lib/plugins/openapi/client/createWorkerClient.d.ts +0 -10
- package/dist/lib/plugins/openapi/client/createWorkerClient.js +0 -61
- package/dist/lib/plugins/openapi/client/createWorkerClient.js.map +0 -1
- package/dist/lib/plugins/openapi/client/interfaces.d.ts +0 -4
- package/dist/lib/plugins/openapi/client/interfaces.js +0 -2
- package/dist/lib/plugins/openapi/client/interfaces.js.map +0 -1
- package/dist/lib/plugins/openapi/client/worker.js +0 -20
- package/dist/lib/plugins/openapi/client/worker.js.map +0 -1
- package/dist/lib/plugins/openapi/playground/Editor.d.ts +0 -1
- package/dist/lib/plugins/openapi/playground/Editor.js +0 -5
- package/dist/lib/plugins/openapi/playground/Editor.js.map +0 -1
- package/dist/lib/plugins/openapi/playground/ResponseTab.d.ts +0 -4
- package/dist/lib/plugins/openapi/playground/ResponseTab.js +0 -42
- package/dist/lib/plugins/openapi/playground/ResponseTab.js.map +0 -1
- package/dist/lib/plugins/openapi/schema/SchemaComponents.d.ts +0 -13
- package/dist/lib/plugins/openapi/schema/SchemaComponents.js +0 -28
- package/dist/lib/plugins/openapi/schema/SchemaComponents.js.map +0 -1
- package/dist/lib/plugins/openapi/util/urql.d.ts +0 -7
- package/dist/lib/plugins/openapi/util/urql.js +0 -8
- package/dist/lib/plugins/openapi/util/urql.js.map +0 -1
- package/dist/lib/plugins/openapi-worker.d.ts +0 -1
- package/dist/lib/plugins/openapi-worker.js +0 -2
- package/dist/lib/plugins/openapi-worker.js.map +0 -1
- package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.d.ts +0 -2
- package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js +0 -3
- package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js.map +0 -1
- package/dist/lib/themeToggle.d.ts +0 -1
- package/dist/lib/themeToggle.js +0 -7
- package/dist/lib/themeToggle.js.map +0 -1
- package/dist/lib/ui/Note.d.ts +0 -8
- package/dist/lib/ui/Note.js +0 -23
- package/dist/lib/ui/Note.js.map +0 -1
- package/dist/lib/util/createWaitForNotify.d.ts +0 -1
- package/dist/lib/util/createWaitForNotify.js +0 -15
- package/dist/lib/util/createWaitForNotify.js.map +0 -1
- package/dist/vite/plugin-custom-css.d.ts +0 -6
- package/dist/vite/plugin-custom-css.js +0 -55
- package/dist/vite/plugin-custom-css.js.map +0 -1
- package/dist/vite/plugin-html-transform.d.ts +0 -2
- package/dist/vite/plugin-html-transform.js +0 -15
- package/dist/vite/plugin-html-transform.js.map +0 -1
- package/dist/vite/prerender.d.ts +0 -17
- package/dist/vite/prerender.js +0 -87
- package/dist/vite/prerender.js.map +0 -1
- package/lib/AuthenticationPlugin-Bx9FK124.js +0 -55
- package/lib/AuthenticationPlugin-Bx9FK124.js.map +0 -1
- package/lib/CategoryHeading-ovR-zHRq.js +0 -10
- package/lib/CategoryHeading-ovR-zHRq.js.map +0 -1
- package/lib/DeveloperHint-YeWHKvyr.js +0 -16
- package/lib/DeveloperHint-YeWHKvyr.js.map +0 -1
- package/lib/ErrorPage-CsZAN_za.js +0 -16
- package/lib/ErrorPage-CsZAN_za.js.map +0 -1
- package/lib/InkeepCustomTrigger-CE5-K5ex.js +0 -6
- package/lib/InkeepCustomTrigger-CE5-K5ex.js.map +0 -1
- package/lib/Input-CtVUl3eT.js +0 -2198
- package/lib/Input-CtVUl3eT.js.map +0 -1
- package/lib/Markdown-DapSf3wG.js +0 -20281
- package/lib/Markdown-DapSf3wG.js.map +0 -1
- package/lib/MdxPage-BqBWsXZ1.js +0 -172
- package/lib/MdxPage-BqBWsXZ1.js.map +0 -1
- package/lib/OperationList-CYrmxPa8.js +0 -602
- package/lib/OperationList-CYrmxPa8.js.map +0 -1
- package/lib/Route-Q5mqNQrv.js +0 -14
- package/lib/Route-Q5mqNQrv.js.map +0 -1
- package/lib/SidebarBadge-Dx7jtnoA.js +0 -498
- package/lib/SidebarBadge-Dx7jtnoA.js.map +0 -1
- package/lib/SlotletProvider-D3UD5Go3.js +0 -238
- package/lib/SlotletProvider-D3UD5Go3.js.map +0 -1
- package/lib/Spinner-3cQDBVGr.js +0 -7
- package/lib/Spinner-3cQDBVGr.js.map +0 -1
- package/lib/ZudokuContext-cr-pTRY1.js +0 -1084
- package/lib/ZudokuContext-cr-pTRY1.js.map +0 -1
- package/lib/_commonjsHelpers-BkfeUUK-.js +0 -29
- package/lib/_commonjsHelpers-BkfeUUK-.js.map +0 -1
- package/lib/assets/index-B9EWVYfo.js +0 -4790
- package/lib/assets/index-B9EWVYfo.js.map +0 -1
- package/lib/assets/worker-BP8Uzflt.js +0 -17916
- package/lib/assets/worker-BP8Uzflt.js.map +0 -1
- package/lib/index-BG0g4WW0.js +0 -1771
- package/lib/index-BG0g4WW0.js.map +0 -1
- package/lib/index-BlJ2rj99.js +0 -5815
- package/lib/index-BlJ2rj99.js.map +0 -1
- package/lib/index-BngPzhKn.js +0 -124
- package/lib/index-BngPzhKn.js.map +0 -1
- package/lib/index-CLd8ycZz.js +0 -4790
- package/lib/index-CLd8ycZz.js.map +0 -1
- package/lib/index-Dolisrci.js +0 -2814
- package/lib/index-Dolisrci.js.map +0 -1
- package/lib/index-LNp6rxyU.js +0 -2094
- package/lib/index-LNp6rxyU.js.map +0 -1
- package/lib/joinPath-B7kNnUX4.js +0 -8
- package/lib/joinPath-B7kNnUX4.js.map +0 -1
- package/lib/jsx-runtime-B6kdoens.js +0 -635
- package/lib/jsx-runtime-B6kdoens.js.map +0 -1
- package/lib/prism-bash.min-DadFsM4Z.js +0 -7
- package/lib/prism-bash.min-DadFsM4Z.js.map +0 -1
- package/lib/prism-csharp.min-Yizuc34Y.js +0 -35
- package/lib/prism-csharp.min-Yizuc34Y.js.map +0 -1
- package/lib/prism-java.min-d5iT_mOd.js +0 -7
- package/lib/prism-java.min-d5iT_mOd.js.map +0 -1
- package/lib/prism-javascript.min-CEqHqgbm.js +0 -9
- package/lib/prism-javascript.min-CEqHqgbm.js.map +0 -1
- package/lib/prism-json.min-B1GJqK1k.js +0 -2
- package/lib/prism-json.min-B1GJqK1k.js.map +0 -1
- package/lib/prism-markdown.min-F3U-vPBi.js +0 -61
- package/lib/prism-markdown.min-F3U-vPBi.js.map +0 -1
- package/lib/prism-markup-BNGj0Tvm.js +0 -174
- package/lib/prism-markup-BNGj0Tvm.js.map +0 -1
- package/lib/prism-markup-templating-DZrrEs0A.js +0 -62
- package/lib/prism-markup-templating-DZrrEs0A.js.map +0 -1
- package/lib/prism-objectivec.min-BXSWqpJJ.js +0 -2
- package/lib/prism-objectivec.min-BXSWqpJJ.js.map +0 -1
- package/lib/prism-php.min-o7FpoMP_.js +0 -11
- package/lib/prism-php.min-o7FpoMP_.js.map +0 -1
- package/lib/prism-ruby.min-C7LwcKyz.js +0 -10
- package/lib/prism-ruby.min-C7LwcKyz.js.map +0 -1
- package/lib/prism-typescript.min-oSVeWCAd.js +0 -6
- package/lib/prism-typescript.min-oSVeWCAd.js.map +0 -1
- package/lib/router-D2p7Olpn.js +0 -2971
- package/lib/router-D2p7Olpn.js.map +0 -1
- package/lib/state-hNe1dw4B.js +0 -548
- package/lib/state-hNe1dw4B.js.map +0 -1
- package/lib/urql-YhcsXYy8.js +0 -1591
- package/lib/urql-YhcsXYy8.js.map +0 -1
- package/lib/utils-ByIc_KIM.js +0 -749
- package/lib/utils-ByIc_KIM.js.map +0 -1
- package/lib/zudoku.openapi-worker.js +0 -16059
- package/lib/zudoku.openapi-worker.js.map +0 -1
- package/lib/zudoku.plugin-custom-page.js +0 -13
- package/lib/zudoku.plugin-custom-page.js.map +0 -1
- package/src/app/tailwind.ts +0 -68
- package/src/lib/components/DevPortal.tsx +0 -111
- package/src/lib/components/Dialog.tsx +0 -119
- package/src/lib/components/Select.tsx +0 -157
- package/src/lib/components/SlotletProvider.tsx +0 -30
- package/src/lib/components/SyntaxHighlight.tsx +0 -122
- package/src/lib/components/context/PluginSystem.ts +0 -0
- package/src/lib/components/context/ThemeContext.tsx +0 -8
- package/src/lib/components/context/ThemeProvider.tsx +0 -27
- package/src/lib/core/DevPortalContext.ts +0 -135
- package/src/lib/plugins/custom-page/index.tsx +0 -22
- package/src/lib/plugins/markdown/Toc.tsx +0 -135
- package/src/lib/plugins/markdown/generateRoutes.tsx +0 -38
- package/src/lib/plugins/openapi/Route.tsx +0 -21
- package/src/lib/plugins/openapi/client/createMemoryClient.ts +0 -56
- package/src/lib/plugins/openapi/client/createWorkerClient.ts +0 -80
- package/src/lib/plugins/openapi/client/interfaces.ts +0 -5
- package/src/lib/plugins/openapi/client/worker.ts +0 -30
- package/src/lib/plugins/openapi/playground/Editor.tsx +0 -4
- package/src/lib/plugins/openapi/playground/ResponseTab.tsx +0 -76
- package/src/lib/plugins/openapi/schema/SchemaComponents.tsx +0 -126
- package/src/lib/plugins/openapi/util/urql.ts +0 -8
- package/src/lib/plugins/openapi-worker.ts +0 -1
- package/src/lib/plugins/search-inkeep/InkeepCustomTrigger.tsx +0 -3
- package/src/lib/themeToggle.ts +0 -7
- package/src/lib/ui/Note.tsx +0 -58
- package/src/lib/util/createWaitForNotify.ts +0 -18
- /package/dist/lib/components/{context/PluginSystem.d.ts → Slot.test.d.ts} +0 -0
- /package/dist/lib/{plugins/markdown → components/navigation}/Toc.d.ts +0 -0
- /package/dist/lib/{plugins/openapi/client/worker.d.ts → hooks/useEvent.test.d.ts} +0 -0
- /package/dist/lib/{components → ui}/Dialog.d.ts +0 -0
- /package/dist/lib/{components → ui}/Select.d.ts +0 -0
package/lib/index-Dolisrci.js
DELETED
|
@@ -1,2814 +0,0 @@
|
|
|
1
|
-
var wt = (e) => {
|
|
2
|
-
throw TypeError(e);
|
|
3
|
-
};
|
|
4
|
-
var He = (e, t, n) => t.has(e) || wt("Cannot " + n);
|
|
5
|
-
var L = (e, t, n) => (He(e, t, "read from private field"), n ? n.call(e) : t.get(e)), we = (e, t, n) => t.has(e) ? wt("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), xe = (e, t, n, r) => (He(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n), q = (e, t, n) => (He(e, t, "access private method"), n);
|
|
6
|
-
import { j as P } from "./jsx-runtime-B6kdoens.js";
|
|
7
|
-
import { a as Nn, e as Dn } from "./Markdown-DapSf3wG.js";
|
|
8
|
-
import * as u from "react";
|
|
9
|
-
import ie, { useLayoutEffect as kn, useEffect as Fn, useState as In } from "react";
|
|
10
|
-
import { R as Wn, y as _n, n as Bn, u as jn } from "./ZudokuContext-cr-pTRY1.js";
|
|
11
|
-
import { u as $n } from "./state-hNe1dw4B.js";
|
|
12
|
-
import * as Ht from "react-dom";
|
|
13
|
-
import Hn from "react-dom";
|
|
14
|
-
function Vn(e, t) {
|
|
15
|
-
typeof e == "function" ? e(t) : e != null && (e.current = t);
|
|
16
|
-
}
|
|
17
|
-
function Vt(...e) {
|
|
18
|
-
return (t) => e.forEach((n) => Vn(n, t));
|
|
19
|
-
}
|
|
20
|
-
function ce(...e) {
|
|
21
|
-
return u.useCallback(Vt(...e), e);
|
|
22
|
-
}
|
|
23
|
-
var be = u.forwardRef((e, t) => {
|
|
24
|
-
const { children: n, ...r } = e, o = u.Children.toArray(n), i = o.find(Un);
|
|
25
|
-
if (i) {
|
|
26
|
-
const s = i.props.children, c = o.map((a) => a === i ? u.Children.count(s) > 1 ? u.Children.only(null) : u.isValidElement(s) ? s.props.children : null : a);
|
|
27
|
-
return /* @__PURE__ */ P.jsx(Qe, { ...r, ref: t, children: u.isValidElement(s) ? u.cloneElement(s, void 0, c) : null });
|
|
28
|
-
}
|
|
29
|
-
return /* @__PURE__ */ P.jsx(Qe, { ...r, ref: t, children: n });
|
|
30
|
-
});
|
|
31
|
-
be.displayName = "Slot";
|
|
32
|
-
var Qe = u.forwardRef((e, t) => {
|
|
33
|
-
const { children: n, ...r } = e;
|
|
34
|
-
if (u.isValidElement(n)) {
|
|
35
|
-
const o = Xn(n);
|
|
36
|
-
return u.cloneElement(n, {
|
|
37
|
-
...Yn(r, n.props),
|
|
38
|
-
// @ts-ignore
|
|
39
|
-
ref: t ? Vt(t, o) : o
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
return u.Children.count(n) > 1 ? u.Children.only(null) : null;
|
|
43
|
-
});
|
|
44
|
-
Qe.displayName = "SlotClone";
|
|
45
|
-
var zn = ({ children: e }) => /* @__PURE__ */ P.jsx(P.Fragment, { children: e });
|
|
46
|
-
function Un(e) {
|
|
47
|
-
return u.isValidElement(e) && e.type === zn;
|
|
48
|
-
}
|
|
49
|
-
function Yn(e, t) {
|
|
50
|
-
const n = { ...t };
|
|
51
|
-
for (const r in t) {
|
|
52
|
-
const o = e[r], i = t[r];
|
|
53
|
-
/^on[A-Z]/.test(r) ? o && i ? n[r] = (...c) => {
|
|
54
|
-
i(...c), o(...c);
|
|
55
|
-
} : o && (n[r] = o) : r === "style" ? n[r] = { ...o, ...i } : r === "className" && (n[r] = [o, i].filter(Boolean).join(" "));
|
|
56
|
-
}
|
|
57
|
-
return { ...e, ...n };
|
|
58
|
-
}
|
|
59
|
-
function Xn(e) {
|
|
60
|
-
var r, o;
|
|
61
|
-
let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
62
|
-
return n ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
63
|
-
}
|
|
64
|
-
const Kn = Dn(
|
|
65
|
-
"not-prose inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",
|
|
66
|
-
{
|
|
67
|
-
variants: {
|
|
68
|
-
variant: {
|
|
69
|
-
default: "bg-primary text-primary-foreground shadow hover:bg-primary/90",
|
|
70
|
-
destructive: "bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",
|
|
71
|
-
outline: "border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",
|
|
72
|
-
secondary: "bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",
|
|
73
|
-
ghost: "hover:bg-accent hover:text-accent-foreground",
|
|
74
|
-
link: "text-primary underline-offset-4 hover:underline"
|
|
75
|
-
},
|
|
76
|
-
size: {
|
|
77
|
-
default: "h-9 px-4 py-2",
|
|
78
|
-
sm: "h-8 rounded-md px-3 text-xs",
|
|
79
|
-
lg: "h-10 rounded-md px-8",
|
|
80
|
-
xl: "h-14 rounded-lg px-10 text-lg",
|
|
81
|
-
icon: "h-9 w-9"
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
defaultVariants: {
|
|
85
|
-
variant: "default",
|
|
86
|
-
size: "default"
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
), Gn = u.forwardRef(
|
|
90
|
-
({ className: e, variant: t, size: n, asChild: r = !1, ...o }, i) => {
|
|
91
|
-
const s = r ? be : "button";
|
|
92
|
-
return /* @__PURE__ */ P.jsx(
|
|
93
|
-
s,
|
|
94
|
-
{
|
|
95
|
-
className: Nn(Kn({ variant: t, size: n, className: e })),
|
|
96
|
-
ref: i,
|
|
97
|
-
...o
|
|
98
|
-
}
|
|
99
|
-
);
|
|
100
|
-
}
|
|
101
|
-
);
|
|
102
|
-
Gn.displayName = "Button";
|
|
103
|
-
var H, F, se, V, Q, $t, wi = ($t = class extends Wn {
|
|
104
|
-
constructor(t) {
|
|
105
|
-
super();
|
|
106
|
-
we(this, V);
|
|
107
|
-
we(this, H);
|
|
108
|
-
we(this, F);
|
|
109
|
-
we(this, se);
|
|
110
|
-
this.mutationId = t.mutationId, xe(this, F, t.mutationCache), xe(this, H, []), this.state = t.state || Zn(), this.setOptions(t.options), this.scheduleGc();
|
|
111
|
-
}
|
|
112
|
-
setOptions(t) {
|
|
113
|
-
this.options = t, this.updateGcTime(this.options.gcTime);
|
|
114
|
-
}
|
|
115
|
-
get meta() {
|
|
116
|
-
return this.options.meta;
|
|
117
|
-
}
|
|
118
|
-
addObserver(t) {
|
|
119
|
-
L(this, H).includes(t) || (L(this, H).push(t), this.clearGcTimeout(), L(this, F).notify({
|
|
120
|
-
type: "observerAdded",
|
|
121
|
-
mutation: this,
|
|
122
|
-
observer: t
|
|
123
|
-
}));
|
|
124
|
-
}
|
|
125
|
-
removeObserver(t) {
|
|
126
|
-
xe(this, H, L(this, H).filter((n) => n !== t)), this.scheduleGc(), L(this, F).notify({
|
|
127
|
-
type: "observerRemoved",
|
|
128
|
-
mutation: this,
|
|
129
|
-
observer: t
|
|
130
|
-
});
|
|
131
|
-
}
|
|
132
|
-
optionalRemove() {
|
|
133
|
-
L(this, H).length || (this.state.status === "pending" ? this.scheduleGc() : L(this, F).remove(this));
|
|
134
|
-
}
|
|
135
|
-
continue() {
|
|
136
|
-
var t;
|
|
137
|
-
return ((t = L(this, se)) == null ? void 0 : t.continue()) ?? // continuing a mutation assumes that variables are set, mutation must have been dehydrated before
|
|
138
|
-
this.execute(this.state.variables);
|
|
139
|
-
}
|
|
140
|
-
async execute(t) {
|
|
141
|
-
var o, i, s, c, a, l, h, d, p, m, g, f, v, y, w, b, x, E, C, S;
|
|
142
|
-
xe(this, se, _n({
|
|
143
|
-
fn: () => this.options.mutationFn ? this.options.mutationFn(t) : Promise.reject(new Error("No mutationFn found")),
|
|
144
|
-
onFail: (A, O) => {
|
|
145
|
-
q(this, V, Q).call(this, { type: "failed", failureCount: A, error: O });
|
|
146
|
-
},
|
|
147
|
-
onPause: () => {
|
|
148
|
-
q(this, V, Q).call(this, { type: "pause" });
|
|
149
|
-
},
|
|
150
|
-
onContinue: () => {
|
|
151
|
-
q(this, V, Q).call(this, { type: "continue" });
|
|
152
|
-
},
|
|
153
|
-
retry: this.options.retry ?? 0,
|
|
154
|
-
retryDelay: this.options.retryDelay,
|
|
155
|
-
networkMode: this.options.networkMode,
|
|
156
|
-
canRun: () => L(this, F).canRun(this)
|
|
157
|
-
}));
|
|
158
|
-
const n = this.state.status === "pending", r = !L(this, se).canStart();
|
|
159
|
-
try {
|
|
160
|
-
if (!n) {
|
|
161
|
-
q(this, V, Q).call(this, { type: "pending", variables: t, isPaused: r }), await ((i = (o = L(this, F).config).onMutate) == null ? void 0 : i.call(
|
|
162
|
-
o,
|
|
163
|
-
t,
|
|
164
|
-
this
|
|
165
|
-
));
|
|
166
|
-
const O = await ((c = (s = this.options).onMutate) == null ? void 0 : c.call(s, t));
|
|
167
|
-
O !== this.state.context && q(this, V, Q).call(this, {
|
|
168
|
-
type: "pending",
|
|
169
|
-
context: O,
|
|
170
|
-
variables: t,
|
|
171
|
-
isPaused: r
|
|
172
|
-
});
|
|
173
|
-
}
|
|
174
|
-
const A = await L(this, se).start();
|
|
175
|
-
return await ((l = (a = L(this, F).config).onSuccess) == null ? void 0 : l.call(
|
|
176
|
-
a,
|
|
177
|
-
A,
|
|
178
|
-
t,
|
|
179
|
-
this.state.context,
|
|
180
|
-
this
|
|
181
|
-
)), await ((d = (h = this.options).onSuccess) == null ? void 0 : d.call(h, A, t, this.state.context)), await ((m = (p = L(this, F).config).onSettled) == null ? void 0 : m.call(
|
|
182
|
-
p,
|
|
183
|
-
A,
|
|
184
|
-
null,
|
|
185
|
-
this.state.variables,
|
|
186
|
-
this.state.context,
|
|
187
|
-
this
|
|
188
|
-
)), await ((f = (g = this.options).onSettled) == null ? void 0 : f.call(g, A, null, t, this.state.context)), q(this, V, Q).call(this, { type: "success", data: A }), A;
|
|
189
|
-
} catch (A) {
|
|
190
|
-
try {
|
|
191
|
-
throw await ((y = (v = L(this, F).config).onError) == null ? void 0 : y.call(
|
|
192
|
-
v,
|
|
193
|
-
A,
|
|
194
|
-
t,
|
|
195
|
-
this.state.context,
|
|
196
|
-
this
|
|
197
|
-
)), await ((b = (w = this.options).onError) == null ? void 0 : b.call(
|
|
198
|
-
w,
|
|
199
|
-
A,
|
|
200
|
-
t,
|
|
201
|
-
this.state.context
|
|
202
|
-
)), await ((E = (x = L(this, F).config).onSettled) == null ? void 0 : E.call(
|
|
203
|
-
x,
|
|
204
|
-
void 0,
|
|
205
|
-
A,
|
|
206
|
-
this.state.variables,
|
|
207
|
-
this.state.context,
|
|
208
|
-
this
|
|
209
|
-
)), await ((S = (C = this.options).onSettled) == null ? void 0 : S.call(
|
|
210
|
-
C,
|
|
211
|
-
void 0,
|
|
212
|
-
A,
|
|
213
|
-
t,
|
|
214
|
-
this.state.context
|
|
215
|
-
)), A;
|
|
216
|
-
} finally {
|
|
217
|
-
q(this, V, Q).call(this, { type: "error", error: A });
|
|
218
|
-
}
|
|
219
|
-
} finally {
|
|
220
|
-
L(this, F).runNext(this);
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
}, H = new WeakMap(), F = new WeakMap(), se = new WeakMap(), V = new WeakSet(), Q = function(t) {
|
|
224
|
-
const n = (r) => {
|
|
225
|
-
switch (t.type) {
|
|
226
|
-
case "failed":
|
|
227
|
-
return {
|
|
228
|
-
...r,
|
|
229
|
-
failureCount: t.failureCount,
|
|
230
|
-
failureReason: t.error
|
|
231
|
-
};
|
|
232
|
-
case "pause":
|
|
233
|
-
return {
|
|
234
|
-
...r,
|
|
235
|
-
isPaused: !0
|
|
236
|
-
};
|
|
237
|
-
case "continue":
|
|
238
|
-
return {
|
|
239
|
-
...r,
|
|
240
|
-
isPaused: !1
|
|
241
|
-
};
|
|
242
|
-
case "pending":
|
|
243
|
-
return {
|
|
244
|
-
...r,
|
|
245
|
-
context: t.context,
|
|
246
|
-
data: void 0,
|
|
247
|
-
failureCount: 0,
|
|
248
|
-
failureReason: null,
|
|
249
|
-
error: null,
|
|
250
|
-
isPaused: t.isPaused,
|
|
251
|
-
status: "pending",
|
|
252
|
-
variables: t.variables,
|
|
253
|
-
submittedAt: Date.now()
|
|
254
|
-
};
|
|
255
|
-
case "success":
|
|
256
|
-
return {
|
|
257
|
-
...r,
|
|
258
|
-
data: t.data,
|
|
259
|
-
failureCount: 0,
|
|
260
|
-
failureReason: null,
|
|
261
|
-
error: null,
|
|
262
|
-
status: "success",
|
|
263
|
-
isPaused: !1
|
|
264
|
-
};
|
|
265
|
-
case "error":
|
|
266
|
-
return {
|
|
267
|
-
...r,
|
|
268
|
-
data: void 0,
|
|
269
|
-
error: t.error,
|
|
270
|
-
failureCount: r.failureCount + 1,
|
|
271
|
-
failureReason: t.error,
|
|
272
|
-
isPaused: !1,
|
|
273
|
-
status: "error"
|
|
274
|
-
};
|
|
275
|
-
}
|
|
276
|
-
};
|
|
277
|
-
this.state = n(this.state), Bn.batch(() => {
|
|
278
|
-
L(this, H).forEach((r) => {
|
|
279
|
-
r.onMutationUpdate(t);
|
|
280
|
-
}), L(this, F).notify({
|
|
281
|
-
mutation: this,
|
|
282
|
-
type: "updated",
|
|
283
|
-
action: t
|
|
284
|
-
});
|
|
285
|
-
});
|
|
286
|
-
}, $t);
|
|
287
|
-
function Zn() {
|
|
288
|
-
return {
|
|
289
|
-
context: void 0,
|
|
290
|
-
data: void 0,
|
|
291
|
-
error: null,
|
|
292
|
-
failureCount: 0,
|
|
293
|
-
failureReason: null,
|
|
294
|
-
isPaused: !1,
|
|
295
|
-
status: "idle",
|
|
296
|
-
variables: void 0,
|
|
297
|
-
submittedAt: 0
|
|
298
|
-
};
|
|
299
|
-
}
|
|
300
|
-
const xi = () => {
|
|
301
|
-
const { authentication: e } = jn(), t = $n(), n = typeof e < "u";
|
|
302
|
-
return {
|
|
303
|
-
isAuthEnabled: n,
|
|
304
|
-
isPending: t.isPending,
|
|
305
|
-
profile: t.profile,
|
|
306
|
-
isAuthenticated: t.profile,
|
|
307
|
-
login: async () => {
|
|
308
|
-
if (!n)
|
|
309
|
-
throw new Error("Authentication is not enabled.");
|
|
310
|
-
await e.signIn();
|
|
311
|
-
},
|
|
312
|
-
logout: async () => {
|
|
313
|
-
if (!n)
|
|
314
|
-
throw new Error("Authentication is not enabled.");
|
|
315
|
-
await e.signOut(), window.location.href = "/";
|
|
316
|
-
}
|
|
317
|
-
};
|
|
318
|
-
};
|
|
319
|
-
function Ve(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
320
|
-
return function(o) {
|
|
321
|
-
if (e == null || e(o), n === !1 || !o.defaultPrevented)
|
|
322
|
-
return t == null ? void 0 : t(o);
|
|
323
|
-
};
|
|
324
|
-
}
|
|
325
|
-
function bi(e, t) {
|
|
326
|
-
const n = u.createContext(t);
|
|
327
|
-
function r(i) {
|
|
328
|
-
const { children: s, ...c } = i, a = u.useMemo(() => c, Object.values(c));
|
|
329
|
-
return /* @__PURE__ */ P.jsx(n.Provider, { value: a, children: s });
|
|
330
|
-
}
|
|
331
|
-
function o(i) {
|
|
332
|
-
const s = u.useContext(n);
|
|
333
|
-
if (s) return s;
|
|
334
|
-
if (t !== void 0) return t;
|
|
335
|
-
throw new Error(`\`${i}\` must be used within \`${e}\``);
|
|
336
|
-
}
|
|
337
|
-
return r.displayName = e + "Provider", [r, o];
|
|
338
|
-
}
|
|
339
|
-
function zt(e, t = []) {
|
|
340
|
-
let n = [];
|
|
341
|
-
function r(i, s) {
|
|
342
|
-
const c = u.createContext(s), a = n.length;
|
|
343
|
-
n = [...n, s];
|
|
344
|
-
function l(d) {
|
|
345
|
-
const { scope: p, children: m, ...g } = d, f = (p == null ? void 0 : p[e][a]) || c, v = u.useMemo(() => g, Object.values(g));
|
|
346
|
-
return /* @__PURE__ */ P.jsx(f.Provider, { value: v, children: m });
|
|
347
|
-
}
|
|
348
|
-
function h(d, p) {
|
|
349
|
-
const m = (p == null ? void 0 : p[e][a]) || c, g = u.useContext(m);
|
|
350
|
-
if (g) return g;
|
|
351
|
-
if (s !== void 0) return s;
|
|
352
|
-
throw new Error(`\`${d}\` must be used within \`${i}\``);
|
|
353
|
-
}
|
|
354
|
-
return l.displayName = i + "Provider", [l, h];
|
|
355
|
-
}
|
|
356
|
-
const o = () => {
|
|
357
|
-
const i = n.map((s) => u.createContext(s));
|
|
358
|
-
return function(c) {
|
|
359
|
-
const a = (c == null ? void 0 : c[e]) || i;
|
|
360
|
-
return u.useMemo(
|
|
361
|
-
() => ({ [`__scope${e}`]: { ...c, [e]: a } }),
|
|
362
|
-
[c, a]
|
|
363
|
-
);
|
|
364
|
-
};
|
|
365
|
-
};
|
|
366
|
-
return o.scopeName = e, [r, qn(o, ...t)];
|
|
367
|
-
}
|
|
368
|
-
function qn(...e) {
|
|
369
|
-
const t = e[0];
|
|
370
|
-
if (e.length === 1) return t;
|
|
371
|
-
const n = () => {
|
|
372
|
-
const r = e.map((o) => ({
|
|
373
|
-
useScope: o(),
|
|
374
|
-
scopeName: o.scopeName
|
|
375
|
-
}));
|
|
376
|
-
return function(i) {
|
|
377
|
-
const s = r.reduce((c, { useScope: a, scopeName: l }) => {
|
|
378
|
-
const d = a(i)[`__scope${l}`];
|
|
379
|
-
return { ...c, ...d };
|
|
380
|
-
}, {});
|
|
381
|
-
return u.useMemo(() => ({ [`__scope${t.scopeName}`]: s }), [s]);
|
|
382
|
-
};
|
|
383
|
-
};
|
|
384
|
-
return n.scopeName = t.scopeName, n;
|
|
385
|
-
}
|
|
386
|
-
function ee(e) {
|
|
387
|
-
const t = u.useRef(e);
|
|
388
|
-
return u.useEffect(() => {
|
|
389
|
-
t.current = e;
|
|
390
|
-
}), u.useMemo(() => (...n) => {
|
|
391
|
-
var r;
|
|
392
|
-
return (r = t.current) == null ? void 0 : r.call(t, ...n);
|
|
393
|
-
}, []);
|
|
394
|
-
}
|
|
395
|
-
function Ei({
|
|
396
|
-
prop: e,
|
|
397
|
-
defaultProp: t,
|
|
398
|
-
onChange: n = () => {
|
|
399
|
-
}
|
|
400
|
-
}) {
|
|
401
|
-
const [r, o] = Qn({ defaultProp: t, onChange: n }), i = e !== void 0, s = i ? e : r, c = ee(n), a = u.useCallback(
|
|
402
|
-
(l) => {
|
|
403
|
-
if (i) {
|
|
404
|
-
const d = typeof l == "function" ? l(e) : l;
|
|
405
|
-
d !== e && c(d);
|
|
406
|
-
} else
|
|
407
|
-
o(l);
|
|
408
|
-
},
|
|
409
|
-
[i, e, o, c]
|
|
410
|
-
);
|
|
411
|
-
return [s, a];
|
|
412
|
-
}
|
|
413
|
-
function Qn({
|
|
414
|
-
defaultProp: e,
|
|
415
|
-
onChange: t
|
|
416
|
-
}) {
|
|
417
|
-
const n = u.useState(e), [r] = n, o = u.useRef(r), i = ee(t);
|
|
418
|
-
return u.useEffect(() => {
|
|
419
|
-
o.current !== r && (i(r), o.current = r);
|
|
420
|
-
}, [r, o, i]), n;
|
|
421
|
-
}
|
|
422
|
-
var Jn = [
|
|
423
|
-
"a",
|
|
424
|
-
"button",
|
|
425
|
-
"div",
|
|
426
|
-
"form",
|
|
427
|
-
"h2",
|
|
428
|
-
"h3",
|
|
429
|
-
"img",
|
|
430
|
-
"input",
|
|
431
|
-
"label",
|
|
432
|
-
"li",
|
|
433
|
-
"nav",
|
|
434
|
-
"ol",
|
|
435
|
-
"p",
|
|
436
|
-
"span",
|
|
437
|
-
"svg",
|
|
438
|
-
"ul"
|
|
439
|
-
], oe = Jn.reduce((e, t) => {
|
|
440
|
-
const n = u.forwardRef((r, o) => {
|
|
441
|
-
const { asChild: i, ...s } = r, c = i ? be : t;
|
|
442
|
-
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ P.jsx(c, { ...s, ref: o });
|
|
443
|
-
});
|
|
444
|
-
return n.displayName = `Primitive.${t}`, { ...e, [t]: n };
|
|
445
|
-
}, {});
|
|
446
|
-
function er(e, t) {
|
|
447
|
-
e && Ht.flushSync(() => e.dispatchEvent(t));
|
|
448
|
-
}
|
|
449
|
-
function Ci(e) {
|
|
450
|
-
const t = e + "CollectionProvider", [n, r] = zt(t), [o, i] = n(
|
|
451
|
-
t,
|
|
452
|
-
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
453
|
-
), s = (m) => {
|
|
454
|
-
const { scope: g, children: f } = m, v = ie.useRef(null), y = ie.useRef(/* @__PURE__ */ new Map()).current;
|
|
455
|
-
return /* @__PURE__ */ P.jsx(o, { scope: g, itemMap: y, collectionRef: v, children: f });
|
|
456
|
-
};
|
|
457
|
-
s.displayName = t;
|
|
458
|
-
const c = e + "CollectionSlot", a = ie.forwardRef(
|
|
459
|
-
(m, g) => {
|
|
460
|
-
const { scope: f, children: v } = m, y = i(c, f), w = ce(g, y.collectionRef);
|
|
461
|
-
return /* @__PURE__ */ P.jsx(be, { ref: w, children: v });
|
|
462
|
-
}
|
|
463
|
-
);
|
|
464
|
-
a.displayName = c;
|
|
465
|
-
const l = e + "CollectionItemSlot", h = "data-radix-collection-item", d = ie.forwardRef(
|
|
466
|
-
(m, g) => {
|
|
467
|
-
const { scope: f, children: v, ...y } = m, w = ie.useRef(null), b = ce(g, w), x = i(l, f);
|
|
468
|
-
return ie.useEffect(() => (x.itemMap.set(w, { ref: w, ...y }), () => void x.itemMap.delete(w))), /* @__PURE__ */ P.jsx(be, { [h]: "", ref: b, children: v });
|
|
469
|
-
}
|
|
470
|
-
);
|
|
471
|
-
d.displayName = l;
|
|
472
|
-
function p(m) {
|
|
473
|
-
const g = i(e + "CollectionConsumer", m);
|
|
474
|
-
return ie.useCallback(() => {
|
|
475
|
-
const v = g.collectionRef.current;
|
|
476
|
-
if (!v) return [];
|
|
477
|
-
const y = Array.from(v.querySelectorAll(`[${h}]`));
|
|
478
|
-
return Array.from(g.itemMap.values()).sort(
|
|
479
|
-
(x, E) => y.indexOf(x.ref.current) - y.indexOf(E.ref.current)
|
|
480
|
-
);
|
|
481
|
-
}, [g.collectionRef, g.itemMap]);
|
|
482
|
-
}
|
|
483
|
-
return [
|
|
484
|
-
{ Provider: s, Slot: a, ItemSlot: d },
|
|
485
|
-
p,
|
|
486
|
-
r
|
|
487
|
-
];
|
|
488
|
-
}
|
|
489
|
-
var tr = u.createContext(void 0);
|
|
490
|
-
function Si(e) {
|
|
491
|
-
const t = u.useContext(tr);
|
|
492
|
-
return e || t || "ltr";
|
|
493
|
-
}
|
|
494
|
-
function nr(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
495
|
-
const n = ee(e);
|
|
496
|
-
u.useEffect(() => {
|
|
497
|
-
const r = (o) => {
|
|
498
|
-
o.key === "Escape" && n(o);
|
|
499
|
-
};
|
|
500
|
-
return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
|
|
501
|
-
}, [n, t]);
|
|
502
|
-
}
|
|
503
|
-
var rr = "DismissableLayer", Je = "dismissableLayer.update", or = "dismissableLayer.pointerDownOutside", ir = "dismissableLayer.focusOutside", xt, Ut = u.createContext({
|
|
504
|
-
layers: /* @__PURE__ */ new Set(),
|
|
505
|
-
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
506
|
-
branches: /* @__PURE__ */ new Set()
|
|
507
|
-
}), sr = u.forwardRef(
|
|
508
|
-
(e, t) => {
|
|
509
|
-
const {
|
|
510
|
-
disableOutsidePointerEvents: n = !1,
|
|
511
|
-
onEscapeKeyDown: r,
|
|
512
|
-
onPointerDownOutside: o,
|
|
513
|
-
onFocusOutside: i,
|
|
514
|
-
onInteractOutside: s,
|
|
515
|
-
onDismiss: c,
|
|
516
|
-
...a
|
|
517
|
-
} = e, l = u.useContext(Ut), [h, d] = u.useState(null), p = (h == null ? void 0 : h.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, m] = u.useState({}), g = ce(t, (S) => d(S)), f = Array.from(l.layers), [v] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), y = f.indexOf(v), w = h ? f.indexOf(h) : -1, b = l.layersWithOutsidePointerEventsDisabled.size > 0, x = w >= y, E = lr((S) => {
|
|
518
|
-
const A = S.target, O = [...l.branches].some((D) => D.contains(A));
|
|
519
|
-
!x || O || (o == null || o(S), s == null || s(S), S.defaultPrevented || c == null || c());
|
|
520
|
-
}, p), C = ur((S) => {
|
|
521
|
-
const A = S.target;
|
|
522
|
-
[...l.branches].some((D) => D.contains(A)) || (i == null || i(S), s == null || s(S), S.defaultPrevented || c == null || c());
|
|
523
|
-
}, p);
|
|
524
|
-
return nr((S) => {
|
|
525
|
-
w === l.layers.size - 1 && (r == null || r(S), !S.defaultPrevented && c && (S.preventDefault(), c()));
|
|
526
|
-
}, p), u.useEffect(() => {
|
|
527
|
-
if (h)
|
|
528
|
-
return n && (l.layersWithOutsidePointerEventsDisabled.size === 0 && (xt = p.body.style.pointerEvents, p.body.style.pointerEvents = "none"), l.layersWithOutsidePointerEventsDisabled.add(h)), l.layers.add(h), bt(), () => {
|
|
529
|
-
n && l.layersWithOutsidePointerEventsDisabled.size === 1 && (p.body.style.pointerEvents = xt);
|
|
530
|
-
};
|
|
531
|
-
}, [h, p, n, l]), u.useEffect(() => () => {
|
|
532
|
-
h && (l.layers.delete(h), l.layersWithOutsidePointerEventsDisabled.delete(h), bt());
|
|
533
|
-
}, [h, l]), u.useEffect(() => {
|
|
534
|
-
const S = () => m({});
|
|
535
|
-
return document.addEventListener(Je, S), () => document.removeEventListener(Je, S);
|
|
536
|
-
}, []), /* @__PURE__ */ P.jsx(
|
|
537
|
-
oe.div,
|
|
538
|
-
{
|
|
539
|
-
...a,
|
|
540
|
-
ref: g,
|
|
541
|
-
style: {
|
|
542
|
-
pointerEvents: b ? x ? "auto" : "none" : void 0,
|
|
543
|
-
...e.style
|
|
544
|
-
},
|
|
545
|
-
onFocusCapture: Ve(e.onFocusCapture, C.onFocusCapture),
|
|
546
|
-
onBlurCapture: Ve(e.onBlurCapture, C.onBlurCapture),
|
|
547
|
-
onPointerDownCapture: Ve(
|
|
548
|
-
e.onPointerDownCapture,
|
|
549
|
-
E.onPointerDownCapture
|
|
550
|
-
)
|
|
551
|
-
}
|
|
552
|
-
);
|
|
553
|
-
}
|
|
554
|
-
);
|
|
555
|
-
sr.displayName = rr;
|
|
556
|
-
var cr = "DismissableLayerBranch", ar = u.forwardRef((e, t) => {
|
|
557
|
-
const n = u.useContext(Ut), r = u.useRef(null), o = ce(t, r);
|
|
558
|
-
return u.useEffect(() => {
|
|
559
|
-
const i = r.current;
|
|
560
|
-
if (i)
|
|
561
|
-
return n.branches.add(i), () => {
|
|
562
|
-
n.branches.delete(i);
|
|
563
|
-
};
|
|
564
|
-
}, [n.branches]), /* @__PURE__ */ P.jsx(oe.div, { ...e, ref: o });
|
|
565
|
-
});
|
|
566
|
-
ar.displayName = cr;
|
|
567
|
-
function lr(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
568
|
-
const n = ee(e), r = u.useRef(!1), o = u.useRef(() => {
|
|
569
|
-
});
|
|
570
|
-
return u.useEffect(() => {
|
|
571
|
-
const i = (c) => {
|
|
572
|
-
if (c.target && !r.current) {
|
|
573
|
-
let a = function() {
|
|
574
|
-
Yt(
|
|
575
|
-
or,
|
|
576
|
-
n,
|
|
577
|
-
l,
|
|
578
|
-
{ discrete: !0 }
|
|
579
|
-
);
|
|
580
|
-
};
|
|
581
|
-
const l = { originalEvent: c };
|
|
582
|
-
c.pointerType === "touch" ? (t.removeEventListener("click", o.current), o.current = a, t.addEventListener("click", o.current, { once: !0 })) : a();
|
|
583
|
-
} else
|
|
584
|
-
t.removeEventListener("click", o.current);
|
|
585
|
-
r.current = !1;
|
|
586
|
-
}, s = window.setTimeout(() => {
|
|
587
|
-
t.addEventListener("pointerdown", i);
|
|
588
|
-
}, 0);
|
|
589
|
-
return () => {
|
|
590
|
-
window.clearTimeout(s), t.removeEventListener("pointerdown", i), t.removeEventListener("click", o.current);
|
|
591
|
-
};
|
|
592
|
-
}, [t, n]), {
|
|
593
|
-
// ensures we check React component tree (not just DOM tree)
|
|
594
|
-
onPointerDownCapture: () => r.current = !0
|
|
595
|
-
};
|
|
596
|
-
}
|
|
597
|
-
function ur(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
598
|
-
const n = ee(e), r = u.useRef(!1);
|
|
599
|
-
return u.useEffect(() => {
|
|
600
|
-
const o = (i) => {
|
|
601
|
-
i.target && !r.current && Yt(ir, n, { originalEvent: i }, {
|
|
602
|
-
discrete: !1
|
|
603
|
-
});
|
|
604
|
-
};
|
|
605
|
-
return t.addEventListener("focusin", o), () => t.removeEventListener("focusin", o);
|
|
606
|
-
}, [t, n]), {
|
|
607
|
-
onFocusCapture: () => r.current = !0,
|
|
608
|
-
onBlurCapture: () => r.current = !1
|
|
609
|
-
};
|
|
610
|
-
}
|
|
611
|
-
function bt() {
|
|
612
|
-
const e = new CustomEvent(Je);
|
|
613
|
-
document.dispatchEvent(e);
|
|
614
|
-
}
|
|
615
|
-
function Yt(e, t, n, { discrete: r }) {
|
|
616
|
-
const o = n.originalEvent.target, i = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
|
|
617
|
-
t && o.addEventListener(e, t, { once: !0 }), r ? er(o, i) : o.dispatchEvent(i);
|
|
618
|
-
}
|
|
619
|
-
var ze = 0;
|
|
620
|
-
function Ai() {
|
|
621
|
-
u.useEffect(() => {
|
|
622
|
-
const e = document.querySelectorAll("[data-radix-focus-guard]");
|
|
623
|
-
return document.body.insertAdjacentElement("afterbegin", e[0] ?? Et()), document.body.insertAdjacentElement("beforeend", e[1] ?? Et()), ze++, () => {
|
|
624
|
-
ze === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), ze--;
|
|
625
|
-
};
|
|
626
|
-
}, []);
|
|
627
|
-
}
|
|
628
|
-
function Et() {
|
|
629
|
-
const e = document.createElement("span");
|
|
630
|
-
return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.cssText = "outline: none; opacity: 0; position: fixed; pointer-events: none", e;
|
|
631
|
-
}
|
|
632
|
-
var Ue = "focusScope.autoFocusOnMount", Ye = "focusScope.autoFocusOnUnmount", Ct = { bubbles: !1, cancelable: !0 }, fr = "FocusScope", dr = u.forwardRef((e, t) => {
|
|
633
|
-
const {
|
|
634
|
-
loop: n = !1,
|
|
635
|
-
trapped: r = !1,
|
|
636
|
-
onMountAutoFocus: o,
|
|
637
|
-
onUnmountAutoFocus: i,
|
|
638
|
-
...s
|
|
639
|
-
} = e, [c, a] = u.useState(null), l = ee(o), h = ee(i), d = u.useRef(null), p = ce(t, (f) => a(f)), m = u.useRef({
|
|
640
|
-
paused: !1,
|
|
641
|
-
pause() {
|
|
642
|
-
this.paused = !0;
|
|
643
|
-
},
|
|
644
|
-
resume() {
|
|
645
|
-
this.paused = !1;
|
|
646
|
-
}
|
|
647
|
-
}).current;
|
|
648
|
-
u.useEffect(() => {
|
|
649
|
-
if (r) {
|
|
650
|
-
let f = function(b) {
|
|
651
|
-
if (m.paused || !c) return;
|
|
652
|
-
const x = b.target;
|
|
653
|
-
c.contains(x) ? d.current = x : J(d.current, { select: !0 });
|
|
654
|
-
}, v = function(b) {
|
|
655
|
-
if (m.paused || !c) return;
|
|
656
|
-
const x = b.relatedTarget;
|
|
657
|
-
x !== null && (c.contains(x) || J(d.current, { select: !0 }));
|
|
658
|
-
}, y = function(b) {
|
|
659
|
-
if (document.activeElement === document.body)
|
|
660
|
-
for (const E of b)
|
|
661
|
-
E.removedNodes.length > 0 && J(c);
|
|
662
|
-
};
|
|
663
|
-
document.addEventListener("focusin", f), document.addEventListener("focusout", v);
|
|
664
|
-
const w = new MutationObserver(y);
|
|
665
|
-
return c && w.observe(c, { childList: !0, subtree: !0 }), () => {
|
|
666
|
-
document.removeEventListener("focusin", f), document.removeEventListener("focusout", v), w.disconnect();
|
|
667
|
-
};
|
|
668
|
-
}
|
|
669
|
-
}, [r, c, m.paused]), u.useEffect(() => {
|
|
670
|
-
if (c) {
|
|
671
|
-
At.add(m);
|
|
672
|
-
const f = document.activeElement;
|
|
673
|
-
if (!c.contains(f)) {
|
|
674
|
-
const y = new CustomEvent(Ue, Ct);
|
|
675
|
-
c.addEventListener(Ue, l), c.dispatchEvent(y), y.defaultPrevented || (hr(yr(Xt(c)), { select: !0 }), document.activeElement === f && J(c));
|
|
676
|
-
}
|
|
677
|
-
return () => {
|
|
678
|
-
c.removeEventListener(Ue, l), setTimeout(() => {
|
|
679
|
-
const y = new CustomEvent(Ye, Ct);
|
|
680
|
-
c.addEventListener(Ye, h), c.dispatchEvent(y), y.defaultPrevented || J(f ?? document.body, { select: !0 }), c.removeEventListener(Ye, h), At.remove(m);
|
|
681
|
-
}, 0);
|
|
682
|
-
};
|
|
683
|
-
}
|
|
684
|
-
}, [c, l, h, m]);
|
|
685
|
-
const g = u.useCallback(
|
|
686
|
-
(f) => {
|
|
687
|
-
if (!n && !r || m.paused) return;
|
|
688
|
-
const v = f.key === "Tab" && !f.altKey && !f.ctrlKey && !f.metaKey, y = document.activeElement;
|
|
689
|
-
if (v && y) {
|
|
690
|
-
const w = f.currentTarget, [b, x] = mr(w);
|
|
691
|
-
b && x ? !f.shiftKey && y === x ? (f.preventDefault(), n && J(b, { select: !0 })) : f.shiftKey && y === b && (f.preventDefault(), n && J(x, { select: !0 })) : y === w && f.preventDefault();
|
|
692
|
-
}
|
|
693
|
-
},
|
|
694
|
-
[n, r, m.paused]
|
|
695
|
-
);
|
|
696
|
-
return /* @__PURE__ */ P.jsx(oe.div, { tabIndex: -1, ...s, ref: p, onKeyDown: g });
|
|
697
|
-
});
|
|
698
|
-
dr.displayName = fr;
|
|
699
|
-
function hr(e, { select: t = !1 } = {}) {
|
|
700
|
-
const n = document.activeElement;
|
|
701
|
-
for (const r of e)
|
|
702
|
-
if (J(r, { select: t }), document.activeElement !== n) return;
|
|
703
|
-
}
|
|
704
|
-
function mr(e) {
|
|
705
|
-
const t = Xt(e), n = St(t, e), r = St(t.reverse(), e);
|
|
706
|
-
return [n, r];
|
|
707
|
-
}
|
|
708
|
-
function Xt(e) {
|
|
709
|
-
const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
|
|
710
|
-
acceptNode: (r) => {
|
|
711
|
-
const o = r.tagName === "INPUT" && r.type === "hidden";
|
|
712
|
-
return r.disabled || r.hidden || o ? NodeFilter.FILTER_SKIP : r.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
713
|
-
}
|
|
714
|
-
});
|
|
715
|
-
for (; n.nextNode(); ) t.push(n.currentNode);
|
|
716
|
-
return t;
|
|
717
|
-
}
|
|
718
|
-
function St(e, t) {
|
|
719
|
-
for (const n of e)
|
|
720
|
-
if (!pr(n, { upTo: t })) return n;
|
|
721
|
-
}
|
|
722
|
-
function pr(e, { upTo: t }) {
|
|
723
|
-
if (getComputedStyle(e).visibility === "hidden") return !0;
|
|
724
|
-
for (; e; ) {
|
|
725
|
-
if (t !== void 0 && e === t) return !1;
|
|
726
|
-
if (getComputedStyle(e).display === "none") return !0;
|
|
727
|
-
e = e.parentElement;
|
|
728
|
-
}
|
|
729
|
-
return !1;
|
|
730
|
-
}
|
|
731
|
-
function vr(e) {
|
|
732
|
-
return e instanceof HTMLInputElement && "select" in e;
|
|
733
|
-
}
|
|
734
|
-
function J(e, { select: t = !1 } = {}) {
|
|
735
|
-
if (e && e.focus) {
|
|
736
|
-
const n = document.activeElement;
|
|
737
|
-
e.focus({ preventScroll: !0 }), e !== n && vr(e) && t && e.select();
|
|
738
|
-
}
|
|
739
|
-
}
|
|
740
|
-
var At = gr();
|
|
741
|
-
function gr() {
|
|
742
|
-
let e = [];
|
|
743
|
-
return {
|
|
744
|
-
add(t) {
|
|
745
|
-
const n = e[0];
|
|
746
|
-
t !== n && (n == null || n.pause()), e = Rt(e, t), e.unshift(t);
|
|
747
|
-
},
|
|
748
|
-
remove(t) {
|
|
749
|
-
var n;
|
|
750
|
-
e = Rt(e, t), (n = e[0]) == null || n.resume();
|
|
751
|
-
}
|
|
752
|
-
};
|
|
753
|
-
}
|
|
754
|
-
function Rt(e, t) {
|
|
755
|
-
const n = [...e], r = n.indexOf(t);
|
|
756
|
-
return r !== -1 && n.splice(r, 1), n;
|
|
757
|
-
}
|
|
758
|
-
function yr(e) {
|
|
759
|
-
return e.filter((t) => t.tagName !== "A");
|
|
760
|
-
}
|
|
761
|
-
var Ee = globalThis != null && globalThis.document ? u.useLayoutEffect : () => {
|
|
762
|
-
}, wr = u.useId || (() => {
|
|
763
|
-
}), xr = 0;
|
|
764
|
-
function Ri(e) {
|
|
765
|
-
const [t, n] = u.useState(wr());
|
|
766
|
-
return Ee(() => {
|
|
767
|
-
n((r) => r ?? String(xr++));
|
|
768
|
-
}, [e]), t ? `radix-${t}` : "";
|
|
769
|
-
}
|
|
770
|
-
const br = ["top", "right", "bottom", "left"], te = Math.min, _ = Math.max, Ie = Math.round, Oe = Math.floor, ne = (e) => ({
|
|
771
|
-
x: e,
|
|
772
|
-
y: e
|
|
773
|
-
}), Er = {
|
|
774
|
-
left: "right",
|
|
775
|
-
right: "left",
|
|
776
|
-
bottom: "top",
|
|
777
|
-
top: "bottom"
|
|
778
|
-
}, Cr = {
|
|
779
|
-
start: "end",
|
|
780
|
-
end: "start"
|
|
781
|
-
};
|
|
782
|
-
function et(e, t, n) {
|
|
783
|
-
return _(e, te(t, n));
|
|
784
|
-
}
|
|
785
|
-
function K(e, t) {
|
|
786
|
-
return typeof e == "function" ? e(t) : e;
|
|
787
|
-
}
|
|
788
|
-
function G(e) {
|
|
789
|
-
return e.split("-")[0];
|
|
790
|
-
}
|
|
791
|
-
function pe(e) {
|
|
792
|
-
return e.split("-")[1];
|
|
793
|
-
}
|
|
794
|
-
function rt(e) {
|
|
795
|
-
return e === "x" ? "y" : "x";
|
|
796
|
-
}
|
|
797
|
-
function ot(e) {
|
|
798
|
-
return e === "y" ? "height" : "width";
|
|
799
|
-
}
|
|
800
|
-
function ve(e) {
|
|
801
|
-
return ["top", "bottom"].includes(G(e)) ? "y" : "x";
|
|
802
|
-
}
|
|
803
|
-
function it(e) {
|
|
804
|
-
return rt(ve(e));
|
|
805
|
-
}
|
|
806
|
-
function Sr(e, t, n) {
|
|
807
|
-
n === void 0 && (n = !1);
|
|
808
|
-
const r = pe(e), o = it(e), i = ot(o);
|
|
809
|
-
let s = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
810
|
-
return t.reference[i] > t.floating[i] && (s = We(s)), [s, We(s)];
|
|
811
|
-
}
|
|
812
|
-
function Ar(e) {
|
|
813
|
-
const t = We(e);
|
|
814
|
-
return [tt(e), t, tt(t)];
|
|
815
|
-
}
|
|
816
|
-
function tt(e) {
|
|
817
|
-
return e.replace(/start|end/g, (t) => Cr[t]);
|
|
818
|
-
}
|
|
819
|
-
function Rr(e, t, n) {
|
|
820
|
-
const r = ["left", "right"], o = ["right", "left"], i = ["top", "bottom"], s = ["bottom", "top"];
|
|
821
|
-
switch (e) {
|
|
822
|
-
case "top":
|
|
823
|
-
case "bottom":
|
|
824
|
-
return n ? t ? o : r : t ? r : o;
|
|
825
|
-
case "left":
|
|
826
|
-
case "right":
|
|
827
|
-
return t ? i : s;
|
|
828
|
-
default:
|
|
829
|
-
return [];
|
|
830
|
-
}
|
|
831
|
-
}
|
|
832
|
-
function Pr(e, t, n, r) {
|
|
833
|
-
const o = pe(e);
|
|
834
|
-
let i = Rr(G(e), n === "start", r);
|
|
835
|
-
return o && (i = i.map((s) => s + "-" + o), t && (i = i.concat(i.map(tt)))), i;
|
|
836
|
-
}
|
|
837
|
-
function We(e) {
|
|
838
|
-
return e.replace(/left|right|bottom|top/g, (t) => Er[t]);
|
|
839
|
-
}
|
|
840
|
-
function Or(e) {
|
|
841
|
-
return {
|
|
842
|
-
top: 0,
|
|
843
|
-
right: 0,
|
|
844
|
-
bottom: 0,
|
|
845
|
-
left: 0,
|
|
846
|
-
...e
|
|
847
|
-
};
|
|
848
|
-
}
|
|
849
|
-
function Kt(e) {
|
|
850
|
-
return typeof e != "number" ? Or(e) : {
|
|
851
|
-
top: e,
|
|
852
|
-
right: e,
|
|
853
|
-
bottom: e,
|
|
854
|
-
left: e
|
|
855
|
-
};
|
|
856
|
-
}
|
|
857
|
-
function _e(e) {
|
|
858
|
-
const {
|
|
859
|
-
x: t,
|
|
860
|
-
y: n,
|
|
861
|
-
width: r,
|
|
862
|
-
height: o
|
|
863
|
-
} = e;
|
|
864
|
-
return {
|
|
865
|
-
width: r,
|
|
866
|
-
height: o,
|
|
867
|
-
top: n,
|
|
868
|
-
left: t,
|
|
869
|
-
right: t + r,
|
|
870
|
-
bottom: n + o,
|
|
871
|
-
x: t,
|
|
872
|
-
y: n
|
|
873
|
-
};
|
|
874
|
-
}
|
|
875
|
-
function Pt(e, t, n) {
|
|
876
|
-
let {
|
|
877
|
-
reference: r,
|
|
878
|
-
floating: o
|
|
879
|
-
} = e;
|
|
880
|
-
const i = ve(t), s = it(t), c = ot(s), a = G(t), l = i === "y", h = r.x + r.width / 2 - o.width / 2, d = r.y + r.height / 2 - o.height / 2, p = r[c] / 2 - o[c] / 2;
|
|
881
|
-
let m;
|
|
882
|
-
switch (a) {
|
|
883
|
-
case "top":
|
|
884
|
-
m = {
|
|
885
|
-
x: h,
|
|
886
|
-
y: r.y - o.height
|
|
887
|
-
};
|
|
888
|
-
break;
|
|
889
|
-
case "bottom":
|
|
890
|
-
m = {
|
|
891
|
-
x: h,
|
|
892
|
-
y: r.y + r.height
|
|
893
|
-
};
|
|
894
|
-
break;
|
|
895
|
-
case "right":
|
|
896
|
-
m = {
|
|
897
|
-
x: r.x + r.width,
|
|
898
|
-
y: d
|
|
899
|
-
};
|
|
900
|
-
break;
|
|
901
|
-
case "left":
|
|
902
|
-
m = {
|
|
903
|
-
x: r.x - o.width,
|
|
904
|
-
y: d
|
|
905
|
-
};
|
|
906
|
-
break;
|
|
907
|
-
default:
|
|
908
|
-
m = {
|
|
909
|
-
x: r.x,
|
|
910
|
-
y: r.y
|
|
911
|
-
};
|
|
912
|
-
}
|
|
913
|
-
switch (pe(t)) {
|
|
914
|
-
case "start":
|
|
915
|
-
m[s] -= p * (n && l ? -1 : 1);
|
|
916
|
-
break;
|
|
917
|
-
case "end":
|
|
918
|
-
m[s] += p * (n && l ? -1 : 1);
|
|
919
|
-
break;
|
|
920
|
-
}
|
|
921
|
-
return m;
|
|
922
|
-
}
|
|
923
|
-
const Tr = async (e, t, n) => {
|
|
924
|
-
const {
|
|
925
|
-
placement: r = "bottom",
|
|
926
|
-
strategy: o = "absolute",
|
|
927
|
-
middleware: i = [],
|
|
928
|
-
platform: s
|
|
929
|
-
} = n, c = i.filter(Boolean), a = await (s.isRTL == null ? void 0 : s.isRTL(t));
|
|
930
|
-
let l = await s.getElementRects({
|
|
931
|
-
reference: e,
|
|
932
|
-
floating: t,
|
|
933
|
-
strategy: o
|
|
934
|
-
}), {
|
|
935
|
-
x: h,
|
|
936
|
-
y: d
|
|
937
|
-
} = Pt(l, r, a), p = r, m = {}, g = 0;
|
|
938
|
-
for (let f = 0; f < c.length; f++) {
|
|
939
|
-
const {
|
|
940
|
-
name: v,
|
|
941
|
-
fn: y
|
|
942
|
-
} = c[f], {
|
|
943
|
-
x: w,
|
|
944
|
-
y: b,
|
|
945
|
-
data: x,
|
|
946
|
-
reset: E
|
|
947
|
-
} = await y({
|
|
948
|
-
x: h,
|
|
949
|
-
y: d,
|
|
950
|
-
initialPlacement: r,
|
|
951
|
-
placement: p,
|
|
952
|
-
strategy: o,
|
|
953
|
-
middlewareData: m,
|
|
954
|
-
rects: l,
|
|
955
|
-
platform: s,
|
|
956
|
-
elements: {
|
|
957
|
-
reference: e,
|
|
958
|
-
floating: t
|
|
959
|
-
}
|
|
960
|
-
});
|
|
961
|
-
h = w ?? h, d = b ?? d, m = {
|
|
962
|
-
...m,
|
|
963
|
-
[v]: {
|
|
964
|
-
...m[v],
|
|
965
|
-
...x
|
|
966
|
-
}
|
|
967
|
-
}, E && g <= 50 && (g++, typeof E == "object" && (E.placement && (p = E.placement), E.rects && (l = E.rects === !0 ? await s.getElementRects({
|
|
968
|
-
reference: e,
|
|
969
|
-
floating: t,
|
|
970
|
-
strategy: o
|
|
971
|
-
}) : E.rects), {
|
|
972
|
-
x: h,
|
|
973
|
-
y: d
|
|
974
|
-
} = Pt(l, p, a)), f = -1);
|
|
975
|
-
}
|
|
976
|
-
return {
|
|
977
|
-
x: h,
|
|
978
|
-
y: d,
|
|
979
|
-
placement: p,
|
|
980
|
-
strategy: o,
|
|
981
|
-
middlewareData: m
|
|
982
|
-
};
|
|
983
|
-
};
|
|
984
|
-
async function Ce(e, t) {
|
|
985
|
-
var n;
|
|
986
|
-
t === void 0 && (t = {});
|
|
987
|
-
const {
|
|
988
|
-
x: r,
|
|
989
|
-
y: o,
|
|
990
|
-
platform: i,
|
|
991
|
-
rects: s,
|
|
992
|
-
elements: c,
|
|
993
|
-
strategy: a
|
|
994
|
-
} = e, {
|
|
995
|
-
boundary: l = "clippingAncestors",
|
|
996
|
-
rootBoundary: h = "viewport",
|
|
997
|
-
elementContext: d = "floating",
|
|
998
|
-
altBoundary: p = !1,
|
|
999
|
-
padding: m = 0
|
|
1000
|
-
} = K(t, e), g = Kt(m), v = c[p ? d === "floating" ? "reference" : "floating" : d], y = _e(await i.getClippingRect({
|
|
1001
|
-
element: (n = await (i.isElement == null ? void 0 : i.isElement(v))) == null || n ? v : v.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(c.floating)),
|
|
1002
|
-
boundary: l,
|
|
1003
|
-
rootBoundary: h,
|
|
1004
|
-
strategy: a
|
|
1005
|
-
})), w = d === "floating" ? {
|
|
1006
|
-
x: r,
|
|
1007
|
-
y: o,
|
|
1008
|
-
width: s.floating.width,
|
|
1009
|
-
height: s.floating.height
|
|
1010
|
-
} : s.reference, b = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(c.floating)), x = await (i.isElement == null ? void 0 : i.isElement(b)) ? await (i.getScale == null ? void 0 : i.getScale(b)) || {
|
|
1011
|
-
x: 1,
|
|
1012
|
-
y: 1
|
|
1013
|
-
} : {
|
|
1014
|
-
x: 1,
|
|
1015
|
-
y: 1
|
|
1016
|
-
}, E = _e(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
1017
|
-
elements: c,
|
|
1018
|
-
rect: w,
|
|
1019
|
-
offsetParent: b,
|
|
1020
|
-
strategy: a
|
|
1021
|
-
}) : w);
|
|
1022
|
-
return {
|
|
1023
|
-
top: (y.top - E.top + g.top) / x.y,
|
|
1024
|
-
bottom: (E.bottom - y.bottom + g.bottom) / x.y,
|
|
1025
|
-
left: (y.left - E.left + g.left) / x.x,
|
|
1026
|
-
right: (E.right - y.right + g.right) / x.x
|
|
1027
|
-
};
|
|
1028
|
-
}
|
|
1029
|
-
const Mr = (e) => ({
|
|
1030
|
-
name: "arrow",
|
|
1031
|
-
options: e,
|
|
1032
|
-
async fn(t) {
|
|
1033
|
-
const {
|
|
1034
|
-
x: n,
|
|
1035
|
-
y: r,
|
|
1036
|
-
placement: o,
|
|
1037
|
-
rects: i,
|
|
1038
|
-
platform: s,
|
|
1039
|
-
elements: c,
|
|
1040
|
-
middlewareData: a
|
|
1041
|
-
} = t, {
|
|
1042
|
-
element: l,
|
|
1043
|
-
padding: h = 0
|
|
1044
|
-
} = K(e, t) || {};
|
|
1045
|
-
if (l == null)
|
|
1046
|
-
return {};
|
|
1047
|
-
const d = Kt(h), p = {
|
|
1048
|
-
x: n,
|
|
1049
|
-
y: r
|
|
1050
|
-
}, m = it(o), g = ot(m), f = await s.getDimensions(l), v = m === "y", y = v ? "top" : "left", w = v ? "bottom" : "right", b = v ? "clientHeight" : "clientWidth", x = i.reference[g] + i.reference[m] - p[m] - i.floating[g], E = p[m] - i.reference[m], C = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l));
|
|
1051
|
-
let S = C ? C[b] : 0;
|
|
1052
|
-
(!S || !await (s.isElement == null ? void 0 : s.isElement(C))) && (S = c.floating[b] || i.floating[g]);
|
|
1053
|
-
const A = x / 2 - E / 2, O = S / 2 - f[g] / 2 - 1, D = te(d[y], O), j = te(d[w], O), M = D, I = S - f[g] - j, N = S / 2 - f[g] / 2 + A, T = et(M, N, I), k = !a.arrow && pe(o) != null && N !== T && i.reference[g] / 2 - (N < M ? D : j) - f[g] / 2 < 0, R = k ? N < M ? N - M : N - I : 0;
|
|
1054
|
-
return {
|
|
1055
|
-
[m]: p[m] + R,
|
|
1056
|
-
data: {
|
|
1057
|
-
[m]: T,
|
|
1058
|
-
centerOffset: N - T - R,
|
|
1059
|
-
...k && {
|
|
1060
|
-
alignmentOffset: R
|
|
1061
|
-
}
|
|
1062
|
-
},
|
|
1063
|
-
reset: k
|
|
1064
|
-
};
|
|
1065
|
-
}
|
|
1066
|
-
}), Lr = function(e) {
|
|
1067
|
-
return e === void 0 && (e = {}), {
|
|
1068
|
-
name: "flip",
|
|
1069
|
-
options: e,
|
|
1070
|
-
async fn(t) {
|
|
1071
|
-
var n, r;
|
|
1072
|
-
const {
|
|
1073
|
-
placement: o,
|
|
1074
|
-
middlewareData: i,
|
|
1075
|
-
rects: s,
|
|
1076
|
-
initialPlacement: c,
|
|
1077
|
-
platform: a,
|
|
1078
|
-
elements: l
|
|
1079
|
-
} = t, {
|
|
1080
|
-
mainAxis: h = !0,
|
|
1081
|
-
crossAxis: d = !0,
|
|
1082
|
-
fallbackPlacements: p,
|
|
1083
|
-
fallbackStrategy: m = "bestFit",
|
|
1084
|
-
fallbackAxisSideDirection: g = "none",
|
|
1085
|
-
flipAlignment: f = !0,
|
|
1086
|
-
...v
|
|
1087
|
-
} = K(e, t);
|
|
1088
|
-
if ((n = i.arrow) != null && n.alignmentOffset)
|
|
1089
|
-
return {};
|
|
1090
|
-
const y = G(o), w = G(c) === c, b = await (a.isRTL == null ? void 0 : a.isRTL(l.floating)), x = p || (w || !f ? [We(c)] : Ar(c));
|
|
1091
|
-
!p && g !== "none" && x.push(...Pr(c, f, g, b));
|
|
1092
|
-
const E = [c, ...x], C = await Ce(t, v), S = [];
|
|
1093
|
-
let A = ((r = i.flip) == null ? void 0 : r.overflows) || [];
|
|
1094
|
-
if (h && S.push(C[y]), d) {
|
|
1095
|
-
const M = Sr(o, s, b);
|
|
1096
|
-
S.push(C[M[0]], C[M[1]]);
|
|
1097
|
-
}
|
|
1098
|
-
if (A = [...A, {
|
|
1099
|
-
placement: o,
|
|
1100
|
-
overflows: S
|
|
1101
|
-
}], !S.every((M) => M <= 0)) {
|
|
1102
|
-
var O, D;
|
|
1103
|
-
const M = (((O = i.flip) == null ? void 0 : O.index) || 0) + 1, I = E[M];
|
|
1104
|
-
if (I)
|
|
1105
|
-
return {
|
|
1106
|
-
data: {
|
|
1107
|
-
index: M,
|
|
1108
|
-
overflows: A
|
|
1109
|
-
},
|
|
1110
|
-
reset: {
|
|
1111
|
-
placement: I
|
|
1112
|
-
}
|
|
1113
|
-
};
|
|
1114
|
-
let N = (D = A.filter((T) => T.overflows[0] <= 0).sort((T, k) => T.overflows[1] - k.overflows[1])[0]) == null ? void 0 : D.placement;
|
|
1115
|
-
if (!N)
|
|
1116
|
-
switch (m) {
|
|
1117
|
-
case "bestFit": {
|
|
1118
|
-
var j;
|
|
1119
|
-
const T = (j = A.map((k) => [k.placement, k.overflows.filter((R) => R > 0).reduce((R, W) => R + W, 0)]).sort((k, R) => k[1] - R[1])[0]) == null ? void 0 : j[0];
|
|
1120
|
-
T && (N = T);
|
|
1121
|
-
break;
|
|
1122
|
-
}
|
|
1123
|
-
case "initialPlacement":
|
|
1124
|
-
N = c;
|
|
1125
|
-
break;
|
|
1126
|
-
}
|
|
1127
|
-
if (o !== N)
|
|
1128
|
-
return {
|
|
1129
|
-
reset: {
|
|
1130
|
-
placement: N
|
|
1131
|
-
}
|
|
1132
|
-
};
|
|
1133
|
-
}
|
|
1134
|
-
return {};
|
|
1135
|
-
}
|
|
1136
|
-
};
|
|
1137
|
-
};
|
|
1138
|
-
function Ot(e, t) {
|
|
1139
|
-
return {
|
|
1140
|
-
top: e.top - t.height,
|
|
1141
|
-
right: e.right - t.width,
|
|
1142
|
-
bottom: e.bottom - t.height,
|
|
1143
|
-
left: e.left - t.width
|
|
1144
|
-
};
|
|
1145
|
-
}
|
|
1146
|
-
function Tt(e) {
|
|
1147
|
-
return br.some((t) => e[t] >= 0);
|
|
1148
|
-
}
|
|
1149
|
-
const Nr = function(e) {
|
|
1150
|
-
return e === void 0 && (e = {}), {
|
|
1151
|
-
name: "hide",
|
|
1152
|
-
options: e,
|
|
1153
|
-
async fn(t) {
|
|
1154
|
-
const {
|
|
1155
|
-
rects: n
|
|
1156
|
-
} = t, {
|
|
1157
|
-
strategy: r = "referenceHidden",
|
|
1158
|
-
...o
|
|
1159
|
-
} = K(e, t);
|
|
1160
|
-
switch (r) {
|
|
1161
|
-
case "referenceHidden": {
|
|
1162
|
-
const i = await Ce(t, {
|
|
1163
|
-
...o,
|
|
1164
|
-
elementContext: "reference"
|
|
1165
|
-
}), s = Ot(i, n.reference);
|
|
1166
|
-
return {
|
|
1167
|
-
data: {
|
|
1168
|
-
referenceHiddenOffsets: s,
|
|
1169
|
-
referenceHidden: Tt(s)
|
|
1170
|
-
}
|
|
1171
|
-
};
|
|
1172
|
-
}
|
|
1173
|
-
case "escaped": {
|
|
1174
|
-
const i = await Ce(t, {
|
|
1175
|
-
...o,
|
|
1176
|
-
altBoundary: !0
|
|
1177
|
-
}), s = Ot(i, n.floating);
|
|
1178
|
-
return {
|
|
1179
|
-
data: {
|
|
1180
|
-
escapedOffsets: s,
|
|
1181
|
-
escaped: Tt(s)
|
|
1182
|
-
}
|
|
1183
|
-
};
|
|
1184
|
-
}
|
|
1185
|
-
default:
|
|
1186
|
-
return {};
|
|
1187
|
-
}
|
|
1188
|
-
}
|
|
1189
|
-
};
|
|
1190
|
-
};
|
|
1191
|
-
async function Dr(e, t) {
|
|
1192
|
-
const {
|
|
1193
|
-
placement: n,
|
|
1194
|
-
platform: r,
|
|
1195
|
-
elements: o
|
|
1196
|
-
} = e, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), s = G(n), c = pe(n), a = ve(n) === "y", l = ["left", "top"].includes(s) ? -1 : 1, h = i && a ? -1 : 1, d = K(t, e);
|
|
1197
|
-
let {
|
|
1198
|
-
mainAxis: p,
|
|
1199
|
-
crossAxis: m,
|
|
1200
|
-
alignmentAxis: g
|
|
1201
|
-
} = typeof d == "number" ? {
|
|
1202
|
-
mainAxis: d,
|
|
1203
|
-
crossAxis: 0,
|
|
1204
|
-
alignmentAxis: null
|
|
1205
|
-
} : {
|
|
1206
|
-
mainAxis: 0,
|
|
1207
|
-
crossAxis: 0,
|
|
1208
|
-
alignmentAxis: null,
|
|
1209
|
-
...d
|
|
1210
|
-
};
|
|
1211
|
-
return c && typeof g == "number" && (m = c === "end" ? g * -1 : g), a ? {
|
|
1212
|
-
x: m * h,
|
|
1213
|
-
y: p * l
|
|
1214
|
-
} : {
|
|
1215
|
-
x: p * l,
|
|
1216
|
-
y: m * h
|
|
1217
|
-
};
|
|
1218
|
-
}
|
|
1219
|
-
const kr = function(e) {
|
|
1220
|
-
return e === void 0 && (e = 0), {
|
|
1221
|
-
name: "offset",
|
|
1222
|
-
options: e,
|
|
1223
|
-
async fn(t) {
|
|
1224
|
-
var n, r;
|
|
1225
|
-
const {
|
|
1226
|
-
x: o,
|
|
1227
|
-
y: i,
|
|
1228
|
-
placement: s,
|
|
1229
|
-
middlewareData: c
|
|
1230
|
-
} = t, a = await Dr(t, e);
|
|
1231
|
-
return s === ((n = c.offset) == null ? void 0 : n.placement) && (r = c.arrow) != null && r.alignmentOffset ? {} : {
|
|
1232
|
-
x: o + a.x,
|
|
1233
|
-
y: i + a.y,
|
|
1234
|
-
data: {
|
|
1235
|
-
...a,
|
|
1236
|
-
placement: s
|
|
1237
|
-
}
|
|
1238
|
-
};
|
|
1239
|
-
}
|
|
1240
|
-
};
|
|
1241
|
-
}, Fr = function(e) {
|
|
1242
|
-
return e === void 0 && (e = {}), {
|
|
1243
|
-
name: "shift",
|
|
1244
|
-
options: e,
|
|
1245
|
-
async fn(t) {
|
|
1246
|
-
const {
|
|
1247
|
-
x: n,
|
|
1248
|
-
y: r,
|
|
1249
|
-
placement: o
|
|
1250
|
-
} = t, {
|
|
1251
|
-
mainAxis: i = !0,
|
|
1252
|
-
crossAxis: s = !1,
|
|
1253
|
-
limiter: c = {
|
|
1254
|
-
fn: (v) => {
|
|
1255
|
-
let {
|
|
1256
|
-
x: y,
|
|
1257
|
-
y: w
|
|
1258
|
-
} = v;
|
|
1259
|
-
return {
|
|
1260
|
-
x: y,
|
|
1261
|
-
y: w
|
|
1262
|
-
};
|
|
1263
|
-
}
|
|
1264
|
-
},
|
|
1265
|
-
...a
|
|
1266
|
-
} = K(e, t), l = {
|
|
1267
|
-
x: n,
|
|
1268
|
-
y: r
|
|
1269
|
-
}, h = await Ce(t, a), d = ve(G(o)), p = rt(d);
|
|
1270
|
-
let m = l[p], g = l[d];
|
|
1271
|
-
if (i) {
|
|
1272
|
-
const v = p === "y" ? "top" : "left", y = p === "y" ? "bottom" : "right", w = m + h[v], b = m - h[y];
|
|
1273
|
-
m = et(w, m, b);
|
|
1274
|
-
}
|
|
1275
|
-
if (s) {
|
|
1276
|
-
const v = d === "y" ? "top" : "left", y = d === "y" ? "bottom" : "right", w = g + h[v], b = g - h[y];
|
|
1277
|
-
g = et(w, g, b);
|
|
1278
|
-
}
|
|
1279
|
-
const f = c.fn({
|
|
1280
|
-
...t,
|
|
1281
|
-
[p]: m,
|
|
1282
|
-
[d]: g
|
|
1283
|
-
});
|
|
1284
|
-
return {
|
|
1285
|
-
...f,
|
|
1286
|
-
data: {
|
|
1287
|
-
x: f.x - n,
|
|
1288
|
-
y: f.y - r
|
|
1289
|
-
}
|
|
1290
|
-
};
|
|
1291
|
-
}
|
|
1292
|
-
};
|
|
1293
|
-
}, Ir = function(e) {
|
|
1294
|
-
return e === void 0 && (e = {}), {
|
|
1295
|
-
options: e,
|
|
1296
|
-
fn(t) {
|
|
1297
|
-
const {
|
|
1298
|
-
x: n,
|
|
1299
|
-
y: r,
|
|
1300
|
-
placement: o,
|
|
1301
|
-
rects: i,
|
|
1302
|
-
middlewareData: s
|
|
1303
|
-
} = t, {
|
|
1304
|
-
offset: c = 0,
|
|
1305
|
-
mainAxis: a = !0,
|
|
1306
|
-
crossAxis: l = !0
|
|
1307
|
-
} = K(e, t), h = {
|
|
1308
|
-
x: n,
|
|
1309
|
-
y: r
|
|
1310
|
-
}, d = ve(o), p = rt(d);
|
|
1311
|
-
let m = h[p], g = h[d];
|
|
1312
|
-
const f = K(c, t), v = typeof f == "number" ? {
|
|
1313
|
-
mainAxis: f,
|
|
1314
|
-
crossAxis: 0
|
|
1315
|
-
} : {
|
|
1316
|
-
mainAxis: 0,
|
|
1317
|
-
crossAxis: 0,
|
|
1318
|
-
...f
|
|
1319
|
-
};
|
|
1320
|
-
if (a) {
|
|
1321
|
-
const b = p === "y" ? "height" : "width", x = i.reference[p] - i.floating[b] + v.mainAxis, E = i.reference[p] + i.reference[b] - v.mainAxis;
|
|
1322
|
-
m < x ? m = x : m > E && (m = E);
|
|
1323
|
-
}
|
|
1324
|
-
if (l) {
|
|
1325
|
-
var y, w;
|
|
1326
|
-
const b = p === "y" ? "width" : "height", x = ["top", "left"].includes(G(o)), E = i.reference[d] - i.floating[b] + (x && ((y = s.offset) == null ? void 0 : y[d]) || 0) + (x ? 0 : v.crossAxis), C = i.reference[d] + i.reference[b] + (x ? 0 : ((w = s.offset) == null ? void 0 : w[d]) || 0) - (x ? v.crossAxis : 0);
|
|
1327
|
-
g < E ? g = E : g > C && (g = C);
|
|
1328
|
-
}
|
|
1329
|
-
return {
|
|
1330
|
-
[p]: m,
|
|
1331
|
-
[d]: g
|
|
1332
|
-
};
|
|
1333
|
-
}
|
|
1334
|
-
};
|
|
1335
|
-
}, Wr = function(e) {
|
|
1336
|
-
return e === void 0 && (e = {}), {
|
|
1337
|
-
name: "size",
|
|
1338
|
-
options: e,
|
|
1339
|
-
async fn(t) {
|
|
1340
|
-
const {
|
|
1341
|
-
placement: n,
|
|
1342
|
-
rects: r,
|
|
1343
|
-
platform: o,
|
|
1344
|
-
elements: i
|
|
1345
|
-
} = t, {
|
|
1346
|
-
apply: s = () => {
|
|
1347
|
-
},
|
|
1348
|
-
...c
|
|
1349
|
-
} = K(e, t), a = await Ce(t, c), l = G(n), h = pe(n), d = ve(n) === "y", {
|
|
1350
|
-
width: p,
|
|
1351
|
-
height: m
|
|
1352
|
-
} = r.floating;
|
|
1353
|
-
let g, f;
|
|
1354
|
-
l === "top" || l === "bottom" ? (g = l, f = h === (await (o.isRTL == null ? void 0 : o.isRTL(i.floating)) ? "start" : "end") ? "left" : "right") : (f = l, g = h === "end" ? "top" : "bottom");
|
|
1355
|
-
const v = m - a[g], y = p - a[f], w = !t.middlewareData.shift;
|
|
1356
|
-
let b = v, x = y;
|
|
1357
|
-
if (d) {
|
|
1358
|
-
const C = p - a.left - a.right;
|
|
1359
|
-
x = h || w ? te(y, C) : C;
|
|
1360
|
-
} else {
|
|
1361
|
-
const C = m - a.top - a.bottom;
|
|
1362
|
-
b = h || w ? te(v, C) : C;
|
|
1363
|
-
}
|
|
1364
|
-
if (w && !h) {
|
|
1365
|
-
const C = _(a.left, 0), S = _(a.right, 0), A = _(a.top, 0), O = _(a.bottom, 0);
|
|
1366
|
-
d ? x = p - 2 * (C !== 0 || S !== 0 ? C + S : _(a.left, a.right)) : b = m - 2 * (A !== 0 || O !== 0 ? A + O : _(a.top, a.bottom));
|
|
1367
|
-
}
|
|
1368
|
-
await s({
|
|
1369
|
-
...t,
|
|
1370
|
-
availableWidth: x,
|
|
1371
|
-
availableHeight: b
|
|
1372
|
-
});
|
|
1373
|
-
const E = await o.getDimensions(i.floating);
|
|
1374
|
-
return p !== E.width || m !== E.height ? {
|
|
1375
|
-
reset: {
|
|
1376
|
-
rects: !0
|
|
1377
|
-
}
|
|
1378
|
-
} : {};
|
|
1379
|
-
}
|
|
1380
|
-
};
|
|
1381
|
-
};
|
|
1382
|
-
function ge(e) {
|
|
1383
|
-
return Gt(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
1384
|
-
}
|
|
1385
|
-
function B(e) {
|
|
1386
|
-
var t;
|
|
1387
|
-
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
1388
|
-
}
|
|
1389
|
-
function Z(e) {
|
|
1390
|
-
var t;
|
|
1391
|
-
return (t = (Gt(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
1392
|
-
}
|
|
1393
|
-
function Gt(e) {
|
|
1394
|
-
return e instanceof Node || e instanceof B(e).Node;
|
|
1395
|
-
}
|
|
1396
|
-
function U(e) {
|
|
1397
|
-
return e instanceof Element || e instanceof B(e).Element;
|
|
1398
|
-
}
|
|
1399
|
-
function Y(e) {
|
|
1400
|
-
return e instanceof HTMLElement || e instanceof B(e).HTMLElement;
|
|
1401
|
-
}
|
|
1402
|
-
function Mt(e) {
|
|
1403
|
-
return typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof B(e).ShadowRoot;
|
|
1404
|
-
}
|
|
1405
|
-
function Ae(e) {
|
|
1406
|
-
const {
|
|
1407
|
-
overflow: t,
|
|
1408
|
-
overflowX: n,
|
|
1409
|
-
overflowY: r,
|
|
1410
|
-
display: o
|
|
1411
|
-
} = $(e);
|
|
1412
|
-
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !["inline", "contents"].includes(o);
|
|
1413
|
-
}
|
|
1414
|
-
function _r(e) {
|
|
1415
|
-
return ["table", "td", "th"].includes(ge(e));
|
|
1416
|
-
}
|
|
1417
|
-
function st(e) {
|
|
1418
|
-
const t = ct(), n = $(e);
|
|
1419
|
-
return n.transform !== "none" || n.perspective !== "none" || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((r) => (n.willChange || "").includes(r)) || ["paint", "layout", "strict", "content"].some((r) => (n.contain || "").includes(r));
|
|
1420
|
-
}
|
|
1421
|
-
function Br(e) {
|
|
1422
|
-
let t = re(e);
|
|
1423
|
-
for (; Y(t) && !me(t); ) {
|
|
1424
|
-
if (st(t))
|
|
1425
|
-
return t;
|
|
1426
|
-
t = re(t);
|
|
1427
|
-
}
|
|
1428
|
-
return null;
|
|
1429
|
-
}
|
|
1430
|
-
function ct() {
|
|
1431
|
-
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
1432
|
-
}
|
|
1433
|
-
function me(e) {
|
|
1434
|
-
return ["html", "body", "#document"].includes(ge(e));
|
|
1435
|
-
}
|
|
1436
|
-
function $(e) {
|
|
1437
|
-
return B(e).getComputedStyle(e);
|
|
1438
|
-
}
|
|
1439
|
-
function je(e) {
|
|
1440
|
-
return U(e) ? {
|
|
1441
|
-
scrollLeft: e.scrollLeft,
|
|
1442
|
-
scrollTop: e.scrollTop
|
|
1443
|
-
} : {
|
|
1444
|
-
scrollLeft: e.pageXOffset,
|
|
1445
|
-
scrollTop: e.pageYOffset
|
|
1446
|
-
};
|
|
1447
|
-
}
|
|
1448
|
-
function re(e) {
|
|
1449
|
-
if (ge(e) === "html")
|
|
1450
|
-
return e;
|
|
1451
|
-
const t = (
|
|
1452
|
-
// Step into the shadow DOM of the parent of a slotted node.
|
|
1453
|
-
e.assignedSlot || // DOM Element detected.
|
|
1454
|
-
e.parentNode || // ShadowRoot detected.
|
|
1455
|
-
Mt(e) && e.host || // Fallback.
|
|
1456
|
-
Z(e)
|
|
1457
|
-
);
|
|
1458
|
-
return Mt(t) ? t.host : t;
|
|
1459
|
-
}
|
|
1460
|
-
function Zt(e) {
|
|
1461
|
-
const t = re(e);
|
|
1462
|
-
return me(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Y(t) && Ae(t) ? t : Zt(t);
|
|
1463
|
-
}
|
|
1464
|
-
function Se(e, t, n) {
|
|
1465
|
-
var r;
|
|
1466
|
-
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
1467
|
-
const o = Zt(e), i = o === ((r = e.ownerDocument) == null ? void 0 : r.body), s = B(o);
|
|
1468
|
-
return i ? t.concat(s, s.visualViewport || [], Ae(o) ? o : [], s.frameElement && n ? Se(s.frameElement) : []) : t.concat(o, Se(o, [], n));
|
|
1469
|
-
}
|
|
1470
|
-
function qt(e) {
|
|
1471
|
-
const t = $(e);
|
|
1472
|
-
let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
|
|
1473
|
-
const o = Y(e), i = o ? e.offsetWidth : n, s = o ? e.offsetHeight : r, c = Ie(n) !== i || Ie(r) !== s;
|
|
1474
|
-
return c && (n = i, r = s), {
|
|
1475
|
-
width: n,
|
|
1476
|
-
height: r,
|
|
1477
|
-
$: c
|
|
1478
|
-
};
|
|
1479
|
-
}
|
|
1480
|
-
function at(e) {
|
|
1481
|
-
return U(e) ? e : e.contextElement;
|
|
1482
|
-
}
|
|
1483
|
-
function de(e) {
|
|
1484
|
-
const t = at(e);
|
|
1485
|
-
if (!Y(t))
|
|
1486
|
-
return ne(1);
|
|
1487
|
-
const n = t.getBoundingClientRect(), {
|
|
1488
|
-
width: r,
|
|
1489
|
-
height: o,
|
|
1490
|
-
$: i
|
|
1491
|
-
} = qt(t);
|
|
1492
|
-
let s = (i ? Ie(n.width) : n.width) / r, c = (i ? Ie(n.height) : n.height) / o;
|
|
1493
|
-
return (!s || !Number.isFinite(s)) && (s = 1), (!c || !Number.isFinite(c)) && (c = 1), {
|
|
1494
|
-
x: s,
|
|
1495
|
-
y: c
|
|
1496
|
-
};
|
|
1497
|
-
}
|
|
1498
|
-
const jr = /* @__PURE__ */ ne(0);
|
|
1499
|
-
function Qt(e) {
|
|
1500
|
-
const t = B(e);
|
|
1501
|
-
return !ct() || !t.visualViewport ? jr : {
|
|
1502
|
-
x: t.visualViewport.offsetLeft,
|
|
1503
|
-
y: t.visualViewport.offsetTop
|
|
1504
|
-
};
|
|
1505
|
-
}
|
|
1506
|
-
function $r(e, t, n) {
|
|
1507
|
-
return t === void 0 && (t = !1), !n || t && n !== B(e) ? !1 : t;
|
|
1508
|
-
}
|
|
1509
|
-
function ae(e, t, n, r) {
|
|
1510
|
-
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
1511
|
-
const o = e.getBoundingClientRect(), i = at(e);
|
|
1512
|
-
let s = ne(1);
|
|
1513
|
-
t && (r ? U(r) && (s = de(r)) : s = de(e));
|
|
1514
|
-
const c = $r(i, n, r) ? Qt(i) : ne(0);
|
|
1515
|
-
let a = (o.left + c.x) / s.x, l = (o.top + c.y) / s.y, h = o.width / s.x, d = o.height / s.y;
|
|
1516
|
-
if (i) {
|
|
1517
|
-
const p = B(i), m = r && U(r) ? B(r) : r;
|
|
1518
|
-
let g = p, f = g.frameElement;
|
|
1519
|
-
for (; f && r && m !== g; ) {
|
|
1520
|
-
const v = de(f), y = f.getBoundingClientRect(), w = $(f), b = y.left + (f.clientLeft + parseFloat(w.paddingLeft)) * v.x, x = y.top + (f.clientTop + parseFloat(w.paddingTop)) * v.y;
|
|
1521
|
-
a *= v.x, l *= v.y, h *= v.x, d *= v.y, a += b, l += x, g = B(f), f = g.frameElement;
|
|
1522
|
-
}
|
|
1523
|
-
}
|
|
1524
|
-
return _e({
|
|
1525
|
-
width: h,
|
|
1526
|
-
height: d,
|
|
1527
|
-
x: a,
|
|
1528
|
-
y: l
|
|
1529
|
-
});
|
|
1530
|
-
}
|
|
1531
|
-
const Hr = [":popover-open", ":modal"];
|
|
1532
|
-
function lt(e) {
|
|
1533
|
-
return Hr.some((t) => {
|
|
1534
|
-
try {
|
|
1535
|
-
return e.matches(t);
|
|
1536
|
-
} catch {
|
|
1537
|
-
return !1;
|
|
1538
|
-
}
|
|
1539
|
-
});
|
|
1540
|
-
}
|
|
1541
|
-
function Vr(e) {
|
|
1542
|
-
let {
|
|
1543
|
-
elements: t,
|
|
1544
|
-
rect: n,
|
|
1545
|
-
offsetParent: r,
|
|
1546
|
-
strategy: o
|
|
1547
|
-
} = e;
|
|
1548
|
-
const i = o === "fixed", s = Z(r), c = t ? lt(t.floating) : !1;
|
|
1549
|
-
if (r === s || c && i)
|
|
1550
|
-
return n;
|
|
1551
|
-
let a = {
|
|
1552
|
-
scrollLeft: 0,
|
|
1553
|
-
scrollTop: 0
|
|
1554
|
-
}, l = ne(1);
|
|
1555
|
-
const h = ne(0), d = Y(r);
|
|
1556
|
-
if ((d || !d && !i) && ((ge(r) !== "body" || Ae(s)) && (a = je(r)), Y(r))) {
|
|
1557
|
-
const p = ae(r);
|
|
1558
|
-
l = de(r), h.x = p.x + r.clientLeft, h.y = p.y + r.clientTop;
|
|
1559
|
-
}
|
|
1560
|
-
return {
|
|
1561
|
-
width: n.width * l.x,
|
|
1562
|
-
height: n.height * l.y,
|
|
1563
|
-
x: n.x * l.x - a.scrollLeft * l.x + h.x,
|
|
1564
|
-
y: n.y * l.y - a.scrollTop * l.y + h.y
|
|
1565
|
-
};
|
|
1566
|
-
}
|
|
1567
|
-
function zr(e) {
|
|
1568
|
-
return Array.from(e.getClientRects());
|
|
1569
|
-
}
|
|
1570
|
-
function Jt(e) {
|
|
1571
|
-
return ae(Z(e)).left + je(e).scrollLeft;
|
|
1572
|
-
}
|
|
1573
|
-
function Ur(e) {
|
|
1574
|
-
const t = Z(e), n = je(e), r = e.ownerDocument.body, o = _(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), i = _(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
|
|
1575
|
-
let s = -n.scrollLeft + Jt(e);
|
|
1576
|
-
const c = -n.scrollTop;
|
|
1577
|
-
return $(r).direction === "rtl" && (s += _(t.clientWidth, r.clientWidth) - o), {
|
|
1578
|
-
width: o,
|
|
1579
|
-
height: i,
|
|
1580
|
-
x: s,
|
|
1581
|
-
y: c
|
|
1582
|
-
};
|
|
1583
|
-
}
|
|
1584
|
-
function Yr(e, t) {
|
|
1585
|
-
const n = B(e), r = Z(e), o = n.visualViewport;
|
|
1586
|
-
let i = r.clientWidth, s = r.clientHeight, c = 0, a = 0;
|
|
1587
|
-
if (o) {
|
|
1588
|
-
i = o.width, s = o.height;
|
|
1589
|
-
const l = ct();
|
|
1590
|
-
(!l || l && t === "fixed") && (c = o.offsetLeft, a = o.offsetTop);
|
|
1591
|
-
}
|
|
1592
|
-
return {
|
|
1593
|
-
width: i,
|
|
1594
|
-
height: s,
|
|
1595
|
-
x: c,
|
|
1596
|
-
y: a
|
|
1597
|
-
};
|
|
1598
|
-
}
|
|
1599
|
-
function Xr(e, t) {
|
|
1600
|
-
const n = ae(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, i = Y(e) ? de(e) : ne(1), s = e.clientWidth * i.x, c = e.clientHeight * i.y, a = o * i.x, l = r * i.y;
|
|
1601
|
-
return {
|
|
1602
|
-
width: s,
|
|
1603
|
-
height: c,
|
|
1604
|
-
x: a,
|
|
1605
|
-
y: l
|
|
1606
|
-
};
|
|
1607
|
-
}
|
|
1608
|
-
function Lt(e, t, n) {
|
|
1609
|
-
let r;
|
|
1610
|
-
if (t === "viewport")
|
|
1611
|
-
r = Yr(e, n);
|
|
1612
|
-
else if (t === "document")
|
|
1613
|
-
r = Ur(Z(e));
|
|
1614
|
-
else if (U(t))
|
|
1615
|
-
r = Xr(t, n);
|
|
1616
|
-
else {
|
|
1617
|
-
const o = Qt(e);
|
|
1618
|
-
r = {
|
|
1619
|
-
...t,
|
|
1620
|
-
x: t.x - o.x,
|
|
1621
|
-
y: t.y - o.y
|
|
1622
|
-
};
|
|
1623
|
-
}
|
|
1624
|
-
return _e(r);
|
|
1625
|
-
}
|
|
1626
|
-
function en(e, t) {
|
|
1627
|
-
const n = re(e);
|
|
1628
|
-
return n === t || !U(n) || me(n) ? !1 : $(n).position === "fixed" || en(n, t);
|
|
1629
|
-
}
|
|
1630
|
-
function Kr(e, t) {
|
|
1631
|
-
const n = t.get(e);
|
|
1632
|
-
if (n)
|
|
1633
|
-
return n;
|
|
1634
|
-
let r = Se(e, [], !1).filter((c) => U(c) && ge(c) !== "body"), o = null;
|
|
1635
|
-
const i = $(e).position === "fixed";
|
|
1636
|
-
let s = i ? re(e) : e;
|
|
1637
|
-
for (; U(s) && !me(s); ) {
|
|
1638
|
-
const c = $(s), a = st(s);
|
|
1639
|
-
!a && c.position === "fixed" && (o = null), (i ? !a && !o : !a && c.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || Ae(s) && !a && en(e, s)) ? r = r.filter((h) => h !== s) : o = c, s = re(s);
|
|
1640
|
-
}
|
|
1641
|
-
return t.set(e, r), r;
|
|
1642
|
-
}
|
|
1643
|
-
function Gr(e) {
|
|
1644
|
-
let {
|
|
1645
|
-
element: t,
|
|
1646
|
-
boundary: n,
|
|
1647
|
-
rootBoundary: r,
|
|
1648
|
-
strategy: o
|
|
1649
|
-
} = e;
|
|
1650
|
-
const s = [...n === "clippingAncestors" ? lt(t) ? [] : Kr(t, this._c) : [].concat(n), r], c = s[0], a = s.reduce((l, h) => {
|
|
1651
|
-
const d = Lt(t, h, o);
|
|
1652
|
-
return l.top = _(d.top, l.top), l.right = te(d.right, l.right), l.bottom = te(d.bottom, l.bottom), l.left = _(d.left, l.left), l;
|
|
1653
|
-
}, Lt(t, c, o));
|
|
1654
|
-
return {
|
|
1655
|
-
width: a.right - a.left,
|
|
1656
|
-
height: a.bottom - a.top,
|
|
1657
|
-
x: a.left,
|
|
1658
|
-
y: a.top
|
|
1659
|
-
};
|
|
1660
|
-
}
|
|
1661
|
-
function Zr(e) {
|
|
1662
|
-
const {
|
|
1663
|
-
width: t,
|
|
1664
|
-
height: n
|
|
1665
|
-
} = qt(e);
|
|
1666
|
-
return {
|
|
1667
|
-
width: t,
|
|
1668
|
-
height: n
|
|
1669
|
-
};
|
|
1670
|
-
}
|
|
1671
|
-
function qr(e, t, n) {
|
|
1672
|
-
const r = Y(t), o = Z(t), i = n === "fixed", s = ae(e, !0, i, t);
|
|
1673
|
-
let c = {
|
|
1674
|
-
scrollLeft: 0,
|
|
1675
|
-
scrollTop: 0
|
|
1676
|
-
};
|
|
1677
|
-
const a = ne(0);
|
|
1678
|
-
if (r || !r && !i)
|
|
1679
|
-
if ((ge(t) !== "body" || Ae(o)) && (c = je(t)), r) {
|
|
1680
|
-
const d = ae(t, !0, i, t);
|
|
1681
|
-
a.x = d.x + t.clientLeft, a.y = d.y + t.clientTop;
|
|
1682
|
-
} else o && (a.x = Jt(o));
|
|
1683
|
-
const l = s.left + c.scrollLeft - a.x, h = s.top + c.scrollTop - a.y;
|
|
1684
|
-
return {
|
|
1685
|
-
x: l,
|
|
1686
|
-
y: h,
|
|
1687
|
-
width: s.width,
|
|
1688
|
-
height: s.height
|
|
1689
|
-
};
|
|
1690
|
-
}
|
|
1691
|
-
function Xe(e) {
|
|
1692
|
-
return $(e).position === "static";
|
|
1693
|
-
}
|
|
1694
|
-
function Nt(e, t) {
|
|
1695
|
-
return !Y(e) || $(e).position === "fixed" ? null : t ? t(e) : e.offsetParent;
|
|
1696
|
-
}
|
|
1697
|
-
function tn(e, t) {
|
|
1698
|
-
const n = B(e);
|
|
1699
|
-
if (lt(e))
|
|
1700
|
-
return n;
|
|
1701
|
-
if (!Y(e)) {
|
|
1702
|
-
let o = re(e);
|
|
1703
|
-
for (; o && !me(o); ) {
|
|
1704
|
-
if (U(o) && !Xe(o))
|
|
1705
|
-
return o;
|
|
1706
|
-
o = re(o);
|
|
1707
|
-
}
|
|
1708
|
-
return n;
|
|
1709
|
-
}
|
|
1710
|
-
let r = Nt(e, t);
|
|
1711
|
-
for (; r && _r(r) && Xe(r); )
|
|
1712
|
-
r = Nt(r, t);
|
|
1713
|
-
return r && me(r) && Xe(r) && !st(r) ? n : r || Br(e) || n;
|
|
1714
|
-
}
|
|
1715
|
-
const Qr = async function(e) {
|
|
1716
|
-
const t = this.getOffsetParent || tn, n = this.getDimensions, r = await n(e.floating);
|
|
1717
|
-
return {
|
|
1718
|
-
reference: qr(e.reference, await t(e.floating), e.strategy),
|
|
1719
|
-
floating: {
|
|
1720
|
-
x: 0,
|
|
1721
|
-
y: 0,
|
|
1722
|
-
width: r.width,
|
|
1723
|
-
height: r.height
|
|
1724
|
-
}
|
|
1725
|
-
};
|
|
1726
|
-
};
|
|
1727
|
-
function Jr(e) {
|
|
1728
|
-
return $(e).direction === "rtl";
|
|
1729
|
-
}
|
|
1730
|
-
const eo = {
|
|
1731
|
-
convertOffsetParentRelativeRectToViewportRelativeRect: Vr,
|
|
1732
|
-
getDocumentElement: Z,
|
|
1733
|
-
getClippingRect: Gr,
|
|
1734
|
-
getOffsetParent: tn,
|
|
1735
|
-
getElementRects: Qr,
|
|
1736
|
-
getClientRects: zr,
|
|
1737
|
-
getDimensions: Zr,
|
|
1738
|
-
getScale: de,
|
|
1739
|
-
isElement: U,
|
|
1740
|
-
isRTL: Jr
|
|
1741
|
-
};
|
|
1742
|
-
function to(e, t) {
|
|
1743
|
-
let n = null, r;
|
|
1744
|
-
const o = Z(e);
|
|
1745
|
-
function i() {
|
|
1746
|
-
var c;
|
|
1747
|
-
clearTimeout(r), (c = n) == null || c.disconnect(), n = null;
|
|
1748
|
-
}
|
|
1749
|
-
function s(c, a) {
|
|
1750
|
-
c === void 0 && (c = !1), a === void 0 && (a = 1), i();
|
|
1751
|
-
const {
|
|
1752
|
-
left: l,
|
|
1753
|
-
top: h,
|
|
1754
|
-
width: d,
|
|
1755
|
-
height: p
|
|
1756
|
-
} = e.getBoundingClientRect();
|
|
1757
|
-
if (c || t(), !d || !p)
|
|
1758
|
-
return;
|
|
1759
|
-
const m = Oe(h), g = Oe(o.clientWidth - (l + d)), f = Oe(o.clientHeight - (h + p)), v = Oe(l), w = {
|
|
1760
|
-
rootMargin: -m + "px " + -g + "px " + -f + "px " + -v + "px",
|
|
1761
|
-
threshold: _(0, te(1, a)) || 1
|
|
1762
|
-
};
|
|
1763
|
-
let b = !0;
|
|
1764
|
-
function x(E) {
|
|
1765
|
-
const C = E[0].intersectionRatio;
|
|
1766
|
-
if (C !== a) {
|
|
1767
|
-
if (!b)
|
|
1768
|
-
return s();
|
|
1769
|
-
C ? s(!1, C) : r = setTimeout(() => {
|
|
1770
|
-
s(!1, 1e-7);
|
|
1771
|
-
}, 1e3);
|
|
1772
|
-
}
|
|
1773
|
-
b = !1;
|
|
1774
|
-
}
|
|
1775
|
-
try {
|
|
1776
|
-
n = new IntersectionObserver(x, {
|
|
1777
|
-
...w,
|
|
1778
|
-
// Handle <iframe>s
|
|
1779
|
-
root: o.ownerDocument
|
|
1780
|
-
});
|
|
1781
|
-
} catch {
|
|
1782
|
-
n = new IntersectionObserver(x, w);
|
|
1783
|
-
}
|
|
1784
|
-
n.observe(e);
|
|
1785
|
-
}
|
|
1786
|
-
return s(!0), i;
|
|
1787
|
-
}
|
|
1788
|
-
function no(e, t, n, r) {
|
|
1789
|
-
r === void 0 && (r = {});
|
|
1790
|
-
const {
|
|
1791
|
-
ancestorScroll: o = !0,
|
|
1792
|
-
ancestorResize: i = !0,
|
|
1793
|
-
elementResize: s = typeof ResizeObserver == "function",
|
|
1794
|
-
layoutShift: c = typeof IntersectionObserver == "function",
|
|
1795
|
-
animationFrame: a = !1
|
|
1796
|
-
} = r, l = at(e), h = o || i ? [...l ? Se(l) : [], ...Se(t)] : [];
|
|
1797
|
-
h.forEach((y) => {
|
|
1798
|
-
o && y.addEventListener("scroll", n, {
|
|
1799
|
-
passive: !0
|
|
1800
|
-
}), i && y.addEventListener("resize", n);
|
|
1801
|
-
});
|
|
1802
|
-
const d = l && c ? to(l, n) : null;
|
|
1803
|
-
let p = -1, m = null;
|
|
1804
|
-
s && (m = new ResizeObserver((y) => {
|
|
1805
|
-
let [w] = y;
|
|
1806
|
-
w && w.target === l && m && (m.unobserve(t), cancelAnimationFrame(p), p = requestAnimationFrame(() => {
|
|
1807
|
-
var b;
|
|
1808
|
-
(b = m) == null || b.observe(t);
|
|
1809
|
-
})), n();
|
|
1810
|
-
}), l && !a && m.observe(l), m.observe(t));
|
|
1811
|
-
let g, f = a ? ae(e) : null;
|
|
1812
|
-
a && v();
|
|
1813
|
-
function v() {
|
|
1814
|
-
const y = ae(e);
|
|
1815
|
-
f && (y.x !== f.x || y.y !== f.y || y.width !== f.width || y.height !== f.height) && n(), f = y, g = requestAnimationFrame(v);
|
|
1816
|
-
}
|
|
1817
|
-
return n(), () => {
|
|
1818
|
-
var y;
|
|
1819
|
-
h.forEach((w) => {
|
|
1820
|
-
o && w.removeEventListener("scroll", n), i && w.removeEventListener("resize", n);
|
|
1821
|
-
}), d == null || d(), (y = m) == null || y.disconnect(), m = null, a && cancelAnimationFrame(g);
|
|
1822
|
-
};
|
|
1823
|
-
}
|
|
1824
|
-
const ro = kr, oo = Fr, io = Lr, so = Wr, co = Nr, Dt = Mr, ao = Ir, lo = (e, t, n) => {
|
|
1825
|
-
const r = /* @__PURE__ */ new Map(), o = {
|
|
1826
|
-
platform: eo,
|
|
1827
|
-
...n
|
|
1828
|
-
}, i = {
|
|
1829
|
-
...o.platform,
|
|
1830
|
-
_c: r
|
|
1831
|
-
};
|
|
1832
|
-
return Tr(e, t, {
|
|
1833
|
-
...o,
|
|
1834
|
-
platform: i
|
|
1835
|
-
});
|
|
1836
|
-
}, uo = (e) => {
|
|
1837
|
-
function t(n) {
|
|
1838
|
-
return {}.hasOwnProperty.call(n, "current");
|
|
1839
|
-
}
|
|
1840
|
-
return {
|
|
1841
|
-
name: "arrow",
|
|
1842
|
-
options: e,
|
|
1843
|
-
fn(n) {
|
|
1844
|
-
const {
|
|
1845
|
-
element: r,
|
|
1846
|
-
padding: o
|
|
1847
|
-
} = typeof e == "function" ? e(n) : e;
|
|
1848
|
-
return r && t(r) ? r.current != null ? Dt({
|
|
1849
|
-
element: r.current,
|
|
1850
|
-
padding: o
|
|
1851
|
-
}).fn(n) : {} : r ? Dt({
|
|
1852
|
-
element: r,
|
|
1853
|
-
padding: o
|
|
1854
|
-
}).fn(n) : {};
|
|
1855
|
-
}
|
|
1856
|
-
};
|
|
1857
|
-
};
|
|
1858
|
-
var De = typeof document < "u" ? kn : Fn;
|
|
1859
|
-
function Be(e, t) {
|
|
1860
|
-
if (e === t)
|
|
1861
|
-
return !0;
|
|
1862
|
-
if (typeof e != typeof t)
|
|
1863
|
-
return !1;
|
|
1864
|
-
if (typeof e == "function" && e.toString() === t.toString())
|
|
1865
|
-
return !0;
|
|
1866
|
-
let n, r, o;
|
|
1867
|
-
if (e && t && typeof e == "object") {
|
|
1868
|
-
if (Array.isArray(e)) {
|
|
1869
|
-
if (n = e.length, n !== t.length) return !1;
|
|
1870
|
-
for (r = n; r-- !== 0; )
|
|
1871
|
-
if (!Be(e[r], t[r]))
|
|
1872
|
-
return !1;
|
|
1873
|
-
return !0;
|
|
1874
|
-
}
|
|
1875
|
-
if (o = Object.keys(e), n = o.length, n !== Object.keys(t).length)
|
|
1876
|
-
return !1;
|
|
1877
|
-
for (r = n; r-- !== 0; )
|
|
1878
|
-
if (!{}.hasOwnProperty.call(t, o[r]))
|
|
1879
|
-
return !1;
|
|
1880
|
-
for (r = n; r-- !== 0; ) {
|
|
1881
|
-
const i = o[r];
|
|
1882
|
-
if (!(i === "_owner" && e.$$typeof) && !Be(e[i], t[i]))
|
|
1883
|
-
return !1;
|
|
1884
|
-
}
|
|
1885
|
-
return !0;
|
|
1886
|
-
}
|
|
1887
|
-
return e !== e && t !== t;
|
|
1888
|
-
}
|
|
1889
|
-
function nn(e) {
|
|
1890
|
-
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
1891
|
-
}
|
|
1892
|
-
function kt(e, t) {
|
|
1893
|
-
const n = nn(e);
|
|
1894
|
-
return Math.round(t * n) / n;
|
|
1895
|
-
}
|
|
1896
|
-
function Ft(e) {
|
|
1897
|
-
const t = u.useRef(e);
|
|
1898
|
-
return De(() => {
|
|
1899
|
-
t.current = e;
|
|
1900
|
-
}), t;
|
|
1901
|
-
}
|
|
1902
|
-
function fo(e) {
|
|
1903
|
-
e === void 0 && (e = {});
|
|
1904
|
-
const {
|
|
1905
|
-
placement: t = "bottom",
|
|
1906
|
-
strategy: n = "absolute",
|
|
1907
|
-
middleware: r = [],
|
|
1908
|
-
platform: o,
|
|
1909
|
-
elements: {
|
|
1910
|
-
reference: i,
|
|
1911
|
-
floating: s
|
|
1912
|
-
} = {},
|
|
1913
|
-
transform: c = !0,
|
|
1914
|
-
whileElementsMounted: a,
|
|
1915
|
-
open: l
|
|
1916
|
-
} = e, [h, d] = u.useState({
|
|
1917
|
-
x: 0,
|
|
1918
|
-
y: 0,
|
|
1919
|
-
strategy: n,
|
|
1920
|
-
placement: t,
|
|
1921
|
-
middlewareData: {},
|
|
1922
|
-
isPositioned: !1
|
|
1923
|
-
}), [p, m] = u.useState(r);
|
|
1924
|
-
Be(p, r) || m(r);
|
|
1925
|
-
const [g, f] = u.useState(null), [v, y] = u.useState(null), w = u.useCallback((R) => {
|
|
1926
|
-
R !== C.current && (C.current = R, f(R));
|
|
1927
|
-
}, []), b = u.useCallback((R) => {
|
|
1928
|
-
R !== S.current && (S.current = R, y(R));
|
|
1929
|
-
}, []), x = i || g, E = s || v, C = u.useRef(null), S = u.useRef(null), A = u.useRef(h), O = a != null, D = Ft(a), j = Ft(o), M = u.useCallback(() => {
|
|
1930
|
-
if (!C.current || !S.current)
|
|
1931
|
-
return;
|
|
1932
|
-
const R = {
|
|
1933
|
-
placement: t,
|
|
1934
|
-
strategy: n,
|
|
1935
|
-
middleware: p
|
|
1936
|
-
};
|
|
1937
|
-
j.current && (R.platform = j.current), lo(C.current, S.current, R).then((W) => {
|
|
1938
|
-
const X = {
|
|
1939
|
-
...W,
|
|
1940
|
-
isPositioned: !0
|
|
1941
|
-
};
|
|
1942
|
-
I.current && !Be(A.current, X) && (A.current = X, Ht.flushSync(() => {
|
|
1943
|
-
d(X);
|
|
1944
|
-
}));
|
|
1945
|
-
});
|
|
1946
|
-
}, [p, t, n, j]);
|
|
1947
|
-
De(() => {
|
|
1948
|
-
l === !1 && A.current.isPositioned && (A.current.isPositioned = !1, d((R) => ({
|
|
1949
|
-
...R,
|
|
1950
|
-
isPositioned: !1
|
|
1951
|
-
})));
|
|
1952
|
-
}, [l]);
|
|
1953
|
-
const I = u.useRef(!1);
|
|
1954
|
-
De(() => (I.current = !0, () => {
|
|
1955
|
-
I.current = !1;
|
|
1956
|
-
}), []), De(() => {
|
|
1957
|
-
if (x && (C.current = x), E && (S.current = E), x && E) {
|
|
1958
|
-
if (D.current)
|
|
1959
|
-
return D.current(x, E, M);
|
|
1960
|
-
M();
|
|
1961
|
-
}
|
|
1962
|
-
}, [x, E, M, D, O]);
|
|
1963
|
-
const N = u.useMemo(() => ({
|
|
1964
|
-
reference: C,
|
|
1965
|
-
floating: S,
|
|
1966
|
-
setReference: w,
|
|
1967
|
-
setFloating: b
|
|
1968
|
-
}), [w, b]), T = u.useMemo(() => ({
|
|
1969
|
-
reference: x,
|
|
1970
|
-
floating: E
|
|
1971
|
-
}), [x, E]), k = u.useMemo(() => {
|
|
1972
|
-
const R = {
|
|
1973
|
-
position: n,
|
|
1974
|
-
left: 0,
|
|
1975
|
-
top: 0
|
|
1976
|
-
};
|
|
1977
|
-
if (!T.floating)
|
|
1978
|
-
return R;
|
|
1979
|
-
const W = kt(T.floating, h.x), X = kt(T.floating, h.y);
|
|
1980
|
-
return c ? {
|
|
1981
|
-
...R,
|
|
1982
|
-
transform: "translate(" + W + "px, " + X + "px)",
|
|
1983
|
-
...nn(T.floating) >= 1.5 && {
|
|
1984
|
-
willChange: "transform"
|
|
1985
|
-
}
|
|
1986
|
-
} : {
|
|
1987
|
-
position: n,
|
|
1988
|
-
left: W,
|
|
1989
|
-
top: X
|
|
1990
|
-
};
|
|
1991
|
-
}, [n, c, T.floating, h.x, h.y]);
|
|
1992
|
-
return u.useMemo(() => ({
|
|
1993
|
-
...h,
|
|
1994
|
-
update: M,
|
|
1995
|
-
refs: N,
|
|
1996
|
-
elements: T,
|
|
1997
|
-
floatingStyles: k
|
|
1998
|
-
}), [h, M, N, T, k]);
|
|
1999
|
-
}
|
|
2000
|
-
var ho = "Arrow", rn = u.forwardRef((e, t) => {
|
|
2001
|
-
const { children: n, width: r = 10, height: o = 5, ...i } = e;
|
|
2002
|
-
return /* @__PURE__ */ P.jsx(
|
|
2003
|
-
oe.svg,
|
|
2004
|
-
{
|
|
2005
|
-
...i,
|
|
2006
|
-
ref: t,
|
|
2007
|
-
width: r,
|
|
2008
|
-
height: o,
|
|
2009
|
-
viewBox: "0 0 30 10",
|
|
2010
|
-
preserveAspectRatio: "none",
|
|
2011
|
-
children: e.asChild ? n : /* @__PURE__ */ P.jsx("polygon", { points: "0,0 30,0 15,10" })
|
|
2012
|
-
}
|
|
2013
|
-
);
|
|
2014
|
-
});
|
|
2015
|
-
rn.displayName = ho;
|
|
2016
|
-
var mo = rn;
|
|
2017
|
-
function po(e) {
|
|
2018
|
-
const [t, n] = u.useState(void 0);
|
|
2019
|
-
return Ee(() => {
|
|
2020
|
-
if (e) {
|
|
2021
|
-
n({ width: e.offsetWidth, height: e.offsetHeight });
|
|
2022
|
-
const r = new ResizeObserver((o) => {
|
|
2023
|
-
if (!Array.isArray(o) || !o.length)
|
|
2024
|
-
return;
|
|
2025
|
-
const i = o[0];
|
|
2026
|
-
let s, c;
|
|
2027
|
-
if ("borderBoxSize" in i) {
|
|
2028
|
-
const a = i.borderBoxSize, l = Array.isArray(a) ? a[0] : a;
|
|
2029
|
-
s = l.inlineSize, c = l.blockSize;
|
|
2030
|
-
} else
|
|
2031
|
-
s = e.offsetWidth, c = e.offsetHeight;
|
|
2032
|
-
n({ width: s, height: c });
|
|
2033
|
-
});
|
|
2034
|
-
return r.observe(e, { box: "border-box" }), () => r.unobserve(e);
|
|
2035
|
-
} else
|
|
2036
|
-
n(void 0);
|
|
2037
|
-
}, [e]), t;
|
|
2038
|
-
}
|
|
2039
|
-
var ut = "Popper", [on, Pi] = zt(ut), [vo, sn] = on(ut), cn = (e) => {
|
|
2040
|
-
const { __scopePopper: t, children: n } = e, [r, o] = u.useState(null);
|
|
2041
|
-
return /* @__PURE__ */ P.jsx(vo, { scope: t, anchor: r, onAnchorChange: o, children: n });
|
|
2042
|
-
};
|
|
2043
|
-
cn.displayName = ut;
|
|
2044
|
-
var an = "PopperAnchor", ln = u.forwardRef(
|
|
2045
|
-
(e, t) => {
|
|
2046
|
-
const { __scopePopper: n, virtualRef: r, ...o } = e, i = sn(an, n), s = u.useRef(null), c = ce(t, s);
|
|
2047
|
-
return u.useEffect(() => {
|
|
2048
|
-
i.onAnchorChange((r == null ? void 0 : r.current) || s.current);
|
|
2049
|
-
}), r ? null : /* @__PURE__ */ P.jsx(oe.div, { ...o, ref: c });
|
|
2050
|
-
}
|
|
2051
|
-
);
|
|
2052
|
-
ln.displayName = an;
|
|
2053
|
-
var ft = "PopperContent", [go, yo] = on(ft), un = u.forwardRef(
|
|
2054
|
-
(e, t) => {
|
|
2055
|
-
var dt, ht, mt, pt, vt, gt;
|
|
2056
|
-
const {
|
|
2057
|
-
__scopePopper: n,
|
|
2058
|
-
side: r = "bottom",
|
|
2059
|
-
sideOffset: o = 0,
|
|
2060
|
-
align: i = "center",
|
|
2061
|
-
alignOffset: s = 0,
|
|
2062
|
-
arrowPadding: c = 0,
|
|
2063
|
-
avoidCollisions: a = !0,
|
|
2064
|
-
collisionBoundary: l = [],
|
|
2065
|
-
collisionPadding: h = 0,
|
|
2066
|
-
sticky: d = "partial",
|
|
2067
|
-
hideWhenDetached: p = !1,
|
|
2068
|
-
updatePositionStrategy: m = "optimized",
|
|
2069
|
-
onPlaced: g,
|
|
2070
|
-
...f
|
|
2071
|
-
} = e, v = sn(ft, n), [y, w] = u.useState(null), b = ce(t, (ye) => w(ye)), [x, E] = u.useState(null), C = po(x), S = (C == null ? void 0 : C.width) ?? 0, A = (C == null ? void 0 : C.height) ?? 0, O = r + (i !== "center" ? "-" + i : ""), D = typeof h == "number" ? h : { top: 0, right: 0, bottom: 0, left: 0, ...h }, j = Array.isArray(l) ? l : [l], M = j.length > 0, I = {
|
|
2072
|
-
padding: D,
|
|
2073
|
-
boundary: j.filter(xo),
|
|
2074
|
-
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
2075
|
-
altBoundary: M
|
|
2076
|
-
}, { refs: N, floatingStyles: T, placement: k, isPositioned: R, middlewareData: W } = fo({
|
|
2077
|
-
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
2078
|
-
strategy: "fixed",
|
|
2079
|
-
placement: O,
|
|
2080
|
-
whileElementsMounted: (...ye) => no(...ye, {
|
|
2081
|
-
animationFrame: m === "always"
|
|
2082
|
-
}),
|
|
2083
|
-
elements: {
|
|
2084
|
-
reference: v.anchor
|
|
2085
|
-
},
|
|
2086
|
-
middleware: [
|
|
2087
|
-
ro({ mainAxis: o + A, alignmentAxis: s }),
|
|
2088
|
-
a && oo({
|
|
2089
|
-
mainAxis: !0,
|
|
2090
|
-
crossAxis: !1,
|
|
2091
|
-
limiter: d === "partial" ? ao() : void 0,
|
|
2092
|
-
...I
|
|
2093
|
-
}),
|
|
2094
|
-
a && io({ ...I }),
|
|
2095
|
-
so({
|
|
2096
|
-
...I,
|
|
2097
|
-
apply: ({ elements: ye, rects: yt, availableWidth: On, availableHeight: Tn }) => {
|
|
2098
|
-
const { width: Mn, height: Ln } = yt.reference, Pe = ye.floating.style;
|
|
2099
|
-
Pe.setProperty("--radix-popper-available-width", `${On}px`), Pe.setProperty("--radix-popper-available-height", `${Tn}px`), Pe.setProperty("--radix-popper-anchor-width", `${Mn}px`), Pe.setProperty("--radix-popper-anchor-height", `${Ln}px`);
|
|
2100
|
-
}
|
|
2101
|
-
}),
|
|
2102
|
-
x && uo({ element: x, padding: c }),
|
|
2103
|
-
bo({ arrowWidth: S, arrowHeight: A }),
|
|
2104
|
-
p && co({ strategy: "referenceHidden", ...I })
|
|
2105
|
-
]
|
|
2106
|
-
}), [X, En] = hn(k), Re = ee(g);
|
|
2107
|
-
Ee(() => {
|
|
2108
|
-
R && (Re == null || Re());
|
|
2109
|
-
}, [R, Re]);
|
|
2110
|
-
const Cn = (dt = W.arrow) == null ? void 0 : dt.x, Sn = (ht = W.arrow) == null ? void 0 : ht.y, An = ((mt = W.arrow) == null ? void 0 : mt.centerOffset) !== 0, [Rn, Pn] = u.useState();
|
|
2111
|
-
return Ee(() => {
|
|
2112
|
-
y && Pn(window.getComputedStyle(y).zIndex);
|
|
2113
|
-
}, [y]), /* @__PURE__ */ P.jsx(
|
|
2114
|
-
"div",
|
|
2115
|
-
{
|
|
2116
|
-
ref: N.setFloating,
|
|
2117
|
-
"data-radix-popper-content-wrapper": "",
|
|
2118
|
-
style: {
|
|
2119
|
-
...T,
|
|
2120
|
-
transform: R ? T.transform : "translate(0, -200%)",
|
|
2121
|
-
// keep off the page when measuring
|
|
2122
|
-
minWidth: "max-content",
|
|
2123
|
-
zIndex: Rn,
|
|
2124
|
-
"--radix-popper-transform-origin": [
|
|
2125
|
-
(pt = W.transformOrigin) == null ? void 0 : pt.x,
|
|
2126
|
-
(vt = W.transformOrigin) == null ? void 0 : vt.y
|
|
2127
|
-
].join(" "),
|
|
2128
|
-
// hide the content if using the hide middleware and should be hidden
|
|
2129
|
-
// set visibility to hidden and disable pointer events so the UI behaves
|
|
2130
|
-
// as if the PopperContent isn't there at all
|
|
2131
|
-
...((gt = W.hide) == null ? void 0 : gt.referenceHidden) && {
|
|
2132
|
-
visibility: "hidden",
|
|
2133
|
-
pointerEvents: "none"
|
|
2134
|
-
}
|
|
2135
|
-
},
|
|
2136
|
-
dir: e.dir,
|
|
2137
|
-
children: /* @__PURE__ */ P.jsx(
|
|
2138
|
-
go,
|
|
2139
|
-
{
|
|
2140
|
-
scope: n,
|
|
2141
|
-
placedSide: X,
|
|
2142
|
-
onArrowChange: E,
|
|
2143
|
-
arrowX: Cn,
|
|
2144
|
-
arrowY: Sn,
|
|
2145
|
-
shouldHideArrow: An,
|
|
2146
|
-
children: /* @__PURE__ */ P.jsx(
|
|
2147
|
-
oe.div,
|
|
2148
|
-
{
|
|
2149
|
-
"data-side": X,
|
|
2150
|
-
"data-align": En,
|
|
2151
|
-
...f,
|
|
2152
|
-
ref: b,
|
|
2153
|
-
style: {
|
|
2154
|
-
...f.style,
|
|
2155
|
-
// if the PopperContent hasn't been placed yet (not all measurements done)
|
|
2156
|
-
// we prevent animations so that users's animation don't kick in too early referring wrong sides
|
|
2157
|
-
animation: R ? void 0 : "none"
|
|
2158
|
-
}
|
|
2159
|
-
}
|
|
2160
|
-
)
|
|
2161
|
-
}
|
|
2162
|
-
)
|
|
2163
|
-
}
|
|
2164
|
-
);
|
|
2165
|
-
}
|
|
2166
|
-
);
|
|
2167
|
-
un.displayName = ft;
|
|
2168
|
-
var fn = "PopperArrow", wo = {
|
|
2169
|
-
top: "bottom",
|
|
2170
|
-
right: "left",
|
|
2171
|
-
bottom: "top",
|
|
2172
|
-
left: "right"
|
|
2173
|
-
}, dn = u.forwardRef(function(t, n) {
|
|
2174
|
-
const { __scopePopper: r, ...o } = t, i = yo(fn, r), s = wo[i.placedSide];
|
|
2175
|
-
return (
|
|
2176
|
-
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
2177
|
-
// doesn't report size as we'd expect on SVG elements.
|
|
2178
|
-
// it reports their bounding box which is effectively the largest path inside the SVG.
|
|
2179
|
-
/* @__PURE__ */ P.jsx(
|
|
2180
|
-
"span",
|
|
2181
|
-
{
|
|
2182
|
-
ref: i.onArrowChange,
|
|
2183
|
-
style: {
|
|
2184
|
-
position: "absolute",
|
|
2185
|
-
left: i.arrowX,
|
|
2186
|
-
top: i.arrowY,
|
|
2187
|
-
[s]: 0,
|
|
2188
|
-
transformOrigin: {
|
|
2189
|
-
top: "",
|
|
2190
|
-
right: "0 0",
|
|
2191
|
-
bottom: "center 0",
|
|
2192
|
-
left: "100% 0"
|
|
2193
|
-
}[i.placedSide],
|
|
2194
|
-
transform: {
|
|
2195
|
-
top: "translateY(100%)",
|
|
2196
|
-
right: "translateY(50%) rotate(90deg) translateX(-50%)",
|
|
2197
|
-
bottom: "rotate(180deg)",
|
|
2198
|
-
left: "translateY(50%) rotate(-90deg) translateX(50%)"
|
|
2199
|
-
}[i.placedSide],
|
|
2200
|
-
visibility: i.shouldHideArrow ? "hidden" : void 0
|
|
2201
|
-
},
|
|
2202
|
-
children: /* @__PURE__ */ P.jsx(
|
|
2203
|
-
mo,
|
|
2204
|
-
{
|
|
2205
|
-
...o,
|
|
2206
|
-
ref: n,
|
|
2207
|
-
style: {
|
|
2208
|
-
...o.style,
|
|
2209
|
-
// ensures the element can be measured correctly (mostly for if SVG)
|
|
2210
|
-
display: "block"
|
|
2211
|
-
}
|
|
2212
|
-
}
|
|
2213
|
-
)
|
|
2214
|
-
}
|
|
2215
|
-
)
|
|
2216
|
-
);
|
|
2217
|
-
});
|
|
2218
|
-
dn.displayName = fn;
|
|
2219
|
-
function xo(e) {
|
|
2220
|
-
return e !== null;
|
|
2221
|
-
}
|
|
2222
|
-
var bo = (e) => ({
|
|
2223
|
-
name: "transformOrigin",
|
|
2224
|
-
options: e,
|
|
2225
|
-
fn(t) {
|
|
2226
|
-
var v, y, w;
|
|
2227
|
-
const { placement: n, rects: r, middlewareData: o } = t, s = ((v = o.arrow) == null ? void 0 : v.centerOffset) !== 0, c = s ? 0 : e.arrowWidth, a = s ? 0 : e.arrowHeight, [l, h] = hn(n), d = { start: "0%", center: "50%", end: "100%" }[h], p = (((y = o.arrow) == null ? void 0 : y.x) ?? 0) + c / 2, m = (((w = o.arrow) == null ? void 0 : w.y) ?? 0) + a / 2;
|
|
2228
|
-
let g = "", f = "";
|
|
2229
|
-
return l === "bottom" ? (g = s ? d : `${p}px`, f = `${-a}px`) : l === "top" ? (g = s ? d : `${p}px`, f = `${r.floating.height + a}px`) : l === "right" ? (g = `${-a}px`, f = s ? d : `${m}px`) : l === "left" && (g = `${r.floating.width + a}px`, f = s ? d : `${m}px`), { data: { x: g, y: f } };
|
|
2230
|
-
}
|
|
2231
|
-
});
|
|
2232
|
-
function hn(e) {
|
|
2233
|
-
const [t, n = "center"] = e.split("-");
|
|
2234
|
-
return [t, n];
|
|
2235
|
-
}
|
|
2236
|
-
var Oi = cn, Ti = ln, Mi = un, Li = dn, Eo = "Portal", Co = u.forwardRef((e, t) => {
|
|
2237
|
-
var c;
|
|
2238
|
-
const { container: n, ...r } = e, [o, i] = u.useState(!1);
|
|
2239
|
-
Ee(() => i(!0), []);
|
|
2240
|
-
const s = n || o && ((c = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : c.body);
|
|
2241
|
-
return s ? Hn.createPortal(/* @__PURE__ */ P.jsx(oe.div, { ...r, ref: t }), s) : null;
|
|
2242
|
-
});
|
|
2243
|
-
Co.displayName = Eo;
|
|
2244
|
-
var So = function(e) {
|
|
2245
|
-
if (typeof document > "u")
|
|
2246
|
-
return null;
|
|
2247
|
-
var t = Array.isArray(e) ? e[0] : e;
|
|
2248
|
-
return t.ownerDocument.body;
|
|
2249
|
-
}, le = /* @__PURE__ */ new WeakMap(), Te = /* @__PURE__ */ new WeakMap(), Me = {}, Ke = 0, mn = function(e) {
|
|
2250
|
-
return e && (e.host || mn(e.parentNode));
|
|
2251
|
-
}, Ao = function(e, t) {
|
|
2252
|
-
return t.map(function(n) {
|
|
2253
|
-
if (e.contains(n))
|
|
2254
|
-
return n;
|
|
2255
|
-
var r = mn(n);
|
|
2256
|
-
return r && e.contains(r) ? r : (console.error("aria-hidden", n, "in not contained inside", e, ". Doing nothing"), null);
|
|
2257
|
-
}).filter(function(n) {
|
|
2258
|
-
return !!n;
|
|
2259
|
-
});
|
|
2260
|
-
}, Ro = function(e, t, n, r) {
|
|
2261
|
-
var o = Ao(t, Array.isArray(e) ? e : [e]);
|
|
2262
|
-
Me[n] || (Me[n] = /* @__PURE__ */ new WeakMap());
|
|
2263
|
-
var i = Me[n], s = [], c = /* @__PURE__ */ new Set(), a = new Set(o), l = function(d) {
|
|
2264
|
-
!d || c.has(d) || (c.add(d), l(d.parentNode));
|
|
2265
|
-
};
|
|
2266
|
-
o.forEach(l);
|
|
2267
|
-
var h = function(d) {
|
|
2268
|
-
!d || a.has(d) || Array.prototype.forEach.call(d.children, function(p) {
|
|
2269
|
-
if (c.has(p))
|
|
2270
|
-
h(p);
|
|
2271
|
-
else
|
|
2272
|
-
try {
|
|
2273
|
-
var m = p.getAttribute(r), g = m !== null && m !== "false", f = (le.get(p) || 0) + 1, v = (i.get(p) || 0) + 1;
|
|
2274
|
-
le.set(p, f), i.set(p, v), s.push(p), f === 1 && g && Te.set(p, !0), v === 1 && p.setAttribute(n, "true"), g || p.setAttribute(r, "true");
|
|
2275
|
-
} catch (y) {
|
|
2276
|
-
console.error("aria-hidden: cannot operate on ", p, y);
|
|
2277
|
-
}
|
|
2278
|
-
});
|
|
2279
|
-
};
|
|
2280
|
-
return h(t), c.clear(), Ke++, function() {
|
|
2281
|
-
s.forEach(function(d) {
|
|
2282
|
-
var p = le.get(d) - 1, m = i.get(d) - 1;
|
|
2283
|
-
le.set(d, p), i.set(d, m), p || (Te.has(d) || d.removeAttribute(r), Te.delete(d)), m || d.removeAttribute(n);
|
|
2284
|
-
}), Ke--, Ke || (le = /* @__PURE__ */ new WeakMap(), le = /* @__PURE__ */ new WeakMap(), Te = /* @__PURE__ */ new WeakMap(), Me = {});
|
|
2285
|
-
};
|
|
2286
|
-
}, Ni = function(e, t, n) {
|
|
2287
|
-
n === void 0 && (n = "data-aria-hidden");
|
|
2288
|
-
var r = Array.from(Array.isArray(e) ? e : [e]), o = So(e);
|
|
2289
|
-
return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live]"))), Ro(r, o, n, "aria-hidden")) : function() {
|
|
2290
|
-
return null;
|
|
2291
|
-
};
|
|
2292
|
-
}, z = function() {
|
|
2293
|
-
return z = Object.assign || function(t) {
|
|
2294
|
-
for (var n, r = 1, o = arguments.length; r < o; r++) {
|
|
2295
|
-
n = arguments[r];
|
|
2296
|
-
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]);
|
|
2297
|
-
}
|
|
2298
|
-
return t;
|
|
2299
|
-
}, z.apply(this, arguments);
|
|
2300
|
-
};
|
|
2301
|
-
function pn(e, t) {
|
|
2302
|
-
var n = {};
|
|
2303
|
-
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
2304
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
2305
|
-
for (var o = 0, r = Object.getOwnPropertySymbols(e); o < r.length; o++)
|
|
2306
|
-
t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]);
|
|
2307
|
-
return n;
|
|
2308
|
-
}
|
|
2309
|
-
function Po(e, t, n) {
|
|
2310
|
-
if (n || arguments.length === 2) for (var r = 0, o = t.length, i; r < o; r++)
|
|
2311
|
-
(i || !(r in t)) && (i || (i = Array.prototype.slice.call(t, 0, r)), i[r] = t[r]);
|
|
2312
|
-
return e.concat(i || Array.prototype.slice.call(t));
|
|
2313
|
-
}
|
|
2314
|
-
var ke = "right-scroll-bar-position", Fe = "width-before-scroll-bar", Oo = "with-scroll-bars-hidden", To = "--removed-body-scroll-bar-size";
|
|
2315
|
-
function Ge(e, t) {
|
|
2316
|
-
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
2317
|
-
}
|
|
2318
|
-
function Mo(e, t) {
|
|
2319
|
-
var n = In(function() {
|
|
2320
|
-
return {
|
|
2321
|
-
// value
|
|
2322
|
-
value: e,
|
|
2323
|
-
// last callback
|
|
2324
|
-
callback: t,
|
|
2325
|
-
// "memoized" public interface
|
|
2326
|
-
facade: {
|
|
2327
|
-
get current() {
|
|
2328
|
-
return n.value;
|
|
2329
|
-
},
|
|
2330
|
-
set current(r) {
|
|
2331
|
-
var o = n.value;
|
|
2332
|
-
o !== r && (n.value = r, n.callback(r, o));
|
|
2333
|
-
}
|
|
2334
|
-
}
|
|
2335
|
-
};
|
|
2336
|
-
})[0];
|
|
2337
|
-
return n.callback = t, n.facade;
|
|
2338
|
-
}
|
|
2339
|
-
var Lo = typeof window < "u" ? u.useLayoutEffect : u.useEffect, It = /* @__PURE__ */ new WeakMap();
|
|
2340
|
-
function No(e, t) {
|
|
2341
|
-
var n = Mo(null, function(r) {
|
|
2342
|
-
return e.forEach(function(o) {
|
|
2343
|
-
return Ge(o, r);
|
|
2344
|
-
});
|
|
2345
|
-
});
|
|
2346
|
-
return Lo(function() {
|
|
2347
|
-
var r = It.get(n);
|
|
2348
|
-
if (r) {
|
|
2349
|
-
var o = new Set(r), i = new Set(e), s = n.current;
|
|
2350
|
-
o.forEach(function(c) {
|
|
2351
|
-
i.has(c) || Ge(c, null);
|
|
2352
|
-
}), i.forEach(function(c) {
|
|
2353
|
-
o.has(c) || Ge(c, s);
|
|
2354
|
-
});
|
|
2355
|
-
}
|
|
2356
|
-
It.set(n, e);
|
|
2357
|
-
}, [e]), n;
|
|
2358
|
-
}
|
|
2359
|
-
function Do(e) {
|
|
2360
|
-
return e;
|
|
2361
|
-
}
|
|
2362
|
-
function ko(e, t) {
|
|
2363
|
-
t === void 0 && (t = Do);
|
|
2364
|
-
var n = [], r = !1, o = {
|
|
2365
|
-
read: function() {
|
|
2366
|
-
if (r)
|
|
2367
|
-
throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");
|
|
2368
|
-
return n.length ? n[n.length - 1] : e;
|
|
2369
|
-
},
|
|
2370
|
-
useMedium: function(i) {
|
|
2371
|
-
var s = t(i, r);
|
|
2372
|
-
return n.push(s), function() {
|
|
2373
|
-
n = n.filter(function(c) {
|
|
2374
|
-
return c !== s;
|
|
2375
|
-
});
|
|
2376
|
-
};
|
|
2377
|
-
},
|
|
2378
|
-
assignSyncMedium: function(i) {
|
|
2379
|
-
for (r = !0; n.length; ) {
|
|
2380
|
-
var s = n;
|
|
2381
|
-
n = [], s.forEach(i);
|
|
2382
|
-
}
|
|
2383
|
-
n = {
|
|
2384
|
-
push: function(c) {
|
|
2385
|
-
return i(c);
|
|
2386
|
-
},
|
|
2387
|
-
filter: function() {
|
|
2388
|
-
return n;
|
|
2389
|
-
}
|
|
2390
|
-
};
|
|
2391
|
-
},
|
|
2392
|
-
assignMedium: function(i) {
|
|
2393
|
-
r = !0;
|
|
2394
|
-
var s = [];
|
|
2395
|
-
if (n.length) {
|
|
2396
|
-
var c = n;
|
|
2397
|
-
n = [], c.forEach(i), s = n;
|
|
2398
|
-
}
|
|
2399
|
-
var a = function() {
|
|
2400
|
-
var h = s;
|
|
2401
|
-
s = [], h.forEach(i);
|
|
2402
|
-
}, l = function() {
|
|
2403
|
-
return Promise.resolve().then(a);
|
|
2404
|
-
};
|
|
2405
|
-
l(), n = {
|
|
2406
|
-
push: function(h) {
|
|
2407
|
-
s.push(h), l();
|
|
2408
|
-
},
|
|
2409
|
-
filter: function(h) {
|
|
2410
|
-
return s = s.filter(h), n;
|
|
2411
|
-
}
|
|
2412
|
-
};
|
|
2413
|
-
}
|
|
2414
|
-
};
|
|
2415
|
-
return o;
|
|
2416
|
-
}
|
|
2417
|
-
function Fo(e) {
|
|
2418
|
-
e === void 0 && (e = {});
|
|
2419
|
-
var t = ko(null);
|
|
2420
|
-
return t.options = z({ async: !0, ssr: !1 }, e), t;
|
|
2421
|
-
}
|
|
2422
|
-
var vn = function(e) {
|
|
2423
|
-
var t = e.sideCar, n = pn(e, ["sideCar"]);
|
|
2424
|
-
if (!t)
|
|
2425
|
-
throw new Error("Sidecar: please provide `sideCar` property to import the right car");
|
|
2426
|
-
var r = t.read();
|
|
2427
|
-
if (!r)
|
|
2428
|
-
throw new Error("Sidecar medium not found");
|
|
2429
|
-
return u.createElement(r, z({}, n));
|
|
2430
|
-
};
|
|
2431
|
-
vn.isSideCarExport = !0;
|
|
2432
|
-
function Io(e, t) {
|
|
2433
|
-
return e.useMedium(t), vn;
|
|
2434
|
-
}
|
|
2435
|
-
var gn = Fo(), Ze = function() {
|
|
2436
|
-
}, $e = u.forwardRef(function(e, t) {
|
|
2437
|
-
var n = u.useRef(null), r = u.useState({
|
|
2438
|
-
onScrollCapture: Ze,
|
|
2439
|
-
onWheelCapture: Ze,
|
|
2440
|
-
onTouchMoveCapture: Ze
|
|
2441
|
-
}), o = r[0], i = r[1], s = e.forwardProps, c = e.children, a = e.className, l = e.removeScrollBar, h = e.enabled, d = e.shards, p = e.sideCar, m = e.noIsolation, g = e.inert, f = e.allowPinchZoom, v = e.as, y = v === void 0 ? "div" : v, w = e.gapMode, b = pn(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), x = p, E = No([n, t]), C = z(z({}, b), o);
|
|
2442
|
-
return u.createElement(
|
|
2443
|
-
u.Fragment,
|
|
2444
|
-
null,
|
|
2445
|
-
h && u.createElement(x, { sideCar: gn, removeScrollBar: l, shards: d, noIsolation: m, inert: g, setCallbacks: i, allowPinchZoom: !!f, lockRef: n, gapMode: w }),
|
|
2446
|
-
s ? u.cloneElement(u.Children.only(c), z(z({}, C), { ref: E })) : u.createElement(y, z({}, C, { className: a, ref: E }), c)
|
|
2447
|
-
);
|
|
2448
|
-
});
|
|
2449
|
-
$e.defaultProps = {
|
|
2450
|
-
enabled: !0,
|
|
2451
|
-
removeScrollBar: !0,
|
|
2452
|
-
inert: !1
|
|
2453
|
-
};
|
|
2454
|
-
$e.classNames = {
|
|
2455
|
-
fullWidth: Fe,
|
|
2456
|
-
zeroRight: ke
|
|
2457
|
-
};
|
|
2458
|
-
var Wo = function() {
|
|
2459
|
-
if (typeof __webpack_nonce__ < "u")
|
|
2460
|
-
return __webpack_nonce__;
|
|
2461
|
-
};
|
|
2462
|
-
function _o() {
|
|
2463
|
-
if (!document)
|
|
2464
|
-
return null;
|
|
2465
|
-
var e = document.createElement("style");
|
|
2466
|
-
e.type = "text/css";
|
|
2467
|
-
var t = Wo();
|
|
2468
|
-
return t && e.setAttribute("nonce", t), e;
|
|
2469
|
-
}
|
|
2470
|
-
function Bo(e, t) {
|
|
2471
|
-
e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
|
|
2472
|
-
}
|
|
2473
|
-
function jo(e) {
|
|
2474
|
-
var t = document.head || document.getElementsByTagName("head")[0];
|
|
2475
|
-
t.appendChild(e);
|
|
2476
|
-
}
|
|
2477
|
-
var $o = function() {
|
|
2478
|
-
var e = 0, t = null;
|
|
2479
|
-
return {
|
|
2480
|
-
add: function(n) {
|
|
2481
|
-
e == 0 && (t = _o()) && (Bo(t, n), jo(t)), e++;
|
|
2482
|
-
},
|
|
2483
|
-
remove: function() {
|
|
2484
|
-
e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
|
|
2485
|
-
}
|
|
2486
|
-
};
|
|
2487
|
-
}, Ho = function() {
|
|
2488
|
-
var e = $o();
|
|
2489
|
-
return function(t, n) {
|
|
2490
|
-
u.useEffect(function() {
|
|
2491
|
-
return e.add(t), function() {
|
|
2492
|
-
e.remove();
|
|
2493
|
-
};
|
|
2494
|
-
}, [t && n]);
|
|
2495
|
-
};
|
|
2496
|
-
}, yn = function() {
|
|
2497
|
-
var e = Ho(), t = function(n) {
|
|
2498
|
-
var r = n.styles, o = n.dynamic;
|
|
2499
|
-
return e(r, o), null;
|
|
2500
|
-
};
|
|
2501
|
-
return t;
|
|
2502
|
-
}, Vo = {
|
|
2503
|
-
left: 0,
|
|
2504
|
-
top: 0,
|
|
2505
|
-
right: 0,
|
|
2506
|
-
gap: 0
|
|
2507
|
-
}, qe = function(e) {
|
|
2508
|
-
return parseInt(e || "", 10) || 0;
|
|
2509
|
-
}, zo = function(e) {
|
|
2510
|
-
var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"];
|
|
2511
|
-
return [qe(n), qe(r), qe(o)];
|
|
2512
|
-
}, Uo = function(e) {
|
|
2513
|
-
if (e === void 0 && (e = "margin"), typeof window > "u")
|
|
2514
|
-
return Vo;
|
|
2515
|
-
var t = zo(e), n = document.documentElement.clientWidth, r = window.innerWidth;
|
|
2516
|
-
return {
|
|
2517
|
-
left: t[0],
|
|
2518
|
-
top: t[1],
|
|
2519
|
-
right: t[2],
|
|
2520
|
-
gap: Math.max(0, r - n + t[2] - t[0])
|
|
2521
|
-
};
|
|
2522
|
-
}, Yo = yn(), he = "data-scroll-locked", Xo = function(e, t, n, r) {
|
|
2523
|
-
var o = e.left, i = e.top, s = e.right, c = e.gap;
|
|
2524
|
-
return n === void 0 && (n = "margin"), `
|
|
2525
|
-
.`.concat(Oo, ` {
|
|
2526
|
-
overflow: hidden `).concat(r, `;
|
|
2527
|
-
padding-right: `).concat(c, "px ").concat(r, `;
|
|
2528
|
-
}
|
|
2529
|
-
body[`).concat(he, `] {
|
|
2530
|
-
overflow: hidden `).concat(r, `;
|
|
2531
|
-
overscroll-behavior: contain;
|
|
2532
|
-
`).concat([
|
|
2533
|
-
t && "position: relative ".concat(r, ";"),
|
|
2534
|
-
n === "margin" && `
|
|
2535
|
-
padding-left: `.concat(o, `px;
|
|
2536
|
-
padding-top: `).concat(i, `px;
|
|
2537
|
-
padding-right: `).concat(s, `px;
|
|
2538
|
-
margin-left:0;
|
|
2539
|
-
margin-top:0;
|
|
2540
|
-
margin-right: `).concat(c, "px ").concat(r, `;
|
|
2541
|
-
`),
|
|
2542
|
-
n === "padding" && "padding-right: ".concat(c, "px ").concat(r, ";")
|
|
2543
|
-
].filter(Boolean).join(""), `
|
|
2544
|
-
}
|
|
2545
|
-
|
|
2546
|
-
.`).concat(ke, ` {
|
|
2547
|
-
right: `).concat(c, "px ").concat(r, `;
|
|
2548
|
-
}
|
|
2549
|
-
|
|
2550
|
-
.`).concat(Fe, ` {
|
|
2551
|
-
margin-right: `).concat(c, "px ").concat(r, `;
|
|
2552
|
-
}
|
|
2553
|
-
|
|
2554
|
-
.`).concat(ke, " .").concat(ke, ` {
|
|
2555
|
-
right: 0 `).concat(r, `;
|
|
2556
|
-
}
|
|
2557
|
-
|
|
2558
|
-
.`).concat(Fe, " .").concat(Fe, ` {
|
|
2559
|
-
margin-right: 0 `).concat(r, `;
|
|
2560
|
-
}
|
|
2561
|
-
|
|
2562
|
-
body[`).concat(he, `] {
|
|
2563
|
-
`).concat(To, ": ").concat(c, `px;
|
|
2564
|
-
}
|
|
2565
|
-
`);
|
|
2566
|
-
}, Wt = function() {
|
|
2567
|
-
var e = parseInt(document.body.getAttribute(he) || "0", 10);
|
|
2568
|
-
return isFinite(e) ? e : 0;
|
|
2569
|
-
}, Ko = function() {
|
|
2570
|
-
u.useEffect(function() {
|
|
2571
|
-
return document.body.setAttribute(he, (Wt() + 1).toString()), function() {
|
|
2572
|
-
var e = Wt() - 1;
|
|
2573
|
-
e <= 0 ? document.body.removeAttribute(he) : document.body.setAttribute(he, e.toString());
|
|
2574
|
-
};
|
|
2575
|
-
}, []);
|
|
2576
|
-
}, Go = function(e) {
|
|
2577
|
-
var t = e.noRelative, n = e.noImportant, r = e.gapMode, o = r === void 0 ? "margin" : r;
|
|
2578
|
-
Ko();
|
|
2579
|
-
var i = u.useMemo(function() {
|
|
2580
|
-
return Uo(o);
|
|
2581
|
-
}, [o]);
|
|
2582
|
-
return u.createElement(Yo, { styles: Xo(i, !t, o, n ? "" : "!important") });
|
|
2583
|
-
}, nt = !1;
|
|
2584
|
-
if (typeof window < "u")
|
|
2585
|
-
try {
|
|
2586
|
-
var Le = Object.defineProperty({}, "passive", {
|
|
2587
|
-
get: function() {
|
|
2588
|
-
return nt = !0, !0;
|
|
2589
|
-
}
|
|
2590
|
-
});
|
|
2591
|
-
window.addEventListener("test", Le, Le), window.removeEventListener("test", Le, Le);
|
|
2592
|
-
} catch {
|
|
2593
|
-
nt = !1;
|
|
2594
|
-
}
|
|
2595
|
-
var ue = nt ? { passive: !1 } : !1, Zo = function(e) {
|
|
2596
|
-
return e.tagName === "TEXTAREA";
|
|
2597
|
-
}, wn = function(e, t) {
|
|
2598
|
-
var n = window.getComputedStyle(e);
|
|
2599
|
-
return (
|
|
2600
|
-
// not-not-scrollable
|
|
2601
|
-
n[t] !== "hidden" && // contains scroll inside self
|
|
2602
|
-
!(n.overflowY === n.overflowX && !Zo(e) && n[t] === "visible")
|
|
2603
|
-
);
|
|
2604
|
-
}, qo = function(e) {
|
|
2605
|
-
return wn(e, "overflowY");
|
|
2606
|
-
}, Qo = function(e) {
|
|
2607
|
-
return wn(e, "overflowX");
|
|
2608
|
-
}, _t = function(e, t) {
|
|
2609
|
-
var n = t.ownerDocument, r = t;
|
|
2610
|
-
do {
|
|
2611
|
-
typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host);
|
|
2612
|
-
var o = xn(e, r);
|
|
2613
|
-
if (o) {
|
|
2614
|
-
var i = bn(e, r), s = i[1], c = i[2];
|
|
2615
|
-
if (s > c)
|
|
2616
|
-
return !0;
|
|
2617
|
-
}
|
|
2618
|
-
r = r.parentNode;
|
|
2619
|
-
} while (r && r !== n.body);
|
|
2620
|
-
return !1;
|
|
2621
|
-
}, Jo = function(e) {
|
|
2622
|
-
var t = e.scrollTop, n = e.scrollHeight, r = e.clientHeight;
|
|
2623
|
-
return [
|
|
2624
|
-
t,
|
|
2625
|
-
n,
|
|
2626
|
-
r
|
|
2627
|
-
];
|
|
2628
|
-
}, ei = function(e) {
|
|
2629
|
-
var t = e.scrollLeft, n = e.scrollWidth, r = e.clientWidth;
|
|
2630
|
-
return [
|
|
2631
|
-
t,
|
|
2632
|
-
n,
|
|
2633
|
-
r
|
|
2634
|
-
];
|
|
2635
|
-
}, xn = function(e, t) {
|
|
2636
|
-
return e === "v" ? qo(t) : Qo(t);
|
|
2637
|
-
}, bn = function(e, t) {
|
|
2638
|
-
return e === "v" ? Jo(t) : ei(t);
|
|
2639
|
-
}, ti = function(e, t) {
|
|
2640
|
-
return e === "h" && t === "rtl" ? -1 : 1;
|
|
2641
|
-
}, ni = function(e, t, n, r, o) {
|
|
2642
|
-
var i = ti(e, window.getComputedStyle(t).direction), s = i * r, c = n.target, a = t.contains(c), l = !1, h = s > 0, d = 0, p = 0;
|
|
2643
|
-
do {
|
|
2644
|
-
var m = bn(e, c), g = m[0], f = m[1], v = m[2], y = f - v - i * g;
|
|
2645
|
-
(g || y) && xn(e, c) && (d += y, p += g), c instanceof ShadowRoot ? c = c.host : c = c.parentNode;
|
|
2646
|
-
} while (
|
|
2647
|
-
// portaled content
|
|
2648
|
-
!a && c !== document.body || // self content
|
|
2649
|
-
a && (t.contains(c) || t === c)
|
|
2650
|
-
);
|
|
2651
|
-
return (h && (Math.abs(d) < 1 || !o) || !h && (Math.abs(p) < 1 || !o)) && (l = !0), l;
|
|
2652
|
-
}, Ne = function(e) {
|
|
2653
|
-
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
2654
|
-
}, Bt = function(e) {
|
|
2655
|
-
return [e.deltaX, e.deltaY];
|
|
2656
|
-
}, jt = function(e) {
|
|
2657
|
-
return e && "current" in e ? e.current : e;
|
|
2658
|
-
}, ri = function(e, t) {
|
|
2659
|
-
return e[0] === t[0] && e[1] === t[1];
|
|
2660
|
-
}, oi = function(e) {
|
|
2661
|
-
return `
|
|
2662
|
-
.block-interactivity-`.concat(e, ` {pointer-events: none;}
|
|
2663
|
-
.allow-interactivity-`).concat(e, ` {pointer-events: all;}
|
|
2664
|
-
`);
|
|
2665
|
-
}, ii = 0, fe = [];
|
|
2666
|
-
function si(e) {
|
|
2667
|
-
var t = u.useRef([]), n = u.useRef([0, 0]), r = u.useRef(), o = u.useState(ii++)[0], i = u.useState(yn)[0], s = u.useRef(e);
|
|
2668
|
-
u.useEffect(function() {
|
|
2669
|
-
s.current = e;
|
|
2670
|
-
}, [e]), u.useEffect(function() {
|
|
2671
|
-
if (e.inert) {
|
|
2672
|
-
document.body.classList.add("block-interactivity-".concat(o));
|
|
2673
|
-
var f = Po([e.lockRef.current], (e.shards || []).map(jt), !0).filter(Boolean);
|
|
2674
|
-
return f.forEach(function(v) {
|
|
2675
|
-
return v.classList.add("allow-interactivity-".concat(o));
|
|
2676
|
-
}), function() {
|
|
2677
|
-
document.body.classList.remove("block-interactivity-".concat(o)), f.forEach(function(v) {
|
|
2678
|
-
return v.classList.remove("allow-interactivity-".concat(o));
|
|
2679
|
-
});
|
|
2680
|
-
};
|
|
2681
|
-
}
|
|
2682
|
-
}, [e.inert, e.lockRef.current, e.shards]);
|
|
2683
|
-
var c = u.useCallback(function(f, v) {
|
|
2684
|
-
if ("touches" in f && f.touches.length === 2)
|
|
2685
|
-
return !s.current.allowPinchZoom;
|
|
2686
|
-
var y = Ne(f), w = n.current, b = "deltaX" in f ? f.deltaX : w[0] - y[0], x = "deltaY" in f ? f.deltaY : w[1] - y[1], E, C = f.target, S = Math.abs(b) > Math.abs(x) ? "h" : "v";
|
|
2687
|
-
if ("touches" in f && S === "h" && C.type === "range")
|
|
2688
|
-
return !1;
|
|
2689
|
-
var A = _t(S, C);
|
|
2690
|
-
if (!A)
|
|
2691
|
-
return !0;
|
|
2692
|
-
if (A ? E = S : (E = S === "v" ? "h" : "v", A = _t(S, C)), !A)
|
|
2693
|
-
return !1;
|
|
2694
|
-
if (!r.current && "changedTouches" in f && (b || x) && (r.current = E), !E)
|
|
2695
|
-
return !0;
|
|
2696
|
-
var O = r.current || E;
|
|
2697
|
-
return ni(O, v, f, O === "h" ? b : x, !0);
|
|
2698
|
-
}, []), a = u.useCallback(function(f) {
|
|
2699
|
-
var v = f;
|
|
2700
|
-
if (!(!fe.length || fe[fe.length - 1] !== i)) {
|
|
2701
|
-
var y = "deltaY" in v ? Bt(v) : Ne(v), w = t.current.filter(function(E) {
|
|
2702
|
-
return E.name === v.type && (E.target === v.target || v.target === E.shadowParent) && ri(E.delta, y);
|
|
2703
|
-
})[0];
|
|
2704
|
-
if (w && w.should) {
|
|
2705
|
-
v.cancelable && v.preventDefault();
|
|
2706
|
-
return;
|
|
2707
|
-
}
|
|
2708
|
-
if (!w) {
|
|
2709
|
-
var b = (s.current.shards || []).map(jt).filter(Boolean).filter(function(E) {
|
|
2710
|
-
return E.contains(v.target);
|
|
2711
|
-
}), x = b.length > 0 ? c(v, b[0]) : !s.current.noIsolation;
|
|
2712
|
-
x && v.cancelable && v.preventDefault();
|
|
2713
|
-
}
|
|
2714
|
-
}
|
|
2715
|
-
}, []), l = u.useCallback(function(f, v, y, w) {
|
|
2716
|
-
var b = { name: f, delta: v, target: y, should: w, shadowParent: ci(y) };
|
|
2717
|
-
t.current.push(b), setTimeout(function() {
|
|
2718
|
-
t.current = t.current.filter(function(x) {
|
|
2719
|
-
return x !== b;
|
|
2720
|
-
});
|
|
2721
|
-
}, 1);
|
|
2722
|
-
}, []), h = u.useCallback(function(f) {
|
|
2723
|
-
n.current = Ne(f), r.current = void 0;
|
|
2724
|
-
}, []), d = u.useCallback(function(f) {
|
|
2725
|
-
l(f.type, Bt(f), f.target, c(f, e.lockRef.current));
|
|
2726
|
-
}, []), p = u.useCallback(function(f) {
|
|
2727
|
-
l(f.type, Ne(f), f.target, c(f, e.lockRef.current));
|
|
2728
|
-
}, []);
|
|
2729
|
-
u.useEffect(function() {
|
|
2730
|
-
return fe.push(i), e.setCallbacks({
|
|
2731
|
-
onScrollCapture: d,
|
|
2732
|
-
onWheelCapture: d,
|
|
2733
|
-
onTouchMoveCapture: p
|
|
2734
|
-
}), document.addEventListener("wheel", a, ue), document.addEventListener("touchmove", a, ue), document.addEventListener("touchstart", h, ue), function() {
|
|
2735
|
-
fe = fe.filter(function(f) {
|
|
2736
|
-
return f !== i;
|
|
2737
|
-
}), document.removeEventListener("wheel", a, ue), document.removeEventListener("touchmove", a, ue), document.removeEventListener("touchstart", h, ue);
|
|
2738
|
-
};
|
|
2739
|
-
}, []);
|
|
2740
|
-
var m = e.removeScrollBar, g = e.inert;
|
|
2741
|
-
return u.createElement(
|
|
2742
|
-
u.Fragment,
|
|
2743
|
-
null,
|
|
2744
|
-
g ? u.createElement(i, { styles: oi(o) }) : null,
|
|
2745
|
-
m ? u.createElement(Go, { gapMode: e.gapMode }) : null
|
|
2746
|
-
);
|
|
2747
|
-
}
|
|
2748
|
-
function ci(e) {
|
|
2749
|
-
for (var t = null; e !== null; )
|
|
2750
|
-
e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
2751
|
-
return t;
|
|
2752
|
-
}
|
|
2753
|
-
const ai = Io(gn, si);
|
|
2754
|
-
var li = u.forwardRef(function(e, t) {
|
|
2755
|
-
return u.createElement($e, z({}, e, { ref: t, sideCar: ai }));
|
|
2756
|
-
});
|
|
2757
|
-
li.classNames = $e.classNames;
|
|
2758
|
-
var ui = "VisuallyHidden", fi = u.forwardRef(
|
|
2759
|
-
(e, t) => /* @__PURE__ */ P.jsx(
|
|
2760
|
-
oe.span,
|
|
2761
|
-
{
|
|
2762
|
-
...e,
|
|
2763
|
-
ref: t,
|
|
2764
|
-
style: {
|
|
2765
|
-
// See: https://github.com/twbs/bootstrap/blob/master/scss/mixins/_screen-reader.scss
|
|
2766
|
-
position: "absolute",
|
|
2767
|
-
border: 0,
|
|
2768
|
-
width: 1,
|
|
2769
|
-
height: 1,
|
|
2770
|
-
padding: 0,
|
|
2771
|
-
margin: -1,
|
|
2772
|
-
overflow: "hidden",
|
|
2773
|
-
clip: "rect(0, 0, 0, 0)",
|
|
2774
|
-
whiteSpace: "nowrap",
|
|
2775
|
-
wordWrap: "normal",
|
|
2776
|
-
...e.style
|
|
2777
|
-
}
|
|
2778
|
-
}
|
|
2779
|
-
)
|
|
2780
|
-
);
|
|
2781
|
-
fi.displayName = ui;
|
|
2782
|
-
export {
|
|
2783
|
-
Ti as A,
|
|
2784
|
-
Gn as B,
|
|
2785
|
-
Mi as C,
|
|
2786
|
-
sr as D,
|
|
2787
|
-
dr as F,
|
|
2788
|
-
wi as M,
|
|
2789
|
-
oe as P,
|
|
2790
|
-
li as R,
|
|
2791
|
-
be as S,
|
|
2792
|
-
fi as V,
|
|
2793
|
-
Ri as a,
|
|
2794
|
-
Ve as b,
|
|
2795
|
-
zt as c,
|
|
2796
|
-
ce as d,
|
|
2797
|
-
Ee as e,
|
|
2798
|
-
Ci as f,
|
|
2799
|
-
Si as g,
|
|
2800
|
-
ee as h,
|
|
2801
|
-
Ni as i,
|
|
2802
|
-
Ai as j,
|
|
2803
|
-
bi as k,
|
|
2804
|
-
Co as l,
|
|
2805
|
-
xi as m,
|
|
2806
|
-
Zn as n,
|
|
2807
|
-
Pi as o,
|
|
2808
|
-
Li as p,
|
|
2809
|
-
Oi as q,
|
|
2810
|
-
Vt as r,
|
|
2811
|
-
er as s,
|
|
2812
|
-
Ei as u
|
|
2813
|
-
};
|
|
2814
|
-
//# sourceMappingURL=index-Dolisrci.js.map
|