zudoku 0.13.6 → 0.14.0
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/cli.js +2 -2
- package/dist/app/entry.client.js +2 -2
- package/dist/app/entry.client.js.map +1 -1
- package/dist/app/entry.server.js +3 -0
- package/dist/app/entry.server.js.map +1 -1
- package/dist/app/main.d.ts +1 -0
- package/dist/app/main.js +7 -22
- package/dist/app/main.js.map +1 -1
- package/dist/app/standalone.js.map +1 -1
- package/dist/cli/common/machine-id/lib.js.map +1 -1
- package/dist/cli/common/outdated.js.map +1 -1
- package/dist/cli/common/utils/box.js.map +1 -1
- package/dist/config/validators/InputSidebarSchema.d.ts +2 -2
- package/dist/config/validators/SidebarSchema.d.ts +24 -1
- package/dist/config/validators/SidebarSchema.js +76 -39
- package/dist/config/validators/SidebarSchema.js.map +1 -1
- package/dist/config/validators/validate.d.ts +329 -264
- package/dist/config/validators/validate.js +11 -10
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/lib/components/Header.js +5 -1
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/Heading.d.ts +1 -1
- package/dist/lib/components/SyntaxHighlight.js +4 -1
- package/dist/lib/components/SyntaxHighlight.js.map +1 -1
- package/dist/lib/components/TopNavigation.js +30 -5
- package/dist/lib/components/TopNavigation.js.map +1 -1
- package/dist/lib/components/context/ZudokuContext.d.ts +6 -12
- package/dist/lib/components/context/ZudokuContext.js +26 -20
- package/dist/lib/components/context/ZudokuContext.js.map +1 -1
- package/dist/lib/components/navigation/Sidebar.js +3 -3
- package/dist/lib/components/navigation/Sidebar.js.map +1 -1
- package/dist/lib/components/navigation/SidebarCategory.js +2 -4
- package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
- package/dist/lib/components/navigation/SidebarItem.js +1 -3
- package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
- package/dist/lib/components/navigation/utils.js +10 -14
- package/dist/lib/components/navigation/utils.js.map +1 -1
- package/dist/lib/core/DevPortalContext.d.ts +3 -7
- package/dist/lib/core/DevPortalContext.js.map +1 -1
- package/dist/lib/core/plugins.d.ts +1 -0
- package/dist/lib/core/plugins.js.map +1 -1
- package/dist/lib/plugins/api-keys/CreateApiKey.js +1 -1
- package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
- package/dist/lib/plugins/markdown/index.d.ts +5 -6
- 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 +38 -0
- package/dist/lib/plugins/markdown/resolver.js +75 -0
- package/dist/lib/plugins/markdown/resolver.js.map +1 -0
- package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js +2 -2
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/client/worker.js.map +1 -1
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.js +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +1 -1
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
- 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/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 +21 -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 +2 -3
- package/dist/lib/ui/Button.js +1 -1
- package/dist/lib/ui/Button.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/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/{components → ui}/Dialog.js +2 -2
- package/dist/lib/ui/Dialog.js.map +1 -0
- 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/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.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/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/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/util/MdxComponents.js.map +1 -1
- package/dist/lib/util/useScrollToAnchor.js.map +1 -1
- package/dist/vite/build.js +7 -2
- package/dist/vite/build.js.map +1 -1
- package/dist/vite/config.js +11 -6
- package/dist/vite/config.js.map +1 -1
- 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/plugin-component.js +17 -7
- package/dist/vite/plugin-component.js.map +1 -1
- package/dist/vite/plugin-config-reload.js +0 -2
- package/dist/vite/plugin-config-reload.js.map +1 -1
- package/dist/vite/plugin-docs.js +37 -26
- package/dist/vite/plugin-docs.js.map +1 -1
- package/dist/vite/plugin-frontmatter.d.ts +2 -1
- package/dist/vite/plugin-frontmatter.js +27 -24
- package/dist/vite/plugin-frontmatter.js.map +1 -1
- package/dist/vite/plugin-sidebar.js +7 -6
- package/dist/vite/plugin-sidebar.js.map +1 -1
- package/dist/vite/plugin.js +1 -1
- package/dist/vite/plugin.js.map +1 -1
- package/dist/vite/prerender.d.ts +5 -1
- package/dist/vite/prerender.js +6 -5
- package/dist/vite/prerender.js.map +1 -1
- package/lib/{utils-G5XSiZc9.js → AnchorLink-BbB2q-jx.js} +231 -275
- package/lib/AnchorLink-BbB2q-jx.js.map +1 -0
- package/lib/{AuthenticationPlugin-tBvLKsFg.js → AuthenticationPlugin-C9BHGXlE.js} +2 -2
- package/lib/{AuthenticationPlugin-tBvLKsFg.js.map → AuthenticationPlugin-C9BHGXlE.js.map} +1 -1
- package/lib/{CategoryHeading-D2WS6sRI.js → CategoryHeading-Bb9dqxD3.js} +4 -4
- package/lib/{CategoryHeading-D2WS6sRI.js.map → CategoryHeading-Bb9dqxD3.js.map} +1 -1
- package/lib/{DeveloperHint-CRiZjqd2.js → DeveloperHint-DHdLXGHA.js} +2 -2
- package/lib/{DeveloperHint-CRiZjqd2.js.map → DeveloperHint-DHdLXGHA.js.map} +1 -1
- package/lib/{Markdown-DM4zv3MA.js → Markdown-BDcCAWwm.js} +4268 -6651
- package/lib/Markdown-BDcCAWwm.js.map +1 -0
- package/lib/{MdxPage-tWI_P8wP.js → MdxPage-DKMH_t0f.js} +31 -29
- package/lib/{MdxPage-tWI_P8wP.js.map → MdxPage-DKMH_t0f.js.map} +1 -1
- package/lib/{OperationList-Cd3lue0b.js → OperationList-DnaAtLxP.js} +131 -127
- package/lib/OperationList-DnaAtLxP.js.map +1 -0
- package/lib/{Route-DI0Y0pIV.js → Route-DSbLrlig.js} +2 -2
- package/lib/{Route-DI0Y0pIV.js.map → Route-DSbLrlig.js.map} +1 -1
- package/lib/Select-Bagt3Bme.js +223 -0
- package/lib/Select-Bagt3Bme.js.map +1 -0
- package/lib/{SlotletProvider-CBqY8mp6.js → SlotletProvider-4Naek_5M.js} +4 -4
- package/lib/{SlotletProvider-CBqY8mp6.js.map → SlotletProvider-4Naek_5M.js.map} +1 -1
- package/lib/Spinner-C6zroowC.js +40 -0
- package/lib/Spinner-C6zroowC.js.map +1 -0
- package/lib/StaggeredRender-DDHSzQKE.js +17 -0
- package/lib/StaggeredRender-DDHSzQKE.js.map +1 -0
- package/lib/{ZudokuContext-DEoP3GGJ.js → ZudokuContext-BKXGJTmu.js} +460 -411
- package/lib/ZudokuContext-BKXGJTmu.js.map +1 -0
- package/lib/__vite-browser-external-BYRIRx8p.js +9 -0
- package/lib/__vite-browser-external-BYRIRx8p.js.map +1 -0
- package/lib/assets/worker-Bf8vjASY.js.map +1 -1
- package/lib/cn-BmFQLtkS.js +2279 -0
- package/lib/cn-BmFQLtkS.js.map +1 -0
- package/lib/hook-sn0zMTkE.js +229 -0
- package/lib/hook-sn0zMTkE.js.map +1 -0
- package/lib/{index-Bs9roz8y.js → index-B3F9d8oi.js} +1201 -1429
- package/lib/index-B3F9d8oi.js.map +1 -0
- package/lib/index-BuAyrJe3.js +46 -0
- package/lib/index-BuAyrJe3.js.map +1 -0
- package/lib/index.esm-C5mr_sKO.js +1193 -0
- package/lib/index.esm-C5mr_sKO.js.map +1 -0
- package/lib/ui/Accordion.js +47 -0
- package/lib/ui/Accordion.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 +27 -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 +49 -0
- package/lib/ui/Button.js.map +1 -0
- package/lib/ui/Callout.js +77 -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 +1410 -0
- package/lib/ui/Carousel.js.map +1 -0
- package/lib/ui/Checkbox.js +28 -0
- package/lib/ui/Checkbox.js.map +1 -0
- package/lib/ui/Collapsible.js +8 -0
- package/lib/ui/Collapsible.js.map +1 -0
- package/lib/ui/Dialog.js +101 -0
- package/lib/ui/Dialog.js.map +1 -0
- package/lib/ui/Drawer.js +1153 -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/Switch.js +28 -0
- package/lib/ui/Switch.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/{urql-core-KJnLL26g.js → urql-core-CqTI9H6N.js} +289 -261
- package/lib/urql-core-CqTI9H6N.js.map +1 -0
- package/lib/zudoku.auth-clerk.js +1 -1
- package/lib/zudoku.auth-openid.js +2 -2
- package/lib/zudoku.components.js +889 -2876
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.openapi-worker.js +1 -1
- package/lib/zudoku.plugin-api-keys.js +21 -18
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-custom-pages.js +14 -13
- package/lib/zudoku.plugin-custom-pages.js.map +1 -1
- package/lib/zudoku.plugin-markdown.js +93 -27
- package/lib/zudoku.plugin-markdown.js.map +1 -1
- package/lib/zudoku.plugin-openapi.js +6 -6
- package/package.json +30 -8
- package/src/app/entry.client.tsx +4 -2
- package/src/app/entry.server.tsx +4 -0
- package/src/app/main.css +4 -0
- package/src/app/main.tsx +10 -26
- package/src/app/standalone.tsx +1 -1
- package/src/lib/components/Header.tsx +10 -2
- package/src/lib/components/SyntaxHighlight.tsx +5 -1
- package/src/lib/components/TopNavigation.tsx +58 -24
- package/src/lib/components/context/ZudokuContext.ts +28 -20
- package/src/lib/components/navigation/Sidebar.tsx +5 -5
- package/src/lib/components/navigation/SidebarCategory.tsx +2 -4
- package/src/lib/components/navigation/SidebarItem.tsx +1 -3
- package/src/lib/components/navigation/utils.ts +11 -16
- package/src/lib/core/DevPortalContext.ts +3 -7
- package/src/lib/core/plugins.ts +2 -0
- package/src/lib/plugins/api-keys/CreateApiKey.tsx +2 -2
- package/src/lib/plugins/markdown/index.tsx +49 -12
- package/src/lib/plugins/markdown/resolver.ts +92 -0
- package/src/lib/plugins/openapi/Endpoint.tsx +2 -2
- package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +1 -1
- package/src/lib/plugins/openapi/Sidecar.tsx +3 -3
- package/src/lib/plugins/openapi/client/worker.ts +2 -2
- package/src/lib/plugins/openapi/index.tsx +1 -1
- package/src/lib/plugins/openapi/playground/Playground.tsx +3 -3
- package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +1 -1
- package/src/lib/ui/Accordion.tsx +56 -0
- package/src/lib/ui/{Note.tsx → Alert.tsx} +11 -10
- package/src/lib/ui/AlertDialog.tsx +139 -0
- package/src/lib/ui/AspectRatio.tsx +5 -0
- package/src/lib/ui/Badge.tsx +36 -0
- package/src/lib/ui/Breadcrumb.tsx +115 -0
- package/src/lib/ui/Button.tsx +1 -1
- package/src/lib/ui/Carousel.tsx +260 -0
- package/src/lib/ui/Checkbox.tsx +28 -0
- package/src/lib/ui/Collapsible.tsx +9 -0
- package/src/lib/{components → ui}/Dialog.tsx +4 -3
- package/src/lib/ui/Form.tsx +177 -0
- package/src/lib/ui/HoverCard.tsx +27 -0
- 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/Skeleton.tsx +15 -0
- package/src/lib/ui/Slider.tsx +26 -0
- package/src/lib/ui/Switch.tsx +27 -0
- 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/util/MdxComponents.tsx +0 -1
- package/src/lib/util/useScrollToAnchor.ts +1 -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/Dialog.js.map +0 -1
- package/dist/lib/components/Select.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/ui/Note.d.ts +0 -8
- package/dist/lib/ui/Note.js +0 -23
- package/dist/lib/ui/Note.js.map +0 -1
- package/lib/Input-CO-1DOZa.js +0 -2229
- package/lib/Input-CO-1DOZa.js.map +0 -1
- package/lib/Markdown-DM4zv3MA.js.map +0 -1
- package/lib/OperationList-Cd3lue0b.js.map +0 -1
- package/lib/Spinner-DFQhPMBl.js +0 -505
- package/lib/Spinner-DFQhPMBl.js.map +0 -1
- package/lib/ZudokuContext-DEoP3GGJ.js.map +0 -1
- package/lib/index-Bs9roz8y.js.map +0 -1
- package/lib/index-CBr6BM_4.js +0 -2867
- package/lib/index-CBr6BM_4.js.map +0 -1
- package/lib/index-UUT9q9f9.js +0 -124
- package/lib/index-UUT9q9f9.js.map +0 -1
- package/lib/joinPath-B7kNnUX4.js +0 -8
- package/lib/joinPath-B7kNnUX4.js.map +0 -1
- package/lib/urql-core-KJnLL26g.js.map +0 -1
- package/lib/utils-G5XSiZc9.js.map +0 -1
- package/src/lib/plugins/markdown/generateRoutes.tsx +0 -38
- /package/dist/lib/{components → ui}/Dialog.d.ts +0 -0
- /package/dist/lib/{components → ui}/Select.d.ts +0 -0
- /package/dist/lib/{components → ui}/Select.js +0 -0
- /package/src/lib/{components → ui}/Select.tsx +0 -0
package/lib/index-CBr6BM_4.js
DELETED
|
@@ -1,2867 +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 R } from "./jsx-runtime-B6kdoens.js";
|
|
7
|
-
import { a as Nn, e as Dn } from "./Markdown-DM4zv3MA.js";
|
|
8
|
-
import * as f from "react";
|
|
9
|
-
import ie, { useLayoutEffect as kn, useEffect as Fn, useState as In } from "react";
|
|
10
|
-
import { R as _n, y as Wn, n as Bn, u as jn } from "./ZudokuContext-DEoP3GGJ.js";
|
|
11
|
-
import { u as $n } from "./state-CsuHT8ZO.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 f.useCallback(Vt(...e), e);
|
|
22
|
-
}
|
|
23
|
-
var be = f.forwardRef((e, t) => {
|
|
24
|
-
const { children: n, ...r } = e, o = f.Children.toArray(n), i = o.find(Un);
|
|
25
|
-
if (i) {
|
|
26
|
-
const s = i.props.children, c = o.map((a) => a === i ? f.Children.count(s) > 1 ? f.Children.only(null) : f.isValidElement(s) ? s.props.children : null : a);
|
|
27
|
-
return /* @__PURE__ */ R.jsx(Qe, { ...r, ref: t, children: f.isValidElement(s) ? f.cloneElement(s, void 0, c) : null });
|
|
28
|
-
}
|
|
29
|
-
return /* @__PURE__ */ R.jsx(Qe, { ...r, ref: t, children: n });
|
|
30
|
-
});
|
|
31
|
-
be.displayName = "Slot";
|
|
32
|
-
var Qe = f.forwardRef((e, t) => {
|
|
33
|
-
const { children: n, ...r } = e;
|
|
34
|
-
if (f.isValidElement(n)) {
|
|
35
|
-
const o = Xn(n);
|
|
36
|
-
return f.cloneElement(n, {
|
|
37
|
-
...Yn(r, n.props),
|
|
38
|
-
// @ts-ignore
|
|
39
|
-
ref: t ? Vt(t, o) : o
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
return f.Children.count(n) > 1 ? f.Children.only(null) : null;
|
|
43
|
-
});
|
|
44
|
-
Qe.displayName = "SlotClone";
|
|
45
|
-
var zn = ({ children: e }) => /* @__PURE__ */ R.jsx(R.Fragment, { children: e });
|
|
46
|
-
function Un(e) {
|
|
47
|
-
return f.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 = f.forwardRef(
|
|
90
|
-
({ className: e, variant: t, size: n, asChild: r = !1, ...o }, i) => {
|
|
91
|
-
const s = r ? be : "button";
|
|
92
|
-
return /* @__PURE__ */ R.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, xi = ($t = class extends _n {
|
|
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, v, u, g, y, w, b, x, E, C, S;
|
|
142
|
-
xe(this, se, Wn({
|
|
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 ((u = (v = this.options).onSettled) == null ? void 0 : u.call(v, 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 = (g = L(this, F).config).onError) == null ? void 0 : y.call(
|
|
192
|
-
g,
|
|
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 bi = () => {
|
|
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 Ei(e, t) {
|
|
326
|
-
const n = f.createContext(t), r = (i) => {
|
|
327
|
-
const { children: s, ...c } = i, a = f.useMemo(() => c, Object.values(c));
|
|
328
|
-
return /* @__PURE__ */ R.jsx(n.Provider, { value: a, children: s });
|
|
329
|
-
};
|
|
330
|
-
r.displayName = e + "Provider";
|
|
331
|
-
function o(i) {
|
|
332
|
-
const s = f.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, o];
|
|
338
|
-
}
|
|
339
|
-
function Ci(e, t = []) {
|
|
340
|
-
let n = [];
|
|
341
|
-
function r(i, s) {
|
|
342
|
-
const c = f.createContext(s), a = n.length;
|
|
343
|
-
n = [...n, s];
|
|
344
|
-
const l = (d) => {
|
|
345
|
-
var y;
|
|
346
|
-
const { scope: p, children: m, ...v } = d, u = ((y = p == null ? void 0 : p[e]) == null ? void 0 : y[a]) || c, g = f.useMemo(() => v, Object.values(v));
|
|
347
|
-
return /* @__PURE__ */ R.jsx(u.Provider, { value: g, children: m });
|
|
348
|
-
};
|
|
349
|
-
l.displayName = i + "Provider";
|
|
350
|
-
function h(d, p) {
|
|
351
|
-
var u;
|
|
352
|
-
const m = ((u = p == null ? void 0 : p[e]) == null ? void 0 : u[a]) || c, v = f.useContext(m);
|
|
353
|
-
if (v) return v;
|
|
354
|
-
if (s !== void 0) return s;
|
|
355
|
-
throw new Error(`\`${d}\` must be used within \`${i}\``);
|
|
356
|
-
}
|
|
357
|
-
return [l, h];
|
|
358
|
-
}
|
|
359
|
-
const o = () => {
|
|
360
|
-
const i = n.map((s) => f.createContext(s));
|
|
361
|
-
return function(c) {
|
|
362
|
-
const a = (c == null ? void 0 : c[e]) || i;
|
|
363
|
-
return f.useMemo(
|
|
364
|
-
() => ({ [`__scope${e}`]: { ...c, [e]: a } }),
|
|
365
|
-
[c, a]
|
|
366
|
-
);
|
|
367
|
-
};
|
|
368
|
-
};
|
|
369
|
-
return o.scopeName = e, [r, qn(o, ...t)];
|
|
370
|
-
}
|
|
371
|
-
function qn(...e) {
|
|
372
|
-
const t = e[0];
|
|
373
|
-
if (e.length === 1) return t;
|
|
374
|
-
const n = () => {
|
|
375
|
-
const r = e.map((o) => ({
|
|
376
|
-
useScope: o(),
|
|
377
|
-
scopeName: o.scopeName
|
|
378
|
-
}));
|
|
379
|
-
return function(i) {
|
|
380
|
-
const s = r.reduce((c, { useScope: a, scopeName: l }) => {
|
|
381
|
-
const d = a(i)[`__scope${l}`];
|
|
382
|
-
return { ...c, ...d };
|
|
383
|
-
}, {});
|
|
384
|
-
return f.useMemo(() => ({ [`__scope${t.scopeName}`]: s }), [s]);
|
|
385
|
-
};
|
|
386
|
-
};
|
|
387
|
-
return n.scopeName = t.scopeName, n;
|
|
388
|
-
}
|
|
389
|
-
function ee(e) {
|
|
390
|
-
const t = f.useRef(e);
|
|
391
|
-
return f.useEffect(() => {
|
|
392
|
-
t.current = e;
|
|
393
|
-
}), f.useMemo(() => (...n) => {
|
|
394
|
-
var r;
|
|
395
|
-
return (r = t.current) == null ? void 0 : r.call(t, ...n);
|
|
396
|
-
}, []);
|
|
397
|
-
}
|
|
398
|
-
function Si({
|
|
399
|
-
prop: e,
|
|
400
|
-
defaultProp: t,
|
|
401
|
-
onChange: n = () => {
|
|
402
|
-
}
|
|
403
|
-
}) {
|
|
404
|
-
const [r, o] = Qn({ defaultProp: t, onChange: n }), i = e !== void 0, s = i ? e : r, c = ee(n), a = f.useCallback(
|
|
405
|
-
(l) => {
|
|
406
|
-
if (i) {
|
|
407
|
-
const d = typeof l == "function" ? l(e) : l;
|
|
408
|
-
d !== e && c(d);
|
|
409
|
-
} else
|
|
410
|
-
o(l);
|
|
411
|
-
},
|
|
412
|
-
[i, e, o, c]
|
|
413
|
-
);
|
|
414
|
-
return [s, a];
|
|
415
|
-
}
|
|
416
|
-
function Qn({
|
|
417
|
-
defaultProp: e,
|
|
418
|
-
onChange: t
|
|
419
|
-
}) {
|
|
420
|
-
const n = f.useState(e), [r] = n, o = f.useRef(r), i = ee(t);
|
|
421
|
-
return f.useEffect(() => {
|
|
422
|
-
o.current !== r && (i(r), o.current = r);
|
|
423
|
-
}, [r, o, i]), n;
|
|
424
|
-
}
|
|
425
|
-
var Jn = [
|
|
426
|
-
"a",
|
|
427
|
-
"button",
|
|
428
|
-
"div",
|
|
429
|
-
"form",
|
|
430
|
-
"h2",
|
|
431
|
-
"h3",
|
|
432
|
-
"img",
|
|
433
|
-
"input",
|
|
434
|
-
"label",
|
|
435
|
-
"li",
|
|
436
|
-
"nav",
|
|
437
|
-
"ol",
|
|
438
|
-
"p",
|
|
439
|
-
"span",
|
|
440
|
-
"svg",
|
|
441
|
-
"ul"
|
|
442
|
-
], oe = Jn.reduce((e, t) => {
|
|
443
|
-
const n = f.forwardRef((r, o) => {
|
|
444
|
-
const { asChild: i, ...s } = r, c = i ? be : t;
|
|
445
|
-
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ R.jsx(c, { ...s, ref: o });
|
|
446
|
-
});
|
|
447
|
-
return n.displayName = `Primitive.${t}`, { ...e, [t]: n };
|
|
448
|
-
}, {});
|
|
449
|
-
function er(e, t) {
|
|
450
|
-
e && Ht.flushSync(() => e.dispatchEvent(t));
|
|
451
|
-
}
|
|
452
|
-
function zt(e, t = []) {
|
|
453
|
-
let n = [];
|
|
454
|
-
function r(i, s) {
|
|
455
|
-
const c = f.createContext(s), a = n.length;
|
|
456
|
-
n = [...n, s];
|
|
457
|
-
function l(d) {
|
|
458
|
-
const { scope: p, children: m, ...v } = d, u = (p == null ? void 0 : p[e][a]) || c, g = f.useMemo(() => v, Object.values(v));
|
|
459
|
-
return /* @__PURE__ */ R.jsx(u.Provider, { value: g, children: m });
|
|
460
|
-
}
|
|
461
|
-
function h(d, p) {
|
|
462
|
-
const m = (p == null ? void 0 : p[e][a]) || c, v = f.useContext(m);
|
|
463
|
-
if (v) return v;
|
|
464
|
-
if (s !== void 0) return s;
|
|
465
|
-
throw new Error(`\`${d}\` must be used within \`${i}\``);
|
|
466
|
-
}
|
|
467
|
-
return l.displayName = i + "Provider", [l, h];
|
|
468
|
-
}
|
|
469
|
-
const o = () => {
|
|
470
|
-
const i = n.map((s) => f.createContext(s));
|
|
471
|
-
return function(c) {
|
|
472
|
-
const a = (c == null ? void 0 : c[e]) || i;
|
|
473
|
-
return f.useMemo(
|
|
474
|
-
() => ({ [`__scope${e}`]: { ...c, [e]: a } }),
|
|
475
|
-
[c, a]
|
|
476
|
-
);
|
|
477
|
-
};
|
|
478
|
-
};
|
|
479
|
-
return o.scopeName = e, [r, tr(o, ...t)];
|
|
480
|
-
}
|
|
481
|
-
function tr(...e) {
|
|
482
|
-
const t = e[0];
|
|
483
|
-
if (e.length === 1) return t;
|
|
484
|
-
const n = () => {
|
|
485
|
-
const r = e.map((o) => ({
|
|
486
|
-
useScope: o(),
|
|
487
|
-
scopeName: o.scopeName
|
|
488
|
-
}));
|
|
489
|
-
return function(i) {
|
|
490
|
-
const s = r.reduce((c, { useScope: a, scopeName: l }) => {
|
|
491
|
-
const d = a(i)[`__scope${l}`];
|
|
492
|
-
return { ...c, ...d };
|
|
493
|
-
}, {});
|
|
494
|
-
return f.useMemo(() => ({ [`__scope${t.scopeName}`]: s }), [s]);
|
|
495
|
-
};
|
|
496
|
-
};
|
|
497
|
-
return n.scopeName = t.scopeName, n;
|
|
498
|
-
}
|
|
499
|
-
function Ai(e) {
|
|
500
|
-
const t = e + "CollectionProvider", [n, r] = zt(t), [o, i] = n(
|
|
501
|
-
t,
|
|
502
|
-
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
503
|
-
), s = (m) => {
|
|
504
|
-
const { scope: v, children: u } = m, g = ie.useRef(null), y = ie.useRef(/* @__PURE__ */ new Map()).current;
|
|
505
|
-
return /* @__PURE__ */ R.jsx(o, { scope: v, itemMap: y, collectionRef: g, children: u });
|
|
506
|
-
};
|
|
507
|
-
s.displayName = t;
|
|
508
|
-
const c = e + "CollectionSlot", a = ie.forwardRef(
|
|
509
|
-
(m, v) => {
|
|
510
|
-
const { scope: u, children: g } = m, y = i(c, u), w = ce(v, y.collectionRef);
|
|
511
|
-
return /* @__PURE__ */ R.jsx(be, { ref: w, children: g });
|
|
512
|
-
}
|
|
513
|
-
);
|
|
514
|
-
a.displayName = c;
|
|
515
|
-
const l = e + "CollectionItemSlot", h = "data-radix-collection-item", d = ie.forwardRef(
|
|
516
|
-
(m, v) => {
|
|
517
|
-
const { scope: u, children: g, ...y } = m, w = ie.useRef(null), b = ce(v, w), x = i(l, u);
|
|
518
|
-
return ie.useEffect(() => (x.itemMap.set(w, { ref: w, ...y }), () => void x.itemMap.delete(w))), /* @__PURE__ */ R.jsx(be, { [h]: "", ref: b, children: g });
|
|
519
|
-
}
|
|
520
|
-
);
|
|
521
|
-
d.displayName = l;
|
|
522
|
-
function p(m) {
|
|
523
|
-
const v = i(e + "CollectionConsumer", m);
|
|
524
|
-
return ie.useCallback(() => {
|
|
525
|
-
const g = v.collectionRef.current;
|
|
526
|
-
if (!g) return [];
|
|
527
|
-
const y = Array.from(g.querySelectorAll(`[${h}]`));
|
|
528
|
-
return Array.from(v.itemMap.values()).sort(
|
|
529
|
-
(x, E) => y.indexOf(x.ref.current) - y.indexOf(E.ref.current)
|
|
530
|
-
);
|
|
531
|
-
}, [v.collectionRef, v.itemMap]);
|
|
532
|
-
}
|
|
533
|
-
return [
|
|
534
|
-
{ Provider: s, Slot: a, ItemSlot: d },
|
|
535
|
-
p,
|
|
536
|
-
r
|
|
537
|
-
];
|
|
538
|
-
}
|
|
539
|
-
var nr = f.createContext(void 0);
|
|
540
|
-
function Pi(e) {
|
|
541
|
-
const t = f.useContext(nr);
|
|
542
|
-
return e || t || "ltr";
|
|
543
|
-
}
|
|
544
|
-
function rr(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
545
|
-
const n = ee(e);
|
|
546
|
-
f.useEffect(() => {
|
|
547
|
-
const r = (o) => {
|
|
548
|
-
o.key === "Escape" && n(o);
|
|
549
|
-
};
|
|
550
|
-
return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
|
|
551
|
-
}, [n, t]);
|
|
552
|
-
}
|
|
553
|
-
var or = "DismissableLayer", Je = "dismissableLayer.update", ir = "dismissableLayer.pointerDownOutside", sr = "dismissableLayer.focusOutside", xt, Ut = f.createContext({
|
|
554
|
-
layers: /* @__PURE__ */ new Set(),
|
|
555
|
-
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
556
|
-
branches: /* @__PURE__ */ new Set()
|
|
557
|
-
}), cr = f.forwardRef(
|
|
558
|
-
(e, t) => {
|
|
559
|
-
const {
|
|
560
|
-
disableOutsidePointerEvents: n = !1,
|
|
561
|
-
onEscapeKeyDown: r,
|
|
562
|
-
onPointerDownOutside: o,
|
|
563
|
-
onFocusOutside: i,
|
|
564
|
-
onInteractOutside: s,
|
|
565
|
-
onDismiss: c,
|
|
566
|
-
...a
|
|
567
|
-
} = e, l = f.useContext(Ut), [h, d] = f.useState(null), p = (h == null ? void 0 : h.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, m] = f.useState({}), v = ce(t, (S) => d(S)), u = Array.from(l.layers), [g] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), y = u.indexOf(g), w = h ? u.indexOf(h) : -1, b = l.layersWithOutsidePointerEventsDisabled.size > 0, x = w >= y, E = ur((S) => {
|
|
568
|
-
const A = S.target, O = [...l.branches].some((D) => D.contains(A));
|
|
569
|
-
!x || O || (o == null || o(S), s == null || s(S), S.defaultPrevented || c == null || c());
|
|
570
|
-
}, p), C = fr((S) => {
|
|
571
|
-
const A = S.target;
|
|
572
|
-
[...l.branches].some((D) => D.contains(A)) || (i == null || i(S), s == null || s(S), S.defaultPrevented || c == null || c());
|
|
573
|
-
}, p);
|
|
574
|
-
return rr((S) => {
|
|
575
|
-
w === l.layers.size - 1 && (r == null || r(S), !S.defaultPrevented && c && (S.preventDefault(), c()));
|
|
576
|
-
}, p), f.useEffect(() => {
|
|
577
|
-
if (h)
|
|
578
|
-
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(), () => {
|
|
579
|
-
n && l.layersWithOutsidePointerEventsDisabled.size === 1 && (p.body.style.pointerEvents = xt);
|
|
580
|
-
};
|
|
581
|
-
}, [h, p, n, l]), f.useEffect(() => () => {
|
|
582
|
-
h && (l.layers.delete(h), l.layersWithOutsidePointerEventsDisabled.delete(h), bt());
|
|
583
|
-
}, [h, l]), f.useEffect(() => {
|
|
584
|
-
const S = () => m({});
|
|
585
|
-
return document.addEventListener(Je, S), () => document.removeEventListener(Je, S);
|
|
586
|
-
}, []), /* @__PURE__ */ R.jsx(
|
|
587
|
-
oe.div,
|
|
588
|
-
{
|
|
589
|
-
...a,
|
|
590
|
-
ref: v,
|
|
591
|
-
style: {
|
|
592
|
-
pointerEvents: b ? x ? "auto" : "none" : void 0,
|
|
593
|
-
...e.style
|
|
594
|
-
},
|
|
595
|
-
onFocusCapture: Ve(e.onFocusCapture, C.onFocusCapture),
|
|
596
|
-
onBlurCapture: Ve(e.onBlurCapture, C.onBlurCapture),
|
|
597
|
-
onPointerDownCapture: Ve(
|
|
598
|
-
e.onPointerDownCapture,
|
|
599
|
-
E.onPointerDownCapture
|
|
600
|
-
)
|
|
601
|
-
}
|
|
602
|
-
);
|
|
603
|
-
}
|
|
604
|
-
);
|
|
605
|
-
cr.displayName = or;
|
|
606
|
-
var ar = "DismissableLayerBranch", lr = f.forwardRef((e, t) => {
|
|
607
|
-
const n = f.useContext(Ut), r = f.useRef(null), o = ce(t, r);
|
|
608
|
-
return f.useEffect(() => {
|
|
609
|
-
const i = r.current;
|
|
610
|
-
if (i)
|
|
611
|
-
return n.branches.add(i), () => {
|
|
612
|
-
n.branches.delete(i);
|
|
613
|
-
};
|
|
614
|
-
}, [n.branches]), /* @__PURE__ */ R.jsx(oe.div, { ...e, ref: o });
|
|
615
|
-
});
|
|
616
|
-
lr.displayName = ar;
|
|
617
|
-
function ur(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
618
|
-
const n = ee(e), r = f.useRef(!1), o = f.useRef(() => {
|
|
619
|
-
});
|
|
620
|
-
return f.useEffect(() => {
|
|
621
|
-
const i = (c) => {
|
|
622
|
-
if (c.target && !r.current) {
|
|
623
|
-
let a = function() {
|
|
624
|
-
Yt(
|
|
625
|
-
ir,
|
|
626
|
-
n,
|
|
627
|
-
l,
|
|
628
|
-
{ discrete: !0 }
|
|
629
|
-
);
|
|
630
|
-
};
|
|
631
|
-
const l = { originalEvent: c };
|
|
632
|
-
c.pointerType === "touch" ? (t.removeEventListener("click", o.current), o.current = a, t.addEventListener("click", o.current, { once: !0 })) : a();
|
|
633
|
-
} else
|
|
634
|
-
t.removeEventListener("click", o.current);
|
|
635
|
-
r.current = !1;
|
|
636
|
-
}, s = window.setTimeout(() => {
|
|
637
|
-
t.addEventListener("pointerdown", i);
|
|
638
|
-
}, 0);
|
|
639
|
-
return () => {
|
|
640
|
-
window.clearTimeout(s), t.removeEventListener("pointerdown", i), t.removeEventListener("click", o.current);
|
|
641
|
-
};
|
|
642
|
-
}, [t, n]), {
|
|
643
|
-
// ensures we check React component tree (not just DOM tree)
|
|
644
|
-
onPointerDownCapture: () => r.current = !0
|
|
645
|
-
};
|
|
646
|
-
}
|
|
647
|
-
function fr(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
648
|
-
const n = ee(e), r = f.useRef(!1);
|
|
649
|
-
return f.useEffect(() => {
|
|
650
|
-
const o = (i) => {
|
|
651
|
-
i.target && !r.current && Yt(sr, n, { originalEvent: i }, {
|
|
652
|
-
discrete: !1
|
|
653
|
-
});
|
|
654
|
-
};
|
|
655
|
-
return t.addEventListener("focusin", o), () => t.removeEventListener("focusin", o);
|
|
656
|
-
}, [t, n]), {
|
|
657
|
-
onFocusCapture: () => r.current = !0,
|
|
658
|
-
onBlurCapture: () => r.current = !1
|
|
659
|
-
};
|
|
660
|
-
}
|
|
661
|
-
function bt() {
|
|
662
|
-
const e = new CustomEvent(Je);
|
|
663
|
-
document.dispatchEvent(e);
|
|
664
|
-
}
|
|
665
|
-
function Yt(e, t, n, { discrete: r }) {
|
|
666
|
-
const o = n.originalEvent.target, i = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
|
|
667
|
-
t && o.addEventListener(e, t, { once: !0 }), r ? er(o, i) : o.dispatchEvent(i);
|
|
668
|
-
}
|
|
669
|
-
var ze = 0;
|
|
670
|
-
function Ri() {
|
|
671
|
-
f.useEffect(() => {
|
|
672
|
-
const e = document.querySelectorAll("[data-radix-focus-guard]");
|
|
673
|
-
return document.body.insertAdjacentElement("afterbegin", e[0] ?? Et()), document.body.insertAdjacentElement("beforeend", e[1] ?? Et()), ze++, () => {
|
|
674
|
-
ze === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), ze--;
|
|
675
|
-
};
|
|
676
|
-
}, []);
|
|
677
|
-
}
|
|
678
|
-
function Et() {
|
|
679
|
-
const e = document.createElement("span");
|
|
680
|
-
return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
|
|
681
|
-
}
|
|
682
|
-
var Ue = "focusScope.autoFocusOnMount", Ye = "focusScope.autoFocusOnUnmount", Ct = { bubbles: !1, cancelable: !0 }, dr = "FocusScope", hr = f.forwardRef((e, t) => {
|
|
683
|
-
const {
|
|
684
|
-
loop: n = !1,
|
|
685
|
-
trapped: r = !1,
|
|
686
|
-
onMountAutoFocus: o,
|
|
687
|
-
onUnmountAutoFocus: i,
|
|
688
|
-
...s
|
|
689
|
-
} = e, [c, a] = f.useState(null), l = ee(o), h = ee(i), d = f.useRef(null), p = ce(t, (u) => a(u)), m = f.useRef({
|
|
690
|
-
paused: !1,
|
|
691
|
-
pause() {
|
|
692
|
-
this.paused = !0;
|
|
693
|
-
},
|
|
694
|
-
resume() {
|
|
695
|
-
this.paused = !1;
|
|
696
|
-
}
|
|
697
|
-
}).current;
|
|
698
|
-
f.useEffect(() => {
|
|
699
|
-
if (r) {
|
|
700
|
-
let u = function(b) {
|
|
701
|
-
if (m.paused || !c) return;
|
|
702
|
-
const x = b.target;
|
|
703
|
-
c.contains(x) ? d.current = x : J(d.current, { select: !0 });
|
|
704
|
-
}, g = function(b) {
|
|
705
|
-
if (m.paused || !c) return;
|
|
706
|
-
const x = b.relatedTarget;
|
|
707
|
-
x !== null && (c.contains(x) || J(d.current, { select: !0 }));
|
|
708
|
-
}, y = function(b) {
|
|
709
|
-
if (document.activeElement === document.body)
|
|
710
|
-
for (const E of b)
|
|
711
|
-
E.removedNodes.length > 0 && J(c);
|
|
712
|
-
};
|
|
713
|
-
document.addEventListener("focusin", u), document.addEventListener("focusout", g);
|
|
714
|
-
const w = new MutationObserver(y);
|
|
715
|
-
return c && w.observe(c, { childList: !0, subtree: !0 }), () => {
|
|
716
|
-
document.removeEventListener("focusin", u), document.removeEventListener("focusout", g), w.disconnect();
|
|
717
|
-
};
|
|
718
|
-
}
|
|
719
|
-
}, [r, c, m.paused]), f.useEffect(() => {
|
|
720
|
-
if (c) {
|
|
721
|
-
At.add(m);
|
|
722
|
-
const u = document.activeElement;
|
|
723
|
-
if (!c.contains(u)) {
|
|
724
|
-
const y = new CustomEvent(Ue, Ct);
|
|
725
|
-
c.addEventListener(Ue, l), c.dispatchEvent(y), y.defaultPrevented || (mr(wr(Xt(c)), { select: !0 }), document.activeElement === u && J(c));
|
|
726
|
-
}
|
|
727
|
-
return () => {
|
|
728
|
-
c.removeEventListener(Ue, l), setTimeout(() => {
|
|
729
|
-
const y = new CustomEvent(Ye, Ct);
|
|
730
|
-
c.addEventListener(Ye, h), c.dispatchEvent(y), y.defaultPrevented || J(u ?? document.body, { select: !0 }), c.removeEventListener(Ye, h), At.remove(m);
|
|
731
|
-
}, 0);
|
|
732
|
-
};
|
|
733
|
-
}
|
|
734
|
-
}, [c, l, h, m]);
|
|
735
|
-
const v = f.useCallback(
|
|
736
|
-
(u) => {
|
|
737
|
-
if (!n && !r || m.paused) return;
|
|
738
|
-
const g = u.key === "Tab" && !u.altKey && !u.ctrlKey && !u.metaKey, y = document.activeElement;
|
|
739
|
-
if (g && y) {
|
|
740
|
-
const w = u.currentTarget, [b, x] = pr(w);
|
|
741
|
-
b && x ? !u.shiftKey && y === x ? (u.preventDefault(), n && J(b, { select: !0 })) : u.shiftKey && y === b && (u.preventDefault(), n && J(x, { select: !0 })) : y === w && u.preventDefault();
|
|
742
|
-
}
|
|
743
|
-
},
|
|
744
|
-
[n, r, m.paused]
|
|
745
|
-
);
|
|
746
|
-
return /* @__PURE__ */ R.jsx(oe.div, { tabIndex: -1, ...s, ref: p, onKeyDown: v });
|
|
747
|
-
});
|
|
748
|
-
hr.displayName = dr;
|
|
749
|
-
function mr(e, { select: t = !1 } = {}) {
|
|
750
|
-
const n = document.activeElement;
|
|
751
|
-
for (const r of e)
|
|
752
|
-
if (J(r, { select: t }), document.activeElement !== n) return;
|
|
753
|
-
}
|
|
754
|
-
function pr(e) {
|
|
755
|
-
const t = Xt(e), n = St(t, e), r = St(t.reverse(), e);
|
|
756
|
-
return [n, r];
|
|
757
|
-
}
|
|
758
|
-
function Xt(e) {
|
|
759
|
-
const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
|
|
760
|
-
acceptNode: (r) => {
|
|
761
|
-
const o = r.tagName === "INPUT" && r.type === "hidden";
|
|
762
|
-
return r.disabled || r.hidden || o ? NodeFilter.FILTER_SKIP : r.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
763
|
-
}
|
|
764
|
-
});
|
|
765
|
-
for (; n.nextNode(); ) t.push(n.currentNode);
|
|
766
|
-
return t;
|
|
767
|
-
}
|
|
768
|
-
function St(e, t) {
|
|
769
|
-
for (const n of e)
|
|
770
|
-
if (!vr(n, { upTo: t })) return n;
|
|
771
|
-
}
|
|
772
|
-
function vr(e, { upTo: t }) {
|
|
773
|
-
if (getComputedStyle(e).visibility === "hidden") return !0;
|
|
774
|
-
for (; e; ) {
|
|
775
|
-
if (t !== void 0 && e === t) return !1;
|
|
776
|
-
if (getComputedStyle(e).display === "none") return !0;
|
|
777
|
-
e = e.parentElement;
|
|
778
|
-
}
|
|
779
|
-
return !1;
|
|
780
|
-
}
|
|
781
|
-
function gr(e) {
|
|
782
|
-
return e instanceof HTMLInputElement && "select" in e;
|
|
783
|
-
}
|
|
784
|
-
function J(e, { select: t = !1 } = {}) {
|
|
785
|
-
if (e && e.focus) {
|
|
786
|
-
const n = document.activeElement;
|
|
787
|
-
e.focus({ preventScroll: !0 }), e !== n && gr(e) && t && e.select();
|
|
788
|
-
}
|
|
789
|
-
}
|
|
790
|
-
var At = yr();
|
|
791
|
-
function yr() {
|
|
792
|
-
let e = [];
|
|
793
|
-
return {
|
|
794
|
-
add(t) {
|
|
795
|
-
const n = e[0];
|
|
796
|
-
t !== n && (n == null || n.pause()), e = Pt(e, t), e.unshift(t);
|
|
797
|
-
},
|
|
798
|
-
remove(t) {
|
|
799
|
-
var n;
|
|
800
|
-
e = Pt(e, t), (n = e[0]) == null || n.resume();
|
|
801
|
-
}
|
|
802
|
-
};
|
|
803
|
-
}
|
|
804
|
-
function Pt(e, t) {
|
|
805
|
-
const n = [...e], r = n.indexOf(t);
|
|
806
|
-
return r !== -1 && n.splice(r, 1), n;
|
|
807
|
-
}
|
|
808
|
-
function wr(e) {
|
|
809
|
-
return e.filter((t) => t.tagName !== "A");
|
|
810
|
-
}
|
|
811
|
-
var Ee = globalThis != null && globalThis.document ? f.useLayoutEffect : () => {
|
|
812
|
-
}, xr = f.useId || (() => {
|
|
813
|
-
}), br = 0;
|
|
814
|
-
function Oi(e) {
|
|
815
|
-
const [t, n] = f.useState(xr());
|
|
816
|
-
return Ee(() => {
|
|
817
|
-
n((r) => r ?? String(br++));
|
|
818
|
-
}, [e]), t ? `radix-${t}` : "";
|
|
819
|
-
}
|
|
820
|
-
const Er = ["top", "right", "bottom", "left"], te = Math.min, W = Math.max, Ie = Math.round, Oe = Math.floor, ne = (e) => ({
|
|
821
|
-
x: e,
|
|
822
|
-
y: e
|
|
823
|
-
}), Cr = {
|
|
824
|
-
left: "right",
|
|
825
|
-
right: "left",
|
|
826
|
-
bottom: "top",
|
|
827
|
-
top: "bottom"
|
|
828
|
-
}, Sr = {
|
|
829
|
-
start: "end",
|
|
830
|
-
end: "start"
|
|
831
|
-
};
|
|
832
|
-
function et(e, t, n) {
|
|
833
|
-
return W(e, te(t, n));
|
|
834
|
-
}
|
|
835
|
-
function K(e, t) {
|
|
836
|
-
return typeof e == "function" ? e(t) : e;
|
|
837
|
-
}
|
|
838
|
-
function G(e) {
|
|
839
|
-
return e.split("-")[0];
|
|
840
|
-
}
|
|
841
|
-
function pe(e) {
|
|
842
|
-
return e.split("-")[1];
|
|
843
|
-
}
|
|
844
|
-
function rt(e) {
|
|
845
|
-
return e === "x" ? "y" : "x";
|
|
846
|
-
}
|
|
847
|
-
function ot(e) {
|
|
848
|
-
return e === "y" ? "height" : "width";
|
|
849
|
-
}
|
|
850
|
-
function ve(e) {
|
|
851
|
-
return ["top", "bottom"].includes(G(e)) ? "y" : "x";
|
|
852
|
-
}
|
|
853
|
-
function it(e) {
|
|
854
|
-
return rt(ve(e));
|
|
855
|
-
}
|
|
856
|
-
function Ar(e, t, n) {
|
|
857
|
-
n === void 0 && (n = !1);
|
|
858
|
-
const r = pe(e), o = it(e), i = ot(o);
|
|
859
|
-
let s = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
860
|
-
return t.reference[i] > t.floating[i] && (s = _e(s)), [s, _e(s)];
|
|
861
|
-
}
|
|
862
|
-
function Pr(e) {
|
|
863
|
-
const t = _e(e);
|
|
864
|
-
return [tt(e), t, tt(t)];
|
|
865
|
-
}
|
|
866
|
-
function tt(e) {
|
|
867
|
-
return e.replace(/start|end/g, (t) => Sr[t]);
|
|
868
|
-
}
|
|
869
|
-
function Rr(e, t, n) {
|
|
870
|
-
const r = ["left", "right"], o = ["right", "left"], i = ["top", "bottom"], s = ["bottom", "top"];
|
|
871
|
-
switch (e) {
|
|
872
|
-
case "top":
|
|
873
|
-
case "bottom":
|
|
874
|
-
return n ? t ? o : r : t ? r : o;
|
|
875
|
-
case "left":
|
|
876
|
-
case "right":
|
|
877
|
-
return t ? i : s;
|
|
878
|
-
default:
|
|
879
|
-
return [];
|
|
880
|
-
}
|
|
881
|
-
}
|
|
882
|
-
function Or(e, t, n, r) {
|
|
883
|
-
const o = pe(e);
|
|
884
|
-
let i = Rr(G(e), n === "start", r);
|
|
885
|
-
return o && (i = i.map((s) => s + "-" + o), t && (i = i.concat(i.map(tt)))), i;
|
|
886
|
-
}
|
|
887
|
-
function _e(e) {
|
|
888
|
-
return e.replace(/left|right|bottom|top/g, (t) => Cr[t]);
|
|
889
|
-
}
|
|
890
|
-
function Mr(e) {
|
|
891
|
-
return {
|
|
892
|
-
top: 0,
|
|
893
|
-
right: 0,
|
|
894
|
-
bottom: 0,
|
|
895
|
-
left: 0,
|
|
896
|
-
...e
|
|
897
|
-
};
|
|
898
|
-
}
|
|
899
|
-
function Kt(e) {
|
|
900
|
-
return typeof e != "number" ? Mr(e) : {
|
|
901
|
-
top: e,
|
|
902
|
-
right: e,
|
|
903
|
-
bottom: e,
|
|
904
|
-
left: e
|
|
905
|
-
};
|
|
906
|
-
}
|
|
907
|
-
function We(e) {
|
|
908
|
-
const {
|
|
909
|
-
x: t,
|
|
910
|
-
y: n,
|
|
911
|
-
width: r,
|
|
912
|
-
height: o
|
|
913
|
-
} = e;
|
|
914
|
-
return {
|
|
915
|
-
width: r,
|
|
916
|
-
height: o,
|
|
917
|
-
top: n,
|
|
918
|
-
left: t,
|
|
919
|
-
right: t + r,
|
|
920
|
-
bottom: n + o,
|
|
921
|
-
x: t,
|
|
922
|
-
y: n
|
|
923
|
-
};
|
|
924
|
-
}
|
|
925
|
-
function Rt(e, t, n) {
|
|
926
|
-
let {
|
|
927
|
-
reference: r,
|
|
928
|
-
floating: o
|
|
929
|
-
} = e;
|
|
930
|
-
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;
|
|
931
|
-
let m;
|
|
932
|
-
switch (a) {
|
|
933
|
-
case "top":
|
|
934
|
-
m = {
|
|
935
|
-
x: h,
|
|
936
|
-
y: r.y - o.height
|
|
937
|
-
};
|
|
938
|
-
break;
|
|
939
|
-
case "bottom":
|
|
940
|
-
m = {
|
|
941
|
-
x: h,
|
|
942
|
-
y: r.y + r.height
|
|
943
|
-
};
|
|
944
|
-
break;
|
|
945
|
-
case "right":
|
|
946
|
-
m = {
|
|
947
|
-
x: r.x + r.width,
|
|
948
|
-
y: d
|
|
949
|
-
};
|
|
950
|
-
break;
|
|
951
|
-
case "left":
|
|
952
|
-
m = {
|
|
953
|
-
x: r.x - o.width,
|
|
954
|
-
y: d
|
|
955
|
-
};
|
|
956
|
-
break;
|
|
957
|
-
default:
|
|
958
|
-
m = {
|
|
959
|
-
x: r.x,
|
|
960
|
-
y: r.y
|
|
961
|
-
};
|
|
962
|
-
}
|
|
963
|
-
switch (pe(t)) {
|
|
964
|
-
case "start":
|
|
965
|
-
m[s] -= p * (n && l ? -1 : 1);
|
|
966
|
-
break;
|
|
967
|
-
case "end":
|
|
968
|
-
m[s] += p * (n && l ? -1 : 1);
|
|
969
|
-
break;
|
|
970
|
-
}
|
|
971
|
-
return m;
|
|
972
|
-
}
|
|
973
|
-
const Tr = async (e, t, n) => {
|
|
974
|
-
const {
|
|
975
|
-
placement: r = "bottom",
|
|
976
|
-
strategy: o = "absolute",
|
|
977
|
-
middleware: i = [],
|
|
978
|
-
platform: s
|
|
979
|
-
} = n, c = i.filter(Boolean), a = await (s.isRTL == null ? void 0 : s.isRTL(t));
|
|
980
|
-
let l = await s.getElementRects({
|
|
981
|
-
reference: e,
|
|
982
|
-
floating: t,
|
|
983
|
-
strategy: o
|
|
984
|
-
}), {
|
|
985
|
-
x: h,
|
|
986
|
-
y: d
|
|
987
|
-
} = Rt(l, r, a), p = r, m = {}, v = 0;
|
|
988
|
-
for (let u = 0; u < c.length; u++) {
|
|
989
|
-
const {
|
|
990
|
-
name: g,
|
|
991
|
-
fn: y
|
|
992
|
-
} = c[u], {
|
|
993
|
-
x: w,
|
|
994
|
-
y: b,
|
|
995
|
-
data: x,
|
|
996
|
-
reset: E
|
|
997
|
-
} = await y({
|
|
998
|
-
x: h,
|
|
999
|
-
y: d,
|
|
1000
|
-
initialPlacement: r,
|
|
1001
|
-
placement: p,
|
|
1002
|
-
strategy: o,
|
|
1003
|
-
middlewareData: m,
|
|
1004
|
-
rects: l,
|
|
1005
|
-
platform: s,
|
|
1006
|
-
elements: {
|
|
1007
|
-
reference: e,
|
|
1008
|
-
floating: t
|
|
1009
|
-
}
|
|
1010
|
-
});
|
|
1011
|
-
h = w ?? h, d = b ?? d, m = {
|
|
1012
|
-
...m,
|
|
1013
|
-
[g]: {
|
|
1014
|
-
...m[g],
|
|
1015
|
-
...x
|
|
1016
|
-
}
|
|
1017
|
-
}, E && v <= 50 && (v++, typeof E == "object" && (E.placement && (p = E.placement), E.rects && (l = E.rects === !0 ? await s.getElementRects({
|
|
1018
|
-
reference: e,
|
|
1019
|
-
floating: t,
|
|
1020
|
-
strategy: o
|
|
1021
|
-
}) : E.rects), {
|
|
1022
|
-
x: h,
|
|
1023
|
-
y: d
|
|
1024
|
-
} = Rt(l, p, a)), u = -1);
|
|
1025
|
-
}
|
|
1026
|
-
return {
|
|
1027
|
-
x: h,
|
|
1028
|
-
y: d,
|
|
1029
|
-
placement: p,
|
|
1030
|
-
strategy: o,
|
|
1031
|
-
middlewareData: m
|
|
1032
|
-
};
|
|
1033
|
-
};
|
|
1034
|
-
async function Ce(e, t) {
|
|
1035
|
-
var n;
|
|
1036
|
-
t === void 0 && (t = {});
|
|
1037
|
-
const {
|
|
1038
|
-
x: r,
|
|
1039
|
-
y: o,
|
|
1040
|
-
platform: i,
|
|
1041
|
-
rects: s,
|
|
1042
|
-
elements: c,
|
|
1043
|
-
strategy: a
|
|
1044
|
-
} = e, {
|
|
1045
|
-
boundary: l = "clippingAncestors",
|
|
1046
|
-
rootBoundary: h = "viewport",
|
|
1047
|
-
elementContext: d = "floating",
|
|
1048
|
-
altBoundary: p = !1,
|
|
1049
|
-
padding: m = 0
|
|
1050
|
-
} = K(t, e), v = Kt(m), g = c[p ? d === "floating" ? "reference" : "floating" : d], y = We(await i.getClippingRect({
|
|
1051
|
-
element: (n = await (i.isElement == null ? void 0 : i.isElement(g))) == null || n ? g : g.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(c.floating)),
|
|
1052
|
-
boundary: l,
|
|
1053
|
-
rootBoundary: h,
|
|
1054
|
-
strategy: a
|
|
1055
|
-
})), w = d === "floating" ? {
|
|
1056
|
-
x: r,
|
|
1057
|
-
y: o,
|
|
1058
|
-
width: s.floating.width,
|
|
1059
|
-
height: s.floating.height
|
|
1060
|
-
} : 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)) || {
|
|
1061
|
-
x: 1,
|
|
1062
|
-
y: 1
|
|
1063
|
-
} : {
|
|
1064
|
-
x: 1,
|
|
1065
|
-
y: 1
|
|
1066
|
-
}, E = We(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
1067
|
-
elements: c,
|
|
1068
|
-
rect: w,
|
|
1069
|
-
offsetParent: b,
|
|
1070
|
-
strategy: a
|
|
1071
|
-
}) : w);
|
|
1072
|
-
return {
|
|
1073
|
-
top: (y.top - E.top + v.top) / x.y,
|
|
1074
|
-
bottom: (E.bottom - y.bottom + v.bottom) / x.y,
|
|
1075
|
-
left: (y.left - E.left + v.left) / x.x,
|
|
1076
|
-
right: (E.right - y.right + v.right) / x.x
|
|
1077
|
-
};
|
|
1078
|
-
}
|
|
1079
|
-
const Lr = (e) => ({
|
|
1080
|
-
name: "arrow",
|
|
1081
|
-
options: e,
|
|
1082
|
-
async fn(t) {
|
|
1083
|
-
const {
|
|
1084
|
-
x: n,
|
|
1085
|
-
y: r,
|
|
1086
|
-
placement: o,
|
|
1087
|
-
rects: i,
|
|
1088
|
-
platform: s,
|
|
1089
|
-
elements: c,
|
|
1090
|
-
middlewareData: a
|
|
1091
|
-
} = t, {
|
|
1092
|
-
element: l,
|
|
1093
|
-
padding: h = 0
|
|
1094
|
-
} = K(e, t) || {};
|
|
1095
|
-
if (l == null)
|
|
1096
|
-
return {};
|
|
1097
|
-
const d = Kt(h), p = {
|
|
1098
|
-
x: n,
|
|
1099
|
-
y: r
|
|
1100
|
-
}, m = it(o), v = ot(m), u = await s.getDimensions(l), g = m === "y", y = g ? "top" : "left", w = g ? "bottom" : "right", b = g ? "clientHeight" : "clientWidth", x = i.reference[v] + i.reference[m] - p[m] - i.floating[v], E = p[m] - i.reference[m], C = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l));
|
|
1101
|
-
let S = C ? C[b] : 0;
|
|
1102
|
-
(!S || !await (s.isElement == null ? void 0 : s.isElement(C))) && (S = c.floating[b] || i.floating[v]);
|
|
1103
|
-
const A = x / 2 - E / 2, O = S / 2 - u[v] / 2 - 1, D = te(d[y], O), j = te(d[w], O), T = D, I = S - u[v] - j, N = S / 2 - u[v] / 2 + A, M = et(T, N, I), k = !a.arrow && pe(o) != null && N !== M && i.reference[v] / 2 - (N < T ? D : j) - u[v] / 2 < 0, P = k ? N < T ? N - T : N - I : 0;
|
|
1104
|
-
return {
|
|
1105
|
-
[m]: p[m] + P,
|
|
1106
|
-
data: {
|
|
1107
|
-
[m]: M,
|
|
1108
|
-
centerOffset: N - M - P,
|
|
1109
|
-
...k && {
|
|
1110
|
-
alignmentOffset: P
|
|
1111
|
-
}
|
|
1112
|
-
},
|
|
1113
|
-
reset: k
|
|
1114
|
-
};
|
|
1115
|
-
}
|
|
1116
|
-
}), Nr = function(e) {
|
|
1117
|
-
return e === void 0 && (e = {}), {
|
|
1118
|
-
name: "flip",
|
|
1119
|
-
options: e,
|
|
1120
|
-
async fn(t) {
|
|
1121
|
-
var n, r;
|
|
1122
|
-
const {
|
|
1123
|
-
placement: o,
|
|
1124
|
-
middlewareData: i,
|
|
1125
|
-
rects: s,
|
|
1126
|
-
initialPlacement: c,
|
|
1127
|
-
platform: a,
|
|
1128
|
-
elements: l
|
|
1129
|
-
} = t, {
|
|
1130
|
-
mainAxis: h = !0,
|
|
1131
|
-
crossAxis: d = !0,
|
|
1132
|
-
fallbackPlacements: p,
|
|
1133
|
-
fallbackStrategy: m = "bestFit",
|
|
1134
|
-
fallbackAxisSideDirection: v = "none",
|
|
1135
|
-
flipAlignment: u = !0,
|
|
1136
|
-
...g
|
|
1137
|
-
} = K(e, t);
|
|
1138
|
-
if ((n = i.arrow) != null && n.alignmentOffset)
|
|
1139
|
-
return {};
|
|
1140
|
-
const y = G(o), w = G(c) === c, b = await (a.isRTL == null ? void 0 : a.isRTL(l.floating)), x = p || (w || !u ? [_e(c)] : Pr(c));
|
|
1141
|
-
!p && v !== "none" && x.push(...Or(c, u, v, b));
|
|
1142
|
-
const E = [c, ...x], C = await Ce(t, g), S = [];
|
|
1143
|
-
let A = ((r = i.flip) == null ? void 0 : r.overflows) || [];
|
|
1144
|
-
if (h && S.push(C[y]), d) {
|
|
1145
|
-
const T = Ar(o, s, b);
|
|
1146
|
-
S.push(C[T[0]], C[T[1]]);
|
|
1147
|
-
}
|
|
1148
|
-
if (A = [...A, {
|
|
1149
|
-
placement: o,
|
|
1150
|
-
overflows: S
|
|
1151
|
-
}], !S.every((T) => T <= 0)) {
|
|
1152
|
-
var O, D;
|
|
1153
|
-
const T = (((O = i.flip) == null ? void 0 : O.index) || 0) + 1, I = E[T];
|
|
1154
|
-
if (I)
|
|
1155
|
-
return {
|
|
1156
|
-
data: {
|
|
1157
|
-
index: T,
|
|
1158
|
-
overflows: A
|
|
1159
|
-
},
|
|
1160
|
-
reset: {
|
|
1161
|
-
placement: I
|
|
1162
|
-
}
|
|
1163
|
-
};
|
|
1164
|
-
let N = (D = A.filter((M) => M.overflows[0] <= 0).sort((M, k) => M.overflows[1] - k.overflows[1])[0]) == null ? void 0 : D.placement;
|
|
1165
|
-
if (!N)
|
|
1166
|
-
switch (m) {
|
|
1167
|
-
case "bestFit": {
|
|
1168
|
-
var j;
|
|
1169
|
-
const M = (j = A.map((k) => [k.placement, k.overflows.filter((P) => P > 0).reduce((P, _) => P + _, 0)]).sort((k, P) => k[1] - P[1])[0]) == null ? void 0 : j[0];
|
|
1170
|
-
M && (N = M);
|
|
1171
|
-
break;
|
|
1172
|
-
}
|
|
1173
|
-
case "initialPlacement":
|
|
1174
|
-
N = c;
|
|
1175
|
-
break;
|
|
1176
|
-
}
|
|
1177
|
-
if (o !== N)
|
|
1178
|
-
return {
|
|
1179
|
-
reset: {
|
|
1180
|
-
placement: N
|
|
1181
|
-
}
|
|
1182
|
-
};
|
|
1183
|
-
}
|
|
1184
|
-
return {};
|
|
1185
|
-
}
|
|
1186
|
-
};
|
|
1187
|
-
};
|
|
1188
|
-
function Ot(e, t) {
|
|
1189
|
-
return {
|
|
1190
|
-
top: e.top - t.height,
|
|
1191
|
-
right: e.right - t.width,
|
|
1192
|
-
bottom: e.bottom - t.height,
|
|
1193
|
-
left: e.left - t.width
|
|
1194
|
-
};
|
|
1195
|
-
}
|
|
1196
|
-
function Mt(e) {
|
|
1197
|
-
return Er.some((t) => e[t] >= 0);
|
|
1198
|
-
}
|
|
1199
|
-
const Dr = function(e) {
|
|
1200
|
-
return e === void 0 && (e = {}), {
|
|
1201
|
-
name: "hide",
|
|
1202
|
-
options: e,
|
|
1203
|
-
async fn(t) {
|
|
1204
|
-
const {
|
|
1205
|
-
rects: n
|
|
1206
|
-
} = t, {
|
|
1207
|
-
strategy: r = "referenceHidden",
|
|
1208
|
-
...o
|
|
1209
|
-
} = K(e, t);
|
|
1210
|
-
switch (r) {
|
|
1211
|
-
case "referenceHidden": {
|
|
1212
|
-
const i = await Ce(t, {
|
|
1213
|
-
...o,
|
|
1214
|
-
elementContext: "reference"
|
|
1215
|
-
}), s = Ot(i, n.reference);
|
|
1216
|
-
return {
|
|
1217
|
-
data: {
|
|
1218
|
-
referenceHiddenOffsets: s,
|
|
1219
|
-
referenceHidden: Mt(s)
|
|
1220
|
-
}
|
|
1221
|
-
};
|
|
1222
|
-
}
|
|
1223
|
-
case "escaped": {
|
|
1224
|
-
const i = await Ce(t, {
|
|
1225
|
-
...o,
|
|
1226
|
-
altBoundary: !0
|
|
1227
|
-
}), s = Ot(i, n.floating);
|
|
1228
|
-
return {
|
|
1229
|
-
data: {
|
|
1230
|
-
escapedOffsets: s,
|
|
1231
|
-
escaped: Mt(s)
|
|
1232
|
-
}
|
|
1233
|
-
};
|
|
1234
|
-
}
|
|
1235
|
-
default:
|
|
1236
|
-
return {};
|
|
1237
|
-
}
|
|
1238
|
-
}
|
|
1239
|
-
};
|
|
1240
|
-
};
|
|
1241
|
-
async function kr(e, t) {
|
|
1242
|
-
const {
|
|
1243
|
-
placement: n,
|
|
1244
|
-
platform: r,
|
|
1245
|
-
elements: o
|
|
1246
|
-
} = 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);
|
|
1247
|
-
let {
|
|
1248
|
-
mainAxis: p,
|
|
1249
|
-
crossAxis: m,
|
|
1250
|
-
alignmentAxis: v
|
|
1251
|
-
} = typeof d == "number" ? {
|
|
1252
|
-
mainAxis: d,
|
|
1253
|
-
crossAxis: 0,
|
|
1254
|
-
alignmentAxis: null
|
|
1255
|
-
} : {
|
|
1256
|
-
mainAxis: 0,
|
|
1257
|
-
crossAxis: 0,
|
|
1258
|
-
alignmentAxis: null,
|
|
1259
|
-
...d
|
|
1260
|
-
};
|
|
1261
|
-
return c && typeof v == "number" && (m = c === "end" ? v * -1 : v), a ? {
|
|
1262
|
-
x: m * h,
|
|
1263
|
-
y: p * l
|
|
1264
|
-
} : {
|
|
1265
|
-
x: p * l,
|
|
1266
|
-
y: m * h
|
|
1267
|
-
};
|
|
1268
|
-
}
|
|
1269
|
-
const Fr = function(e) {
|
|
1270
|
-
return e === void 0 && (e = 0), {
|
|
1271
|
-
name: "offset",
|
|
1272
|
-
options: e,
|
|
1273
|
-
async fn(t) {
|
|
1274
|
-
var n, r;
|
|
1275
|
-
const {
|
|
1276
|
-
x: o,
|
|
1277
|
-
y: i,
|
|
1278
|
-
placement: s,
|
|
1279
|
-
middlewareData: c
|
|
1280
|
-
} = t, a = await kr(t, e);
|
|
1281
|
-
return s === ((n = c.offset) == null ? void 0 : n.placement) && (r = c.arrow) != null && r.alignmentOffset ? {} : {
|
|
1282
|
-
x: o + a.x,
|
|
1283
|
-
y: i + a.y,
|
|
1284
|
-
data: {
|
|
1285
|
-
...a,
|
|
1286
|
-
placement: s
|
|
1287
|
-
}
|
|
1288
|
-
};
|
|
1289
|
-
}
|
|
1290
|
-
};
|
|
1291
|
-
}, Ir = function(e) {
|
|
1292
|
-
return e === void 0 && (e = {}), {
|
|
1293
|
-
name: "shift",
|
|
1294
|
-
options: e,
|
|
1295
|
-
async fn(t) {
|
|
1296
|
-
const {
|
|
1297
|
-
x: n,
|
|
1298
|
-
y: r,
|
|
1299
|
-
placement: o
|
|
1300
|
-
} = t, {
|
|
1301
|
-
mainAxis: i = !0,
|
|
1302
|
-
crossAxis: s = !1,
|
|
1303
|
-
limiter: c = {
|
|
1304
|
-
fn: (g) => {
|
|
1305
|
-
let {
|
|
1306
|
-
x: y,
|
|
1307
|
-
y: w
|
|
1308
|
-
} = g;
|
|
1309
|
-
return {
|
|
1310
|
-
x: y,
|
|
1311
|
-
y: w
|
|
1312
|
-
};
|
|
1313
|
-
}
|
|
1314
|
-
},
|
|
1315
|
-
...a
|
|
1316
|
-
} = K(e, t), l = {
|
|
1317
|
-
x: n,
|
|
1318
|
-
y: r
|
|
1319
|
-
}, h = await Ce(t, a), d = ve(G(o)), p = rt(d);
|
|
1320
|
-
let m = l[p], v = l[d];
|
|
1321
|
-
if (i) {
|
|
1322
|
-
const g = p === "y" ? "top" : "left", y = p === "y" ? "bottom" : "right", w = m + h[g], b = m - h[y];
|
|
1323
|
-
m = et(w, m, b);
|
|
1324
|
-
}
|
|
1325
|
-
if (s) {
|
|
1326
|
-
const g = d === "y" ? "top" : "left", y = d === "y" ? "bottom" : "right", w = v + h[g], b = v - h[y];
|
|
1327
|
-
v = et(w, v, b);
|
|
1328
|
-
}
|
|
1329
|
-
const u = c.fn({
|
|
1330
|
-
...t,
|
|
1331
|
-
[p]: m,
|
|
1332
|
-
[d]: v
|
|
1333
|
-
});
|
|
1334
|
-
return {
|
|
1335
|
-
...u,
|
|
1336
|
-
data: {
|
|
1337
|
-
x: u.x - n,
|
|
1338
|
-
y: u.y - r
|
|
1339
|
-
}
|
|
1340
|
-
};
|
|
1341
|
-
}
|
|
1342
|
-
};
|
|
1343
|
-
}, _r = function(e) {
|
|
1344
|
-
return e === void 0 && (e = {}), {
|
|
1345
|
-
options: e,
|
|
1346
|
-
fn(t) {
|
|
1347
|
-
const {
|
|
1348
|
-
x: n,
|
|
1349
|
-
y: r,
|
|
1350
|
-
placement: o,
|
|
1351
|
-
rects: i,
|
|
1352
|
-
middlewareData: s
|
|
1353
|
-
} = t, {
|
|
1354
|
-
offset: c = 0,
|
|
1355
|
-
mainAxis: a = !0,
|
|
1356
|
-
crossAxis: l = !0
|
|
1357
|
-
} = K(e, t), h = {
|
|
1358
|
-
x: n,
|
|
1359
|
-
y: r
|
|
1360
|
-
}, d = ve(o), p = rt(d);
|
|
1361
|
-
let m = h[p], v = h[d];
|
|
1362
|
-
const u = K(c, t), g = typeof u == "number" ? {
|
|
1363
|
-
mainAxis: u,
|
|
1364
|
-
crossAxis: 0
|
|
1365
|
-
} : {
|
|
1366
|
-
mainAxis: 0,
|
|
1367
|
-
crossAxis: 0,
|
|
1368
|
-
...u
|
|
1369
|
-
};
|
|
1370
|
-
if (a) {
|
|
1371
|
-
const b = p === "y" ? "height" : "width", x = i.reference[p] - i.floating[b] + g.mainAxis, E = i.reference[p] + i.reference[b] - g.mainAxis;
|
|
1372
|
-
m < x ? m = x : m > E && (m = E);
|
|
1373
|
-
}
|
|
1374
|
-
if (l) {
|
|
1375
|
-
var y, w;
|
|
1376
|
-
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 : g.crossAxis), C = i.reference[d] + i.reference[b] + (x ? 0 : ((w = s.offset) == null ? void 0 : w[d]) || 0) - (x ? g.crossAxis : 0);
|
|
1377
|
-
v < E ? v = E : v > C && (v = C);
|
|
1378
|
-
}
|
|
1379
|
-
return {
|
|
1380
|
-
[p]: m,
|
|
1381
|
-
[d]: v
|
|
1382
|
-
};
|
|
1383
|
-
}
|
|
1384
|
-
};
|
|
1385
|
-
}, Wr = function(e) {
|
|
1386
|
-
return e === void 0 && (e = {}), {
|
|
1387
|
-
name: "size",
|
|
1388
|
-
options: e,
|
|
1389
|
-
async fn(t) {
|
|
1390
|
-
const {
|
|
1391
|
-
placement: n,
|
|
1392
|
-
rects: r,
|
|
1393
|
-
platform: o,
|
|
1394
|
-
elements: i
|
|
1395
|
-
} = t, {
|
|
1396
|
-
apply: s = () => {
|
|
1397
|
-
},
|
|
1398
|
-
...c
|
|
1399
|
-
} = K(e, t), a = await Ce(t, c), l = G(n), h = pe(n), d = ve(n) === "y", {
|
|
1400
|
-
width: p,
|
|
1401
|
-
height: m
|
|
1402
|
-
} = r.floating;
|
|
1403
|
-
let v, u;
|
|
1404
|
-
l === "top" || l === "bottom" ? (v = l, u = h === (await (o.isRTL == null ? void 0 : o.isRTL(i.floating)) ? "start" : "end") ? "left" : "right") : (u = l, v = h === "end" ? "top" : "bottom");
|
|
1405
|
-
const g = m - a[v], y = p - a[u], w = !t.middlewareData.shift;
|
|
1406
|
-
let b = g, x = y;
|
|
1407
|
-
if (d) {
|
|
1408
|
-
const C = p - a.left - a.right;
|
|
1409
|
-
x = h || w ? te(y, C) : C;
|
|
1410
|
-
} else {
|
|
1411
|
-
const C = m - a.top - a.bottom;
|
|
1412
|
-
b = h || w ? te(g, C) : C;
|
|
1413
|
-
}
|
|
1414
|
-
if (w && !h) {
|
|
1415
|
-
const C = W(a.left, 0), S = W(a.right, 0), A = W(a.top, 0), O = W(a.bottom, 0);
|
|
1416
|
-
d ? x = p - 2 * (C !== 0 || S !== 0 ? C + S : W(a.left, a.right)) : b = m - 2 * (A !== 0 || O !== 0 ? A + O : W(a.top, a.bottom));
|
|
1417
|
-
}
|
|
1418
|
-
await s({
|
|
1419
|
-
...t,
|
|
1420
|
-
availableWidth: x,
|
|
1421
|
-
availableHeight: b
|
|
1422
|
-
});
|
|
1423
|
-
const E = await o.getDimensions(i.floating);
|
|
1424
|
-
return p !== E.width || m !== E.height ? {
|
|
1425
|
-
reset: {
|
|
1426
|
-
rects: !0
|
|
1427
|
-
}
|
|
1428
|
-
} : {};
|
|
1429
|
-
}
|
|
1430
|
-
};
|
|
1431
|
-
};
|
|
1432
|
-
function ge(e) {
|
|
1433
|
-
return Gt(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
1434
|
-
}
|
|
1435
|
-
function B(e) {
|
|
1436
|
-
var t;
|
|
1437
|
-
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
1438
|
-
}
|
|
1439
|
-
function Z(e) {
|
|
1440
|
-
var t;
|
|
1441
|
-
return (t = (Gt(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
1442
|
-
}
|
|
1443
|
-
function Gt(e) {
|
|
1444
|
-
return e instanceof Node || e instanceof B(e).Node;
|
|
1445
|
-
}
|
|
1446
|
-
function U(e) {
|
|
1447
|
-
return e instanceof Element || e instanceof B(e).Element;
|
|
1448
|
-
}
|
|
1449
|
-
function Y(e) {
|
|
1450
|
-
return e instanceof HTMLElement || e instanceof B(e).HTMLElement;
|
|
1451
|
-
}
|
|
1452
|
-
function Tt(e) {
|
|
1453
|
-
return typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof B(e).ShadowRoot;
|
|
1454
|
-
}
|
|
1455
|
-
function Ae(e) {
|
|
1456
|
-
const {
|
|
1457
|
-
overflow: t,
|
|
1458
|
-
overflowX: n,
|
|
1459
|
-
overflowY: r,
|
|
1460
|
-
display: o
|
|
1461
|
-
} = $(e);
|
|
1462
|
-
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !["inline", "contents"].includes(o);
|
|
1463
|
-
}
|
|
1464
|
-
function Br(e) {
|
|
1465
|
-
return ["table", "td", "th"].includes(ge(e));
|
|
1466
|
-
}
|
|
1467
|
-
function st(e) {
|
|
1468
|
-
const t = ct(), n = $(e);
|
|
1469
|
-
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));
|
|
1470
|
-
}
|
|
1471
|
-
function jr(e) {
|
|
1472
|
-
let t = re(e);
|
|
1473
|
-
for (; Y(t) && !me(t); ) {
|
|
1474
|
-
if (st(t))
|
|
1475
|
-
return t;
|
|
1476
|
-
t = re(t);
|
|
1477
|
-
}
|
|
1478
|
-
return null;
|
|
1479
|
-
}
|
|
1480
|
-
function ct() {
|
|
1481
|
-
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
1482
|
-
}
|
|
1483
|
-
function me(e) {
|
|
1484
|
-
return ["html", "body", "#document"].includes(ge(e));
|
|
1485
|
-
}
|
|
1486
|
-
function $(e) {
|
|
1487
|
-
return B(e).getComputedStyle(e);
|
|
1488
|
-
}
|
|
1489
|
-
function je(e) {
|
|
1490
|
-
return U(e) ? {
|
|
1491
|
-
scrollLeft: e.scrollLeft,
|
|
1492
|
-
scrollTop: e.scrollTop
|
|
1493
|
-
} : {
|
|
1494
|
-
scrollLeft: e.pageXOffset,
|
|
1495
|
-
scrollTop: e.pageYOffset
|
|
1496
|
-
};
|
|
1497
|
-
}
|
|
1498
|
-
function re(e) {
|
|
1499
|
-
if (ge(e) === "html")
|
|
1500
|
-
return e;
|
|
1501
|
-
const t = (
|
|
1502
|
-
// Step into the shadow DOM of the parent of a slotted node.
|
|
1503
|
-
e.assignedSlot || // DOM Element detected.
|
|
1504
|
-
e.parentNode || // ShadowRoot detected.
|
|
1505
|
-
Tt(e) && e.host || // Fallback.
|
|
1506
|
-
Z(e)
|
|
1507
|
-
);
|
|
1508
|
-
return Tt(t) ? t.host : t;
|
|
1509
|
-
}
|
|
1510
|
-
function Zt(e) {
|
|
1511
|
-
const t = re(e);
|
|
1512
|
-
return me(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Y(t) && Ae(t) ? t : Zt(t);
|
|
1513
|
-
}
|
|
1514
|
-
function Se(e, t, n) {
|
|
1515
|
-
var r;
|
|
1516
|
-
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
1517
|
-
const o = Zt(e), i = o === ((r = e.ownerDocument) == null ? void 0 : r.body), s = B(o);
|
|
1518
|
-
return i ? t.concat(s, s.visualViewport || [], Ae(o) ? o : [], s.frameElement && n ? Se(s.frameElement) : []) : t.concat(o, Se(o, [], n));
|
|
1519
|
-
}
|
|
1520
|
-
function qt(e) {
|
|
1521
|
-
const t = $(e);
|
|
1522
|
-
let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
|
|
1523
|
-
const o = Y(e), i = o ? e.offsetWidth : n, s = o ? e.offsetHeight : r, c = Ie(n) !== i || Ie(r) !== s;
|
|
1524
|
-
return c && (n = i, r = s), {
|
|
1525
|
-
width: n,
|
|
1526
|
-
height: r,
|
|
1527
|
-
$: c
|
|
1528
|
-
};
|
|
1529
|
-
}
|
|
1530
|
-
function at(e) {
|
|
1531
|
-
return U(e) ? e : e.contextElement;
|
|
1532
|
-
}
|
|
1533
|
-
function de(e) {
|
|
1534
|
-
const t = at(e);
|
|
1535
|
-
if (!Y(t))
|
|
1536
|
-
return ne(1);
|
|
1537
|
-
const n = t.getBoundingClientRect(), {
|
|
1538
|
-
width: r,
|
|
1539
|
-
height: o,
|
|
1540
|
-
$: i
|
|
1541
|
-
} = qt(t);
|
|
1542
|
-
let s = (i ? Ie(n.width) : n.width) / r, c = (i ? Ie(n.height) : n.height) / o;
|
|
1543
|
-
return (!s || !Number.isFinite(s)) && (s = 1), (!c || !Number.isFinite(c)) && (c = 1), {
|
|
1544
|
-
x: s,
|
|
1545
|
-
y: c
|
|
1546
|
-
};
|
|
1547
|
-
}
|
|
1548
|
-
const $r = /* @__PURE__ */ ne(0);
|
|
1549
|
-
function Qt(e) {
|
|
1550
|
-
const t = B(e);
|
|
1551
|
-
return !ct() || !t.visualViewport ? $r : {
|
|
1552
|
-
x: t.visualViewport.offsetLeft,
|
|
1553
|
-
y: t.visualViewport.offsetTop
|
|
1554
|
-
};
|
|
1555
|
-
}
|
|
1556
|
-
function Hr(e, t, n) {
|
|
1557
|
-
return t === void 0 && (t = !1), !n || t && n !== B(e) ? !1 : t;
|
|
1558
|
-
}
|
|
1559
|
-
function ae(e, t, n, r) {
|
|
1560
|
-
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
1561
|
-
const o = e.getBoundingClientRect(), i = at(e);
|
|
1562
|
-
let s = ne(1);
|
|
1563
|
-
t && (r ? U(r) && (s = de(r)) : s = de(e));
|
|
1564
|
-
const c = Hr(i, n, r) ? Qt(i) : ne(0);
|
|
1565
|
-
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;
|
|
1566
|
-
if (i) {
|
|
1567
|
-
const p = B(i), m = r && U(r) ? B(r) : r;
|
|
1568
|
-
let v = p, u = v.frameElement;
|
|
1569
|
-
for (; u && r && m !== v; ) {
|
|
1570
|
-
const g = de(u), y = u.getBoundingClientRect(), w = $(u), b = y.left + (u.clientLeft + parseFloat(w.paddingLeft)) * g.x, x = y.top + (u.clientTop + parseFloat(w.paddingTop)) * g.y;
|
|
1571
|
-
a *= g.x, l *= g.y, h *= g.x, d *= g.y, a += b, l += x, v = B(u), u = v.frameElement;
|
|
1572
|
-
}
|
|
1573
|
-
}
|
|
1574
|
-
return We({
|
|
1575
|
-
width: h,
|
|
1576
|
-
height: d,
|
|
1577
|
-
x: a,
|
|
1578
|
-
y: l
|
|
1579
|
-
});
|
|
1580
|
-
}
|
|
1581
|
-
const Vr = [":popover-open", ":modal"];
|
|
1582
|
-
function lt(e) {
|
|
1583
|
-
return Vr.some((t) => {
|
|
1584
|
-
try {
|
|
1585
|
-
return e.matches(t);
|
|
1586
|
-
} catch {
|
|
1587
|
-
return !1;
|
|
1588
|
-
}
|
|
1589
|
-
});
|
|
1590
|
-
}
|
|
1591
|
-
function zr(e) {
|
|
1592
|
-
let {
|
|
1593
|
-
elements: t,
|
|
1594
|
-
rect: n,
|
|
1595
|
-
offsetParent: r,
|
|
1596
|
-
strategy: o
|
|
1597
|
-
} = e;
|
|
1598
|
-
const i = o === "fixed", s = Z(r), c = t ? lt(t.floating) : !1;
|
|
1599
|
-
if (r === s || c && i)
|
|
1600
|
-
return n;
|
|
1601
|
-
let a = {
|
|
1602
|
-
scrollLeft: 0,
|
|
1603
|
-
scrollTop: 0
|
|
1604
|
-
}, l = ne(1);
|
|
1605
|
-
const h = ne(0), d = Y(r);
|
|
1606
|
-
if ((d || !d && !i) && ((ge(r) !== "body" || Ae(s)) && (a = je(r)), Y(r))) {
|
|
1607
|
-
const p = ae(r);
|
|
1608
|
-
l = de(r), h.x = p.x + r.clientLeft, h.y = p.y + r.clientTop;
|
|
1609
|
-
}
|
|
1610
|
-
return {
|
|
1611
|
-
width: n.width * l.x,
|
|
1612
|
-
height: n.height * l.y,
|
|
1613
|
-
x: n.x * l.x - a.scrollLeft * l.x + h.x,
|
|
1614
|
-
y: n.y * l.y - a.scrollTop * l.y + h.y
|
|
1615
|
-
};
|
|
1616
|
-
}
|
|
1617
|
-
function Ur(e) {
|
|
1618
|
-
return Array.from(e.getClientRects());
|
|
1619
|
-
}
|
|
1620
|
-
function Jt(e) {
|
|
1621
|
-
return ae(Z(e)).left + je(e).scrollLeft;
|
|
1622
|
-
}
|
|
1623
|
-
function Yr(e) {
|
|
1624
|
-
const t = Z(e), n = je(e), r = e.ownerDocument.body, o = W(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), i = W(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
|
|
1625
|
-
let s = -n.scrollLeft + Jt(e);
|
|
1626
|
-
const c = -n.scrollTop;
|
|
1627
|
-
return $(r).direction === "rtl" && (s += W(t.clientWidth, r.clientWidth) - o), {
|
|
1628
|
-
width: o,
|
|
1629
|
-
height: i,
|
|
1630
|
-
x: s,
|
|
1631
|
-
y: c
|
|
1632
|
-
};
|
|
1633
|
-
}
|
|
1634
|
-
function Xr(e, t) {
|
|
1635
|
-
const n = B(e), r = Z(e), o = n.visualViewport;
|
|
1636
|
-
let i = r.clientWidth, s = r.clientHeight, c = 0, a = 0;
|
|
1637
|
-
if (o) {
|
|
1638
|
-
i = o.width, s = o.height;
|
|
1639
|
-
const l = ct();
|
|
1640
|
-
(!l || l && t === "fixed") && (c = o.offsetLeft, a = o.offsetTop);
|
|
1641
|
-
}
|
|
1642
|
-
return {
|
|
1643
|
-
width: i,
|
|
1644
|
-
height: s,
|
|
1645
|
-
x: c,
|
|
1646
|
-
y: a
|
|
1647
|
-
};
|
|
1648
|
-
}
|
|
1649
|
-
function Kr(e, t) {
|
|
1650
|
-
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;
|
|
1651
|
-
return {
|
|
1652
|
-
width: s,
|
|
1653
|
-
height: c,
|
|
1654
|
-
x: a,
|
|
1655
|
-
y: l
|
|
1656
|
-
};
|
|
1657
|
-
}
|
|
1658
|
-
function Lt(e, t, n) {
|
|
1659
|
-
let r;
|
|
1660
|
-
if (t === "viewport")
|
|
1661
|
-
r = Xr(e, n);
|
|
1662
|
-
else if (t === "document")
|
|
1663
|
-
r = Yr(Z(e));
|
|
1664
|
-
else if (U(t))
|
|
1665
|
-
r = Kr(t, n);
|
|
1666
|
-
else {
|
|
1667
|
-
const o = Qt(e);
|
|
1668
|
-
r = {
|
|
1669
|
-
...t,
|
|
1670
|
-
x: t.x - o.x,
|
|
1671
|
-
y: t.y - o.y
|
|
1672
|
-
};
|
|
1673
|
-
}
|
|
1674
|
-
return We(r);
|
|
1675
|
-
}
|
|
1676
|
-
function en(e, t) {
|
|
1677
|
-
const n = re(e);
|
|
1678
|
-
return n === t || !U(n) || me(n) ? !1 : $(n).position === "fixed" || en(n, t);
|
|
1679
|
-
}
|
|
1680
|
-
function Gr(e, t) {
|
|
1681
|
-
const n = t.get(e);
|
|
1682
|
-
if (n)
|
|
1683
|
-
return n;
|
|
1684
|
-
let r = Se(e, [], !1).filter((c) => U(c) && ge(c) !== "body"), o = null;
|
|
1685
|
-
const i = $(e).position === "fixed";
|
|
1686
|
-
let s = i ? re(e) : e;
|
|
1687
|
-
for (; U(s) && !me(s); ) {
|
|
1688
|
-
const c = $(s), a = st(s);
|
|
1689
|
-
!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);
|
|
1690
|
-
}
|
|
1691
|
-
return t.set(e, r), r;
|
|
1692
|
-
}
|
|
1693
|
-
function Zr(e) {
|
|
1694
|
-
let {
|
|
1695
|
-
element: t,
|
|
1696
|
-
boundary: n,
|
|
1697
|
-
rootBoundary: r,
|
|
1698
|
-
strategy: o
|
|
1699
|
-
} = e;
|
|
1700
|
-
const s = [...n === "clippingAncestors" ? lt(t) ? [] : Gr(t, this._c) : [].concat(n), r], c = s[0], a = s.reduce((l, h) => {
|
|
1701
|
-
const d = Lt(t, h, o);
|
|
1702
|
-
return l.top = W(d.top, l.top), l.right = te(d.right, l.right), l.bottom = te(d.bottom, l.bottom), l.left = W(d.left, l.left), l;
|
|
1703
|
-
}, Lt(t, c, o));
|
|
1704
|
-
return {
|
|
1705
|
-
width: a.right - a.left,
|
|
1706
|
-
height: a.bottom - a.top,
|
|
1707
|
-
x: a.left,
|
|
1708
|
-
y: a.top
|
|
1709
|
-
};
|
|
1710
|
-
}
|
|
1711
|
-
function qr(e) {
|
|
1712
|
-
const {
|
|
1713
|
-
width: t,
|
|
1714
|
-
height: n
|
|
1715
|
-
} = qt(e);
|
|
1716
|
-
return {
|
|
1717
|
-
width: t,
|
|
1718
|
-
height: n
|
|
1719
|
-
};
|
|
1720
|
-
}
|
|
1721
|
-
function Qr(e, t, n) {
|
|
1722
|
-
const r = Y(t), o = Z(t), i = n === "fixed", s = ae(e, !0, i, t);
|
|
1723
|
-
let c = {
|
|
1724
|
-
scrollLeft: 0,
|
|
1725
|
-
scrollTop: 0
|
|
1726
|
-
};
|
|
1727
|
-
const a = ne(0);
|
|
1728
|
-
if (r || !r && !i)
|
|
1729
|
-
if ((ge(t) !== "body" || Ae(o)) && (c = je(t)), r) {
|
|
1730
|
-
const d = ae(t, !0, i, t);
|
|
1731
|
-
a.x = d.x + t.clientLeft, a.y = d.y + t.clientTop;
|
|
1732
|
-
} else o && (a.x = Jt(o));
|
|
1733
|
-
const l = s.left + c.scrollLeft - a.x, h = s.top + c.scrollTop - a.y;
|
|
1734
|
-
return {
|
|
1735
|
-
x: l,
|
|
1736
|
-
y: h,
|
|
1737
|
-
width: s.width,
|
|
1738
|
-
height: s.height
|
|
1739
|
-
};
|
|
1740
|
-
}
|
|
1741
|
-
function Xe(e) {
|
|
1742
|
-
return $(e).position === "static";
|
|
1743
|
-
}
|
|
1744
|
-
function Nt(e, t) {
|
|
1745
|
-
return !Y(e) || $(e).position === "fixed" ? null : t ? t(e) : e.offsetParent;
|
|
1746
|
-
}
|
|
1747
|
-
function tn(e, t) {
|
|
1748
|
-
const n = B(e);
|
|
1749
|
-
if (lt(e))
|
|
1750
|
-
return n;
|
|
1751
|
-
if (!Y(e)) {
|
|
1752
|
-
let o = re(e);
|
|
1753
|
-
for (; o && !me(o); ) {
|
|
1754
|
-
if (U(o) && !Xe(o))
|
|
1755
|
-
return o;
|
|
1756
|
-
o = re(o);
|
|
1757
|
-
}
|
|
1758
|
-
return n;
|
|
1759
|
-
}
|
|
1760
|
-
let r = Nt(e, t);
|
|
1761
|
-
for (; r && Br(r) && Xe(r); )
|
|
1762
|
-
r = Nt(r, t);
|
|
1763
|
-
return r && me(r) && Xe(r) && !st(r) ? n : r || jr(e) || n;
|
|
1764
|
-
}
|
|
1765
|
-
const Jr = async function(e) {
|
|
1766
|
-
const t = this.getOffsetParent || tn, n = this.getDimensions, r = await n(e.floating);
|
|
1767
|
-
return {
|
|
1768
|
-
reference: Qr(e.reference, await t(e.floating), e.strategy),
|
|
1769
|
-
floating: {
|
|
1770
|
-
x: 0,
|
|
1771
|
-
y: 0,
|
|
1772
|
-
width: r.width,
|
|
1773
|
-
height: r.height
|
|
1774
|
-
}
|
|
1775
|
-
};
|
|
1776
|
-
};
|
|
1777
|
-
function eo(e) {
|
|
1778
|
-
return $(e).direction === "rtl";
|
|
1779
|
-
}
|
|
1780
|
-
const to = {
|
|
1781
|
-
convertOffsetParentRelativeRectToViewportRelativeRect: zr,
|
|
1782
|
-
getDocumentElement: Z,
|
|
1783
|
-
getClippingRect: Zr,
|
|
1784
|
-
getOffsetParent: tn,
|
|
1785
|
-
getElementRects: Jr,
|
|
1786
|
-
getClientRects: Ur,
|
|
1787
|
-
getDimensions: qr,
|
|
1788
|
-
getScale: de,
|
|
1789
|
-
isElement: U,
|
|
1790
|
-
isRTL: eo
|
|
1791
|
-
};
|
|
1792
|
-
function no(e, t) {
|
|
1793
|
-
let n = null, r;
|
|
1794
|
-
const o = Z(e);
|
|
1795
|
-
function i() {
|
|
1796
|
-
var c;
|
|
1797
|
-
clearTimeout(r), (c = n) == null || c.disconnect(), n = null;
|
|
1798
|
-
}
|
|
1799
|
-
function s(c, a) {
|
|
1800
|
-
c === void 0 && (c = !1), a === void 0 && (a = 1), i();
|
|
1801
|
-
const {
|
|
1802
|
-
left: l,
|
|
1803
|
-
top: h,
|
|
1804
|
-
width: d,
|
|
1805
|
-
height: p
|
|
1806
|
-
} = e.getBoundingClientRect();
|
|
1807
|
-
if (c || t(), !d || !p)
|
|
1808
|
-
return;
|
|
1809
|
-
const m = Oe(h), v = Oe(o.clientWidth - (l + d)), u = Oe(o.clientHeight - (h + p)), g = Oe(l), w = {
|
|
1810
|
-
rootMargin: -m + "px " + -v + "px " + -u + "px " + -g + "px",
|
|
1811
|
-
threshold: W(0, te(1, a)) || 1
|
|
1812
|
-
};
|
|
1813
|
-
let b = !0;
|
|
1814
|
-
function x(E) {
|
|
1815
|
-
const C = E[0].intersectionRatio;
|
|
1816
|
-
if (C !== a) {
|
|
1817
|
-
if (!b)
|
|
1818
|
-
return s();
|
|
1819
|
-
C ? s(!1, C) : r = setTimeout(() => {
|
|
1820
|
-
s(!1, 1e-7);
|
|
1821
|
-
}, 1e3);
|
|
1822
|
-
}
|
|
1823
|
-
b = !1;
|
|
1824
|
-
}
|
|
1825
|
-
try {
|
|
1826
|
-
n = new IntersectionObserver(x, {
|
|
1827
|
-
...w,
|
|
1828
|
-
// Handle <iframe>s
|
|
1829
|
-
root: o.ownerDocument
|
|
1830
|
-
});
|
|
1831
|
-
} catch {
|
|
1832
|
-
n = new IntersectionObserver(x, w);
|
|
1833
|
-
}
|
|
1834
|
-
n.observe(e);
|
|
1835
|
-
}
|
|
1836
|
-
return s(!0), i;
|
|
1837
|
-
}
|
|
1838
|
-
function ro(e, t, n, r) {
|
|
1839
|
-
r === void 0 && (r = {});
|
|
1840
|
-
const {
|
|
1841
|
-
ancestorScroll: o = !0,
|
|
1842
|
-
ancestorResize: i = !0,
|
|
1843
|
-
elementResize: s = typeof ResizeObserver == "function",
|
|
1844
|
-
layoutShift: c = typeof IntersectionObserver == "function",
|
|
1845
|
-
animationFrame: a = !1
|
|
1846
|
-
} = r, l = at(e), h = o || i ? [...l ? Se(l) : [], ...Se(t)] : [];
|
|
1847
|
-
h.forEach((y) => {
|
|
1848
|
-
o && y.addEventListener("scroll", n, {
|
|
1849
|
-
passive: !0
|
|
1850
|
-
}), i && y.addEventListener("resize", n);
|
|
1851
|
-
});
|
|
1852
|
-
const d = l && c ? no(l, n) : null;
|
|
1853
|
-
let p = -1, m = null;
|
|
1854
|
-
s && (m = new ResizeObserver((y) => {
|
|
1855
|
-
let [w] = y;
|
|
1856
|
-
w && w.target === l && m && (m.unobserve(t), cancelAnimationFrame(p), p = requestAnimationFrame(() => {
|
|
1857
|
-
var b;
|
|
1858
|
-
(b = m) == null || b.observe(t);
|
|
1859
|
-
})), n();
|
|
1860
|
-
}), l && !a && m.observe(l), m.observe(t));
|
|
1861
|
-
let v, u = a ? ae(e) : null;
|
|
1862
|
-
a && g();
|
|
1863
|
-
function g() {
|
|
1864
|
-
const y = ae(e);
|
|
1865
|
-
u && (y.x !== u.x || y.y !== u.y || y.width !== u.width || y.height !== u.height) && n(), u = y, v = requestAnimationFrame(g);
|
|
1866
|
-
}
|
|
1867
|
-
return n(), () => {
|
|
1868
|
-
var y;
|
|
1869
|
-
h.forEach((w) => {
|
|
1870
|
-
o && w.removeEventListener("scroll", n), i && w.removeEventListener("resize", n);
|
|
1871
|
-
}), d == null || d(), (y = m) == null || y.disconnect(), m = null, a && cancelAnimationFrame(v);
|
|
1872
|
-
};
|
|
1873
|
-
}
|
|
1874
|
-
const oo = Fr, io = Ir, so = Nr, co = Wr, ao = Dr, Dt = Lr, lo = _r, uo = (e, t, n) => {
|
|
1875
|
-
const r = /* @__PURE__ */ new Map(), o = {
|
|
1876
|
-
platform: to,
|
|
1877
|
-
...n
|
|
1878
|
-
}, i = {
|
|
1879
|
-
...o.platform,
|
|
1880
|
-
_c: r
|
|
1881
|
-
};
|
|
1882
|
-
return Tr(e, t, {
|
|
1883
|
-
...o,
|
|
1884
|
-
platform: i
|
|
1885
|
-
});
|
|
1886
|
-
}, fo = (e) => {
|
|
1887
|
-
function t(n) {
|
|
1888
|
-
return {}.hasOwnProperty.call(n, "current");
|
|
1889
|
-
}
|
|
1890
|
-
return {
|
|
1891
|
-
name: "arrow",
|
|
1892
|
-
options: e,
|
|
1893
|
-
fn(n) {
|
|
1894
|
-
const {
|
|
1895
|
-
element: r,
|
|
1896
|
-
padding: o
|
|
1897
|
-
} = typeof e == "function" ? e(n) : e;
|
|
1898
|
-
return r && t(r) ? r.current != null ? Dt({
|
|
1899
|
-
element: r.current,
|
|
1900
|
-
padding: o
|
|
1901
|
-
}).fn(n) : {} : r ? Dt({
|
|
1902
|
-
element: r,
|
|
1903
|
-
padding: o
|
|
1904
|
-
}).fn(n) : {};
|
|
1905
|
-
}
|
|
1906
|
-
};
|
|
1907
|
-
};
|
|
1908
|
-
var De = typeof document < "u" ? kn : Fn;
|
|
1909
|
-
function Be(e, t) {
|
|
1910
|
-
if (e === t)
|
|
1911
|
-
return !0;
|
|
1912
|
-
if (typeof e != typeof t)
|
|
1913
|
-
return !1;
|
|
1914
|
-
if (typeof e == "function" && e.toString() === t.toString())
|
|
1915
|
-
return !0;
|
|
1916
|
-
let n, r, o;
|
|
1917
|
-
if (e && t && typeof e == "object") {
|
|
1918
|
-
if (Array.isArray(e)) {
|
|
1919
|
-
if (n = e.length, n !== t.length) return !1;
|
|
1920
|
-
for (r = n; r-- !== 0; )
|
|
1921
|
-
if (!Be(e[r], t[r]))
|
|
1922
|
-
return !1;
|
|
1923
|
-
return !0;
|
|
1924
|
-
}
|
|
1925
|
-
if (o = Object.keys(e), n = o.length, n !== Object.keys(t).length)
|
|
1926
|
-
return !1;
|
|
1927
|
-
for (r = n; r-- !== 0; )
|
|
1928
|
-
if (!{}.hasOwnProperty.call(t, o[r]))
|
|
1929
|
-
return !1;
|
|
1930
|
-
for (r = n; r-- !== 0; ) {
|
|
1931
|
-
const i = o[r];
|
|
1932
|
-
if (!(i === "_owner" && e.$$typeof) && !Be(e[i], t[i]))
|
|
1933
|
-
return !1;
|
|
1934
|
-
}
|
|
1935
|
-
return !0;
|
|
1936
|
-
}
|
|
1937
|
-
return e !== e && t !== t;
|
|
1938
|
-
}
|
|
1939
|
-
function nn(e) {
|
|
1940
|
-
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
1941
|
-
}
|
|
1942
|
-
function kt(e, t) {
|
|
1943
|
-
const n = nn(e);
|
|
1944
|
-
return Math.round(t * n) / n;
|
|
1945
|
-
}
|
|
1946
|
-
function Ft(e) {
|
|
1947
|
-
const t = f.useRef(e);
|
|
1948
|
-
return De(() => {
|
|
1949
|
-
t.current = e;
|
|
1950
|
-
}), t;
|
|
1951
|
-
}
|
|
1952
|
-
function ho(e) {
|
|
1953
|
-
e === void 0 && (e = {});
|
|
1954
|
-
const {
|
|
1955
|
-
placement: t = "bottom",
|
|
1956
|
-
strategy: n = "absolute",
|
|
1957
|
-
middleware: r = [],
|
|
1958
|
-
platform: o,
|
|
1959
|
-
elements: {
|
|
1960
|
-
reference: i,
|
|
1961
|
-
floating: s
|
|
1962
|
-
} = {},
|
|
1963
|
-
transform: c = !0,
|
|
1964
|
-
whileElementsMounted: a,
|
|
1965
|
-
open: l
|
|
1966
|
-
} = e, [h, d] = f.useState({
|
|
1967
|
-
x: 0,
|
|
1968
|
-
y: 0,
|
|
1969
|
-
strategy: n,
|
|
1970
|
-
placement: t,
|
|
1971
|
-
middlewareData: {},
|
|
1972
|
-
isPositioned: !1
|
|
1973
|
-
}), [p, m] = f.useState(r);
|
|
1974
|
-
Be(p, r) || m(r);
|
|
1975
|
-
const [v, u] = f.useState(null), [g, y] = f.useState(null), w = f.useCallback((P) => {
|
|
1976
|
-
P !== C.current && (C.current = P, u(P));
|
|
1977
|
-
}, []), b = f.useCallback((P) => {
|
|
1978
|
-
P !== S.current && (S.current = P, y(P));
|
|
1979
|
-
}, []), x = i || v, E = s || g, C = f.useRef(null), S = f.useRef(null), A = f.useRef(h), O = a != null, D = Ft(a), j = Ft(o), T = f.useCallback(() => {
|
|
1980
|
-
if (!C.current || !S.current)
|
|
1981
|
-
return;
|
|
1982
|
-
const P = {
|
|
1983
|
-
placement: t,
|
|
1984
|
-
strategy: n,
|
|
1985
|
-
middleware: p
|
|
1986
|
-
};
|
|
1987
|
-
j.current && (P.platform = j.current), uo(C.current, S.current, P).then((_) => {
|
|
1988
|
-
const X = {
|
|
1989
|
-
..._,
|
|
1990
|
-
isPositioned: !0
|
|
1991
|
-
};
|
|
1992
|
-
I.current && !Be(A.current, X) && (A.current = X, Ht.flushSync(() => {
|
|
1993
|
-
d(X);
|
|
1994
|
-
}));
|
|
1995
|
-
});
|
|
1996
|
-
}, [p, t, n, j]);
|
|
1997
|
-
De(() => {
|
|
1998
|
-
l === !1 && A.current.isPositioned && (A.current.isPositioned = !1, d((P) => ({
|
|
1999
|
-
...P,
|
|
2000
|
-
isPositioned: !1
|
|
2001
|
-
})));
|
|
2002
|
-
}, [l]);
|
|
2003
|
-
const I = f.useRef(!1);
|
|
2004
|
-
De(() => (I.current = !0, () => {
|
|
2005
|
-
I.current = !1;
|
|
2006
|
-
}), []), De(() => {
|
|
2007
|
-
if (x && (C.current = x), E && (S.current = E), x && E) {
|
|
2008
|
-
if (D.current)
|
|
2009
|
-
return D.current(x, E, T);
|
|
2010
|
-
T();
|
|
2011
|
-
}
|
|
2012
|
-
}, [x, E, T, D, O]);
|
|
2013
|
-
const N = f.useMemo(() => ({
|
|
2014
|
-
reference: C,
|
|
2015
|
-
floating: S,
|
|
2016
|
-
setReference: w,
|
|
2017
|
-
setFloating: b
|
|
2018
|
-
}), [w, b]), M = f.useMemo(() => ({
|
|
2019
|
-
reference: x,
|
|
2020
|
-
floating: E
|
|
2021
|
-
}), [x, E]), k = f.useMemo(() => {
|
|
2022
|
-
const P = {
|
|
2023
|
-
position: n,
|
|
2024
|
-
left: 0,
|
|
2025
|
-
top: 0
|
|
2026
|
-
};
|
|
2027
|
-
if (!M.floating)
|
|
2028
|
-
return P;
|
|
2029
|
-
const _ = kt(M.floating, h.x), X = kt(M.floating, h.y);
|
|
2030
|
-
return c ? {
|
|
2031
|
-
...P,
|
|
2032
|
-
transform: "translate(" + _ + "px, " + X + "px)",
|
|
2033
|
-
...nn(M.floating) >= 1.5 && {
|
|
2034
|
-
willChange: "transform"
|
|
2035
|
-
}
|
|
2036
|
-
} : {
|
|
2037
|
-
position: n,
|
|
2038
|
-
left: _,
|
|
2039
|
-
top: X
|
|
2040
|
-
};
|
|
2041
|
-
}, [n, c, M.floating, h.x, h.y]);
|
|
2042
|
-
return f.useMemo(() => ({
|
|
2043
|
-
...h,
|
|
2044
|
-
update: T,
|
|
2045
|
-
refs: N,
|
|
2046
|
-
elements: M,
|
|
2047
|
-
floatingStyles: k
|
|
2048
|
-
}), [h, T, N, M, k]);
|
|
2049
|
-
}
|
|
2050
|
-
var mo = "Arrow", rn = f.forwardRef((e, t) => {
|
|
2051
|
-
const { children: n, width: r = 10, height: o = 5, ...i } = e;
|
|
2052
|
-
return /* @__PURE__ */ R.jsx(
|
|
2053
|
-
oe.svg,
|
|
2054
|
-
{
|
|
2055
|
-
...i,
|
|
2056
|
-
ref: t,
|
|
2057
|
-
width: r,
|
|
2058
|
-
height: o,
|
|
2059
|
-
viewBox: "0 0 30 10",
|
|
2060
|
-
preserveAspectRatio: "none",
|
|
2061
|
-
children: e.asChild ? n : /* @__PURE__ */ R.jsx("polygon", { points: "0,0 30,0 15,10" })
|
|
2062
|
-
}
|
|
2063
|
-
);
|
|
2064
|
-
});
|
|
2065
|
-
rn.displayName = mo;
|
|
2066
|
-
var po = rn;
|
|
2067
|
-
function vo(e) {
|
|
2068
|
-
const [t, n] = f.useState(void 0);
|
|
2069
|
-
return Ee(() => {
|
|
2070
|
-
if (e) {
|
|
2071
|
-
n({ width: e.offsetWidth, height: e.offsetHeight });
|
|
2072
|
-
const r = new ResizeObserver((o) => {
|
|
2073
|
-
if (!Array.isArray(o) || !o.length)
|
|
2074
|
-
return;
|
|
2075
|
-
const i = o[0];
|
|
2076
|
-
let s, c;
|
|
2077
|
-
if ("borderBoxSize" in i) {
|
|
2078
|
-
const a = i.borderBoxSize, l = Array.isArray(a) ? a[0] : a;
|
|
2079
|
-
s = l.inlineSize, c = l.blockSize;
|
|
2080
|
-
} else
|
|
2081
|
-
s = e.offsetWidth, c = e.offsetHeight;
|
|
2082
|
-
n({ width: s, height: c });
|
|
2083
|
-
});
|
|
2084
|
-
return r.observe(e, { box: "border-box" }), () => r.unobserve(e);
|
|
2085
|
-
} else
|
|
2086
|
-
n(void 0);
|
|
2087
|
-
}, [e]), t;
|
|
2088
|
-
}
|
|
2089
|
-
var ut = "Popper", [on, Mi] = zt(ut), [go, sn] = on(ut), cn = (e) => {
|
|
2090
|
-
const { __scopePopper: t, children: n } = e, [r, o] = f.useState(null);
|
|
2091
|
-
return /* @__PURE__ */ R.jsx(go, { scope: t, anchor: r, onAnchorChange: o, children: n });
|
|
2092
|
-
};
|
|
2093
|
-
cn.displayName = ut;
|
|
2094
|
-
var an = "PopperAnchor", ln = f.forwardRef(
|
|
2095
|
-
(e, t) => {
|
|
2096
|
-
const { __scopePopper: n, virtualRef: r, ...o } = e, i = sn(an, n), s = f.useRef(null), c = ce(t, s);
|
|
2097
|
-
return f.useEffect(() => {
|
|
2098
|
-
i.onAnchorChange((r == null ? void 0 : r.current) || s.current);
|
|
2099
|
-
}), r ? null : /* @__PURE__ */ R.jsx(oe.div, { ...o, ref: c });
|
|
2100
|
-
}
|
|
2101
|
-
);
|
|
2102
|
-
ln.displayName = an;
|
|
2103
|
-
var ft = "PopperContent", [yo, wo] = on(ft), un = f.forwardRef(
|
|
2104
|
-
(e, t) => {
|
|
2105
|
-
var dt, ht, mt, pt, vt, gt;
|
|
2106
|
-
const {
|
|
2107
|
-
__scopePopper: n,
|
|
2108
|
-
side: r = "bottom",
|
|
2109
|
-
sideOffset: o = 0,
|
|
2110
|
-
align: i = "center",
|
|
2111
|
-
alignOffset: s = 0,
|
|
2112
|
-
arrowPadding: c = 0,
|
|
2113
|
-
avoidCollisions: a = !0,
|
|
2114
|
-
collisionBoundary: l = [],
|
|
2115
|
-
collisionPadding: h = 0,
|
|
2116
|
-
sticky: d = "partial",
|
|
2117
|
-
hideWhenDetached: p = !1,
|
|
2118
|
-
updatePositionStrategy: m = "optimized",
|
|
2119
|
-
onPlaced: v,
|
|
2120
|
-
...u
|
|
2121
|
-
} = e, g = sn(ft, n), [y, w] = f.useState(null), b = ce(t, (ye) => w(ye)), [x, E] = f.useState(null), C = vo(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], T = j.length > 0, I = {
|
|
2122
|
-
padding: D,
|
|
2123
|
-
boundary: j.filter(bo),
|
|
2124
|
-
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
2125
|
-
altBoundary: T
|
|
2126
|
-
}, { refs: N, floatingStyles: M, placement: k, isPositioned: P, middlewareData: _ } = ho({
|
|
2127
|
-
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
2128
|
-
strategy: "fixed",
|
|
2129
|
-
placement: O,
|
|
2130
|
-
whileElementsMounted: (...ye) => ro(...ye, {
|
|
2131
|
-
animationFrame: m === "always"
|
|
2132
|
-
}),
|
|
2133
|
-
elements: {
|
|
2134
|
-
reference: g.anchor
|
|
2135
|
-
},
|
|
2136
|
-
middleware: [
|
|
2137
|
-
oo({ mainAxis: o + A, alignmentAxis: s }),
|
|
2138
|
-
a && io({
|
|
2139
|
-
mainAxis: !0,
|
|
2140
|
-
crossAxis: !1,
|
|
2141
|
-
limiter: d === "partial" ? lo() : void 0,
|
|
2142
|
-
...I
|
|
2143
|
-
}),
|
|
2144
|
-
a && so({ ...I }),
|
|
2145
|
-
co({
|
|
2146
|
-
...I,
|
|
2147
|
-
apply: ({ elements: ye, rects: yt, availableWidth: On, availableHeight: Mn }) => {
|
|
2148
|
-
const { width: Tn, height: Ln } = yt.reference, Re = ye.floating.style;
|
|
2149
|
-
Re.setProperty("--radix-popper-available-width", `${On}px`), Re.setProperty("--radix-popper-available-height", `${Mn}px`), Re.setProperty("--radix-popper-anchor-width", `${Tn}px`), Re.setProperty("--radix-popper-anchor-height", `${Ln}px`);
|
|
2150
|
-
}
|
|
2151
|
-
}),
|
|
2152
|
-
x && fo({ element: x, padding: c }),
|
|
2153
|
-
Eo({ arrowWidth: S, arrowHeight: A }),
|
|
2154
|
-
p && ao({ strategy: "referenceHidden", ...I })
|
|
2155
|
-
]
|
|
2156
|
-
}), [X, En] = hn(k), Pe = ee(v);
|
|
2157
|
-
Ee(() => {
|
|
2158
|
-
P && (Pe == null || Pe());
|
|
2159
|
-
}, [P, Pe]);
|
|
2160
|
-
const Cn = (dt = _.arrow) == null ? void 0 : dt.x, Sn = (ht = _.arrow) == null ? void 0 : ht.y, An = ((mt = _.arrow) == null ? void 0 : mt.centerOffset) !== 0, [Pn, Rn] = f.useState();
|
|
2161
|
-
return Ee(() => {
|
|
2162
|
-
y && Rn(window.getComputedStyle(y).zIndex);
|
|
2163
|
-
}, [y]), /* @__PURE__ */ R.jsx(
|
|
2164
|
-
"div",
|
|
2165
|
-
{
|
|
2166
|
-
ref: N.setFloating,
|
|
2167
|
-
"data-radix-popper-content-wrapper": "",
|
|
2168
|
-
style: {
|
|
2169
|
-
...M,
|
|
2170
|
-
transform: P ? M.transform : "translate(0, -200%)",
|
|
2171
|
-
// keep off the page when measuring
|
|
2172
|
-
minWidth: "max-content",
|
|
2173
|
-
zIndex: Pn,
|
|
2174
|
-
"--radix-popper-transform-origin": [
|
|
2175
|
-
(pt = _.transformOrigin) == null ? void 0 : pt.x,
|
|
2176
|
-
(vt = _.transformOrigin) == null ? void 0 : vt.y
|
|
2177
|
-
].join(" "),
|
|
2178
|
-
// hide the content if using the hide middleware and should be hidden
|
|
2179
|
-
// set visibility to hidden and disable pointer events so the UI behaves
|
|
2180
|
-
// as if the PopperContent isn't there at all
|
|
2181
|
-
...((gt = _.hide) == null ? void 0 : gt.referenceHidden) && {
|
|
2182
|
-
visibility: "hidden",
|
|
2183
|
-
pointerEvents: "none"
|
|
2184
|
-
}
|
|
2185
|
-
},
|
|
2186
|
-
dir: e.dir,
|
|
2187
|
-
children: /* @__PURE__ */ R.jsx(
|
|
2188
|
-
yo,
|
|
2189
|
-
{
|
|
2190
|
-
scope: n,
|
|
2191
|
-
placedSide: X,
|
|
2192
|
-
onArrowChange: E,
|
|
2193
|
-
arrowX: Cn,
|
|
2194
|
-
arrowY: Sn,
|
|
2195
|
-
shouldHideArrow: An,
|
|
2196
|
-
children: /* @__PURE__ */ R.jsx(
|
|
2197
|
-
oe.div,
|
|
2198
|
-
{
|
|
2199
|
-
"data-side": X,
|
|
2200
|
-
"data-align": En,
|
|
2201
|
-
...u,
|
|
2202
|
-
ref: b,
|
|
2203
|
-
style: {
|
|
2204
|
-
...u.style,
|
|
2205
|
-
// if the PopperContent hasn't been placed yet (not all measurements done)
|
|
2206
|
-
// we prevent animations so that users's animation don't kick in too early referring wrong sides
|
|
2207
|
-
animation: P ? void 0 : "none"
|
|
2208
|
-
}
|
|
2209
|
-
}
|
|
2210
|
-
)
|
|
2211
|
-
}
|
|
2212
|
-
)
|
|
2213
|
-
}
|
|
2214
|
-
);
|
|
2215
|
-
}
|
|
2216
|
-
);
|
|
2217
|
-
un.displayName = ft;
|
|
2218
|
-
var fn = "PopperArrow", xo = {
|
|
2219
|
-
top: "bottom",
|
|
2220
|
-
right: "left",
|
|
2221
|
-
bottom: "top",
|
|
2222
|
-
left: "right"
|
|
2223
|
-
}, dn = f.forwardRef(function(t, n) {
|
|
2224
|
-
const { __scopePopper: r, ...o } = t, i = wo(fn, r), s = xo[i.placedSide];
|
|
2225
|
-
return (
|
|
2226
|
-
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
2227
|
-
// doesn't report size as we'd expect on SVG elements.
|
|
2228
|
-
// it reports their bounding box which is effectively the largest path inside the SVG.
|
|
2229
|
-
/* @__PURE__ */ R.jsx(
|
|
2230
|
-
"span",
|
|
2231
|
-
{
|
|
2232
|
-
ref: i.onArrowChange,
|
|
2233
|
-
style: {
|
|
2234
|
-
position: "absolute",
|
|
2235
|
-
left: i.arrowX,
|
|
2236
|
-
top: i.arrowY,
|
|
2237
|
-
[s]: 0,
|
|
2238
|
-
transformOrigin: {
|
|
2239
|
-
top: "",
|
|
2240
|
-
right: "0 0",
|
|
2241
|
-
bottom: "center 0",
|
|
2242
|
-
left: "100% 0"
|
|
2243
|
-
}[i.placedSide],
|
|
2244
|
-
transform: {
|
|
2245
|
-
top: "translateY(100%)",
|
|
2246
|
-
right: "translateY(50%) rotate(90deg) translateX(-50%)",
|
|
2247
|
-
bottom: "rotate(180deg)",
|
|
2248
|
-
left: "translateY(50%) rotate(-90deg) translateX(50%)"
|
|
2249
|
-
}[i.placedSide],
|
|
2250
|
-
visibility: i.shouldHideArrow ? "hidden" : void 0
|
|
2251
|
-
},
|
|
2252
|
-
children: /* @__PURE__ */ R.jsx(
|
|
2253
|
-
po,
|
|
2254
|
-
{
|
|
2255
|
-
...o,
|
|
2256
|
-
ref: n,
|
|
2257
|
-
style: {
|
|
2258
|
-
...o.style,
|
|
2259
|
-
// ensures the element can be measured correctly (mostly for if SVG)
|
|
2260
|
-
display: "block"
|
|
2261
|
-
}
|
|
2262
|
-
}
|
|
2263
|
-
)
|
|
2264
|
-
}
|
|
2265
|
-
)
|
|
2266
|
-
);
|
|
2267
|
-
});
|
|
2268
|
-
dn.displayName = fn;
|
|
2269
|
-
function bo(e) {
|
|
2270
|
-
return e !== null;
|
|
2271
|
-
}
|
|
2272
|
-
var Eo = (e) => ({
|
|
2273
|
-
name: "transformOrigin",
|
|
2274
|
-
options: e,
|
|
2275
|
-
fn(t) {
|
|
2276
|
-
var g, y, w;
|
|
2277
|
-
const { placement: n, rects: r, middlewareData: o } = t, s = ((g = o.arrow) == null ? void 0 : g.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;
|
|
2278
|
-
let v = "", u = "";
|
|
2279
|
-
return l === "bottom" ? (v = s ? d : `${p}px`, u = `${-a}px`) : l === "top" ? (v = s ? d : `${p}px`, u = `${r.floating.height + a}px`) : l === "right" ? (v = `${-a}px`, u = s ? d : `${m}px`) : l === "left" && (v = `${r.floating.width + a}px`, u = s ? d : `${m}px`), { data: { x: v, y: u } };
|
|
2280
|
-
}
|
|
2281
|
-
});
|
|
2282
|
-
function hn(e) {
|
|
2283
|
-
const [t, n = "center"] = e.split("-");
|
|
2284
|
-
return [t, n];
|
|
2285
|
-
}
|
|
2286
|
-
var Ti = cn, Li = ln, Ni = un, Di = dn, Co = "Portal", So = f.forwardRef((e, t) => {
|
|
2287
|
-
var c;
|
|
2288
|
-
const { container: n, ...r } = e, [o, i] = f.useState(!1);
|
|
2289
|
-
Ee(() => i(!0), []);
|
|
2290
|
-
const s = n || o && ((c = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : c.body);
|
|
2291
|
-
return s ? Hn.createPortal(/* @__PURE__ */ R.jsx(oe.div, { ...r, ref: t }), s) : null;
|
|
2292
|
-
});
|
|
2293
|
-
So.displayName = Co;
|
|
2294
|
-
var Ao = function(e) {
|
|
2295
|
-
if (typeof document > "u")
|
|
2296
|
-
return null;
|
|
2297
|
-
var t = Array.isArray(e) ? e[0] : e;
|
|
2298
|
-
return t.ownerDocument.body;
|
|
2299
|
-
}, le = /* @__PURE__ */ new WeakMap(), Me = /* @__PURE__ */ new WeakMap(), Te = {}, Ke = 0, mn = function(e) {
|
|
2300
|
-
return e && (e.host || mn(e.parentNode));
|
|
2301
|
-
}, Po = function(e, t) {
|
|
2302
|
-
return t.map(function(n) {
|
|
2303
|
-
if (e.contains(n))
|
|
2304
|
-
return n;
|
|
2305
|
-
var r = mn(n);
|
|
2306
|
-
return r && e.contains(r) ? r : (console.error("aria-hidden", n, "in not contained inside", e, ". Doing nothing"), null);
|
|
2307
|
-
}).filter(function(n) {
|
|
2308
|
-
return !!n;
|
|
2309
|
-
});
|
|
2310
|
-
}, Ro = function(e, t, n, r) {
|
|
2311
|
-
var o = Po(t, Array.isArray(e) ? e : [e]);
|
|
2312
|
-
Te[n] || (Te[n] = /* @__PURE__ */ new WeakMap());
|
|
2313
|
-
var i = Te[n], s = [], c = /* @__PURE__ */ new Set(), a = new Set(o), l = function(d) {
|
|
2314
|
-
!d || c.has(d) || (c.add(d), l(d.parentNode));
|
|
2315
|
-
};
|
|
2316
|
-
o.forEach(l);
|
|
2317
|
-
var h = function(d) {
|
|
2318
|
-
!d || a.has(d) || Array.prototype.forEach.call(d.children, function(p) {
|
|
2319
|
-
if (c.has(p))
|
|
2320
|
-
h(p);
|
|
2321
|
-
else
|
|
2322
|
-
try {
|
|
2323
|
-
var m = p.getAttribute(r), v = m !== null && m !== "false", u = (le.get(p) || 0) + 1, g = (i.get(p) || 0) + 1;
|
|
2324
|
-
le.set(p, u), i.set(p, g), s.push(p), u === 1 && v && Me.set(p, !0), g === 1 && p.setAttribute(n, "true"), v || p.setAttribute(r, "true");
|
|
2325
|
-
} catch (y) {
|
|
2326
|
-
console.error("aria-hidden: cannot operate on ", p, y);
|
|
2327
|
-
}
|
|
2328
|
-
});
|
|
2329
|
-
};
|
|
2330
|
-
return h(t), c.clear(), Ke++, function() {
|
|
2331
|
-
s.forEach(function(d) {
|
|
2332
|
-
var p = le.get(d) - 1, m = i.get(d) - 1;
|
|
2333
|
-
le.set(d, p), i.set(d, m), p || (Me.has(d) || d.removeAttribute(r), Me.delete(d)), m || d.removeAttribute(n);
|
|
2334
|
-
}), Ke--, Ke || (le = /* @__PURE__ */ new WeakMap(), le = /* @__PURE__ */ new WeakMap(), Me = /* @__PURE__ */ new WeakMap(), Te = {});
|
|
2335
|
-
};
|
|
2336
|
-
}, ki = function(e, t, n) {
|
|
2337
|
-
n === void 0 && (n = "data-aria-hidden");
|
|
2338
|
-
var r = Array.from(Array.isArray(e) ? e : [e]), o = Ao(e);
|
|
2339
|
-
return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live]"))), Ro(r, o, n, "aria-hidden")) : function() {
|
|
2340
|
-
return null;
|
|
2341
|
-
};
|
|
2342
|
-
}, z = function() {
|
|
2343
|
-
return z = Object.assign || function(t) {
|
|
2344
|
-
for (var n, r = 1, o = arguments.length; r < o; r++) {
|
|
2345
|
-
n = arguments[r];
|
|
2346
|
-
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]);
|
|
2347
|
-
}
|
|
2348
|
-
return t;
|
|
2349
|
-
}, z.apply(this, arguments);
|
|
2350
|
-
};
|
|
2351
|
-
function pn(e, t) {
|
|
2352
|
-
var n = {};
|
|
2353
|
-
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
2354
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
2355
|
-
for (var o = 0, r = Object.getOwnPropertySymbols(e); o < r.length; o++)
|
|
2356
|
-
t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]);
|
|
2357
|
-
return n;
|
|
2358
|
-
}
|
|
2359
|
-
function Oo(e, t, n) {
|
|
2360
|
-
if (n || arguments.length === 2) for (var r = 0, o = t.length, i; r < o; r++)
|
|
2361
|
-
(i || !(r in t)) && (i || (i = Array.prototype.slice.call(t, 0, r)), i[r] = t[r]);
|
|
2362
|
-
return e.concat(i || Array.prototype.slice.call(t));
|
|
2363
|
-
}
|
|
2364
|
-
var ke = "right-scroll-bar-position", Fe = "width-before-scroll-bar", Mo = "with-scroll-bars-hidden", To = "--removed-body-scroll-bar-size";
|
|
2365
|
-
function Ge(e, t) {
|
|
2366
|
-
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
2367
|
-
}
|
|
2368
|
-
function Lo(e, t) {
|
|
2369
|
-
var n = In(function() {
|
|
2370
|
-
return {
|
|
2371
|
-
// value
|
|
2372
|
-
value: e,
|
|
2373
|
-
// last callback
|
|
2374
|
-
callback: t,
|
|
2375
|
-
// "memoized" public interface
|
|
2376
|
-
facade: {
|
|
2377
|
-
get current() {
|
|
2378
|
-
return n.value;
|
|
2379
|
-
},
|
|
2380
|
-
set current(r) {
|
|
2381
|
-
var o = n.value;
|
|
2382
|
-
o !== r && (n.value = r, n.callback(r, o));
|
|
2383
|
-
}
|
|
2384
|
-
}
|
|
2385
|
-
};
|
|
2386
|
-
})[0];
|
|
2387
|
-
return n.callback = t, n.facade;
|
|
2388
|
-
}
|
|
2389
|
-
var No = typeof window < "u" ? f.useLayoutEffect : f.useEffect, It = /* @__PURE__ */ new WeakMap();
|
|
2390
|
-
function Do(e, t) {
|
|
2391
|
-
var n = Lo(null, function(r) {
|
|
2392
|
-
return e.forEach(function(o) {
|
|
2393
|
-
return Ge(o, r);
|
|
2394
|
-
});
|
|
2395
|
-
});
|
|
2396
|
-
return No(function() {
|
|
2397
|
-
var r = It.get(n);
|
|
2398
|
-
if (r) {
|
|
2399
|
-
var o = new Set(r), i = new Set(e), s = n.current;
|
|
2400
|
-
o.forEach(function(c) {
|
|
2401
|
-
i.has(c) || Ge(c, null);
|
|
2402
|
-
}), i.forEach(function(c) {
|
|
2403
|
-
o.has(c) || Ge(c, s);
|
|
2404
|
-
});
|
|
2405
|
-
}
|
|
2406
|
-
It.set(n, e);
|
|
2407
|
-
}, [e]), n;
|
|
2408
|
-
}
|
|
2409
|
-
function ko(e) {
|
|
2410
|
-
return e;
|
|
2411
|
-
}
|
|
2412
|
-
function Fo(e, t) {
|
|
2413
|
-
t === void 0 && (t = ko);
|
|
2414
|
-
var n = [], r = !1, o = {
|
|
2415
|
-
read: function() {
|
|
2416
|
-
if (r)
|
|
2417
|
-
throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");
|
|
2418
|
-
return n.length ? n[n.length - 1] : e;
|
|
2419
|
-
},
|
|
2420
|
-
useMedium: function(i) {
|
|
2421
|
-
var s = t(i, r);
|
|
2422
|
-
return n.push(s), function() {
|
|
2423
|
-
n = n.filter(function(c) {
|
|
2424
|
-
return c !== s;
|
|
2425
|
-
});
|
|
2426
|
-
};
|
|
2427
|
-
},
|
|
2428
|
-
assignSyncMedium: function(i) {
|
|
2429
|
-
for (r = !0; n.length; ) {
|
|
2430
|
-
var s = n;
|
|
2431
|
-
n = [], s.forEach(i);
|
|
2432
|
-
}
|
|
2433
|
-
n = {
|
|
2434
|
-
push: function(c) {
|
|
2435
|
-
return i(c);
|
|
2436
|
-
},
|
|
2437
|
-
filter: function() {
|
|
2438
|
-
return n;
|
|
2439
|
-
}
|
|
2440
|
-
};
|
|
2441
|
-
},
|
|
2442
|
-
assignMedium: function(i) {
|
|
2443
|
-
r = !0;
|
|
2444
|
-
var s = [];
|
|
2445
|
-
if (n.length) {
|
|
2446
|
-
var c = n;
|
|
2447
|
-
n = [], c.forEach(i), s = n;
|
|
2448
|
-
}
|
|
2449
|
-
var a = function() {
|
|
2450
|
-
var h = s;
|
|
2451
|
-
s = [], h.forEach(i);
|
|
2452
|
-
}, l = function() {
|
|
2453
|
-
return Promise.resolve().then(a);
|
|
2454
|
-
};
|
|
2455
|
-
l(), n = {
|
|
2456
|
-
push: function(h) {
|
|
2457
|
-
s.push(h), l();
|
|
2458
|
-
},
|
|
2459
|
-
filter: function(h) {
|
|
2460
|
-
return s = s.filter(h), n;
|
|
2461
|
-
}
|
|
2462
|
-
};
|
|
2463
|
-
}
|
|
2464
|
-
};
|
|
2465
|
-
return o;
|
|
2466
|
-
}
|
|
2467
|
-
function Io(e) {
|
|
2468
|
-
e === void 0 && (e = {});
|
|
2469
|
-
var t = Fo(null);
|
|
2470
|
-
return t.options = z({ async: !0, ssr: !1 }, e), t;
|
|
2471
|
-
}
|
|
2472
|
-
var vn = function(e) {
|
|
2473
|
-
var t = e.sideCar, n = pn(e, ["sideCar"]);
|
|
2474
|
-
if (!t)
|
|
2475
|
-
throw new Error("Sidecar: please provide `sideCar` property to import the right car");
|
|
2476
|
-
var r = t.read();
|
|
2477
|
-
if (!r)
|
|
2478
|
-
throw new Error("Sidecar medium not found");
|
|
2479
|
-
return f.createElement(r, z({}, n));
|
|
2480
|
-
};
|
|
2481
|
-
vn.isSideCarExport = !0;
|
|
2482
|
-
function _o(e, t) {
|
|
2483
|
-
return e.useMedium(t), vn;
|
|
2484
|
-
}
|
|
2485
|
-
var gn = Io(), Ze = function() {
|
|
2486
|
-
}, $e = f.forwardRef(function(e, t) {
|
|
2487
|
-
var n = f.useRef(null), r = f.useState({
|
|
2488
|
-
onScrollCapture: Ze,
|
|
2489
|
-
onWheelCapture: Ze,
|
|
2490
|
-
onTouchMoveCapture: Ze
|
|
2491
|
-
}), 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, v = e.inert, u = e.allowPinchZoom, g = e.as, y = g === void 0 ? "div" : g, w = e.gapMode, b = pn(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), x = p, E = Do([n, t]), C = z(z({}, b), o);
|
|
2492
|
-
return f.createElement(
|
|
2493
|
-
f.Fragment,
|
|
2494
|
-
null,
|
|
2495
|
-
h && f.createElement(x, { sideCar: gn, removeScrollBar: l, shards: d, noIsolation: m, inert: v, setCallbacks: i, allowPinchZoom: !!u, lockRef: n, gapMode: w }),
|
|
2496
|
-
s ? f.cloneElement(f.Children.only(c), z(z({}, C), { ref: E })) : f.createElement(y, z({}, C, { className: a, ref: E }), c)
|
|
2497
|
-
);
|
|
2498
|
-
});
|
|
2499
|
-
$e.defaultProps = {
|
|
2500
|
-
enabled: !0,
|
|
2501
|
-
removeScrollBar: !0,
|
|
2502
|
-
inert: !1
|
|
2503
|
-
};
|
|
2504
|
-
$e.classNames = {
|
|
2505
|
-
fullWidth: Fe,
|
|
2506
|
-
zeroRight: ke
|
|
2507
|
-
};
|
|
2508
|
-
var Wo = function() {
|
|
2509
|
-
if (typeof __webpack_nonce__ < "u")
|
|
2510
|
-
return __webpack_nonce__;
|
|
2511
|
-
};
|
|
2512
|
-
function Bo() {
|
|
2513
|
-
if (!document)
|
|
2514
|
-
return null;
|
|
2515
|
-
var e = document.createElement("style");
|
|
2516
|
-
e.type = "text/css";
|
|
2517
|
-
var t = Wo();
|
|
2518
|
-
return t && e.setAttribute("nonce", t), e;
|
|
2519
|
-
}
|
|
2520
|
-
function jo(e, t) {
|
|
2521
|
-
e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
|
|
2522
|
-
}
|
|
2523
|
-
function $o(e) {
|
|
2524
|
-
var t = document.head || document.getElementsByTagName("head")[0];
|
|
2525
|
-
t.appendChild(e);
|
|
2526
|
-
}
|
|
2527
|
-
var Ho = function() {
|
|
2528
|
-
var e = 0, t = null;
|
|
2529
|
-
return {
|
|
2530
|
-
add: function(n) {
|
|
2531
|
-
e == 0 && (t = Bo()) && (jo(t, n), $o(t)), e++;
|
|
2532
|
-
},
|
|
2533
|
-
remove: function() {
|
|
2534
|
-
e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
|
|
2535
|
-
}
|
|
2536
|
-
};
|
|
2537
|
-
}, Vo = function() {
|
|
2538
|
-
var e = Ho();
|
|
2539
|
-
return function(t, n) {
|
|
2540
|
-
f.useEffect(function() {
|
|
2541
|
-
return e.add(t), function() {
|
|
2542
|
-
e.remove();
|
|
2543
|
-
};
|
|
2544
|
-
}, [t && n]);
|
|
2545
|
-
};
|
|
2546
|
-
}, yn = function() {
|
|
2547
|
-
var e = Vo(), t = function(n) {
|
|
2548
|
-
var r = n.styles, o = n.dynamic;
|
|
2549
|
-
return e(r, o), null;
|
|
2550
|
-
};
|
|
2551
|
-
return t;
|
|
2552
|
-
}, zo = {
|
|
2553
|
-
left: 0,
|
|
2554
|
-
top: 0,
|
|
2555
|
-
right: 0,
|
|
2556
|
-
gap: 0
|
|
2557
|
-
}, qe = function(e) {
|
|
2558
|
-
return parseInt(e || "", 10) || 0;
|
|
2559
|
-
}, Uo = function(e) {
|
|
2560
|
-
var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"];
|
|
2561
|
-
return [qe(n), qe(r), qe(o)];
|
|
2562
|
-
}, Yo = function(e) {
|
|
2563
|
-
if (e === void 0 && (e = "margin"), typeof window > "u")
|
|
2564
|
-
return zo;
|
|
2565
|
-
var t = Uo(e), n = document.documentElement.clientWidth, r = window.innerWidth;
|
|
2566
|
-
return {
|
|
2567
|
-
left: t[0],
|
|
2568
|
-
top: t[1],
|
|
2569
|
-
right: t[2],
|
|
2570
|
-
gap: Math.max(0, r - n + t[2] - t[0])
|
|
2571
|
-
};
|
|
2572
|
-
}, Xo = yn(), he = "data-scroll-locked", Ko = function(e, t, n, r) {
|
|
2573
|
-
var o = e.left, i = e.top, s = e.right, c = e.gap;
|
|
2574
|
-
return n === void 0 && (n = "margin"), `
|
|
2575
|
-
.`.concat(Mo, ` {
|
|
2576
|
-
overflow: hidden `).concat(r, `;
|
|
2577
|
-
padding-right: `).concat(c, "px ").concat(r, `;
|
|
2578
|
-
}
|
|
2579
|
-
body[`).concat(he, `] {
|
|
2580
|
-
overflow: hidden `).concat(r, `;
|
|
2581
|
-
overscroll-behavior: contain;
|
|
2582
|
-
`).concat([
|
|
2583
|
-
t && "position: relative ".concat(r, ";"),
|
|
2584
|
-
n === "margin" && `
|
|
2585
|
-
padding-left: `.concat(o, `px;
|
|
2586
|
-
padding-top: `).concat(i, `px;
|
|
2587
|
-
padding-right: `).concat(s, `px;
|
|
2588
|
-
margin-left:0;
|
|
2589
|
-
margin-top:0;
|
|
2590
|
-
margin-right: `).concat(c, "px ").concat(r, `;
|
|
2591
|
-
`),
|
|
2592
|
-
n === "padding" && "padding-right: ".concat(c, "px ").concat(r, ";")
|
|
2593
|
-
].filter(Boolean).join(""), `
|
|
2594
|
-
}
|
|
2595
|
-
|
|
2596
|
-
.`).concat(ke, ` {
|
|
2597
|
-
right: `).concat(c, "px ").concat(r, `;
|
|
2598
|
-
}
|
|
2599
|
-
|
|
2600
|
-
.`).concat(Fe, ` {
|
|
2601
|
-
margin-right: `).concat(c, "px ").concat(r, `;
|
|
2602
|
-
}
|
|
2603
|
-
|
|
2604
|
-
.`).concat(ke, " .").concat(ke, ` {
|
|
2605
|
-
right: 0 `).concat(r, `;
|
|
2606
|
-
}
|
|
2607
|
-
|
|
2608
|
-
.`).concat(Fe, " .").concat(Fe, ` {
|
|
2609
|
-
margin-right: 0 `).concat(r, `;
|
|
2610
|
-
}
|
|
2611
|
-
|
|
2612
|
-
body[`).concat(he, `] {
|
|
2613
|
-
`).concat(To, ": ").concat(c, `px;
|
|
2614
|
-
}
|
|
2615
|
-
`);
|
|
2616
|
-
}, _t = function() {
|
|
2617
|
-
var e = parseInt(document.body.getAttribute(he) || "0", 10);
|
|
2618
|
-
return isFinite(e) ? e : 0;
|
|
2619
|
-
}, Go = function() {
|
|
2620
|
-
f.useEffect(function() {
|
|
2621
|
-
return document.body.setAttribute(he, (_t() + 1).toString()), function() {
|
|
2622
|
-
var e = _t() - 1;
|
|
2623
|
-
e <= 0 ? document.body.removeAttribute(he) : document.body.setAttribute(he, e.toString());
|
|
2624
|
-
};
|
|
2625
|
-
}, []);
|
|
2626
|
-
}, Zo = function(e) {
|
|
2627
|
-
var t = e.noRelative, n = e.noImportant, r = e.gapMode, o = r === void 0 ? "margin" : r;
|
|
2628
|
-
Go();
|
|
2629
|
-
var i = f.useMemo(function() {
|
|
2630
|
-
return Yo(o);
|
|
2631
|
-
}, [o]);
|
|
2632
|
-
return f.createElement(Xo, { styles: Ko(i, !t, o, n ? "" : "!important") });
|
|
2633
|
-
}, nt = !1;
|
|
2634
|
-
if (typeof window < "u")
|
|
2635
|
-
try {
|
|
2636
|
-
var Le = Object.defineProperty({}, "passive", {
|
|
2637
|
-
get: function() {
|
|
2638
|
-
return nt = !0, !0;
|
|
2639
|
-
}
|
|
2640
|
-
});
|
|
2641
|
-
window.addEventListener("test", Le, Le), window.removeEventListener("test", Le, Le);
|
|
2642
|
-
} catch {
|
|
2643
|
-
nt = !1;
|
|
2644
|
-
}
|
|
2645
|
-
var ue = nt ? { passive: !1 } : !1, qo = function(e) {
|
|
2646
|
-
return e.tagName === "TEXTAREA";
|
|
2647
|
-
}, wn = function(e, t) {
|
|
2648
|
-
if (!(e instanceof Element))
|
|
2649
|
-
return !1;
|
|
2650
|
-
var n = window.getComputedStyle(e);
|
|
2651
|
-
return (
|
|
2652
|
-
// not-not-scrollable
|
|
2653
|
-
n[t] !== "hidden" && // contains scroll inside self
|
|
2654
|
-
!(n.overflowY === n.overflowX && !qo(e) && n[t] === "visible")
|
|
2655
|
-
);
|
|
2656
|
-
}, Qo = function(e) {
|
|
2657
|
-
return wn(e, "overflowY");
|
|
2658
|
-
}, Jo = function(e) {
|
|
2659
|
-
return wn(e, "overflowX");
|
|
2660
|
-
}, Wt = function(e, t) {
|
|
2661
|
-
var n = t.ownerDocument, r = t;
|
|
2662
|
-
do {
|
|
2663
|
-
typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host);
|
|
2664
|
-
var o = xn(e, r);
|
|
2665
|
-
if (o) {
|
|
2666
|
-
var i = bn(e, r), s = i[1], c = i[2];
|
|
2667
|
-
if (s > c)
|
|
2668
|
-
return !0;
|
|
2669
|
-
}
|
|
2670
|
-
r = r.parentNode;
|
|
2671
|
-
} while (r && r !== n.body);
|
|
2672
|
-
return !1;
|
|
2673
|
-
}, ei = function(e) {
|
|
2674
|
-
var t = e.scrollTop, n = e.scrollHeight, r = e.clientHeight;
|
|
2675
|
-
return [
|
|
2676
|
-
t,
|
|
2677
|
-
n,
|
|
2678
|
-
r
|
|
2679
|
-
];
|
|
2680
|
-
}, ti = function(e) {
|
|
2681
|
-
var t = e.scrollLeft, n = e.scrollWidth, r = e.clientWidth;
|
|
2682
|
-
return [
|
|
2683
|
-
t,
|
|
2684
|
-
n,
|
|
2685
|
-
r
|
|
2686
|
-
];
|
|
2687
|
-
}, xn = function(e, t) {
|
|
2688
|
-
return e === "v" ? Qo(t) : Jo(t);
|
|
2689
|
-
}, bn = function(e, t) {
|
|
2690
|
-
return e === "v" ? ei(t) : ti(t);
|
|
2691
|
-
}, ni = function(e, t) {
|
|
2692
|
-
return e === "h" && t === "rtl" ? -1 : 1;
|
|
2693
|
-
}, ri = function(e, t, n, r, o) {
|
|
2694
|
-
var i = ni(e, window.getComputedStyle(t).direction), s = i * r, c = n.target, a = t.contains(c), l = !1, h = s > 0, d = 0, p = 0;
|
|
2695
|
-
do {
|
|
2696
|
-
var m = bn(e, c), v = m[0], u = m[1], g = m[2], y = u - g - i * v;
|
|
2697
|
-
(v || y) && xn(e, c) && (d += y, p += v), c instanceof ShadowRoot ? c = c.host : c = c.parentNode;
|
|
2698
|
-
} while (
|
|
2699
|
-
// portaled content
|
|
2700
|
-
!a && c !== document.body || // self content
|
|
2701
|
-
a && (t.contains(c) || t === c)
|
|
2702
|
-
);
|
|
2703
|
-
return (h && (Math.abs(d) < 1 || !o) || !h && (Math.abs(p) < 1 || !o)) && (l = !0), l;
|
|
2704
|
-
}, Ne = function(e) {
|
|
2705
|
-
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
2706
|
-
}, Bt = function(e) {
|
|
2707
|
-
return [e.deltaX, e.deltaY];
|
|
2708
|
-
}, jt = function(e) {
|
|
2709
|
-
return e && "current" in e ? e.current : e;
|
|
2710
|
-
}, oi = function(e, t) {
|
|
2711
|
-
return e[0] === t[0] && e[1] === t[1];
|
|
2712
|
-
}, ii = function(e) {
|
|
2713
|
-
return `
|
|
2714
|
-
.block-interactivity-`.concat(e, ` {pointer-events: none;}
|
|
2715
|
-
.allow-interactivity-`).concat(e, ` {pointer-events: all;}
|
|
2716
|
-
`);
|
|
2717
|
-
}, si = 0, fe = [];
|
|
2718
|
-
function ci(e) {
|
|
2719
|
-
var t = f.useRef([]), n = f.useRef([0, 0]), r = f.useRef(), o = f.useState(si++)[0], i = f.useState(yn)[0], s = f.useRef(e);
|
|
2720
|
-
f.useEffect(function() {
|
|
2721
|
-
s.current = e;
|
|
2722
|
-
}, [e]), f.useEffect(function() {
|
|
2723
|
-
if (e.inert) {
|
|
2724
|
-
document.body.classList.add("block-interactivity-".concat(o));
|
|
2725
|
-
var u = Oo([e.lockRef.current], (e.shards || []).map(jt), !0).filter(Boolean);
|
|
2726
|
-
return u.forEach(function(g) {
|
|
2727
|
-
return g.classList.add("allow-interactivity-".concat(o));
|
|
2728
|
-
}), function() {
|
|
2729
|
-
document.body.classList.remove("block-interactivity-".concat(o)), u.forEach(function(g) {
|
|
2730
|
-
return g.classList.remove("allow-interactivity-".concat(o));
|
|
2731
|
-
});
|
|
2732
|
-
};
|
|
2733
|
-
}
|
|
2734
|
-
}, [e.inert, e.lockRef.current, e.shards]);
|
|
2735
|
-
var c = f.useCallback(function(u, g) {
|
|
2736
|
-
if ("touches" in u && u.touches.length === 2 || u.type === "wheel" && u.ctrlKey)
|
|
2737
|
-
return !s.current.allowPinchZoom;
|
|
2738
|
-
var y = Ne(u), w = n.current, b = "deltaX" in u ? u.deltaX : w[0] - y[0], x = "deltaY" in u ? u.deltaY : w[1] - y[1], E, C = u.target, S = Math.abs(b) > Math.abs(x) ? "h" : "v";
|
|
2739
|
-
if ("touches" in u && S === "h" && C.type === "range")
|
|
2740
|
-
return !1;
|
|
2741
|
-
var A = Wt(S, C);
|
|
2742
|
-
if (!A)
|
|
2743
|
-
return !0;
|
|
2744
|
-
if (A ? E = S : (E = S === "v" ? "h" : "v", A = Wt(S, C)), !A)
|
|
2745
|
-
return !1;
|
|
2746
|
-
if (!r.current && "changedTouches" in u && (b || x) && (r.current = E), !E)
|
|
2747
|
-
return !0;
|
|
2748
|
-
var O = r.current || E;
|
|
2749
|
-
return ri(O, g, u, O === "h" ? b : x, !0);
|
|
2750
|
-
}, []), a = f.useCallback(function(u) {
|
|
2751
|
-
var g = u;
|
|
2752
|
-
if (!(!fe.length || fe[fe.length - 1] !== i)) {
|
|
2753
|
-
var y = "deltaY" in g ? Bt(g) : Ne(g), w = t.current.filter(function(E) {
|
|
2754
|
-
return E.name === g.type && (E.target === g.target || g.target === E.shadowParent) && oi(E.delta, y);
|
|
2755
|
-
})[0];
|
|
2756
|
-
if (w && w.should) {
|
|
2757
|
-
g.cancelable && g.preventDefault();
|
|
2758
|
-
return;
|
|
2759
|
-
}
|
|
2760
|
-
if (!w) {
|
|
2761
|
-
var b = (s.current.shards || []).map(jt).filter(Boolean).filter(function(E) {
|
|
2762
|
-
return E.contains(g.target);
|
|
2763
|
-
}), x = b.length > 0 ? c(g, b[0]) : !s.current.noIsolation;
|
|
2764
|
-
x && g.cancelable && g.preventDefault();
|
|
2765
|
-
}
|
|
2766
|
-
}
|
|
2767
|
-
}, []), l = f.useCallback(function(u, g, y, w) {
|
|
2768
|
-
var b = { name: u, delta: g, target: y, should: w, shadowParent: ai(y) };
|
|
2769
|
-
t.current.push(b), setTimeout(function() {
|
|
2770
|
-
t.current = t.current.filter(function(x) {
|
|
2771
|
-
return x !== b;
|
|
2772
|
-
});
|
|
2773
|
-
}, 1);
|
|
2774
|
-
}, []), h = f.useCallback(function(u) {
|
|
2775
|
-
n.current = Ne(u), r.current = void 0;
|
|
2776
|
-
}, []), d = f.useCallback(function(u) {
|
|
2777
|
-
l(u.type, Bt(u), u.target, c(u, e.lockRef.current));
|
|
2778
|
-
}, []), p = f.useCallback(function(u) {
|
|
2779
|
-
l(u.type, Ne(u), u.target, c(u, e.lockRef.current));
|
|
2780
|
-
}, []);
|
|
2781
|
-
f.useEffect(function() {
|
|
2782
|
-
return fe.push(i), e.setCallbacks({
|
|
2783
|
-
onScrollCapture: d,
|
|
2784
|
-
onWheelCapture: d,
|
|
2785
|
-
onTouchMoveCapture: p
|
|
2786
|
-
}), document.addEventListener("wheel", a, ue), document.addEventListener("touchmove", a, ue), document.addEventListener("touchstart", h, ue), function() {
|
|
2787
|
-
fe = fe.filter(function(u) {
|
|
2788
|
-
return u !== i;
|
|
2789
|
-
}), document.removeEventListener("wheel", a, ue), document.removeEventListener("touchmove", a, ue), document.removeEventListener("touchstart", h, ue);
|
|
2790
|
-
};
|
|
2791
|
-
}, []);
|
|
2792
|
-
var m = e.removeScrollBar, v = e.inert;
|
|
2793
|
-
return f.createElement(
|
|
2794
|
-
f.Fragment,
|
|
2795
|
-
null,
|
|
2796
|
-
v ? f.createElement(i, { styles: ii(o) }) : null,
|
|
2797
|
-
m ? f.createElement(Zo, { gapMode: e.gapMode }) : null
|
|
2798
|
-
);
|
|
2799
|
-
}
|
|
2800
|
-
function ai(e) {
|
|
2801
|
-
for (var t = null; e !== null; )
|
|
2802
|
-
e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
2803
|
-
return t;
|
|
2804
|
-
}
|
|
2805
|
-
const li = _o(gn, ci);
|
|
2806
|
-
var ui = f.forwardRef(function(e, t) {
|
|
2807
|
-
return f.createElement($e, z({}, e, { ref: t, sideCar: li }));
|
|
2808
|
-
});
|
|
2809
|
-
ui.classNames = $e.classNames;
|
|
2810
|
-
var fi = "VisuallyHidden", di = f.forwardRef(
|
|
2811
|
-
(e, t) => /* @__PURE__ */ R.jsx(
|
|
2812
|
-
oe.span,
|
|
2813
|
-
{
|
|
2814
|
-
...e,
|
|
2815
|
-
ref: t,
|
|
2816
|
-
style: {
|
|
2817
|
-
// See: https://github.com/twbs/bootstrap/blob/master/scss/mixins/_screen-reader.scss
|
|
2818
|
-
position: "absolute",
|
|
2819
|
-
border: 0,
|
|
2820
|
-
width: 1,
|
|
2821
|
-
height: 1,
|
|
2822
|
-
padding: 0,
|
|
2823
|
-
margin: -1,
|
|
2824
|
-
overflow: "hidden",
|
|
2825
|
-
clip: "rect(0, 0, 0, 0)",
|
|
2826
|
-
whiteSpace: "nowrap",
|
|
2827
|
-
wordWrap: "normal",
|
|
2828
|
-
...e.style
|
|
2829
|
-
}
|
|
2830
|
-
}
|
|
2831
|
-
)
|
|
2832
|
-
);
|
|
2833
|
-
di.displayName = fi;
|
|
2834
|
-
export {
|
|
2835
|
-
Li as A,
|
|
2836
|
-
Gn as B,
|
|
2837
|
-
Ni as C,
|
|
2838
|
-
cr as D,
|
|
2839
|
-
hr as F,
|
|
2840
|
-
xi as M,
|
|
2841
|
-
oe as P,
|
|
2842
|
-
ui as R,
|
|
2843
|
-
be as S,
|
|
2844
|
-
di as V,
|
|
2845
|
-
Oi as a,
|
|
2846
|
-
Ve as b,
|
|
2847
|
-
Ci as c,
|
|
2848
|
-
ce as d,
|
|
2849
|
-
Ee as e,
|
|
2850
|
-
bi as f,
|
|
2851
|
-
Ai as g,
|
|
2852
|
-
zt as h,
|
|
2853
|
-
Pi as i,
|
|
2854
|
-
ee as j,
|
|
2855
|
-
ki as k,
|
|
2856
|
-
Ri as l,
|
|
2857
|
-
Ei as m,
|
|
2858
|
-
So as n,
|
|
2859
|
-
Zn as o,
|
|
2860
|
-
Mi as p,
|
|
2861
|
-
Di as q,
|
|
2862
|
-
Ti as r,
|
|
2863
|
-
Vt as s,
|
|
2864
|
-
er as t,
|
|
2865
|
-
Si as u
|
|
2866
|
-
};
|
|
2867
|
-
//# sourceMappingURL=index-CBr6BM_4.js.map
|