@sigtes/ui 0.0.10 → 0.0.12
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/dist/_virtual/_interop_require_default.cjs.js +1 -0
- package/dist/_virtual/_interop_require_default.es.js +4 -0
- package/dist/_virtual/_interop_require_wildcard.cjs.js +1 -0
- package/dist/_virtual/_interop_require_wildcard.es.js +4 -0
- package/dist/_virtual/action-async-storage-instance.cjs.js +1 -0
- package/dist/_virtual/action-async-storage-instance.es.js +4 -0
- package/dist/_virtual/action-async-storage.external.cjs.js +1 -0
- package/dist/_virtual/action-async-storage.external.es.js +4 -0
- package/dist/_virtual/app-router-context.shared-runtime.cjs.js +1 -0
- package/dist/_virtual/app-router-context.shared-runtime.es.js +4 -0
- package/dist/_virtual/app-router-headers.cjs.js +1 -0
- package/dist/_virtual/app-router-headers.es.js +4 -0
- package/dist/_virtual/async-local-storage.cjs.js +1 -0
- package/dist/_virtual/async-local-storage.es.js +4 -0
- package/dist/_virtual/bailout-to-client-rendering.cjs.js +1 -0
- package/dist/_virtual/bailout-to-client-rendering.es.js +4 -0
- package/dist/_virtual/bailout-to-csr.cjs.js +1 -0
- package/dist/_virtual/bailout-to-csr.es.js +4 -0
- package/dist/_virtual/boundary-constants.cjs.js +1 -0
- package/dist/_virtual/boundary-constants.es.js +4 -0
- package/dist/_virtual/dynamic-rendering-utils.cjs.js +1 -0
- package/dist/_virtual/dynamic-rendering-utils.es.js +4 -0
- package/dist/_virtual/dynamic-rendering.cjs.js +1 -0
- package/dist/_virtual/dynamic-rendering.es.js +4 -0
- package/dist/_virtual/forbidden.cjs.js +1 -0
- package/dist/_virtual/forbidden.es.js +4 -0
- package/dist/_virtual/get-segment-value.cjs.js +1 -0
- package/dist/_virtual/get-segment-value.es.js +4 -0
- package/dist/_virtual/hooks-client-context.shared-runtime.cjs.js +1 -0
- package/dist/_virtual/hooks-client-context.shared-runtime.es.js +4 -0
- package/dist/_virtual/hooks-server-context.cjs.js +1 -0
- package/dist/_virtual/hooks-server-context.es.js +4 -0
- package/dist/_virtual/http-access-fallback.cjs.js +1 -0
- package/dist/_virtual/http-access-fallback.es.js +4 -0
- package/dist/_virtual/invariant-error.cjs.js +1 -0
- package/dist/_virtual/invariant-error.es.js +4 -0
- package/dist/_virtual/is-next-router-error.cjs.js +1 -0
- package/dist/_virtual/is-next-router-error.es.js +4 -0
- package/dist/_virtual/is-postpone.cjs.js +1 -0
- package/dist/_virtual/is-postpone.es.js +4 -0
- package/dist/_virtual/jsx-runtime.cjs.js +1 -0
- package/dist/_virtual/jsx-runtime.cjs2.js +1 -0
- package/dist/_virtual/jsx-runtime.es.js +5 -0
- package/dist/_virtual/jsx-runtime.es2.js +4 -0
- package/dist/_virtual/navigation.cjs.js +1 -0
- package/dist/_virtual/navigation.cjs2.js +1 -0
- package/dist/_virtual/navigation.es.js +5 -0
- package/dist/_virtual/navigation.es2.js +4 -0
- package/dist/_virtual/navigation.react-server.cjs.js +1 -0
- package/dist/_virtual/navigation.react-server.es.js +4 -0
- package/dist/_virtual/not-found.cjs.js +1 -0
- package/dist/_virtual/not-found.es.js +4 -0
- package/dist/_virtual/react-jsx-runtime.development.cjs.js +1 -0
- package/dist/_virtual/react-jsx-runtime.development.es.js +4 -0
- package/dist/_virtual/react-jsx-runtime.production.cjs.js +1 -0
- package/dist/_virtual/react-jsx-runtime.production.es.js +4 -0
- package/dist/_virtual/redirect-error.cjs.js +1 -0
- package/dist/_virtual/redirect-error.es.js +4 -0
- package/dist/_virtual/redirect-status-code.cjs.js +1 -0
- package/dist/_virtual/redirect-status-code.es.js +4 -0
- package/dist/_virtual/redirect.cjs.js +1 -0
- package/dist/_virtual/redirect.es.js +4 -0
- package/dist/_virtual/scheduler.cjs.js +1 -0
- package/dist/_virtual/scheduler.es.js +4 -0
- package/dist/_virtual/segment.cjs.js +1 -0
- package/dist/_virtual/segment.es.js +4 -0
- package/dist/_virtual/server-inserted-html.shared-runtime.cjs.js +1 -0
- package/dist/_virtual/server-inserted-html.shared-runtime.es.js +4 -0
- package/dist/_virtual/static-generation-bailout.cjs.js +1 -0
- package/dist/_virtual/static-generation-bailout.es.js +4 -0
- package/dist/_virtual/unauthorized.cjs.js +1 -0
- package/dist/_virtual/unauthorized.es.js +4 -0
- package/dist/_virtual/unrecognized-action-error.cjs.js +1 -0
- package/dist/_virtual/unrecognized-action-error.es.js +4 -0
- package/dist/_virtual/unstable-rethrow.browser.cjs.js +1 -0
- package/dist/_virtual/unstable-rethrow.browser.es.js +4 -0
- package/dist/_virtual/unstable-rethrow.cjs.js +1 -0
- package/dist/_virtual/unstable-rethrow.es.js +4 -0
- package/dist/_virtual/unstable-rethrow.server.cjs.js +1 -0
- package/dist/_virtual/unstable-rethrow.server.es.js +4 -0
- package/dist/_virtual/work-async-storage-instance.cjs.js +1 -0
- package/dist/_virtual/work-async-storage-instance.es.js +4 -0
- package/dist/_virtual/work-async-storage.external.cjs.js +1 -0
- package/dist/_virtual/work-async-storage.external.es.js +4 -0
- package/dist/_virtual/work-unit-async-storage-instance.cjs.js +1 -0
- package/dist/_virtual/work-unit-async-storage-instance.es.js +4 -0
- package/dist/_virtual/work-unit-async-storage.external.cjs.js +1 -0
- package/dist/_virtual/work-unit-async-storage.external.es.js +4 -0
- package/dist/components/avatar/Avatar.cjs.js +1 -0
- package/dist/components/avatar/Avatar.es.js +10 -0
- package/dist/components/badge/Badge.cjs.js +1 -0
- package/dist/components/badge/Badge.es.js +25 -0
- package/dist/components/badge/badgeVariants.cjs.js +1 -0
- package/dist/components/badge/badgeVariants.es.js +20 -0
- package/dist/components/button/Button.cjs.js +1 -0
- package/dist/components/button/Button.es.js +27 -0
- package/dist/components/button/buttonVariants.cjs.js +1 -0
- package/dist/components/button/buttonVariants.es.js +29 -0
- package/dist/components/calendar/Calendar.cjs.js +1 -0
- package/dist/components/calendar/Calendar.es.js +174 -0
- package/dist/components/calendar/DatePicker.cjs.js +1 -0
- package/dist/components/calendar/DatePicker.es.js +56 -0
- package/dist/components/calendar/DateRangePicker.cjs.js +1 -0
- package/dist/components/calendar/DateRangePicker.es.js +57 -0
- package/dist/components/card/Card.cjs.js +1 -0
- package/dist/components/card/Card.es.js +109 -0
- package/dist/components/checkbox/Checkbox.cjs.js +1 -0
- package/dist/components/checkbox/Checkbox.es.js +33 -0
- package/dist/components/collapsible/Collapsible.cjs.js +1 -0
- package/dist/components/collapsible/Collapsible.es.js +35 -0
- package/dist/components/combobox/Combobox.cjs.js +1 -0
- package/dist/components/combobox/Combobox.es.js +105 -0
- package/dist/components/command/Command.cjs.js +1 -0
- package/dist/components/command/Command.es.js +172 -0
- package/dist/components/data-table-faceted-filter/data-table-faceted-filter.cjs.js +1 -0
- package/dist/components/data-table-faceted-filter/data-table-faceted-filter.es.js +139 -0
- package/dist/components/dialog/Dialog.cjs.js +1 -0
- package/dist/components/dialog/Dialog.es.js +144 -0
- package/dist/components/dropdown-menu/Dropdown-Menu.cjs.js +1 -0
- package/dist/components/dropdown-menu/Dropdown-Menu.es.js +251 -0
- package/dist/components/form/Form.cjs.js +1 -0
- package/dist/components/form/Form.es.js +109 -0
- package/dist/components/input/Input.cjs.js +1 -0
- package/dist/components/input/Input.es.js +22 -0
- package/dist/components/label/Label.cjs.js +1 -0
- package/dist/components/label/Label.es.js +24 -0
- package/dist/components/popover/Popover.cjs.js +1 -0
- package/dist/components/popover/Popover.es.js +46 -0
- package/dist/components/select/Select.cjs.js +1 -0
- package/dist/components/select/Select.es.js +171 -0
- package/dist/components/separator/Separator.cjs.js +1 -0
- package/dist/components/separator/Separator.es.js +28 -0
- package/dist/components/skeleton/Skeleton.cjs.js +1 -0
- package/dist/components/skeleton/Skeleton.es.js +15 -0
- package/dist/components/sonner/Sonner.cjs.js +1 -0
- package/dist/components/sonner/Sonner.es.js +23 -0
- package/dist/components/table/DargableRow.cjs.js +1 -0
- package/dist/components/table/DargableRow.es.js +46 -0
- package/dist/components/table/DataTable.cjs.js +1 -0
- package/dist/components/table/DataTable.es.js +314 -0
- package/dist/components/table/DragHandle.cjs.js +1 -0
- package/dist/components/table/DragHandle.es.js +27 -0
- package/dist/components/table/Table.cjs.js +1 -0
- package/dist/components/table/Table.es.js +125 -0
- package/dist/components/tabs/Tabs.cjs.js +1 -0
- package/dist/components/tabs/Tabs.es.js +69 -0
- package/dist/components/textarea/Textarea.cjs.js +1 -0
- package/dist/components/textarea/Textarea.es.js +22 -0
- package/dist/components.cjs.js +1 -1060
- package/dist/components.es.js +135 -36691
- package/dist/dist/_virtual/jsx-runtime.es.cjs.js +1 -0
- package/dist/dist/_virtual/jsx-runtime.es.es.js +5 -0
- package/dist/dist/_virtual/jsx-runtime.es2.cjs.js +1 -0
- package/dist/dist/_virtual/jsx-runtime.es2.es.js +4 -0
- package/dist/dist/_virtual/react-jsx-runtime.development.es.cjs.js +1 -0
- package/dist/dist/_virtual/react-jsx-runtime.development.es.es.js +4 -0
- package/dist/dist/_virtual/react-jsx-runtime.production.es.cjs.js +1 -0
- package/dist/dist/_virtual/react-jsx-runtime.production.es.es.js +4 -0
- package/dist/dist/components/badge/badgeVariants.es.cjs.js +1 -0
- package/dist/dist/components/badge/badgeVariants.es.es.js +17 -0
- package/dist/dist/components/button/Button.es.cjs.js +1 -0
- package/dist/dist/components/button/Button.es.es.js +27 -0
- package/dist/dist/components/button/buttonVariants.es.cjs.js +1 -0
- package/dist/dist/components/button/buttonVariants.es.es.js +29 -0
- package/dist/dist/components/form/Form.es.cjs.js +1 -0
- package/dist/dist/components/form/Form.es.es.js +13 -0
- package/dist/dist/dist/Button-BztPLDJi.es.cjs.js +1 -0
- package/dist/{Button-BztPLDJi.js → dist/dist/Button-BztPLDJi.es.es.js} +5 -43
- package/dist/dist/dist/UserProvider-BfG9Ccu3.es.cjs.js +22 -0
- package/dist/dist/dist/UserProvider-BfG9Ccu3.es.es.js +302 -0
- package/dist/dist/dist/components.es.es.cjs.js +1125 -0
- package/dist/dist/dist/components.es.es.es.js +35195 -0
- package/dist/dist/dist/locale-provider-BMa5HMi7-CUCoSBuJ.es.cjs.js +22 -0
- package/dist/{locale-provider-BMa5HMi7-CUCoSBuJ.js → dist/dist/locale-provider-BMa5HMi7-CUCoSBuJ.es.es.js} +46 -49
- package/dist/dist/dist/locale-provider-BMa5HMi7.es.cjs.js +1 -0
- package/dist/dist/dist/locale-provider-BMa5HMi7.es.es.js +6 -0
- package/dist/dist/node_modules/@radix-ui/primitive/dist/index.es.cjs.js +1 -0
- package/dist/dist/node_modules/@radix-ui/primitive/dist/index.es.es.js +9 -0
- package/dist/dist/node_modules/@radix-ui/react-compose-refs/dist/index.es.cjs.js +1 -0
- package/dist/dist/node_modules/@radix-ui/react-compose-refs/dist/index.es.es.js +29 -0
- package/dist/dist/node_modules/@radix-ui/react-context/dist/index.es.cjs.js +1 -0
- package/dist/dist/node_modules/@radix-ui/react-context/dist/index.es.es.js +68 -0
- package/dist/dist/node_modules/@radix-ui/react-dialog/dist/index.es.cjs.js +5 -0
- package/dist/dist/node_modules/@radix-ui/react-dialog/dist/index.es.es.js +209 -0
- package/dist/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.es.cjs.js +1 -0
- package/dist/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.es.es.js +128 -0
- package/dist/dist/node_modules/@radix-ui/react-focus-guards/dist/index.es.cjs.js +1 -0
- package/dist/dist/node_modules/@radix-ui/react-focus-guards/dist/index.es.es.js +18 -0
- package/dist/dist/node_modules/@radix-ui/react-focus-scope/dist/index.es.cjs.js +1 -0
- package/dist/dist/node_modules/@radix-ui/react-focus-scope/dist/index.es.es.js +137 -0
- package/dist/dist/node_modules/@radix-ui/react-portal/dist/index.es.cjs.js +1 -0
- package/dist/dist/node_modules/@radix-ui/react-portal/dist/index.es.es.js +16 -0
- package/dist/dist/node_modules/@radix-ui/react-presence/dist/index.es.cjs.js +1 -0
- package/dist/dist/node_modules/@radix-ui/react-presence/dist/index.es.es.js +71 -0
- package/dist/dist/node_modules/@radix-ui/react-primitive/dist/index.es.cjs.js +1 -0
- package/dist/dist/node_modules/@radix-ui/react-primitive/dist/index.es.es.js +36 -0
- package/dist/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.cjs.js +1 -0
- package/dist/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.es.js +10 -0
- package/dist/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.es.cjs.js +1 -0
- package/dist/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.es.es.js +14 -0
- package/dist/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.es.cjs.js +1 -0
- package/dist/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.es.es.js +6 -0
- package/dist/dist/node_modules/aria-hidden/dist/es2015/index.es.cjs.js +1 -0
- package/dist/dist/node_modules/aria-hidden/dist/es2015/index.es.es.js +52 -0
- package/dist/dist/node_modules/clsx/dist/clsx.es.cjs.js +1 -0
- package/dist/dist/node_modules/clsx/dist/clsx.es.es.js +17 -0
- package/dist/dist/node_modules/get-nonce/dist/es2015/index.es.cjs.js +1 -0
- package/dist/dist/node_modules/get-nonce/dist/es2015/index.es.es.js +7 -0
- package/dist/dist/node_modules/react/cjs/react-jsx-runtime.development.es.cjs.js +14 -0
- package/dist/dist/node_modules/react/cjs/react-jsx-runtime.development.es.es.js +247 -0
- package/dist/dist/node_modules/react/cjs/react-jsx-runtime.production.es.cjs.js +9 -0
- package/dist/dist/node_modules/react/cjs/react-jsx-runtime.production.es.es.js +35 -0
- package/dist/dist/node_modules/react/jsx-runtime.es.cjs.js +1 -0
- package/dist/dist/node_modules/react/jsx-runtime.es.es.js +10 -0
- package/dist/dist/node_modules/react-remove-scroll/dist/es2015/Combination.es.cjs.js +1 -0
- package/dist/dist/node_modules/react-remove-scroll/dist/es2015/Combination.es.es.js +11 -0
- package/dist/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.es.cjs.js +4 -0
- package/dist/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.es.es.js +112 -0
- package/dist/dist/node_modules/react-remove-scroll/dist/es2015/UI.es.cjs.js +1 -0
- package/dist/dist/node_modules/react-remove-scroll/dist/es2015/UI.es.es.js +31 -0
- package/dist/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.es.cjs.js +1 -0
- package/dist/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.es.es.js +16 -0
- package/dist/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.es.cjs.js +1 -0
- package/dist/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.es.es.js +68 -0
- package/dist/dist/node_modules/react-remove-scroll/dist/es2015/medium.es.cjs.js +1 -0
- package/dist/dist/node_modules/react-remove-scroll/dist/es2015/medium.es.es.js +5 -0
- package/dist/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.es.cjs.js +1 -0
- package/dist/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.es.es.js +7 -0
- package/dist/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.es.cjs.js +38 -0
- package/dist/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.es.es.js +71 -0
- package/dist/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.es.cjs.js +1 -0
- package/dist/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.es.es.js +7 -0
- package/dist/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.es.cjs.js +1 -0
- package/dist/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.es.es.js +25 -0
- package/dist/dist/node_modules/react-style-singleton/dist/es2015/component.es.cjs.js +1 -0
- package/dist/dist/node_modules/react-style-singleton/dist/es2015/component.es.es.js +11 -0
- package/dist/dist/node_modules/react-style-singleton/dist/es2015/hook.es.cjs.js +1 -0
- package/dist/dist/node_modules/react-style-singleton/dist/es2015/hook.es.es.js +15 -0
- package/dist/dist/node_modules/react-style-singleton/dist/es2015/singleton.es.cjs.js +1 -0
- package/dist/dist/node_modules/react-style-singleton/dist/es2015/singleton.es.es.js +30 -0
- package/dist/dist/node_modules/tslib/tslib.es6.es.cjs.js +1 -0
- package/dist/dist/node_modules/tslib/tslib.es6.es.es.js +27 -0
- package/dist/dist/node_modules/use-callback-ref/dist/es2015/assignRef.es.cjs.js +1 -0
- package/dist/dist/node_modules/use-callback-ref/dist/es2015/assignRef.es.es.js +6 -0
- package/dist/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.es.cjs.js +1 -0
- package/dist/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.es.es.js +26 -0
- package/dist/dist/node_modules/use-callback-ref/dist/es2015/useRef.es.cjs.js +1 -0
- package/dist/dist/node_modules/use-callback-ref/dist/es2015/useRef.es.es.js +25 -0
- package/dist/dist/node_modules/use-sidecar/dist/es2015/exports.es.cjs.js +1 -0
- package/dist/dist/node_modules/use-sidecar/dist/es2015/exports.es.es.js +18 -0
- package/dist/dist/node_modules/use-sidecar/dist/es2015/medium.es.cjs.js +1 -0
- package/dist/dist/node_modules/use-sidecar/dist/es2015/medium.es.es.js +67 -0
- package/dist/dist/providers/locale-provider/locale-provider.es.cjs.js +1 -0
- package/dist/dist/providers/locale-provider/locale-provider.es.es.js +6 -0
- package/dist/dist/providers/user-provider/UserProvider.es.cjs.js +1 -0
- package/dist/dist/providers/user-provider/UserProvider.es.es.js +25 -0
- package/dist/dist/utils/utils.es.cjs.js +1 -0
- package/dist/dist/utils/utils.es.es.js +8 -0
- package/dist/hooks/useAuthorization/useAuthorization.cjs.js +1 -0
- package/dist/hooks/useAuthorization/useAuthorization.es.js +17 -0
- package/dist/hooks/useErrors/useErrors.cjs.js +1 -0
- package/dist/hooks/useErrors/useErrors.es.js +17 -0
- package/dist/hooks/useFormState/useFormState.cjs.js +1 -0
- package/dist/hooks/useFormState/useFormState.es.js +36 -0
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +8 -62
- package/dist/node_modules/@radix-ui/primitive/dist/index.cjs.js +1 -0
- package/dist/node_modules/@radix-ui/primitive/dist/index.es.js +9 -0
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.cjs.js +1 -0
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.es.js +29 -0
- package/dist/node_modules/@radix-ui/react-context/dist/index.cjs.js +1 -0
- package/dist/node_modules/@radix-ui/react-context/dist/index.es.js +68 -0
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.cjs.js +5 -0
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.es.js +258 -0
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs.js +1 -0
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.es.js +128 -0
- package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.cjs.js +1 -0
- package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.es.js +18 -0
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.cjs.js +1 -0
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.es.js +137 -0
- package/dist/node_modules/@radix-ui/react-id/dist/index.cjs.js +1 -0
- package/dist/node_modules/@radix-ui/react-id/dist/index.es.js +13 -0
- package/dist/node_modules/@radix-ui/react-portal/dist/index.cjs.js +1 -0
- package/dist/node_modules/@radix-ui/react-portal/dist/index.es.js +16 -0
- package/dist/node_modules/@radix-ui/react-presence/dist/index.cjs.js +1 -0
- package/dist/node_modules/@radix-ui/react-presence/dist/index.es.js +71 -0
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.cjs.js +1 -0
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.es.js +36 -0
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs.js +1 -0
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js +10 -0
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs.js +1 -0
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.es.js +52 -0
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.cjs.js +1 -0
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.es.js +14 -0
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.cjs.js +1 -0
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.es.js +6 -0
- package/dist/node_modules/@swc/helpers/cjs/_interop_require_default.cjs.js +1 -0
- package/dist/node_modules/@swc/helpers/cjs/_interop_require_default.es.js +13 -0
- package/dist/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs.js +1 -0
- package/dist/node_modules/@swc/helpers/cjs/_interop_require_wildcard.es.js +30 -0
- package/dist/node_modules/aria-hidden/dist/es2015/index.cjs.js +1 -0
- package/dist/node_modules/aria-hidden/dist/es2015/index.es.js +52 -0
- package/dist/node_modules/clsx/dist/clsx.cjs.js +1 -0
- package/dist/node_modules/clsx/dist/clsx.es.js +17 -0
- package/dist/node_modules/date-fns/_lib/addLeadingZeros.cjs.js +1 -0
- package/dist/node_modules/date-fns/_lib/addLeadingZeros.es.js +7 -0
- package/dist/node_modules/date-fns/_lib/defaultOptions.cjs.js +1 -0
- package/dist/node_modules/date-fns/_lib/defaultOptions.es.js +7 -0
- package/dist/node_modules/date-fns/_lib/format/formatters.cjs.js +1 -0
- package/dist/node_modules/date-fns/_lib/format/formatters.es.js +583 -0
- package/dist/node_modules/date-fns/_lib/format/lightFormatters.cjs.js +1 -0
- package/dist/node_modules/date-fns/_lib/format/lightFormatters.es.js +59 -0
- package/dist/node_modules/date-fns/_lib/format/longFormatters.cjs.js +1 -0
- package/dist/node_modules/date-fns/_lib/format/longFormatters.es.js +52 -0
- package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.cjs.js +1 -0
- package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.es.js +18 -0
- package/dist/node_modules/date-fns/_lib/normalizeDates.cjs.js +1 -0
- package/dist/node_modules/date-fns/_lib/normalizeDates.es.js +11 -0
- package/dist/node_modules/date-fns/_lib/protectedTokens.cjs.js +1 -0
- package/dist/node_modules/date-fns/_lib/protectedTokens.es.js +20 -0
- package/dist/node_modules/date-fns/constants.cjs.js +1 -0
- package/dist/node_modules/date-fns/constants.es.js +6 -0
- package/dist/node_modules/date-fns/constructFrom.cjs.js +1 -0
- package/dist/node_modules/date-fns/constructFrom.es.js +8 -0
- package/dist/node_modules/date-fns/differenceInCalendarDays.cjs.js +1 -0
- package/dist/node_modules/date-fns/differenceInCalendarDays.es.js +16 -0
- package/dist/node_modules/date-fns/format.cjs.js +1 -0
- package/dist/node_modules/date-fns/format.es.js +58 -0
- package/dist/node_modules/date-fns/getDayOfYear.cjs.js +1 -0
- package/dist/node_modules/date-fns/getDayOfYear.es.js +11 -0
- package/dist/node_modules/date-fns/getISOWeek.cjs.js +1 -0
- package/dist/node_modules/date-fns/getISOWeek.es.js +12 -0
- package/dist/node_modules/date-fns/getISOWeekYear.cjs.js +1 -0
- package/dist/node_modules/date-fns/getISOWeekYear.es.js +15 -0
- package/dist/node_modules/date-fns/getWeek.cjs.js +1 -0
- package/dist/node_modules/date-fns/getWeek.es.js +12 -0
- package/dist/node_modules/date-fns/getWeekYear.cjs.js +1 -0
- package/dist/node_modules/date-fns/getWeekYear.es.js +16 -0
- package/dist/node_modules/date-fns/isDate.cjs.js +1 -0
- package/dist/node_modules/date-fns/isDate.es.js +7 -0
- package/dist/node_modules/date-fns/isValid.cjs.js +1 -0
- package/dist/node_modules/date-fns/isValid.es.js +9 -0
- package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.cjs.js +1 -0
- package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.es.js +9 -0
- package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.cjs.js +1 -0
- package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.es.js +18 -0
- package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.cjs.js +1 -0
- package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.es.js +31 -0
- package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.cjs.js +1 -0
- package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.es.js +15 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.cjs.js +1 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.es.js +70 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.cjs.js +1 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.es.js +33 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.cjs.js +1 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.es.js +11 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/localize.cjs.js +1 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/localize.es.js +155 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/match.cjs.js +1 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/match.es.js +110 -0
- package/dist/node_modules/date-fns/locale/en-US.cjs.js +1 -0
- package/dist/node_modules/date-fns/locale/en-US.es.js +21 -0
- package/dist/node_modules/date-fns/locale/pt-BR/_lib/formatDistance.cjs.js +1 -0
- package/dist/node_modules/date-fns/locale/pt-BR/_lib/formatDistance.es.js +70 -0
- package/dist/node_modules/date-fns/locale/pt-BR/_lib/formatLong.cjs.js +1 -0
- package/dist/node_modules/date-fns/locale/pt-BR/_lib/formatLong.es.js +33 -0
- package/dist/node_modules/date-fns/locale/pt-BR/_lib/formatRelative.cjs.js +1 -0
- package/dist/node_modules/date-fns/locale/pt-BR/_lib/formatRelative.es.js +17 -0
- package/dist/node_modules/date-fns/locale/pt-BR/_lib/localize.cjs.js +1 -0
- package/dist/node_modules/date-fns/locale/pt-BR/_lib/localize.es.js +154 -0
- package/dist/node_modules/date-fns/locale/pt-BR/_lib/match.cjs.js +1 -0
- package/dist/node_modules/date-fns/locale/pt-BR/_lib/match.es.js +112 -0
- package/dist/node_modules/date-fns/locale/pt-BR.cjs.js +1 -0
- package/dist/node_modules/date-fns/locale/pt-BR.es.js +21 -0
- package/dist/node_modules/date-fns/startOfDay.cjs.js +1 -0
- package/dist/node_modules/date-fns/startOfDay.es.js +9 -0
- package/dist/node_modules/date-fns/startOfISOWeek.cjs.js +1 -0
- package/dist/node_modules/date-fns/startOfISOWeek.es.js +8 -0
- package/dist/node_modules/date-fns/startOfISOWeekYear.cjs.js +1 -0
- package/dist/node_modules/date-fns/startOfISOWeekYear.es.js +11 -0
- package/dist/node_modules/date-fns/startOfWeek.cjs.js +1 -0
- package/dist/node_modules/date-fns/startOfWeek.es.js +10 -0
- package/dist/node_modules/date-fns/startOfWeekYear.cjs.js +1 -0
- package/dist/node_modules/date-fns/startOfWeekYear.es.js +12 -0
- package/dist/node_modules/date-fns/startOfYear.cjs.js +1 -0
- package/dist/node_modules/date-fns/startOfYear.es.js +9 -0
- package/dist/node_modules/date-fns/toDate.cjs.js +1 -0
- package/dist/node_modules/date-fns/toDate.es.js +8 -0
- package/dist/node_modules/get-nonce/dist/es2015/index.cjs.js +1 -0
- package/dist/node_modules/get-nonce/dist/es2015/index.es.js +7 -0
- package/dist/node_modules/next/dist/client/components/app-router-headers.cjs.js +1 -0
- package/dist/node_modules/next/dist/client/components/app-router-headers.es.js +79 -0
- package/dist/node_modules/next/dist/client/components/bailout-to-client-rendering.cjs.js +1 -0
- package/dist/node_modules/next/dist/client/components/bailout-to-client-rendering.es.js +40 -0
- package/dist/node_modules/next/dist/client/components/forbidden.cjs.js +1 -0
- package/dist/node_modules/next/dist/client/components/forbidden.es.js +34 -0
- package/dist/node_modules/next/dist/client/components/hooks-server-context.cjs.js +1 -0
- package/dist/node_modules/next/dist/client/components/hooks-server-context.es.js +36 -0
- package/dist/node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.cjs.js +1 -0
- package/dist/node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.es.js +63 -0
- package/dist/node_modules/next/dist/client/components/is-next-router-error.cjs.js +1 -0
- package/dist/node_modules/next/dist/client/components/is-next-router-error.es.js +24 -0
- package/dist/node_modules/next/dist/client/components/navigation.cjs.js +1 -0
- package/dist/node_modules/next/dist/client/components/navigation.es.js +137 -0
- package/dist/node_modules/next/dist/client/components/navigation.react-server.cjs.js +1 -0
- package/dist/node_modules/next/dist/client/components/navigation.react-server.es.js +85 -0
- package/dist/node_modules/next/dist/client/components/not-found.cjs.js +1 -0
- package/dist/node_modules/next/dist/client/components/not-found.es.js +28 -0
- package/dist/node_modules/next/dist/client/components/redirect-error.cjs.js +1 -0
- package/dist/node_modules/next/dist/client/components/redirect-error.es.js +41 -0
- package/dist/node_modules/next/dist/client/components/redirect-status-code.cjs.js +1 -0
- package/dist/node_modules/next/dist/client/components/redirect-status-code.es.js +21 -0
- package/dist/node_modules/next/dist/client/components/redirect.cjs.js +1 -0
- package/dist/node_modules/next/dist/client/components/redirect.es.js +80 -0
- package/dist/node_modules/next/dist/client/components/router-reducer/reducers/get-segment-value.cjs.js +1 -0
- package/dist/node_modules/next/dist/client/components/router-reducer/reducers/get-segment-value.es.js +21 -0
- package/dist/node_modules/next/dist/client/components/static-generation-bailout.cjs.js +1 -0
- package/dist/node_modules/next/dist/client/components/static-generation-bailout.es.js +36 -0
- package/dist/node_modules/next/dist/client/components/unauthorized.cjs.js +1 -0
- package/dist/node_modules/next/dist/client/components/unauthorized.es.js +34 -0
- package/dist/node_modules/next/dist/client/components/unrecognized-action-error.cjs.js +1 -0
- package/dist/node_modules/next/dist/client/components/unrecognized-action-error.es.js +35 -0
- package/dist/node_modules/next/dist/client/components/unstable-rethrow.browser.cjs.js +1 -0
- package/dist/node_modules/next/dist/client/components/unstable-rethrow.browser.es.js +26 -0
- package/dist/node_modules/next/dist/client/components/unstable-rethrow.cjs.js +1 -0
- package/dist/node_modules/next/dist/client/components/unstable-rethrow.es.js +21 -0
- package/dist/node_modules/next/dist/client/components/unstable-rethrow.server.cjs.js +1 -0
- package/dist/node_modules/next/dist/client/components/unstable-rethrow.server.es.js +30 -0
- package/dist/node_modules/next/dist/lib/framework/boundary-constants.cjs.js +1 -0
- package/dist/node_modules/next/dist/lib/framework/boundary-constants.es.js +33 -0
- package/dist/node_modules/next/dist/lib/scheduler.cjs.js +1 -0
- package/dist/node_modules/next/dist/lib/scheduler.es.js +45 -0
- package/dist/node_modules/next/dist/server/app-render/action-async-storage-instance.cjs.js +1 -0
- package/dist/node_modules/next/dist/server/app-render/action-async-storage-instance.es.js +19 -0
- package/dist/node_modules/next/dist/server/app-render/action-async-storage.external.cjs.js +1 -0
- package/dist/node_modules/next/dist/server/app-render/action-async-storage.external.es.js +19 -0
- package/dist/node_modules/next/dist/server/app-render/async-local-storage.cjs.js +1 -0
- package/dist/node_modules/next/dist/server/app-render/async-local-storage.es.js +65 -0
- package/dist/node_modules/next/dist/server/app-render/dynamic-rendering.cjs.js +6 -0
- package/dist/node_modules/next/dist/server/app-render/dynamic-rendering.es.js +419 -0
- package/dist/node_modules/next/dist/server/app-render/work-async-storage-instance.cjs.js +1 -0
- package/dist/node_modules/next/dist/server/app-render/work-async-storage-instance.es.js +19 -0
- package/dist/node_modules/next/dist/server/app-render/work-async-storage.external.cjs.js +1 -0
- package/dist/node_modules/next/dist/server/app-render/work-async-storage.external.es.js +19 -0
- package/dist/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.cjs.js +1 -0
- package/dist/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.es.js +19 -0
- package/dist/node_modules/next/dist/server/app-render/work-unit-async-storage.external.cjs.js +1 -0
- package/dist/node_modules/next/dist/server/app-render/work-unit-async-storage.external.es.js +187 -0
- package/dist/node_modules/next/dist/server/dynamic-rendering-utils.cjs.js +1 -0
- package/dist/node_modules/next/dist/server/dynamic-rendering-utils.es.js +72 -0
- package/dist/node_modules/next/dist/server/lib/router-utils/is-postpone.cjs.js +1 -0
- package/dist/node_modules/next/dist/server/lib/router-utils/is-postpone.es.js +21 -0
- package/dist/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.cjs.js +1 -0
- package/dist/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.es.js +41 -0
- package/dist/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.cjs.js +1 -0
- package/dist/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.es.js +33 -0
- package/dist/node_modules/next/dist/shared/lib/invariant-error.cjs.js +1 -0
- package/dist/node_modules/next/dist/shared/lib/invariant-error.es.js +22 -0
- package/dist/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.cjs.js +1 -0
- package/dist/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.es.js +35 -0
- package/dist/node_modules/next/dist/shared/lib/segment.cjs.js +1 -0
- package/dist/node_modules/next/dist/shared/lib/segment.es.js +49 -0
- package/dist/node_modules/next/dist/shared/lib/server-inserted-html.shared-runtime.cjs.js +1 -0
- package/dist/node_modules/next/dist/shared/lib/server-inserted-html.shared-runtime.es.js +34 -0
- package/dist/node_modules/next/navigation.cjs.js +1 -0
- package/dist/node_modules/next/navigation.es.js +8 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.cjs.js +14 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.es.js +247 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.cjs.js +9 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.es.js +35 -0
- package/dist/node_modules/react/jsx-runtime.cjs.js +1 -0
- package/dist/node_modules/react/jsx-runtime.es.js +10 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.cjs.js +1 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.es.js +11 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.cjs.js +4 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.es.js +112 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/UI.cjs.js +1 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/UI.es.js +31 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.cjs.js +1 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.es.js +16 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.cjs.js +1 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.es.js +68 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/medium.cjs.js +1 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/medium.es.js +5 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.cjs.js +1 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.es.js +7 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.cjs.js +38 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.es.js +71 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.cjs.js +1 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.es.js +7 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.cjs.js +1 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.es.js +25 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/component.cjs.js +1 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/component.es.js +11 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/hook.cjs.js +1 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/hook.es.js +15 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/singleton.cjs.js +1 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/singleton.es.js +30 -0
- package/dist/node_modules/tslib/tslib.es6.cjs.js +1 -0
- package/dist/node_modules/tslib/tslib.es6.es.js +27 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.cjs.js +1 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.es.js +6 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.cjs.js +1 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.es.js +26 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/useRef.cjs.js +1 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/useRef.es.js +25 -0
- package/dist/node_modules/use-sidecar/dist/es2015/exports.cjs.js +1 -0
- package/dist/node_modules/use-sidecar/dist/es2015/exports.es.js +18 -0
- package/dist/node_modules/use-sidecar/dist/es2015/medium.cjs.js +1 -0
- package/dist/node_modules/use-sidecar/dist/es2015/medium.es.js +67 -0
- package/dist/pages/error/error.cjs.js +1 -0
- package/dist/pages/error/error.es.js +32 -0
- package/dist/pages/forbidden/forbidden.cjs.js +1 -0
- package/dist/pages/forbidden/forbidden.es.js +31 -0
- package/dist/pages/not-found/not-found.cjs.js +1 -0
- package/dist/pages/not-found/not-found.es.js +17 -0
- package/dist/pages.cjs.js +1 -1
- package/dist/pages.es.js +5 -61
- package/dist/providers/locale-provider/locale-provider.cjs.js +1 -0
- package/dist/providers/locale-provider/locale-provider.es.js +29 -0
- package/dist/providers/theme-provider/ThemeProvider.cjs.js +1 -0
- package/dist/providers/theme-provider/ThemeProvider.es.js +13 -0
- package/dist/providers/user-provider/UserProvider.cjs.js +1 -0
- package/dist/providers/user-provider/UserProvider.es.js +115 -0
- package/dist/providers.cjs.js +1 -1
- package/dist/providers.es.js +10 -19
- package/dist/utils/utils.cjs.js +1 -0
- package/dist/utils/utils.es.js +8 -0
- package/package.json +2 -2
- package/dist/Button-C3Twt_rk.cjs +0 -1
- package/dist/UserProvider-BfG9Ccu3.js +0 -395
- package/dist/UserProvider-CQZEZTc7.cjs +0 -22
- package/dist/locale-provider-BMa5HMi7-jcDwp-6T.cjs +0 -22
- package/dist/locale-provider-BMa5HMi7.js +0 -831
- package/dist/locale-provider-DfKreh8K.cjs +0 -1
- package/dist/navigation-CbiZy04t.js +0 -1857
- package/dist/navigation-Czjt6ygu.cjs +0 -6
package/dist/components.cjs.js
CHANGED
@@ -1,1060 +1 @@
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const W=require("./Button-C3Twt_rk.cjs"),j=require("./UserProvider-CQZEZTc7.cjs"),M=require("react"),Jt=require("@tanstack/react-table"),ya=require("@dnd-kit/sortable"),Zt=require("@dnd-kit/core"),oD=require("@radix-ui/react-dropdown-menu"),be=require("lucide-react"),Qt=require("@tabler/icons-react"),aD=require("@radix-ui/react-select"),sD=require("@dnd-kit/modifiers"),iD=require("@radix-ui/react-label"),cD=require("tailwind-merge"),Z=require("@radix-ui/react-slot"),ie=require("class-variance-authority"),uD=require("@dnd-kit/utilities"),er=require("react-day-picker"),lD=require("@radix-ui/react-popover"),nm=require("./locale-provider-DfKreh8K.cjs"),dD=require("@radix-ui/react-checkbox"),fD=require("@radix-ui/react-collapsible"),xe=require("react-dom"),ln=require("cmdk"),de=require("./locale-provider-BMa5HMi7-jcDwp-6T.cjs"),pD=require("@radix-ui/react-separator"),Mc=require("react-hook-form"),mD=require("next-themes"),$w=require("sonner"),vD=require("@radix-ui/react-tabs");function Mt(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const i=Mt(M),Pe=Mt(oD),_e=Mt(aD),gD=Mt(iD),ba=Mt(lD),fv=Mt(dD),om=Mt(fD),Ee=Mt(xe),hD=Mt(pD),su=Mt(vD);function Yw({className:e,...t}){return j.jsxRuntimeExports.jsx("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:j.jsxRuntimeExports.jsx("table",{"data-slot":"table",className:W.cn("w-full caption-bottom text-sm",e),...t})})}function Uw({className:e,...t}){return j.jsxRuntimeExports.jsx("thead",{"data-slot":"table-header",className:W.cn("[&_tr]:border-b",e),...t})}function Bw({className:e,...t}){return j.jsxRuntimeExports.jsx("tbody",{"data-slot":"table-body",className:W.cn("[&_tr:last-child]:border-0",e),...t})}function yD({className:e,...t}){return j.jsxRuntimeExports.jsx("tfoot",{"data-slot":"table-footer",className:W.cn("bg-muted/50 border-t font-medium [&>tr]:last:border-b-0",e),...t})}function Ac({className:e,...t}){return j.jsxRuntimeExports.jsx("tr",{"data-slot":"table-row",className:W.cn("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",e),...t})}function Kw({className:e,...t}){return j.jsxRuntimeExports.jsx("th",{"data-slot":"table-head",className:W.cn("text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t})}function am({className:e,...t}){return j.jsxRuntimeExports.jsx("td",{"data-slot":"table-cell",className:W.cn("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t})}function bD({className:e,...t}){return j.jsxRuntimeExports.jsx("caption",{"data-slot":"table-caption",className:W.cn("text-muted-foreground mt-4 text-sm",e),...t})}function Hf({...e}){return j.jsxRuntimeExports.jsx(Pe.Root,{"data-slot":"dropdown-menu",...e})}function wD({...e}){return j.jsxRuntimeExports.jsx(Pe.Portal,{"data-slot":"dropdown-menu-portal",...e})}function Ic({...e}){return j.jsxRuntimeExports.jsx(Pe.Trigger,{"data-slot":"dropdown-menu-trigger",...e})}function Xf({className:e,sideOffset:t=4,...r}){return j.jsxRuntimeExports.jsx(Pe.Portal,{children:j.jsxRuntimeExports.jsx(Pe.Content,{"data-slot":"dropdown-menu-content",sideOffset:t,className:W.cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",e),...r})})}function xD({...e}){return j.jsxRuntimeExports.jsx(Pe.Group,{"data-slot":"dropdown-menu-group",...e})}function ED({className:e,inset:t,variant:r="default",...n}){return j.jsxRuntimeExports.jsx(Pe.Item,{"data-slot":"dropdown-menu-item","data-inset":t,"data-variant":r,className:W.cn("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...n})}function Hw({className:e,children:t,checked:r,...n}){return j.jsxRuntimeExports.jsxs(Pe.CheckboxItem,{"data-slot":"dropdown-menu-checkbox-item",className:W.cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),checked:r,...n,children:[j.jsxRuntimeExports.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:j.jsxRuntimeExports.jsx(Pe.ItemIndicator,{children:j.jsxRuntimeExports.jsx(be.CheckIcon,{className:"size-4"})})}),t]})}function Xw({...e}){return j.jsxRuntimeExports.jsx(Pe.RadioGroup,{"data-slot":"dropdown-menu-radio-group",...e})}function Vw({className:e,children:t,...r}){return j.jsxRuntimeExports.jsxs(Pe.RadioItem,{"data-slot":"dropdown-menu-radio-item",className:W.cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r,children:[j.jsxRuntimeExports.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:j.jsxRuntimeExports.jsx(Pe.ItemIndicator,{children:j.jsxRuntimeExports.jsx(be.CircleIcon,{className:"size-2 fill-current"})})}),t]})}function SD({className:e,inset:t,...r}){return j.jsxRuntimeExports.jsx(Pe.Label,{"data-slot":"dropdown-menu-label","data-inset":t,className:W.cn("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",e),...r})}function RD({className:e,...t}){return j.jsxRuntimeExports.jsx(Pe.Separator,{"data-slot":"dropdown-menu-separator",className:W.cn("bg-border -mx-1 my-1 h-px",e),...t})}function CD({className:e,...t}){return j.jsxRuntimeExports.jsx("span",{"data-slot":"dropdown-menu-shortcut",className:W.cn("text-muted-foreground ml-auto text-xs tracking-widest",e),...t})}function ND({...e}){return j.jsxRuntimeExports.jsx(Pe.Sub,{"data-slot":"dropdown-menu-sub",...e})}function kD({className:e,inset:t,children:r,...n}){return j.jsxRuntimeExports.jsxs(Pe.SubTrigger,{"data-slot":"dropdown-menu-sub-trigger","data-inset":t,className:W.cn("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8",e),...n,children:[r,j.jsxRuntimeExports.jsx(be.ChevronRightIcon,{className:"ml-auto size-4"})]})}function jD({className:e,...t}){return j.jsxRuntimeExports.jsx(Pe.SubContent,{"data-slot":"dropdown-menu-sub-content",className:W.cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",e),...t})}function TD(){return j.jsxRuntimeExports.jsx(Ic,{asChild:!0,children:j.jsxRuntimeExports.jsxs(W.Button,{variant:"ghost",className:"data-[state=open]:bg-muted text-muted-foreground flex size-8 p-0",size:"icon",children:[j.jsxRuntimeExports.jsx(Qt.IconDotsVertical,{className:"size-4"}),j.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Abrir Menu"})]})})}function Gw({...e}){return j.jsxRuntimeExports.jsx(_e.Root,{"data-slot":"select",...e})}function DD({...e}){return j.jsxRuntimeExports.jsx(_e.Group,{"data-slot":"select-group",...e})}function qw({...e}){return j.jsxRuntimeExports.jsx(_e.Value,{"data-slot":"select-value",...e})}function Zw({className:e,size:t="default",children:r,...n}){return j.jsxRuntimeExports.jsxs(_e.Trigger,{"data-slot":"select-trigger","data-size":t,className:W.cn("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...n,children:[r,j.jsxRuntimeExports.jsx(_e.Icon,{asChild:!0,children:j.jsxRuntimeExports.jsx(be.ChevronDownIcon,{className:"size-4 opacity-50"})})]})}function Jw({className:e,children:t,position:r="popper",...n}){return j.jsxRuntimeExports.jsx(_e.Portal,{children:j.jsxRuntimeExports.jsxs(_e.Content,{"data-slot":"select-content",className:W.cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:r,...n,children:[j.jsxRuntimeExports.jsx(e0,{}),j.jsxRuntimeExports.jsx(_e.Viewport,{className:W.cn("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),j.jsxRuntimeExports.jsx(t0,{})]})})}function OD({className:e,...t}){return j.jsxRuntimeExports.jsx(_e.Label,{"data-slot":"select-label",className:W.cn("text-muted-foreground px-2 py-1.5 text-xs",e),...t})}function Qw({className:e,children:t,...r}){return j.jsxRuntimeExports.jsxs(_e.Item,{"data-slot":"select-item",className:W.cn("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...r,children:[j.jsxRuntimeExports.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:j.jsxRuntimeExports.jsx(_e.ItemIndicator,{children:j.jsxRuntimeExports.jsx(be.CheckIcon,{className:"size-4"})})}),j.jsxRuntimeExports.jsx(_e.ItemText,{children:t})]})}function PD({className:e,...t}){return j.jsxRuntimeExports.jsx(_e.Separator,{"data-slot":"select-separator",className:W.cn("bg-border pointer-events-none -mx-1 my-1 h-px",e),...t})}function e0({className:e,...t}){return j.jsxRuntimeExports.jsx(_e.ScrollUpButton,{"data-slot":"select-scroll-up-button",className:W.cn("flex cursor-default items-center justify-center py-1",e),...t,children:j.jsxRuntimeExports.jsx(be.ChevronUpIcon,{className:"size-4"})})}function t0({className:e,...t}){return j.jsxRuntimeExports.jsx(_e.ScrollDownButton,{"data-slot":"select-scroll-down-button",className:W.cn("flex cursor-default items-center justify-center py-1",e),...t,children:j.jsxRuntimeExports.jsx(be.ChevronDownIcon,{className:"size-4"})})}function r0({className:e,type:t,...r}){return j.jsxRuntimeExports.jsx("input",{type:t,"data-slot":"input",className:W.cn("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...r})}function sm({className:e,...t}){return j.jsxRuntimeExports.jsx(gD.Root,{"data-slot":"label",className:W.cn("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}function _D({data:e,columns:t,getRowId:r,onRowOrderChange:n,onRowClick:o=()=>{},tableKey:a,Actions:c,defaultColumnFilter:s}){const m=`tablePageSize_${a}`,l=`tableColumnVisibility_${a}`,[u,p]=M.useState(()=>{if(typeof window>"u")return{};const _=localStorage.getItem(l);return _?JSON.parse(_):{}}),[v,h]=M.useState({pageIndex:0,pageSize:Number(typeof window<"u"&&localStorage.getItem(m))||10}),x=M.useId(),d=Zt.useSensors(Zt.useSensor(Zt.MouseSensor,{}),Zt.useSensor(Zt.TouchSensor,{}),Zt.useSensor(Zt.KeyboardSensor,{})),g=M.useMemo(()=>e?.map(({id:_})=>_)||[],[e]),[y,b]=M.useState(e),[w,E]=M.useState({}),[C,T]=M.useState([]),[R,N]=M.useState([]);M.useEffect(()=>{b(e)},[e]),M.useEffect(()=>{localStorage.setItem(l,JSON.stringify(u))},[u,l]),M.useEffect(()=>{localStorage.setItem(m,String(v.pageSize))},[v.pageSize,m]);function P({columns:_}){let Y=!1;for(const U of _)if(U.id==="drag"){Y=!0;break}const H={id:"drag"};return Y?[..._]:[H,..._]}function L(_){const{active:Y,over:H}=_;Y&&H&&Y.id!==H.id&&b(U=>{const V=U.findIndex(k=>k.id===Y.id),f=U.findIndex(k=>k.id===H.id),S=ya.arrayMove(U,V,f);return n&&n(S),S})}const I=Jt.useReactTable({data:y,columns:P({columns:t}),state:{sorting:R,columnVisibility:u,rowSelection:w,columnFilters:C,pagination:v},getRowId:r,enableRowSelection:!0,onRowSelectionChange:E,onSortingChange:N,onColumnFiltersChange:T,onColumnVisibilityChange:p,onPaginationChange:h,getCoreRowModel:Jt.getCoreRowModel(),getFilteredRowModel:Jt.getFilteredRowModel(),getPaginationRowModel:Jt.getPaginationRowModel(),getSortedRowModel:Jt.getSortedRowModel(),getFacetedRowModel:Jt.getFacetedRowModel(),getFacetedUniqueValues:Jt.getFacetedUniqueValues()});function B(){const _=I.getAllColumns()[1].columnDef;return String(_.id)?String(_.id):String(_.header)}const[K,$]=M.useState(s??B());return j.jsxRuntimeExports.jsxs("div",{children:[j.jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-between px-4 lg:px-6 mb-5 gap-2",children:[j.jsxRuntimeExports.jsxs("div",{className:"relative w-full h-[32px]",children:[j.jsxRuntimeExports.jsx(be.Search,{className:"absolute left-3 top-1/2 w-4 -translate-y-1/2 text-muted-foreground"}),j.jsxRuntimeExports.jsx(r0,{type:"text",placeholder:"",className:"pl-10 h-[32px]",value:I.getColumn(K)?.getFilterValue()??"",onChange:_=>{I.getColumn(K)?.setFilterValue(_.target.value)}})]}),j.jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2",children:[j.jsxRuntimeExports.jsxs(Hf,{children:[j.jsxRuntimeExports.jsx(Ic,{asChild:!0,children:j.jsxRuntimeExports.jsxs(W.Button,{variant:"outline",size:"sm",children:[j.jsxRuntimeExports.jsx(be.FilterIcon,{}),j.jsxRuntimeExports.jsx("span",{className:"sm:hidden lg:inline",children:K||"Filtro"}),j.jsxRuntimeExports.jsx("span",{className:"lg:hidden",children:K||"Filtro"}),j.jsxRuntimeExports.jsx(Qt.IconChevronDown,{})]})}),j.jsxRuntimeExports.jsx(Xf,{align:"end",className:"w-56",children:j.jsxRuntimeExports.jsx(Xw,{value:K,onValueChange:_=>{T([]),$(_)},children:I.getAllColumns().filter(_=>typeof _.accessorFn<"u"&&_.getCanHide()).map(_=>{const Y=_.columnDef.id?String(_.columnDef.id):String(_.columnDef.header);return j.jsxRuntimeExports.jsx(Vw,{value:Y,children:Y},Y)})})})]}),j.jsxRuntimeExports.jsxs(Hf,{children:[j.jsxRuntimeExports.jsx(Ic,{asChild:!0,children:j.jsxRuntimeExports.jsxs(W.Button,{variant:"outline",size:"sm",children:[j.jsxRuntimeExports.jsx(Qt.IconLayoutColumns,{}),j.jsxRuntimeExports.jsx("span",{className:"hidden lg:inline",children:"Colunas"}),j.jsxRuntimeExports.jsx("span",{className:"lg:hidden",children:"Colunas"}),j.jsxRuntimeExports.jsx(Qt.IconChevronDown,{})]})}),j.jsxRuntimeExports.jsx(Xf,{align:"end",className:"w-56",children:I.getAllColumns().filter(_=>typeof _.accessorFn<"u"&&_.getCanHide()).map(_=>j.jsxRuntimeExports.jsx(Hw,{className:"capitalize",checked:_.getIsVisible(),onCheckedChange:Y=>{_.toggleVisibility(!!Y)},children:_.columnDef.id?String(_.columnDef.id):String(_.columnDef.header)},_.id))})]}),c]})]}),j.jsxRuntimeExports.jsxs("div",{className:"relative flex flex-col gap-4 overflow-auto px-4 lg:px-6",children:[j.jsxRuntimeExports.jsx("div",{className:"overflow-hidden rounded-lg border",children:j.jsxRuntimeExports.jsx(Zt.DndContext,{collisionDetection:Zt.closestCenter,modifiers:[sD.restrictToVerticalAxis],onDragEnd:L,sensors:d,id:x,children:j.jsxRuntimeExports.jsxs(Yw,{children:[j.jsxRuntimeExports.jsx(Uw,{className:"sticky top-0 z-10",children:I.getHeaderGroups().map(_=>j.jsxRuntimeExports.jsx(Ac,{children:_.headers.map(Y=>j.jsxRuntimeExports.jsx(Kw,{colSpan:Y.colSpan,children:Y.isPlaceholder?null:Jt.flexRender(Y.column.columnDef.header,Y.getContext())},Y.id))},_.id))}),j.jsxRuntimeExports.jsx(ya.SortableContext,{items:g,strategy:ya.verticalListSortingStrategy,children:j.jsxRuntimeExports.jsx(Bw,{className:"**:data-[slot=table-cell]:first:w-8",children:I.getRowModel().rows?.length?I.getRowModel().rows.map(_=>j.jsxRuntimeExports.jsx(n0,{row:_,onRowClick:o},_.id)):j.jsxRuntimeExports.jsx(Ac,{children:j.jsxRuntimeExports.jsx(am,{colSpan:t.length,className:"h-24 text-center",children:"Nenhum Resultado."})})})})]})})}),j.jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-between px-4",children:[j.jsxRuntimeExports.jsxs("div",{className:"text-muted-foreground hidden flex-1 text-sm lg:flex",children:[I.getFilteredSelectedRowModel().rows.length," de"," ",I.getFilteredRowModel().rows.length," linhas selecionadas."]}),j.jsxRuntimeExports.jsxs("div",{className:"flex w-full items-center gap-8 lg:w-fit",children:[j.jsxRuntimeExports.jsxs("div",{className:"hidden items-center gap-2 lg:flex",children:[j.jsxRuntimeExports.jsx(sm,{htmlFor:"rows-per-page",className:"text-sm font-medium",children:"linhas por paginas"}),j.jsxRuntimeExports.jsxs(Gw,{value:`${I.getState().pagination.pageSize}`,onValueChange:_=>{I.setPageSize(Number(_))},children:[j.jsxRuntimeExports.jsx(Zw,{size:"sm",className:"w-20",id:"rows-per-page",children:j.jsxRuntimeExports.jsx(qw,{placeholder:I.getState().pagination.pageSize})}),j.jsxRuntimeExports.jsx(Jw,{side:"top",children:[10,20,30,40,50].map(_=>j.jsxRuntimeExports.jsx(Qw,{value:`${_}`,children:_},_))})]})]}),j.jsxRuntimeExports.jsxs("div",{className:"flex w-fit items-center justify-center text-sm font-medium",children:["Página ",I.getState().pagination.pageIndex+1," de"," ",I.getPageCount()]}),j.jsxRuntimeExports.jsxs("div",{className:"ml-auto flex items-center gap-2 lg:ml-0",children:[j.jsxRuntimeExports.jsxs(W.Button,{variant:"outline",className:"hidden h-8 w-8 p-0 lg:flex",onClick:()=>I.setPageIndex(0),disabled:!I.getCanPreviousPage(),children:[j.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Go to first page"}),j.jsxRuntimeExports.jsx(Qt.IconChevronsLeft,{})]}),j.jsxRuntimeExports.jsxs(W.Button,{variant:"outline",className:"size-8",size:"icon",onClick:()=>I.previousPage(),disabled:!I.getCanPreviousPage(),children:[j.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Go to previous page"}),j.jsxRuntimeExports.jsx(Qt.IconChevronLeft,{})]}),j.jsxRuntimeExports.jsxs(W.Button,{variant:"outline",className:"size-8",size:"icon",onClick:()=>I.nextPage(),disabled:!I.getCanNextPage(),children:[j.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Go to next page"}),j.jsxRuntimeExports.jsx(Qt.IconChevronRight,{})]}),j.jsxRuntimeExports.jsxs(W.Button,{variant:"outline",className:"hidden size-8 lg:flex",size:"icon",onClick:()=>I.setPageIndex(I.getPageCount()-1),disabled:!I.getCanNextPage(),children:[j.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Go to last page"}),j.jsxRuntimeExports.jsx(Qt.IconChevronsRight,{})]})]})]})]})]})]})}function n0({row:e,onRowClick:t=()=>{}}){const{transform:r,transition:n,setNodeRef:o,isDragging:a}=ya.useSortable({id:e.original.id});return j.jsxRuntimeExports.jsx(Ac,{"data-state":e.getIsSelected()&&"selected","data-dragging":a,ref:o,style:{transform:uD.CSS.Transform.toString(r),transition:n,cursor:"grab"},onClick:()=>{t(e.original)},children:e.getVisibleCells().map(c=>j.jsxRuntimeExports.jsx(am,{className:"cursor-pointer",children:Jt.flexRender(c.column.columnDef.cell,c.getContext())},c.id))})}function MD({id:e}){const{attributes:t,listeners:r}=ya.useSortable({id:e});return j.jsxRuntimeExports.jsxs(W.Button,{...t,...r,variant:"ghost",size:"icon",className:"text-muted-foreground size-7 hover:bg-transparent cursor-pointer",children:[j.jsxRuntimeExports.jsx(Qt.IconGripVertical,{className:"text-muted-foreground size-3"}),j.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Drag to reorder"})]})}function im({className:e,classNames:t,showOutsideDays:r=!0,captionLayout:n="label",buttonVariant:o="ghost",formatters:a,components:c,...s}){const m=er.getDefaultClassNames();return j.jsxRuntimeExports.jsx(er.DayPicker,{showOutsideDays:r,className:W.cn("bg-background group/calendar p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,e),captionLayout:n,formatters:{formatMonthDropdown:l=>l.toLocaleString("default",{month:"short"}),...a},classNames:{root:W.cn("w-fit",m.root),months:W.cn("flex gap-4 flex-col md:flex-row relative",m.months),month:W.cn("flex flex-col w-full gap-4",m.month),nav:W.cn("flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between",m.nav),button_previous:W.cn(W.buttonVariants({variant:o}),"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",m.button_previous),button_next:W.cn(W.buttonVariants({variant:o}),"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",m.button_next),month_caption:W.cn("flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)",m.month_caption),dropdowns:W.cn("w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-1.5",m.dropdowns),dropdown_root:W.cn("relative has-focus:border-ring border border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] rounded-md",m.dropdown_root),dropdown:W.cn("absolute bg-popover inset-0 opacity-0",m.dropdown),caption_label:W.cn("select-none font-medium",n==="label"?"text-sm":"rounded-md pl-2 pr-1 flex items-center gap-1 text-sm h-8 [&>svg]:text-muted-foreground [&>svg]:size-3.5",m.caption_label),table:"w-full border-collapse",weekdays:W.cn("flex",m.weekdays),weekday:W.cn("text-muted-foreground rounded-md flex-1 font-normal text-[0.8rem] select-none",m.weekday),week:W.cn("flex w-full mt-2",m.week),week_number_header:W.cn("select-none w-(--cell-size)",m.week_number_header),week_number:W.cn("text-[0.8rem] select-none text-muted-foreground",m.week_number),day:W.cn("relative w-full h-full p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l-md [&:last-child[data-selected=true]_button]:rounded-r-md group/day aspect-square select-none",m.day),range_start:W.cn("rounded-l-md bg-accent",m.range_start),range_middle:W.cn("rounded-none",m.range_middle),range_end:W.cn("rounded-r-md bg-accent",m.range_end),today:W.cn("bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none",m.today),outside:W.cn("text-muted-foreground aria-selected:text-muted-foreground",m.outside),disabled:W.cn("text-muted-foreground opacity-50",m.disabled),hidden:W.cn("invisible",m.hidden),...t},components:{Root:({className:l,rootRef:u,...p})=>j.jsxRuntimeExports.jsx("div",{"data-slot":"calendar",ref:u,className:W.cn(l),...p}),Chevron:({className:l,orientation:u,...p})=>u==="left"?j.jsxRuntimeExports.jsx(be.ChevronLeftIcon,{className:W.cn("size-4",l),...p}):u==="right"?j.jsxRuntimeExports.jsx(be.ChevronRightIcon,{className:W.cn("size-4",l),...p}):j.jsxRuntimeExports.jsx(be.ChevronDownIcon,{className:W.cn("size-4",l),...p}),DayButton:o0,WeekNumber:({children:l,...u})=>j.jsxRuntimeExports.jsx("td",{...u,children:j.jsxRuntimeExports.jsx("div",{className:"flex size-(--cell-size) items-center justify-center text-center",children:l})}),...c},...s})}function o0({className:e,day:t,modifiers:r,...n}){const o=er.getDefaultClassNames(),a=M.useRef(null);return M.useEffect(()=>{r.focused&&a.current?.focus()},[r.focused]),j.jsxRuntimeExports.jsx(W.Button,{ref:a,variant:"ghost",size:"icon","data-day":t.date.toLocaleDateString(),"data-selected-single":r.selected&&!r.range_start&&!r.range_end&&!r.range_middle,"data-range-start":r.range_start,"data-range-end":r.range_end,"data-range-middle":r.range_middle,className:W.cn("data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 dark:hover:text-accent-foreground flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] data-[range-end=true]:rounded-md data-[range-end=true]:rounded-r-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md data-[range-start=true]:rounded-l-md [&>span]:text-xs [&>span]:opacity-70",o.day,e),...n})}const a0=6048e5,AD=864e5,pv=Symbol.for("constructDateFrom");function Lr(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&pv in e?e[pv](t):e instanceof Date?new e.constructor(t):new Date(t)}function rt(e,t){return Lr(t||e,e)}let ID={};function iu(){return ID}function wa(e,t){const r=iu(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=rt(e,t?.in),a=o.getDay(),c=(a<n?7:0)+a-n;return o.setDate(o.getDate()-c),o.setHours(0,0,0,0),o}function Fc(e,t){return wa(e,{...t,weekStartsOn:1})}function s0(e,t){const r=rt(e,t?.in),n=r.getFullYear(),o=Lr(r,0);o.setFullYear(n+1,0,4),o.setHours(0,0,0,0);const a=Fc(o),c=Lr(r,0);c.setFullYear(n,0,4),c.setHours(0,0,0,0);const s=Fc(c);return r.getTime()>=a.getTime()?n+1:r.getTime()>=s.getTime()?n:n-1}function mv(e){const t=rt(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function FD(e,...t){const r=Lr.bind(null,t.find(n=>typeof n=="object"));return t.map(r)}function vv(e,t){const r=rt(e,t?.in);return r.setHours(0,0,0,0),r}function LD(e,t,r){const[n,o]=FD(r?.in,e,t),a=vv(n),c=vv(o),s=+a-mv(a),m=+c-mv(c);return Math.round((s-m)/AD)}function WD(e,t){const r=s0(e,t),n=Lr(e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),Fc(n)}function zD(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function $D(e){return!(!zD(e)&&typeof e!="number"||isNaN(+rt(e)))}function YD(e,t){const r=rt(e,t?.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}function UD(e,t){const r=rt(e,t?.in);return LD(r,YD(r))+1}function BD(e,t){const r=rt(e,t?.in),n=+Fc(r)-+WD(r);return Math.round(n/a0)+1}function i0(e,t){const r=rt(e,t?.in),n=r.getFullYear(),o=iu(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,c=Lr(t?.in||e,0);c.setFullYear(n+1,0,a),c.setHours(0,0,0,0);const s=wa(c,t),m=Lr(t?.in||e,0);m.setFullYear(n,0,a),m.setHours(0,0,0,0);const l=wa(m,t);return+r>=+s?n+1:+r>=+l?n:n-1}function KD(e,t){const r=iu(),n=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,o=i0(e,t),a=Lr(t?.in||e,0);return a.setFullYear(o,0,n),a.setHours(0,0,0,0),wa(a,t)}function HD(e,t){const r=rt(e,t?.in),n=+wa(r,t)-+KD(r,t);return Math.round(n/a0)+1}function ue(e,t){const r=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return r+n}const dr={y(e,t){const r=e.getFullYear(),n=r>0?r:1-r;return ue(t==="yy"?n%100:n,t.length)},M(e,t){const r=e.getMonth();return t==="M"?String(r+1):ue(r+1,2)},d(e,t){return ue(e.getDate(),t.length)},a(e,t){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(e,t){return ue(e.getHours()%12||12,t.length)},H(e,t){return ue(e.getHours(),t.length)},m(e,t){return ue(e.getMinutes(),t.length)},s(e,t){return ue(e.getSeconds(),t.length)},S(e,t){const r=t.length,n=e.getMilliseconds(),o=Math.trunc(n*Math.pow(10,r-3));return ue(o,t.length)}},bn={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},gv={G:function(e,t,r){const n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){const n=e.getFullYear(),o=n>0?n:1-n;return r.ordinalNumber(o,{unit:"year"})}return dr.y(e,t)},Y:function(e,t,r,n){const o=i0(e,n),a=o>0?o:1-o;if(t==="YY"){const c=a%100;return ue(c,2)}return t==="Yo"?r.ordinalNumber(a,{unit:"year"}):ue(a,t.length)},R:function(e,t){const r=s0(e);return ue(r,t.length)},u:function(e,t){const r=e.getFullYear();return ue(r,t.length)},Q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return ue(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return ue(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){const n=e.getMonth();switch(t){case"M":case"MM":return dr.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){const n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return ue(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){const o=HD(e,n);return t==="wo"?r.ordinalNumber(o,{unit:"week"}):ue(o,t.length)},I:function(e,t,r){const n=BD(e);return t==="Io"?r.ordinalNumber(n,{unit:"week"}):ue(n,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):dr.d(e,t)},D:function(e,t,r){const n=UD(e);return t==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):ue(n,t.length)},E:function(e,t,r){const n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){const o=e.getDay(),a=(o-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return ue(a,2);case"eo":return r.ordinalNumber(a,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});case"eeee":default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){const o=e.getDay(),a=(o-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return ue(a,t.length);case"co":return r.ordinalNumber(a,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});case"cccc":default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,r){const n=e.getDay(),o=n===0?7:n;switch(t){case"i":return String(o);case"ii":return ue(o,t.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,r){const n=e.getHours();let o;switch(n===12?o=bn.noon:n===0?o=bn.midnight:o=n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,r){const n=e.getHours();let o;switch(n>=17?o=bn.evening:n>=12?o=bn.afternoon:n>=4?o=bn.morning:o=bn.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){let n=e.getHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return dr.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):dr.H(e,t)},K:function(e,t,r){const n=e.getHours()%12;return t==="Ko"?r.ordinalNumber(n,{unit:"hour"}):ue(n,t.length)},k:function(e,t,r){let n=e.getHours();return n===0&&(n=24),t==="ko"?r.ordinalNumber(n,{unit:"hour"}):ue(n,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):dr.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):dr.s(e,t)},S:function(e,t){return dr.S(e,t)},X:function(e,t,r){const n=e.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return yv(n);case"XXXX":case"XX":return Yr(n);case"XXXXX":case"XXX":default:return Yr(n,":")}},x:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"x":return yv(n);case"xxxx":case"xx":return Yr(n);case"xxxxx":case"xxx":default:return Yr(n,":")}},O:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+hv(n,":");case"OOOO":default:return"GMT"+Yr(n,":")}},z:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+hv(n,":");case"zzzz":default:return"GMT"+Yr(n,":")}},t:function(e,t,r){const n=Math.trunc(+e/1e3);return ue(n,t.length)},T:function(e,t,r){return ue(+e,t.length)}};function hv(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),o=Math.trunc(n/60),a=n%60;return a===0?r+String(o):r+String(o)+t+ue(a,2)}function yv(e,t){return e%60===0?(e>0?"-":"+")+ue(Math.abs(e)/60,2):Yr(e,t)}function Yr(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),o=ue(Math.trunc(n/60),2),a=ue(n%60,2);return r+o+t+a}const bv=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},c0=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},XD=(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],n=r[1],o=r[2];if(!o)return bv(e,t);let a;switch(n){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",bv(n,t)).replace("{{time}}",c0(o,t))},VD={p:c0,P:XD},GD=/^D+$/,qD=/^Y+$/,ZD=["D","DD","YY","YYYY"];function JD(e){return GD.test(e)}function QD(e){return qD.test(e)}function eO(e,t,r){const n=tO(e,t,r);if(console.warn(n),ZD.includes(e))throw new RangeError(n)}function tO(e,t,r){const n=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const rO=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,nO=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,oO=/^'([^]*?)'?$/,aO=/''/g,sO=/[a-zA-Z]/;function Vf(e,t,r){const n=iu(),o=r?.locale??n.locale??nm.enUS,a=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,c=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,s=rt(e,r?.in);if(!$D(s))throw new RangeError("Invalid time value");let m=t.match(nO).map(u=>{const p=u[0];if(p==="p"||p==="P"){const v=VD[p];return v(u,o.formatLong)}return u}).join("").match(rO).map(u=>{if(u==="''")return{isToken:!1,value:"'"};const p=u[0];if(p==="'")return{isToken:!1,value:iO(u)};if(gv[p])return{isToken:!0,value:u};if(p.match(sO))throw new RangeError("Format string contains an unescaped latin alphabet character `"+p+"`");return{isToken:!1,value:u}});o.localize.preprocessor&&(m=o.localize.preprocessor(s,m));const l={firstWeekContainsDate:a,weekStartsOn:c,locale:o};return m.map(u=>{if(!u.isToken)return u.value;const p=u.value;(!r?.useAdditionalWeekYearTokens&&QD(p)||!r?.useAdditionalDayOfYearTokens&&JD(p))&&eO(p,t,String(e));const v=gv[p[0]];return v(s,p,o.localize,l)}).join("")}function iO(e){const t=e.match(oO);return t?t[1].replace(aO,"'"):e}function Ua({...e}){return j.jsxRuntimeExports.jsx(ba.Root,{"data-slot":"popover",...e})}function Ba({...e}){return j.jsxRuntimeExports.jsx(ba.Trigger,{"data-slot":"popover-trigger",...e})}function Ka({className:e,align:t="center",sideOffset:r=4,...n}){return j.jsxRuntimeExports.jsx(ba.Portal,{children:j.jsxRuntimeExports.jsx(ba.Content,{"data-slot":"popover-content",align:t,sideOffset:r,className:W.cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",e),...n})})}function cO({...e}){return j.jsxRuntimeExports.jsx(ba.Anchor,{"data-slot":"popover-anchor",...e})}function uO({value:e,onChange:t=()=>{}}){const[r,n]=M.useState(e),{locale:o}=nm.useLocale();return j.jsxRuntimeExports.jsxs(Ua,{children:[j.jsxRuntimeExports.jsx(Ba,{asChild:!0,children:j.jsxRuntimeExports.jsxs(W.Button,{variant:"outline",className:W.cn("justify-start text-left font-normal cursor-pointer h-[32px] border-dashed",!r&&"text-muted-foreground"),children:[j.jsxRuntimeExports.jsx(be.Calendar,{className:"mr-2 h-4 w-4"}),r?Vf(new er.TZDate(r.toString(),"UTC"),"dd 'de' MMMM 'de' yyyy",{locale:o}):j.jsxRuntimeExports.jsx("span",{children:"Selecione uma data"})]})}),j.jsxRuntimeExports.jsx(Ka,{className:"w-auto p-0",children:j.jsxRuntimeExports.jsx(im,{mode:"single",captionLayout:"dropdown",locale:o,timeZone:"UTC",selected:r,defaultMonth:e?new er.TZDate(e.toString()):new er.TZDate,onSelect:a=>{n(a),t(a)},endMonth:new er.TZDate(2099,11)})})]})}function lO({locale:e,value:t,onChange:r=()=>{}}){const[n,o]=M.useState(t),{locale:a}=nm.useLocale();return j.jsxRuntimeExports.jsxs(Ua,{children:[j.jsxRuntimeExports.jsx(Ba,{asChild:!0,children:j.jsxRuntimeExports.jsxs(W.Button,{variant:"outline",className:W.cn("justify-start text-left font-normal cursor-pointer h-[32px] border-dashed",!n&&"text-muted-foreground"),children:[j.jsxRuntimeExports.jsx(be.Calendar,{className:"mr-2 h-4 w-4"}),n?.from&&n?.to?`${Vf(n.from,"dd/MM/yy")} - ${Vf(n.to,"dd/MM/yy")}`:j.jsxRuntimeExports.jsx("span",{children:"Selecione um período"})]})}),j.jsxRuntimeExports.jsx(Ka,{className:"w-auto p-0",children:j.jsxRuntimeExports.jsx(im,{mode:"range",selected:n,onSelect:c=>{c&&(o(c),r(c))},locale:e||a,captionLayout:"dropdown",endMonth:new er.TZDate(2099,11),numberOfMonths:1,className:"rounded-lg border shadow-sm"})})]})}const u0=ie.cva("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function Ji({className:e,variant:t,asChild:r=!1,...n}){const o=r?Z.Slot:"span";return j.jsxRuntimeExports.jsx(o,{"data-slot":"badge",className:W.cn(u0({variant:t}),e),...n})}function dO({className:e,...t}){return j.jsxRuntimeExports.jsx("div",{"data-slot":"card",className:W.cn("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...t})}function fO({className:e,...t}){return j.jsxRuntimeExports.jsx("div",{"data-slot":"card-header",className:W.cn("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...t})}function pO({className:e,...t}){return j.jsxRuntimeExports.jsx("div",{"data-slot":"card-title",className:W.cn("leading-none font-semibold",e),...t})}function mO({className:e,...t}){return j.jsxRuntimeExports.jsx("div",{"data-slot":"card-description",className:W.cn("text-muted-foreground text-sm",e),...t})}function vO({className:e,...t}){return j.jsxRuntimeExports.jsx("div",{"data-slot":"card-action",className:W.cn("col-start-2 row-span-2 row-start-1 self-start justify-self-end",e),...t})}function gO({className:e,...t}){return j.jsxRuntimeExports.jsx("div",{"data-slot":"card-content",className:W.cn("px-6",e),...t})}function hO({className:e,...t}){return j.jsxRuntimeExports.jsx("div",{"data-slot":"card-footer",className:W.cn("flex items-center px-6 [.border-t]:pt-6",e),...t})}function yO({className:e,...t}){return j.jsxRuntimeExports.jsx(fv.Root,{"data-slot":"checkbox",className:W.cn("peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:j.jsxRuntimeExports.jsx(fv.Indicator,{"data-slot":"checkbox-indicator",className:"flex items-center justify-center text-current transition-none",children:j.jsxRuntimeExports.jsx(be.CheckIcon,{className:"size-3.5"})})})}function bO({...e}){return j.jsxRuntimeExports.jsx(om.Root,{"data-slot":"collapsible",...e})}function wO({...e}){return j.jsxRuntimeExports.jsx(om.CollapsibleTrigger,{"data-slot":"collapsible-trigger",...e})}function xO({...e}){return j.jsxRuntimeExports.jsx(om.CollapsibleContent,{"data-slot":"collapsible-content",...e})}function Dr(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e?.(o),r===!1||!o.defaultPrevented)return t?.(o)}}function wv(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function EO(...e){return t=>{let r=!1;const n=e.map(o=>{const a=wv(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():wv(e[o],null)}}}}function dn(...e){return i.useCallback(EO(...e),e)}function SO(e,t){const r=i.createContext(t),n=a=>{const{children:c,...s}=a,m=i.useMemo(()=>s,Object.values(s));return j.jsxRuntimeExports.jsx(r.Provider,{value:m,children:c})};n.displayName=e+"Provider";function o(a){const c=i.useContext(r);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function RO(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),m=r.length;r=[...r,c];const l=p=>{const{scope:v,children:h,...x}=p,d=v?.[e]?.[m]||s,g=i.useMemo(()=>x,Object.values(x));return j.jsxRuntimeExports.jsx(d.Provider,{value:g,children:h})};l.displayName=a+"Provider";function u(p,v){const h=v?.[e]?.[m]||s,x=i.useContext(h);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[l,u]}const o=()=>{const a=r.map(c=>i.createContext(c));return function(s){const m=s?.[e]||a;return i.useMemo(()=>({[`__scope${e}`]:{...s,[e]:m}}),[s,m])}};return o.scopeName=e,[n,CO(o,...t)]}function CO(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const c=n.reduce((s,{useScope:m,scopeName:l})=>{const p=m(a)[`__scope${l}`];return{...s,...p}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return r.scopeName=t.scopeName,r}var xa=globalThis?.document?i.useLayoutEffect:()=>{},NO=i[" useId ".trim().toString()]||(()=>{}),kO=0;function sl(e){const[t,r]=i.useState(NO());return xa(()=>{r(n=>n??String(kO++))},[e]),e||(t?`radix-${t}`:"")}var jO=i[" useInsertionEffect ".trim().toString()]||xa;function TO({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,c]=DO({defaultProp:t,onChange:r}),s=e!==void 0,m=s?e:o;{const u=i.useRef(e!==void 0);i.useEffect(()=>{const p=u.current;p!==s&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=s},[s,n])}const l=i.useCallback(u=>{if(s){const p=OO(u)?u(e):u;p!==e&&c.current?.(p)}else a(u)},[s,e,a,c]);return[m,l]}function DO({defaultProp:e,onChange:t}){const[r,n]=i.useState(e),o=i.useRef(r),a=i.useRef(t);return jO(()=>{a.current=t},[t]),i.useEffect(()=>{o.current!==r&&(a.current?.(r),o.current=r)},[r,o]),[r,n,a]}function OO(e){return typeof e=="function"}var PO=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],nr=PO.reduce((e,t)=>{const r=Z.createSlot(`Primitive.${t}`),n=i.forwardRef((o,a)=>{const{asChild:c,...s}=o,m=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),j.jsxRuntimeExports.jsx(m,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function _O(e,t){e&&Ee.flushSync(()=>e.dispatchEvent(t))}function Ea(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>t.current?.(...r),[])}function MO(e,t=globalThis?.document){const r=Ea(e);i.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var AO="DismissableLayer",Gf="dismissableLayer.update",IO="dismissableLayer.pointerDownOutside",FO="dismissableLayer.focusOutside",xv,l0=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),d0=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...m}=e,l=i.useContext(l0),[u,p]=i.useState(null),v=u?.ownerDocument??globalThis?.document,[,h]=i.useState({}),x=dn(t,R=>p(R)),d=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),y=d.indexOf(g),b=u?d.indexOf(u):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,E=b>=y,C=zO(R=>{const N=R.target,P=[...l.branches].some(L=>L.contains(N));!E||P||(o?.(R),c?.(R),R.defaultPrevented||s?.())},v),T=$O(R=>{const N=R.target;[...l.branches].some(L=>L.contains(N))||(a?.(R),c?.(R),R.defaultPrevented||s?.())},v);return MO(R=>{b===l.layers.size-1&&(n?.(R),!R.defaultPrevented&&s&&(R.preventDefault(),s()))},v),i.useEffect(()=>{if(u)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(xv=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),Ev(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=xv)}},[u,v,r,l]),i.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),Ev())},[u,l]),i.useEffect(()=>{const R=()=>h({});return document.addEventListener(Gf,R),()=>document.removeEventListener(Gf,R)},[]),j.jsxRuntimeExports.jsx(nr.div,{...m,ref:x,style:{pointerEvents:w?E?"auto":"none":void 0,...e.style},onFocusCapture:Dr(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Dr(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Dr(e.onPointerDownCapture,C.onPointerDownCapture)})});d0.displayName=AO;var LO="DismissableLayerBranch",WO=i.forwardRef((e,t)=>{const r=i.useContext(l0),n=i.useRef(null),o=dn(t,n);return i.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),j.jsxRuntimeExports.jsx(nr.div,{...e,ref:o})});WO.displayName=LO;function zO(e,t=globalThis?.document){const r=Ea(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let m=function(){f0(IO,r,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=m,t.addEventListener("click",o.current,{once:!0})):m()}else t.removeEventListener("click",o.current);n.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function $O(e,t=globalThis?.document){const r=Ea(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&f0(FO,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Ev(){const e=new CustomEvent(Gf);document.dispatchEvent(e)}function f0(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?_O(o,a):o.dispatchEvent(a)}var il="focusScope.autoFocusOnMount",cl="focusScope.autoFocusOnUnmount",Sv={bubbles:!1,cancelable:!0},YO="FocusScope",p0=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,m]=i.useState(null),l=Ea(o),u=Ea(a),p=i.useRef(null),v=dn(t,d=>m(d)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let d=function(w){if(h.paused||!s)return;const E=w.target;s.contains(E)?p.current=E:pr(p.current,{select:!0})},g=function(w){if(h.paused||!s)return;const E=w.relatedTarget;E!==null&&(s.contains(E)||pr(p.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const C of w)C.removedNodes.length>0&&pr(s)};document.addEventListener("focusin",d),document.addEventListener("focusout",g);const b=new MutationObserver(y);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",d),document.removeEventListener("focusout",g),b.disconnect()}}},[n,s,h.paused]),i.useEffect(()=>{if(s){Cv.add(h);const d=document.activeElement;if(!s.contains(d)){const y=new CustomEvent(il,Sv);s.addEventListener(il,l),s.dispatchEvent(y),y.defaultPrevented||(UO(VO(m0(s)),{select:!0}),document.activeElement===d&&pr(s))}return()=>{s.removeEventListener(il,l),setTimeout(()=>{const y=new CustomEvent(cl,Sv);s.addEventListener(cl,u),s.dispatchEvent(y),y.defaultPrevented||pr(d??document.body,{select:!0}),s.removeEventListener(cl,u),Cv.remove(h)},0)}}},[s,l,u,h]);const x=i.useCallback(d=>{if(!r&&!n||h.paused)return;const g=d.key==="Tab"&&!d.altKey&&!d.ctrlKey&&!d.metaKey,y=document.activeElement;if(g&&y){const b=d.currentTarget,[w,E]=BO(b);w&&E?!d.shiftKey&&y===E?(d.preventDefault(),r&&pr(w,{select:!0})):d.shiftKey&&y===w&&(d.preventDefault(),r&&pr(E,{select:!0})):y===b&&d.preventDefault()}},[r,n,h.paused]);return j.jsxRuntimeExports.jsx(nr.div,{tabIndex:-1,...c,ref:v,onKeyDown:x})});p0.displayName=YO;function UO(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(pr(n,{select:t}),document.activeElement!==r)return}function BO(e){const t=m0(e),r=Rv(t,e),n=Rv(t.reverse(),e);return[r,n]}function m0(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Rv(e,t){for(const r of e)if(!KO(r,{upTo:t}))return r}function KO(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function HO(e){return e instanceof HTMLInputElement&&"select"in e}function pr(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&HO(e)&&t&&e.select()}}var Cv=XO();function XO(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=Nv(e,t),e.unshift(t)},remove(t){e=Nv(e,t),e[0]?.resume()}}}function Nv(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function VO(e){return e.filter(t=>t.tagName!=="A")}var GO="Portal",v0=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);xa(()=>a(!0),[]);const c=r||o&&globalThis?.document?.body;return c?xe.createPortal(j.jsxRuntimeExports.jsx(nr.div,{...n,ref:t}),c):null});v0.displayName=GO;function qO(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var cu=e=>{const{present:t,children:r}=e,n=ZO(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=dn(n.ref,JO(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};cu.displayName="Presence";function ZO(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,m]=qO(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const l=as(n.current);a.current=s==="mounted"?l:"none"},[s]),xa(()=>{const l=n.current,u=o.current;if(u!==e){const v=a.current,h=as(l);e?m("MOUNT"):h==="none"||l?.display==="none"?m("UNMOUNT"):m(u&&v!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,m]),xa(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,p=h=>{const d=as(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&d&&(m("ANIMATION_END"),!o.current)){const g=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=g)})}},v=h=>{h.target===t&&(a.current=as(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else m("ANIMATION_END")},[t,m]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:i.useCallback(l=>{n.current=l?getComputedStyle(l):null,r(l)},[])}}function as(e){return e?.animationName||"none"}function JO(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var ul=0;function QO(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??kv()),document.body.insertAdjacentElement("beforeend",e[1]??kv()),ul++,()=>{ul===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),ul--}},[])}function kv(){const e=document.createElement("span");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}var ot=function(){return ot=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},ot.apply(this,arguments)};function g0(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function eP(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var Qi="right-scroll-bar-position",ec="width-before-scroll-bar",tP="with-scroll-bars-hidden",rP="--removed-body-scroll-bar-size";function ll(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function nP(e,t){var r=M.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var oP=typeof window<"u"?i.useLayoutEffect:i.useEffect,jv=new WeakMap;function aP(e,t){var r=nP(null,function(n){return e.forEach(function(o){return ll(o,n)})});return oP(function(){var n=jv.get(r);if(n){var o=new Set(n),a=new Set(e),c=r.current;o.forEach(function(s){a.has(s)||ll(s,null)}),a.forEach(function(s){o.has(s)||ll(s,c)})}jv.set(r,e)},[e]),r}function sP(e){return e}function iP(e,t){t===void 0&&(t=sP);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var c=t(a,n);return r.push(c),function(){r=r.filter(function(s){return s!==c})}},assignSyncMedium:function(a){for(n=!0;r.length;){var c=r;r=[],c.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var c=[];if(r.length){var s=r;r=[],s.forEach(a),c=r}var m=function(){var u=c;c=[],u.forEach(a)},l=function(){return Promise.resolve().then(m)};l(),r={push:function(u){c.push(u),l()},filter:function(u){return c=c.filter(u),r}}}};return o}function cP(e){e===void 0&&(e={});var t=iP(null);return t.options=ot({async:!0,ssr:!1},e),t}var h0=function(e){var t=e.sideCar,r=g0(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return i.createElement(n,ot({},r))};h0.isSideCarExport=!0;function uP(e,t){return e.useMedium(t),h0}var y0=cP(),dl=function(){},uu=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:dl,onWheelCapture:dl,onTouchMoveCapture:dl}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,m=e.className,l=e.removeScrollBar,u=e.enabled,p=e.shards,v=e.sideCar,h=e.noRelative,x=e.noIsolation,d=e.inert,g=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,w=e.gapMode,E=g0(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=v,T=aP([r,t]),R=ot(ot({},E),o);return i.createElement(i.Fragment,null,u&&i.createElement(C,{sideCar:y0,removeScrollBar:l,shards:p,noRelative:h,noIsolation:x,inert:d,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),ot(ot({},R),{ref:T})):i.createElement(b,ot({},R,{className:m,ref:T}),s))});uu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};uu.classNames={fullWidth:ec,zeroRight:Qi};var lP=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function dP(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=lP();return t&&e.setAttribute("nonce",t),e}function fP(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function pP(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var mP=function(){var e=0,t=null;return{add:function(r){e==0&&(t=dP())&&(fP(t,r),pP(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},vP=function(){var e=mP();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},b0=function(){var e=vP(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},gP={left:0,top:0,right:0,gap:0},fl=function(e){return parseInt(e||"",10)||0},hP=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[fl(r),fl(n),fl(o)]},yP=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return gP;var t=hP(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},bP=b0(),bo="data-scroll-locked",wP=function(e,t,r,n){var o=e.left,a=e.top,c=e.right,s=e.gap;return r===void 0&&(r="margin"),`
|
2
|
-
.`.concat(tP,` {
|
3
|
-
overflow: hidden `).concat(n,`;
|
4
|
-
padding-right: `).concat(s,"px ").concat(n,`;
|
5
|
-
}
|
6
|
-
body[`).concat(bo,`] {
|
7
|
-
overflow: hidden `).concat(n,`;
|
8
|
-
overscroll-behavior: contain;
|
9
|
-
`).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
|
10
|
-
padding-left: `.concat(o,`px;
|
11
|
-
padding-top: `).concat(a,`px;
|
12
|
-
padding-right: `).concat(c,`px;
|
13
|
-
margin-left:0;
|
14
|
-
margin-top:0;
|
15
|
-
margin-right: `).concat(s,"px ").concat(n,`;
|
16
|
-
`),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
|
17
|
-
}
|
18
|
-
|
19
|
-
.`).concat(Qi,` {
|
20
|
-
right: `).concat(s,"px ").concat(n,`;
|
21
|
-
}
|
22
|
-
|
23
|
-
.`).concat(ec,` {
|
24
|
-
margin-right: `).concat(s,"px ").concat(n,`;
|
25
|
-
}
|
26
|
-
|
27
|
-
.`).concat(Qi," .").concat(Qi,` {
|
28
|
-
right: 0 `).concat(n,`;
|
29
|
-
}
|
30
|
-
|
31
|
-
.`).concat(ec," .").concat(ec,` {
|
32
|
-
margin-right: 0 `).concat(n,`;
|
33
|
-
}
|
34
|
-
|
35
|
-
body[`).concat(bo,`] {
|
36
|
-
`).concat(rP,": ").concat(s,`px;
|
37
|
-
}
|
38
|
-
`)},Tv=function(){var e=parseInt(document.body.getAttribute(bo)||"0",10);return isFinite(e)?e:0},xP=function(){i.useEffect(function(){return document.body.setAttribute(bo,(Tv()+1).toString()),function(){var e=Tv()-1;e<=0?document.body.removeAttribute(bo):document.body.setAttribute(bo,e.toString())}},[])},EP=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;xP();var a=i.useMemo(function(){return yP(o)},[o]);return i.createElement(bP,{styles:wP(a,!t,o,r?"":"!important")})},qf=!1;if(typeof window<"u")try{var ss=Object.defineProperty({},"passive",{get:function(){return qf=!0,!0}});window.addEventListener("test",ss,ss),window.removeEventListener("test",ss,ss)}catch{qf=!1}var wn=qf?{passive:!1}:!1,SP=function(e){return e.tagName==="TEXTAREA"},w0=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!SP(e)&&r[t]==="visible")},RP=function(e){return w0(e,"overflowY")},CP=function(e){return w0(e,"overflowX")},Dv=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=x0(e,n);if(o){var a=E0(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},NP=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},kP=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},x0=function(e,t){return e==="v"?RP(t):CP(t)},E0=function(e,t){return e==="v"?NP(t):kP(t)},jP=function(e,t){return e==="h"&&t==="rtl"?-1:1},TP=function(e,t,r,n,o){var a=jP(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,m=t.contains(s),l=!1,u=c>0,p=0,v=0;do{if(!s)break;var h=E0(e,s),x=h[0],d=h[1],g=h[2],y=d-g-a*x;(x||y)&&x0(e,s)&&(p+=y,v+=x);var b=s.parentNode;s=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!m&&s!==document.body||m&&(t.contains(s)||t===s));return(u&&Math.abs(p)<1||!u&&Math.abs(v)<1)&&(l=!0),l},is=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ov=function(e){return[e.deltaX,e.deltaY]},Pv=function(e){return e&&"current"in e?e.current:e},DP=function(e,t){return e[0]===t[0]&&e[1]===t[1]},OP=function(e){return`
|
39
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
40
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
41
|
-
`)},PP=0,xn=[];function _P(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(PP++)[0],a=i.useState(b0)[0],c=i.useRef(e);i.useEffect(function(){c.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var d=eP([e.lockRef.current],(e.shards||[]).map(Pv),!0).filter(Boolean);return d.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),d.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(d,g){if("touches"in d&&d.touches.length===2||d.type==="wheel"&&d.ctrlKey)return!c.current.allowPinchZoom;var y=is(d),b=r.current,w="deltaX"in d?d.deltaX:b[0]-y[0],E="deltaY"in d?d.deltaY:b[1]-y[1],C,T=d.target,R=Math.abs(w)>Math.abs(E)?"h":"v";if("touches"in d&&R==="h"&&T.type==="range")return!1;var N=Dv(R,T);if(!N)return!0;if(N?C=R:(C=R==="v"?"h":"v",N=Dv(R,T)),!N)return!1;if(!n.current&&"changedTouches"in d&&(w||E)&&(n.current=C),!C)return!0;var P=n.current||C;return TP(P,g,d,P==="h"?w:E)},[]),m=i.useCallback(function(d){var g=d;if(!(!xn.length||xn[xn.length-1]!==a)){var y="deltaY"in g?Ov(g):is(g),b=t.current.filter(function(C){return C.name===g.type&&(C.target===g.target||g.target===C.shadowParent)&&DP(C.delta,y)})[0];if(b&&b.should){g.cancelable&&g.preventDefault();return}if(!b){var w=(c.current.shards||[]).map(Pv).filter(Boolean).filter(function(C){return C.contains(g.target)}),E=w.length>0?s(g,w[0]):!c.current.noIsolation;E&&g.cancelable&&g.preventDefault()}}},[]),l=i.useCallback(function(d,g,y,b){var w={name:d,delta:g,target:y,should:b,shadowParent:MP(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(E){return E!==w})},1)},[]),u=i.useCallback(function(d){r.current=is(d),n.current=void 0},[]),p=i.useCallback(function(d){l(d.type,Ov(d),d.target,s(d,e.lockRef.current))},[]),v=i.useCallback(function(d){l(d.type,is(d),d.target,s(d,e.lockRef.current))},[]);i.useEffect(function(){return xn.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",m,wn),document.addEventListener("touchmove",m,wn),document.addEventListener("touchstart",u,wn),function(){xn=xn.filter(function(d){return d!==a}),document.removeEventListener("wheel",m,wn),document.removeEventListener("touchmove",m,wn),document.removeEventListener("touchstart",u,wn)}},[]);var h=e.removeScrollBar,x=e.inert;return i.createElement(i.Fragment,null,x?i.createElement(a,{styles:OP(o)}):null,h?i.createElement(EP,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function MP(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const AP=uP(y0,_P);var S0=i.forwardRef(function(e,t){return i.createElement(uu,ot({},e,{ref:t,sideCar:AP}))});S0.classNames=uu.classNames;var IP=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},En=new WeakMap,cs=new WeakMap,us={},pl=0,R0=function(e){return e&&(e.host||R0(e.parentNode))},FP=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=R0(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},LP=function(e,t,r,n){var o=FP(t,Array.isArray(e)?e:[e]);us[r]||(us[r]=new WeakMap);var a=us[r],c=[],s=new Set,m=new Set(o),l=function(p){!p||s.has(p)||(s.add(p),l(p.parentNode))};o.forEach(l);var u=function(p){!p||m.has(p)||Array.prototype.forEach.call(p.children,function(v){if(s.has(v))u(v);else try{var h=v.getAttribute(n),x=h!==null&&h!=="false",d=(En.get(v)||0)+1,g=(a.get(v)||0)+1;En.set(v,d),a.set(v,g),c.push(v),d===1&&x&&cs.set(v,!0),g===1&&v.setAttribute(r,"true"),x||v.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",v,y)}})};return u(t),s.clear(),pl++,function(){c.forEach(function(p){var v=En.get(p)-1,h=a.get(p)-1;En.set(p,v),a.set(p,h),v||(cs.has(p)||p.removeAttribute(n),cs.delete(p)),h||p.removeAttribute(r)}),pl--,pl||(En=new WeakMap,En=new WeakMap,cs=new WeakMap,us={})}},WP=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=IP(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),LP(n,o,r,"aria-hidden")):function(){return null}},lu="Dialog",[C0]=RO(lu),[zP,nt]=C0(lu),N0=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:c=!0}=e,s=i.useRef(null),m=i.useRef(null),[l,u]=TO({prop:n,defaultProp:o??!1,onChange:a,caller:lu});return j.jsxRuntimeExports.jsx(zP,{scope:t,triggerRef:s,contentRef:m,contentId:sl(),titleId:sl(),descriptionId:sl(),open:l,onOpenChange:u,onOpenToggle:i.useCallback(()=>u(p=>!p),[u]),modal:c,children:r})};N0.displayName=lu;var k0="DialogTrigger",j0=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=nt(k0,r),a=dn(t,o.triggerRef);return j.jsxRuntimeExports.jsx(nr.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":lm(o.open),...n,ref:a,onClick:Dr(e.onClick,o.onOpenToggle)})});j0.displayName=k0;var cm="DialogPortal",[$P,T0]=C0(cm,{forceMount:void 0}),D0=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:o}=e,a=nt(cm,t);return j.jsxRuntimeExports.jsx($P,{scope:t,forceMount:r,children:i.Children.map(n,c=>j.jsxRuntimeExports.jsx(cu,{present:r||a.open,children:j.jsxRuntimeExports.jsx(v0,{asChild:!0,container:o,children:c})}))})};D0.displayName=cm;var Lc="DialogOverlay",O0=i.forwardRef((e,t)=>{const r=T0(Lc,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=nt(Lc,e.__scopeDialog);return a.modal?j.jsxRuntimeExports.jsx(cu,{present:n||a.open,children:j.jsxRuntimeExports.jsx(UP,{...o,ref:t})}):null});O0.displayName=Lc;var YP=Z.createSlot("DialogOverlay.RemoveScroll"),UP=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=nt(Lc,r);return j.jsxRuntimeExports.jsx(S0,{as:YP,allowPinchZoom:!0,shards:[o.contentRef],children:j.jsxRuntimeExports.jsx(nr.div,{"data-state":lm(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Hr="DialogContent",P0=i.forwardRef((e,t)=>{const r=T0(Hr,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=nt(Hr,e.__scopeDialog);return j.jsxRuntimeExports.jsx(cu,{present:n||a.open,children:a.modal?j.jsxRuntimeExports.jsx(BP,{...o,ref:t}):j.jsxRuntimeExports.jsx(KP,{...o,ref:t})})});P0.displayName=Hr;var BP=i.forwardRef((e,t)=>{const r=nt(Hr,e.__scopeDialog),n=i.useRef(null),o=dn(t,r.contentRef,n);return i.useEffect(()=>{const a=n.current;if(a)return WP(a)},[]),j.jsxRuntimeExports.jsx(_0,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Dr(e.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:Dr(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&a.preventDefault()}),onFocusOutside:Dr(e.onFocusOutside,a=>a.preventDefault())})}),KP=i.forwardRef((e,t)=>{const r=nt(Hr,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return j.jsxRuntimeExports.jsx(_0,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(n.current||r.triggerRef.current?.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=a.target;r.triggerRef.current?.contains(c)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),_0=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,s=nt(Hr,r),m=i.useRef(null),l=dn(t,m);return QO(),j.jsxRuntimeExports.jsxs(j.jsxRuntimeExports.Fragment,{children:[j.jsxRuntimeExports.jsx(p0,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:j.jsxRuntimeExports.jsx(d0,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":lm(s.open),...c,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),j.jsxRuntimeExports.jsxs(j.jsxRuntimeExports.Fragment,{children:[j.jsxRuntimeExports.jsx(HP,{titleId:s.titleId}),j.jsxRuntimeExports.jsx(VP,{contentRef:m,descriptionId:s.descriptionId})]})]})}),um="DialogTitle",M0=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=nt(um,r);return j.jsxRuntimeExports.jsx(nr.h2,{id:o.titleId,...n,ref:t})});M0.displayName=um;var A0="DialogDescription",I0=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=nt(A0,r);return j.jsxRuntimeExports.jsx(nr.p,{id:o.descriptionId,...n,ref:t})});I0.displayName=A0;var F0="DialogClose",L0=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=nt(F0,r);return j.jsxRuntimeExports.jsx(nr.button,{type:"button",...n,ref:t,onClick:Dr(e.onClick,()=>o.onOpenChange(!1))})});L0.displayName=F0;function lm(e){return e?"open":"closed"}var W0="DialogTitleWarning",[koe,z0]=SO(W0,{contentName:Hr,titleName:um,docsSlug:"dialog"}),HP=({titleId:e})=>{const t=z0(W0),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
42
|
-
|
43
|
-
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
44
|
-
|
45
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},XP="DialogDescriptionWarning",VP=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${z0(XP).contentName}}.`;return i.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},GP=N0,qP=j0,ZP=D0,JP=O0,QP=P0,e_=M0,t_=I0,$0=L0;function Y0({...e}){return j.jsxRuntimeExports.jsx(GP,{"data-slot":"dialog",...e})}function r_({...e}){return j.jsxRuntimeExports.jsx(qP,{"data-slot":"dialog-trigger",...e})}function U0({...e}){return j.jsxRuntimeExports.jsx(ZP,{"data-slot":"dialog-portal",...e})}function n_({...e}){return j.jsxRuntimeExports.jsx($0,{"data-slot":"dialog-close",...e})}function B0({className:e,...t}){return j.jsxRuntimeExports.jsx(JP,{"data-slot":"dialog-overlay",className:W.cn("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}function K0({className:e,children:t,showCloseButton:r=!0,...n}){return j.jsxRuntimeExports.jsxs(U0,{"data-slot":"dialog-portal",children:[j.jsxRuntimeExports.jsx(B0,{}),j.jsxRuntimeExports.jsxs(QP,{"data-slot":"dialog-content",className:W.cn("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",e),...n,children:[t,r&&j.jsxRuntimeExports.jsxs($0,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[j.jsxRuntimeExports.jsx(be.XIcon,{}),j.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function H0({className:e,...t}){return j.jsxRuntimeExports.jsx("div",{"data-slot":"dialog-header",className:W.cn("flex flex-col gap-2 text-center sm:text-left",e),...t})}function o_({className:e,...t}){return j.jsxRuntimeExports.jsx("div",{"data-slot":"dialog-footer",className:W.cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t})}function X0({className:e,...t}){return j.jsxRuntimeExports.jsx(e_,{"data-slot":"dialog-title",className:W.cn("text-lg leading-none font-semibold",e),...t})}function V0({className:e,...t}){return j.jsxRuntimeExports.jsx(t_,{"data-slot":"dialog-description",className:W.cn("text-muted-foreground text-sm",e),...t})}function du({className:e,...t}){return j.jsxRuntimeExports.jsx(ln.Command,{"data-slot":"command",className:W.cn("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...t})}function a_({title:e="Command Palette",description:t="Search for a command to run...",children:r,className:n,showCloseButton:o=!0,...a}){return j.jsxRuntimeExports.jsxs(Y0,{...a,children:[j.jsxRuntimeExports.jsxs(H0,{className:"sr-only",children:[j.jsxRuntimeExports.jsx(X0,{children:e}),j.jsxRuntimeExports.jsx(V0,{children:t})]}),j.jsxRuntimeExports.jsx(K0,{className:W.cn("overflow-hidden p-0",n),showCloseButton:o,children:j.jsxRuntimeExports.jsx(du,{className:"[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:r})})]})}function dm({className:e,...t}){return j.jsxRuntimeExports.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[j.jsxRuntimeExports.jsx(be.SearchIcon,{className:"size-4 shrink-0 opacity-50"}),j.jsxRuntimeExports.jsx(ln.Command.Input,{"data-slot":"command-input",className:W.cn("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",e),...t})]})}function fm({className:e,...t}){return j.jsxRuntimeExports.jsx(ln.Command.List,{"data-slot":"command-list",className:W.cn("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",e),...t})}function pm({...e}){return j.jsxRuntimeExports.jsx(ln.Command.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...e})}function Wc({className:e,...t}){return j.jsxRuntimeExports.jsx(ln.Command.Group,{"data-slot":"command-group",className:W.cn("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",e),...t})}function G0({className:e,...t}){return j.jsxRuntimeExports.jsx(ln.Command.Separator,{"data-slot":"command-separator",className:W.cn("bg-border -mx-1 h-px",e),...t})}function zc({className:e,...t}){return j.jsxRuntimeExports.jsx(ln.Command.Item,{"data-slot":"command-item",className:W.cn("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}function s_({className:e,...t}){return j.jsxRuntimeExports.jsx("span",{"data-slot":"command-shortcut",className:W.cn("text-muted-foreground ml-auto text-xs tracking-widest",e),...t})}const i_=ie.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function q0(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=q0(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function c_(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=q0(e))&&(n&&(n+=" "),n+=t);return n}function u_(...e){return cD.twMerge(c_(e))}function Z0({className:e,variant:t,size:r,asChild:n=!1,...o}){const a=n?Z.Slot:"button";return de.de.jsx(a,{"data-slot":"button",className:u_(i_({variant:t,size:r,className:e})),...o})}var ml={exports:{}},ea={};/**
|
46
|
-
* @license React
|
47
|
-
* react-jsx-runtime.production.js
|
48
|
-
*
|
49
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
50
|
-
*
|
51
|
-
* This source code is licensed under the MIT license found in the
|
52
|
-
* LICENSE file in the root directory of this source tree.
|
53
|
-
*/var _v;function l_(){if(_v)return ea;_v=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var c=null;if(a!==void 0&&(c=""+a),o.key!==void 0&&(c=""+o.key),"key"in o){a={};for(var s in o)s!=="key"&&(a[s]=o[s])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:c,ref:o!==void 0?o:null,props:a}}return ea.Fragment=t,ea.jsx=r,ea.jsxs=r,ea}var ls={};/**
|
54
|
-
* @license React
|
55
|
-
* react-jsx-runtime.development.js
|
56
|
-
*
|
57
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
58
|
-
*
|
59
|
-
* This source code is licensed under the MIT license found in the
|
60
|
-
* LICENSE file in the root directory of this source tree.
|
61
|
-
*/var Mv;function d_(){return Mv||(Mv=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(f==null)return null;if(typeof f=="function")return f.$$typeof===L?null:f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case d:return"Fragment";case y:return"Profiler";case g:return"StrictMode";case C:return"Suspense";case T:return"SuspenseList";case P:return"Activity"}if(typeof f=="object")switch(typeof f.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),f.$$typeof){case x:return"Portal";case w:return(f.displayName||"Context")+".Provider";case b:return(f._context.displayName||"Context")+".Consumer";case E:var S=f.render;return f=f.displayName,f||(f=S.displayName||S.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case R:return S=f.displayName||null,S!==null?S:e(f.type)||"Memo";case N:S=f._payload,f=f._init;try{return e(f(S))}catch{}}return null}function t(f){return""+f}function r(f){try{t(f);var S=!1}catch{S=!0}if(S){S=console;var k=S.error,D=typeof Symbol=="function"&&Symbol.toStringTag&&f[Symbol.toStringTag]||f.constructor.name||"Object";return k.call(S,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",D),t(f)}}function n(f){if(f===d)return"<>";if(typeof f=="object"&&f!==null&&f.$$typeof===N)return"<...>";try{var S=e(f);return S?"<"+S+">":"<...>"}catch{return"<...>"}}function o(){var f=I.A;return f===null?null:f.getOwner()}function a(){return Error("react-stack-top-frame")}function c(f){if(B.call(f,"key")){var S=Object.getOwnPropertyDescriptor(f,"key").get;if(S&&S.isReactWarning)return!1}return f.key!==void 0}function s(f,S){function k(){_||(_=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",S))}k.isReactWarning=!0,Object.defineProperty(f,"key",{get:k,configurable:!0})}function m(){var f=e(this.type);return Y[f]||(Y[f]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),f=this.props.ref,f!==void 0?f:null}function l(f,S,k,D,F,A,G,X){return k=A.ref,f={$$typeof:h,type:f,key:S,props:A,_owner:F},(k!==void 0?k:null)!==null?Object.defineProperty(f,"ref",{enumerable:!1,get:m}):Object.defineProperty(f,"ref",{enumerable:!1,value:null}),f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(f,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(f,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:G}),Object.defineProperty(f,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:X}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f}function u(f,S,k,D,F,A,G,X){var O=S.children;if(O!==void 0)if(D)if(K(O)){for(D=0;D<O.length;D++)p(O[D]);Object.freeze&&Object.freeze(O)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else p(O);if(B.call(S,"key")){O=e(f);var z=Object.keys(S).filter(function(ce){return ce!=="key"});D=0<z.length?"{key: someKey, "+z.join(": ..., ")+": ...}":"{key: someKey}",V[O+D]||(z=0<z.length?"{"+z.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
62
|
-
let props = %s;
|
63
|
-
<%s {...props} />
|
64
|
-
React keys must be passed directly to JSX without using spread:
|
65
|
-
let props = %s;
|
66
|
-
<%s key={someKey} {...props} />`,D,O,z,O),V[O+D]=!0)}if(O=null,k!==void 0&&(r(k),O=""+k),c(S)&&(r(S.key),O=""+S.key),"key"in S){k={};for(var q in S)q!=="key"&&(k[q]=S[q])}else k=S;return O&&s(k,typeof f=="function"?f.displayName||f.name||"Unknown":f),l(f,O,A,F,o(),k,G,X)}function p(f){typeof f=="object"&&f!==null&&f.$$typeof===h&&f._store&&(f._store.validated=1)}var v=M,h=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),b=Symbol.for("react.consumer"),w=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),P=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),I=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,K=Array.isArray,$=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(f){return f()}};var _,Y={},H=v.react_stack_bottom_frame.bind(v,a)(),U=$(n(a)),V={};ls.Fragment=d,ls.jsx=function(f,S,k,D,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,S,k,!1,D,F,A?Error("react-stack-top-frame"):H,A?$(n(f)):U)},ls.jsxs=function(f,S,k,D,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,S,k,!0,D,F,A?Error("react-stack-top-frame"):H,A?$(n(f)):U)}})()),ls}var Av;function f_(){return Av||(Av=1,process.env.NODE_ENV==="production"?ml.exports=l_():ml.exports=d_()),ml.exports}var fe=f_();const p_={id:"",username:"",email:"",created_at:null,updated_at:null,features:[]};M.createContext({user:p_,isLoading:!0,fetchUser:async()=>{},logout:async()=>{},login:async()=>!1});M.createContext({locale:void 0});ie.cva("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function Or(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}function Iv(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function m_(...e){return t=>{let r=!1;const n=e.map(o=>{const a=Iv(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():Iv(e[o],null)}}}}function fn(...e){return i.useCallback(m_(...e),e)}function v_(e,t){const r=i.createContext(t),n=a=>{const{children:c,...s}=a,m=i.useMemo(()=>s,Object.values(s));return de.de.jsx(r.Provider,{value:m,children:c})};n.displayName=e+"Provider";function o(a){const c=i.useContext(r);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function g_(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),m=r.length;r=[...r,c];const l=p=>{const{scope:v,children:h,...x}=p,d=v?.[e]?.[m]||s,g=i.useMemo(()=>x,Object.values(x));return de.de.jsx(d.Provider,{value:g,children:h})};l.displayName=a+"Provider";function u(p,v){const h=v?.[e]?.[m]||s,x=i.useContext(h);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[l,u]}const o=()=>{const a=r.map(c=>i.createContext(c));return function(c){const s=c?.[e]||a;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:s}}),[c,s])}};return o.scopeName=e,[n,h_(o,...t)]}function h_(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){const a=n.reduce((c,{useScope:s,scopeName:m})=>{const l=s(o)[`__scope${m}`];return{...c,...l}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var Zf=globalThis?.document?i.useLayoutEffect:()=>{},y_=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],or=y_.reduce((e,t)=>{const r=Z.createSlot(`Primitive.${t}`),n=i.forwardRef((o,a)=>{const{asChild:c,...s}=o,m=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),de.de.jsx(m,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function b_(e,t){e&&Ee.flushSync(()=>e.dispatchEvent(t))}function Sa(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>t.current?.(...r),[])}function w_(e,t=globalThis?.document){const r=Sa(e);i.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var x_="DismissableLayer",Jf="dismissableLayer.update",E_="dismissableLayer.pointerDownOutside",S_="dismissableLayer.focusOutside",Fv,J0=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Q0=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...m}=e,l=i.useContext(J0),[u,p]=i.useState(null),v=u?.ownerDocument??globalThis?.document,[,h]=i.useState({}),x=fn(t,R=>p(R)),d=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),y=d.indexOf(g),b=u?d.indexOf(u):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,E=b>=y,C=N_(R=>{const N=R.target,P=[...l.branches].some(L=>L.contains(N));!E||P||(o?.(R),c?.(R),R.defaultPrevented||s?.())},v),T=k_(R=>{const N=R.target;[...l.branches].some(P=>P.contains(N))||(a?.(R),c?.(R),R.defaultPrevented||s?.())},v);return w_(R=>{b===l.layers.size-1&&(n?.(R),!R.defaultPrevented&&s&&(R.preventDefault(),s()))},v),i.useEffect(()=>{if(u)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Fv=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),Lv(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Fv)}},[u,v,r,l]),i.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),Lv())},[u,l]),i.useEffect(()=>{const R=()=>h({});return document.addEventListener(Jf,R),()=>document.removeEventListener(Jf,R)},[]),de.de.jsx(or.div,{...m,ref:x,style:{pointerEvents:w?E?"auto":"none":void 0,...e.style},onFocusCapture:Or(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Or(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Or(e.onPointerDownCapture,C.onPointerDownCapture)})});Q0.displayName=x_;var R_="DismissableLayerBranch",C_=i.forwardRef((e,t)=>{const r=i.useContext(J0),n=i.useRef(null),o=fn(t,n);return i.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),de.de.jsx(or.div,{...e,ref:o})});C_.displayName=R_;function N_(e,t=globalThis?.document){const r=Sa(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let m=function(){ex(E_,r,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=m,t.addEventListener("click",o.current,{once:!0})):m()}else t.removeEventListener("click",o.current);n.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function k_(e,t=globalThis?.document){const r=Sa(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&ex(S_,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Lv(){const e=new CustomEvent(Jf);document.dispatchEvent(e)}function ex(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?b_(o,a):o.dispatchEvent(a)}var vl="focusScope.autoFocusOnMount",gl="focusScope.autoFocusOnUnmount",Wv={bubbles:!1,cancelable:!0},j_="FocusScope",tx=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,m]=i.useState(null),l=Sa(o),u=Sa(a),p=i.useRef(null),v=fn(t,d=>m(d)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let d=function(w){if(h.paused||!s)return;const E=w.target;s.contains(E)?p.current=E:mr(p.current,{select:!0})},g=function(w){if(h.paused||!s)return;const E=w.relatedTarget;E!==null&&(s.contains(E)||mr(p.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const E of w)E.removedNodes.length>0&&mr(s)};document.addEventListener("focusin",d),document.addEventListener("focusout",g);const b=new MutationObserver(y);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",d),document.removeEventListener("focusout",g),b.disconnect()}}},[n,s,h.paused]),i.useEffect(()=>{if(s){$v.add(h);const d=document.activeElement;if(!s.contains(d)){const g=new CustomEvent(vl,Wv);s.addEventListener(vl,l),s.dispatchEvent(g),g.defaultPrevented||(T_(M_(rx(s)),{select:!0}),document.activeElement===d&&mr(s))}return()=>{s.removeEventListener(vl,l),setTimeout(()=>{const g=new CustomEvent(gl,Wv);s.addEventListener(gl,u),s.dispatchEvent(g),g.defaultPrevented||mr(d??document.body,{select:!0}),s.removeEventListener(gl,u),$v.remove(h)},0)}}},[s,l,u,h]);const x=i.useCallback(d=>{if(!r&&!n||h.paused)return;const g=d.key==="Tab"&&!d.altKey&&!d.ctrlKey&&!d.metaKey,y=document.activeElement;if(g&&y){const b=d.currentTarget,[w,E]=D_(b);w&&E?!d.shiftKey&&y===E?(d.preventDefault(),r&&mr(w,{select:!0})):d.shiftKey&&y===w&&(d.preventDefault(),r&&mr(E,{select:!0})):y===b&&d.preventDefault()}},[r,n,h.paused]);return de.de.jsx(or.div,{tabIndex:-1,...c,ref:v,onKeyDown:x})});tx.displayName=j_;function T_(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(mr(n,{select:t}),document.activeElement!==r)return}function D_(e){const t=rx(e),r=zv(t,e),n=zv(t.reverse(),e);return[r,n]}function rx(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function zv(e,t){for(const r of e)if(!O_(r,{upTo:t}))return r}function O_(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function P_(e){return e instanceof HTMLInputElement&&"select"in e}function mr(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&P_(e)&&t&&e.select()}}var $v=__();function __(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=Yv(e,t),e.unshift(t)},remove(t){e=Yv(e,t),e[0]?.resume()}}}function Yv(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function M_(e){return e.filter(t=>t.tagName!=="A")}var A_="Portal",I_=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);Zf(()=>a(!0),[]);const c=r||o&&globalThis?.document?.body;return c?xe.createPortal(de.de.jsx(or.div,{...n,ref:t}),c):null});I_.displayName=A_;function F_(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var mm=e=>{const{present:t,children:r}=e,n=L_(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=fn(n.ref,W_(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};mm.displayName="Presence";function L_(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,m]=F_(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const l=ds(n.current);a.current=s==="mounted"?l:"none"},[s]),Zf(()=>{const l=n.current,u=o.current;if(u!==e){const p=a.current,v=ds(l);e?m("MOUNT"):v==="none"||l?.display==="none"?m("UNMOUNT"):m(u&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,m]),Zf(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,p=h=>{const x=ds(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&x&&(m("ANIMATION_END"),!o.current)){const d=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=d)})}},v=h=>{h.target===t&&(a.current=ds(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else m("ANIMATION_END")},[t,m]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:i.useCallback(l=>{n.current=l?getComputedStyle(l):null,r(l)},[])}}function ds(e){return e?.animationName||"none"}function W_(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var hl=0;function z_(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Uv()),document.body.insertAdjacentElement("beforeend",e[1]??Uv()),hl++,()=>{hl===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),hl--}},[])}function Uv(){const e=document.createElement("span");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}var at=function(){return at=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},at.apply(this,arguments)};function nx(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function $_(e,t,r){for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var tc="right-scroll-bar-position",rc="width-before-scroll-bar",Y_="with-scroll-bars-hidden",U_="--removed-body-scroll-bar-size";function yl(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function B_(e,t){var r=M.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var K_=typeof window<"u"?i.useLayoutEffect:i.useEffect,Bv=new WeakMap;function H_(e,t){var r=B_(null,function(n){return e.forEach(function(o){return yl(o,n)})});return K_(function(){var n=Bv.get(r);if(n){var o=new Set(n),a=new Set(e),c=r.current;o.forEach(function(s){a.has(s)||yl(s,null)}),a.forEach(function(s){o.has(s)||yl(s,c)})}Bv.set(r,e)},[e]),r}function X_(e){return e}function V_(e,t){t===void 0&&(t=X_);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var c=t(a,n);return r.push(c),function(){r=r.filter(function(s){return s!==c})}},assignSyncMedium:function(a){for(n=!0;r.length;){var c=r;r=[],c.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var c=[];if(r.length){var s=r;r=[],s.forEach(a),c=r}var m=function(){var u=c;c=[],u.forEach(a)},l=function(){return Promise.resolve().then(m)};l(),r={push:function(u){c.push(u),l()},filter:function(u){return c=c.filter(u),r}}}};return o}function G_(e){e===void 0&&(e={});var t=V_(null);return t.options=at({async:!0,ssr:!1},e),t}var ox=function(e){var t=e.sideCar,r=nx(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return i.createElement(n,at({},r))};ox.isSideCarExport=!0;function q_(e,t){return e.useMedium(t),ox}var ax=G_(),bl=function(){},fu=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:bl,onWheelCapture:bl,onTouchMoveCapture:bl}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,m=e.className,l=e.removeScrollBar,u=e.enabled,p=e.shards,v=e.sideCar,h=e.noRelative,x=e.noIsolation,d=e.inert,g=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,w=e.gapMode,E=nx(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=v,T=H_([r,t]),R=at(at({},E),o);return i.createElement(i.Fragment,null,u&&i.createElement(C,{sideCar:ax,removeScrollBar:l,shards:p,noRelative:h,noIsolation:x,inert:d,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),at(at({},R),{ref:T})):i.createElement(b,at({},R,{className:m,ref:T}),s))});fu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};fu.classNames={fullWidth:rc,zeroRight:tc};var Z_=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function J_(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Z_();return t&&e.setAttribute("nonce",t),e}function Q_(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function eM(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var tM=function(){var e=0,t=null;return{add:function(r){e==0&&(t=J_())&&(Q_(t,r),eM(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},rM=function(){var e=tM();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},sx=function(){var e=rM(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},nM={left:0,top:0,right:0,gap:0},wl=function(e){return parseInt(e||"",10)||0},oM=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[wl(r),wl(n),wl(o)]},aM=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return nM;var t=oM(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},sM=sx(),wo="data-scroll-locked",iM=function(e,t,r,n){var o=e.left,a=e.top,c=e.right,s=e.gap;return r===void 0&&(r="margin"),`
|
67
|
-
.`.concat(Y_,` {
|
68
|
-
overflow: hidden `).concat(n,`;
|
69
|
-
padding-right: `).concat(s,"px ").concat(n,`;
|
70
|
-
}
|
71
|
-
body[`).concat(wo,`] {
|
72
|
-
overflow: hidden `).concat(n,`;
|
73
|
-
overscroll-behavior: contain;
|
74
|
-
`).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
|
75
|
-
padding-left: `.concat(o,`px;
|
76
|
-
padding-top: `).concat(a,`px;
|
77
|
-
padding-right: `).concat(c,`px;
|
78
|
-
margin-left:0;
|
79
|
-
margin-top:0;
|
80
|
-
margin-right: `).concat(s,"px ").concat(n,`;
|
81
|
-
`),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
|
82
|
-
}
|
83
|
-
|
84
|
-
.`).concat(tc,` {
|
85
|
-
right: `).concat(s,"px ").concat(n,`;
|
86
|
-
}
|
87
|
-
|
88
|
-
.`).concat(rc,` {
|
89
|
-
margin-right: `).concat(s,"px ").concat(n,`;
|
90
|
-
}
|
91
|
-
|
92
|
-
.`).concat(tc," .").concat(tc,` {
|
93
|
-
right: 0 `).concat(n,`;
|
94
|
-
}
|
95
|
-
|
96
|
-
.`).concat(rc," .").concat(rc,` {
|
97
|
-
margin-right: 0 `).concat(n,`;
|
98
|
-
}
|
99
|
-
|
100
|
-
body[`).concat(wo,`] {
|
101
|
-
`).concat(U_,": ").concat(s,`px;
|
102
|
-
}
|
103
|
-
`)},Kv=function(){var e=parseInt(document.body.getAttribute(wo)||"0",10);return isFinite(e)?e:0},cM=function(){i.useEffect(function(){return document.body.setAttribute(wo,(Kv()+1).toString()),function(){var e=Kv()-1;e<=0?document.body.removeAttribute(wo):document.body.setAttribute(wo,e.toString())}},[])},uM=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;cM();var a=i.useMemo(function(){return aM(o)},[o]);return i.createElement(sM,{styles:iM(a,!t,o,r?"":"!important")})},Qf=!1;if(typeof window<"u")try{var fs=Object.defineProperty({},"passive",{get:function(){return Qf=!0,!0}});window.addEventListener("test",fs,fs),window.removeEventListener("test",fs,fs)}catch{Qf=!1}var Sn=Qf?{passive:!1}:!1,lM=function(e){return e.tagName==="TEXTAREA"},ix=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!lM(e)&&r[t]==="visible")},dM=function(e){return ix(e,"overflowY")},fM=function(e){return ix(e,"overflowX")},Hv=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=cx(e,n);if(o){var a=ux(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},pM=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},mM=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},cx=function(e,t){return e==="v"?dM(t):fM(t)},ux=function(e,t){return e==="v"?pM(t):mM(t)},vM=function(e,t){return e==="h"&&t==="rtl"?-1:1},gM=function(e,t,r,n,o){var a=vM(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,m=t.contains(s),l=!1,u=c>0,p=0,v=0;do{if(!s)break;var h=ux(e,s),x=h[0],d=h[1],g=h[2],y=d-g-a*x;(x||y)&&cx(e,s)&&(p+=y,v+=x);var b=s.parentNode;s=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!m&&s!==document.body||m&&(t.contains(s)||t===s));return(u&&Math.abs(p)<1||!u&&Math.abs(v)<1)&&(l=!0),l},ps=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Xv=function(e){return[e.deltaX,e.deltaY]},Vv=function(e){return e&&"current"in e?e.current:e},hM=function(e,t){return e[0]===t[0]&&e[1]===t[1]},yM=function(e){return`
|
104
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
105
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
106
|
-
`)},bM=0,Rn=[];function wM(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(bM++)[0],a=i.useState(sx)[0],c=i.useRef(e);i.useEffect(function(){c.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var d=$_([e.lockRef.current],(e.shards||[]).map(Vv)).filter(Boolean);return d.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),d.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(d,g){if("touches"in d&&d.touches.length===2||d.type==="wheel"&&d.ctrlKey)return!c.current.allowPinchZoom;var y=ps(d),b=r.current,w="deltaX"in d?d.deltaX:b[0]-y[0],E="deltaY"in d?d.deltaY:b[1]-y[1],C,T=d.target,R=Math.abs(w)>Math.abs(E)?"h":"v";if("touches"in d&&R==="h"&&T.type==="range")return!1;var N=Hv(R,T);if(!N)return!0;if(N?C=R:(C=R==="v"?"h":"v",N=Hv(R,T)),!N)return!1;if(!n.current&&"changedTouches"in d&&(w||E)&&(n.current=C),!C)return!0;var P=n.current||C;return gM(P,g,d,P==="h"?w:E)},[]),m=i.useCallback(function(d){var g=d;if(!(!Rn.length||Rn[Rn.length-1]!==a)){var y="deltaY"in g?Xv(g):ps(g),b=t.current.filter(function(C){return C.name===g.type&&(C.target===g.target||g.target===C.shadowParent)&&hM(C.delta,y)})[0];if(b&&b.should){g.cancelable&&g.preventDefault();return}if(!b){var w=(c.current.shards||[]).map(Vv).filter(Boolean).filter(function(C){return C.contains(g.target)}),E=w.length>0?s(g,w[0]):!c.current.noIsolation;E&&g.cancelable&&g.preventDefault()}}},[]),l=i.useCallback(function(d,g,y,b){var w={name:d,delta:g,target:y,should:b,shadowParent:xM(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(E){return E!==w})},1)},[]),u=i.useCallback(function(d){r.current=ps(d),n.current=void 0},[]),p=i.useCallback(function(d){l(d.type,Xv(d),d.target,s(d,e.lockRef.current))},[]),v=i.useCallback(function(d){l(d.type,ps(d),d.target,s(d,e.lockRef.current))},[]);i.useEffect(function(){return Rn.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",m,Sn),document.addEventListener("touchmove",m,Sn),document.addEventListener("touchstart",u,Sn),function(){Rn=Rn.filter(function(d){return d!==a}),document.removeEventListener("wheel",m,Sn),document.removeEventListener("touchmove",m,Sn),document.removeEventListener("touchstart",u,Sn)}},[]);var h=e.removeScrollBar,x=e.inert;return i.createElement(i.Fragment,null,x?i.createElement(a,{styles:yM(o)}):null,h?i.createElement(uM,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function xM(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const EM=q_(ax,wM);var lx=i.forwardRef(function(e,t){return i.createElement(fu,at({},e,{ref:t,sideCar:EM}))});lx.classNames=fu.classNames;var SM=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Cn=new WeakMap,ms=new WeakMap,vs={},xl=0,dx=function(e){return e&&(e.host||dx(e.parentNode))},RM=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=dx(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},CM=function(e,t,r,n){var o=RM(t,Array.isArray(e)?e:[e]);vs[r]||(vs[r]=new WeakMap);var a=vs[r],c=[],s=new Set,m=new Set(o),l=function(p){!p||s.has(p)||(s.add(p),l(p.parentNode))};o.forEach(l);var u=function(p){!p||m.has(p)||Array.prototype.forEach.call(p.children,function(v){if(s.has(v))u(v);else try{var h=v.getAttribute(n),x=h!==null&&h!=="false",d=(Cn.get(v)||0)+1,g=(a.get(v)||0)+1;Cn.set(v,d),a.set(v,g),c.push(v),d===1&&x&&ms.set(v,!0),g===1&&v.setAttribute(r,"true"),x||v.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",v,y)}})};return u(t),s.clear(),xl++,function(){c.forEach(function(p){var v=Cn.get(p)-1,h=a.get(p)-1;Cn.set(p,v),a.set(p,h),v||(ms.has(p)||p.removeAttribute(n),ms.delete(p)),h||p.removeAttribute(r)}),xl--,xl||(Cn=new WeakMap,Cn=new WeakMap,ms=new WeakMap,vs={})}},NM=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=SM(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),CM(n,o,r,"aria-hidden")):function(){return null}},fx="Dialog",[px]=g_(fx),[joe,At]=px(fx),mx="DialogTrigger",kM=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=At(mx,r),a=fn(t,o.triggerRef);return de.de.jsx(or.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":gm(o.open),...n,ref:a,onClick:Or(e.onClick,o.onOpenToggle)})});kM.displayName=mx;var jM="DialogPortal",[Toe,vx]=px(jM,{forceMount:void 0}),$c="DialogOverlay",TM=i.forwardRef((e,t)=>{const r=vx($c,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=At($c,e.__scopeDialog);return a.modal?de.de.jsx(mm,{present:n||a.open,children:de.de.jsx(OM,{...o,ref:t})}):null});TM.displayName=$c;var DM=Z.createSlot("DialogOverlay.RemoveScroll"),OM=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=At($c,r);return de.de.jsx(lx,{as:DM,allowPinchZoom:!0,shards:[o.contentRef],children:de.de.jsx(or.div,{"data-state":gm(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Xr="DialogContent",PM=i.forwardRef((e,t)=>{const r=vx(Xr,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=At(Xr,e.__scopeDialog);return de.de.jsx(mm,{present:n||a.open,children:a.modal?de.de.jsx(_M,{...o,ref:t}):de.de.jsx(MM,{...o,ref:t})})});PM.displayName=Xr;var _M=i.forwardRef((e,t)=>{const r=At(Xr,e.__scopeDialog),n=i.useRef(null),o=fn(t,r.contentRef,n);return i.useEffect(()=>{const a=n.current;if(a)return NM(a)},[]),de.de.jsx(gx,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Or(e.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:Or(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&a.preventDefault()}),onFocusOutside:Or(e.onFocusOutside,a=>a.preventDefault())})}),MM=i.forwardRef((e,t)=>{const r=At(Xr,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return de.de.jsx(gx,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(n.current||r.triggerRef.current?.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=a.target;r.triggerRef.current?.contains(c)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),gx=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,s=At(Xr,r),m=i.useRef(null),l=fn(t,m);return z_(),de.de.jsxs(de.de.Fragment,{children:[de.de.jsx(tx,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:de.de.jsx(Q0,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":gm(s.open),...c,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),de.de.jsxs(de.de.Fragment,{children:[de.de.jsx(LM,{titleId:s.titleId}),de.de.jsx(zM,{contentRef:m,descriptionId:s.descriptionId})]})]})}),vm="DialogTitle",AM=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=At(vm,r);return de.de.jsx(or.h2,{id:o.titleId,...n,ref:t})});AM.displayName=vm;var hx="DialogDescription",IM=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=At(hx,r);return de.de.jsx(or.p,{id:o.descriptionId,...n,ref:t})});IM.displayName=hx;var yx="DialogClose",FM=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=At(yx,r);return de.de.jsx(or.button,{type:"button",...n,ref:t,onClick:Or(e.onClick,()=>o.onOpenChange(!1))})});FM.displayName=yx;function gm(e){return e?"open":"closed"}var bx="DialogTitleWarning",[Doe,wx]=v_(bx,{contentName:Xr,titleName:vm,docsSlug:"dialog"}),LM=({titleId:e})=>{const t=wx(bx),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
107
|
-
|
108
|
-
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
109
|
-
|
110
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},WM="DialogDescriptionWarning",zM=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${wx(WM).contentName}}.`;return i.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null};ie.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});var El={exports:{}},ta={};/**
|
111
|
-
* @license React
|
112
|
-
* react-jsx-runtime.production.js
|
113
|
-
*
|
114
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
115
|
-
*
|
116
|
-
* This source code is licensed under the MIT license found in the
|
117
|
-
* LICENSE file in the root directory of this source tree.
|
118
|
-
*/var Gv;function $M(){if(Gv)return ta;Gv=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var c=null;if(a!==void 0&&(c=""+a),o.key!==void 0&&(c=""+o.key),"key"in o){a={};for(var s in o)s!=="key"&&(a[s]=o[s])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:c,ref:o!==void 0?o:null,props:a}}return ta.Fragment=t,ta.jsx=r,ta.jsxs=r,ta}var gs={};/**
|
119
|
-
* @license React
|
120
|
-
* react-jsx-runtime.development.js
|
121
|
-
*
|
122
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
123
|
-
*
|
124
|
-
* This source code is licensed under the MIT license found in the
|
125
|
-
* LICENSE file in the root directory of this source tree.
|
126
|
-
*/var qv;function YM(){return qv||(qv=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(f==null)return null;if(typeof f=="function")return f.$$typeof===L?null:f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case d:return"Fragment";case y:return"Profiler";case g:return"StrictMode";case C:return"Suspense";case T:return"SuspenseList";case P:return"Activity"}if(typeof f=="object")switch(typeof f.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),f.$$typeof){case x:return"Portal";case w:return(f.displayName||"Context")+".Provider";case b:return(f._context.displayName||"Context")+".Consumer";case E:var S=f.render;return f=f.displayName,f||(f=S.displayName||S.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case R:return S=f.displayName||null,S!==null?S:e(f.type)||"Memo";case N:S=f._payload,f=f._init;try{return e(f(S))}catch{}}return null}function t(f){return""+f}function r(f){try{t(f);var S=!1}catch{S=!0}if(S){S=console;var k=S.error,D=typeof Symbol=="function"&&Symbol.toStringTag&&f[Symbol.toStringTag]||f.constructor.name||"Object";return k.call(S,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",D),t(f)}}function n(f){if(f===d)return"<>";if(typeof f=="object"&&f!==null&&f.$$typeof===N)return"<...>";try{var S=e(f);return S?"<"+S+">":"<...>"}catch{return"<...>"}}function o(){var f=I.A;return f===null?null:f.getOwner()}function a(){return Error("react-stack-top-frame")}function c(f){if(B.call(f,"key")){var S=Object.getOwnPropertyDescriptor(f,"key").get;if(S&&S.isReactWarning)return!1}return f.key!==void 0}function s(f,S){function k(){_||(_=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",S))}k.isReactWarning=!0,Object.defineProperty(f,"key",{get:k,configurable:!0})}function m(){var f=e(this.type);return Y[f]||(Y[f]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),f=this.props.ref,f!==void 0?f:null}function l(f,S,k,D,F,A,G,X){return k=A.ref,f={$$typeof:h,type:f,key:S,props:A,_owner:F},(k!==void 0?k:null)!==null?Object.defineProperty(f,"ref",{enumerable:!1,get:m}):Object.defineProperty(f,"ref",{enumerable:!1,value:null}),f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(f,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(f,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:G}),Object.defineProperty(f,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:X}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f}function u(f,S,k,D,F,A,G,X){var O=S.children;if(O!==void 0)if(D)if(K(O)){for(D=0;D<O.length;D++)p(O[D]);Object.freeze&&Object.freeze(O)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else p(O);if(B.call(S,"key")){O=e(f);var z=Object.keys(S).filter(function(ce){return ce!=="key"});D=0<z.length?"{key: someKey, "+z.join(": ..., ")+": ...}":"{key: someKey}",V[O+D]||(z=0<z.length?"{"+z.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
127
|
-
let props = %s;
|
128
|
-
<%s {...props} />
|
129
|
-
React keys must be passed directly to JSX without using spread:
|
130
|
-
let props = %s;
|
131
|
-
<%s key={someKey} {...props} />`,D,O,z,O),V[O+D]=!0)}if(O=null,k!==void 0&&(r(k),O=""+k),c(S)&&(r(S.key),O=""+S.key),"key"in S){k={};for(var q in S)q!=="key"&&(k[q]=S[q])}else k=S;return O&&s(k,typeof f=="function"?f.displayName||f.name||"Unknown":f),l(f,O,A,F,o(),k,G,X)}function p(f){typeof f=="object"&&f!==null&&f.$$typeof===h&&f._store&&(f._store.validated=1)}var v=M,h=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),b=Symbol.for("react.consumer"),w=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),P=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),I=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,K=Array.isArray,$=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(f){return f()}};var _,Y={},H=v.react_stack_bottom_frame.bind(v,a)(),U=$(n(a)),V={};gs.Fragment=d,gs.jsx=function(f,S,k,D,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,S,k,!1,D,F,A?Error("react-stack-top-frame"):H,A?$(n(f)):U)},gs.jsxs=function(f,S,k,D,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,S,k,!0,D,F,A?Error("react-stack-top-frame"):H,A?$(n(f)):U)}})()),gs}var Zv;function UM(){return Zv||(Zv=1,process.env.NODE_ENV==="production"?El.exports=$M():El.exports=YM()),El.exports}var pe=UM();M.createContext({locale:void 0});const BM={id:"",username:"",email:"",created_at:null,updated_at:null,features:[]};M.createContext({user:BM,isLoading:!0,fetchUser:async()=>{},logout:async()=>{},login:async()=>!1});ie.cva("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function Pr(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}function Jv(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function KM(...e){return t=>{let r=!1;const n=e.map(o=>{const a=Jv(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():Jv(e[o],null)}}}}function pn(...e){return i.useCallback(KM(...e),e)}function HM(e,t){const r=i.createContext(t),n=a=>{const{children:c,...s}=a,m=i.useMemo(()=>s,Object.values(s));return fe.jsx(r.Provider,{value:m,children:c})};n.displayName=e+"Provider";function o(a){const c=i.useContext(r);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function XM(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),m=r.length;r=[...r,c];const l=p=>{const{scope:v,children:h,...x}=p,d=v?.[e]?.[m]||s,g=i.useMemo(()=>x,Object.values(x));return fe.jsx(d.Provider,{value:g,children:h})};l.displayName=a+"Provider";function u(p,v){const h=v?.[e]?.[m]||s,x=i.useContext(h);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[l,u]}const o=()=>{const a=r.map(c=>i.createContext(c));return function(c){const s=c?.[e]||a;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:s}}),[c,s])}};return o.scopeName=e,[n,VM(o,...t)]}function VM(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){const a=n.reduce((c,{useScope:s,scopeName:m})=>{const l=s(o)[`__scope${m}`];return{...c,...l}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var ep=globalThis?.document?i.useLayoutEffect:()=>{},GM=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ar=GM.reduce((e,t)=>{const r=Z.createSlot(`Primitive.${t}`),n=i.forwardRef((o,a)=>{const{asChild:c,...s}=o,m=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),fe.jsx(m,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function qM(e,t){e&&Ee.flushSync(()=>e.dispatchEvent(t))}function Ra(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>t.current?.(...r),[])}function ZM(e,t=globalThis?.document){const r=Ra(e);i.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var JM="DismissableLayer",tp="dismissableLayer.update",QM="dismissableLayer.pointerDownOutside",eA="dismissableLayer.focusOutside",Qv,xx=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ex=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...m}=e,l=i.useContext(xx),[u,p]=i.useState(null),v=u?.ownerDocument??globalThis?.document,[,h]=i.useState({}),x=pn(t,R=>p(R)),d=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),y=d.indexOf(g),b=u?d.indexOf(u):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,E=b>=y,C=nA(R=>{const N=R.target,P=[...l.branches].some(L=>L.contains(N));!E||P||(o?.(R),c?.(R),R.defaultPrevented||s?.())},v),T=oA(R=>{const N=R.target;[...l.branches].some(P=>P.contains(N))||(a?.(R),c?.(R),R.defaultPrevented||s?.())},v);return ZM(R=>{b===l.layers.size-1&&(n?.(R),!R.defaultPrevented&&s&&(R.preventDefault(),s()))},v),i.useEffect(()=>{if(u)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Qv=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),eg(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Qv)}},[u,v,r,l]),i.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),eg())},[u,l]),i.useEffect(()=>{const R=()=>h({});return document.addEventListener(tp,R),()=>document.removeEventListener(tp,R)},[]),fe.jsx(ar.div,{...m,ref:x,style:{pointerEvents:w?E?"auto":"none":void 0,...e.style},onFocusCapture:Pr(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Pr(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Pr(e.onPointerDownCapture,C.onPointerDownCapture)})});Ex.displayName=JM;var tA="DismissableLayerBranch",rA=i.forwardRef((e,t)=>{const r=i.useContext(xx),n=i.useRef(null),o=pn(t,n);return i.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),fe.jsx(ar.div,{...e,ref:o})});rA.displayName=tA;function nA(e,t=globalThis?.document){const r=Ra(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let m=function(){Sx(QM,r,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=m,t.addEventListener("click",o.current,{once:!0})):m()}else t.removeEventListener("click",o.current);n.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function oA(e,t=globalThis?.document){const r=Ra(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&Sx(eA,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function eg(){const e=new CustomEvent(tp);document.dispatchEvent(e)}function Sx(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?qM(o,a):o.dispatchEvent(a)}var Sl="focusScope.autoFocusOnMount",Rl="focusScope.autoFocusOnUnmount",tg={bubbles:!1,cancelable:!0},aA="FocusScope",Rx=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,m]=i.useState(null),l=Ra(o),u=Ra(a),p=i.useRef(null),v=pn(t,d=>m(d)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let d=function(w){if(h.paused||!s)return;const E=w.target;s.contains(E)?p.current=E:vr(p.current,{select:!0})},g=function(w){if(h.paused||!s)return;const E=w.relatedTarget;E!==null&&(s.contains(E)||vr(p.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const E of w)E.removedNodes.length>0&&vr(s)};document.addEventListener("focusin",d),document.addEventListener("focusout",g);const b=new MutationObserver(y);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",d),document.removeEventListener("focusout",g),b.disconnect()}}},[n,s,h.paused]),i.useEffect(()=>{if(s){ng.add(h);const d=document.activeElement;if(!s.contains(d)){const g=new CustomEvent(Sl,tg);s.addEventListener(Sl,l),s.dispatchEvent(g),g.defaultPrevented||(sA(dA(Cx(s)),{select:!0}),document.activeElement===d&&vr(s))}return()=>{s.removeEventListener(Sl,l),setTimeout(()=>{const g=new CustomEvent(Rl,tg);s.addEventListener(Rl,u),s.dispatchEvent(g),g.defaultPrevented||vr(d??document.body,{select:!0}),s.removeEventListener(Rl,u),ng.remove(h)},0)}}},[s,l,u,h]);const x=i.useCallback(d=>{if(!r&&!n||h.paused)return;const g=d.key==="Tab"&&!d.altKey&&!d.ctrlKey&&!d.metaKey,y=document.activeElement;if(g&&y){const b=d.currentTarget,[w,E]=iA(b);w&&E?!d.shiftKey&&y===E?(d.preventDefault(),r&&vr(w,{select:!0})):d.shiftKey&&y===w&&(d.preventDefault(),r&&vr(E,{select:!0})):y===b&&d.preventDefault()}},[r,n,h.paused]);return fe.jsx(ar.div,{tabIndex:-1,...c,ref:v,onKeyDown:x})});Rx.displayName=aA;function sA(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(vr(n,{select:t}),document.activeElement!==r)return}function iA(e){const t=Cx(e),r=rg(t,e),n=rg(t.reverse(),e);return[r,n]}function Cx(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function rg(e,t){for(const r of e)if(!cA(r,{upTo:t}))return r}function cA(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function uA(e){return e instanceof HTMLInputElement&&"select"in e}function vr(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&uA(e)&&t&&e.select()}}var ng=lA();function lA(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=og(e,t),e.unshift(t)},remove(t){e=og(e,t),e[0]?.resume()}}}function og(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function dA(e){return e.filter(t=>t.tagName!=="A")}var fA="Portal",pA=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);ep(()=>a(!0),[]);const c=r||o&&globalThis?.document?.body;return c?xe.createPortal(fe.jsx(ar.div,{...n,ref:t}),c):null});pA.displayName=fA;function mA(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var hm=e=>{const{present:t,children:r}=e,n=vA(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=pn(n.ref,gA(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};hm.displayName="Presence";function vA(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,m]=mA(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const l=hs(n.current);a.current=s==="mounted"?l:"none"},[s]),ep(()=>{const l=n.current,u=o.current;if(u!==e){const p=a.current,v=hs(l);e?m("MOUNT"):v==="none"||l?.display==="none"?m("UNMOUNT"):m(u&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,m]),ep(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,p=h=>{const x=hs(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&x&&(m("ANIMATION_END"),!o.current)){const d=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=d)})}},v=h=>{h.target===t&&(a.current=hs(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else m("ANIMATION_END")},[t,m]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:i.useCallback(l=>{n.current=l?getComputedStyle(l):null,r(l)},[])}}function hs(e){return e?.animationName||"none"}function gA(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Cl=0;function hA(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ag()),document.body.insertAdjacentElement("beforeend",e[1]??ag()),Cl++,()=>{Cl===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Cl--}},[])}function ag(){const e=document.createElement("span");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}var st=function(){return st=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},st.apply(this,arguments)};function Nx(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function yA(e,t,r){for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var nc="right-scroll-bar-position",oc="width-before-scroll-bar",bA="with-scroll-bars-hidden",wA="--removed-body-scroll-bar-size";function Nl(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function xA(e,t){var r=M.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var EA=typeof window<"u"?i.useLayoutEffect:i.useEffect,sg=new WeakMap;function SA(e,t){var r=xA(null,function(n){return e.forEach(function(o){return Nl(o,n)})});return EA(function(){var n=sg.get(r);if(n){var o=new Set(n),a=new Set(e),c=r.current;o.forEach(function(s){a.has(s)||Nl(s,null)}),a.forEach(function(s){o.has(s)||Nl(s,c)})}sg.set(r,e)},[e]),r}function RA(e){return e}function CA(e,t){t===void 0&&(t=RA);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var c=t(a,n);return r.push(c),function(){r=r.filter(function(s){return s!==c})}},assignSyncMedium:function(a){for(n=!0;r.length;){var c=r;r=[],c.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var c=[];if(r.length){var s=r;r=[],s.forEach(a),c=r}var m=function(){var u=c;c=[],u.forEach(a)},l=function(){return Promise.resolve().then(m)};l(),r={push:function(u){c.push(u),l()},filter:function(u){return c=c.filter(u),r}}}};return o}function NA(e){e===void 0&&(e={});var t=CA(null);return t.options=st({async:!0,ssr:!1},e),t}var kx=function(e){var t=e.sideCar,r=Nx(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return i.createElement(n,st({},r))};kx.isSideCarExport=!0;function kA(e,t){return e.useMedium(t),kx}var jx=NA(),kl=function(){},pu=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:kl,onWheelCapture:kl,onTouchMoveCapture:kl}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,m=e.className,l=e.removeScrollBar,u=e.enabled,p=e.shards,v=e.sideCar,h=e.noRelative,x=e.noIsolation,d=e.inert,g=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,w=e.gapMode,E=Nx(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=v,T=SA([r,t]),R=st(st({},E),o);return i.createElement(i.Fragment,null,u&&i.createElement(C,{sideCar:jx,removeScrollBar:l,shards:p,noRelative:h,noIsolation:x,inert:d,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),st(st({},R),{ref:T})):i.createElement(b,st({},R,{className:m,ref:T}),s))});pu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};pu.classNames={fullWidth:oc,zeroRight:nc};var jA=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function TA(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=jA();return t&&e.setAttribute("nonce",t),e}function DA(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function OA(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var PA=function(){var e=0,t=null;return{add:function(r){e==0&&(t=TA())&&(DA(t,r),OA(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},_A=function(){var e=PA();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Tx=function(){var e=_A(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},MA={left:0,top:0,right:0,gap:0},jl=function(e){return parseInt(e||"",10)||0},AA=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[jl(r),jl(n),jl(o)]},IA=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return MA;var t=AA(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},FA=Tx(),xo="data-scroll-locked",LA=function(e,t,r,n){var o=e.left,a=e.top,c=e.right,s=e.gap;return r===void 0&&(r="margin"),`
|
132
|
-
.`.concat(bA,` {
|
133
|
-
overflow: hidden `).concat(n,`;
|
134
|
-
padding-right: `).concat(s,"px ").concat(n,`;
|
135
|
-
}
|
136
|
-
body[`).concat(xo,`] {
|
137
|
-
overflow: hidden `).concat(n,`;
|
138
|
-
overscroll-behavior: contain;
|
139
|
-
`).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
|
140
|
-
padding-left: `.concat(o,`px;
|
141
|
-
padding-top: `).concat(a,`px;
|
142
|
-
padding-right: `).concat(c,`px;
|
143
|
-
margin-left:0;
|
144
|
-
margin-top:0;
|
145
|
-
margin-right: `).concat(s,"px ").concat(n,`;
|
146
|
-
`),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
|
147
|
-
}
|
148
|
-
|
149
|
-
.`).concat(nc,` {
|
150
|
-
right: `).concat(s,"px ").concat(n,`;
|
151
|
-
}
|
152
|
-
|
153
|
-
.`).concat(oc,` {
|
154
|
-
margin-right: `).concat(s,"px ").concat(n,`;
|
155
|
-
}
|
156
|
-
|
157
|
-
.`).concat(nc," .").concat(nc,` {
|
158
|
-
right: 0 `).concat(n,`;
|
159
|
-
}
|
160
|
-
|
161
|
-
.`).concat(oc," .").concat(oc,` {
|
162
|
-
margin-right: 0 `).concat(n,`;
|
163
|
-
}
|
164
|
-
|
165
|
-
body[`).concat(xo,`] {
|
166
|
-
`).concat(wA,": ").concat(s,`px;
|
167
|
-
}
|
168
|
-
`)},ig=function(){var e=parseInt(document.body.getAttribute(xo)||"0",10);return isFinite(e)?e:0},WA=function(){i.useEffect(function(){return document.body.setAttribute(xo,(ig()+1).toString()),function(){var e=ig()-1;e<=0?document.body.removeAttribute(xo):document.body.setAttribute(xo,e.toString())}},[])},zA=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;WA();var a=i.useMemo(function(){return IA(o)},[o]);return i.createElement(FA,{styles:LA(a,!t,o,r?"":"!important")})},rp=!1;if(typeof window<"u")try{var ys=Object.defineProperty({},"passive",{get:function(){return rp=!0,!0}});window.addEventListener("test",ys,ys),window.removeEventListener("test",ys,ys)}catch{rp=!1}var Nn=rp?{passive:!1}:!1,$A=function(e){return e.tagName==="TEXTAREA"},Dx=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!$A(e)&&r[t]==="visible")},YA=function(e){return Dx(e,"overflowY")},UA=function(e){return Dx(e,"overflowX")},cg=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=Ox(e,n);if(o){var a=Px(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},BA=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},KA=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},Ox=function(e,t){return e==="v"?YA(t):UA(t)},Px=function(e,t){return e==="v"?BA(t):KA(t)},HA=function(e,t){return e==="h"&&t==="rtl"?-1:1},XA=function(e,t,r,n,o){var a=HA(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,m=t.contains(s),l=!1,u=c>0,p=0,v=0;do{if(!s)break;var h=Px(e,s),x=h[0],d=h[1],g=h[2],y=d-g-a*x;(x||y)&&Ox(e,s)&&(p+=y,v+=x);var b=s.parentNode;s=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!m&&s!==document.body||m&&(t.contains(s)||t===s));return(u&&Math.abs(p)<1||!u&&Math.abs(v)<1)&&(l=!0),l},bs=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ug=function(e){return[e.deltaX,e.deltaY]},lg=function(e){return e&&"current"in e?e.current:e},VA=function(e,t){return e[0]===t[0]&&e[1]===t[1]},GA=function(e){return`
|
169
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
170
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
171
|
-
`)},qA=0,kn=[];function ZA(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(qA++)[0],a=i.useState(Tx)[0],c=i.useRef(e);i.useEffect(function(){c.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var d=yA([e.lockRef.current],(e.shards||[]).map(lg)).filter(Boolean);return d.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),d.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(d,g){if("touches"in d&&d.touches.length===2||d.type==="wheel"&&d.ctrlKey)return!c.current.allowPinchZoom;var y=bs(d),b=r.current,w="deltaX"in d?d.deltaX:b[0]-y[0],E="deltaY"in d?d.deltaY:b[1]-y[1],C,T=d.target,R=Math.abs(w)>Math.abs(E)?"h":"v";if("touches"in d&&R==="h"&&T.type==="range")return!1;var N=cg(R,T);if(!N)return!0;if(N?C=R:(C=R==="v"?"h":"v",N=cg(R,T)),!N)return!1;if(!n.current&&"changedTouches"in d&&(w||E)&&(n.current=C),!C)return!0;var P=n.current||C;return XA(P,g,d,P==="h"?w:E)},[]),m=i.useCallback(function(d){var g=d;if(!(!kn.length||kn[kn.length-1]!==a)){var y="deltaY"in g?ug(g):bs(g),b=t.current.filter(function(C){return C.name===g.type&&(C.target===g.target||g.target===C.shadowParent)&&VA(C.delta,y)})[0];if(b&&b.should){g.cancelable&&g.preventDefault();return}if(!b){var w=(c.current.shards||[]).map(lg).filter(Boolean).filter(function(C){return C.contains(g.target)}),E=w.length>0?s(g,w[0]):!c.current.noIsolation;E&&g.cancelable&&g.preventDefault()}}},[]),l=i.useCallback(function(d,g,y,b){var w={name:d,delta:g,target:y,should:b,shadowParent:JA(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(E){return E!==w})},1)},[]),u=i.useCallback(function(d){r.current=bs(d),n.current=void 0},[]),p=i.useCallback(function(d){l(d.type,ug(d),d.target,s(d,e.lockRef.current))},[]),v=i.useCallback(function(d){l(d.type,bs(d),d.target,s(d,e.lockRef.current))},[]);i.useEffect(function(){return kn.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",m,Nn),document.addEventListener("touchmove",m,Nn),document.addEventListener("touchstart",u,Nn),function(){kn=kn.filter(function(d){return d!==a}),document.removeEventListener("wheel",m,Nn),document.removeEventListener("touchmove",m,Nn),document.removeEventListener("touchstart",u,Nn)}},[]);var h=e.removeScrollBar,x=e.inert;return i.createElement(i.Fragment,null,x?i.createElement(a,{styles:GA(o)}):null,h?i.createElement(zA,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function JA(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const QA=kA(jx,ZA);var _x=i.forwardRef(function(e,t){return i.createElement(pu,st({},e,{ref:t,sideCar:QA}))});_x.classNames=pu.classNames;var eI=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},jn=new WeakMap,ws=new WeakMap,xs={},Tl=0,Mx=function(e){return e&&(e.host||Mx(e.parentNode))},tI=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Mx(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},rI=function(e,t,r,n){var o=tI(t,Array.isArray(e)?e:[e]);xs[r]||(xs[r]=new WeakMap);var a=xs[r],c=[],s=new Set,m=new Set(o),l=function(p){!p||s.has(p)||(s.add(p),l(p.parentNode))};o.forEach(l);var u=function(p){!p||m.has(p)||Array.prototype.forEach.call(p.children,function(v){if(s.has(v))u(v);else try{var h=v.getAttribute(n),x=h!==null&&h!=="false",d=(jn.get(v)||0)+1,g=(a.get(v)||0)+1;jn.set(v,d),a.set(v,g),c.push(v),d===1&&x&&ws.set(v,!0),g===1&&v.setAttribute(r,"true"),x||v.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",v,y)}})};return u(t),s.clear(),Tl++,function(){c.forEach(function(p){var v=jn.get(p)-1,h=a.get(p)-1;jn.set(p,v),a.set(p,h),v||(ws.has(p)||p.removeAttribute(n),ws.delete(p)),h||p.removeAttribute(r)}),Tl--,Tl||(jn=new WeakMap,jn=new WeakMap,ws=new WeakMap,xs={})}},nI=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=eI(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),rI(n,o,r,"aria-hidden")):function(){return null}},Ax="Dialog",[Ix]=XM(Ax),[Ooe,It]=Ix(Ax),Fx="DialogTrigger",oI=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=It(Fx,r),a=pn(t,o.triggerRef);return fe.jsx(ar.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":bm(o.open),...n,ref:a,onClick:Pr(e.onClick,o.onOpenToggle)})});oI.displayName=Fx;var aI="DialogPortal",[Poe,Lx]=Ix(aI,{forceMount:void 0}),Yc="DialogOverlay",sI=i.forwardRef((e,t)=>{const r=Lx(Yc,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=It(Yc,e.__scopeDialog);return a.modal?fe.jsx(hm,{present:n||a.open,children:fe.jsx(cI,{...o,ref:t})}):null});sI.displayName=Yc;var iI=Z.createSlot("DialogOverlay.RemoveScroll"),cI=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=It(Yc,r);return fe.jsx(_x,{as:iI,allowPinchZoom:!0,shards:[o.contentRef],children:fe.jsx(ar.div,{"data-state":bm(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Vr="DialogContent",uI=i.forwardRef((e,t)=>{const r=Lx(Vr,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=It(Vr,e.__scopeDialog);return fe.jsx(hm,{present:n||a.open,children:a.modal?fe.jsx(lI,{...o,ref:t}):fe.jsx(dI,{...o,ref:t})})});uI.displayName=Vr;var lI=i.forwardRef((e,t)=>{const r=It(Vr,e.__scopeDialog),n=i.useRef(null),o=pn(t,r.contentRef,n);return i.useEffect(()=>{const a=n.current;if(a)return nI(a)},[]),fe.jsx(Wx,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Pr(e.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:Pr(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&a.preventDefault()}),onFocusOutside:Pr(e.onFocusOutside,a=>a.preventDefault())})}),dI=i.forwardRef((e,t)=>{const r=It(Vr,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return fe.jsx(Wx,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(n.current||r.triggerRef.current?.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=a.target;r.triggerRef.current?.contains(c)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),Wx=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,s=It(Vr,r),m=i.useRef(null),l=pn(t,m);return hA(),fe.jsxs(fe.Fragment,{children:[fe.jsx(Rx,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:fe.jsx(Ex,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":bm(s.open),...c,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),fe.jsxs(fe.Fragment,{children:[fe.jsx(vI,{titleId:s.titleId}),fe.jsx(hI,{contentRef:m,descriptionId:s.descriptionId})]})]})}),ym="DialogTitle",fI=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=It(ym,r);return fe.jsx(ar.h2,{id:o.titleId,...n,ref:t})});fI.displayName=ym;var zx="DialogDescription",pI=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=It(zx,r);return fe.jsx(ar.p,{id:o.descriptionId,...n,ref:t})});pI.displayName=zx;var $x="DialogClose",mI=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=It($x,r);return fe.jsx(ar.button,{type:"button",...n,ref:t,onClick:Pr(e.onClick,()=>o.onOpenChange(!1))})});mI.displayName=$x;function bm(e){return e?"open":"closed"}var Yx="DialogTitleWarning",[_oe,Ux]=HM(Yx,{contentName:Vr,titleName:ym,docsSlug:"dialog"}),vI=({titleId:e})=>{const t=Ux(Yx),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
172
|
-
|
173
|
-
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
174
|
-
|
175
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},gI="DialogDescriptionWarning",hI=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ux(gI).contentName}}.`;return i.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null};ie.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});ie.cva("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function _r(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}function dg(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function yI(...e){return t=>{let r=!1;const n=e.map(o=>{const a=dg(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():dg(e[o],null)}}}}function mn(...e){return i.useCallback(yI(...e),e)}function bI(e,t){const r=i.createContext(t),n=a=>{const{children:c,...s}=a,m=i.useMemo(()=>s,Object.values(s));return pe.jsx(r.Provider,{value:m,children:c})};n.displayName=e+"Provider";function o(a){const c=i.useContext(r);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function wI(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),m=r.length;r=[...r,c];const l=p=>{const{scope:v,children:h,...x}=p,d=v?.[e]?.[m]||s,g=i.useMemo(()=>x,Object.values(x));return pe.jsx(d.Provider,{value:g,children:h})};l.displayName=a+"Provider";function u(p,v){const h=v?.[e]?.[m]||s,x=i.useContext(h);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[l,u]}const o=()=>{const a=r.map(c=>i.createContext(c));return function(c){const s=c?.[e]||a;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:s}}),[c,s])}};return o.scopeName=e,[n,xI(o,...t)]}function xI(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){const a=n.reduce((c,{useScope:s,scopeName:m})=>{const l=s(o)[`__scope${m}`];return{...c,...l}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var np=globalThis?.document?i.useLayoutEffect:()=>{},EI=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],sr=EI.reduce((e,t)=>{const r=Z.createSlot(`Primitive.${t}`),n=i.forwardRef((o,a)=>{const{asChild:c,...s}=o,m=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),pe.jsx(m,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function SI(e,t){e&&Ee.flushSync(()=>e.dispatchEvent(t))}function Ca(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>t.current?.(...r),[])}function RI(e,t=globalThis?.document){const r=Ca(e);i.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var CI="DismissableLayer",op="dismissableLayer.update",NI="dismissableLayer.pointerDownOutside",kI="dismissableLayer.focusOutside",fg,Bx=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Kx=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...m}=e,l=i.useContext(Bx),[u,p]=i.useState(null),v=u?.ownerDocument??globalThis?.document,[,h]=i.useState({}),x=mn(t,R=>p(R)),d=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),y=d.indexOf(g),b=u?d.indexOf(u):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,E=b>=y,C=DI(R=>{const N=R.target,P=[...l.branches].some(L=>L.contains(N));!E||P||(o?.(R),c?.(R),R.defaultPrevented||s?.())},v),T=OI(R=>{const N=R.target;[...l.branches].some(P=>P.contains(N))||(a?.(R),c?.(R),R.defaultPrevented||s?.())},v);return RI(R=>{b===l.layers.size-1&&(n?.(R),!R.defaultPrevented&&s&&(R.preventDefault(),s()))},v),i.useEffect(()=>{if(u)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(fg=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),pg(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=fg)}},[u,v,r,l]),i.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),pg())},[u,l]),i.useEffect(()=>{const R=()=>h({});return document.addEventListener(op,R),()=>document.removeEventListener(op,R)},[]),pe.jsx(sr.div,{...m,ref:x,style:{pointerEvents:w?E?"auto":"none":void 0,...e.style},onFocusCapture:_r(e.onFocusCapture,T.onFocusCapture),onBlurCapture:_r(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:_r(e.onPointerDownCapture,C.onPointerDownCapture)})});Kx.displayName=CI;var jI="DismissableLayerBranch",TI=i.forwardRef((e,t)=>{const r=i.useContext(Bx),n=i.useRef(null),o=mn(t,n);return i.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),pe.jsx(sr.div,{...e,ref:o})});TI.displayName=jI;function DI(e,t=globalThis?.document){const r=Ca(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let m=function(){Hx(NI,r,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=m,t.addEventListener("click",o.current,{once:!0})):m()}else t.removeEventListener("click",o.current);n.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function OI(e,t=globalThis?.document){const r=Ca(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&Hx(kI,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function pg(){const e=new CustomEvent(op);document.dispatchEvent(e)}function Hx(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?SI(o,a):o.dispatchEvent(a)}var Dl="focusScope.autoFocusOnMount",Ol="focusScope.autoFocusOnUnmount",mg={bubbles:!1,cancelable:!0},PI="FocusScope",Xx=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,m]=i.useState(null),l=Ca(o),u=Ca(a),p=i.useRef(null),v=mn(t,d=>m(d)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let d=function(w){if(h.paused||!s)return;const E=w.target;s.contains(E)?p.current=E:gr(p.current,{select:!0})},g=function(w){if(h.paused||!s)return;const E=w.relatedTarget;E!==null&&(s.contains(E)||gr(p.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const E of w)E.removedNodes.length>0&&gr(s)};document.addEventListener("focusin",d),document.addEventListener("focusout",g);const b=new MutationObserver(y);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",d),document.removeEventListener("focusout",g),b.disconnect()}}},[n,s,h.paused]),i.useEffect(()=>{if(s){gg.add(h);const d=document.activeElement;if(!s.contains(d)){const g=new CustomEvent(Dl,mg);s.addEventListener(Dl,l),s.dispatchEvent(g),g.defaultPrevented||(_I(LI(Vx(s)),{select:!0}),document.activeElement===d&&gr(s))}return()=>{s.removeEventListener(Dl,l),setTimeout(()=>{const g=new CustomEvent(Ol,mg);s.addEventListener(Ol,u),s.dispatchEvent(g),g.defaultPrevented||gr(d??document.body,{select:!0}),s.removeEventListener(Ol,u),gg.remove(h)},0)}}},[s,l,u,h]);const x=i.useCallback(d=>{if(!r&&!n||h.paused)return;const g=d.key==="Tab"&&!d.altKey&&!d.ctrlKey&&!d.metaKey,y=document.activeElement;if(g&&y){const b=d.currentTarget,[w,E]=MI(b);w&&E?!d.shiftKey&&y===E?(d.preventDefault(),r&&gr(w,{select:!0})):d.shiftKey&&y===w&&(d.preventDefault(),r&&gr(E,{select:!0})):y===b&&d.preventDefault()}},[r,n,h.paused]);return pe.jsx(sr.div,{tabIndex:-1,...c,ref:v,onKeyDown:x})});Xx.displayName=PI;function _I(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(gr(n,{select:t}),document.activeElement!==r)return}function MI(e){const t=Vx(e),r=vg(t,e),n=vg(t.reverse(),e);return[r,n]}function Vx(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function vg(e,t){for(const r of e)if(!AI(r,{upTo:t}))return r}function AI(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function II(e){return e instanceof HTMLInputElement&&"select"in e}function gr(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&II(e)&&t&&e.select()}}var gg=FI();function FI(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=hg(e,t),e.unshift(t)},remove(t){e=hg(e,t),e[0]?.resume()}}}function hg(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function LI(e){return e.filter(t=>t.tagName!=="A")}var WI="Portal",zI=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);np(()=>a(!0),[]);const c=r||o&&globalThis?.document?.body;return c?xe.createPortal(pe.jsx(sr.div,{...n,ref:t}),c):null});zI.displayName=WI;function $I(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var wm=e=>{const{present:t,children:r}=e,n=YI(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=mn(n.ref,UI(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};wm.displayName="Presence";function YI(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,m]=$I(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const l=Es(n.current);a.current=s==="mounted"?l:"none"},[s]),np(()=>{const l=n.current,u=o.current;if(u!==e){const p=a.current,v=Es(l);e?m("MOUNT"):v==="none"||l?.display==="none"?m("UNMOUNT"):m(u&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,m]),np(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,p=h=>{const x=Es(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&x&&(m("ANIMATION_END"),!o.current)){const d=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=d)})}},v=h=>{h.target===t&&(a.current=Es(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else m("ANIMATION_END")},[t,m]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:i.useCallback(l=>{n.current=l?getComputedStyle(l):null,r(l)},[])}}function Es(e){return e?.animationName||"none"}function UI(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Pl=0;function BI(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??yg()),document.body.insertAdjacentElement("beforeend",e[1]??yg()),Pl++,()=>{Pl===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Pl--}},[])}function yg(){const e=document.createElement("span");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}var it=function(){return it=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},it.apply(this,arguments)};function Gx(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function KI(e,t,r){for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var ac="right-scroll-bar-position",sc="width-before-scroll-bar",HI="with-scroll-bars-hidden",XI="--removed-body-scroll-bar-size";function _l(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function VI(e,t){var r=M.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var GI=typeof window<"u"?i.useLayoutEffect:i.useEffect,bg=new WeakMap;function qI(e,t){var r=VI(null,function(n){return e.forEach(function(o){return _l(o,n)})});return GI(function(){var n=bg.get(r);if(n){var o=new Set(n),a=new Set(e),c=r.current;o.forEach(function(s){a.has(s)||_l(s,null)}),a.forEach(function(s){o.has(s)||_l(s,c)})}bg.set(r,e)},[e]),r}function ZI(e){return e}function JI(e,t){t===void 0&&(t=ZI);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var c=t(a,n);return r.push(c),function(){r=r.filter(function(s){return s!==c})}},assignSyncMedium:function(a){for(n=!0;r.length;){var c=r;r=[],c.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var c=[];if(r.length){var s=r;r=[],s.forEach(a),c=r}var m=function(){var u=c;c=[],u.forEach(a)},l=function(){return Promise.resolve().then(m)};l(),r={push:function(u){c.push(u),l()},filter:function(u){return c=c.filter(u),r}}}};return o}function QI(e){e===void 0&&(e={});var t=JI(null);return t.options=it({async:!0,ssr:!1},e),t}var qx=function(e){var t=e.sideCar,r=Gx(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return i.createElement(n,it({},r))};qx.isSideCarExport=!0;function eF(e,t){return e.useMedium(t),qx}var Zx=QI(),Ml=function(){},mu=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:Ml,onWheelCapture:Ml,onTouchMoveCapture:Ml}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,m=e.className,l=e.removeScrollBar,u=e.enabled,p=e.shards,v=e.sideCar,h=e.noRelative,x=e.noIsolation,d=e.inert,g=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,w=e.gapMode,E=Gx(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=v,T=qI([r,t]),R=it(it({},E),o);return i.createElement(i.Fragment,null,u&&i.createElement(C,{sideCar:Zx,removeScrollBar:l,shards:p,noRelative:h,noIsolation:x,inert:d,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),it(it({},R),{ref:T})):i.createElement(b,it({},R,{className:m,ref:T}),s))});mu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};mu.classNames={fullWidth:sc,zeroRight:ac};var tF=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function rF(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=tF();return t&&e.setAttribute("nonce",t),e}function nF(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function oF(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var aF=function(){var e=0,t=null;return{add:function(r){e==0&&(t=rF())&&(nF(t,r),oF(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},sF=function(){var e=aF();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Jx=function(){var e=sF(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},iF={left:0,top:0,right:0,gap:0},Al=function(e){return parseInt(e||"",10)||0},cF=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Al(r),Al(n),Al(o)]},uF=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return iF;var t=cF(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},lF=Jx(),Eo="data-scroll-locked",dF=function(e,t,r,n){var o=e.left,a=e.top,c=e.right,s=e.gap;return r===void 0&&(r="margin"),`
|
176
|
-
.`.concat(HI,` {
|
177
|
-
overflow: hidden `).concat(n,`;
|
178
|
-
padding-right: `).concat(s,"px ").concat(n,`;
|
179
|
-
}
|
180
|
-
body[`).concat(Eo,`] {
|
181
|
-
overflow: hidden `).concat(n,`;
|
182
|
-
overscroll-behavior: contain;
|
183
|
-
`).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
|
184
|
-
padding-left: `.concat(o,`px;
|
185
|
-
padding-top: `).concat(a,`px;
|
186
|
-
padding-right: `).concat(c,`px;
|
187
|
-
margin-left:0;
|
188
|
-
margin-top:0;
|
189
|
-
margin-right: `).concat(s,"px ").concat(n,`;
|
190
|
-
`),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
|
191
|
-
}
|
192
|
-
|
193
|
-
.`).concat(ac,` {
|
194
|
-
right: `).concat(s,"px ").concat(n,`;
|
195
|
-
}
|
196
|
-
|
197
|
-
.`).concat(sc,` {
|
198
|
-
margin-right: `).concat(s,"px ").concat(n,`;
|
199
|
-
}
|
200
|
-
|
201
|
-
.`).concat(ac," .").concat(ac,` {
|
202
|
-
right: 0 `).concat(n,`;
|
203
|
-
}
|
204
|
-
|
205
|
-
.`).concat(sc," .").concat(sc,` {
|
206
|
-
margin-right: 0 `).concat(n,`;
|
207
|
-
}
|
208
|
-
|
209
|
-
body[`).concat(Eo,`] {
|
210
|
-
`).concat(XI,": ").concat(s,`px;
|
211
|
-
}
|
212
|
-
`)},wg=function(){var e=parseInt(document.body.getAttribute(Eo)||"0",10);return isFinite(e)?e:0},fF=function(){i.useEffect(function(){return document.body.setAttribute(Eo,(wg()+1).toString()),function(){var e=wg()-1;e<=0?document.body.removeAttribute(Eo):document.body.setAttribute(Eo,e.toString())}},[])},pF=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;fF();var a=i.useMemo(function(){return uF(o)},[o]);return i.createElement(lF,{styles:dF(a,!t,o,r?"":"!important")})},ap=!1;if(typeof window<"u")try{var Ss=Object.defineProperty({},"passive",{get:function(){return ap=!0,!0}});window.addEventListener("test",Ss,Ss),window.removeEventListener("test",Ss,Ss)}catch{ap=!1}var Tn=ap?{passive:!1}:!1,mF=function(e){return e.tagName==="TEXTAREA"},Qx=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!mF(e)&&r[t]==="visible")},vF=function(e){return Qx(e,"overflowY")},gF=function(e){return Qx(e,"overflowX")},xg=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=eE(e,n);if(o){var a=tE(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},hF=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},yF=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},eE=function(e,t){return e==="v"?vF(t):gF(t)},tE=function(e,t){return e==="v"?hF(t):yF(t)},bF=function(e,t){return e==="h"&&t==="rtl"?-1:1},wF=function(e,t,r,n,o){var a=bF(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,m=t.contains(s),l=!1,u=c>0,p=0,v=0;do{if(!s)break;var h=tE(e,s),x=h[0],d=h[1],g=h[2],y=d-g-a*x;(x||y)&&eE(e,s)&&(p+=y,v+=x);var b=s.parentNode;s=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!m&&s!==document.body||m&&(t.contains(s)||t===s));return(u&&Math.abs(p)<1||!u&&Math.abs(v)<1)&&(l=!0),l},Rs=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Eg=function(e){return[e.deltaX,e.deltaY]},Sg=function(e){return e&&"current"in e?e.current:e},xF=function(e,t){return e[0]===t[0]&&e[1]===t[1]},EF=function(e){return`
|
213
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
214
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
215
|
-
`)},SF=0,Dn=[];function RF(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(SF++)[0],a=i.useState(Jx)[0],c=i.useRef(e);i.useEffect(function(){c.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var d=KI([e.lockRef.current],(e.shards||[]).map(Sg)).filter(Boolean);return d.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),d.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(d,g){if("touches"in d&&d.touches.length===2||d.type==="wheel"&&d.ctrlKey)return!c.current.allowPinchZoom;var y=Rs(d),b=r.current,w="deltaX"in d?d.deltaX:b[0]-y[0],E="deltaY"in d?d.deltaY:b[1]-y[1],C,T=d.target,R=Math.abs(w)>Math.abs(E)?"h":"v";if("touches"in d&&R==="h"&&T.type==="range")return!1;var N=xg(R,T);if(!N)return!0;if(N?C=R:(C=R==="v"?"h":"v",N=xg(R,T)),!N)return!1;if(!n.current&&"changedTouches"in d&&(w||E)&&(n.current=C),!C)return!0;var P=n.current||C;return wF(P,g,d,P==="h"?w:E)},[]),m=i.useCallback(function(d){var g=d;if(!(!Dn.length||Dn[Dn.length-1]!==a)){var y="deltaY"in g?Eg(g):Rs(g),b=t.current.filter(function(C){return C.name===g.type&&(C.target===g.target||g.target===C.shadowParent)&&xF(C.delta,y)})[0];if(b&&b.should){g.cancelable&&g.preventDefault();return}if(!b){var w=(c.current.shards||[]).map(Sg).filter(Boolean).filter(function(C){return C.contains(g.target)}),E=w.length>0?s(g,w[0]):!c.current.noIsolation;E&&g.cancelable&&g.preventDefault()}}},[]),l=i.useCallback(function(d,g,y,b){var w={name:d,delta:g,target:y,should:b,shadowParent:CF(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(E){return E!==w})},1)},[]),u=i.useCallback(function(d){r.current=Rs(d),n.current=void 0},[]),p=i.useCallback(function(d){l(d.type,Eg(d),d.target,s(d,e.lockRef.current))},[]),v=i.useCallback(function(d){l(d.type,Rs(d),d.target,s(d,e.lockRef.current))},[]);i.useEffect(function(){return Dn.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",m,Tn),document.addEventListener("touchmove",m,Tn),document.addEventListener("touchstart",u,Tn),function(){Dn=Dn.filter(function(d){return d!==a}),document.removeEventListener("wheel",m,Tn),document.removeEventListener("touchmove",m,Tn),document.removeEventListener("touchstart",u,Tn)}},[]);var h=e.removeScrollBar,x=e.inert;return i.createElement(i.Fragment,null,x?i.createElement(a,{styles:EF(o)}):null,h?i.createElement(pF,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function CF(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const NF=eF(Zx,RF);var rE=i.forwardRef(function(e,t){return i.createElement(mu,it({},e,{ref:t,sideCar:NF}))});rE.classNames=mu.classNames;var kF=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},On=new WeakMap,Cs=new WeakMap,Ns={},Il=0,nE=function(e){return e&&(e.host||nE(e.parentNode))},jF=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=nE(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},TF=function(e,t,r,n){var o=jF(t,Array.isArray(e)?e:[e]);Ns[r]||(Ns[r]=new WeakMap);var a=Ns[r],c=[],s=new Set,m=new Set(o),l=function(p){!p||s.has(p)||(s.add(p),l(p.parentNode))};o.forEach(l);var u=function(p){!p||m.has(p)||Array.prototype.forEach.call(p.children,function(v){if(s.has(v))u(v);else try{var h=v.getAttribute(n),x=h!==null&&h!=="false",d=(On.get(v)||0)+1,g=(a.get(v)||0)+1;On.set(v,d),a.set(v,g),c.push(v),d===1&&x&&Cs.set(v,!0),g===1&&v.setAttribute(r,"true"),x||v.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",v,y)}})};return u(t),s.clear(),Il++,function(){c.forEach(function(p){var v=On.get(p)-1,h=a.get(p)-1;On.set(p,v),a.set(p,h),v||(Cs.has(p)||p.removeAttribute(n),Cs.delete(p)),h||p.removeAttribute(r)}),Il--,Il||(On=new WeakMap,On=new WeakMap,Cs=new WeakMap,Ns={})}},DF=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=kF(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),TF(n,o,r,"aria-hidden")):function(){return null}},oE="Dialog",[aE]=wI(oE),[Moe,Ft]=aE(oE),sE="DialogTrigger",OF=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ft(sE,r),a=mn(t,o.triggerRef);return pe.jsx(sr.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Em(o.open),...n,ref:a,onClick:_r(e.onClick,o.onOpenToggle)})});OF.displayName=sE;var PF="DialogPortal",[Aoe,iE]=aE(PF,{forceMount:void 0}),Uc="DialogOverlay",_F=i.forwardRef((e,t)=>{const r=iE(Uc,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Ft(Uc,e.__scopeDialog);return a.modal?pe.jsx(wm,{present:n||a.open,children:pe.jsx(AF,{...o,ref:t})}):null});_F.displayName=Uc;var MF=Z.createSlot("DialogOverlay.RemoveScroll"),AF=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ft(Uc,r);return pe.jsx(rE,{as:MF,allowPinchZoom:!0,shards:[o.contentRef],children:pe.jsx(sr.div,{"data-state":Em(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Gr="DialogContent",IF=i.forwardRef((e,t)=>{const r=iE(Gr,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Ft(Gr,e.__scopeDialog);return pe.jsx(wm,{present:n||a.open,children:a.modal?pe.jsx(FF,{...o,ref:t}):pe.jsx(LF,{...o,ref:t})})});IF.displayName=Gr;var FF=i.forwardRef((e,t)=>{const r=Ft(Gr,e.__scopeDialog),n=i.useRef(null),o=mn(t,r.contentRef,n);return i.useEffect(()=>{const a=n.current;if(a)return DF(a)},[]),pe.jsx(cE,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:_r(e.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:_r(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&a.preventDefault()}),onFocusOutside:_r(e.onFocusOutside,a=>a.preventDefault())})}),LF=i.forwardRef((e,t)=>{const r=Ft(Gr,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return pe.jsx(cE,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(n.current||r.triggerRef.current?.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=a.target;r.triggerRef.current?.contains(c)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),cE=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,s=Ft(Gr,r),m=i.useRef(null),l=mn(t,m);return BI(),pe.jsxs(pe.Fragment,{children:[pe.jsx(Xx,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:pe.jsx(Kx,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Em(s.open),...c,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),pe.jsxs(pe.Fragment,{children:[pe.jsx(YF,{titleId:s.titleId}),pe.jsx(BF,{contentRef:m,descriptionId:s.descriptionId})]})]})}),xm="DialogTitle",WF=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ft(xm,r);return pe.jsx(sr.h2,{id:o.titleId,...n,ref:t})});WF.displayName=xm;var uE="DialogDescription",zF=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ft(uE,r);return pe.jsx(sr.p,{id:o.descriptionId,...n,ref:t})});zF.displayName=uE;var lE="DialogClose",$F=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ft(lE,r);return pe.jsx(sr.button,{type:"button",...n,ref:t,onClick:_r(e.onClick,()=>o.onOpenChange(!1))})});$F.displayName=lE;function Em(e){return e?"open":"closed"}var dE="DialogTitleWarning",[Ioe,fE]=bI(dE,{contentName:Gr,titleName:xm,docsSlug:"dialog"}),YF=({titleId:e})=>{const t=fE(dE),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
216
|
-
|
217
|
-
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
218
|
-
|
219
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},UF="DialogDescriptionWarning",BF=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${fE(UF).contentName}}.`;return i.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Fl={exports:{}},ra={};/**
|
220
|
-
* @license React
|
221
|
-
* react-jsx-runtime.production.js
|
222
|
-
*
|
223
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
224
|
-
*
|
225
|
-
* This source code is licensed under the MIT license found in the
|
226
|
-
* LICENSE file in the root directory of this source tree.
|
227
|
-
*/var Rg;function KF(){if(Rg)return ra;Rg=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var c=null;if(a!==void 0&&(c=""+a),o.key!==void 0&&(c=""+o.key),"key"in o){a={};for(var s in o)s!=="key"&&(a[s]=o[s])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:c,ref:o!==void 0?o:null,props:a}}return ra.Fragment=t,ra.jsx=r,ra.jsxs=r,ra}var ks={};/**
|
228
|
-
* @license React
|
229
|
-
* react-jsx-runtime.development.js
|
230
|
-
*
|
231
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
232
|
-
*
|
233
|
-
* This source code is licensed under the MIT license found in the
|
234
|
-
* LICENSE file in the root directory of this source tree.
|
235
|
-
*/var Cg;function HF(){return Cg||(Cg=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(f==null)return null;if(typeof f=="function")return f.$$typeof===L?null:f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case d:return"Fragment";case y:return"Profiler";case g:return"StrictMode";case C:return"Suspense";case T:return"SuspenseList";case P:return"Activity"}if(typeof f=="object")switch(typeof f.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),f.$$typeof){case x:return"Portal";case w:return(f.displayName||"Context")+".Provider";case b:return(f._context.displayName||"Context")+".Consumer";case E:var S=f.render;return f=f.displayName,f||(f=S.displayName||S.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case R:return S=f.displayName||null,S!==null?S:e(f.type)||"Memo";case N:S=f._payload,f=f._init;try{return e(f(S))}catch{}}return null}function t(f){return""+f}function r(f){try{t(f);var S=!1}catch{S=!0}if(S){S=console;var k=S.error,D=typeof Symbol=="function"&&Symbol.toStringTag&&f[Symbol.toStringTag]||f.constructor.name||"Object";return k.call(S,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",D),t(f)}}function n(f){if(f===d)return"<>";if(typeof f=="object"&&f!==null&&f.$$typeof===N)return"<...>";try{var S=e(f);return S?"<"+S+">":"<...>"}catch{return"<...>"}}function o(){var f=I.A;return f===null?null:f.getOwner()}function a(){return Error("react-stack-top-frame")}function c(f){if(B.call(f,"key")){var S=Object.getOwnPropertyDescriptor(f,"key").get;if(S&&S.isReactWarning)return!1}return f.key!==void 0}function s(f,S){function k(){_||(_=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",S))}k.isReactWarning=!0,Object.defineProperty(f,"key",{get:k,configurable:!0})}function m(){var f=e(this.type);return Y[f]||(Y[f]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),f=this.props.ref,f!==void 0?f:null}function l(f,S,k,D,F,A,G,X){return k=A.ref,f={$$typeof:h,type:f,key:S,props:A,_owner:F},(k!==void 0?k:null)!==null?Object.defineProperty(f,"ref",{enumerable:!1,get:m}):Object.defineProperty(f,"ref",{enumerable:!1,value:null}),f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(f,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(f,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:G}),Object.defineProperty(f,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:X}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f}function u(f,S,k,D,F,A,G,X){var O=S.children;if(O!==void 0)if(D)if(K(O)){for(D=0;D<O.length;D++)p(O[D]);Object.freeze&&Object.freeze(O)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else p(O);if(B.call(S,"key")){O=e(f);var z=Object.keys(S).filter(function(ce){return ce!=="key"});D=0<z.length?"{key: someKey, "+z.join(": ..., ")+": ...}":"{key: someKey}",V[O+D]||(z=0<z.length?"{"+z.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
236
|
-
let props = %s;
|
237
|
-
<%s {...props} />
|
238
|
-
React keys must be passed directly to JSX without using spread:
|
239
|
-
let props = %s;
|
240
|
-
<%s key={someKey} {...props} />`,D,O,z,O),V[O+D]=!0)}if(O=null,k!==void 0&&(r(k),O=""+k),c(S)&&(r(S.key),O=""+S.key),"key"in S){k={};for(var q in S)q!=="key"&&(k[q]=S[q])}else k=S;return O&&s(k,typeof f=="function"?f.displayName||f.name||"Unknown":f),l(f,O,A,F,o(),k,G,X)}function p(f){typeof f=="object"&&f!==null&&f.$$typeof===h&&f._store&&(f._store.validated=1)}var v=M,h=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),b=Symbol.for("react.consumer"),w=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),P=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),I=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,K=Array.isArray,$=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(f){return f()}};var _,Y={},H=v.react_stack_bottom_frame.bind(v,a)(),U=$(n(a)),V={};ks.Fragment=d,ks.jsx=function(f,S,k,D,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,S,k,!1,D,F,A?Error("react-stack-top-frame"):H,A?$(n(f)):U)},ks.jsxs=function(f,S,k,D,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,S,k,!0,D,F,A?Error("react-stack-top-frame"):H,A?$(n(f)):U)}})()),ks}var Ng;function XF(){return Ng||(Ng=1,process.env.NODE_ENV==="production"?Fl.exports=KF():Fl.exports=HF()),Fl.exports}var me=XF();M.createContext({locale:void 0});const VF={id:"",username:"",email:"",created_at:null,updated_at:null,features:[]};M.createContext({user:VF,isLoading:!0,fetchUser:async()=>{},logout:async()=>{},login:async()=>!1});ie.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});ie.cva("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function Mr(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}function kg(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function GF(...e){return t=>{let r=!1;const n=e.map(o=>{const a=kg(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():kg(e[o],null)}}}}function vn(...e){return i.useCallback(GF(...e),e)}function qF(e,t){const r=i.createContext(t),n=a=>{const{children:c,...s}=a,m=i.useMemo(()=>s,Object.values(s));return me.jsx(r.Provider,{value:m,children:c})};n.displayName=e+"Provider";function o(a){const c=i.useContext(r);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function ZF(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),m=r.length;r=[...r,c];const l=p=>{const{scope:v,children:h,...x}=p,d=v?.[e]?.[m]||s,g=i.useMemo(()=>x,Object.values(x));return me.jsx(d.Provider,{value:g,children:h})};l.displayName=a+"Provider";function u(p,v){const h=v?.[e]?.[m]||s,x=i.useContext(h);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[l,u]}const o=()=>{const a=r.map(c=>i.createContext(c));return function(c){const s=c?.[e]||a;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:s}}),[c,s])}};return o.scopeName=e,[n,JF(o,...t)]}function JF(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){const a=n.reduce((c,{useScope:s,scopeName:m})=>{const l=s(o)[`__scope${m}`];return{...c,...l}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var sp=globalThis?.document?i.useLayoutEffect:()=>{},QF=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ir=QF.reduce((e,t)=>{const r=Z.createSlot(`Primitive.${t}`),n=i.forwardRef((o,a)=>{const{asChild:c,...s}=o,m=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),me.jsx(m,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function eL(e,t){e&&Ee.flushSync(()=>e.dispatchEvent(t))}function Na(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>t.current?.(...r),[])}function tL(e,t=globalThis?.document){const r=Na(e);i.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var rL="DismissableLayer",ip="dismissableLayer.update",nL="dismissableLayer.pointerDownOutside",oL="dismissableLayer.focusOutside",jg,pE=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),mE=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...m}=e,l=i.useContext(pE),[u,p]=i.useState(null),v=u?.ownerDocument??globalThis?.document,[,h]=i.useState({}),x=vn(t,R=>p(R)),d=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),y=d.indexOf(g),b=u?d.indexOf(u):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,E=b>=y,C=iL(R=>{const N=R.target,P=[...l.branches].some(L=>L.contains(N));!E||P||(o?.(R),c?.(R),R.defaultPrevented||s?.())},v),T=cL(R=>{const N=R.target;[...l.branches].some(P=>P.contains(N))||(a?.(R),c?.(R),R.defaultPrevented||s?.())},v);return tL(R=>{b===l.layers.size-1&&(n?.(R),!R.defaultPrevented&&s&&(R.preventDefault(),s()))},v),i.useEffect(()=>{if(u)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(jg=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),Tg(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=jg)}},[u,v,r,l]),i.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),Tg())},[u,l]),i.useEffect(()=>{const R=()=>h({});return document.addEventListener(ip,R),()=>document.removeEventListener(ip,R)},[]),me.jsx(ir.div,{...m,ref:x,style:{pointerEvents:w?E?"auto":"none":void 0,...e.style},onFocusCapture:Mr(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Mr(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Mr(e.onPointerDownCapture,C.onPointerDownCapture)})});mE.displayName=rL;var aL="DismissableLayerBranch",sL=i.forwardRef((e,t)=>{const r=i.useContext(pE),n=i.useRef(null),o=vn(t,n);return i.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),me.jsx(ir.div,{...e,ref:o})});sL.displayName=aL;function iL(e,t=globalThis?.document){const r=Na(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let m=function(){vE(nL,r,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=m,t.addEventListener("click",o.current,{once:!0})):m()}else t.removeEventListener("click",o.current);n.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function cL(e,t=globalThis?.document){const r=Na(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&vE(oL,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Tg(){const e=new CustomEvent(ip);document.dispatchEvent(e)}function vE(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?eL(o,a):o.dispatchEvent(a)}var Ll="focusScope.autoFocusOnMount",Wl="focusScope.autoFocusOnUnmount",Dg={bubbles:!1,cancelable:!0},uL="FocusScope",gE=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,m]=i.useState(null),l=Na(o),u=Na(a),p=i.useRef(null),v=vn(t,d=>m(d)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let d=function(w){if(h.paused||!s)return;const E=w.target;s.contains(E)?p.current=E:hr(p.current,{select:!0})},g=function(w){if(h.paused||!s)return;const E=w.relatedTarget;E!==null&&(s.contains(E)||hr(p.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const E of w)E.removedNodes.length>0&&hr(s)};document.addEventListener("focusin",d),document.addEventListener("focusout",g);const b=new MutationObserver(y);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",d),document.removeEventListener("focusout",g),b.disconnect()}}},[n,s,h.paused]),i.useEffect(()=>{if(s){Pg.add(h);const d=document.activeElement;if(!s.contains(d)){const g=new CustomEvent(Ll,Dg);s.addEventListener(Ll,l),s.dispatchEvent(g),g.defaultPrevented||(lL(vL(hE(s)),{select:!0}),document.activeElement===d&&hr(s))}return()=>{s.removeEventListener(Ll,l),setTimeout(()=>{const g=new CustomEvent(Wl,Dg);s.addEventListener(Wl,u),s.dispatchEvent(g),g.defaultPrevented||hr(d??document.body,{select:!0}),s.removeEventListener(Wl,u),Pg.remove(h)},0)}}},[s,l,u,h]);const x=i.useCallback(d=>{if(!r&&!n||h.paused)return;const g=d.key==="Tab"&&!d.altKey&&!d.ctrlKey&&!d.metaKey,y=document.activeElement;if(g&&y){const b=d.currentTarget,[w,E]=dL(b);w&&E?!d.shiftKey&&y===E?(d.preventDefault(),r&&hr(w,{select:!0})):d.shiftKey&&y===w&&(d.preventDefault(),r&&hr(E,{select:!0})):y===b&&d.preventDefault()}},[r,n,h.paused]);return me.jsx(ir.div,{tabIndex:-1,...c,ref:v,onKeyDown:x})});gE.displayName=uL;function lL(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(hr(n,{select:t}),document.activeElement!==r)return}function dL(e){const t=hE(e),r=Og(t,e),n=Og(t.reverse(),e);return[r,n]}function hE(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Og(e,t){for(const r of e)if(!fL(r,{upTo:t}))return r}function fL(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function pL(e){return e instanceof HTMLInputElement&&"select"in e}function hr(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&pL(e)&&t&&e.select()}}var Pg=mL();function mL(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=_g(e,t),e.unshift(t)},remove(t){e=_g(e,t),e[0]?.resume()}}}function _g(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function vL(e){return e.filter(t=>t.tagName!=="A")}var gL="Portal",hL=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);sp(()=>a(!0),[]);const c=r||o&&globalThis?.document?.body;return c?xe.createPortal(me.jsx(ir.div,{...n,ref:t}),c):null});hL.displayName=gL;function yL(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var Sm=e=>{const{present:t,children:r}=e,n=bL(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=vn(n.ref,wL(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};Sm.displayName="Presence";function bL(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,m]=yL(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const l=js(n.current);a.current=s==="mounted"?l:"none"},[s]),sp(()=>{const l=n.current,u=o.current;if(u!==e){const p=a.current,v=js(l);e?m("MOUNT"):v==="none"||l?.display==="none"?m("UNMOUNT"):m(u&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,m]),sp(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,p=h=>{const x=js(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&x&&(m("ANIMATION_END"),!o.current)){const d=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=d)})}},v=h=>{h.target===t&&(a.current=js(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else m("ANIMATION_END")},[t,m]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:i.useCallback(l=>{n.current=l?getComputedStyle(l):null,r(l)},[])}}function js(e){return e?.animationName||"none"}function wL(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var zl=0;function xL(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Mg()),document.body.insertAdjacentElement("beforeend",e[1]??Mg()),zl++,()=>{zl===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),zl--}},[])}function Mg(){const e=document.createElement("span");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}var ct=function(){return ct=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},ct.apply(this,arguments)};function yE(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function EL(e,t,r){for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var ic="right-scroll-bar-position",cc="width-before-scroll-bar",SL="with-scroll-bars-hidden",RL="--removed-body-scroll-bar-size";function $l(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function CL(e,t){var r=M.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var NL=typeof window<"u"?i.useLayoutEffect:i.useEffect,Ag=new WeakMap;function kL(e,t){var r=CL(null,function(n){return e.forEach(function(o){return $l(o,n)})});return NL(function(){var n=Ag.get(r);if(n){var o=new Set(n),a=new Set(e),c=r.current;o.forEach(function(s){a.has(s)||$l(s,null)}),a.forEach(function(s){o.has(s)||$l(s,c)})}Ag.set(r,e)},[e]),r}function jL(e){return e}function TL(e,t){t===void 0&&(t=jL);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var c=t(a,n);return r.push(c),function(){r=r.filter(function(s){return s!==c})}},assignSyncMedium:function(a){for(n=!0;r.length;){var c=r;r=[],c.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var c=[];if(r.length){var s=r;r=[],s.forEach(a),c=r}var m=function(){var u=c;c=[],u.forEach(a)},l=function(){return Promise.resolve().then(m)};l(),r={push:function(u){c.push(u),l()},filter:function(u){return c=c.filter(u),r}}}};return o}function DL(e){e===void 0&&(e={});var t=TL(null);return t.options=ct({async:!0,ssr:!1},e),t}var bE=function(e){var t=e.sideCar,r=yE(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return i.createElement(n,ct({},r))};bE.isSideCarExport=!0;function OL(e,t){return e.useMedium(t),bE}var wE=DL(),Yl=function(){},vu=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:Yl,onWheelCapture:Yl,onTouchMoveCapture:Yl}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,m=e.className,l=e.removeScrollBar,u=e.enabled,p=e.shards,v=e.sideCar,h=e.noRelative,x=e.noIsolation,d=e.inert,g=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,w=e.gapMode,E=yE(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=v,T=kL([r,t]),R=ct(ct({},E),o);return i.createElement(i.Fragment,null,u&&i.createElement(C,{sideCar:wE,removeScrollBar:l,shards:p,noRelative:h,noIsolation:x,inert:d,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),ct(ct({},R),{ref:T})):i.createElement(b,ct({},R,{className:m,ref:T}),s))});vu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};vu.classNames={fullWidth:cc,zeroRight:ic};var PL=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function _L(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=PL();return t&&e.setAttribute("nonce",t),e}function ML(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function AL(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var IL=function(){var e=0,t=null;return{add:function(r){e==0&&(t=_L())&&(ML(t,r),AL(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},FL=function(){var e=IL();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},xE=function(){var e=FL(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},LL={left:0,top:0,right:0,gap:0},Ul=function(e){return parseInt(e||"",10)||0},WL=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Ul(r),Ul(n),Ul(o)]},zL=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return LL;var t=WL(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},$L=xE(),So="data-scroll-locked",YL=function(e,t,r,n){var o=e.left,a=e.top,c=e.right,s=e.gap;return r===void 0&&(r="margin"),`
|
241
|
-
.`.concat(SL,` {
|
242
|
-
overflow: hidden `).concat(n,`;
|
243
|
-
padding-right: `).concat(s,"px ").concat(n,`;
|
244
|
-
}
|
245
|
-
body[`).concat(So,`] {
|
246
|
-
overflow: hidden `).concat(n,`;
|
247
|
-
overscroll-behavior: contain;
|
248
|
-
`).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
|
249
|
-
padding-left: `.concat(o,`px;
|
250
|
-
padding-top: `).concat(a,`px;
|
251
|
-
padding-right: `).concat(c,`px;
|
252
|
-
margin-left:0;
|
253
|
-
margin-top:0;
|
254
|
-
margin-right: `).concat(s,"px ").concat(n,`;
|
255
|
-
`),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
|
256
|
-
}
|
257
|
-
|
258
|
-
.`).concat(ic,` {
|
259
|
-
right: `).concat(s,"px ").concat(n,`;
|
260
|
-
}
|
261
|
-
|
262
|
-
.`).concat(cc,` {
|
263
|
-
margin-right: `).concat(s,"px ").concat(n,`;
|
264
|
-
}
|
265
|
-
|
266
|
-
.`).concat(ic," .").concat(ic,` {
|
267
|
-
right: 0 `).concat(n,`;
|
268
|
-
}
|
269
|
-
|
270
|
-
.`).concat(cc," .").concat(cc,` {
|
271
|
-
margin-right: 0 `).concat(n,`;
|
272
|
-
}
|
273
|
-
|
274
|
-
body[`).concat(So,`] {
|
275
|
-
`).concat(RL,": ").concat(s,`px;
|
276
|
-
}
|
277
|
-
`)},Ig=function(){var e=parseInt(document.body.getAttribute(So)||"0",10);return isFinite(e)?e:0},UL=function(){i.useEffect(function(){return document.body.setAttribute(So,(Ig()+1).toString()),function(){var e=Ig()-1;e<=0?document.body.removeAttribute(So):document.body.setAttribute(So,e.toString())}},[])},BL=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;UL();var a=i.useMemo(function(){return zL(o)},[o]);return i.createElement($L,{styles:YL(a,!t,o,r?"":"!important")})},cp=!1;if(typeof window<"u")try{var Ts=Object.defineProperty({},"passive",{get:function(){return cp=!0,!0}});window.addEventListener("test",Ts,Ts),window.removeEventListener("test",Ts,Ts)}catch{cp=!1}var Pn=cp?{passive:!1}:!1,KL=function(e){return e.tagName==="TEXTAREA"},EE=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!KL(e)&&r[t]==="visible")},HL=function(e){return EE(e,"overflowY")},XL=function(e){return EE(e,"overflowX")},Fg=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=SE(e,n);if(o){var a=RE(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},VL=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},GL=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},SE=function(e,t){return e==="v"?HL(t):XL(t)},RE=function(e,t){return e==="v"?VL(t):GL(t)},qL=function(e,t){return e==="h"&&t==="rtl"?-1:1},ZL=function(e,t,r,n,o){var a=qL(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,m=t.contains(s),l=!1,u=c>0,p=0,v=0;do{if(!s)break;var h=RE(e,s),x=h[0],d=h[1],g=h[2],y=d-g-a*x;(x||y)&&SE(e,s)&&(p+=y,v+=x);var b=s.parentNode;s=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!m&&s!==document.body||m&&(t.contains(s)||t===s));return(u&&Math.abs(p)<1||!u&&Math.abs(v)<1)&&(l=!0),l},Ds=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Lg=function(e){return[e.deltaX,e.deltaY]},Wg=function(e){return e&&"current"in e?e.current:e},JL=function(e,t){return e[0]===t[0]&&e[1]===t[1]},QL=function(e){return`
|
278
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
279
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
280
|
-
`)},e2=0,_n=[];function t2(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(e2++)[0],a=i.useState(xE)[0],c=i.useRef(e);i.useEffect(function(){c.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var d=EL([e.lockRef.current],(e.shards||[]).map(Wg)).filter(Boolean);return d.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),d.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(d,g){if("touches"in d&&d.touches.length===2||d.type==="wheel"&&d.ctrlKey)return!c.current.allowPinchZoom;var y=Ds(d),b=r.current,w="deltaX"in d?d.deltaX:b[0]-y[0],E="deltaY"in d?d.deltaY:b[1]-y[1],C,T=d.target,R=Math.abs(w)>Math.abs(E)?"h":"v";if("touches"in d&&R==="h"&&T.type==="range")return!1;var N=Fg(R,T);if(!N)return!0;if(N?C=R:(C=R==="v"?"h":"v",N=Fg(R,T)),!N)return!1;if(!n.current&&"changedTouches"in d&&(w||E)&&(n.current=C),!C)return!0;var P=n.current||C;return ZL(P,g,d,P==="h"?w:E)},[]),m=i.useCallback(function(d){var g=d;if(!(!_n.length||_n[_n.length-1]!==a)){var y="deltaY"in g?Lg(g):Ds(g),b=t.current.filter(function(C){return C.name===g.type&&(C.target===g.target||g.target===C.shadowParent)&&JL(C.delta,y)})[0];if(b&&b.should){g.cancelable&&g.preventDefault();return}if(!b){var w=(c.current.shards||[]).map(Wg).filter(Boolean).filter(function(C){return C.contains(g.target)}),E=w.length>0?s(g,w[0]):!c.current.noIsolation;E&&g.cancelable&&g.preventDefault()}}},[]),l=i.useCallback(function(d,g,y,b){var w={name:d,delta:g,target:y,should:b,shadowParent:r2(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(E){return E!==w})},1)},[]),u=i.useCallback(function(d){r.current=Ds(d),n.current=void 0},[]),p=i.useCallback(function(d){l(d.type,Lg(d),d.target,s(d,e.lockRef.current))},[]),v=i.useCallback(function(d){l(d.type,Ds(d),d.target,s(d,e.lockRef.current))},[]);i.useEffect(function(){return _n.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",m,Pn),document.addEventListener("touchmove",m,Pn),document.addEventListener("touchstart",u,Pn),function(){_n=_n.filter(function(d){return d!==a}),document.removeEventListener("wheel",m,Pn),document.removeEventListener("touchmove",m,Pn),document.removeEventListener("touchstart",u,Pn)}},[]);var h=e.removeScrollBar,x=e.inert;return i.createElement(i.Fragment,null,x?i.createElement(a,{styles:QL(o)}):null,h?i.createElement(BL,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function r2(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const n2=OL(wE,t2);var CE=i.forwardRef(function(e,t){return i.createElement(vu,ct({},e,{ref:t,sideCar:n2}))});CE.classNames=vu.classNames;var o2=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Mn=new WeakMap,Os=new WeakMap,Ps={},Bl=0,NE=function(e){return e&&(e.host||NE(e.parentNode))},a2=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=NE(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},s2=function(e,t,r,n){var o=a2(t,Array.isArray(e)?e:[e]);Ps[r]||(Ps[r]=new WeakMap);var a=Ps[r],c=[],s=new Set,m=new Set(o),l=function(p){!p||s.has(p)||(s.add(p),l(p.parentNode))};o.forEach(l);var u=function(p){!p||m.has(p)||Array.prototype.forEach.call(p.children,function(v){if(s.has(v))u(v);else try{var h=v.getAttribute(n),x=h!==null&&h!=="false",d=(Mn.get(v)||0)+1,g=(a.get(v)||0)+1;Mn.set(v,d),a.set(v,g),c.push(v),d===1&&x&&Os.set(v,!0),g===1&&v.setAttribute(r,"true"),x||v.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",v,y)}})};return u(t),s.clear(),Bl++,function(){c.forEach(function(p){var v=Mn.get(p)-1,h=a.get(p)-1;Mn.set(p,v),a.set(p,h),v||(Os.has(p)||p.removeAttribute(n),Os.delete(p)),h||p.removeAttribute(r)}),Bl--,Bl||(Mn=new WeakMap,Mn=new WeakMap,Os=new WeakMap,Ps={})}},i2=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=o2(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),s2(n,o,r,"aria-hidden")):function(){return null}},kE="Dialog",[jE]=ZF(kE),[Foe,Lt]=jE(kE),TE="DialogTrigger",c2=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Lt(TE,r),a=vn(t,o.triggerRef);return me.jsx(ir.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Cm(o.open),...n,ref:a,onClick:Mr(e.onClick,o.onOpenToggle)})});c2.displayName=TE;var u2="DialogPortal",[Loe,DE]=jE(u2,{forceMount:void 0}),Bc="DialogOverlay",l2=i.forwardRef((e,t)=>{const r=DE(Bc,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Lt(Bc,e.__scopeDialog);return a.modal?me.jsx(Sm,{present:n||a.open,children:me.jsx(f2,{...o,ref:t})}):null});l2.displayName=Bc;var d2=Z.createSlot("DialogOverlay.RemoveScroll"),f2=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Lt(Bc,r);return me.jsx(CE,{as:d2,allowPinchZoom:!0,shards:[o.contentRef],children:me.jsx(ir.div,{"data-state":Cm(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),qr="DialogContent",p2=i.forwardRef((e,t)=>{const r=DE(qr,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Lt(qr,e.__scopeDialog);return me.jsx(Sm,{present:n||a.open,children:a.modal?me.jsx(m2,{...o,ref:t}):me.jsx(v2,{...o,ref:t})})});p2.displayName=qr;var m2=i.forwardRef((e,t)=>{const r=Lt(qr,e.__scopeDialog),n=i.useRef(null),o=vn(t,r.contentRef,n);return i.useEffect(()=>{const a=n.current;if(a)return i2(a)},[]),me.jsx(OE,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Mr(e.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:Mr(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&a.preventDefault()}),onFocusOutside:Mr(e.onFocusOutside,a=>a.preventDefault())})}),v2=i.forwardRef((e,t)=>{const r=Lt(qr,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return me.jsx(OE,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(n.current||r.triggerRef.current?.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=a.target;r.triggerRef.current?.contains(c)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),OE=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,s=Lt(qr,r),m=i.useRef(null),l=vn(t,m);return xL(),me.jsxs(me.Fragment,{children:[me.jsx(gE,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:me.jsx(mE,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Cm(s.open),...c,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),me.jsxs(me.Fragment,{children:[me.jsx(b2,{titleId:s.titleId}),me.jsx(x2,{contentRef:m,descriptionId:s.descriptionId})]})]})}),Rm="DialogTitle",g2=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Lt(Rm,r);return me.jsx(ir.h2,{id:o.titleId,...n,ref:t})});g2.displayName=Rm;var PE="DialogDescription",h2=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Lt(PE,r);return me.jsx(ir.p,{id:o.descriptionId,...n,ref:t})});h2.displayName=PE;var _E="DialogClose",y2=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Lt(_E,r);return me.jsx(ir.button,{type:"button",...n,ref:t,onClick:Mr(e.onClick,()=>o.onOpenChange(!1))})});y2.displayName=_E;function Cm(e){return e?"open":"closed"}var ME="DialogTitleWarning",[Woe,AE]=qF(ME,{contentName:qr,titleName:Rm,docsSlug:"dialog"}),b2=({titleId:e})=>{const t=AE(ME),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
281
|
-
|
282
|
-
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
283
|
-
|
284
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},w2="DialogDescriptionWarning",x2=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${AE(w2).contentName}}.`;return i.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Kl={exports:{}},na={};/**
|
285
|
-
* @license React
|
286
|
-
* react-jsx-runtime.production.js
|
287
|
-
*
|
288
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
289
|
-
*
|
290
|
-
* This source code is licensed under the MIT license found in the
|
291
|
-
* LICENSE file in the root directory of this source tree.
|
292
|
-
*/var zg;function E2(){if(zg)return na;zg=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var c=null;if(a!==void 0&&(c=""+a),o.key!==void 0&&(c=""+o.key),"key"in o){a={};for(var s in o)s!=="key"&&(a[s]=o[s])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:c,ref:o!==void 0?o:null,props:a}}return na.Fragment=t,na.jsx=r,na.jsxs=r,na}var _s={};/**
|
293
|
-
* @license React
|
294
|
-
* react-jsx-runtime.development.js
|
295
|
-
*
|
296
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
297
|
-
*
|
298
|
-
* This source code is licensed under the MIT license found in the
|
299
|
-
* LICENSE file in the root directory of this source tree.
|
300
|
-
*/var $g;function S2(){return $g||($g=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(f==null)return null;if(typeof f=="function")return f.$$typeof===L?null:f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case d:return"Fragment";case y:return"Profiler";case g:return"StrictMode";case C:return"Suspense";case T:return"SuspenseList";case P:return"Activity"}if(typeof f=="object")switch(typeof f.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),f.$$typeof){case x:return"Portal";case w:return(f.displayName||"Context")+".Provider";case b:return(f._context.displayName||"Context")+".Consumer";case E:var S=f.render;return f=f.displayName,f||(f=S.displayName||S.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case R:return S=f.displayName||null,S!==null?S:e(f.type)||"Memo";case N:S=f._payload,f=f._init;try{return e(f(S))}catch{}}return null}function t(f){return""+f}function r(f){try{t(f);var S=!1}catch{S=!0}if(S){S=console;var k=S.error,D=typeof Symbol=="function"&&Symbol.toStringTag&&f[Symbol.toStringTag]||f.constructor.name||"Object";return k.call(S,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",D),t(f)}}function n(f){if(f===d)return"<>";if(typeof f=="object"&&f!==null&&f.$$typeof===N)return"<...>";try{var S=e(f);return S?"<"+S+">":"<...>"}catch{return"<...>"}}function o(){var f=I.A;return f===null?null:f.getOwner()}function a(){return Error("react-stack-top-frame")}function c(f){if(B.call(f,"key")){var S=Object.getOwnPropertyDescriptor(f,"key").get;if(S&&S.isReactWarning)return!1}return f.key!==void 0}function s(f,S){function k(){_||(_=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",S))}k.isReactWarning=!0,Object.defineProperty(f,"key",{get:k,configurable:!0})}function m(){var f=e(this.type);return Y[f]||(Y[f]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),f=this.props.ref,f!==void 0?f:null}function l(f,S,k,D,F,A,G,X){return k=A.ref,f={$$typeof:h,type:f,key:S,props:A,_owner:F},(k!==void 0?k:null)!==null?Object.defineProperty(f,"ref",{enumerable:!1,get:m}):Object.defineProperty(f,"ref",{enumerable:!1,value:null}),f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(f,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(f,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:G}),Object.defineProperty(f,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:X}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f}function u(f,S,k,D,F,A,G,X){var O=S.children;if(O!==void 0)if(D)if(K(O)){for(D=0;D<O.length;D++)p(O[D]);Object.freeze&&Object.freeze(O)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else p(O);if(B.call(S,"key")){O=e(f);var z=Object.keys(S).filter(function(ce){return ce!=="key"});D=0<z.length?"{key: someKey, "+z.join(": ..., ")+": ...}":"{key: someKey}",V[O+D]||(z=0<z.length?"{"+z.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
301
|
-
let props = %s;
|
302
|
-
<%s {...props} />
|
303
|
-
React keys must be passed directly to JSX without using spread:
|
304
|
-
let props = %s;
|
305
|
-
<%s key={someKey} {...props} />`,D,O,z,O),V[O+D]=!0)}if(O=null,k!==void 0&&(r(k),O=""+k),c(S)&&(r(S.key),O=""+S.key),"key"in S){k={};for(var q in S)q!=="key"&&(k[q]=S[q])}else k=S;return O&&s(k,typeof f=="function"?f.displayName||f.name||"Unknown":f),l(f,O,A,F,o(),k,G,X)}function p(f){typeof f=="object"&&f!==null&&f.$$typeof===h&&f._store&&(f._store.validated=1)}var v=M,h=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),b=Symbol.for("react.consumer"),w=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),P=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),I=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,K=Array.isArray,$=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(f){return f()}};var _,Y={},H=v.react_stack_bottom_frame.bind(v,a)(),U=$(n(a)),V={};_s.Fragment=d,_s.jsx=function(f,S,k,D,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,S,k,!1,D,F,A?Error("react-stack-top-frame"):H,A?$(n(f)):U)},_s.jsxs=function(f,S,k,D,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,S,k,!0,D,F,A?Error("react-stack-top-frame"):H,A?$(n(f)):U)}})()),_s}var Yg;function R2(){return Yg||(Yg=1,process.env.NODE_ENV==="production"?Kl.exports=E2():Kl.exports=S2()),Kl.exports}var ve=R2();M.createContext({locale:void 0});ie.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});ie.cva("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function Ar(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}function Ug(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function C2(...e){return t=>{let r=!1;const n=e.map(o=>{const a=Ug(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():Ug(e[o],null)}}}}function gn(...e){return i.useCallback(C2(...e),e)}function N2(e,t){const r=i.createContext(t),n=a=>{const{children:c,...s}=a,m=i.useMemo(()=>s,Object.values(s));return ve.jsx(r.Provider,{value:m,children:c})};n.displayName=e+"Provider";function o(a){const c=i.useContext(r);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function k2(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),m=r.length;r=[...r,c];const l=p=>{const{scope:v,children:h,...x}=p,d=v?.[e]?.[m]||s,g=i.useMemo(()=>x,Object.values(x));return ve.jsx(d.Provider,{value:g,children:h})};l.displayName=a+"Provider";function u(p,v){const h=v?.[e]?.[m]||s,x=i.useContext(h);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[l,u]}const o=()=>{const a=r.map(c=>i.createContext(c));return function(c){const s=c?.[e]||a;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:s}}),[c,s])}};return o.scopeName=e,[n,j2(o,...t)]}function j2(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){const a=n.reduce((c,{useScope:s,scopeName:m})=>{const l=s(o)[`__scope${m}`];return{...c,...l}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var up=globalThis?.document?i.useLayoutEffect:()=>{},T2=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],cr=T2.reduce((e,t)=>{const r=Z.createSlot(`Primitive.${t}`),n=i.forwardRef((o,a)=>{const{asChild:c,...s}=o,m=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),ve.jsx(m,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function D2(e,t){e&&Ee.flushSync(()=>e.dispatchEvent(t))}function ka(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>t.current?.(...r),[])}function O2(e,t=globalThis?.document){const r=ka(e);i.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var P2="DismissableLayer",lp="dismissableLayer.update",_2="dismissableLayer.pointerDownOutside",M2="dismissableLayer.focusOutside",Bg,IE=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),FE=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...m}=e,l=i.useContext(IE),[u,p]=i.useState(null),v=u?.ownerDocument??globalThis?.document,[,h]=i.useState({}),x=gn(t,R=>p(R)),d=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),y=d.indexOf(g),b=u?d.indexOf(u):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,E=b>=y,C=F2(R=>{const N=R.target,P=[...l.branches].some(L=>L.contains(N));!E||P||(o?.(R),c?.(R),R.defaultPrevented||s?.())},v),T=L2(R=>{const N=R.target;[...l.branches].some(P=>P.contains(N))||(a?.(R),c?.(R),R.defaultPrevented||s?.())},v);return O2(R=>{b===l.layers.size-1&&(n?.(R),!R.defaultPrevented&&s&&(R.preventDefault(),s()))},v),i.useEffect(()=>{if(u)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Bg=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),Kg(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Bg)}},[u,v,r,l]),i.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),Kg())},[u,l]),i.useEffect(()=>{const R=()=>h({});return document.addEventListener(lp,R),()=>document.removeEventListener(lp,R)},[]),ve.jsx(cr.div,{...m,ref:x,style:{pointerEvents:w?E?"auto":"none":void 0,...e.style},onFocusCapture:Ar(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Ar(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Ar(e.onPointerDownCapture,C.onPointerDownCapture)})});FE.displayName=P2;var A2="DismissableLayerBranch",I2=i.forwardRef((e,t)=>{const r=i.useContext(IE),n=i.useRef(null),o=gn(t,n);return i.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),ve.jsx(cr.div,{...e,ref:o})});I2.displayName=A2;function F2(e,t=globalThis?.document){const r=ka(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let m=function(){LE(_2,r,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=m,t.addEventListener("click",o.current,{once:!0})):m()}else t.removeEventListener("click",o.current);n.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function L2(e,t=globalThis?.document){const r=ka(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&LE(M2,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Kg(){const e=new CustomEvent(lp);document.dispatchEvent(e)}function LE(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?D2(o,a):o.dispatchEvent(a)}var Hl="focusScope.autoFocusOnMount",Xl="focusScope.autoFocusOnUnmount",Hg={bubbles:!1,cancelable:!0},W2="FocusScope",WE=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,m]=i.useState(null),l=ka(o),u=ka(a),p=i.useRef(null),v=gn(t,d=>m(d)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let d=function(w){if(h.paused||!s)return;const E=w.target;s.contains(E)?p.current=E:yr(p.current,{select:!0})},g=function(w){if(h.paused||!s)return;const E=w.relatedTarget;E!==null&&(s.contains(E)||yr(p.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const E of w)E.removedNodes.length>0&&yr(s)};document.addEventListener("focusin",d),document.addEventListener("focusout",g);const b=new MutationObserver(y);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",d),document.removeEventListener("focusout",g),b.disconnect()}}},[n,s,h.paused]),i.useEffect(()=>{if(s){Vg.add(h);const d=document.activeElement;if(!s.contains(d)){const g=new CustomEvent(Hl,Hg);s.addEventListener(Hl,l),s.dispatchEvent(g),g.defaultPrevented||(z2(K2(zE(s)),{select:!0}),document.activeElement===d&&yr(s))}return()=>{s.removeEventListener(Hl,l),setTimeout(()=>{const g=new CustomEvent(Xl,Hg);s.addEventListener(Xl,u),s.dispatchEvent(g),g.defaultPrevented||yr(d??document.body,{select:!0}),s.removeEventListener(Xl,u),Vg.remove(h)},0)}}},[s,l,u,h]);const x=i.useCallback(d=>{if(!r&&!n||h.paused)return;const g=d.key==="Tab"&&!d.altKey&&!d.ctrlKey&&!d.metaKey,y=document.activeElement;if(g&&y){const b=d.currentTarget,[w,E]=$2(b);w&&E?!d.shiftKey&&y===E?(d.preventDefault(),r&&yr(w,{select:!0})):d.shiftKey&&y===w&&(d.preventDefault(),r&&yr(E,{select:!0})):y===b&&d.preventDefault()}},[r,n,h.paused]);return ve.jsx(cr.div,{tabIndex:-1,...c,ref:v,onKeyDown:x})});WE.displayName=W2;function z2(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(yr(n,{select:t}),document.activeElement!==r)return}function $2(e){const t=zE(e),r=Xg(t,e),n=Xg(t.reverse(),e);return[r,n]}function zE(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Xg(e,t){for(const r of e)if(!Y2(r,{upTo:t}))return r}function Y2(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function U2(e){return e instanceof HTMLInputElement&&"select"in e}function yr(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&U2(e)&&t&&e.select()}}var Vg=B2();function B2(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=Gg(e,t),e.unshift(t)},remove(t){e=Gg(e,t),e[0]?.resume()}}}function Gg(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function K2(e){return e.filter(t=>t.tagName!=="A")}var H2="Portal",X2=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);up(()=>a(!0),[]);const c=r||o&&globalThis?.document?.body;return c?xe.createPortal(ve.jsx(cr.div,{...n,ref:t}),c):null});X2.displayName=H2;function V2(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var Nm=e=>{const{present:t,children:r}=e,n=G2(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=gn(n.ref,q2(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};Nm.displayName="Presence";function G2(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,m]=V2(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const l=Ms(n.current);a.current=s==="mounted"?l:"none"},[s]),up(()=>{const l=n.current,u=o.current;if(u!==e){const p=a.current,v=Ms(l);e?m("MOUNT"):v==="none"||l?.display==="none"?m("UNMOUNT"):m(u&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,m]),up(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,p=h=>{const x=Ms(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&x&&(m("ANIMATION_END"),!o.current)){const d=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=d)})}},v=h=>{h.target===t&&(a.current=Ms(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else m("ANIMATION_END")},[t,m]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:i.useCallback(l=>{n.current=l?getComputedStyle(l):null,r(l)},[])}}function Ms(e){return e?.animationName||"none"}function q2(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Vl=0;function Z2(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??qg()),document.body.insertAdjacentElement("beforeend",e[1]??qg()),Vl++,()=>{Vl===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Vl--}},[])}function qg(){const e=document.createElement("span");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}var ut=function(){return ut=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},ut.apply(this,arguments)};function $E(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function J2(e,t,r){for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var uc="right-scroll-bar-position",lc="width-before-scroll-bar",Q2="with-scroll-bars-hidden",e5="--removed-body-scroll-bar-size";function Gl(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function t5(e,t){var r=M.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var r5=typeof window<"u"?i.useLayoutEffect:i.useEffect,Zg=new WeakMap;function n5(e,t){var r=t5(null,function(n){return e.forEach(function(o){return Gl(o,n)})});return r5(function(){var n=Zg.get(r);if(n){var o=new Set(n),a=new Set(e),c=r.current;o.forEach(function(s){a.has(s)||Gl(s,null)}),a.forEach(function(s){o.has(s)||Gl(s,c)})}Zg.set(r,e)},[e]),r}function o5(e){return e}function a5(e,t){t===void 0&&(t=o5);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var c=t(a,n);return r.push(c),function(){r=r.filter(function(s){return s!==c})}},assignSyncMedium:function(a){for(n=!0;r.length;){var c=r;r=[],c.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var c=[];if(r.length){var s=r;r=[],s.forEach(a),c=r}var m=function(){var u=c;c=[],u.forEach(a)},l=function(){return Promise.resolve().then(m)};l(),r={push:function(u){c.push(u),l()},filter:function(u){return c=c.filter(u),r}}}};return o}function s5(e){e===void 0&&(e={});var t=a5(null);return t.options=ut({async:!0,ssr:!1},e),t}var YE=function(e){var t=e.sideCar,r=$E(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return i.createElement(n,ut({},r))};YE.isSideCarExport=!0;function i5(e,t){return e.useMedium(t),YE}var UE=s5(),ql=function(){},gu=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:ql,onWheelCapture:ql,onTouchMoveCapture:ql}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,m=e.className,l=e.removeScrollBar,u=e.enabled,p=e.shards,v=e.sideCar,h=e.noRelative,x=e.noIsolation,d=e.inert,g=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,w=e.gapMode,E=$E(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=v,T=n5([r,t]),R=ut(ut({},E),o);return i.createElement(i.Fragment,null,u&&i.createElement(C,{sideCar:UE,removeScrollBar:l,shards:p,noRelative:h,noIsolation:x,inert:d,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),ut(ut({},R),{ref:T})):i.createElement(b,ut({},R,{className:m,ref:T}),s))});gu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};gu.classNames={fullWidth:lc,zeroRight:uc};var c5=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function u5(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=c5();return t&&e.setAttribute("nonce",t),e}function l5(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function d5(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var f5=function(){var e=0,t=null;return{add:function(r){e==0&&(t=u5())&&(l5(t,r),d5(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},p5=function(){var e=f5();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},BE=function(){var e=p5(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},m5={left:0,top:0,right:0,gap:0},Zl=function(e){return parseInt(e||"",10)||0},v5=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Zl(r),Zl(n),Zl(o)]},g5=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return m5;var t=v5(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},h5=BE(),Ro="data-scroll-locked",y5=function(e,t,r,n){var o=e.left,a=e.top,c=e.right,s=e.gap;return r===void 0&&(r="margin"),`
|
306
|
-
.`.concat(Q2,` {
|
307
|
-
overflow: hidden `).concat(n,`;
|
308
|
-
padding-right: `).concat(s,"px ").concat(n,`;
|
309
|
-
}
|
310
|
-
body[`).concat(Ro,`] {
|
311
|
-
overflow: hidden `).concat(n,`;
|
312
|
-
overscroll-behavior: contain;
|
313
|
-
`).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
|
314
|
-
padding-left: `.concat(o,`px;
|
315
|
-
padding-top: `).concat(a,`px;
|
316
|
-
padding-right: `).concat(c,`px;
|
317
|
-
margin-left:0;
|
318
|
-
margin-top:0;
|
319
|
-
margin-right: `).concat(s,"px ").concat(n,`;
|
320
|
-
`),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
|
321
|
-
}
|
322
|
-
|
323
|
-
.`).concat(uc,` {
|
324
|
-
right: `).concat(s,"px ").concat(n,`;
|
325
|
-
}
|
326
|
-
|
327
|
-
.`).concat(lc,` {
|
328
|
-
margin-right: `).concat(s,"px ").concat(n,`;
|
329
|
-
}
|
330
|
-
|
331
|
-
.`).concat(uc," .").concat(uc,` {
|
332
|
-
right: 0 `).concat(n,`;
|
333
|
-
}
|
334
|
-
|
335
|
-
.`).concat(lc," .").concat(lc,` {
|
336
|
-
margin-right: 0 `).concat(n,`;
|
337
|
-
}
|
338
|
-
|
339
|
-
body[`).concat(Ro,`] {
|
340
|
-
`).concat(e5,": ").concat(s,`px;
|
341
|
-
}
|
342
|
-
`)},Jg=function(){var e=parseInt(document.body.getAttribute(Ro)||"0",10);return isFinite(e)?e:0},b5=function(){i.useEffect(function(){return document.body.setAttribute(Ro,(Jg()+1).toString()),function(){var e=Jg()-1;e<=0?document.body.removeAttribute(Ro):document.body.setAttribute(Ro,e.toString())}},[])},w5=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;b5();var a=i.useMemo(function(){return g5(o)},[o]);return i.createElement(h5,{styles:y5(a,!t,o,r?"":"!important")})},dp=!1;if(typeof window<"u")try{var As=Object.defineProperty({},"passive",{get:function(){return dp=!0,!0}});window.addEventListener("test",As,As),window.removeEventListener("test",As,As)}catch{dp=!1}var An=dp?{passive:!1}:!1,x5=function(e){return e.tagName==="TEXTAREA"},KE=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!x5(e)&&r[t]==="visible")},E5=function(e){return KE(e,"overflowY")},S5=function(e){return KE(e,"overflowX")},Qg=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=HE(e,n);if(o){var a=XE(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},R5=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},C5=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},HE=function(e,t){return e==="v"?E5(t):S5(t)},XE=function(e,t){return e==="v"?R5(t):C5(t)},N5=function(e,t){return e==="h"&&t==="rtl"?-1:1},k5=function(e,t,r,n,o){var a=N5(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,m=t.contains(s),l=!1,u=c>0,p=0,v=0;do{if(!s)break;var h=XE(e,s),x=h[0],d=h[1],g=h[2],y=d-g-a*x;(x||y)&&HE(e,s)&&(p+=y,v+=x);var b=s.parentNode;s=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!m&&s!==document.body||m&&(t.contains(s)||t===s));return(u&&Math.abs(p)<1||!u&&Math.abs(v)<1)&&(l=!0),l},Is=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},eh=function(e){return[e.deltaX,e.deltaY]},th=function(e){return e&&"current"in e?e.current:e},j5=function(e,t){return e[0]===t[0]&&e[1]===t[1]},T5=function(e){return`
|
343
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
344
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
345
|
-
`)},D5=0,In=[];function O5(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(D5++)[0],a=i.useState(BE)[0],c=i.useRef(e);i.useEffect(function(){c.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var d=J2([e.lockRef.current],(e.shards||[]).map(th)).filter(Boolean);return d.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),d.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(d,g){if("touches"in d&&d.touches.length===2||d.type==="wheel"&&d.ctrlKey)return!c.current.allowPinchZoom;var y=Is(d),b=r.current,w="deltaX"in d?d.deltaX:b[0]-y[0],E="deltaY"in d?d.deltaY:b[1]-y[1],C,T=d.target,R=Math.abs(w)>Math.abs(E)?"h":"v";if("touches"in d&&R==="h"&&T.type==="range")return!1;var N=Qg(R,T);if(!N)return!0;if(N?C=R:(C=R==="v"?"h":"v",N=Qg(R,T)),!N)return!1;if(!n.current&&"changedTouches"in d&&(w||E)&&(n.current=C),!C)return!0;var P=n.current||C;return k5(P,g,d,P==="h"?w:E)},[]),m=i.useCallback(function(d){var g=d;if(!(!In.length||In[In.length-1]!==a)){var y="deltaY"in g?eh(g):Is(g),b=t.current.filter(function(C){return C.name===g.type&&(C.target===g.target||g.target===C.shadowParent)&&j5(C.delta,y)})[0];if(b&&b.should){g.cancelable&&g.preventDefault();return}if(!b){var w=(c.current.shards||[]).map(th).filter(Boolean).filter(function(C){return C.contains(g.target)}),E=w.length>0?s(g,w[0]):!c.current.noIsolation;E&&g.cancelable&&g.preventDefault()}}},[]),l=i.useCallback(function(d,g,y,b){var w={name:d,delta:g,target:y,should:b,shadowParent:P5(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(E){return E!==w})},1)},[]),u=i.useCallback(function(d){r.current=Is(d),n.current=void 0},[]),p=i.useCallback(function(d){l(d.type,eh(d),d.target,s(d,e.lockRef.current))},[]),v=i.useCallback(function(d){l(d.type,Is(d),d.target,s(d,e.lockRef.current))},[]);i.useEffect(function(){return In.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",m,An),document.addEventListener("touchmove",m,An),document.addEventListener("touchstart",u,An),function(){In=In.filter(function(d){return d!==a}),document.removeEventListener("wheel",m,An),document.removeEventListener("touchmove",m,An),document.removeEventListener("touchstart",u,An)}},[]);var h=e.removeScrollBar,x=e.inert;return i.createElement(i.Fragment,null,x?i.createElement(a,{styles:T5(o)}):null,h?i.createElement(w5,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function P5(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const _5=i5(UE,O5);var VE=i.forwardRef(function(e,t){return i.createElement(gu,ut({},e,{ref:t,sideCar:_5}))});VE.classNames=gu.classNames;var M5=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Fn=new WeakMap,Fs=new WeakMap,Ls={},Jl=0,GE=function(e){return e&&(e.host||GE(e.parentNode))},A5=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=GE(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},I5=function(e,t,r,n){var o=A5(t,Array.isArray(e)?e:[e]);Ls[r]||(Ls[r]=new WeakMap);var a=Ls[r],c=[],s=new Set,m=new Set(o),l=function(p){!p||s.has(p)||(s.add(p),l(p.parentNode))};o.forEach(l);var u=function(p){!p||m.has(p)||Array.prototype.forEach.call(p.children,function(v){if(s.has(v))u(v);else try{var h=v.getAttribute(n),x=h!==null&&h!=="false",d=(Fn.get(v)||0)+1,g=(a.get(v)||0)+1;Fn.set(v,d),a.set(v,g),c.push(v),d===1&&x&&Fs.set(v,!0),g===1&&v.setAttribute(r,"true"),x||v.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",v,y)}})};return u(t),s.clear(),Jl++,function(){c.forEach(function(p){var v=Fn.get(p)-1,h=a.get(p)-1;Fn.set(p,v),a.set(p,h),v||(Fs.has(p)||p.removeAttribute(n),Fs.delete(p)),h||p.removeAttribute(r)}),Jl--,Jl||(Fn=new WeakMap,Fn=new WeakMap,Fs=new WeakMap,Ls={})}},F5=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=M5(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),I5(n,o,r,"aria-hidden")):function(){return null}},qE="Dialog",[ZE]=k2(qE),[zoe,Wt]=ZE(qE),JE="DialogTrigger",L5=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Wt(JE,r),a=gn(t,o.triggerRef);return ve.jsx(cr.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":jm(o.open),...n,ref:a,onClick:Ar(e.onClick,o.onOpenToggle)})});L5.displayName=JE;var W5="DialogPortal",[$oe,QE]=ZE(W5,{forceMount:void 0}),Kc="DialogOverlay",z5=i.forwardRef((e,t)=>{const r=QE(Kc,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Wt(Kc,e.__scopeDialog);return a.modal?ve.jsx(Nm,{present:n||a.open,children:ve.jsx(Y5,{...o,ref:t})}):null});z5.displayName=Kc;var $5=Z.createSlot("DialogOverlay.RemoveScroll"),Y5=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Wt(Kc,r);return ve.jsx(VE,{as:$5,allowPinchZoom:!0,shards:[o.contentRef],children:ve.jsx(cr.div,{"data-state":jm(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Zr="DialogContent",U5=i.forwardRef((e,t)=>{const r=QE(Zr,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Wt(Zr,e.__scopeDialog);return ve.jsx(Nm,{present:n||a.open,children:a.modal?ve.jsx(B5,{...o,ref:t}):ve.jsx(K5,{...o,ref:t})})});U5.displayName=Zr;var B5=i.forwardRef((e,t)=>{const r=Wt(Zr,e.__scopeDialog),n=i.useRef(null),o=gn(t,r.contentRef,n);return i.useEffect(()=>{const a=n.current;if(a)return F5(a)},[]),ve.jsx(eS,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ar(e.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:Ar(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&a.preventDefault()}),onFocusOutside:Ar(e.onFocusOutside,a=>a.preventDefault())})}),K5=i.forwardRef((e,t)=>{const r=Wt(Zr,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return ve.jsx(eS,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(n.current||r.triggerRef.current?.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=a.target;r.triggerRef.current?.contains(c)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),eS=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,s=Wt(Zr,r),m=i.useRef(null),l=gn(t,m);return Z2(),ve.jsxs(ve.Fragment,{children:[ve.jsx(WE,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:ve.jsx(FE,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":jm(s.open),...c,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),ve.jsxs(ve.Fragment,{children:[ve.jsx(G5,{titleId:s.titleId}),ve.jsx(Z5,{contentRef:m,descriptionId:s.descriptionId})]})]})}),km="DialogTitle",H5=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Wt(km,r);return ve.jsx(cr.h2,{id:o.titleId,...n,ref:t})});H5.displayName=km;var tS="DialogDescription",X5=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Wt(tS,r);return ve.jsx(cr.p,{id:o.descriptionId,...n,ref:t})});X5.displayName=tS;var rS="DialogClose",V5=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Wt(rS,r);return ve.jsx(cr.button,{type:"button",...n,ref:t,onClick:Ar(e.onClick,()=>o.onOpenChange(!1))})});V5.displayName=rS;function jm(e){return e?"open":"closed"}var nS="DialogTitleWarning",[Yoe,oS]=N2(nS,{contentName:Zr,titleName:km,docsSlug:"dialog"}),G5=({titleId:e})=>{const t=oS(nS),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
346
|
-
|
347
|
-
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
348
|
-
|
349
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},q5="DialogDescriptionWarning",Z5=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${oS(q5).contentName}}.`;return i.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Ql={exports:{}},oa={};/**
|
350
|
-
* @license React
|
351
|
-
* react-jsx-runtime.production.js
|
352
|
-
*
|
353
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
354
|
-
*
|
355
|
-
* This source code is licensed under the MIT license found in the
|
356
|
-
* LICENSE file in the root directory of this source tree.
|
357
|
-
*/var rh;function J5(){if(rh)return oa;rh=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var c=null;if(a!==void 0&&(c=""+a),o.key!==void 0&&(c=""+o.key),"key"in o){a={};for(var s in o)s!=="key"&&(a[s]=o[s])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:c,ref:o!==void 0?o:null,props:a}}return oa.Fragment=t,oa.jsx=r,oa.jsxs=r,oa}var Ws={};/**
|
358
|
-
* @license React
|
359
|
-
* react-jsx-runtime.development.js
|
360
|
-
*
|
361
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
362
|
-
*
|
363
|
-
* This source code is licensed under the MIT license found in the
|
364
|
-
* LICENSE file in the root directory of this source tree.
|
365
|
-
*/var nh;function Q5(){return nh||(nh=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(f==null)return null;if(typeof f=="function")return f.$$typeof===L?null:f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case d:return"Fragment";case y:return"Profiler";case g:return"StrictMode";case C:return"Suspense";case T:return"SuspenseList";case P:return"Activity"}if(typeof f=="object")switch(typeof f.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),f.$$typeof){case x:return"Portal";case w:return(f.displayName||"Context")+".Provider";case b:return(f._context.displayName||"Context")+".Consumer";case E:var S=f.render;return f=f.displayName,f||(f=S.displayName||S.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case R:return S=f.displayName||null,S!==null?S:e(f.type)||"Memo";case N:S=f._payload,f=f._init;try{return e(f(S))}catch{}}return null}function t(f){return""+f}function r(f){try{t(f);var S=!1}catch{S=!0}if(S){S=console;var k=S.error,D=typeof Symbol=="function"&&Symbol.toStringTag&&f[Symbol.toStringTag]||f.constructor.name||"Object";return k.call(S,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",D),t(f)}}function n(f){if(f===d)return"<>";if(typeof f=="object"&&f!==null&&f.$$typeof===N)return"<...>";try{var S=e(f);return S?"<"+S+">":"<...>"}catch{return"<...>"}}function o(){var f=I.A;return f===null?null:f.getOwner()}function a(){return Error("react-stack-top-frame")}function c(f){if(B.call(f,"key")){var S=Object.getOwnPropertyDescriptor(f,"key").get;if(S&&S.isReactWarning)return!1}return f.key!==void 0}function s(f,S){function k(){_||(_=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",S))}k.isReactWarning=!0,Object.defineProperty(f,"key",{get:k,configurable:!0})}function m(){var f=e(this.type);return Y[f]||(Y[f]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),f=this.props.ref,f!==void 0?f:null}function l(f,S,k,D,F,A,G,X){return k=A.ref,f={$$typeof:h,type:f,key:S,props:A,_owner:F},(k!==void 0?k:null)!==null?Object.defineProperty(f,"ref",{enumerable:!1,get:m}):Object.defineProperty(f,"ref",{enumerable:!1,value:null}),f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(f,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(f,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:G}),Object.defineProperty(f,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:X}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f}function u(f,S,k,D,F,A,G,X){var O=S.children;if(O!==void 0)if(D)if(K(O)){for(D=0;D<O.length;D++)p(O[D]);Object.freeze&&Object.freeze(O)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else p(O);if(B.call(S,"key")){O=e(f);var z=Object.keys(S).filter(function(ce){return ce!=="key"});D=0<z.length?"{key: someKey, "+z.join(": ..., ")+": ...}":"{key: someKey}",V[O+D]||(z=0<z.length?"{"+z.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
366
|
-
let props = %s;
|
367
|
-
<%s {...props} />
|
368
|
-
React keys must be passed directly to JSX without using spread:
|
369
|
-
let props = %s;
|
370
|
-
<%s key={someKey} {...props} />`,D,O,z,O),V[O+D]=!0)}if(O=null,k!==void 0&&(r(k),O=""+k),c(S)&&(r(S.key),O=""+S.key),"key"in S){k={};for(var q in S)q!=="key"&&(k[q]=S[q])}else k=S;return O&&s(k,typeof f=="function"?f.displayName||f.name||"Unknown":f),l(f,O,A,F,o(),k,G,X)}function p(f){typeof f=="object"&&f!==null&&f.$$typeof===h&&f._store&&(f._store.validated=1)}var v=M,h=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),b=Symbol.for("react.consumer"),w=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),P=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),I=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,K=Array.isArray,$=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(f){return f()}};var _,Y={},H=v.react_stack_bottom_frame.bind(v,a)(),U=$(n(a)),V={};Ws.Fragment=d,Ws.jsx=function(f,S,k,D,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,S,k,!1,D,F,A?Error("react-stack-top-frame"):H,A?$(n(f)):U)},Ws.jsxs=function(f,S,k,D,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,S,k,!0,D,F,A?Error("react-stack-top-frame"):H,A?$(n(f)):U)}})()),Ws}var oh;function eW(){return oh||(oh=1,process.env.NODE_ENV==="production"?Ql.exports=J5():Ql.exports=Q5()),Ql.exports}var ge=eW();M.createContext({locale:void 0});ie.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});ie.cva("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function Ir(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}function ah(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function tW(...e){return t=>{let r=!1;const n=e.map(o=>{const a=ah(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():ah(e[o],null)}}}}function hn(...e){return i.useCallback(tW(...e),e)}function rW(e,t){const r=i.createContext(t),n=a=>{const{children:c,...s}=a,m=i.useMemo(()=>s,Object.values(s));return ge.jsx(r.Provider,{value:m,children:c})};n.displayName=e+"Provider";function o(a){const c=i.useContext(r);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function nW(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),m=r.length;r=[...r,c];const l=p=>{const{scope:v,children:h,...x}=p,d=v?.[e]?.[m]||s,g=i.useMemo(()=>x,Object.values(x));return ge.jsx(d.Provider,{value:g,children:h})};l.displayName=a+"Provider";function u(p,v){const h=v?.[e]?.[m]||s,x=i.useContext(h);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[l,u]}const o=()=>{const a=r.map(c=>i.createContext(c));return function(c){const s=c?.[e]||a;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:s}}),[c,s])}};return o.scopeName=e,[n,oW(o,...t)]}function oW(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){const a=n.reduce((c,{useScope:s,scopeName:m})=>{const l=s(o)[`__scope${m}`];return{...c,...l}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var fp=globalThis?.document?i.useLayoutEffect:()=>{},aW=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ur=aW.reduce((e,t)=>{const r=Z.createSlot(`Primitive.${t}`),n=i.forwardRef((o,a)=>{const{asChild:c,...s}=o,m=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),ge.jsx(m,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function sW(e,t){e&&Ee.flushSync(()=>e.dispatchEvent(t))}function ja(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>t.current?.(...r),[])}function iW(e,t=globalThis?.document){const r=ja(e);i.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var cW="DismissableLayer",pp="dismissableLayer.update",uW="dismissableLayer.pointerDownOutside",lW="dismissableLayer.focusOutside",sh,aS=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),sS=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...m}=e,l=i.useContext(aS),[u,p]=i.useState(null),v=u?.ownerDocument??globalThis?.document,[,h]=i.useState({}),x=hn(t,R=>p(R)),d=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),y=d.indexOf(g),b=u?d.indexOf(u):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,E=b>=y,C=pW(R=>{const N=R.target,P=[...l.branches].some(L=>L.contains(N));!E||P||(o?.(R),c?.(R),R.defaultPrevented||s?.())},v),T=mW(R=>{const N=R.target;[...l.branches].some(P=>P.contains(N))||(a?.(R),c?.(R),R.defaultPrevented||s?.())},v);return iW(R=>{b===l.layers.size-1&&(n?.(R),!R.defaultPrevented&&s&&(R.preventDefault(),s()))},v),i.useEffect(()=>{if(u)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(sh=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),ih(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=sh)}},[u,v,r,l]),i.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),ih())},[u,l]),i.useEffect(()=>{const R=()=>h({});return document.addEventListener(pp,R),()=>document.removeEventListener(pp,R)},[]),ge.jsx(ur.div,{...m,ref:x,style:{pointerEvents:w?E?"auto":"none":void 0,...e.style},onFocusCapture:Ir(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Ir(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Ir(e.onPointerDownCapture,C.onPointerDownCapture)})});sS.displayName=cW;var dW="DismissableLayerBranch",fW=i.forwardRef((e,t)=>{const r=i.useContext(aS),n=i.useRef(null),o=hn(t,n);return i.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),ge.jsx(ur.div,{...e,ref:o})});fW.displayName=dW;function pW(e,t=globalThis?.document){const r=ja(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let m=function(){iS(uW,r,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=m,t.addEventListener("click",o.current,{once:!0})):m()}else t.removeEventListener("click",o.current);n.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function mW(e,t=globalThis?.document){const r=ja(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&iS(lW,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function ih(){const e=new CustomEvent(pp);document.dispatchEvent(e)}function iS(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?sW(o,a):o.dispatchEvent(a)}var ed="focusScope.autoFocusOnMount",td="focusScope.autoFocusOnUnmount",ch={bubbles:!1,cancelable:!0},vW="FocusScope",cS=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,m]=i.useState(null),l=ja(o),u=ja(a),p=i.useRef(null),v=hn(t,d=>m(d)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let d=function(w){if(h.paused||!s)return;const E=w.target;s.contains(E)?p.current=E:br(p.current,{select:!0})},g=function(w){if(h.paused||!s)return;const E=w.relatedTarget;E!==null&&(s.contains(E)||br(p.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const E of w)E.removedNodes.length>0&&br(s)};document.addEventListener("focusin",d),document.addEventListener("focusout",g);const b=new MutationObserver(y);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",d),document.removeEventListener("focusout",g),b.disconnect()}}},[n,s,h.paused]),i.useEffect(()=>{if(s){lh.add(h);const d=document.activeElement;if(!s.contains(d)){const g=new CustomEvent(ed,ch);s.addEventListener(ed,l),s.dispatchEvent(g),g.defaultPrevented||(gW(xW(uS(s)),{select:!0}),document.activeElement===d&&br(s))}return()=>{s.removeEventListener(ed,l),setTimeout(()=>{const g=new CustomEvent(td,ch);s.addEventListener(td,u),s.dispatchEvent(g),g.defaultPrevented||br(d??document.body,{select:!0}),s.removeEventListener(td,u),lh.remove(h)},0)}}},[s,l,u,h]);const x=i.useCallback(d=>{if(!r&&!n||h.paused)return;const g=d.key==="Tab"&&!d.altKey&&!d.ctrlKey&&!d.metaKey,y=document.activeElement;if(g&&y){const b=d.currentTarget,[w,E]=hW(b);w&&E?!d.shiftKey&&y===E?(d.preventDefault(),r&&br(w,{select:!0})):d.shiftKey&&y===w&&(d.preventDefault(),r&&br(E,{select:!0})):y===b&&d.preventDefault()}},[r,n,h.paused]);return ge.jsx(ur.div,{tabIndex:-1,...c,ref:v,onKeyDown:x})});cS.displayName=vW;function gW(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(br(n,{select:t}),document.activeElement!==r)return}function hW(e){const t=uS(e),r=uh(t,e),n=uh(t.reverse(),e);return[r,n]}function uS(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function uh(e,t){for(const r of e)if(!yW(r,{upTo:t}))return r}function yW(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function bW(e){return e instanceof HTMLInputElement&&"select"in e}function br(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&bW(e)&&t&&e.select()}}var lh=wW();function wW(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=dh(e,t),e.unshift(t)},remove(t){e=dh(e,t),e[0]?.resume()}}}function dh(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function xW(e){return e.filter(t=>t.tagName!=="A")}var EW="Portal",SW=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);fp(()=>a(!0),[]);const c=r||o&&globalThis?.document?.body;return c?xe.createPortal(ge.jsx(ur.div,{...n,ref:t}),c):null});SW.displayName=EW;function RW(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var Tm=e=>{const{present:t,children:r}=e,n=CW(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=hn(n.ref,NW(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};Tm.displayName="Presence";function CW(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,m]=RW(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const l=zs(n.current);a.current=s==="mounted"?l:"none"},[s]),fp(()=>{const l=n.current,u=o.current;if(u!==e){const p=a.current,v=zs(l);e?m("MOUNT"):v==="none"||l?.display==="none"?m("UNMOUNT"):m(u&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,m]),fp(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,p=h=>{const x=zs(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&x&&(m("ANIMATION_END"),!o.current)){const d=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=d)})}},v=h=>{h.target===t&&(a.current=zs(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else m("ANIMATION_END")},[t,m]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:i.useCallback(l=>{n.current=l?getComputedStyle(l):null,r(l)},[])}}function zs(e){return e?.animationName||"none"}function NW(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var rd=0;function kW(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??fh()),document.body.insertAdjacentElement("beforeend",e[1]??fh()),rd++,()=>{rd===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),rd--}},[])}function fh(){const e=document.createElement("span");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}var lt=function(){return lt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},lt.apply(this,arguments)};function lS(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function jW(e,t,r){for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var dc="right-scroll-bar-position",fc="width-before-scroll-bar",TW="with-scroll-bars-hidden",DW="--removed-body-scroll-bar-size";function nd(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function OW(e,t){var r=M.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var PW=typeof window<"u"?i.useLayoutEffect:i.useEffect,ph=new WeakMap;function _W(e,t){var r=OW(null,function(n){return e.forEach(function(o){return nd(o,n)})});return PW(function(){var n=ph.get(r);if(n){var o=new Set(n),a=new Set(e),c=r.current;o.forEach(function(s){a.has(s)||nd(s,null)}),a.forEach(function(s){o.has(s)||nd(s,c)})}ph.set(r,e)},[e]),r}function MW(e){return e}function AW(e,t){t===void 0&&(t=MW);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var c=t(a,n);return r.push(c),function(){r=r.filter(function(s){return s!==c})}},assignSyncMedium:function(a){for(n=!0;r.length;){var c=r;r=[],c.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var c=[];if(r.length){var s=r;r=[],s.forEach(a),c=r}var m=function(){var u=c;c=[],u.forEach(a)},l=function(){return Promise.resolve().then(m)};l(),r={push:function(u){c.push(u),l()},filter:function(u){return c=c.filter(u),r}}}};return o}function IW(e){e===void 0&&(e={});var t=AW(null);return t.options=lt({async:!0,ssr:!1},e),t}var dS=function(e){var t=e.sideCar,r=lS(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return i.createElement(n,lt({},r))};dS.isSideCarExport=!0;function FW(e,t){return e.useMedium(t),dS}var fS=IW(),od=function(){},hu=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:od,onWheelCapture:od,onTouchMoveCapture:od}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,m=e.className,l=e.removeScrollBar,u=e.enabled,p=e.shards,v=e.sideCar,h=e.noRelative,x=e.noIsolation,d=e.inert,g=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,w=e.gapMode,E=lS(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=v,T=_W([r,t]),R=lt(lt({},E),o);return i.createElement(i.Fragment,null,u&&i.createElement(C,{sideCar:fS,removeScrollBar:l,shards:p,noRelative:h,noIsolation:x,inert:d,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),lt(lt({},R),{ref:T})):i.createElement(b,lt({},R,{className:m,ref:T}),s))});hu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};hu.classNames={fullWidth:fc,zeroRight:dc};var LW=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function WW(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=LW();return t&&e.setAttribute("nonce",t),e}function zW(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function $W(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var YW=function(){var e=0,t=null;return{add:function(r){e==0&&(t=WW())&&(zW(t,r),$W(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},UW=function(){var e=YW();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},pS=function(){var e=UW(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},BW={left:0,top:0,right:0,gap:0},ad=function(e){return parseInt(e||"",10)||0},KW=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[ad(r),ad(n),ad(o)]},HW=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return BW;var t=KW(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},XW=pS(),Co="data-scroll-locked",VW=function(e,t,r,n){var o=e.left,a=e.top,c=e.right,s=e.gap;return r===void 0&&(r="margin"),`
|
371
|
-
.`.concat(TW,` {
|
372
|
-
overflow: hidden `).concat(n,`;
|
373
|
-
padding-right: `).concat(s,"px ").concat(n,`;
|
374
|
-
}
|
375
|
-
body[`).concat(Co,`] {
|
376
|
-
overflow: hidden `).concat(n,`;
|
377
|
-
overscroll-behavior: contain;
|
378
|
-
`).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
|
379
|
-
padding-left: `.concat(o,`px;
|
380
|
-
padding-top: `).concat(a,`px;
|
381
|
-
padding-right: `).concat(c,`px;
|
382
|
-
margin-left:0;
|
383
|
-
margin-top:0;
|
384
|
-
margin-right: `).concat(s,"px ").concat(n,`;
|
385
|
-
`),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
|
386
|
-
}
|
387
|
-
|
388
|
-
.`).concat(dc,` {
|
389
|
-
right: `).concat(s,"px ").concat(n,`;
|
390
|
-
}
|
391
|
-
|
392
|
-
.`).concat(fc,` {
|
393
|
-
margin-right: `).concat(s,"px ").concat(n,`;
|
394
|
-
}
|
395
|
-
|
396
|
-
.`).concat(dc," .").concat(dc,` {
|
397
|
-
right: 0 `).concat(n,`;
|
398
|
-
}
|
399
|
-
|
400
|
-
.`).concat(fc," .").concat(fc,` {
|
401
|
-
margin-right: 0 `).concat(n,`;
|
402
|
-
}
|
403
|
-
|
404
|
-
body[`).concat(Co,`] {
|
405
|
-
`).concat(DW,": ").concat(s,`px;
|
406
|
-
}
|
407
|
-
`)},mh=function(){var e=parseInt(document.body.getAttribute(Co)||"0",10);return isFinite(e)?e:0},GW=function(){i.useEffect(function(){return document.body.setAttribute(Co,(mh()+1).toString()),function(){var e=mh()-1;e<=0?document.body.removeAttribute(Co):document.body.setAttribute(Co,e.toString())}},[])},qW=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;GW();var a=i.useMemo(function(){return HW(o)},[o]);return i.createElement(XW,{styles:VW(a,!t,o,r?"":"!important")})},mp=!1;if(typeof window<"u")try{var $s=Object.defineProperty({},"passive",{get:function(){return mp=!0,!0}});window.addEventListener("test",$s,$s),window.removeEventListener("test",$s,$s)}catch{mp=!1}var Ln=mp?{passive:!1}:!1,ZW=function(e){return e.tagName==="TEXTAREA"},mS=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!ZW(e)&&r[t]==="visible")},JW=function(e){return mS(e,"overflowY")},QW=function(e){return mS(e,"overflowX")},vh=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=vS(e,n);if(o){var a=gS(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},ez=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},tz=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},vS=function(e,t){return e==="v"?JW(t):QW(t)},gS=function(e,t){return e==="v"?ez(t):tz(t)},rz=function(e,t){return e==="h"&&t==="rtl"?-1:1},nz=function(e,t,r,n,o){var a=rz(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,m=t.contains(s),l=!1,u=c>0,p=0,v=0;do{if(!s)break;var h=gS(e,s),x=h[0],d=h[1],g=h[2],y=d-g-a*x;(x||y)&&vS(e,s)&&(p+=y,v+=x);var b=s.parentNode;s=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!m&&s!==document.body||m&&(t.contains(s)||t===s));return(u&&Math.abs(p)<1||!u&&Math.abs(v)<1)&&(l=!0),l},Ys=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},gh=function(e){return[e.deltaX,e.deltaY]},hh=function(e){return e&&"current"in e?e.current:e},oz=function(e,t){return e[0]===t[0]&&e[1]===t[1]},az=function(e){return`
|
408
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
409
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
410
|
-
`)},sz=0,Wn=[];function iz(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(sz++)[0],a=i.useState(pS)[0],c=i.useRef(e);i.useEffect(function(){c.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var d=jW([e.lockRef.current],(e.shards||[]).map(hh)).filter(Boolean);return d.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),d.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(d,g){if("touches"in d&&d.touches.length===2||d.type==="wheel"&&d.ctrlKey)return!c.current.allowPinchZoom;var y=Ys(d),b=r.current,w="deltaX"in d?d.deltaX:b[0]-y[0],E="deltaY"in d?d.deltaY:b[1]-y[1],C,T=d.target,R=Math.abs(w)>Math.abs(E)?"h":"v";if("touches"in d&&R==="h"&&T.type==="range")return!1;var N=vh(R,T);if(!N)return!0;if(N?C=R:(C=R==="v"?"h":"v",N=vh(R,T)),!N)return!1;if(!n.current&&"changedTouches"in d&&(w||E)&&(n.current=C),!C)return!0;var P=n.current||C;return nz(P,g,d,P==="h"?w:E)},[]),m=i.useCallback(function(d){var g=d;if(!(!Wn.length||Wn[Wn.length-1]!==a)){var y="deltaY"in g?gh(g):Ys(g),b=t.current.filter(function(C){return C.name===g.type&&(C.target===g.target||g.target===C.shadowParent)&&oz(C.delta,y)})[0];if(b&&b.should){g.cancelable&&g.preventDefault();return}if(!b){var w=(c.current.shards||[]).map(hh).filter(Boolean).filter(function(C){return C.contains(g.target)}),E=w.length>0?s(g,w[0]):!c.current.noIsolation;E&&g.cancelable&&g.preventDefault()}}},[]),l=i.useCallback(function(d,g,y,b){var w={name:d,delta:g,target:y,should:b,shadowParent:cz(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(E){return E!==w})},1)},[]),u=i.useCallback(function(d){r.current=Ys(d),n.current=void 0},[]),p=i.useCallback(function(d){l(d.type,gh(d),d.target,s(d,e.lockRef.current))},[]),v=i.useCallback(function(d){l(d.type,Ys(d),d.target,s(d,e.lockRef.current))},[]);i.useEffect(function(){return Wn.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",m,Ln),document.addEventListener("touchmove",m,Ln),document.addEventListener("touchstart",u,Ln),function(){Wn=Wn.filter(function(d){return d!==a}),document.removeEventListener("wheel",m,Ln),document.removeEventListener("touchmove",m,Ln),document.removeEventListener("touchstart",u,Ln)}},[]);var h=e.removeScrollBar,x=e.inert;return i.createElement(i.Fragment,null,x?i.createElement(a,{styles:az(o)}):null,h?i.createElement(qW,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function cz(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const uz=FW(fS,iz);var hS=i.forwardRef(function(e,t){return i.createElement(hu,lt({},e,{ref:t,sideCar:uz}))});hS.classNames=hu.classNames;var lz=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},zn=new WeakMap,Us=new WeakMap,Bs={},sd=0,yS=function(e){return e&&(e.host||yS(e.parentNode))},dz=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=yS(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},fz=function(e,t,r,n){var o=dz(t,Array.isArray(e)?e:[e]);Bs[r]||(Bs[r]=new WeakMap);var a=Bs[r],c=[],s=new Set,m=new Set(o),l=function(p){!p||s.has(p)||(s.add(p),l(p.parentNode))};o.forEach(l);var u=function(p){!p||m.has(p)||Array.prototype.forEach.call(p.children,function(v){if(s.has(v))u(v);else try{var h=v.getAttribute(n),x=h!==null&&h!=="false",d=(zn.get(v)||0)+1,g=(a.get(v)||0)+1;zn.set(v,d),a.set(v,g),c.push(v),d===1&&x&&Us.set(v,!0),g===1&&v.setAttribute(r,"true"),x||v.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",v,y)}})};return u(t),s.clear(),sd++,function(){c.forEach(function(p){var v=zn.get(p)-1,h=a.get(p)-1;zn.set(p,v),a.set(p,h),v||(Us.has(p)||p.removeAttribute(n),Us.delete(p)),h||p.removeAttribute(r)}),sd--,sd||(zn=new WeakMap,zn=new WeakMap,Us=new WeakMap,Bs={})}},pz=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=lz(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),fz(n,o,r,"aria-hidden")):function(){return null}},bS="Dialog",[wS]=nW(bS),[Uoe,zt]=wS(bS),xS="DialogTrigger",mz=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=zt(xS,r),a=hn(t,o.triggerRef);return ge.jsx(ur.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Om(o.open),...n,ref:a,onClick:Ir(e.onClick,o.onOpenToggle)})});mz.displayName=xS;var vz="DialogPortal",[Boe,ES]=wS(vz,{forceMount:void 0}),Hc="DialogOverlay",gz=i.forwardRef((e,t)=>{const r=ES(Hc,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=zt(Hc,e.__scopeDialog);return a.modal?ge.jsx(Tm,{present:n||a.open,children:ge.jsx(yz,{...o,ref:t})}):null});gz.displayName=Hc;var hz=Z.createSlot("DialogOverlay.RemoveScroll"),yz=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=zt(Hc,r);return ge.jsx(hS,{as:hz,allowPinchZoom:!0,shards:[o.contentRef],children:ge.jsx(ur.div,{"data-state":Om(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Jr="DialogContent",bz=i.forwardRef((e,t)=>{const r=ES(Jr,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=zt(Jr,e.__scopeDialog);return ge.jsx(Tm,{present:n||a.open,children:a.modal?ge.jsx(wz,{...o,ref:t}):ge.jsx(xz,{...o,ref:t})})});bz.displayName=Jr;var wz=i.forwardRef((e,t)=>{const r=zt(Jr,e.__scopeDialog),n=i.useRef(null),o=hn(t,r.contentRef,n);return i.useEffect(()=>{const a=n.current;if(a)return pz(a)},[]),ge.jsx(SS,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ir(e.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:Ir(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&a.preventDefault()}),onFocusOutside:Ir(e.onFocusOutside,a=>a.preventDefault())})}),xz=i.forwardRef((e,t)=>{const r=zt(Jr,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return ge.jsx(SS,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(n.current||r.triggerRef.current?.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=a.target;r.triggerRef.current?.contains(c)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),SS=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,s=zt(Jr,r),m=i.useRef(null),l=hn(t,m);return kW(),ge.jsxs(ge.Fragment,{children:[ge.jsx(cS,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:ge.jsx(sS,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Om(s.open),...c,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),ge.jsxs(ge.Fragment,{children:[ge.jsx(Cz,{titleId:s.titleId}),ge.jsx(kz,{contentRef:m,descriptionId:s.descriptionId})]})]})}),Dm="DialogTitle",Ez=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=zt(Dm,r);return ge.jsx(ur.h2,{id:o.titleId,...n,ref:t})});Ez.displayName=Dm;var RS="DialogDescription",Sz=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=zt(RS,r);return ge.jsx(ur.p,{id:o.descriptionId,...n,ref:t})});Sz.displayName=RS;var CS="DialogClose",Rz=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=zt(CS,r);return ge.jsx(ur.button,{type:"button",...n,ref:t,onClick:Ir(e.onClick,()=>o.onOpenChange(!1))})});Rz.displayName=CS;function Om(e){return e?"open":"closed"}var NS="DialogTitleWarning",[Koe,kS]=rW(NS,{contentName:Jr,titleName:Dm,docsSlug:"dialog"}),Cz=({titleId:e})=>{const t=kS(NS),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
411
|
-
|
412
|
-
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
413
|
-
|
414
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},Nz="DialogDescriptionWarning",kz=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${kS(Nz).contentName}}.`;return i.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},id={exports:{}},aa={};/**
|
415
|
-
* @license React
|
416
|
-
* react-jsx-runtime.production.js
|
417
|
-
*
|
418
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
419
|
-
*
|
420
|
-
* This source code is licensed under the MIT license found in the
|
421
|
-
* LICENSE file in the root directory of this source tree.
|
422
|
-
*/var yh;function jz(){if(yh)return aa;yh=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var c=null;if(a!==void 0&&(c=""+a),o.key!==void 0&&(c=""+o.key),"key"in o){a={};for(var s in o)s!=="key"&&(a[s]=o[s])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:c,ref:o!==void 0?o:null,props:a}}return aa.Fragment=t,aa.jsx=r,aa.jsxs=r,aa}var Ks={};/**
|
423
|
-
* @license React
|
424
|
-
* react-jsx-runtime.development.js
|
425
|
-
*
|
426
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
427
|
-
*
|
428
|
-
* This source code is licensed under the MIT license found in the
|
429
|
-
* LICENSE file in the root directory of this source tree.
|
430
|
-
*/var bh;function Tz(){return bh||(bh=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(f==null)return null;if(typeof f=="function")return f.$$typeof===L?null:f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case d:return"Fragment";case y:return"Profiler";case g:return"StrictMode";case C:return"Suspense";case T:return"SuspenseList";case P:return"Activity"}if(typeof f=="object")switch(typeof f.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),f.$$typeof){case x:return"Portal";case w:return(f.displayName||"Context")+".Provider";case b:return(f._context.displayName||"Context")+".Consumer";case E:var S=f.render;return f=f.displayName,f||(f=S.displayName||S.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case R:return S=f.displayName||null,S!==null?S:e(f.type)||"Memo";case N:S=f._payload,f=f._init;try{return e(f(S))}catch{}}return null}function t(f){return""+f}function r(f){try{t(f);var S=!1}catch{S=!0}if(S){S=console;var k=S.error,D=typeof Symbol=="function"&&Symbol.toStringTag&&f[Symbol.toStringTag]||f.constructor.name||"Object";return k.call(S,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",D),t(f)}}function n(f){if(f===d)return"<>";if(typeof f=="object"&&f!==null&&f.$$typeof===N)return"<...>";try{var S=e(f);return S?"<"+S+">":"<...>"}catch{return"<...>"}}function o(){var f=I.A;return f===null?null:f.getOwner()}function a(){return Error("react-stack-top-frame")}function c(f){if(B.call(f,"key")){var S=Object.getOwnPropertyDescriptor(f,"key").get;if(S&&S.isReactWarning)return!1}return f.key!==void 0}function s(f,S){function k(){_||(_=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",S))}k.isReactWarning=!0,Object.defineProperty(f,"key",{get:k,configurable:!0})}function m(){var f=e(this.type);return Y[f]||(Y[f]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),f=this.props.ref,f!==void 0?f:null}function l(f,S,k,D,F,A,G,X){return k=A.ref,f={$$typeof:h,type:f,key:S,props:A,_owner:F},(k!==void 0?k:null)!==null?Object.defineProperty(f,"ref",{enumerable:!1,get:m}):Object.defineProperty(f,"ref",{enumerable:!1,value:null}),f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(f,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(f,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:G}),Object.defineProperty(f,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:X}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f}function u(f,S,k,D,F,A,G,X){var O=S.children;if(O!==void 0)if(D)if(K(O)){for(D=0;D<O.length;D++)p(O[D]);Object.freeze&&Object.freeze(O)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else p(O);if(B.call(S,"key")){O=e(f);var z=Object.keys(S).filter(function(ce){return ce!=="key"});D=0<z.length?"{key: someKey, "+z.join(": ..., ")+": ...}":"{key: someKey}",V[O+D]||(z=0<z.length?"{"+z.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
431
|
-
let props = %s;
|
432
|
-
<%s {...props} />
|
433
|
-
React keys must be passed directly to JSX without using spread:
|
434
|
-
let props = %s;
|
435
|
-
<%s key={someKey} {...props} />`,D,O,z,O),V[O+D]=!0)}if(O=null,k!==void 0&&(r(k),O=""+k),c(S)&&(r(S.key),O=""+S.key),"key"in S){k={};for(var q in S)q!=="key"&&(k[q]=S[q])}else k=S;return O&&s(k,typeof f=="function"?f.displayName||f.name||"Unknown":f),l(f,O,A,F,o(),k,G,X)}function p(f){typeof f=="object"&&f!==null&&f.$$typeof===h&&f._store&&(f._store.validated=1)}var v=M,h=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),b=Symbol.for("react.consumer"),w=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),P=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),I=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,K=Array.isArray,$=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(f){return f()}};var _,Y={},H=v.react_stack_bottom_frame.bind(v,a)(),U=$(n(a)),V={};Ks.Fragment=d,Ks.jsx=function(f,S,k,D,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,S,k,!1,D,F,A?Error("react-stack-top-frame"):H,A?$(n(f)):U)},Ks.jsxs=function(f,S,k,D,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,S,k,!0,D,F,A?Error("react-stack-top-frame"):H,A?$(n(f)):U)}})()),Ks}var wh;function Dz(){return wh||(wh=1,process.env.NODE_ENV==="production"?id.exports=jz():id.exports=Tz()),id.exports}var J=Dz();M.createContext({locale:void 0});var Oz=(e,t,r,n,o,a,c,s)=>{let m=document.documentElement,l=["light","dark"];function u(h){(Array.isArray(e)?e:[e]).forEach(x=>{let d=x==="class",g=d&&a?o.map(y=>a[y]||y):o;d?(m.classList.remove(...g),m.classList.add(a&&a[h]?a[h]:h)):m.setAttribute(x,h)}),p(h)}function p(h){s&&l.includes(h)&&(m.style.colorScheme=h)}function v(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(n)u(n);else try{let h=localStorage.getItem(t)||r,x=c&&h==="system"?v():h;u(x)}catch{}};i.createContext(void 0);i.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:o,defaultTheme:a,value:c,themes:s,nonce:m,scriptProps:l})=>{let u=JSON.stringify([r,t,a,e,s,c,n,o]).slice(1,-1);return i.createElement("script",{...l,suppressHydrationWarning:!0,nonce:typeof window>"u"?m:"",dangerouslySetInnerHTML:{__html:`(${Oz.toString()})(${u})`}})});function Pz(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}Array(12).fill(0);let vp=1;class _z{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const r=this.subscribers.indexOf(t);this.subscribers.splice(r,1)}),this.publish=t=>{this.subscribers.forEach(r=>r(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var r;const{message:n,...o}=t,a=typeof t?.id=="number"||((r=t.id)==null?void 0:r.length)>0?t.id:vp++,c=this.toasts.find(m=>m.id===a),s=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),c?this.toasts=this.toasts.map(m=>m.id===a?(this.publish({...m,...t,id:a,title:n}),{...m,...t,id:a,dismissible:s,title:n}):m):this.addToast({title:n,...o,dismissible:s,id:a}),a},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(r=>r({id:t,dismiss:!0})))):this.toasts.forEach(r=>{this.subscribers.forEach(n=>n({id:r.id,dismiss:!0}))}),t),this.message=(t,r)=>this.create({...r,message:t}),this.error=(t,r)=>this.create({...r,message:t,type:"error"}),this.success=(t,r)=>this.create({...r,type:"success",message:t}),this.info=(t,r)=>this.create({...r,type:"info",message:t}),this.warning=(t,r)=>this.create({...r,type:"warning",message:t}),this.loading=(t,r)=>this.create({...r,type:"loading",message:t}),this.promise=(t,r)=>{if(!r)return;let n;r.loading!==void 0&&(n=this.create({...r,promise:t,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let a=n!==void 0,c;const s=o.then(async l=>{if(c=["resolve",l],M.isValidElement(l))a=!1,this.create({id:n,type:"default",message:l});else if(Az(l)&&!l.ok){a=!1;const u=typeof r.error=="function"?await r.error(`HTTP error! status: ${l.status}`):r.error,p=typeof r.description=="function"?await r.description(`HTTP error! status: ${l.status}`):r.description,v=typeof u=="object"&&!M.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:p,...v})}else if(l instanceof Error){a=!1;const u=typeof r.error=="function"?await r.error(l):r.error,p=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!M.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:p,...v})}else if(r.success!==void 0){a=!1;const u=typeof r.success=="function"?await r.success(l):r.success,p=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!M.isValidElement(u)?u:{message:u};this.create({id:n,type:"success",description:p,...v})}}).catch(async l=>{if(c=["reject",l],r.error!==void 0){a=!1;const u=typeof r.error=="function"?await r.error(l):r.error,p=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!M.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:p,...v})}}).finally(()=>{a&&(this.dismiss(n),n=void 0),r.finally==null||r.finally.call(r)}),m=()=>new Promise((l,u)=>s.then(()=>c[0]==="reject"?u(c[1]):l(c[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:m}:Object.assign(n,{unwrap:m})},this.custom=(t,r)=>{const n=r?.id||vp++;return this.create({jsx:t(n),id:n,...r}),n},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Ke=new _z,Mz=(e,t)=>{const r=t?.id||vp++;return Ke.addToast({title:e,...t,id:r}),r},Az=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Iz=Mz,Fz=()=>Ke.toasts,Lz=()=>Ke.getActiveToasts();Object.assign(Iz,{success:Ke.success,info:Ke.info,warning:Ke.warning,error:Ke.error,custom:Ke.custom,message:Ke.message,promise:Ke.promise,dismiss:Ke.dismiss,loading:Ke.loading},{getHistory:Fz,getToasts:Lz});Pz("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");ie.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});ie.cva("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function Se(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}function xh(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Wz(...e){return t=>{let r=!1;const n=e.map(o=>{const a=xh(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():xh(e[o],null)}}}}function Rt(...e){return i.useCallback(Wz(...e),e)}function zz(e,t){const r=i.createContext(t),n=a=>{const{children:c,...s}=a,m=i.useMemo(()=>s,Object.values(s));return J.jsx(r.Provider,{value:m,children:c})};n.displayName=e+"Provider";function o(a){const c=i.useContext(r);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function yu(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),m=r.length;r=[...r,c];const l=p=>{const{scope:v,children:h,...x}=p,d=v?.[e]?.[m]||s,g=i.useMemo(()=>x,Object.values(x));return J.jsx(d.Provider,{value:g,children:h})};l.displayName=a+"Provider";function u(p,v){const h=v?.[e]?.[m]||s,x=i.useContext(h);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[l,u]}const o=()=>{const a=r.map(c=>i.createContext(c));return function(c){const s=c?.[e]||a;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:s}}),[c,s])}};return o.scopeName=e,[n,$z(o,...t)]}function $z(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){const a=n.reduce((c,{useScope:s,scopeName:m})=>{const l=s(o)[`__scope${m}`];return{...c,...l}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var Ta=globalThis?.document?i.useLayoutEffect:()=>{},Yz=i[" useId ".trim().toString()]||(()=>{}),Uz=0;function jS(e){const[t,r]=i.useState(Yz());return Ta(()=>{r(n=>n??String(Uz++))},[e]),t?`radix-${t}`:""}var Bz=i[" useInsertionEffect ".trim().toString()]||Ta;function TS({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,c]=Kz({defaultProp:t,onChange:r}),s=e!==void 0,m=s?e:o;{const u=i.useRef(e!==void 0);i.useEffect(()=>{const p=u.current;p!==s&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=s},[s,n])}const l=i.useCallback(u=>{if(s){const p=Hz(u)?u(e):u;p!==e&&c.current?.(p)}else a(u)},[s,e,a,c]);return[m,l]}function Kz({defaultProp:e,onChange:t}){const[r,n]=i.useState(e),o=i.useRef(r),a=i.useRef(t);return Bz(()=>{a.current=t},[t]),i.useEffect(()=>{o.current!==r&&(a.current?.(r),o.current=r)},[r,o]),[r,n,a]}function Hz(e){return typeof e=="function"}var Xz=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Me=Xz.reduce((e,t)=>{const r=Z.createSlot(`Primitive.${t}`),n=i.forwardRef((o,a)=>{const{asChild:c,...s}=o,m=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),J.jsx(m,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Vz(e,t){e&&Ee.flushSync(()=>e.dispatchEvent(t))}function Fo(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>t.current?.(...r),[])}function Gz(e,t=globalThis?.document){const r=Fo(e);i.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var qz="DismissableLayer",gp="dismissableLayer.update",Zz="dismissableLayer.pointerDownOutside",Jz="dismissableLayer.focusOutside",Eh,DS=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),OS=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...m}=e,l=i.useContext(DS),[u,p]=i.useState(null),v=u?.ownerDocument??globalThis?.document,[,h]=i.useState({}),x=Rt(t,R=>p(R)),d=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),y=d.indexOf(g),b=u?d.indexOf(u):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,E=b>=y,C=t4(R=>{const N=R.target,P=[...l.branches].some(L=>L.contains(N));!E||P||(o?.(R),c?.(R),R.defaultPrevented||s?.())},v),T=r4(R=>{const N=R.target;[...l.branches].some(P=>P.contains(N))||(a?.(R),c?.(R),R.defaultPrevented||s?.())},v);return Gz(R=>{b===l.layers.size-1&&(n?.(R),!R.defaultPrevented&&s&&(R.preventDefault(),s()))},v),i.useEffect(()=>{if(u)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Eh=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),Sh(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Eh)}},[u,v,r,l]),i.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),Sh())},[u,l]),i.useEffect(()=>{const R=()=>h({});return document.addEventListener(gp,R),()=>document.removeEventListener(gp,R)},[]),J.jsx(Me.div,{...m,ref:x,style:{pointerEvents:w?E?"auto":"none":void 0,...e.style},onFocusCapture:Se(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Se(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Se(e.onPointerDownCapture,C.onPointerDownCapture)})});OS.displayName=qz;var Qz="DismissableLayerBranch",e4=i.forwardRef((e,t)=>{const r=i.useContext(DS),n=i.useRef(null),o=Rt(t,n);return i.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),J.jsx(Me.div,{...e,ref:o})});e4.displayName=Qz;function t4(e,t=globalThis?.document){const r=Fo(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let m=function(){PS(Zz,r,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=m,t.addEventListener("click",o.current,{once:!0})):m()}else t.removeEventListener("click",o.current);n.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function r4(e,t=globalThis?.document){const r=Fo(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&PS(Jz,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Sh(){const e=new CustomEvent(gp);document.dispatchEvent(e)}function PS(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?Vz(o,a):o.dispatchEvent(a)}var cd="focusScope.autoFocusOnMount",ud="focusScope.autoFocusOnUnmount",Rh={bubbles:!1,cancelable:!0},n4="FocusScope",_S=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,m]=i.useState(null),l=Fo(o),u=Fo(a),p=i.useRef(null),v=Rt(t,d=>m(d)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let d=function(w){if(h.paused||!s)return;const E=w.target;s.contains(E)?p.current=E:wr(p.current,{select:!0})},g=function(w){if(h.paused||!s)return;const E=w.relatedTarget;E!==null&&(s.contains(E)||wr(p.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const E of w)E.removedNodes.length>0&&wr(s)};document.addEventListener("focusin",d),document.addEventListener("focusout",g);const b=new MutationObserver(y);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",d),document.removeEventListener("focusout",g),b.disconnect()}}},[n,s,h.paused]),i.useEffect(()=>{if(s){Nh.add(h);const d=document.activeElement;if(!s.contains(d)){const g=new CustomEvent(cd,Rh);s.addEventListener(cd,l),s.dispatchEvent(g),g.defaultPrevented||(o4(u4(MS(s)),{select:!0}),document.activeElement===d&&wr(s))}return()=>{s.removeEventListener(cd,l),setTimeout(()=>{const g=new CustomEvent(ud,Rh);s.addEventListener(ud,u),s.dispatchEvent(g),g.defaultPrevented||wr(d??document.body,{select:!0}),s.removeEventListener(ud,u),Nh.remove(h)},0)}}},[s,l,u,h]);const x=i.useCallback(d=>{if(!r&&!n||h.paused)return;const g=d.key==="Tab"&&!d.altKey&&!d.ctrlKey&&!d.metaKey,y=document.activeElement;if(g&&y){const b=d.currentTarget,[w,E]=a4(b);w&&E?!d.shiftKey&&y===E?(d.preventDefault(),r&&wr(w,{select:!0})):d.shiftKey&&y===w&&(d.preventDefault(),r&&wr(E,{select:!0})):y===b&&d.preventDefault()}},[r,n,h.paused]);return J.jsx(Me.div,{tabIndex:-1,...c,ref:v,onKeyDown:x})});_S.displayName=n4;function o4(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(wr(n,{select:t}),document.activeElement!==r)return}function a4(e){const t=MS(e),r=Ch(t,e),n=Ch(t.reverse(),e);return[r,n]}function MS(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Ch(e,t){for(const r of e)if(!s4(r,{upTo:t}))return r}function s4(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function i4(e){return e instanceof HTMLInputElement&&"select"in e}function wr(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&i4(e)&&t&&e.select()}}var Nh=c4();function c4(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=kh(e,t),e.unshift(t)},remove(t){e=kh(e,t),e[0]?.resume()}}}function kh(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function u4(e){return e.filter(t=>t.tagName!=="A")}var l4="Portal",d4=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);Ta(()=>a(!0),[]);const c=r||o&&globalThis?.document?.body;return c?xe.createPortal(J.jsx(Me.div,{...n,ref:t}),c):null});d4.displayName=l4;function f4(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var bu=e=>{const{present:t,children:r}=e,n=p4(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=Rt(n.ref,m4(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};bu.displayName="Presence";function p4(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,m]=f4(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const l=Hs(n.current);a.current=s==="mounted"?l:"none"},[s]),Ta(()=>{const l=n.current,u=o.current;if(u!==e){const p=a.current,v=Hs(l);e?m("MOUNT"):v==="none"||l?.display==="none"?m("UNMOUNT"):m(u&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,m]),Ta(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,p=h=>{const x=Hs(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&x&&(m("ANIMATION_END"),!o.current)){const d=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=d)})}},v=h=>{h.target===t&&(a.current=Hs(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else m("ANIMATION_END")},[t,m]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:i.useCallback(l=>{n.current=l?getComputedStyle(l):null,r(l)},[])}}function Hs(e){return e?.animationName||"none"}function m4(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var ld=0;function v4(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??jh()),document.body.insertAdjacentElement("beforeend",e[1]??jh()),ld++,()=>{ld===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),ld--}},[])}function jh(){const e=document.createElement("span");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}var dt=function(){return dt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},dt.apply(this,arguments)};function AS(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function g4(e,t,r){for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var pc="right-scroll-bar-position",mc="width-before-scroll-bar",h4="with-scroll-bars-hidden",y4="--removed-body-scroll-bar-size";function dd(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function b4(e,t){var r=M.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var w4=typeof window<"u"?i.useLayoutEffect:i.useEffect,Th=new WeakMap;function x4(e,t){var r=b4(null,function(n){return e.forEach(function(o){return dd(o,n)})});return w4(function(){var n=Th.get(r);if(n){var o=new Set(n),a=new Set(e),c=r.current;o.forEach(function(s){a.has(s)||dd(s,null)}),a.forEach(function(s){o.has(s)||dd(s,c)})}Th.set(r,e)},[e]),r}function E4(e){return e}function S4(e,t){t===void 0&&(t=E4);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var c=t(a,n);return r.push(c),function(){r=r.filter(function(s){return s!==c})}},assignSyncMedium:function(a){for(n=!0;r.length;){var c=r;r=[],c.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var c=[];if(r.length){var s=r;r=[],s.forEach(a),c=r}var m=function(){var u=c;c=[],u.forEach(a)},l=function(){return Promise.resolve().then(m)};l(),r={push:function(u){c.push(u),l()},filter:function(u){return c=c.filter(u),r}}}};return o}function R4(e){e===void 0&&(e={});var t=S4(null);return t.options=dt({async:!0,ssr:!1},e),t}var IS=function(e){var t=e.sideCar,r=AS(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return i.createElement(n,dt({},r))};IS.isSideCarExport=!0;function C4(e,t){return e.useMedium(t),IS}var FS=R4(),fd=function(){},wu=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:fd,onWheelCapture:fd,onTouchMoveCapture:fd}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,m=e.className,l=e.removeScrollBar,u=e.enabled,p=e.shards,v=e.sideCar,h=e.noRelative,x=e.noIsolation,d=e.inert,g=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,w=e.gapMode,E=AS(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=v,T=x4([r,t]),R=dt(dt({},E),o);return i.createElement(i.Fragment,null,u&&i.createElement(C,{sideCar:FS,removeScrollBar:l,shards:p,noRelative:h,noIsolation:x,inert:d,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),dt(dt({},R),{ref:T})):i.createElement(b,dt({},R,{className:m,ref:T}),s))});wu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};wu.classNames={fullWidth:mc,zeroRight:pc};var N4=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function k4(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=N4();return t&&e.setAttribute("nonce",t),e}function j4(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function T4(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var D4=function(){var e=0,t=null;return{add:function(r){e==0&&(t=k4())&&(j4(t,r),T4(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},O4=function(){var e=D4();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},LS=function(){var e=O4(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},P4={left:0,top:0,right:0,gap:0},pd=function(e){return parseInt(e||"",10)||0},_4=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[pd(r),pd(n),pd(o)]},M4=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return P4;var t=_4(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},A4=LS(),No="data-scroll-locked",I4=function(e,t,r,n){var o=e.left,a=e.top,c=e.right,s=e.gap;return r===void 0&&(r="margin"),`
|
436
|
-
.`.concat(h4,` {
|
437
|
-
overflow: hidden `).concat(n,`;
|
438
|
-
padding-right: `).concat(s,"px ").concat(n,`;
|
439
|
-
}
|
440
|
-
body[`).concat(No,`] {
|
441
|
-
overflow: hidden `).concat(n,`;
|
442
|
-
overscroll-behavior: contain;
|
443
|
-
`).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
|
444
|
-
padding-left: `.concat(o,`px;
|
445
|
-
padding-top: `).concat(a,`px;
|
446
|
-
padding-right: `).concat(c,`px;
|
447
|
-
margin-left:0;
|
448
|
-
margin-top:0;
|
449
|
-
margin-right: `).concat(s,"px ").concat(n,`;
|
450
|
-
`),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
|
451
|
-
}
|
452
|
-
|
453
|
-
.`).concat(pc,` {
|
454
|
-
right: `).concat(s,"px ").concat(n,`;
|
455
|
-
}
|
456
|
-
|
457
|
-
.`).concat(mc,` {
|
458
|
-
margin-right: `).concat(s,"px ").concat(n,`;
|
459
|
-
}
|
460
|
-
|
461
|
-
.`).concat(pc," .").concat(pc,` {
|
462
|
-
right: 0 `).concat(n,`;
|
463
|
-
}
|
464
|
-
|
465
|
-
.`).concat(mc," .").concat(mc,` {
|
466
|
-
margin-right: 0 `).concat(n,`;
|
467
|
-
}
|
468
|
-
|
469
|
-
body[`).concat(No,`] {
|
470
|
-
`).concat(y4,": ").concat(s,`px;
|
471
|
-
}
|
472
|
-
`)},Dh=function(){var e=parseInt(document.body.getAttribute(No)||"0",10);return isFinite(e)?e:0},F4=function(){i.useEffect(function(){return document.body.setAttribute(No,(Dh()+1).toString()),function(){var e=Dh()-1;e<=0?document.body.removeAttribute(No):document.body.setAttribute(No,e.toString())}},[])},L4=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;F4();var a=i.useMemo(function(){return M4(o)},[o]);return i.createElement(A4,{styles:I4(a,!t,o,r?"":"!important")})},hp=!1;if(typeof window<"u")try{var Xs=Object.defineProperty({},"passive",{get:function(){return hp=!0,!0}});window.addEventListener("test",Xs,Xs),window.removeEventListener("test",Xs,Xs)}catch{hp=!1}var $n=hp?{passive:!1}:!1,W4=function(e){return e.tagName==="TEXTAREA"},WS=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!W4(e)&&r[t]==="visible")},z4=function(e){return WS(e,"overflowY")},$4=function(e){return WS(e,"overflowX")},Oh=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=zS(e,n);if(o){var a=$S(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},Y4=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},U4=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},zS=function(e,t){return e==="v"?z4(t):$4(t)},$S=function(e,t){return e==="v"?Y4(t):U4(t)},B4=function(e,t){return e==="h"&&t==="rtl"?-1:1},K4=function(e,t,r,n,o){var a=B4(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,m=t.contains(s),l=!1,u=c>0,p=0,v=0;do{if(!s)break;var h=$S(e,s),x=h[0],d=h[1],g=h[2],y=d-g-a*x;(x||y)&&zS(e,s)&&(p+=y,v+=x);var b=s.parentNode;s=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!m&&s!==document.body||m&&(t.contains(s)||t===s));return(u&&Math.abs(p)<1||!u&&Math.abs(v)<1)&&(l=!0),l},Vs=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ph=function(e){return[e.deltaX,e.deltaY]},_h=function(e){return e&&"current"in e?e.current:e},H4=function(e,t){return e[0]===t[0]&&e[1]===t[1]},X4=function(e){return`
|
473
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
474
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
475
|
-
`)},V4=0,Yn=[];function G4(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(V4++)[0],a=i.useState(LS)[0],c=i.useRef(e);i.useEffect(function(){c.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var d=g4([e.lockRef.current],(e.shards||[]).map(_h)).filter(Boolean);return d.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),d.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(d,g){if("touches"in d&&d.touches.length===2||d.type==="wheel"&&d.ctrlKey)return!c.current.allowPinchZoom;var y=Vs(d),b=r.current,w="deltaX"in d?d.deltaX:b[0]-y[0],E="deltaY"in d?d.deltaY:b[1]-y[1],C,T=d.target,R=Math.abs(w)>Math.abs(E)?"h":"v";if("touches"in d&&R==="h"&&T.type==="range")return!1;var N=Oh(R,T);if(!N)return!0;if(N?C=R:(C=R==="v"?"h":"v",N=Oh(R,T)),!N)return!1;if(!n.current&&"changedTouches"in d&&(w||E)&&(n.current=C),!C)return!0;var P=n.current||C;return K4(P,g,d,P==="h"?w:E)},[]),m=i.useCallback(function(d){var g=d;if(!(!Yn.length||Yn[Yn.length-1]!==a)){var y="deltaY"in g?Ph(g):Vs(g),b=t.current.filter(function(C){return C.name===g.type&&(C.target===g.target||g.target===C.shadowParent)&&H4(C.delta,y)})[0];if(b&&b.should){g.cancelable&&g.preventDefault();return}if(!b){var w=(c.current.shards||[]).map(_h).filter(Boolean).filter(function(C){return C.contains(g.target)}),E=w.length>0?s(g,w[0]):!c.current.noIsolation;E&&g.cancelable&&g.preventDefault()}}},[]),l=i.useCallback(function(d,g,y,b){var w={name:d,delta:g,target:y,should:b,shadowParent:q4(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(E){return E!==w})},1)},[]),u=i.useCallback(function(d){r.current=Vs(d),n.current=void 0},[]),p=i.useCallback(function(d){l(d.type,Ph(d),d.target,s(d,e.lockRef.current))},[]),v=i.useCallback(function(d){l(d.type,Vs(d),d.target,s(d,e.lockRef.current))},[]);i.useEffect(function(){return Yn.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",m,$n),document.addEventListener("touchmove",m,$n),document.addEventListener("touchstart",u,$n),function(){Yn=Yn.filter(function(d){return d!==a}),document.removeEventListener("wheel",m,$n),document.removeEventListener("touchmove",m,$n),document.removeEventListener("touchstart",u,$n)}},[]);var h=e.removeScrollBar,x=e.inert;return i.createElement(i.Fragment,null,x?i.createElement(a,{styles:X4(o)}):null,h?i.createElement(L4,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function q4(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Z4=C4(FS,G4);var YS=i.forwardRef(function(e,t){return i.createElement(wu,dt({},e,{ref:t,sideCar:Z4}))});YS.classNames=wu.classNames;var J4=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Un=new WeakMap,Gs=new WeakMap,qs={},md=0,US=function(e){return e&&(e.host||US(e.parentNode))},Q4=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=US(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},e$=function(e,t,r,n){var o=Q4(t,Array.isArray(e)?e:[e]);qs[r]||(qs[r]=new WeakMap);var a=qs[r],c=[],s=new Set,m=new Set(o),l=function(p){!p||s.has(p)||(s.add(p),l(p.parentNode))};o.forEach(l);var u=function(p){!p||m.has(p)||Array.prototype.forEach.call(p.children,function(v){if(s.has(v))u(v);else try{var h=v.getAttribute(n),x=h!==null&&h!=="false",d=(Un.get(v)||0)+1,g=(a.get(v)||0)+1;Un.set(v,d),a.set(v,g),c.push(v),d===1&&x&&Gs.set(v,!0),g===1&&v.setAttribute(r,"true"),x||v.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",v,y)}})};return u(t),s.clear(),md++,function(){c.forEach(function(p){var v=Un.get(p)-1,h=a.get(p)-1;Un.set(p,v),a.set(p,h),v||(Gs.has(p)||p.removeAttribute(n),Gs.delete(p)),h||p.removeAttribute(r)}),md--,md||(Un=new WeakMap,Un=new WeakMap,Gs=new WeakMap,qs={})}},t$=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=J4(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),e$(n,o,r,"aria-hidden")):function(){return null}},BS="Dialog",[KS]=yu(BS),[Hoe,$t]=KS(BS),HS="DialogTrigger",r$=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=$t(HS,r),a=Rt(t,o.triggerRef);return J.jsx(Me.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":_m(o.open),...n,ref:a,onClick:Se(e.onClick,o.onOpenToggle)})});r$.displayName=HS;var n$="DialogPortal",[Xoe,XS]=KS(n$,{forceMount:void 0}),Xc="DialogOverlay",o$=i.forwardRef((e,t)=>{const r=XS(Xc,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=$t(Xc,e.__scopeDialog);return a.modal?J.jsx(bu,{present:n||a.open,children:J.jsx(s$,{...o,ref:t})}):null});o$.displayName=Xc;var a$=Z.createSlot("DialogOverlay.RemoveScroll"),s$=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=$t(Xc,r);return J.jsx(YS,{as:a$,allowPinchZoom:!0,shards:[o.contentRef],children:J.jsx(Me.div,{"data-state":_m(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Qr="DialogContent",i$=i.forwardRef((e,t)=>{const r=XS(Qr,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=$t(Qr,e.__scopeDialog);return J.jsx(bu,{present:n||a.open,children:a.modal?J.jsx(c$,{...o,ref:t}):J.jsx(u$,{...o,ref:t})})});i$.displayName=Qr;var c$=i.forwardRef((e,t)=>{const r=$t(Qr,e.__scopeDialog),n=i.useRef(null),o=Rt(t,r.contentRef,n);return i.useEffect(()=>{const a=n.current;if(a)return t$(a)},[]),J.jsx(VS,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Se(e.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:Se(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&a.preventDefault()}),onFocusOutside:Se(e.onFocusOutside,a=>a.preventDefault())})}),u$=i.forwardRef((e,t)=>{const r=$t(Qr,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return J.jsx(VS,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(n.current||r.triggerRef.current?.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=a.target;r.triggerRef.current?.contains(c)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),VS=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,s=$t(Qr,r),m=i.useRef(null),l=Rt(t,m);return v4(),J.jsxs(J.Fragment,{children:[J.jsx(_S,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:J.jsx(OS,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":_m(s.open),...c,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),J.jsxs(J.Fragment,{children:[J.jsx(p$,{titleId:s.titleId}),J.jsx(v$,{contentRef:m,descriptionId:s.descriptionId})]})]})}),Pm="DialogTitle",l$=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=$t(Pm,r);return J.jsx(Me.h2,{id:o.titleId,...n,ref:t})});l$.displayName=Pm;var GS="DialogDescription",d$=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=$t(GS,r);return J.jsx(Me.p,{id:o.descriptionId,...n,ref:t})});d$.displayName=GS;var qS="DialogClose",f$=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=$t(qS,r);return J.jsx(Me.button,{type:"button",...n,ref:t,onClick:Se(e.onClick,()=>o.onOpenChange(!1))})});f$.displayName=qS;function _m(e){return e?"open":"closed"}var ZS="DialogTitleWarning",[Voe,JS]=zz(ZS,{contentName:Qr,titleName:Pm,docsSlug:"dialog"}),p$=({titleId:e})=>{const t=JS(ZS),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
476
|
-
|
477
|
-
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
478
|
-
|
479
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},m$="DialogDescriptionWarning",v$=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${JS(m$).contentName}}.`;return i.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},vd={exports:{}},sa={};/**
|
480
|
-
* @license React
|
481
|
-
* react-jsx-runtime.production.js
|
482
|
-
*
|
483
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
484
|
-
*
|
485
|
-
* This source code is licensed under the MIT license found in the
|
486
|
-
* LICENSE file in the root directory of this source tree.
|
487
|
-
*/var Mh;function g$(){if(Mh)return sa;Mh=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var c=null;if(a!==void 0&&(c=""+a),o.key!==void 0&&(c=""+o.key),"key"in o){a={};for(var s in o)s!=="key"&&(a[s]=o[s])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:c,ref:o!==void 0?o:null,props:a}}return sa.Fragment=t,sa.jsx=r,sa.jsxs=r,sa}var Zs={};/**
|
488
|
-
* @license React
|
489
|
-
* react-jsx-runtime.development.js
|
490
|
-
*
|
491
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
492
|
-
*
|
493
|
-
* This source code is licensed under the MIT license found in the
|
494
|
-
* LICENSE file in the root directory of this source tree.
|
495
|
-
*/var Ah;function h$(){return Ah||(Ah=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(f==null)return null;if(typeof f=="function")return f.$$typeof===L?null:f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case d:return"Fragment";case y:return"Profiler";case g:return"StrictMode";case C:return"Suspense";case T:return"SuspenseList";case P:return"Activity"}if(typeof f=="object")switch(typeof f.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),f.$$typeof){case x:return"Portal";case w:return(f.displayName||"Context")+".Provider";case b:return(f._context.displayName||"Context")+".Consumer";case E:var S=f.render;return f=f.displayName,f||(f=S.displayName||S.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case R:return S=f.displayName||null,S!==null?S:e(f.type)||"Memo";case N:S=f._payload,f=f._init;try{return e(f(S))}catch{}}return null}function t(f){return""+f}function r(f){try{t(f);var S=!1}catch{S=!0}if(S){S=console;var k=S.error,D=typeof Symbol=="function"&&Symbol.toStringTag&&f[Symbol.toStringTag]||f.constructor.name||"Object";return k.call(S,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",D),t(f)}}function n(f){if(f===d)return"<>";if(typeof f=="object"&&f!==null&&f.$$typeof===N)return"<...>";try{var S=e(f);return S?"<"+S+">":"<...>"}catch{return"<...>"}}function o(){var f=I.A;return f===null?null:f.getOwner()}function a(){return Error("react-stack-top-frame")}function c(f){if(B.call(f,"key")){var S=Object.getOwnPropertyDescriptor(f,"key").get;if(S&&S.isReactWarning)return!1}return f.key!==void 0}function s(f,S){function k(){_||(_=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",S))}k.isReactWarning=!0,Object.defineProperty(f,"key",{get:k,configurable:!0})}function m(){var f=e(this.type);return Y[f]||(Y[f]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),f=this.props.ref,f!==void 0?f:null}function l(f,S,k,D,F,A,G,X){return k=A.ref,f={$$typeof:h,type:f,key:S,props:A,_owner:F},(k!==void 0?k:null)!==null?Object.defineProperty(f,"ref",{enumerable:!1,get:m}):Object.defineProperty(f,"ref",{enumerable:!1,value:null}),f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(f,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(f,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:G}),Object.defineProperty(f,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:X}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f}function u(f,S,k,D,F,A,G,X){var O=S.children;if(O!==void 0)if(D)if(K(O)){for(D=0;D<O.length;D++)p(O[D]);Object.freeze&&Object.freeze(O)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else p(O);if(B.call(S,"key")){O=e(f);var z=Object.keys(S).filter(function(ce){return ce!=="key"});D=0<z.length?"{key: someKey, "+z.join(": ..., ")+": ...}":"{key: someKey}",V[O+D]||(z=0<z.length?"{"+z.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
496
|
-
let props = %s;
|
497
|
-
<%s {...props} />
|
498
|
-
React keys must be passed directly to JSX without using spread:
|
499
|
-
let props = %s;
|
500
|
-
<%s key={someKey} {...props} />`,D,O,z,O),V[O+D]=!0)}if(O=null,k!==void 0&&(r(k),O=""+k),c(S)&&(r(S.key),O=""+S.key),"key"in S){k={};for(var q in S)q!=="key"&&(k[q]=S[q])}else k=S;return O&&s(k,typeof f=="function"?f.displayName||f.name||"Unknown":f),l(f,O,A,F,o(),k,G,X)}function p(f){typeof f=="object"&&f!==null&&f.$$typeof===h&&f._store&&(f._store.validated=1)}var v=M,h=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),b=Symbol.for("react.consumer"),w=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),P=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),I=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,K=Array.isArray,$=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(f){return f()}};var _,Y={},H=v.react_stack_bottom_frame.bind(v,a)(),U=$(n(a)),V={};Zs.Fragment=d,Zs.jsx=function(f,S,k,D,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,S,k,!1,D,F,A?Error("react-stack-top-frame"):H,A?$(n(f)):U)},Zs.jsxs=function(f,S,k,D,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,S,k,!0,D,F,A?Error("react-stack-top-frame"):H,A?$(n(f)):U)}})()),Zs}var Ih;function y$(){return Ih||(Ih=1,process.env.NODE_ENV==="production"?vd.exports=g$():vd.exports=h$()),vd.exports}var Q=y$();M.createContext({locale:void 0});var b$=(e,t,r,n,o,a,c,s)=>{let m=document.documentElement,l=["light","dark"];function u(h){(Array.isArray(e)?e:[e]).forEach(x=>{let d=x==="class",g=d&&a?o.map(y=>a[y]||y):o;d?(m.classList.remove(...g),m.classList.add(a&&a[h]?a[h]:h)):m.setAttribute(x,h)}),p(h)}function p(h){s&&l.includes(h)&&(m.style.colorScheme=h)}function v(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(n)u(n);else try{let h=localStorage.getItem(t)||r,x=c&&h==="system"?v():h;u(x)}catch{}};i.createContext(void 0);i.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:o,defaultTheme:a,value:c,themes:s,nonce:m,scriptProps:l})=>{let u=JSON.stringify([r,t,a,e,s,c,n,o]).slice(1,-1);return i.createElement("script",{...l,suppressHydrationWarning:!0,nonce:typeof window>"u"?m:"",dangerouslySetInnerHTML:{__html:`(${b$.toString()})(${u})`}})});ie.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});ie.cva("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function Re(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}function Fh(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function w$(...e){return t=>{let r=!1;const n=e.map(o=>{const a=Fh(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():Fh(e[o],null)}}}}function Ct(...e){return i.useCallback(w$(...e),e)}function x$(e,t){const r=i.createContext(t),n=a=>{const{children:c,...s}=a,m=i.useMemo(()=>s,Object.values(s));return Q.jsx(r.Provider,{value:m,children:c})};n.displayName=e+"Provider";function o(a){const c=i.useContext(r);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function xu(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),m=r.length;r=[...r,c];const l=p=>{const{scope:v,children:h,...x}=p,d=v?.[e]?.[m]||s,g=i.useMemo(()=>x,Object.values(x));return Q.jsx(d.Provider,{value:g,children:h})};l.displayName=a+"Provider";function u(p,v){const h=v?.[e]?.[m]||s,x=i.useContext(h);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[l,u]}const o=()=>{const a=r.map(c=>i.createContext(c));return function(c){const s=c?.[e]||a;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:s}}),[c,s])}};return o.scopeName=e,[n,E$(o,...t)]}function E$(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){const a=n.reduce((c,{useScope:s,scopeName:m})=>{const l=s(o)[`__scope${m}`];return{...c,...l}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var Da=globalThis?.document?i.useLayoutEffect:()=>{},S$=i[" useId ".trim().toString()]||(()=>{}),R$=0;function QS(e){const[t,r]=i.useState(S$());return Da(()=>{r(n=>n??String(R$++))},[e]),t?`radix-${t}`:""}var C$=i[" useInsertionEffect ".trim().toString()]||Da;function e1({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,c]=N$({defaultProp:t,onChange:r}),s=e!==void 0,m=s?e:o;{const u=i.useRef(e!==void 0);i.useEffect(()=>{const p=u.current;p!==s&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=s},[s,n])}const l=i.useCallback(u=>{if(s){const p=k$(u)?u(e):u;p!==e&&c.current?.(p)}else a(u)},[s,e,a,c]);return[m,l]}function N$({defaultProp:e,onChange:t}){const[r,n]=i.useState(e),o=i.useRef(r),a=i.useRef(t);return C$(()=>{a.current=t},[t]),i.useEffect(()=>{o.current!==r&&(a.current?.(r),o.current=r)},[r,o]),[r,n,a]}function k$(e){return typeof e=="function"}var j$=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ae=j$.reduce((e,t)=>{const r=Z.createSlot(`Primitive.${t}`),n=i.forwardRef((o,a)=>{const{asChild:c,...s}=o,m=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),Q.jsx(m,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function T$(e,t){e&&Ee.flushSync(()=>e.dispatchEvent(t))}function Lo(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>t.current?.(...r),[])}function D$(e,t=globalThis?.document){const r=Lo(e);i.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var O$="DismissableLayer",yp="dismissableLayer.update",P$="dismissableLayer.pointerDownOutside",_$="dismissableLayer.focusOutside",Lh,t1=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),r1=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...m}=e,l=i.useContext(t1),[u,p]=i.useState(null),v=u?.ownerDocument??globalThis?.document,[,h]=i.useState({}),x=Ct(t,R=>p(R)),d=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),y=d.indexOf(g),b=u?d.indexOf(u):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,E=b>=y,C=I$(R=>{const N=R.target,P=[...l.branches].some(L=>L.contains(N));!E||P||(o?.(R),c?.(R),R.defaultPrevented||s?.())},v),T=F$(R=>{const N=R.target;[...l.branches].some(P=>P.contains(N))||(a?.(R),c?.(R),R.defaultPrevented||s?.())},v);return D$(R=>{b===l.layers.size-1&&(n?.(R),!R.defaultPrevented&&s&&(R.preventDefault(),s()))},v),i.useEffect(()=>{if(u)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Lh=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),Wh(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Lh)}},[u,v,r,l]),i.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),Wh())},[u,l]),i.useEffect(()=>{const R=()=>h({});return document.addEventListener(yp,R),()=>document.removeEventListener(yp,R)},[]),Q.jsx(Ae.div,{...m,ref:x,style:{pointerEvents:w?E?"auto":"none":void 0,...e.style},onFocusCapture:Re(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Re(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Re(e.onPointerDownCapture,C.onPointerDownCapture)})});r1.displayName=O$;var M$="DismissableLayerBranch",A$=i.forwardRef((e,t)=>{const r=i.useContext(t1),n=i.useRef(null),o=Ct(t,n);return i.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),Q.jsx(Ae.div,{...e,ref:o})});A$.displayName=M$;function I$(e,t=globalThis?.document){const r=Lo(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let m=function(){n1(P$,r,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=m,t.addEventListener("click",o.current,{once:!0})):m()}else t.removeEventListener("click",o.current);n.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function F$(e,t=globalThis?.document){const r=Lo(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&n1(_$,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Wh(){const e=new CustomEvent(yp);document.dispatchEvent(e)}function n1(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?T$(o,a):o.dispatchEvent(a)}var gd="focusScope.autoFocusOnMount",hd="focusScope.autoFocusOnUnmount",zh={bubbles:!1,cancelable:!0},L$="FocusScope",o1=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,m]=i.useState(null),l=Lo(o),u=Lo(a),p=i.useRef(null),v=Ct(t,d=>m(d)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let d=function(w){if(h.paused||!s)return;const E=w.target;s.contains(E)?p.current=E:xr(p.current,{select:!0})},g=function(w){if(h.paused||!s)return;const E=w.relatedTarget;E!==null&&(s.contains(E)||xr(p.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const E of w)E.removedNodes.length>0&&xr(s)};document.addEventListener("focusin",d),document.addEventListener("focusout",g);const b=new MutationObserver(y);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",d),document.removeEventListener("focusout",g),b.disconnect()}}},[n,s,h.paused]),i.useEffect(()=>{if(s){Yh.add(h);const d=document.activeElement;if(!s.contains(d)){const g=new CustomEvent(gd,zh);s.addEventListener(gd,l),s.dispatchEvent(g),g.defaultPrevented||(W$(B$(a1(s)),{select:!0}),document.activeElement===d&&xr(s))}return()=>{s.removeEventListener(gd,l),setTimeout(()=>{const g=new CustomEvent(hd,zh);s.addEventListener(hd,u),s.dispatchEvent(g),g.defaultPrevented||xr(d??document.body,{select:!0}),s.removeEventListener(hd,u),Yh.remove(h)},0)}}},[s,l,u,h]);const x=i.useCallback(d=>{if(!r&&!n||h.paused)return;const g=d.key==="Tab"&&!d.altKey&&!d.ctrlKey&&!d.metaKey,y=document.activeElement;if(g&&y){const b=d.currentTarget,[w,E]=z$(b);w&&E?!d.shiftKey&&y===E?(d.preventDefault(),r&&xr(w,{select:!0})):d.shiftKey&&y===w&&(d.preventDefault(),r&&xr(E,{select:!0})):y===b&&d.preventDefault()}},[r,n,h.paused]);return Q.jsx(Ae.div,{tabIndex:-1,...c,ref:v,onKeyDown:x})});o1.displayName=L$;function W$(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(xr(n,{select:t}),document.activeElement!==r)return}function z$(e){const t=a1(e),r=$h(t,e),n=$h(t.reverse(),e);return[r,n]}function a1(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function $h(e,t){for(const r of e)if(!$$(r,{upTo:t}))return r}function $$(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Y$(e){return e instanceof HTMLInputElement&&"select"in e}function xr(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&Y$(e)&&t&&e.select()}}var Yh=U$();function U$(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=Uh(e,t),e.unshift(t)},remove(t){e=Uh(e,t),e[0]?.resume()}}}function Uh(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function B$(e){return e.filter(t=>t.tagName!=="A")}var K$="Portal",H$=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);Da(()=>a(!0),[]);const c=r||o&&globalThis?.document?.body;return c?xe.createPortal(Q.jsx(Ae.div,{...n,ref:t}),c):null});H$.displayName=K$;function X$(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var Eu=e=>{const{present:t,children:r}=e,n=V$(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=Ct(n.ref,G$(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};Eu.displayName="Presence";function V$(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,m]=X$(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const l=Js(n.current);a.current=s==="mounted"?l:"none"},[s]),Da(()=>{const l=n.current,u=o.current;if(u!==e){const p=a.current,v=Js(l);e?m("MOUNT"):v==="none"||l?.display==="none"?m("UNMOUNT"):m(u&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,m]),Da(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,p=h=>{const x=Js(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&x&&(m("ANIMATION_END"),!o.current)){const d=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=d)})}},v=h=>{h.target===t&&(a.current=Js(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else m("ANIMATION_END")},[t,m]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:i.useCallback(l=>{n.current=l?getComputedStyle(l):null,r(l)},[])}}function Js(e){return e?.animationName||"none"}function G$(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var yd=0;function q$(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Bh()),document.body.insertAdjacentElement("beforeend",e[1]??Bh()),yd++,()=>{yd===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),yd--}},[])}function Bh(){const e=document.createElement("span");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}var ft=function(){return ft=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},ft.apply(this,arguments)};function s1(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function Z$(e,t,r){for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var vc="right-scroll-bar-position",gc="width-before-scroll-bar",J$="with-scroll-bars-hidden",Q$="--removed-body-scroll-bar-size";function bd(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function eY(e,t){var r=M.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var tY=typeof window<"u"?i.useLayoutEffect:i.useEffect,Kh=new WeakMap;function rY(e,t){var r=eY(null,function(n){return e.forEach(function(o){return bd(o,n)})});return tY(function(){var n=Kh.get(r);if(n){var o=new Set(n),a=new Set(e),c=r.current;o.forEach(function(s){a.has(s)||bd(s,null)}),a.forEach(function(s){o.has(s)||bd(s,c)})}Kh.set(r,e)},[e]),r}function nY(e){return e}function oY(e,t){t===void 0&&(t=nY);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var c=t(a,n);return r.push(c),function(){r=r.filter(function(s){return s!==c})}},assignSyncMedium:function(a){for(n=!0;r.length;){var c=r;r=[],c.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var c=[];if(r.length){var s=r;r=[],s.forEach(a),c=r}var m=function(){var u=c;c=[],u.forEach(a)},l=function(){return Promise.resolve().then(m)};l(),r={push:function(u){c.push(u),l()},filter:function(u){return c=c.filter(u),r}}}};return o}function aY(e){e===void 0&&(e={});var t=oY(null);return t.options=ft({async:!0,ssr:!1},e),t}var i1=function(e){var t=e.sideCar,r=s1(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return i.createElement(n,ft({},r))};i1.isSideCarExport=!0;function sY(e,t){return e.useMedium(t),i1}var c1=aY(),wd=function(){},Su=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:wd,onWheelCapture:wd,onTouchMoveCapture:wd}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,m=e.className,l=e.removeScrollBar,u=e.enabled,p=e.shards,v=e.sideCar,h=e.noRelative,x=e.noIsolation,d=e.inert,g=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,w=e.gapMode,E=s1(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=v,T=rY([r,t]),R=ft(ft({},E),o);return i.createElement(i.Fragment,null,u&&i.createElement(C,{sideCar:c1,removeScrollBar:l,shards:p,noRelative:h,noIsolation:x,inert:d,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),ft(ft({},R),{ref:T})):i.createElement(b,ft({},R,{className:m,ref:T}),s))});Su.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Su.classNames={fullWidth:gc,zeroRight:vc};var iY=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function cY(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=iY();return t&&e.setAttribute("nonce",t),e}function uY(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function lY(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var dY=function(){var e=0,t=null;return{add:function(r){e==0&&(t=cY())&&(uY(t,r),lY(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},fY=function(){var e=dY();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},u1=function(){var e=fY(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},pY={left:0,top:0,right:0,gap:0},xd=function(e){return parseInt(e||"",10)||0},mY=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[xd(r),xd(n),xd(o)]},vY=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return pY;var t=mY(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},gY=u1(),ko="data-scroll-locked",hY=function(e,t,r,n){var o=e.left,a=e.top,c=e.right,s=e.gap;return r===void 0&&(r="margin"),`
|
501
|
-
.`.concat(J$,` {
|
502
|
-
overflow: hidden `).concat(n,`;
|
503
|
-
padding-right: `).concat(s,"px ").concat(n,`;
|
504
|
-
}
|
505
|
-
body[`).concat(ko,`] {
|
506
|
-
overflow: hidden `).concat(n,`;
|
507
|
-
overscroll-behavior: contain;
|
508
|
-
`).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
|
509
|
-
padding-left: `.concat(o,`px;
|
510
|
-
padding-top: `).concat(a,`px;
|
511
|
-
padding-right: `).concat(c,`px;
|
512
|
-
margin-left:0;
|
513
|
-
margin-top:0;
|
514
|
-
margin-right: `).concat(s,"px ").concat(n,`;
|
515
|
-
`),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
|
516
|
-
}
|
517
|
-
|
518
|
-
.`).concat(vc,` {
|
519
|
-
right: `).concat(s,"px ").concat(n,`;
|
520
|
-
}
|
521
|
-
|
522
|
-
.`).concat(gc,` {
|
523
|
-
margin-right: `).concat(s,"px ").concat(n,`;
|
524
|
-
}
|
525
|
-
|
526
|
-
.`).concat(vc," .").concat(vc,` {
|
527
|
-
right: 0 `).concat(n,`;
|
528
|
-
}
|
529
|
-
|
530
|
-
.`).concat(gc," .").concat(gc,` {
|
531
|
-
margin-right: 0 `).concat(n,`;
|
532
|
-
}
|
533
|
-
|
534
|
-
body[`).concat(ko,`] {
|
535
|
-
`).concat(Q$,": ").concat(s,`px;
|
536
|
-
}
|
537
|
-
`)},Hh=function(){var e=parseInt(document.body.getAttribute(ko)||"0",10);return isFinite(e)?e:0},yY=function(){i.useEffect(function(){return document.body.setAttribute(ko,(Hh()+1).toString()),function(){var e=Hh()-1;e<=0?document.body.removeAttribute(ko):document.body.setAttribute(ko,e.toString())}},[])},bY=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;yY();var a=i.useMemo(function(){return vY(o)},[o]);return i.createElement(gY,{styles:hY(a,!t,o,r?"":"!important")})},bp=!1;if(typeof window<"u")try{var Qs=Object.defineProperty({},"passive",{get:function(){return bp=!0,!0}});window.addEventListener("test",Qs,Qs),window.removeEventListener("test",Qs,Qs)}catch{bp=!1}var Bn=bp?{passive:!1}:!1,wY=function(e){return e.tagName==="TEXTAREA"},l1=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!wY(e)&&r[t]==="visible")},xY=function(e){return l1(e,"overflowY")},EY=function(e){return l1(e,"overflowX")},Xh=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=d1(e,n);if(o){var a=f1(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},SY=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},RY=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},d1=function(e,t){return e==="v"?xY(t):EY(t)},f1=function(e,t){return e==="v"?SY(t):RY(t)},CY=function(e,t){return e==="h"&&t==="rtl"?-1:1},NY=function(e,t,r,n,o){var a=CY(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,m=t.contains(s),l=!1,u=c>0,p=0,v=0;do{if(!s)break;var h=f1(e,s),x=h[0],d=h[1],g=h[2],y=d-g-a*x;(x||y)&&d1(e,s)&&(p+=y,v+=x);var b=s.parentNode;s=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!m&&s!==document.body||m&&(t.contains(s)||t===s));return(u&&Math.abs(p)<1||!u&&Math.abs(v)<1)&&(l=!0),l},ei=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Vh=function(e){return[e.deltaX,e.deltaY]},Gh=function(e){return e&&"current"in e?e.current:e},kY=function(e,t){return e[0]===t[0]&&e[1]===t[1]},jY=function(e){return`
|
538
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
539
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
540
|
-
`)},TY=0,Kn=[];function DY(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(TY++)[0],a=i.useState(u1)[0],c=i.useRef(e);i.useEffect(function(){c.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var d=Z$([e.lockRef.current],(e.shards||[]).map(Gh)).filter(Boolean);return d.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),d.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(d,g){if("touches"in d&&d.touches.length===2||d.type==="wheel"&&d.ctrlKey)return!c.current.allowPinchZoom;var y=ei(d),b=r.current,w="deltaX"in d?d.deltaX:b[0]-y[0],E="deltaY"in d?d.deltaY:b[1]-y[1],C,T=d.target,R=Math.abs(w)>Math.abs(E)?"h":"v";if("touches"in d&&R==="h"&&T.type==="range")return!1;var N=Xh(R,T);if(!N)return!0;if(N?C=R:(C=R==="v"?"h":"v",N=Xh(R,T)),!N)return!1;if(!n.current&&"changedTouches"in d&&(w||E)&&(n.current=C),!C)return!0;var P=n.current||C;return NY(P,g,d,P==="h"?w:E)},[]),m=i.useCallback(function(d){var g=d;if(!(!Kn.length||Kn[Kn.length-1]!==a)){var y="deltaY"in g?Vh(g):ei(g),b=t.current.filter(function(C){return C.name===g.type&&(C.target===g.target||g.target===C.shadowParent)&&kY(C.delta,y)})[0];if(b&&b.should){g.cancelable&&g.preventDefault();return}if(!b){var w=(c.current.shards||[]).map(Gh).filter(Boolean).filter(function(C){return C.contains(g.target)}),E=w.length>0?s(g,w[0]):!c.current.noIsolation;E&&g.cancelable&&g.preventDefault()}}},[]),l=i.useCallback(function(d,g,y,b){var w={name:d,delta:g,target:y,should:b,shadowParent:OY(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(E){return E!==w})},1)},[]),u=i.useCallback(function(d){r.current=ei(d),n.current=void 0},[]),p=i.useCallback(function(d){l(d.type,Vh(d),d.target,s(d,e.lockRef.current))},[]),v=i.useCallback(function(d){l(d.type,ei(d),d.target,s(d,e.lockRef.current))},[]);i.useEffect(function(){return Kn.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",m,Bn),document.addEventListener("touchmove",m,Bn),document.addEventListener("touchstart",u,Bn),function(){Kn=Kn.filter(function(d){return d!==a}),document.removeEventListener("wheel",m,Bn),document.removeEventListener("touchmove",m,Bn),document.removeEventListener("touchstart",u,Bn)}},[]);var h=e.removeScrollBar,x=e.inert;return i.createElement(i.Fragment,null,x?i.createElement(a,{styles:jY(o)}):null,h?i.createElement(bY,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function OY(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const PY=sY(c1,DY);var p1=i.forwardRef(function(e,t){return i.createElement(Su,ft({},e,{ref:t,sideCar:PY}))});p1.classNames=Su.classNames;var _Y=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Hn=new WeakMap,ti=new WeakMap,ri={},Ed=0,m1=function(e){return e&&(e.host||m1(e.parentNode))},MY=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=m1(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},AY=function(e,t,r,n){var o=MY(t,Array.isArray(e)?e:[e]);ri[r]||(ri[r]=new WeakMap);var a=ri[r],c=[],s=new Set,m=new Set(o),l=function(p){!p||s.has(p)||(s.add(p),l(p.parentNode))};o.forEach(l);var u=function(p){!p||m.has(p)||Array.prototype.forEach.call(p.children,function(v){if(s.has(v))u(v);else try{var h=v.getAttribute(n),x=h!==null&&h!=="false",d=(Hn.get(v)||0)+1,g=(a.get(v)||0)+1;Hn.set(v,d),a.set(v,g),c.push(v),d===1&&x&&ti.set(v,!0),g===1&&v.setAttribute(r,"true"),x||v.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",v,y)}})};return u(t),s.clear(),Ed++,function(){c.forEach(function(p){var v=Hn.get(p)-1,h=a.get(p)-1;Hn.set(p,v),a.set(p,h),v||(ti.has(p)||p.removeAttribute(n),ti.delete(p)),h||p.removeAttribute(r)}),Ed--,Ed||(Hn=new WeakMap,Hn=new WeakMap,ti=new WeakMap,ri={})}},IY=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=_Y(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),AY(n,o,r,"aria-hidden")):function(){return null}},v1="Dialog",[g1]=xu(v1),[Goe,Yt]=g1(v1),h1="DialogTrigger",FY=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Yt(h1,r),a=Ct(t,o.triggerRef);return Q.jsx(Ae.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Am(o.open),...n,ref:a,onClick:Re(e.onClick,o.onOpenToggle)})});FY.displayName=h1;var LY="DialogPortal",[qoe,y1]=g1(LY,{forceMount:void 0}),Vc="DialogOverlay",WY=i.forwardRef((e,t)=>{const r=y1(Vc,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Yt(Vc,e.__scopeDialog);return a.modal?Q.jsx(Eu,{present:n||a.open,children:Q.jsx($Y,{...o,ref:t})}):null});WY.displayName=Vc;var zY=Z.createSlot("DialogOverlay.RemoveScroll"),$Y=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Yt(Vc,r);return Q.jsx(p1,{as:zY,allowPinchZoom:!0,shards:[o.contentRef],children:Q.jsx(Ae.div,{"data-state":Am(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),en="DialogContent",YY=i.forwardRef((e,t)=>{const r=y1(en,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Yt(en,e.__scopeDialog);return Q.jsx(Eu,{present:n||a.open,children:a.modal?Q.jsx(UY,{...o,ref:t}):Q.jsx(BY,{...o,ref:t})})});YY.displayName=en;var UY=i.forwardRef((e,t)=>{const r=Yt(en,e.__scopeDialog),n=i.useRef(null),o=Ct(t,r.contentRef,n);return i.useEffect(()=>{const a=n.current;if(a)return IY(a)},[]),Q.jsx(b1,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Re(e.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:Re(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&a.preventDefault()}),onFocusOutside:Re(e.onFocusOutside,a=>a.preventDefault())})}),BY=i.forwardRef((e,t)=>{const r=Yt(en,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return Q.jsx(b1,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(n.current||r.triggerRef.current?.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=a.target;r.triggerRef.current?.contains(c)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),b1=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,s=Yt(en,r),m=i.useRef(null),l=Ct(t,m);return q$(),Q.jsxs(Q.Fragment,{children:[Q.jsx(o1,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:Q.jsx(r1,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Am(s.open),...c,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),Q.jsxs(Q.Fragment,{children:[Q.jsx(VY,{titleId:s.titleId}),Q.jsx(qY,{contentRef:m,descriptionId:s.descriptionId})]})]})}),Mm="DialogTitle",KY=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Yt(Mm,r);return Q.jsx(Ae.h2,{id:o.titleId,...n,ref:t})});KY.displayName=Mm;var w1="DialogDescription",HY=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Yt(w1,r);return Q.jsx(Ae.p,{id:o.descriptionId,...n,ref:t})});HY.displayName=w1;var x1="DialogClose",XY=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Yt(x1,r);return Q.jsx(Ae.button,{type:"button",...n,ref:t,onClick:Re(e.onClick,()=>o.onOpenChange(!1))})});XY.displayName=x1;function Am(e){return e?"open":"closed"}var E1="DialogTitleWarning",[Zoe,S1]=x$(E1,{contentName:en,titleName:Mm,docsSlug:"dialog"}),VY=({titleId:e})=>{const t=S1(E1),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
541
|
-
|
542
|
-
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
543
|
-
|
544
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},GY="DialogDescriptionWarning",qY=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${S1(GY).contentName}}.`;return i.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Sd={exports:{}},ia={};/**
|
545
|
-
* @license React
|
546
|
-
* react-jsx-runtime.production.js
|
547
|
-
*
|
548
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
549
|
-
*
|
550
|
-
* This source code is licensed under the MIT license found in the
|
551
|
-
* LICENSE file in the root directory of this source tree.
|
552
|
-
*/var qh;function ZY(){if(qh)return ia;qh=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var c=null;if(a!==void 0&&(c=""+a),o.key!==void 0&&(c=""+o.key),"key"in o){a={};for(var s in o)s!=="key"&&(a[s]=o[s])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:c,ref:o!==void 0?o:null,props:a}}return ia.Fragment=t,ia.jsx=r,ia.jsxs=r,ia}var ni={};/**
|
553
|
-
* @license React
|
554
|
-
* react-jsx-runtime.development.js
|
555
|
-
*
|
556
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
557
|
-
*
|
558
|
-
* This source code is licensed under the MIT license found in the
|
559
|
-
* LICENSE file in the root directory of this source tree.
|
560
|
-
*/var Zh;function JY(){return Zh||(Zh=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(f==null)return null;if(typeof f=="function")return f.$$typeof===L?null:f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case d:return"Fragment";case y:return"Profiler";case g:return"StrictMode";case C:return"Suspense";case T:return"SuspenseList";case P:return"Activity"}if(typeof f=="object")switch(typeof f.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),f.$$typeof){case x:return"Portal";case w:return(f.displayName||"Context")+".Provider";case b:return(f._context.displayName||"Context")+".Consumer";case E:var S=f.render;return f=f.displayName,f||(f=S.displayName||S.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case R:return S=f.displayName||null,S!==null?S:e(f.type)||"Memo";case N:S=f._payload,f=f._init;try{return e(f(S))}catch{}}return null}function t(f){return""+f}function r(f){try{t(f);var S=!1}catch{S=!0}if(S){S=console;var k=S.error,D=typeof Symbol=="function"&&Symbol.toStringTag&&f[Symbol.toStringTag]||f.constructor.name||"Object";return k.call(S,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",D),t(f)}}function n(f){if(f===d)return"<>";if(typeof f=="object"&&f!==null&&f.$$typeof===N)return"<...>";try{var S=e(f);return S?"<"+S+">":"<...>"}catch{return"<...>"}}function o(){var f=I.A;return f===null?null:f.getOwner()}function a(){return Error("react-stack-top-frame")}function c(f){if(B.call(f,"key")){var S=Object.getOwnPropertyDescriptor(f,"key").get;if(S&&S.isReactWarning)return!1}return f.key!==void 0}function s(f,S){function k(){_||(_=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",S))}k.isReactWarning=!0,Object.defineProperty(f,"key",{get:k,configurable:!0})}function m(){var f=e(this.type);return Y[f]||(Y[f]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),f=this.props.ref,f!==void 0?f:null}function l(f,S,k,D,F,A,G,X){return k=A.ref,f={$$typeof:h,type:f,key:S,props:A,_owner:F},(k!==void 0?k:null)!==null?Object.defineProperty(f,"ref",{enumerable:!1,get:m}):Object.defineProperty(f,"ref",{enumerable:!1,value:null}),f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(f,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(f,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:G}),Object.defineProperty(f,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:X}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f}function u(f,S,k,D,F,A,G,X){var O=S.children;if(O!==void 0)if(D)if(K(O)){for(D=0;D<O.length;D++)p(O[D]);Object.freeze&&Object.freeze(O)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else p(O);if(B.call(S,"key")){O=e(f);var z=Object.keys(S).filter(function(ce){return ce!=="key"});D=0<z.length?"{key: someKey, "+z.join(": ..., ")+": ...}":"{key: someKey}",V[O+D]||(z=0<z.length?"{"+z.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
561
|
-
let props = %s;
|
562
|
-
<%s {...props} />
|
563
|
-
React keys must be passed directly to JSX without using spread:
|
564
|
-
let props = %s;
|
565
|
-
<%s key={someKey} {...props} />`,D,O,z,O),V[O+D]=!0)}if(O=null,k!==void 0&&(r(k),O=""+k),c(S)&&(r(S.key),O=""+S.key),"key"in S){k={};for(var q in S)q!=="key"&&(k[q]=S[q])}else k=S;return O&&s(k,typeof f=="function"?f.displayName||f.name||"Unknown":f),l(f,O,A,F,o(),k,G,X)}function p(f){typeof f=="object"&&f!==null&&f.$$typeof===h&&f._store&&(f._store.validated=1)}var v=M,h=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),b=Symbol.for("react.consumer"),w=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),P=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),I=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,K=Array.isArray,$=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(f){return f()}};var _,Y={},H=v.react_stack_bottom_frame.bind(v,a)(),U=$(n(a)),V={};ni.Fragment=d,ni.jsx=function(f,S,k,D,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,S,k,!1,D,F,A?Error("react-stack-top-frame"):H,A?$(n(f)):U)},ni.jsxs=function(f,S,k,D,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,S,k,!0,D,F,A?Error("react-stack-top-frame"):H,A?$(n(f)):U)}})()),ni}var Jh;function QY(){return Jh||(Jh=1,process.env.NODE_ENV==="production"?Sd.exports=ZY():Sd.exports=JY()),Sd.exports}var ee=QY();M.createContext({locale:void 0});var eU=(e,t,r,n,o,a,c,s)=>{let m=document.documentElement,l=["light","dark"];function u(h){(Array.isArray(e)?e:[e]).forEach(x=>{let d=x==="class",g=d&&a?o.map(y=>a[y]||y):o;d?(m.classList.remove(...g),m.classList.add(a&&a[h]?a[h]:h)):m.setAttribute(x,h)}),p(h)}function p(h){s&&l.includes(h)&&(m.style.colorScheme=h)}function v(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(n)u(n);else try{let h=localStorage.getItem(t)||r,x=c&&h==="system"?v():h;u(x)}catch{}};i.createContext(void 0);i.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:o,defaultTheme:a,value:c,themes:s,nonce:m,scriptProps:l})=>{let u=JSON.stringify([r,t,a,e,s,c,n,o]).slice(1,-1);return i.createElement("script",{...l,suppressHydrationWarning:!0,nonce:typeof window>"u"?m:"",dangerouslySetInnerHTML:{__html:`(${eU.toString()})(${u})`}})});ie.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});ie.cva("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function Ce(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}function Qh(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function tU(...e){return t=>{let r=!1;const n=e.map(o=>{const a=Qh(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():Qh(e[o],null)}}}}function Nt(...e){return i.useCallback(tU(...e),e)}function rU(e,t){const r=i.createContext(t),n=a=>{const{children:c,...s}=a,m=i.useMemo(()=>s,Object.values(s));return ee.jsx(r.Provider,{value:m,children:c})};n.displayName=e+"Provider";function o(a){const c=i.useContext(r);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function Ru(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),m=r.length;r=[...r,c];const l=p=>{const{scope:v,children:h,...x}=p,d=v?.[e]?.[m]||s,g=i.useMemo(()=>x,Object.values(x));return ee.jsx(d.Provider,{value:g,children:h})};l.displayName=a+"Provider";function u(p,v){const h=v?.[e]?.[m]||s,x=i.useContext(h);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[l,u]}const o=()=>{const a=r.map(c=>i.createContext(c));return function(c){const s=c?.[e]||a;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:s}}),[c,s])}};return o.scopeName=e,[n,nU(o,...t)]}function nU(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){const a=n.reduce((c,{useScope:s,scopeName:m})=>{const l=s(o)[`__scope${m}`];return{...c,...l}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var Oa=globalThis?.document?i.useLayoutEffect:()=>{},oU=i[" useId ".trim().toString()]||(()=>{}),aU=0;function R1(e){const[t,r]=i.useState(oU());return Oa(()=>{r(n=>n??String(aU++))},[e]),t?`radix-${t}`:""}var sU=i[" useInsertionEffect ".trim().toString()]||Oa;function C1({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,c]=iU({defaultProp:t,onChange:r}),s=e!==void 0,m=s?e:o;{const u=i.useRef(e!==void 0);i.useEffect(()=>{const p=u.current;p!==s&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=s},[s,n])}const l=i.useCallback(u=>{if(s){const p=cU(u)?u(e):u;p!==e&&c.current?.(p)}else a(u)},[s,e,a,c]);return[m,l]}function iU({defaultProp:e,onChange:t}){const[r,n]=i.useState(e),o=i.useRef(r),a=i.useRef(t);return sU(()=>{a.current=t},[t]),i.useEffect(()=>{o.current!==r&&(a.current?.(r),o.current=r)},[r,o]),[r,n,a]}function cU(e){return typeof e=="function"}var uU=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ie=uU.reduce((e,t)=>{const r=Z.createSlot(`Primitive.${t}`),n=i.forwardRef((o,a)=>{const{asChild:c,...s}=o,m=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),ee.jsx(m,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function lU(e,t){e&&Ee.flushSync(()=>e.dispatchEvent(t))}function Wo(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>t.current?.(...r),[])}function dU(e,t=globalThis?.document){const r=Wo(e);i.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var fU="DismissableLayer",wp="dismissableLayer.update",pU="dismissableLayer.pointerDownOutside",mU="dismissableLayer.focusOutside",ey,N1=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),k1=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...m}=e,l=i.useContext(N1),[u,p]=i.useState(null),v=u?.ownerDocument??globalThis?.document,[,h]=i.useState({}),x=Nt(t,R=>p(R)),d=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),y=d.indexOf(g),b=u?d.indexOf(u):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,E=b>=y,C=hU(R=>{const N=R.target,P=[...l.branches].some(L=>L.contains(N));!E||P||(o?.(R),c?.(R),R.defaultPrevented||s?.())},v),T=yU(R=>{const N=R.target;[...l.branches].some(P=>P.contains(N))||(a?.(R),c?.(R),R.defaultPrevented||s?.())},v);return dU(R=>{b===l.layers.size-1&&(n?.(R),!R.defaultPrevented&&s&&(R.preventDefault(),s()))},v),i.useEffect(()=>{if(u)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(ey=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),ty(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=ey)}},[u,v,r,l]),i.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),ty())},[u,l]),i.useEffect(()=>{const R=()=>h({});return document.addEventListener(wp,R),()=>document.removeEventListener(wp,R)},[]),ee.jsx(Ie.div,{...m,ref:x,style:{pointerEvents:w?E?"auto":"none":void 0,...e.style},onFocusCapture:Ce(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Ce(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Ce(e.onPointerDownCapture,C.onPointerDownCapture)})});k1.displayName=fU;var vU="DismissableLayerBranch",gU=i.forwardRef((e,t)=>{const r=i.useContext(N1),n=i.useRef(null),o=Nt(t,n);return i.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),ee.jsx(Ie.div,{...e,ref:o})});gU.displayName=vU;function hU(e,t=globalThis?.document){const r=Wo(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let m=function(){j1(pU,r,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=m,t.addEventListener("click",o.current,{once:!0})):m()}else t.removeEventListener("click",o.current);n.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function yU(e,t=globalThis?.document){const r=Wo(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&j1(mU,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function ty(){const e=new CustomEvent(wp);document.dispatchEvent(e)}function j1(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?lU(o,a):o.dispatchEvent(a)}var Rd="focusScope.autoFocusOnMount",Cd="focusScope.autoFocusOnUnmount",ry={bubbles:!1,cancelable:!0},bU="FocusScope",T1=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,m]=i.useState(null),l=Wo(o),u=Wo(a),p=i.useRef(null),v=Nt(t,d=>m(d)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let d=function(w){if(h.paused||!s)return;const E=w.target;s.contains(E)?p.current=E:Er(p.current,{select:!0})},g=function(w){if(h.paused||!s)return;const E=w.relatedTarget;E!==null&&(s.contains(E)||Er(p.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const E of w)E.removedNodes.length>0&&Er(s)};document.addEventListener("focusin",d),document.addEventListener("focusout",g);const b=new MutationObserver(y);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",d),document.removeEventListener("focusout",g),b.disconnect()}}},[n,s,h.paused]),i.useEffect(()=>{if(s){oy.add(h);const d=document.activeElement;if(!s.contains(d)){const g=new CustomEvent(Rd,ry);s.addEventListener(Rd,l),s.dispatchEvent(g),g.defaultPrevented||(wU(CU(D1(s)),{select:!0}),document.activeElement===d&&Er(s))}return()=>{s.removeEventListener(Rd,l),setTimeout(()=>{const g=new CustomEvent(Cd,ry);s.addEventListener(Cd,u),s.dispatchEvent(g),g.defaultPrevented||Er(d??document.body,{select:!0}),s.removeEventListener(Cd,u),oy.remove(h)},0)}}},[s,l,u,h]);const x=i.useCallback(d=>{if(!r&&!n||h.paused)return;const g=d.key==="Tab"&&!d.altKey&&!d.ctrlKey&&!d.metaKey,y=document.activeElement;if(g&&y){const b=d.currentTarget,[w,E]=xU(b);w&&E?!d.shiftKey&&y===E?(d.preventDefault(),r&&Er(w,{select:!0})):d.shiftKey&&y===w&&(d.preventDefault(),r&&Er(E,{select:!0})):y===b&&d.preventDefault()}},[r,n,h.paused]);return ee.jsx(Ie.div,{tabIndex:-1,...c,ref:v,onKeyDown:x})});T1.displayName=bU;function wU(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Er(n,{select:t}),document.activeElement!==r)return}function xU(e){const t=D1(e),r=ny(t,e),n=ny(t.reverse(),e);return[r,n]}function D1(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function ny(e,t){for(const r of e)if(!EU(r,{upTo:t}))return r}function EU(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function SU(e){return e instanceof HTMLInputElement&&"select"in e}function Er(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&SU(e)&&t&&e.select()}}var oy=RU();function RU(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=ay(e,t),e.unshift(t)},remove(t){e=ay(e,t),e[0]?.resume()}}}function ay(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function CU(e){return e.filter(t=>t.tagName!=="A")}var NU="Portal",kU=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);Oa(()=>a(!0),[]);const c=r||o&&globalThis?.document?.body;return c?xe.createPortal(ee.jsx(Ie.div,{...n,ref:t}),c):null});kU.displayName=NU;function jU(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var Cu=e=>{const{present:t,children:r}=e,n=TU(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=Nt(n.ref,DU(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};Cu.displayName="Presence";function TU(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,m]=jU(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const l=oi(n.current);a.current=s==="mounted"?l:"none"},[s]),Oa(()=>{const l=n.current,u=o.current;if(u!==e){const p=a.current,v=oi(l);e?m("MOUNT"):v==="none"||l?.display==="none"?m("UNMOUNT"):m(u&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,m]),Oa(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,p=h=>{const x=oi(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&x&&(m("ANIMATION_END"),!o.current)){const d=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=d)})}},v=h=>{h.target===t&&(a.current=oi(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else m("ANIMATION_END")},[t,m]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:i.useCallback(l=>{n.current=l?getComputedStyle(l):null,r(l)},[])}}function oi(e){return e?.animationName||"none"}function DU(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Nd=0;function OU(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??sy()),document.body.insertAdjacentElement("beforeend",e[1]??sy()),Nd++,()=>{Nd===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Nd--}},[])}function sy(){const e=document.createElement("span");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}var pt=function(){return pt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},pt.apply(this,arguments)};function O1(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function PU(e,t,r){for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var hc="right-scroll-bar-position",yc="width-before-scroll-bar",_U="with-scroll-bars-hidden",MU="--removed-body-scroll-bar-size";function kd(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function AU(e,t){var r=M.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var IU=typeof window<"u"?i.useLayoutEffect:i.useEffect,iy=new WeakMap;function FU(e,t){var r=AU(null,function(n){return e.forEach(function(o){return kd(o,n)})});return IU(function(){var n=iy.get(r);if(n){var o=new Set(n),a=new Set(e),c=r.current;o.forEach(function(s){a.has(s)||kd(s,null)}),a.forEach(function(s){o.has(s)||kd(s,c)})}iy.set(r,e)},[e]),r}function LU(e){return e}function WU(e,t){t===void 0&&(t=LU);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var c=t(a,n);return r.push(c),function(){r=r.filter(function(s){return s!==c})}},assignSyncMedium:function(a){for(n=!0;r.length;){var c=r;r=[],c.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var c=[];if(r.length){var s=r;r=[],s.forEach(a),c=r}var m=function(){var u=c;c=[],u.forEach(a)},l=function(){return Promise.resolve().then(m)};l(),r={push:function(u){c.push(u),l()},filter:function(u){return c=c.filter(u),r}}}};return o}function zU(e){e===void 0&&(e={});var t=WU(null);return t.options=pt({async:!0,ssr:!1},e),t}var P1=function(e){var t=e.sideCar,r=O1(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return i.createElement(n,pt({},r))};P1.isSideCarExport=!0;function $U(e,t){return e.useMedium(t),P1}var _1=zU(),jd=function(){},Nu=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:jd,onWheelCapture:jd,onTouchMoveCapture:jd}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,m=e.className,l=e.removeScrollBar,u=e.enabled,p=e.shards,v=e.sideCar,h=e.noRelative,x=e.noIsolation,d=e.inert,g=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,w=e.gapMode,E=O1(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=v,T=FU([r,t]),R=pt(pt({},E),o);return i.createElement(i.Fragment,null,u&&i.createElement(C,{sideCar:_1,removeScrollBar:l,shards:p,noRelative:h,noIsolation:x,inert:d,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),pt(pt({},R),{ref:T})):i.createElement(b,pt({},R,{className:m,ref:T}),s))});Nu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Nu.classNames={fullWidth:yc,zeroRight:hc};var YU=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function UU(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=YU();return t&&e.setAttribute("nonce",t),e}function BU(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function KU(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var HU=function(){var e=0,t=null;return{add:function(r){e==0&&(t=UU())&&(BU(t,r),KU(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},XU=function(){var e=HU();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},M1=function(){var e=XU(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},VU={left:0,top:0,right:0,gap:0},Td=function(e){return parseInt(e||"",10)||0},GU=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Td(r),Td(n),Td(o)]},qU=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return VU;var t=GU(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},ZU=M1(),jo="data-scroll-locked",JU=function(e,t,r,n){var o=e.left,a=e.top,c=e.right,s=e.gap;return r===void 0&&(r="margin"),`
|
566
|
-
.`.concat(_U,` {
|
567
|
-
overflow: hidden `).concat(n,`;
|
568
|
-
padding-right: `).concat(s,"px ").concat(n,`;
|
569
|
-
}
|
570
|
-
body[`).concat(jo,`] {
|
571
|
-
overflow: hidden `).concat(n,`;
|
572
|
-
overscroll-behavior: contain;
|
573
|
-
`).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
|
574
|
-
padding-left: `.concat(o,`px;
|
575
|
-
padding-top: `).concat(a,`px;
|
576
|
-
padding-right: `).concat(c,`px;
|
577
|
-
margin-left:0;
|
578
|
-
margin-top:0;
|
579
|
-
margin-right: `).concat(s,"px ").concat(n,`;
|
580
|
-
`),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
|
581
|
-
}
|
582
|
-
|
583
|
-
.`).concat(hc,` {
|
584
|
-
right: `).concat(s,"px ").concat(n,`;
|
585
|
-
}
|
586
|
-
|
587
|
-
.`).concat(yc,` {
|
588
|
-
margin-right: `).concat(s,"px ").concat(n,`;
|
589
|
-
}
|
590
|
-
|
591
|
-
.`).concat(hc," .").concat(hc,` {
|
592
|
-
right: 0 `).concat(n,`;
|
593
|
-
}
|
594
|
-
|
595
|
-
.`).concat(yc," .").concat(yc,` {
|
596
|
-
margin-right: 0 `).concat(n,`;
|
597
|
-
}
|
598
|
-
|
599
|
-
body[`).concat(jo,`] {
|
600
|
-
`).concat(MU,": ").concat(s,`px;
|
601
|
-
}
|
602
|
-
`)},cy=function(){var e=parseInt(document.body.getAttribute(jo)||"0",10);return isFinite(e)?e:0},QU=function(){i.useEffect(function(){return document.body.setAttribute(jo,(cy()+1).toString()),function(){var e=cy()-1;e<=0?document.body.removeAttribute(jo):document.body.setAttribute(jo,e.toString())}},[])},eB=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;QU();var a=i.useMemo(function(){return qU(o)},[o]);return i.createElement(ZU,{styles:JU(a,!t,o,r?"":"!important")})},xp=!1;if(typeof window<"u")try{var ai=Object.defineProperty({},"passive",{get:function(){return xp=!0,!0}});window.addEventListener("test",ai,ai),window.removeEventListener("test",ai,ai)}catch{xp=!1}var Xn=xp?{passive:!1}:!1,tB=function(e){return e.tagName==="TEXTAREA"},A1=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!tB(e)&&r[t]==="visible")},rB=function(e){return A1(e,"overflowY")},nB=function(e){return A1(e,"overflowX")},uy=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=I1(e,n);if(o){var a=F1(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},oB=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},aB=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},I1=function(e,t){return e==="v"?rB(t):nB(t)},F1=function(e,t){return e==="v"?oB(t):aB(t)},sB=function(e,t){return e==="h"&&t==="rtl"?-1:1},iB=function(e,t,r,n,o){var a=sB(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,m=t.contains(s),l=!1,u=c>0,p=0,v=0;do{if(!s)break;var h=F1(e,s),x=h[0],d=h[1],g=h[2],y=d-g-a*x;(x||y)&&I1(e,s)&&(p+=y,v+=x);var b=s.parentNode;s=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!m&&s!==document.body||m&&(t.contains(s)||t===s));return(u&&Math.abs(p)<1||!u&&Math.abs(v)<1)&&(l=!0),l},si=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ly=function(e){return[e.deltaX,e.deltaY]},dy=function(e){return e&&"current"in e?e.current:e},cB=function(e,t){return e[0]===t[0]&&e[1]===t[1]},uB=function(e){return`
|
603
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
604
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
605
|
-
`)},lB=0,Vn=[];function dB(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(lB++)[0],a=i.useState(M1)[0],c=i.useRef(e);i.useEffect(function(){c.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var d=PU([e.lockRef.current],(e.shards||[]).map(dy)).filter(Boolean);return d.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),d.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(d,g){if("touches"in d&&d.touches.length===2||d.type==="wheel"&&d.ctrlKey)return!c.current.allowPinchZoom;var y=si(d),b=r.current,w="deltaX"in d?d.deltaX:b[0]-y[0],E="deltaY"in d?d.deltaY:b[1]-y[1],C,T=d.target,R=Math.abs(w)>Math.abs(E)?"h":"v";if("touches"in d&&R==="h"&&T.type==="range")return!1;var N=uy(R,T);if(!N)return!0;if(N?C=R:(C=R==="v"?"h":"v",N=uy(R,T)),!N)return!1;if(!n.current&&"changedTouches"in d&&(w||E)&&(n.current=C),!C)return!0;var P=n.current||C;return iB(P,g,d,P==="h"?w:E)},[]),m=i.useCallback(function(d){var g=d;if(!(!Vn.length||Vn[Vn.length-1]!==a)){var y="deltaY"in g?ly(g):si(g),b=t.current.filter(function(C){return C.name===g.type&&(C.target===g.target||g.target===C.shadowParent)&&cB(C.delta,y)})[0];if(b&&b.should){g.cancelable&&g.preventDefault();return}if(!b){var w=(c.current.shards||[]).map(dy).filter(Boolean).filter(function(C){return C.contains(g.target)}),E=w.length>0?s(g,w[0]):!c.current.noIsolation;E&&g.cancelable&&g.preventDefault()}}},[]),l=i.useCallback(function(d,g,y,b){var w={name:d,delta:g,target:y,should:b,shadowParent:fB(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(E){return E!==w})},1)},[]),u=i.useCallback(function(d){r.current=si(d),n.current=void 0},[]),p=i.useCallback(function(d){l(d.type,ly(d),d.target,s(d,e.lockRef.current))},[]),v=i.useCallback(function(d){l(d.type,si(d),d.target,s(d,e.lockRef.current))},[]);i.useEffect(function(){return Vn.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",m,Xn),document.addEventListener("touchmove",m,Xn),document.addEventListener("touchstart",u,Xn),function(){Vn=Vn.filter(function(d){return d!==a}),document.removeEventListener("wheel",m,Xn),document.removeEventListener("touchmove",m,Xn),document.removeEventListener("touchstart",u,Xn)}},[]);var h=e.removeScrollBar,x=e.inert;return i.createElement(i.Fragment,null,x?i.createElement(a,{styles:uB(o)}):null,h?i.createElement(eB,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function fB(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const pB=$U(_1,dB);var L1=i.forwardRef(function(e,t){return i.createElement(Nu,pt({},e,{ref:t,sideCar:pB}))});L1.classNames=Nu.classNames;var mB=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Gn=new WeakMap,ii=new WeakMap,ci={},Dd=0,W1=function(e){return e&&(e.host||W1(e.parentNode))},vB=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=W1(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},gB=function(e,t,r,n){var o=vB(t,Array.isArray(e)?e:[e]);ci[r]||(ci[r]=new WeakMap);var a=ci[r],c=[],s=new Set,m=new Set(o),l=function(p){!p||s.has(p)||(s.add(p),l(p.parentNode))};o.forEach(l);var u=function(p){!p||m.has(p)||Array.prototype.forEach.call(p.children,function(v){if(s.has(v))u(v);else try{var h=v.getAttribute(n),x=h!==null&&h!=="false",d=(Gn.get(v)||0)+1,g=(a.get(v)||0)+1;Gn.set(v,d),a.set(v,g),c.push(v),d===1&&x&&ii.set(v,!0),g===1&&v.setAttribute(r,"true"),x||v.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",v,y)}})};return u(t),s.clear(),Dd++,function(){c.forEach(function(p){var v=Gn.get(p)-1,h=a.get(p)-1;Gn.set(p,v),a.set(p,h),v||(ii.has(p)||p.removeAttribute(n),ii.delete(p)),h||p.removeAttribute(r)}),Dd--,Dd||(Gn=new WeakMap,Gn=new WeakMap,ii=new WeakMap,ci={})}},hB=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=mB(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),gB(n,o,r,"aria-hidden")):function(){return null}},z1="Dialog",[$1]=Ru(z1),[Joe,Ut]=$1(z1),Y1="DialogTrigger",yB=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ut(Y1,r),a=Nt(t,o.triggerRef);return ee.jsx(Ie.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Fm(o.open),...n,ref:a,onClick:Ce(e.onClick,o.onOpenToggle)})});yB.displayName=Y1;var bB="DialogPortal",[Qoe,U1]=$1(bB,{forceMount:void 0}),Gc="DialogOverlay",wB=i.forwardRef((e,t)=>{const r=U1(Gc,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Ut(Gc,e.__scopeDialog);return a.modal?ee.jsx(Cu,{present:n||a.open,children:ee.jsx(EB,{...o,ref:t})}):null});wB.displayName=Gc;var xB=Z.createSlot("DialogOverlay.RemoveScroll"),EB=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ut(Gc,r);return ee.jsx(L1,{as:xB,allowPinchZoom:!0,shards:[o.contentRef],children:ee.jsx(Ie.div,{"data-state":Fm(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),tn="DialogContent",SB=i.forwardRef((e,t)=>{const r=U1(tn,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Ut(tn,e.__scopeDialog);return ee.jsx(Cu,{present:n||a.open,children:a.modal?ee.jsx(RB,{...o,ref:t}):ee.jsx(CB,{...o,ref:t})})});SB.displayName=tn;var RB=i.forwardRef((e,t)=>{const r=Ut(tn,e.__scopeDialog),n=i.useRef(null),o=Nt(t,r.contentRef,n);return i.useEffect(()=>{const a=n.current;if(a)return hB(a)},[]),ee.jsx(B1,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ce(e.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:Ce(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&a.preventDefault()}),onFocusOutside:Ce(e.onFocusOutside,a=>a.preventDefault())})}),CB=i.forwardRef((e,t)=>{const r=Ut(tn,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return ee.jsx(B1,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(n.current||r.triggerRef.current?.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=a.target;r.triggerRef.current?.contains(c)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),B1=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,s=Ut(tn,r),m=i.useRef(null),l=Nt(t,m);return OU(),ee.jsxs(ee.Fragment,{children:[ee.jsx(T1,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:ee.jsx(k1,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Fm(s.open),...c,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),ee.jsxs(ee.Fragment,{children:[ee.jsx(TB,{titleId:s.titleId}),ee.jsx(OB,{contentRef:m,descriptionId:s.descriptionId})]})]})}),Im="DialogTitle",NB=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ut(Im,r);return ee.jsx(Ie.h2,{id:o.titleId,...n,ref:t})});NB.displayName=Im;var K1="DialogDescription",kB=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ut(K1,r);return ee.jsx(Ie.p,{id:o.descriptionId,...n,ref:t})});kB.displayName=K1;var H1="DialogClose",jB=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ut(H1,r);return ee.jsx(Ie.button,{type:"button",...n,ref:t,onClick:Ce(e.onClick,()=>o.onOpenChange(!1))})});jB.displayName=H1;function Fm(e){return e?"open":"closed"}var X1="DialogTitleWarning",[eae,V1]=rU(X1,{contentName:tn,titleName:Im,docsSlug:"dialog"}),TB=({titleId:e})=>{const t=V1(X1),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
606
|
-
|
607
|
-
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
608
|
-
|
609
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},DB="DialogDescriptionWarning",OB=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${V1(DB).contentName}}.`;return i.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Od={exports:{}},ca={};/**
|
610
|
-
* @license React
|
611
|
-
* react-jsx-runtime.production.js
|
612
|
-
*
|
613
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
614
|
-
*
|
615
|
-
* This source code is licensed under the MIT license found in the
|
616
|
-
* LICENSE file in the root directory of this source tree.
|
617
|
-
*/var fy;function PB(){if(fy)return ca;fy=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var c=null;if(a!==void 0&&(c=""+a),o.key!==void 0&&(c=""+o.key),"key"in o){a={};for(var s in o)s!=="key"&&(a[s]=o[s])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:c,ref:o!==void 0?o:null,props:a}}return ca.Fragment=t,ca.jsx=r,ca.jsxs=r,ca}var ui={};/**
|
618
|
-
* @license React
|
619
|
-
* react-jsx-runtime.development.js
|
620
|
-
*
|
621
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
622
|
-
*
|
623
|
-
* This source code is licensed under the MIT license found in the
|
624
|
-
* LICENSE file in the root directory of this source tree.
|
625
|
-
*/var py;function _B(){return py||(py=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(f==null)return null;if(typeof f=="function")return f.$$typeof===L?null:f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case d:return"Fragment";case y:return"Profiler";case g:return"StrictMode";case C:return"Suspense";case T:return"SuspenseList";case P:return"Activity"}if(typeof f=="object")switch(typeof f.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),f.$$typeof){case x:return"Portal";case w:return(f.displayName||"Context")+".Provider";case b:return(f._context.displayName||"Context")+".Consumer";case E:var S=f.render;return f=f.displayName,f||(f=S.displayName||S.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case R:return S=f.displayName||null,S!==null?S:e(f.type)||"Memo";case N:S=f._payload,f=f._init;try{return e(f(S))}catch{}}return null}function t(f){return""+f}function r(f){try{t(f);var S=!1}catch{S=!0}if(S){S=console;var k=S.error,D=typeof Symbol=="function"&&Symbol.toStringTag&&f[Symbol.toStringTag]||f.constructor.name||"Object";return k.call(S,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",D),t(f)}}function n(f){if(f===d)return"<>";if(typeof f=="object"&&f!==null&&f.$$typeof===N)return"<...>";try{var S=e(f);return S?"<"+S+">":"<...>"}catch{return"<...>"}}function o(){var f=I.A;return f===null?null:f.getOwner()}function a(){return Error("react-stack-top-frame")}function c(f){if(B.call(f,"key")){var S=Object.getOwnPropertyDescriptor(f,"key").get;if(S&&S.isReactWarning)return!1}return f.key!==void 0}function s(f,S){function k(){_||(_=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",S))}k.isReactWarning=!0,Object.defineProperty(f,"key",{get:k,configurable:!0})}function m(){var f=e(this.type);return Y[f]||(Y[f]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),f=this.props.ref,f!==void 0?f:null}function l(f,S,k,D,F,A,G,X){return k=A.ref,f={$$typeof:h,type:f,key:S,props:A,_owner:F},(k!==void 0?k:null)!==null?Object.defineProperty(f,"ref",{enumerable:!1,get:m}):Object.defineProperty(f,"ref",{enumerable:!1,value:null}),f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(f,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(f,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:G}),Object.defineProperty(f,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:X}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f}function u(f,S,k,D,F,A,G,X){var O=S.children;if(O!==void 0)if(D)if(K(O)){for(D=0;D<O.length;D++)p(O[D]);Object.freeze&&Object.freeze(O)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else p(O);if(B.call(S,"key")){O=e(f);var z=Object.keys(S).filter(function(ce){return ce!=="key"});D=0<z.length?"{key: someKey, "+z.join(": ..., ")+": ...}":"{key: someKey}",V[O+D]||(z=0<z.length?"{"+z.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
626
|
-
let props = %s;
|
627
|
-
<%s {...props} />
|
628
|
-
React keys must be passed directly to JSX without using spread:
|
629
|
-
let props = %s;
|
630
|
-
<%s key={someKey} {...props} />`,D,O,z,O),V[O+D]=!0)}if(O=null,k!==void 0&&(r(k),O=""+k),c(S)&&(r(S.key),O=""+S.key),"key"in S){k={};for(var q in S)q!=="key"&&(k[q]=S[q])}else k=S;return O&&s(k,typeof f=="function"?f.displayName||f.name||"Unknown":f),l(f,O,A,F,o(),k,G,X)}function p(f){typeof f=="object"&&f!==null&&f.$$typeof===h&&f._store&&(f._store.validated=1)}var v=M,h=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),b=Symbol.for("react.consumer"),w=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),P=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),I=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,K=Array.isArray,$=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(f){return f()}};var _,Y={},H=v.react_stack_bottom_frame.bind(v,a)(),U=$(n(a)),V={};ui.Fragment=d,ui.jsx=function(f,S,k,D,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,S,k,!1,D,F,A?Error("react-stack-top-frame"):H,A?$(n(f)):U)},ui.jsxs=function(f,S,k,D,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,S,k,!0,D,F,A?Error("react-stack-top-frame"):H,A?$(n(f)):U)}})()),ui}var my;function MB(){return my||(my=1,process.env.NODE_ENV==="production"?Od.exports=PB():Od.exports=_B()),Od.exports}var te=MB();M.createContext({locale:void 0});var AB=(e,t,r,n,o,a,c,s)=>{let m=document.documentElement,l=["light","dark"];function u(h){(Array.isArray(e)?e:[e]).forEach(x=>{let d=x==="class",g=d&&a?o.map(y=>a[y]||y):o;d?(m.classList.remove(...g),m.classList.add(a&&a[h]?a[h]:h)):m.setAttribute(x,h)}),p(h)}function p(h){s&&l.includes(h)&&(m.style.colorScheme=h)}function v(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(n)u(n);else try{let h=localStorage.getItem(t)||r,x=c&&h==="system"?v():h;u(x)}catch{}};i.createContext(void 0);i.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:o,defaultTheme:a,value:c,themes:s,nonce:m,scriptProps:l})=>{let u=JSON.stringify([r,t,a,e,s,c,n,o]).slice(1,-1);return i.createElement("script",{...l,suppressHydrationWarning:!0,nonce:typeof window>"u"?m:"",dangerouslySetInnerHTML:{__html:`(${AB.toString()})(${u})`}})});ie.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});ie.cva("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function Ne(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}function vy(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function IB(...e){return t=>{let r=!1;const n=e.map(o=>{const a=vy(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():vy(e[o],null)}}}}function kt(...e){return i.useCallback(IB(...e),e)}function FB(e,t){const r=i.createContext(t),n=a=>{const{children:c,...s}=a,m=i.useMemo(()=>s,Object.values(s));return te.jsx(r.Provider,{value:m,children:c})};n.displayName=e+"Provider";function o(a){const c=i.useContext(r);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function ku(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),m=r.length;r=[...r,c];const l=p=>{const{scope:v,children:h,...x}=p,d=v?.[e]?.[m]||s,g=i.useMemo(()=>x,Object.values(x));return te.jsx(d.Provider,{value:g,children:h})};l.displayName=a+"Provider";function u(p,v){const h=v?.[e]?.[m]||s,x=i.useContext(h);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[l,u]}const o=()=>{const a=r.map(c=>i.createContext(c));return function(c){const s=c?.[e]||a;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:s}}),[c,s])}};return o.scopeName=e,[n,LB(o,...t)]}function LB(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){const a=n.reduce((c,{useScope:s,scopeName:m})=>{const l=s(o)[`__scope${m}`];return{...c,...l}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var Pa=globalThis?.document?i.useLayoutEffect:()=>{},WB=i[" useId ".trim().toString()]||(()=>{}),zB=0;function G1(e){const[t,r]=i.useState(WB());return Pa(()=>{r(n=>n??String(zB++))},[e]),t?`radix-${t}`:""}var $B=i[" useInsertionEffect ".trim().toString()]||Pa;function q1({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,c]=YB({defaultProp:t,onChange:r}),s=e!==void 0,m=s?e:o;{const u=i.useRef(e!==void 0);i.useEffect(()=>{const p=u.current;p!==s&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=s},[s,n])}const l=i.useCallback(u=>{if(s){const p=UB(u)?u(e):u;p!==e&&c.current?.(p)}else a(u)},[s,e,a,c]);return[m,l]}function YB({defaultProp:e,onChange:t}){const[r,n]=i.useState(e),o=i.useRef(r),a=i.useRef(t);return $B(()=>{a.current=t},[t]),i.useEffect(()=>{o.current!==r&&(a.current?.(r),o.current=r)},[r,o]),[r,n,a]}function UB(e){return typeof e=="function"}var BB=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Fe=BB.reduce((e,t)=>{const r=Z.createSlot(`Primitive.${t}`),n=i.forwardRef((o,a)=>{const{asChild:c,...s}=o,m=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),te.jsx(m,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function KB(e,t){e&&Ee.flushSync(()=>e.dispatchEvent(t))}function zo(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>t.current?.(...r),[])}function HB(e,t=globalThis?.document){const r=zo(e);i.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var XB="DismissableLayer",Ep="dismissableLayer.update",VB="dismissableLayer.pointerDownOutside",GB="dismissableLayer.focusOutside",gy,Z1=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),J1=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...m}=e,l=i.useContext(Z1),[u,p]=i.useState(null),v=u?.ownerDocument??globalThis?.document,[,h]=i.useState({}),x=kt(t,R=>p(R)),d=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),y=d.indexOf(g),b=u?d.indexOf(u):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,E=b>=y,C=JB(R=>{const N=R.target,P=[...l.branches].some(L=>L.contains(N));!E||P||(o?.(R),c?.(R),R.defaultPrevented||s?.())},v),T=QB(R=>{const N=R.target;[...l.branches].some(P=>P.contains(N))||(a?.(R),c?.(R),R.defaultPrevented||s?.())},v);return HB(R=>{b===l.layers.size-1&&(n?.(R),!R.defaultPrevented&&s&&(R.preventDefault(),s()))},v),i.useEffect(()=>{if(u)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(gy=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),hy(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=gy)}},[u,v,r,l]),i.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),hy())},[u,l]),i.useEffect(()=>{const R=()=>h({});return document.addEventListener(Ep,R),()=>document.removeEventListener(Ep,R)},[]),te.jsx(Fe.div,{...m,ref:x,style:{pointerEvents:w?E?"auto":"none":void 0,...e.style},onFocusCapture:Ne(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Ne(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Ne(e.onPointerDownCapture,C.onPointerDownCapture)})});J1.displayName=XB;var qB="DismissableLayerBranch",ZB=i.forwardRef((e,t)=>{const r=i.useContext(Z1),n=i.useRef(null),o=kt(t,n);return i.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),te.jsx(Fe.div,{...e,ref:o})});ZB.displayName=qB;function JB(e,t=globalThis?.document){const r=zo(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let m=function(){Q1(VB,r,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=m,t.addEventListener("click",o.current,{once:!0})):m()}else t.removeEventListener("click",o.current);n.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function QB(e,t=globalThis?.document){const r=zo(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&Q1(GB,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function hy(){const e=new CustomEvent(Ep);document.dispatchEvent(e)}function Q1(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?KB(o,a):o.dispatchEvent(a)}var Pd="focusScope.autoFocusOnMount",_d="focusScope.autoFocusOnUnmount",yy={bubbles:!1,cancelable:!0},e9="FocusScope",eR=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,m]=i.useState(null),l=zo(o),u=zo(a),p=i.useRef(null),v=kt(t,d=>m(d)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let d=function(w){if(h.paused||!s)return;const E=w.target;s.contains(E)?p.current=E:Sr(p.current,{select:!0})},g=function(w){if(h.paused||!s)return;const E=w.relatedTarget;E!==null&&(s.contains(E)||Sr(p.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const E of w)E.removedNodes.length>0&&Sr(s)};document.addEventListener("focusin",d),document.addEventListener("focusout",g);const b=new MutationObserver(y);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",d),document.removeEventListener("focusout",g),b.disconnect()}}},[n,s,h.paused]),i.useEffect(()=>{if(s){wy.add(h);const d=document.activeElement;if(!s.contains(d)){const g=new CustomEvent(Pd,yy);s.addEventListener(Pd,l),s.dispatchEvent(g),g.defaultPrevented||(t9(s9(tR(s)),{select:!0}),document.activeElement===d&&Sr(s))}return()=>{s.removeEventListener(Pd,l),setTimeout(()=>{const g=new CustomEvent(_d,yy);s.addEventListener(_d,u),s.dispatchEvent(g),g.defaultPrevented||Sr(d??document.body,{select:!0}),s.removeEventListener(_d,u),wy.remove(h)},0)}}},[s,l,u,h]);const x=i.useCallback(d=>{if(!r&&!n||h.paused)return;const g=d.key==="Tab"&&!d.altKey&&!d.ctrlKey&&!d.metaKey,y=document.activeElement;if(g&&y){const b=d.currentTarget,[w,E]=r9(b);w&&E?!d.shiftKey&&y===E?(d.preventDefault(),r&&Sr(w,{select:!0})):d.shiftKey&&y===w&&(d.preventDefault(),r&&Sr(E,{select:!0})):y===b&&d.preventDefault()}},[r,n,h.paused]);return te.jsx(Fe.div,{tabIndex:-1,...c,ref:v,onKeyDown:x})});eR.displayName=e9;function t9(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Sr(n,{select:t}),document.activeElement!==r)return}function r9(e){const t=tR(e),r=by(t,e),n=by(t.reverse(),e);return[r,n]}function tR(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function by(e,t){for(const r of e)if(!n9(r,{upTo:t}))return r}function n9(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function o9(e){return e instanceof HTMLInputElement&&"select"in e}function Sr(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&o9(e)&&t&&e.select()}}var wy=a9();function a9(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=xy(e,t),e.unshift(t)},remove(t){e=xy(e,t),e[0]?.resume()}}}function xy(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function s9(e){return e.filter(t=>t.tagName!=="A")}var i9="Portal",c9=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);Pa(()=>a(!0),[]);const c=r||o&&globalThis?.document?.body;return c?xe.createPortal(te.jsx(Fe.div,{...n,ref:t}),c):null});c9.displayName=i9;function u9(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var ju=e=>{const{present:t,children:r}=e,n=l9(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=kt(n.ref,d9(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};ju.displayName="Presence";function l9(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,m]=u9(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const l=li(n.current);a.current=s==="mounted"?l:"none"},[s]),Pa(()=>{const l=n.current,u=o.current;if(u!==e){const p=a.current,v=li(l);e?m("MOUNT"):v==="none"||l?.display==="none"?m("UNMOUNT"):m(u&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,m]),Pa(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,p=h=>{const x=li(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&x&&(m("ANIMATION_END"),!o.current)){const d=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=d)})}},v=h=>{h.target===t&&(a.current=li(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else m("ANIMATION_END")},[t,m]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:i.useCallback(l=>{n.current=l?getComputedStyle(l):null,r(l)},[])}}function li(e){return e?.animationName||"none"}function d9(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Md=0;function f9(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Ey()),document.body.insertAdjacentElement("beforeend",e[1]??Ey()),Md++,()=>{Md===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Md--}},[])}function Ey(){const e=document.createElement("span");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}var mt=function(){return mt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},mt.apply(this,arguments)};function rR(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function p9(e,t,r){for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var bc="right-scroll-bar-position",wc="width-before-scroll-bar",m9="with-scroll-bars-hidden",v9="--removed-body-scroll-bar-size";function Ad(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function g9(e,t){var r=M.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var h9=typeof window<"u"?i.useLayoutEffect:i.useEffect,Sy=new WeakMap;function y9(e,t){var r=g9(null,function(n){return e.forEach(function(o){return Ad(o,n)})});return h9(function(){var n=Sy.get(r);if(n){var o=new Set(n),a=new Set(e),c=r.current;o.forEach(function(s){a.has(s)||Ad(s,null)}),a.forEach(function(s){o.has(s)||Ad(s,c)})}Sy.set(r,e)},[e]),r}function b9(e){return e}function w9(e,t){t===void 0&&(t=b9);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var c=t(a,n);return r.push(c),function(){r=r.filter(function(s){return s!==c})}},assignSyncMedium:function(a){for(n=!0;r.length;){var c=r;r=[],c.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var c=[];if(r.length){var s=r;r=[],s.forEach(a),c=r}var m=function(){var u=c;c=[],u.forEach(a)},l=function(){return Promise.resolve().then(m)};l(),r={push:function(u){c.push(u),l()},filter:function(u){return c=c.filter(u),r}}}};return o}function x9(e){e===void 0&&(e={});var t=w9(null);return t.options=mt({async:!0,ssr:!1},e),t}var nR=function(e){var t=e.sideCar,r=rR(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return i.createElement(n,mt({},r))};nR.isSideCarExport=!0;function E9(e,t){return e.useMedium(t),nR}var oR=x9(),Id=function(){},Tu=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:Id,onWheelCapture:Id,onTouchMoveCapture:Id}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,m=e.className,l=e.removeScrollBar,u=e.enabled,p=e.shards,v=e.sideCar,h=e.noRelative,x=e.noIsolation,d=e.inert,g=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,w=e.gapMode,E=rR(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=v,T=y9([r,t]),R=mt(mt({},E),o);return i.createElement(i.Fragment,null,u&&i.createElement(C,{sideCar:oR,removeScrollBar:l,shards:p,noRelative:h,noIsolation:x,inert:d,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),mt(mt({},R),{ref:T})):i.createElement(b,mt({},R,{className:m,ref:T}),s))});Tu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Tu.classNames={fullWidth:wc,zeroRight:bc};var S9=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function R9(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=S9();return t&&e.setAttribute("nonce",t),e}function C9(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function N9(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var k9=function(){var e=0,t=null;return{add:function(r){e==0&&(t=R9())&&(C9(t,r),N9(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},j9=function(){var e=k9();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},aR=function(){var e=j9(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},T9={left:0,top:0,right:0,gap:0},Fd=function(e){return parseInt(e||"",10)||0},D9=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Fd(r),Fd(n),Fd(o)]},O9=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return T9;var t=D9(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},P9=aR(),To="data-scroll-locked",_9=function(e,t,r,n){var o=e.left,a=e.top,c=e.right,s=e.gap;return r===void 0&&(r="margin"),`
|
631
|
-
.`.concat(m9,` {
|
632
|
-
overflow: hidden `).concat(n,`;
|
633
|
-
padding-right: `).concat(s,"px ").concat(n,`;
|
634
|
-
}
|
635
|
-
body[`).concat(To,`] {
|
636
|
-
overflow: hidden `).concat(n,`;
|
637
|
-
overscroll-behavior: contain;
|
638
|
-
`).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
|
639
|
-
padding-left: `.concat(o,`px;
|
640
|
-
padding-top: `).concat(a,`px;
|
641
|
-
padding-right: `).concat(c,`px;
|
642
|
-
margin-left:0;
|
643
|
-
margin-top:0;
|
644
|
-
margin-right: `).concat(s,"px ").concat(n,`;
|
645
|
-
`),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
|
646
|
-
}
|
647
|
-
|
648
|
-
.`).concat(bc,` {
|
649
|
-
right: `).concat(s,"px ").concat(n,`;
|
650
|
-
}
|
651
|
-
|
652
|
-
.`).concat(wc,` {
|
653
|
-
margin-right: `).concat(s,"px ").concat(n,`;
|
654
|
-
}
|
655
|
-
|
656
|
-
.`).concat(bc," .").concat(bc,` {
|
657
|
-
right: 0 `).concat(n,`;
|
658
|
-
}
|
659
|
-
|
660
|
-
.`).concat(wc," .").concat(wc,` {
|
661
|
-
margin-right: 0 `).concat(n,`;
|
662
|
-
}
|
663
|
-
|
664
|
-
body[`).concat(To,`] {
|
665
|
-
`).concat(v9,": ").concat(s,`px;
|
666
|
-
}
|
667
|
-
`)},Ry=function(){var e=parseInt(document.body.getAttribute(To)||"0",10);return isFinite(e)?e:0},M9=function(){i.useEffect(function(){return document.body.setAttribute(To,(Ry()+1).toString()),function(){var e=Ry()-1;e<=0?document.body.removeAttribute(To):document.body.setAttribute(To,e.toString())}},[])},A9=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;M9();var a=i.useMemo(function(){return O9(o)},[o]);return i.createElement(P9,{styles:_9(a,!t,o,r?"":"!important")})},Sp=!1;if(typeof window<"u")try{var di=Object.defineProperty({},"passive",{get:function(){return Sp=!0,!0}});window.addEventListener("test",di,di),window.removeEventListener("test",di,di)}catch{Sp=!1}var qn=Sp?{passive:!1}:!1,I9=function(e){return e.tagName==="TEXTAREA"},sR=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!I9(e)&&r[t]==="visible")},F9=function(e){return sR(e,"overflowY")},L9=function(e){return sR(e,"overflowX")},Cy=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=iR(e,n);if(o){var a=cR(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},W9=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},z9=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},iR=function(e,t){return e==="v"?F9(t):L9(t)},cR=function(e,t){return e==="v"?W9(t):z9(t)},$9=function(e,t){return e==="h"&&t==="rtl"?-1:1},Y9=function(e,t,r,n,o){var a=$9(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,m=t.contains(s),l=!1,u=c>0,p=0,v=0;do{if(!s)break;var h=cR(e,s),x=h[0],d=h[1],g=h[2],y=d-g-a*x;(x||y)&&iR(e,s)&&(p+=y,v+=x);var b=s.parentNode;s=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!m&&s!==document.body||m&&(t.contains(s)||t===s));return(u&&Math.abs(p)<1||!u&&Math.abs(v)<1)&&(l=!0),l},fi=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ny=function(e){return[e.deltaX,e.deltaY]},ky=function(e){return e&&"current"in e?e.current:e},U9=function(e,t){return e[0]===t[0]&&e[1]===t[1]},B9=function(e){return`
|
668
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
669
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
670
|
-
`)},K9=0,Zn=[];function H9(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(K9++)[0],a=i.useState(aR)[0],c=i.useRef(e);i.useEffect(function(){c.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var d=p9([e.lockRef.current],(e.shards||[]).map(ky)).filter(Boolean);return d.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),d.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(d,g){if("touches"in d&&d.touches.length===2||d.type==="wheel"&&d.ctrlKey)return!c.current.allowPinchZoom;var y=fi(d),b=r.current,w="deltaX"in d?d.deltaX:b[0]-y[0],E="deltaY"in d?d.deltaY:b[1]-y[1],C,T=d.target,R=Math.abs(w)>Math.abs(E)?"h":"v";if("touches"in d&&R==="h"&&T.type==="range")return!1;var N=Cy(R,T);if(!N)return!0;if(N?C=R:(C=R==="v"?"h":"v",N=Cy(R,T)),!N)return!1;if(!n.current&&"changedTouches"in d&&(w||E)&&(n.current=C),!C)return!0;var P=n.current||C;return Y9(P,g,d,P==="h"?w:E)},[]),m=i.useCallback(function(d){var g=d;if(!(!Zn.length||Zn[Zn.length-1]!==a)){var y="deltaY"in g?Ny(g):fi(g),b=t.current.filter(function(C){return C.name===g.type&&(C.target===g.target||g.target===C.shadowParent)&&U9(C.delta,y)})[0];if(b&&b.should){g.cancelable&&g.preventDefault();return}if(!b){var w=(c.current.shards||[]).map(ky).filter(Boolean).filter(function(C){return C.contains(g.target)}),E=w.length>0?s(g,w[0]):!c.current.noIsolation;E&&g.cancelable&&g.preventDefault()}}},[]),l=i.useCallback(function(d,g,y,b){var w={name:d,delta:g,target:y,should:b,shadowParent:X9(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(E){return E!==w})},1)},[]),u=i.useCallback(function(d){r.current=fi(d),n.current=void 0},[]),p=i.useCallback(function(d){l(d.type,Ny(d),d.target,s(d,e.lockRef.current))},[]),v=i.useCallback(function(d){l(d.type,fi(d),d.target,s(d,e.lockRef.current))},[]);i.useEffect(function(){return Zn.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",m,qn),document.addEventListener("touchmove",m,qn),document.addEventListener("touchstart",u,qn),function(){Zn=Zn.filter(function(d){return d!==a}),document.removeEventListener("wheel",m,qn),document.removeEventListener("touchmove",m,qn),document.removeEventListener("touchstart",u,qn)}},[]);var h=e.removeScrollBar,x=e.inert;return i.createElement(i.Fragment,null,x?i.createElement(a,{styles:B9(o)}):null,h?i.createElement(A9,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function X9(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const V9=E9(oR,H9);var uR=i.forwardRef(function(e,t){return i.createElement(Tu,mt({},e,{ref:t,sideCar:V9}))});uR.classNames=Tu.classNames;var G9=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Jn=new WeakMap,pi=new WeakMap,mi={},Ld=0,lR=function(e){return e&&(e.host||lR(e.parentNode))},q9=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=lR(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},Z9=function(e,t,r,n){var o=q9(t,Array.isArray(e)?e:[e]);mi[r]||(mi[r]=new WeakMap);var a=mi[r],c=[],s=new Set,m=new Set(o),l=function(p){!p||s.has(p)||(s.add(p),l(p.parentNode))};o.forEach(l);var u=function(p){!p||m.has(p)||Array.prototype.forEach.call(p.children,function(v){if(s.has(v))u(v);else try{var h=v.getAttribute(n),x=h!==null&&h!=="false",d=(Jn.get(v)||0)+1,g=(a.get(v)||0)+1;Jn.set(v,d),a.set(v,g),c.push(v),d===1&&x&&pi.set(v,!0),g===1&&v.setAttribute(r,"true"),x||v.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",v,y)}})};return u(t),s.clear(),Ld++,function(){c.forEach(function(p){var v=Jn.get(p)-1,h=a.get(p)-1;Jn.set(p,v),a.set(p,h),v||(pi.has(p)||p.removeAttribute(n),pi.delete(p)),h||p.removeAttribute(r)}),Ld--,Ld||(Jn=new WeakMap,Jn=new WeakMap,pi=new WeakMap,mi={})}},J9=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=G9(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),Z9(n,o,r,"aria-hidden")):function(){return null}},dR="Dialog",[fR]=ku(dR),[tae,Bt]=fR(dR),pR="DialogTrigger",Q9=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Bt(pR,r),a=kt(t,o.triggerRef);return te.jsx(Fe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Wm(o.open),...n,ref:a,onClick:Ne(e.onClick,o.onOpenToggle)})});Q9.displayName=pR;var e3="DialogPortal",[rae,mR]=fR(e3,{forceMount:void 0}),qc="DialogOverlay",t3=i.forwardRef((e,t)=>{const r=mR(qc,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Bt(qc,e.__scopeDialog);return a.modal?te.jsx(ju,{present:n||a.open,children:te.jsx(n3,{...o,ref:t})}):null});t3.displayName=qc;var r3=Z.createSlot("DialogOverlay.RemoveScroll"),n3=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Bt(qc,r);return te.jsx(uR,{as:r3,allowPinchZoom:!0,shards:[o.contentRef],children:te.jsx(Fe.div,{"data-state":Wm(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),rn="DialogContent",o3=i.forwardRef((e,t)=>{const r=mR(rn,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Bt(rn,e.__scopeDialog);return te.jsx(ju,{present:n||a.open,children:a.modal?te.jsx(a3,{...o,ref:t}):te.jsx(s3,{...o,ref:t})})});o3.displayName=rn;var a3=i.forwardRef((e,t)=>{const r=Bt(rn,e.__scopeDialog),n=i.useRef(null),o=kt(t,r.contentRef,n);return i.useEffect(()=>{const a=n.current;if(a)return J9(a)},[]),te.jsx(vR,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ne(e.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:Ne(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&a.preventDefault()}),onFocusOutside:Ne(e.onFocusOutside,a=>a.preventDefault())})}),s3=i.forwardRef((e,t)=>{const r=Bt(rn,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return te.jsx(vR,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(n.current||r.triggerRef.current?.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=a.target;r.triggerRef.current?.contains(c)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),vR=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,s=Bt(rn,r),m=i.useRef(null),l=kt(t,m);return f9(),te.jsxs(te.Fragment,{children:[te.jsx(eR,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:te.jsx(J1,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Wm(s.open),...c,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),te.jsxs(te.Fragment,{children:[te.jsx(l3,{titleId:s.titleId}),te.jsx(f3,{contentRef:m,descriptionId:s.descriptionId})]})]})}),Lm="DialogTitle",i3=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Bt(Lm,r);return te.jsx(Fe.h2,{id:o.titleId,...n,ref:t})});i3.displayName=Lm;var gR="DialogDescription",c3=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Bt(gR,r);return te.jsx(Fe.p,{id:o.descriptionId,...n,ref:t})});c3.displayName=gR;var hR="DialogClose",u3=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Bt(hR,r);return te.jsx(Fe.button,{type:"button",...n,ref:t,onClick:Ne(e.onClick,()=>o.onOpenChange(!1))})});u3.displayName=hR;function Wm(e){return e?"open":"closed"}var yR="DialogTitleWarning",[nae,bR]=FB(yR,{contentName:rn,titleName:Lm,docsSlug:"dialog"}),l3=({titleId:e})=>{const t=bR(yR),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
671
|
-
|
672
|
-
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
673
|
-
|
674
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},d3="DialogDescriptionWarning",f3=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${bR(d3).contentName}}.`;return i.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Wd={exports:{}},ua={};/**
|
675
|
-
* @license React
|
676
|
-
* react-jsx-runtime.production.js
|
677
|
-
*
|
678
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
679
|
-
*
|
680
|
-
* This source code is licensed under the MIT license found in the
|
681
|
-
* LICENSE file in the root directory of this source tree.
|
682
|
-
*/var jy;function p3(){if(jy)return ua;jy=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var c=null;if(a!==void 0&&(c=""+a),o.key!==void 0&&(c=""+o.key),"key"in o){a={};for(var s in o)s!=="key"&&(a[s]=o[s])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:c,ref:o!==void 0?o:null,props:a}}return ua.Fragment=t,ua.jsx=r,ua.jsxs=r,ua}var vi={};/**
|
683
|
-
* @license React
|
684
|
-
* react-jsx-runtime.development.js
|
685
|
-
*
|
686
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
687
|
-
*
|
688
|
-
* This source code is licensed under the MIT license found in the
|
689
|
-
* LICENSE file in the root directory of this source tree.
|
690
|
-
*/var Ty;function m3(){return Ty||(Ty=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(f==null)return null;if(typeof f=="function")return f.$$typeof===L?null:f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case d:return"Fragment";case y:return"Profiler";case g:return"StrictMode";case C:return"Suspense";case T:return"SuspenseList";case P:return"Activity"}if(typeof f=="object")switch(typeof f.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),f.$$typeof){case x:return"Portal";case w:return(f.displayName||"Context")+".Provider";case b:return(f._context.displayName||"Context")+".Consumer";case E:var S=f.render;return f=f.displayName,f||(f=S.displayName||S.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case R:return S=f.displayName||null,S!==null?S:e(f.type)||"Memo";case N:S=f._payload,f=f._init;try{return e(f(S))}catch{}}return null}function t(f){return""+f}function r(f){try{t(f);var S=!1}catch{S=!0}if(S){S=console;var k=S.error,D=typeof Symbol=="function"&&Symbol.toStringTag&&f[Symbol.toStringTag]||f.constructor.name||"Object";return k.call(S,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",D),t(f)}}function n(f){if(f===d)return"<>";if(typeof f=="object"&&f!==null&&f.$$typeof===N)return"<...>";try{var S=e(f);return S?"<"+S+">":"<...>"}catch{return"<...>"}}function o(){var f=I.A;return f===null?null:f.getOwner()}function a(){return Error("react-stack-top-frame")}function c(f){if(B.call(f,"key")){var S=Object.getOwnPropertyDescriptor(f,"key").get;if(S&&S.isReactWarning)return!1}return f.key!==void 0}function s(f,S){function k(){_||(_=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",S))}k.isReactWarning=!0,Object.defineProperty(f,"key",{get:k,configurable:!0})}function m(){var f=e(this.type);return Y[f]||(Y[f]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),f=this.props.ref,f!==void 0?f:null}function l(f,S,k,D,F,A,G,X){return k=A.ref,f={$$typeof:h,type:f,key:S,props:A,_owner:F},(k!==void 0?k:null)!==null?Object.defineProperty(f,"ref",{enumerable:!1,get:m}):Object.defineProperty(f,"ref",{enumerable:!1,value:null}),f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(f,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(f,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:G}),Object.defineProperty(f,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:X}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f}function u(f,S,k,D,F,A,G,X){var O=S.children;if(O!==void 0)if(D)if(K(O)){for(D=0;D<O.length;D++)p(O[D]);Object.freeze&&Object.freeze(O)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else p(O);if(B.call(S,"key")){O=e(f);var z=Object.keys(S).filter(function(ce){return ce!=="key"});D=0<z.length?"{key: someKey, "+z.join(": ..., ")+": ...}":"{key: someKey}",V[O+D]||(z=0<z.length?"{"+z.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
691
|
-
let props = %s;
|
692
|
-
<%s {...props} />
|
693
|
-
React keys must be passed directly to JSX without using spread:
|
694
|
-
let props = %s;
|
695
|
-
<%s key={someKey} {...props} />`,D,O,z,O),V[O+D]=!0)}if(O=null,k!==void 0&&(r(k),O=""+k),c(S)&&(r(S.key),O=""+S.key),"key"in S){k={};for(var q in S)q!=="key"&&(k[q]=S[q])}else k=S;return O&&s(k,typeof f=="function"?f.displayName||f.name||"Unknown":f),l(f,O,A,F,o(),k,G,X)}function p(f){typeof f=="object"&&f!==null&&f.$$typeof===h&&f._store&&(f._store.validated=1)}var v=M,h=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),b=Symbol.for("react.consumer"),w=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),P=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),I=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,K=Array.isArray,$=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(f){return f()}};var _,Y={},H=v.react_stack_bottom_frame.bind(v,a)(),U=$(n(a)),V={};vi.Fragment=d,vi.jsx=function(f,S,k,D,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,S,k,!1,D,F,A?Error("react-stack-top-frame"):H,A?$(n(f)):U)},vi.jsxs=function(f,S,k,D,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,S,k,!0,D,F,A?Error("react-stack-top-frame"):H,A?$(n(f)):U)}})()),vi}var Dy;function v3(){return Dy||(Dy=1,process.env.NODE_ENV==="production"?Wd.exports=p3():Wd.exports=m3()),Wd.exports}var re=v3();M.createContext({locale:void 0});var g3=(e,t,r,n,o,a,c,s)=>{let m=document.documentElement,l=["light","dark"];function u(h){(Array.isArray(e)?e:[e]).forEach(x=>{let d=x==="class",g=d&&a?o.map(y=>a[y]||y):o;d?(m.classList.remove(...g),m.classList.add(a&&a[h]?a[h]:h)):m.setAttribute(x,h)}),p(h)}function p(h){s&&l.includes(h)&&(m.style.colorScheme=h)}function v(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(n)u(n);else try{let h=localStorage.getItem(t)||r,x=c&&h==="system"?v():h;u(x)}catch{}};i.createContext(void 0);i.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:o,defaultTheme:a,value:c,themes:s,nonce:m,scriptProps:l})=>{let u=JSON.stringify([r,t,a,e,s,c,n,o]).slice(1,-1);return i.createElement("script",{...l,suppressHydrationWarning:!0,nonce:typeof window>"u"?m:"",dangerouslySetInnerHTML:{__html:`(${g3.toString()})(${u})`}})});ie.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});ie.cva("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function ke(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}function Oy(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function h3(...e){return t=>{let r=!1;const n=e.map(o=>{const a=Oy(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():Oy(e[o],null)}}}}function jt(...e){return i.useCallback(h3(...e),e)}function y3(e,t){const r=i.createContext(t),n=a=>{const{children:c,...s}=a,m=i.useMemo(()=>s,Object.values(s));return re.jsx(r.Provider,{value:m,children:c})};n.displayName=e+"Provider";function o(a){const c=i.useContext(r);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function Du(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),m=r.length;r=[...r,c];const l=p=>{const{scope:v,children:h,...x}=p,d=v?.[e]?.[m]||s,g=i.useMemo(()=>x,Object.values(x));return re.jsx(d.Provider,{value:g,children:h})};l.displayName=a+"Provider";function u(p,v){const h=v?.[e]?.[m]||s,x=i.useContext(h);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[l,u]}const o=()=>{const a=r.map(c=>i.createContext(c));return function(c){const s=c?.[e]||a;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:s}}),[c,s])}};return o.scopeName=e,[n,b3(o,...t)]}function b3(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){const a=n.reduce((c,{useScope:s,scopeName:m})=>{const l=s(o)[`__scope${m}`];return{...c,...l}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var _a=globalThis?.document?i.useLayoutEffect:()=>{},w3=i[" useId ".trim().toString()]||(()=>{}),x3=0;function wR(e){const[t,r]=i.useState(w3());return _a(()=>{r(n=>n??String(x3++))},[e]),t?`radix-${t}`:""}var E3=i[" useInsertionEffect ".trim().toString()]||_a;function xR({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,c]=S3({defaultProp:t,onChange:r}),s=e!==void 0,m=s?e:o;{const u=i.useRef(e!==void 0);i.useEffect(()=>{const p=u.current;p!==s&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=s},[s,n])}const l=i.useCallback(u=>{if(s){const p=R3(u)?u(e):u;p!==e&&c.current?.(p)}else a(u)},[s,e,a,c]);return[m,l]}function S3({defaultProp:e,onChange:t}){const[r,n]=i.useState(e),o=i.useRef(r),a=i.useRef(t);return E3(()=>{a.current=t},[t]),i.useEffect(()=>{o.current!==r&&(a.current?.(r),o.current=r)},[r,o]),[r,n,a]}function R3(e){return typeof e=="function"}var C3=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Le=C3.reduce((e,t)=>{const r=Z.createSlot(`Primitive.${t}`),n=i.forwardRef((o,a)=>{const{asChild:c,...s}=o,m=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),re.jsx(m,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function N3(e,t){e&&Ee.flushSync(()=>e.dispatchEvent(t))}function $o(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>t.current?.(...r),[])}function k3(e,t=globalThis?.document){const r=$o(e);i.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var j3="DismissableLayer",Rp="dismissableLayer.update",T3="dismissableLayer.pointerDownOutside",D3="dismissableLayer.focusOutside",Py,ER=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),SR=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...m}=e,l=i.useContext(ER),[u,p]=i.useState(null),v=u?.ownerDocument??globalThis?.document,[,h]=i.useState({}),x=jt(t,R=>p(R)),d=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),y=d.indexOf(g),b=u?d.indexOf(u):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,E=b>=y,C=_3(R=>{const N=R.target,P=[...l.branches].some(L=>L.contains(N));!E||P||(o?.(R),c?.(R),R.defaultPrevented||s?.())},v),T=M3(R=>{const N=R.target;[...l.branches].some(P=>P.contains(N))||(a?.(R),c?.(R),R.defaultPrevented||s?.())},v);return k3(R=>{b===l.layers.size-1&&(n?.(R),!R.defaultPrevented&&s&&(R.preventDefault(),s()))},v),i.useEffect(()=>{if(u)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Py=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),_y(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Py)}},[u,v,r,l]),i.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),_y())},[u,l]),i.useEffect(()=>{const R=()=>h({});return document.addEventListener(Rp,R),()=>document.removeEventListener(Rp,R)},[]),re.jsx(Le.div,{...m,ref:x,style:{pointerEvents:w?E?"auto":"none":void 0,...e.style},onFocusCapture:ke(e.onFocusCapture,T.onFocusCapture),onBlurCapture:ke(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:ke(e.onPointerDownCapture,C.onPointerDownCapture)})});SR.displayName=j3;var O3="DismissableLayerBranch",P3=i.forwardRef((e,t)=>{const r=i.useContext(ER),n=i.useRef(null),o=jt(t,n);return i.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),re.jsx(Le.div,{...e,ref:o})});P3.displayName=O3;function _3(e,t=globalThis?.document){const r=$o(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let m=function(){RR(T3,r,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=m,t.addEventListener("click",o.current,{once:!0})):m()}else t.removeEventListener("click",o.current);n.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function M3(e,t=globalThis?.document){const r=$o(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&RR(D3,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function _y(){const e=new CustomEvent(Rp);document.dispatchEvent(e)}function RR(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?N3(o,a):o.dispatchEvent(a)}var zd="focusScope.autoFocusOnMount",$d="focusScope.autoFocusOnUnmount",My={bubbles:!1,cancelable:!0},A3="FocusScope",CR=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,m]=i.useState(null),l=$o(o),u=$o(a),p=i.useRef(null),v=jt(t,d=>m(d)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let d=function(w){if(h.paused||!s)return;const E=w.target;s.contains(E)?p.current=E:Rr(p.current,{select:!0})},g=function(w){if(h.paused||!s)return;const E=w.relatedTarget;E!==null&&(s.contains(E)||Rr(p.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const E of w)E.removedNodes.length>0&&Rr(s)};document.addEventListener("focusin",d),document.addEventListener("focusout",g);const b=new MutationObserver(y);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",d),document.removeEventListener("focusout",g),b.disconnect()}}},[n,s,h.paused]),i.useEffect(()=>{if(s){Iy.add(h);const d=document.activeElement;if(!s.contains(d)){const g=new CustomEvent(zd,My);s.addEventListener(zd,l),s.dispatchEvent(g),g.defaultPrevented||(I3($3(NR(s)),{select:!0}),document.activeElement===d&&Rr(s))}return()=>{s.removeEventListener(zd,l),setTimeout(()=>{const g=new CustomEvent($d,My);s.addEventListener($d,u),s.dispatchEvent(g),g.defaultPrevented||Rr(d??document.body,{select:!0}),s.removeEventListener($d,u),Iy.remove(h)},0)}}},[s,l,u,h]);const x=i.useCallback(d=>{if(!r&&!n||h.paused)return;const g=d.key==="Tab"&&!d.altKey&&!d.ctrlKey&&!d.metaKey,y=document.activeElement;if(g&&y){const b=d.currentTarget,[w,E]=F3(b);w&&E?!d.shiftKey&&y===E?(d.preventDefault(),r&&Rr(w,{select:!0})):d.shiftKey&&y===w&&(d.preventDefault(),r&&Rr(E,{select:!0})):y===b&&d.preventDefault()}},[r,n,h.paused]);return re.jsx(Le.div,{tabIndex:-1,...c,ref:v,onKeyDown:x})});CR.displayName=A3;function I3(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Rr(n,{select:t}),document.activeElement!==r)return}function F3(e){const t=NR(e),r=Ay(t,e),n=Ay(t.reverse(),e);return[r,n]}function NR(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Ay(e,t){for(const r of e)if(!L3(r,{upTo:t}))return r}function L3(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function W3(e){return e instanceof HTMLInputElement&&"select"in e}function Rr(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&W3(e)&&t&&e.select()}}var Iy=z3();function z3(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=Fy(e,t),e.unshift(t)},remove(t){e=Fy(e,t),e[0]?.resume()}}}function Fy(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function $3(e){return e.filter(t=>t.tagName!=="A")}var Y3="Portal",U3=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);_a(()=>a(!0),[]);const c=r||o&&globalThis?.document?.body;return c?xe.createPortal(re.jsx(Le.div,{...n,ref:t}),c):null});U3.displayName=Y3;function B3(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var Ou=e=>{const{present:t,children:r}=e,n=K3(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=jt(n.ref,H3(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};Ou.displayName="Presence";function K3(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,m]=B3(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const l=gi(n.current);a.current=s==="mounted"?l:"none"},[s]),_a(()=>{const l=n.current,u=o.current;if(u!==e){const p=a.current,v=gi(l);e?m("MOUNT"):v==="none"||l?.display==="none"?m("UNMOUNT"):m(u&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,m]),_a(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,p=h=>{const x=gi(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&x&&(m("ANIMATION_END"),!o.current)){const d=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=d)})}},v=h=>{h.target===t&&(a.current=gi(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else m("ANIMATION_END")},[t,m]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:i.useCallback(l=>{n.current=l?getComputedStyle(l):null,r(l)},[])}}function gi(e){return e?.animationName||"none"}function H3(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Yd=0;function X3(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Ly()),document.body.insertAdjacentElement("beforeend",e[1]??Ly()),Yd++,()=>{Yd===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Yd--}},[])}function Ly(){const e=document.createElement("span");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}var vt=function(){return vt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},vt.apply(this,arguments)};function kR(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function V3(e,t,r){for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var xc="right-scroll-bar-position",Ec="width-before-scroll-bar",G3="with-scroll-bars-hidden",q3="--removed-body-scroll-bar-size";function Ud(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Z3(e,t){var r=M.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var J3=typeof window<"u"?i.useLayoutEffect:i.useEffect,Wy=new WeakMap;function Q3(e,t){var r=Z3(null,function(n){return e.forEach(function(o){return Ud(o,n)})});return J3(function(){var n=Wy.get(r);if(n){var o=new Set(n),a=new Set(e),c=r.current;o.forEach(function(s){a.has(s)||Ud(s,null)}),a.forEach(function(s){o.has(s)||Ud(s,c)})}Wy.set(r,e)},[e]),r}function e6(e){return e}function t6(e,t){t===void 0&&(t=e6);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var c=t(a,n);return r.push(c),function(){r=r.filter(function(s){return s!==c})}},assignSyncMedium:function(a){for(n=!0;r.length;){var c=r;r=[],c.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var c=[];if(r.length){var s=r;r=[],s.forEach(a),c=r}var m=function(){var u=c;c=[],u.forEach(a)},l=function(){return Promise.resolve().then(m)};l(),r={push:function(u){c.push(u),l()},filter:function(u){return c=c.filter(u),r}}}};return o}function r6(e){e===void 0&&(e={});var t=t6(null);return t.options=vt({async:!0,ssr:!1},e),t}var jR=function(e){var t=e.sideCar,r=kR(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return i.createElement(n,vt({},r))};jR.isSideCarExport=!0;function n6(e,t){return e.useMedium(t),jR}var TR=r6(),Bd=function(){},Pu=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:Bd,onWheelCapture:Bd,onTouchMoveCapture:Bd}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,m=e.className,l=e.removeScrollBar,u=e.enabled,p=e.shards,v=e.sideCar,h=e.noRelative,x=e.noIsolation,d=e.inert,g=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,w=e.gapMode,E=kR(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=v,T=Q3([r,t]),R=vt(vt({},E),o);return i.createElement(i.Fragment,null,u&&i.createElement(C,{sideCar:TR,removeScrollBar:l,shards:p,noRelative:h,noIsolation:x,inert:d,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),vt(vt({},R),{ref:T})):i.createElement(b,vt({},R,{className:m,ref:T}),s))});Pu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Pu.classNames={fullWidth:Ec,zeroRight:xc};var o6=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function a6(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=o6();return t&&e.setAttribute("nonce",t),e}function s6(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function i6(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var c6=function(){var e=0,t=null;return{add:function(r){e==0&&(t=a6())&&(s6(t,r),i6(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},u6=function(){var e=c6();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},DR=function(){var e=u6(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},l6={left:0,top:0,right:0,gap:0},Kd=function(e){return parseInt(e||"",10)||0},d6=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Kd(r),Kd(n),Kd(o)]},f6=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return l6;var t=d6(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},p6=DR(),Do="data-scroll-locked",m6=function(e,t,r,n){var o=e.left,a=e.top,c=e.right,s=e.gap;return r===void 0&&(r="margin"),`
|
696
|
-
.`.concat(G3,` {
|
697
|
-
overflow: hidden `).concat(n,`;
|
698
|
-
padding-right: `).concat(s,"px ").concat(n,`;
|
699
|
-
}
|
700
|
-
body[`).concat(Do,`] {
|
701
|
-
overflow: hidden `).concat(n,`;
|
702
|
-
overscroll-behavior: contain;
|
703
|
-
`).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
|
704
|
-
padding-left: `.concat(o,`px;
|
705
|
-
padding-top: `).concat(a,`px;
|
706
|
-
padding-right: `).concat(c,`px;
|
707
|
-
margin-left:0;
|
708
|
-
margin-top:0;
|
709
|
-
margin-right: `).concat(s,"px ").concat(n,`;
|
710
|
-
`),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
|
711
|
-
}
|
712
|
-
|
713
|
-
.`).concat(xc,` {
|
714
|
-
right: `).concat(s,"px ").concat(n,`;
|
715
|
-
}
|
716
|
-
|
717
|
-
.`).concat(Ec,` {
|
718
|
-
margin-right: `).concat(s,"px ").concat(n,`;
|
719
|
-
}
|
720
|
-
|
721
|
-
.`).concat(xc," .").concat(xc,` {
|
722
|
-
right: 0 `).concat(n,`;
|
723
|
-
}
|
724
|
-
|
725
|
-
.`).concat(Ec," .").concat(Ec,` {
|
726
|
-
margin-right: 0 `).concat(n,`;
|
727
|
-
}
|
728
|
-
|
729
|
-
body[`).concat(Do,`] {
|
730
|
-
`).concat(q3,": ").concat(s,`px;
|
731
|
-
}
|
732
|
-
`)},zy=function(){var e=parseInt(document.body.getAttribute(Do)||"0",10);return isFinite(e)?e:0},v6=function(){i.useEffect(function(){return document.body.setAttribute(Do,(zy()+1).toString()),function(){var e=zy()-1;e<=0?document.body.removeAttribute(Do):document.body.setAttribute(Do,e.toString())}},[])},g6=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;v6();var a=i.useMemo(function(){return f6(o)},[o]);return i.createElement(p6,{styles:m6(a,!t,o,r?"":"!important")})},Cp=!1;if(typeof window<"u")try{var hi=Object.defineProperty({},"passive",{get:function(){return Cp=!0,!0}});window.addEventListener("test",hi,hi),window.removeEventListener("test",hi,hi)}catch{Cp=!1}var Qn=Cp?{passive:!1}:!1,h6=function(e){return e.tagName==="TEXTAREA"},OR=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!h6(e)&&r[t]==="visible")},y6=function(e){return OR(e,"overflowY")},b6=function(e){return OR(e,"overflowX")},$y=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=PR(e,n);if(o){var a=_R(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},w6=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},x6=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},PR=function(e,t){return e==="v"?y6(t):b6(t)},_R=function(e,t){return e==="v"?w6(t):x6(t)},E6=function(e,t){return e==="h"&&t==="rtl"?-1:1},S6=function(e,t,r,n,o){var a=E6(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,m=t.contains(s),l=!1,u=c>0,p=0,v=0;do{if(!s)break;var h=_R(e,s),x=h[0],d=h[1],g=h[2],y=d-g-a*x;(x||y)&&PR(e,s)&&(p+=y,v+=x);var b=s.parentNode;s=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!m&&s!==document.body||m&&(t.contains(s)||t===s));return(u&&Math.abs(p)<1||!u&&Math.abs(v)<1)&&(l=!0),l},yi=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Yy=function(e){return[e.deltaX,e.deltaY]},Uy=function(e){return e&&"current"in e?e.current:e},R6=function(e,t){return e[0]===t[0]&&e[1]===t[1]},C6=function(e){return`
|
733
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
734
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
735
|
-
`)},N6=0,eo=[];function k6(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(N6++)[0],a=i.useState(DR)[0],c=i.useRef(e);i.useEffect(function(){c.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var d=V3([e.lockRef.current],(e.shards||[]).map(Uy)).filter(Boolean);return d.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),d.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(d,g){if("touches"in d&&d.touches.length===2||d.type==="wheel"&&d.ctrlKey)return!c.current.allowPinchZoom;var y=yi(d),b=r.current,w="deltaX"in d?d.deltaX:b[0]-y[0],E="deltaY"in d?d.deltaY:b[1]-y[1],C,T=d.target,R=Math.abs(w)>Math.abs(E)?"h":"v";if("touches"in d&&R==="h"&&T.type==="range")return!1;var N=$y(R,T);if(!N)return!0;if(N?C=R:(C=R==="v"?"h":"v",N=$y(R,T)),!N)return!1;if(!n.current&&"changedTouches"in d&&(w||E)&&(n.current=C),!C)return!0;var P=n.current||C;return S6(P,g,d,P==="h"?w:E)},[]),m=i.useCallback(function(d){var g=d;if(!(!eo.length||eo[eo.length-1]!==a)){var y="deltaY"in g?Yy(g):yi(g),b=t.current.filter(function(C){return C.name===g.type&&(C.target===g.target||g.target===C.shadowParent)&&R6(C.delta,y)})[0];if(b&&b.should){g.cancelable&&g.preventDefault();return}if(!b){var w=(c.current.shards||[]).map(Uy).filter(Boolean).filter(function(C){return C.contains(g.target)}),E=w.length>0?s(g,w[0]):!c.current.noIsolation;E&&g.cancelable&&g.preventDefault()}}},[]),l=i.useCallback(function(d,g,y,b){var w={name:d,delta:g,target:y,should:b,shadowParent:j6(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(E){return E!==w})},1)},[]),u=i.useCallback(function(d){r.current=yi(d),n.current=void 0},[]),p=i.useCallback(function(d){l(d.type,Yy(d),d.target,s(d,e.lockRef.current))},[]),v=i.useCallback(function(d){l(d.type,yi(d),d.target,s(d,e.lockRef.current))},[]);i.useEffect(function(){return eo.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",m,Qn),document.addEventListener("touchmove",m,Qn),document.addEventListener("touchstart",u,Qn),function(){eo=eo.filter(function(d){return d!==a}),document.removeEventListener("wheel",m,Qn),document.removeEventListener("touchmove",m,Qn),document.removeEventListener("touchstart",u,Qn)}},[]);var h=e.removeScrollBar,x=e.inert;return i.createElement(i.Fragment,null,x?i.createElement(a,{styles:C6(o)}):null,h?i.createElement(g6,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function j6(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const T6=n6(TR,k6);var MR=i.forwardRef(function(e,t){return i.createElement(Pu,vt({},e,{ref:t,sideCar:T6}))});MR.classNames=Pu.classNames;var D6=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},to=new WeakMap,bi=new WeakMap,wi={},Hd=0,AR=function(e){return e&&(e.host||AR(e.parentNode))},O6=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=AR(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},P6=function(e,t,r,n){var o=O6(t,Array.isArray(e)?e:[e]);wi[r]||(wi[r]=new WeakMap);var a=wi[r],c=[],s=new Set,m=new Set(o),l=function(p){!p||s.has(p)||(s.add(p),l(p.parentNode))};o.forEach(l);var u=function(p){!p||m.has(p)||Array.prototype.forEach.call(p.children,function(v){if(s.has(v))u(v);else try{var h=v.getAttribute(n),x=h!==null&&h!=="false",d=(to.get(v)||0)+1,g=(a.get(v)||0)+1;to.set(v,d),a.set(v,g),c.push(v),d===1&&x&&bi.set(v,!0),g===1&&v.setAttribute(r,"true"),x||v.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",v,y)}})};return u(t),s.clear(),Hd++,function(){c.forEach(function(p){var v=to.get(p)-1,h=a.get(p)-1;to.set(p,v),a.set(p,h),v||(bi.has(p)||p.removeAttribute(n),bi.delete(p)),h||p.removeAttribute(r)}),Hd--,Hd||(to=new WeakMap,to=new WeakMap,bi=new WeakMap,wi={})}},_6=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=D6(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),P6(n,o,r,"aria-hidden")):function(){return null}},IR="Dialog",[FR]=Du(IR),[oae,Kt]=FR(IR),LR="DialogTrigger",M6=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Kt(LR,r),a=jt(t,o.triggerRef);return re.jsx(Le.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":$m(o.open),...n,ref:a,onClick:ke(e.onClick,o.onOpenToggle)})});M6.displayName=LR;var A6="DialogPortal",[aae,WR]=FR(A6,{forceMount:void 0}),Zc="DialogOverlay",I6=i.forwardRef((e,t)=>{const r=WR(Zc,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Kt(Zc,e.__scopeDialog);return a.modal?re.jsx(Ou,{present:n||a.open,children:re.jsx(L6,{...o,ref:t})}):null});I6.displayName=Zc;var F6=Z.createSlot("DialogOverlay.RemoveScroll"),L6=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Kt(Zc,r);return re.jsx(MR,{as:F6,allowPinchZoom:!0,shards:[o.contentRef],children:re.jsx(Le.div,{"data-state":$m(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),nn="DialogContent",W6=i.forwardRef((e,t)=>{const r=WR(nn,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Kt(nn,e.__scopeDialog);return re.jsx(Ou,{present:n||a.open,children:a.modal?re.jsx(z6,{...o,ref:t}):re.jsx($6,{...o,ref:t})})});W6.displayName=nn;var z6=i.forwardRef((e,t)=>{const r=Kt(nn,e.__scopeDialog),n=i.useRef(null),o=jt(t,r.contentRef,n);return i.useEffect(()=>{const a=n.current;if(a)return _6(a)},[]),re.jsx(zR,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ke(e.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:ke(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&a.preventDefault()}),onFocusOutside:ke(e.onFocusOutside,a=>a.preventDefault())})}),$6=i.forwardRef((e,t)=>{const r=Kt(nn,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return re.jsx(zR,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(n.current||r.triggerRef.current?.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=a.target;r.triggerRef.current?.contains(c)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),zR=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,s=Kt(nn,r),m=i.useRef(null),l=jt(t,m);return X3(),re.jsxs(re.Fragment,{children:[re.jsx(CR,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:re.jsx(SR,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":$m(s.open),...c,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),re.jsxs(re.Fragment,{children:[re.jsx(K6,{titleId:s.titleId}),re.jsx(X6,{contentRef:m,descriptionId:s.descriptionId})]})]})}),zm="DialogTitle",Y6=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Kt(zm,r);return re.jsx(Le.h2,{id:o.titleId,...n,ref:t})});Y6.displayName=zm;var $R="DialogDescription",U6=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Kt($R,r);return re.jsx(Le.p,{id:o.descriptionId,...n,ref:t})});U6.displayName=$R;var YR="DialogClose",B6=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Kt(YR,r);return re.jsx(Le.button,{type:"button",...n,ref:t,onClick:ke(e.onClick,()=>o.onOpenChange(!1))})});B6.displayName=YR;function $m(e){return e?"open":"closed"}var UR="DialogTitleWarning",[sae,BR]=y3(UR,{contentName:nn,titleName:zm,docsSlug:"dialog"}),K6=({titleId:e})=>{const t=BR(UR),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
736
|
-
|
737
|
-
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
738
|
-
|
739
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},H6="DialogDescriptionWarning",X6=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${BR(H6).contentName}}.`;return i.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Xd={exports:{}},la={};/**
|
740
|
-
* @license React
|
741
|
-
* react-jsx-runtime.production.js
|
742
|
-
*
|
743
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
744
|
-
*
|
745
|
-
* This source code is licensed under the MIT license found in the
|
746
|
-
* LICENSE file in the root directory of this source tree.
|
747
|
-
*/var By;function V6(){if(By)return la;By=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var c=null;if(a!==void 0&&(c=""+a),o.key!==void 0&&(c=""+o.key),"key"in o){a={};for(var s in o)s!=="key"&&(a[s]=o[s])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:c,ref:o!==void 0?o:null,props:a}}return la.Fragment=t,la.jsx=r,la.jsxs=r,la}var xi={};/**
|
748
|
-
* @license React
|
749
|
-
* react-jsx-runtime.development.js
|
750
|
-
*
|
751
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
752
|
-
*
|
753
|
-
* This source code is licensed under the MIT license found in the
|
754
|
-
* LICENSE file in the root directory of this source tree.
|
755
|
-
*/var Ky;function G6(){return Ky||(Ky=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(f==null)return null;if(typeof f=="function")return f.$$typeof===L?null:f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case d:return"Fragment";case y:return"Profiler";case g:return"StrictMode";case C:return"Suspense";case T:return"SuspenseList";case P:return"Activity"}if(typeof f=="object")switch(typeof f.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),f.$$typeof){case x:return"Portal";case w:return(f.displayName||"Context")+".Provider";case b:return(f._context.displayName||"Context")+".Consumer";case E:var S=f.render;return f=f.displayName,f||(f=S.displayName||S.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case R:return S=f.displayName||null,S!==null?S:e(f.type)||"Memo";case N:S=f._payload,f=f._init;try{return e(f(S))}catch{}}return null}function t(f){return""+f}function r(f){try{t(f);var S=!1}catch{S=!0}if(S){S=console;var k=S.error,D=typeof Symbol=="function"&&Symbol.toStringTag&&f[Symbol.toStringTag]||f.constructor.name||"Object";return k.call(S,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",D),t(f)}}function n(f){if(f===d)return"<>";if(typeof f=="object"&&f!==null&&f.$$typeof===N)return"<...>";try{var S=e(f);return S?"<"+S+">":"<...>"}catch{return"<...>"}}function o(){var f=I.A;return f===null?null:f.getOwner()}function a(){return Error("react-stack-top-frame")}function c(f){if(B.call(f,"key")){var S=Object.getOwnPropertyDescriptor(f,"key").get;if(S&&S.isReactWarning)return!1}return f.key!==void 0}function s(f,S){function k(){_||(_=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",S))}k.isReactWarning=!0,Object.defineProperty(f,"key",{get:k,configurable:!0})}function m(){var f=e(this.type);return Y[f]||(Y[f]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),f=this.props.ref,f!==void 0?f:null}function l(f,S,k,D,F,A,G,X){return k=A.ref,f={$$typeof:h,type:f,key:S,props:A,_owner:F},(k!==void 0?k:null)!==null?Object.defineProperty(f,"ref",{enumerable:!1,get:m}):Object.defineProperty(f,"ref",{enumerable:!1,value:null}),f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(f,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(f,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:G}),Object.defineProperty(f,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:X}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f}function u(f,S,k,D,F,A,G,X){var O=S.children;if(O!==void 0)if(D)if(K(O)){for(D=0;D<O.length;D++)p(O[D]);Object.freeze&&Object.freeze(O)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else p(O);if(B.call(S,"key")){O=e(f);var z=Object.keys(S).filter(function(ce){return ce!=="key"});D=0<z.length?"{key: someKey, "+z.join(": ..., ")+": ...}":"{key: someKey}",V[O+D]||(z=0<z.length?"{"+z.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
756
|
-
let props = %s;
|
757
|
-
<%s {...props} />
|
758
|
-
React keys must be passed directly to JSX without using spread:
|
759
|
-
let props = %s;
|
760
|
-
<%s key={someKey} {...props} />`,D,O,z,O),V[O+D]=!0)}if(O=null,k!==void 0&&(r(k),O=""+k),c(S)&&(r(S.key),O=""+S.key),"key"in S){k={};for(var q in S)q!=="key"&&(k[q]=S[q])}else k=S;return O&&s(k,typeof f=="function"?f.displayName||f.name||"Unknown":f),l(f,O,A,F,o(),k,G,X)}function p(f){typeof f=="object"&&f!==null&&f.$$typeof===h&&f._store&&(f._store.validated=1)}var v=M,h=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),b=Symbol.for("react.consumer"),w=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),P=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),I=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,K=Array.isArray,$=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(f){return f()}};var _,Y={},H=v.react_stack_bottom_frame.bind(v,a)(),U=$(n(a)),V={};xi.Fragment=d,xi.jsx=function(f,S,k,D,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,S,k,!1,D,F,A?Error("react-stack-top-frame"):H,A?$(n(f)):U)},xi.jsxs=function(f,S,k,D,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,S,k,!0,D,F,A?Error("react-stack-top-frame"):H,A?$(n(f)):U)}})()),xi}var Hy;function q6(){return Hy||(Hy=1,process.env.NODE_ENV==="production"?Xd.exports=V6():Xd.exports=G6()),Xd.exports}var ne=q6();M.createContext({locale:void 0});var Z6=(e,t,r,n,o,a,c,s)=>{let m=document.documentElement,l=["light","dark"];function u(h){(Array.isArray(e)?e:[e]).forEach(x=>{let d=x==="class",g=d&&a?o.map(y=>a[y]||y):o;d?(m.classList.remove(...g),m.classList.add(a&&a[h]?a[h]:h)):m.setAttribute(x,h)}),p(h)}function p(h){s&&l.includes(h)&&(m.style.colorScheme=h)}function v(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(n)u(n);else try{let h=localStorage.getItem(t)||r,x=c&&h==="system"?v():h;u(x)}catch{}};i.createContext(void 0);i.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:o,defaultTheme:a,value:c,themes:s,nonce:m,scriptProps:l})=>{let u=JSON.stringify([r,t,a,e,s,c,n,o]).slice(1,-1);return i.createElement("script",{...l,suppressHydrationWarning:!0,nonce:typeof window>"u"?m:"",dangerouslySetInnerHTML:{__html:`(${Z6.toString()})(${u})`}})});ie.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});ie.cva("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function je(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}function Xy(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function J6(...e){return t=>{let r=!1;const n=e.map(o=>{const a=Xy(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():Xy(e[o],null)}}}}function Tt(...e){return i.useCallback(J6(...e),e)}function Q6(e,t){const r=i.createContext(t),n=a=>{const{children:c,...s}=a,m=i.useMemo(()=>s,Object.values(s));return ne.jsx(r.Provider,{value:m,children:c})};n.displayName=e+"Provider";function o(a){const c=i.useContext(r);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function _u(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),m=r.length;r=[...r,c];const l=p=>{const{scope:v,children:h,...x}=p,d=v?.[e]?.[m]||s,g=i.useMemo(()=>x,Object.values(x));return ne.jsx(d.Provider,{value:g,children:h})};l.displayName=a+"Provider";function u(p,v){const h=v?.[e]?.[m]||s,x=i.useContext(h);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[l,u]}const o=()=>{const a=r.map(c=>i.createContext(c));return function(c){const s=c?.[e]||a;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:s}}),[c,s])}};return o.scopeName=e,[n,eK(o,...t)]}function eK(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){const a=n.reduce((c,{useScope:s,scopeName:m})=>{const l=s(o)[`__scope${m}`];return{...c,...l}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var Ma=globalThis?.document?i.useLayoutEffect:()=>{},tK=i[" useId ".trim().toString()]||(()=>{}),rK=0;function KR(e){const[t,r]=i.useState(tK());return Ma(()=>{r(n=>n??String(rK++))},[e]),t?`radix-${t}`:""}var nK=i[" useInsertionEffect ".trim().toString()]||Ma;function HR({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,c]=oK({defaultProp:t,onChange:r}),s=e!==void 0,m=s?e:o;{const u=i.useRef(e!==void 0);i.useEffect(()=>{const p=u.current;p!==s&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=s},[s,n])}const l=i.useCallback(u=>{if(s){const p=aK(u)?u(e):u;p!==e&&c.current?.(p)}else a(u)},[s,e,a,c]);return[m,l]}function oK({defaultProp:e,onChange:t}){const[r,n]=i.useState(e),o=i.useRef(r),a=i.useRef(t);return nK(()=>{a.current=t},[t]),i.useEffect(()=>{o.current!==r&&(a.current?.(r),o.current=r)},[r,o]),[r,n,a]}function aK(e){return typeof e=="function"}var sK=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],We=sK.reduce((e,t)=>{const r=Z.createSlot(`Primitive.${t}`),n=i.forwardRef((o,a)=>{const{asChild:c,...s}=o,m=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),ne.jsx(m,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function iK(e,t){e&&Ee.flushSync(()=>e.dispatchEvent(t))}function Yo(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>t.current?.(...r),[])}function cK(e,t=globalThis?.document){const r=Yo(e);i.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var uK="DismissableLayer",Np="dismissableLayer.update",lK="dismissableLayer.pointerDownOutside",dK="dismissableLayer.focusOutside",Vy,XR=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),VR=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...m}=e,l=i.useContext(XR),[u,p]=i.useState(null),v=u?.ownerDocument??globalThis?.document,[,h]=i.useState({}),x=Tt(t,R=>p(R)),d=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),y=d.indexOf(g),b=u?d.indexOf(u):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,E=b>=y,C=mK(R=>{const N=R.target,P=[...l.branches].some(L=>L.contains(N));!E||P||(o?.(R),c?.(R),R.defaultPrevented||s?.())},v),T=vK(R=>{const N=R.target;[...l.branches].some(P=>P.contains(N))||(a?.(R),c?.(R),R.defaultPrevented||s?.())},v);return cK(R=>{b===l.layers.size-1&&(n?.(R),!R.defaultPrevented&&s&&(R.preventDefault(),s()))},v),i.useEffect(()=>{if(u)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Vy=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),Gy(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Vy)}},[u,v,r,l]),i.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),Gy())},[u,l]),i.useEffect(()=>{const R=()=>h({});return document.addEventListener(Np,R),()=>document.removeEventListener(Np,R)},[]),ne.jsx(We.div,{...m,ref:x,style:{pointerEvents:w?E?"auto":"none":void 0,...e.style},onFocusCapture:je(e.onFocusCapture,T.onFocusCapture),onBlurCapture:je(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:je(e.onPointerDownCapture,C.onPointerDownCapture)})});VR.displayName=uK;var fK="DismissableLayerBranch",pK=i.forwardRef((e,t)=>{const r=i.useContext(XR),n=i.useRef(null),o=Tt(t,n);return i.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),ne.jsx(We.div,{...e,ref:o})});pK.displayName=fK;function mK(e,t=globalThis?.document){const r=Yo(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let m=function(){GR(lK,r,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=m,t.addEventListener("click",o.current,{once:!0})):m()}else t.removeEventListener("click",o.current);n.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function vK(e,t=globalThis?.document){const r=Yo(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&GR(dK,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Gy(){const e=new CustomEvent(Np);document.dispatchEvent(e)}function GR(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?iK(o,a):o.dispatchEvent(a)}var Vd="focusScope.autoFocusOnMount",Gd="focusScope.autoFocusOnUnmount",qy={bubbles:!1,cancelable:!0},gK="FocusScope",qR=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,m]=i.useState(null),l=Yo(o),u=Yo(a),p=i.useRef(null),v=Tt(t,d=>m(d)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let d=function(w){if(h.paused||!s)return;const E=w.target;s.contains(E)?p.current=E:Cr(p.current,{select:!0})},g=function(w){if(h.paused||!s)return;const E=w.relatedTarget;E!==null&&(s.contains(E)||Cr(p.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const E of w)E.removedNodes.length>0&&Cr(s)};document.addEventListener("focusin",d),document.addEventListener("focusout",g);const b=new MutationObserver(y);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",d),document.removeEventListener("focusout",g),b.disconnect()}}},[n,s,h.paused]),i.useEffect(()=>{if(s){Jy.add(h);const d=document.activeElement;if(!s.contains(d)){const g=new CustomEvent(Vd,qy);s.addEventListener(Vd,l),s.dispatchEvent(g),g.defaultPrevented||(hK(EK(ZR(s)),{select:!0}),document.activeElement===d&&Cr(s))}return()=>{s.removeEventListener(Vd,l),setTimeout(()=>{const g=new CustomEvent(Gd,qy);s.addEventListener(Gd,u),s.dispatchEvent(g),g.defaultPrevented||Cr(d??document.body,{select:!0}),s.removeEventListener(Gd,u),Jy.remove(h)},0)}}},[s,l,u,h]);const x=i.useCallback(d=>{if(!r&&!n||h.paused)return;const g=d.key==="Tab"&&!d.altKey&&!d.ctrlKey&&!d.metaKey,y=document.activeElement;if(g&&y){const b=d.currentTarget,[w,E]=yK(b);w&&E?!d.shiftKey&&y===E?(d.preventDefault(),r&&Cr(w,{select:!0})):d.shiftKey&&y===w&&(d.preventDefault(),r&&Cr(E,{select:!0})):y===b&&d.preventDefault()}},[r,n,h.paused]);return ne.jsx(We.div,{tabIndex:-1,...c,ref:v,onKeyDown:x})});qR.displayName=gK;function hK(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Cr(n,{select:t}),document.activeElement!==r)return}function yK(e){const t=ZR(e),r=Zy(t,e),n=Zy(t.reverse(),e);return[r,n]}function ZR(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Zy(e,t){for(const r of e)if(!bK(r,{upTo:t}))return r}function bK(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function wK(e){return e instanceof HTMLInputElement&&"select"in e}function Cr(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&wK(e)&&t&&e.select()}}var Jy=xK();function xK(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=Qy(e,t),e.unshift(t)},remove(t){e=Qy(e,t),e[0]?.resume()}}}function Qy(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function EK(e){return e.filter(t=>t.tagName!=="A")}var SK="Portal",RK=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);Ma(()=>a(!0),[]);const c=r||o&&globalThis?.document?.body;return c?xe.createPortal(ne.jsx(We.div,{...n,ref:t}),c):null});RK.displayName=SK;function CK(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var Mu=e=>{const{present:t,children:r}=e,n=NK(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=Tt(n.ref,kK(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};Mu.displayName="Presence";function NK(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,m]=CK(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const l=Ei(n.current);a.current=s==="mounted"?l:"none"},[s]),Ma(()=>{const l=n.current,u=o.current;if(u!==e){const p=a.current,v=Ei(l);e?m("MOUNT"):v==="none"||l?.display==="none"?m("UNMOUNT"):m(u&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,m]),Ma(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,p=h=>{const x=Ei(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&x&&(m("ANIMATION_END"),!o.current)){const d=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=d)})}},v=h=>{h.target===t&&(a.current=Ei(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else m("ANIMATION_END")},[t,m]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:i.useCallback(l=>{n.current=l?getComputedStyle(l):null,r(l)},[])}}function Ei(e){return e?.animationName||"none"}function kK(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var qd=0;function jK(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??eb()),document.body.insertAdjacentElement("beforeend",e[1]??eb()),qd++,()=>{qd===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),qd--}},[])}function eb(){const e=document.createElement("span");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}var gt=function(){return gt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},gt.apply(this,arguments)};function JR(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function TK(e,t,r){for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var Sc="right-scroll-bar-position",Rc="width-before-scroll-bar",DK="with-scroll-bars-hidden",OK="--removed-body-scroll-bar-size";function Zd(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function PK(e,t){var r=M.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var _K=typeof window<"u"?i.useLayoutEffect:i.useEffect,tb=new WeakMap;function MK(e,t){var r=PK(null,function(n){return e.forEach(function(o){return Zd(o,n)})});return _K(function(){var n=tb.get(r);if(n){var o=new Set(n),a=new Set(e),c=r.current;o.forEach(function(s){a.has(s)||Zd(s,null)}),a.forEach(function(s){o.has(s)||Zd(s,c)})}tb.set(r,e)},[e]),r}function AK(e){return e}function IK(e,t){t===void 0&&(t=AK);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var c=t(a,n);return r.push(c),function(){r=r.filter(function(s){return s!==c})}},assignSyncMedium:function(a){for(n=!0;r.length;){var c=r;r=[],c.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var c=[];if(r.length){var s=r;r=[],s.forEach(a),c=r}var m=function(){var u=c;c=[],u.forEach(a)},l=function(){return Promise.resolve().then(m)};l(),r={push:function(u){c.push(u),l()},filter:function(u){return c=c.filter(u),r}}}};return o}function FK(e){e===void 0&&(e={});var t=IK(null);return t.options=gt({async:!0,ssr:!1},e),t}var QR=function(e){var t=e.sideCar,r=JR(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return i.createElement(n,gt({},r))};QR.isSideCarExport=!0;function LK(e,t){return e.useMedium(t),QR}var eC=FK(),Jd=function(){},Au=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:Jd,onWheelCapture:Jd,onTouchMoveCapture:Jd}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,m=e.className,l=e.removeScrollBar,u=e.enabled,p=e.shards,v=e.sideCar,h=e.noRelative,x=e.noIsolation,d=e.inert,g=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,w=e.gapMode,E=JR(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=v,T=MK([r,t]),R=gt(gt({},E),o);return i.createElement(i.Fragment,null,u&&i.createElement(C,{sideCar:eC,removeScrollBar:l,shards:p,noRelative:h,noIsolation:x,inert:d,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),gt(gt({},R),{ref:T})):i.createElement(b,gt({},R,{className:m,ref:T}),s))});Au.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Au.classNames={fullWidth:Rc,zeroRight:Sc};var WK=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function zK(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=WK();return t&&e.setAttribute("nonce",t),e}function $K(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function YK(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var UK=function(){var e=0,t=null;return{add:function(r){e==0&&(t=zK())&&($K(t,r),YK(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},BK=function(){var e=UK();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},tC=function(){var e=BK(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},KK={left:0,top:0,right:0,gap:0},Qd=function(e){return parseInt(e||"",10)||0},HK=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Qd(r),Qd(n),Qd(o)]},XK=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return KK;var t=HK(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},VK=tC(),Oo="data-scroll-locked",GK=function(e,t,r,n){var o=e.left,a=e.top,c=e.right,s=e.gap;return r===void 0&&(r="margin"),`
|
761
|
-
.`.concat(DK,` {
|
762
|
-
overflow: hidden `).concat(n,`;
|
763
|
-
padding-right: `).concat(s,"px ").concat(n,`;
|
764
|
-
}
|
765
|
-
body[`).concat(Oo,`] {
|
766
|
-
overflow: hidden `).concat(n,`;
|
767
|
-
overscroll-behavior: contain;
|
768
|
-
`).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
|
769
|
-
padding-left: `.concat(o,`px;
|
770
|
-
padding-top: `).concat(a,`px;
|
771
|
-
padding-right: `).concat(c,`px;
|
772
|
-
margin-left:0;
|
773
|
-
margin-top:0;
|
774
|
-
margin-right: `).concat(s,"px ").concat(n,`;
|
775
|
-
`),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
|
776
|
-
}
|
777
|
-
|
778
|
-
.`).concat(Sc,` {
|
779
|
-
right: `).concat(s,"px ").concat(n,`;
|
780
|
-
}
|
781
|
-
|
782
|
-
.`).concat(Rc,` {
|
783
|
-
margin-right: `).concat(s,"px ").concat(n,`;
|
784
|
-
}
|
785
|
-
|
786
|
-
.`).concat(Sc," .").concat(Sc,` {
|
787
|
-
right: 0 `).concat(n,`;
|
788
|
-
}
|
789
|
-
|
790
|
-
.`).concat(Rc," .").concat(Rc,` {
|
791
|
-
margin-right: 0 `).concat(n,`;
|
792
|
-
}
|
793
|
-
|
794
|
-
body[`).concat(Oo,`] {
|
795
|
-
`).concat(OK,": ").concat(s,`px;
|
796
|
-
}
|
797
|
-
`)},rb=function(){var e=parseInt(document.body.getAttribute(Oo)||"0",10);return isFinite(e)?e:0},qK=function(){i.useEffect(function(){return document.body.setAttribute(Oo,(rb()+1).toString()),function(){var e=rb()-1;e<=0?document.body.removeAttribute(Oo):document.body.setAttribute(Oo,e.toString())}},[])},ZK=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;qK();var a=i.useMemo(function(){return XK(o)},[o]);return i.createElement(VK,{styles:GK(a,!t,o,r?"":"!important")})},kp=!1;if(typeof window<"u")try{var Si=Object.defineProperty({},"passive",{get:function(){return kp=!0,!0}});window.addEventListener("test",Si,Si),window.removeEventListener("test",Si,Si)}catch{kp=!1}var ro=kp?{passive:!1}:!1,JK=function(e){return e.tagName==="TEXTAREA"},rC=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!JK(e)&&r[t]==="visible")},QK=function(e){return rC(e,"overflowY")},eH=function(e){return rC(e,"overflowX")},nb=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=nC(e,n);if(o){var a=oC(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},tH=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},rH=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},nC=function(e,t){return e==="v"?QK(t):eH(t)},oC=function(e,t){return e==="v"?tH(t):rH(t)},nH=function(e,t){return e==="h"&&t==="rtl"?-1:1},oH=function(e,t,r,n,o){var a=nH(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,m=t.contains(s),l=!1,u=c>0,p=0,v=0;do{if(!s)break;var h=oC(e,s),x=h[0],d=h[1],g=h[2],y=d-g-a*x;(x||y)&&nC(e,s)&&(p+=y,v+=x);var b=s.parentNode;s=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!m&&s!==document.body||m&&(t.contains(s)||t===s));return(u&&Math.abs(p)<1||!u&&Math.abs(v)<1)&&(l=!0),l},Ri=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ob=function(e){return[e.deltaX,e.deltaY]},ab=function(e){return e&&"current"in e?e.current:e},aH=function(e,t){return e[0]===t[0]&&e[1]===t[1]},sH=function(e){return`
|
798
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
799
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
800
|
-
`)},iH=0,no=[];function cH(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(iH++)[0],a=i.useState(tC)[0],c=i.useRef(e);i.useEffect(function(){c.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var d=TK([e.lockRef.current],(e.shards||[]).map(ab)).filter(Boolean);return d.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),d.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(d,g){if("touches"in d&&d.touches.length===2||d.type==="wheel"&&d.ctrlKey)return!c.current.allowPinchZoom;var y=Ri(d),b=r.current,w="deltaX"in d?d.deltaX:b[0]-y[0],E="deltaY"in d?d.deltaY:b[1]-y[1],C,T=d.target,R=Math.abs(w)>Math.abs(E)?"h":"v";if("touches"in d&&R==="h"&&T.type==="range")return!1;var N=nb(R,T);if(!N)return!0;if(N?C=R:(C=R==="v"?"h":"v",N=nb(R,T)),!N)return!1;if(!n.current&&"changedTouches"in d&&(w||E)&&(n.current=C),!C)return!0;var P=n.current||C;return oH(P,g,d,P==="h"?w:E)},[]),m=i.useCallback(function(d){var g=d;if(!(!no.length||no[no.length-1]!==a)){var y="deltaY"in g?ob(g):Ri(g),b=t.current.filter(function(C){return C.name===g.type&&(C.target===g.target||g.target===C.shadowParent)&&aH(C.delta,y)})[0];if(b&&b.should){g.cancelable&&g.preventDefault();return}if(!b){var w=(c.current.shards||[]).map(ab).filter(Boolean).filter(function(C){return C.contains(g.target)}),E=w.length>0?s(g,w[0]):!c.current.noIsolation;E&&g.cancelable&&g.preventDefault()}}},[]),l=i.useCallback(function(d,g,y,b){var w={name:d,delta:g,target:y,should:b,shadowParent:uH(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(E){return E!==w})},1)},[]),u=i.useCallback(function(d){r.current=Ri(d),n.current=void 0},[]),p=i.useCallback(function(d){l(d.type,ob(d),d.target,s(d,e.lockRef.current))},[]),v=i.useCallback(function(d){l(d.type,Ri(d),d.target,s(d,e.lockRef.current))},[]);i.useEffect(function(){return no.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",m,ro),document.addEventListener("touchmove",m,ro),document.addEventListener("touchstart",u,ro),function(){no=no.filter(function(d){return d!==a}),document.removeEventListener("wheel",m,ro),document.removeEventListener("touchmove",m,ro),document.removeEventListener("touchstart",u,ro)}},[]);var h=e.removeScrollBar,x=e.inert;return i.createElement(i.Fragment,null,x?i.createElement(a,{styles:sH(o)}):null,h?i.createElement(ZK,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function uH(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const lH=LK(eC,cH);var aC=i.forwardRef(function(e,t){return i.createElement(Au,gt({},e,{ref:t,sideCar:lH}))});aC.classNames=Au.classNames;var dH=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},oo=new WeakMap,Ci=new WeakMap,Ni={},ef=0,sC=function(e){return e&&(e.host||sC(e.parentNode))},fH=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=sC(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},pH=function(e,t,r,n){var o=fH(t,Array.isArray(e)?e:[e]);Ni[r]||(Ni[r]=new WeakMap);var a=Ni[r],c=[],s=new Set,m=new Set(o),l=function(p){!p||s.has(p)||(s.add(p),l(p.parentNode))};o.forEach(l);var u=function(p){!p||m.has(p)||Array.prototype.forEach.call(p.children,function(v){if(s.has(v))u(v);else try{var h=v.getAttribute(n),x=h!==null&&h!=="false",d=(oo.get(v)||0)+1,g=(a.get(v)||0)+1;oo.set(v,d),a.set(v,g),c.push(v),d===1&&x&&Ci.set(v,!0),g===1&&v.setAttribute(r,"true"),x||v.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",v,y)}})};return u(t),s.clear(),ef++,function(){c.forEach(function(p){var v=oo.get(p)-1,h=a.get(p)-1;oo.set(p,v),a.set(p,h),v||(Ci.has(p)||p.removeAttribute(n),Ci.delete(p)),h||p.removeAttribute(r)}),ef--,ef||(oo=new WeakMap,oo=new WeakMap,Ci=new WeakMap,Ni={})}},mH=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=dH(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),pH(n,o,r,"aria-hidden")):function(){return null}},iC="Dialog",[cC]=_u(iC),[iae,Ht]=cC(iC),uC="DialogTrigger",vH=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ht(uC,r),a=Tt(t,o.triggerRef);return ne.jsx(We.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Um(o.open),...n,ref:a,onClick:je(e.onClick,o.onOpenToggle)})});vH.displayName=uC;var gH="DialogPortal",[cae,lC]=cC(gH,{forceMount:void 0}),Jc="DialogOverlay",hH=i.forwardRef((e,t)=>{const r=lC(Jc,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Ht(Jc,e.__scopeDialog);return a.modal?ne.jsx(Mu,{present:n||a.open,children:ne.jsx(bH,{...o,ref:t})}):null});hH.displayName=Jc;var yH=Z.createSlot("DialogOverlay.RemoveScroll"),bH=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ht(Jc,r);return ne.jsx(aC,{as:yH,allowPinchZoom:!0,shards:[o.contentRef],children:ne.jsx(We.div,{"data-state":Um(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),on="DialogContent",wH=i.forwardRef((e,t)=>{const r=lC(on,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Ht(on,e.__scopeDialog);return ne.jsx(Mu,{present:n||a.open,children:a.modal?ne.jsx(xH,{...o,ref:t}):ne.jsx(EH,{...o,ref:t})})});wH.displayName=on;var xH=i.forwardRef((e,t)=>{const r=Ht(on,e.__scopeDialog),n=i.useRef(null),o=Tt(t,r.contentRef,n);return i.useEffect(()=>{const a=n.current;if(a)return mH(a)},[]),ne.jsx(dC,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:je(e.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:je(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&a.preventDefault()}),onFocusOutside:je(e.onFocusOutside,a=>a.preventDefault())})}),EH=i.forwardRef((e,t)=>{const r=Ht(on,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return ne.jsx(dC,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(n.current||r.triggerRef.current?.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=a.target;r.triggerRef.current?.contains(c)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),dC=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,s=Ht(on,r),m=i.useRef(null),l=Tt(t,m);return jK(),ne.jsxs(ne.Fragment,{children:[ne.jsx(qR,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:ne.jsx(VR,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Um(s.open),...c,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),ne.jsxs(ne.Fragment,{children:[ne.jsx(NH,{titleId:s.titleId}),ne.jsx(jH,{contentRef:m,descriptionId:s.descriptionId})]})]})}),Ym="DialogTitle",SH=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ht(Ym,r);return ne.jsx(We.h2,{id:o.titleId,...n,ref:t})});SH.displayName=Ym;var fC="DialogDescription",RH=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ht(fC,r);return ne.jsx(We.p,{id:o.descriptionId,...n,ref:t})});RH.displayName=fC;var pC="DialogClose",CH=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ht(pC,r);return ne.jsx(We.button,{type:"button",...n,ref:t,onClick:je(e.onClick,()=>o.onOpenChange(!1))})});CH.displayName=pC;function Um(e){return e?"open":"closed"}var mC="DialogTitleWarning",[uae,vC]=Q6(mC,{contentName:on,titleName:Ym,docsSlug:"dialog"}),NH=({titleId:e})=>{const t=vC(mC),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
801
|
-
|
802
|
-
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
803
|
-
|
804
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},kH="DialogDescriptionWarning",jH=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${vC(kH).contentName}}.`;return i.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},tf={exports:{}},da={};/**
|
805
|
-
* @license React
|
806
|
-
* react-jsx-runtime.production.js
|
807
|
-
*
|
808
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
809
|
-
*
|
810
|
-
* This source code is licensed under the MIT license found in the
|
811
|
-
* LICENSE file in the root directory of this source tree.
|
812
|
-
*/var sb;function TH(){if(sb)return da;sb=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var c=null;if(a!==void 0&&(c=""+a),o.key!==void 0&&(c=""+o.key),"key"in o){a={};for(var s in o)s!=="key"&&(a[s]=o[s])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:c,ref:o!==void 0?o:null,props:a}}return da.Fragment=t,da.jsx=r,da.jsxs=r,da}var ki={};/**
|
813
|
-
* @license React
|
814
|
-
* react-jsx-runtime.development.js
|
815
|
-
*
|
816
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
817
|
-
*
|
818
|
-
* This source code is licensed under the MIT license found in the
|
819
|
-
* LICENSE file in the root directory of this source tree.
|
820
|
-
*/var ib;function DH(){return ib||(ib=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(f==null)return null;if(typeof f=="function")return f.$$typeof===L?null:f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case d:return"Fragment";case y:return"Profiler";case g:return"StrictMode";case C:return"Suspense";case T:return"SuspenseList";case P:return"Activity"}if(typeof f=="object")switch(typeof f.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),f.$$typeof){case x:return"Portal";case w:return(f.displayName||"Context")+".Provider";case b:return(f._context.displayName||"Context")+".Consumer";case E:var S=f.render;return f=f.displayName,f||(f=S.displayName||S.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case R:return S=f.displayName||null,S!==null?S:e(f.type)||"Memo";case N:S=f._payload,f=f._init;try{return e(f(S))}catch{}}return null}function t(f){return""+f}function r(f){try{t(f);var S=!1}catch{S=!0}if(S){S=console;var k=S.error,D=typeof Symbol=="function"&&Symbol.toStringTag&&f[Symbol.toStringTag]||f.constructor.name||"Object";return k.call(S,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",D),t(f)}}function n(f){if(f===d)return"<>";if(typeof f=="object"&&f!==null&&f.$$typeof===N)return"<...>";try{var S=e(f);return S?"<"+S+">":"<...>"}catch{return"<...>"}}function o(){var f=I.A;return f===null?null:f.getOwner()}function a(){return Error("react-stack-top-frame")}function c(f){if(B.call(f,"key")){var S=Object.getOwnPropertyDescriptor(f,"key").get;if(S&&S.isReactWarning)return!1}return f.key!==void 0}function s(f,S){function k(){_||(_=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",S))}k.isReactWarning=!0,Object.defineProperty(f,"key",{get:k,configurable:!0})}function m(){var f=e(this.type);return Y[f]||(Y[f]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),f=this.props.ref,f!==void 0?f:null}function l(f,S,k,D,F,A,G,X){return k=A.ref,f={$$typeof:h,type:f,key:S,props:A,_owner:F},(k!==void 0?k:null)!==null?Object.defineProperty(f,"ref",{enumerable:!1,get:m}):Object.defineProperty(f,"ref",{enumerable:!1,value:null}),f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(f,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(f,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:G}),Object.defineProperty(f,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:X}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f}function u(f,S,k,D,F,A,G,X){var O=S.children;if(O!==void 0)if(D)if(K(O)){for(D=0;D<O.length;D++)p(O[D]);Object.freeze&&Object.freeze(O)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else p(O);if(B.call(S,"key")){O=e(f);var z=Object.keys(S).filter(function(ce){return ce!=="key"});D=0<z.length?"{key: someKey, "+z.join(": ..., ")+": ...}":"{key: someKey}",V[O+D]||(z=0<z.length?"{"+z.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
821
|
-
let props = %s;
|
822
|
-
<%s {...props} />
|
823
|
-
React keys must be passed directly to JSX without using spread:
|
824
|
-
let props = %s;
|
825
|
-
<%s key={someKey} {...props} />`,D,O,z,O),V[O+D]=!0)}if(O=null,k!==void 0&&(r(k),O=""+k),c(S)&&(r(S.key),O=""+S.key),"key"in S){k={};for(var q in S)q!=="key"&&(k[q]=S[q])}else k=S;return O&&s(k,typeof f=="function"?f.displayName||f.name||"Unknown":f),l(f,O,A,F,o(),k,G,X)}function p(f){typeof f=="object"&&f!==null&&f.$$typeof===h&&f._store&&(f._store.validated=1)}var v=M,h=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),b=Symbol.for("react.consumer"),w=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),P=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),I=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,K=Array.isArray,$=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(f){return f()}};var _,Y={},H=v.react_stack_bottom_frame.bind(v,a)(),U=$(n(a)),V={};ki.Fragment=d,ki.jsx=function(f,S,k,D,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,S,k,!1,D,F,A?Error("react-stack-top-frame"):H,A?$(n(f)):U)},ki.jsxs=function(f,S,k,D,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,S,k,!0,D,F,A?Error("react-stack-top-frame"):H,A?$(n(f)):U)}})()),ki}var cb;function OH(){return cb||(cb=1,process.env.NODE_ENV==="production"?tf.exports=TH():tf.exports=DH()),tf.exports}var oe=OH();M.createContext({locale:void 0});var PH=(e,t,r,n,o,a,c,s)=>{let m=document.documentElement,l=["light","dark"];function u(h){(Array.isArray(e)?e:[e]).forEach(x=>{let d=x==="class",g=d&&a?o.map(y=>a[y]||y):o;d?(m.classList.remove(...g),m.classList.add(a&&a[h]?a[h]:h)):m.setAttribute(x,h)}),p(h)}function p(h){s&&l.includes(h)&&(m.style.colorScheme=h)}function v(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(n)u(n);else try{let h=localStorage.getItem(t)||r,x=c&&h==="system"?v():h;u(x)}catch{}};i.createContext(void 0);i.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:o,defaultTheme:a,value:c,themes:s,nonce:m,scriptProps:l})=>{let u=JSON.stringify([r,t,a,e,s,c,n,o]).slice(1,-1);return i.createElement("script",{...l,suppressHydrationWarning:!0,nonce:typeof window>"u"?m:"",dangerouslySetInnerHTML:{__html:`(${PH.toString()})(${u})`}})});ie.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});ie.cva("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function Te(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}function ub(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function _H(...e){return t=>{let r=!1;const n=e.map(o=>{const a=ub(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():ub(e[o],null)}}}}function Dt(...e){return i.useCallback(_H(...e),e)}function MH(e,t){const r=i.createContext(t),n=a=>{const{children:c,...s}=a,m=i.useMemo(()=>s,Object.values(s));return oe.jsx(r.Provider,{value:m,children:c})};n.displayName=e+"Provider";function o(a){const c=i.useContext(r);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function Iu(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),m=r.length;r=[...r,c];const l=p=>{const{scope:v,children:h,...x}=p,d=v?.[e]?.[m]||s,g=i.useMemo(()=>x,Object.values(x));return oe.jsx(d.Provider,{value:g,children:h})};l.displayName=a+"Provider";function u(p,v){const h=v?.[e]?.[m]||s,x=i.useContext(h);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[l,u]}const o=()=>{const a=r.map(c=>i.createContext(c));return function(c){const s=c?.[e]||a;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:s}}),[c,s])}};return o.scopeName=e,[n,AH(o,...t)]}function AH(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){const a=n.reduce((c,{useScope:s,scopeName:m})=>{const l=s(o)[`__scope${m}`];return{...c,...l}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var Aa=globalThis?.document?i.useLayoutEffect:()=>{},IH=i[" useId ".trim().toString()]||(()=>{}),FH=0;function gC(e){const[t,r]=i.useState(IH());return Aa(()=>{r(n=>n??String(FH++))},[e]),t?`radix-${t}`:""}var LH=i[" useInsertionEffect ".trim().toString()]||Aa;function hC({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,c]=WH({defaultProp:t,onChange:r}),s=e!==void 0,m=s?e:o;{const u=i.useRef(e!==void 0);i.useEffect(()=>{const p=u.current;p!==s&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=s},[s,n])}const l=i.useCallback(u=>{if(s){const p=zH(u)?u(e):u;p!==e&&c.current?.(p)}else a(u)},[s,e,a,c]);return[m,l]}function WH({defaultProp:e,onChange:t}){const[r,n]=i.useState(e),o=i.useRef(r),a=i.useRef(t);return LH(()=>{a.current=t},[t]),i.useEffect(()=>{o.current!==r&&(a.current?.(r),o.current=r)},[r,o]),[r,n,a]}function zH(e){return typeof e=="function"}var $H=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ze=$H.reduce((e,t)=>{const r=Z.createSlot(`Primitive.${t}`),n=i.forwardRef((o,a)=>{const{asChild:c,...s}=o,m=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),oe.jsx(m,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function YH(e,t){e&&Ee.flushSync(()=>e.dispatchEvent(t))}function Uo(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>t.current?.(...r),[])}function UH(e,t=globalThis?.document){const r=Uo(e);i.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var BH="DismissableLayer",jp="dismissableLayer.update",KH="dismissableLayer.pointerDownOutside",HH="dismissableLayer.focusOutside",lb,yC=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),bC=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...m}=e,l=i.useContext(yC),[u,p]=i.useState(null),v=u?.ownerDocument??globalThis?.document,[,h]=i.useState({}),x=Dt(t,R=>p(R)),d=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),y=d.indexOf(g),b=u?d.indexOf(u):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,E=b>=y,C=GH(R=>{const N=R.target,P=[...l.branches].some(L=>L.contains(N));!E||P||(o?.(R),c?.(R),R.defaultPrevented||s?.())},v),T=qH(R=>{const N=R.target;[...l.branches].some(P=>P.contains(N))||(a?.(R),c?.(R),R.defaultPrevented||s?.())},v);return UH(R=>{b===l.layers.size-1&&(n?.(R),!R.defaultPrevented&&s&&(R.preventDefault(),s()))},v),i.useEffect(()=>{if(u)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(lb=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),db(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=lb)}},[u,v,r,l]),i.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),db())},[u,l]),i.useEffect(()=>{const R=()=>h({});return document.addEventListener(jp,R),()=>document.removeEventListener(jp,R)},[]),oe.jsx(ze.div,{...m,ref:x,style:{pointerEvents:w?E?"auto":"none":void 0,...e.style},onFocusCapture:Te(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Te(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Te(e.onPointerDownCapture,C.onPointerDownCapture)})});bC.displayName=BH;var XH="DismissableLayerBranch",VH=i.forwardRef((e,t)=>{const r=i.useContext(yC),n=i.useRef(null),o=Dt(t,n);return i.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),oe.jsx(ze.div,{...e,ref:o})});VH.displayName=XH;function GH(e,t=globalThis?.document){const r=Uo(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let m=function(){wC(KH,r,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=m,t.addEventListener("click",o.current,{once:!0})):m()}else t.removeEventListener("click",o.current);n.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function qH(e,t=globalThis?.document){const r=Uo(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&wC(HH,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function db(){const e=new CustomEvent(jp);document.dispatchEvent(e)}function wC(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?YH(o,a):o.dispatchEvent(a)}var rf="focusScope.autoFocusOnMount",nf="focusScope.autoFocusOnUnmount",fb={bubbles:!1,cancelable:!0},ZH="FocusScope",xC=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,m]=i.useState(null),l=Uo(o),u=Uo(a),p=i.useRef(null),v=Dt(t,d=>m(d)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let d=function(w){if(h.paused||!s)return;const E=w.target;s.contains(E)?p.current=E:Nr(p.current,{select:!0})},g=function(w){if(h.paused||!s)return;const E=w.relatedTarget;E!==null&&(s.contains(E)||Nr(p.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const E of w)E.removedNodes.length>0&&Nr(s)};document.addEventListener("focusin",d),document.addEventListener("focusout",g);const b=new MutationObserver(y);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",d),document.removeEventListener("focusout",g),b.disconnect()}}},[n,s,h.paused]),i.useEffect(()=>{if(s){mb.add(h);const d=document.activeElement;if(!s.contains(d)){const g=new CustomEvent(rf,fb);s.addEventListener(rf,l),s.dispatchEvent(g),g.defaultPrevented||(JH(n8(EC(s)),{select:!0}),document.activeElement===d&&Nr(s))}return()=>{s.removeEventListener(rf,l),setTimeout(()=>{const g=new CustomEvent(nf,fb);s.addEventListener(nf,u),s.dispatchEvent(g),g.defaultPrevented||Nr(d??document.body,{select:!0}),s.removeEventListener(nf,u),mb.remove(h)},0)}}},[s,l,u,h]);const x=i.useCallback(d=>{if(!r&&!n||h.paused)return;const g=d.key==="Tab"&&!d.altKey&&!d.ctrlKey&&!d.metaKey,y=document.activeElement;if(g&&y){const b=d.currentTarget,[w,E]=QH(b);w&&E?!d.shiftKey&&y===E?(d.preventDefault(),r&&Nr(w,{select:!0})):d.shiftKey&&y===w&&(d.preventDefault(),r&&Nr(E,{select:!0})):y===b&&d.preventDefault()}},[r,n,h.paused]);return oe.jsx(ze.div,{tabIndex:-1,...c,ref:v,onKeyDown:x})});xC.displayName=ZH;function JH(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Nr(n,{select:t}),document.activeElement!==r)return}function QH(e){const t=EC(e),r=pb(t,e),n=pb(t.reverse(),e);return[r,n]}function EC(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function pb(e,t){for(const r of e)if(!e8(r,{upTo:t}))return r}function e8(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function t8(e){return e instanceof HTMLInputElement&&"select"in e}function Nr(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&t8(e)&&t&&e.select()}}var mb=r8();function r8(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=vb(e,t),e.unshift(t)},remove(t){e=vb(e,t),e[0]?.resume()}}}function vb(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function n8(e){return e.filter(t=>t.tagName!=="A")}var o8="Portal",a8=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);Aa(()=>a(!0),[]);const c=r||o&&globalThis?.document?.body;return c?xe.createPortal(oe.jsx(ze.div,{...n,ref:t}),c):null});a8.displayName=o8;function s8(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var Fu=e=>{const{present:t,children:r}=e,n=i8(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=Dt(n.ref,c8(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};Fu.displayName="Presence";function i8(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,m]=s8(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const l=ji(n.current);a.current=s==="mounted"?l:"none"},[s]),Aa(()=>{const l=n.current,u=o.current;if(u!==e){const p=a.current,v=ji(l);e?m("MOUNT"):v==="none"||l?.display==="none"?m("UNMOUNT"):m(u&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,m]),Aa(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,p=h=>{const x=ji(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&x&&(m("ANIMATION_END"),!o.current)){const d=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=d)})}},v=h=>{h.target===t&&(a.current=ji(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else m("ANIMATION_END")},[t,m]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:i.useCallback(l=>{n.current=l?getComputedStyle(l):null,r(l)},[])}}function ji(e){return e?.animationName||"none"}function c8(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var of=0;function u8(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??gb()),document.body.insertAdjacentElement("beforeend",e[1]??gb()),of++,()=>{of===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),of--}},[])}function gb(){const e=document.createElement("span");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}var ht=function(){return ht=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},ht.apply(this,arguments)};function SC(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function l8(e,t,r){for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var Cc="right-scroll-bar-position",Nc="width-before-scroll-bar",d8="with-scroll-bars-hidden",f8="--removed-body-scroll-bar-size";function af(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function p8(e,t){var r=M.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var m8=typeof window<"u"?i.useLayoutEffect:i.useEffect,hb=new WeakMap;function v8(e,t){var r=p8(null,function(n){return e.forEach(function(o){return af(o,n)})});return m8(function(){var n=hb.get(r);if(n){var o=new Set(n),a=new Set(e),c=r.current;o.forEach(function(s){a.has(s)||af(s,null)}),a.forEach(function(s){o.has(s)||af(s,c)})}hb.set(r,e)},[e]),r}function g8(e){return e}function h8(e,t){t===void 0&&(t=g8);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var c=t(a,n);return r.push(c),function(){r=r.filter(function(s){return s!==c})}},assignSyncMedium:function(a){for(n=!0;r.length;){var c=r;r=[],c.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var c=[];if(r.length){var s=r;r=[],s.forEach(a),c=r}var m=function(){var u=c;c=[],u.forEach(a)},l=function(){return Promise.resolve().then(m)};l(),r={push:function(u){c.push(u),l()},filter:function(u){return c=c.filter(u),r}}}};return o}function y8(e){e===void 0&&(e={});var t=h8(null);return t.options=ht({async:!0,ssr:!1},e),t}var RC=function(e){var t=e.sideCar,r=SC(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return i.createElement(n,ht({},r))};RC.isSideCarExport=!0;function b8(e,t){return e.useMedium(t),RC}var CC=y8(),sf=function(){},Lu=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:sf,onWheelCapture:sf,onTouchMoveCapture:sf}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,m=e.className,l=e.removeScrollBar,u=e.enabled,p=e.shards,v=e.sideCar,h=e.noRelative,x=e.noIsolation,d=e.inert,g=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,w=e.gapMode,E=SC(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=v,T=v8([r,t]),R=ht(ht({},E),o);return i.createElement(i.Fragment,null,u&&i.createElement(C,{sideCar:CC,removeScrollBar:l,shards:p,noRelative:h,noIsolation:x,inert:d,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),ht(ht({},R),{ref:T})):i.createElement(b,ht({},R,{className:m,ref:T}),s))});Lu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Lu.classNames={fullWidth:Nc,zeroRight:Cc};var w8=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function x8(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=w8();return t&&e.setAttribute("nonce",t),e}function E8(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function S8(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var R8=function(){var e=0,t=null;return{add:function(r){e==0&&(t=x8())&&(E8(t,r),S8(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},C8=function(){var e=R8();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},NC=function(){var e=C8(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},N8={left:0,top:0,right:0,gap:0},cf=function(e){return parseInt(e||"",10)||0},k8=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[cf(r),cf(n),cf(o)]},j8=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return N8;var t=k8(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},T8=NC(),Po="data-scroll-locked",D8=function(e,t,r,n){var o=e.left,a=e.top,c=e.right,s=e.gap;return r===void 0&&(r="margin"),`
|
826
|
-
.`.concat(d8,` {
|
827
|
-
overflow: hidden `).concat(n,`;
|
828
|
-
padding-right: `).concat(s,"px ").concat(n,`;
|
829
|
-
}
|
830
|
-
body[`).concat(Po,`] {
|
831
|
-
overflow: hidden `).concat(n,`;
|
832
|
-
overscroll-behavior: contain;
|
833
|
-
`).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
|
834
|
-
padding-left: `.concat(o,`px;
|
835
|
-
padding-top: `).concat(a,`px;
|
836
|
-
padding-right: `).concat(c,`px;
|
837
|
-
margin-left:0;
|
838
|
-
margin-top:0;
|
839
|
-
margin-right: `).concat(s,"px ").concat(n,`;
|
840
|
-
`),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
|
841
|
-
}
|
842
|
-
|
843
|
-
.`).concat(Cc,` {
|
844
|
-
right: `).concat(s,"px ").concat(n,`;
|
845
|
-
}
|
846
|
-
|
847
|
-
.`).concat(Nc,` {
|
848
|
-
margin-right: `).concat(s,"px ").concat(n,`;
|
849
|
-
}
|
850
|
-
|
851
|
-
.`).concat(Cc," .").concat(Cc,` {
|
852
|
-
right: 0 `).concat(n,`;
|
853
|
-
}
|
854
|
-
|
855
|
-
.`).concat(Nc," .").concat(Nc,` {
|
856
|
-
margin-right: 0 `).concat(n,`;
|
857
|
-
}
|
858
|
-
|
859
|
-
body[`).concat(Po,`] {
|
860
|
-
`).concat(f8,": ").concat(s,`px;
|
861
|
-
}
|
862
|
-
`)},yb=function(){var e=parseInt(document.body.getAttribute(Po)||"0",10);return isFinite(e)?e:0},O8=function(){i.useEffect(function(){return document.body.setAttribute(Po,(yb()+1).toString()),function(){var e=yb()-1;e<=0?document.body.removeAttribute(Po):document.body.setAttribute(Po,e.toString())}},[])},P8=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;O8();var a=i.useMemo(function(){return j8(o)},[o]);return i.createElement(T8,{styles:D8(a,!t,o,r?"":"!important")})},Tp=!1;if(typeof window<"u")try{var Ti=Object.defineProperty({},"passive",{get:function(){return Tp=!0,!0}});window.addEventListener("test",Ti,Ti),window.removeEventListener("test",Ti,Ti)}catch{Tp=!1}var ao=Tp?{passive:!1}:!1,_8=function(e){return e.tagName==="TEXTAREA"},kC=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!_8(e)&&r[t]==="visible")},M8=function(e){return kC(e,"overflowY")},A8=function(e){return kC(e,"overflowX")},bb=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=jC(e,n);if(o){var a=TC(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},I8=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},F8=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},jC=function(e,t){return e==="v"?M8(t):A8(t)},TC=function(e,t){return e==="v"?I8(t):F8(t)},L8=function(e,t){return e==="h"&&t==="rtl"?-1:1},W8=function(e,t,r,n,o){var a=L8(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,m=t.contains(s),l=!1,u=c>0,p=0,v=0;do{if(!s)break;var h=TC(e,s),x=h[0],d=h[1],g=h[2],y=d-g-a*x;(x||y)&&jC(e,s)&&(p+=y,v+=x);var b=s.parentNode;s=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!m&&s!==document.body||m&&(t.contains(s)||t===s));return(u&&Math.abs(p)<1||!u&&Math.abs(v)<1)&&(l=!0),l},Di=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},wb=function(e){return[e.deltaX,e.deltaY]},xb=function(e){return e&&"current"in e?e.current:e},z8=function(e,t){return e[0]===t[0]&&e[1]===t[1]},$8=function(e){return`
|
863
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
864
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
865
|
-
`)},Y8=0,so=[];function U8(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(Y8++)[0],a=i.useState(NC)[0],c=i.useRef(e);i.useEffect(function(){c.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var d=l8([e.lockRef.current],(e.shards||[]).map(xb)).filter(Boolean);return d.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),d.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(d,g){if("touches"in d&&d.touches.length===2||d.type==="wheel"&&d.ctrlKey)return!c.current.allowPinchZoom;var y=Di(d),b=r.current,w="deltaX"in d?d.deltaX:b[0]-y[0],E="deltaY"in d?d.deltaY:b[1]-y[1],C,T=d.target,R=Math.abs(w)>Math.abs(E)?"h":"v";if("touches"in d&&R==="h"&&T.type==="range")return!1;var N=bb(R,T);if(!N)return!0;if(N?C=R:(C=R==="v"?"h":"v",N=bb(R,T)),!N)return!1;if(!n.current&&"changedTouches"in d&&(w||E)&&(n.current=C),!C)return!0;var P=n.current||C;return W8(P,g,d,P==="h"?w:E)},[]),m=i.useCallback(function(d){var g=d;if(!(!so.length||so[so.length-1]!==a)){var y="deltaY"in g?wb(g):Di(g),b=t.current.filter(function(C){return C.name===g.type&&(C.target===g.target||g.target===C.shadowParent)&&z8(C.delta,y)})[0];if(b&&b.should){g.cancelable&&g.preventDefault();return}if(!b){var w=(c.current.shards||[]).map(xb).filter(Boolean).filter(function(C){return C.contains(g.target)}),E=w.length>0?s(g,w[0]):!c.current.noIsolation;E&&g.cancelable&&g.preventDefault()}}},[]),l=i.useCallback(function(d,g,y,b){var w={name:d,delta:g,target:y,should:b,shadowParent:B8(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(E){return E!==w})},1)},[]),u=i.useCallback(function(d){r.current=Di(d),n.current=void 0},[]),p=i.useCallback(function(d){l(d.type,wb(d),d.target,s(d,e.lockRef.current))},[]),v=i.useCallback(function(d){l(d.type,Di(d),d.target,s(d,e.lockRef.current))},[]);i.useEffect(function(){return so.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",m,ao),document.addEventListener("touchmove",m,ao),document.addEventListener("touchstart",u,ao),function(){so=so.filter(function(d){return d!==a}),document.removeEventListener("wheel",m,ao),document.removeEventListener("touchmove",m,ao),document.removeEventListener("touchstart",u,ao)}},[]);var h=e.removeScrollBar,x=e.inert;return i.createElement(i.Fragment,null,x?i.createElement(a,{styles:$8(o)}):null,h?i.createElement(P8,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function B8(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const K8=b8(CC,U8);var DC=i.forwardRef(function(e,t){return i.createElement(Lu,ht({},e,{ref:t,sideCar:K8}))});DC.classNames=Lu.classNames;var H8=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},io=new WeakMap,Oi=new WeakMap,Pi={},uf=0,OC=function(e){return e&&(e.host||OC(e.parentNode))},X8=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=OC(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},V8=function(e,t,r,n){var o=X8(t,Array.isArray(e)?e:[e]);Pi[r]||(Pi[r]=new WeakMap);var a=Pi[r],c=[],s=new Set,m=new Set(o),l=function(p){!p||s.has(p)||(s.add(p),l(p.parentNode))};o.forEach(l);var u=function(p){!p||m.has(p)||Array.prototype.forEach.call(p.children,function(v){if(s.has(v))u(v);else try{var h=v.getAttribute(n),x=h!==null&&h!=="false",d=(io.get(v)||0)+1,g=(a.get(v)||0)+1;io.set(v,d),a.set(v,g),c.push(v),d===1&&x&&Oi.set(v,!0),g===1&&v.setAttribute(r,"true"),x||v.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",v,y)}})};return u(t),s.clear(),uf++,function(){c.forEach(function(p){var v=io.get(p)-1,h=a.get(p)-1;io.set(p,v),a.set(p,h),v||(Oi.has(p)||p.removeAttribute(n),Oi.delete(p)),h||p.removeAttribute(r)}),uf--,uf||(io=new WeakMap,io=new WeakMap,Oi=new WeakMap,Pi={})}},G8=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=H8(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),V8(n,o,r,"aria-hidden")):function(){return null}},PC="Dialog",[_C]=Iu(PC),[lae,Xt]=_C(PC),MC="DialogTrigger",q8=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Xt(MC,r),a=Dt(t,o.triggerRef);return oe.jsx(ze.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Km(o.open),...n,ref:a,onClick:Te(e.onClick,o.onOpenToggle)})});q8.displayName=MC;var Z8="DialogPortal",[dae,AC]=_C(Z8,{forceMount:void 0}),Qc="DialogOverlay",J8=i.forwardRef((e,t)=>{const r=AC(Qc,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Xt(Qc,e.__scopeDialog);return a.modal?oe.jsx(Fu,{present:n||a.open,children:oe.jsx(eX,{...o,ref:t})}):null});J8.displayName=Qc;var Q8=Z.createSlot("DialogOverlay.RemoveScroll"),eX=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Xt(Qc,r);return oe.jsx(DC,{as:Q8,allowPinchZoom:!0,shards:[o.contentRef],children:oe.jsx(ze.div,{"data-state":Km(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),an="DialogContent",tX=i.forwardRef((e,t)=>{const r=AC(an,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Xt(an,e.__scopeDialog);return oe.jsx(Fu,{present:n||a.open,children:a.modal?oe.jsx(rX,{...o,ref:t}):oe.jsx(nX,{...o,ref:t})})});tX.displayName=an;var rX=i.forwardRef((e,t)=>{const r=Xt(an,e.__scopeDialog),n=i.useRef(null),o=Dt(t,r.contentRef,n);return i.useEffect(()=>{const a=n.current;if(a)return G8(a)},[]),oe.jsx(IC,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Te(e.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:Te(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&a.preventDefault()}),onFocusOutside:Te(e.onFocusOutside,a=>a.preventDefault())})}),nX=i.forwardRef((e,t)=>{const r=Xt(an,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return oe.jsx(IC,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(n.current||r.triggerRef.current?.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=a.target;r.triggerRef.current?.contains(c)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),IC=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,s=Xt(an,r),m=i.useRef(null),l=Dt(t,m);return u8(),oe.jsxs(oe.Fragment,{children:[oe.jsx(xC,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:oe.jsx(bC,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Km(s.open),...c,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),oe.jsxs(oe.Fragment,{children:[oe.jsx(iX,{titleId:s.titleId}),oe.jsx(uX,{contentRef:m,descriptionId:s.descriptionId})]})]})}),Bm="DialogTitle",oX=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Xt(Bm,r);return oe.jsx(ze.h2,{id:o.titleId,...n,ref:t})});oX.displayName=Bm;var FC="DialogDescription",aX=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Xt(FC,r);return oe.jsx(ze.p,{id:o.descriptionId,...n,ref:t})});aX.displayName=FC;var LC="DialogClose",sX=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Xt(LC,r);return oe.jsx(ze.button,{type:"button",...n,ref:t,onClick:Te(e.onClick,()=>o.onOpenChange(!1))})});sX.displayName=LC;function Km(e){return e?"open":"closed"}var WC="DialogTitleWarning",[fae,zC]=MH(WC,{contentName:an,titleName:Bm,docsSlug:"dialog"}),iX=({titleId:e})=>{const t=zC(WC),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
866
|
-
|
867
|
-
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
868
|
-
|
869
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},cX="DialogDescriptionWarning",uX=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${zC(cX).contentName}}.`;return i.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},lf={exports:{}},fa={};/**
|
870
|
-
* @license React
|
871
|
-
* react-jsx-runtime.production.js
|
872
|
-
*
|
873
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
874
|
-
*
|
875
|
-
* This source code is licensed under the MIT license found in the
|
876
|
-
* LICENSE file in the root directory of this source tree.
|
877
|
-
*/var Eb;function lX(){if(Eb)return fa;Eb=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var c=null;if(a!==void 0&&(c=""+a),o.key!==void 0&&(c=""+o.key),"key"in o){a={};for(var s in o)s!=="key"&&(a[s]=o[s])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:c,ref:o!==void 0?o:null,props:a}}return fa.Fragment=t,fa.jsx=r,fa.jsxs=r,fa}var _i={};/**
|
878
|
-
* @license React
|
879
|
-
* react-jsx-runtime.development.js
|
880
|
-
*
|
881
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
882
|
-
*
|
883
|
-
* This source code is licensed under the MIT license found in the
|
884
|
-
* LICENSE file in the root directory of this source tree.
|
885
|
-
*/var Sb;function dX(){return Sb||(Sb=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(f==null)return null;if(typeof f=="function")return f.$$typeof===L?null:f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case d:return"Fragment";case y:return"Profiler";case g:return"StrictMode";case C:return"Suspense";case T:return"SuspenseList";case P:return"Activity"}if(typeof f=="object")switch(typeof f.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),f.$$typeof){case x:return"Portal";case w:return(f.displayName||"Context")+".Provider";case b:return(f._context.displayName||"Context")+".Consumer";case E:var S=f.render;return f=f.displayName,f||(f=S.displayName||S.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case R:return S=f.displayName||null,S!==null?S:e(f.type)||"Memo";case N:S=f._payload,f=f._init;try{return e(f(S))}catch{}}return null}function t(f){return""+f}function r(f){try{t(f);var S=!1}catch{S=!0}if(S){S=console;var k=S.error,D=typeof Symbol=="function"&&Symbol.toStringTag&&f[Symbol.toStringTag]||f.constructor.name||"Object";return k.call(S,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",D),t(f)}}function n(f){if(f===d)return"<>";if(typeof f=="object"&&f!==null&&f.$$typeof===N)return"<...>";try{var S=e(f);return S?"<"+S+">":"<...>"}catch{return"<...>"}}function o(){var f=I.A;return f===null?null:f.getOwner()}function a(){return Error("react-stack-top-frame")}function c(f){if(B.call(f,"key")){var S=Object.getOwnPropertyDescriptor(f,"key").get;if(S&&S.isReactWarning)return!1}return f.key!==void 0}function s(f,S){function k(){_||(_=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",S))}k.isReactWarning=!0,Object.defineProperty(f,"key",{get:k,configurable:!0})}function m(){var f=e(this.type);return Y[f]||(Y[f]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),f=this.props.ref,f!==void 0?f:null}function l(f,S,k,D,F,A,G,X){return k=A.ref,f={$$typeof:h,type:f,key:S,props:A,_owner:F},(k!==void 0?k:null)!==null?Object.defineProperty(f,"ref",{enumerable:!1,get:m}):Object.defineProperty(f,"ref",{enumerable:!1,value:null}),f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(f,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(f,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:G}),Object.defineProperty(f,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:X}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f}function u(f,S,k,D,F,A,G,X){var O=S.children;if(O!==void 0)if(D)if(K(O)){for(D=0;D<O.length;D++)p(O[D]);Object.freeze&&Object.freeze(O)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else p(O);if(B.call(S,"key")){O=e(f);var z=Object.keys(S).filter(function(ce){return ce!=="key"});D=0<z.length?"{key: someKey, "+z.join(": ..., ")+": ...}":"{key: someKey}",V[O+D]||(z=0<z.length?"{"+z.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
886
|
-
let props = %s;
|
887
|
-
<%s {...props} />
|
888
|
-
React keys must be passed directly to JSX without using spread:
|
889
|
-
let props = %s;
|
890
|
-
<%s key={someKey} {...props} />`,D,O,z,O),V[O+D]=!0)}if(O=null,k!==void 0&&(r(k),O=""+k),c(S)&&(r(S.key),O=""+S.key),"key"in S){k={};for(var q in S)q!=="key"&&(k[q]=S[q])}else k=S;return O&&s(k,typeof f=="function"?f.displayName||f.name||"Unknown":f),l(f,O,A,F,o(),k,G,X)}function p(f){typeof f=="object"&&f!==null&&f.$$typeof===h&&f._store&&(f._store.validated=1)}var v=M,h=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),b=Symbol.for("react.consumer"),w=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),P=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),I=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,K=Array.isArray,$=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(f){return f()}};var _,Y={},H=v.react_stack_bottom_frame.bind(v,a)(),U=$(n(a)),V={};_i.Fragment=d,_i.jsx=function(f,S,k,D,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,S,k,!1,D,F,A?Error("react-stack-top-frame"):H,A?$(n(f)):U)},_i.jsxs=function(f,S,k,D,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,S,k,!0,D,F,A?Error("react-stack-top-frame"):H,A?$(n(f)):U)}})()),_i}var Rb;function fX(){return Rb||(Rb=1,process.env.NODE_ENV==="production"?lf.exports=lX():lf.exports=dX()),lf.exports}var ae=fX();M.createContext({locale:void 0});var pX=(e,t,r,n,o,a,c,s)=>{let m=document.documentElement,l=["light","dark"];function u(h){(Array.isArray(e)?e:[e]).forEach(x=>{let d=x==="class",g=d&&a?o.map(y=>a[y]||y):o;d?(m.classList.remove(...g),m.classList.add(a&&a[h]?a[h]:h)):m.setAttribute(x,h)}),p(h)}function p(h){s&&l.includes(h)&&(m.style.colorScheme=h)}function v(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(n)u(n);else try{let h=localStorage.getItem(t)||r,x=c&&h==="system"?v():h;u(x)}catch{}};i.createContext(void 0);i.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:o,defaultTheme:a,value:c,themes:s,nonce:m,scriptProps:l})=>{let u=JSON.stringify([r,t,a,e,s,c,n,o]).slice(1,-1);return i.createElement("script",{...l,suppressHydrationWarning:!0,nonce:typeof window>"u"?m:"",dangerouslySetInnerHTML:{__html:`(${pX.toString()})(${u})`}})});ie.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});ie.cva("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function De(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}function Cb(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function mX(...e){return t=>{let r=!1;const n=e.map(o=>{const a=Cb(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():Cb(e[o],null)}}}}function Ot(...e){return i.useCallback(mX(...e),e)}function vX(e,t){const r=i.createContext(t),n=a=>{const{children:c,...s}=a,m=i.useMemo(()=>s,Object.values(s));return ae.jsx(r.Provider,{value:m,children:c})};n.displayName=e+"Provider";function o(a){const c=i.useContext(r);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function Wu(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),m=r.length;r=[...r,c];const l=p=>{const{scope:v,children:h,...x}=p,d=v?.[e]?.[m]||s,g=i.useMemo(()=>x,Object.values(x));return ae.jsx(d.Provider,{value:g,children:h})};l.displayName=a+"Provider";function u(p,v){const h=v?.[e]?.[m]||s,x=i.useContext(h);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[l,u]}const o=()=>{const a=r.map(c=>i.createContext(c));return function(c){const s=c?.[e]||a;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:s}}),[c,s])}};return o.scopeName=e,[n,gX(o,...t)]}function gX(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){const a=n.reduce((c,{useScope:s,scopeName:m})=>{const l=s(o)[`__scope${m}`];return{...c,...l}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var Ia=globalThis?.document?i.useLayoutEffect:()=>{},hX=i[" useId ".trim().toString()]||(()=>{}),yX=0;function $C(e){const[t,r]=i.useState(hX());return Ia(()=>{r(n=>n??String(yX++))},[e]),t?`radix-${t}`:""}var bX=i[" useInsertionEffect ".trim().toString()]||Ia;function YC({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,c]=wX({defaultProp:t,onChange:r}),s=e!==void 0,m=s?e:o;{const u=i.useRef(e!==void 0);i.useEffect(()=>{const p=u.current;p!==s&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=s},[s,n])}const l=i.useCallback(u=>{if(s){const p=xX(u)?u(e):u;p!==e&&c.current?.(p)}else a(u)},[s,e,a,c]);return[m,l]}function wX({defaultProp:e,onChange:t}){const[r,n]=i.useState(e),o=i.useRef(r),a=i.useRef(t);return bX(()=>{a.current=t},[t]),i.useEffect(()=>{o.current!==r&&(a.current?.(r),o.current=r)},[r,o]),[r,n,a]}function xX(e){return typeof e=="function"}var EX=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],$e=EX.reduce((e,t)=>{const r=Z.createSlot(`Primitive.${t}`),n=i.forwardRef((o,a)=>{const{asChild:c,...s}=o,m=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),ae.jsx(m,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function SX(e,t){e&&Ee.flushSync(()=>e.dispatchEvent(t))}function Bo(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>t.current?.(...r),[])}function RX(e,t=globalThis?.document){const r=Bo(e);i.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var CX="DismissableLayer",Dp="dismissableLayer.update",NX="dismissableLayer.pointerDownOutside",kX="dismissableLayer.focusOutside",Nb,UC=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),BC=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...m}=e,l=i.useContext(UC),[u,p]=i.useState(null),v=u?.ownerDocument??globalThis?.document,[,h]=i.useState({}),x=Ot(t,R=>p(R)),d=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),y=d.indexOf(g),b=u?d.indexOf(u):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,E=b>=y,C=DX(R=>{const N=R.target,P=[...l.branches].some(L=>L.contains(N));!E||P||(o?.(R),c?.(R),R.defaultPrevented||s?.())},v),T=OX(R=>{const N=R.target;[...l.branches].some(P=>P.contains(N))||(a?.(R),c?.(R),R.defaultPrevented||s?.())},v);return RX(R=>{b===l.layers.size-1&&(n?.(R),!R.defaultPrevented&&s&&(R.preventDefault(),s()))},v),i.useEffect(()=>{if(u)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Nb=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),kb(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Nb)}},[u,v,r,l]),i.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),kb())},[u,l]),i.useEffect(()=>{const R=()=>h({});return document.addEventListener(Dp,R),()=>document.removeEventListener(Dp,R)},[]),ae.jsx($e.div,{...m,ref:x,style:{pointerEvents:w?E?"auto":"none":void 0,...e.style},onFocusCapture:De(e.onFocusCapture,T.onFocusCapture),onBlurCapture:De(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:De(e.onPointerDownCapture,C.onPointerDownCapture)})});BC.displayName=CX;var jX="DismissableLayerBranch",TX=i.forwardRef((e,t)=>{const r=i.useContext(UC),n=i.useRef(null),o=Ot(t,n);return i.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),ae.jsx($e.div,{...e,ref:o})});TX.displayName=jX;function DX(e,t=globalThis?.document){const r=Bo(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let m=function(){KC(NX,r,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=m,t.addEventListener("click",o.current,{once:!0})):m()}else t.removeEventListener("click",o.current);n.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function OX(e,t=globalThis?.document){const r=Bo(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&KC(kX,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function kb(){const e=new CustomEvent(Dp);document.dispatchEvent(e)}function KC(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?SX(o,a):o.dispatchEvent(a)}var df="focusScope.autoFocusOnMount",ff="focusScope.autoFocusOnUnmount",jb={bubbles:!1,cancelable:!0},PX="FocusScope",HC=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,m]=i.useState(null),l=Bo(o),u=Bo(a),p=i.useRef(null),v=Ot(t,d=>m(d)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let d=function(w){if(h.paused||!s)return;const E=w.target;s.contains(E)?p.current=E:kr(p.current,{select:!0})},g=function(w){if(h.paused||!s)return;const E=w.relatedTarget;E!==null&&(s.contains(E)||kr(p.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const E of w)E.removedNodes.length>0&&kr(s)};document.addEventListener("focusin",d),document.addEventListener("focusout",g);const b=new MutationObserver(y);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",d),document.removeEventListener("focusout",g),b.disconnect()}}},[n,s,h.paused]),i.useEffect(()=>{if(s){Db.add(h);const d=document.activeElement;if(!s.contains(d)){const g=new CustomEvent(df,jb);s.addEventListener(df,l),s.dispatchEvent(g),g.defaultPrevented||(_X(LX(XC(s)),{select:!0}),document.activeElement===d&&kr(s))}return()=>{s.removeEventListener(df,l),setTimeout(()=>{const g=new CustomEvent(ff,jb);s.addEventListener(ff,u),s.dispatchEvent(g),g.defaultPrevented||kr(d??document.body,{select:!0}),s.removeEventListener(ff,u),Db.remove(h)},0)}}},[s,l,u,h]);const x=i.useCallback(d=>{if(!r&&!n||h.paused)return;const g=d.key==="Tab"&&!d.altKey&&!d.ctrlKey&&!d.metaKey,y=document.activeElement;if(g&&y){const b=d.currentTarget,[w,E]=MX(b);w&&E?!d.shiftKey&&y===E?(d.preventDefault(),r&&kr(w,{select:!0})):d.shiftKey&&y===w&&(d.preventDefault(),r&&kr(E,{select:!0})):y===b&&d.preventDefault()}},[r,n,h.paused]);return ae.jsx($e.div,{tabIndex:-1,...c,ref:v,onKeyDown:x})});HC.displayName=PX;function _X(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(kr(n,{select:t}),document.activeElement!==r)return}function MX(e){const t=XC(e),r=Tb(t,e),n=Tb(t.reverse(),e);return[r,n]}function XC(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Tb(e,t){for(const r of e)if(!AX(r,{upTo:t}))return r}function AX(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function IX(e){return e instanceof HTMLInputElement&&"select"in e}function kr(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&IX(e)&&t&&e.select()}}var Db=FX();function FX(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=Ob(e,t),e.unshift(t)},remove(t){e=Ob(e,t),e[0]?.resume()}}}function Ob(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function LX(e){return e.filter(t=>t.tagName!=="A")}var WX="Portal",zX=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);Ia(()=>a(!0),[]);const c=r||o&&globalThis?.document?.body;return c?xe.createPortal(ae.jsx($e.div,{...n,ref:t}),c):null});zX.displayName=WX;function $X(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var zu=e=>{const{present:t,children:r}=e,n=YX(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=Ot(n.ref,UX(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};zu.displayName="Presence";function YX(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,m]=$X(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const l=Mi(n.current);a.current=s==="mounted"?l:"none"},[s]),Ia(()=>{const l=n.current,u=o.current;if(u!==e){const p=a.current,v=Mi(l);e?m("MOUNT"):v==="none"||l?.display==="none"?m("UNMOUNT"):m(u&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,m]),Ia(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,p=h=>{const x=Mi(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&x&&(m("ANIMATION_END"),!o.current)){const d=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=d)})}},v=h=>{h.target===t&&(a.current=Mi(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else m("ANIMATION_END")},[t,m]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:i.useCallback(l=>{n.current=l?getComputedStyle(l):null,r(l)},[])}}function Mi(e){return e?.animationName||"none"}function UX(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var pf=0;function BX(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Pb()),document.body.insertAdjacentElement("beforeend",e[1]??Pb()),pf++,()=>{pf===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),pf--}},[])}function Pb(){const e=document.createElement("span");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}var yt=function(){return yt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},yt.apply(this,arguments)};function VC(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function KX(e,t,r){for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var kc="right-scroll-bar-position",jc="width-before-scroll-bar",HX="with-scroll-bars-hidden",XX="--removed-body-scroll-bar-size";function mf(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function VX(e,t){var r=M.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var GX=typeof window<"u"?i.useLayoutEffect:i.useEffect,_b=new WeakMap;function qX(e,t){var r=VX(null,function(n){return e.forEach(function(o){return mf(o,n)})});return GX(function(){var n=_b.get(r);if(n){var o=new Set(n),a=new Set(e),c=r.current;o.forEach(function(s){a.has(s)||mf(s,null)}),a.forEach(function(s){o.has(s)||mf(s,c)})}_b.set(r,e)},[e]),r}function ZX(e){return e}function JX(e,t){t===void 0&&(t=ZX);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var c=t(a,n);return r.push(c),function(){r=r.filter(function(s){return s!==c})}},assignSyncMedium:function(a){for(n=!0;r.length;){var c=r;r=[],c.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var c=[];if(r.length){var s=r;r=[],s.forEach(a),c=r}var m=function(){var u=c;c=[],u.forEach(a)},l=function(){return Promise.resolve().then(m)};l(),r={push:function(u){c.push(u),l()},filter:function(u){return c=c.filter(u),r}}}};return o}function QX(e){e===void 0&&(e={});var t=JX(null);return t.options=yt({async:!0,ssr:!1},e),t}var GC=function(e){var t=e.sideCar,r=VC(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return i.createElement(n,yt({},r))};GC.isSideCarExport=!0;function eV(e,t){return e.useMedium(t),GC}var qC=QX(),vf=function(){},$u=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:vf,onWheelCapture:vf,onTouchMoveCapture:vf}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,m=e.className,l=e.removeScrollBar,u=e.enabled,p=e.shards,v=e.sideCar,h=e.noRelative,x=e.noIsolation,d=e.inert,g=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,w=e.gapMode,E=VC(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=v,T=qX([r,t]),R=yt(yt({},E),o);return i.createElement(i.Fragment,null,u&&i.createElement(C,{sideCar:qC,removeScrollBar:l,shards:p,noRelative:h,noIsolation:x,inert:d,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),yt(yt({},R),{ref:T})):i.createElement(b,yt({},R,{className:m,ref:T}),s))});$u.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};$u.classNames={fullWidth:jc,zeroRight:kc};var tV=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function rV(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=tV();return t&&e.setAttribute("nonce",t),e}function nV(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function oV(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var aV=function(){var e=0,t=null;return{add:function(r){e==0&&(t=rV())&&(nV(t,r),oV(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},sV=function(){var e=aV();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},ZC=function(){var e=sV(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},iV={left:0,top:0,right:0,gap:0},gf=function(e){return parseInt(e||"",10)||0},cV=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[gf(r),gf(n),gf(o)]},uV=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return iV;var t=cV(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},lV=ZC(),_o="data-scroll-locked",dV=function(e,t,r,n){var o=e.left,a=e.top,c=e.right,s=e.gap;return r===void 0&&(r="margin"),`
|
891
|
-
.`.concat(HX,` {
|
892
|
-
overflow: hidden `).concat(n,`;
|
893
|
-
padding-right: `).concat(s,"px ").concat(n,`;
|
894
|
-
}
|
895
|
-
body[`).concat(_o,`] {
|
896
|
-
overflow: hidden `).concat(n,`;
|
897
|
-
overscroll-behavior: contain;
|
898
|
-
`).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
|
899
|
-
padding-left: `.concat(o,`px;
|
900
|
-
padding-top: `).concat(a,`px;
|
901
|
-
padding-right: `).concat(c,`px;
|
902
|
-
margin-left:0;
|
903
|
-
margin-top:0;
|
904
|
-
margin-right: `).concat(s,"px ").concat(n,`;
|
905
|
-
`),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
|
906
|
-
}
|
907
|
-
|
908
|
-
.`).concat(kc,` {
|
909
|
-
right: `).concat(s,"px ").concat(n,`;
|
910
|
-
}
|
911
|
-
|
912
|
-
.`).concat(jc,` {
|
913
|
-
margin-right: `).concat(s,"px ").concat(n,`;
|
914
|
-
}
|
915
|
-
|
916
|
-
.`).concat(kc," .").concat(kc,` {
|
917
|
-
right: 0 `).concat(n,`;
|
918
|
-
}
|
919
|
-
|
920
|
-
.`).concat(jc," .").concat(jc,` {
|
921
|
-
margin-right: 0 `).concat(n,`;
|
922
|
-
}
|
923
|
-
|
924
|
-
body[`).concat(_o,`] {
|
925
|
-
`).concat(XX,": ").concat(s,`px;
|
926
|
-
}
|
927
|
-
`)},Mb=function(){var e=parseInt(document.body.getAttribute(_o)||"0",10);return isFinite(e)?e:0},fV=function(){i.useEffect(function(){return document.body.setAttribute(_o,(Mb()+1).toString()),function(){var e=Mb()-1;e<=0?document.body.removeAttribute(_o):document.body.setAttribute(_o,e.toString())}},[])},pV=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;fV();var a=i.useMemo(function(){return uV(o)},[o]);return i.createElement(lV,{styles:dV(a,!t,o,r?"":"!important")})},Op=!1;if(typeof window<"u")try{var Ai=Object.defineProperty({},"passive",{get:function(){return Op=!0,!0}});window.addEventListener("test",Ai,Ai),window.removeEventListener("test",Ai,Ai)}catch{Op=!1}var co=Op?{passive:!1}:!1,mV=function(e){return e.tagName==="TEXTAREA"},JC=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!mV(e)&&r[t]==="visible")},vV=function(e){return JC(e,"overflowY")},gV=function(e){return JC(e,"overflowX")},Ab=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=QC(e,n);if(o){var a=eN(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},hV=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},yV=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},QC=function(e,t){return e==="v"?vV(t):gV(t)},eN=function(e,t){return e==="v"?hV(t):yV(t)},bV=function(e,t){return e==="h"&&t==="rtl"?-1:1},wV=function(e,t,r,n,o){var a=bV(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,m=t.contains(s),l=!1,u=c>0,p=0,v=0;do{if(!s)break;var h=eN(e,s),x=h[0],d=h[1],g=h[2],y=d-g-a*x;(x||y)&&QC(e,s)&&(p+=y,v+=x);var b=s.parentNode;s=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!m&&s!==document.body||m&&(t.contains(s)||t===s));return(u&&Math.abs(p)<1||!u&&Math.abs(v)<1)&&(l=!0),l},Ii=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ib=function(e){return[e.deltaX,e.deltaY]},Fb=function(e){return e&&"current"in e?e.current:e},xV=function(e,t){return e[0]===t[0]&&e[1]===t[1]},EV=function(e){return`
|
928
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
929
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
930
|
-
`)},SV=0,uo=[];function RV(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(SV++)[0],a=i.useState(ZC)[0],c=i.useRef(e);i.useEffect(function(){c.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var d=KX([e.lockRef.current],(e.shards||[]).map(Fb)).filter(Boolean);return d.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),d.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(d,g){if("touches"in d&&d.touches.length===2||d.type==="wheel"&&d.ctrlKey)return!c.current.allowPinchZoom;var y=Ii(d),b=r.current,w="deltaX"in d?d.deltaX:b[0]-y[0],E="deltaY"in d?d.deltaY:b[1]-y[1],C,T=d.target,R=Math.abs(w)>Math.abs(E)?"h":"v";if("touches"in d&&R==="h"&&T.type==="range")return!1;var N=Ab(R,T);if(!N)return!0;if(N?C=R:(C=R==="v"?"h":"v",N=Ab(R,T)),!N)return!1;if(!n.current&&"changedTouches"in d&&(w||E)&&(n.current=C),!C)return!0;var P=n.current||C;return wV(P,g,d,P==="h"?w:E)},[]),m=i.useCallback(function(d){var g=d;if(!(!uo.length||uo[uo.length-1]!==a)){var y="deltaY"in g?Ib(g):Ii(g),b=t.current.filter(function(C){return C.name===g.type&&(C.target===g.target||g.target===C.shadowParent)&&xV(C.delta,y)})[0];if(b&&b.should){g.cancelable&&g.preventDefault();return}if(!b){var w=(c.current.shards||[]).map(Fb).filter(Boolean).filter(function(C){return C.contains(g.target)}),E=w.length>0?s(g,w[0]):!c.current.noIsolation;E&&g.cancelable&&g.preventDefault()}}},[]),l=i.useCallback(function(d,g,y,b){var w={name:d,delta:g,target:y,should:b,shadowParent:CV(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(E){return E!==w})},1)},[]),u=i.useCallback(function(d){r.current=Ii(d),n.current=void 0},[]),p=i.useCallback(function(d){l(d.type,Ib(d),d.target,s(d,e.lockRef.current))},[]),v=i.useCallback(function(d){l(d.type,Ii(d),d.target,s(d,e.lockRef.current))},[]);i.useEffect(function(){return uo.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",m,co),document.addEventListener("touchmove",m,co),document.addEventListener("touchstart",u,co),function(){uo=uo.filter(function(d){return d!==a}),document.removeEventListener("wheel",m,co),document.removeEventListener("touchmove",m,co),document.removeEventListener("touchstart",u,co)}},[]);var h=e.removeScrollBar,x=e.inert;return i.createElement(i.Fragment,null,x?i.createElement(a,{styles:EV(o)}):null,h?i.createElement(pV,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function CV(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const NV=eV(qC,RV);var tN=i.forwardRef(function(e,t){return i.createElement($u,yt({},e,{ref:t,sideCar:NV}))});tN.classNames=$u.classNames;var kV=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},lo=new WeakMap,Fi=new WeakMap,Li={},hf=0,rN=function(e){return e&&(e.host||rN(e.parentNode))},jV=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=rN(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},TV=function(e,t,r,n){var o=jV(t,Array.isArray(e)?e:[e]);Li[r]||(Li[r]=new WeakMap);var a=Li[r],c=[],s=new Set,m=new Set(o),l=function(p){!p||s.has(p)||(s.add(p),l(p.parentNode))};o.forEach(l);var u=function(p){!p||m.has(p)||Array.prototype.forEach.call(p.children,function(v){if(s.has(v))u(v);else try{var h=v.getAttribute(n),x=h!==null&&h!=="false",d=(lo.get(v)||0)+1,g=(a.get(v)||0)+1;lo.set(v,d),a.set(v,g),c.push(v),d===1&&x&&Fi.set(v,!0),g===1&&v.setAttribute(r,"true"),x||v.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",v,y)}})};return u(t),s.clear(),hf++,function(){c.forEach(function(p){var v=lo.get(p)-1,h=a.get(p)-1;lo.set(p,v),a.set(p,h),v||(Fi.has(p)||p.removeAttribute(n),Fi.delete(p)),h||p.removeAttribute(r)}),hf--,hf||(lo=new WeakMap,lo=new WeakMap,Fi=new WeakMap,Li={})}},DV=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=kV(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),TV(n,o,r,"aria-hidden")):function(){return null}},nN="Dialog",[oN]=Wu(nN),[pae,Vt]=oN(nN),aN="DialogTrigger",OV=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Vt(aN,r),a=Ot(t,o.triggerRef);return ae.jsx($e.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Xm(o.open),...n,ref:a,onClick:De(e.onClick,o.onOpenToggle)})});OV.displayName=aN;var PV="DialogPortal",[mae,sN]=oN(PV,{forceMount:void 0}),eu="DialogOverlay",_V=i.forwardRef((e,t)=>{const r=sN(eu,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Vt(eu,e.__scopeDialog);return a.modal?ae.jsx(zu,{present:n||a.open,children:ae.jsx(AV,{...o,ref:t})}):null});_V.displayName=eu;var MV=Z.createSlot("DialogOverlay.RemoveScroll"),AV=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Vt(eu,r);return ae.jsx(tN,{as:MV,allowPinchZoom:!0,shards:[o.contentRef],children:ae.jsx($e.div,{"data-state":Xm(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),sn="DialogContent",IV=i.forwardRef((e,t)=>{const r=sN(sn,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Vt(sn,e.__scopeDialog);return ae.jsx(zu,{present:n||a.open,children:a.modal?ae.jsx(FV,{...o,ref:t}):ae.jsx(LV,{...o,ref:t})})});IV.displayName=sn;var FV=i.forwardRef((e,t)=>{const r=Vt(sn,e.__scopeDialog),n=i.useRef(null),o=Ot(t,r.contentRef,n);return i.useEffect(()=>{const a=n.current;if(a)return DV(a)},[]),ae.jsx(iN,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:De(e.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:De(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&a.preventDefault()}),onFocusOutside:De(e.onFocusOutside,a=>a.preventDefault())})}),LV=i.forwardRef((e,t)=>{const r=Vt(sn,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return ae.jsx(iN,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(n.current||r.triggerRef.current?.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=a.target;r.triggerRef.current?.contains(c)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),iN=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,s=Vt(sn,r),m=i.useRef(null),l=Ot(t,m);return BX(),ae.jsxs(ae.Fragment,{children:[ae.jsx(HC,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:ae.jsx(BC,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Xm(s.open),...c,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),ae.jsxs(ae.Fragment,{children:[ae.jsx(YV,{titleId:s.titleId}),ae.jsx(BV,{contentRef:m,descriptionId:s.descriptionId})]})]})}),Hm="DialogTitle",WV=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Vt(Hm,r);return ae.jsx($e.h2,{id:o.titleId,...n,ref:t})});WV.displayName=Hm;var cN="DialogDescription",zV=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Vt(cN,r);return ae.jsx($e.p,{id:o.descriptionId,...n,ref:t})});zV.displayName=cN;var uN="DialogClose",$V=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Vt(uN,r);return ae.jsx($e.button,{type:"button",...n,ref:t,onClick:De(e.onClick,()=>o.onOpenChange(!1))})});$V.displayName=uN;function Xm(e){return e?"open":"closed"}var lN="DialogTitleWarning",[vae,dN]=vX(lN,{contentName:sn,titleName:Hm,docsSlug:"dialog"}),YV=({titleId:e})=>{const t=dN(lN),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
931
|
-
|
932
|
-
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
933
|
-
|
934
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},UV="DialogDescriptionWarning",BV=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${dN(UV).contentName}}.`;return i.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},yf={exports:{}},pa={};/**
|
935
|
-
* @license React
|
936
|
-
* react-jsx-runtime.production.js
|
937
|
-
*
|
938
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
939
|
-
*
|
940
|
-
* This source code is licensed under the MIT license found in the
|
941
|
-
* LICENSE file in the root directory of this source tree.
|
942
|
-
*/var Lb;function KV(){if(Lb)return pa;Lb=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var c=null;if(a!==void 0&&(c=""+a),o.key!==void 0&&(c=""+o.key),"key"in o){a={};for(var s in o)s!=="key"&&(a[s]=o[s])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:c,ref:o!==void 0?o:null,props:a}}return pa.Fragment=t,pa.jsx=r,pa.jsxs=r,pa}var Wi={};/**
|
943
|
-
* @license React
|
944
|
-
* react-jsx-runtime.development.js
|
945
|
-
*
|
946
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
947
|
-
*
|
948
|
-
* This source code is licensed under the MIT license found in the
|
949
|
-
* LICENSE file in the root directory of this source tree.
|
950
|
-
*/var Wb;function HV(){return Wb||(Wb=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(f==null)return null;if(typeof f=="function")return f.$$typeof===L?null:f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case d:return"Fragment";case y:return"Profiler";case g:return"StrictMode";case C:return"Suspense";case T:return"SuspenseList";case P:return"Activity"}if(typeof f=="object")switch(typeof f.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),f.$$typeof){case x:return"Portal";case w:return(f.displayName||"Context")+".Provider";case b:return(f._context.displayName||"Context")+".Consumer";case E:var S=f.render;return f=f.displayName,f||(f=S.displayName||S.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case R:return S=f.displayName||null,S!==null?S:e(f.type)||"Memo";case N:S=f._payload,f=f._init;try{return e(f(S))}catch{}}return null}function t(f){return""+f}function r(f){try{t(f);var S=!1}catch{S=!0}if(S){S=console;var k=S.error,D=typeof Symbol=="function"&&Symbol.toStringTag&&f[Symbol.toStringTag]||f.constructor.name||"Object";return k.call(S,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",D),t(f)}}function n(f){if(f===d)return"<>";if(typeof f=="object"&&f!==null&&f.$$typeof===N)return"<...>";try{var S=e(f);return S?"<"+S+">":"<...>"}catch{return"<...>"}}function o(){var f=I.A;return f===null?null:f.getOwner()}function a(){return Error("react-stack-top-frame")}function c(f){if(B.call(f,"key")){var S=Object.getOwnPropertyDescriptor(f,"key").get;if(S&&S.isReactWarning)return!1}return f.key!==void 0}function s(f,S){function k(){_||(_=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",S))}k.isReactWarning=!0,Object.defineProperty(f,"key",{get:k,configurable:!0})}function m(){var f=e(this.type);return Y[f]||(Y[f]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),f=this.props.ref,f!==void 0?f:null}function l(f,S,k,D,F,A,G,X){return k=A.ref,f={$$typeof:h,type:f,key:S,props:A,_owner:F},(k!==void 0?k:null)!==null?Object.defineProperty(f,"ref",{enumerable:!1,get:m}):Object.defineProperty(f,"ref",{enumerable:!1,value:null}),f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(f,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(f,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:G}),Object.defineProperty(f,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:X}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f}function u(f,S,k,D,F,A,G,X){var O=S.children;if(O!==void 0)if(D)if(K(O)){for(D=0;D<O.length;D++)p(O[D]);Object.freeze&&Object.freeze(O)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else p(O);if(B.call(S,"key")){O=e(f);var z=Object.keys(S).filter(function(ce){return ce!=="key"});D=0<z.length?"{key: someKey, "+z.join(": ..., ")+": ...}":"{key: someKey}",V[O+D]||(z=0<z.length?"{"+z.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
951
|
-
let props = %s;
|
952
|
-
<%s {...props} />
|
953
|
-
React keys must be passed directly to JSX without using spread:
|
954
|
-
let props = %s;
|
955
|
-
<%s key={someKey} {...props} />`,D,O,z,O),V[O+D]=!0)}if(O=null,k!==void 0&&(r(k),O=""+k),c(S)&&(r(S.key),O=""+S.key),"key"in S){k={};for(var q in S)q!=="key"&&(k[q]=S[q])}else k=S;return O&&s(k,typeof f=="function"?f.displayName||f.name||"Unknown":f),l(f,O,A,F,o(),k,G,X)}function p(f){typeof f=="object"&&f!==null&&f.$$typeof===h&&f._store&&(f._store.validated=1)}var v=M,h=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),b=Symbol.for("react.consumer"),w=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),P=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),I=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,K=Array.isArray,$=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(f){return f()}};var _,Y={},H=v.react_stack_bottom_frame.bind(v,a)(),U=$(n(a)),V={};Wi.Fragment=d,Wi.jsx=function(f,S,k,D,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,S,k,!1,D,F,A?Error("react-stack-top-frame"):H,A?$(n(f)):U)},Wi.jsxs=function(f,S,k,D,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,S,k,!0,D,F,A?Error("react-stack-top-frame"):H,A?$(n(f)):U)}})()),Wi}var zb;function XV(){return zb||(zb=1,process.env.NODE_ENV==="production"?yf.exports=KV():yf.exports=HV()),yf.exports}var se=XV();M.createContext({locale:void 0});var VV=(e,t,r,n,o,a,c,s)=>{let m=document.documentElement,l=["light","dark"];function u(h){(Array.isArray(e)?e:[e]).forEach(x=>{let d=x==="class",g=d&&a?o.map(y=>a[y]||y):o;d?(m.classList.remove(...g),m.classList.add(a&&a[h]?a[h]:h)):m.setAttribute(x,h)}),p(h)}function p(h){s&&l.includes(h)&&(m.style.colorScheme=h)}function v(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(n)u(n);else try{let h=localStorage.getItem(t)||r,x=c&&h==="system"?v():h;u(x)}catch{}};i.createContext(void 0);i.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:o,defaultTheme:a,value:c,themes:s,nonce:m,scriptProps:l})=>{let u=JSON.stringify([r,t,a,e,s,c,n,o]).slice(1,-1);return i.createElement("script",{...l,suppressHydrationWarning:!0,nonce:typeof window>"u"?m:"",dangerouslySetInnerHTML:{__html:`(${VV.toString()})(${u})`}})});ie.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});ie.cva("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function Oe(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}function $b(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function GV(...e){return t=>{let r=!1;const n=e.map(o=>{const a=$b(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():$b(e[o],null)}}}}function Pt(...e){return i.useCallback(GV(...e),e)}function qV(e,t){const r=i.createContext(t),n=a=>{const{children:c,...s}=a,m=i.useMemo(()=>s,Object.values(s));return se.jsx(r.Provider,{value:m,children:c})};n.displayName=e+"Provider";function o(a){const c=i.useContext(r);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function Yu(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),m=r.length;r=[...r,c];const l=p=>{const{scope:v,children:h,...x}=p,d=v?.[e]?.[m]||s,g=i.useMemo(()=>x,Object.values(x));return se.jsx(d.Provider,{value:g,children:h})};l.displayName=a+"Provider";function u(p,v){const h=v?.[e]?.[m]||s,x=i.useContext(h);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[l,u]}const o=()=>{const a=r.map(c=>i.createContext(c));return function(c){const s=c?.[e]||a;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:s}}),[c,s])}};return o.scopeName=e,[n,ZV(o,...t)]}function ZV(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){const a=n.reduce((c,{useScope:s,scopeName:m})=>{const l=s(o)[`__scope${m}`];return{...c,...l}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var Fa=globalThis?.document?i.useLayoutEffect:()=>{},JV=i[" useId ".trim().toString()]||(()=>{}),QV=0;function fN(e){const[t,r]=i.useState(JV());return Fa(()=>{r(n=>n??String(QV++))},[e]),t?`radix-${t}`:""}var eG=i[" useInsertionEffect ".trim().toString()]||Fa;function pN({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,c]=tG({defaultProp:t,onChange:r}),s=e!==void 0,m=s?e:o;{const u=i.useRef(e!==void 0);i.useEffect(()=>{const p=u.current;p!==s&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=s},[s,n])}const l=i.useCallback(u=>{if(s){const p=rG(u)?u(e):u;p!==e&&c.current?.(p)}else a(u)},[s,e,a,c]);return[m,l]}function tG({defaultProp:e,onChange:t}){const[r,n]=i.useState(e),o=i.useRef(r),a=i.useRef(t);return eG(()=>{a.current=t},[t]),i.useEffect(()=>{o.current!==r&&(a.current?.(r),o.current=r)},[r,o]),[r,n,a]}function rG(e){return typeof e=="function"}var nG=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ye=nG.reduce((e,t)=>{const r=Z.createSlot(`Primitive.${t}`),n=i.forwardRef((o,a)=>{const{asChild:c,...s}=o,m=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),se.jsx(m,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function oG(e,t){e&&Ee.flushSync(()=>e.dispatchEvent(t))}function Ko(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>t.current?.(...r),[])}function aG(e,t=globalThis?.document){const r=Ko(e);i.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var sG="DismissableLayer",Pp="dismissableLayer.update",iG="dismissableLayer.pointerDownOutside",cG="dismissableLayer.focusOutside",Yb,mN=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),vN=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...m}=e,l=i.useContext(mN),[u,p]=i.useState(null),v=u?.ownerDocument??globalThis?.document,[,h]=i.useState({}),x=Pt(t,R=>p(R)),d=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),y=d.indexOf(g),b=u?d.indexOf(u):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,E=b>=y,C=dG(R=>{const N=R.target,P=[...l.branches].some(L=>L.contains(N));!E||P||(o?.(R),c?.(R),R.defaultPrevented||s?.())},v),T=fG(R=>{const N=R.target;[...l.branches].some(P=>P.contains(N))||(a?.(R),c?.(R),R.defaultPrevented||s?.())},v);return aG(R=>{b===l.layers.size-1&&(n?.(R),!R.defaultPrevented&&s&&(R.preventDefault(),s()))},v),i.useEffect(()=>{if(u)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Yb=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),Ub(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Yb)}},[u,v,r,l]),i.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),Ub())},[u,l]),i.useEffect(()=>{const R=()=>h({});return document.addEventListener(Pp,R),()=>document.removeEventListener(Pp,R)},[]),se.jsx(Ye.div,{...m,ref:x,style:{pointerEvents:w?E?"auto":"none":void 0,...e.style},onFocusCapture:Oe(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Oe(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Oe(e.onPointerDownCapture,C.onPointerDownCapture)})});vN.displayName=sG;var uG="DismissableLayerBranch",lG=i.forwardRef((e,t)=>{const r=i.useContext(mN),n=i.useRef(null),o=Pt(t,n);return i.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),se.jsx(Ye.div,{...e,ref:o})});lG.displayName=uG;function dG(e,t=globalThis?.document){const r=Ko(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let m=function(){gN(iG,r,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=m,t.addEventListener("click",o.current,{once:!0})):m()}else t.removeEventListener("click",o.current);n.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function fG(e,t=globalThis?.document){const r=Ko(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&gN(cG,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Ub(){const e=new CustomEvent(Pp);document.dispatchEvent(e)}function gN(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?oG(o,a):o.dispatchEvent(a)}var bf="focusScope.autoFocusOnMount",wf="focusScope.autoFocusOnUnmount",Bb={bubbles:!1,cancelable:!0},pG="FocusScope",hN=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,m]=i.useState(null),l=Ko(o),u=Ko(a),p=i.useRef(null),v=Pt(t,d=>m(d)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let d=function(w){if(h.paused||!s)return;const E=w.target;s.contains(E)?p.current=E:jr(p.current,{select:!0})},g=function(w){if(h.paused||!s)return;const E=w.relatedTarget;E!==null&&(s.contains(E)||jr(p.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const E of w)E.removedNodes.length>0&&jr(s)};document.addEventListener("focusin",d),document.addEventListener("focusout",g);const b=new MutationObserver(y);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",d),document.removeEventListener("focusout",g),b.disconnect()}}},[n,s,h.paused]),i.useEffect(()=>{if(s){Hb.add(h);const d=document.activeElement;if(!s.contains(d)){const g=new CustomEvent(bf,Bb);s.addEventListener(bf,l),s.dispatchEvent(g),g.defaultPrevented||(mG(bG(yN(s)),{select:!0}),document.activeElement===d&&jr(s))}return()=>{s.removeEventListener(bf,l),setTimeout(()=>{const g=new CustomEvent(wf,Bb);s.addEventListener(wf,u),s.dispatchEvent(g),g.defaultPrevented||jr(d??document.body,{select:!0}),s.removeEventListener(wf,u),Hb.remove(h)},0)}}},[s,l,u,h]);const x=i.useCallback(d=>{if(!r&&!n||h.paused)return;const g=d.key==="Tab"&&!d.altKey&&!d.ctrlKey&&!d.metaKey,y=document.activeElement;if(g&&y){const b=d.currentTarget,[w,E]=vG(b);w&&E?!d.shiftKey&&y===E?(d.preventDefault(),r&&jr(w,{select:!0})):d.shiftKey&&y===w&&(d.preventDefault(),r&&jr(E,{select:!0})):y===b&&d.preventDefault()}},[r,n,h.paused]);return se.jsx(Ye.div,{tabIndex:-1,...c,ref:v,onKeyDown:x})});hN.displayName=pG;function mG(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(jr(n,{select:t}),document.activeElement!==r)return}function vG(e){const t=yN(e),r=Kb(t,e),n=Kb(t.reverse(),e);return[r,n]}function yN(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Kb(e,t){for(const r of e)if(!gG(r,{upTo:t}))return r}function gG(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function hG(e){return e instanceof HTMLInputElement&&"select"in e}function jr(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&hG(e)&&t&&e.select()}}var Hb=yG();function yG(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=Xb(e,t),e.unshift(t)},remove(t){e=Xb(e,t),e[0]?.resume()}}}function Xb(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function bG(e){return e.filter(t=>t.tagName!=="A")}var wG="Portal",xG=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);Fa(()=>a(!0),[]);const c=r||o&&globalThis?.document?.body;return c?xe.createPortal(se.jsx(Ye.div,{...n,ref:t}),c):null});xG.displayName=wG;function EG(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var Uu=e=>{const{present:t,children:r}=e,n=SG(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=Pt(n.ref,RG(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};Uu.displayName="Presence";function SG(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,m]=EG(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const l=zi(n.current);a.current=s==="mounted"?l:"none"},[s]),Fa(()=>{const l=n.current,u=o.current;if(u!==e){const p=a.current,v=zi(l);e?m("MOUNT"):v==="none"||l?.display==="none"?m("UNMOUNT"):m(u&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,m]),Fa(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,p=h=>{const x=zi(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&x&&(m("ANIMATION_END"),!o.current)){const d=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=d)})}},v=h=>{h.target===t&&(a.current=zi(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else m("ANIMATION_END")},[t,m]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:i.useCallback(l=>{n.current=l?getComputedStyle(l):null,r(l)},[])}}function zi(e){return e?.animationName||"none"}function RG(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var xf=0;function CG(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Vb()),document.body.insertAdjacentElement("beforeend",e[1]??Vb()),xf++,()=>{xf===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),xf--}},[])}function Vb(){const e=document.createElement("span");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}var bt=function(){return bt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},bt.apply(this,arguments)};function bN(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function NG(e,t,r){for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var Tc="right-scroll-bar-position",Dc="width-before-scroll-bar",kG="with-scroll-bars-hidden",jG="--removed-body-scroll-bar-size";function Ef(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function TG(e,t){var r=M.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var DG=typeof window<"u"?i.useLayoutEffect:i.useEffect,Gb=new WeakMap;function OG(e,t){var r=TG(null,function(n){return e.forEach(function(o){return Ef(o,n)})});return DG(function(){var n=Gb.get(r);if(n){var o=new Set(n),a=new Set(e),c=r.current;o.forEach(function(s){a.has(s)||Ef(s,null)}),a.forEach(function(s){o.has(s)||Ef(s,c)})}Gb.set(r,e)},[e]),r}function PG(e){return e}function _G(e,t){t===void 0&&(t=PG);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var c=t(a,n);return r.push(c),function(){r=r.filter(function(s){return s!==c})}},assignSyncMedium:function(a){for(n=!0;r.length;){var c=r;r=[],c.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var c=[];if(r.length){var s=r;r=[],s.forEach(a),c=r}var m=function(){var u=c;c=[],u.forEach(a)},l=function(){return Promise.resolve().then(m)};l(),r={push:function(u){c.push(u),l()},filter:function(u){return c=c.filter(u),r}}}};return o}function MG(e){e===void 0&&(e={});var t=_G(null);return t.options=bt({async:!0,ssr:!1},e),t}var wN=function(e){var t=e.sideCar,r=bN(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return i.createElement(n,bt({},r))};wN.isSideCarExport=!0;function AG(e,t){return e.useMedium(t),wN}var xN=MG(),Sf=function(){},Bu=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:Sf,onWheelCapture:Sf,onTouchMoveCapture:Sf}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,m=e.className,l=e.removeScrollBar,u=e.enabled,p=e.shards,v=e.sideCar,h=e.noRelative,x=e.noIsolation,d=e.inert,g=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,w=e.gapMode,E=bN(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=v,T=OG([r,t]),R=bt(bt({},E),o);return i.createElement(i.Fragment,null,u&&i.createElement(C,{sideCar:xN,removeScrollBar:l,shards:p,noRelative:h,noIsolation:x,inert:d,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),bt(bt({},R),{ref:T})):i.createElement(b,bt({},R,{className:m,ref:T}),s))});Bu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Bu.classNames={fullWidth:Dc,zeroRight:Tc};var IG=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function FG(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=IG();return t&&e.setAttribute("nonce",t),e}function LG(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function WG(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var zG=function(){var e=0,t=null;return{add:function(r){e==0&&(t=FG())&&(LG(t,r),WG(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},$G=function(){var e=zG();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},EN=function(){var e=$G(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},YG={left:0,top:0,right:0,gap:0},Rf=function(e){return parseInt(e||"",10)||0},UG=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Rf(r),Rf(n),Rf(o)]},BG=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return YG;var t=UG(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},KG=EN(),Mo="data-scroll-locked",HG=function(e,t,r,n){var o=e.left,a=e.top,c=e.right,s=e.gap;return r===void 0&&(r="margin"),`
|
956
|
-
.`.concat(kG,` {
|
957
|
-
overflow: hidden `).concat(n,`;
|
958
|
-
padding-right: `).concat(s,"px ").concat(n,`;
|
959
|
-
}
|
960
|
-
body[`).concat(Mo,`] {
|
961
|
-
overflow: hidden `).concat(n,`;
|
962
|
-
overscroll-behavior: contain;
|
963
|
-
`).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
|
964
|
-
padding-left: `.concat(o,`px;
|
965
|
-
padding-top: `).concat(a,`px;
|
966
|
-
padding-right: `).concat(c,`px;
|
967
|
-
margin-left:0;
|
968
|
-
margin-top:0;
|
969
|
-
margin-right: `).concat(s,"px ").concat(n,`;
|
970
|
-
`),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
|
971
|
-
}
|
972
|
-
|
973
|
-
.`).concat(Tc,` {
|
974
|
-
right: `).concat(s,"px ").concat(n,`;
|
975
|
-
}
|
976
|
-
|
977
|
-
.`).concat(Dc,` {
|
978
|
-
margin-right: `).concat(s,"px ").concat(n,`;
|
979
|
-
}
|
980
|
-
|
981
|
-
.`).concat(Tc," .").concat(Tc,` {
|
982
|
-
right: 0 `).concat(n,`;
|
983
|
-
}
|
984
|
-
|
985
|
-
.`).concat(Dc," .").concat(Dc,` {
|
986
|
-
margin-right: 0 `).concat(n,`;
|
987
|
-
}
|
988
|
-
|
989
|
-
body[`).concat(Mo,`] {
|
990
|
-
`).concat(jG,": ").concat(s,`px;
|
991
|
-
}
|
992
|
-
`)},qb=function(){var e=parseInt(document.body.getAttribute(Mo)||"0",10);return isFinite(e)?e:0},XG=function(){i.useEffect(function(){return document.body.setAttribute(Mo,(qb()+1).toString()),function(){var e=qb()-1;e<=0?document.body.removeAttribute(Mo):document.body.setAttribute(Mo,e.toString())}},[])},VG=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;XG();var a=i.useMemo(function(){return BG(o)},[o]);return i.createElement(KG,{styles:HG(a,!t,o,r?"":"!important")})},_p=!1;if(typeof window<"u")try{var $i=Object.defineProperty({},"passive",{get:function(){return _p=!0,!0}});window.addEventListener("test",$i,$i),window.removeEventListener("test",$i,$i)}catch{_p=!1}var fo=_p?{passive:!1}:!1,GG=function(e){return e.tagName==="TEXTAREA"},SN=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!GG(e)&&r[t]==="visible")},qG=function(e){return SN(e,"overflowY")},ZG=function(e){return SN(e,"overflowX")},Zb=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=RN(e,n);if(o){var a=CN(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},JG=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},QG=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},RN=function(e,t){return e==="v"?qG(t):ZG(t)},CN=function(e,t){return e==="v"?JG(t):QG(t)},eq=function(e,t){return e==="h"&&t==="rtl"?-1:1},tq=function(e,t,r,n,o){var a=eq(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,m=t.contains(s),l=!1,u=c>0,p=0,v=0;do{if(!s)break;var h=CN(e,s),x=h[0],d=h[1],g=h[2],y=d-g-a*x;(x||y)&&RN(e,s)&&(p+=y,v+=x);var b=s.parentNode;s=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!m&&s!==document.body||m&&(t.contains(s)||t===s));return(u&&Math.abs(p)<1||!u&&Math.abs(v)<1)&&(l=!0),l},Yi=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Jb=function(e){return[e.deltaX,e.deltaY]},Qb=function(e){return e&&"current"in e?e.current:e},rq=function(e,t){return e[0]===t[0]&&e[1]===t[1]},nq=function(e){return`
|
993
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
994
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
995
|
-
`)},oq=0,po=[];function aq(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(oq++)[0],a=i.useState(EN)[0],c=i.useRef(e);i.useEffect(function(){c.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var d=NG([e.lockRef.current],(e.shards||[]).map(Qb)).filter(Boolean);return d.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),d.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(d,g){if("touches"in d&&d.touches.length===2||d.type==="wheel"&&d.ctrlKey)return!c.current.allowPinchZoom;var y=Yi(d),b=r.current,w="deltaX"in d?d.deltaX:b[0]-y[0],E="deltaY"in d?d.deltaY:b[1]-y[1],C,T=d.target,R=Math.abs(w)>Math.abs(E)?"h":"v";if("touches"in d&&R==="h"&&T.type==="range")return!1;var N=Zb(R,T);if(!N)return!0;if(N?C=R:(C=R==="v"?"h":"v",N=Zb(R,T)),!N)return!1;if(!n.current&&"changedTouches"in d&&(w||E)&&(n.current=C),!C)return!0;var P=n.current||C;return tq(P,g,d,P==="h"?w:E)},[]),m=i.useCallback(function(d){var g=d;if(!(!po.length||po[po.length-1]!==a)){var y="deltaY"in g?Jb(g):Yi(g),b=t.current.filter(function(C){return C.name===g.type&&(C.target===g.target||g.target===C.shadowParent)&&rq(C.delta,y)})[0];if(b&&b.should){g.cancelable&&g.preventDefault();return}if(!b){var w=(c.current.shards||[]).map(Qb).filter(Boolean).filter(function(C){return C.contains(g.target)}),E=w.length>0?s(g,w[0]):!c.current.noIsolation;E&&g.cancelable&&g.preventDefault()}}},[]),l=i.useCallback(function(d,g,y,b){var w={name:d,delta:g,target:y,should:b,shadowParent:sq(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(E){return E!==w})},1)},[]),u=i.useCallback(function(d){r.current=Yi(d),n.current=void 0},[]),p=i.useCallback(function(d){l(d.type,Jb(d),d.target,s(d,e.lockRef.current))},[]),v=i.useCallback(function(d){l(d.type,Yi(d),d.target,s(d,e.lockRef.current))},[]);i.useEffect(function(){return po.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",m,fo),document.addEventListener("touchmove",m,fo),document.addEventListener("touchstart",u,fo),function(){po=po.filter(function(d){return d!==a}),document.removeEventListener("wheel",m,fo),document.removeEventListener("touchmove",m,fo),document.removeEventListener("touchstart",u,fo)}},[]);var h=e.removeScrollBar,x=e.inert;return i.createElement(i.Fragment,null,x?i.createElement(a,{styles:nq(o)}):null,h?i.createElement(VG,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function sq(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const iq=AG(xN,aq);var NN=i.forwardRef(function(e,t){return i.createElement(Bu,bt({},e,{ref:t,sideCar:iq}))});NN.classNames=Bu.classNames;var cq=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},mo=new WeakMap,Ui=new WeakMap,Bi={},Cf=0,kN=function(e){return e&&(e.host||kN(e.parentNode))},uq=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=kN(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},lq=function(e,t,r,n){var o=uq(t,Array.isArray(e)?e:[e]);Bi[r]||(Bi[r]=new WeakMap);var a=Bi[r],c=[],s=new Set,m=new Set(o),l=function(p){!p||s.has(p)||(s.add(p),l(p.parentNode))};o.forEach(l);var u=function(p){!p||m.has(p)||Array.prototype.forEach.call(p.children,function(v){if(s.has(v))u(v);else try{var h=v.getAttribute(n),x=h!==null&&h!=="false",d=(mo.get(v)||0)+1,g=(a.get(v)||0)+1;mo.set(v,d),a.set(v,g),c.push(v),d===1&&x&&Ui.set(v,!0),g===1&&v.setAttribute(r,"true"),x||v.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",v,y)}})};return u(t),s.clear(),Cf++,function(){c.forEach(function(p){var v=mo.get(p)-1,h=a.get(p)-1;mo.set(p,v),a.set(p,h),v||(Ui.has(p)||p.removeAttribute(n),Ui.delete(p)),h||p.removeAttribute(r)}),Cf--,Cf||(mo=new WeakMap,mo=new WeakMap,Ui=new WeakMap,Bi={})}},dq=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=cq(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),lq(n,o,r,"aria-hidden")):function(){return null}},jN="Dialog",[TN]=Yu(jN),[gae,Gt]=TN(jN),DN="DialogTrigger",fq=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Gt(DN,r),a=Pt(t,o.triggerRef);return se.jsx(Ye.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Gm(o.open),...n,ref:a,onClick:Oe(e.onClick,o.onOpenToggle)})});fq.displayName=DN;var pq="DialogPortal",[hae,ON]=TN(pq,{forceMount:void 0}),tu="DialogOverlay",mq=i.forwardRef((e,t)=>{const r=ON(tu,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Gt(tu,e.__scopeDialog);return a.modal?se.jsx(Uu,{present:n||a.open,children:se.jsx(gq,{...o,ref:t})}):null});mq.displayName=tu;var vq=Z.createSlot("DialogOverlay.RemoveScroll"),gq=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Gt(tu,r);return se.jsx(NN,{as:vq,allowPinchZoom:!0,shards:[o.contentRef],children:se.jsx(Ye.div,{"data-state":Gm(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),cn="DialogContent",hq=i.forwardRef((e,t)=>{const r=ON(cn,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Gt(cn,e.__scopeDialog);return se.jsx(Uu,{present:n||a.open,children:a.modal?se.jsx(yq,{...o,ref:t}):se.jsx(bq,{...o,ref:t})})});hq.displayName=cn;var yq=i.forwardRef((e,t)=>{const r=Gt(cn,e.__scopeDialog),n=i.useRef(null),o=Pt(t,r.contentRef,n);return i.useEffect(()=>{const a=n.current;if(a)return dq(a)},[]),se.jsx(PN,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Oe(e.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:Oe(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&a.preventDefault()}),onFocusOutside:Oe(e.onFocusOutside,a=>a.preventDefault())})}),bq=i.forwardRef((e,t)=>{const r=Gt(cn,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return se.jsx(PN,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(n.current||r.triggerRef.current?.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=a.target;r.triggerRef.current?.contains(c)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),PN=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,s=Gt(cn,r),m=i.useRef(null),l=Pt(t,m);return CG(),se.jsxs(se.Fragment,{children:[se.jsx(hN,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:se.jsx(vN,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Gm(s.open),...c,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),se.jsxs(se.Fragment,{children:[se.jsx(Sq,{titleId:s.titleId}),se.jsx(Cq,{contentRef:m,descriptionId:s.descriptionId})]})]})}),Vm="DialogTitle",wq=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Gt(Vm,r);return se.jsx(Ye.h2,{id:o.titleId,...n,ref:t})});wq.displayName=Vm;var _N="DialogDescription",xq=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Gt(_N,r);return se.jsx(Ye.p,{id:o.descriptionId,...n,ref:t})});xq.displayName=_N;var MN="DialogClose",Eq=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Gt(MN,r);return se.jsx(Ye.button,{type:"button",...n,ref:t,onClick:Oe(e.onClick,()=>o.onOpenChange(!1))})});Eq.displayName=MN;function Gm(e){return e?"open":"closed"}var AN="DialogTitleWarning",[yae,IN]=qV(AN,{contentName:cn,titleName:Vm,docsSlug:"dialog"}),Sq=({titleId:e})=>{const t=IN(AN),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
996
|
-
|
997
|
-
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
998
|
-
|
999
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},Rq="DialogDescriptionWarning",Cq=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${IN(Rq).contentName}}.`;return i.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Nf={exports:{}},ma={};/**
|
1000
|
-
* @license React
|
1001
|
-
* react-jsx-runtime.production.js
|
1002
|
-
*
|
1003
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
1004
|
-
*
|
1005
|
-
* This source code is licensed under the MIT license found in the
|
1006
|
-
* LICENSE file in the root directory of this source tree.
|
1007
|
-
*/var ew;function Nq(){if(ew)return ma;ew=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var c=null;if(a!==void 0&&(c=""+a),o.key!==void 0&&(c=""+o.key),"key"in o){a={};for(var s in o)s!=="key"&&(a[s]=o[s])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:c,ref:o!==void 0?o:null,props:a}}return ma.Fragment=t,ma.jsx=r,ma.jsxs=r,ma}var Ki={};/**
|
1008
|
-
* @license React
|
1009
|
-
* react-jsx-runtime.development.js
|
1010
|
-
*
|
1011
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
1012
|
-
*
|
1013
|
-
* This source code is licensed under the MIT license found in the
|
1014
|
-
* LICENSE file in the root directory of this source tree.
|
1015
|
-
*/var tw;function kq(){return tw||(tw=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(f==null)return null;if(typeof f=="function")return f.$$typeof===L?null:f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case d:return"Fragment";case y:return"Profiler";case g:return"StrictMode";case C:return"Suspense";case T:return"SuspenseList";case P:return"Activity"}if(typeof f=="object")switch(typeof f.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),f.$$typeof){case x:return"Portal";case w:return(f.displayName||"Context")+".Provider";case b:return(f._context.displayName||"Context")+".Consumer";case E:var S=f.render;return f=f.displayName,f||(f=S.displayName||S.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case R:return S=f.displayName||null,S!==null?S:e(f.type)||"Memo";case N:S=f._payload,f=f._init;try{return e(f(S))}catch{}}return null}function t(f){return""+f}function r(f){try{t(f);var S=!1}catch{S=!0}if(S){S=console;var k=S.error,D=typeof Symbol=="function"&&Symbol.toStringTag&&f[Symbol.toStringTag]||f.constructor.name||"Object";return k.call(S,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",D),t(f)}}function n(f){if(f===d)return"<>";if(typeof f=="object"&&f!==null&&f.$$typeof===N)return"<...>";try{var S=e(f);return S?"<"+S+">":"<...>"}catch{return"<...>"}}function o(){var f=I.A;return f===null?null:f.getOwner()}function a(){return Error("react-stack-top-frame")}function c(f){if(B.call(f,"key")){var S=Object.getOwnPropertyDescriptor(f,"key").get;if(S&&S.isReactWarning)return!1}return f.key!==void 0}function s(f,S){function k(){_||(_=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",S))}k.isReactWarning=!0,Object.defineProperty(f,"key",{get:k,configurable:!0})}function m(){var f=e(this.type);return Y[f]||(Y[f]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),f=this.props.ref,f!==void 0?f:null}function l(f,S,k,D,F,A,G,X){return k=A.ref,f={$$typeof:h,type:f,key:S,props:A,_owner:F},(k!==void 0?k:null)!==null?Object.defineProperty(f,"ref",{enumerable:!1,get:m}):Object.defineProperty(f,"ref",{enumerable:!1,value:null}),f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(f,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(f,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:G}),Object.defineProperty(f,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:X}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f}function u(f,S,k,D,F,A,G,X){var O=S.children;if(O!==void 0)if(D)if(K(O)){for(D=0;D<O.length;D++)p(O[D]);Object.freeze&&Object.freeze(O)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else p(O);if(B.call(S,"key")){O=e(f);var z=Object.keys(S).filter(function(ce){return ce!=="key"});D=0<z.length?"{key: someKey, "+z.join(": ..., ")+": ...}":"{key: someKey}",V[O+D]||(z=0<z.length?"{"+z.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
1016
|
-
let props = %s;
|
1017
|
-
<%s {...props} />
|
1018
|
-
React keys must be passed directly to JSX without using spread:
|
1019
|
-
let props = %s;
|
1020
|
-
<%s key={someKey} {...props} />`,D,O,z,O),V[O+D]=!0)}if(O=null,k!==void 0&&(r(k),O=""+k),c(S)&&(r(S.key),O=""+S.key),"key"in S){k={};for(var q in S)q!=="key"&&(k[q]=S[q])}else k=S;return O&&s(k,typeof f=="function"?f.displayName||f.name||"Unknown":f),l(f,O,A,F,o(),k,G,X)}function p(f){typeof f=="object"&&f!==null&&f.$$typeof===h&&f._store&&(f._store.validated=1)}var v=M,h=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),b=Symbol.for("react.consumer"),w=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),P=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),I=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,K=Array.isArray,$=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(f){return f()}};var _,Y={},H=v.react_stack_bottom_frame.bind(v,a)(),U=$(n(a)),V={};Ki.Fragment=d,Ki.jsx=function(f,S,k,D,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,S,k,!1,D,F,A?Error("react-stack-top-frame"):H,A?$(n(f)):U)},Ki.jsxs=function(f,S,k,D,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,S,k,!0,D,F,A?Error("react-stack-top-frame"):H,A?$(n(f)):U)}})()),Ki}var rw;function jq(){return rw||(rw=1,process.env.NODE_ENV==="production"?Nf.exports=Nq():Nf.exports=kq()),Nf.exports}var he=jq();const Tq={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Dq=(e,t,r)=>{let n;const o=Tq[e];return typeof o=="string"?n=o:t===1?n=o.one:n=o.other.replace("{{count}}",t.toString()),r?.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};function kf(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const Oq={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Pq={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},_q={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Mq={date:kf({formats:Oq,defaultWidth:"full"}),time:kf({formats:Pq,defaultWidth:"full"}),dateTime:kf({formats:_q,defaultWidth:"full"})},Aq={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Iq=(e,t,r,n)=>Aq[e];function va(e){return(t,r)=>{const n=r?.context?String(r.context):"standalone";let o;if(n==="formatting"&&e.formattingValues){const c=e.defaultFormattingWidth||e.defaultWidth,s=r?.width?String(r.width):c;o=e.formattingValues[s]||e.formattingValues[c]}else{const c=e.defaultWidth,s=r?.width?String(r.width):e.defaultWidth;o=e.values[s]||e.values[c]}const a=e.argumentCallback?e.argumentCallback(t):t;return o[a]}}const Fq={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Lq={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Wq={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},zq={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},$q={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Yq={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Uq=(e,t)=>{const r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Bq={ordinalNumber:Uq,era:va({values:Fq,defaultWidth:"wide"}),quarter:va({values:Lq,defaultWidth:"wide",argumentCallback:e=>e-1}),month:va({values:Wq,defaultWidth:"wide"}),day:va({values:zq,defaultWidth:"wide"}),dayPeriod:va({values:$q,defaultWidth:"wide",formattingValues:Yq,defaultFormattingWidth:"wide"})};function ga(e){return(t,r={})=>{const n=r.width,o=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;const c=a[0],s=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],m=Array.isArray(s)?Hq(s,p=>p.test(c)):Kq(s,p=>p.test(c));let l;l=e.valueCallback?e.valueCallback(m):m,l=r.valueCallback?r.valueCallback(l):l;const u=t.slice(c.length);return{value:l,rest:u}}}function Kq(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function Hq(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}function Xq(e){return(t,r={})=>{const n=t.match(e.matchPattern);if(!n)return null;const o=n[0],a=t.match(e.parsePattern);if(!a)return null;let c=e.valueCallback?e.valueCallback(a[0]):a[0];c=r.valueCallback?r.valueCallback(c):c;const s=t.slice(o.length);return{value:c,rest:s}}}const Vq=/^(\d+)(th|st|nd|rd)?/i,Gq=/\d+/i,qq={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Zq={any:[/^b/i,/^(a|c)/i]},Jq={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Qq={any:[/1/i,/2/i,/3/i,/4/i]},eZ={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},tZ={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},rZ={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},nZ={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},oZ={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},aZ={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},sZ={ordinalNumber:Xq({matchPattern:Vq,parsePattern:Gq,valueCallback:e=>parseInt(e,10)}),era:ga({matchPatterns:qq,defaultMatchWidth:"wide",parsePatterns:Zq,defaultParseWidth:"any"}),quarter:ga({matchPatterns:Jq,defaultMatchWidth:"wide",parsePatterns:Qq,defaultParseWidth:"any",valueCallback:e=>e+1}),month:ga({matchPatterns:eZ,defaultMatchWidth:"wide",parsePatterns:tZ,defaultParseWidth:"any"}),day:ga({matchPatterns:rZ,defaultMatchWidth:"wide",parsePatterns:nZ,defaultParseWidth:"any"}),dayPeriod:ga({matchPatterns:oZ,defaultMatchWidth:"any",parsePatterns:aZ,defaultParseWidth:"any"})},FN={code:"en-US",formatDistance:Dq,formatLong:Mq,formatRelative:Iq,localize:Bq,match:sZ,options:{weekStartsOn:0,firstWeekContainsDate:1}};M.createContext({locale:void 0});ie.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function iZ(e,t,r="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:e,timeZoneName:r}).format(t).split(/\s/g).slice(2).join(" ")}const cZ={},ha={};function Br(e,t){try{const r=(cZ[e]||=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"longOffset"}).format)(t).split("GMT")[1];return r in ha?ha[r]:nw(r,r.split(":"))}catch{if(e in ha)return ha[e];const r=e?.match(uZ);return r?nw(e,r.slice(1)):NaN}}const uZ=/([+-]\d\d):?(\d\d)?/;function nw(e,t){const r=+(t[0]||0),n=+(t[1]||0),o=+(t[2]||0)/60;return ha[e]=r*60+n>0?r*60+n+o:r*60-n-o}class xt extends Date{constructor(...t){super(),t.length>1&&typeof t[t.length-1]=="string"&&(this.timeZone=t.pop()),this.internal=new Date,isNaN(Br(this.timeZone,this))?this.setTime(NaN):t.length?typeof t[0]=="number"&&(t.length===1||t.length===2&&typeof t[1]!="number")?this.setTime(t[0]):typeof t[0]=="string"?this.setTime(+new Date(t[0])):t[0]instanceof Date?this.setTime(+t[0]):(this.setTime(+new Date(...t)),LN(this),Mp(this)):this.setTime(Date.now())}static tz(t,...r){return r.length?new xt(...r,t):new xt(Date.now(),t)}withTimeZone(t){return new xt(+this,t)}getTimezoneOffset(){const t=-Br(this.timeZone,this);return t>0?Math.floor(t):Math.ceil(t)}setTime(t){return Date.prototype.setTime.apply(this,arguments),Mp(this),+this}[Symbol.for("constructDateFrom")](t){return new xt(+new Date(t),this.timeZone)}}const ow=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!ow.test(e))return;const t=e.replace(ow,"$1UTC");xt.prototype[t]&&(e.startsWith("get")?xt.prototype[e]=function(){return this.internal[t]()}:(xt.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),lZ(this),+this},xt.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),Mp(this),+this}))});function Mp(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(-Br(e.timeZone,e)*60))}function lZ(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),LN(e)}function LN(e){const t=Br(e.timeZone,e),r=t>0?Math.floor(t):Math.ceil(t),n=new Date(+e);n.setUTCHours(n.getUTCHours()-1);const o=-new Date(+e).getTimezoneOffset(),a=-new Date(+n).getTimezoneOffset(),c=o-a,s=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();c&&s&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+c);const m=o-r;m&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+m);const l=new Date(+e);l.setUTCSeconds(0);const u=o>0?l.getSeconds():(l.getSeconds()-60)%60,p=Math.round(-(Br(e.timeZone,e)*60))%60;(p||u)&&(e.internal.setUTCSeconds(e.internal.getUTCSeconds()+p),Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+p+u));const v=Br(e.timeZone,e),h=v>0?Math.floor(v):Math.ceil(v),x=-new Date(+e).getTimezoneOffset()-h,d=h!==r,g=x-m;if(d&&g){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+g);const y=Br(e.timeZone,e),b=y>0?Math.floor(y):Math.ceil(y),w=h-b;w&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+w),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+w))}}class Kr extends xt{static tz(t,...r){return r.length?new Kr(...r,t):new Kr(Date.now(),t)}toISOString(){const[t,r,n]=this.tzComponents(),o=`${t}${r}:${n}`;return this.internal.toISOString().slice(0,-1)+o}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){const[t,r,n,o]=this.internal.toUTCString().split(" ");return`${t?.slice(0,-1)} ${n} ${r} ${o}`}toTimeString(){const t=this.internal.toUTCString().split(" ")[4],[r,n,o]=this.tzComponents();return`${t} GMT${r}${n}${o} (${iZ(this.timeZone,this)})`}toLocaleString(t,r){return Date.prototype.toLocaleString.call(this,t,{...r,timeZone:r?.timeZone||this.timeZone})}toLocaleDateString(t,r){return Date.prototype.toLocaleDateString.call(this,t,{...r,timeZone:r?.timeZone||this.timeZone})}toLocaleTimeString(t,r){return Date.prototype.toLocaleTimeString.call(this,t,{...r,timeZone:r?.timeZone||this.timeZone})}tzComponents(){const t=this.getTimezoneOffset(),r=t>0?"-":"+",n=String(Math.floor(Math.abs(t)/60)).padStart(2,"0"),o=String(Math.abs(t)%60).padStart(2,"0");return[r,n,o]}withTimeZone(t){return new Kr(+this,t)}[Symbol.for("constructDateFrom")](t){return new Kr(+new Date(t),this.timeZone)}}const WN=6048e5,dZ=864e5,aw=Symbol.for("constructDateFrom");function we(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&aw in e?e[aw](t):e instanceof Date?new e.constructor(t):new Date(t)}function ye(e,t){return we(t||e,e)}function zN(e,t,r){const n=ye(e,r?.in);return isNaN(t)?we(e,NaN):(t&&n.setDate(n.getDate()+t),n)}function $N(e,t,r){const n=ye(e,r?.in);if(isNaN(t))return we(e,NaN);if(!t)return n;const o=n.getDate(),a=we(e,n.getTime());a.setMonth(n.getMonth()+t+1,0);const c=a.getDate();return o>=c?a:(n.setFullYear(a.getFullYear(),a.getMonth(),o),n)}let fZ={};function Ha(){return fZ}function Ho(e,t){const r=Ha(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=ye(e,t?.in),a=o.getDay(),c=(a<n?7:0)+a-n;return o.setDate(o.getDate()-c),o.setHours(0,0,0,0),o}function La(e,t){return Ho(e,{...t,weekStartsOn:1})}function YN(e,t){const r=ye(e,t?.in),n=r.getFullYear(),o=we(r,0);o.setFullYear(n+1,0,4),o.setHours(0,0,0,0);const a=La(o),c=we(r,0);c.setFullYear(n,0,4),c.setHours(0,0,0,0);const s=La(c);return r.getTime()>=a.getTime()?n+1:r.getTime()>=s.getTime()?n:n-1}function sw(e){const t=ye(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function Zo(e,...t){const r=we.bind(null,t.find(n=>typeof n=="object"));return t.map(r)}function Wa(e,t){const r=ye(e,t?.in);return r.setHours(0,0,0,0),r}function UN(e,t,r){const[n,o]=Zo(r?.in,e,t),a=Wa(n),c=Wa(o),s=+a-sw(a),m=+c-sw(c);return Math.round((s-m)/dZ)}function pZ(e,t){const r=YN(e,t),n=we(e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),La(n)}function mZ(e,t,r){return zN(e,t*7,r)}function vZ(e,t,r){return $N(e,t*12,r)}function gZ(e,t){let r,n=t?.in;return e.forEach(o=>{!n&&typeof o=="object"&&(n=we.bind(null,o));const a=ye(o,n);(!r||r<a||isNaN(+a))&&(r=a)}),we(n,r||NaN)}function hZ(e,t){let r,n=t?.in;return e.forEach(o=>{!n&&typeof o=="object"&&(n=we.bind(null,o));const a=ye(o,n);(!r||r>a||isNaN(+a))&&(r=a)}),we(n,r||NaN)}function yZ(e,t,r){const[n,o]=Zo(r?.in,e,t);return+Wa(n)==+Wa(o)}function BN(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function bZ(e){return!(!BN(e)&&typeof e!="number"||isNaN(+ye(e)))}function wZ(e,t,r){const[n,o]=Zo(r?.in,e,t),a=n.getFullYear()-o.getFullYear(),c=n.getMonth()-o.getMonth();return a*12+c}function xZ(e,t){const r=ye(e,t?.in),n=r.getMonth();return r.setFullYear(r.getFullYear(),n+1,0),r.setHours(23,59,59,999),r}function EZ(e,t){const[r,n]=Zo(e,t.start,t.end);return{start:r,end:n}}function SZ(e,t){const{start:r,end:n}=EZ(t?.in,e);let o=+r>+n;const a=o?+r:+n,c=o?n:r;c.setHours(0,0,0,0),c.setDate(1);let s=1;const m=[];for(;+c<=a;)m.push(we(r,c)),c.setMonth(c.getMonth()+s);return o?m.reverse():m}function RZ(e,t){const r=ye(e,t?.in);return r.setDate(1),r.setHours(0,0,0,0),r}function CZ(e,t){const r=ye(e,t?.in),n=r.getFullYear();return r.setFullYear(n+1,0,0),r.setHours(23,59,59,999),r}function KN(e,t){const r=ye(e,t?.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}function HN(e,t){const r=Ha(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=ye(e,t?.in),a=o.getDay(),c=(a<n?-7:0)+6-(a-n);return o.setDate(o.getDate()+c),o.setHours(23,59,59,999),o}function NZ(e,t){return HN(e,{...t,weekStartsOn:1})}function kZ(e,t){const r=ye(e,t?.in);return UN(r,KN(r))+1}function XN(e,t){const r=ye(e,t?.in),n=+La(r)-+pZ(r);return Math.round(n/WN)+1}function VN(e,t){const r=ye(e,t?.in),n=r.getFullYear(),o=Ha(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,c=we(t?.in||e,0);c.setFullYear(n+1,0,a),c.setHours(0,0,0,0);const s=Ho(c,t),m=we(t?.in||e,0);m.setFullYear(n,0,a),m.setHours(0,0,0,0);const l=Ho(m,t);return+r>=+s?n+1:+r>=+l?n:n-1}function jZ(e,t){const r=Ha(),n=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,o=VN(e,t),a=we(t?.in||e,0);return a.setFullYear(o,0,n),a.setHours(0,0,0,0),Ho(a,t)}function GN(e,t){const r=ye(e,t?.in),n=+Ho(r,t)-+jZ(r,t);return Math.round(n/WN)+1}function le(e,t){const r=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return r+n}const fr={y(e,t){const r=e.getFullYear(),n=r>0?r:1-r;return le(t==="yy"?n%100:n,t.length)},M(e,t){const r=e.getMonth();return t==="M"?String(r+1):le(r+1,2)},d(e,t){return le(e.getDate(),t.length)},a(e,t){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(e,t){return le(e.getHours()%12||12,t.length)},H(e,t){return le(e.getHours(),t.length)},m(e,t){return le(e.getMinutes(),t.length)},s(e,t){return le(e.getSeconds(),t.length)},S(e,t){const r=t.length,n=e.getMilliseconds(),o=Math.trunc(n*Math.pow(10,r-3));return le(o,t.length)}},vo={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},iw={G:function(e,t,r){const n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){const n=e.getFullYear(),o=n>0?n:1-n;return r.ordinalNumber(o,{unit:"year"})}return fr.y(e,t)},Y:function(e,t,r,n){const o=VN(e,n),a=o>0?o:1-o;if(t==="YY"){const c=a%100;return le(c,2)}return t==="Yo"?r.ordinalNumber(a,{unit:"year"}):le(a,t.length)},R:function(e,t){const r=YN(e);return le(r,t.length)},u:function(e,t){const r=e.getFullYear();return le(r,t.length)},Q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return le(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return le(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){const n=e.getMonth();switch(t){case"M":case"MM":return fr.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){const n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return le(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){const o=GN(e,n);return t==="wo"?r.ordinalNumber(o,{unit:"week"}):le(o,t.length)},I:function(e,t,r){const n=XN(e);return t==="Io"?r.ordinalNumber(n,{unit:"week"}):le(n,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):fr.d(e,t)},D:function(e,t,r){const n=kZ(e);return t==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):le(n,t.length)},E:function(e,t,r){const n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){const o=e.getDay(),a=(o-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return le(a,2);case"eo":return r.ordinalNumber(a,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});case"eeee":default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){const o=e.getDay(),a=(o-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return le(a,t.length);case"co":return r.ordinalNumber(a,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});case"cccc":default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,r){const n=e.getDay(),o=n===0?7:n;switch(t){case"i":return String(o);case"ii":return le(o,t.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,r){const n=e.getHours();let o;switch(n===12?o=vo.noon:n===0?o=vo.midnight:o=n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,r){const n=e.getHours();let o;switch(n>=17?o=vo.evening:n>=12?o=vo.afternoon:n>=4?o=vo.morning:o=vo.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){let n=e.getHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return fr.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):fr.H(e,t)},K:function(e,t,r){const n=e.getHours()%12;return t==="Ko"?r.ordinalNumber(n,{unit:"hour"}):le(n,t.length)},k:function(e,t,r){let n=e.getHours();return n===0&&(n=24),t==="ko"?r.ordinalNumber(n,{unit:"hour"}):le(n,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):fr.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):fr.s(e,t)},S:function(e,t){return fr.S(e,t)},X:function(e,t,r){const n=e.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return uw(n);case"XXXX":case"XX":return Ur(n);case"XXXXX":case"XXX":default:return Ur(n,":")}},x:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"x":return uw(n);case"xxxx":case"xx":return Ur(n);case"xxxxx":case"xxx":default:return Ur(n,":")}},O:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+cw(n,":");case"OOOO":default:return"GMT"+Ur(n,":")}},z:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+cw(n,":");case"zzzz":default:return"GMT"+Ur(n,":")}},t:function(e,t,r){const n=Math.trunc(+e/1e3);return le(n,t.length)},T:function(e,t,r){return le(+e,t.length)}};function cw(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),o=Math.trunc(n/60),a=n%60;return a===0?r+String(o):r+String(o)+t+le(a,2)}function uw(e,t){return e%60===0?(e>0?"-":"+")+le(Math.abs(e)/60,2):Ur(e,t)}function Ur(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),o=le(Math.trunc(n/60),2),a=le(n%60,2);return r+o+t+a}const lw=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},qN=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},TZ=(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],n=r[1],o=r[2];if(!o)return lw(e,t);let a;switch(n){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",lw(n,t)).replace("{{time}}",qN(o,t))},DZ={p:qN,P:TZ},OZ=/^D+$/,PZ=/^Y+$/,_Z=["D","DD","YY","YYYY"];function MZ(e){return OZ.test(e)}function AZ(e){return PZ.test(e)}function IZ(e,t,r){const n=FZ(e,t,r);if(console.warn(n),_Z.includes(e))throw new RangeError(n)}function FZ(e,t,r){const n=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const LZ=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,WZ=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,zZ=/^'([^]*?)'?$/,$Z=/''/g,YZ=/[a-zA-Z]/;function UZ(e,t,r){const n=Ha(),o=r?.locale??n.locale??FN,a=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,c=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,s=ye(e,r?.in);if(!bZ(s))throw new RangeError("Invalid time value");let m=t.match(WZ).map(u=>{const p=u[0];if(p==="p"||p==="P"){const v=DZ[p];return v(u,o.formatLong)}return u}).join("").match(LZ).map(u=>{if(u==="''")return{isToken:!1,value:"'"};const p=u[0];if(p==="'")return{isToken:!1,value:BZ(u)};if(iw[p])return{isToken:!0,value:u};if(p.match(YZ))throw new RangeError("Format string contains an unescaped latin alphabet character `"+p+"`");return{isToken:!1,value:u}});o.localize.preprocessor&&(m=o.localize.preprocessor(s,m));const l={firstWeekContainsDate:a,weekStartsOn:c,locale:o};return m.map(u=>{if(!u.isToken)return u.value;const p=u.value;(!r?.useAdditionalWeekYearTokens&&AZ(p)||!r?.useAdditionalDayOfYearTokens&&MZ(p))&&IZ(p,t,String(e));const v=iw[p[0]];return v(s,p,o.localize,l)}).join("")}function BZ(e){const t=e.match(zZ);return t?t[1].replace($Z,"'"):e}function KZ(e,t){const r=ye(e,t?.in),n=r.getFullYear(),o=r.getMonth(),a=we(r,0);return a.setFullYear(n,o+1,0),a.setHours(0,0,0,0),a.getDate()}function HZ(e,t){return ye(e,t?.in).getMonth()}function XZ(e,t){return ye(e,t?.in).getFullYear()}function VZ(e,t){return+ye(e)>+ye(t)}function GZ(e,t){return+ye(e)<+ye(t)}function qZ(e,t,r){const[n,o]=Zo(r?.in,e,t);return n.getFullYear()===o.getFullYear()&&n.getMonth()===o.getMonth()}function ZZ(e,t,r){const[n,o]=Zo(r?.in,e,t);return n.getFullYear()===o.getFullYear()}function JZ(e,t,r){const n=ye(e,r?.in),o=n.getFullYear(),a=n.getDate(),c=we(e,0);c.setFullYear(o,t,15),c.setHours(0,0,0,0);const s=KZ(c);return n.setMonth(t,Math.min(a,s)),n}function QZ(e,t,r){const n=ye(e,r?.in);return isNaN(+n)?we(e,NaN):(n.setFullYear(t),n)}const dw=5,e7=4;function t7(e,t){const r=t.startOfMonth(e),n=r.getDay()>0?r.getDay():7,o=t.addDays(e,-n+1),a=t.addDays(o,dw*7-1);return t.getMonth(e)===t.getMonth(a)?dw:e7}function ZN(e,t){const r=t.startOfMonth(e),n=r.getDay();return n===1?r:n===0?t.addDays(r,-6):t.addDays(r,-1*(n-1))}function r7(e,t){const r=ZN(e,t),n=t7(e,t);return t.addDays(r,n*7-1)}class za{constructor(t,r){this.Date=Date,this.today=()=>this.overrides?.today?this.overrides.today():this.options.timeZone?Kr.tz(this.options.timeZone):new this.Date,this.newDate=(n,o,a)=>this.overrides?.newDate?this.overrides.newDate(n,o,a):this.options.timeZone?new Kr(n,o,a,this.options.timeZone):new Date(n,o,a),this.addDays=(n,o)=>this.overrides?.addDays?this.overrides.addDays(n,o):zN(n,o),this.addMonths=(n,o)=>this.overrides?.addMonths?this.overrides.addMonths(n,o):$N(n,o),this.addWeeks=(n,o)=>this.overrides?.addWeeks?this.overrides.addWeeks(n,o):mZ(n,o),this.addYears=(n,o)=>this.overrides?.addYears?this.overrides.addYears(n,o):vZ(n,o),this.differenceInCalendarDays=(n,o)=>this.overrides?.differenceInCalendarDays?this.overrides.differenceInCalendarDays(n,o):UN(n,o),this.differenceInCalendarMonths=(n,o)=>this.overrides?.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(n,o):wZ(n,o),this.eachMonthOfInterval=n=>this.overrides?.eachMonthOfInterval?this.overrides.eachMonthOfInterval(n):SZ(n),this.endOfBroadcastWeek=n=>this.overrides?.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(n):r7(n,this),this.endOfISOWeek=n=>this.overrides?.endOfISOWeek?this.overrides.endOfISOWeek(n):NZ(n),this.endOfMonth=n=>this.overrides?.endOfMonth?this.overrides.endOfMonth(n):xZ(n),this.endOfWeek=(n,o)=>this.overrides?.endOfWeek?this.overrides.endOfWeek(n,o):HN(n,this.options),this.endOfYear=n=>this.overrides?.endOfYear?this.overrides.endOfYear(n):CZ(n),this.format=(n,o,a)=>{const c=this.overrides?.format?this.overrides.format(n,o,this.options):UZ(n,o,this.options);return this.options.numerals&&this.options.numerals!=="latn"?this.replaceDigits(c):c},this.getISOWeek=n=>this.overrides?.getISOWeek?this.overrides.getISOWeek(n):XN(n),this.getMonth=(n,o)=>this.overrides?.getMonth?this.overrides.getMonth(n,this.options):HZ(n,this.options),this.getYear=(n,o)=>this.overrides?.getYear?this.overrides.getYear(n,this.options):XZ(n,this.options),this.getWeek=(n,o)=>this.overrides?.getWeek?this.overrides.getWeek(n,this.options):GN(n,this.options),this.isAfter=(n,o)=>this.overrides?.isAfter?this.overrides.isAfter(n,o):VZ(n,o),this.isBefore=(n,o)=>this.overrides?.isBefore?this.overrides.isBefore(n,o):GZ(n,o),this.isDate=n=>this.overrides?.isDate?this.overrides.isDate(n):BN(n),this.isSameDay=(n,o)=>this.overrides?.isSameDay?this.overrides.isSameDay(n,o):yZ(n,o),this.isSameMonth=(n,o)=>this.overrides?.isSameMonth?this.overrides.isSameMonth(n,o):qZ(n,o),this.isSameYear=(n,o)=>this.overrides?.isSameYear?this.overrides.isSameYear(n,o):ZZ(n,o),this.max=n=>this.overrides?.max?this.overrides.max(n):gZ(n),this.min=n=>this.overrides?.min?this.overrides.min(n):hZ(n),this.setMonth=(n,o)=>this.overrides?.setMonth?this.overrides.setMonth(n,o):JZ(n,o),this.setYear=(n,o)=>this.overrides?.setYear?this.overrides.setYear(n,o):QZ(n,o),this.startOfBroadcastWeek=(n,o)=>this.overrides?.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(n,this):ZN(n,this),this.startOfDay=n=>this.overrides?.startOfDay?this.overrides.startOfDay(n):Wa(n),this.startOfISOWeek=n=>this.overrides?.startOfISOWeek?this.overrides.startOfISOWeek(n):La(n),this.startOfMonth=n=>this.overrides?.startOfMonth?this.overrides.startOfMonth(n):RZ(n),this.startOfWeek=(n,o)=>this.overrides?.startOfWeek?this.overrides.startOfWeek(n,this.options):Ho(n,this.options),this.startOfYear=n=>this.overrides?.startOfYear?this.overrides.startOfYear(n):KN(n),this.options={locale:FN,...t},this.overrides=r}getDigitMap(){const{numerals:t="latn"}=this.options,r=new Intl.NumberFormat("en-US",{numberingSystem:t}),n={};for(let o=0;o<10;o++)n[o.toString()]=r.format(o);return n}replaceDigits(t){const r=this.getDigitMap();return t.replace(/\d/g,n=>r[n]||n)}formatNumber(t){return this.replaceDigits(t.toString())}getMonthYearOrder(){const t=this.options.locale?.code;return t&&za.yearFirstLocales.has(t)?"year-first":"month-first"}formatMonthYear(t){const{locale:r,timeZone:n,numerals:o}=this.options,a=r?.code;if(a&&za.yearFirstLocales.has(a))try{return new Intl.DateTimeFormat(a,{month:"long",year:"numeric",timeZone:n,numberingSystem:o}).format(t)}catch{}const c=this.getMonthYearOrder()==="year-first"?"y LLLL":"LLLL y";return this.format(t,c)}}za.yearFirstLocales=new Set(["eu","hu","ja","ja-Hira","ja-JP","ko","ko-KR","lt","lt-LT","lv","lv-LV","mn","mn-MN","zh","zh-CN","zh-HK","zh-TW"]);new za;var fw;(function(e){e.Root="root",e.Chevron="chevron",e.Day="day",e.DayButton="day_button",e.CaptionLabel="caption_label",e.Dropdowns="dropdowns",e.Dropdown="dropdown",e.DropdownRoot="dropdown_root",e.Footer="footer",e.MonthGrid="month_grid",e.MonthCaption="month_caption",e.MonthsDropdown="months_dropdown",e.Month="month",e.Months="months",e.Nav="nav",e.NextMonthButton="button_next",e.PreviousMonthButton="button_previous",e.Week="week",e.Weeks="weeks",e.Weekday="weekday",e.Weekdays="weekdays",e.WeekNumber="week_number",e.WeekNumberHeader="week_number_header",e.YearsDropdown="years_dropdown"})(fw||(fw={}));var pw;(function(e){e.disabled="disabled",e.hidden="hidden",e.outside="outside",e.focused="focused",e.today="today"})(pw||(pw={}));var mw;(function(e){e.range_end="range_end",e.range_middle="range_middle",e.range_start="range_start",e.selected="selected"})(mw||(mw={}));var vw;(function(e){e.weeks_before_enter="weeks_before_enter",e.weeks_before_exit="weeks_before_exit",e.weeks_after_enter="weeks_after_enter",e.weeks_after_exit="weeks_after_exit",e.caption_after_enter="caption_after_enter",e.caption_after_exit="caption_after_exit",e.caption_before_enter="caption_before_enter",e.caption_before_exit="caption_before_exit"})(vw||(vw={}));M.createContext(void 0);var gw;(function(e){e[e.Today=0]="Today",e[e.Selected=1]="Selected",e[e.LastFocused=2]="LastFocused",e[e.FocusedModifier=3]="FocusedModifier"})(gw||(gw={}));function Fr(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}function hw(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function n7(...e){return t=>{let r=!1;const n=e.map(o=>{const a=hw(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():hw(e[o],null)}}}}function $r(...e){return i.useCallback(n7(...e),e)}function JN(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),m=r.length;r=[...r,c];const l=p=>{const{scope:v,children:h,...x}=p,d=v?.[e]?.[m]||s,g=i.useMemo(()=>x,Object.values(x));return he.jsx(d.Provider,{value:g,children:h})};l.displayName=a+"Provider";function u(p,v){const h=v?.[e]?.[m]||s,x=i.useContext(h);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[l,u]}const o=()=>{const a=r.map(c=>i.createContext(c));return function(c){const s=c?.[e]||a;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:s}}),[c,s])}};return o.scopeName=e,[n,o7(o,...t)]}function o7(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){const a=n.reduce((c,{useScope:s,scopeName:m})=>{const l=s(o)[`__scope${m}`];return{...c,...l}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var a7=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],lr=a7.reduce((e,t)=>{const r=Z.createSlot(`Primitive.${t}`),n=i.forwardRef((o,a)=>{const{asChild:c,...s}=o,m=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),he.jsx(m,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function s7(e,t){e&&Ee.flushSync(()=>e.dispatchEvent(t))}function Xo(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>t.current?.(...r),[])}function i7(e,t=globalThis?.document){const r=Xo(e);i.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var c7="DismissableLayer",Ap="dismissableLayer.update",u7="dismissableLayer.pointerDownOutside",l7="dismissableLayer.focusOutside",yw,QN=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ek=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...m}=e,l=i.useContext(QN),[u,p]=i.useState(null),v=u?.ownerDocument??globalThis?.document,[,h]=i.useState({}),x=$r(t,R=>p(R)),d=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),y=d.indexOf(g),b=u?d.indexOf(u):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,E=b>=y,C=p7(R=>{const N=R.target,P=[...l.branches].some(L=>L.contains(N));!E||P||(o?.(R),c?.(R),R.defaultPrevented||s?.())},v),T=m7(R=>{const N=R.target;[...l.branches].some(P=>P.contains(N))||(a?.(R),c?.(R),R.defaultPrevented||s?.())},v);return i7(R=>{b===l.layers.size-1&&(n?.(R),!R.defaultPrevented&&s&&(R.preventDefault(),s()))},v),i.useEffect(()=>{if(u)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(yw=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),bw(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=yw)}},[u,v,r,l]),i.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),bw())},[u,l]),i.useEffect(()=>{const R=()=>h({});return document.addEventListener(Ap,R),()=>document.removeEventListener(Ap,R)},[]),he.jsx(lr.div,{...m,ref:x,style:{pointerEvents:w?E?"auto":"none":void 0,...e.style},onFocusCapture:Fr(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Fr(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Fr(e.onPointerDownCapture,C.onPointerDownCapture)})});ek.displayName=c7;var d7="DismissableLayerBranch",f7=i.forwardRef((e,t)=>{const r=i.useContext(QN),n=i.useRef(null),o=$r(t,n);return i.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),he.jsx(lr.div,{...e,ref:o})});f7.displayName=d7;function p7(e,t=globalThis?.document){const r=Xo(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let m=function(){tk(u7,r,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=m,t.addEventListener("click",o.current,{once:!0})):m()}else t.removeEventListener("click",o.current);n.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function m7(e,t=globalThis?.document){const r=Xo(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&tk(l7,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function bw(){const e=new CustomEvent(Ap);document.dispatchEvent(e)}function tk(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?s7(o,a):o.dispatchEvent(a)}var jf=0;function v7(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ww()),document.body.insertAdjacentElement("beforeend",e[1]??ww()),jf++,()=>{jf===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),jf--}},[])}function ww(){const e=document.createElement("span");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}var Tf="focusScope.autoFocusOnMount",Df="focusScope.autoFocusOnUnmount",xw={bubbles:!1,cancelable:!0},g7="FocusScope",rk=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,m]=i.useState(null),l=Xo(o),u=Xo(a),p=i.useRef(null),v=$r(t,d=>m(d)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let d=function(w){if(h.paused||!s)return;const E=w.target;s.contains(E)?p.current=E:Tr(p.current,{select:!0})},g=function(w){if(h.paused||!s)return;const E=w.relatedTarget;E!==null&&(s.contains(E)||Tr(p.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const E of w)E.removedNodes.length>0&&Tr(s)};document.addEventListener("focusin",d),document.addEventListener("focusout",g);const b=new MutationObserver(y);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",d),document.removeEventListener("focusout",g),b.disconnect()}}},[n,s,h.paused]),i.useEffect(()=>{if(s){Sw.add(h);const d=document.activeElement;if(!s.contains(d)){const g=new CustomEvent(Tf,xw);s.addEventListener(Tf,l),s.dispatchEvent(g),g.defaultPrevented||(h7(E7(nk(s)),{select:!0}),document.activeElement===d&&Tr(s))}return()=>{s.removeEventListener(Tf,l),setTimeout(()=>{const g=new CustomEvent(Df,xw);s.addEventListener(Df,u),s.dispatchEvent(g),g.defaultPrevented||Tr(d??document.body,{select:!0}),s.removeEventListener(Df,u),Sw.remove(h)},0)}}},[s,l,u,h]);const x=i.useCallback(d=>{if(!r&&!n||h.paused)return;const g=d.key==="Tab"&&!d.altKey&&!d.ctrlKey&&!d.metaKey,y=document.activeElement;if(g&&y){const b=d.currentTarget,[w,E]=y7(b);w&&E?!d.shiftKey&&y===E?(d.preventDefault(),r&&Tr(w,{select:!0})):d.shiftKey&&y===w&&(d.preventDefault(),r&&Tr(E,{select:!0})):y===b&&d.preventDefault()}},[r,n,h.paused]);return he.jsx(lr.div,{tabIndex:-1,...c,ref:v,onKeyDown:x})});rk.displayName=g7;function h7(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Tr(n,{select:t}),document.activeElement!==r)return}function y7(e){const t=nk(e),r=Ew(t,e),n=Ew(t.reverse(),e);return[r,n]}function nk(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Ew(e,t){for(const r of e)if(!b7(r,{upTo:t}))return r}function b7(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function w7(e){return e instanceof HTMLInputElement&&"select"in e}function Tr(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&w7(e)&&t&&e.select()}}var Sw=x7();function x7(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=Rw(e,t),e.unshift(t)},remove(t){e=Rw(e,t),e[0]?.resume()}}}function Rw(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function E7(e){return e.filter(t=>t.tagName!=="A")}var Vo=globalThis?.document?i.useLayoutEffect:()=>{};const S7=["top","right","bottom","left"],Wr=Math.min,Ue=Math.max,ru=Math.round,Hi=Math.floor,St=e=>({x:e,y:e}),R7={left:"right",right:"left",bottom:"top",top:"bottom"},C7={start:"end",end:"start"};function Ip(e,t,r){return Ue(e,Wr(t,r))}function tr(e,t){return typeof e=="function"?e(t):e}function rr(e){return e.split("-")[0]}function Jo(e){return e.split("-")[1]}function qm(e){return e==="x"?"y":"x"}function Zm(e){return e==="y"?"height":"width"}const N7=new Set(["top","bottom"]);function Et(e){return N7.has(rr(e))?"y":"x"}function Jm(e){return qm(Et(e))}function k7(e,t,r){r===void 0&&(r=!1);const n=Jo(e),o=Jm(e),a=Zm(o);let c=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(c=nu(c)),[c,nu(c)]}function j7(e){const t=nu(e);return[Fp(e),t,Fp(t)]}function Fp(e){return e.replace(/start|end/g,t=>C7[t])}const Cw=["left","right"],Nw=["right","left"],T7=["top","bottom"],D7=["bottom","top"];function O7(e,t,r){switch(e){case"top":case"bottom":return r?t?Nw:Cw:t?Cw:Nw;case"left":case"right":return t?T7:D7;default:return[]}}function P7(e,t,r,n){const o=Jo(e);let a=O7(rr(e),r==="start",n);return o&&(a=a.map(c=>c+"-"+o),t&&(a=a.concat(a.map(Fp)))),a}function nu(e){return e.replace(/left|right|bottom|top/g,t=>R7[t])}function _7(e){return{top:0,right:0,bottom:0,left:0,...e}}function ok(e){return typeof e!="number"?_7(e):{top:e,right:e,bottom:e,left:e}}function ou(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function kw(e,t,r){let{reference:n,floating:o}=e;const a=Et(t),c=Jm(t),s=Zm(c),m=rr(t),l=a==="y",u=n.x+n.width/2-o.width/2,p=n.y+n.height/2-o.height/2,v=n[s]/2-o[s]/2;let h;switch(m){case"top":h={x:u,y:n.y-o.height};break;case"bottom":h={x:u,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:p};break;case"left":h={x:n.x-o.width,y:p};break;default:h={x:n.x,y:n.y}}switch(Jo(t)){case"start":h[c]-=v*(r&&l?-1:1);break;case"end":h[c]+=v*(r&&l?-1:1);break}return h}const M7=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:a=[],platform:c}=r,s=a.filter(Boolean),m=await(c.isRTL==null?void 0:c.isRTL(t));let l=await c.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:p}=kw(l,n,m),v=n,h={},x=0;for(let d=0;d<s.length;d++){const{name:g,fn:y}=s[d],{x:b,y:w,data:E,reset:C}=await y({x:u,y:p,initialPlacement:n,placement:v,strategy:o,middlewareData:h,rects:l,platform:c,elements:{reference:e,floating:t}});u=b??u,p=w??p,h={...h,[g]:{...h[g],...E}},C&&x<=50&&(x++,typeof C=="object"&&(C.placement&&(v=C.placement),C.rects&&(l=C.rects===!0?await c.getElementRects({reference:e,floating:t,strategy:o}):C.rects),{x:u,y:p}=kw(l,v,m)),d=-1)}return{x:u,y:p,placement:v,strategy:o,middlewareData:h}};async function $a(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:a,rects:c,elements:s,strategy:m}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:p="floating",altBoundary:v=!1,padding:h=0}=tr(t,e),x=ok(h),d=s[v?p==="floating"?"reference":"floating":p],g=ou(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(d)))==null||r?d:d.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:l,rootBoundary:u,strategy:m})),y=p==="floating"?{x:n,y:o,width:c.floating.width,height:c.floating.height}:c.reference,b=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),w=await(a.isElement==null?void 0:a.isElement(b))?await(a.getScale==null?void 0:a.getScale(b))||{x:1,y:1}:{x:1,y:1},E=ou(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:b,strategy:m}):y);return{top:(g.top-E.top+x.top)/w.y,bottom:(E.bottom-g.bottom+x.bottom)/w.y,left:(g.left-E.left+x.left)/w.x,right:(E.right-g.right+x.right)/w.x}}const A7=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:a,platform:c,elements:s,middlewareData:m}=t,{element:l,padding:u=0}=tr(e,t)||{};if(l==null)return{};const p=ok(u),v={x:r,y:n},h=Jm(o),x=Zm(h),d=await c.getDimensions(l),g=h==="y",y=g?"top":"left",b=g?"bottom":"right",w=g?"clientHeight":"clientWidth",E=a.reference[x]+a.reference[h]-v[h]-a.floating[x],C=v[h]-a.reference[h],T=await(c.getOffsetParent==null?void 0:c.getOffsetParent(l));let R=T?T[w]:0;(!R||!await(c.isElement==null?void 0:c.isElement(T)))&&(R=s.floating[w]||a.floating[x]);const N=E/2-C/2,P=R/2-d[x]/2-1,L=Wr(p[y],P),I=Wr(p[b],P),B=L,K=R-d[x]-I,$=R/2-d[x]/2+N,_=Ip(B,$,K),Y=!m.arrow&&Jo(o)!=null&&$!==_&&a.reference[x]/2-($<B?L:I)-d[x]/2<0,H=Y?$<B?$-B:$-K:0;return{[h]:v[h]+H,data:{[h]:_,centerOffset:$-_-H,...Y&&{alignmentOffset:H}},reset:Y}}}),I7=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:a,rects:c,initialPlacement:s,platform:m,elements:l}=t,{mainAxis:u=!0,crossAxis:p=!0,fallbackPlacements:v,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:d=!0,...g}=tr(e,t);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const y=rr(o),b=Et(s),w=rr(s)===s,E=await(m.isRTL==null?void 0:m.isRTL(l.floating)),C=v||(w||!d?[nu(s)]:j7(s)),T=x!=="none";!v&&T&&C.push(...P7(s,d,x,E));const R=[s,...C],N=await $a(t,g),P=[];let L=((n=a.flip)==null?void 0:n.overflows)||[];if(u&&P.push(N[y]),p){const $=k7(o,c,E);P.push(N[$[0]],N[$[1]])}if(L=[...L,{placement:o,overflows:P}],!P.every($=>$<=0)){var I,B;const $=(((I=a.flip)==null?void 0:I.index)||0)+1,_=R[$];if(_&&(!(p==="alignment"&&b!==Et(_))||L.every(H=>Et(H.placement)===b?H.overflows[0]>0:!0)))return{data:{index:$,overflows:L},reset:{placement:_}};let Y=(B=L.filter(H=>H.overflows[0]<=0).sort((H,U)=>H.overflows[1]-U.overflows[1])[0])==null?void 0:B.placement;if(!Y)switch(h){case"bestFit":{var K;const H=(K=L.filter(U=>{if(T){const V=Et(U.placement);return V===b||V==="y"}return!0}).map(U=>[U.placement,U.overflows.filter(V=>V>0).reduce((V,f)=>V+f,0)]).sort((U,V)=>U[1]-V[1])[0])==null?void 0:K[0];H&&(Y=H);break}case"initialPlacement":Y=s;break}if(o!==Y)return{reset:{placement:Y}}}return{}}}};function jw(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Tw(e){return S7.some(t=>e[t]>=0)}const F7=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=tr(e,t);switch(n){case"referenceHidden":{const a=await $a(t,{...o,elementContext:"reference"}),c=jw(a,r.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:Tw(c)}}}case"escaped":{const a=await $a(t,{...o,altBoundary:!0}),c=jw(a,r.floating);return{data:{escapedOffsets:c,escaped:Tw(c)}}}default:return{}}}}},ak=new Set(["left","top"]);async function L7(e,t){const{placement:r,platform:n,elements:o}=e,a=await(n.isRTL==null?void 0:n.isRTL(o.floating)),c=rr(r),s=Jo(r),m=Et(r)==="y",l=ak.has(c)?-1:1,u=a&&m?-1:1,p=tr(t,e);let{mainAxis:v,crossAxis:h,alignmentAxis:x}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return s&&typeof x=="number"&&(h=s==="end"?x*-1:x),m?{x:h*u,y:v*l}:{x:v*l,y:h*u}}const W7=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:a,placement:c,middlewareData:s}=t,m=await L7(t,e);return c===((r=s.offset)==null?void 0:r.placement)&&(n=s.arrow)!=null&&n.alignmentOffset?{}:{x:o+m.x,y:a+m.y,data:{...m,placement:c}}}}},z7=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:a=!0,crossAxis:c=!1,limiter:s={fn:g=>{let{x:y,y:b}=g;return{x:y,y:b}}},...m}=tr(e,t),l={x:r,y:n},u=await $a(t,m),p=Et(rr(o)),v=qm(p);let h=l[v],x=l[p];if(a){const g=v==="y"?"top":"left",y=v==="y"?"bottom":"right",b=h+u[g],w=h-u[y];h=Ip(b,h,w)}if(c){const g=p==="y"?"top":"left",y=p==="y"?"bottom":"right",b=x+u[g],w=x-u[y];x=Ip(b,x,w)}const d=s.fn({...t,[v]:h,[p]:x});return{...d,data:{x:d.x-r,y:d.y-n,enabled:{[v]:a,[p]:c}}}}}},$7=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:a,middlewareData:c}=t,{offset:s=0,mainAxis:m=!0,crossAxis:l=!0}=tr(e,t),u={x:r,y:n},p=Et(o),v=qm(p);let h=u[v],x=u[p];const d=tr(s,t),g=typeof d=="number"?{mainAxis:d,crossAxis:0}:{mainAxis:0,crossAxis:0,...d};if(m){const w=v==="y"?"height":"width",E=a.reference[v]-a.floating[w]+g.mainAxis,C=a.reference[v]+a.reference[w]-g.mainAxis;h<E?h=E:h>C&&(h=C)}if(l){var y,b;const w=v==="y"?"width":"height",E=ak.has(rr(o)),C=a.reference[p]-a.floating[w]+(E&&((y=c.offset)==null?void 0:y[p])||0)+(E?0:g.crossAxis),T=a.reference[p]+a.reference[w]+(E?0:((b=c.offset)==null?void 0:b[p])||0)-(E?g.crossAxis:0);x<C?x=C:x>T&&(x=T)}return{[v]:h,[p]:x}}}},Y7=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:a,platform:c,elements:s}=t,{apply:m=()=>{},...l}=tr(e,t),u=await $a(t,l),p=rr(o),v=Jo(o),h=Et(o)==="y",{width:x,height:d}=a.floating;let g,y;p==="top"||p==="bottom"?(g=p,y=v===(await(c.isRTL==null?void 0:c.isRTL(s.floating))?"start":"end")?"left":"right"):(y=p,g=v==="end"?"top":"bottom");const b=d-u.top-u.bottom,w=x-u.left-u.right,E=Wr(d-u[g],b),C=Wr(x-u[y],w),T=!t.middlewareData.shift;let R=E,N=C;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(N=w),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(R=b),T&&!v){const L=Ue(u.left,0),I=Ue(u.right,0),B=Ue(u.top,0),K=Ue(u.bottom,0);h?N=x-2*(L!==0||I!==0?L+I:Ue(u.left,u.right)):R=d-2*(B!==0||K!==0?B+K:Ue(u.top,u.bottom))}await m({...t,availableWidth:N,availableHeight:R});const P=await c.getDimensions(s.floating);return x!==P.width||d!==P.height?{reset:{rects:!0}}:{}}}};function Ku(){return typeof window<"u"}function Qo(e){return sk(e)?(e.nodeName||"").toLowerCase():"#document"}function Be(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function qt(e){var t;return(t=(sk(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function sk(e){return Ku()?e instanceof Node||e instanceof Be(e).Node:!1}function et(e){return Ku()?e instanceof Element||e instanceof Be(e).Element:!1}function _t(e){return Ku()?e instanceof HTMLElement||e instanceof Be(e).HTMLElement:!1}function Dw(e){return!Ku()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Be(e).ShadowRoot}const U7=new Set(["inline","contents"]);function Xa(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=tt(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!U7.has(o)}const B7=new Set(["table","td","th"]);function K7(e){return B7.has(Qo(e))}const H7=[":popover-open",":modal"];function Hu(e){return H7.some(t=>{try{return e.matches(t)}catch{return!1}})}const X7=["transform","translate","scale","rotate","perspective"],V7=["transform","translate","scale","rotate","perspective","filter"],G7=["paint","layout","strict","content"];function Qm(e){const t=ev(),r=et(e)?tt(e):e;return X7.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||V7.some(n=>(r.willChange||"").includes(n))||G7.some(n=>(r.contain||"").includes(n))}function q7(e){let t=zr(e);for(;_t(t)&&!Go(t);){if(Qm(t))return t;if(Hu(t))return null;t=zr(t)}return null}function ev(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Z7=new Set(["html","body","#document"]);function Go(e){return Z7.has(Qo(e))}function tt(e){return Be(e).getComputedStyle(e)}function Xu(e){return et(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function zr(e){if(Qo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Dw(e)&&e.host||qt(e);return Dw(t)?t.host:t}function ik(e){const t=zr(e);return Go(t)?e.ownerDocument?e.ownerDocument.body:e.body:_t(t)&&Xa(t)?t:ik(t)}function Ya(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=ik(e),a=o===((n=e.ownerDocument)==null?void 0:n.body),c=Be(o);if(a){const s=Lp(c);return t.concat(c,c.visualViewport||[],Xa(o)?o:[],s&&r?Ya(s):[])}return t.concat(o,Ya(o,[],r))}function Lp(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ck(e){const t=tt(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=_t(e),a=o?e.offsetWidth:r,c=o?e.offsetHeight:n,s=ru(r)!==a||ru(n)!==c;return s&&(r=a,n=c),{width:r,height:n,$:s}}function tv(e){return et(e)?e:e.contextElement}function Ao(e){const t=tv(e);if(!_t(t))return St(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:a}=ck(t);let c=(a?ru(r.width):r.width)/n,s=(a?ru(r.height):r.height)/o;return(!c||!Number.isFinite(c))&&(c=1),(!s||!Number.isFinite(s))&&(s=1),{x:c,y:s}}const J7=St(0);function uk(e){const t=Be(e);return!ev()||!t.visualViewport?J7:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Q7(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Be(e)?!1:t}function un(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),a=tv(e);let c=St(1);t&&(n?et(n)&&(c=Ao(n)):c=Ao(e));const s=Q7(a,r,n)?uk(a):St(0);let m=(o.left+s.x)/c.x,l=(o.top+s.y)/c.y,u=o.width/c.x,p=o.height/c.y;if(a){const v=Be(a),h=n&&et(n)?Be(n):n;let x=v,d=Lp(x);for(;d&&n&&h!==x;){const g=Ao(d),y=d.getBoundingClientRect(),b=tt(d),w=y.left+(d.clientLeft+parseFloat(b.paddingLeft))*g.x,E=y.top+(d.clientTop+parseFloat(b.paddingTop))*g.y;m*=g.x,l*=g.y,u*=g.x,p*=g.y,m+=w,l+=E,x=Be(d),d=Lp(x)}}return ou({width:u,height:p,x:m,y:l})}function Vu(e,t){const r=Xu(e).scrollLeft;return t?t.left+r:un(qt(e)).left+r}function lk(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-Vu(e,r),o=r.top+t.scrollTop;return{x:n,y:o}}function eJ(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const a=o==="fixed",c=qt(n),s=t?Hu(t.floating):!1;if(n===c||s&&a)return r;let m={scrollLeft:0,scrollTop:0},l=St(1);const u=St(0),p=_t(n);if((p||!p&&!a)&&((Qo(n)!=="body"||Xa(c))&&(m=Xu(n)),_t(n))){const h=un(n);l=Ao(n),u.x=h.x+n.clientLeft,u.y=h.y+n.clientTop}const v=c&&!p&&!a?lk(c,m):St(0);return{width:r.width*l.x,height:r.height*l.y,x:r.x*l.x-m.scrollLeft*l.x+u.x+v.x,y:r.y*l.y-m.scrollTop*l.y+u.y+v.y}}function tJ(e){return Array.from(e.getClientRects())}function rJ(e){const t=qt(e),r=Xu(e),n=e.ownerDocument.body,o=Ue(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=Ue(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let c=-r.scrollLeft+Vu(e);const s=-r.scrollTop;return tt(n).direction==="rtl"&&(c+=Ue(t.clientWidth,n.clientWidth)-o),{width:o,height:a,x:c,y:s}}const Ow=25;function nJ(e,t){const r=Be(e),n=qt(e),o=r.visualViewport;let a=n.clientWidth,c=n.clientHeight,s=0,m=0;if(o){a=o.width,c=o.height;const u=ev();(!u||u&&t==="fixed")&&(s=o.offsetLeft,m=o.offsetTop)}const l=Vu(n);if(l<=0){const u=n.ownerDocument,p=u.body,v=getComputedStyle(p),h=u.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,x=Math.abs(n.clientWidth-p.clientWidth-h);x<=Ow&&(a-=x)}else l<=Ow&&(a+=l);return{width:a,height:c,x:s,y:m}}const oJ=new Set(["absolute","fixed"]);function aJ(e,t){const r=un(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,a=_t(e)?Ao(e):St(1),c=e.clientWidth*a.x,s=e.clientHeight*a.y,m=o*a.x,l=n*a.y;return{width:c,height:s,x:m,y:l}}function Pw(e,t,r){let n;if(t==="viewport")n=nJ(e,r);else if(t==="document")n=rJ(qt(e));else if(et(t))n=aJ(t,r);else{const o=uk(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return ou(n)}function dk(e,t){const r=zr(e);return r===t||!et(r)||Go(r)?!1:tt(r).position==="fixed"||dk(r,t)}function sJ(e,t){const r=t.get(e);if(r)return r;let n=Ya(e,[],!1).filter(s=>et(s)&&Qo(s)!=="body"),o=null;const a=tt(e).position==="fixed";let c=a?zr(e):e;for(;et(c)&&!Go(c);){const s=tt(c),m=Qm(c);!m&&s.position==="fixed"&&(o=null),(a?!m&&!o:!m&&s.position==="static"&&o&&oJ.has(o.position)||Xa(c)&&!m&&dk(e,c))?n=n.filter(l=>l!==c):o=s,c=zr(c)}return t.set(e,n),n}function iJ(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const a=[...r==="clippingAncestors"?Hu(t)?[]:sJ(t,this._c):[].concat(r),n],c=a[0],s=a.reduce((m,l)=>{const u=Pw(t,l,o);return m.top=Ue(u.top,m.top),m.right=Wr(u.right,m.right),m.bottom=Wr(u.bottom,m.bottom),m.left=Ue(u.left,m.left),m},Pw(t,c,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function cJ(e){const{width:t,height:r}=ck(e);return{width:t,height:r}}function uJ(e,t,r){const n=_t(t),o=qt(t),a=r==="fixed",c=un(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const m=St(0);function l(){m.x=Vu(o)}if(n||!n&&!a)if((Qo(t)!=="body"||Xa(o))&&(s=Xu(t)),n){const h=un(t,!0,a,t);m.x=h.x+t.clientLeft,m.y=h.y+t.clientTop}else o&&l();a&&!n&&o&&l();const u=o&&!n&&!a?lk(o,s):St(0),p=c.left+s.scrollLeft-m.x-u.x,v=c.top+s.scrollTop-m.y-u.y;return{x:p,y:v,width:c.width,height:c.height}}function Of(e){return tt(e).position==="static"}function _w(e,t){if(!_t(e)||tt(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return qt(e)===r&&(r=r.ownerDocument.body),r}function fk(e,t){const r=Be(e);if(Hu(e))return r;if(!_t(e)){let o=zr(e);for(;o&&!Go(o);){if(et(o)&&!Of(o))return o;o=zr(o)}return r}let n=_w(e,t);for(;n&&K7(n)&&Of(n);)n=_w(n,t);return n&&Go(n)&&Of(n)&&!Qm(n)?r:n||q7(e)||r}const lJ=async function(e){const t=this.getOffsetParent||fk,r=this.getDimensions,n=await r(e.floating);return{reference:uJ(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function dJ(e){return tt(e).direction==="rtl"}const fJ={convertOffsetParentRelativeRectToViewportRelativeRect:eJ,getDocumentElement:qt,getClippingRect:iJ,getOffsetParent:fk,getElementRects:lJ,getClientRects:tJ,getDimensions:cJ,getScale:Ao,isElement:et,isRTL:dJ};function pk(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function pJ(e,t){let r=null,n;const o=qt(e);function a(){var s;clearTimeout(n),(s=r)==null||s.disconnect(),r=null}function c(s,m){s===void 0&&(s=!1),m===void 0&&(m=1),a();const l=e.getBoundingClientRect(),{left:u,top:p,width:v,height:h}=l;if(s||t(),!v||!h)return;const x=Hi(p),d=Hi(o.clientWidth-(u+v)),g=Hi(o.clientHeight-(p+h)),y=Hi(u),b={rootMargin:-x+"px "+-d+"px "+-g+"px "+-y+"px",threshold:Ue(0,Wr(1,m))||1};let w=!0;function E(C){const T=C[0].intersectionRatio;if(T!==m){if(!w)return c();T?c(!1,T):n=setTimeout(()=>{c(!1,1e-7)},1e3)}T===1&&!pk(l,e.getBoundingClientRect())&&c(),w=!1}try{r=new IntersectionObserver(E,{...b,root:o.ownerDocument})}catch{r=new IntersectionObserver(E,b)}r.observe(e)}return c(!0),a}function mJ(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:m=!1}=n,l=tv(e),u=o||a?[...l?Ya(l):[],...Ya(t)]:[];u.forEach(y=>{o&&y.addEventListener("scroll",r,{passive:!0}),a&&y.addEventListener("resize",r)});const p=l&&s?pJ(l,r):null;let v=-1,h=null;c&&(h=new ResizeObserver(y=>{let[b]=y;b&&b.target===l&&h&&(h.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var w;(w=h)==null||w.observe(t)})),r()}),l&&!m&&h.observe(l),h.observe(t));let x,d=m?un(e):null;m&&g();function g(){const y=un(e);d&&!pk(d,y)&&r(),d=y,x=requestAnimationFrame(g)}return r(),()=>{var y;u.forEach(b=>{o&&b.removeEventListener("scroll",r),a&&b.removeEventListener("resize",r)}),p?.(),(y=h)==null||y.disconnect(),h=null,m&&cancelAnimationFrame(x)}}const vJ=W7,gJ=z7,hJ=I7,yJ=Y7,bJ=F7,Mw=A7,wJ=$7,xJ=(e,t,r)=>{const n=new Map,o={platform:fJ,...r},a={...o.platform,_c:n};return M7(e,t,{...o,platform:a})};var EJ=typeof document<"u",SJ=function(){},Oc=EJ?M.useLayoutEffect:SJ;function au(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!au(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const a=o[n];if(!(a==="_owner"&&e.$$typeof)&&!au(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function mk(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Aw(e,t){const r=mk(e);return Math.round(t*r)/r}function Pf(e){const t=i.useRef(e);return Oc(()=>{t.current=e}),t}function RJ(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:a,floating:c}={},transform:s=!0,whileElementsMounted:m,open:l}=e,[u,p]=i.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[v,h]=i.useState(n);au(v,n)||h(n);const[x,d]=i.useState(null),[g,y]=i.useState(null),b=i.useCallback(U=>{U!==T.current&&(T.current=U,d(U))},[]),w=i.useCallback(U=>{U!==R.current&&(R.current=U,y(U))},[]),E=a||x,C=c||g,T=i.useRef(null),R=i.useRef(null),N=i.useRef(u),P=m!=null,L=Pf(m),I=Pf(o),B=Pf(l),K=i.useCallback(()=>{if(!T.current||!R.current)return;const U={placement:t,strategy:r,middleware:v};I.current&&(U.platform=I.current),xJ(T.current,R.current,U).then(V=>{const f={...V,isPositioned:B.current!==!1};$.current&&!au(N.current,f)&&(N.current=f,Ee.flushSync(()=>{p(f)}))})},[v,t,r,I,B]);Oc(()=>{l===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,p(U=>({...U,isPositioned:!1})))},[l]);const $=i.useRef(!1);Oc(()=>($.current=!0,()=>{$.current=!1}),[]),Oc(()=>{if(E&&(T.current=E),C&&(R.current=C),E&&C){if(L.current)return L.current(E,C,K);K()}},[E,C,K,L,P]);const _=i.useMemo(()=>({reference:T,floating:R,setReference:b,setFloating:w}),[b,w]),Y=i.useMemo(()=>({reference:E,floating:C}),[E,C]),H=i.useMemo(()=>{const U={position:r,left:0,top:0};if(!Y.floating)return U;const V=Aw(Y.floating,u.x),f=Aw(Y.floating,u.y);return s?{...U,transform:"translate("+V+"px, "+f+"px)",...mk(Y.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:V,top:f}},[r,s,Y.floating,u.x,u.y]);return i.useMemo(()=>({...u,update:K,refs:_,elements:Y,floatingStyles:H}),[u,K,_,Y,H])}const CJ=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:o}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?Mw({element:n.current,padding:o}).fn(r):{}:n?Mw({element:n,padding:o}).fn(r):{}}}},NJ=(e,t)=>({...vJ(e),options:[e,t]}),kJ=(e,t)=>({...gJ(e),options:[e,t]}),jJ=(e,t)=>({...wJ(e),options:[e,t]}),TJ=(e,t)=>({...hJ(e),options:[e,t]}),DJ=(e,t)=>({...yJ(e),options:[e,t]}),OJ=(e,t)=>({...bJ(e),options:[e,t]}),PJ=(e,t)=>({...CJ(e),options:[e,t]});var _J="Arrow",vk=i.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...a}=e;return he.jsx(lr.svg,{...a,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:he.jsx("polygon",{points:"0,0 30,0 15,10"})})});vk.displayName=_J;var MJ=vk;function AJ(e){const[t,r]=i.useState(void 0);return Vo(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let c,s;if("borderBoxSize"in a){const m=a.borderBoxSize,l=Array.isArray(m)?m[0]:m;c=l.inlineSize,s=l.blockSize}else c=e.offsetWidth,s=e.offsetHeight;r({width:c,height:s})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var gk="Popper",[hk,yk]=JN(gk),[bae,bk]=hk(gk),wk="PopperAnchor",xk=i.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,a=bk(wk,r),c=i.useRef(null),s=$r(t,c),m=i.useRef(null);return i.useEffect(()=>{const l=m.current;m.current=n?.current||c.current,l!==m.current&&a.onAnchorChange(m.current)}),n?null:he.jsx(lr.div,{...o,ref:s})});xk.displayName=wk;var rv="PopperContent",[IJ,FJ]=hk(rv),Ek=i.forwardRef((e,t)=>{const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:a="center",alignOffset:c=0,arrowPadding:s=0,avoidCollisions:m=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:p="partial",hideWhenDetached:v=!1,updatePositionStrategy:h="optimized",onPlaced:x,...d}=e,g=bk(rv,r),[y,b]=i.useState(null),w=$r(t,X=>b(X)),[E,C]=i.useState(null),T=AJ(E),R=T?.width??0,N=T?.height??0,P=n+(a!=="center"?"-"+a:""),L=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},I=Array.isArray(l)?l:[l],B=I.length>0,K={padding:L,boundary:I.filter(WJ),altBoundary:B},{refs:$,floatingStyles:_,placement:Y,isPositioned:H,middlewareData:U}=RJ({strategy:"fixed",placement:P,whileElementsMounted:(...X)=>mJ(...X,{animationFrame:h==="always"}),elements:{reference:g.anchor},middleware:[NJ({mainAxis:o+N,alignmentAxis:c}),m&&kJ({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?jJ():void 0,...K}),m&&TJ({...K}),DJ({...K,apply:({elements:X,rects:O,availableWidth:z,availableHeight:q})=>{const{width:ce,height:nD}=O.reference,os=X.floating.style;os.setProperty("--radix-popper-available-width",`${z}px`),os.setProperty("--radix-popper-available-height",`${q}px`),os.setProperty("--radix-popper-anchor-width",`${ce}px`),os.setProperty("--radix-popper-anchor-height",`${nD}px`)}}),E&&PJ({element:E,padding:s}),zJ({arrowWidth:R,arrowHeight:N}),v&&OJ({strategy:"referenceHidden",...K})]}),[V,f]=Ck(Y),S=Xo(x);Vo(()=>{H&&S?.()},[H,S]);const k=U.arrow?.x,D=U.arrow?.y,F=U.arrow?.centerOffset!==0,[A,G]=i.useState();return Vo(()=>{y&&G(window.getComputedStyle(y).zIndex)},[y]),he.jsx("div",{ref:$.setFloating,"data-radix-popper-content-wrapper":"",style:{..._,transform:H?_.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:A,"--radix-popper-transform-origin":[U.transformOrigin?.x,U.transformOrigin?.y].join(" "),...U.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:he.jsx(IJ,{scope:r,placedSide:V,onArrowChange:C,arrowX:k,arrowY:D,shouldHideArrow:F,children:he.jsx(lr.div,{"data-side":V,"data-align":f,...d,ref:w,style:{...d.style,animation:H?void 0:"none"}})})})});Ek.displayName=rv;var Sk="PopperArrow",LJ={top:"bottom",right:"left",bottom:"top",left:"right"},Rk=i.forwardRef(function(e,t){const{__scopePopper:r,...n}=e,o=FJ(Sk,r),a=LJ[o.placedSide];return he.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:he.jsx(MJ,{...n,ref:t,style:{...n.style,display:"block"}})})});Rk.displayName=Sk;function WJ(e){return e!==null}var zJ=e=>({name:"transformOrigin",options:e,fn(t){const{placement:r,rects:n,middlewareData:o}=t,a=o.arrow?.centerOffset!==0,c=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[m,l]=Ck(r),u={start:"0%",center:"50%",end:"100%"}[l],p=(o.arrow?.x??0)+c/2,v=(o.arrow?.y??0)+s/2;let h="",x="";return m==="bottom"?(h=a?u:`${p}px`,x=`${-s}px`):m==="top"?(h=a?u:`${p}px`,x=`${n.floating.height+s}px`):m==="right"?(h=`${-s}px`,x=a?u:`${v}px`):m==="left"&&(h=`${n.floating.width+s}px`,x=a?u:`${v}px`),{data:{x:h,y:x}}}});function Ck(e){const[t,r="center"]=e.split("-");return[t,r]}var Nk=xk,$J=Ek,YJ=Rk,UJ="Portal",BJ=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);Vo(()=>a(!0),[]);const c=r||o&&globalThis?.document?.body;return c?xe.createPortal(he.jsx(lr.div,{...n,ref:t}),c):null});BJ.displayName=UJ;function KJ(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var kk=e=>{const{present:t,children:r}=e,n=HJ(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=$r(n.ref,XJ(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};kk.displayName="Presence";function HJ(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,m]=KJ(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const l=Xi(n.current);a.current=s==="mounted"?l:"none"},[s]),Vo(()=>{const l=n.current,u=o.current;if(u!==e){const p=a.current,v=Xi(l);e?m("MOUNT"):v==="none"||l?.display==="none"?m("UNMOUNT"):m(u&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,m]),Vo(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,p=h=>{const x=Xi(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&x&&(m("ANIMATION_END"),!o.current)){const d=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=d)})}},v=h=>{h.target===t&&(a.current=Xi(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else m("ANIMATION_END")},[t,m]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:i.useCallback(l=>{n.current=l?getComputedStyle(l):null,r(l)},[])}}function Xi(e){return e?.animationName||"none"}function XJ(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var VJ=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},go=new WeakMap,Vi=new WeakMap,Gi={},_f=0,jk=function(e){return e&&(e.host||jk(e.parentNode))},GJ=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=jk(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},qJ=function(e,t,r,n){var o=GJ(t,Array.isArray(e)?e:[e]);Gi[r]||(Gi[r]=new WeakMap);var a=Gi[r],c=[],s=new Set,m=new Set(o),l=function(p){!p||s.has(p)||(s.add(p),l(p.parentNode))};o.forEach(l);var u=function(p){!p||m.has(p)||Array.prototype.forEach.call(p.children,function(v){if(s.has(v))u(v);else try{var h=v.getAttribute(n),x=h!==null&&h!=="false",d=(go.get(v)||0)+1,g=(a.get(v)||0)+1;go.set(v,d),a.set(v,g),c.push(v),d===1&&x&&Vi.set(v,!0),g===1&&v.setAttribute(r,"true"),x||v.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",v,y)}})};return u(t),s.clear(),_f++,function(){c.forEach(function(p){var v=go.get(p)-1,h=a.get(p)-1;go.set(p,v),a.set(p,h),v||(Vi.has(p)||p.removeAttribute(n),Vi.delete(p)),h||p.removeAttribute(r)}),_f--,_f||(go=new WeakMap,go=new WeakMap,Vi=new WeakMap,Gi={})}},ZJ=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=VJ(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),qJ(n,o,r,"aria-hidden")):function(){return null}},wt=function(){return wt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},wt.apply(this,arguments)};function Tk(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function JJ(e,t,r){for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var Pc="right-scroll-bar-position",_c="width-before-scroll-bar",QJ="with-scroll-bars-hidden",eQ="--removed-body-scroll-bar-size";function Mf(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function tQ(e,t){var r=M.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var rQ=typeof window<"u"?i.useLayoutEffect:i.useEffect,Iw=new WeakMap;function nQ(e,t){var r=tQ(null,function(n){return e.forEach(function(o){return Mf(o,n)})});return rQ(function(){var n=Iw.get(r);if(n){var o=new Set(n),a=new Set(e),c=r.current;o.forEach(function(s){a.has(s)||Mf(s,null)}),a.forEach(function(s){o.has(s)||Mf(s,c)})}Iw.set(r,e)},[e]),r}function oQ(e){return e}function aQ(e,t){t===void 0&&(t=oQ);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var c=t(a,n);return r.push(c),function(){r=r.filter(function(s){return s!==c})}},assignSyncMedium:function(a){for(n=!0;r.length;){var c=r;r=[],c.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var c=[];if(r.length){var s=r;r=[],s.forEach(a),c=r}var m=function(){var u=c;c=[],u.forEach(a)},l=function(){return Promise.resolve().then(m)};l(),r={push:function(u){c.push(u),l()},filter:function(u){return c=c.filter(u),r}}}};return o}function sQ(e){e===void 0&&(e={});var t=aQ(null);return t.options=wt({async:!0,ssr:!1},e),t}var Dk=function(e){var t=e.sideCar,r=Tk(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return i.createElement(n,wt({},r))};Dk.isSideCarExport=!0;function iQ(e,t){return e.useMedium(t),Dk}var Ok=sQ(),Af=function(){},Gu=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:Af,onWheelCapture:Af,onTouchMoveCapture:Af}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,m=e.className,l=e.removeScrollBar,u=e.enabled,p=e.shards,v=e.sideCar,h=e.noRelative,x=e.noIsolation,d=e.inert,g=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,w=e.gapMode,E=Tk(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=v,T=nQ([r,t]),R=wt(wt({},E),o);return i.createElement(i.Fragment,null,u&&i.createElement(C,{sideCar:Ok,removeScrollBar:l,shards:p,noRelative:h,noIsolation:x,inert:d,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),wt(wt({},R),{ref:T})):i.createElement(b,wt({},R,{className:m,ref:T}),s))});Gu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Gu.classNames={fullWidth:_c,zeroRight:Pc};var cQ=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function uQ(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=cQ();return t&&e.setAttribute("nonce",t),e}function lQ(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function dQ(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var fQ=function(){var e=0,t=null;return{add:function(r){e==0&&(t=uQ())&&(lQ(t,r),dQ(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},pQ=function(){var e=fQ();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Pk=function(){var e=pQ(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},mQ={left:0,top:0,right:0,gap:0},If=function(e){return parseInt(e||"",10)||0},vQ=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[If(r),If(n),If(o)]},gQ=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return mQ;var t=vQ(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},hQ=Pk(),Io="data-scroll-locked",yQ=function(e,t,r,n){var o=e.left,a=e.top,c=e.right,s=e.gap;return r===void 0&&(r="margin"),`
|
1021
|
-
.`.concat(QJ,` {
|
1022
|
-
overflow: hidden `).concat(n,`;
|
1023
|
-
padding-right: `).concat(s,"px ").concat(n,`;
|
1024
|
-
}
|
1025
|
-
body[`).concat(Io,`] {
|
1026
|
-
overflow: hidden `).concat(n,`;
|
1027
|
-
overscroll-behavior: contain;
|
1028
|
-
`).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
|
1029
|
-
padding-left: `.concat(o,`px;
|
1030
|
-
padding-top: `).concat(a,`px;
|
1031
|
-
padding-right: `).concat(c,`px;
|
1032
|
-
margin-left:0;
|
1033
|
-
margin-top:0;
|
1034
|
-
margin-right: `).concat(s,"px ").concat(n,`;
|
1035
|
-
`),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
|
1036
|
-
}
|
1037
|
-
|
1038
|
-
.`).concat(Pc,` {
|
1039
|
-
right: `).concat(s,"px ").concat(n,`;
|
1040
|
-
}
|
1041
|
-
|
1042
|
-
.`).concat(_c,` {
|
1043
|
-
margin-right: `).concat(s,"px ").concat(n,`;
|
1044
|
-
}
|
1045
|
-
|
1046
|
-
.`).concat(Pc," .").concat(Pc,` {
|
1047
|
-
right: 0 `).concat(n,`;
|
1048
|
-
}
|
1049
|
-
|
1050
|
-
.`).concat(_c," .").concat(_c,` {
|
1051
|
-
margin-right: 0 `).concat(n,`;
|
1052
|
-
}
|
1053
|
-
|
1054
|
-
body[`).concat(Io,`] {
|
1055
|
-
`).concat(eQ,": ").concat(s,`px;
|
1056
|
-
}
|
1057
|
-
`)},Fw=function(){var e=parseInt(document.body.getAttribute(Io)||"0",10);return isFinite(e)?e:0},bQ=function(){i.useEffect(function(){return document.body.setAttribute(Io,(Fw()+1).toString()),function(){var e=Fw()-1;e<=0?document.body.removeAttribute(Io):document.body.setAttribute(Io,e.toString())}},[])},wQ=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;bQ();var a=i.useMemo(function(){return gQ(o)},[o]);return i.createElement(hQ,{styles:yQ(a,!t,o,r?"":"!important")})},Wp=!1;if(typeof window<"u")try{var qi=Object.defineProperty({},"passive",{get:function(){return Wp=!0,!0}});window.addEventListener("test",qi,qi),window.removeEventListener("test",qi,qi)}catch{Wp=!1}var ho=Wp?{passive:!1}:!1,xQ=function(e){return e.tagName==="TEXTAREA"},_k=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!xQ(e)&&r[t]==="visible")},EQ=function(e){return _k(e,"overflowY")},SQ=function(e){return _k(e,"overflowX")},Lw=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=Mk(e,n);if(o){var a=Ak(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},RQ=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},CQ=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},Mk=function(e,t){return e==="v"?EQ(t):SQ(t)},Ak=function(e,t){return e==="v"?RQ(t):CQ(t)},NQ=function(e,t){return e==="h"&&t==="rtl"?-1:1},kQ=function(e,t,r,n,o){var a=NQ(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,m=t.contains(s),l=!1,u=c>0,p=0,v=0;do{if(!s)break;var h=Ak(e,s),x=h[0],d=h[1],g=h[2],y=d-g-a*x;(x||y)&&Mk(e,s)&&(p+=y,v+=x);var b=s.parentNode;s=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!m&&s!==document.body||m&&(t.contains(s)||t===s));return(u&&Math.abs(p)<1||!u&&Math.abs(v)<1)&&(l=!0),l},Zi=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ww=function(e){return[e.deltaX,e.deltaY]},zw=function(e){return e&&"current"in e?e.current:e},jQ=function(e,t){return e[0]===t[0]&&e[1]===t[1]},TQ=function(e){return`
|
1058
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
1059
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
1060
|
-
`)},DQ=0,yo=[];function OQ(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(DQ++)[0],a=i.useState(Pk)[0],c=i.useRef(e);i.useEffect(function(){c.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var d=JJ([e.lockRef.current],(e.shards||[]).map(zw)).filter(Boolean);return d.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),d.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(d,g){if("touches"in d&&d.touches.length===2||d.type==="wheel"&&d.ctrlKey)return!c.current.allowPinchZoom;var y=Zi(d),b=r.current,w="deltaX"in d?d.deltaX:b[0]-y[0],E="deltaY"in d?d.deltaY:b[1]-y[1],C,T=d.target,R=Math.abs(w)>Math.abs(E)?"h":"v";if("touches"in d&&R==="h"&&T.type==="range")return!1;var N=Lw(R,T);if(!N)return!0;if(N?C=R:(C=R==="v"?"h":"v",N=Lw(R,T)),!N)return!1;if(!n.current&&"changedTouches"in d&&(w||E)&&(n.current=C),!C)return!0;var P=n.current||C;return kQ(P,g,d,P==="h"?w:E)},[]),m=i.useCallback(function(d){var g=d;if(!(!yo.length||yo[yo.length-1]!==a)){var y="deltaY"in g?Ww(g):Zi(g),b=t.current.filter(function(C){return C.name===g.type&&(C.target===g.target||g.target===C.shadowParent)&&jQ(C.delta,y)})[0];if(b&&b.should){g.cancelable&&g.preventDefault();return}if(!b){var w=(c.current.shards||[]).map(zw).filter(Boolean).filter(function(C){return C.contains(g.target)}),E=w.length>0?s(g,w[0]):!c.current.noIsolation;E&&g.cancelable&&g.preventDefault()}}},[]),l=i.useCallback(function(d,g,y,b){var w={name:d,delta:g,target:y,should:b,shadowParent:PQ(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(E){return E!==w})},1)},[]),u=i.useCallback(function(d){r.current=Zi(d),n.current=void 0},[]),p=i.useCallback(function(d){l(d.type,Ww(d),d.target,s(d,e.lockRef.current))},[]),v=i.useCallback(function(d){l(d.type,Zi(d),d.target,s(d,e.lockRef.current))},[]);i.useEffect(function(){return yo.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",m,ho),document.addEventListener("touchmove",m,ho),document.addEventListener("touchstart",u,ho),function(){yo=yo.filter(function(d){return d!==a}),document.removeEventListener("wheel",m,ho),document.removeEventListener("touchmove",m,ho),document.removeEventListener("touchstart",u,ho)}},[]);var h=e.removeScrollBar,x=e.inert;return i.createElement(i.Fragment,null,x?i.createElement(a,{styles:TQ(o)}):null,h?i.createElement(wQ,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function PQ(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const _Q=iQ(Ok,OQ);var Ik=i.forwardRef(function(e,t){return i.createElement(Gu,wt({},e,{ref:t,sideCar:_Q}))});Ik.classNames=Gu.classNames;var Fk="Popover",[Lk]=JN(Fk,[yk]),qu=yk(),[wae,yn]=Lk(Fk),Wk="PopoverAnchor",MQ=i.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=yn(Wk,r),a=qu(r),{onCustomAnchorAdd:c,onCustomAnchorRemove:s}=o;return i.useEffect(()=>(c(),()=>s()),[c,s]),he.jsx(Nk,{...a,...n,ref:t})});MQ.displayName=Wk;var zk="PopoverTrigger",AQ=i.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=yn(zk,r),a=qu(r),c=$r(t,o.triggerRef),s=he.jsx(lr.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Uk(o.open),...n,ref:c,onClick:Fr(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?s:he.jsx(Nk,{asChild:!0,...a,children:s})});AQ.displayName=zk;var IQ="PopoverPortal",[xae,FQ]=Lk(IQ,{forceMount:void 0}),qo="PopoverContent",LQ=i.forwardRef((e,t)=>{const r=FQ(qo,e.__scopePopover),{forceMount:n=r.forceMount,...o}=e,a=yn(qo,e.__scopePopover);return he.jsx(kk,{present:n||a.open,children:a.modal?he.jsx(zQ,{...o,ref:t}):he.jsx($Q,{...o,ref:t})})});LQ.displayName=qo;var WQ=Z.createSlot("PopoverContent.RemoveScroll"),zQ=i.forwardRef((e,t)=>{const r=yn(qo,e.__scopePopover),n=i.useRef(null),o=$r(t,n),a=i.useRef(!1);return i.useEffect(()=>{const c=n.current;if(c)return ZJ(c)},[]),he.jsx(Ik,{as:WQ,allowPinchZoom:!0,children:he.jsx($k,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Fr(e.onCloseAutoFocus,c=>{c.preventDefault(),a.current||r.triggerRef.current?.focus()}),onPointerDownOutside:Fr(e.onPointerDownOutside,c=>{const s=c.detail.originalEvent,m=s.button===0&&s.ctrlKey===!0,l=s.button===2||m;a.current=l},{checkForDefaultPrevented:!1}),onFocusOutside:Fr(e.onFocusOutside,c=>c.preventDefault(),{checkForDefaultPrevented:!1})})})}),$Q=i.forwardRef((e,t)=>{const r=yn(qo,e.__scopePopover),n=i.useRef(!1),o=i.useRef(!1);return he.jsx($k,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(n.current||r.triggerRef.current?.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=a.target;r.triggerRef.current?.contains(c)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),$k=i.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:c,onEscapeKeyDown:s,onPointerDownOutside:m,onFocusOutside:l,onInteractOutside:u,...p}=e,v=yn(qo,r),h=qu(r);return v7(),he.jsx(rk,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:he.jsx(ek,{asChild:!0,disableOutsidePointerEvents:c,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:m,onFocusOutside:l,onDismiss:()=>v.onOpenChange(!1),children:he.jsx($J,{"data-state":Uk(v.open),role:"dialog",id:v.contentId,...h,...p,ref:t,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),Yk="PopoverClose",YQ=i.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=yn(Yk,r);return he.jsx(lr.button,{type:"button",...n,ref:t,onClick:Fr(e.onClick,()=>o.onOpenChange(!1))})});YQ.displayName=Yk;var UQ="PopoverArrow",BQ=i.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=qu(r);return he.jsx(YJ,{...o,...n,ref:t})});BQ.displayName=UQ;function Uk(e){return e?"open":"closed"}i.createContext({});i.createContext({});function KQ(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}Array(12).fill(0);let zp=1;class HQ{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const r=this.subscribers.indexOf(t);this.subscribers.splice(r,1)}),this.publish=t=>{this.subscribers.forEach(r=>r(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var r;const{message:n,...o}=t,a=typeof t?.id=="number"||((r=t.id)==null?void 0:r.length)>0?t.id:zp++,c=this.toasts.find(m=>m.id===a),s=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),c?this.toasts=this.toasts.map(m=>m.id===a?(this.publish({...m,...t,id:a,title:n}),{...m,...t,id:a,dismissible:s,title:n}):m):this.addToast({title:n,...o,dismissible:s,id:a}),a},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(r=>r({id:t,dismiss:!0})))):this.toasts.forEach(r=>{this.subscribers.forEach(n=>n({id:r.id,dismiss:!0}))}),t),this.message=(t,r)=>this.create({...r,message:t}),this.error=(t,r)=>this.create({...r,message:t,type:"error"}),this.success=(t,r)=>this.create({...r,type:"success",message:t}),this.info=(t,r)=>this.create({...r,type:"info",message:t}),this.warning=(t,r)=>this.create({...r,type:"warning",message:t}),this.loading=(t,r)=>this.create({...r,type:"loading",message:t}),this.promise=(t,r)=>{if(!r)return;let n;r.loading!==void 0&&(n=this.create({...r,promise:t,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let a=n!==void 0,c;const s=o.then(async l=>{if(c=["resolve",l],M.isValidElement(l))a=!1,this.create({id:n,type:"default",message:l});else if(VQ(l)&&!l.ok){a=!1;const u=typeof r.error=="function"?await r.error(`HTTP error! status: ${l.status}`):r.error,p=typeof r.description=="function"?await r.description(`HTTP error! status: ${l.status}`):r.description,v=typeof u=="object"&&!M.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:p,...v})}else if(l instanceof Error){a=!1;const u=typeof r.error=="function"?await r.error(l):r.error,p=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!M.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:p,...v})}else if(r.success!==void 0){a=!1;const u=typeof r.success=="function"?await r.success(l):r.success,p=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!M.isValidElement(u)?u:{message:u};this.create({id:n,type:"success",description:p,...v})}}).catch(async l=>{if(c=["reject",l],r.error!==void 0){a=!1;const u=typeof r.error=="function"?await r.error(l):r.error,p=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!M.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:p,...v})}}).finally(()=>{a&&(this.dismiss(n),n=void 0),r.finally==null||r.finally.call(r)}),m=()=>new Promise((l,u)=>s.then(()=>c[0]==="reject"?u(c[1]):l(c[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:m}:Object.assign(n,{unwrap:m})},this.custom=(t,r)=>{const n=r?.id||zp++;return this.create({jsx:t(n),id:n,...r}),n},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const He=new HQ,XQ=(e,t)=>{const r=t?.id||zp++;return He.addToast({title:e,...t,id:r}),r},VQ=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",GQ=XQ,qQ=()=>He.toasts,ZQ=()=>He.getActiveToasts();Object.assign(GQ,{success:He.success,info:He.info,warning:He.warning,error:He.error,custom:He.custom,message:He.message,promise:He.promise,dismiss:He.dismiss,loading:He.loading},{getHistory:qQ,getToasts:ZQ});KQ("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function JQ(e){const t=e+"CollectionProvider",[r,n]=Yu(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),c=d=>{const{scope:g,children:y}=d,b=M.useRef(null),w=M.useRef(new Map).current;return se.jsx(o,{scope:g,itemMap:w,collectionRef:b,children:y})};c.displayName=t;const s=e+"CollectionSlot",m=Z.createSlot(s),l=M.forwardRef((d,g)=>{const{scope:y,children:b}=d,w=a(s,y),E=Pt(g,w.collectionRef);return se.jsx(m,{ref:E,children:b})});l.displayName=s;const u=e+"CollectionItemSlot",p="data-radix-collection-item",v=Z.createSlot(u),h=M.forwardRef((d,g)=>{const{scope:y,children:b,...w}=d,E=M.useRef(null),C=Pt(g,E),T=a(u,y);return M.useEffect(()=>(T.itemMap.set(E,{ref:E,...w}),()=>void T.itemMap.delete(E))),se.jsx(v,{[p]:"",ref:C,children:b})});h.displayName=u;function x(d){const g=a(e+"CollectionConsumer",d);return M.useCallback(()=>{const y=g.collectionRef.current;if(!y)return[];const b=Array.from(y.querySelectorAll(`[${p}]`));return Array.from(g.itemMap.values()).sort((w,E)=>b.indexOf(w.ref.current)-b.indexOf(E.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:c,Slot:l,ItemSlot:h},x,n]}var QQ=i.createContext(void 0);function Bk(e){const t=i.useContext(QQ);return e||t||"ltr"}var Ff="rovingFocusGroup.onEntryFocus",eee={bubbles:!1,cancelable:!0},Va="RovingFocusGroup",[$p,Kk,tee]=JQ(Va),[ree,Hk]=Yu(Va,[tee]),[nee,oee]=ree(Va),Xk=i.forwardRef((e,t)=>se.jsx($p.Provider,{scope:e.__scopeRovingFocusGroup,children:se.jsx($p.Slot,{scope:e.__scopeRovingFocusGroup,children:se.jsx(aee,{...e,ref:t})})}));Xk.displayName=Va;var aee=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:c,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:m,onEntryFocus:l,preventScrollOnEntryFocus:u=!1,...p}=e,v=i.useRef(null),h=Pt(t,v),x=Bk(a),[d,g]=pN({prop:c,defaultProp:s??null,onChange:m,caller:Va}),[y,b]=i.useState(!1),w=Ko(l),E=Kk(r),C=i.useRef(!1),[T,R]=i.useState(0);return i.useEffect(()=>{const N=v.current;if(N)return N.addEventListener(Ff,w),()=>N.removeEventListener(Ff,w)},[w]),se.jsx(nee,{scope:r,orientation:n,dir:x,loop:o,currentTabStopId:d,onItemFocus:i.useCallback(N=>g(N),[g]),onItemShiftTab:i.useCallback(()=>b(!0),[]),onFocusableItemAdd:i.useCallback(()=>R(N=>N+1),[]),onFocusableItemRemove:i.useCallback(()=>R(N=>N-1),[]),children:se.jsx(Ye.div,{tabIndex:y||T===0?-1:0,"data-orientation":n,...p,ref:h,style:{outline:"none",...e.style},onMouseDown:Oe(e.onMouseDown,()=>{C.current=!0}),onFocus:Oe(e.onFocus,N=>{const P=!C.current;if(N.target===N.currentTarget&&P&&!y){const L=new CustomEvent(Ff,eee);if(N.currentTarget.dispatchEvent(L),!L.defaultPrevented){const I=E().filter(_=>_.focusable),B=I.find(_=>_.active),K=I.find(_=>_.id===d),$=[B,K,...I].filter(Boolean).map(_=>_.ref.current);qk($,u)}}C.current=!1}),onBlur:Oe(e.onBlur,()=>b(!1))})})}),Vk="RovingFocusGroupItem",Gk=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:c,...s}=e,m=fN(),l=a||m,u=oee(Vk,r),p=u.currentTabStopId===l,v=Kk(r),{onFocusableItemAdd:h,onFocusableItemRemove:x,currentTabStopId:d}=u;return i.useEffect(()=>{if(n)return h(),()=>x()},[n,h,x]),se.jsx($p.ItemSlot,{scope:r,id:l,focusable:n,active:o,children:se.jsx(Ye.span,{tabIndex:p?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:Oe(e.onMouseDown,g=>{n?u.onItemFocus(l):g.preventDefault()}),onFocus:Oe(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:Oe(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){u.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const y=cee(g,u.orientation,u.dir);if(y!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let b=v().filter(w=>w.focusable).map(w=>w.ref.current);if(y==="last")b.reverse();else if(y==="prev"||y==="next"){y==="prev"&&b.reverse();const w=b.indexOf(g.currentTarget);b=u.loop?uee(b,w+1):b.slice(w+1)}setTimeout(()=>qk(b))}}),children:typeof c=="function"?c({isCurrentTabStop:p,hasTabStop:d!=null}):c})})});Gk.displayName=Vk;var see={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function iee(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function cee(e,t,r){const n=iee(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return see[n]}function qk(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function uee(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var lee=Xk,dee=Gk,Zu="Tabs",[fee]=Yu(Zu,[Hk]),Zk=Hk(),[pee,nv]=fee(Zu),mee=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:o,defaultValue:a,orientation:c="horizontal",dir:s,activationMode:m="automatic",...l}=e,u=Bk(s),[p,v]=pN({prop:n,onChange:o,defaultProp:a??"",caller:Zu});return se.jsx(pee,{scope:r,baseId:fN(),value:p,onValueChange:v,orientation:c,dir:u,activationMode:m,children:se.jsx(Ye.div,{dir:u,"data-orientation":c,...l,ref:t})})});mee.displayName=Zu;var Jk="TabsList",vee=i.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...o}=e,a=nv(Jk,r),c=Zk(r);return se.jsx(lee,{asChild:!0,...c,orientation:a.orientation,dir:a.dir,loop:n,children:se.jsx(Ye.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});vee.displayName=Jk;var Qk="TabsTrigger",gee=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:o=!1,...a}=e,c=nv(Qk,r),s=Zk(r),m=tj(c.baseId,n),l=rj(c.baseId,n),u=n===c.value;return se.jsx(dee,{asChild:!0,...s,focusable:!o,active:u,children:se.jsx(Ye.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":l,"data-state":u?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:m,...a,ref:t,onMouseDown:Oe(e.onMouseDown,p=>{!o&&p.button===0&&p.ctrlKey===!1?c.onValueChange(n):p.preventDefault()}),onKeyDown:Oe(e.onKeyDown,p=>{[" ","Enter"].includes(p.key)&&c.onValueChange(n)}),onFocus:Oe(e.onFocus,()=>{const p=c.activationMode!=="manual";!u&&!o&&p&&c.onValueChange(n)})})})});gee.displayName=Qk;var ej="TabsContent",hee=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:o,children:a,...c}=e,s=nv(ej,r),m=tj(s.baseId,n),l=rj(s.baseId,n),u=n===s.value,p=i.useRef(u);return i.useEffect(()=>{const v=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(v)},[]),se.jsx(Uu,{present:o||u,children:({present:v})=>se.jsx(Ye.div,{"data-state":u?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":m,hidden:!v,id:l,tabIndex:0,...c,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:v&&a})})});hee.displayName=ej;function tj(e,t){return`${e}-trigger-${t}`}function rj(e,t){return`${e}-content-${t}`}i.createContext({});i.createContext({});function yee(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}Array(12).fill(0);let Yp=1;class bee{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const r=this.subscribers.indexOf(t);this.subscribers.splice(r,1)}),this.publish=t=>{this.subscribers.forEach(r=>r(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var r;const{message:n,...o}=t,a=typeof t?.id=="number"||((r=t.id)==null?void 0:r.length)>0?t.id:Yp++,c=this.toasts.find(m=>m.id===a),s=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),c?this.toasts=this.toasts.map(m=>m.id===a?(this.publish({...m,...t,id:a,title:n}),{...m,...t,id:a,dismissible:s,title:n}):m):this.addToast({title:n,...o,dismissible:s,id:a}),a},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(r=>r({id:t,dismiss:!0})))):this.toasts.forEach(r=>{this.subscribers.forEach(n=>n({id:r.id,dismiss:!0}))}),t),this.message=(t,r)=>this.create({...r,message:t}),this.error=(t,r)=>this.create({...r,message:t,type:"error"}),this.success=(t,r)=>this.create({...r,type:"success",message:t}),this.info=(t,r)=>this.create({...r,type:"info",message:t}),this.warning=(t,r)=>this.create({...r,type:"warning",message:t}),this.loading=(t,r)=>this.create({...r,type:"loading",message:t}),this.promise=(t,r)=>{if(!r)return;let n;r.loading!==void 0&&(n=this.create({...r,promise:t,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let a=n!==void 0,c;const s=o.then(async l=>{if(c=["resolve",l],M.isValidElement(l))a=!1,this.create({id:n,type:"default",message:l});else if(xee(l)&&!l.ok){a=!1;const u=typeof r.error=="function"?await r.error(`HTTP error! status: ${l.status}`):r.error,p=typeof r.description=="function"?await r.description(`HTTP error! status: ${l.status}`):r.description,v=typeof u=="object"&&!M.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:p,...v})}else if(l instanceof Error){a=!1;const u=typeof r.error=="function"?await r.error(l):r.error,p=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!M.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:p,...v})}else if(r.success!==void 0){a=!1;const u=typeof r.success=="function"?await r.success(l):r.success,p=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!M.isValidElement(u)?u:{message:u};this.create({id:n,type:"success",description:p,...v})}}).catch(async l=>{if(c=["reject",l],r.error!==void 0){a=!1;const u=typeof r.error=="function"?await r.error(l):r.error,p=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!M.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:p,...v})}}).finally(()=>{a&&(this.dismiss(n),n=void 0),r.finally==null||r.finally.call(r)}),m=()=>new Promise((l,u)=>s.then(()=>c[0]==="reject"?u(c[1]):l(c[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:m}:Object.assign(n,{unwrap:m})},this.custom=(t,r)=>{const n=r?.id||Yp++;return this.create({jsx:t(n),id:n,...r}),n},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Xe=new bee,wee=(e,t)=>{const r=t?.id||Yp++;return Xe.addToast({title:e,...t,id:r}),r},xee=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Eee=wee,See=()=>Xe.toasts,Ree=()=>Xe.getActiveToasts();Object.assign(Eee,{success:Xe.success,info:Xe.info,warning:Xe.warning,error:Xe.error,custom:Xe.custom,message:Xe.message,promise:Xe.promise,dismiss:Xe.dismiss,loading:Xe.loading},{getHistory:See,getToasts:Ree});yee("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function Cee(e){const t=e+"CollectionProvider",[r,n]=Wu(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),c=d=>{const{scope:g,children:y}=d,b=M.useRef(null),w=M.useRef(new Map).current;return ae.jsx(o,{scope:g,itemMap:w,collectionRef:b,children:y})};c.displayName=t;const s=e+"CollectionSlot",m=Z.createSlot(s),l=M.forwardRef((d,g)=>{const{scope:y,children:b}=d,w=a(s,y),E=Ot(g,w.collectionRef);return ae.jsx(m,{ref:E,children:b})});l.displayName=s;const u=e+"CollectionItemSlot",p="data-radix-collection-item",v=Z.createSlot(u),h=M.forwardRef((d,g)=>{const{scope:y,children:b,...w}=d,E=M.useRef(null),C=Ot(g,E),T=a(u,y);return M.useEffect(()=>(T.itemMap.set(E,{ref:E,...w}),()=>void T.itemMap.delete(E))),ae.jsx(v,{[p]:"",ref:C,children:b})});h.displayName=u;function x(d){const g=a(e+"CollectionConsumer",d);return M.useCallback(()=>{const y=g.collectionRef.current;if(!y)return[];const b=Array.from(y.querySelectorAll(`[${p}]`));return Array.from(g.itemMap.values()).sort((w,E)=>b.indexOf(w.ref.current)-b.indexOf(E.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:c,Slot:l,ItemSlot:h},x,n]}var Nee=i.createContext(void 0);function nj(e){const t=i.useContext(Nee);return e||t||"ltr"}var Lf="rovingFocusGroup.onEntryFocus",kee={bubbles:!1,cancelable:!0},Ga="RovingFocusGroup",[Up,oj,jee]=Cee(Ga),[Tee,aj]=Wu(Ga,[jee]),[Dee,Oee]=Tee(Ga),sj=i.forwardRef((e,t)=>ae.jsx(Up.Provider,{scope:e.__scopeRovingFocusGroup,children:ae.jsx(Up.Slot,{scope:e.__scopeRovingFocusGroup,children:ae.jsx(Pee,{...e,ref:t})})}));sj.displayName=Ga;var Pee=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:c,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:m,onEntryFocus:l,preventScrollOnEntryFocus:u=!1,...p}=e,v=i.useRef(null),h=Ot(t,v),x=nj(a),[d,g]=YC({prop:c,defaultProp:s??null,onChange:m,caller:Ga}),[y,b]=i.useState(!1),w=Bo(l),E=oj(r),C=i.useRef(!1),[T,R]=i.useState(0);return i.useEffect(()=>{const N=v.current;if(N)return N.addEventListener(Lf,w),()=>N.removeEventListener(Lf,w)},[w]),ae.jsx(Dee,{scope:r,orientation:n,dir:x,loop:o,currentTabStopId:d,onItemFocus:i.useCallback(N=>g(N),[g]),onItemShiftTab:i.useCallback(()=>b(!0),[]),onFocusableItemAdd:i.useCallback(()=>R(N=>N+1),[]),onFocusableItemRemove:i.useCallback(()=>R(N=>N-1),[]),children:ae.jsx($e.div,{tabIndex:y||T===0?-1:0,"data-orientation":n,...p,ref:h,style:{outline:"none",...e.style},onMouseDown:De(e.onMouseDown,()=>{C.current=!0}),onFocus:De(e.onFocus,N=>{const P=!C.current;if(N.target===N.currentTarget&&P&&!y){const L=new CustomEvent(Lf,kee);if(N.currentTarget.dispatchEvent(L),!L.defaultPrevented){const I=E().filter(_=>_.focusable),B=I.find(_=>_.active),K=I.find(_=>_.id===d),$=[B,K,...I].filter(Boolean).map(_=>_.ref.current);uj($,u)}}C.current=!1}),onBlur:De(e.onBlur,()=>b(!1))})})}),ij="RovingFocusGroupItem",cj=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:c,...s}=e,m=$C(),l=a||m,u=Oee(ij,r),p=u.currentTabStopId===l,v=oj(r),{onFocusableItemAdd:h,onFocusableItemRemove:x,currentTabStopId:d}=u;return i.useEffect(()=>{if(n)return h(),()=>x()},[n,h,x]),ae.jsx(Up.ItemSlot,{scope:r,id:l,focusable:n,active:o,children:ae.jsx($e.span,{tabIndex:p?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:De(e.onMouseDown,g=>{n?u.onItemFocus(l):g.preventDefault()}),onFocus:De(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:De(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){u.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const y=Aee(g,u.orientation,u.dir);if(y!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let b=v().filter(w=>w.focusable).map(w=>w.ref.current);if(y==="last")b.reverse();else if(y==="prev"||y==="next"){y==="prev"&&b.reverse();const w=b.indexOf(g.currentTarget);b=u.loop?Iee(b,w+1):b.slice(w+1)}setTimeout(()=>uj(b))}}),children:typeof c=="function"?c({isCurrentTabStop:p,hasTabStop:d!=null}):c})})});cj.displayName=ij;var _ee={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Mee(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Aee(e,t,r){const n=Mee(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return _ee[n]}function uj(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function Iee(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var Fee=sj,Lee=cj,Ju="Tabs",[Wee]=Wu(Ju,[aj]),lj=aj(),[zee,ov]=Wee(Ju),$ee=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:o,defaultValue:a,orientation:c="horizontal",dir:s,activationMode:m="automatic",...l}=e,u=nj(s),[p,v]=YC({prop:n,onChange:o,defaultProp:a??"",caller:Ju});return ae.jsx(zee,{scope:r,baseId:$C(),value:p,onValueChange:v,orientation:c,dir:u,activationMode:m,children:ae.jsx($e.div,{dir:u,"data-orientation":c,...l,ref:t})})});$ee.displayName=Ju;var dj="TabsList",Yee=i.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...o}=e,a=ov(dj,r),c=lj(r);return ae.jsx(Fee,{asChild:!0,...c,orientation:a.orientation,dir:a.dir,loop:n,children:ae.jsx($e.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});Yee.displayName=dj;var fj="TabsTrigger",Uee=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:o=!1,...a}=e,c=ov(fj,r),s=lj(r),m=mj(c.baseId,n),l=vj(c.baseId,n),u=n===c.value;return ae.jsx(Lee,{asChild:!0,...s,focusable:!o,active:u,children:ae.jsx($e.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":l,"data-state":u?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:m,...a,ref:t,onMouseDown:De(e.onMouseDown,p=>{!o&&p.button===0&&p.ctrlKey===!1?c.onValueChange(n):p.preventDefault()}),onKeyDown:De(e.onKeyDown,p=>{[" ","Enter"].includes(p.key)&&c.onValueChange(n)}),onFocus:De(e.onFocus,()=>{const p=c.activationMode!=="manual";!u&&!o&&p&&c.onValueChange(n)})})})});Uee.displayName=fj;var pj="TabsContent",Bee=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:o,children:a,...c}=e,s=ov(pj,r),m=mj(s.baseId,n),l=vj(s.baseId,n),u=n===s.value,p=i.useRef(u);return i.useEffect(()=>{const v=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(v)},[]),ae.jsx(zu,{present:o||u,children:({present:v})=>ae.jsx($e.div,{"data-state":u?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":m,hidden:!v,id:l,tabIndex:0,...c,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:v&&a})})});Bee.displayName=pj;function mj(e,t){return`${e}-trigger-${t}`}function vj(e,t){return`${e}-content-${t}`}i.createContext({});i.createContext({});function Kee(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}Array(12).fill(0);let Bp=1;class Hee{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const r=this.subscribers.indexOf(t);this.subscribers.splice(r,1)}),this.publish=t=>{this.subscribers.forEach(r=>r(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var r;const{message:n,...o}=t,a=typeof t?.id=="number"||((r=t.id)==null?void 0:r.length)>0?t.id:Bp++,c=this.toasts.find(m=>m.id===a),s=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),c?this.toasts=this.toasts.map(m=>m.id===a?(this.publish({...m,...t,id:a,title:n}),{...m,...t,id:a,dismissible:s,title:n}):m):this.addToast({title:n,...o,dismissible:s,id:a}),a},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(r=>r({id:t,dismiss:!0})))):this.toasts.forEach(r=>{this.subscribers.forEach(n=>n({id:r.id,dismiss:!0}))}),t),this.message=(t,r)=>this.create({...r,message:t}),this.error=(t,r)=>this.create({...r,message:t,type:"error"}),this.success=(t,r)=>this.create({...r,type:"success",message:t}),this.info=(t,r)=>this.create({...r,type:"info",message:t}),this.warning=(t,r)=>this.create({...r,type:"warning",message:t}),this.loading=(t,r)=>this.create({...r,type:"loading",message:t}),this.promise=(t,r)=>{if(!r)return;let n;r.loading!==void 0&&(n=this.create({...r,promise:t,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let a=n!==void 0,c;const s=o.then(async l=>{if(c=["resolve",l],M.isValidElement(l))a=!1,this.create({id:n,type:"default",message:l});else if(Vee(l)&&!l.ok){a=!1;const u=typeof r.error=="function"?await r.error(`HTTP error! status: ${l.status}`):r.error,p=typeof r.description=="function"?await r.description(`HTTP error! status: ${l.status}`):r.description,v=typeof u=="object"&&!M.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:p,...v})}else if(l instanceof Error){a=!1;const u=typeof r.error=="function"?await r.error(l):r.error,p=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!M.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:p,...v})}else if(r.success!==void 0){a=!1;const u=typeof r.success=="function"?await r.success(l):r.success,p=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!M.isValidElement(u)?u:{message:u};this.create({id:n,type:"success",description:p,...v})}}).catch(async l=>{if(c=["reject",l],r.error!==void 0){a=!1;const u=typeof r.error=="function"?await r.error(l):r.error,p=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!M.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:p,...v})}}).finally(()=>{a&&(this.dismiss(n),n=void 0),r.finally==null||r.finally.call(r)}),m=()=>new Promise((l,u)=>s.then(()=>c[0]==="reject"?u(c[1]):l(c[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:m}:Object.assign(n,{unwrap:m})},this.custom=(t,r)=>{const n=r?.id||Bp++;return this.create({jsx:t(n),id:n,...r}),n},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Ve=new Hee,Xee=(e,t)=>{const r=t?.id||Bp++;return Ve.addToast({title:e,...t,id:r}),r},Vee=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Gee=Xee,qee=()=>Ve.toasts,Zee=()=>Ve.getActiveToasts();Object.assign(Gee,{success:Ve.success,info:Ve.info,warning:Ve.warning,error:Ve.error,custom:Ve.custom,message:Ve.message,promise:Ve.promise,dismiss:Ve.dismiss,loading:Ve.loading},{getHistory:qee,getToasts:Zee});Kee("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function Jee(e){const t=e+"CollectionProvider",[r,n]=Iu(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),c=d=>{const{scope:g,children:y}=d,b=M.useRef(null),w=M.useRef(new Map).current;return oe.jsx(o,{scope:g,itemMap:w,collectionRef:b,children:y})};c.displayName=t;const s=e+"CollectionSlot",m=Z.createSlot(s),l=M.forwardRef((d,g)=>{const{scope:y,children:b}=d,w=a(s,y),E=Dt(g,w.collectionRef);return oe.jsx(m,{ref:E,children:b})});l.displayName=s;const u=e+"CollectionItemSlot",p="data-radix-collection-item",v=Z.createSlot(u),h=M.forwardRef((d,g)=>{const{scope:y,children:b,...w}=d,E=M.useRef(null),C=Dt(g,E),T=a(u,y);return M.useEffect(()=>(T.itemMap.set(E,{ref:E,...w}),()=>void T.itemMap.delete(E))),oe.jsx(v,{[p]:"",ref:C,children:b})});h.displayName=u;function x(d){const g=a(e+"CollectionConsumer",d);return M.useCallback(()=>{const y=g.collectionRef.current;if(!y)return[];const b=Array.from(y.querySelectorAll(`[${p}]`));return Array.from(g.itemMap.values()).sort((w,E)=>b.indexOf(w.ref.current)-b.indexOf(E.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:c,Slot:l,ItemSlot:h},x,n]}var Qee=i.createContext(void 0);function gj(e){const t=i.useContext(Qee);return e||t||"ltr"}var Wf="rovingFocusGroup.onEntryFocus",ete={bubbles:!1,cancelable:!0},qa="RovingFocusGroup",[Kp,hj,tte]=Jee(qa),[rte,yj]=Iu(qa,[tte]),[nte,ote]=rte(qa),bj=i.forwardRef((e,t)=>oe.jsx(Kp.Provider,{scope:e.__scopeRovingFocusGroup,children:oe.jsx(Kp.Slot,{scope:e.__scopeRovingFocusGroup,children:oe.jsx(ate,{...e,ref:t})})}));bj.displayName=qa;var ate=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:c,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:m,onEntryFocus:l,preventScrollOnEntryFocus:u=!1,...p}=e,v=i.useRef(null),h=Dt(t,v),x=gj(a),[d,g]=hC({prop:c,defaultProp:s??null,onChange:m,caller:qa}),[y,b]=i.useState(!1),w=Uo(l),E=hj(r),C=i.useRef(!1),[T,R]=i.useState(0);return i.useEffect(()=>{const N=v.current;if(N)return N.addEventListener(Wf,w),()=>N.removeEventListener(Wf,w)},[w]),oe.jsx(nte,{scope:r,orientation:n,dir:x,loop:o,currentTabStopId:d,onItemFocus:i.useCallback(N=>g(N),[g]),onItemShiftTab:i.useCallback(()=>b(!0),[]),onFocusableItemAdd:i.useCallback(()=>R(N=>N+1),[]),onFocusableItemRemove:i.useCallback(()=>R(N=>N-1),[]),children:oe.jsx(ze.div,{tabIndex:y||T===0?-1:0,"data-orientation":n,...p,ref:h,style:{outline:"none",...e.style},onMouseDown:Te(e.onMouseDown,()=>{C.current=!0}),onFocus:Te(e.onFocus,N=>{const P=!C.current;if(N.target===N.currentTarget&&P&&!y){const L=new CustomEvent(Wf,ete);if(N.currentTarget.dispatchEvent(L),!L.defaultPrevented){const I=E().filter(_=>_.focusable),B=I.find(_=>_.active),K=I.find(_=>_.id===d),$=[B,K,...I].filter(Boolean).map(_=>_.ref.current);Ej($,u)}}C.current=!1}),onBlur:Te(e.onBlur,()=>b(!1))})})}),wj="RovingFocusGroupItem",xj=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:c,...s}=e,m=gC(),l=a||m,u=ote(wj,r),p=u.currentTabStopId===l,v=hj(r),{onFocusableItemAdd:h,onFocusableItemRemove:x,currentTabStopId:d}=u;return i.useEffect(()=>{if(n)return h(),()=>x()},[n,h,x]),oe.jsx(Kp.ItemSlot,{scope:r,id:l,focusable:n,active:o,children:oe.jsx(ze.span,{tabIndex:p?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:Te(e.onMouseDown,g=>{n?u.onItemFocus(l):g.preventDefault()}),onFocus:Te(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:Te(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){u.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const y=cte(g,u.orientation,u.dir);if(y!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let b=v().filter(w=>w.focusable).map(w=>w.ref.current);if(y==="last")b.reverse();else if(y==="prev"||y==="next"){y==="prev"&&b.reverse();const w=b.indexOf(g.currentTarget);b=u.loop?ute(b,w+1):b.slice(w+1)}setTimeout(()=>Ej(b))}}),children:typeof c=="function"?c({isCurrentTabStop:p,hasTabStop:d!=null}):c})})});xj.displayName=wj;var ste={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function ite(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function cte(e,t,r){const n=ite(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return ste[n]}function Ej(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function ute(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var lte=bj,dte=xj,Qu="Tabs",[fte]=Iu(Qu,[yj]),Sj=yj(),[pte,av]=fte(Qu),mte=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:o,defaultValue:a,orientation:c="horizontal",dir:s,activationMode:m="automatic",...l}=e,u=gj(s),[p,v]=hC({prop:n,onChange:o,defaultProp:a??"",caller:Qu});return oe.jsx(pte,{scope:r,baseId:gC(),value:p,onValueChange:v,orientation:c,dir:u,activationMode:m,children:oe.jsx(ze.div,{dir:u,"data-orientation":c,...l,ref:t})})});mte.displayName=Qu;var Rj="TabsList",vte=i.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...o}=e,a=av(Rj,r),c=Sj(r);return oe.jsx(lte,{asChild:!0,...c,orientation:a.orientation,dir:a.dir,loop:n,children:oe.jsx(ze.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});vte.displayName=Rj;var Cj="TabsTrigger",gte=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:o=!1,...a}=e,c=av(Cj,r),s=Sj(r),m=kj(c.baseId,n),l=jj(c.baseId,n),u=n===c.value;return oe.jsx(dte,{asChild:!0,...s,focusable:!o,active:u,children:oe.jsx(ze.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":l,"data-state":u?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:m,...a,ref:t,onMouseDown:Te(e.onMouseDown,p=>{!o&&p.button===0&&p.ctrlKey===!1?c.onValueChange(n):p.preventDefault()}),onKeyDown:Te(e.onKeyDown,p=>{[" ","Enter"].includes(p.key)&&c.onValueChange(n)}),onFocus:Te(e.onFocus,()=>{const p=c.activationMode!=="manual";!u&&!o&&p&&c.onValueChange(n)})})})});gte.displayName=Cj;var Nj="TabsContent",hte=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:o,children:a,...c}=e,s=av(Nj,r),m=kj(s.baseId,n),l=jj(s.baseId,n),u=n===s.value,p=i.useRef(u);return i.useEffect(()=>{const v=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(v)},[]),oe.jsx(Fu,{present:o||u,children:({present:v})=>oe.jsx(ze.div,{"data-state":u?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":m,hidden:!v,id:l,tabIndex:0,...c,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:v&&a})})});hte.displayName=Nj;function kj(e,t){return`${e}-trigger-${t}`}function jj(e,t){return`${e}-content-${t}`}i.createContext({});i.createContext({});function yte(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}Array(12).fill(0);let Hp=1;class bte{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const r=this.subscribers.indexOf(t);this.subscribers.splice(r,1)}),this.publish=t=>{this.subscribers.forEach(r=>r(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var r;const{message:n,...o}=t,a=typeof t?.id=="number"||((r=t.id)==null?void 0:r.length)>0?t.id:Hp++,c=this.toasts.find(m=>m.id===a),s=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),c?this.toasts=this.toasts.map(m=>m.id===a?(this.publish({...m,...t,id:a,title:n}),{...m,...t,id:a,dismissible:s,title:n}):m):this.addToast({title:n,...o,dismissible:s,id:a}),a},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(r=>r({id:t,dismiss:!0})))):this.toasts.forEach(r=>{this.subscribers.forEach(n=>n({id:r.id,dismiss:!0}))}),t),this.message=(t,r)=>this.create({...r,message:t}),this.error=(t,r)=>this.create({...r,message:t,type:"error"}),this.success=(t,r)=>this.create({...r,type:"success",message:t}),this.info=(t,r)=>this.create({...r,type:"info",message:t}),this.warning=(t,r)=>this.create({...r,type:"warning",message:t}),this.loading=(t,r)=>this.create({...r,type:"loading",message:t}),this.promise=(t,r)=>{if(!r)return;let n;r.loading!==void 0&&(n=this.create({...r,promise:t,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let a=n!==void 0,c;const s=o.then(async l=>{if(c=["resolve",l],M.isValidElement(l))a=!1,this.create({id:n,type:"default",message:l});else if(xte(l)&&!l.ok){a=!1;const u=typeof r.error=="function"?await r.error(`HTTP error! status: ${l.status}`):r.error,p=typeof r.description=="function"?await r.description(`HTTP error! status: ${l.status}`):r.description,v=typeof u=="object"&&!M.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:p,...v})}else if(l instanceof Error){a=!1;const u=typeof r.error=="function"?await r.error(l):r.error,p=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!M.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:p,...v})}else if(r.success!==void 0){a=!1;const u=typeof r.success=="function"?await r.success(l):r.success,p=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!M.isValidElement(u)?u:{message:u};this.create({id:n,type:"success",description:p,...v})}}).catch(async l=>{if(c=["reject",l],r.error!==void 0){a=!1;const u=typeof r.error=="function"?await r.error(l):r.error,p=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!M.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:p,...v})}}).finally(()=>{a&&(this.dismiss(n),n=void 0),r.finally==null||r.finally.call(r)}),m=()=>new Promise((l,u)=>s.then(()=>c[0]==="reject"?u(c[1]):l(c[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:m}:Object.assign(n,{unwrap:m})},this.custom=(t,r)=>{const n=r?.id||Hp++;return this.create({jsx:t(n),id:n,...r}),n},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Ge=new bte,wte=(e,t)=>{const r=t?.id||Hp++;return Ge.addToast({title:e,...t,id:r}),r},xte=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Ete=wte,Ste=()=>Ge.toasts,Rte=()=>Ge.getActiveToasts();Object.assign(Ete,{success:Ge.success,info:Ge.info,warning:Ge.warning,error:Ge.error,custom:Ge.custom,message:Ge.message,promise:Ge.promise,dismiss:Ge.dismiss,loading:Ge.loading},{getHistory:Ste,getToasts:Rte});yte("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function Cte(e){const t=e+"CollectionProvider",[r,n]=_u(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),c=d=>{const{scope:g,children:y}=d,b=M.useRef(null),w=M.useRef(new Map).current;return ne.jsx(o,{scope:g,itemMap:w,collectionRef:b,children:y})};c.displayName=t;const s=e+"CollectionSlot",m=Z.createSlot(s),l=M.forwardRef((d,g)=>{const{scope:y,children:b}=d,w=a(s,y),E=Tt(g,w.collectionRef);return ne.jsx(m,{ref:E,children:b})});l.displayName=s;const u=e+"CollectionItemSlot",p="data-radix-collection-item",v=Z.createSlot(u),h=M.forwardRef((d,g)=>{const{scope:y,children:b,...w}=d,E=M.useRef(null),C=Tt(g,E),T=a(u,y);return M.useEffect(()=>(T.itemMap.set(E,{ref:E,...w}),()=>void T.itemMap.delete(E))),ne.jsx(v,{[p]:"",ref:C,children:b})});h.displayName=u;function x(d){const g=a(e+"CollectionConsumer",d);return M.useCallback(()=>{const y=g.collectionRef.current;if(!y)return[];const b=Array.from(y.querySelectorAll(`[${p}]`));return Array.from(g.itemMap.values()).sort((w,E)=>b.indexOf(w.ref.current)-b.indexOf(E.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:c,Slot:l,ItemSlot:h},x,n]}var Nte=i.createContext(void 0);function Tj(e){const t=i.useContext(Nte);return e||t||"ltr"}var zf="rovingFocusGroup.onEntryFocus",kte={bubbles:!1,cancelable:!0},Za="RovingFocusGroup",[Xp,Dj,jte]=Cte(Za),[Tte,Oj]=_u(Za,[jte]),[Dte,Ote]=Tte(Za),Pj=i.forwardRef((e,t)=>ne.jsx(Xp.Provider,{scope:e.__scopeRovingFocusGroup,children:ne.jsx(Xp.Slot,{scope:e.__scopeRovingFocusGroup,children:ne.jsx(Pte,{...e,ref:t})})}));Pj.displayName=Za;var Pte=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:c,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:m,onEntryFocus:l,preventScrollOnEntryFocus:u=!1,...p}=e,v=i.useRef(null),h=Tt(t,v),x=Tj(a),[d,g]=HR({prop:c,defaultProp:s??null,onChange:m,caller:Za}),[y,b]=i.useState(!1),w=Yo(l),E=Dj(r),C=i.useRef(!1),[T,R]=i.useState(0);return i.useEffect(()=>{const N=v.current;if(N)return N.addEventListener(zf,w),()=>N.removeEventListener(zf,w)},[w]),ne.jsx(Dte,{scope:r,orientation:n,dir:x,loop:o,currentTabStopId:d,onItemFocus:i.useCallback(N=>g(N),[g]),onItemShiftTab:i.useCallback(()=>b(!0),[]),onFocusableItemAdd:i.useCallback(()=>R(N=>N+1),[]),onFocusableItemRemove:i.useCallback(()=>R(N=>N-1),[]),children:ne.jsx(We.div,{tabIndex:y||T===0?-1:0,"data-orientation":n,...p,ref:h,style:{outline:"none",...e.style},onMouseDown:je(e.onMouseDown,()=>{C.current=!0}),onFocus:je(e.onFocus,N=>{const P=!C.current;if(N.target===N.currentTarget&&P&&!y){const L=new CustomEvent(zf,kte);if(N.currentTarget.dispatchEvent(L),!L.defaultPrevented){const I=E().filter(_=>_.focusable),B=I.find(_=>_.active),K=I.find(_=>_.id===d),$=[B,K,...I].filter(Boolean).map(_=>_.ref.current);Aj($,u)}}C.current=!1}),onBlur:je(e.onBlur,()=>b(!1))})})}),_j="RovingFocusGroupItem",Mj=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:c,...s}=e,m=KR(),l=a||m,u=Ote(_j,r),p=u.currentTabStopId===l,v=Dj(r),{onFocusableItemAdd:h,onFocusableItemRemove:x,currentTabStopId:d}=u;return i.useEffect(()=>{if(n)return h(),()=>x()},[n,h,x]),ne.jsx(Xp.ItemSlot,{scope:r,id:l,focusable:n,active:o,children:ne.jsx(We.span,{tabIndex:p?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:je(e.onMouseDown,g=>{n?u.onItemFocus(l):g.preventDefault()}),onFocus:je(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:je(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){u.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const y=Ate(g,u.orientation,u.dir);if(y!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let b=v().filter(w=>w.focusable).map(w=>w.ref.current);if(y==="last")b.reverse();else if(y==="prev"||y==="next"){y==="prev"&&b.reverse();const w=b.indexOf(g.currentTarget);b=u.loop?Ite(b,w+1):b.slice(w+1)}setTimeout(()=>Aj(b))}}),children:typeof c=="function"?c({isCurrentTabStop:p,hasTabStop:d!=null}):c})})});Mj.displayName=_j;var _te={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Mte(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Ate(e,t,r){const n=Mte(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return _te[n]}function Aj(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function Ite(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var Fte=Pj,Lte=Mj,el="Tabs",[Wte]=_u(el,[Oj]),Ij=Oj(),[zte,sv]=Wte(el),$te=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:o,defaultValue:a,orientation:c="horizontal",dir:s,activationMode:m="automatic",...l}=e,u=Tj(s),[p,v]=HR({prop:n,onChange:o,defaultProp:a??"",caller:el});return ne.jsx(zte,{scope:r,baseId:KR(),value:p,onValueChange:v,orientation:c,dir:u,activationMode:m,children:ne.jsx(We.div,{dir:u,"data-orientation":c,...l,ref:t})})});$te.displayName=el;var Fj="TabsList",Yte=i.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...o}=e,a=sv(Fj,r),c=Ij(r);return ne.jsx(Fte,{asChild:!0,...c,orientation:a.orientation,dir:a.dir,loop:n,children:ne.jsx(We.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});Yte.displayName=Fj;var Lj="TabsTrigger",Ute=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:o=!1,...a}=e,c=sv(Lj,r),s=Ij(r),m=zj(c.baseId,n),l=$j(c.baseId,n),u=n===c.value;return ne.jsx(Lte,{asChild:!0,...s,focusable:!o,active:u,children:ne.jsx(We.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":l,"data-state":u?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:m,...a,ref:t,onMouseDown:je(e.onMouseDown,p=>{!o&&p.button===0&&p.ctrlKey===!1?c.onValueChange(n):p.preventDefault()}),onKeyDown:je(e.onKeyDown,p=>{[" ","Enter"].includes(p.key)&&c.onValueChange(n)}),onFocus:je(e.onFocus,()=>{const p=c.activationMode!=="manual";!u&&!o&&p&&c.onValueChange(n)})})})});Ute.displayName=Lj;var Wj="TabsContent",Bte=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:o,children:a,...c}=e,s=sv(Wj,r),m=zj(s.baseId,n),l=$j(s.baseId,n),u=n===s.value,p=i.useRef(u);return i.useEffect(()=>{const v=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(v)},[]),ne.jsx(Mu,{present:o||u,children:({present:v})=>ne.jsx(We.div,{"data-state":u?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":m,hidden:!v,id:l,tabIndex:0,...c,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:v&&a})})});Bte.displayName=Wj;function zj(e,t){return`${e}-trigger-${t}`}function $j(e,t){return`${e}-content-${t}`}i.createContext({});i.createContext({});function Kte(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}Array(12).fill(0);let Vp=1;class Hte{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const r=this.subscribers.indexOf(t);this.subscribers.splice(r,1)}),this.publish=t=>{this.subscribers.forEach(r=>r(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var r;const{message:n,...o}=t,a=typeof t?.id=="number"||((r=t.id)==null?void 0:r.length)>0?t.id:Vp++,c=this.toasts.find(m=>m.id===a),s=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),c?this.toasts=this.toasts.map(m=>m.id===a?(this.publish({...m,...t,id:a,title:n}),{...m,...t,id:a,dismissible:s,title:n}):m):this.addToast({title:n,...o,dismissible:s,id:a}),a},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(r=>r({id:t,dismiss:!0})))):this.toasts.forEach(r=>{this.subscribers.forEach(n=>n({id:r.id,dismiss:!0}))}),t),this.message=(t,r)=>this.create({...r,message:t}),this.error=(t,r)=>this.create({...r,message:t,type:"error"}),this.success=(t,r)=>this.create({...r,type:"success",message:t}),this.info=(t,r)=>this.create({...r,type:"info",message:t}),this.warning=(t,r)=>this.create({...r,type:"warning",message:t}),this.loading=(t,r)=>this.create({...r,type:"loading",message:t}),this.promise=(t,r)=>{if(!r)return;let n;r.loading!==void 0&&(n=this.create({...r,promise:t,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let a=n!==void 0,c;const s=o.then(async l=>{if(c=["resolve",l],M.isValidElement(l))a=!1,this.create({id:n,type:"default",message:l});else if(Vte(l)&&!l.ok){a=!1;const u=typeof r.error=="function"?await r.error(`HTTP error! status: ${l.status}`):r.error,p=typeof r.description=="function"?await r.description(`HTTP error! status: ${l.status}`):r.description,v=typeof u=="object"&&!M.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:p,...v})}else if(l instanceof Error){a=!1;const u=typeof r.error=="function"?await r.error(l):r.error,p=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!M.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:p,...v})}else if(r.success!==void 0){a=!1;const u=typeof r.success=="function"?await r.success(l):r.success,p=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!M.isValidElement(u)?u:{message:u};this.create({id:n,type:"success",description:p,...v})}}).catch(async l=>{if(c=["reject",l],r.error!==void 0){a=!1;const u=typeof r.error=="function"?await r.error(l):r.error,p=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!M.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:p,...v})}}).finally(()=>{a&&(this.dismiss(n),n=void 0),r.finally==null||r.finally.call(r)}),m=()=>new Promise((l,u)=>s.then(()=>c[0]==="reject"?u(c[1]):l(c[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:m}:Object.assign(n,{unwrap:m})},this.custom=(t,r)=>{const n=r?.id||Vp++;return this.create({jsx:t(n),id:n,...r}),n},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const qe=new Hte,Xte=(e,t)=>{const r=t?.id||Vp++;return qe.addToast({title:e,...t,id:r}),r},Vte=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Gte=Xte,qte=()=>qe.toasts,Zte=()=>qe.getActiveToasts();Object.assign(Gte,{success:qe.success,info:qe.info,warning:qe.warning,error:qe.error,custom:qe.custom,message:qe.message,promise:qe.promise,dismiss:qe.dismiss,loading:qe.loading},{getHistory:qte,getToasts:Zte});Kte("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function Jte(e){const t=e+"CollectionProvider",[r,n]=Du(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),c=d=>{const{scope:g,children:y}=d,b=M.useRef(null),w=M.useRef(new Map).current;return re.jsx(o,{scope:g,itemMap:w,collectionRef:b,children:y})};c.displayName=t;const s=e+"CollectionSlot",m=Z.createSlot(s),l=M.forwardRef((d,g)=>{const{scope:y,children:b}=d,w=a(s,y),E=jt(g,w.collectionRef);return re.jsx(m,{ref:E,children:b})});l.displayName=s;const u=e+"CollectionItemSlot",p="data-radix-collection-item",v=Z.createSlot(u),h=M.forwardRef((d,g)=>{const{scope:y,children:b,...w}=d,E=M.useRef(null),C=jt(g,E),T=a(u,y);return M.useEffect(()=>(T.itemMap.set(E,{ref:E,...w}),()=>void T.itemMap.delete(E))),re.jsx(v,{[p]:"",ref:C,children:b})});h.displayName=u;function x(d){const g=a(e+"CollectionConsumer",d);return M.useCallback(()=>{const y=g.collectionRef.current;if(!y)return[];const b=Array.from(y.querySelectorAll(`[${p}]`));return Array.from(g.itemMap.values()).sort((w,E)=>b.indexOf(w.ref.current)-b.indexOf(E.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:c,Slot:l,ItemSlot:h},x,n]}var Qte=i.createContext(void 0);function Yj(e){const t=i.useContext(Qte);return e||t||"ltr"}var $f="rovingFocusGroup.onEntryFocus",ere={bubbles:!1,cancelable:!0},Ja="RovingFocusGroup",[Gp,Uj,tre]=Jte(Ja),[rre,Bj]=Du(Ja,[tre]),[nre,ore]=rre(Ja),Kj=i.forwardRef((e,t)=>re.jsx(Gp.Provider,{scope:e.__scopeRovingFocusGroup,children:re.jsx(Gp.Slot,{scope:e.__scopeRovingFocusGroup,children:re.jsx(are,{...e,ref:t})})}));Kj.displayName=Ja;var are=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:c,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:m,onEntryFocus:l,preventScrollOnEntryFocus:u=!1,...p}=e,v=i.useRef(null),h=jt(t,v),x=Yj(a),[d,g]=xR({prop:c,defaultProp:s??null,onChange:m,caller:Ja}),[y,b]=i.useState(!1),w=$o(l),E=Uj(r),C=i.useRef(!1),[T,R]=i.useState(0);return i.useEffect(()=>{const N=v.current;if(N)return N.addEventListener($f,w),()=>N.removeEventListener($f,w)},[w]),re.jsx(nre,{scope:r,orientation:n,dir:x,loop:o,currentTabStopId:d,onItemFocus:i.useCallback(N=>g(N),[g]),onItemShiftTab:i.useCallback(()=>b(!0),[]),onFocusableItemAdd:i.useCallback(()=>R(N=>N+1),[]),onFocusableItemRemove:i.useCallback(()=>R(N=>N-1),[]),children:re.jsx(Le.div,{tabIndex:y||T===0?-1:0,"data-orientation":n,...p,ref:h,style:{outline:"none",...e.style},onMouseDown:ke(e.onMouseDown,()=>{C.current=!0}),onFocus:ke(e.onFocus,N=>{const P=!C.current;if(N.target===N.currentTarget&&P&&!y){const L=new CustomEvent($f,ere);if(N.currentTarget.dispatchEvent(L),!L.defaultPrevented){const I=E().filter(_=>_.focusable),B=I.find(_=>_.active),K=I.find(_=>_.id===d),$=[B,K,...I].filter(Boolean).map(_=>_.ref.current);Vj($,u)}}C.current=!1}),onBlur:ke(e.onBlur,()=>b(!1))})})}),Hj="RovingFocusGroupItem",Xj=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:c,...s}=e,m=wR(),l=a||m,u=ore(Hj,r),p=u.currentTabStopId===l,v=Uj(r),{onFocusableItemAdd:h,onFocusableItemRemove:x,currentTabStopId:d}=u;return i.useEffect(()=>{if(n)return h(),()=>x()},[n,h,x]),re.jsx(Gp.ItemSlot,{scope:r,id:l,focusable:n,active:o,children:re.jsx(Le.span,{tabIndex:p?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:ke(e.onMouseDown,g=>{n?u.onItemFocus(l):g.preventDefault()}),onFocus:ke(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:ke(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){u.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const y=cre(g,u.orientation,u.dir);if(y!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let b=v().filter(w=>w.focusable).map(w=>w.ref.current);if(y==="last")b.reverse();else if(y==="prev"||y==="next"){y==="prev"&&b.reverse();const w=b.indexOf(g.currentTarget);b=u.loop?ure(b,w+1):b.slice(w+1)}setTimeout(()=>Vj(b))}}),children:typeof c=="function"?c({isCurrentTabStop:p,hasTabStop:d!=null}):c})})});Xj.displayName=Hj;var sre={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function ire(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function cre(e,t,r){const n=ire(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return sre[n]}function Vj(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function ure(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var lre=Kj,dre=Xj,tl="Tabs",[fre]=Du(tl,[Bj]),Gj=Bj(),[pre,iv]=fre(tl),mre=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:o,defaultValue:a,orientation:c="horizontal",dir:s,activationMode:m="automatic",...l}=e,u=Yj(s),[p,v]=xR({prop:n,onChange:o,defaultProp:a??"",caller:tl});return re.jsx(pre,{scope:r,baseId:wR(),value:p,onValueChange:v,orientation:c,dir:u,activationMode:m,children:re.jsx(Le.div,{dir:u,"data-orientation":c,...l,ref:t})})});mre.displayName=tl;var qj="TabsList",vre=i.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...o}=e,a=iv(qj,r),c=Gj(r);return re.jsx(lre,{asChild:!0,...c,orientation:a.orientation,dir:a.dir,loop:n,children:re.jsx(Le.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});vre.displayName=qj;var Zj="TabsTrigger",gre=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:o=!1,...a}=e,c=iv(Zj,r),s=Gj(r),m=Qj(c.baseId,n),l=eT(c.baseId,n),u=n===c.value;return re.jsx(dre,{asChild:!0,...s,focusable:!o,active:u,children:re.jsx(Le.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":l,"data-state":u?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:m,...a,ref:t,onMouseDown:ke(e.onMouseDown,p=>{!o&&p.button===0&&p.ctrlKey===!1?c.onValueChange(n):p.preventDefault()}),onKeyDown:ke(e.onKeyDown,p=>{[" ","Enter"].includes(p.key)&&c.onValueChange(n)}),onFocus:ke(e.onFocus,()=>{const p=c.activationMode!=="manual";!u&&!o&&p&&c.onValueChange(n)})})})});gre.displayName=Zj;var Jj="TabsContent",hre=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:o,children:a,...c}=e,s=iv(Jj,r),m=Qj(s.baseId,n),l=eT(s.baseId,n),u=n===s.value,p=i.useRef(u);return i.useEffect(()=>{const v=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(v)},[]),re.jsx(Ou,{present:o||u,children:({present:v})=>re.jsx(Le.div,{"data-state":u?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":m,hidden:!v,id:l,tabIndex:0,...c,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:v&&a})})});hre.displayName=Jj;function Qj(e,t){return`${e}-trigger-${t}`}function eT(e,t){return`${e}-content-${t}`}i.createContext({});i.createContext({});function yre(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}Array(12).fill(0);let qp=1;class bre{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const r=this.subscribers.indexOf(t);this.subscribers.splice(r,1)}),this.publish=t=>{this.subscribers.forEach(r=>r(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var r;const{message:n,...o}=t,a=typeof t?.id=="number"||((r=t.id)==null?void 0:r.length)>0?t.id:qp++,c=this.toasts.find(m=>m.id===a),s=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),c?this.toasts=this.toasts.map(m=>m.id===a?(this.publish({...m,...t,id:a,title:n}),{...m,...t,id:a,dismissible:s,title:n}):m):this.addToast({title:n,...o,dismissible:s,id:a}),a},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(r=>r({id:t,dismiss:!0})))):this.toasts.forEach(r=>{this.subscribers.forEach(n=>n({id:r.id,dismiss:!0}))}),t),this.message=(t,r)=>this.create({...r,message:t}),this.error=(t,r)=>this.create({...r,message:t,type:"error"}),this.success=(t,r)=>this.create({...r,type:"success",message:t}),this.info=(t,r)=>this.create({...r,type:"info",message:t}),this.warning=(t,r)=>this.create({...r,type:"warning",message:t}),this.loading=(t,r)=>this.create({...r,type:"loading",message:t}),this.promise=(t,r)=>{if(!r)return;let n;r.loading!==void 0&&(n=this.create({...r,promise:t,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let a=n!==void 0,c;const s=o.then(async l=>{if(c=["resolve",l],M.isValidElement(l))a=!1,this.create({id:n,type:"default",message:l});else if(xre(l)&&!l.ok){a=!1;const u=typeof r.error=="function"?await r.error(`HTTP error! status: ${l.status}`):r.error,p=typeof r.description=="function"?await r.description(`HTTP error! status: ${l.status}`):r.description,v=typeof u=="object"&&!M.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:p,...v})}else if(l instanceof Error){a=!1;const u=typeof r.error=="function"?await r.error(l):r.error,p=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!M.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:p,...v})}else if(r.success!==void 0){a=!1;const u=typeof r.success=="function"?await r.success(l):r.success,p=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!M.isValidElement(u)?u:{message:u};this.create({id:n,type:"success",description:p,...v})}}).catch(async l=>{if(c=["reject",l],r.error!==void 0){a=!1;const u=typeof r.error=="function"?await r.error(l):r.error,p=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!M.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:p,...v})}}).finally(()=>{a&&(this.dismiss(n),n=void 0),r.finally==null||r.finally.call(r)}),m=()=>new Promise((l,u)=>s.then(()=>c[0]==="reject"?u(c[1]):l(c[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:m}:Object.assign(n,{unwrap:m})},this.custom=(t,r)=>{const n=r?.id||qp++;return this.create({jsx:t(n),id:n,...r}),n},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Ze=new bre,wre=(e,t)=>{const r=t?.id||qp++;return Ze.addToast({title:e,...t,id:r}),r},xre=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Ere=wre,Sre=()=>Ze.toasts,Rre=()=>Ze.getActiveToasts();Object.assign(Ere,{success:Ze.success,info:Ze.info,warning:Ze.warning,error:Ze.error,custom:Ze.custom,message:Ze.message,promise:Ze.promise,dismiss:Ze.dismiss,loading:Ze.loading},{getHistory:Sre,getToasts:Rre});yre("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function Cre(e){const t=e+"CollectionProvider",[r,n]=ku(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),c=d=>{const{scope:g,children:y}=d,b=M.useRef(null),w=M.useRef(new Map).current;return te.jsx(o,{scope:g,itemMap:w,collectionRef:b,children:y})};c.displayName=t;const s=e+"CollectionSlot",m=Z.createSlot(s),l=M.forwardRef((d,g)=>{const{scope:y,children:b}=d,w=a(s,y),E=kt(g,w.collectionRef);return te.jsx(m,{ref:E,children:b})});l.displayName=s;const u=e+"CollectionItemSlot",p="data-radix-collection-item",v=Z.createSlot(u),h=M.forwardRef((d,g)=>{const{scope:y,children:b,...w}=d,E=M.useRef(null),C=kt(g,E),T=a(u,y);return M.useEffect(()=>(T.itemMap.set(E,{ref:E,...w}),()=>void T.itemMap.delete(E))),te.jsx(v,{[p]:"",ref:C,children:b})});h.displayName=u;function x(d){const g=a(e+"CollectionConsumer",d);return M.useCallback(()=>{const y=g.collectionRef.current;if(!y)return[];const b=Array.from(y.querySelectorAll(`[${p}]`));return Array.from(g.itemMap.values()).sort((w,E)=>b.indexOf(w.ref.current)-b.indexOf(E.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:c,Slot:l,ItemSlot:h},x,n]}var Nre=i.createContext(void 0);function tT(e){const t=i.useContext(Nre);return e||t||"ltr"}var Yf="rovingFocusGroup.onEntryFocus",kre={bubbles:!1,cancelable:!0},Qa="RovingFocusGroup",[Zp,rT,jre]=Cre(Qa),[Tre,nT]=ku(Qa,[jre]),[Dre,Ore]=Tre(Qa),oT=i.forwardRef((e,t)=>te.jsx(Zp.Provider,{scope:e.__scopeRovingFocusGroup,children:te.jsx(Zp.Slot,{scope:e.__scopeRovingFocusGroup,children:te.jsx(Pre,{...e,ref:t})})}));oT.displayName=Qa;var Pre=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:c,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:m,onEntryFocus:l,preventScrollOnEntryFocus:u=!1,...p}=e,v=i.useRef(null),h=kt(t,v),x=tT(a),[d,g]=q1({prop:c,defaultProp:s??null,onChange:m,caller:Qa}),[y,b]=i.useState(!1),w=zo(l),E=rT(r),C=i.useRef(!1),[T,R]=i.useState(0);return i.useEffect(()=>{const N=v.current;if(N)return N.addEventListener(Yf,w),()=>N.removeEventListener(Yf,w)},[w]),te.jsx(Dre,{scope:r,orientation:n,dir:x,loop:o,currentTabStopId:d,onItemFocus:i.useCallback(N=>g(N),[g]),onItemShiftTab:i.useCallback(()=>b(!0),[]),onFocusableItemAdd:i.useCallback(()=>R(N=>N+1),[]),onFocusableItemRemove:i.useCallback(()=>R(N=>N-1),[]),children:te.jsx(Fe.div,{tabIndex:y||T===0?-1:0,"data-orientation":n,...p,ref:h,style:{outline:"none",...e.style},onMouseDown:Ne(e.onMouseDown,()=>{C.current=!0}),onFocus:Ne(e.onFocus,N=>{const P=!C.current;if(N.target===N.currentTarget&&P&&!y){const L=new CustomEvent(Yf,kre);if(N.currentTarget.dispatchEvent(L),!L.defaultPrevented){const I=E().filter(_=>_.focusable),B=I.find(_=>_.active),K=I.find(_=>_.id===d),$=[B,K,...I].filter(Boolean).map(_=>_.ref.current);iT($,u)}}C.current=!1}),onBlur:Ne(e.onBlur,()=>b(!1))})})}),aT="RovingFocusGroupItem",sT=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:c,...s}=e,m=G1(),l=a||m,u=Ore(aT,r),p=u.currentTabStopId===l,v=rT(r),{onFocusableItemAdd:h,onFocusableItemRemove:x,currentTabStopId:d}=u;return i.useEffect(()=>{if(n)return h(),()=>x()},[n,h,x]),te.jsx(Zp.ItemSlot,{scope:r,id:l,focusable:n,active:o,children:te.jsx(Fe.span,{tabIndex:p?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:Ne(e.onMouseDown,g=>{n?u.onItemFocus(l):g.preventDefault()}),onFocus:Ne(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:Ne(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){u.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const y=Are(g,u.orientation,u.dir);if(y!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let b=v().filter(w=>w.focusable).map(w=>w.ref.current);if(y==="last")b.reverse();else if(y==="prev"||y==="next"){y==="prev"&&b.reverse();const w=b.indexOf(g.currentTarget);b=u.loop?Ire(b,w+1):b.slice(w+1)}setTimeout(()=>iT(b))}}),children:typeof c=="function"?c({isCurrentTabStop:p,hasTabStop:d!=null}):c})})});sT.displayName=aT;var _re={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Mre(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Are(e,t,r){const n=Mre(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return _re[n]}function iT(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function Ire(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var Fre=oT,Lre=sT,rl="Tabs",[Wre]=ku(rl,[nT]),cT=nT(),[zre,cv]=Wre(rl),$re=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:o,defaultValue:a,orientation:c="horizontal",dir:s,activationMode:m="automatic",...l}=e,u=tT(s),[p,v]=q1({prop:n,onChange:o,defaultProp:a??"",caller:rl});return te.jsx(zre,{scope:r,baseId:G1(),value:p,onValueChange:v,orientation:c,dir:u,activationMode:m,children:te.jsx(Fe.div,{dir:u,"data-orientation":c,...l,ref:t})})});$re.displayName=rl;var uT="TabsList",Yre=i.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...o}=e,a=cv(uT,r),c=cT(r);return te.jsx(Fre,{asChild:!0,...c,orientation:a.orientation,dir:a.dir,loop:n,children:te.jsx(Fe.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});Yre.displayName=uT;var lT="TabsTrigger",Ure=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:o=!1,...a}=e,c=cv(lT,r),s=cT(r),m=fT(c.baseId,n),l=pT(c.baseId,n),u=n===c.value;return te.jsx(Lre,{asChild:!0,...s,focusable:!o,active:u,children:te.jsx(Fe.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":l,"data-state":u?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:m,...a,ref:t,onMouseDown:Ne(e.onMouseDown,p=>{!o&&p.button===0&&p.ctrlKey===!1?c.onValueChange(n):p.preventDefault()}),onKeyDown:Ne(e.onKeyDown,p=>{[" ","Enter"].includes(p.key)&&c.onValueChange(n)}),onFocus:Ne(e.onFocus,()=>{const p=c.activationMode!=="manual";!u&&!o&&p&&c.onValueChange(n)})})})});Ure.displayName=lT;var dT="TabsContent",Bre=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:o,children:a,...c}=e,s=cv(dT,r),m=fT(s.baseId,n),l=pT(s.baseId,n),u=n===s.value,p=i.useRef(u);return i.useEffect(()=>{const v=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(v)},[]),te.jsx(ju,{present:o||u,children:({present:v})=>te.jsx(Fe.div,{"data-state":u?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":m,hidden:!v,id:l,tabIndex:0,...c,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:v&&a})})});Bre.displayName=dT;function fT(e,t){return`${e}-trigger-${t}`}function pT(e,t){return`${e}-content-${t}`}i.createContext({});i.createContext({});function Kre(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}Array(12).fill(0);let Jp=1;class Hre{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const r=this.subscribers.indexOf(t);this.subscribers.splice(r,1)}),this.publish=t=>{this.subscribers.forEach(r=>r(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var r;const{message:n,...o}=t,a=typeof t?.id=="number"||((r=t.id)==null?void 0:r.length)>0?t.id:Jp++,c=this.toasts.find(m=>m.id===a),s=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),c?this.toasts=this.toasts.map(m=>m.id===a?(this.publish({...m,...t,id:a,title:n}),{...m,...t,id:a,dismissible:s,title:n}):m):this.addToast({title:n,...o,dismissible:s,id:a}),a},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(r=>r({id:t,dismiss:!0})))):this.toasts.forEach(r=>{this.subscribers.forEach(n=>n({id:r.id,dismiss:!0}))}),t),this.message=(t,r)=>this.create({...r,message:t}),this.error=(t,r)=>this.create({...r,message:t,type:"error"}),this.success=(t,r)=>this.create({...r,type:"success",message:t}),this.info=(t,r)=>this.create({...r,type:"info",message:t}),this.warning=(t,r)=>this.create({...r,type:"warning",message:t}),this.loading=(t,r)=>this.create({...r,type:"loading",message:t}),this.promise=(t,r)=>{if(!r)return;let n;r.loading!==void 0&&(n=this.create({...r,promise:t,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let a=n!==void 0,c;const s=o.then(async l=>{if(c=["resolve",l],M.isValidElement(l))a=!1,this.create({id:n,type:"default",message:l});else if(Vre(l)&&!l.ok){a=!1;const u=typeof r.error=="function"?await r.error(`HTTP error! status: ${l.status}`):r.error,p=typeof r.description=="function"?await r.description(`HTTP error! status: ${l.status}`):r.description,v=typeof u=="object"&&!M.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:p,...v})}else if(l instanceof Error){a=!1;const u=typeof r.error=="function"?await r.error(l):r.error,p=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!M.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:p,...v})}else if(r.success!==void 0){a=!1;const u=typeof r.success=="function"?await r.success(l):r.success,p=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!M.isValidElement(u)?u:{message:u};this.create({id:n,type:"success",description:p,...v})}}).catch(async l=>{if(c=["reject",l],r.error!==void 0){a=!1;const u=typeof r.error=="function"?await r.error(l):r.error,p=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!M.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:p,...v})}}).finally(()=>{a&&(this.dismiss(n),n=void 0),r.finally==null||r.finally.call(r)}),m=()=>new Promise((l,u)=>s.then(()=>c[0]==="reject"?u(c[1]):l(c[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:m}:Object.assign(n,{unwrap:m})},this.custom=(t,r)=>{const n=r?.id||Jp++;return this.create({jsx:t(n),id:n,...r}),n},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Je=new Hre,Xre=(e,t)=>{const r=t?.id||Jp++;return Je.addToast({title:e,...t,id:r}),r},Vre=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Gre=Xre,qre=()=>Je.toasts,Zre=()=>Je.getActiveToasts();Object.assign(Gre,{success:Je.success,info:Je.info,warning:Je.warning,error:Je.error,custom:Je.custom,message:Je.message,promise:Je.promise,dismiss:Je.dismiss,loading:Je.loading},{getHistory:qre,getToasts:Zre});Kre("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function Jre(e){const t=e+"CollectionProvider",[r,n]=Ru(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),c=d=>{const{scope:g,children:y}=d,b=M.useRef(null),w=M.useRef(new Map).current;return ee.jsx(o,{scope:g,itemMap:w,collectionRef:b,children:y})};c.displayName=t;const s=e+"CollectionSlot",m=Z.createSlot(s),l=M.forwardRef((d,g)=>{const{scope:y,children:b}=d,w=a(s,y),E=Nt(g,w.collectionRef);return ee.jsx(m,{ref:E,children:b})});l.displayName=s;const u=e+"CollectionItemSlot",p="data-radix-collection-item",v=Z.createSlot(u),h=M.forwardRef((d,g)=>{const{scope:y,children:b,...w}=d,E=M.useRef(null),C=Nt(g,E),T=a(u,y);return M.useEffect(()=>(T.itemMap.set(E,{ref:E,...w}),()=>void T.itemMap.delete(E))),ee.jsx(v,{[p]:"",ref:C,children:b})});h.displayName=u;function x(d){const g=a(e+"CollectionConsumer",d);return M.useCallback(()=>{const y=g.collectionRef.current;if(!y)return[];const b=Array.from(y.querySelectorAll(`[${p}]`));return Array.from(g.itemMap.values()).sort((w,E)=>b.indexOf(w.ref.current)-b.indexOf(E.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:c,Slot:l,ItemSlot:h},x,n]}var Qre=i.createContext(void 0);function mT(e){const t=i.useContext(Qre);return e||t||"ltr"}var Uf="rovingFocusGroup.onEntryFocus",ene={bubbles:!1,cancelable:!0},es="RovingFocusGroup",[Qp,vT,tne]=Jre(es),[rne,gT]=Ru(es,[tne]),[nne,one]=rne(es),hT=i.forwardRef((e,t)=>ee.jsx(Qp.Provider,{scope:e.__scopeRovingFocusGroup,children:ee.jsx(Qp.Slot,{scope:e.__scopeRovingFocusGroup,children:ee.jsx(ane,{...e,ref:t})})}));hT.displayName=es;var ane=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:c,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:m,onEntryFocus:l,preventScrollOnEntryFocus:u=!1,...p}=e,v=i.useRef(null),h=Nt(t,v),x=mT(a),[d,g]=C1({prop:c,defaultProp:s??null,onChange:m,caller:es}),[y,b]=i.useState(!1),w=Wo(l),E=vT(r),C=i.useRef(!1),[T,R]=i.useState(0);return i.useEffect(()=>{const N=v.current;if(N)return N.addEventListener(Uf,w),()=>N.removeEventListener(Uf,w)},[w]),ee.jsx(nne,{scope:r,orientation:n,dir:x,loop:o,currentTabStopId:d,onItemFocus:i.useCallback(N=>g(N),[g]),onItemShiftTab:i.useCallback(()=>b(!0),[]),onFocusableItemAdd:i.useCallback(()=>R(N=>N+1),[]),onFocusableItemRemove:i.useCallback(()=>R(N=>N-1),[]),children:ee.jsx(Ie.div,{tabIndex:y||T===0?-1:0,"data-orientation":n,...p,ref:h,style:{outline:"none",...e.style},onMouseDown:Ce(e.onMouseDown,()=>{C.current=!0}),onFocus:Ce(e.onFocus,N=>{const P=!C.current;if(N.target===N.currentTarget&&P&&!y){const L=new CustomEvent(Uf,ene);if(N.currentTarget.dispatchEvent(L),!L.defaultPrevented){const I=E().filter(_=>_.focusable),B=I.find(_=>_.active),K=I.find(_=>_.id===d),$=[B,K,...I].filter(Boolean).map(_=>_.ref.current);wT($,u)}}C.current=!1}),onBlur:Ce(e.onBlur,()=>b(!1))})})}),yT="RovingFocusGroupItem",bT=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:c,...s}=e,m=R1(),l=a||m,u=one(yT,r),p=u.currentTabStopId===l,v=vT(r),{onFocusableItemAdd:h,onFocusableItemRemove:x,currentTabStopId:d}=u;return i.useEffect(()=>{if(n)return h(),()=>x()},[n,h,x]),ee.jsx(Qp.ItemSlot,{scope:r,id:l,focusable:n,active:o,children:ee.jsx(Ie.span,{tabIndex:p?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:Ce(e.onMouseDown,g=>{n?u.onItemFocus(l):g.preventDefault()}),onFocus:Ce(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:Ce(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){u.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const y=cne(g,u.orientation,u.dir);if(y!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let b=v().filter(w=>w.focusable).map(w=>w.ref.current);if(y==="last")b.reverse();else if(y==="prev"||y==="next"){y==="prev"&&b.reverse();const w=b.indexOf(g.currentTarget);b=u.loop?une(b,w+1):b.slice(w+1)}setTimeout(()=>wT(b))}}),children:typeof c=="function"?c({isCurrentTabStop:p,hasTabStop:d!=null}):c})})});bT.displayName=yT;var sne={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function ine(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function cne(e,t,r){const n=ine(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return sne[n]}function wT(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function une(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var lne=hT,dne=bT,nl="Tabs",[fne]=Ru(nl,[gT]),xT=gT(),[pne,uv]=fne(nl),mne=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:o,defaultValue:a,orientation:c="horizontal",dir:s,activationMode:m="automatic",...l}=e,u=mT(s),[p,v]=C1({prop:n,onChange:o,defaultProp:a??"",caller:nl});return ee.jsx(pne,{scope:r,baseId:R1(),value:p,onValueChange:v,orientation:c,dir:u,activationMode:m,children:ee.jsx(Ie.div,{dir:u,"data-orientation":c,...l,ref:t})})});mne.displayName=nl;var ET="TabsList",vne=i.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...o}=e,a=uv(ET,r),c=xT(r);return ee.jsx(lne,{asChild:!0,...c,orientation:a.orientation,dir:a.dir,loop:n,children:ee.jsx(Ie.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});vne.displayName=ET;var ST="TabsTrigger",gne=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:o=!1,...a}=e,c=uv(ST,r),s=xT(r),m=CT(c.baseId,n),l=NT(c.baseId,n),u=n===c.value;return ee.jsx(dne,{asChild:!0,...s,focusable:!o,active:u,children:ee.jsx(Ie.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":l,"data-state":u?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:m,...a,ref:t,onMouseDown:Ce(e.onMouseDown,p=>{!o&&p.button===0&&p.ctrlKey===!1?c.onValueChange(n):p.preventDefault()}),onKeyDown:Ce(e.onKeyDown,p=>{[" ","Enter"].includes(p.key)&&c.onValueChange(n)}),onFocus:Ce(e.onFocus,()=>{const p=c.activationMode!=="manual";!u&&!o&&p&&c.onValueChange(n)})})})});gne.displayName=ST;var RT="TabsContent",hne=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:o,children:a,...c}=e,s=uv(RT,r),m=CT(s.baseId,n),l=NT(s.baseId,n),u=n===s.value,p=i.useRef(u);return i.useEffect(()=>{const v=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(v)},[]),ee.jsx(Cu,{present:o||u,children:({present:v})=>ee.jsx(Ie.div,{"data-state":u?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":m,hidden:!v,id:l,tabIndex:0,...c,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:v&&a})})});hne.displayName=RT;function CT(e,t){return`${e}-trigger-${t}`}function NT(e,t){return`${e}-content-${t}`}i.createContext({});i.createContext({});function yne(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}Array(12).fill(0);let em=1;class bne{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const r=this.subscribers.indexOf(t);this.subscribers.splice(r,1)}),this.publish=t=>{this.subscribers.forEach(r=>r(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var r;const{message:n,...o}=t,a=typeof t?.id=="number"||((r=t.id)==null?void 0:r.length)>0?t.id:em++,c=this.toasts.find(m=>m.id===a),s=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),c?this.toasts=this.toasts.map(m=>m.id===a?(this.publish({...m,...t,id:a,title:n}),{...m,...t,id:a,dismissible:s,title:n}):m):this.addToast({title:n,...o,dismissible:s,id:a}),a},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(r=>r({id:t,dismiss:!0})))):this.toasts.forEach(r=>{this.subscribers.forEach(n=>n({id:r.id,dismiss:!0}))}),t),this.message=(t,r)=>this.create({...r,message:t}),this.error=(t,r)=>this.create({...r,message:t,type:"error"}),this.success=(t,r)=>this.create({...r,type:"success",message:t}),this.info=(t,r)=>this.create({...r,type:"info",message:t}),this.warning=(t,r)=>this.create({...r,type:"warning",message:t}),this.loading=(t,r)=>this.create({...r,type:"loading",message:t}),this.promise=(t,r)=>{if(!r)return;let n;r.loading!==void 0&&(n=this.create({...r,promise:t,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let a=n!==void 0,c;const s=o.then(async l=>{if(c=["resolve",l],M.isValidElement(l))a=!1,this.create({id:n,type:"default",message:l});else if(xne(l)&&!l.ok){a=!1;const u=typeof r.error=="function"?await r.error(`HTTP error! status: ${l.status}`):r.error,p=typeof r.description=="function"?await r.description(`HTTP error! status: ${l.status}`):r.description,v=typeof u=="object"&&!M.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:p,...v})}else if(l instanceof Error){a=!1;const u=typeof r.error=="function"?await r.error(l):r.error,p=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!M.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:p,...v})}else if(r.success!==void 0){a=!1;const u=typeof r.success=="function"?await r.success(l):r.success,p=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!M.isValidElement(u)?u:{message:u};this.create({id:n,type:"success",description:p,...v})}}).catch(async l=>{if(c=["reject",l],r.error!==void 0){a=!1;const u=typeof r.error=="function"?await r.error(l):r.error,p=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!M.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:p,...v})}}).finally(()=>{a&&(this.dismiss(n),n=void 0),r.finally==null||r.finally.call(r)}),m=()=>new Promise((l,u)=>s.then(()=>c[0]==="reject"?u(c[1]):l(c[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:m}:Object.assign(n,{unwrap:m})},this.custom=(t,r)=>{const n=r?.id||em++;return this.create({jsx:t(n),id:n,...r}),n},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Qe=new bne,wne=(e,t)=>{const r=t?.id||em++;return Qe.addToast({title:e,...t,id:r}),r},xne=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Ene=wne,Sne=()=>Qe.toasts,Rne=()=>Qe.getActiveToasts();Object.assign(Ene,{success:Qe.success,info:Qe.info,warning:Qe.warning,error:Qe.error,custom:Qe.custom,message:Qe.message,promise:Qe.promise,dismiss:Qe.dismiss,loading:Qe.loading},{getHistory:Sne,getToasts:Rne});yne("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function Cne(e){const t=e+"CollectionProvider",[r,n]=xu(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),c=d=>{const{scope:g,children:y}=d,b=M.useRef(null),w=M.useRef(new Map).current;return Q.jsx(o,{scope:g,itemMap:w,collectionRef:b,children:y})};c.displayName=t;const s=e+"CollectionSlot",m=Z.createSlot(s),l=M.forwardRef((d,g)=>{const{scope:y,children:b}=d,w=a(s,y),E=Ct(g,w.collectionRef);return Q.jsx(m,{ref:E,children:b})});l.displayName=s;const u=e+"CollectionItemSlot",p="data-radix-collection-item",v=Z.createSlot(u),h=M.forwardRef((d,g)=>{const{scope:y,children:b,...w}=d,E=M.useRef(null),C=Ct(g,E),T=a(u,y);return M.useEffect(()=>(T.itemMap.set(E,{ref:E,...w}),()=>void T.itemMap.delete(E))),Q.jsx(v,{[p]:"",ref:C,children:b})});h.displayName=u;function x(d){const g=a(e+"CollectionConsumer",d);return M.useCallback(()=>{const y=g.collectionRef.current;if(!y)return[];const b=Array.from(y.querySelectorAll(`[${p}]`));return Array.from(g.itemMap.values()).sort((w,E)=>b.indexOf(w.ref.current)-b.indexOf(E.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:c,Slot:l,ItemSlot:h},x,n]}var Nne=i.createContext(void 0);function kT(e){const t=i.useContext(Nne);return e||t||"ltr"}var Bf="rovingFocusGroup.onEntryFocus",kne={bubbles:!1,cancelable:!0},ts="RovingFocusGroup",[tm,jT,jne]=Cne(ts),[Tne,TT]=xu(ts,[jne]),[Dne,One]=Tne(ts),DT=i.forwardRef((e,t)=>Q.jsx(tm.Provider,{scope:e.__scopeRovingFocusGroup,children:Q.jsx(tm.Slot,{scope:e.__scopeRovingFocusGroup,children:Q.jsx(Pne,{...e,ref:t})})}));DT.displayName=ts;var Pne=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:c,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:m,onEntryFocus:l,preventScrollOnEntryFocus:u=!1,...p}=e,v=i.useRef(null),h=Ct(t,v),x=kT(a),[d,g]=e1({prop:c,defaultProp:s??null,onChange:m,caller:ts}),[y,b]=i.useState(!1),w=Lo(l),E=jT(r),C=i.useRef(!1),[T,R]=i.useState(0);return i.useEffect(()=>{const N=v.current;if(N)return N.addEventListener(Bf,w),()=>N.removeEventListener(Bf,w)},[w]),Q.jsx(Dne,{scope:r,orientation:n,dir:x,loop:o,currentTabStopId:d,onItemFocus:i.useCallback(N=>g(N),[g]),onItemShiftTab:i.useCallback(()=>b(!0),[]),onFocusableItemAdd:i.useCallback(()=>R(N=>N+1),[]),onFocusableItemRemove:i.useCallback(()=>R(N=>N-1),[]),children:Q.jsx(Ae.div,{tabIndex:y||T===0?-1:0,"data-orientation":n,...p,ref:h,style:{outline:"none",...e.style},onMouseDown:Re(e.onMouseDown,()=>{C.current=!0}),onFocus:Re(e.onFocus,N=>{const P=!C.current;if(N.target===N.currentTarget&&P&&!y){const L=new CustomEvent(Bf,kne);if(N.currentTarget.dispatchEvent(L),!L.defaultPrevented){const I=E().filter(_=>_.focusable),B=I.find(_=>_.active),K=I.find(_=>_.id===d),$=[B,K,...I].filter(Boolean).map(_=>_.ref.current);_T($,u)}}C.current=!1}),onBlur:Re(e.onBlur,()=>b(!1))})})}),OT="RovingFocusGroupItem",PT=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:c,...s}=e,m=QS(),l=a||m,u=One(OT,r),p=u.currentTabStopId===l,v=jT(r),{onFocusableItemAdd:h,onFocusableItemRemove:x,currentTabStopId:d}=u;return i.useEffect(()=>{if(n)return h(),()=>x()},[n,h,x]),Q.jsx(tm.ItemSlot,{scope:r,id:l,focusable:n,active:o,children:Q.jsx(Ae.span,{tabIndex:p?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:Re(e.onMouseDown,g=>{n?u.onItemFocus(l):g.preventDefault()}),onFocus:Re(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:Re(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){u.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const y=Ane(g,u.orientation,u.dir);if(y!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let b=v().filter(w=>w.focusable).map(w=>w.ref.current);if(y==="last")b.reverse();else if(y==="prev"||y==="next"){y==="prev"&&b.reverse();const w=b.indexOf(g.currentTarget);b=u.loop?Ine(b,w+1):b.slice(w+1)}setTimeout(()=>_T(b))}}),children:typeof c=="function"?c({isCurrentTabStop:p,hasTabStop:d!=null}):c})})});PT.displayName=OT;var _ne={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Mne(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Ane(e,t,r){const n=Mne(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return _ne[n]}function _T(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function Ine(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var Fne=DT,Lne=PT,ol="Tabs",[Wne]=xu(ol,[TT]),MT=TT(),[zne,lv]=Wne(ol),$ne=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:o,defaultValue:a,orientation:c="horizontal",dir:s,activationMode:m="automatic",...l}=e,u=kT(s),[p,v]=e1({prop:n,onChange:o,defaultProp:a??"",caller:ol});return Q.jsx(zne,{scope:r,baseId:QS(),value:p,onValueChange:v,orientation:c,dir:u,activationMode:m,children:Q.jsx(Ae.div,{dir:u,"data-orientation":c,...l,ref:t})})});$ne.displayName=ol;var AT="TabsList",Yne=i.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...o}=e,a=lv(AT,r),c=MT(r);return Q.jsx(Fne,{asChild:!0,...c,orientation:a.orientation,dir:a.dir,loop:n,children:Q.jsx(Ae.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});Yne.displayName=AT;var IT="TabsTrigger",Une=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:o=!1,...a}=e,c=lv(IT,r),s=MT(r),m=LT(c.baseId,n),l=WT(c.baseId,n),u=n===c.value;return Q.jsx(Lne,{asChild:!0,...s,focusable:!o,active:u,children:Q.jsx(Ae.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":l,"data-state":u?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:m,...a,ref:t,onMouseDown:Re(e.onMouseDown,p=>{!o&&p.button===0&&p.ctrlKey===!1?c.onValueChange(n):p.preventDefault()}),onKeyDown:Re(e.onKeyDown,p=>{[" ","Enter"].includes(p.key)&&c.onValueChange(n)}),onFocus:Re(e.onFocus,()=>{const p=c.activationMode!=="manual";!u&&!o&&p&&c.onValueChange(n)})})})});Une.displayName=IT;var FT="TabsContent",Bne=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:o,children:a,...c}=e,s=lv(FT,r),m=LT(s.baseId,n),l=WT(s.baseId,n),u=n===s.value,p=i.useRef(u);return i.useEffect(()=>{const v=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(v)},[]),Q.jsx(Eu,{present:o||u,children:({present:v})=>Q.jsx(Ae.div,{"data-state":u?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":m,hidden:!v,id:l,tabIndex:0,...c,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:v&&a})})});Bne.displayName=FT;function LT(e,t){return`${e}-trigger-${t}`}function WT(e,t){return`${e}-content-${t}`}i.createContext({});i.createContext({});function Kne(e){const t=e+"CollectionProvider",[r,n]=yu(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),c=d=>{const{scope:g,children:y}=d,b=M.useRef(null),w=M.useRef(new Map).current;return J.jsx(o,{scope:g,itemMap:w,collectionRef:b,children:y})};c.displayName=t;const s=e+"CollectionSlot",m=Z.createSlot(s),l=M.forwardRef((d,g)=>{const{scope:y,children:b}=d,w=a(s,y),E=Rt(g,w.collectionRef);return J.jsx(m,{ref:E,children:b})});l.displayName=s;const u=e+"CollectionItemSlot",p="data-radix-collection-item",v=Z.createSlot(u),h=M.forwardRef((d,g)=>{const{scope:y,children:b,...w}=d,E=M.useRef(null),C=Rt(g,E),T=a(u,y);return M.useEffect(()=>(T.itemMap.set(E,{ref:E,...w}),()=>void T.itemMap.delete(E))),J.jsx(v,{[p]:"",ref:C,children:b})});h.displayName=u;function x(d){const g=a(e+"CollectionConsumer",d);return M.useCallback(()=>{const y=g.collectionRef.current;if(!y)return[];const b=Array.from(y.querySelectorAll(`[${p}]`));return Array.from(g.itemMap.values()).sort((w,E)=>b.indexOf(w.ref.current)-b.indexOf(E.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:c,Slot:l,ItemSlot:h},x,n]}var Hne=i.createContext(void 0);function zT(e){const t=i.useContext(Hne);return e||t||"ltr"}var Kf="rovingFocusGroup.onEntryFocus",Xne={bubbles:!1,cancelable:!0},rs="RovingFocusGroup",[rm,$T,Vne]=Kne(rs),[Gne,YT]=yu(rs,[Vne]),[qne,Zne]=Gne(rs),UT=i.forwardRef((e,t)=>J.jsx(rm.Provider,{scope:e.__scopeRovingFocusGroup,children:J.jsx(rm.Slot,{scope:e.__scopeRovingFocusGroup,children:J.jsx(Jne,{...e,ref:t})})}));UT.displayName=rs;var Jne=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:c,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:m,onEntryFocus:l,preventScrollOnEntryFocus:u=!1,...p}=e,v=i.useRef(null),h=Rt(t,v),x=zT(a),[d,g]=TS({prop:c,defaultProp:s??null,onChange:m,caller:rs}),[y,b]=i.useState(!1),w=Fo(l),E=$T(r),C=i.useRef(!1),[T,R]=i.useState(0);return i.useEffect(()=>{const N=v.current;if(N)return N.addEventListener(Kf,w),()=>N.removeEventListener(Kf,w)},[w]),J.jsx(qne,{scope:r,orientation:n,dir:x,loop:o,currentTabStopId:d,onItemFocus:i.useCallback(N=>g(N),[g]),onItemShiftTab:i.useCallback(()=>b(!0),[]),onFocusableItemAdd:i.useCallback(()=>R(N=>N+1),[]),onFocusableItemRemove:i.useCallback(()=>R(N=>N-1),[]),children:J.jsx(Me.div,{tabIndex:y||T===0?-1:0,"data-orientation":n,...p,ref:h,style:{outline:"none",...e.style},onMouseDown:Se(e.onMouseDown,()=>{C.current=!0}),onFocus:Se(e.onFocus,N=>{const P=!C.current;if(N.target===N.currentTarget&&P&&!y){const L=new CustomEvent(Kf,Xne);if(N.currentTarget.dispatchEvent(L),!L.defaultPrevented){const I=E().filter(_=>_.focusable),B=I.find(_=>_.active),K=I.find(_=>_.id===d),$=[B,K,...I].filter(Boolean).map(_=>_.ref.current);HT($,u)}}C.current=!1}),onBlur:Se(e.onBlur,()=>b(!1))})})}),BT="RovingFocusGroupItem",KT=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:c,...s}=e,m=jS(),l=a||m,u=Zne(BT,r),p=u.currentTabStopId===l,v=$T(r),{onFocusableItemAdd:h,onFocusableItemRemove:x,currentTabStopId:d}=u;return i.useEffect(()=>{if(n)return h(),()=>x()},[n,h,x]),J.jsx(rm.ItemSlot,{scope:r,id:l,focusable:n,active:o,children:J.jsx(Me.span,{tabIndex:p?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:Se(e.onMouseDown,g=>{n?u.onItemFocus(l):g.preventDefault()}),onFocus:Se(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:Se(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){u.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const y=toe(g,u.orientation,u.dir);if(y!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let b=v().filter(w=>w.focusable).map(w=>w.ref.current);if(y==="last")b.reverse();else if(y==="prev"||y==="next"){y==="prev"&&b.reverse();const w=b.indexOf(g.currentTarget);b=u.loop?roe(b,w+1):b.slice(w+1)}setTimeout(()=>HT(b))}}),children:typeof c=="function"?c({isCurrentTabStop:p,hasTabStop:d!=null}):c})})});KT.displayName=BT;var Qne={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function eoe(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function toe(e,t,r){const n=eoe(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return Qne[n]}function HT(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function roe(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var noe=UT,ooe=KT,al="Tabs",[aoe]=yu(al,[YT]),XT=YT(),[soe,dv]=aoe(al),ioe=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:o,defaultValue:a,orientation:c="horizontal",dir:s,activationMode:m="automatic",...l}=e,u=zT(s),[p,v]=TS({prop:n,onChange:o,defaultProp:a??"",caller:al});return J.jsx(soe,{scope:r,baseId:jS(),value:p,onValueChange:v,orientation:c,dir:u,activationMode:m,children:J.jsx(Me.div,{dir:u,"data-orientation":c,...l,ref:t})})});ioe.displayName=al;var VT="TabsList",coe=i.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...o}=e,a=dv(VT,r),c=XT(r);return J.jsx(noe,{asChild:!0,...c,orientation:a.orientation,dir:a.dir,loop:n,children:J.jsx(Me.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});coe.displayName=VT;var GT="TabsTrigger",uoe=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:o=!1,...a}=e,c=dv(GT,r),s=XT(r),m=ZT(c.baseId,n),l=JT(c.baseId,n),u=n===c.value;return J.jsx(ooe,{asChild:!0,...s,focusable:!o,active:u,children:J.jsx(Me.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":l,"data-state":u?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:m,...a,ref:t,onMouseDown:Se(e.onMouseDown,p=>{!o&&p.button===0&&p.ctrlKey===!1?c.onValueChange(n):p.preventDefault()}),onKeyDown:Se(e.onKeyDown,p=>{[" ","Enter"].includes(p.key)&&c.onValueChange(n)}),onFocus:Se(e.onFocus,()=>{const p=c.activationMode!=="manual";!u&&!o&&p&&c.onValueChange(n)})})})});uoe.displayName=GT;var qT="TabsContent",loe=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:o,children:a,...c}=e,s=dv(qT,r),m=ZT(s.baseId,n),l=JT(s.baseId,n),u=n===s.value,p=i.useRef(u);return i.useEffect(()=>{const v=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(v)},[]),J.jsx(bu,{present:o||u,children:({present:v})=>J.jsx(Me.div,{"data-state":u?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":m,hidden:!v,id:l,tabIndex:0,...c,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:v&&a})})});loe.displayName=qT;function ZT(e,t){return`${e}-trigger-${t}`}function JT(e,t){return`${e}-content-${t}`}i.createContext({});i.createContext({});i.createContext({});i.createContext({});i.createContext({});i.createContext({});i.createContext({});i.createContext({});i.createContext({});i.createContext({});i.createContext({});i.createContext({});function doe({data:e=[],placeholder:t="Selecione um item...",value:r,...n}){const[o,a]=i.useState(!1);let c=-1;r&&(c=e.findIndex(l=>l.value===r));const[s,m]=i.useState(c);return j.jsxRuntimeExports.jsxs(Ua,{open:o,onOpenChange:a,children:[j.jsxRuntimeExports.jsx(Ba,{asChild:!0,children:j.jsxRuntimeExports.jsxs(Z0,{variant:"outline",role:"combobox","aria-expanded":o,className:"justify-between",children:[s>-1?e[s].label:j.jsxRuntimeExports.jsx("div",{className:"text-sm text-foreground opacity-50 font-normal",children:t}),j.jsxRuntimeExports.jsx(be.ChevronsUpDown,{className:"opacity-50"})]})}),j.jsxRuntimeExports.jsx(Ka,{className:" lg:w-[654px] md:w-[558px] p-0",children:j.jsxRuntimeExports.jsxs(du,{children:[j.jsxRuntimeExports.jsx(dm,{placeholder:t,className:"h-9 opacity-50",...n}),j.jsxRuntimeExports.jsxs(fm,{children:[j.jsxRuntimeExports.jsx(pm,{children:"Nenhum registro encontrado."}),j.jsxRuntimeExports.jsx(Wc,{children:e?.map(l=>j.jsxRuntimeExports.jsxs(zc,{value:l.label,onSelect:u=>{const p=e.findIndex(v=>v.label===u);m(p),typeof n.onValueChange=="function"&&n.onValueChange(e[p].value),a(!1)},children:[l.label,j.jsxRuntimeExports.jsx(be.Check,{className:W.cn("ml-auto",l.value===e[s]?.value?"opacity-100":"opacity-0")})]},l.value))})]})]})})]})}function QT({className:e,orientation:t="horizontal",decorative:r=!0,...n}){return j.jsxRuntimeExports.jsx(hD.Root,{"data-slot":"separator",decorative:r,orientation:t,className:W.cn("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",e),...n})}function foe({column:e,title:t,options:r,onChange:n,value:o=[]}){const a=e?.getFacetedUniqueValues(),c=new Set(o);return j.jsxRuntimeExports.jsxs(Ua,{children:[j.jsxRuntimeExports.jsx(Ba,{asChild:!0,children:j.jsxRuntimeExports.jsxs(Z0,{variant:"outline",size:"sm",className:"h-8 border-dashed",children:[j.jsxRuntimeExports.jsx(be.PlusCircle,{}),t,c?.size>0&&j.jsxRuntimeExports.jsxs(j.jsxRuntimeExports.Fragment,{children:[j.jsxRuntimeExports.jsx(QT,{orientation:"vertical",className:"mx-2 h-4"}),j.jsxRuntimeExports.jsx(Ji,{variant:"secondary",className:"rounded-sm px-1 font-normal lg:hidden",children:c.size}),j.jsxRuntimeExports.jsx("div",{className:"hidden gap-1 lg:flex",children:c.size>2?j.jsxRuntimeExports.jsxs(Ji,{variant:"secondary",className:"rounded-sm px-1 font-normal",children:[c.size," selected"]}):r.filter(s=>c.has(s.value)).map(s=>j.jsxRuntimeExports.jsx(Ji,{variant:"secondary",className:"rounded-sm px-1 font-normal",children:s.label},s.value))})]})]})}),j.jsxRuntimeExports.jsx(Ka,{className:"w-[200px] p-0",align:"start",children:j.jsxRuntimeExports.jsxs(du,{children:[j.jsxRuntimeExports.jsx(dm,{placeholder:t}),j.jsxRuntimeExports.jsxs(fm,{children:[j.jsxRuntimeExports.jsx(pm,{children:"No results found."}),j.jsxRuntimeExports.jsx(Wc,{children:r.map(s=>{const m=c.has(s.value);return j.jsxRuntimeExports.jsxs(zc,{onSelect:()=>{const l=new Set(c);m?l.delete(s.value):l.add(s.value),typeof n=="function"&&n(l);const u=Array.from(l);e?.setFilterValue(u.length?u:void 0)},children:[j.jsxRuntimeExports.jsx("div",{className:W.cn("flex size-4 items-center justify-center rounded-[4px] border",m?"bg-primary border-primary text-primary-foreground":"border-input [&_svg]:invisible"),children:j.jsxRuntimeExports.jsx(be.Check,{className:"text-primary-foreground size-3.5"})}),s.icon&&j.jsxRuntimeExports.jsx(s.icon,{className:"text-muted-foreground size-4"}),j.jsxRuntimeExports.jsx("span",{children:s.label}),a?.get(s.value)&&j.jsxRuntimeExports.jsx("span",{className:"text-muted-foreground ml-auto flex size-4 items-center justify-center font-mono text-xs",children:a.get(s.value)})]},s.value)})}),c.size>0&&j.jsxRuntimeExports.jsxs(j.jsxRuntimeExports.Fragment,{children:[j.jsxRuntimeExports.jsx(G0,{}),j.jsxRuntimeExports.jsx(Wc,{children:j.jsxRuntimeExports.jsx(zc,{onSelect:()=>{e?.setFilterValue(void 0),typeof n=="function"&&n(new Set)},className:"justify-center text-center",children:"Limpar Filtro"})})]})]})]})})]})}const poe=Mc.FormProvider,eD=i.createContext({}),moe=({...e})=>j.jsxRuntimeExports.jsx(eD.Provider,{value:{name:e.name},children:j.jsxRuntimeExports.jsx(Mc.Controller,{...e})}),ns=()=>{const e=i.useContext(eD),t=i.useContext(tD),{getFieldState:r}=Mc.useFormContext(),n=Mc.useFormState({name:e.name}),o=r(e.name,n);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:a}=t;return{id:a,name:e.name,formItemId:`${a}-form-item`,formDescriptionId:`${a}-form-item-description`,formMessageId:`${a}-form-item-message`,...o}},tD=i.createContext({});function voe({className:e,...t}){const r=i.useId();return j.jsxRuntimeExports.jsx(tD.Provider,{value:{id:r},children:j.jsxRuntimeExports.jsx("div",{"data-slot":"form-item",className:W.cn("grid gap-2",e),...t})})}function goe({className:e,...t}){const{error:r,formItemId:n}=ns();return j.jsxRuntimeExports.jsx(sm,{"data-slot":"form-label","data-error":!!r,className:W.cn("data-[error=true]:text-destructive",e),htmlFor:n,...t})}function hoe({...e}){const{error:t,formItemId:r,formDescriptionId:n,formMessageId:o}=ns();return j.jsxRuntimeExports.jsx(Z.Slot,{"data-slot":"form-control",id:r,"aria-describedby":t?`${n} ${o}`:`${n}`,"aria-invalid":!!t,...e})}function yoe({className:e,...t}){const{formDescriptionId:r}=ns();return j.jsxRuntimeExports.jsx("p",{"data-slot":"form-description",id:r,className:W.cn("text-muted-foreground text-sm",e),...t})}function boe({className:e,...t}){const{error:r,formMessageId:n}=ns(),o=r?String(r?.message??""):t.children;return o?j.jsxRuntimeExports.jsx("p",{"data-slot":"form-message",id:n,className:W.cn("text-destructive text-sm",e),...t,children:o}):null}function rD({className:e,...t}){return j.jsxRuntimeExports.jsx("div",{"data-slot":"skeleton",className:W.cn("bg-accent animate-pulse rounded-md",e),...t})}const woe=({...e})=>{const{theme:t="system"}=mD.useTheme();return j.jsxRuntimeExports.jsx($w.Toaster,{theme:t,className:"toaster group",style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)"},...e})};function xoe({className:e,...t}){return j.jsxRuntimeExports.jsx(su.Root,{"data-slot":"tabs",className:W.cn("flex flex-col gap-2",e),...t})}function Eoe({className:e,...t}){return j.jsxRuntimeExports.jsx(su.List,{"data-slot":"tabs-list",className:W.cn("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",e),...t})}function Soe({className:e,...t}){return j.jsxRuntimeExports.jsx(su.Trigger,{"data-slot":"tabs-trigger",className:W.cn("data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}function Roe({className:e,...t}){return j.jsxRuntimeExports.jsx(su.Content,{"data-slot":"tabs-content",className:W.cn("flex-1 outline-none",e),...t})}function Coe({className:e,...t}){return j.jsxRuntimeExports.jsx("textarea",{"data-slot":"textarea",className:W.cn("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),...t})}function Noe(){const{user:e,isLoading:t}=j.useUser(),r=e?.username,n=r?r.substring(0,2):"";return t?j.jsxRuntimeExports.jsx(rD,{className:"h-9 w-9 rounded-4xl"}):j.jsxRuntimeExports.jsx("div",{className:"rounded-full w-9 h-9 justify-center text-xs cursor-default uppercase items-center flex flex-col bg-amber-400 border-2 border-black",children:n})}exports.Button=W.Button;exports.buttonVariants=W.buttonVariants;Object.defineProperty(exports,"TZDate",{enumerable:!0,get:()=>er.TZDate});Object.defineProperty(exports,"toast",{enumerable:!0,get:()=>$w.toast});exports.Avatar=Noe;exports.Badge=Ji;exports.Calendar=im;exports.CalendarDayButton=o0;exports.Card=dO;exports.CardAction=vO;exports.CardContent=gO;exports.CardDescription=mO;exports.CardFooter=hO;exports.CardHeader=fO;exports.CardTitle=pO;exports.Checkbox=yO;exports.Collapsible=bO;exports.CollapsibleContent=xO;exports.CollapsibleTrigger=wO;exports.Combobox=doe;exports.Command=du;exports.CommandDialog=a_;exports.CommandEmpty=pm;exports.CommandGroup=Wc;exports.CommandInput=dm;exports.CommandItem=zc;exports.CommandList=fm;exports.CommandSeparator=G0;exports.CommandShortcut=s_;exports.DataTable=_D;exports.DataTableFacetedFilter=foe;exports.DatePicker=uO;exports.DateRangePicker=lO;exports.DefaultDropdownMenuTrigger=TD;exports.Dialog=Y0;exports.DialogClose=n_;exports.DialogContent=K0;exports.DialogDescription=V0;exports.DialogFooter=o_;exports.DialogHeader=H0;exports.DialogOverlay=B0;exports.DialogPortal=U0;exports.DialogTitle=X0;exports.DialogTrigger=r_;exports.DragHandle=MD;exports.DraggableRow=n0;exports.DropdownMenu=Hf;exports.DropdownMenuCheckboxItem=Hw;exports.DropdownMenuContent=Xf;exports.DropdownMenuGroup=xD;exports.DropdownMenuItem=ED;exports.DropdownMenuLabel=SD;exports.DropdownMenuPortal=wD;exports.DropdownMenuRadioGroup=Xw;exports.DropdownMenuRadioItem=Vw;exports.DropdownMenuSeparator=RD;exports.DropdownMenuShortcut=CD;exports.DropdownMenuSub=ND;exports.DropdownMenuSubContent=jD;exports.DropdownMenuSubTrigger=kD;exports.DropdownMenuTrigger=Ic;exports.Form=poe;exports.FormControl=hoe;exports.FormDescription=yoe;exports.FormField=moe;exports.FormItem=voe;exports.FormLabel=goe;exports.FormMessage=boe;exports.Input=r0;exports.Label=sm;exports.Popover=Ua;exports.PopoverAnchor=cO;exports.PopoverContent=Ka;exports.PopoverTrigger=Ba;exports.Select=Gw;exports.SelectContent=Jw;exports.SelectGroup=DD;exports.SelectItem=Qw;exports.SelectLabel=OD;exports.SelectScrollDownButton=t0;exports.SelectScrollUpButton=e0;exports.SelectSeparator=PD;exports.SelectTrigger=Zw;exports.SelectValue=qw;exports.Separator=QT;exports.Skeleton=rD;exports.Table=Yw;exports.TableBody=Bw;exports.TableCaption=bD;exports.TableCell=am;exports.TableFooter=yD;exports.TableHead=Kw;exports.TableHeader=Uw;exports.TableRow=Ac;exports.Tabs=xoe;exports.TabsContent=Roe;exports.TabsList=Eoe;exports.TabsTrigger=Soe;exports.Textarea=Coe;exports.Toaster=woe;exports.badgeVariants=u0;exports.useFormField=ns;
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const D=require("./components/button/Button.cjs.js"),p=require("./components/button/buttonVariants.cjs.js"),t=require("./components/table/Table.cjs.js"),b=require("./components/table/DataTable.cjs.js"),s=require("./components/table/DargableRow.cjs.js"),g=require("./components/table/DragHandle.cjs.js"),e=require("./components/dropdown-menu/Dropdown-Menu.cjs.js"),o=require("./components/select/Select.cjs.js"),C=require("./components/input/Input.cjs.js"),m=require("./components/label/Label.cjs.js"),c=require("./components/calendar/Calendar.cjs.js"),T=require("./components/calendar/DatePicker.cjs.js"),S=require("./components/calendar/DateRangePicker.cjs.js"),w=require("react-day-picker"),i=require("./components/popover/Popover.cjs.js"),M=require("./components/badge/Badge.cjs.js"),q=require("./components/badge/badgeVariants.cjs.js"),l=require("./components/card/Card.cjs.js"),F=require("./components/checkbox/Checkbox.cjs.js"),d=require("./components/collapsible/Collapsible.cjs.js"),r=require("./components/dialog/Dialog.cjs.js"),a=require("./components/command/Command.cjs.js"),P=require("./components/combobox/Combobox.cjs.js"),I=require("./components/separator/Separator.cjs.js"),k=require("./components/data-table-faceted-filter/data-table-faceted-filter.cjs.js"),n=require("./components/form/Form.cjs.js"),v=require("./components/skeleton/Skeleton.cjs.js"),B=require("./components/sonner/Sonner.cjs.js"),y=require("sonner"),u=require("./components/tabs/Tabs.cjs.js"),L=require("./components/textarea/Textarea.cjs.js"),R=require("./components/avatar/Avatar.cjs.js");;/* empty css */exports.Button=D.Button;exports.buttonVariants=p.buttonVariants;exports.Table=t.Table;exports.TableBody=t.TableBody;exports.TableCaption=t.TableCaption;exports.TableCell=t.TableCell;exports.TableFooter=t.TableFooter;exports.TableHead=t.TableHead;exports.TableHeader=t.TableHeader;exports.TableRow=t.TableRow;exports.DataTable=b.DataTable;exports.DraggableRow=s.DraggableRow;exports.DragHandle=g.DragHandle;exports.DefaultDropdownMenuTrigger=e.DefaultDropdownMenuTrigger;exports.DropdownMenu=e.DropdownMenu;exports.DropdownMenuCheckboxItem=e.DropdownMenuCheckboxItem;exports.DropdownMenuContent=e.DropdownMenuContent;exports.DropdownMenuGroup=e.DropdownMenuGroup;exports.DropdownMenuItem=e.DropdownMenuItem;exports.DropdownMenuLabel=e.DropdownMenuLabel;exports.DropdownMenuPortal=e.DropdownMenuPortal;exports.DropdownMenuRadioGroup=e.DropdownMenuRadioGroup;exports.DropdownMenuRadioItem=e.DropdownMenuRadioItem;exports.DropdownMenuSeparator=e.DropdownMenuSeparator;exports.DropdownMenuShortcut=e.DropdownMenuShortcut;exports.DropdownMenuSub=e.DropdownMenuSub;exports.DropdownMenuSubContent=e.DropdownMenuSubContent;exports.DropdownMenuSubTrigger=e.DropdownMenuSubTrigger;exports.DropdownMenuTrigger=e.DropdownMenuTrigger;exports.Select=o.Select;exports.SelectContent=o.SelectContent;exports.SelectGroup=o.SelectGroup;exports.SelectItem=o.SelectItem;exports.SelectLabel=o.SelectLabel;exports.SelectScrollDownButton=o.SelectScrollDownButton;exports.SelectScrollUpButton=o.SelectScrollUpButton;exports.SelectSeparator=o.SelectSeparator;exports.SelectTrigger=o.SelectTrigger;exports.SelectValue=o.SelectValue;exports.Input=C.Input;exports.Label=m.Label;exports.Calendar=c.Calendar;exports.CalendarDayButton=c.CalendarDayButton;exports.DatePicker=T.DatePicker;exports.DateRangePicker=S.DateRangePicker;Object.defineProperty(exports,"TZDate",{enumerable:!0,get:()=>w.TZDate});exports.Popover=i.Popover;exports.PopoverAnchor=i.PopoverAnchor;exports.PopoverContent=i.PopoverContent;exports.PopoverTrigger=i.PopoverTrigger;exports.Badge=M.Badge;exports.badgeVariants=q.badgeVariants;exports.Card=l.Card;exports.CardAction=l.CardAction;exports.CardContent=l.CardContent;exports.CardDescription=l.CardDescription;exports.CardFooter=l.CardFooter;exports.CardHeader=l.CardHeader;exports.CardTitle=l.CardTitle;exports.Checkbox=F.Checkbox;exports.Collapsible=d.Collapsible;exports.CollapsibleContent=d.CollapsibleContent;exports.CollapsibleTrigger=d.CollapsibleTrigger;exports.Dialog=r.Dialog;exports.DialogClose=r.DialogClose;exports.DialogContent=r.DialogContent;exports.DialogDescription=r.DialogDescription;exports.DialogFooter=r.DialogFooter;exports.DialogHeader=r.DialogHeader;exports.DialogOverlay=r.DialogOverlay;exports.DialogPortal=r.DialogPortal;exports.DialogTitle=r.DialogTitle;exports.DialogTrigger=r.DialogTrigger;exports.Command=a.Command;exports.CommandDialog=a.CommandDialog;exports.CommandEmpty=a.CommandEmpty;exports.CommandGroup=a.CommandGroup;exports.CommandInput=a.CommandInput;exports.CommandItem=a.CommandItem;exports.CommandList=a.CommandList;exports.CommandSeparator=a.CommandSeparator;exports.CommandShortcut=a.CommandShortcut;exports.Combobox=P.Combobox;exports.Separator=I.Separator;exports.DataTableFacetedFilter=k.DataTableFacetedFilter;exports.Form=n.Form;exports.FormControl=n.FormControl;exports.FormDescription=n.FormDescription;exports.FormField=n.FormField;exports.FormItem=n.FormItem;exports.FormLabel=n.FormLabel;exports.FormMessage=n.FormMessage;exports.useFormField=n.useFormField;exports.Skeleton=v.Skeleton;exports.Toaster=B.Toaster;Object.defineProperty(exports,"toast",{enumerable:!0,get:()=>y.toast});exports.Tabs=u.Tabs;exports.TabsContent=u.TabsContent;exports.TabsList=u.TabsList;exports.TabsTrigger=u.TabsTrigger;exports.Textarea=L.Textarea;exports.Avatar=R.Avatar;
|