react-miui 0.32.3 → 0.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/settings.json +12 -0
- package/.claude/settings.local.json +11 -1
- package/.storybook/main.ts +4 -1
- package/.storybook/preview.tsx +10 -4
- package/CHANGELOG.md +16 -0
- package/dist/components/form/Checkbox.styled.d.ts +6 -6
- package/dist/components/form/ColorPicker.styled.d.ts +5 -5
- package/dist/components/form/Label.d.ts +3 -3
- package/dist/components/form/Label.styled.d.ts +5 -5
- package/dist/components/form/Select.styled.d.ts +3 -3
- package/dist/components/form/Toggle.d.ts +3 -3
- package/dist/components/form/Toggle.styled.d.ts +5 -5
- package/dist/components/form/choice/Choice.styled.d.ts +3 -3
- package/dist/components/form/choice/ChoiceItem.styled.d.ts +2 -2
- package/dist/components/form/input/Input.css.d.ts +47 -1
- package/dist/components/form/input/Input.css.d.ts.map +1 -1
- package/dist/components/form/input/Input.css.js +49 -1
- package/dist/components/form/input/Input.css.js.map +1 -1
- package/dist/components/form/input/Input.d.ts +5 -1
- package/dist/components/form/input/Input.d.ts.map +1 -1
- package/dist/components/form/input/Input.js +28 -5
- package/dist/components/form/input/Input.js.map +1 -1
- package/dist/components/form/input/Input.styled.d.ts +183 -10
- package/dist/components/form/input/Input.styled.d.ts.map +1 -1
- package/dist/components/form/input/Input.styled.js +5 -1
- package/dist/components/form/input/Input.styled.js.map +1 -1
- package/dist/components/form/textarea/TextArea.d.ts +6 -1
- package/dist/components/form/textarea/TextArea.d.ts.map +1 -1
- package/dist/components/form/textarea/TextArea.js +32 -4
- package/dist/components/form/textarea/TextArea.js.map +1 -1
- package/dist/components/form/textarea/TextArea.styled.d.ts +177 -4
- package/dist/components/form/textarea/TextArea.styled.d.ts.map +1 -1
- package/dist/components/form/textarea/TextArea.styled.js +10 -2
- package/dist/components/form/textarea/TextArea.styled.js.map +1 -1
- package/dist/components/layout/card/Card.styled.d.ts +3 -3
- package/dist/components/layout/header/Header.styled.d.ts +9 -9
- package/dist/components/layout/header/HeaderIconAction.styled.d.ts +8 -8
- package/dist/components/layout/header/StickyHeader.d.ts +3 -3
- package/dist/components/layout/header/StickyHeader.styled.d.ts +6 -6
- package/dist/components/layout/list/Header.d.ts +7 -7
- package/dist/components/layout/list/Item.d.ts +8 -8
- package/dist/components/layout/list/Item.styled.d.ts +9 -9
- package/dist/components/layout/list/Label.d.ts +2 -2
- package/dist/components/layout/list/List.d.ts +18 -18
- package/dist/components/layout/list/Value.d.ts +2 -2
- package/dist/components/layout/section/SearchContainer.d.ts +2 -2
- package/dist/components/layout/section/Section.d.ts +5 -5
- package/dist/components/layout/section/SectionContainer.d.ts +2 -2
- package/dist/components/layout/table/Table.styled.d.ts +3 -3
- package/dist/components/native/index.d.ts +2 -2
- package/dist/components/ui/action/Action.styled.d.ts +8 -8
- package/dist/components/ui/action/EqualActions.styled.d.ts +3 -3
- package/dist/components/ui/button/Button.styled.d.ts +3 -3
- package/dist/components/ui/directionPad/Button.styled.d.ts +4 -4
- package/dist/components/ui/directionPad/Middle.styled.d.ts +2 -2
- package/dist/components/ui/directionPad/Pad.styled.d.ts +4 -4
- package/dist/components/ui/drawer/Drawer.d.ts +10 -1
- package/dist/components/ui/drawer/Drawer.d.ts.map +1 -1
- package/dist/components/ui/drawer/Drawer.js +135 -15
- package/dist/components/ui/drawer/Drawer.js.map +1 -1
- package/dist/components/ui/drawer/Drawer.styled.d.ts +90 -5
- package/dist/components/ui/drawer/Drawer.styled.d.ts.map +1 -1
- package/dist/components/ui/drawer/Drawer.styled.js +13 -1
- package/dist/components/ui/drawer/Drawer.styled.js.map +1 -1
- package/dist/components/ui/keyValue/KeyValue.styled.d.ts +13 -13
- package/dist/components/ui/line/Line.d.ts +3 -3
- package/dist/components/ui/message/Message.styled.d.ts +3 -3
- package/dist/components/ui/modal/Modal.d.ts +2 -2
- package/dist/components/ui/modal/Modal.d.ts.map +1 -1
- package/dist/components/ui/modal/Modal.js.map +1 -1
- package/dist/components/ui/modal/Modal.styled.d.ts +10 -10
- package/dist/components/ui/modal/ModalButtons.styled.d.ts +5 -5
- package/dist/components/ui/pop/Pop.styled.d.ts +12 -12
- package/dist/components/ui/progress/Progress.styled.d.ts +8 -8
- package/dist/components/ui/stats/Stats.styled.d.ts +11 -11
- package/dist/components/ui/tabs/Item.styled.d.ts +2 -2
- package/dist/components/ui/tabs/Selector.styled.d.ts +5 -5
- package/dist/components/ui/toaster/Toaster.d.ts +8 -15
- package/dist/components/ui/toaster/Toaster.d.ts.map +1 -1
- package/dist/components/ui/toaster/Toaster.js +31 -55
- package/dist/components/ui/toaster/Toaster.js.map +1 -1
- package/dist/components/ui/toolButton/ToolButton.styled.d.ts +3 -3
- package/dist/components/ui/tooltip/Tooltip.d.ts +30 -0
- package/dist/components/ui/tooltip/Tooltip.d.ts.map +1 -0
- package/dist/components/ui/tooltip/Tooltip.js +81 -0
- package/dist/components/ui/tooltip/Tooltip.js.map +1 -0
- package/dist/components/ui/tooltip/Tooltip.styled.d.ts +173 -0
- package/dist/components/ui/tooltip/Tooltip.styled.d.ts.map +1 -0
- package/dist/components/ui/{toaster/Notification.js → tooltip/Tooltip.styled.js} +30 -18
- package/dist/components/ui/tooltip/Tooltip.styled.js.map +1 -0
- package/dist/components/utils/Gap.d.ts +3 -3
- package/dist/components/utils/Spacer.d.ts +2 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/theme.d.ts +86 -86
- package/docs/assets/highlight.css +7 -0
- package/docs/assets/navigation.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/index.Pop.html +18 -18
- package/docs/documents/Test.html +2 -2
- package/docs/enums/index.ICON.html +2 -2
- package/docs/functions/index.Action.html +5 -5
- package/docs/functions/index.Button.html +5 -5
- package/docs/functions/index.Card.html +4 -4
- package/docs/functions/index.Checkbox.html +5 -5
- package/docs/functions/index.Choice.html +4 -4
- package/docs/functions/index.ColorPicker.html +5 -5
- package/docs/functions/index.CoveringLoader.html +5 -5
- package/docs/functions/index.DirectionPad.html +4 -4
- package/docs/functions/index.Drawer.html +4 -4
- package/docs/functions/index.EqualActions.html +4 -4
- package/docs/functions/index.FullLoader.html +5 -5
- package/docs/functions/index.Gap.html +4 -4
- package/docs/functions/index.HandleEsc.html +6 -6
- package/docs/functions/index.Header.html +5 -5
- package/docs/functions/index.HeaderIconAction.html +5 -5
- package/docs/functions/index.Icon-1.html +4 -4
- package/docs/functions/index.If.html +6 -6
- package/docs/functions/index.Input.html +1 -1
- package/docs/functions/index.KeyValue.html +4 -4
- package/docs/functions/index.Label.html +4 -4
- package/docs/functions/index.Line.html +5 -5
- package/docs/functions/index.List.html +4 -4
- package/docs/functions/index.Loader.html +5 -5
- package/docs/functions/index.Loading.html +6 -6
- package/docs/functions/index.Message.html +5 -5
- package/docs/functions/index.Modal.html +4 -4
- package/docs/functions/index.ModalButtons.html +4 -4
- package/docs/functions/index.PopLoader.html +5 -5
- package/docs/functions/index.PopOption.html +4 -4
- package/docs/functions/index.Progress.html +4 -4
- package/docs/functions/index.SearchContainer.html +4 -4
- package/docs/functions/index.Section.html +5 -5
- package/docs/functions/index.Select.html +4 -4
- package/docs/functions/index.Selector.html +4 -4
- package/docs/functions/index.Spacer.html +4 -4
- package/docs/functions/index.Stats.html +4 -4
- package/docs/functions/index.StickyHeader.html +5 -5
- package/docs/functions/index.Table.html +4 -4
- package/docs/functions/index.TextArea.html +4 -4
- package/docs/functions/index.ToasterProvider.html +29 -0
- package/docs/functions/index.Toggle.html +5 -5
- package/docs/functions/index.ToolButton.html +5 -5
- package/docs/functions/index.Tooltip.html +18 -0
- package/docs/functions/index.TooltipProvider.html +6 -0
- package/docs/functions/index.borderPxToRem.html +1 -1
- package/docs/functions/index.createTheme.html +1 -1
- package/docs/functions/index.css.html +1 -1
- package/docs/functions/index.dimensionsPxToRem.html +1 -1
- package/docs/functions/index.fontPxToRem.html +1 -1
- package/docs/functions/index.getCssText.html +1 -1
- package/docs/functions/index.globalCss.html +2 -2
- package/docs/functions/index.injectGlobalStyles.html +1 -1
- package/docs/functions/index.keyframes.html +1 -1
- package/docs/functions/index.pxToRem.html +1 -1
- package/docs/functions/index.styled.html +1 -1
- package/docs/functions/index.toast.html +12 -0
- package/docs/functions/index.useToaster.html +1 -1
- package/docs/index.html +2 -2
- package/docs/interfaces/index.IconProps.html +2 -2
- package/docs/interfaces/index.InputCustomProps.html +7 -2
- package/docs/interfaces/index.LoaderProps.html +6 -6
- package/docs/interfaces/index.StickyHeaderProps.html +4 -4
- package/docs/interfaces/index.ToasterProviderProps.html +28 -0
- package/docs/interfaces/index.TooltipProps.html +36 -0
- package/docs/interfaces/index.TooltipProviderProps.html +13 -0
- package/docs/modules/index.html +1 -1
- package/docs/modules.html +1 -1
- package/docs/types/index.ActionProps.html +1 -1
- package/docs/types/index.CardProps.html +1 -1
- package/docs/types/index.CheckboxProps.html +2 -2
- package/docs/types/index.ChoiceProps.html +1 -1
- package/docs/types/index.ColorPickerProps.html +1 -1
- package/docs/types/index.DirectionPadProps.html +1 -1
- package/docs/types/index.DrawerFrom.html +1 -0
- package/docs/types/index.DrawerProps.html +28 -1
- package/docs/types/index.EqualActionsProps.html +1 -1
- package/docs/types/index.HeaderProps.html +1 -1
- package/docs/types/index.InputProps.html +1 -1
- package/docs/types/index.KeyValueProps.html +1 -1
- package/docs/types/index.LabelProps.html +1 -1
- package/docs/types/index.OverwriteProps.html +1 -1
- package/docs/types/index.ProgressProps.html +2 -2
- package/docs/types/index.SelectProps.html +1 -1
- package/docs/types/index.SelectorProps.html +1 -1
- package/docs/types/index.Stat.html +1 -1
- package/docs/types/index.StatsProps.html +1 -1
- package/docs/types/index.TextAreaProps.html +1 -1
- package/docs/types/index.ThemeCSS.html +1 -1
- package/docs/types/index.ToggleProps.html +2 -2
- package/docs/variables/index.ActionBadgeSelector.html +1 -1
- package/docs/variables/index.ActionCircleSelector.html +1 -1
- package/docs/variables/index.CheckboxCheckmarkWrapperSelector.html +1 -1
- package/docs/variables/index.CheckboxTextLabelSelector.html +1 -1
- package/docs/variables/index.ChoiceItemSelector.html +1 -1
- package/docs/variables/index.ColorPickerColorDisplaySelector.html +1 -1
- package/docs/variables/index.DirectionPadButtonDotSelector.html +1 -1
- package/docs/variables/index.DirectionPadButtonSelector.html +1 -1
- package/docs/variables/index.DirectionPadLineSelector.html +1 -1
- package/docs/variables/index.DirectionPadMiddleSelector.html +1 -1
- package/docs/variables/index.DrawerContentSelector.html +1 -1
- package/docs/variables/index.HeaderAfterSelector.html +1 -1
- package/docs/variables/index.HeaderBeforeSelector.html +1 -1
- package/docs/variables/index.HeaderContentsSelector.html +1 -1
- package/docs/variables/index.HeaderIconActionIconSelector.html +1 -1
- package/docs/variables/index.InputContainerSelector.html +1 -0
- package/docs/variables/index.InputInputSelector.html +1 -1
- package/docs/variables/index.InputLabelSelector.html +1 -0
- package/docs/variables/index.InputPrefixSelector.html +1 -1
- package/docs/variables/index.InputSuffixSelector.html +1 -1
- package/docs/variables/index.KeyValueIconSelector.html +1 -1
- package/docs/variables/index.KeyValueItemSelector.html +1 -1
- package/docs/variables/index.KeyValueKeySelector.html +1 -1
- package/docs/variables/index.KeyValuePairSelector.html +1 -1
- package/docs/variables/index.KeyValueValueSelector.html +1 -1
- package/docs/variables/index.LabelTextSelector.html +1 -1
- package/docs/variables/index.ListItemInnerContainerClassNameSelector.html +1 -1
- package/docs/variables/index.ModalContainerSelector.html +1 -1
- package/docs/variables/index.ModalRemovePaddingSelector.html +1 -1
- package/docs/variables/index.ModalTitleSelector.html +1 -1
- package/docs/variables/index.PopListSelector.html +1 -1
- package/docs/variables/index.PopOptionButtonSelector.html +1 -1
- package/docs/variables/index.PopOptionIconSelector.html +1 -1
- package/docs/variables/index.PopOverlaySelector.html +1 -1
- package/docs/variables/index.ProgressBackgroundSelector.html +1 -1
- package/docs/variables/index.ProgressValueSelector.html +1 -1
- package/docs/variables/index.SelectorItemSelector.html +1 -1
- package/docs/variables/index.StatsItemSelector.html +1 -1
- package/docs/variables/index.StatsLabelSelector.html +1 -1
- package/docs/variables/index.StatsSeparatorSelector.html +1 -1
- package/docs/variables/index.StatsValueSelector.html +1 -1
- package/docs/variables/index.TextAreaLabelSelector.html +1 -0
- package/docs/variables/index.TextAreaTextAreaSelector.html +1 -0
- package/docs/variables/index.TextAreaWrapperSelector.html +1 -0
- package/docs/variables/index.ToggleStyledToggleSelector.html +1 -1
- package/docs/variables/index.TooltipContentSelector.html +1 -0
- package/docs/variables/index.config.html +1 -1
- package/docs/variables/index.cssReset.html +2 -2
- package/docs/variables/index.darkTheme.html +1 -1
- package/docs/variables/index.miuiScrollbars.html +1 -1
- package/docs/variables/index.theme.html +1 -1
- package/esm/components/form/Checkbox.styled.d.ts +6 -6
- package/esm/components/form/ColorPicker.styled.d.ts +5 -5
- package/esm/components/form/Label.d.ts +3 -3
- package/esm/components/form/Label.styled.d.ts +5 -5
- package/esm/components/form/Select.styled.d.ts +3 -3
- package/esm/components/form/Toggle.d.ts +3 -3
- package/esm/components/form/Toggle.styled.d.ts +5 -5
- package/esm/components/form/choice/Choice.styled.d.ts +3 -3
- package/esm/components/form/choice/ChoiceItem.styled.d.ts +2 -2
- package/esm/components/form/input/Input.css.d.ts +47 -1
- package/esm/components/form/input/Input.css.d.ts.map +1 -1
- package/esm/components/form/input/Input.css.js +47 -1
- package/esm/components/form/input/Input.css.js.map +1 -1
- package/esm/components/form/input/Input.d.ts +5 -1
- package/esm/components/form/input/Input.d.ts.map +1 -1
- package/esm/components/form/input/Input.js +27 -6
- package/esm/components/form/input/Input.js.map +1 -1
- package/esm/components/form/input/Input.styled.d.ts +183 -10
- package/esm/components/form/input/Input.styled.d.ts.map +1 -1
- package/esm/components/form/input/Input.styled.js +4 -2
- package/esm/components/form/input/Input.styled.js.map +1 -1
- package/esm/components/form/textarea/TextArea.d.ts +6 -1
- package/esm/components/form/textarea/TextArea.d.ts.map +1 -1
- package/esm/components/form/textarea/TextArea.js +31 -6
- package/esm/components/form/textarea/TextArea.js.map +1 -1
- package/esm/components/form/textarea/TextArea.styled.d.ts +177 -4
- package/esm/components/form/textarea/TextArea.styled.d.ts.map +1 -1
- package/esm/components/form/textarea/TextArea.styled.js +14 -4
- package/esm/components/form/textarea/TextArea.styled.js.map +1 -1
- package/esm/components/layout/card/Card.styled.d.ts +3 -3
- package/esm/components/layout/header/Header.styled.d.ts +9 -9
- package/esm/components/layout/header/HeaderIconAction.styled.d.ts +8 -8
- package/esm/components/layout/header/StickyHeader.d.ts +3 -3
- package/esm/components/layout/header/StickyHeader.styled.d.ts +6 -6
- package/esm/components/layout/list/Header.d.ts +7 -7
- package/esm/components/layout/list/Item.d.ts +8 -8
- package/esm/components/layout/list/Item.styled.d.ts +9 -9
- package/esm/components/layout/list/Label.d.ts +2 -2
- package/esm/components/layout/list/List.d.ts +18 -18
- package/esm/components/layout/list/Value.d.ts +2 -2
- package/esm/components/layout/section/SearchContainer.d.ts +2 -2
- package/esm/components/layout/section/Section.d.ts +5 -5
- package/esm/components/layout/section/SectionContainer.d.ts +2 -2
- package/esm/components/layout/table/Table.styled.d.ts +3 -3
- package/esm/components/native/index.d.ts +2 -2
- package/esm/components/ui/action/Action.styled.d.ts +8 -8
- package/esm/components/ui/action/EqualActions.styled.d.ts +3 -3
- package/esm/components/ui/button/Button.styled.d.ts +3 -3
- package/esm/components/ui/directionPad/Button.styled.d.ts +4 -4
- package/esm/components/ui/directionPad/Middle.styled.d.ts +2 -2
- package/esm/components/ui/directionPad/Pad.styled.d.ts +4 -4
- package/esm/components/ui/drawer/Drawer.d.ts +10 -1
- package/esm/components/ui/drawer/Drawer.d.ts.map +1 -1
- package/esm/components/ui/drawer/Drawer.js +139 -15
- package/esm/components/ui/drawer/Drawer.js.map +1 -1
- package/esm/components/ui/drawer/Drawer.styled.d.ts +90 -5
- package/esm/components/ui/drawer/Drawer.styled.d.ts.map +1 -1
- package/esm/components/ui/drawer/Drawer.styled.js +12 -1
- package/esm/components/ui/drawer/Drawer.styled.js.map +1 -1
- package/esm/components/ui/keyValue/KeyValue.styled.d.ts +13 -13
- package/esm/components/ui/line/Line.d.ts +3 -3
- package/esm/components/ui/message/Message.styled.d.ts +3 -3
- package/esm/components/ui/modal/Modal.d.ts +2 -2
- package/esm/components/ui/modal/Modal.d.ts.map +1 -1
- package/esm/components/ui/modal/Modal.js.map +1 -1
- package/esm/components/ui/modal/Modal.styled.d.ts +10 -10
- package/esm/components/ui/modal/ModalButtons.styled.d.ts +5 -5
- package/esm/components/ui/pop/Pop.styled.d.ts +12 -12
- package/esm/components/ui/progress/Progress.styled.d.ts +8 -8
- package/esm/components/ui/stats/Stats.styled.d.ts +11 -11
- package/esm/components/ui/tabs/Item.styled.d.ts +2 -2
- package/esm/components/ui/tabs/Selector.styled.d.ts +5 -5
- package/esm/components/ui/toaster/Toaster.d.ts +8 -15
- package/esm/components/ui/toaster/Toaster.d.ts.map +1 -1
- package/esm/components/ui/toaster/Toaster.js +19 -74
- package/esm/components/ui/toaster/Toaster.js.map +1 -1
- package/esm/components/ui/toolButton/ToolButton.styled.d.ts +3 -3
- package/esm/components/ui/tooltip/Tooltip.d.ts +30 -0
- package/esm/components/ui/tooltip/Tooltip.d.ts.map +1 -0
- package/esm/components/ui/tooltip/Tooltip.js +43 -0
- package/esm/components/ui/tooltip/Tooltip.js.map +1 -0
- package/esm/components/ui/tooltip/Tooltip.styled.d.ts +173 -0
- package/esm/components/ui/tooltip/Tooltip.styled.d.ts.map +1 -0
- package/esm/components/ui/tooltip/Tooltip.styled.js +28 -0
- package/esm/components/ui/tooltip/Tooltip.styled.js.map +1 -0
- package/esm/components/utils/Gap.d.ts +3 -3
- package/esm/components/utils/Spacer.d.ts +2 -2
- package/esm/index.d.ts +1 -0
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +1 -0
- package/esm/index.js.map +1 -1
- package/esm/theme.d.ts +86 -86
- package/package.json +22 -20
- package/patches/{@stitches+react+1.2.8.patch → @stitches__react@1.2.8.patch} +6 -6
- package/pnpm-workspace.yaml +3 -0
- package/src/bugfixes/ToastsFromModal.stories.tsx +59 -0
- package/src/components/form/input/Input.css.ts +52 -0
- package/src/components/form/input/Input.stories.tsx +32 -1
- package/src/components/form/input/Input.styled.ts +7 -1
- package/src/components/form/input/Input.tsx +67 -13
- package/src/components/form/textarea/TextArea.stories.tsx +25 -1
- package/src/components/form/textarea/TextArea.styled.ts +17 -3
- package/src/components/form/textarea/TextArea.tsx +76 -12
- package/src/components/ui/drawer/Drawer.stories.tsx +143 -59
- package/src/components/ui/drawer/Drawer.styled.ts +13 -0
- package/src/components/ui/drawer/Drawer.tsx +214 -20
- package/src/components/ui/modal/Modal.tsx +0 -1
- package/src/components/ui/modal/ModalButtons.stories.tsx +3 -3
- package/src/components/ui/toaster/Toaster.stories.tsx +160 -30
- package/src/components/ui/toaster/Toaster.tsx +28 -94
- package/src/components/ui/tooltip/Tooltip.stories.tsx +285 -0
- package/src/components/ui/tooltip/Tooltip.styled.ts +36 -0
- package/src/components/ui/tooltip/Tooltip.tsx +195 -0
- package/src/index.ts +1 -0
- package/storybook-static/assets/Action.stories-DBtNlWQo.js +1 -0
- package/storybook-static/assets/Button.stories-DFO8nsTN.js +1 -0
- package/storybook-static/assets/Card.stories-BoCt66U4.js +1 -0
- package/storybook-static/assets/Checkbox.stories-C58YeH4u.js +1 -0
- package/storybook-static/assets/Choice.stories-Cf7UbPxn.js +1 -0
- package/storybook-static/assets/Color-23OOGO2C-CELuW8GR.js +1 -0
- package/storybook-static/assets/ColorPicker.stories-Dc7-AuPQ.js +1 -0
- package/storybook-static/assets/CoveringLoader.stories-DrUQAhI6.js +1 -0
- package/storybook-static/assets/DocsRenderer-LL677BLK-BOcEjZ28.js +755 -0
- package/storybook-static/assets/Drawer.stories-D3_-TuT0.js +1 -0
- package/storybook-static/assets/EqualActions.stories-CwjZlkUA.js +1 -0
- package/storybook-static/assets/FullLoader.stories-DFAaVMfI.js +1 -0
- package/storybook-static/assets/Header.stories-BN7BuQx2.js +1 -0
- package/storybook-static/assets/Header.stories-CzPBNEkp.js +1 -0
- package/storybook-static/assets/HeaderIconAction.stories-Dm3Q-BVW.js +1 -0
- package/storybook-static/assets/Icon.stories-D1YeVBlB.js +1 -0
- package/storybook-static/assets/Input.stories-Cbj2X3kT.js +197 -0
- package/storybook-static/assets/Item.stories-CmjyxdgQ.js +1 -0
- package/storybook-static/assets/KeyValue.stories-CogaZP09.js +1 -0
- package/storybook-static/assets/Label.stories-B6pCT45X.js +1 -0
- package/storybook-static/assets/Label.stories-BR3gNHqM.js +1 -0
- package/storybook-static/assets/Line.stories-BJLer7gg.js +1 -0
- package/storybook-static/assets/List.stories-MSQY1Rdo.js +1 -0
- package/storybook-static/assets/Loader.stories-CbN84qNp.js +1 -0
- package/storybook-static/assets/Loading.stories-BOANGXsc.js +1 -0
- package/storybook-static/assets/Message.stories-_51K9ZDn.js +1 -0
- package/storybook-static/assets/Modal.stories-CixfvMuM.js +1 -0
- package/storybook-static/assets/ModalButtons.stories-DHHsnoGB.js +1 -0
- package/storybook-static/assets/Pad.stories-hrKerezi.js +1 -0
- package/storybook-static/assets/Pop.stories-BTlQGve1.js +1 -0
- package/storybook-static/assets/PopLoader.stories-CyskY4fX.js +1 -0
- package/storybook-static/assets/Progress.stories-BLMPF6Ju.js +1 -0
- package/storybook-static/assets/Section.stories-M-QRH2_i.js +1 -0
- package/storybook-static/assets/Select.stories-BJjJqLTa.js +1 -0
- package/storybook-static/assets/Selector.stories-BxHyFnYo.js +1 -0
- package/storybook-static/assets/Stats.stories-VB0pi5k5.js +1 -0
- package/storybook-static/assets/StickyHeader.stories-BnxgnjJW.js +3 -0
- package/storybook-static/assets/Table.stories-6F-WrDBs.js +1 -0
- package/storybook-static/assets/TextArea.stories-DqzHYgIv.js +1 -0
- package/storybook-static/assets/Toaster.stories-C0ktk0DW.js +1 -0
- package/storybook-static/assets/Toggle.stories-tBlD8SJi.js +1 -0
- package/storybook-static/assets/ToolButton.stories-0rGBGqAt.js +1 -0
- package/storybook-static/assets/Value.stories-CFT20m8r.js +1 -0
- package/storybook-static/assets/WithTooltip-65CFNBJE-CEiAC9o_.js +9 -0
- package/storybook-static/assets/formatter-EIJCOSYU-3FZOx6vn.js +1 -0
- package/storybook-static/assets/iframe-DvhcA1iZ.js +1244 -0
- package/storybook-static/assets/preload-helper-PPVm8Dsz.js +1 -0
- package/storybook-static/assets/react-18-oqx706Mo.js +1 -0
- package/storybook-static/assets/syntaxhighlighter-W7WJGI2T-D7f2o1Z3.js +6 -0
- package/storybook-static/favicon-wrapper.svg +46 -0
- package/storybook-static/favicon.svg +1 -0
- package/storybook-static/iframe.html +709 -0
- package/storybook-static/index.html +146 -0
- package/storybook-static/index.json +1 -0
- package/storybook-static/nunito-sans-bold-italic.woff2 +0 -0
- package/storybook-static/nunito-sans-bold.woff2 +0 -0
- package/storybook-static/nunito-sans-italic.woff2 +0 -0
- package/storybook-static/nunito-sans-regular.woff2 +0 -0
- package/storybook-static/project.json +1 -0
- package/storybook-static/sb-addons/docs-1/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/onboarding-2/manager-bundle.js +97 -0
- package/storybook-static/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +630 -0
- package/storybook-static/sb-common-assets/favicon-wrapper.svg +46 -0
- package/storybook-static/sb-common-assets/favicon.svg +1 -0
- package/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
- package/storybook-static/sb-manager/globals-runtime.js +76749 -0
- package/storybook-static/sb-manager/globals.js +24 -0
- package/storybook-static/sb-manager/manager-stores.js +23 -0
- package/storybook-static/sb-manager/runtime.js +27463 -0
- package/storybook-static/vite-inject-mocker-entry.js +2 -0
- package/dist/components/ui/toaster/Notification.d.ts +0 -9
- package/dist/components/ui/toaster/Notification.d.ts.map +0 -1
- package/dist/components/ui/toaster/Notification.js.map +0 -1
- package/dist/components/ui/toaster/Toaster.styled.d.ts +0 -89
- package/dist/components/ui/toaster/Toaster.styled.d.ts.map +0 -1
- package/dist/components/ui/toaster/Toaster.styled.js +0 -39
- package/dist/components/ui/toaster/Toaster.styled.js.map +0 -1
- package/dist/components/ui/toaster/types.d.ts +0 -7
- package/dist/components/ui/toaster/types.d.ts.map +0 -1
- package/dist/components/ui/toaster/types.js +0 -3
- package/dist/components/ui/toaster/types.js.map +0 -1
- package/docs/classes/index.ToasterProvider.html +0 -120
- package/esm/components/form/Checkbox.stories.d.ts +0 -9
- package/esm/components/form/Checkbox.stories.d.ts.map +0 -1
- package/esm/components/form/Checkbox.stories.js +0 -80
- package/esm/components/form/Checkbox.stories.js.map +0 -1
- package/esm/components/form/ColorPicker.stories.d.ts +0 -10
- package/esm/components/form/ColorPicker.stories.d.ts.map +0 -1
- package/esm/components/form/ColorPicker.stories.js +0 -75
- package/esm/components/form/ColorPicker.stories.js.map +0 -1
- package/esm/components/form/Label.stories.d.ts +0 -11
- package/esm/components/form/Label.stories.d.ts.map +0 -1
- package/esm/components/form/Label.stories.js +0 -43
- package/esm/components/form/Label.stories.js.map +0 -1
- package/esm/components/form/Select.stories.d.ts +0 -8
- package/esm/components/form/Select.stories.d.ts.map +0 -1
- package/esm/components/form/Select.stories.js +0 -24
- package/esm/components/form/Select.stories.js.map +0 -1
- package/esm/components/form/Toggle.stories.d.ts +0 -14
- package/esm/components/form/Toggle.stories.d.ts.map +0 -1
- package/esm/components/form/Toggle.stories.js +0 -76
- package/esm/components/form/Toggle.stories.js.map +0 -1
- package/esm/components/form/choice/Choice.stories.d.ts +0 -10
- package/esm/components/form/choice/Choice.stories.d.ts.map +0 -1
- package/esm/components/form/choice/Choice.stories.js +0 -80
- package/esm/components/form/choice/Choice.stories.js.map +0 -1
- package/esm/components/form/input/Input.stories.d.ts +0 -10
- package/esm/components/form/input/Input.stories.d.ts.map +0 -1
- package/esm/components/form/input/Input.stories.js +0 -54
- package/esm/components/form/input/Input.stories.js.map +0 -1
- package/esm/components/form/textarea/TextArea.stories.d.ts +0 -8
- package/esm/components/form/textarea/TextArea.stories.d.ts.map +0 -1
- package/esm/components/form/textarea/TextArea.stories.js +0 -19
- package/esm/components/form/textarea/TextArea.stories.js.map +0 -1
- package/esm/components/icons/Icon.stories.d.ts +0 -10
- package/esm/components/icons/Icon.stories.d.ts.map +0 -1
- package/esm/components/icons/Icon.stories.js +0 -49
- package/esm/components/icons/Icon.stories.js.map +0 -1
- package/esm/components/layout/card/Card.stories.d.ts +0 -11
- package/esm/components/layout/card/Card.stories.d.ts.map +0 -1
- package/esm/components/layout/card/Card.stories.js +0 -39
- package/esm/components/layout/card/Card.stories.js.map +0 -1
- package/esm/components/layout/header/Header.stories.d.ts +0 -11
- package/esm/components/layout/header/Header.stories.d.ts.map +0 -1
- package/esm/components/layout/header/Header.stories.js +0 -56
- package/esm/components/layout/header/Header.stories.js.map +0 -1
- package/esm/components/layout/header/HeaderIconAction.stories.d.ts +0 -10
- package/esm/components/layout/header/HeaderIconAction.stories.d.ts.map +0 -1
- package/esm/components/layout/header/HeaderIconAction.stories.js +0 -43
- package/esm/components/layout/header/HeaderIconAction.stories.js.map +0 -1
- package/esm/components/layout/header/StickyHeader.stories.d.ts +0 -9
- package/esm/components/layout/header/StickyHeader.stories.d.ts.map +0 -1
- package/esm/components/layout/header/StickyHeader.stories.js +0 -60
- package/esm/components/layout/header/StickyHeader.stories.js.map +0 -1
- package/esm/components/layout/list/Header.stories.d.ts +0 -8
- package/esm/components/layout/list/Header.stories.d.ts.map +0 -1
- package/esm/components/layout/list/Header.stories.js +0 -27
- package/esm/components/layout/list/Header.stories.js.map +0 -1
- package/esm/components/layout/list/Item.stories.d.ts +0 -11
- package/esm/components/layout/list/Item.stories.d.ts.map +0 -1
- package/esm/components/layout/list/Item.stories.js +0 -98
- package/esm/components/layout/list/Item.stories.js.map +0 -1
- package/esm/components/layout/list/Label.stories.d.ts +0 -8
- package/esm/components/layout/list/Label.stories.d.ts.map +0 -1
- package/esm/components/layout/list/Label.stories.js +0 -29
- package/esm/components/layout/list/Label.stories.js.map +0 -1
- package/esm/components/layout/list/List.stories.d.ts +0 -9
- package/esm/components/layout/list/List.stories.d.ts.map +0 -1
- package/esm/components/layout/list/List.stories.js +0 -46
- package/esm/components/layout/list/List.stories.js.map +0 -1
- package/esm/components/layout/list/Value.stories.d.ts +0 -8
- package/esm/components/layout/list/Value.stories.d.ts.map +0 -1
- package/esm/components/layout/list/Value.stories.js +0 -23
- package/esm/components/layout/list/Value.stories.js.map +0 -1
- package/esm/components/layout/section/Section.stories.d.ts +0 -8
- package/esm/components/layout/section/Section.stories.d.ts.map +0 -1
- package/esm/components/layout/section/Section.stories.js +0 -31
- package/esm/components/layout/section/Section.stories.js.map +0 -1
- package/esm/components/layout/table/Table.stories.d.ts +0 -8
- package/esm/components/layout/table/Table.stories.d.ts.map +0 -1
- package/esm/components/layout/table/Table.stories.js +0 -49
- package/esm/components/layout/table/Table.stories.js.map +0 -1
- package/esm/components/ui/action/Action.stories.d.ts +0 -11
- package/esm/components/ui/action/Action.stories.d.ts.map +0 -1
- package/esm/components/ui/action/Action.stories.js +0 -58
- package/esm/components/ui/action/Action.stories.js.map +0 -1
- package/esm/components/ui/action/EqualActions.stories.d.ts +0 -10
- package/esm/components/ui/action/EqualActions.stories.d.ts.map +0 -1
- package/esm/components/ui/action/EqualActions.stories.js +0 -38
- package/esm/components/ui/action/EqualActions.stories.js.map +0 -1
- package/esm/components/ui/button/Button.stories.d.ts +0 -9
- package/esm/components/ui/button/Button.stories.d.ts.map +0 -1
- package/esm/components/ui/button/Button.stories.js +0 -35
- package/esm/components/ui/button/Button.stories.js.map +0 -1
- package/esm/components/ui/directionPad/Pad.stories.d.ts +0 -10
- package/esm/components/ui/directionPad/Pad.stories.d.ts.map +0 -1
- package/esm/components/ui/directionPad/Pad.stories.js +0 -79
- package/esm/components/ui/directionPad/Pad.stories.js.map +0 -1
- package/esm/components/ui/drawer/Drawer.stories.d.ts +0 -11
- package/esm/components/ui/drawer/Drawer.stories.d.ts.map +0 -1
- package/esm/components/ui/drawer/Drawer.stories.js +0 -102
- package/esm/components/ui/drawer/Drawer.stories.js.map +0 -1
- package/esm/components/ui/keyValue/KeyValue.stories.d.ts +0 -11
- package/esm/components/ui/keyValue/KeyValue.stories.d.ts.map +0 -1
- package/esm/components/ui/keyValue/KeyValue.stories.js +0 -98
- package/esm/components/ui/keyValue/KeyValue.stories.js.map +0 -1
- package/esm/components/ui/line/Line.stories.d.ts +0 -8
- package/esm/components/ui/line/Line.stories.d.ts.map +0 -1
- package/esm/components/ui/line/Line.stories.js +0 -27
- package/esm/components/ui/line/Line.stories.js.map +0 -1
- package/esm/components/ui/loader/CoveringLoader.stories.d.ts +0 -8
- package/esm/components/ui/loader/CoveringLoader.stories.d.ts.map +0 -1
- package/esm/components/ui/loader/CoveringLoader.stories.js +0 -50
- package/esm/components/ui/loader/CoveringLoader.stories.js.map +0 -1
- package/esm/components/ui/loader/FullLoader.stories.d.ts +0 -8
- package/esm/components/ui/loader/FullLoader.stories.d.ts.map +0 -1
- package/esm/components/ui/loader/FullLoader.stories.js +0 -19
- package/esm/components/ui/loader/FullLoader.stories.js.map +0 -1
- package/esm/components/ui/loader/Loader.stories.d.ts +0 -8
- package/esm/components/ui/loader/Loader.stories.d.ts.map +0 -1
- package/esm/components/ui/loader/Loader.stories.js +0 -23
- package/esm/components/ui/loader/Loader.stories.js.map +0 -1
- package/esm/components/ui/loader/Loading.stories.d.ts +0 -8
- package/esm/components/ui/loader/Loading.stories.d.ts.map +0 -1
- package/esm/components/ui/loader/Loading.stories.js +0 -32
- package/esm/components/ui/loader/Loading.stories.js.map +0 -1
- package/esm/components/ui/loader/PopLoader.stories.d.ts +0 -8
- package/esm/components/ui/loader/PopLoader.stories.d.ts.map +0 -1
- package/esm/components/ui/loader/PopLoader.stories.js +0 -24
- package/esm/components/ui/loader/PopLoader.stories.js.map +0 -1
- package/esm/components/ui/message/Message.stories.d.ts +0 -9
- package/esm/components/ui/message/Message.stories.d.ts.map +0 -1
- package/esm/components/ui/message/Message.stories.js +0 -43
- package/esm/components/ui/message/Message.stories.js.map +0 -1
- package/esm/components/ui/modal/Modal.stories.d.ts +0 -10
- package/esm/components/ui/modal/Modal.stories.d.ts.map +0 -1
- package/esm/components/ui/modal/Modal.stories.js +0 -84
- package/esm/components/ui/modal/Modal.stories.js.map +0 -1
- package/esm/components/ui/modal/ModalButtons.stories.d.ts +0 -8
- package/esm/components/ui/modal/ModalButtons.stories.d.ts.map +0 -1
- package/esm/components/ui/modal/ModalButtons.stories.js +0 -19
- package/esm/components/ui/modal/ModalButtons.stories.js.map +0 -1
- package/esm/components/ui/pop/Pop.stories.d.ts +0 -8
- package/esm/components/ui/pop/Pop.stories.d.ts.map +0 -1
- package/esm/components/ui/pop/Pop.stories.js +0 -65
- package/esm/components/ui/pop/Pop.stories.js.map +0 -1
- package/esm/components/ui/progress/Progress.stories.d.ts +0 -9
- package/esm/components/ui/progress/Progress.stories.d.ts.map +0 -1
- package/esm/components/ui/progress/Progress.stories.js +0 -29
- package/esm/components/ui/progress/Progress.stories.js.map +0 -1
- package/esm/components/ui/stats/Stats.stories.d.ts +0 -11
- package/esm/components/ui/stats/Stats.stories.d.ts.map +0 -1
- package/esm/components/ui/stats/Stats.stories.js +0 -104
- package/esm/components/ui/stats/Stats.stories.js.map +0 -1
- package/esm/components/ui/tabs/Selector.stories.d.ts +0 -12
- package/esm/components/ui/tabs/Selector.stories.d.ts.map +0 -1
- package/esm/components/ui/tabs/Selector.stories.js +0 -110
- package/esm/components/ui/tabs/Selector.stories.js.map +0 -1
- package/esm/components/ui/toaster/Notification.d.ts +0 -9
- package/esm/components/ui/toaster/Notification.d.ts.map +0 -1
- package/esm/components/ui/toaster/Notification.js +0 -17
- package/esm/components/ui/toaster/Notification.js.map +0 -1
- package/esm/components/ui/toaster/Toaster.stories.d.ts +0 -7
- package/esm/components/ui/toaster/Toaster.stories.d.ts.map +0 -1
- package/esm/components/ui/toaster/Toaster.stories.js +0 -39
- package/esm/components/ui/toaster/Toaster.stories.js.map +0 -1
- package/esm/components/ui/toaster/Toaster.styled.d.ts +0 -89
- package/esm/components/ui/toaster/Toaster.styled.d.ts.map +0 -1
- package/esm/components/ui/toaster/Toaster.styled.js +0 -36
- package/esm/components/ui/toaster/Toaster.styled.js.map +0 -1
- package/esm/components/ui/toaster/types.d.ts +0 -7
- package/esm/components/ui/toaster/types.d.ts.map +0 -1
- package/esm/components/ui/toaster/types.js +0 -2
- package/esm/components/ui/toaster/types.js.map +0 -1
- package/esm/components/ui/toolButton/ToolButton.stories.d.ts +0 -8
- package/esm/components/ui/toolButton/ToolButton.stories.d.ts.map +0 -1
- package/esm/components/ui/toolButton/ToolButton.stories.js +0 -29
- package/esm/components/ui/toolButton/ToolButton.stories.js.map +0 -1
- package/src/components/ui/toaster/Notification.tsx +0 -39
- package/src/components/ui/toaster/Toaster.styled.ts +0 -42
- package/src/components/ui/toaster/types.ts +0 -9
|
@@ -0,0 +1,755 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./syntaxhighlighter-W7WJGI2T-D7f2o1Z3.js","./iframe-DvhcA1iZ.js","./preload-helper-PPVm8Dsz.js","./react-18-oqx706Mo.js","./formatter-EIJCOSYU-3FZOx6vn.js","./WithTooltip-65CFNBJE-CEiAC9o_.js","./Color-23OOGO2C-CELuW8GR.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{_ as cr}from"./preload-helper-PPVm8Dsz.js";import{ao as kp,al as oC,aD as aC,aJ as iC,ah as lC,af as sC,aw as uC,aH as cC,ax as ql,as as In,an as Np,ai as dC,ag as fC,ab as pC,ak as hC,aj as gC,ad as mC,aq as yC,ap as bC,ar as EC,ae as vC,aM as SC,aL as xC,aO as $C,aN as wC,ac as CC,aG as _C,at as TC,aa as Mp,a5 as qe,a7 as Sa,aC as p,a9 as rt,aE as ob,R as h,aB as Ji,a6 as ze,am as OC,aA as co,aK as Yl,av as bi,au as AC,az as RC,x as ab,w as DC,S as Bp,Q as Xl}from"./iframe-DvhcA1iZ.js";import{renderElement as PC,unmountElement as FC}from"./react-18-oqx706Mo.js";function IC(){}function LC(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function kC(e,t,r){return Co(e,t,void 0,void 0,void 0,void 0,r)}function Co(e,t,r,n,o,a,i){let l=i(e,t,r,n,o,a);if(l!==void 0)return l;if(typeof e==typeof t)switch(typeof e){case"bigint":case"string":case"boolean":case"symbol":case"undefined":return e===t;case"number":return e===t||Object.is(e,t);case"function":return e===t;case"object":return Do(e,t,a,i)}return Do(e,t,a,i)}function Do(e,t,r,n){if(Object.is(e,t))return!0;let o=kp(e),a=kp(t);if(o===Mp&&(o=ql),a===Mp&&(a=ql),o!==a)return!1;switch(o){case cC:return e.toString()===t.toString();case uC:{let s=e.valueOf(),u=t.valueOf();return LC(s,u)}case sC:case lC:case iC:return Object.is(e.valueOf(),t.valueOf());case aC:return e.source===t.source&&e.flags===t.flags;case oC:return e===t}r=r??new Map;let i=r.get(e),l=r.get(t);if(i!=null&&l!=null)return i===t;r.set(e,t),r.set(t,e);try{switch(o){case TC:{if(e.size!==t.size)return!1;for(let[s,u]of e.entries())if(!t.has(s)||!Co(u,t.get(s),s,e,t,r,n))return!1;return!0}case _C:{if(e.size!==t.size)return!1;let s=Array.from(e.values()),u=Array.from(t.values());for(let c=0;c<s.length;c++){let d=s[c],f=u.findIndex(g=>Co(d,g,void 0,e,t,r,n));if(f===-1)return!1;u.splice(f,1)}return!0}case CC:case wC:case $C:case xC:case SC:case vC:case EC:case bC:case yC:case mC:case gC:case hC:{if(typeof Buffer<"u"&&Buffer.isBuffer(e)!==Buffer.isBuffer(t)||e.length!==t.length)return!1;for(let s=0;s<e.length;s++)if(!Co(e[s],t[s],s,e,t,r,n))return!1;return!0}case pC:return e.byteLength!==t.byteLength?!1:Do(new Uint8Array(e),new Uint8Array(t),r,n);case fC:return e.byteLength!==t.byteLength||e.byteOffset!==t.byteOffset?!1:Do(new Uint8Array(e),new Uint8Array(t),r,n);case dC:return e.name===t.name&&e.message===t.message;case ql:{if(!(Do(e.constructor,t.constructor,r,n)||In(e)&&In(t)))return!1;let s=[...Object.keys(e),...Np(e)],u=[...Object.keys(t),...Np(t)];if(s.length!==u.length)return!1;for(let c=0;c<s.length;c++){let d=s[c],f=e[d];if(!Object.hasOwn(t,d))return!1;let g=t[d];if(!Co(f,g,d,e,t,r,n))return!1}return!0}default:return!1}}finally{r.delete(e),r.delete(t)}}function Kt(e,t){return kC(e,t,IC)}var Lt=(e,t)=>{let r=e.replace(/\s+/g,"-");return t?`control-${t}-${r}`:`control-${r}`},Zi=(e,t)=>{let r=e.replace(/\s+/g,"-");return t?`set-${t}-${r}`:`set-${r}`};function He(){return He=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},He.apply(null,arguments)}function NC(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function No(e,t){return No=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},No(e,t)}function MC(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,No(e,t)}function hc(e){return hc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},hc(e)}function BC(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function ib(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ib=function(){return!!e})()}function jC(e,t,r){if(ib())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&No(o,r.prototype),o}function gc(e){var t=typeof Map=="function"?new Map:void 0;return gc=function(r){if(r===null||!BC(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,n)}function n(){return jC(r,arguments,hc(this).constructor)}return n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),No(n,r)},gc(e)}var Gt=(function(e){MC(t,e);function t(r){var n;return n=e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+r+" for more information.")||this,NC(n)}return t})(gc(Error));function Jl(e){return Math.round(e*255)}function HC(e,t,r){return Jl(e)+","+Jl(t)+","+Jl(r)}function Ei(e,t,r,n){if(n===void 0&&(n=HC),t===0)return n(r,r,r);var o=(e%360+360)%360/60,a=(1-Math.abs(2*r-1))*t,i=a*(1-Math.abs(o%2-1)),l=0,s=0,u=0;o>=0&&o<1?(l=a,s=i):o>=1&&o<2?(l=i,s=a):o>=2&&o<3?(s=a,u=i):o>=3&&o<4?(s=i,u=a):o>=4&&o<5?(l=i,u=a):o>=5&&o<6&&(l=a,u=i);var c=r-a/2,d=l+c,f=s+c,g=u+c;return n(d,f,g)}var jp={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function UC(e){if(typeof e!="string")return e;var t=e.toLowerCase();return jp[t]?"#"+jp[t]:e}var zC=/^#[a-fA-F0-9]{6}$/,KC=/^#[a-fA-F0-9]{8}$/,GC=/^#[a-fA-F0-9]{3}$/,WC=/^#[a-fA-F0-9]{4}$/,Zl=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,VC=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,qC=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,YC=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function Ln(e){if(typeof e!="string")throw new Gt(3);var t=UC(e);if(t.match(zC))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(KC)){var r=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:r}}if(t.match(GC))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(WC)){var n=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:n}}var o=Zl.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var a=VC.exec(t.substring(0,50));if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10),alpha:parseFloat(""+a[4])>1?parseFloat(""+a[4])/100:parseFloat(""+a[4])};var i=qC.exec(t);if(i){var l=parseInt(""+i[1],10),s=parseInt(""+i[2],10)/100,u=parseInt(""+i[3],10)/100,c="rgb("+Ei(l,s,u)+")",d=Zl.exec(c);if(!d)throw new Gt(4,t,c);return{red:parseInt(""+d[1],10),green:parseInt(""+d[2],10),blue:parseInt(""+d[3],10)}}var f=YC.exec(t.substring(0,50));if(f){var g=parseInt(""+f[1],10),m=parseInt(""+f[2],10)/100,y=parseInt(""+f[3],10)/100,E="rgb("+Ei(g,m,y)+")",b=Zl.exec(E);if(!b)throw new Gt(4,t,E);return{red:parseInt(""+b[1],10),green:parseInt(""+b[2],10),blue:parseInt(""+b[3],10),alpha:parseFloat(""+f[4])>1?parseFloat(""+f[4])/100:parseFloat(""+f[4])}}throw new Gt(5)}function XC(e){var t=e.red/255,r=e.green/255,n=e.blue/255,o=Math.max(t,r,n),a=Math.min(t,r,n),i=(o+a)/2;if(o===a)return e.alpha!==void 0?{hue:0,saturation:0,lightness:i,alpha:e.alpha}:{hue:0,saturation:0,lightness:i};var l,s=o-a,u=i>.5?s/(2-o-a):s/(o+a);switch(o){case t:l=(r-n)/s+(r<n?6:0);break;case r:l=(n-t)/s+2;break;default:l=(t-r)/s+4;break}return l*=60,e.alpha!==void 0?{hue:l,saturation:u,lightness:i,alpha:e.alpha}:{hue:l,saturation:u,lightness:i}}function Ar(e){return XC(Ln(e))}var JC=function(e){return e.length===7&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e},mc=JC;function Ur(e){var t=e.toString(16);return t.length===1?"0"+t:t}function Ql(e){return Ur(Math.round(e*255))}function ZC(e,t,r){return mc("#"+Ql(e)+Ql(t)+Ql(r))}function lb(e,t,r){return Ei(e,t,r,ZC)}function QC(e,t,r){if(typeof e=="object"&&t===void 0&&r===void 0)return lb(e.hue,e.saturation,e.lightness);throw new Gt(1)}function e_(e,t,r,n){if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?lb(e.hue,e.saturation,e.lightness):"rgba("+Ei(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new Gt(2)}function yc(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return mc("#"+Ur(e)+Ur(t)+Ur(r));if(typeof e=="object"&&t===void 0&&r===void 0)return mc("#"+Ur(e.red)+Ur(e.green)+Ur(e.blue));throw new Gt(6)}function tn(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var o=Ln(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}else{if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?yc(e,t,r):"rgba("+e+","+t+","+r+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?yc(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new Gt(7)}var t_=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},r_=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},n_=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},o_=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"};function Rr(e){if(typeof e!="object")throw new Gt(8);if(r_(e))return tn(e);if(t_(e))return yc(e);if(o_(e))return e_(e);if(n_(e))return QC(e);throw new Gt(8)}function sb(e,t,r){return function(){var n=r.concat(Array.prototype.slice.call(arguments));return n.length>=t?e.apply(this,n):sb(e,t,n)}}function pt(e){return sb(e,e.length,[])}function a_(e,t){if(t==="transparent")return t;var r=Ar(t);return Rr(He({},r,{hue:r.hue+parseFloat(e)}))}pt(a_);function Zn(e,t,r){return Math.max(e,Math.min(t,r))}function i_(e,t){if(t==="transparent")return t;var r=Ar(t);return Rr(He({},r,{lightness:Zn(0,1,r.lightness-parseFloat(e))}))}var l_=pt(i_),We=l_;function s_(e,t){if(t==="transparent")return t;var r=Ar(t);return Rr(He({},r,{saturation:Zn(0,1,r.saturation-parseFloat(e))}))}pt(s_);function u_(e,t){if(t==="transparent")return t;var r=Ar(t);return Rr(He({},r,{lightness:Zn(0,1,r.lightness+parseFloat(e))}))}var c_=pt(u_),Ja=c_;function d_(e,t,r){if(t==="transparent")return r;if(r==="transparent")return t;if(e===0)return r;var n=Ln(t),o=He({},n,{alpha:typeof n.alpha=="number"?n.alpha:1}),a=Ln(r),i=He({},a,{alpha:typeof a.alpha=="number"?a.alpha:1}),l=o.alpha-i.alpha,s=parseFloat(e)*2-1,u=s*l===-1?s:s+l,c=1+s*l,d=(u/c+1)/2,f=1-d,g={red:Math.floor(o.red*d+i.red*f),green:Math.floor(o.green*d+i.green*f),blue:Math.floor(o.blue*d+i.blue*f),alpha:o.alpha*parseFloat(e)+i.alpha*(1-parseFloat(e))};return tn(g)}var f_=pt(d_),ub=f_;function p_(e,t){if(t==="transparent")return t;var r=Ln(t),n=typeof r.alpha=="number"?r.alpha:1,o=He({},r,{alpha:Zn(0,1,(n*100+parseFloat(e)*100)/100)});return tn(o)}var h_=pt(p_),g_=h_;function m_(e,t){if(t==="transparent")return t;var r=Ar(t);return Rr(He({},r,{saturation:Zn(0,1,r.saturation+parseFloat(e))}))}pt(m_);function y_(e,t){return t==="transparent"?t:Rr(He({},Ar(t),{hue:parseFloat(e)}))}pt(y_);function b_(e,t){return t==="transparent"?t:Rr(He({},Ar(t),{lightness:parseFloat(e)}))}pt(b_);function E_(e,t){return t==="transparent"?t:Rr(He({},Ar(t),{saturation:parseFloat(e)}))}pt(E_);function v_(e,t){return t==="transparent"?t:ub(parseFloat(e),"rgb(0, 0, 0)",t)}pt(v_);function S_(e,t){return t==="transparent"?t:ub(parseFloat(e),"rgb(255, 255, 255)",t)}pt(S_);function x_(e,t){if(t==="transparent")return t;var r=Ln(t),n=typeof r.alpha=="number"?r.alpha:1,o=He({},r,{alpha:Zn(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return tn(o)}var $_=pt(x_),dr=$_,Y={primary:"#FF4785",secondary:"#006DEB",tertiary:"#FAFBFC",ancillary:"#22a699",orange:"#FC521F",gold:"#FFAE00",green:"#66BF3C",seafoam:"#37D5D3",purple:"#6F2CAC",ultraviolet:"#2A0481",lightest:"#FFFFFF",lighter:"#F6F9FC",light:"#EEF2F6",mediumlight:"#ECF2F9",medium:"#D9E5F2",mediumdark:"#737F8C",dark:"#5C6570",darker:"#454C54",darkest:"#2E3338",border:"hsl(212 50% 30% / 0.15)",positive:"#66BF3C",warning:"#E69D00",negative:"#FF4400",critical:"#FFFFFF",defaultText:"#2E3338",inverseText:"#FFFFFF",positiveText:"#427C27",warningText:"#955B1E",negativeText:"#C23400"},lr={app:"#F6F9FC",bar:Y.lightest,content:Y.lightest,preview:Y.lightest,gridCellSize:10,positive:"#F1FFEB",warning:"#FFF9EB",negative:"#FFF0EB",critical:"#D13800"},Ft={fonts:{base:['"Nunito Sans"',"-apple-system",'".SFNSText-Regular"','"San Francisco"',"BlinkMacSystemFont",'"Segoe UI"','"Helvetica Neue"',"Helvetica","Arial","sans-serif"].join(", "),mono:["ui-monospace","Menlo","Monaco",'"Roboto Mono"','"Oxygen Mono"','"Ubuntu Monospace"','"Source Code Pro"','"Droid Sans Mono"','"Courier New"',"monospace"].join(", ")},weight:{regular:400,bold:700},size:{s1:12,s2:14,s3:16,m1:20,m2:24,m3:28,l1:32,l2:40,l3:48,code:90}},bc={light:{fgColor:{default:Y.darkest,muted:Y.dark,accent:Y.secondary,inverse:Y.lightest,positive:"#427C27",warning:"#7A4100",negative:"#C23400",critical:"#FFFFFF"},bgColor:{default:Y.lightest,muted:lr.app,positive:"#F1FFEB",warning:"#FFF7EB",negative:"#FFF0EB",critical:"#D13800"},borderColor:{default:Y.border,muted:"hsl(0 0% 0% / 0.1)",inverse:"hsl(0 0% 100% / 0.1)",positive:"#BFE7AC",warning:"#FFCE85",negative:"#FFC3AD",critical:"hsl(16 100% 100% / 0)"}},dark:{fgColor:{default:"#C9CCCF",muted:"#95999D",accent:"#479DFF",inverse:"#1B1C1D",positive:"#86CE64",warning:"#FFAD33",negative:"#FF6933",critical:"#FF6933"},bgColor:{default:"#222325",muted:"#1B1C1D",positive:"hsl(101 100% 100% / 0)",warning:"hsl(101 100% 100% / 0)",negative:"hsl(101 100% 100% / 0)",critical:"hsl(101 100% 100% / 0)"},borderColor:{default:"hsl(0 0% 100% / 0.1)",muted:"hsl(0 0% 100% / 0.5)",inverse:"hsl(0 0% 0% / 0.1)",positive:"hsl(101 52% 64% / 0.15)",warning:"hsl(36 100% 64% / 0.15)",negative:"hsl(16 100% 64% / 0.15)",critical:"#FF6933"}}},w_={base:"dark",colorPrimary:"#FF4785",colorSecondary:"#479DFF",appBg:"#1B1C1D",appContentBg:"#222325",appHoverBg:"#233952",appPreviewBg:Y.lightest,appBorderColor:"hsl(0 0% 100% / 0.1)",appBorderRadius:4,fontBase:Ft.fonts.base,fontCode:Ft.fonts.mono,textColor:"#C9CCCF",textInverseColor:"#1B1C1D",textMutedColor:"#95999D",barTextColor:"#95999D",barHoverColor:"#70B3FF",barSelectedColor:"#479DFF",barBg:"#222325",buttonBg:"#1B1C1D",buttonBorder:"hsl(0 0% 100% / 0.1)",booleanBg:"#1B1C1D",booleanSelectedBg:"#292B2E",inputBg:"#1B1C1D",inputBorder:"hsl(0 0% 100% / 0.1)",inputTextColor:"#C9CCCF",inputBorderRadius:4},C_=w_,__={base:"light",colorPrimary:Y.primary,colorSecondary:Y.secondary,appBg:lr.app,appContentBg:Y.lightest,appHoverBg:"#DBECFF",appPreviewBg:Y.lightest,appBorderColor:Y.border,appBorderRadius:4,fontBase:Ft.fonts.base,fontCode:Ft.fonts.mono,textColor:Y.darkest,textInverseColor:Y.lightest,textMutedColor:Y.dark,barTextColor:Y.dark,barHoverColor:"#005CC7",barSelectedColor:"#0063D6",barBg:Y.lightest,buttonBg:lr.app,buttonBorder:Y.medium,booleanBg:Y.mediumlight,booleanSelectedBg:Y.lightest,inputBg:Y.lightest,inputBorder:Y.border,inputTextColor:Y.darkest,inputBorderRadius:4},Ec=__;const{logger:T_}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{global:O_}=__STORYBOOK_MODULE_GLOBAL__;var{window:es}=O_,A_=e=>({color:e}),R_=e=>typeof e!="string"?(T_.warn(`Color passed to theme object should be a string. Instead ${e}(${typeof e}) was passed.`),!1):!0,D_=e=>!/(gradient|var|calc)/.test(e),P_=(e,t)=>e==="darken"?tn(`${We(1,t)}`,.95):e==="lighten"?tn(`${Ja(1,t)}`,.95):t,F_=e=>t=>{if(!R_(t)||!D_(t))return t;try{return P_(e,t)}catch{return t}},Ld=F_("lighten"),kd=()=>!es||!es.matchMedia?"light":es.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",Hp={light:Ec,dark:C_},Za=kd(),Jr={...Hp,normal:Hp[Za]},cb=(e={base:Za},t)=>{let r={...Jr[Za],...Jr[e.base]||{},...e,base:Jr[e.base]?e.base:Za};return{...t,...r,barSelectedColor:e.barSelectedColor||r.colorSecondary}},sn=qe({"../../node_modules/memoizerific/memoizerific.js"(e,t){(function(r){if(typeof e=="object"&&typeof t<"u")t.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var n;typeof window<"u"?n=window:typeof global<"u"?n=global:typeof self<"u"?n=self:n=this,n.memoizerific=r()}})(function(){return(function r(n,o,a){function i(u,c){if(!o[u]){if(!n[u]){var d=typeof Sa=="function"&&Sa;if(!c&&d)return d(u,!0);if(l)return l(u,!0);var f=new Error("Cannot find module '"+u+"'");throw f.code="MODULE_NOT_FOUND",f}var g=o[u]={exports:{}};n[u][0].call(g.exports,function(m){var y=n[u][1][m];return i(y||m)},g,g.exports,r,n,o,a)}return o[u].exports}for(var l=typeof Sa=="function"&&Sa,s=0;s<a.length;s++)i(a[s]);return i})({1:[function(r,n,o){n.exports=function(a){if(typeof Map!="function"||a){var i=r("./similar");return new i}else return new Map}},{"./similar":2}],2:[function(r,n,o){function a(){return this.list=[],this.lastItem=void 0,this.size=0,this}a.prototype.get=function(i){var l;if(this.lastItem&&this.isEqual(this.lastItem.key,i))return this.lastItem.val;if(l=this.indexOf(i),l>=0)return this.lastItem=this.list[l],this.list[l].val},a.prototype.set=function(i,l){var s;return this.lastItem&&this.isEqual(this.lastItem.key,i)?(this.lastItem.val=l,this):(s=this.indexOf(i),s>=0?(this.lastItem=this.list[s],this.list[s].val=l,this):(this.lastItem={key:i,val:l},this.list.push(this.lastItem),this.size++,this))},a.prototype.delete=function(i){var l;if(this.lastItem&&this.isEqual(this.lastItem.key,i)&&(this.lastItem=void 0),l=this.indexOf(i),l>=0)return this.size--,this.list.splice(l,1)[0]},a.prototype.has=function(i){var l;return this.lastItem&&this.isEqual(this.lastItem.key,i)?!0:(l=this.indexOf(i),l>=0?(this.lastItem=this.list[l],!0):!1)},a.prototype.forEach=function(i,l){var s;for(s=0;s<this.size;s++)i.call(l||this,this.list[s].val,this.list[s].key,this)},a.prototype.indexOf=function(i){var l;for(l=0;l<this.size;l++)if(this.isEqual(this.list[l].key,i))return l;return-1},a.prototype.isEqual=function(i,l){return i===l||i!==i&&l!==l},n.exports=a},{}],3:[function(r,n,o){var a=r("map-or-similar");n.exports=function(u){var c=new a(!1),d=[];return function(f){var g=function(){var m=c,y,E,b=arguments.length-1,v=Array(b+1),S=!0,x;if((g.numArgs||g.numArgs===0)&&g.numArgs!==b+1)throw new Error("Memoizerific functions should always be called with the same number of arguments");for(x=0;x<b;x++){if(v[x]={cacheItem:m,arg:arguments[x]},m.has(arguments[x])){m=m.get(arguments[x]);continue}S=!1,y=new a(!1),m.set(arguments[x],y),m=y}return S&&(m.has(arguments[b])?E=m.get(arguments[b]):S=!1),S||(E=f.apply(null,arguments),m.set(arguments[b],E)),u>0&&(v[b]={cacheItem:m,arg:arguments[b]},S?i(d,v):d.push(v),d.length>u&&l(d.shift())),g.wasMemoized=S,g.numArgs=b+1,E};return g.limit=u,g.wasMemoized=!1,g.cache=c,g.lru=d,g}};function i(u,c){var d=u.length,f=c.length,g,m,y;for(m=0;m<d;m++){for(g=!0,y=0;y<f;y++)if(!s(u[m][y].arg,c[y].arg)){g=!1;break}if(g)break}u.push(u.splice(m,1)[0])}function l(u){var c=u.length,d=u[c-1],f,g;for(d.cacheItem.delete(d.arg),g=c-2;g>=0&&(d=u[g],f=d.cacheItem.get(d.arg),!f||!f.size);g--)d.cacheItem.delete(d.arg)}function s(u,c){return u===c||u!==u&&c!==c}},{"map-or-similar":1}]},{},[3])(3)})}});function St(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Array.from(typeof e=="string"?[e]:e);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,"");var o=n.reduce(function(l,s){var u=s.match(/\n([\t ]+|(?!\s).)/g);return u?l.concat(u.map(function(c){var d,f;return(f=(d=c.match(/[\t ]/g))===null||d===void 0?void 0:d.length)!==null&&f!==void 0?f:0})):l},[]);if(o.length){var a=new RegExp(`
|
|
3
|
+
[ ]{`+Math.min.apply(Math,o)+"}","g");n=n.map(function(l){return l.replace(a,`
|
|
4
|
+
`)})}n[0]=n[0].replace(/^\r?\n/,"");var i=n[0];return t.forEach(function(l,s){var u=i.match(/(?:^|\n)( *)$/),c=u?u[1]:"",d=l;typeof l=="string"&&l.includes(`
|
|
5
|
+
`)&&(d=String(l).split(`
|
|
6
|
+
`).map(function(f,g){return g===0?f:""+c+f}).join(`
|
|
7
|
+
`)),i+=d+n[s+1]}),i}var I_=qe({"../../node_modules/react-is/cjs/react-is.production.min.js"(e){var t=typeof Symbol=="function"&&Symbol.for,r=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,o=t?Symbol.for("react.fragment"):60107,a=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,l=t?Symbol.for("react.provider"):60109,s=t?Symbol.for("react.context"):60110,u=t?Symbol.for("react.async_mode"):60111,c=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,g=t?Symbol.for("react.suspense_list"):60120,m=t?Symbol.for("react.memo"):60115,y=t?Symbol.for("react.lazy"):60116,E=t?Symbol.for("react.block"):60121,b=t?Symbol.for("react.fundamental"):60117,v=t?Symbol.for("react.responder"):60118,S=t?Symbol.for("react.scope"):60119;function x(w){if(typeof w=="object"&&w!==null){var T=w.$$typeof;switch(T){case r:switch(w=w.type,w){case u:case c:case o:case i:case a:case f:return w;default:switch(w=w&&w.$$typeof,w){case s:case d:case y:case m:case l:return w;default:return T}}case n:return T}}}function O(w){return x(w)===c}e.AsyncMode=u,e.ConcurrentMode=c,e.ContextConsumer=s,e.ContextProvider=l,e.Element=r,e.ForwardRef=d,e.Fragment=o,e.Lazy=y,e.Memo=m,e.Portal=n,e.Profiler=i,e.StrictMode=a,e.Suspense=f,e.isAsyncMode=function(w){return O(w)||x(w)===u},e.isConcurrentMode=O,e.isContextConsumer=function(w){return x(w)===s},e.isContextProvider=function(w){return x(w)===l},e.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===r},e.isForwardRef=function(w){return x(w)===d},e.isFragment=function(w){return x(w)===o},e.isLazy=function(w){return x(w)===y},e.isMemo=function(w){return x(w)===m},e.isPortal=function(w){return x(w)===n},e.isProfiler=function(w){return x(w)===i},e.isStrictMode=function(w){return x(w)===a},e.isSuspense=function(w){return x(w)===f},e.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===o||w===c||w===i||w===a||w===f||w===g||typeof w=="object"&&w!==null&&(w.$$typeof===y||w.$$typeof===m||w.$$typeof===l||w.$$typeof===s||w.$$typeof===d||w.$$typeof===b||w.$$typeof===v||w.$$typeof===S||w.$$typeof===E)},e.typeOf=x}}),L_=qe({"../../node_modules/react-is/index.js"(e,t){t.exports=I_()}}),db=qe({"../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"(e,t){var r=L_(),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};l[r.ForwardRef]=a,l[r.Memo]=i;function s(E){return r.isMemo(E)?i:l[E.$$typeof]||n}var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,g=Object.getPrototypeOf,m=Object.prototype;function y(E,b,v){if(typeof b!="string"){if(m){var S=g(b);S&&S!==m&&y(E,S,v)}var x=c(b);d&&(x=x.concat(d(b)));for(var O=s(E),w=s(b),T=0;T<x.length;++T){var R=x[T];if(!o[R]&&!(v&&v[R])&&!(w&&w[R])&&!(O&&O[R])){var I=f(b,R);try{u(E,R,I)}catch{}}}}return E}t.exports=y}});function k_(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function N_(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var M_=(function(){function e(r){var n=this;this._insertTag=function(o){var a;n.tags.length===0?n.insertionPoint?a=n.insertionPoint.nextSibling:n.prepend?a=n.container.firstChild:a=n.before:a=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,a),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(N_(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var o=k_(n);try{o.insertRule(r,o.cssRules.length)}catch{}}else n.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var n;return(n=r.parentNode)==null?void 0:n.removeChild(r)}),this.tags=[],this.ctr=0},e})(),Ge="-ms-",vi="-moz-",fe="-webkit-",fb="comm",Nd="rule",Md="decl",B_="@import",pb="@keyframes",j_="@layer",H_=Math.abs,Qi=String.fromCharCode,U_=Object.assign;function z_(e,t){return Me(e,0)^45?(((t<<2^Me(e,0))<<2^Me(e,1))<<2^Me(e,2))<<2^Me(e,3):0}function hb(e){return e.trim()}function K_(e,t){return(e=t.exec(e))?e[0]:e}function pe(e,t,r){return e.replace(t,r)}function vc(e,t){return e.indexOf(t)}function Me(e,t){return e.charCodeAt(t)|0}function Mo(e,t,r){return e.slice(t,r)}function Ut(e){return e.length}function Bd(e){return e.length}function xa(e,t){return t.push(e),e}function G_(e,t){return e.map(t).join("")}var el=1,kn=1,gb=0,lt=0,Oe=0,Qn="";function tl(e,t,r,n,o,a,i){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:el,column:kn,length:i,return:""}}function fo(e,t){return U_(tl("",null,null,"",null,null,0),e,{length:-e.length},t)}function W_(){return Oe}function V_(){return Oe=lt>0?Me(Qn,--lt):0,kn--,Oe===10&&(kn=1,el--),Oe}function ft(){return Oe=lt<gb?Me(Qn,lt++):0,kn++,Oe===10&&(kn=1,el++),Oe}function Xt(){return Me(Qn,lt)}function Qa(){return lt}function ta(e,t){return Mo(Qn,e,t)}function Bo(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function mb(e){return el=kn=1,gb=Ut(Qn=e),lt=0,[]}function yb(e){return Qn="",e}function ei(e){return hb(ta(lt-1,Sc(e===91?e+2:e===40?e+1:e)))}function q_(e){for(;(Oe=Xt())&&Oe<33;)ft();return Bo(e)>2||Bo(Oe)>3?"":" "}function Y_(e,t){for(;--t&&ft()&&!(Oe<48||Oe>102||Oe>57&&Oe<65||Oe>70&&Oe<97););return ta(e,Qa()+(t<6&&Xt()==32&&ft()==32))}function Sc(e){for(;ft();)switch(Oe){case e:return lt;case 34:case 39:e!==34&&e!==39&&Sc(Oe);break;case 40:e===41&&Sc(e);break;case 92:ft();break}return lt}function X_(e,t){for(;ft()&&e+Oe!==57&&!(e+Oe===84&&Xt()===47););return"/*"+ta(t,lt-1)+"*"+Qi(e===47?e:ft())}function J_(e){for(;!Bo(Xt());)ft();return ta(e,lt)}function Z_(e){return yb(ti("",null,null,null,[""],e=mb(e),0,[0],e))}function ti(e,t,r,n,o,a,i,l,s){for(var u=0,c=0,d=i,f=0,g=0,m=0,y=1,E=1,b=1,v=0,S="",x=o,O=a,w=n,T=S;E;)switch(m=v,v=ft()){case 40:if(m!=108&&Me(T,d-1)==58){vc(T+=pe(ei(v),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:T+=ei(v);break;case 9:case 10:case 13:case 32:T+=q_(m);break;case 92:T+=Y_(Qa()-1,7);continue;case 47:switch(Xt()){case 42:case 47:xa(Q_(X_(ft(),Qa()),t,r),s);break;default:T+="/"}break;case 123*y:l[u++]=Ut(T)*b;case 125*y:case 59:case 0:switch(v){case 0:case 125:E=0;case 59+c:b==-1&&(T=pe(T,/\f/g,"")),g>0&&Ut(T)-d&&xa(g>32?zp(T+";",n,r,d-1):zp(pe(T," ","")+";",n,r,d-2),s);break;case 59:T+=";";default:if(xa(w=Up(T,t,r,u,c,o,l,S,x=[],O=[],d),a),v===123)if(c===0)ti(T,t,w,w,x,a,d,l,O);else switch(f===99&&Me(T,3)===110?100:f){case 100:case 108:case 109:case 115:ti(e,w,w,n&&xa(Up(e,w,w,0,0,o,l,S,o,x=[],d),O),o,O,d,l,n?x:O);break;default:ti(T,w,w,w,[""],O,0,l,O)}}u=c=g=0,y=b=1,S=T="",d=i;break;case 58:d=1+Ut(T),g=m;default:if(y<1){if(v==123)--y;else if(v==125&&y++==0&&V_()==125)continue}switch(T+=Qi(v),v*y){case 38:b=c>0?1:(T+="\f",-1);break;case 44:l[u++]=(Ut(T)-1)*b,b=1;break;case 64:Xt()===45&&(T+=ei(ft())),f=Xt(),c=d=Ut(S=T+=J_(Qa())),v++;break;case 45:m===45&&Ut(T)==2&&(y=0)}}return a}function Up(e,t,r,n,o,a,i,l,s,u,c){for(var d=o-1,f=o===0?a:[""],g=Bd(f),m=0,y=0,E=0;m<n;++m)for(var b=0,v=Mo(e,d+1,d=H_(y=i[m])),S=e;b<g;++b)(S=hb(y>0?f[b]+" "+v:pe(v,/&\f/g,f[b])))&&(s[E++]=S);return tl(e,t,r,o===0?Nd:l,s,u,c)}function Q_(e,t,r){return tl(e,t,r,fb,Qi(W_()),Mo(e,2,-2),0)}function zp(e,t,r,n){return tl(e,t,r,Md,Mo(e,0,n),Mo(e,n+1,-1),n)}function An(e,t){for(var r="",n=Bd(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function eT(e,t,r,n){switch(e.type){case j_:if(e.children.length)break;case B_:case Md:return e.return=e.return||e.value;case fb:return"";case pb:return e.return=e.value+"{"+An(e.children,n)+"}";case Nd:e.value=e.props.join(",")}return Ut(r=An(e.children,n))?e.return=e.value+"{"+r+"}":""}function tT(e){var t=Bd(e);return function(r,n,o,a){for(var i="",l=0;l<t;l++)i+=e[l](r,n,o,a)||"";return i}}function rT(e){return function(t){t.root||(t=t.return)&&e(t)}}var Kp=function(e){var t=new WeakMap;return function(r){if(t.has(r))return t.get(r);var n=e(r);return t.set(r,n),n}};function bb(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var nT=function(e,t,r){for(var n=0,o=0;n=o,o=Xt(),n===38&&o===12&&(t[r]=1),!Bo(o);)ft();return ta(e,lt)},oT=function(e,t){var r=-1,n=44;do switch(Bo(n)){case 0:n===38&&Xt()===12&&(t[r]=1),e[r]+=nT(lt-1,t,r);break;case 2:e[r]+=ei(n);break;case 4:if(n===44){e[++r]=Xt()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Qi(n)}while(n=ft());return e},aT=function(e,t){return yb(oT(mb(e),t))},Gp=new WeakMap,iT=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!Gp.get(r))&&!n){Gp.set(e,!0);for(var o=[],a=aT(t,o),i=r.props,l=0,s=0;l<a.length;l++)for(var u=0;u<i.length;u++,s++)e.props[s]=o[l]?a[l].replace(/&\f/g,i[u]):i[u]+" "+a[l]}}},lT=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};function Eb(e,t){switch(z_(e,t)){case 5103:return fe+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return fe+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return fe+e+vi+e+Ge+e+e;case 6828:case 4268:return fe+e+Ge+e+e;case 6165:return fe+e+Ge+"flex-"+e+e;case 5187:return fe+e+pe(e,/(\w+).+(:[^]+)/,fe+"box-$1$2"+Ge+"flex-$1$2")+e;case 5443:return fe+e+Ge+"flex-item-"+pe(e,/flex-|-self/,"")+e;case 4675:return fe+e+Ge+"flex-line-pack"+pe(e,/align-content|flex-|-self/,"")+e;case 5548:return fe+e+Ge+pe(e,"shrink","negative")+e;case 5292:return fe+e+Ge+pe(e,"basis","preferred-size")+e;case 6060:return fe+"box-"+pe(e,"-grow","")+fe+e+Ge+pe(e,"grow","positive")+e;case 4554:return fe+pe(e,/([^-])(transform)/g,"$1"+fe+"$2")+e;case 6187:return pe(pe(pe(e,/(zoom-|grab)/,fe+"$1"),/(image-set)/,fe+"$1"),e,"")+e;case 5495:case 3959:return pe(e,/(image-set\([^]*)/,fe+"$1$`$1");case 4968:return pe(pe(e,/(.+:)(flex-)?(.*)/,fe+"box-pack:$3"+Ge+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+fe+e+e;case 4095:case 3583:case 4068:case 2532:return pe(e,/(.+)-inline(.+)/,fe+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ut(e)-1-t>6)switch(Me(e,t+1)){case 109:if(Me(e,t+4)!==45)break;case 102:return pe(e,/(.+:)(.+)-([^]+)/,"$1"+fe+"$2-$3$1"+vi+(Me(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~vc(e,"stretch")?Eb(pe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Me(e,t+1)!==115)break;case 6444:switch(Me(e,Ut(e)-3-(~vc(e,"!important")&&10))){case 107:return pe(e,":",":"+fe)+e;case 101:return pe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+fe+(Me(e,14)===45?"inline-":"")+"box$3$1"+fe+"$2$3$1"+Ge+"$2box$3")+e}break;case 5936:switch(Me(e,t+11)){case 114:return fe+e+Ge+pe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return fe+e+Ge+pe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return fe+e+Ge+pe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return fe+e+Ge+e+e}return e}var sT=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Md:e.return=Eb(e.value,e.length);break;case pb:return An([fo(e,{value:pe(e.value,"@","@"+fe)})],n);case Nd:if(e.length)return G_(e.props,function(o){switch(K_(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return An([fo(e,{props:[pe(o,/:(read-\w+)/,":"+vi+"$1")]})],n);case"::placeholder":return An([fo(e,{props:[pe(o,/:(plac\w+)/,":"+fe+"input-$1")]}),fo(e,{props:[pe(o,/:(plac\w+)/,":"+vi+"$1")]}),fo(e,{props:[pe(o,/:(plac\w+)/,Ge+"input-$1")]})],n)}return""})}},uT=[sT],vb=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(m){var y=m.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||uT,o={},a,i=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var y=m.getAttribute("data-emotion").split(" "),E=1;E<y.length;E++)o[y[E]]=!0;i.push(m)});var l,s=[iT,lT];{var u,c=[eT,rT(function(m){u.insert(m)})],d=tT(s.concat(n,c)),f=function(m){return An(Z_(m),d)};l=function(m,y,E,b){u=E,f(m?m+"{"+y.styles+"}":y.styles),b&&(g.inserted[y.name]=!0)}}var g={key:t,sheet:new M_({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:l};return g.sheet.hydrate(i),g};rt(db());var cT=!0;function jd(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(n+=o+" ")}),n}var rl=function(e,t,r){var n=e.key+"-"+t.name;(r===!1||cT===!1)&&e.registered[n]===void 0&&(e.registered[n]=t.styles)},nl=function(e,t,r){rl(e,t,r);var n=e.key+"-"+t.name;if(e.inserted[t.name]===void 0){var o=t;do e.insert(t===o?"."+n:"",o,e.sheet,!0),o=o.next;while(o!==void 0)}};function dT(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var fT={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},pT=/[A-Z]|^ms/g,hT=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Sb=function(e){return e.charCodeAt(1)===45},Wp=function(e){return e!=null&&typeof e!="boolean"},ts=bb(function(e){return Sb(e)?e:e.replace(pT,"-$&").toLowerCase()}),Vp=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(hT,function(r,n,o){return zt={name:n,styles:o,next:zt},n})}return fT[e]!==1&&!Sb(e)&&typeof t=="number"&&t!==0?t+"px":t};function jo(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return zt={name:o.name,styles:o.styles,next:zt},o.name;var a=r;if(a.styles!==void 0){var i=a.next;if(i!==void 0)for(;i!==void 0;)zt={name:i.name,styles:i.styles,next:zt},i=i.next;var l=a.styles+";";return l}return gT(e,t,r)}case"function":{if(e!==void 0){var s=zt,u=r(e);return zt=s,jo(e,t,u)}break}}var c=r;if(t==null)return c;var d=t[c];return d!==void 0?d:c}function gT(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=jo(e,t,r[o])+";";else for(var a in r){var i=r[a];if(typeof i!="object"){var l=i;t!=null&&t[l]!==void 0?n+=a+"{"+t[l]+"}":Wp(l)&&(n+=ts(a)+":"+Vp(a,l)+";")}else if(Array.isArray(i)&&typeof i[0]=="string"&&(t==null||t[i[0]]===void 0))for(var s=0;s<i.length;s++)Wp(i[s])&&(n+=ts(a)+":"+Vp(a,i[s])+";");else{var u=jo(e,t,i);switch(a){case"animation":case"animationName":{n+=ts(a)+":"+u+";";break}default:n+=a+"{"+u+"}"}}}return n}var qp=/label:\s*([^\s;{]+)\s*(;|$)/g,zt;function ra(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,o="";zt=void 0;var a=e[0];if(a==null||a.raw===void 0)n=!1,o+=jo(r,t,a);else{var i=a;o+=i[0]}for(var l=1;l<e.length;l++)if(o+=jo(r,t,e[l]),n){var s=a;o+=s[l]}qp.lastIndex=0;for(var u="",c;(c=qp.exec(o))!==null;)u+="-"+c[1];var d=dT(o)+u;return{name:d,styles:o,next:zt}}var mT=function(e){return e()},xb=p.useInsertionEffect?p.useInsertionEffect:!1,Hd=xb||mT,Yp=xb||p.useLayoutEffect,$b=p.createContext(typeof HTMLElement<"u"?vb({key:"css"}):null);$b.Provider;var ol=function(e){return p.forwardRef(function(t,r){var n=p.useContext($b);return e(t,n,r)})},rn=p.createContext({}),al=function(){return p.useContext(rn)},yT=function(e,t){if(typeof t=="function"){var r=t(e);return r}return He({},e,t)},bT=Kp(function(e){return Kp(function(t){return yT(e,t)})}),Ud=function(e){var t=p.useContext(rn);return e.theme!==t&&(t=bT(t)(e.theme)),p.createElement(rn.Provider,{value:t},e.children)},zd={}.hasOwnProperty,xc="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",ET=function(e,t){var r={};for(var n in t)zd.call(t,n)&&(r[n]=t[n]);return r[xc]=e,r},vT=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return rl(t,r,n),Hd(function(){return nl(t,r,n)}),null},ST=ol(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var o=e[xc],a=[n],i="";typeof e.className=="string"?i=jd(t.registered,a,e.className):e.className!=null&&(i=e.className+" ");var l=ra(a,void 0,p.useContext(rn));i+=t.key+"-"+l.name;var s={};for(var u in e)zd.call(e,u)&&u!=="css"&&u!==xc&&(s[u]=e[u]);return s.className=i,r&&(s.ref=r),p.createElement(p.Fragment,null,p.createElement(vT,{cache:t,serialized:l,isStringTag:typeof o=="string"}),p.createElement(o,s))}),xT=ST;rt(db());var $c=function(e,t){var r=arguments;if(t==null||!zd.call(t,"css"))return p.createElement.apply(void 0,r);var n=r.length,o=new Array(n);o[0]=xT,o[1]=ET(e,t);for(var a=2;a<n;a++)o[a]=r[a];return p.createElement.apply(null,o)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})($c||($c={}));ol(function(e,t){var r=e.styles,n=ra([r],void 0,p.useContext(rn)),o=p.useRef();return Yp(function(){var a=t.key+"-global",i=new t.sheet.constructor({key:a,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),l=!1,s=document.querySelector('style[data-emotion="'+a+" "+n.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),s!==null&&(l=!0,s.setAttribute("data-emotion",a),i.hydrate([s])),o.current=[i,l],function(){i.flush()}},[t]),Yp(function(){var a=o.current,i=a[0],l=a[1];if(l){a[1]=!1;return}if(n.next!==void 0&&nl(t,n.next,!0),i.tags.length){var s=i.tags[i.tags.length-1].nextElementSibling;i.before=s,i.flush()}t.insert("",n,i,!1)},[t,n.name]),null});function il(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return ra(t)}function Ne(){var e=il.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var $T=function e(t){for(var r=t.length,n=0,o="";n<r;n++){var a=t[n];if(a!=null){var i=void 0;switch(typeof a){case"boolean":break;case"object":{if(Array.isArray(a))i=e(a);else{i="";for(var l in a)a[l]&&l&&(i&&(i+=" "),i+=l)}break}default:i=a}i&&(o&&(o+=" "),o+=i)}}return o};function wT(e,t,r){var n=[],o=jd(e,n,r);return n.length<2?r:o+t(n)}var CT=function(e){var t=e.cache,r=e.serializedArr;return Hd(function(){for(var n=0;n<r.length;n++)nl(t,r[n],!1)}),null};ol(function(e,t){var r=[],n=function(){for(var l=arguments.length,s=new Array(l),u=0;u<l;u++)s[u]=arguments[u];var c=ra(s,t.registered);return r.push(c),rl(t,c,!1),t.key+"-"+c.name},o=function(){for(var l=arguments.length,s=new Array(l),u=0;u<l;u++)s[u]=arguments[u];return wT(t.registered,n,$T(s))},a={css:n,cx:o,theme:p.useContext(rn)},i=e.children(a);return p.createElement(p.Fragment,null,p.createElement(CT,{cache:t,serializedArr:r}),i)});var _T=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,ll=bb(function(e){return _T.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),TT=ll,OT=function(e){return e!=="theme"},Xp=function(e){return typeof e=="string"&&e.charCodeAt(0)>96?TT:OT},Jp=function(e,t,r){var n;if(t){var o=t.shouldForwardProp;n=e.__emotion_forwardProp&&o?function(a){return e.__emotion_forwardProp(a)&&o(a)}:o}return typeof n!="function"&&r&&(n=e.__emotion_forwardProp),n},AT=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return rl(t,r,n),Hd(function(){return nl(t,r,n)}),null},RT=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,a,i;r!==void 0&&(a=r.label,i=r.target);var l=Jp(t,r,n),s=l||Xp(o),u=!s("as");return function(){var c=arguments,d=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&d.push("label:"+a+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{var f=c[0];d.push(f[0]);for(var g=c.length,m=1;m<g;m++)d.push(c[m],f[m])}var y=ol(function(E,b,v){var S=u&&E.as||o,x="",O=[],w=E;if(E.theme==null){w={};for(var T in E)w[T]=E[T];w.theme=p.useContext(rn)}typeof E.className=="string"?x=jd(b.registered,O,E.className):E.className!=null&&(x=E.className+" ");var R=ra(d.concat(O),b.registered,w);x+=b.key+"-"+R.name,i!==void 0&&(x+=" "+i);var I=u&&l===void 0?Xp(S):s,P={};for(var _ in E)u&&_==="as"||I(_)&&(P[_]=E[_]);return P.className=x,v&&(P.ref=v),p.createElement(p.Fragment,null,p.createElement(AT,{cache:b,serialized:R,isStringTag:typeof S=="string"}),p.createElement(S,P))});return y.displayName=a!==void 0?a:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",y.defaultProps=t.defaultProps,y.__emotion_real=y,y.__emotion_base=o,y.__emotion_styles=d,y.__emotion_forwardProp=l,Object.defineProperty(y,"toString",{value:function(){return"."+i}}),y.withComponent=function(E,b){var v=e(E,He({},r,b,{shouldForwardProp:Jp(y,b,!0)}));return v.apply(void 0,d)},y}},DT=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],F=RT.bind(null);DT.forEach(function(e){F[e]=F(e)});var wb=rt(sn(),1),Kd={position:"absolute",width:1,height:1,padding:0,margin:-1,overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",border:0},Cb=(0,wb.default)(1)(({typography:e})=>({body:{fontFamily:e.fonts.base,fontSize:e.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},"*":{boxSizing:"border-box"},"h1, h2, h3, h4, h5, h6":{fontWeight:e.weight.regular,margin:0,padding:0},"button, input, textarea, select":{fontFamily:"inherit",fontSize:"inherit",boxSizing:"border-box"},sub:{fontSize:"0.8em",bottom:"-0.2em"},sup:{fontSize:"0.8em",top:"-0.2em"},"b, strong":{fontWeight:e.weight.bold},hr:{border:"none",borderTop:"1px solid silver",clear:"both",marginBottom:"1.25rem"},code:{fontFamily:e.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit"},pre:{fontFamily:e.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0"}}));(0,wb.default)(1)(({color:e,background:t,typography:r})=>{let n=Cb({typography:r});return{...n,body:{...n.body,position:"fixed",width:"100vw",height:"100vh",overflow:"hidden",color:e.defaultText,background:t.app},hr:{...n.hr,borderTop:`1px solid ${e.border}`},".sb-sr-only, .sb-hidden-until-focus:not(:focus)":Kd,".sb-hidden-until-focus":{opacity:0,transition:"opacity 150ms ease-out"},".sb-hidden-until-focus:focus":{opacity:1},"[data-sb-landmark]":{position:"relative"},"[data-sb-landmark]:focus-visible":{outline:"none"},"[data-sb-landmark]:focus-visible::after":{outline:`2px solid ${e.primary}`,outlineOffset:"-2px"},"[data-sb-landmark]::after":{content:"''",position:"absolute",inset:0,pointerEvents:"none"},".react-aria-Popover:focus-visible":{outline:"none"}}});var PT={rubber:"cubic-bezier(0.175, 0.885, 0.335, 1.05)"},FT=Ne`
|
|
8
|
+
from {
|
|
9
|
+
transform: rotate(0deg);
|
|
10
|
+
}
|
|
11
|
+
to {
|
|
12
|
+
transform: rotate(360deg);
|
|
13
|
+
}
|
|
14
|
+
`,_b=Ne`
|
|
15
|
+
0%, 100% { opacity: 1; }
|
|
16
|
+
50% { opacity: .4; }
|
|
17
|
+
`,IT=Ne`
|
|
18
|
+
0% { transform: translateY(1px); }
|
|
19
|
+
25% { transform: translateY(0px); }
|
|
20
|
+
50% { transform: translateY(-3px); }
|
|
21
|
+
100% { transform: translateY(1px); }
|
|
22
|
+
`,LT=Ne`
|
|
23
|
+
0%, 100% { transform:translate3d(0,0,0); }
|
|
24
|
+
12.5%, 62.5% { transform:translate3d(-4px,0,0); }
|
|
25
|
+
37.5%, 87.5% { transform: translate3d(4px,0,0); }
|
|
26
|
+
`,kT=il`
|
|
27
|
+
animation: ${_b} 1.5s ease-in-out infinite;
|
|
28
|
+
color: transparent;
|
|
29
|
+
cursor: progress;
|
|
30
|
+
`,NT=il`
|
|
31
|
+
transition: all 150ms ease-out;
|
|
32
|
+
transform: translate3d(0, 0, 0);
|
|
33
|
+
|
|
34
|
+
&:hover {
|
|
35
|
+
transform: translate3d(0, -2px, 0);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&:active {
|
|
39
|
+
transform: translate3d(0, 0, 0);
|
|
40
|
+
}
|
|
41
|
+
`,MT={rotate360:FT,glow:_b,float:IT,jiggle:LT,inlineGlow:kT,hoverable:NT},BT={BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:1.2,BASE_BACKGROUND_COLOR:"rgb(36, 36, 36)",BASE_COLOR:"rgb(213, 213, 213)",OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES:10,OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES:5,OBJECT_NAME_COLOR:"rgb(227, 110, 236)",OBJECT_VALUE_NULL_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_REGEXP_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_STRING_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_NUMBER_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_BOOLEAN_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_FUNCTION_PREFIX_COLOR:"rgb(85, 106, 242)",HTML_TAG_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(155, 187, 220)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(242, 151, 102)",HTML_COMMENT_COLOR:"rgb(137, 137, 137)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"rgb(145, 145, 145)",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,ARROW_ANIMATION_DURATION:"0",TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:1.2,TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"rgb(85, 85, 85)",TABLE_TH_BACKGROUND_COLOR:"rgb(44, 44, 44)",TABLE_TH_HOVER_COLOR:"rgb(48, 48, 48)",TABLE_SORT_ICON_COLOR:"black",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(51, 139, 255, 0.0980392) 50%, rgba(51, 139, 255, 0.0980392))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"},jT={BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:1.2,BASE_BACKGROUND_COLOR:"white",BASE_COLOR:"black",OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES:10,OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES:5,OBJECT_NAME_COLOR:"rgb(136, 19, 145)",OBJECT_VALUE_NULL_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_REGEXP_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_STRING_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_NUMBER_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_BOOLEAN_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_FUNCTION_PREFIX_COLOR:"rgb(13, 34, 170)",HTML_TAG_COLOR:"rgb(168, 148, 166)",HTML_TAGNAME_COLOR:"rgb(136, 18, 128)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(153, 69, 0)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(26, 26, 166)",HTML_COMMENT_COLOR:"rgb(35, 110, 37)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"#6e6e6e",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,ARROW_ANIMATION_DURATION:"0",TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:1.2,TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"#aaa",TABLE_TH_BACKGROUND_COLOR:"#eee",TABLE_TH_HOVER_COLOR:"hsla(0, 0%, 90%, 1)",TABLE_SORT_ICON_COLOR:"#6e6e6e",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(to bottom, white, white 50%, rgb(234, 243, 255) 50%, rgb(234, 243, 255))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"},HT=e=>Object.entries(e).reduce((t,[r,n])=>({...t,[r]:A_(n)}),{}),UT=({colors:e,mono:t})=>{let r=HT(e);return{token:{fontFamily:t,WebkitFontSmoothing:"antialiased","&.tag":r.red3,"&.comment":{...r.green1,fontStyle:"italic"},"&.prolog":{...r.green1,fontStyle:"italic"},"&.doctype":{...r.green1,fontStyle:"italic"},"&.cdata":{...r.green1,fontStyle:"italic"},"&.string":r.red1,"&.url":r.cyan1,"&.symbol":r.cyan1,"&.number":r.cyan1,"&.boolean":r.cyan1,"&.variable":r.cyan1,"&.constant":r.cyan1,"&.inserted":r.cyan1,"&.atrule":r.blue1,"&.keyword":r.blue1,"&.attr-value":r.blue1,"&.punctuation":r.gray1,"&.operator":r.gray1,"&.function":r.gray1,"&.deleted":r.red2,"&.important":{fontWeight:"bold"},"&.bold":{fontWeight:"bold"},"&.italic":{fontStyle:"italic"},"&.class-name":r.cyan2,"&.selector":r.red3,"&.attr-name":r.red4,"&.property":r.red4,"&.regex":r.red4,"&.entity":r.red4,"&.directive.tag .tag":{background:"#ffff00",...r.gray1}},"language-json .token.boolean":r.blue1,"language-json .token.number":r.blue1,"language-json .token.property":r.cyan2,namespace:{opacity:.7}}},zT={green1:"#008000",red1:"#A31515",red2:"#9a050f",red3:"#800000",red4:"#eb0000",gray1:"#393A34",cyan1:"#008380",cyan2:"#007ca0",blue1:"#0000ff",blue2:"#00009f"},KT={green1:"#95999D",red1:"#92C379",red2:"#9a050f",red3:"#A8FF60",red4:"#96CBFE",gray1:"#EDEDED",cyan1:"#C6C5FE",cyan2:"#FFFFB6",blue1:"#B474DD",blue2:"#00009f"},GT=e=>({primary:e.colorPrimary,secondary:e.colorSecondary,tertiary:Y.tertiary,ancillary:Y.ancillary,orange:Y.orange,gold:Y.gold,green:Y.green,seafoam:Y.seafoam,purple:Y.purple,ultraviolet:Y.ultraviolet,lightest:Y.lightest,lighter:Y.lighter,light:Y.light,mediumlight:Y.mediumlight,medium:Y.medium,mediumdark:Y.mediumdark,dark:Y.dark,darker:Y.darker,darkest:Y.darkest,border:Y.border,positive:Y.positive,negative:Y.negative,warning:Y.warning,critical:Y.critical,defaultText:e.textColor||Y.darkest,inverseText:e.textInverseColor||Y.lightest,positiveText:Y.positiveText,negativeText:Y.negativeText,warningText:Y.warningText}),Si=(e=Jr[kd()])=>{let{base:t,colorPrimary:r,colorSecondary:n,appBg:o,appContentBg:a,appHoverBg:i,appPreviewBg:l,appBorderColor:s,appBorderRadius:u,fontBase:c,fontCode:d,textColor:f,textInverseColor:g,barTextColor:m,barHoverColor:y,barSelectedColor:E,barBg:b,buttonBg:v,buttonBorder:S,booleanBg:x,booleanSelectedBg:O,inputBg:w,inputBorder:T,inputTextColor:R,inputBorderRadius:I,brandTitle:P,brandUrl:_,brandImage:N,brandTarget:B,gridCellSize:$,...C}=e;return{...C,base:t,...t==="dark"?bc.dark:bc.light,color:GT(e),background:{app:o,bar:b,content:a,preview:l,gridCellSize:$||lr.gridCellSize,hoverable:i,positive:lr.positive,negative:lr.negative,warning:lr.warning,critical:lr.critical},typography:{fonts:{base:c,mono:d},weight:Ft.weight,size:Ft.size},animation:MT,easing:PT,input:{background:w,border:T,borderRadius:I,color:R},button:{background:v||w,border:S||T},boolean:{background:x||T,selectedBackground:O||w},layoutMargin:10,appBorderColor:s,appBorderRadius:u,barTextColor:m,barHoverColor:y||n,barSelectedColor:E||n,barBg:b,brand:{title:P,url:_,image:N||(P?null:void 0),target:B},code:UT({colors:t==="dark"?KT:zT,mono:d}),addonActionsTheme:{...t==="dark"?BT:jT,BASE_FONT_FAMILY:d,BASE_FONT_SIZE:Ft.size.s2-1,BASE_LINE_HEIGHT:"18px",BASE_BACKGROUND_COLOR:"transparent",BASE_COLOR:f,ARROW_COLOR:g_(.2,s),ARROW_MARGIN_RIGHT:4,ARROW_FONT_SIZE:8,TREENODE_FONT_FAMILY:d,TREENODE_FONT_SIZE:Ft.size.s2-1,TREENODE_LINE_HEIGHT:"18px",TREENODE_PADDING_LEFT:12}}};const{logger:WT}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var VT=e=>Object.keys(e).length===0,rs=e=>e!=null&&typeof e=="object",qT=(e,...t)=>Object.prototype.hasOwnProperty.call(e,...t),YT=()=>Object.create(null),Tb=(e,t)=>e===t||!rs(e)||!rs(t)?{}:Object.keys(e).reduce((r,n)=>{if(qT(t,n)){let o=Tb(e[n],t[n]);return rs(o)&&VT(o)||(r[n]=o),r}return r[n]=void 0,r},YT()),XT=Tb,Ob=e=>{if(!e)return Si(Ec);let t=XT(Ec,e);return Object.keys(t).length&&WT.warn(St`
|
|
42
|
+
Your theme is missing properties, you should update your theme!
|
|
43
|
+
|
|
44
|
+
theme-data missing:
|
|
45
|
+
`,t),Si(e)},xi="/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */";const JT=Object.freeze(Object.defineProperty({__proto__:null,ThemeProvider:Ud,background:lr,color:Y,convert:Si,create:cb,createCache:vb,createReset:Cb,css:il,ensure:Ob,getPreferredColorScheme:kd,ignoreSsrWarning:xi,isPropValid:ll,get jsx(){return $c},keyframes:Ne,lighten:Ld,srOnlyStyles:Kd,styled:F,themes:Jr,tokens:bc,typography:Ft,useTheme:al},Symbol.toStringTag,{value:"Module"}));var ns={exports:{}},po={};var Zp;function ZT(){if(Zp)return po;Zp=1;var e=ob(),t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function i(l,s,u){var c,d={},f=null,g=null;u!==void 0&&(f=""+u),s.key!==void 0&&(f=""+s.key),s.ref!==void 0&&(g=s.ref);for(c in s)n.call(s,c)&&!a.hasOwnProperty(c)&&(d[c]=s[c]);if(l&&l.defaultProps)for(c in s=l.defaultProps,s)d[c]===void 0&&(d[c]=s[c]);return{$$typeof:t,type:l,key:f,ref:g,props:d,_owner:o.current}}return po.Fragment=r,po.jsx=i,po.jsxs=i,po}var Qp;function QT(){return Qp||(Qp=1,ns.exports=ZT()),ns.exports}var ae=QT(),eO=F.div(({theme:e,$flexLayout:t=!1})=>[{background:e.background.content},t?{display:"inline-flex",marginInlineStart:"auto",alignSelf:"flex-end"}:{position:"absolute",bottom:0,right:0,maxWidth:"100%",display:"flex",zIndex:1}]),Ab=F.button(({theme:e})=>({margin:0,border:"0 none",padding:"4px 10px",cursor:"pointer",display:"flex",alignItems:"center",color:e.color.defaultText,background:e.background.content,fontSize:12,lineHeight:"16px",fontFamily:e.typography.fonts.base,fontWeight:e.typography.weight.bold,borderTop:`1px solid ${e.appBorderColor}`,borderLeft:`1px solid ${e.appBorderColor}`,marginLeft:-1,borderRadius:"4px 0 0 0","&:not(:last-child)":{borderRight:`1px solid ${e.appBorderColor}`},"& + *":{borderLeft:`1px solid ${e.appBorderColor}`,borderRadius:0},"&:focus":{boxShadow:`${e.color.secondary} 0 -3px 0 0 inset`,outline:"0 none","@media (forced-colors: active)":{outline:"1px solid highlight"}}}),({disabled:e})=>e&&{cursor:"not-allowed",opacity:.5});Ab.displayName="ActionButton";var tO=({actionItems:e,flexLayout:t=!1,...r})=>h.createElement(eO,{...r,$flexLayout:t},e.map(({title:n,className:o,onClick:a,disabled:i},l)=>h.createElement(Ab,{key:l,className:o,onClick:a,disabled:!!i},n)));function rO(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Rb(...e){return t=>e.forEach(r=>rO(r,t))}function un(...e){return p.useCallback(Rb(...e),e)}var Db=p.forwardRef((e,t)=>{let{children:r,...n}=e,o=p.Children.toArray(r),a=o.find(oO);if(a){let i=a.props.children,l=o.map(s=>s===a?p.Children.count(i)>1?p.Children.only(null):p.isValidElement(i)?i.props.children:null:s);return ae.jsx(wc,{...n,ref:t,children:p.isValidElement(i)?p.cloneElement(i,void 0,l):null})}return ae.jsx(wc,{...n,ref:t,children:r})});Db.displayName="Slot";var wc=p.forwardRef((e,t)=>{let{children:r,...n}=e;if(p.isValidElement(r)){let o=iO(r);return p.cloneElement(r,{...aO(n,r.props),ref:t?Rb(t,o):o})}return p.Children.count(r)>1?p.Children.only(null):null});wc.displayName="SlotClone";var nO=({children:e})=>ae.jsx(ae.Fragment,{children:e});function oO(e){return p.isValidElement(e)&&e.type===nO}function aO(e,t){let r={...t};for(let n in t){let o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...i)=>{a(...i),o(...i)}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function iO(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 lO=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],na=lO.reduce((e,t)=>{let r=p.forwardRef((n,o)=>{let{asChild:a,...i}=n,l=a?Db:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),ae.jsx(l,{...i,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Cc=globalThis?.document?p.useLayoutEffect:()=>{};function sO(e,t){return p.useReducer((r,n)=>t[r][n]??r,e)}var oa=e=>{let{present:t,children:r}=e,n=uO(t),o=typeof r=="function"?r({present:n.isPresent}):p.Children.only(r),a=un(n.ref,cO(o));return typeof r=="function"||n.isPresent?p.cloneElement(o,{ref:a}):null};oa.displayName="Presence";function uO(e){let[t,r]=p.useState(),n=p.useRef({}),o=p.useRef(e),a=p.useRef("none"),i=e?"mounted":"unmounted",[l,s]=sO(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return p.useEffect(()=>{let u=$a(n.current);a.current=l==="mounted"?u:"none"},[l]),Cc(()=>{let u=n.current,c=o.current;if(c!==e){let d=a.current,f=$a(u);e?s("MOUNT"):f==="none"||u?.display==="none"?s("UNMOUNT"):s(c&&d!==f?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,s]),Cc(()=>{if(t){let u=d=>{let f=$a(n.current).includes(d.animationName);d.target===t&&f&&Ji.flushSync(()=>s("ANIMATION_END"))},c=d=>{d.target===t&&(a.current=$a(n.current))};return t.addEventListener("animationstart",c),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",c),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:p.useCallback(u=>{u&&(n.current=getComputedStyle(u)),r(u)},[])}}function $a(e){return e?.animationName||"none"}function cO(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)}function dO(e,t=[]){let r=[];function n(a,i){let l=p.createContext(i),s=r.length;r=[...r,i];function u(d){let{scope:f,children:g,...m}=d,y=f?.[e][s]||l,E=p.useMemo(()=>m,Object.values(m));return ae.jsx(y.Provider,{value:E,children:g})}function c(d,f){let g=f?.[e][s]||l,m=p.useContext(g);if(m)return m;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${a}\``)}return u.displayName=a+"Provider",[u,c]}let o=()=>{let a=r.map(i=>p.createContext(i));return function(i){let l=i?.[e]||a;return p.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return o.scopeName=e,[n,fO(o,...t)]}function fO(...e){let t=e[0];if(e.length===1)return t;let r=()=>{let n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){let a=n.reduce((i,{useScope:l,scopeName:s})=>{let u=l(o)[`__scope${s}`];return{...i,...u}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}function Vr(e){let t=p.useRef(e);return p.useEffect(()=>{t.current=e}),p.useMemo(()=>(...r)=>t.current?.(...r),[])}var pO=p.createContext(void 0);function hO(e){let t=p.useContext(pO);return e||t||"ltr"}function gO(e,[t,r]){return Math.min(r,Math.max(t,e))}function Zr(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}function mO(e,t){return p.useReducer((r,n)=>t[r][n]??r,e)}var Gd="ScrollArea",[Pb]=dO(Gd),[yO,Ct]=Pb(Gd),Fb=p.forwardRef((e,t)=>{let{__scopeScrollArea:r,type:n="hover",dir:o,scrollHideDelay:a=600,...i}=e,[l,s]=p.useState(null),[u,c]=p.useState(null),[d,f]=p.useState(null),[g,m]=p.useState(null),[y,E]=p.useState(null),[b,v]=p.useState(0),[S,x]=p.useState(0),[O,w]=p.useState(!1),[T,R]=p.useState(!1),I=un(t,_=>s(_)),P=hO(o);return ae.jsx(yO,{scope:r,type:n,dir:P,scrollHideDelay:a,scrollArea:l,viewport:u,onViewportChange:c,content:d,onContentChange:f,scrollbarX:g,onScrollbarXChange:m,scrollbarXEnabled:O,onScrollbarXEnabledChange:w,scrollbarY:y,onScrollbarYChange:E,scrollbarYEnabled:T,onScrollbarYEnabledChange:R,onCornerWidthChange:v,onCornerHeightChange:x,children:ae.jsx(na.div,{dir:P,...i,ref:I,style:{position:"relative","--radix-scroll-area-corner-width":b+"px","--radix-scroll-area-corner-height":S+"px",...e.style}})})});Fb.displayName=Gd;var Ib="ScrollAreaViewport",Lb=p.forwardRef((e,t)=>{let{__scopeScrollArea:r,children:n,asChild:o,nonce:a,...i}=e,l=Ct(Ib,r),s=p.useRef(null),u=un(t,s,l.onViewportChange);return ae.jsxs(ae.Fragment,{children:[ae.jsx("style",{dangerouslySetInnerHTML:{__html:`
|
|
46
|
+
[data-radix-scroll-area-viewport] {
|
|
47
|
+
scrollbar-width: none;
|
|
48
|
+
-ms-overflow-style: none;
|
|
49
|
+
-webkit-overflow-scrolling: touch;
|
|
50
|
+
}
|
|
51
|
+
[data-radix-scroll-area-viewport]::-webkit-scrollbar {
|
|
52
|
+
display: none;
|
|
53
|
+
}
|
|
54
|
+
:where([data-radix-scroll-area-viewport]) {
|
|
55
|
+
display: flex;
|
|
56
|
+
flex-direction: column;
|
|
57
|
+
align-items: stretch;
|
|
58
|
+
}
|
|
59
|
+
:where([data-radix-scroll-area-content]) {
|
|
60
|
+
flex-grow: 1;
|
|
61
|
+
}
|
|
62
|
+
`},nonce:a}),ae.jsx(na.div,{"data-radix-scroll-area-viewport":"",...i,asChild:o,ref:u,style:{overflowX:l.scrollbarXEnabled?"scroll":"hidden",overflowY:l.scrollbarYEnabled?"scroll":"hidden",...e.style},children:TO({asChild:o,children:n},c=>ae.jsx("div",{"data-radix-scroll-area-content":"",ref:l.onContentChange,style:{minWidth:l.scrollbarXEnabled?"fit-content":void 0},children:c}))})]})});Lb.displayName=Ib;var Jt="ScrollAreaScrollbar",kb=p.forwardRef((e,t)=>{let{forceMount:r,...n}=e,o=Ct(Jt,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:i}=o,l=e.orientation==="horizontal";return p.useEffect(()=>(l?a(!0):i(!0),()=>{l?a(!1):i(!1)}),[l,a,i]),o.type==="hover"?ae.jsx(bO,{...n,ref:t,forceMount:r}):o.type==="scroll"?ae.jsx(EO,{...n,ref:t,forceMount:r}):o.type==="auto"?ae.jsx(Nb,{...n,ref:t,forceMount:r}):o.type==="always"?ae.jsx(Wd,{...n,ref:t}):null});kb.displayName=Jt;var bO=p.forwardRef((e,t)=>{let{forceMount:r,...n}=e,o=Ct(Jt,e.__scopeScrollArea),[a,i]=p.useState(!1);return p.useEffect(()=>{let l=o.scrollArea,s=0;if(l){let u=()=>{window.clearTimeout(s),i(!0)},c=()=>{s=window.setTimeout(()=>i(!1),o.scrollHideDelay)};return l.addEventListener("pointerenter",u),l.addEventListener("pointerleave",c),()=>{window.clearTimeout(s),l.removeEventListener("pointerenter",u),l.removeEventListener("pointerleave",c)}}},[o.scrollArea,o.scrollHideDelay]),ae.jsx(oa,{present:r||a,children:ae.jsx(Nb,{"data-state":a?"visible":"hidden",...n,ref:t})})}),EO=p.forwardRef((e,t)=>{let{forceMount:r,...n}=e,o=Ct(Jt,e.__scopeScrollArea),a=e.orientation==="horizontal",i=ul(()=>s("SCROLL_END"),100),[l,s]=mO("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return p.useEffect(()=>{if(l==="idle"){let u=window.setTimeout(()=>s("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(u)}},[l,o.scrollHideDelay,s]),p.useEffect(()=>{let u=o.viewport,c=a?"scrollLeft":"scrollTop";if(u){let d=u[c],f=()=>{let g=u[c];d!==g&&(s("SCROLL"),i()),d=g};return u.addEventListener("scroll",f),()=>u.removeEventListener("scroll",f)}},[o.viewport,a,s,i]),ae.jsx(oa,{present:r||l!=="hidden",children:ae.jsx(Wd,{"data-state":l==="hidden"?"hidden":"visible",...n,ref:t,onPointerEnter:Zr(e.onPointerEnter,()=>s("POINTER_ENTER")),onPointerLeave:Zr(e.onPointerLeave,()=>s("POINTER_LEAVE"))})})}),Nb=p.forwardRef((e,t)=>{let r=Ct(Jt,e.__scopeScrollArea),{forceMount:n,...o}=e,[a,i]=p.useState(!1),l=e.orientation==="horizontal",s=ul(()=>{if(r.viewport){let u=r.viewport.offsetWidth<r.viewport.scrollWidth,c=r.viewport.offsetHeight<r.viewport.scrollHeight;i(l?u:c)}},10);return Nn(r.viewport,s),Nn(r.content,s),ae.jsx(oa,{present:n||a,children:ae.jsx(Wd,{"data-state":a?"visible":"hidden",...o,ref:t})})}),Wd=p.forwardRef((e,t)=>{let{orientation:r="vertical",...n}=e,o=Ct(Jt,e.__scopeScrollArea),a=p.useRef(null),i=p.useRef(0),[l,s]=p.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=Ub(l.viewport,l.content),c={...n,sizes:l,onSizesChange:s,hasThumb:u>0&&u<1,onThumbChange:f=>a.current=f,onThumbPointerUp:()=>i.current=0,onThumbPointerDown:f=>i.current=f};function d(f,g){return CO(f,i.current,l,g)}return r==="horizontal"?ae.jsx(vO,{...c,ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){let f=o.viewport.scrollLeft,g=eh(f,l,o.dir);a.current.style.transform=`translate3d(${g}px, 0, 0)`}},onWheelScroll:f=>{o.viewport&&(o.viewport.scrollLeft=f)},onDragScroll:f=>{o.viewport&&(o.viewport.scrollLeft=d(f,o.dir))}}):r==="vertical"?ae.jsx(SO,{...c,ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){let f=o.viewport.scrollTop,g=eh(f,l);a.current.style.transform=`translate3d(0, ${g}px, 0)`}},onWheelScroll:f=>{o.viewport&&(o.viewport.scrollTop=f)},onDragScroll:f=>{o.viewport&&(o.viewport.scrollTop=d(f))}}):null}),vO=p.forwardRef((e,t)=>{let{sizes:r,onSizesChange:n,...o}=e,a=Ct(Jt,e.__scopeScrollArea),[i,l]=p.useState(),s=p.useRef(null),u=un(t,s,a.onScrollbarXChange);return p.useEffect(()=>{s.current&&l(getComputedStyle(s.current))},[s]),ae.jsx(Bb,{"data-orientation":"horizontal",...o,ref:u,sizes:r,style:{bottom:0,left:a.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:a.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":sl(r)+"px",...e.style},onThumbPointerDown:c=>e.onThumbPointerDown(c.x),onDragScroll:c=>e.onDragScroll(c.x),onWheelScroll:(c,d)=>{if(a.viewport){let f=a.viewport.scrollLeft+c.deltaX;e.onWheelScroll(f),Kb(f,d)&&c.preventDefault()}},onResize:()=>{s.current&&a.viewport&&i&&n({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:s.current.clientWidth,paddingStart:wi(i.paddingLeft),paddingEnd:wi(i.paddingRight)}})}})}),SO=p.forwardRef((e,t)=>{let{sizes:r,onSizesChange:n,...o}=e,a=Ct(Jt,e.__scopeScrollArea),[i,l]=p.useState(),s=p.useRef(null),u=un(t,s,a.onScrollbarYChange);return p.useEffect(()=>{s.current&&l(getComputedStyle(s.current))},[s]),ae.jsx(Bb,{"data-orientation":"vertical",...o,ref:u,sizes:r,style:{top:0,right:a.dir==="ltr"?0:void 0,left:a.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":sl(r)+"px",...e.style},onThumbPointerDown:c=>e.onThumbPointerDown(c.y),onDragScroll:c=>e.onDragScroll(c.y),onWheelScroll:(c,d)=>{if(a.viewport){let f=a.viewport.scrollTop+c.deltaY;e.onWheelScroll(f),Kb(f,d)&&c.preventDefault()}},onResize:()=>{s.current&&a.viewport&&i&&n({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:s.current.clientHeight,paddingStart:wi(i.paddingTop),paddingEnd:wi(i.paddingBottom)}})}})}),[xO,Mb]=Pb(Jt),Bb=p.forwardRef((e,t)=>{let{__scopeScrollArea:r,sizes:n,hasThumb:o,onThumbChange:a,onThumbPointerUp:i,onThumbPointerDown:l,onThumbPositionChange:s,onDragScroll:u,onWheelScroll:c,onResize:d,...f}=e,g=Ct(Jt,r),[m,y]=p.useState(null),E=un(t,I=>y(I)),b=p.useRef(null),v=p.useRef(""),S=g.viewport,x=n.content-n.viewport,O=Vr(c),w=Vr(s),T=ul(d,10);function R(I){if(b.current){let P=I.clientX-b.current.left,_=I.clientY-b.current.top;u({x:P,y:_})}}return p.useEffect(()=>{let I=P=>{let _=P.target;m?.contains(_)&&O(P,x)};return document.addEventListener("wheel",I,{passive:!1}),()=>document.removeEventListener("wheel",I,{passive:!1})},[S,m,x,O]),p.useEffect(w,[n,w]),Nn(m,T),Nn(g.content,T),ae.jsx(xO,{scope:r,scrollbar:m,hasThumb:o,onThumbChange:Vr(a),onThumbPointerUp:Vr(i),onThumbPositionChange:w,onThumbPointerDown:Vr(l),children:ae.jsx(na.div,{...f,ref:E,style:{position:"absolute",...f.style},onPointerDown:Zr(e.onPointerDown,I=>{I.button===0&&(I.target.setPointerCapture(I.pointerId),b.current=m.getBoundingClientRect(),v.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",g.viewport&&(g.viewport.style.scrollBehavior="auto"),R(I))}),onPointerMove:Zr(e.onPointerMove,R),onPointerUp:Zr(e.onPointerUp,I=>{let P=I.target;P.hasPointerCapture(I.pointerId)&&P.releasePointerCapture(I.pointerId),document.body.style.webkitUserSelect=v.current,g.viewport&&(g.viewport.style.scrollBehavior=""),b.current=null})})})}),$i="ScrollAreaThumb",jb=p.forwardRef((e,t)=>{let{forceMount:r,...n}=e,o=Mb($i,e.__scopeScrollArea);return ae.jsx(oa,{present:r||o.hasThumb,children:ae.jsx($O,{ref:t,...n})})}),$O=p.forwardRef((e,t)=>{let{__scopeScrollArea:r,style:n,...o}=e,a=Ct($i,r),i=Mb($i,r),{onThumbPositionChange:l}=i,s=un(t,d=>i.onThumbChange(d)),u=p.useRef(),c=ul(()=>{u.current&&(u.current(),u.current=void 0)},100);return p.useEffect(()=>{let d=a.viewport;if(d){let f=()=>{if(c(),!u.current){let g=_O(d,l);u.current=g,l()}};return l(),d.addEventListener("scroll",f),()=>d.removeEventListener("scroll",f)}},[a.viewport,c,l]),ae.jsx(na.div,{"data-state":i.hasThumb?"visible":"hidden",...o,ref:s,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...n},onPointerDownCapture:Zr(e.onPointerDownCapture,d=>{let f=d.target.getBoundingClientRect(),g=d.clientX-f.left,m=d.clientY-f.top;i.onThumbPointerDown({x:g,y:m})}),onPointerUp:Zr(e.onPointerUp,i.onThumbPointerUp)})});jb.displayName=$i;var Vd="ScrollAreaCorner",Hb=p.forwardRef((e,t)=>{let r=Ct(Vd,e.__scopeScrollArea),n=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&n?ae.jsx(wO,{...e,ref:t}):null});Hb.displayName=Vd;var wO=p.forwardRef((e,t)=>{let{__scopeScrollArea:r,...n}=e,o=Ct(Vd,r),[a,i]=p.useState(0),[l,s]=p.useState(0),u=!!(a&&l);return Nn(o.scrollbarX,()=>{let c=o.scrollbarX?.offsetHeight||0;o.onCornerHeightChange(c),s(c)}),Nn(o.scrollbarY,()=>{let c=o.scrollbarY?.offsetWidth||0;o.onCornerWidthChange(c),i(c)}),u?ae.jsx(na.div,{...n,ref:t,style:{width:a,height:l,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function wi(e){return e?parseInt(e,10):0}function Ub(e,t){let r=e/t;return isNaN(r)?0:r}function sl(e){let t=Ub(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=(e.scrollbar.size-r)*t;return Math.max(n,18)}function CO(e,t,r,n="ltr"){let o=sl(r),a=o/2,i=t||a,l=o-i,s=r.scrollbar.paddingStart+i,u=r.scrollbar.size-r.scrollbar.paddingEnd-l,c=r.content-r.viewport,d=n==="ltr"?[0,c]:[c*-1,0];return zb([s,u],d)(e)}function eh(e,t,r="ltr"){let n=sl(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-o,i=t.content-t.viewport,l=a-n,s=r==="ltr"?[0,i]:[i*-1,0],u=gO(e,s);return zb([0,i],[0,l])(u)}function zb(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}function Kb(e,t){return e>0&&e<t}var _O=(e,t=()=>{})=>{let r={left:e.scrollLeft,top:e.scrollTop},n=0;return(function o(){let a={left:e.scrollLeft,top:e.scrollTop},i=r.left!==a.left,l=r.top!==a.top;(i||l)&&t(),r=a,n=window.requestAnimationFrame(o)})(),()=>window.cancelAnimationFrame(n)};function ul(e,t){let r=Vr(e),n=p.useRef(0);return p.useEffect(()=>()=>window.clearTimeout(n.current),[]),p.useCallback(()=>{window.clearTimeout(n.current),n.current=window.setTimeout(r,t)},[r,t])}function Nn(e,t){let r=Vr(t);Cc(()=>{let n=0;if(e){let o=new ResizeObserver(()=>{cancelAnimationFrame(n),n=window.requestAnimationFrame(r)});return o.observe(e),()=>{window.cancelAnimationFrame(n),o.unobserve(e)}}},[e,r])}function TO(e,t){let{asChild:r,children:n}=e;if(!r)return typeof t=="function"?t(n):t;let o=p.Children.only(n);return p.cloneElement(o,{children:typeof t=="function"?t(o.props.children):t})}var OO=Fb,AO=Lb,RO=kb,DO=jb,PO=Hb,FO=F(OO)(({scrollbarsize:e,offset:t})=>({width:"100%",height:"100%",overflow:"hidden","--scrollbar-size":`${e+t}px`,"--radix-scroll-area-thumb-width":`${e}px`})),IO=F(AO)(({focusable:e,theme:t})=>({width:"100%",height:"100%","&:focus":e?{outline:`2px solid ${t.color.secondary}`,outlineOffset:-2}:{}})),th=F(RO)(({offset:e,horizontal:t,vertical:r})=>({display:"flex",userSelect:"none",touchAction:"none",background:"transparent",transition:"all 0.2s ease-out",borderRadius:"var(--scrollbar-size)",zIndex:1,'&[data-orientation="vertical"]':{width:"var(--scrollbar-size)",paddingRight:e,marginTop:e,marginBottom:t==="true"&&r==="true"?0:e},'&[data-orientation="horizontal"]':{flexDirection:"column",height:"var(--scrollbar-size)",paddingBottom:e,marginLeft:e,marginRight:t==="true"&&r==="true"?0:e}})),rh=F(DO)(({theme:e})=>({flex:1,background:e.textMutedColor,opacity:.5,borderRadius:"var(--scrollbar-size)",position:"relative",transition:"opacity 0.2s ease-out",zIndex:1,"&:hover":{opacity:.8},"::before":{content:'""',position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)",width:"100%",height:"100%"}})),qd=p.forwardRef(({children:e,horizontal:t=!1,vertical:r=!1,offset:n=2,scrollbarSize:o=6,scrollPadding:a=0,className:i,focusable:l=!1},s)=>h.createElement(FO,{scrollbarsize:o,offset:n,className:i},h.createElement(IO,{ref:s,style:{scrollPadding:a},tabIndex:l?0:void 0,focusable:l},e),t&&h.createElement(th,{orientation:"horizontal",offset:n,horizontal:t.toString(),vertical:r.toString()},h.createElement(rh,null)),r&&h.createElement(th,{orientation:"vertical",offset:n,horizontal:t.toString(),vertical:r.toString()},h.createElement(rh,null)),t&&r&&h.createElement(PO,null)));qd.displayName="ScrollArea";var vr=null;function nh(e,t="assertive",r=7e3){vr?vr.announce(e,t,r):(vr=new LO,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?vr.announce(e,t,r):setTimeout(()=>{vr?.isAttached()&&vr?.announce(e,t,r)},100))}function qY(e){vr&&vr.clear(e)}var LO=class{isAttached(){var e;return(e=this.node)===null||e===void 0?void 0:e.isConnected}createLog(e){let t=document.createElement("div");return t.setAttribute("role","log"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions"),t}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,t="assertive",r=7e3){var n,o;if(!this.node)return;let a=document.createElement("div");typeof e=="object"?(a.setAttribute("role","img"),a.setAttribute("aria-labelledby",e["aria-labelledby"])):a.textContent=e,t==="assertive"?(n=this.assertiveLog)===null||n===void 0||n.appendChild(a):(o=this.politeLog)===null||o===void 0||o.appendChild(a),e!==""&&setTimeout(()=>{a.remove()},r)}clear(e){this.node&&((!e||e==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!e||e==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}};function kO(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function NO(){try{return!!globalThis.__vitest_browser__||!!globalThis.window?.navigator?.userAgent?.match(/StorybookTestRunner/)}catch{return!1}}var MO=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.createElement("path",{d:"M6 3.5a.5.5 0 01.5.5v1.5H8a.5.5 0 010 1H6.5V8a.5.5 0 01-1 0V6.5H4a.5.5 0 010-1h1.5V4a.5.5 0 01.5-.5z",fill:e}),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.544 10.206a5.5 5.5 0 11.662-.662.5.5 0 01.148.102l3 3a.5.5 0 01-.708.708l-3-3a.5.5 0 01-.102-.148zM10.5 6a4.5 4.5 0 11-9 0 4.5 4.5 0 019 0z",fill:e}))),BO=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.createElement("path",{d:"M4 5.5a.5.5 0 000 1h4a.5.5 0 000-1H4z",fill:e}),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 11.5c1.35 0 2.587-.487 3.544-1.294a.5.5 0 00.102.148l3 3a.5.5 0 00.708-.708l-3-3a.5.5 0 00-.148-.102A5.5 5.5 0 106 11.5zm0-1a4.5 4.5 0 100-9 4.5 4.5 0 000 9z",fill:e}))),jO=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.createElement("path",{d:"M1.5 2.837V1.5a.5.5 0 00-1 0V4a.5.5 0 00.5.5h2.5a.5.5 0 000-1H2.258a4.5 4.5 0 11-.496 4.016.5.5 0 10-.942.337 5.502 5.502 0 008.724 2.353.5.5 0 00.102.148l3 3a.5.5 0 00.708-.708l-3-3a.5.5 0 00-.148-.102A5.5 5.5 0 101.5 2.837z",fill:e}))),HO=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.createElement("path",{d:"M10.139 8.725l1.36-1.323a.568.568 0 00.151-.54.534.534 0 00-.377-.396l-2.705-.708 2.22-4.976a.568.568 0 00-.15-.666.497.497 0 00-.648.008L5.464 4.05l.708.71 2.848-2.47-1.64 3.677.697.697 2.164.567-.81.787.708.708zM2.523 6.6a.566.566 0 00-.177.544.534.534 0 00.382.41l2.782.721-1.494 5.013a.563.563 0 00.217.627.496.496 0 00.629-.06l3.843-3.736-.708-.707-2.51 2.44 1.137-3.814-.685-.685-2.125-.55.844-.731-.71-.71L2.524 6.6zM1.854 1.146a.5.5 0 10-.708.708l11 11a.5.5 0 00.708-.708l-11-11z",fill:e}))),_c=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.createElement("path",{d:"M4 5.5a.5.5 0 01.5-.5h5a.5.5 0 010 1h-5a.5.5 0 01-.5-.5zM4.5 7.5a.5.5 0 000 1h5a.5.5 0 000-1h-5zM4 10.5a.5.5 0 01.5-.5h5a.5.5 0 010 1h-5a.5.5 0 01-.5-.5z",fill:e}),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.5 0a.5.5 0 00-.5.5v13a.5.5 0 00.5.5h11a.5.5 0 00.5-.5V3.207a.5.5 0 00-.146-.353L10.146.146A.5.5 0 009.793 0H1.5zM2 1h7.5v2a.5.5 0 00.5.5h2V13H2V1z",fill:e}))),UO=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.746.07A.5.5 0 0011.5.003h-6a.5.5 0 00-.5.5v2.5H.5a.5.5 0 00-.5.5v10a.5.5 0 00.5.5h8a.5.5 0 00.5-.5v-2.5h4.5a.5.5 0 00.5-.5v-8a.498.498 0 00-.15-.357L11.857.154a.506.506 0 00-.11-.085zM9 10.003h4v-7h-1.5a.5.5 0 01-.5-.5v-1.5H6v2h.5a.5.5 0 01.357.15L8.85 5.147c.093.09.15.217.15.357v4.5zm-8-6v9h7v-7H6.5a.5.5 0 01-.5-.5v-1.5H1z",fill:e}))),oh=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.createElement("path",{d:"M8.982 1.632a.5.5 0 00-.964-.263l-3 11a.5.5 0 10.964.263l3-11zM3.32 3.616a.5.5 0 01.064.704L1.151 7l2.233 2.68a.5.5 0 11-.768.64l-2.5-3a.5.5 0 010-.64l2.5-3a.5.5 0 01.704-.064zM10.68 3.616a.5.5 0 00-.064.704L12.849 7l-2.233 2.68a.5.5 0 00.768.64l2.5-3a.5.5 0 000-.64l-2.5-3a.5.5 0 00-.704-.064z",fill:e}))),zO=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.854 2.146l-2-2a.5.5 0 00-.708 0l-1.5 1.5-8.995 8.995a.499.499 0 00-.143.268L.012 13.39a.495.495 0 00.135.463.5.5 0 00.462.134l2.482-.496a.495.495 0 00.267-.143l8.995-8.995 1.5-1.5a.5.5 0 000-.708zM12 3.293l.793-.793L11.5 1.207 10.707 2 12 3.293zm-2-.586L1.707 11 3 12.293 11.293 4 10 2.707zM1.137 12.863l.17-.849.679.679-.849.17z",fill:e}))),Gb=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.createElement("path",{d:"M11.146 2.146a.5.5 0 11.707.707L7.708 7l4.147 4.146a.5.5 0 11-.707.707L7 7.708l-4.146 4.147a.5.5 0 01-.707-.708L6.293 7 2.147 2.853a.5.5 0 11.707-.707L7 6.293l4.146-4.147z",fill:e}))),KO=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.createElement("path",{d:"M7 3a.5.5 0 01.5.5v3h3a.5.5 0 010 1h-3v3a.5.5 0 01-1 0v-3h-3a.5.5 0 010-1h3v-3A.5.5 0 017 3z",fill:e}),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z",fill:e}))),GO=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.createElement("path",{d:"M3.5 6.5a.5.5 0 000 1h7a.5.5 0 000-1h-7z",fill:e}),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z",fill:e}))),WO=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.createElement("path",{d:"M9.854 4.146a.5.5 0 010 .708L7.707 7l2.147 2.146a.5.5 0 01-.708.708L7 7.707 4.854 9.854a.5.5 0 01-.708-.708L6.293 7 4.146 4.854a.5.5 0 11.708-.708L7 6.293l2.146-2.147a.5.5 0 01.708 0z",fill:e}),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z",fill:e}))),VO=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 107 0a7 7 0 000 14zm2.854-9.854a.5.5 0 010 .708L7.707 7l2.147 2.146a.5.5 0 01-.708.708L7 7.707 4.854 9.854a.5.5 0 01-.708-.708L6.293 7 4.146 4.854a.5.5 0 11.708-.708L7 6.293l2.146-2.147a.5.5 0 01.708 0z",fill:e}))),qO=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.createElement("path",{d:"M11.841 2.159a2.25 2.25 0 00-3.182 0l-2.5 2.5a2.25 2.25 0 000 3.182.5.5 0 01-.707.707 3.25 3.25 0 010-4.596l2.5-2.5a3.25 3.25 0 014.596 4.596l-2.063 2.063a4.27 4.27 0 00-.094-1.32l1.45-1.45a2.25 2.25 0 000-3.182z",fill:e}),p.createElement("path",{d:"M3.61 7.21c-.1-.434-.132-.88-.095-1.321L1.452 7.952a3.25 3.25 0 104.596 4.596l2.5-2.5a3.25 3.25 0 000-4.596.5.5 0 00-.707.707 2.25 2.25 0 010 3.182l-2.5 2.5A2.25 2.25 0 112.159 8.66l1.45-1.45z",fill:e}))),YO=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.createElement("path",{d:"M2 1.004a1 1 0 00-1 1v10a1 1 0 001 1h10a1 1 0 001-1v-4.5a.5.5 0 00-1 0v4.5H2v-10h4.5a.5.5 0 000-1H2z",fill:e}),p.createElement("path",{d:"M7.354 7.357L12 2.711v1.793a.5.5 0 001 0v-3a.5.5 0 00-.5-.5h-3a.5.5 0 100 1h1.793L6.646 6.65a.5.5 0 10.708.707z",fill:e}))),XO=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.createElement("path",{d:"M1.146 4.604l5.5 5.5a.5.5 0 00.708 0l5.5-5.5a.5.5 0 00-.708-.708L7 9.043 1.854 3.896a.5.5 0 10-.708.708z",fill:e}))),Wb=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.createElement("path",{d:"M11.104 7.354l-5.5 5.5a.5.5 0 01-.708-.708L10.043 7 4.896 1.854a.5.5 0 11.708-.708l5.5 5.5a.5.5 0 010 .708z",fill:e}))),JO=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.createElement("path",{d:"M3.854 9.104a.5.5 0 11-.708-.708l3.5-3.5a.5.5 0 01.708 0l3.5 3.5a.5.5 0 01-.708.708L7 5.957 3.854 9.104z",fill:e}))),Vb=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.createElement("path",{d:"M3.854 4.896a.5.5 0 10-.708.708l3.5 3.5a.5.5 0 00.708 0l3.5-3.5a.5.5 0 00-.708-.708L7 8.043 3.854 4.896z",fill:e}))),ZO=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.104 10.146a.5.5 0 01-.708.708l-3.5-3.5a.5.5 0 010-.708l3.5-3.5a.5.5 0 11.708.708L5.957 7l3.147 3.146z",fill:e}))),QO=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.896 10.146a.5.5 0 00.708.708l3.5-3.5a.5.5 0 000-.708l-3.5-3.5a.5.5 0 10-.708.708L8.043 7l-3.147 3.146z",fill:e}))),eA=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.createElement("path",{d:"M1.146 3.854a.5.5 0 010-.708l2-2a.5.5 0 11.708.708L2.707 3h6.295A4 4 0 019 11H3a.5.5 0 010-1h6a3 3 0 100-6H2.707l1.147 1.146a.5.5 0 11-.708.708l-2-2z",fill:e}))),tA=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.createElement("path",{d:"M5.5 1A.5.5 0 005 .5H2a.5.5 0 000 1h1.535a6.502 6.502 0 002.383 11.91.5.5 0 10.165-.986A5.502 5.502 0 014.5 2.1V4a.5.5 0 001 0V1.353a.5.5 0 000-.023V1zM7.507 1a.5.5 0 01.576-.41 6.502 6.502 0 012.383 11.91H12a.5.5 0 010 1H9a.5.5 0 01-.5-.5v-3a.5.5 0 011 0v1.9A5.5 5.5 0 007.917 1.576.5.5 0 017.507 1z",fill:e}))),rA=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.createElement("path",{d:"M7.092.5H7a6.5 6.5 0 106.41 7.583.5.5 0 10-.986-.166A5.495 5.495 0 017 12.5a5.5 5.5 0 010-11h.006a5.5 5.5 0 014.894 3H10a.5.5 0 000 1h3a.5.5 0 00.5-.5V2a.5.5 0 00-1 0v1.535A6.495 6.495 0 007.092.5z",fill:e}))),ah=new Map,nA="UNIVERSAL_STORE:",yt={PENDING:"PENDING",RESOLVED:"RESOLVED",REJECTED:"REJECTED"},zr=class Q{constructor(t,r){if(this.debugging=!1,this.listeners=new Map([["*",new Set]]),this.getState=()=>(this.debug("getState",{state:this.state}),this.state),this.subscribe=(n,o)=>{let a=typeof n=="function",i=a?"*":n,l=a?n:o;if(this.debug("subscribe",{eventType:i,listener:l}),!l)throw new TypeError(`Missing first subscribe argument, or second if first is the event type, when subscribing to a UniversalStore with id '${this.id}'`);return this.listeners.has(i)||this.listeners.set(i,new Set),this.listeners.get(i).add(l),()=>{this.debug("unsubscribe",{eventType:i,listener:l}),this.listeners.has(i)&&(this.listeners.get(i).delete(l),this.listeners.get(i)?.size===0&&this.listeners.delete(i))}},this.send=n=>{if(this.debug("send",{event:n}),this.status!==Q.Status.READY)throw new TypeError(St`Cannot send event before store is ready. You can get the current status with store.status,
|
|
63
|
+
or await store.readyPromise to wait for the store to be ready before sending events.
|
|
64
|
+
${JSON.stringify({event:n,id:this.id,actor:this.actor,environment:this.environment},null,2)}`);this.emitToListeners(n,{actor:this.actor}),this.emitToChannel(n,{actor:this.actor})},this.debugging=t.debug??!1,!Q.isInternalConstructing)throw new TypeError("UniversalStore is not constructable - use UniversalStore.create() instead");if(Q.isInternalConstructing=!1,this.id=t.id,this.actorId=Date.now().toString(36)+Math.random().toString(36).substring(2),this.actorType=t.leader?Q.ActorType.LEADER:Q.ActorType.FOLLOWER,this.state=t.initialState,this.channelEventName=`${nA}${this.id}`,this.debug("constructor",{options:t,environmentOverrides:r,channelEventName:this.channelEventName}),this.actor.type===Q.ActorType.LEADER)this.syncing={state:yt.RESOLVED,promise:Promise.resolve()};else{let n,o,a=new Promise((i,l)=>{n=()=>{this.syncing.state===yt.PENDING&&(this.syncing.state=yt.RESOLVED,i())},o=s=>{this.syncing.state===yt.PENDING&&(this.syncing.state=yt.REJECTED,l(s))}});this.syncing={state:yt.PENDING,promise:a,resolve:n,reject:o}}this.getState=this.getState.bind(this),this.setState=this.setState.bind(this),this.subscribe=this.subscribe.bind(this),this.onStateChange=this.onStateChange.bind(this),this.send=this.send.bind(this),this.emitToChannel=this.emitToChannel.bind(this),this.prepareThis=this.prepareThis.bind(this),this.emitToListeners=this.emitToListeners.bind(this),this.handleChannelEvents=this.handleChannelEvents.bind(this),this.debug=this.debug.bind(this),this.channel=r?.channel??Q.preparation.channel,this.environment=r?.environment??Q.preparation.environment,this.channel&&this.environment?(Q.preparation.resolve({channel:this.channel,environment:this.environment}),this.prepareThis({channel:this.channel,environment:this.environment})):Q.preparation.promise.then(this.prepareThis)}static setupPreparationPromise(){let t,r,n=new Promise((o,a)=>{t=i=>{o(i)},r=(...i)=>{a(i)}});Q.preparation={resolve:t,reject:r,promise:n}}get actor(){return Object.freeze({id:this.actorId,type:this.actorType,environment:this.environment??Q.Environment.UNKNOWN})}get status(){if(!this.channel||!this.environment)return Q.Status.UNPREPARED;switch(this.syncing?.state){case yt.PENDING:case void 0:return Q.Status.SYNCING;case yt.REJECTED:return Q.Status.ERROR;case yt.RESOLVED:default:return Q.Status.READY}}untilReady(){return Promise.all([Q.preparation.promise,this.syncing?.promise])}static create(t){if(!t||typeof t?.id!="string")throw new TypeError("id is required and must be a string, when creating a UniversalStore");t.debug&&console.debug(St`[UniversalStore]
|
|
65
|
+
create`,{options:t});let r=ah.get(t.id);if(r)return console.warn(St`UniversalStore with id "${t.id}" already exists in this environment, re-using existing.
|
|
66
|
+
You should reuse the existing instance instead of trying to create a new one.`),r;Q.isInternalConstructing=!0;let n=new Q(t);return ah.set(t.id,n),n}static __prepare(t,r){Q.preparation.channel=t,Q.preparation.environment=r,Q.preparation.resolve({channel:t,environment:r})}setState(t){let r=this.state,n=typeof t=="function"?t(r):t;if(this.debug("setState",{newState:n,previousState:r,updater:t}),this.status!==Q.Status.READY)throw new TypeError(St`Cannot set state before store is ready. You can get the current status with store.status,
|
|
67
|
+
or await store.readyPromise to wait for the store to be ready before sending events.
|
|
68
|
+
${JSON.stringify({newState:n,id:this.id,actor:this.actor,environment:this.environment},null,2)}`);this.state=n;let o={type:Q.InternalEventType.SET_STATE,payload:{state:n,previousState:r}};this.emitToChannel(o,{actor:this.actor}),this.emitToListeners(o,{actor:this.actor})}onStateChange(t){return this.debug("onStateChange",{listener:t}),this.subscribe(Q.InternalEventType.SET_STATE,({payload:r},n)=>{t(r.state,r.previousState,n)})}emitToChannel(t,r){this.debug("emitToChannel",{event:t,eventInfo:r,channel:!!this.channel}),this.channel?.emit(this.channelEventName,{event:t,eventInfo:r})}prepareThis({channel:t,environment:r}){this.channel=t,this.environment=r,this.debug("prepared",{channel:!!t,environment:r}),this.channel.on(this.channelEventName,this.handleChannelEvents),this.actor.type===Q.ActorType.LEADER?this.emitToChannel({type:Q.InternalEventType.LEADER_CREATED},{actor:this.actor}):(this.emitToChannel({type:Q.InternalEventType.FOLLOWER_CREATED},{actor:this.actor}),this.emitToChannel({type:Q.InternalEventType.EXISTING_STATE_REQUEST},{actor:this.actor}),setTimeout(()=>{this.syncing.reject(new TypeError(`No existing state found for follower with id: '${this.id}'. Make sure a leader with the same id exists before creating a follower.`))},1e3))}emitToListeners(t,r){let n=this.listeners.get(t.type),o=this.listeners.get("*");this.debug("emitToListeners",{event:t,eventInfo:r,eventTypeListeners:n,everythingListeners:o}),[...n??[],...o??[]].forEach(a=>a(t,r))}handleChannelEvents(t){let{event:r,eventInfo:n}=t;if([n.actor.id,n.forwardingActor?.id].includes(this.actor.id)){this.debug("handleChannelEvents: Ignoring event from self",{channelEvent:t});return}else if(this.syncing?.state===yt.PENDING&&r.type!==Q.InternalEventType.EXISTING_STATE_RESPONSE){this.debug("handleChannelEvents: Ignoring event while syncing",{channelEvent:t});return}if(this.debug("handleChannelEvents",{channelEvent:t}),this.actor.type===Q.ActorType.LEADER){let o=!0;switch(r.type){case Q.InternalEventType.EXISTING_STATE_REQUEST:o=!1;let a={type:Q.InternalEventType.EXISTING_STATE_RESPONSE,payload:this.state};this.debug("handleChannelEvents: responding to existing state request",{responseEvent:a}),this.emitToChannel(a,{actor:this.actor}),this.emitToListeners(a,{actor:this.actor});break;case Q.InternalEventType.LEADER_CREATED:o=!1,this.syncing.state=yt.REJECTED,this.debug("handleChannelEvents: erroring due to second leader being created",{event:r}),console.error(St`Detected multiple UniversalStore leaders created with the same id "${this.id}".
|
|
69
|
+
Only one leader can exists at a time, your stores are now in an invalid state.
|
|
70
|
+
Leaders detected:
|
|
71
|
+
this: ${JSON.stringify(this.actor,null,2)}
|
|
72
|
+
other: ${JSON.stringify(n.actor,null,2)}`);break}o&&(this.debug("handleChannelEvents: forwarding event",{channelEvent:t}),this.emitToChannel(r,{actor:n.actor,forwardingActor:this.actor}))}if(this.actor.type===Q.ActorType.FOLLOWER)switch(r.type){case Q.InternalEventType.EXISTING_STATE_RESPONSE:if(this.debug("handleChannelEvents: Setting state from leader's existing state response",{event:r}),this.syncing?.state!==yt.PENDING)break;this.syncing.resolve?.();let o={type:Q.InternalEventType.SET_STATE,payload:{state:r.payload,previousState:this.state}};this.state=r.payload,this.emitToListeners(o,n);break}r.type===Q.InternalEventType.SET_STATE&&(this.debug("handleChannelEvents: Setting state",{event:r}),this.state=r.payload.state),this.emitToListeners(r,{actor:n.actor})}debug(t,r){this.debugging&&console.debug(St`[UniversalStore::${this.id}::${this.environment??Q.Environment.UNKNOWN}]
|
|
73
|
+
${t}`,JSON.stringify({data:r,actor:this.actor,state:this.state,status:this.status},null,2))}static __reset(){Q.preparation.reject(new Error("reset")),Q.setupPreparationPromise(),Q.isInternalConstructing=!1}};zr.ActorType={LEADER:"LEADER",FOLLOWER:"FOLLOWER"},zr.Environment={SERVER:"SERVER",MANAGER:"MANAGER",PREVIEW:"PREVIEW",UNKNOWN:"UNKNOWN",MOCK:"MOCK"},zr.InternalEventType={EXISTING_STATE_REQUEST:"__EXISTING_STATE_REQUEST",EXISTING_STATE_RESPONSE:"__EXISTING_STATE_RESPONSE",SET_STATE:"__SET_STATE",LEADER_CREATED:"__LEADER_CREATED",FOLLOWER_CREATED:"__FOLLOWER_CREATED"},zr.Status={UNPREPARED:"UNPREPARED",SYNCING:"SYNCING",READY:"READY",ERROR:"ERROR"},zr.isInternalConstructing=!1,zr.setupPreparationPromise();var Yd=zr,oA=Object.create,qb=Object.defineProperty,aA=Object.getOwnPropertyDescriptor,Yb=Object.getOwnPropertyNames,iA=Object.getPrototypeOf,lA=Object.prototype.hasOwnProperty,re=(e,t)=>function(){return t||(0,e[Yb(e)[0]])((t={exports:{}}).exports,t),t.exports},sA=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Yb(t))!lA.call(e,o)&&o!==r&&qb(e,o,{get:()=>t[o],enumerable:!(n=aA(t,o))||n.enumerable});return e},Xd=(e,t,r)=>(r=e!=null?oA(iA(e)):{},sA(!e||!e.__esModule?qb(r,"default",{value:e,enumerable:!0}):r,e)),uA=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],cA=["detail"];function dA(e){let t=uA.filter(r=>e[r]!==void 0).reduce((r,n)=>(r[n]=e[n],r),{});if(e instanceof CustomEvent)for(let r of cA.filter(n=>e[n]!==void 0))t[r]=e[r];return t}var Xb=re({"node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(e,t){t.exports=Object}}),fA=re({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(e,t){t.exports=Error}}),pA=re({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(e,t){t.exports=EvalError}}),hA=re({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(e,t){t.exports=RangeError}}),gA=re({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(e,t){t.exports=ReferenceError}}),mA=re({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(e,t){t.exports=SyntaxError}}),Jd=re({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(e,t){t.exports=TypeError}}),yA=re({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(e,t){t.exports=URIError}}),bA=re({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(e,t){t.exports=Math.abs}}),EA=re({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(e,t){t.exports=Math.floor}}),vA=re({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(e,t){t.exports=Math.max}}),SA=re({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(e,t){t.exports=Math.min}}),xA=re({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(e,t){t.exports=Math.pow}}),$A=re({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(e,t){t.exports=Math.round}}),wA=re({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js"(e,t){t.exports=Number.isNaN||function(r){return r!==r}}}),CA=re({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(e,t){var r=wA();t.exports=function(n){return r(n)||n===0?n:n<0?-1:1}}}),_A=re({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(e,t){t.exports=Object.getOwnPropertyDescriptor}}),Zd=re({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(e,t){var r=_A();if(r)try{r([],"length")}catch{r=null}t.exports=r}}),TA=re({"node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js"(e,t){var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch{r=!1}t.exports=r}}),Jb=re({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js"(e,t){t.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},n=Symbol("test"),o=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var a=42;r[n]=a;for(var i in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var l=Object.getOwnPropertySymbols(r);if(l.length!==1||l[0]!==n||!Object.prototype.propertyIsEnumerable.call(r,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(r,n);if(s.value!==a||s.enumerable!==!0)return!1}return!0}}}),Zb=re({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(e,t){var r=typeof Symbol<"u"&&Symbol,n=Jb();t.exports=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()}}}),Qb=re({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.js"(e,t){t.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null}}),e1=re({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(e,t){var r=Xb();t.exports=r.getPrototypeOf||null}}),OA=re({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js"(e,t){var r="Function.prototype.bind called on incompatible ",n=Object.prototype.toString,o=Math.max,a="[object Function]",i=function(u,c){for(var d=[],f=0;f<u.length;f+=1)d[f]=u[f];for(var g=0;g<c.length;g+=1)d[g+u.length]=c[g];return d},l=function(u,c){for(var d=[],f=c,g=0;f<u.length;f+=1,g+=1)d[g]=u[f];return d},s=function(u,c){for(var d="",f=0;f<u.length;f+=1)d+=u[f],f+1<u.length&&(d+=c);return d};t.exports=function(u){var c=this;if(typeof c!="function"||n.apply(c)!==a)throw new TypeError(r+c);for(var d=l(arguments,1),f,g=function(){if(this instanceof f){var v=c.apply(this,i(d,arguments));return Object(v)===v?v:this}return c.apply(u,i(d,arguments))},m=o(0,c.length-d.length),y=[],E=0;E<m;E++)y[E]="$"+E;if(f=Function("binder","return function ("+s(y,",")+"){ return binder.apply(this,arguments); }")(g),c.prototype){var b=function(){};b.prototype=c.prototype,f.prototype=new b,b.prototype=null}return f}}}),cl=re({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(e,t){var r=OA();t.exports=Function.prototype.bind||r}}),Qd=re({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionCall.js"(e,t){t.exports=Function.prototype.call}}),t1=re({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionApply.js"(e,t){t.exports=Function.prototype.apply}}),AA=re({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/reflectApply.js"(e,t){t.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply}}),RA=re({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"(e,t){var r=cl(),n=t1(),o=Qd(),a=AA();t.exports=a||r.call(o,n)}}),r1=re({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"(e,t){var r=cl(),n=Jd(),o=Qd(),a=RA();t.exports=function(i){if(i.length<1||typeof i[0]!="function")throw new n("a function is required");return a(r,o,i)}}}),DA=re({"node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"(e,t){var r=r1(),n=Zd(),o;try{o=[].__proto__===Array.prototype}catch(s){if(!s||typeof s!="object"||!("code"in s)||s.code!=="ERR_PROTO_ACCESS")throw s}var a=!!o&&n&&n(Object.prototype,"__proto__"),i=Object,l=i.getPrototypeOf;t.exports=a&&typeof a.get=="function"?r([a.get]):typeof l=="function"?(function(s){return l(s==null?s:i(s))}):!1}}),PA=re({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(e,t){var r=Qb(),n=e1(),o=DA();t.exports=r?function(a){return r(a)}:n?function(a){if(!a||typeof a!="object"&&typeof a!="function")throw new TypeError("getProto: not an object");return n(a)}:o?function(a){return o(a)}:null}}),n1=re({"node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(e,t){var r=Function.prototype.call,n=Object.prototype.hasOwnProperty,o=cl();t.exports=o.call(r,n)}}),FA=re({"node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"(e,t){var r,n=Xb(),o=fA(),a=pA(),i=hA(),l=gA(),s=mA(),u=Jd(),c=yA(),d=bA(),f=EA(),g=vA(),m=SA(),y=xA(),E=$A(),b=CA(),v=Function,S=function(J){try{return v('"use strict"; return ('+J+").constructor;")()}catch{}},x=Zd(),O=TA(),w=function(){throw new u},T=x?(function(){try{return arguments.callee,w}catch{try{return x(arguments,"callee").get}catch{return w}}})():w,R=Zb()(),I=PA(),P=e1(),_=Qb(),N=t1(),B=Qd(),$={},C=typeof Uint8Array>"u"||!I?r:I(Uint8Array),A={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":R&&I?I([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":$,"%AsyncGenerator%":$,"%AsyncGeneratorFunction%":$,"%AsyncIteratorPrototype%":$,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?r:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":a,"%Float16Array%":typeof Float16Array>"u"?r:Float16Array,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":$,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":R&&I?I(I([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!R||!I?r:I(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":n,"%Object.getOwnPropertyDescriptor%":x,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":i,"%ReferenceError%":l,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!R||!I?r:I(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":R&&I?I(""[Symbol.iterator]()):r,"%Symbol%":R?Symbol:r,"%SyntaxError%":s,"%ThrowTypeError%":T,"%TypedArray%":C,"%TypeError%":u,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":c,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet,"%Function.prototype.call%":B,"%Function.prototype.apply%":N,"%Object.defineProperty%":O,"%Object.getPrototypeOf%":P,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":g,"%Math.min%":m,"%Math.pow%":y,"%Math.round%":E,"%Math.sign%":b,"%Reflect.getPrototypeOf%":_};if(I)try{null.error}catch(J){D=I(I(J)),A["%Error.prototype%"]=D}var D,L=function J(W){var q;if(W==="%AsyncFunction%")q=S("async function () {}");else if(W==="%GeneratorFunction%")q=S("function* () {}");else if(W==="%AsyncGeneratorFunction%")q=S("async function* () {}");else if(W==="%AsyncGenerator%"){var ee=J("%AsyncGeneratorFunction%");ee&&(q=ee.prototype)}else if(W==="%AsyncIteratorPrototype%"){var se=J("%AsyncGenerator%");se&&I&&(q=I(se.prototype))}return A[W]=q,q},M={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},k=cl(),H=n1(),z=k.call(B,Array.prototype.concat),K=k.call(N,Array.prototype.splice),U=k.call(B,String.prototype.replace),j=k.call(B,String.prototype.slice),V=k.call(B,RegExp.prototype.exec),G=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Z=/\\(\\)?/g,Ee=function(J){var W=j(J,0,1),q=j(J,-1);if(W==="%"&&q!=="%")throw new s("invalid intrinsic syntax, expected closing `%`");if(q==="%"&&W!=="%")throw new s("invalid intrinsic syntax, expected opening `%`");var ee=[];return U(J,G,function(se,Ze,X,Qe){ee[ee.length]=X?U(Qe,Z,"$1"):Ze||se}),ee},Le=function(J,W){var q=J,ee;if(H(M,q)&&(ee=M[q],q="%"+ee[0]+"%"),H(A,q)){var se=A[q];if(se===$&&(se=L(q)),typeof se>"u"&&!W)throw new u("intrinsic "+J+" exists, but is not available. Please file an issue!");return{alias:ee,name:q,value:se}}throw new s("intrinsic "+J+" does not exist!")};t.exports=function(J,W){if(typeof J!="string"||J.length===0)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof W!="boolean")throw new u('"allowMissing" argument must be a boolean');if(V(/^%?[^%]*%?$/,J)===null)throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var q=Ee(J),ee=q.length>0?q[0]:"",se=Le("%"+ee+"%",W),Ze=se.name,X=se.value,Qe=!1,_t=se.alias;_t&&(ee=_t[0],K(q,z([0,1],_t)));for(var ut=1,Tt=!0;ut<q.length;ut+=1){var Re=q[ut],Zt=j(Re,0,1),Qt=j(Re,-1);if((Zt==='"'||Zt==="'"||Zt==="`"||Qt==='"'||Qt==="'"||Qt==="`")&&Zt!==Qt)throw new s("property names with quotes must have matching quotes");if((Re==="constructor"||!Tt)&&(Qe=!0),ee+="."+Re,Ze="%"+ee+"%",H(A,Ze))X=A[Ze];else if(X!=null){if(!(Re in X)){if(!W)throw new u("base intrinsic for "+J+" exists, but the property is not available.");return}if(x&&ut+1>=q.length){var er=x(X,Re);Tt=!!er,Tt&&"get"in er&&!("originalValue"in er.get)?X=er.get:X=X[Re]}else Tt=H(X,Re),X=X[Re];Tt&&!Qe&&(A[Ze]=X)}}return X}}}),ef=re({"node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(e,t){var r=FA(),n=r1(),o=n([r("%String.prototype.indexOf%")]);t.exports=function(a,i){var l=r(a,!!i);return typeof l=="function"&&o(a,".prototype.")>-1?n([l]):l}}}),IA=re({"node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"(e,t){var r=Jb();t.exports=function(){return r()&&!!Symbol.toStringTag}}}),o1=re({"node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js"(e,t){var r=ef(),n=IA()(),o=n1(),a=Zd(),i;n?(l=r("RegExp.prototype.exec"),s={},u=function(){throw s},c={toString:u,valueOf:u},typeof Symbol.toPrimitive=="symbol"&&(c[Symbol.toPrimitive]=u),i=function(g){if(!g||typeof g!="object")return!1;var m=a(g,"lastIndex"),y=m&&o(m,"value");if(!y)return!1;try{l(g,c)}catch(E){return E===s}}):(d=r("Object.prototype.toString"),f="[object RegExp]",i=function(g){return!g||typeof g!="object"&&typeof g!="function"?!1:d(g)===f});var l,s,u,c,d,f;t.exports=i}}),LA=re({"node_modules/.pnpm/is-function@1.0.2/node_modules/is-function/index.js"(e,t){t.exports=n;var r=Object.prototype.toString;function n(o){if(!o)return!1;var a=r.call(o);return a==="[object Function]"||typeof o=="function"&&a!=="[object RegExp]"||typeof window<"u"&&(o===window.setTimeout||o===window.alert||o===window.confirm||o===window.prompt)}}}),kA=re({"node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js"(e,t){var r=ef(),n=o1(),o=r("RegExp.prototype.exec"),a=Jd();t.exports=function(i){if(!n(i))throw new a("`regex` must be a RegExp");return function(l){return o(i,l)!==null}}}}),NA=re({"node_modules/.pnpm/is-symbol@1.1.1/node_modules/is-symbol/index.js"(e,t){var r=ef(),n=r("Object.prototype.toString"),o=Zb()(),a=kA();o?(i=r("Symbol.prototype.toString"),l=a(/^Symbol\(.*\)$/),s=function(u){return typeof u.valueOf()!="symbol"?!1:l(i(u))},t.exports=function(u){if(typeof u=="symbol")return!0;if(!u||typeof u!="object"||n(u)!=="[object Symbol]")return!1;try{return s(u)}catch{return!1}}):t.exports=function(u){return!1};var i,l,s}}),MA=Xd(o1()),BA=Xd(LA()),jA=Xd(NA());function HA(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}var UA=typeof global=="object"&&global&&global.Object===Object&&global,zA=UA,KA=typeof self=="object"&&self&&self.Object===Object&&self,GA=zA||KA||Function("return this")(),tf=GA,WA=tf.Symbol,Mn=WA,a1=Object.prototype,VA=a1.hasOwnProperty,qA=a1.toString,ho=Mn?Mn.toStringTag:void 0;function YA(e){var t=VA.call(e,ho),r=e[ho];try{e[ho]=void 0;var n=!0}catch{}var o=qA.call(e);return n&&(t?e[ho]=r:delete e[ho]),o}var XA=YA,JA=Object.prototype,ZA=JA.toString;function QA(e){return ZA.call(e)}var e5=QA,t5="[object Null]",r5="[object Undefined]",ih=Mn?Mn.toStringTag:void 0;function n5(e){return e==null?e===void 0?r5:t5:ih&&ih in Object(e)?XA(e):e5(e)}var i1=n5;function o5(e){return e!=null&&typeof e=="object"}var a5=o5,i5="[object Symbol]";function l5(e){return typeof e=="symbol"||a5(e)&&i1(e)==i5}var rf=l5;function s5(e,t){for(var r=-1,n=e==null?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}var u5=s5,c5=Array.isArray,nf=c5,lh=Mn?Mn.prototype:void 0,sh=lh?lh.toString:void 0;function l1(e){if(typeof e=="string")return e;if(nf(e))return u5(e,l1)+"";if(rf(e))return sh?sh.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var d5=l1;function f5(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var s1=f5,p5="[object AsyncFunction]",h5="[object Function]",g5="[object GeneratorFunction]",m5="[object Proxy]";function y5(e){if(!s1(e))return!1;var t=i1(e);return t==h5||t==g5||t==p5||t==m5}var b5=y5,E5=tf["__core-js_shared__"],os=E5,uh=(function(){var e=/[^.]+$/.exec(os&&os.keys&&os.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function v5(e){return!!uh&&uh in e}var S5=v5,x5=Function.prototype,$5=x5.toString;function w5(e){if(e!=null){try{return $5.call(e)}catch{}try{return e+""}catch{}}return""}var C5=w5,_5=/[\\^$.*+?()[\]{}|]/g,T5=/^\[object .+?Constructor\]$/,O5=Function.prototype,A5=Object.prototype,R5=O5.toString,D5=A5.hasOwnProperty,P5=RegExp("^"+R5.call(D5).replace(_5,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function F5(e){if(!s1(e)||S5(e))return!1;var t=b5(e)?P5:T5;return t.test(C5(e))}var I5=F5;function L5(e,t){return e?.[t]}var k5=L5;function N5(e,t){var r=k5(e,t);return I5(r)?r:void 0}var u1=N5;function M5(e,t){return e===t||e!==e&&t!==t}var B5=M5,j5=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,H5=/^\w*$/;function U5(e,t){if(nf(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||rf(e)?!0:H5.test(e)||!j5.test(e)||t!=null&&e in Object(t)}var z5=U5,K5=u1(Object,"create"),Ho=K5;function G5(){this.__data__=Ho?Ho(null):{},this.size=0}var W5=G5;function V5(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var q5=V5,Y5="__lodash_hash_undefined__",X5=Object.prototype,J5=X5.hasOwnProperty;function Z5(e){var t=this.__data__;if(Ho){var r=t[e];return r===Y5?void 0:r}return J5.call(t,e)?t[e]:void 0}var Q5=Z5,eR=Object.prototype,tR=eR.hasOwnProperty;function rR(e){var t=this.__data__;return Ho?t[e]!==void 0:tR.call(t,e)}var nR=rR,oR="__lodash_hash_undefined__";function aR(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Ho&&t===void 0?oR:t,this}var iR=aR;function eo(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}eo.prototype.clear=W5;eo.prototype.delete=q5;eo.prototype.get=Q5;eo.prototype.has=nR;eo.prototype.set=iR;var ch=eo;function lR(){this.__data__=[],this.size=0}var sR=lR;function uR(e,t){for(var r=e.length;r--;)if(B5(e[r][0],t))return r;return-1}var dl=uR,cR=Array.prototype,dR=cR.splice;function fR(e){var t=this.__data__,r=dl(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():dR.call(t,r,1),--this.size,!0}var pR=fR;function hR(e){var t=this.__data__,r=dl(t,e);return r<0?void 0:t[r][1]}var gR=hR;function mR(e){return dl(this.__data__,e)>-1}var yR=mR;function bR(e,t){var r=this.__data__,n=dl(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var ER=bR;function to(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}to.prototype.clear=sR;to.prototype.delete=pR;to.prototype.get=gR;to.prototype.has=yR;to.prototype.set=ER;var vR=to,SR=u1(tf,"Map"),xR=SR;function $R(){this.size=0,this.__data__={hash:new ch,map:new(xR||vR),string:new ch}}var wR=$R;function CR(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var _R=CR;function TR(e,t){var r=e.__data__;return _R(t)?r[typeof t=="string"?"string":"hash"]:r.map}var fl=TR;function OR(e){var t=fl(this,e).delete(e);return this.size-=t?1:0,t}var AR=OR;function RR(e){return fl(this,e).get(e)}var DR=RR;function PR(e){return fl(this,e).has(e)}var FR=PR;function IR(e,t){var r=fl(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var LR=IR;function ro(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ro.prototype.clear=wR;ro.prototype.delete=AR;ro.prototype.get=DR;ro.prototype.has=FR;ro.prototype.set=LR;var c1=ro,kR="Expected a function";function of(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(kR);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=e.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(of.Cache||c1),r}of.Cache=c1;var NR=of,MR=500;function BR(e){var t=NR(e,function(n){return r.size===MR&&r.clear(),n}),r=t.cache;return t}var jR=BR,HR=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,UR=/\\(\\)?/g,zR=jR(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(HR,function(r,n,o,a){t.push(o?a.replace(UR,"$1"):n||r)}),t}),KR=zR;function GR(e){return e==null?"":d5(e)}var WR=GR;function VR(e,t){return nf(e)?e:z5(e,t)?[e]:KR(WR(e))}var qR=VR;function YR(e){if(typeof e=="string"||rf(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var XR=YR;function JR(e,t){t=qR(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[XR(t[r++])];return r&&r==n?e:void 0}var ZR=JR;function QR(e,t,r){var n=e==null?void 0:ZR(e,t);return n===void 0?r:n}var eD=QR,af=HA,tD=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,rD=e=>e.match(/^[\[\{\"\}].*[\]\}\"]$/);function d1(e){if(!af(e))return e;let t=e,r=!1;return typeof Event<"u"&&e instanceof Event&&(t=dA(t),r=!0),t=Object.keys(t).reduce((n,o)=>{try{t[o]&&t[o].toJSON,n[o]=t[o]}catch{r=!0}return n},{}),r?t:e}var nD=function(e){let t,r,n,o;return function(a,i){try{if(a==="")return o=[],t=new Map([[i,"[]"]]),r=new Map,n=[],i;let l=r.get(this)||this;for(;n.length&&l!==n[0];)n.shift(),o.pop();if(typeof i=="boolean")return i;if(i===void 0)return e.allowUndefined?"_undefined_":void 0;if(i===null)return null;if(typeof i=="number")return i===Number.NEGATIVE_INFINITY?"_-Infinity_":i===Number.POSITIVE_INFINITY?"_Infinity_":Number.isNaN(i)?"_NaN_":i;if(typeof i=="bigint")return`_bigint_${i.toString()}`;if(typeof i=="string")return tD.test(i)?e.allowDate?`_date_${i}`:void 0:i;if((0,MA.default)(i))return e.allowRegExp?`_regexp_${i.flags}|${i.source}`:void 0;if((0,BA.default)(i))return;if((0,jA.default)(i)){if(!e.allowSymbol)return;let u=Symbol.keyFor(i);return u!==void 0?`_gsymbol_${u}`:`_symbol_${i.toString().slice(7,-1)}`}if(n.length>=e.maxDepth)return Array.isArray(i)?`[Array(${i.length})]`:"[Object]";if(i===this)return`_duplicate_${JSON.stringify(o)}`;if(i instanceof Error&&e.allowError)return{__isConvertedError__:!0,errorProperties:{...i.cause?{cause:i.cause}:{},...i,name:i.name,message:i.message,stack:i.stack,"_constructor-name_":i.constructor.name}};if(i?.constructor?.name&&i.constructor.name!=="Object"&&!Array.isArray(i)){let u=t.get(i);if(!u){let c={__isClassInstance__:!0,__className__:i.constructor.name,...Object.getOwnPropertyNames(i).reduce((d,f)=>{try{d[f]=i[f]}catch{}return d},{})};return o.push(a),n.unshift(c),t.set(i,JSON.stringify(o)),i!==c&&r.set(i,c),c}return`_duplicate_${u}`}let s=t.get(i);if(!s){let u=Array.isArray(i)?i:d1(i);return o.push(a),n.unshift(u),t.set(i,JSON.stringify(o)),i!==u&&r.set(i,u),u}return`_duplicate_${s}`}catch{return}}},oD=function(e){let t=[],r;return function(n,o){if(n===""&&(r=o,t.forEach(({target:a,container:i,replacement:l})=>{let s=rD(l)?JSON.parse(l):l.split(".");s.length===0?i[a]=r:i[a]=eD(r,s)})),n==="_constructor-name_")return o;if(af(o)&&o.__isConvertedError__){let{message:a,...i}=o.errorProperties,l=new Error(a);return Object.assign(l,i),l}if(typeof o=="string"&&o.startsWith("_regexp_")&&e.allowRegExp){let[,a,i]=o.match(/_regexp_([^|]*)\|(.*)/)||[];return new RegExp(i,a)}return typeof o=="string"&&o.startsWith("_date_")&&e.allowDate?new Date(o.replace("_date_","")):typeof o=="string"&&o.startsWith("_duplicate_")?(t.push({target:n,container:this,replacement:o.replace(/^_duplicate_/,"")}),null):typeof o=="string"&&o.startsWith("_symbol_")&&e.allowSymbol?Symbol(o.replace("_symbol_","")):typeof o=="string"&&o.startsWith("_gsymbol_")&&e.allowSymbol?Symbol.for(o.replace("_gsymbol_","")):typeof o=="string"&&o==="_-Infinity_"?Number.NEGATIVE_INFINITY:typeof o=="string"&&o==="_Infinity_"?Number.POSITIVE_INFINITY:typeof o=="string"&&o==="_NaN_"?Number.NaN:typeof o=="string"&&o.startsWith("_bigint_")&&typeof BigInt=="function"?BigInt(o.replace("_bigint_","")):o}},f1={maxDepth:10,space:void 0,allowRegExp:!0,allowDate:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0},aD=(e,t={})=>{let r={...f1,...t};return JSON.stringify(d1(e),nD(r),t.space)},iD=()=>{let e=new Map;return function t(r){af(r)&&Object.entries(r).forEach(([n,o])=>{o==="_undefined_"?r[n]=void 0:e.get(o)||(e.set(o,!0),t(o))}),Array.isArray(r)&&r.forEach((n,o)=>{n==="_undefined_"?(e.set(n,!0),r[o]=void 0):e.get(n)||(e.set(n,!0),t(n))})}},lD=(e,t={})=>{let r={...f1,...t},n=JSON.parse(e,oD(r));return iD()(n),n};function dh({code:e,category:t}){let r=String(e).padStart(4,"0");return`SB_${t}_${r}`}function fh(e){if(/^(?!.*storybook\.js\.org)|[?&]ref=error\b/.test(e))return e;try{let t=new URL(e);return t.searchParams.set("ref","error"),t.toString()}catch{return e}}var lf=class p1 extends Error{constructor(t){super(p1.getFullMessage(t),t.cause===void 0?void 0:{cause:t.cause}),this.data={},this.fromStorybook=!0,this.isHandledError=!1,this.subErrors=[],this.category=t.category,this.documentation=t.documentation??!1,this.code=t.code,this.isHandledError=t.isHandledError??!1,this.name=t.name,this.subErrors=t.subErrors??[]}get fullErrorCode(){return dh({code:this.code,category:this.category})}get name(){let t=this._name||this.constructor.name;return`${this.fullErrorCode} (${t})`}set name(t){this._name=t}static getFullMessage({documentation:t,code:r,category:n,message:o}){let a;return t===!0?a=`https://storybook.js.org/error/${dh({code:r,category:n})}?ref=error`:typeof t=="string"?a=fh(t):Array.isArray(t)&&(a=`
|
|
74
|
+
${t.map(i=>` - ${fh(i)}`).join(`
|
|
75
|
+
`)}`),`${o}${a!=null?`
|
|
76
|
+
|
|
77
|
+
More info: ${a}
|
|
78
|
+
`:""}`}},sD=class extends lf{constructor(t){super({name:"StatusTypeIdMismatchError",category:"MANAGER_API",code:1,message:`Status has typeId "${t.status.typeId}" but was added to store with typeId "${t.typeId}". Full status: ${JSON.stringify(t.status,null,2)}`}),this.data=t}},uD=class extends lf{constructor(e){super({name:"StatusTypeIdMismatchError",category:"PREVIEW_API",code:16,message:`Status has typeId "${e.status.typeId}" but was added to store with typeId "${e.typeId}". Full status: ${JSON.stringify(e.status,null,2)}`}),this.data=e}},cD=qe({"../../node_modules/picocolors/picocolors.browser.js"(e,t){var r=String,n=function(){return{isColorSupported:!1,reset:r,bold:r,dim:r,italic:r,underline:r,inverse:r,hidden:r,strikethrough:r,black:r,red:r,green:r,yellow:r,blue:r,magenta:r,cyan:r,white:r,gray:r,bgBlack:r,bgRed:r,bgGreen:r,bgYellow:r,bgBlue:r,bgMagenta:r,bgCyan:r,bgWhite:r,blackBright:r,redBright:r,greenBright:r,yellowBright:r,blueBright:r,magentaBright:r,cyanBright:r,whiteBright:r,bgBlackBright:r,bgRedBright:r,bgGreenBright:r,bgYellowBright:r,bgBlueBright:r,bgMagentaBright:r,bgCyanBright:r,bgWhiteBright:r}};t.exports=n(),t.exports.createColors=n}});rt(cD(),1);var dD=class extends lf{constructor(e){super({name:"StatusTypeIdMismatchError",category:"CORE-SERVER",code:16,message:`Status has typeId "${e.status.typeId}" but was added to store with typeId "${e.typeId}". Full status: ${JSON.stringify(e.status,null,2)}`}),this.data=e}},h1="status-value:",fD=["status-value:pending","status-value:success","status-value:new","status-value:modified","status-value:affected","status-value:warning","status-value:error","status-value:unknown"],pD=e=>{if(e==="related")return"status-value:affected";let t=`${h1}${e}`;return fD.includes(t)?t:void 0},ph=e=>e==="status-value:affected"?"related":e.slice(h1.length),hD={id:"storybook/status",leader:!0,initialState:{}},as={SELECT:"select"};function gD(e){let t={};for(let r of Object.values(e))for(let n of Object.values(r))t[n.value]=(t[n.value]??0)+1;return t}function mD({universalStatusStore:e,useUniversalStore:t,environment:r}){let n={getAll(){return e.getState()},set(a){e.setState(i=>{let l={...i};for(let s of a){let{storyId:u,typeId:c}=s;l[u]={...l[u]??{},[c]:s}}return l})},onAllStatusChange(a){return e.onStateChange((i,l)=>{a(i,l)})},onSelect(a){return e.subscribe(as.SELECT,i=>{a(i.payload)})},selectStatuses:a=>{e.send({type:as.SELECT,payload:a})},unset(a){if(!a){e.setState({});return}e.setState(i=>{let l={...i};for(let s of a)delete l[s];return l})},typeId:void 0},o=a=>({getAll:n.getAll,set(i){e.setState(l=>{let s={...l};for(let u of i){let{storyId:c}=u;if(u.typeId!==a)switch(r){case"server":throw new dD({status:u,typeId:a});case"manager":throw new sD({status:u,typeId:a});default:throw new uD({status:u,typeId:a})}s[c]={...s[c]??{},[a]:u}}return s})},onAllStatusChange:n.onAllStatusChange,onSelect(i){return e.subscribe(as.SELECT,l=>{l.payload.some(s=>s.typeId===a)&&i(l.payload)})},unset(i){e.setState(l=>{let s={...l};for(let u in s)if(s[u]?.[a]&&(!i||i?.includes(u))){let{[a]:c,...d}=s[u];s[u]=d}return s})},typeId:a});return t?{getStatusStoreByTypeId:o,fullStatusStore:n,universalStatusStore:e,useStatusStore:a=>t(e,a)[0]}:{getStatusStoreByTypeId:o,fullStatusStore:n,universalStatusStore:e}}var hh=Object.prototype.hasOwnProperty;function gh(e,t,r){for(r of e.keys())if(Wt(r,t))return r}function Wt(e,t){var r,n,o;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((n=e.length)===t.length)for(;n--&&Wt(e[n],t[n]););return n===-1}if(r===Set){if(e.size!==t.size)return!1;for(n of e)if(o=n,o&&typeof o=="object"&&(o=gh(t,o),!o)||!t.has(o))return!1;return!0}if(r===Map){if(e.size!==t.size)return!1;for(n of e)if(o=n[0],o&&typeof o=="object"&&(o=gh(t,o),!o)||!Wt(n[1],t.get(o)))return!1;return!0}if(r===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(r===DataView){if((n=e.byteLength)===t.byteLength)for(;n--&&e.getInt8(n)===t.getInt8(n););return n===-1}if(ArrayBuffer.isView(e)){if((n=e.byteLength)===t.byteLength)for(;n--&&e[n]===t[n];);return n===-1}if(!r||typeof e=="object"){n=0;for(r in e)if(hh.call(e,r)&&++n&&!hh.call(t,r)||!(r in t)||!Wt(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!==e&&t!==t}function mh(e,t){let r=[],n=[];for(let o=0;o<e.length;o++){let a=e[o];t(a)?r.push(a):n.push(a)}return[r,n]}function yD(e,t){let r={};for(let n=0;n<e.length;n++){let o=e[n],a=t(o);r[a]=(r[a]??0)+1}return r}var Rn={PLAY_FN:"play-fn",DEV:"dev",TEST:"test"},Ci={_docs:(e,t)=>t?e.type!=="docs":e.type==="docs",_play:(e,t)=>t?e.type!=="story"||!e.tags?.includes(Rn.PLAY_FN):e.type==="story"&&!!e.tags?.includes(Rn.PLAY_FN),_test:(e,t)=>t?e.type!=="story"||e.subtype!=="test":e.type==="story"&&e.subtype==="test"},bD=e=>(t,r)=>r?!t.tags?.includes(e):!!t.tags?.includes(e),g1=qe({"../../node_modules/picoquery/lib/string-util.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.encodeString=n;var t=Array.from({length:256},(o,a)=>"%"+((a<16?"0":"")+a.toString(16)).toUpperCase()),r=new Int8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,1,1,0,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,0]);function n(o){let a=o.length;if(a===0)return"";let i="",l=0,s=0;e:for(;s<a;s++){let u=o.charCodeAt(s);for(;u<128;){if(r[u]!==1&&(l<s&&(i+=o.slice(l,s)),l=s+1,i+=t[u]),++s===a)break e;u=o.charCodeAt(s)}if(l<s&&(i+=o.slice(l,s)),u<2048){l=s+1,i+=t[192|u>>6]+t[128|u&63];continue}if(u<55296||u>=57344){l=s+1,i+=t[224|u>>12]+t[128|u>>6&63]+t[128|u&63];continue}if(++s,s>=a)throw new Error("URI malformed");let c=o.charCodeAt(s)&1023;l=s+1,u=65536+((u&1023)<<10|c),i+=t[240|u>>18]+t[128|u>>12&63]+t[128|u>>6&63]+t[128|u&63]}return l===0?o:l<a?i+o.slice(l):i}}}),sf=qe({"../../node_modules/picoquery/lib/shared.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.defaultOptions=e.defaultShouldSerializeObject=e.defaultValueSerializer=void 0;var t=g1(),r=a=>{switch(typeof a){case"string":return(0,t.encodeString)(a);case"bigint":case"boolean":return""+a;case"number":if(Number.isFinite(a))return a<1e21?""+a:(0,t.encodeString)(""+a);break}return a instanceof Date?(0,t.encodeString)(a.toISOString()):""};e.defaultValueSerializer=r;var n=a=>a instanceof Date;e.defaultShouldSerializeObject=n;var o=a=>a;e.defaultOptions={nesting:!0,nestingSyntax:"dot",arrayRepeat:!1,arrayRepeatSyntax:"repeat",delimiter:38,valueDeserializer:o,valueSerializer:e.defaultValueSerializer,keyDeserializer:o,shouldSerializeObject:e.defaultShouldSerializeObject}}}),m1=qe({"../../node_modules/picoquery/lib/object-util.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getDeepObject=o,e.stringifyObject=c;var t=sf(),r=g1();function n(d){return d==="__proto__"||d==="constructor"||d==="prototype"}function o(d,f,g,m,y){if(n(f))return d;let E=d[f];return typeof E=="object"&&E!==null?E:!m&&(y||typeof g=="number"||typeof g=="string"&&g*0===0&&g.indexOf(".")===-1)?d[f]=[]:d[f]={}}var a=20,i="[]",l="[",s="]",u=".";function c(d,f,g=0,m,y){let{nestingSyntax:E=t.defaultOptions.nestingSyntax,arrayRepeat:b=t.defaultOptions.arrayRepeat,arrayRepeatSyntax:v=t.defaultOptions.arrayRepeatSyntax,nesting:S=t.defaultOptions.nesting,delimiter:x=t.defaultOptions.delimiter,valueSerializer:O=t.defaultOptions.valueSerializer,shouldSerializeObject:w=t.defaultOptions.shouldSerializeObject}=f,T=typeof x=="number"?String.fromCharCode(x):x,R=y===!0&&b,I=E==="dot"||E==="js"&&!y;if(g>a)return"";let P="",_=!0,N=!1;for(let B in d){let $=d[B];if($===void 0)continue;let C;m?(C=m,R?v==="bracket"&&(C+=i):I?(C+=u,C+=B):(C+=l,C+=B,C+=s)):C=B,_||(P+=T),typeof $=="object"&&$!==null&&!w($)?(N=$.pop!==void 0,(S||b&&N)&&(P+=c($,f,g+1,C,N))):(P+=(0,r.encodeString)(C),P+="=",P+=O($,B)),_&&(_=!1)}return P}}}),ED=qe({"../../node_modules/picoquery/lib/decode-uri-component.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodeURIComponent=o;var t=12,r=0,n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,7,7,7,7,7,7,7,7,7,7,7,7,8,7,7,10,9,9,9,11,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,24,36,48,60,72,84,96,0,12,12,12,0,0,0,0,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,0,0,24,24,24,0,0,0,0,0,0,0,0,0,24,24,0,0,0,0,0,0,0,0,0,0,48,48,48,0,0,0,0,0,0,0,0,0,0,48,48,0,0,0,0,0,0,0,0,0,48,0,0,0,0,0,0,0,0,0,0,127,63,63,63,0,31,15,15,15,7,7,7];function o(l){let s=l.indexOf("%");if(s===-1)return l;let u=l.length,c="",d=0,f=0,g=s,m=t;for(;s>-1&&s<u;){let y=i(l[s+1],4),E=i(l[s+2],0),b=y|E,v=n[b];if(m=n[256+m+v],f=f<<6|b&n[364+v],m===t)c+=l.slice(d,g),c+=f<=65535?String.fromCharCode(f):String.fromCharCode(55232+(f>>10),56320+(f&1023)),f=0,d=s+3,s=g=l.indexOf("%",d);else{if(m===r)return null;if(s+=3,s<u&&l.charCodeAt(s)===37)continue;return null}}return c+l.slice(d)}var a={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};function i(l,s){let u=a[l];return u===void 0?255:u<<s}}}),vD=qe({"../../node_modules/picoquery/lib/parse.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.numberValueDeserializer=e.numberKeyDeserializer=void 0,e.parse=u;var t=m1(),r=sf(),n=ED(),o=c=>{let d=Number(c);return Number.isNaN(d)?c:d};e.numberKeyDeserializer=o;var a=c=>{let d=Number(c);return Number.isNaN(d)?c:d};e.numberValueDeserializer=a;var i=/\+/g,l=function(){};l.prototype=Object.create(null);function s(c,d,f,g,m){let y=c.substring(d,f);return g&&(y=y.replace(i," ")),m&&(y=(0,n.decodeURIComponent)(y)||y),y}function u(c,d){let{valueDeserializer:f=r.defaultOptions.valueDeserializer,keyDeserializer:g=r.defaultOptions.keyDeserializer,arrayRepeatSyntax:m=r.defaultOptions.arrayRepeatSyntax,nesting:y=r.defaultOptions.nesting,arrayRepeat:E=r.defaultOptions.arrayRepeat,nestingSyntax:b=r.defaultOptions.nestingSyntax,delimiter:v=r.defaultOptions.delimiter}=d??{},S=typeof v=="string"?v.charCodeAt(0):v,x=b==="js",O=new l;if(typeof c!="string")return O;let w=c.length,T="",R=-1,I=-1,P=-1,_=O,N,B="",$="",C=!1,A=!1,D=!1,L=!1,M=!1,k=!1,H=0,z=-1,K=-1,U=-1;for(let j=0;j<w+1;j++){if(H=j!==w?c.charCodeAt(j):S,H===S){if(k=I>R,k||(I=j),P!==I-1&&($=s(c,P+1,z>-1?z:I,D,C),B=g($),N!==void 0&&(_=(0,t.getDeepObject)(_,N,B,x&&M,void 0))),k||B!==""){k&&(T=c.slice(I+1,j),L&&(T=T.replace(i," ")),A&&(T=(0,n.decodeURIComponent)(T)||T));let V=f(T,B);if(E){let G=_[B];G===void 0?z>-1?_[B]=[V]:_[B]=V:G.pop?G.push(V):_[B]=[G,V]}else _[B]=V}T="",R=j,I=j,C=!1,A=!1,D=!1,L=!1,M=!1,z=-1,P=j,_=O,N=void 0,B=""}else H===93?(E&&m==="bracket"&&U===91&&(z=K),y&&(b==="index"||x)&&I<=R&&(P!==K&&($=s(c,P+1,j,D,C),B=g($),N!==void 0&&(_=(0,t.getDeepObject)(_,N,B,void 0,void 0)),N=B,D=!1,C=!1),P=j,M=!1)):H===46?y&&(b==="dot"||x)&&I<=R&&(P!==K&&($=s(c,P+1,j,D,C),B=g($),N!==void 0&&(_=(0,t.getDeepObject)(_,N,B,x)),N=B,D=!1,C=!1),M=!0,P=j):H===91?y&&(b==="index"||x)&&I<=R&&(P!==K&&($=s(c,P+1,j,D,C),B=g($),x&&N!==void 0&&(_=(0,t.getDeepObject)(_,N,B,x)),N=B,D=!1,C=!1,M=!1),P=j):H===61?I<=R?I=j:A=!0:H===43?I>R?L=!0:D=!0:H===37&&(I>R?A=!0:C=!0);K=j,U=H}return O}}}),SD=qe({"../../node_modules/picoquery/lib/stringify.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=r;var t=m1();function r(n,o){if(n===null||typeof n!="object")return"";let a=o??{};return(0,t.stringifyObject)(n,a)}}}),y1=qe({"../../node_modules/picoquery/lib/main.js"(e){var t=e&&e.__createBinding||(Object.create?(function(a,i,l,s){s===void 0&&(s=l);var u=Object.getOwnPropertyDescriptor(i,l);(!u||("get"in u?!i.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return i[l]}}),Object.defineProperty(a,s,u)}):(function(a,i,l,s){s===void 0&&(s=l),a[s]=i[l]})),r=e&&e.__exportStar||function(a,i){for(var l in a)l!=="default"&&!Object.prototype.hasOwnProperty.call(i,l)&&t(i,a,l)};Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=e.parse=void 0;var n=vD();Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return n.parse}});var o=SD();Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return o.stringify}}),r(sf(),e)}}),yh="backgrounds",xD="outline",$D={light:{name:"light",value:"#F8F8F8"},dark:{name:"dark",value:"#333"}},wD="Invariant failed";function Tc(e,t){if(!e)throw new Error(wD)}var pl="storybook/highlight",CD=`${pl}/add`,_D=`${pl}/remove`,TD=`${pl}/reset`,OD=`${pl}/scroll-into-view`,bh=2147483647,Sr=28,AD="storybook/actions",RD=`${AD}/action-event`,DD={depth:10,clearOnStoryChange:!0,limit:50};const{ImplicitActionsDuringRendering:PD}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__,{global:Eh}=__STORYBOOK_MODULE_GLOBAL__,{addons:FD}=__STORYBOOK_MODULE_PREVIEW_API__;var b1=(e,t)=>{let r=Object.getPrototypeOf(e);return!r||t(r)?r:b1(r,t)},ID=e=>!!(typeof e=="object"&&e&&b1(e,t=>/^Synthetic(?:Base)?Event$/.test(t.constructor.name))&&typeof e.persist=="function"),LD=e=>{if(ID(e)){let t=Object.create(e.constructor.prototype,Object.getOwnPropertyDescriptors(e));t.persist();let r=Object.getOwnPropertyDescriptor(t,"view"),n=r?.value;return typeof n=="object"&&n?.constructor.name==="Window"&&Object.defineProperty(t,"view",{...r,value:Object.create(n.constructor.prototype)}),t}return e};function uf(e,t={}){let r={...DD,...t},n=function(...o){if(t.implicit){let d=("__STORYBOOK_PREVIEW__"in Eh?Eh.__STORYBOOK_PREVIEW__:void 0)?.storyRenders.find(f=>f.phase==="playing"||f.phase==="rendering");if(d){let f=!globalThis?.FEATURES?.disallowImplicitActionsInRenderV8,g=new PD({phase:d.phase,name:e,deprecated:f});if(f)console.warn(g);else throw g}}let a=FD.getChannel(),i=Date.now().toString(36)+Math.random().toString(36).substring(2),l=5,s=o.map(LD),u=o.length>1?s:s[0],c={id:i,count:0,data:{name:e,args:u},options:{...r,maxDepth:l+(r.depth||3)}};a.emit(RD,c)};return n.isAction=!0,n.implicit=t.implicit,n}var tr={CALL:"storybook/instrumenter/call",SYNC:"storybook/instrumenter/sync",START:"storybook/instrumenter/start",BACK:"storybook/instrumenter/back",GOTO:"storybook/instrumenter/goto",NEXT:"storybook/instrumenter/next",END:"storybook/instrumenter/end"},kD={reset:[0,0],bold:[1,22,"\x1B[22m\x1B[1m"],dim:[2,22,"\x1B[22m\x1B[2m"],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]},E1=Object.entries(kD);function hl(e){return String(e)}hl.open="";hl.close="";E1.reduce((e,[t])=>(e[t]=hl,e),{isColorSupported:!1});function ND(e=!1){let t=typeof process<"u"?process:void 0,r=t?.env||{},n=t?.argv||[];return!("NO_COLOR"in r||n.includes("--no-color"))&&("FORCE_COLOR"in r||n.includes("--color")||t?.platform==="win32"||e&&r.TERM!=="dumb"||"CI"in r)||typeof window<"u"&&!!window.chrome}function MD(e=!1){let t=ND(e),r=(i,l,s,u)=>{let c="",d=0;do c+=i.substring(d,u)+s,d=u+l.length,u=i.indexOf(l,d);while(~u);return c+i.substring(d)},n=(i,l,s=i)=>{let u=c=>{let d=String(c),f=d.indexOf(l,i.length);return~f?i+r(d,l,s,f)+l:i+d+l};return u.open=i,u.close=l,u},o={isColorSupported:t},a=i=>`\x1B[${i}m`;for(let[i,l]of E1)o[i]=t?n(a(l[0]),a(l[1]),l[2]):hl;return o}var sr=MD();function v1(e,t){return t.forEach(function(r){r&&typeof r!="string"&&!Array.isArray(r)&&Object.keys(r).forEach(function(n){if(n!=="default"&&!(n in e)){var o=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:function(){return r[n]}})}})}),Object.freeze(e)}function BD(e,t){let r=Object.keys(e),n=t===null?r:r.sort(t);if(Object.getOwnPropertySymbols)for(let o of Object.getOwnPropertySymbols(e))Object.getOwnPropertyDescriptor(e,o).enumerable&&n.push(o);return n}function aa(e,t,r,n,o,a,i=": "){let l="",s=0,u=e.next();if(!u.done){l+=t.spacingOuter;let c=r+t.indent;for(;!u.done;){if(l+=c,s++===t.maxWidth){l+="…";break}let d=a(u.value[0],t,c,n,o),f=a(u.value[1],t,c,n,o);l+=d+i+f,u=e.next(),u.done?t.min||(l+=","):l+=`,${t.spacingInner}`}l+=t.spacingOuter+r}return l}function cf(e,t,r,n,o,a){let i="",l=0,s=e.next();if(!s.done){i+=t.spacingOuter;let u=r+t.indent;for(;!s.done;){if(i+=u,l++===t.maxWidth){i+="…";break}i+=a(s.value,t,u,n,o),s=e.next(),s.done?t.min||(i+=","):i+=`,${t.spacingInner}`}i+=t.spacingOuter+r}return i}function _i(e,t,r,n,o,a){let i="";e=e instanceof ArrayBuffer?new DataView(e):e;let l=u=>u instanceof DataView,s=l(e)?e.byteLength:e.length;if(s>0){i+=t.spacingOuter;let u=r+t.indent;for(let c=0;c<s;c++){if(i+=u,c===t.maxWidth){i+="…";break}(l(e)||c in e)&&(i+=a(l(e)?e.getInt8(c):e[c],t,u,n,o)),c<s-1?i+=`,${t.spacingInner}`:t.min||(i+=",")}i+=t.spacingOuter+r}return i}function df(e,t,r,n,o,a){let i="",l=BD(e,t.compareKeys);if(l.length>0){i+=t.spacingOuter;let s=r+t.indent;for(let u=0;u<l.length;u++){let c=l[u],d=a(c,t,s,n,o),f=a(e[c],t,s,n,o);i+=`${s+d}: ${f}`,u<l.length-1?i+=`,${t.spacingInner}`:t.min||(i+=",")}i+=t.spacingOuter+r}return i}var jD=typeof Symbol=="function"&&Symbol.for?Symbol.for("jest.asymmetricMatcher"):1267621,is=" ",HD=(e,t,r,n,o,a)=>{let i=e.toString();if(i==="ArrayContaining"||i==="ArrayNotContaining")return++n>t.maxDepth?`[${i}]`:`${i+is}[${_i(e.sample,t,r,n,o,a)}]`;if(i==="ObjectContaining"||i==="ObjectNotContaining")return++n>t.maxDepth?`[${i}]`:`${i+is}{${df(e.sample,t,r,n,o,a)}}`;if(i==="StringMatching"||i==="StringNotMatching"||i==="StringContaining"||i==="StringNotContaining")return i+is+a(e.sample,t,r,n,o);if(typeof e.toAsymmetricMatcher!="function")throw new TypeError(`Asymmetric matcher ${e.constructor.name} does not implement toAsymmetricMatcher()`);return e.toAsymmetricMatcher()},UD=e=>e&&e.$$typeof===jD,zD={serialize:HD,test:UD},KD=" ",S1=new Set(["DOMStringMap","NamedNodeMap"]),GD=/^(?:HTML\w*Collection|NodeList)$/;function WD(e){return S1.has(e)||GD.test(e)}var VD=e=>e&&e.constructor&&!!e.constructor.name&&WD(e.constructor.name);function qD(e){return e.constructor.name==="NamedNodeMap"}var YD=(e,t,r,n,o,a)=>{let i=e.constructor.name;return++n>t.maxDepth?`[${i}]`:(t.min?"":i+KD)+(S1.has(i)?`{${df(qD(e)?[...e].reduce((l,s)=>(l[s.name]=s.value,l),{}):{...e},t,r,n,o,a)}}`:`[${_i([...e],t,r,n,o,a)}]`)},XD={serialize:YD,test:VD};function x1(e){return e.replaceAll("<","<").replaceAll(">",">")}function ff(e,t,r,n,o,a,i){let l=n+r.indent,s=r.colors;return e.map(u=>{let c=t[u],d=i(c,r,l,o,a);return typeof c!="string"&&(d.includes(`
|
|
79
|
+
`)&&(d=r.spacingOuter+l+d+r.spacingOuter+n),d=`{${d}}`),`${r.spacingInner+n+s.prop.open+u+s.prop.close}=${s.value.open}${d}${s.value.close}`}).join("")}function pf(e,t,r,n,o,a){return e.map(i=>t.spacingOuter+r+(typeof i=="string"?$1(i,t):a(i,t,r,n,o))).join("")}function $1(e,t){let r=t.colors.content;return r.open+x1(e)+r.close}function JD(e,t){let r=t.colors.comment;return`${r.open}<!--${x1(e)}-->${r.close}`}function hf(e,t,r,n,o){let a=n.colors.tag;return`${a.open}<${e}${t&&a.close+t+n.spacingOuter+o+a.open}${r?`>${a.close}${r}${n.spacingOuter}${o}${a.open}</${e}`:`${t&&!n.min?"":" "}/`}>${a.close}`}function gf(e,t){let r=t.colors.tag;return`${r.open}<${e}${r.close} …${r.open} />${r.close}`}var ZD=1,w1=3,C1=8,_1=11,QD=/^(?:(?:HTML|SVG)\w*)?Element$/;function e2(e){try{return typeof e.hasAttribute=="function"&&e.hasAttribute("is")}catch{return!1}}function t2(e){let t=e.constructor.name,{nodeType:r,tagName:n}=e,o=typeof n=="string"&&n.includes("-")||e2(e);return r===ZD&&(QD.test(t)||o)||r===w1&&t==="Text"||r===C1&&t==="Comment"||r===_1&&t==="DocumentFragment"}var r2=e=>{var t;return(e==null||(t=e.constructor)===null||t===void 0?void 0:t.name)&&t2(e)};function n2(e){return e.nodeType===w1}function o2(e){return e.nodeType===C1}function ls(e){return e.nodeType===_1}var a2=(e,t,r,n,o,a)=>{if(n2(e))return $1(e.data,t);if(o2(e))return JD(e.data,t);let i=ls(e)?"DocumentFragment":e.tagName.toLowerCase();return++n>t.maxDepth?gf(i,t):hf(i,ff(ls(e)?[]:Array.from(e.attributes,l=>l.name).sort(),ls(e)?{}:[...e.attributes].reduce((l,s)=>(l[s.name]=s.value,l),{}),t,r+t.indent,n,o,a),pf(Array.prototype.slice.call(e.childNodes||e.children),t,r+t.indent,n,o,a),t,r)},i2={serialize:a2,test:r2},l2="@@__IMMUTABLE_ITERABLE__@@",s2="@@__IMMUTABLE_LIST__@@",u2="@@__IMMUTABLE_KEYED__@@",c2="@@__IMMUTABLE_MAP__@@",vh="@@__IMMUTABLE_ORDERED__@@",d2="@@__IMMUTABLE_RECORD__@@",f2="@@__IMMUTABLE_SEQ__@@",p2="@@__IMMUTABLE_SET__@@",h2="@@__IMMUTABLE_STACK__@@",Bn=e=>`Immutable.${e}`,gl=e=>`[${e}]`,Uo=" ",Sh="…";function g2(e,t,r,n,o,a,i){return++n>t.maxDepth?gl(Bn(i)):`${Bn(i)+Uo}{${aa(e.entries(),t,r,n,o,a)}}`}function m2(e){let t=0;return{next(){if(t<e._keys.length){let r=e._keys[t++];return{done:!1,value:[r,e.get(r)]}}return{done:!0,value:void 0}}}}function y2(e,t,r,n,o,a){let i=Bn(e._name||"Record");return++n>t.maxDepth?gl(i):`${i+Uo}{${aa(m2(e),t,r,n,o,a)}}`}function b2(e,t,r,n,o,a){let i=Bn("Seq");return++n>t.maxDepth?gl(i):e[u2]?`${i+Uo}{${e._iter||e._object?aa(e.entries(),t,r,n,o,a):Sh}}`:`${i+Uo}[${e._iter||e._array||e._collection||e._iterable?cf(e.values(),t,r,n,o,a):Sh}]`}function ss(e,t,r,n,o,a,i){return++n>t.maxDepth?gl(Bn(i)):`${Bn(i)+Uo}[${cf(e.values(),t,r,n,o,a)}]`}var E2=(e,t,r,n,o,a)=>e[c2]?g2(e,t,r,n,o,a,e[vh]?"OrderedMap":"Map"):e[s2]?ss(e,t,r,n,o,a,"List"):e[p2]?ss(e,t,r,n,o,a,e[vh]?"OrderedSet":"Set"):e[h2]?ss(e,t,r,n,o,a,"Stack"):e[f2]?b2(e,t,r,n,o,a):y2(e,t,r,n,o,a),v2=e=>e&&(e[l2]===!0||e[d2]===!0),S2={serialize:E2,test:v2};function T1(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var xh={exports:{}},ge={},$h;function x2(){if($h)return ge;$h=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),i=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");function m(y){if(typeof y=="object"&&y!==null){var E=y.$$typeof;switch(E){case e:switch(y=y.type,y){case r:case o:case n:case s:case u:case f:return y;default:switch(y=y&&y.$$typeof,y){case i:case l:case d:case c:return y;case a:return y;default:return E}}case t:return E}}}return ge.ContextConsumer=a,ge.ContextProvider=i,ge.Element=e,ge.ForwardRef=l,ge.Fragment=r,ge.Lazy=d,ge.Memo=c,ge.Portal=t,ge.Profiler=o,ge.StrictMode=n,ge.Suspense=s,ge.SuspenseList=u,ge.isContextConsumer=function(y){return m(y)===a},ge.isContextProvider=function(y){return m(y)===i},ge.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===e},ge.isForwardRef=function(y){return m(y)===l},ge.isFragment=function(y){return m(y)===r},ge.isLazy=function(y){return m(y)===d},ge.isMemo=function(y){return m(y)===c},ge.isPortal=function(y){return m(y)===t},ge.isProfiler=function(y){return m(y)===o},ge.isStrictMode=function(y){return m(y)===n},ge.isSuspense=function(y){return m(y)===s},ge.isSuspenseList=function(y){return m(y)===u},ge.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===r||y===o||y===n||y===s||y===u||typeof y=="object"&&y!==null&&(y.$$typeof===d||y.$$typeof===c||y.$$typeof===i||y.$$typeof===a||y.$$typeof===l||y.$$typeof===g||y.getModuleId!==void 0)},ge.typeOf=m,ge}var wh;function $2(){return wh||(wh=1,xh.exports=x2()),xh.exports}var O1=$2(),w2=T1(O1),C2=v1({__proto__:null,default:w2},[O1]),Ch={exports:{}},he={},_h;function _2(){if(_h)return he;_h=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),l=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),m;m=Symbol.for("react.module.reference");function y(E){if(typeof E=="object"&&E!==null){var b=E.$$typeof;switch(b){case e:switch(E=E.type,E){case r:case o:case n:case u:case c:return E;default:switch(E=E&&E.$$typeof,E){case l:case i:case s:case f:case d:case a:return E;default:return b}}case t:return b}}}return he.ContextConsumer=i,he.ContextProvider=a,he.Element=e,he.ForwardRef=s,he.Fragment=r,he.Lazy=f,he.Memo=d,he.Portal=t,he.Profiler=o,he.StrictMode=n,he.Suspense=u,he.SuspenseList=c,he.isAsyncMode=function(){return!1},he.isConcurrentMode=function(){return!1},he.isContextConsumer=function(E){return y(E)===i},he.isContextProvider=function(E){return y(E)===a},he.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===e},he.isForwardRef=function(E){return y(E)===s},he.isFragment=function(E){return y(E)===r},he.isLazy=function(E){return y(E)===f},he.isMemo=function(E){return y(E)===d},he.isPortal=function(E){return y(E)===t},he.isProfiler=function(E){return y(E)===o},he.isStrictMode=function(E){return y(E)===n},he.isSuspense=function(E){return y(E)===u},he.isSuspenseList=function(E){return y(E)===c},he.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===r||E===o||E===n||E===u||E===c||E===g||typeof E=="object"&&E!==null&&(E.$$typeof===f||E.$$typeof===d||E.$$typeof===a||E.$$typeof===i||E.$$typeof===s||E.$$typeof===m||E.getModuleId!==void 0)},he.typeOf=y,he}var Th;function T2(){return Th||(Th=1,Ch.exports=_2()),Ch.exports}var A1=T2(),O2=T1(A1),A2=v1({__proto__:null,default:O2},[A1]),R2=["isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isMemo","isPortal","isProfiler","isStrictMode","isSuspense","isSuspenseList","isValidElementType"],Kr=Object.fromEntries(R2.map(e=>[e,t=>A2[e](t)||C2[e](t)]));function R1(e,t=[]){if(Array.isArray(e))for(let r of e)R1(r,t);else e!=null&&e!==!1&&e!==""&&t.push(e);return t}function Oh(e){let t=e.type;if(typeof t=="string")return t;if(typeof t=="function")return t.displayName||t.name||"Unknown";if(Kr.isFragment(e))return"React.Fragment";if(Kr.isSuspense(e))return"React.Suspense";if(typeof t=="object"&&t!==null){if(Kr.isContextProvider(e))return"Context.Provider";if(Kr.isContextConsumer(e))return"Context.Consumer";if(Kr.isForwardRef(e)){if(t.displayName)return t.displayName;let r=t.render.displayName||t.render.name||"";return r===""?"ForwardRef":`ForwardRef(${r})`}if(Kr.isMemo(e)){let r=t.displayName||t.type.displayName||t.type.name||"";return r===""?"Memo":`Memo(${r})`}}return"UNDEFINED"}function D2(e){let{props:t}=e;return Object.keys(t).filter(r=>r!=="children"&&t[r]!==void 0).sort()}var P2=(e,t,r,n,o,a)=>++n>t.maxDepth?gf(Oh(e),t):hf(Oh(e),ff(D2(e),e.props,t,r+t.indent,n,o,a),pf(R1(e.props.children),t,r+t.indent,n,o,a),t,r),F2=e=>e!=null&&Kr.isElement(e),I2={serialize:P2,test:F2},L2=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.test.json"):245830487;function k2(e){let{props:t}=e;return t?Object.keys(t).filter(r=>t[r]!==void 0).sort():[]}var N2=(e,t,r,n,o,a)=>++n>t.maxDepth?gf(e.type,t):hf(e.type,e.props?ff(k2(e),e.props,t,r+t.indent,n,o,a):"",e.children?pf(e.children,t,r+t.indent,n,o,a):"",t,r),M2=e=>e&&e.$$typeof===L2,B2={serialize:N2,test:M2},D1=Object.prototype.toString,j2=Date.prototype.toISOString,H2=Error.prototype.toString,Ah=RegExp.prototype.toString;function ri(e){return typeof e.constructor=="function"&&e.constructor.name||"Object"}function U2(e){return typeof window<"u"&&e===window}var z2=/^Symbol\((.*)\)(.*)$/,K2=/\n/g,P1=class extends Error{constructor(e,t){super(e),this.stack=t,this.name=this.constructor.name}};function G2(e){return e==="[object Array]"||e==="[object ArrayBuffer]"||e==="[object DataView]"||e==="[object Float32Array]"||e==="[object Float64Array]"||e==="[object Int8Array]"||e==="[object Int16Array]"||e==="[object Int32Array]"||e==="[object Uint8Array]"||e==="[object Uint8ClampedArray]"||e==="[object Uint16Array]"||e==="[object Uint32Array]"}function W2(e){return Object.is(e,-0)?"-0":String(e)}function V2(e){return`${e}n`}function Rh(e,t){return t?`[Function ${e.name||"anonymous"}]`:"[Function]"}function Dh(e){return String(e).replace(z2,"Symbol($1)")}function Ph(e){return`[${H2.call(e)}]`}function F1(e,t,r,n){if(e===!0||e===!1)return`${e}`;if(e===void 0)return"undefined";if(e===null)return"null";let o=typeof e;if(o==="number")return W2(e);if(o==="bigint")return V2(e);if(o==="string")return n?`"${e.replaceAll(/"|\\/g,"\\$&")}"`:`"${e}"`;if(o==="function")return Rh(e,t);if(o==="symbol")return Dh(e);let a=D1.call(e);return a==="[object WeakMap]"?"WeakMap {}":a==="[object WeakSet]"?"WeakSet {}":a==="[object Function]"||a==="[object GeneratorFunction]"?Rh(e,t):a==="[object Symbol]"?Dh(e):a==="[object Date]"?Number.isNaN(+e)?"Date { NaN }":j2.call(e):a==="[object Error]"?Ph(e):a==="[object RegExp]"?r?Ah.call(e).replaceAll(/[$()*+.?[\\\]^{|}]/g,"\\$&"):Ah.call(e):e instanceof Error?Ph(e):null}function I1(e,t,r,n,o,a){if(o.includes(e))return"[Circular]";o=[...o],o.push(e);let i=++n>t.maxDepth,l=t.min;if(t.callToJSON&&!i&&e.toJSON&&typeof e.toJSON=="function"&&!a)return xr(e.toJSON(),t,r,n,o,!0);let s=D1.call(e);return s==="[object Arguments]"?i?"[Arguments]":`${l?"":"Arguments "}[${_i(e,t,r,n,o,xr)}]`:G2(s)?i?`[${e.constructor.name}]`:`${l||!t.printBasicPrototype&&e.constructor.name==="Array"?"":`${e.constructor.name} `}[${_i(e,t,r,n,o,xr)}]`:s==="[object Map]"?i?"[Map]":`Map {${aa(e.entries(),t,r,n,o,xr," => ")}}`:s==="[object Set]"?i?"[Set]":`Set {${cf(e.values(),t,r,n,o,xr)}}`:i||U2(e)?`[${ri(e)}]`:`${l||!t.printBasicPrototype&&ri(e)==="Object"?"":`${ri(e)} `}{${df(e,t,r,n,o,xr)}}`}var q2={test:e=>e&&e instanceof Error,serialize(e,t,r,n,o,a){if(o.includes(e))return"[Circular]";o=[...o,e];let i=++n>t.maxDepth,{message:l,cause:s,...u}=e,c={message:l,...typeof s<"u"?{cause:s}:{},...e instanceof AggregateError?{errors:e.errors}:{},...u},d=e.name!=="Error"?e.name:ri(e);return i?`[${d}]`:`${d} {${aa(Object.entries(c).values(),t,r,n,o,a)}}`}};function Y2(e){return e.serialize!=null}function L1(e,t,r,n,o,a){let i;try{i=Y2(e)?e.serialize(t,r,n,o,a,xr):e.print(t,l=>xr(l,r,n,o,a),l=>{let s=n+r.indent;return s+l.replaceAll(K2,`
|
|
80
|
+
${s}`)},{edgeSpacing:r.spacingOuter,min:r.min,spacing:r.spacingInner},r.colors)}catch(l){throw new P1(l.message,l.stack)}if(typeof i!="string")throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof i}".`);return i}function k1(e,t){for(let r of e)try{if(r.test(t))return r}catch(n){throw new P1(n.message,n.stack)}return null}function xr(e,t,r,n,o,a){let i=k1(t.plugins,e);if(i!==null)return L1(i,e,t,r,n,o);let l=F1(e,t.printFunctionName,t.escapeRegex,t.escapeString);return l!==null?l:I1(e,t,r,n,o,a)}var mf={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},N1=Object.keys(mf),At={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:Number.POSITIVE_INFINITY,maxWidth:Number.POSITIVE_INFINITY,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:mf};function X2(e){for(let t of Object.keys(e))if(!Object.prototype.hasOwnProperty.call(At,t))throw new Error(`pretty-format: Unknown option "${t}".`);if(e.min&&e.indent!==void 0&&e.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.')}function J2(){return N1.reduce((e,t)=>{let r=mf[t],n=r&&sr[r];if(n&&typeof n.close=="string"&&typeof n.open=="string")e[t]=n;else throw new Error(`pretty-format: Option "theme" has a key "${t}" whose value "${r}" is undefined in ansi-styles.`);return e},Object.create(null))}function Z2(){return N1.reduce((e,t)=>(e[t]={close:"",open:""},e),Object.create(null))}function M1(e){return e?.printFunctionName??At.printFunctionName}function B1(e){return e?.escapeRegex??At.escapeRegex}function j1(e){return e?.escapeString??At.escapeString}function Fh(e){return{callToJSON:e?.callToJSON??At.callToJSON,colors:e?.highlight?J2():Z2(),compareKeys:typeof e?.compareKeys=="function"||e?.compareKeys===null?e.compareKeys:At.compareKeys,escapeRegex:B1(e),escapeString:j1(e),indent:e?.min?"":Q2(e?.indent??At.indent),maxDepth:e?.maxDepth??At.maxDepth,maxWidth:e?.maxWidth??At.maxWidth,min:e?.min??At.min,plugins:e?.plugins??At.plugins,printBasicPrototype:e?.printBasicPrototype??!0,printFunctionName:M1(e),spacingInner:e?.min?" ":`
|
|
81
|
+
`,spacingOuter:e?.min?"":`
|
|
82
|
+
`}}function Q2(e){return Array.from({length:e+1}).join(" ")}function Vt(e,t){if(t&&(X2(t),t.plugins)){let n=k1(t.plugins,e);if(n!==null)return L1(n,e,Fh(t),"",0,[])}let r=F1(e,M1(t),B1(t),j1(t));return r!==null?r:I1(e,Fh(t),"",0,[])}var yf={AsymmetricMatcher:zD,DOMCollection:XD,DOMElement:i2,Immutable:S2,ReactElement:I2,ReactTestComponent:B2,Error:q2},Ih={bold:["1","22"],dim:["2","22"],italic:["3","23"],underline:["4","24"],inverse:["7","27"],hidden:["8","28"],strike:["9","29"],black:["30","39"],red:["31","39"],green:["32","39"],yellow:["33","39"],blue:["34","39"],magenta:["35","39"],cyan:["36","39"],white:["37","39"],brightblack:["30;1","39"],brightred:["31;1","39"],brightgreen:["32;1","39"],brightyellow:["33;1","39"],brightblue:["34;1","39"],brightmagenta:["35;1","39"],brightcyan:["36;1","39"],brightwhite:["37;1","39"],grey:["90","39"]},e3={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},jn="…";function t3(e,t){let r=Ih[e3[t]]||Ih[t]||"";return r?`\x1B[${r[0]}m${String(e)}\x1B[${r[1]}m`:String(e)}function r3({showHidden:e=!1,depth:t=2,colors:r=!1,customInspect:n=!0,showProxy:o=!1,maxArrayLength:a=1/0,breakLength:i=1/0,seen:l=[],truncate:s=1/0,stylize:u=String}={},c){let d={showHidden:!!e,depth:Number(t),colors:!!r,customInspect:!!n,showProxy:!!o,maxArrayLength:Number(a),breakLength:Number(i),truncate:Number(s),seen:l,inspect:c,stylize:u};return d.colors&&(d.stylize=t3),d}function n3(e){return e>="\uD800"&&e<="\uDBFF"}function Dr(e,t,r=jn){e=String(e);let n=r.length,o=e.length;if(n>t&&o>n)return r;if(o>t&&o>n){let a=t-n;return a>0&&n3(e[a-1])&&(a=a-1),`${e.slice(0,a)}${r}`}return e}function It(e,t,r,n=", "){r=r||t.inspect;let o=e.length;if(o===0)return"";let a=t.truncate,i="",l="",s="";for(let u=0;u<o;u+=1){let c=u+1===e.length,d=u+2===e.length;s=`${jn}(${e.length-u})`;let f=e[u];t.truncate=a-i.length-(c?0:n.length);let g=l||r(f,t)+(c?"":n),m=i.length+g.length,y=m+s.length;if(c&&m>a&&i.length+s.length<=a||!c&&!d&&y>a||(l=c?"":r(e[u+1],t)+(d?"":n),!c&&d&&y>a&&m+l.length>a))break;if(i+=g,!c&&!d&&m+l.length>=a){s=`${jn}(${e.length-u-1})`;break}s=""}return`${i}${s}`}function o3(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}function zo([e,t],r){return r.truncate-=2,typeof e=="string"?e=o3(e):typeof e!="number"&&(e=`[${r.inspect(e,r)}]`),r.truncate-=e.length,t=r.inspect(t,r),`${e}: ${t}`}function a3(e,t){let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return"[]";t.truncate-=4;let n=It(e,t);t.truncate-=n.length;let o="";return r.length&&(o=It(r.map(a=>[a,e[a]]),t,zo)),`[ ${n}${o?`, ${o}`:""} ]`}var i3=e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name;function rr(e,t){let r=i3(e);t.truncate-=r.length+4;let n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return`${r}[]`;let o="";for(let i=0;i<e.length;i++){let l=`${t.stylize(Dr(e[i],t.truncate),"number")}${i===e.length-1?"":", "}`;if(t.truncate-=l.length,e[i]!==e.length&&t.truncate<=3){o+=`${jn}(${e.length-e[i]+1})`;break}o+=l}let a="";return n.length&&(a=It(n.map(i=>[i,e[i]]),t,zo)),`${r}[ ${o}${a?`, ${a}`:""} ]`}function l3(e,t){let r=e.toJSON();if(r===null)return"Invalid Date";let n=r.split("T"),o=n[0];return t.stylize(`${o}T${Dr(n[1],t.truncate-o.length-1)}`,"date")}function Lh(e,t){let r=e[Symbol.toStringTag]||"Function",n=e.name;return n?t.stylize(`[${r} ${Dr(n,t.truncate-11)}]`,"special"):t.stylize(`[${r}]`,"special")}function s3([e,t],r){return r.truncate-=4,e=r.inspect(e,r),r.truncate-=e.length,t=r.inspect(t,r),`${e} => ${t}`}function u3(e){let t=[];return e.forEach((r,n)=>{t.push([n,r])}),t}function c3(e,t){return e.size===0?"Map{}":(t.truncate-=7,`Map{ ${It(u3(e),t,s3)} }`)}var d3=Number.isNaN||(e=>e!==e);function kh(e,t){return d3(e)?t.stylize("NaN","number"):e===1/0?t.stylize("Infinity","number"):e===-1/0?t.stylize("-Infinity","number"):e===0?t.stylize(1/e===1/0?"+0":"-0","number"):t.stylize(Dr(String(e),t.truncate),"number")}function Nh(e,t){let r=Dr(e.toString(),t.truncate-1);return r!==jn&&(r+="n"),t.stylize(r,"bigint")}function f3(e,t){let r=e.toString().split("/")[2],n=t.truncate-(2+r.length),o=e.source;return t.stylize(`/${Dr(o,n)}/${r}`,"regexp")}function p3(e){let t=[];return e.forEach(r=>{t.push(r)}),t}function h3(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${It(p3(e),t)} }`)}var Mh=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),g3={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},m3=16;function y3(e){return g3[e]||`\\u${`0000${e.charCodeAt(0).toString(m3)}`.slice(-4)}`}function Bh(e,t){return Mh.test(e)&&(e=e.replace(Mh,y3)),t.stylize(`'${Dr(e,t.truncate-2)}'`,"string")}function jh(e){return"description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}var H1=()=>"Promise{…}";try{let{getPromiseDetails:e,kPending:t,kRejected:r}=process.binding("util");Array.isArray(e(Promise.resolve()))&&(H1=(n,o)=>{let[a,i]=e(n);return a===t?"Promise{<pending>}":`Promise${a===r?"!":""}{${o.inspect(i,o)}}`})}catch{}var b3=H1;function ni(e,t){let r=Object.getOwnPropertyNames(e),n=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(r.length===0&&n.length===0)return"{}";if(t.truncate-=4,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);let o=It(r.map(l=>[l,e[l]]),t,zo),a=It(n.map(l=>[l,e[l]]),t,zo);t.seen.pop();let i="";return o&&a&&(i=", "),`{ ${o}${i}${a} }`}var us=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function E3(e,t){let r="";return us&&us in e&&(r=e[us]),r=r||e.constructor.name,(!r||r==="_class")&&(r="<Anonymous Class>"),t.truncate-=r.length,`${r}${ni(e,t)}`}function v3(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${It(e,t)} ]`)}var S3=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function x3(e,t){let r=Object.getOwnPropertyNames(e).filter(i=>S3.indexOf(i)===-1),n=e.name;t.truncate-=n.length;let o="";if(typeof e.message=="string"?o=Dr(e.message,t.truncate):r.unshift("message"),o=o?`: ${o}`:"",t.truncate-=o.length+5,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);let a=It(r.map(i=>[i,e[i]]),t,zo);return`${n}${o}${a?` { ${a} }`:""}`}function $3([e,t],r){return r.truncate-=3,t?`${r.stylize(String(e),"yellow")}=${r.stylize(`"${t}"`,"string")}`:`${r.stylize(String(e),"yellow")}`}function Oc(e,t){return It(e,t,w3,`
|
|
83
|
+
`)}function w3(e,t){switch(e.nodeType){case 1:return U1(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}function U1(e,t){let r=e.getAttributeNames(),n=e.tagName.toLowerCase(),o=t.stylize(`<${n}`,"special"),a=t.stylize(">","special"),i=t.stylize(`</${n}>`,"special");t.truncate-=n.length*2+5;let l="";r.length>0&&(l+=" ",l+=It(r.map(c=>[c,e.getAttribute(c)]),t,$3," ")),t.truncate-=l.length;let s=t.truncate,u=Oc(e.children,t);return u&&u.length>s&&(u=`${jn}(${e.children.length})`),`${o}${l}${a}${u}${i}`}var C3=typeof Symbol=="function"&&typeof Symbol.for=="function",cs=C3?Symbol.for("chai/inspect"):"@@chai/inspect",ds=Symbol.for("nodejs.util.inspect.custom"),Hh=new WeakMap,Uh={},zh={undefined:(e,t)=>t.stylize("undefined","undefined"),null:(e,t)=>t.stylize("null","null"),boolean:(e,t)=>t.stylize(String(e),"boolean"),Boolean:(e,t)=>t.stylize(String(e),"boolean"),number:kh,Number:kh,bigint:Nh,BigInt:Nh,string:Bh,String:Bh,function:Lh,Function:Lh,symbol:jh,Symbol:jh,Array:a3,Date:l3,Map:c3,Set:h3,RegExp:f3,Promise:b3,WeakSet:(e,t)=>t.stylize("WeakSet{…}","special"),WeakMap:(e,t)=>t.stylize("WeakMap{…}","special"),Arguments:v3,Int8Array:rr,Uint8Array:rr,Uint8ClampedArray:rr,Int16Array:rr,Uint16Array:rr,Int32Array:rr,Uint32Array:rr,Float32Array:rr,Float64Array:rr,Generator:()=>"",DataView:()=>"",ArrayBuffer:()=>"",Error:x3,HTMLCollection:Oc,NodeList:Oc},_3=(e,t,r)=>cs in e&&typeof e[cs]=="function"?e[cs](t):ds in e&&typeof e[ds]=="function"?e[ds](t.depth,t):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&Hh.has(e.constructor)?Hh.get(e.constructor)(e,t):Uh[r]?Uh[r](e,t):"",T3=Object.prototype.toString;function Ac(e,t={}){let r=r3(t,Ac),{customInspect:n}=r,o=e===null?"null":typeof e;if(o==="object"&&(o=T3.call(e).slice(8,-1)),o in zh)return zh[o](e,r);if(n&&e){let i=_3(e,r,o);if(i)return typeof i=="string"?i:Ac(i,r)}let a=e?Object.getPrototypeOf(e):!1;return a===Object.prototype||a===null?ni(e,r):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?U1(e,r):"constructor"in e?e.constructor!==Object?E3(e,r):ni(e,r):e===Object(e)?ni(e,r):r.stylize(String(e),o)}var{AsymmetricMatcher:O3,DOMCollection:A3,DOMElement:R3,Immutable:D3,ReactElement:P3,ReactTestComponent:F3}=yf,Kh=[F3,P3,R3,A3,D3,O3];function Ko(e,t=10,{maxLength:r,...n}={}){let o=r??1e4,a;try{a=Vt(e,{maxDepth:t,escapeString:!1,plugins:Kh,...n})}catch{a=Vt(e,{callToJSON:!1,maxDepth:t,escapeString:!1,plugins:Kh,...n})}return a.length>=o&&t>1?Ko(e,Math.floor(Math.min(t,Number.MAX_SAFE_INTEGER)/2),{maxLength:r,...n}):a}var I3=/%[sdjifoOc%]/g;function L3(...e){if(typeof e[0]!="string"){let a=[];for(let i=0;i<e.length;i++)a.push(go(e[i],{depth:0,colors:!1}));return a.join(" ")}let t=e.length,r=1,n=e[0],o=String(n).replace(I3,a=>{if(a==="%%")return"%";if(r>=t)return a;switch(a){case"%s":{let i=e[r++];return typeof i=="bigint"?`${i.toString()}n`:typeof i=="number"&&i===0&&1/i<0?"-0":typeof i=="object"&&i!==null?typeof i.toString=="function"&&i.toString!==Object.prototype.toString?i.toString():go(i,{depth:0,colors:!1}):String(i)}case"%d":{let i=e[r++];return typeof i=="bigint"?`${i.toString()}n`:Number(i).toString()}case"%i":{let i=e[r++];return typeof i=="bigint"?`${i.toString()}n`:Number.parseInt(String(i)).toString()}case"%f":return Number.parseFloat(String(e[r++])).toString();case"%o":return go(e[r++],{showHidden:!0,showProxy:!0});case"%O":return go(e[r++]);case"%c":return r++,"";case"%j":try{return JSON.stringify(e[r++])}catch(i){let l=i.message;if(l.includes("circular structure")||l.includes("cyclic structures")||l.includes("cyclic object"))return"[Circular]";throw i}default:return a}});for(let a=e[r];r<t;a=e[++r])a===null||typeof a!="object"?o+=` ${a}`:o+=` ${go(a)}`;return o}function go(e,t={}){return t.truncate===0&&(t.truncate=Number.POSITIVE_INFINITY),Ac(e,t)}function k3(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function N3(e){return e===Object.prototype||e===Function.prototype||e===RegExp.prototype}function Rc(e){return Object.prototype.toString.apply(e).slice(8,-1)}function M3(e,t){let r=typeof t=="function"?t:n=>t.add(n);Object.getOwnPropertyNames(e).forEach(r),Object.getOwnPropertySymbols(e).forEach(r)}function z1(e){let t=new Set;return N3(e)?[]:(M3(e,t),Array.from(t))}var K1={forceWritable:!1};function Gh(e,t=K1){return Dc(e,new WeakMap,t)}function Dc(e,t,r=K1){let n,o;if(t.has(e))return t.get(e);if(Array.isArray(e)){for(o=Array.from({length:n=e.length}),t.set(e,o);n--;)o[n]=Dc(e[n],t,r);return o}if(Object.prototype.toString.call(e)==="[object Object]"){o=Object.create(Object.getPrototypeOf(e)),t.set(e,o);let a=z1(e);for(let i of a){let l=Object.getOwnPropertyDescriptor(e,i);if(!l)continue;let s=Dc(e[i],t,r);r.forceWritable?Object.defineProperty(o,i,{enumerable:l.enumerable,configurable:!0,writable:!0,value:s}):"get"in l?Object.defineProperty(o,i,{...l,get(){return s}}):Object.defineProperty(o,i,{...l,value:s})}return o}return e}var Ve=-1,je=1,Ce=0,xe=class{0;1;constructor(e,t){this[0]=e,this[1]=t}};function B3(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;let r=0,n=Math.min(e.length,t.length),o=n,a=0;for(;r<o;)e.substring(a,o)===t.substring(a,o)?(r=o,a=r):n=o,o=Math.floor((n-r)/2+r);return o}function G1(e,t){if(!e||!t||e.charAt(e.length-1)!==t.charAt(t.length-1))return 0;let r=0,n=Math.min(e.length,t.length),o=n,a=0;for(;r<o;)e.substring(e.length-o,e.length-a)===t.substring(t.length-o,t.length-a)?(r=o,a=r):n=o,o=Math.floor((n-r)/2+r);return o}function Wh(e,t){let r=e.length,n=t.length;if(r===0||n===0)return 0;r>n?e=e.substring(r-n):r<n&&(t=t.substring(0,r));let o=Math.min(r,n);if(e===t)return o;let a=0,i=1;for(;;){let l=e.substring(o-i),s=t.indexOf(l);if(s===-1)return a;i+=s,(s===0||e.substring(o-i)===t.substring(0,i))&&(a=i,i++)}}function j3(e){let t=!1,r=[],n=0,o=null,a=0,i=0,l=0,s=0,u=0;for(;a<e.length;)e[a][0]===Ce?(r[n++]=a,i=s,l=u,s=0,u=0,o=e[a][1]):(e[a][0]===je?s+=e[a][1].length:u+=e[a][1].length,o&&o.length<=Math.max(i,l)&&o.length<=Math.max(s,u)&&(e.splice(r[n-1],0,new xe(Ve,o)),e[r[n-1]+1][0]=je,n--,n--,a=n>0?r[n-1]:-1,i=0,l=0,s=0,u=0,o=null,t=!0)),a++;for(t&&W1(e),z3(e),a=1;a<e.length;){if(e[a-1][0]===Ve&&e[a][0]===je){let c=e[a-1][1],d=e[a][1],f=Wh(c,d),g=Wh(d,c);f>=g?(f>=c.length/2||f>=d.length/2)&&(e.splice(a,0,new xe(Ce,d.substring(0,f))),e[a-1][1]=c.substring(0,c.length-f),e[a+1][1]=d.substring(f),a++):(g>=c.length/2||g>=d.length/2)&&(e.splice(a,0,new xe(Ce,c.substring(0,g))),e[a-1][0]=je,e[a-1][1]=d.substring(0,d.length-g),e[a+1][0]=Ve,e[a+1][1]=c.substring(g),a++),a++}a++}}var Vh=/[^a-z0-9]/i,qh=/\s/,Yh=/[\r\n]/,H3=/\n\r?\n$/,U3=/^\r?\n\r?\n/;function z3(e){let t=1;for(;t<e.length-1;){if(e[t-1][0]===Ce&&e[t+1][0]===Ce){let r=e[t-1][1],n=e[t][1],o=e[t+1][1],a=G1(r,n);if(a){let c=n.substring(n.length-a);r=r.substring(0,r.length-a),n=c+n.substring(0,n.length-a),o=c+o}let i=r,l=n,s=o,u=wa(r,n)+wa(n,o);for(;n.charAt(0)===o.charAt(0);){r+=n.charAt(0),n=n.substring(1)+o.charAt(0),o=o.substring(1);let c=wa(r,n)+wa(n,o);c>=u&&(u=c,i=r,l=n,s=o)}e[t-1][1]!==i&&(i?e[t-1][1]=i:(e.splice(t-1,1),t--),e[t][1]=l,s?e[t+1][1]=s:(e.splice(t+1,1),t--))}t++}}function W1(e){e.push(new xe(Ce,""));let t=0,r=0,n=0,o="",a="",i;for(;t<e.length;)switch(e[t][0]){case je:n++,a+=e[t][1],t++;break;case Ve:r++,o+=e[t][1],t++;break;case Ce:r+n>1?(r!==0&&n!==0&&(i=B3(a,o),i!==0&&(t-r-n>0&&e[t-r-n-1][0]===Ce?e[t-r-n-1][1]+=a.substring(0,i):(e.splice(0,0,new xe(Ce,a.substring(0,i))),t++),a=a.substring(i),o=o.substring(i)),i=G1(a,o),i!==0&&(e[t][1]=a.substring(a.length-i)+e[t][1],a=a.substring(0,a.length-i),o=o.substring(0,o.length-i))),t-=r+n,e.splice(t,r+n),o.length&&(e.splice(t,0,new xe(Ve,o)),t++),a.length&&(e.splice(t,0,new xe(je,a)),t++),t++):t!==0&&e[t-1][0]===Ce?(e[t-1][1]+=e[t][1],e.splice(t,1)):t++,n=0,r=0,o="",a="";break}e[e.length-1][1]===""&&e.pop();let l=!1;for(t=1;t<e.length-1;)e[t-1][0]===Ce&&e[t+1][0]===Ce&&(e[t][1].substring(e[t][1].length-e[t-1][1].length)===e[t-1][1]?(e[t][1]=e[t-1][1]+e[t][1].substring(0,e[t][1].length-e[t-1][1].length),e[t+1][1]=e[t-1][1]+e[t+1][1],e.splice(t-1,1),l=!0):e[t][1].substring(0,e[t+1][1].length)===e[t+1][1]&&(e[t-1][1]+=e[t+1][1],e[t][1]=e[t][1].substring(e[t+1][1].length)+e[t+1][1],e.splice(t+1,1),l=!0)),t++;l&&W1(e)}function wa(e,t){if(!e||!t)return 6;let r=e.charAt(e.length-1),n=t.charAt(0),o=r.match(Vh),a=n.match(Vh),i=o&&r.match(qh),l=a&&n.match(qh),s=i&&r.match(Yh),u=l&&n.match(Yh),c=s&&e.match(H3),d=u&&t.match(U3);return c||d?5:s||u?4:o&&!i&&l?3:i||l?2:o||a?1:0}var V1="Compared values have no visual difference.",K3="Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.",Ca={},Xh;function G3(){if(Xh)return Ca;Xh=1,Object.defineProperty(Ca,"__esModule",{value:!0}),Ca.default=f;let e="diff-sequences",t=0,r=(g,m,y,E,b)=>{let v=0;for(;g<m&&y<E&&b(g,y);)g+=1,y+=1,v+=1;return v},n=(g,m,y,E,b)=>{let v=0;for(;g<=m&&y<=E&&b(m,E);)m-=1,E-=1,v+=1;return v},o=(g,m,y,E,b,v,S)=>{let x=0,O=-g,w=v[x],T=w;v[x]+=r(w+1,m,E+w-O+1,y,b);let R=g<S?g:S;for(x+=1,O+=2;x<=R;x+=1,O+=2){if(x!==g&&T<v[x])w=v[x];else if(w=T+1,m<=w)return x-1;T=v[x],v[x]=w+r(w+1,m,E+w-O+1,y,b)}return S},a=(g,m,y,E,b,v,S)=>{let x=0,O=g,w=v[x],T=w;v[x]-=n(m,w-1,y,E+w-O-1,b);let R=g<S?g:S;for(x+=1,O-=2;x<=R;x+=1,O-=2){if(x!==g&&v[x]<T)w=v[x];else if(w=T-1,w<m)return x-1;T=v[x],v[x]=w-n(m,w-1,y,E+w-O-1,b)}return S},i=(g,m,y,E,b,v,S,x,O,w,T)=>{let R=E-m,I=y-m,P=b-E-I,_=-P-(g-1),N=-P+(g-1),B=t,$=g<x?g:x;for(let C=0,A=-g;C<=$;C+=1,A+=2){let D=C===0||C!==g&&B<S[C],L=D?S[C]:B,M=D?L:L+1,k=R+M-A,H=r(M+1,y,k+1,b,v),z=M+H;if(B=S[C],S[C]=z,_<=A&&A<=N){let K=(g-1-(A+P))/2;if(K<=w&&O[K]-1<=z){let U=R+L-(D?A+1:A-1),j=n(m,L,E,U,v),V=L-j,G=U-j,Z=V+1,Ee=G+1;T.nChangePreceding=g-1,g-1===Z+Ee-m-E?(T.aEndPreceding=m,T.bEndPreceding=E):(T.aEndPreceding=Z,T.bEndPreceding=Ee),T.nCommonPreceding=j,j!==0&&(T.aCommonPreceding=Z,T.bCommonPreceding=Ee),T.nCommonFollowing=H,H!==0&&(T.aCommonFollowing=M+1,T.bCommonFollowing=k+1);let Le=z+1,J=k+H+1;return T.nChangeFollowing=g-1,g-1===y+b-Le-J?(T.aStartFollowing=y,T.bStartFollowing=b):(T.aStartFollowing=Le,T.bStartFollowing=J),!0}}}return!1},l=(g,m,y,E,b,v,S,x,O,w,T)=>{let R=b-y,I=y-m,P=b-E-I,_=P-g,N=P+g,B=t,$=g<w?g:w;for(let C=0,A=g;C<=$;C+=1,A-=2){let D=C===0||C!==g&&O[C]<B,L=D?O[C]:B,M=D?L:L-1,k=R+M-A,H=n(m,M-1,E,k-1,v),z=M-H;if(B=O[C],O[C]=z,_<=A&&A<=N){let K=(g+(A-P))/2;if(K<=x&&z-1<=S[K]){let U=k-H;if(T.nChangePreceding=g,g===z+U-m-E?(T.aEndPreceding=m,T.bEndPreceding=E):(T.aEndPreceding=z,T.bEndPreceding=U),T.nCommonPreceding=H,H!==0&&(T.aCommonPreceding=z,T.bCommonPreceding=U),T.nChangeFollowing=g-1,g===1)T.nCommonFollowing=0,T.aStartFollowing=y,T.bStartFollowing=b;else{let j=R+L-(D?A-1:A+1),V=r(L,y,j,b,v);T.nCommonFollowing=V,V!==0&&(T.aCommonFollowing=L,T.bCommonFollowing=j);let G=L+V,Z=j+V;g-1===y+b-G-Z?(T.aStartFollowing=y,T.bStartFollowing=b):(T.aStartFollowing=G,T.bStartFollowing=Z)}return!0}}}return!1},s=(g,m,y,E,b,v,S,x,O)=>{let w=E-m,T=b-y,R=y-m,I=b-E,P=I-R,_=R,N=R;if(S[0]=m-1,x[0]=y,P%2===0){let B=(g||P)/2,$=(R+I)/2;for(let C=1;C<=$;C+=1)if(_=o(C,y,b,w,v,S,_),C<B)N=a(C,m,E,T,v,x,N);else if(l(C,m,y,E,b,v,S,_,x,N,O))return}else{let B=((g||P)+1)/2,$=(R+I+1)/2,C=1;for(_=o(C,y,b,w,v,S,_),C+=1;C<=$;C+=1)if(N=a(C-1,m,E,T,v,x,N),C<B)_=o(C,y,b,w,v,S,_);else if(i(C,m,y,E,b,v,S,_,x,N,O))return}throw new Error(`${e}: no overlap aStart=${m} aEnd=${y} bStart=${E} bEnd=${b}`)},u=(g,m,y,E,b,v,S,x,O,w)=>{if(b-E<y-m){if(v=!v,v&&S.length===1){let{foundSubsequence:K,isCommon:U}=S[0];S[1]={foundSubsequence:(j,V,G)=>{K(j,G,V)},isCommon:(j,V)=>U(V,j)}}let H=m,z=y;m=E,y=b,E=H,b=z}let{foundSubsequence:T,isCommon:R}=S[v?1:0];s(g,m,y,E,b,R,x,O,w);let{nChangePreceding:I,aEndPreceding:P,bEndPreceding:_,nCommonPreceding:N,aCommonPreceding:B,bCommonPreceding:$,nCommonFollowing:C,aCommonFollowing:A,bCommonFollowing:D,nChangeFollowing:L,aStartFollowing:M,bStartFollowing:k}=w;m<P&&E<_&&u(I,m,P,E,_,v,S,x,O,w),N!==0&&T(N,B,$),C!==0&&T(C,A,D),M<y&&k<b&&u(L,M,y,k,b,v,S,x,O,w)},c=(g,m)=>{if(typeof m!="number")throw new TypeError(`${e}: ${g} typeof ${typeof m} is not a number`);if(!Number.isSafeInteger(m))throw new RangeError(`${e}: ${g} value ${m} is not a safe integer`);if(m<0)throw new RangeError(`${e}: ${g} value ${m} is a negative integer`)},d=(g,m)=>{let y=typeof m;if(y!=="function")throw new TypeError(`${e}: ${g} typeof ${y} is not a function`)};function f(g,m,y,E){c("aLength",g),c("bLength",m),d("isCommon",y),d("foundSubsequence",E);let b=r(0,g,0,m,y);if(b!==0&&E(b,0,0),g!==b||m!==b){let v=b,S=b,x=n(v,g-1,S,m-1,y),O=g-x,w=m-x,T=b+x;g!==T&&m!==T&&u(0,v,O,S,w,!1,[{foundSubsequence:E,isCommon:y}],[t],[t],{aCommonFollowing:t,aCommonPreceding:t,aEndPreceding:t,aStartFollowing:t,bCommonFollowing:t,bCommonPreceding:t,bEndPreceding:t,bStartFollowing:t,nChangeFollowing:t,nChangePreceding:t,nCommonFollowing:t,nCommonPreceding:t}),x!==0&&E(x,O,w)}}return Ca}var W3=G3(),q1=k3(W3);function V3(e,t){return e.replace(/\s+$/,r=>t(r))}function bf(e,t,r,n,o,a){return e.length!==0?r(`${n} ${V3(e,o)}`):n!==" "?r(n):t&&a.length!==0?r(`${n} ${a}`):""}function Y1(e,t,{aColor:r,aIndicator:n,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:a}){return bf(e,t,r,n,o,a)}function X1(e,t,{bColor:r,bIndicator:n,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:a}){return bf(e,t,r,n,o,a)}function J1(e,t,{commonColor:r,commonIndicator:n,commonLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:a}){return bf(e,t,r,n,o,a)}function Jh(e,t,r,n,{patchColor:o}){return o(`@@ -${e+1},${t-e} +${r+1},${n-r} @@`)}function q3(e,t){let r=e.length,n=t.contextLines,o=n+n,a=r,i=!1,l=0,s=0;for(;s!==r;){let x=s;for(;s!==r&&e[s][0]===Ce;)s+=1;if(x!==s)if(x===0)s>n&&(a-=s-n,i=!0);else if(s===r){let O=s-x;O>n&&(a-=O-n,i=!0)}else{let O=s-x;O>o&&(a-=O-o,l+=1)}for(;s!==r&&e[s][0]!==Ce;)s+=1}let u=l!==0||i;l!==0?a+=l+1:i&&(a+=1);let c=a-1,d=[],f=0;u&&d.push("");let g=0,m=0,y=0,E=0,b=x=>{let O=d.length;d.push(J1(x,O===0||O===c,t)),y+=1,E+=1},v=x=>{let O=d.length;d.push(Y1(x,O===0||O===c,t)),y+=1},S=x=>{let O=d.length;d.push(X1(x,O===0||O===c,t)),E+=1};for(s=0;s!==r;){let x=s;for(;s!==r&&e[s][0]===Ce;)s+=1;if(x!==s)if(x===0){s>n&&(x=s-n,g=x,m=x,y=g,E=m);for(let O=x;O!==s;O+=1)b(e[O][1])}else if(s===r){let O=s-x>n?x+n:s;for(let w=x;w!==O;w+=1)b(e[w][1])}else{let O=s-x;if(O>o){let w=x+n;for(let R=x;R!==w;R+=1)b(e[R][1]);d[f]=Jh(g,y,m,E,t),f=d.length,d.push("");let T=O-o;g=y+T,m=E+T,y=g,E=m;for(let R=s-n;R!==s;R+=1)b(e[R][1])}else for(let w=x;w!==s;w+=1)b(e[w][1])}for(;s!==r&&e[s][0]===Ve;)v(e[s][1]),s+=1;for(;s!==r&&e[s][0]===je;)S(e[s][1]),s+=1}return u&&(d[f]=Jh(g,y,m,E,t)),d.join(`
|
|
84
|
+
`)}function Y3(e,t){return e.map((r,n,o)=>{let a=r[1],i=n===0||n===o.length-1;switch(r[0]){case Ve:return Y1(a,i,t);case je:return X1(a,i,t);default:return J1(a,i,t)}}).join(`
|
|
85
|
+
`)}var fs=e=>e,Z1=5,X3=0;function J3(){return{aAnnotation:"Expected",aColor:sr.green,aIndicator:"-",bAnnotation:"Received",bColor:sr.red,bIndicator:"+",changeColor:sr.inverse,changeLineTrailingSpaceColor:fs,commonColor:sr.dim,commonIndicator:" ",commonLineTrailingSpaceColor:fs,compareKeys:void 0,contextLines:Z1,emptyFirstOrLastLinePlaceholder:"",expand:!1,includeChangeCounts:!1,omitAnnotationLines:!1,patchColor:sr.yellow,printBasicPrototype:!1,truncateThreshold:X3,truncateAnnotation:"... Diff result is truncated",truncateAnnotationColor:fs}}function Z3(e){return e&&typeof e=="function"?e:void 0}function Q3(e){return typeof e=="number"&&Number.isSafeInteger(e)&&e>=0?e:Z1}function cn(e={}){return{...J3(),...e,compareKeys:Z3(e.compareKeys),contextLines:Q3(e.contextLines)}}function Cn(e){return e.length===1&&e[0].length===0}function eP(e){let t=0,r=0;return e.forEach(n=>{switch(n[0]){case Ve:t+=1;break;case je:r+=1;break}}),{a:t,b:r}}function tP({aAnnotation:e,aColor:t,aIndicator:r,bAnnotation:n,bColor:o,bIndicator:a,includeChangeCounts:i,omitAnnotationLines:l},s){if(l)return"";let u="",c="";if(i){let g=String(s.a),m=String(s.b),y=n.length-e.length,E=" ".repeat(Math.max(0,y)),b=" ".repeat(Math.max(0,-y)),v=m.length-g.length,S=" ".repeat(Math.max(0,v)),x=" ".repeat(Math.max(0,-v));u=`${E} ${r} ${S}${g}`,c=`${b} ${a} ${x}${m}`}let d=`${r} ${e}${u}`,f=`${a} ${n}${c}`;return`${t(d)}
|
|
86
|
+
${o(f)}
|
|
87
|
+
|
|
88
|
+
`}function Ef(e,t,r){return tP(r,eP(e))+(r.expand?Y3(e,r):q3(e,r))+(t?r.truncateAnnotationColor(`
|
|
89
|
+
${r.truncateAnnotation}`):"")}function ml(e,t,r){let n=cn(r),[o,a]=Q1(Cn(e)?[]:e,Cn(t)?[]:t,n);return Ef(o,a,n)}function rP(e,t,r,n,o){if(Cn(e)&&Cn(r)&&(e=[],r=[]),Cn(t)&&Cn(n)&&(t=[],n=[]),e.length!==r.length||t.length!==n.length)return ml(e,t,o);let[a,i]=Q1(r,n,o),l=0,s=0;return a.forEach(u=>{switch(u[0]){case Ve:u[1]=e[l],l+=1;break;case je:u[1]=t[s],s+=1;break;default:u[1]=t[s],l+=1,s+=1}}),Ef(a,i,cn(o))}function Q1(e,t,r){let n=r?.truncateThreshold??!1,o=Math.max(Math.floor(r?.truncateThreshold??0),0),a=n?Math.min(e.length,o):e.length,i=n?Math.min(t.length,o):t.length,l=a!==e.length||i!==t.length,s=(f,g)=>e[f]===t[g],u=[],c=0,d=0;for(q1(a,i,s,(f,g,m)=>{for(;c!==g;c+=1)u.push(new xe(Ve,e[c]));for(;d!==m;d+=1)u.push(new xe(je,t[d]));for(;f!==0;f-=1,c+=1,d+=1)u.push(new xe(Ce,t[d]))});c!==a;c+=1)u.push(new xe(Ve,e[c]));for(;d!==i;d+=1)u.push(new xe(je,t[d]));return[u,l]}function Zh(e){if(e===void 0)return"undefined";if(e===null)return"null";if(Array.isArray(e))return"array";if(typeof e=="boolean")return"boolean";if(typeof e=="function")return"function";if(typeof e=="number")return"number";if(typeof e=="string")return"string";if(typeof e=="bigint")return"bigint";if(typeof e=="object"){if(e!=null){if(e.constructor===RegExp)return"regexp";if(e.constructor===Map)return"map";if(e.constructor===Set)return"set";if(e.constructor===Date)return"date"}return"object"}else if(typeof e=="symbol")return"symbol";throw new Error(`value of unknown type: ${e}`)}function Qh(e){return e.includes(`\r
|
|
90
|
+
`)?`\r
|
|
91
|
+
`:`
|
|
92
|
+
`}function nP(e,t,r){let n=r?.truncateThreshold??!1,o=Math.max(Math.floor(r?.truncateThreshold??0),0),a=e.length,i=t.length;if(n){let f=e.includes(`
|
|
93
|
+
`),g=t.includes(`
|
|
94
|
+
`),m=Qh(e),y=Qh(t),E=f?`${e.split(m,o).join(m)}
|
|
95
|
+
`:e,b=g?`${t.split(y,o).join(y)}
|
|
96
|
+
`:t;a=E.length,i=b.length}let l=a!==e.length||i!==t.length,s=(f,g)=>e[f]===t[g],u=0,c=0,d=[];return q1(a,i,s,(f,g,m)=>{u!==g&&d.push(new xe(Ve,e.slice(u,g))),c!==m&&d.push(new xe(je,t.slice(c,m))),u=g+f,c=m+f,d.push(new xe(Ce,t.slice(m,c)))}),u!==a&&d.push(new xe(Ve,e.slice(u))),c!==i&&d.push(new xe(je,t.slice(c))),[d,l]}function oP(e,t,r){return t.reduce((n,o)=>n+(o[0]===Ce?o[1]:o[0]===e&&o[1].length!==0?r(o[1]):""),"")}var eg=class{op;line;lines;changeColor;constructor(e,t){this.op=e,this.line=[],this.lines=[],this.changeColor=t}pushSubstring(e){this.pushDiff(new xe(this.op,e))}pushLine(){this.lines.push(this.line.length!==1?new xe(this.op,oP(this.op,this.line,this.changeColor)):this.line[0][0]===this.op?this.line[0]:new xe(this.op,this.line[0][1])),this.line.length=0}isLineEmpty(){return this.line.length===0}pushDiff(e){this.line.push(e)}align(e){let t=e[1];if(t.includes(`
|
|
97
|
+
`)){let r=t.split(`
|
|
98
|
+
`),n=r.length-1;r.forEach((o,a)=>{a<n?(this.pushSubstring(o),this.pushLine()):o.length!==0&&this.pushSubstring(o)})}else this.pushDiff(e)}moveLinesTo(e){this.isLineEmpty()||this.pushLine(),e.push(...this.lines),this.lines.length=0}},aP=class{deleteBuffer;insertBuffer;lines;constructor(e,t){this.deleteBuffer=e,this.insertBuffer=t,this.lines=[]}pushDiffCommonLine(e){this.lines.push(e)}pushDiffChangeLines(e){let t=e[1].length===0;(!t||this.deleteBuffer.isLineEmpty())&&this.deleteBuffer.pushDiff(e),(!t||this.insertBuffer.isLineEmpty())&&this.insertBuffer.pushDiff(e)}flushChangeLines(){this.deleteBuffer.moveLinesTo(this.lines),this.insertBuffer.moveLinesTo(this.lines)}align(e){let t=e[0],r=e[1];if(r.includes(`
|
|
99
|
+
`)){let n=r.split(`
|
|
100
|
+
`),o=n.length-1;n.forEach((a,i)=>{if(i===0){let l=new xe(t,a);this.deleteBuffer.isLineEmpty()&&this.insertBuffer.isLineEmpty()?(this.flushChangeLines(),this.pushDiffCommonLine(l)):(this.pushDiffChangeLines(l),this.flushChangeLines())}else i<o?this.pushDiffCommonLine(new xe(t,a)):a.length!==0&&this.pushDiffChangeLines(new xe(t,a))})}else this.pushDiffChangeLines(e)}getLines(){return this.flushChangeLines(),this.lines}};function iP(e,t){let r=new eg(Ve,t),n=new eg(je,t),o=new aP(r,n);return e.forEach(a=>{switch(a[0]){case Ve:r.align(a);break;case je:n.align(a);break;default:o.align(a)}}),o.getLines()}function lP(e,t){if(t){let r=e.length-1;return e.some((n,o)=>n[0]===Ce&&(o!==r||n[1]!==`
|
|
101
|
+
`))}return e.some(r=>r[0]===Ce)}function sP(e,t,r){if(e!==t&&e.length!==0&&t.length!==0){let n=e.includes(`
|
|
102
|
+
`)||t.includes(`
|
|
103
|
+
`),[o,a]=eE(n?`${e}
|
|
104
|
+
`:e,n?`${t}
|
|
105
|
+
`:t,!0,r);if(lP(o,n)){let i=cn(r),l=iP(o,i.changeColor);return Ef(l,a,i)}}return ml(e.split(`
|
|
106
|
+
`),t.split(`
|
|
107
|
+
`),r)}function eE(e,t,r,n){let[o,a]=nP(e,t,n);return j3(o),[o,a]}function Pc(e,t){let{commonColor:r}=cn(t);return r(e)}var{AsymmetricMatcher:uP,DOMCollection:cP,DOMElement:dP,Immutable:fP,ReactElement:pP,ReactTestComponent:hP}=yf,tE=[hP,pP,dP,cP,fP,uP,yf.Error],Fc={maxDepth:20,plugins:tE},rE={callToJSON:!1,maxDepth:8,plugins:tE};function gP(e,t,r){if(Object.is(e,t))return"";let n=Zh(e),o=n,a=!1;if(n==="object"&&typeof e.asymmetricMatch=="function"){if(e.$$typeof!==Symbol.for("jest.asymmetricMatcher")||typeof e.getExpectedType!="function")return;o=e.getExpectedType(),a=o==="string"}if(o!==Zh(t)){let i=function(S){return S.length<=E?S:`${S.slice(0,E)}...`},{aAnnotation:l,aColor:s,aIndicator:u,bAnnotation:c,bColor:d,bIndicator:f}=cn(r),g=Ic(rE,r),m=Vt(e,g),y=Vt(t,g),E=1e5;m=i(m),y=i(y);let b=`${s(`${u} ${l}:`)}
|
|
108
|
+
${m}`,v=`${d(`${f} ${c}:`)}
|
|
109
|
+
${y}`;return`${b}
|
|
110
|
+
|
|
111
|
+
${v}`}if(!a)switch(n){case"string":return ml(e.split(`
|
|
112
|
+
`),t.split(`
|
|
113
|
+
`),r);case"boolean":case"number":return mP(e,t,r);case"map":return ps(tg(e),tg(t),r);case"set":return ps(rg(e),rg(t),r);default:return ps(e,t,r)}}function mP(e,t,r){let n=Vt(e,Fc),o=Vt(t,Fc);return n===o?"":ml(n.split(`
|
|
114
|
+
`),o.split(`
|
|
115
|
+
`),r)}function tg(e){return new Map(Array.from(e.entries()).sort())}function rg(e){return new Set(Array.from(e.values()).sort())}function ps(e,t,r){let n,o=!1;try{let i=Ic(Fc,r);n=ng(e,t,i,r)}catch{o=!0}let a=Pc(V1,r);if(n===void 0||n===a){let i=Ic(rE,r);n=ng(e,t,i,r),n!==a&&!o&&(n=`${Pc(K3,r)}
|
|
116
|
+
|
|
117
|
+
${n}`)}return n}function Ic(e,t){let{compareKeys:r,printBasicPrototype:n,maxDepth:o}=cn(t);return{...e,compareKeys:r,printBasicPrototype:n,maxDepth:o??e.maxDepth}}function ng(e,t,r,n){let o={...r,indent:0},a=Vt(e,o),i=Vt(t,o);if(a===i)return Pc(V1,n);{let l=Vt(e,r),s=Vt(t,r);return rP(l.split(`
|
|
118
|
+
`),s.split(`
|
|
119
|
+
`),a.split(`
|
|
120
|
+
`),i.split(`
|
|
121
|
+
`),n)}}var og=2e4;function ag(e){return Rc(e)==="Object"&&typeof e.asymmetricMatch=="function"}function ig(e,t){let r=Rc(e),n=Rc(t);return r===n&&(r==="Object"||r==="Array")}function yP(e,t,r){let{aAnnotation:n,bAnnotation:o}=cn(r);if(typeof t=="string"&&typeof e=="string"&&t.length>0&&e.length>0&&t.length<=og&&e.length<=og&&t!==e){if(t.includes(`
|
|
122
|
+
`)||e.includes(`
|
|
123
|
+
`))return sP(t,e,r);let[u]=eE(t,e),c=u.some(m=>m[0]===Ce),d=bP(n,o),f=d(n)+SP(lg(u,Ve,c)),g=d(o)+vP(lg(u,je,c));return`${f}
|
|
124
|
+
${g}`}let a=Gh(t,{forceWritable:!0}),i=Gh(e,{forceWritable:!0}),{replacedExpected:l,replacedActual:s}=nE(i,a);return gP(l,s,r)}function nE(e,t,r=new WeakSet,n=new WeakSet){return e instanceof Error&&t instanceof Error&&typeof e.cause<"u"&&typeof t.cause>"u"?(delete e.cause,{replacedActual:e,replacedExpected:t}):ig(e,t)?r.has(e)||n.has(t)?{replacedActual:e,replacedExpected:t}:(r.add(e),n.add(t),z1(t).forEach(o=>{let a=t[o],i=e[o];if(ag(a))a.asymmetricMatch(i)&&(e[o]=a);else if(ag(i))i.asymmetricMatch(a)&&(t[o]=i);else if(ig(i,a)){let l=nE(i,a,r,n);e[o]=l.replacedActual,t[o]=l.replacedExpected}}),{replacedActual:e,replacedExpected:t}):{replacedActual:e,replacedExpected:t}}function bP(...e){let t=e.reduce((r,n)=>n.length>r?n.length:r,0);return r=>`${r}: ${" ".repeat(t-r.length)}`}var EP="·";function oE(e){return e.replace(/\s+$/gm,t=>EP.repeat(t.length))}function vP(e){return sr.red(oE(Ko(e)))}function SP(e){return sr.green(oE(Ko(e)))}function lg(e,t,r){return e.reduce((n,o)=>n+(o[0]===Ce?o[1]:o[0]===t?r?sr.inverse(o[1]):o[1]:""),"")}var xP="@@__IMMUTABLE_RECORD__@@",$P="@@__IMMUTABLE_ITERABLE__@@";function wP(e){return e&&(e[$P]||e[xP])}var CP=Object.getPrototypeOf({});function sg(e){return e instanceof Error?`<unserializable>: ${e.message}`:typeof e=="string"?`<unserializable>: ${e}`:"<unserializable>"}function $r(e,t=new WeakMap){if(!e||typeof e=="string")return e;if(e instanceof Error&&"toJSON"in e&&typeof e.toJSON=="function"){let r=e.toJSON();return r&&r!==e&&typeof r=="object"&&(typeof e.message=="string"&&_a(()=>r.message??(r.message=e.message)),typeof e.stack=="string"&&_a(()=>r.stack??(r.stack=e.stack)),typeof e.name=="string"&&_a(()=>r.name??(r.name=e.name)),e.cause!=null&&_a(()=>r.cause??(r.cause=$r(e.cause,t)))),$r(r,t)}if(typeof e=="function")return`Function<${e.name||"anonymous"}>`;if(typeof e=="symbol")return e.toString();if(typeof e!="object")return e;if(typeof Buffer<"u"&&e instanceof Buffer)return`<Buffer(${e.length}) ...>`;if(typeof Uint8Array<"u"&&e instanceof Uint8Array)return`<Uint8Array(${e.length}) ...>`;if(wP(e))return $r(e.toJSON(),t);if(e instanceof Promise||e.constructor&&e.constructor.prototype==="AsyncFunction")return"Promise";if(typeof Element<"u"&&e instanceof Element)return e.tagName;if(typeof e.asymmetricMatch=="function")return`${e.toString()} ${L3(e.sample)}`;if(typeof e.toJSON=="function")return $r(e.toJSON(),t);if(t.has(e))return t.get(e);if(Array.isArray(e)){let r=new Array(e.length);return t.set(e,r),e.forEach((n,o)=>{try{r[o]=$r(n,t)}catch(a){r[o]=sg(a)}}),r}else{let r=Object.create(null);t.set(e,r);let n=e;for(;n&&n!==CP;)Object.getOwnPropertyNames(n).forEach(o=>{if(!(o in r))try{r[o]=$r(e[o],t)}catch(a){delete r[o],r[o]=sg(a)}}),n=Object.getPrototypeOf(n);return r}}function _a(e){try{return e()}catch{}}function _P(e){return e.replace(/__(vite_ssr_import|vi_import)_\d+__\./g,"")}function aE(e,t,r=new WeakSet){if(!e||typeof e!="object")return{message:String(e)};let n=e;(n.showDiff||n.showDiff===void 0&&n.expected!==void 0&&n.actual!==void 0)&&(n.diff=yP(n.actual,n.expected,{...t,...n.diffOptions})),"expected"in n&&typeof n.expected!="string"&&(n.expected=Ko(n.expected,10)),"actual"in n&&typeof n.actual!="string"&&(n.actual=Ko(n.actual,10));try{typeof n.message=="string"&&(n.message=_P(n.message))}catch{}try{!r.has(n)&&typeof n.cause=="object"&&(r.add(n),n.cause=aE(n.cause,t,r))}catch{}try{return $r(n)}catch(o){return $r(new Error(`Failed to fully serialize error: ${o?.message}
|
|
125
|
+
Inner error message: ${n?.message}`))}}const{once:TP}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{FORCE_REMOUNT:ug,SET_CURRENT_STORY:OP,STORY_RENDER_PHASE_CHANGED:AP}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:vt}=__STORYBOOK_MODULE_GLOBAL__;var hs=globalThis.__STORYBOOK_ADDONS_PREVIEW,RP=new Error("This function ran after the play function completed. Did you forget to `await` it?"),cg=e=>Object.prototype.toString.call(e)==="[object Object]",DP=e=>Object.prototype.toString.call(e)==="[object Module]",PP=e=>{if(!cg(e)&&!DP(e))return!1;if(e.constructor===void 0)return!0;let t=e.constructor.prototype;return!!cg(t)},FP=e=>{try{return new e.constructor}catch{return{}}},gs=()=>({renderPhase:"preparing",isDebugging:!1,isPlaying:!1,isLocked:!1,cursor:0,calls:[],shadowCalls:[],callRefsByResult:new Map,chainedCallIds:new Set,ancestors:[],playUntil:void 0,resolvers:{},syncTimeout:void 0}),dg=(e,t=!1)=>{let r=(t?e.shadowCalls:e.calls).filter(o=>o.retain);if(!r.length)return;let n=new Map(Array.from(e.callRefsByResult.entries()).filter(([,o])=>o.retain));return{cursor:r.length,calls:r,callRefsByResult:n}},IP=class{constructor(){this.detached=!1,this.initialized=!1,this.state={},this.loadParentWindowState=()=>{try{this.state=vt.window?.parent?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__||{}}catch{this.detached=!0}},this.updateParentWindowState=()=>{try{vt.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__=this.state}catch{this.detached=!0}},this.loadParentWindowState();let e=({storyId:l,renderPhase:s,isPlaying:u=!0,isDebugging:c=!1})=>{let d=this.getState(l);this.setState(l,{...gs(),...dg(d,c),renderPhase:s||d.renderPhase,shadowCalls:c?d.shadowCalls:[],chainedCallIds:c?d.chainedCallIds:new Set,playUntil:c?d.playUntil:void 0,isPlaying:u,isDebugging:c}),this.sync(l)},t=l=>({storyId:s,playUntil:u})=>{this.getState(s).isDebugging||this.setState(s,({calls:d})=>({calls:[],shadowCalls:d.map(f=>({...f,status:"waiting"})),isDebugging:!0}));let c=this.getLog(s);this.setState(s,({shadowCalls:d})=>{if(u||!c.length)return{playUntil:u};let f=d.findIndex(g=>g.id===c[0].callId);return{playUntil:d.slice(0,f).filter(g=>g.interceptable&&!g.ancestors?.length).slice(-1)[0]?.id}}),l.emit(ug,{storyId:s,isDebugging:!0})},r=l=>({storyId:s})=>{let u=this.getLog(s).filter(d=>!d.ancestors?.length),c=u.reduceRight((d,f,g)=>d>=0||f.status==="waiting"?d:g,-1);t(l)({storyId:s,playUntil:u[c-1]?.callId})},n=l=>({storyId:s,callId:u})=>{let{calls:c,shadowCalls:d,resolvers:f}=this.getState(s),g=c.find(({id:y})=>y===u),m=d.find(({id:y})=>y===u);if(!g&&m&&Object.values(f).length>0){let y=this.getLog(s).find(E=>E.status==="waiting")?.callId;m.id!==y&&this.setState(s,{playUntil:m.id}),Object.values(f).forEach(E=>E())}else t(l)({storyId:s,playUntil:u})},o=l=>({storyId:s})=>{let{resolvers:u}=this.getState(s);if(Object.values(u).length>0)Object.values(u).forEach(c=>c());else{let c=this.getLog(s).find(d=>d.status==="waiting")?.callId;c?t(l)({storyId:s,playUntil:c}):a({storyId:s})}},a=({storyId:l})=>{this.setState(l,{playUntil:void 0,isDebugging:!1}),Object.values(this.getState(l).resolvers).forEach(s=>s())},i=({storyId:l,newPhase:s})=>{let{isDebugging:u}=this.getState(l);if(s==="preparing"&&u)return e({storyId:l,renderPhase:s,isDebugging:u});if(s==="playing")return e({storyId:l,renderPhase:s,isDebugging:u});s==="played"?this.setState(l,{renderPhase:s,isLocked:!1,isPlaying:!1,isDebugging:!1}):s==="errored"?this.setState(l,{renderPhase:s,isLocked:!1,isPlaying:!1}):s==="aborted"?this.setState(l,{renderPhase:s,isLocked:!0,isPlaying:!1}):this.setState(l,{renderPhase:s}),this.sync(l)};hs&&hs.ready().then(()=>{this.channel=hs.getChannel(),this.channel.on(ug,e),this.channel.on(AP,i),this.channel.on(OP,()=>{this.initialized?this.cleanup():this.initialized=!0}),this.channel.on(tr.START,t(this.channel)),this.channel.on(tr.BACK,r(this.channel)),this.channel.on(tr.GOTO,n(this.channel)),this.channel.on(tr.NEXT,o(this.channel)),this.channel.on(tr.END,a)})}getState(e){return this.state[e]||gs()}setState(e,t){if(e){let r=this.getState(e),n=typeof t=="function"?t(r):t;this.state={...this.state,[e]:{...r,...n}},this.updateParentWindowState()}}cleanup(){this.state=Object.entries(this.state).reduce((t,[r,n])=>{let o=dg(n);return o&&(t[r]=Object.assign(gs(),o)),t},{});let e={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:[]};this.channel?.emit(tr.SYNC,e),this.updateParentWindowState()}getLog(e){let{calls:t,shadowCalls:r}=this.getState(e),n=[...r];t.forEach((a,i)=>{n[i]=a});let o=new Set;return n.reduceRight((a,i)=>(i.args.forEach(l=>{l?.__callId__&&o.add(l.__callId__)}),i.path.forEach(l=>{l.__callId__&&o.add(l.__callId__)}),(i.interceptable||i.exception)&&!o.has(i.id)&&(a.unshift({callId:i.id,status:i.status,ancestors:i.ancestors}),o.add(i.id)),a),[])}instrument(e,t,r=0){if(!PP(e))return e;let{mutate:n=!1,path:o=[]}=t,a=t.getKeys?t.getKeys(e,r):Object.keys(e);return r+=1,a.reduce((i,l)=>{let s=kP(e,l);if(typeof s?.get=="function"){if(s.configurable){let c=()=>s?.get?.bind(e)?.();Object.defineProperty(i,l,{get:()=>this.instrument(c(),{...t,path:o.concat(l)},r)})}return i}let u=e[l];return typeof u!="function"?(i[l]=this.instrument(u,{...t,path:o.concat(l)},r),i):"__originalFn__"in u&&typeof u.__originalFn__=="function"?(i[l]=u,i):(i[l]=(...c)=>this.track(l,u,e,c,t),i[l].__originalFn__=u,Object.defineProperty(i[l],"name",{value:l,writable:!1}),Object.keys(u).length>0&&Object.assign(i[l],this.instrument({...u},{...t,path:o.concat(l)},r)),i)},n?e:FP(e))}track(e,t,r,n,o){let a=n?.[0]?.__storyId__||vt.__STORYBOOK_PREVIEW__?.selectionStore?.selection?.storyId,{cursor:i,ancestors:l}=this.getState(a);this.setState(a,{cursor:i+1});let s=`${l.slice(-1)[0]||a} [${i}] ${e}`,{path:u=[],intercept:c=!1,retain:d=!1}=o,f=typeof c=="function"?c(e,u):c,g={id:s,cursor:i,storyId:a,ancestors:l,path:u,method:e,args:n,interceptable:f,retain:d},m=(f&&!l.length?this.intercept:this.invoke).call(this,t,r,g,o);return this.instrument(m,{...o,mutate:!0,path:[{__callId__:g.id}]})}intercept(e,t,r,n){let{chainedCallIds:o,isDebugging:a,playUntil:i}=this.getState(r.storyId),l=o.has(r.id);return!a||l||i?(i===r.id&&this.setState(r.storyId,{playUntil:void 0}),this.invoke(e,t,r,n)):new Promise(s=>{this.setState(r.storyId,({resolvers:u})=>({isLocked:!1,resolvers:{...u,[r.id]:s}}))}).then(()=>(this.setState(r.storyId,s=>{let{[r.id]:u,...c}=s.resolvers;return{isLocked:!0,resolvers:c}}),this.invoke(e,t,r,n)))}invoke(e,t,r,n){let{callRefsByResult:o,renderPhase:a}=this.getState(r.storyId),i=25,l=(c,d,f)=>{if(f.includes(c))return"[Circular]";if(f=[...f,c],d>i)return"...";if(o.has(c))return o.get(c);if(c instanceof Array)return c.map(g=>l(g,++d,f));if(c instanceof Date)return{__date__:{value:c.toISOString()}};if(c instanceof Error){let{name:g,message:m,stack:y}=c;return{__error__:{name:g,message:m,stack:y}}}if(c instanceof RegExp){let{flags:g,source:m}=c;return{__regexp__:{flags:g,source:m}}}if(c instanceof vt.window?.HTMLElement){let{prefix:g,localName:m,id:y,classList:E,innerText:b}=c,v=Array.from(E);return{__element__:{prefix:g,localName:m,id:y,classNames:v,innerText:b}}}return typeof c=="function"?{__function__:{name:"getMockName"in c?c.getMockName():c.name}}:typeof c=="symbol"?{__symbol__:{description:c.description}}:typeof c=="object"&&c?.constructor?.name&&c?.constructor?.name!=="Object"?{__class__:{name:c.constructor.name}}:Object.prototype.toString.call(c)==="[object Object]"?Object.fromEntries(Object.entries(c).map(([g,m])=>[g,l(m,++d,f)])):c},s={...r,args:r.args.map(c=>l(c,0,[]))};r.path.forEach(c=>{c?.__callId__&&this.setState(r.storyId,({chainedCallIds:d})=>({chainedCallIds:new Set(Array.from(d).concat(c.__callId__))}))});let u=c=>{if(c instanceof Error){let{name:d,message:f,stack:g,callId:m=r.id}=c,{showDiff:y=void 0,diff:E=void 0,actual:b=void 0,expected:v=void 0}=c.name==="AssertionError"?aE(c):c,S={name:d,message:f,stack:g,callId:m,showDiff:y,diff:E,actual:b,expected:v};if(this.update({...s,status:"error",exception:S}),this.setState(r.storyId,x=>({callRefsByResult:new Map([...Array.from(x.callRefsByResult.entries()),[c,{__callId__:r.id,retain:r.retain}]])})),r.ancestors?.length)throw Object.prototype.hasOwnProperty.call(c,"callId")||Object.defineProperty(c,"callId",{value:r.id}),c}throw c};try{if(a==="played"&&!r.retain)throw RP;let c=(n.getArgs?n.getArgs(r,this.getState(r.storyId)):r.args).map(f=>typeof f!="function"||NP(f)||Object.keys(f).length?f:(...g)=>{let{cursor:m,ancestors:y}=this.getState(r.storyId);this.setState(r.storyId,{cursor:0,ancestors:[...y,r.id]});let E=()=>this.setState(r.storyId,{cursor:m,ancestors:y}),b=!1;try{let v=f(...g);return v instanceof Promise?(b=!0,v.finally(E)):v}finally{b||E()}}),d=e.apply(t,c);return d&&["object","function","symbol"].includes(typeof d)&&this.setState(r.storyId,f=>({callRefsByResult:new Map([...Array.from(f.callRefsByResult.entries()),[d,{__callId__:r.id,retain:r.retain}]])})),this.update({...s,status:d instanceof Promise?"active":"done"}),d instanceof Promise?d.then(f=>(this.update({...s,status:"done"}),f),u):d}catch(c){return u(c)}}update(e){this.channel?.emit(tr.CALL,e),this.setState(e.storyId,({calls:t})=>{let r=t.concat(e).reduce((n,o)=>Object.assign(n,{[o.id]:o}),{});return{calls:Object.values(r).sort((n,o)=>n.id.localeCompare(o.id,void 0,{numeric:!0}))}}),this.sync(e.storyId)}sync(e){let t=()=>{let{isLocked:r,isPlaying:n}=this.getState(e),o=this.getLog(e),a=o.filter(({ancestors:u})=>!u.length).find(u=>u.status==="waiting")?.callId,i=o.some(u=>u.status==="active");if(this.detached||r||i||o.length===0){let u={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:o};this.channel?.emit(tr.SYNC,u);return}let l=o.some(u=>u.status==="done"||u.status==="error"),s={controlStates:{detached:this.detached,start:l,back:l,goto:!0,next:n,end:n},logItems:o,pausedAt:a};this.channel?.emit(tr.SYNC,s)};this.setState(e,({syncTimeout:r})=>(clearTimeout(r),{syncTimeout:setTimeout(t,0)}))}};function LP(e,t={}){try{let r=!1,n=!1;return vt.window?.location?.search?.includes("instrument=true")?r=!0:vt.window?.location?.search?.includes("instrument=false")&&(n=!0),vt.window?.parent===vt.window&&!r||n?e:(vt.window&&!vt.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__&&(vt.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__=new IP),(vt.window?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__).instrument(e,t))}catch(r){return TP.warn(r),e}}function kP(e,t){let r=e;for(;r!=null;){let n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function NP(e){if(typeof e!="function")return!1;let t=Object.getOwnPropertyDescriptor(e,"prototype");return t?!t.writable:!1}var MP=qe({"../../node_modules/@ngard/tiny-isequal/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isEqual=(function(){var t=Object.prototype.toString,r=Object.getPrototypeOf,n=Object.getOwnPropertySymbols?function(o){return Object.keys(o).concat(Object.getOwnPropertySymbols(o))}:Object.keys;return function(o,a){return(function i(l,s,u){var c,d,f,g=t.call(l),m=t.call(s);if(l===s)return!0;if(l==null||s==null)return!1;if(u.indexOf(l)>-1&&u.indexOf(s)>-1)return!0;if(u.push(l,s),g!=m||(c=n(l),d=n(s),c.length!=d.length||c.some(function(y){return!i(l[y],s[y],u)})))return!1;switch(g.slice(8,-1)){case"Symbol":return l.valueOf()==s.valueOf();case"Date":case"Number":return+l==+s||+l!=+l&&+s!=+s;case"RegExp":case"Function":case"String":case"Boolean":return""+l==""+s;case"Set":case"Map":c=l.entries(),d=s.entries();do if(!i((f=c.next()).value,d.next().value,u))return!1;while(!f.done);return!0;case"ArrayBuffer":l=new Uint8Array(l),s=new Uint8Array(s);case"DataView":l=new Uint8Array(l.buffer),s=new Uint8Array(s.buffer);case"Float32Array":case"Float64Array":case"Int8Array":case"Int16Array":case"Int32Array":case"Uint8Array":case"Uint16Array":case"Uint32Array":case"Uint8ClampedArray":case"Arguments":case"Array":if(l.length!=s.length)return!1;for(f=0;f<l.length;f++)if((f in l||f in s)&&(f in l!=f in s||!i(l[f],s[f],u)))return!1;return!0;case"Object":return i(r(l),r(s),u);default:return!1}})(o,a,[])}})()}}),fg=rt(MP(),1),iE=e=>e.map(t=>typeof t<"u").filter(Boolean).length,BP=(e,t)=>{let{exists:r,eq:n,neq:o,truthy:a}=e;if(iE([r,n,o,a])>1)throw new Error(`Invalid conditional test ${JSON.stringify({exists:r,eq:n,neq:o})}`);if(typeof n<"u")return(0,fg.isEqual)(t,n);if(typeof o<"u")return!(0,fg.isEqual)(t,o);if(typeof r<"u"){let i=typeof t<"u";return r?i:!i}return typeof a>"u"||a?!!t:!t},jP=(e,t,r)=>{if(!e.if)return!0;let{arg:n,global:o}=e.if;if(iE([n,o])!==1)throw new Error(`Invalid conditional value ${JSON.stringify({arg:n,global:o})}`);let a=n?t[n]:r[o];return BP(e.if,a)},HP={};ze(HP,{argsEnhancers:()=>KP});var lE=(e,t)=>typeof t[e]>"u"&&!(e in t),UP=e=>{let{initialArgs:t,argTypes:r,id:n,parameters:{actions:o}}=e;if(!o||o.disable||!o.argTypesRegex||!r)return{};let a=new RegExp(o.argTypesRegex);return Object.entries(r).filter(([i])=>!!a.test(i)).reduce((i,[l,s])=>(lE(l,t)&&(i[l]=uf(l,{implicit:!0,id:n})),i),{})},zP=e=>{let{initialArgs:t,argTypes:r,parameters:{actions:n}}=e;return n?.disable||!r?{}:Object.entries(r).filter(([o,a])=>!!a.action).reduce((o,[a,i])=>(lE(a,t)&&(o[a]=uf(typeof i.action=="string"?i.action:a)),o),{})},KP=[zP,UP],GP={};ze(GP,{loaders:()=>qP});const{onMockCall:WP}=__STORYBOOK_MODULE_TEST__;var pg=!1,VP=e=>{let{parameters:t}=e;t?.actions?.disable||pg||(WP((r,n)=>{let o=r.getMockName();o!=="spy"&&o!=="vi.fn()"&&(!/^next\/.*::/.test(o)||["next/router::useRouter()","next/navigation::useRouter()","next/navigation::redirect","next/cache::","next/headers::cookies().set","next/headers::cookies().delete","next/headers::headers().set","next/headers::headers().delete"].some(a=>o.startsWith(a)))&&uf(o)(n)}),pg=!0)},qP=[VP];const{useEffect:hg}=__STORYBOOK_MODULE_PREVIEW_API__;var{document:Pt}=globalThis,YP=()=>globalThis?.matchMedia?!!globalThis.matchMedia("(prefers-reduced-motion: reduce)")?.matches:!1,gg=e=>{(Array.isArray(e)?e:[e]).forEach(XP)},XP=e=>{if(!Pt)return;let t=Pt.getElementById(e);t&&t.parentElement&&t.parentElement.removeChild(t)},JP=(e,t)=>{if(!Pt)return;let r=Pt.getElementById(e);if(r)r.innerHTML!==t&&(r.innerHTML=t);else{let n=Pt.createElement("style");n.setAttribute("id",e),n.innerHTML=t,Pt.head.appendChild(n)}},ZP=(e,t,r)=>{if(!Pt)return;let n=Pt.getElementById(e);if(n)n.innerHTML!==t&&(n.innerHTML=t);else{let o=Pt.createElement("style");o.setAttribute("id",e),o.innerHTML=t;let a=`addon-backgrounds-grid${r?`-docs-${r}`:""}`,i=Pt.getElementById(a);i?i.parentElement?.insertBefore(o,i):Pt.head.appendChild(o)}},QP={cellSize:100,cellAmount:10,opacity:.8},mg="addon-backgrounds",yg="addon-backgrounds-grid",e4=YP()?"":"transition: background-color 0.3s;",t4=(e,t)=>{let{globals:r={},parameters:n={},viewMode:o,id:a}=t,{options:i=$D,disable:l,grid:s=QP}=n[yh]||{},u=r[yh]||{},c=typeof u=="string"?u:u?.value,d=c?i[c]:void 0,f=typeof d=="string"?d:d?.value||"transparent",g=typeof u=="string"?!1:u.grid||!1,m=!!d&&!l,y=o==="docs"?`#anchor--${a} .docs-story, #anchor--primary--${a} .docs-story`:".sb-show-main",E=o==="docs"?`#anchor--${a} .docs-story, #anchor--primary--${a} .docs-story`:".sb-show-main",b=n.layout===void 0||n.layout==="padded",v=o==="docs"?20:b?16:0,{cellAmount:S,cellSize:x,opacity:O,offsetX:w=v,offsetY:T=v}=s,R=o==="docs"?`${mg}-docs-${a}`:`${mg}-color`,I=o==="docs"?a:null;hg(()=>{let _=`
|
|
126
|
+
${y} {
|
|
127
|
+
background: ${f} !important;
|
|
128
|
+
${e4}
|
|
129
|
+
}`;if(!m){gg(R);return}ZP(R,_,I)},[y,R,I,m,f]);let P=o==="docs"?`${yg}-docs-${a}`:`${yg}`;return hg(()=>{if(!g){gg(P);return}let _=[`${x*S}px ${x*S}px`,`${x*S}px ${x*S}px`,`${x}px ${x}px`,`${x}px ${x}px`].join(", "),N=`
|
|
130
|
+
${E} {
|
|
131
|
+
background-size: ${_} !important;
|
|
132
|
+
background-position: ${w}px ${T}px, ${w}px ${T}px, ${w}px ${T}px, ${w}px ${T}px !important;
|
|
133
|
+
background-blend-mode: difference !important;
|
|
134
|
+
background-image: linear-gradient(rgba(130, 130, 130, ${O}) 1px, transparent 1px),
|
|
135
|
+
linear-gradient(90deg, rgba(130, 130, 130, ${O}) 1px, transparent 1px),
|
|
136
|
+
linear-gradient(rgba(130, 130, 130, ${O/2}) 1px, transparent 1px),
|
|
137
|
+
linear-gradient(90deg, rgba(130, 130, 130, ${O/2}) 1px, transparent 1px) !important;
|
|
138
|
+
}
|
|
139
|
+
`;JP(P,N)},[S,x,E,P,g,w,T,O]),e()};globalThis.FEATURES?.backgrounds;var{step:XY}=LP({step:async(e,t,r)=>t(r)},{intercept:!0});const{addons:bg}=__STORYBOOK_MODULE_PREVIEW_API__,{STORY_RENDER_PHASE_CHANGED:r4}=__STORYBOOK_MODULE_CORE_EVENTS__;var Eg={chevronLeft:["M9.10355 10.1464C9.29882 10.3417 9.29882 10.6583 9.10355 10.8536C8.90829 11.0488 8.59171 11.0488 8.39645 10.8536L4.89645 7.35355C4.70118 7.15829 4.70118 6.84171 4.89645 6.64645L8.39645 3.14645C8.59171 2.95118 8.90829 2.95118 9.10355 3.14645C9.29882 3.34171 9.29882 3.65829 9.10355 3.85355L5.95711 7L9.10355 10.1464Z"],chevronRight:["M4.89645 10.1464C4.70118 10.3417 4.70118 10.6583 4.89645 10.8536C5.09171 11.0488 5.40829 11.0488 5.60355 10.8536L9.10355 7.35355C9.29882 7.15829 9.29882 6.84171 9.10355 6.64645L5.60355 3.14645C5.40829 2.95118 5.09171 2.95118 4.89645 3.14645C4.70118 3.34171 4.70118 3.65829 4.89645 3.85355L8.04289 7L4.89645 10.1464Z"],info:["M7 5.5a.5.5 0 01.5.5v4a.5.5 0 01-1 0V6a.5.5 0 01.5-.5zM7 4.5A.75.75 0 107 3a.75.75 0 000 1.5z","M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z"],shareAlt:["M2 1.004a1 1 0 00-1 1v10a1 1 0 001 1h10a1 1 0 001-1v-4.5a.5.5 0 00-1 0v4.5H2v-10h4.5a.5.5 0 000-1H2z","M7.354 7.357L12 2.711v1.793a.5.5 0 001 0v-3a.5.5 0 00-.5-.5h-3a.5.5 0 100 1h1.793L6.646 6.65a.5.5 0 10.708.707z"]},n4="svg,path,rect,circle,line,polyline,polygon,ellipse,text".split(","),Fe=(e,t={},r)=>{let n=n4.includes(e)?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return Object.entries(t).forEach(([o,a])=>{/[A-Z]/.test(o)?(o==="onClick"&&(n.addEventListener("click",a),n.addEventListener("keydown",i=>{(i.key==="Enter"||i.key===" ")&&(i.preventDefault(),a())})),o==="onMouseEnter"&&n.addEventListener("mouseenter",a),o==="onMouseLeave"&&n.addEventListener("mouseleave",a)):n.setAttribute(o,a)}),r?.forEach(o=>{if(!(o==null||o===!1))try{n.appendChild(o)}catch{n.appendChild(document.createTextNode(String(o)))}}),n},Ta=e=>Eg[e]&&Fe("svg",{width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},Eg[e].map(t=>Fe("path",{fill:"currentColor","fill-rule":"evenodd","clip-rule":"evenodd",d:t}))),o4=e=>{if("elements"in e){let{elements:n,color:o,style:a}=e;return{id:void 0,priority:0,selectors:n,styles:{outline:`2px ${a} ${o}`,outlineOffset:"2px",boxShadow:"0 0 0 6px rgba(255,255,255,0.6)"},menu:void 0}}let{menu:t,...r}=e;return{id:void 0,priority:0,styles:{outline:"2px dashed #029cfd"},...r,menu:Array.isArray(t)?t.every(Array.isArray)?t:[t]:void 0}},a4=e=>e instanceof Function,mo=new Map,Ir=new Map,Oa=new Map,nr=e=>{let t=Symbol();return Ir.set(t,[]),mo.set(t,e),{get:()=>mo.get(t),set:r=>{let n=mo.get(t),o=a4(r)?r(n):r;o!==n&&(mo.set(t,o),Ir.get(t)?.forEach(a=>{Oa.get(a)?.(),Oa.set(a,a(o))}))},subscribe:r=>(Ir.get(t)?.push(r),()=>{let n=Ir.get(t);n&&Ir.set(t,n.filter(o=>o!==r))}),teardown:()=>{Ir.get(t)?.forEach(r=>{Oa.get(r)?.(),Oa.delete(r)}),Ir.delete(t),mo.delete(t)}}},vg=e=>{let t=document.getElementById("storybook-root"),r=new Map;for(let n of e){let{priority:o=0}=n;for(let a of n.selectors){let i=[...document.querySelectorAll(`:is(${a}):not([id^="storybook-"], [id^="storybook-"] *, [class^="sb-"], [class^="sb-"] *)`),...t?.querySelectorAll(a)||[]];for(let l of i){let s=r.get(l);(!s||s.priority<=o)&&r.set(l,{...n,priority:o,selectors:Array.from(new Set((s?.selectors||[]).concat(a)))})}}}return r},i4=e=>Array.from(e.entries()).map(([t,{selectors:r,styles:n,hoverStyles:o,focusStyles:a,menu:i}])=>{let{top:l,left:s,width:u,height:c}=t.getBoundingClientRect(),{position:d}=getComputedStyle(t);return{element:t,selectors:r,styles:n,hoverStyles:o,focusStyles:a,menu:i,top:d==="fixed"?l:l+window.scrollY,left:d==="fixed"?s:s+window.scrollX,width:u,height:c}}).sort((t,r)=>r.width*r.height-t.width*t.height),Sg=(e,t)=>{let r=e.getBoundingClientRect(),{x:n,y:o}=t;return r?.top&&r?.left&&n>=r.left&&n<=r.left+r.width&&o>=r.top&&o<=r.top+r.height},xg=(e,t,r)=>{if(!t||!r)return!1;let{left:n,top:o,width:a,height:i}=e;i<Sr&&(o=o-Math.round((Sr-i)/2),i=Sr),a<Sr&&(n=n-Math.round((Sr-a)/2),a=Sr),t.style.position==="fixed"&&(n+=window.scrollX,o+=window.scrollY);let{x:l,y:s}=r;return l>=n&&l<=n+a&&s>=o&&s<=o+i},l4=(e,t,r={})=>{let{x:n,y:o}=t,{margin:a=5,topOffset:i=0,centered:l=!1}=r,{scrollX:s,scrollY:u,innerHeight:c,innerWidth:d}=window,f=Math.min(e.style.position==="fixed"?o-u:o,c-e.clientHeight-a-i+u),g=l?e.clientWidth/2:0,m=e.style.position==="fixed"?Math.max(Math.min(n-s,d-g-a),g+a):Math.max(Math.min(n,d-g-a+s),g+a+s);Object.assign(e.style,{...m!==n&&{left:`${m}px`},...f!==o&&{top:`${f}px`}})},$g=e=>{window.HTMLElement.prototype.hasOwnProperty("showPopover")&&e.showPopover()},s4=e=>{window.HTMLElement.prototype.hasOwnProperty("showPopover")&&e.hidePopover()},u4=e=>({top:e.top,left:e.left,width:e.width,height:e.height,selectors:e.selectors,element:{attributes:Object.fromEntries(Array.from(e.element.attributes).map(t=>[t.name,t.value])),localName:e.element.localName,tagName:e.element.tagName,outerHTML:e.element.outerHTML}}),ye="storybook-highlights-menu",wg="storybook-highlights-root",c4="storybook-root",d4=e=>{if(globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED)return;globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED=!0;let{document:t}=globalThis,r=nr([]),n=nr(new Map),o=nr([]),a=nr(),i=nr(),l=nr([]),s=nr([]),u=nr(),c=nr(),d=t.getElementById(wg);r.subscribe(()=>{d||(d=Fe("div",{id:wg}),t.body.appendChild(d))}),r.subscribe(T=>{let R=t.getElementById(c4);if(!R)return;n.set(vg(T));let I=new MutationObserver(()=>n.set(vg(T)));return I.observe(R,{subtree:!0,childList:!0}),()=>{I.disconnect()}}),n.subscribe(T=>{let R=()=>requestAnimationFrame(()=>o.set(i4(T))),I=new ResizeObserver(R);I.observe(t.body),Array.from(T.keys()).forEach(_=>I.observe(_));let P=Array.from(t.body.querySelectorAll("*")).filter(_=>{let{overflow:N,overflowX:B,overflowY:$}=window.getComputedStyle(_);return["auto","scroll"].some(C=>[N,B,$].includes(C))});return P.forEach(_=>_.addEventListener("scroll",R)),()=>{I.disconnect(),P.forEach(_=>_.removeEventListener("scroll",R))}}),n.subscribe(T=>{let R=Array.from(T.keys()).filter(({style:P})=>P.position==="sticky"),I=()=>requestAnimationFrame(()=>{o.set(P=>P.map(_=>{if(R.includes(_.element)){let{top:N,left:B}=_.element.getBoundingClientRect();return{..._,top:N+window.scrollY,left:B+window.scrollX}}return _}))});return t.addEventListener("scroll",I),()=>t.removeEventListener("scroll",I)}),n.subscribe(T=>{l.set(R=>R.filter(({element:I})=>T.has(I)))}),l.subscribe(T=>{T.length?(c.set(R=>T.some(I=>I.element===R?.element)?R:void 0),u.set(R=>T.some(I=>I.element===R?.element)?R:void 0)):(c.set(void 0),u.set(void 0),a.set(void 0))});let f=new Map(new Map);r.subscribe(T=>{T.forEach(({keyframes:R})=>{if(R){let I=f.get(R);I||(I=t.createElement("style"),I.setAttribute("data-highlight","keyframes"),f.set(R,I),t.head.appendChild(I)),I.innerHTML=R}}),f.forEach((R,I)=>{T.some(P=>P.keyframes===I)||(R.remove(),f.delete(I))})});let g=new Map(new Map);o.subscribe(T=>{T.forEach(R=>{let I=g.get(R.element);if(d&&!I){let P={popover:"manual","data-highlight-dimensions":`w${R.width.toFixed(0)}h${R.height.toFixed(0)}`,"data-highlight-coordinates":`x${R.left.toFixed(0)}y${R.top.toFixed(0)}`};I=d.appendChild(Fe("div",P,[Fe("div")])),g.set(R.element,I)}}),g.forEach((R,I)=>{T.some(({element:P})=>P===I)||(R.remove(),g.delete(I))})}),o.subscribe(T=>{let R=T.filter(P=>P.menu);if(!R.length)return;let I=P=>{requestAnimationFrame(()=>{let _=t.getElementById(ye),N={x:P.pageX,y:P.pageY};if(_&&!Sg(_,N)){let B=R.filter($=>{let C=g.get($.element);return xg($,C,N)});a.set(B.length?N:void 0),l.set(B)}})};return t.addEventListener("click",I),()=>t.removeEventListener("click",I)});let m=()=>{let T=t.getElementById(ye),R=i.get();!R||T&&Sg(T,R)||s.set(I=>{let P=o.get().filter($=>{let C=g.get($.element);return xg($,C,R)}),_=I.filter($=>P.includes($)),N=P.filter($=>!I.includes($)),B=I.length-_.length;return N.length||B?[..._,...N]:I})};i.subscribe(m),o.subscribe(m);let y=()=>{let T=c.get(),R=T?[T]:l.get(),I=R.length===1?R[0]:u.get(),P=a.get()!==void 0;o.get().forEach(_=>{let N=g.get(_.element);if(N){let B=I===_,$=P?I?B:R.includes(_):s.get()?.includes(_);Object.assign(N.style,{animation:"none",background:"transparent",border:"none",boxSizing:"border-box",outline:"none",outlineOffset:"0px",..._.styles,...$?_.hoverStyles:{},...B?_.focusStyles:{},position:getComputedStyle(_.element).position==="fixed"?"fixed":"absolute",zIndex:bh-10,top:`${_.top}px`,left:`${_.left}px`,width:`${_.width}px`,height:`${_.height}px`,margin:0,padding:0,cursor:_.menu&&$?"pointer":"default",pointerEvents:_.menu?"auto":"none",display:"flex",alignItems:"center",justifyContent:"center",overflow:"visible"}),Object.assign(N.children[0].style,{width:"100%",height:"100%",minHeight:`${Sr}px`,minWidth:`${Sr}px`,boxSizing:"content-box",padding:N.style.outlineWidth||"0px"}),$g(N)}})};o.subscribe(y),l.subscribe(y),s.subscribe(y),u.subscribe(y),c.subscribe(y);let E=()=>{if(!d)return;let T=t.getElementById(ye);if(T)T.innerHTML="";else{let _={id:ye,popover:"manual"};T=d.appendChild(Fe("div",_)),d.appendChild(Fe("style",{},[`
|
|
140
|
+
#${ye} {
|
|
141
|
+
position: absolute;
|
|
142
|
+
z-index: ${bh};
|
|
143
|
+
width: 300px;
|
|
144
|
+
padding: 0px;
|
|
145
|
+
margin: 15px 0 0 0;
|
|
146
|
+
transform: translateX(-50%);
|
|
147
|
+
font-family: "Nunito Sans", -apple-system, ".SFNSText-Regular", "San Francisco", BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
148
|
+
font-size: 12px;
|
|
149
|
+
background: white;
|
|
150
|
+
border: none;
|
|
151
|
+
border-radius: 6px;
|
|
152
|
+
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.05), 0 5px 15px 0 rgba(0, 0, 0, 0.1);
|
|
153
|
+
color: #2E3438;
|
|
154
|
+
}
|
|
155
|
+
#${ye} ul {
|
|
156
|
+
list-style: none;
|
|
157
|
+
margin: 0;
|
|
158
|
+
padding: 0;
|
|
159
|
+
}
|
|
160
|
+
#${ye} > ul {
|
|
161
|
+
max-height: 300px;
|
|
162
|
+
overflow-y: auto;
|
|
163
|
+
padding: 4px 0;
|
|
164
|
+
}
|
|
165
|
+
#${ye} li {
|
|
166
|
+
padding: 0 4px;
|
|
167
|
+
margin: 0;
|
|
168
|
+
}
|
|
169
|
+
#${ye} li > :not(ul) {
|
|
170
|
+
display: flex;
|
|
171
|
+
padding: 8px;
|
|
172
|
+
margin: 0;
|
|
173
|
+
align-items: center;
|
|
174
|
+
gap: 8px;
|
|
175
|
+
border-radius: 4px;
|
|
176
|
+
}
|
|
177
|
+
#${ye} button {
|
|
178
|
+
width: 100%;
|
|
179
|
+
border: 0;
|
|
180
|
+
background: transparent;
|
|
181
|
+
color: inherit;
|
|
182
|
+
text-align: left;
|
|
183
|
+
font-family: inherit;
|
|
184
|
+
font-size: inherit;
|
|
185
|
+
}
|
|
186
|
+
#${ye} button:focus-visible {
|
|
187
|
+
outline-color: #029CFD;
|
|
188
|
+
}
|
|
189
|
+
#${ye} button:hover {
|
|
190
|
+
background: rgba(2, 156, 253, 0.07);
|
|
191
|
+
color: #029CFD;
|
|
192
|
+
cursor: pointer;
|
|
193
|
+
}
|
|
194
|
+
#${ye} li code {
|
|
195
|
+
white-space: nowrap;
|
|
196
|
+
overflow: hidden;
|
|
197
|
+
text-overflow: ellipsis;
|
|
198
|
+
line-height: 16px;
|
|
199
|
+
font-size: 11px;
|
|
200
|
+
}
|
|
201
|
+
#${ye} li svg {
|
|
202
|
+
flex-shrink: 0;
|
|
203
|
+
margin: 1px;
|
|
204
|
+
color: #73828C;
|
|
205
|
+
}
|
|
206
|
+
#${ye} li > button:hover svg, #${ye} li > button:focus-visible svg {
|
|
207
|
+
color: #029CFD;
|
|
208
|
+
}
|
|
209
|
+
#${ye} .element-list li svg {
|
|
210
|
+
display: none;
|
|
211
|
+
}
|
|
212
|
+
#${ye} li.selectable svg, #${ye} li.selected svg {
|
|
213
|
+
display: block;
|
|
214
|
+
}
|
|
215
|
+
#${ye} .menu-list {
|
|
216
|
+
border-top: 1px solid rgba(38, 85, 115, 0.15);
|
|
217
|
+
}
|
|
218
|
+
#${ye} .menu-list > li:not(:last-child) {
|
|
219
|
+
padding-bottom: 4px;
|
|
220
|
+
margin-bottom: 4px;
|
|
221
|
+
border-bottom: 1px solid rgba(38, 85, 115, 0.15);
|
|
222
|
+
}
|
|
223
|
+
#${ye} .menu-items, #${ye} .menu-items li {
|
|
224
|
+
padding: 0;
|
|
225
|
+
}
|
|
226
|
+
#${ye} .menu-item {
|
|
227
|
+
display: flex;
|
|
228
|
+
}
|
|
229
|
+
#${ye} .menu-item-content {
|
|
230
|
+
display: flex;
|
|
231
|
+
flex-direction: column;
|
|
232
|
+
flex-grow: 1;
|
|
233
|
+
}
|
|
234
|
+
`]))}let R=c.get(),I=R?[R]:l.get();if(I.length&&(T.style.position=getComputedStyle(I[0].element).position==="fixed"?"fixed":"absolute",T.appendChild(Fe("ul",{class:"element-list"},I.map(_=>{let N=I.length>1&&!!_.menu?.some(C=>C.some(A=>!A.selectors||A.selectors.some(D=>_.selectors.includes(D)))),B=N?{class:"selectable",onClick:()=>c.set(_),onMouseEnter:()=>u.set(_),onMouseLeave:()=>u.set(void 0)}:R?{class:"selected",onClick:()=>c.set(void 0)}:{},$=N||R;return Fe("li",B,[Fe($?"button":"div",$?{type:"button"}:{},[R?Ta("chevronLeft"):null,Fe("code",{},[_.element.outerHTML]),N?Ta("chevronRight"):null])])})))),c.get()||l.get().length===1){let _=c.get()||l.get()[0],N=_.menu?.filter(B=>B.some($=>!$.selectors||$.selectors.some(C=>_.selectors.includes(C))));N?.length&&T.appendChild(Fe("ul",{class:"menu-list"},N.map(B=>Fe("li",{},[Fe("ul",{class:"menu-items"},B.map(({id:$,title:C,description:A,iconLeft:D,iconRight:L,clickEvent:M})=>{let k=M&&(()=>e.emit(M,$,u4(_)));return Fe("li",{},[Fe(k?"button":"div",k?{class:"menu-item",type:"button",onClick:k}:{class:"menu-item"},[D?Ta(D):null,Fe("div",{class:"menu-item-content"},[Fe(A?"strong":"span",{},[C]),A&&Fe("span",{},[A])]),L?Ta(L):null])])}))]))))}let P=a.get();P?(Object.assign(T.style,{display:"block",left:`${T.style.position==="fixed"?P.x-window.scrollX:P.x}px`,top:`${T.style.position==="fixed"?P.y-window.scrollY:P.y}px`}),$g(T),requestAnimationFrame(()=>l4(T,P,{topOffset:15,centered:!0}))):(s4(T),Object.assign(T.style,{display:"none"}))};l.subscribe(E),c.subscribe(E);let b=T=>{let R=o4(T);r.set(I=>{let P=R.id?I.filter(_=>_.id!==R.id):I;return R.selectors?.length?[...P,R]:P})},v=T=>{T&&r.set(R=>R.filter(I=>I.id!==T))},S=()=>{r.set([]),n.set(new Map),o.set([]),a.set(void 0),i.set(void 0),l.set([]),s.set([]),u.set(void 0),c.set(void 0)},x,O=(T,R)=>{let I="scrollIntoView-highlight";clearTimeout(x),v(I);let P=t.querySelector(T);if(!P){console.warn(`Cannot scroll into view: ${T} not found`);return}P.scrollIntoView({behavior:"smooth",block:"center",...R});let _=`kf-${Math.random().toString(36).substring(2,15)}`;r.set(N=>[...N,{id:I,priority:1e3,selectors:[T],styles:{outline:"2px solid #1EA7FD",outlineOffset:"-1px",animation:`${_} 3s linear forwards`},keyframes:`@keyframes ${_} {
|
|
235
|
+
0% { outline: 2px solid #1EA7FD; }
|
|
236
|
+
20% { outline: 2px solid #1EA7FD00; }
|
|
237
|
+
40% { outline: 2px solid #1EA7FD; }
|
|
238
|
+
60% { outline: 2px solid #1EA7FD00; }
|
|
239
|
+
80% { outline: 2px solid #1EA7FD; }
|
|
240
|
+
100% { outline: 2px solid #1EA7FD00; }
|
|
241
|
+
}`}]),x=setTimeout(()=>v(I),3500)},w=T=>{requestAnimationFrame(()=>i.set({x:T.pageX,y:T.pageY}))};t.body.addEventListener("mousemove",w),e.on(CD,b),e.on(_D,v),e.on(TD,S),e.on(OD,O),e.on(r4,({newPhase:T})=>{T==="loading"&&S()})};globalThis?.FEATURES?.highlight&&bg?.ready&&bg.ready().then(d4);const{useEffect:Cg}=__STORYBOOK_MODULE_PREVIEW_API__,{global:Ti}=__STORYBOOK_MODULE_GLOBAL__;function sE(){let e=Ti.document.documentElement,t=Math.max(e.scrollHeight,e.offsetHeight);return{width:Math.max(e.scrollWidth,e.offsetWidth),height:t}}function f4(){let e=Ti.document.createElement("canvas");e.id="storybook-addon-measure";let t=e.getContext("2d");Tc(t!=null);let{width:r,height:n}=sE();return Lc(e,t,{width:r,height:n}),e.style.position="absolute",e.style.left="0",e.style.top="0",e.style.zIndex="2147483647",e.style.pointerEvents="none",Ti.document.body.appendChild(e),{canvas:e,context:t,width:r,height:n}}function Lc(e,t,{width:r,height:n}){e.style.width=`${r}px`,e.style.height=`${n}px`;let o=Ti.window.devicePixelRatio;e.width=Math.floor(r*o),e.height=Math.floor(n*o),t.scale(o,o)}var Ie={};function p4(){Ie.canvas||(Ie=f4())}function uE(){Ie.context&&Ie.context.clearRect(0,0,Ie.width??0,Ie.height??0)}function h4(e){uE(),e(Ie.context)}function g4(){Tc(Ie.canvas),Tc(Ie.context),Lc(Ie.canvas,Ie.context,{width:0,height:0});let{width:e,height:t}=sE();Lc(Ie.canvas,Ie.context,{width:e,height:t}),Ie.width=e,Ie.height=t}function m4(){Ie.canvas&&(uE(),Ie.canvas.parentNode?.removeChild(Ie.canvas),Ie={})}const{global:Dt}=__STORYBOOK_MODULE_GLOBAL__;var bn={margin:"#f6b26b",border:"#ffe599",padding:"#93c47d",content:"#6fa8dc",text:"#232020"},ur=6;function _g(e,{x:t,y:r,w:n,h:o,r:a}){t=t-n/2,r=r-o/2,n<2*a&&(a=n/2),o<2*a&&(a=o/2),e.beginPath(),e.moveTo(t+a,r),e.arcTo(t+n,r,t+n,r+o,a),e.arcTo(t+n,r+o,t,r+o,a),e.arcTo(t,r+o,t,r,a),e.arcTo(t,r,t+n,r,a),e.closePath()}function y4(e,{padding:t,border:r,width:n,height:o,top:a,left:i}){let l=n-r.left-r.right-t.left-t.right,s=o-t.top-t.bottom-r.top-r.bottom,u=i+r.left+t.left,c=a+r.top+t.top;return e==="top"?u+=l/2:e==="right"?(u+=l,c+=s/2):e==="bottom"?(u+=l/2,c+=s):e==="left"?c+=s/2:e==="center"&&(u+=l/2,c+=s/2),{x:u,y:c}}function b4(e,t,{margin:r,border:n,padding:o},a,i){let l=f=>0,s=0,u=0,c=i?1:.5,d=i?a*2:0;return e==="padding"?l=f=>o[f]*c+d:e==="border"?l=f=>o[f]+n[f]*c+d:e==="margin"&&(l=f=>o[f]+n[f]+r[f]*c+d),t==="top"?u=-l("top"):t==="right"?s=l("right"):t==="bottom"?u=l("bottom"):t==="left"&&(s=-l("left")),{offsetX:s,offsetY:u}}function E4(e,t){return Math.abs(e.x-t.x)<Math.abs(e.w+t.w)/2&&Math.abs(e.y-t.y)<Math.abs(e.h+t.h)/2}function v4(e,t,r){return e==="top"?t.y=r.y-r.h-ur:e==="right"?t.x=r.x+r.w/2+ur+t.w/2:e==="bottom"?t.y=r.y+r.h+ur:e==="left"&&(t.x=r.x-r.w/2-ur-t.w/2),{x:t.x,y:t.y}}function cE(e,t,{x:r,y:n,w:o,h:a},i){return _g(e,{x:r,y:n,w:o,h:a,r:3}),e.fillStyle=`${bn[t]}dd`,e.fill(),e.strokeStyle=bn[t],e.stroke(),e.fillStyle=bn.text,e.fillText(i,r,n),_g(e,{x:r,y:n,w:o,h:a,r:3}),e.fillStyle=`${bn[t]}dd`,e.fill(),e.strokeStyle=bn[t],e.stroke(),e.fillStyle=bn.text,e.fillText(i,r,n),{x:r,y:n,w:o,h:a}}function dE(e,t){e.font="600 12px monospace",e.textBaseline="middle",e.textAlign="center";let r=e.measureText(t),n=r.actualBoundingBoxAscent+r.actualBoundingBoxDescent,o=r.width+ur*2,a=n+ur*2;return{w:o,h:a}}function S4(e,t,{type:r,position:n="center",text:o},a,i=!1){let{x:l,y:s}=y4(n,t),{offsetX:u,offsetY:c}=b4(r,n,t,ur+1,i);l+=u,s+=c;let{w:d,h:f}=dE(e,o);if(a&&E4({x:l,y:s,w:d,h:f},a)){let g=v4(n,{x:l,y:s,w:d},a);l=g.x,s=g.y}return cE(e,r,{x:l,y:s,w:d,h:f},o)}function x4(e,{w:t,h:r}){let n=t*.5+ur,o=r*.5+ur;return{offsetX:(e.x==="left"?-1:1)*n,offsetY:(e.y==="top"?-1:1)*o}}function $4(e,t,{type:r,text:n}){let{floatingAlignment:o,extremities:a}=t,i=a[o.x],l=a[o.y],{w:s,h:u}=dE(e,n),{offsetX:c,offsetY:d}=x4(o,{w:s,h:u});return i+=c,l+=d,cE(e,r,{x:i,y:l,w:s,h:u},n)}function yo(e,t,r,n){let o=[];r.forEach((a,i)=>{let l=n&&a.position==="center"?$4(e,t,a):S4(e,t,a,o[i-1],n);o[i]=l})}function w4(e,t,r,n){let o=r.reduce((a,i)=>(Object.prototype.hasOwnProperty.call(a,i.position)||(a[i.position]=[]),a[i.position]?.push(i),a),{});o.top&&yo(e,t,o.top,n),o.right&&yo(e,t,o.right,n),o.bottom&&yo(e,t,o.bottom,n),o.left&&yo(e,t,o.left,n),o.center&&yo(e,t,o.center,n)}var yl={margin:"#f6b26ba8",border:"#ffe599a8",padding:"#93c47d8c",content:"#6fa8dca8"},Tg=30;function bt(e){return parseInt(e.replace("px",""),10)}function _n(e){return Number.isInteger(e)?e:e.toFixed(2)}function vf(e){return e.filter(t=>t.text!==0&&t.text!=="0")}function C4(e){let t={top:Dt.window.scrollY,bottom:Dt.window.scrollY+Dt.window.innerHeight,left:Dt.window.scrollX,right:Dt.window.scrollX+Dt.window.innerWidth},r={top:Math.abs(t.top-e.top),bottom:Math.abs(t.bottom-e.bottom),left:Math.abs(t.left-e.left),right:Math.abs(t.right-e.right)};return{x:r.left>r.right?"left":"right",y:r.top>r.bottom?"top":"bottom"}}function _4(e){let t=Dt.getComputedStyle(e),{top:r,left:n,right:o,bottom:a,width:i,height:l}=e.getBoundingClientRect(),{marginTop:s,marginBottom:u,marginLeft:c,marginRight:d,paddingTop:f,paddingBottom:g,paddingLeft:m,paddingRight:y,borderBottomWidth:E,borderTopWidth:b,borderLeftWidth:v,borderRightWidth:S}=t;r=r+Dt.window.scrollY,n=n+Dt.window.scrollX,a=a+Dt.window.scrollY,o=o+Dt.window.scrollX;let x={top:bt(s),bottom:bt(u),left:bt(c),right:bt(d)},O={top:bt(f),bottom:bt(g),left:bt(m),right:bt(y)},w={top:bt(b),bottom:bt(E),left:bt(v),right:bt(S)},T={top:r-x.top,bottom:a+x.bottom,left:n-x.left,right:o+x.right};return{margin:x,padding:O,border:w,top:r,left:n,bottom:a,right:o,width:i,height:l,extremities:T,floatingAlignment:C4(T)}}function T4(e,{margin:t,width:r,height:n,top:o,left:a,bottom:i,right:l}){let s=n+t.bottom+t.top;e.fillStyle=yl.margin,e.fillRect(a,o-t.top,r,t.top),e.fillRect(l,o-t.top,t.right,s),e.fillRect(a,i,r,t.bottom),e.fillRect(a-t.left,o-t.top,t.left,s);let u=[{type:"margin",text:_n(t.top),position:"top"},{type:"margin",text:_n(t.right),position:"right"},{type:"margin",text:_n(t.bottom),position:"bottom"},{type:"margin",text:_n(t.left),position:"left"}];return vf(u)}function O4(e,{padding:t,border:r,width:n,height:o,top:a,left:i,bottom:l,right:s}){let u=n-r.left-r.right,c=o-t.top-t.bottom-r.top-r.bottom;e.fillStyle=yl.padding,e.fillRect(i+r.left,a+r.top,u,t.top),e.fillRect(s-t.right-r.right,a+t.top+r.top,t.right,c),e.fillRect(i+r.left,l-t.bottom-r.bottom,u,t.bottom),e.fillRect(i+r.left,a+t.top+r.top,t.left,c);let d=[{type:"padding",text:t.top,position:"top"},{type:"padding",text:t.right,position:"right"},{type:"padding",text:t.bottom,position:"bottom"},{type:"padding",text:t.left,position:"left"}];return vf(d)}function A4(e,{border:t,width:r,height:n,top:o,left:a,bottom:i,right:l}){let s=n-t.top-t.bottom;e.fillStyle=yl.border,e.fillRect(a,o,r,t.top),e.fillRect(a,i-t.bottom,r,t.bottom),e.fillRect(a,o+t.top,t.left,s),e.fillRect(l-t.right,o+t.top,t.right,s);let u=[{type:"border",text:t.top,position:"top"},{type:"border",text:t.right,position:"right"},{type:"border",text:t.bottom,position:"bottom"},{type:"border",text:t.left,position:"left"}];return vf(u)}function R4(e,{padding:t,border:r,width:n,height:o,top:a,left:i}){let l=n-r.left-r.right-t.left-t.right,s=o-t.top-t.bottom-r.top-r.bottom;return e.fillStyle=yl.content,e.fillRect(i+r.left+t.left,a+r.top+t.top,l,s),[{type:"content",position:"center",text:`${_n(l)} x ${_n(s)}`}]}function D4(e){return t=>{if(e&&t){let r=_4(e),n=T4(t,r),o=O4(t,r),a=A4(t,r),i=R4(t,r),l=r.width<=Tg*3||r.height<=Tg;w4(t,r,[...i,...o,...a,...n],l)}}}function P4(e){h4(D4(e))}const{global:F4}=__STORYBOOK_MODULE_GLOBAL__;var I4=(e,t)=>{let r=F4.document.elementFromPoint(e,t),n=o=>{if(o&&o.shadowRoot){let a=o.shadowRoot.elementFromPoint(e,t);return o.isEqualNode(a)?o:a.shadowRoot?n(a):a}return o};return n(r)||r},Og,Aa={x:0,y:0};function Ag(e,t){Og=I4(e,t),P4(Og)}var L4=(e,t)=>{let{measureEnabled:r}=t.globals||{};return Cg(()=>{if(typeof globalThis.document>"u")return;let n=o=>{window.requestAnimationFrame(()=>{o.stopPropagation(),Aa.x=o.clientX,Aa.y=o.clientY})};return globalThis.document.addEventListener("pointermove",n),()=>{globalThis.document.removeEventListener("pointermove",n)}},[]),Cg(()=>{let n=a=>{window.requestAnimationFrame(()=>{a.stopPropagation(),Ag(a.clientX,a.clientY)})},o=()=>{window.requestAnimationFrame(()=>{g4()})};return t.viewMode==="story"&&r&&(globalThis.document.addEventListener("pointerover",n),p4(),globalThis.window.addEventListener("resize",o),Ag(Aa.x,Aa.y)),()=>{globalThis.window.removeEventListener("resize",o),m4()}},[r,t.viewMode]),e()};globalThis.FEATURES?.measure;const{useEffect:k4,useMemo:N4}=__STORYBOOK_MODULE_PREVIEW_API__,{global:oi}=__STORYBOOK_MODULE_GLOBAL__;var Rg=e=>{(Array.isArray(e)?e:[e]).forEach(M4)},M4=e=>{let t=typeof e=="string"?e:e.join(""),r=oi.document.getElementById(t);r&&r.parentElement&&r.parentElement.removeChild(r)},B4=(e,t)=>{let r=oi.document.getElementById(e);if(r)r.innerHTML!==t&&(r.innerHTML=t);else{let n=oi.document.createElement("style");n.setAttribute("id",e),n.innerHTML=t,oi.document.head.appendChild(n)}};function j4(e){return St`
|
|
242
|
+
${e} body {
|
|
243
|
+
outline: 1px solid #2980b9 !important;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
${e} article {
|
|
247
|
+
outline: 1px solid #3498db !important;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
${e} nav {
|
|
251
|
+
outline: 1px solid #0088c3 !important;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
${e} aside {
|
|
255
|
+
outline: 1px solid #33a0ce !important;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
${e} section {
|
|
259
|
+
outline: 1px solid #66b8da !important;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
${e} header {
|
|
263
|
+
outline: 1px solid #99cfe7 !important;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
${e} footer {
|
|
267
|
+
outline: 1px solid #cce7f3 !important;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
${e} h1 {
|
|
271
|
+
outline: 1px solid #162544 !important;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
${e} h2 {
|
|
275
|
+
outline: 1px solid #314e6e !important;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
${e} h3 {
|
|
279
|
+
outline: 1px solid #3e5e85 !important;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
${e} h4 {
|
|
283
|
+
outline: 1px solid #449baf !important;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
${e} h5 {
|
|
287
|
+
outline: 1px solid #c7d1cb !important;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
${e} h6 {
|
|
291
|
+
outline: 1px solid #4371d0 !important;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
${e} main {
|
|
295
|
+
outline: 1px solid #2f4f90 !important;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
${e} address {
|
|
299
|
+
outline: 1px solid #1a2c51 !important;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
${e} div {
|
|
303
|
+
outline: 1px solid #036cdb !important;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
${e} p {
|
|
307
|
+
outline: 1px solid #ac050b !important;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
${e} hr {
|
|
311
|
+
outline: 1px solid #ff063f !important;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
${e} pre {
|
|
315
|
+
outline: 1px solid #850440 !important;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
${e} blockquote {
|
|
319
|
+
outline: 1px solid #f1b8e7 !important;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
${e} ol {
|
|
323
|
+
outline: 1px solid #ff050c !important;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
${e} ul {
|
|
327
|
+
outline: 1px solid #d90416 !important;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
${e} li {
|
|
331
|
+
outline: 1px solid #d90416 !important;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
${e} dl {
|
|
335
|
+
outline: 1px solid #fd3427 !important;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
${e} dt {
|
|
339
|
+
outline: 1px solid #ff0043 !important;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
${e} dd {
|
|
343
|
+
outline: 1px solid #e80174 !important;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
${e} figure {
|
|
347
|
+
outline: 1px solid #ff00bb !important;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
${e} figcaption {
|
|
351
|
+
outline: 1px solid #bf0032 !important;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
${e} table {
|
|
355
|
+
outline: 1px solid #00cc99 !important;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
${e} caption {
|
|
359
|
+
outline: 1px solid #37ffc4 !important;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
${e} thead {
|
|
363
|
+
outline: 1px solid #98daca !important;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
${e} tbody {
|
|
367
|
+
outline: 1px solid #64a7a0 !important;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
${e} tfoot {
|
|
371
|
+
outline: 1px solid #22746b !important;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
${e} tr {
|
|
375
|
+
outline: 1px solid #86c0b2 !important;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
${e} th {
|
|
379
|
+
outline: 1px solid #a1e7d6 !important;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
${e} td {
|
|
383
|
+
outline: 1px solid #3f5a54 !important;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
${e} col {
|
|
387
|
+
outline: 1px solid #6c9a8f !important;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
${e} colgroup {
|
|
391
|
+
outline: 1px solid #6c9a9d !important;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
${e} button {
|
|
395
|
+
outline: 1px solid #da8301 !important;
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
${e} datalist {
|
|
399
|
+
outline: 1px solid #c06000 !important;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
${e} fieldset {
|
|
403
|
+
outline: 1px solid #d95100 !important;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
${e} form {
|
|
407
|
+
outline: 1px solid #d23600 !important;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
${e} input {
|
|
411
|
+
outline: 1px solid #fca600 !important;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
${e} keygen {
|
|
415
|
+
outline: 1px solid #b31e00 !important;
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
${e} label {
|
|
419
|
+
outline: 1px solid #ee8900 !important;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
${e} legend {
|
|
423
|
+
outline: 1px solid #de6d00 !important;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
${e} meter {
|
|
427
|
+
outline: 1px solid #e8630c !important;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
${e} optgroup {
|
|
431
|
+
outline: 1px solid #b33600 !important;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
${e} option {
|
|
435
|
+
outline: 1px solid #ff8a00 !important;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
${e} output {
|
|
439
|
+
outline: 1px solid #ff9619 !important;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
${e} progress {
|
|
443
|
+
outline: 1px solid #e57c00 !important;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
${e} select {
|
|
447
|
+
outline: 1px solid #e26e0f !important;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
${e} textarea {
|
|
451
|
+
outline: 1px solid #cc5400 !important;
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
${e} details {
|
|
455
|
+
outline: 1px solid #33848f !important;
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
${e} summary {
|
|
459
|
+
outline: 1px solid #60a1a6 !important;
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
${e} command {
|
|
463
|
+
outline: 1px solid #438da1 !important;
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
${e} menu {
|
|
467
|
+
outline: 1px solid #449da6 !important;
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
${e} del {
|
|
471
|
+
outline: 1px solid #bf0000 !important;
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
${e} ins {
|
|
475
|
+
outline: 1px solid #400000 !important;
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
${e} img {
|
|
479
|
+
outline: 1px solid #22746b !important;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
${e} iframe {
|
|
483
|
+
outline: 1px solid #64a7a0 !important;
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
${e} embed {
|
|
487
|
+
outline: 1px solid #98daca !important;
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
${e} object {
|
|
491
|
+
outline: 1px solid #00cc99 !important;
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
${e} param {
|
|
495
|
+
outline: 1px solid #37ffc4 !important;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
${e} video {
|
|
499
|
+
outline: 1px solid #6ee866 !important;
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
${e} audio {
|
|
503
|
+
outline: 1px solid #027353 !important;
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
${e} source {
|
|
507
|
+
outline: 1px solid #012426 !important;
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
${e} canvas {
|
|
511
|
+
outline: 1px solid #a2f570 !important;
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
${e} track {
|
|
515
|
+
outline: 1px solid #59a600 !important;
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
${e} map {
|
|
519
|
+
outline: 1px solid #7be500 !important;
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
${e} area {
|
|
523
|
+
outline: 1px solid #305900 !important;
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
${e} a {
|
|
527
|
+
outline: 1px solid #ff62ab !important;
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
${e} em {
|
|
531
|
+
outline: 1px solid #800b41 !important;
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
${e} strong {
|
|
535
|
+
outline: 1px solid #ff1583 !important;
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
${e} i {
|
|
539
|
+
outline: 1px solid #803156 !important;
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
${e} b {
|
|
543
|
+
outline: 1px solid #cc1169 !important;
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
${e} u {
|
|
547
|
+
outline: 1px solid #ff0430 !important;
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
${e} s {
|
|
551
|
+
outline: 1px solid #f805e3 !important;
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
${e} small {
|
|
555
|
+
outline: 1px solid #d107b2 !important;
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
${e} abbr {
|
|
559
|
+
outline: 1px solid #4a0263 !important;
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
${e} q {
|
|
563
|
+
outline: 1px solid #240018 !important;
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
${e} cite {
|
|
567
|
+
outline: 1px solid #64003c !important;
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
${e} dfn {
|
|
571
|
+
outline: 1px solid #b4005a !important;
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
${e} sub {
|
|
575
|
+
outline: 1px solid #dba0c8 !important;
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
${e} sup {
|
|
579
|
+
outline: 1px solid #cc0256 !important;
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
${e} time {
|
|
583
|
+
outline: 1px solid #d6606d !important;
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
${e} code {
|
|
587
|
+
outline: 1px solid #e04251 !important;
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
${e} kbd {
|
|
591
|
+
outline: 1px solid #5e001f !important;
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
${e} samp {
|
|
595
|
+
outline: 1px solid #9c0033 !important;
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
${e} var {
|
|
599
|
+
outline: 1px solid #d90047 !important;
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
${e} mark {
|
|
603
|
+
outline: 1px solid #ff0053 !important;
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
${e} bdi {
|
|
607
|
+
outline: 1px solid #bf3668 !important;
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
${e} bdo {
|
|
611
|
+
outline: 1px solid #6f1400 !important;
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
${e} ruby {
|
|
615
|
+
outline: 1px solid #ff7b93 !important;
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
${e} rt {
|
|
619
|
+
outline: 1px solid #ff2f54 !important;
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
${e} rp {
|
|
623
|
+
outline: 1px solid #803e49 !important;
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
${e} span {
|
|
627
|
+
outline: 1px solid #cc2643 !important;
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
${e} br {
|
|
631
|
+
outline: 1px solid #db687d !important;
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
${e} wbr {
|
|
635
|
+
outline: 1px solid #db175b !important;
|
|
636
|
+
}`}var H4=(e,t)=>{let r=t.globals||{},n=[!0,"true"].includes(r[xD]),o=t.viewMode==="docs",a=N4(()=>j4(o?'[data-story-block="true"]':".sb-show-main"),[t]);return k4(()=>{let i=o?`addon-outline-docs-${t.id}`:"addon-outline";return n?B4(i,a):Rg(i),()=>{Rg(i)}},[n,a,t]),e()};globalThis.FEATURES?.outline;const{clearAllMocks:JY,fn:ZY,isMockFunction:QY,resetAllMocks:eX,restoreAllMocks:tX,uninstrumentedUserEvent:rX,within:nX}=__STORYBOOK_MODULE_TEST__;var Hn=e=>e.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,"-").replace(/-+/g,"-").replace(/^-+/,"").replace(/-+$/,""),Dg=(e,t)=>{let r=Hn(e);if(r==="")throw new Error(`Invalid ${t} '${e}', must include alphanumeric characters`);return r},Ra=(e,t)=>`${Dg(e,"kind")}${t?`--${Dg(t,"name")}`:""}`;const{once:U4}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var Sf=rt(sn(),1),fE=rt(y1(),1),z4=/\/([^/]+)\/(?:(.*)_)?([^/]+)?/;(0,Sf.default)(1e3)(e=>{let t={viewMode:void 0,storyId:void 0,refId:void 0};if(e){let[,r,n,o]=e.toLowerCase().match(z4)||[];r&&Object.assign(t,{viewMode:r,storyId:o,refId:n})}return t});var ai=Symbol("Deeply equal"),kc=(e,t)=>{if(typeof e!=typeof t)return t;if(Kt(e,t))return ai;if(Array.isArray(e)&&Array.isArray(t)){let r=t.reduce((n,o,a)=>{let i=kc(e[a],o);return i!==ai&&(n[a]=i),n},new Array(t.length));return t.length>=e.length?r:r.concat(new Array(e.length-t.length).fill(void 0))}return In(e)&&In(t)?Object.keys({...e,...t}).reduce((r,n)=>{let o=kc(e?.[n],t?.[n]);return o===ai?r:Object.assign(r,{[n]:o})},{}):t},Pg=/^[a-zA-Z0-9 _-]*$/,K4=/^-?[0-9]+(\.[0-9]+)?$/,pE=/^#([a-f0-9]{3,4}|[a-f0-9]{6}|[a-f0-9]{8})$/i,hE=/^(rgba?|hsla?)\(([0-9]{1,3}),\s?([0-9]{1,3})%?,\s?([0-9]{1,3})%?,?\s?([0-9](\.[0-9]{1,2})?)?\)$/i,Nc=(e="",t)=>e===null||e===""||!Pg.test(e)?!1:t==null||t instanceof Date||typeof t=="number"||typeof t=="boolean"?!0:typeof t=="string"?Pg.test(t)||K4.test(t)||pE.test(t)||hE.test(t):Array.isArray(t)?t.every(r=>Nc(e,r)):In(t)?Object.entries(t).every(([r,n])=>Nc(r,n)):!1,Mc=e=>e===void 0?"!undefined":e===null?"!null":typeof e=="string"?pE.test(e)?`!hex(${e.slice(1)})`:hE.test(e)?`!${e.replace(/[\s%]/g,"")}`:e:typeof e=="boolean"?`!${e}`:e instanceof Date?`!date(${e.toISOString()})`:Array.isArray(e)?e.map(Mc):In(e)?Object.entries(e).reduce((t,[r,n])=>Object.assign(t,{[r]:Mc(n)}),{}):e,G4=e=>{switch(e){case"%20":return"+";case"%5B":return"[";case"%5D":return"]";case"%2C":return",";case"%3A":return":"}return e},W4=/%[0-9A-F]{2}/g,Fg=(e,t)=>{let r=kc(e,t);if(!r||r===ai)return"";let n=Object.entries(r).reduce((o,[a,i])=>Nc(a,i)?Object.assign(o,{[a]:i}):(U4.warn(St`
|
|
637
|
+
Omitted potentially unsafe URL args.
|
|
638
|
+
|
|
639
|
+
More info: https://storybook.js.org/docs/writing-stories/args?ref=error#setting-args-through-the-url
|
|
640
|
+
`),o),{});return(0,fE.stringify)(Mc(n),{delimiter:";",nesting:!0,nestingSyntax:"js"}).replace(W4,G4).split(";").map(o=>o.replace("=",":")).join(";")},V4=(0,Sf.default)(1e3)(e=>e!==void 0?(0,fE.parse)(e):{}),gE=e=>V4(e?.search?e.search.slice(1):"");(0,Sf.default)(1e3)((e,t,r=!0)=>{if(r){if(typeof t!="string")throw new Error("startsWith only works with string targets");return e&&e.startsWith(t)?{path:e}:null}let n=typeof t=="string"&&e===t,o=e&&t&&e.match(t);return n||o?{path:e}:null});const{global:q4}=__STORYBOOK_MODULE_GLOBAL__;function Bc(){return Bc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Bc.apply(this,arguments)}var Ig;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Ig||(Ig={}));function $t(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function jc(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function mE(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}var Lg;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Lg||(Lg={}));function Hc(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function Y4(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?mE(e):e;return{pathname:r?r.startsWith("/")?r:X4(r,t):t,search:J4(n),hash:Z4(o)}}function X4(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(n=>{n===".."?r.length>1&&r.pop():n!=="."&&r.push(n)}),r.length>1?r.join("/"):"/"}function ms(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function yE(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function bE(e,t,r,n){n===void 0&&(n=!1);let o;typeof e=="string"?o=mE(e):(o=Bc({},e),$t(!o.pathname||!o.pathname.includes("?"),ms("?","pathname","search",o)),$t(!o.pathname||!o.pathname.includes("#"),ms("#","pathname","hash",o)),$t(!o.search||!o.search.includes("#"),ms("#","search","hash",o)));let a=e===""||o.pathname==="",i=a?"/":o.pathname,l;if(n||i==null)l=r;else{let d=t.length-1;if(i.startsWith("..")){let f=i.split("/");for(;f[0]==="..";)f.shift(),d-=1;o.pathname=f.join("/")}l=d>=0?t[d]:"/"}let s=Y4(o,l),u=i&&i!=="/"&&i.endsWith("/"),c=(a||i===".")&&r.endsWith("/");return!s.pathname.endsWith("/")&&(u||c)&&(s.pathname+="/"),s}var xf=e=>e.join("/").replace(/\/\/+/g,"/"),J4=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Z4=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Q4(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var EE=["post","put","patch","delete"];new Set(EE);var eF=["get",...EE];new Set(eF);function Uc(){return Uc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Uc.apply(this,arguments)}var $f=p.createContext(null),vE=p.createContext(null);p.createContext(null);var dn=p.createContext(null),SE=p.createContext(null),ia=p.createContext({outlet:null,matches:[],isDataRoute:!1}),tF=p.createContext(null);function rF(e,t){let{relative:r}=t===void 0?{}:t;wf()||$t(!1);let{basename:n,navigator:o}=p.useContext(dn),{hash:a,pathname:i,search:l}=bl(e,{relative:r}),s=i;return n!=="/"&&(s=i==="/"?n:xf([n,i])),o.createHref({pathname:s,search:l,hash:a})}function wf(){return p.useContext(SE)!=null}function la(){return wf()||$t(!1),p.useContext(SE).location}function xE(e){p.useContext(dn).static||p.useLayoutEffect(e)}function nF(){let{isDataRoute:e}=p.useContext(ia);return e?dF():oF()}function oF(){wf()||$t(!1);let e=p.useContext($f),{basename:t,navigator:r}=p.useContext(dn),{matches:n}=p.useContext(ia),{pathname:o}=la(),a=JSON.stringify(yE(n).map(l=>l.pathnameBase)),i=p.useRef(!1);return xE(()=>{i.current=!0}),p.useCallback(function(l,s){if(s===void 0&&(s={}),!i.current)return;if(typeof l=="number"){r.go(l);return}let u=bE(l,JSON.parse(a),o,s.relative==="path");e==null&&t!=="/"&&(u.pathname=u.pathname==="/"?t:xf([t,u.pathname])),(s.replace?r.replace:r.push)(u,s.state,s)},[t,r,a,o,e])}p.createContext(null);function bl(e,t){let{relative:r}=t===void 0?{}:t,{matches:n}=p.useContext(ia),{pathname:o}=la(),a=JSON.stringify(yE(n).map(i=>i.pathnameBase));return p.useMemo(()=>bE(e,JSON.parse(a),o,r==="path"),[e,a,o,r])}function aF(){let e=cF(),t=Q4(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:n};return p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),r?p.createElement("pre",{style:o},r):null,null)}p.createElement(aF,null);var $E=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})($E||{}),Go=(function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e})(Go||{});function iF(e){let t=p.useContext($f);return t||$t(!1),t}function lF(e){let t=p.useContext(vE);return t||$t(!1),t}function sF(e){let t=p.useContext(ia);return t||$t(!1),t}function Cf(e){let t=sF(),r=t.matches[t.matches.length-1];return r.route.id||$t(!1),r.route.id}function uF(){return Cf(Go.UseRouteId)}function cF(){var e;let t=p.useContext(tF),r=lF(Go.UseRouteError),n=Cf(Go.UseRouteError);return t||((e=r.errors)==null?void 0:e[n])}function dF(){let{router:e}=iF($E.UseNavigateStable),t=Cf(Go.UseNavigateStable),r=p.useRef(!1);return xE(()=>{r.current=!0}),p.useCallback(function(n,o){o===void 0&&(o={}),r.current&&(typeof n=="number"?e.navigate(n):e.navigate(n,Uc({fromRouteId:t},o)))},[e,t])}var fF=(function(e){return e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error",e})(fF||{});new Promise(()=>{});function nn(){return nn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},nn.apply(this,arguments)}function _f(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a<n.length;a++)o=n[a],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var ii="get",ys="application/x-www-form-urlencoded";function El(e){return e!=null&&typeof e.tagName=="string"}function pF(e){return El(e)&&e.tagName.toLowerCase()==="button"}function hF(e){return El(e)&&e.tagName.toLowerCase()==="form"}function gF(e){return El(e)&&e.tagName.toLowerCase()==="input"}function mF(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function yF(e,t){return e.button===0&&(!t||t==="_self")&&!mF(e)}var Da=null;function bF(){if(Da===null)try{new FormData(document.createElement("form"),0),Da=!1}catch{Da=!0}return Da}var EF=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function bs(e){return e!=null&&!EF.has(e)?null:e}function vF(e,t){let r,n,o,a,i;if(hF(e)){let l=e.getAttribute("action");n=l?Hc(l,t):null,r=e.getAttribute("method")||ii,o=bs(e.getAttribute("enctype"))||ys,a=new FormData(e)}else if(pF(e)||gF(e)&&(e.type==="submit"||e.type==="image")){let l=e.form;if(l==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||l.getAttribute("action");if(n=s?Hc(s,t):null,r=e.getAttribute("formmethod")||l.getAttribute("method")||ii,o=bs(e.getAttribute("formenctype"))||bs(l.getAttribute("enctype"))||ys,a=new FormData(l,e),!bF()){let{name:u,type:c,value:d}=e;if(c==="image"){let f=u?u+".":"";a.append(f+"x","0"),a.append(f+"y","0")}else u&&a.append(u,d)}}else{if(El(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=ii,n=null,o=ys,i=e}return a&&o==="text/plain"&&(i=a,a=void 0),{action:n,method:r.toLowerCase(),encType:o,formData:a,body:i}}var SF=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],xF=["aria-current","caseSensitive","className","end","style","to","children"],$F=["reloadDocument","replace","state","method","action","onSubmit","submit","relative","preventScrollReset"],wF=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",CF=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,_F=p.forwardRef(function(e,t){let{onClick:r,relative:n,reloadDocument:o,replace:a,state:i,target:l,to:s,preventScrollReset:u}=e,c=_f(e,SF),{basename:d}=p.useContext(dn),f,g=!1;if(typeof s=="string"&&CF.test(s)&&(f=s,wF))try{let b=new URL(window.location.href),v=s.startsWith("//")?new URL(b.protocol+s):new URL(s),S=Hc(v.pathname,d);v.origin===b.origin&&S!=null?s=S+v.search+v.hash:g=!0}catch{}let m=rF(s,{relative:n}),y=AF(s,{replace:a,state:i,target:l,preventScrollReset:u,relative:n});function E(b){r&&r(b),b.defaultPrevented||y(b)}return p.createElement("a",nn({},c,{href:f||m,onClick:g||o?r:E,ref:t,target:l}))});p.forwardRef(function(e,t){let{"aria-current":r="page",caseSensitive:n=!1,className:o="",end:a=!1,style:i,to:l,children:s}=e,u=_f(e,xF),c=bl(l,{relative:u.relative}),d=la(),f=p.useContext(vE),{navigator:g}=p.useContext(dn),m=g.encodeLocation?g.encodeLocation(c).pathname:c.pathname,y=d.pathname,E=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;n||(y=y.toLowerCase(),E=E?E.toLowerCase():null,m=m.toLowerCase());let b=y===m||!a&&y.startsWith(m)&&y.charAt(m.length)==="/",v=E!=null&&(E===m||!a&&E.startsWith(m)&&E.charAt(m.length)==="/"),S=b?r:void 0,x;typeof o=="function"?x=o({isActive:b,isPending:v}):x=[o,b?"active":null,v?"pending":null].filter(Boolean).join(" ");let O=typeof i=="function"?i({isActive:b,isPending:v}):i;return p.createElement(_F,nn({},u,{"aria-current":S,className:x,ref:t,style:O,to:l}),typeof s=="function"?s({isActive:b,isPending:v}):s)});p.forwardRef((e,t)=>{let r=DF();return p.createElement(TF,nn({},e,{submit:r,ref:t}))});var TF=p.forwardRef((e,t)=>{let{reloadDocument:r,replace:n,state:o,method:a=ii,action:i,onSubmit:l,submit:s,relative:u,preventScrollReset:c}=e,d=_f(e,$F),f=a.toLowerCase()==="get"?"get":"post",g=PF(i,{relative:u});return p.createElement("form",nn({ref:t,method:f,action:g,onSubmit:r?l:m=>{if(l&&l(m),m.defaultPrevented)return;m.preventDefault();let y=m.nativeEvent.submitter,E=y?.getAttribute("formmethod")||a;s(y||m.currentTarget,{method:E,replace:n,state:o,relative:u,preventScrollReset:c})}},d))}),zc;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher"})(zc||(zc={}));var kg;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(kg||(kg={}));function OF(e){let t=p.useContext($f);return t||$t(!1),t}function AF(e,t){let{target:r,replace:n,state:o,preventScrollReset:a,relative:i}=t===void 0?{}:t,l=nF(),s=la(),u=bl(e,{relative:i});return p.useCallback(c=>{if(yF(c,r)){c.preventDefault();let d=n!==void 0?n:jc(s)===jc(u);l(e,{replace:d,state:o,preventScrollReset:a,relative:i})}},[s,l,u,n,o,r,e,a,i])}function RF(){if(typeof document>"u")throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.")}function DF(){let{router:e}=OF(zc.UseSubmit),{basename:t}=p.useContext(dn),r=uF();return p.useCallback(function(n,o){o===void 0&&(o={}),RF();let{action:a,method:i,encType:l,formData:s,body:u}=vF(n,t);e.navigate(o.action||a,{preventScrollReset:o.preventScrollReset,formData:s,body:u,formMethod:o.method||i,formEncType:o.encType||l,replace:o.replace,state:o.state,fromRouteId:r})},[e,t,r])}function PF(e,t){let{relative:r}=t===void 0?{}:t,{basename:n}=p.useContext(dn),o=p.useContext(ia);o||$t(!1);let[a]=o.matches.slice(-1),i=nn({},bl(e||".",{relative:r})),l=la();if(e==null&&(i.search=l.search,a.route.index)){let s=new URLSearchParams(i.search);s.delete("index"),i.search=s.toString()?"?"+s.toString():""}return(!e||e===".")&&a.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(i.pathname=i.pathname==="/"?n:xf([n,i.pathname])),jc(i)}var{document:oX}=q4,Pa={exports:{}},Es,Ng;function sa(){if(Ng)return Es;Ng=1;const e="2.0.0",t=256,r=Number.MAX_SAFE_INTEGER||9007199254740991,n=16,o=t-6;return Es={MAX_LENGTH:t,MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:o,MAX_SAFE_INTEGER:r,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},Es}var vs,Mg;function vl(){if(Mg)return vs;Mg=1;var e={};return vs=typeof process=="object"&&e&&e.NODE_DEBUG&&/\bsemver\b/i.test(e.NODE_DEBUG)?(...r)=>console.error("SEMVER",...r):()=>{},vs}var Bg;function ua(){return Bg||(Bg=1,(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:n,MAX_LENGTH:o}=sa(),a=vl();t=e.exports={};const i=t.re=[],l=t.safeRe=[],s=t.src=[],u=t.safeSrc=[],c=t.t={};let d=0;const f="[a-zA-Z0-9-]",g=[["\\s",1],["\\d",o],[f,n]],m=E=>{for(const[b,v]of g)E=E.split(`${b}*`).join(`${b}{0,${v}}`).split(`${b}+`).join(`${b}{1,${v}}`);return E},y=(E,b,v)=>{const S=m(b),x=d++;a(E,x,b),c[E]=x,s[x]=b,u[x]=S,i[x]=new RegExp(b,v?"g":void 0),l[x]=new RegExp(S,v?"g":void 0)};y("NUMERICIDENTIFIER","0|[1-9]\\d*"),y("NUMERICIDENTIFIERLOOSE","\\d+"),y("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${f}*`),y("MAINVERSION",`(${s[c.NUMERICIDENTIFIER]})\\.(${s[c.NUMERICIDENTIFIER]})\\.(${s[c.NUMERICIDENTIFIER]})`),y("MAINVERSIONLOOSE",`(${s[c.NUMERICIDENTIFIERLOOSE]})\\.(${s[c.NUMERICIDENTIFIERLOOSE]})\\.(${s[c.NUMERICIDENTIFIERLOOSE]})`),y("PRERELEASEIDENTIFIER",`(?:${s[c.NONNUMERICIDENTIFIER]}|${s[c.NUMERICIDENTIFIER]})`),y("PRERELEASEIDENTIFIERLOOSE",`(?:${s[c.NONNUMERICIDENTIFIER]}|${s[c.NUMERICIDENTIFIERLOOSE]})`),y("PRERELEASE",`(?:-(${s[c.PRERELEASEIDENTIFIER]}(?:\\.${s[c.PRERELEASEIDENTIFIER]})*))`),y("PRERELEASELOOSE",`(?:-?(${s[c.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${s[c.PRERELEASEIDENTIFIERLOOSE]})*))`),y("BUILDIDENTIFIER",`${f}+`),y("BUILD",`(?:\\+(${s[c.BUILDIDENTIFIER]}(?:\\.${s[c.BUILDIDENTIFIER]})*))`),y("FULLPLAIN",`v?${s[c.MAINVERSION]}${s[c.PRERELEASE]}?${s[c.BUILD]}?`),y("FULL",`^${s[c.FULLPLAIN]}$`),y("LOOSEPLAIN",`[v=\\s]*${s[c.MAINVERSIONLOOSE]}${s[c.PRERELEASELOOSE]}?${s[c.BUILD]}?`),y("LOOSE",`^${s[c.LOOSEPLAIN]}$`),y("GTLT","((?:<|>)?=?)"),y("XRANGEIDENTIFIERLOOSE",`${s[c.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),y("XRANGEIDENTIFIER",`${s[c.NUMERICIDENTIFIER]}|x|X|\\*`),y("XRANGEPLAIN",`[v=\\s]*(${s[c.XRANGEIDENTIFIER]})(?:\\.(${s[c.XRANGEIDENTIFIER]})(?:\\.(${s[c.XRANGEIDENTIFIER]})(?:${s[c.PRERELEASE]})?${s[c.BUILD]}?)?)?`),y("XRANGEPLAINLOOSE",`[v=\\s]*(${s[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[c.XRANGEIDENTIFIERLOOSE]})(?:${s[c.PRERELEASELOOSE]})?${s[c.BUILD]}?)?)?`),y("XRANGE",`^${s[c.GTLT]}\\s*${s[c.XRANGEPLAIN]}$`),y("XRANGELOOSE",`^${s[c.GTLT]}\\s*${s[c.XRANGEPLAINLOOSE]}$`),y("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),y("COERCE",`${s[c.COERCEPLAIN]}(?:$|[^\\d])`),y("COERCEFULL",s[c.COERCEPLAIN]+`(?:${s[c.PRERELEASE]})?(?:${s[c.BUILD]})?(?:$|[^\\d])`),y("COERCERTL",s[c.COERCE],!0),y("COERCERTLFULL",s[c.COERCEFULL],!0),y("LONETILDE","(?:~>?)"),y("TILDETRIM",`(\\s*)${s[c.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",y("TILDE",`^${s[c.LONETILDE]}${s[c.XRANGEPLAIN]}$`),y("TILDELOOSE",`^${s[c.LONETILDE]}${s[c.XRANGEPLAINLOOSE]}$`),y("LONECARET","(?:\\^)"),y("CARETTRIM",`(\\s*)${s[c.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",y("CARET",`^${s[c.LONECARET]}${s[c.XRANGEPLAIN]}$`),y("CARETLOOSE",`^${s[c.LONECARET]}${s[c.XRANGEPLAINLOOSE]}$`),y("COMPARATORLOOSE",`^${s[c.GTLT]}\\s*(${s[c.LOOSEPLAIN]})$|^$`),y("COMPARATOR",`^${s[c.GTLT]}\\s*(${s[c.FULLPLAIN]})$|^$`),y("COMPARATORTRIM",`(\\s*)${s[c.GTLT]}\\s*(${s[c.LOOSEPLAIN]}|${s[c.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",y("HYPHENRANGE",`^\\s*(${s[c.XRANGEPLAIN]})\\s+-\\s+(${s[c.XRANGEPLAIN]})\\s*$`),y("HYPHENRANGELOOSE",`^\\s*(${s[c.XRANGEPLAINLOOSE]})\\s+-\\s+(${s[c.XRANGEPLAINLOOSE]})\\s*$`),y("STAR","(<|>)?=?\\s*\\*"),y("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),y("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(Pa,Pa.exports)),Pa.exports}var Ss,jg;function Tf(){if(jg)return Ss;jg=1;const e=Object.freeze({loose:!0}),t=Object.freeze({});return Ss=n=>n?typeof n!="object"?e:n:t,Ss}var xs,Hg;function wE(){if(Hg)return xs;Hg=1;const e=/^[0-9]+$/,t=(n,o)=>{if(typeof n=="number"&&typeof o=="number")return n===o?0:n<o?-1:1;const a=e.test(n),i=e.test(o);return a&&i&&(n=+n,o=+o),n===o?0:a&&!i?-1:i&&!a?1:n<o?-1:1};return xs={compareIdentifiers:t,rcompareIdentifiers:(n,o)=>t(o,n)},xs}var $s,Ug;function Ye(){if(Ug)return $s;Ug=1;const e=vl(),{MAX_LENGTH:t,MAX_SAFE_INTEGER:r}=sa(),{safeRe:n,t:o}=ua(),a=Tf(),{compareIdentifiers:i}=wE();class l{constructor(u,c){if(c=a(c),u instanceof l){if(u.loose===!!c.loose&&u.includePrerelease===!!c.includePrerelease)return u;u=u.version}else if(typeof u!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof u}".`);if(u.length>t)throw new TypeError(`version is longer than ${t} characters`);e("SemVer",u,c),this.options=c,this.loose=!!c.loose,this.includePrerelease=!!c.includePrerelease;const d=u.trim().match(c.loose?n[o.LOOSE]:n[o.FULL]);if(!d)throw new TypeError(`Invalid Version: ${u}`);if(this.raw=u,this.major=+d[1],this.minor=+d[2],this.patch=+d[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");d[4]?this.prerelease=d[4].split(".").map(f=>{if(/^[0-9]+$/.test(f)){const g=+f;if(g>=0&&g<r)return g}return f}):this.prerelease=[],this.build=d[5]?d[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(u){if(e("SemVer.compare",this.version,this.options,u),!(u instanceof l)){if(typeof u=="string"&&u===this.version)return 0;u=new l(u,this.options)}return u.version===this.version?0:this.compareMain(u)||this.comparePre(u)}compareMain(u){return u instanceof l||(u=new l(u,this.options)),this.major<u.major?-1:this.major>u.major?1:this.minor<u.minor?-1:this.minor>u.minor?1:this.patch<u.patch?-1:this.patch>u.patch?1:0}comparePre(u){if(u instanceof l||(u=new l(u,this.options)),this.prerelease.length&&!u.prerelease.length)return-1;if(!this.prerelease.length&&u.prerelease.length)return 1;if(!this.prerelease.length&&!u.prerelease.length)return 0;let c=0;do{const d=this.prerelease[c],f=u.prerelease[c];if(e("prerelease compare",c,d,f),d===void 0&&f===void 0)return 0;if(f===void 0)return 1;if(d===void 0)return-1;if(d===f)continue;return i(d,f)}while(++c)}compareBuild(u){u instanceof l||(u=new l(u,this.options));let c=0;do{const d=this.build[c],f=u.build[c];if(e("build compare",c,d,f),d===void 0&&f===void 0)return 0;if(f===void 0)return 1;if(d===void 0)return-1;if(d===f)continue;return i(d,f)}while(++c)}inc(u,c,d){if(u.startsWith("pre")){if(!c&&d===!1)throw new Error("invalid increment argument: identifier is empty");if(c){const f=`-${c}`.match(this.options.loose?n[o.PRERELEASELOOSE]:n[o.PRERELEASE]);if(!f||f[1]!==c)throw new Error(`invalid identifier: ${c}`)}}switch(u){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",c,d);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",c,d);break;case"prepatch":this.prerelease.length=0,this.inc("patch",c,d),this.inc("pre",c,d);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",c,d),this.inc("pre",c,d);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const f=Number(d)?1:0;if(this.prerelease.length===0)this.prerelease=[f];else{let g=this.prerelease.length;for(;--g>=0;)typeof this.prerelease[g]=="number"&&(this.prerelease[g]++,g=-2);if(g===-1){if(c===this.prerelease.join(".")&&d===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(f)}}if(c){let g=[c,f];d===!1&&(g=[c]),i(this.prerelease[0],c)===0?isNaN(this.prerelease[1])&&(this.prerelease=g):this.prerelease=g}break}default:throw new Error(`invalid increment argument: ${u}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return $s=l,$s}var ws,zg;function fn(){if(zg)return ws;zg=1;const e=Ye();return ws=(r,n,o=!1)=>{if(r instanceof e)return r;try{return new e(r,n)}catch(a){if(!o)return null;throw a}},ws}var Cs,Kg;function FF(){if(Kg)return Cs;Kg=1;const e=fn();return Cs=(r,n)=>{const o=e(r,n);return o?o.version:null},Cs}var _s,Gg;function IF(){if(Gg)return _s;Gg=1;const e=fn();return _s=(r,n)=>{const o=e(r.trim().replace(/^[=v]+/,""),n);return o?o.version:null},_s}var Ts,Wg;function LF(){if(Wg)return Ts;Wg=1;const e=Ye();return Ts=(r,n,o,a,i)=>{typeof o=="string"&&(i=a,a=o,o=void 0);try{return new e(r instanceof e?r.version:r,o).inc(n,a,i).version}catch{return null}},Ts}var Os,Vg;function kF(){if(Vg)return Os;Vg=1;const e=fn();return Os=(r,n)=>{const o=e(r,null,!0),a=e(n,null,!0),i=o.compare(a);if(i===0)return null;const l=i>0,s=l?o:a,u=l?a:o,c=!!s.prerelease.length;if(!!u.prerelease.length&&!c){if(!u.patch&&!u.minor)return"major";if(u.compareMain(s)===0)return u.minor&&!u.patch?"minor":"patch"}const f=c?"pre":"";return o.major!==a.major?f+"major":o.minor!==a.minor?f+"minor":o.patch!==a.patch?f+"patch":"prerelease"},Os}var As,qg;function NF(){if(qg)return As;qg=1;const e=Ye();return As=(r,n)=>new e(r,n).major,As}var Rs,Yg;function MF(){if(Yg)return Rs;Yg=1;const e=Ye();return Rs=(r,n)=>new e(r,n).minor,Rs}var Ds,Xg;function BF(){if(Xg)return Ds;Xg=1;const e=Ye();return Ds=(r,n)=>new e(r,n).patch,Ds}var Ps,Jg;function jF(){if(Jg)return Ps;Jg=1;const e=fn();return Ps=(r,n)=>{const o=e(r,n);return o&&o.prerelease.length?o.prerelease:null},Ps}var Fs,Zg;function kt(){if(Zg)return Fs;Zg=1;const e=Ye();return Fs=(r,n,o)=>new e(r,o).compare(new e(n,o)),Fs}var Is,Qg;function HF(){if(Qg)return Is;Qg=1;const e=kt();return Is=(r,n,o)=>e(n,r,o),Is}var Ls,em;function UF(){if(em)return Ls;em=1;const e=kt();return Ls=(r,n)=>e(r,n,!0),Ls}var ks,tm;function Of(){if(tm)return ks;tm=1;const e=Ye();return ks=(r,n,o)=>{const a=new e(r,o),i=new e(n,o);return a.compare(i)||a.compareBuild(i)},ks}var Ns,rm;function zF(){if(rm)return Ns;rm=1;const e=Of();return Ns=(r,n)=>r.sort((o,a)=>e(o,a,n)),Ns}var Ms,nm;function KF(){if(nm)return Ms;nm=1;const e=Of();return Ms=(r,n)=>r.sort((o,a)=>e(a,o,n)),Ms}var Bs,om;function Sl(){if(om)return Bs;om=1;const e=kt();return Bs=(r,n,o)=>e(r,n,o)>0,Bs}var js,am;function Af(){if(am)return js;am=1;const e=kt();return js=(r,n,o)=>e(r,n,o)<0,js}var Hs,im;function CE(){if(im)return Hs;im=1;const e=kt();return Hs=(r,n,o)=>e(r,n,o)===0,Hs}var Us,lm;function _E(){if(lm)return Us;lm=1;const e=kt();return Us=(r,n,o)=>e(r,n,o)!==0,Us}var zs,sm;function Rf(){if(sm)return zs;sm=1;const e=kt();return zs=(r,n,o)=>e(r,n,o)>=0,zs}var Ks,um;function Df(){if(um)return Ks;um=1;const e=kt();return Ks=(r,n,o)=>e(r,n,o)<=0,Ks}var Gs,cm;function TE(){if(cm)return Gs;cm=1;const e=CE(),t=_E(),r=Sl(),n=Rf(),o=Af(),a=Df();return Gs=(l,s,u,c)=>{switch(s){case"===":return typeof l=="object"&&(l=l.version),typeof u=="object"&&(u=u.version),l===u;case"!==":return typeof l=="object"&&(l=l.version),typeof u=="object"&&(u=u.version),l!==u;case"":case"=":case"==":return e(l,u,c);case"!=":return t(l,u,c);case">":return r(l,u,c);case">=":return n(l,u,c);case"<":return o(l,u,c);case"<=":return a(l,u,c);default:throw new TypeError(`Invalid operator: ${s}`)}},Gs}var Ws,dm;function GF(){if(dm)return Ws;dm=1;const e=Ye(),t=fn(),{safeRe:r,t:n}=ua();return Ws=(a,i)=>{if(a instanceof e)return a;if(typeof a=="number"&&(a=String(a)),typeof a!="string")return null;i=i||{};let l=null;if(!i.rtl)l=a.match(i.includePrerelease?r[n.COERCEFULL]:r[n.COERCE]);else{const g=i.includePrerelease?r[n.COERCERTLFULL]:r[n.COERCERTL];let m;for(;(m=g.exec(a))&&(!l||l.index+l[0].length!==a.length);)(!l||m.index+m[0].length!==l.index+l[0].length)&&(l=m),g.lastIndex=m.index+m[1].length+m[2].length;g.lastIndex=-1}if(l===null)return null;const s=l[2],u=l[3]||"0",c=l[4]||"0",d=i.includePrerelease&&l[5]?`-${l[5]}`:"",f=i.includePrerelease&&l[6]?`+${l[6]}`:"";return t(`${s}.${u}.${c}${d}${f}`,i)},Ws}var Vs,fm;function WF(){if(fm)return Vs;fm=1;const e=fn(),t=sa(),r=Ye(),n=(l,s,u)=>{if(!t.RELEASE_TYPES.includes(s))return null;const c=o(l,u);return c&&a(c,s)},o=(l,s)=>{const u=l instanceof r?l.version:l;return e(u,s)},a=(l,s)=>{if(i(s))return l.version;switch(l.prerelease=[],s){case"major":l.minor=0,l.patch=0;break;case"minor":l.patch=0;break}return l.format()},i=l=>l.startsWith("pre");return Vs=n,Vs}var qs,pm;function VF(){if(pm)return qs;pm=1;class e{constructor(){this.max=1e3,this.map=new Map}get(r){const n=this.map.get(r);if(n!==void 0)return this.map.delete(r),this.map.set(r,n),n}delete(r){return this.map.delete(r)}set(r,n){if(!this.delete(r)&&n!==void 0){if(this.map.size>=this.max){const a=this.map.keys().next().value;this.delete(a)}this.map.set(r,n)}return this}}return qs=e,qs}var Ys,hm;function Nt(){if(hm)return Ys;hm=1;const e=/\s+/g;class t{constructor(C,A){if(A=o(A),C instanceof t)return C.loose===!!A.loose&&C.includePrerelease===!!A.includePrerelease?C:new t(C.raw,A);if(C instanceof a)return this.raw=C.value,this.set=[[C]],this.formatted=void 0,this;if(this.options=A,this.loose=!!A.loose,this.includePrerelease=!!A.includePrerelease,this.raw=C.trim().replace(e," "),this.set=this.raw.split("||").map(D=>this.parseRange(D.trim())).filter(D=>D.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const D=this.set[0];if(this.set=this.set.filter(L=>!y(L[0])),this.set.length===0)this.set=[D];else if(this.set.length>1){for(const L of this.set)if(L.length===1&&E(L[0])){this.set=[L];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let C=0;C<this.set.length;C++){C>0&&(this.formatted+="||");const A=this.set[C];for(let D=0;D<A.length;D++)D>0&&(this.formatted+=" "),this.formatted+=A[D].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(C){const D=((this.options.includePrerelease&&g)|(this.options.loose&&m))+":"+C,L=n.get(D);if(L)return L;const M=this.options.loose,k=M?s[u.HYPHENRANGELOOSE]:s[u.HYPHENRANGE];C=C.replace(k,N(this.options.includePrerelease)),i("hyphen replace",C),C=C.replace(s[u.COMPARATORTRIM],c),i("comparator trim",C),C=C.replace(s[u.TILDETRIM],d),i("tilde trim",C),C=C.replace(s[u.CARETTRIM],f),i("caret trim",C);let H=C.split(" ").map(j=>v(j,this.options)).join(" ").split(/\s+/).map(j=>_(j,this.options));M&&(H=H.filter(j=>(i("loose invalid filter",j,this.options),!!j.match(s[u.COMPARATORLOOSE])))),i("range list",H);const z=new Map,K=H.map(j=>new a(j,this.options));for(const j of K){if(y(j))return[j];z.set(j.value,j)}z.size>1&&z.has("")&&z.delete("");const U=[...z.values()];return n.set(D,U),U}intersects(C,A){if(!(C instanceof t))throw new TypeError("a Range is required");return this.set.some(D=>b(D,A)&&C.set.some(L=>b(L,A)&&D.every(M=>L.every(k=>M.intersects(k,A)))))}test(C){if(!C)return!1;if(typeof C=="string")try{C=new l(C,this.options)}catch{return!1}for(let A=0;A<this.set.length;A++)if(B(this.set[A],C,this.options))return!0;return!1}}Ys=t;const r=VF(),n=new r,o=Tf(),a=xl(),i=vl(),l=Ye(),{safeRe:s,t:u,comparatorTrimReplace:c,tildeTrimReplace:d,caretTrimReplace:f}=ua(),{FLAG_INCLUDE_PRERELEASE:g,FLAG_LOOSE:m}=sa(),y=$=>$.value==="<0.0.0-0",E=$=>$.value==="",b=($,C)=>{let A=!0;const D=$.slice();let L=D.pop();for(;A&&D.length;)A=D.every(M=>L.intersects(M,C)),L=D.pop();return A},v=($,C)=>($=$.replace(s[u.BUILD],""),i("comp",$,C),$=w($,C),i("caret",$),$=x($,C),i("tildes",$),$=R($,C),i("xrange",$),$=P($,C),i("stars",$),$),S=$=>!$||$.toLowerCase()==="x"||$==="*",x=($,C)=>$.trim().split(/\s+/).map(A=>O(A,C)).join(" "),O=($,C)=>{const A=C.loose?s[u.TILDELOOSE]:s[u.TILDE];return $.replace(A,(D,L,M,k,H)=>{i("tilde",$,D,L,M,k,H);let z;return S(L)?z="":S(M)?z=`>=${L}.0.0 <${+L+1}.0.0-0`:S(k)?z=`>=${L}.${M}.0 <${L}.${+M+1}.0-0`:H?(i("replaceTilde pr",H),z=`>=${L}.${M}.${k}-${H} <${L}.${+M+1}.0-0`):z=`>=${L}.${M}.${k} <${L}.${+M+1}.0-0`,i("tilde return",z),z})},w=($,C)=>$.trim().split(/\s+/).map(A=>T(A,C)).join(" "),T=($,C)=>{i("caret",$,C);const A=C.loose?s[u.CARETLOOSE]:s[u.CARET],D=C.includePrerelease?"-0":"";return $.replace(A,(L,M,k,H,z)=>{i("caret",$,L,M,k,H,z);let K;return S(M)?K="":S(k)?K=`>=${M}.0.0${D} <${+M+1}.0.0-0`:S(H)?M==="0"?K=`>=${M}.${k}.0${D} <${M}.${+k+1}.0-0`:K=`>=${M}.${k}.0${D} <${+M+1}.0.0-0`:z?(i("replaceCaret pr",z),M==="0"?k==="0"?K=`>=${M}.${k}.${H}-${z} <${M}.${k}.${+H+1}-0`:K=`>=${M}.${k}.${H}-${z} <${M}.${+k+1}.0-0`:K=`>=${M}.${k}.${H}-${z} <${+M+1}.0.0-0`):(i("no pr"),M==="0"?k==="0"?K=`>=${M}.${k}.${H}${D} <${M}.${k}.${+H+1}-0`:K=`>=${M}.${k}.${H}${D} <${M}.${+k+1}.0-0`:K=`>=${M}.${k}.${H} <${+M+1}.0.0-0`),i("caret return",K),K})},R=($,C)=>(i("replaceXRanges",$,C),$.split(/\s+/).map(A=>I(A,C)).join(" ")),I=($,C)=>{$=$.trim();const A=C.loose?s[u.XRANGELOOSE]:s[u.XRANGE];return $.replace(A,(D,L,M,k,H,z)=>{i("xRange",$,D,L,M,k,H,z);const K=S(M),U=K||S(k),j=U||S(H),V=j;return L==="="&&V&&(L=""),z=C.includePrerelease?"-0":"",K?L===">"||L==="<"?D="<0.0.0-0":D="*":L&&V?(U&&(k=0),H=0,L===">"?(L=">=",U?(M=+M+1,k=0,H=0):(k=+k+1,H=0)):L==="<="&&(L="<",U?M=+M+1:k=+k+1),L==="<"&&(z="-0"),D=`${L+M}.${k}.${H}${z}`):U?D=`>=${M}.0.0${z} <${+M+1}.0.0-0`:j&&(D=`>=${M}.${k}.0${z} <${M}.${+k+1}.0-0`),i("xRange return",D),D})},P=($,C)=>(i("replaceStars",$,C),$.trim().replace(s[u.STAR],"")),_=($,C)=>(i("replaceGTE0",$,C),$.trim().replace(s[C.includePrerelease?u.GTE0PRE:u.GTE0],"")),N=$=>(C,A,D,L,M,k,H,z,K,U,j,V)=>(S(D)?A="":S(L)?A=`>=${D}.0.0${$?"-0":""}`:S(M)?A=`>=${D}.${L}.0${$?"-0":""}`:k?A=`>=${A}`:A=`>=${A}${$?"-0":""}`,S(K)?z="":S(U)?z=`<${+K+1}.0.0-0`:S(j)?z=`<${K}.${+U+1}.0-0`:V?z=`<=${K}.${U}.${j}-${V}`:$?z=`<${K}.${U}.${+j+1}-0`:z=`<=${z}`,`${A} ${z}`.trim()),B=($,C,A)=>{for(let D=0;D<$.length;D++)if(!$[D].test(C))return!1;if(C.prerelease.length&&!A.includePrerelease){for(let D=0;D<$.length;D++)if(i($[D].semver),$[D].semver!==a.ANY&&$[D].semver.prerelease.length>0){const L=$[D].semver;if(L.major===C.major&&L.minor===C.minor&&L.patch===C.patch)return!0}return!1}return!0};return Ys}var Xs,gm;function xl(){if(gm)return Xs;gm=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(c,d){if(d=r(d),c instanceof t){if(c.loose===!!d.loose)return c;c=c.value}c=c.trim().split(/\s+/).join(" "),i("comparator",c,d),this.options=d,this.loose=!!d.loose,this.parse(c),this.semver===e?this.value="":this.value=this.operator+this.semver.version,i("comp",this)}parse(c){const d=this.options.loose?n[o.COMPARATORLOOSE]:n[o.COMPARATOR],f=c.match(d);if(!f)throw new TypeError(`Invalid comparator: ${c}`);this.operator=f[1]!==void 0?f[1]:"",this.operator==="="&&(this.operator=""),f[2]?this.semver=new l(f[2],this.options.loose):this.semver=e}toString(){return this.value}test(c){if(i("Comparator.test",c,this.options.loose),this.semver===e||c===e)return!0;if(typeof c=="string")try{c=new l(c,this.options)}catch{return!1}return a(c,this.operator,this.semver,this.options)}intersects(c,d){if(!(c instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new s(c.value,d).test(this.value):c.operator===""?c.value===""?!0:new s(this.value,d).test(c.semver):(d=r(d),d.includePrerelease&&(this.value==="<0.0.0-0"||c.value==="<0.0.0-0")||!d.includePrerelease&&(this.value.startsWith("<0.0.0")||c.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&c.operator.startsWith(">")||this.operator.startsWith("<")&&c.operator.startsWith("<")||this.semver.version===c.semver.version&&this.operator.includes("=")&&c.operator.includes("=")||a(this.semver,"<",c.semver,d)&&this.operator.startsWith(">")&&c.operator.startsWith("<")||a(this.semver,">",c.semver,d)&&this.operator.startsWith("<")&&c.operator.startsWith(">")))}}Xs=t;const r=Tf(),{safeRe:n,t:o}=ua(),a=TE(),i=vl(),l=Ye(),s=Nt();return Xs}var Js,mm;function $l(){if(mm)return Js;mm=1;const e=Nt();return Js=(r,n,o)=>{try{n=new e(n,o)}catch{return!1}return n.test(r)},Js}var Zs,ym;function qF(){if(ym)return Zs;ym=1;const e=Nt();return Zs=(r,n)=>new e(r,n).set.map(o=>o.map(a=>a.value).join(" ").trim().split(" ")),Zs}var Qs,bm;function YF(){if(bm)return Qs;bm=1;const e=Ye(),t=Nt();return Qs=(n,o,a)=>{let i=null,l=null,s=null;try{s=new t(o,a)}catch{return null}return n.forEach(u=>{s.test(u)&&(!i||l.compare(u)===-1)&&(i=u,l=new e(i,a))}),i},Qs}var eu,Em;function XF(){if(Em)return eu;Em=1;const e=Ye(),t=Nt();return eu=(n,o,a)=>{let i=null,l=null,s=null;try{s=new t(o,a)}catch{return null}return n.forEach(u=>{s.test(u)&&(!i||l.compare(u)===1)&&(i=u,l=new e(i,a))}),i},eu}var tu,vm;function JF(){if(vm)return tu;vm=1;const e=Ye(),t=Nt(),r=Sl();return tu=(o,a)=>{o=new t(o,a);let i=new e("0.0.0");if(o.test(i)||(i=new e("0.0.0-0"),o.test(i)))return i;i=null;for(let l=0;l<o.set.length;++l){const s=o.set[l];let u=null;s.forEach(c=>{const d=new e(c.semver.version);switch(c.operator){case">":d.prerelease.length===0?d.patch++:d.prerelease.push(0),d.raw=d.format();case"":case">=":(!u||r(d,u))&&(u=d);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${c.operator}`)}}),u&&(!i||r(i,u))&&(i=u)}return i&&o.test(i)?i:null},tu}var ru,Sm;function ZF(){if(Sm)return ru;Sm=1;const e=Nt();return ru=(r,n)=>{try{return new e(r,n).range||"*"}catch{return null}},ru}var nu,xm;function Pf(){if(xm)return nu;xm=1;const e=Ye(),t=xl(),{ANY:r}=t,n=Nt(),o=$l(),a=Sl(),i=Af(),l=Df(),s=Rf();return nu=(c,d,f,g)=>{c=new e(c,g),d=new n(d,g);let m,y,E,b,v;switch(f){case">":m=a,y=l,E=i,b=">",v=">=";break;case"<":m=i,y=s,E=a,b="<",v="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(o(c,d,g))return!1;for(let S=0;S<d.set.length;++S){const x=d.set[S];let O=null,w=null;if(x.forEach(T=>{T.semver===r&&(T=new t(">=0.0.0")),O=O||T,w=w||T,m(T.semver,O.semver,g)?O=T:E(T.semver,w.semver,g)&&(w=T)}),O.operator===b||O.operator===v||(!w.operator||w.operator===b)&&y(c,w.semver))return!1;if(w.operator===v&&E(c,w.semver))return!1}return!0},nu}var ou,$m;function QF(){if($m)return ou;$m=1;const e=Pf();return ou=(r,n,o)=>e(r,n,">",o),ou}var au,wm;function eI(){if(wm)return au;wm=1;const e=Pf();return au=(r,n,o)=>e(r,n,"<",o),au}var iu,Cm;function tI(){if(Cm)return iu;Cm=1;const e=Nt();return iu=(r,n,o)=>(r=new e(r,o),n=new e(n,o),r.intersects(n,o)),iu}var lu,_m;function rI(){if(_m)return lu;_m=1;const e=$l(),t=kt();return lu=(r,n,o)=>{const a=[];let i=null,l=null;const s=r.sort((f,g)=>t(f,g,o));for(const f of s)e(f,n,o)?(l=f,i||(i=f)):(l&&a.push([i,l]),l=null,i=null);i&&a.push([i,null]);const u=[];for(const[f,g]of a)f===g?u.push(f):!g&&f===s[0]?u.push("*"):g?f===s[0]?u.push(`<=${g}`):u.push(`${f} - ${g}`):u.push(`>=${f}`);const c=u.join(" || "),d=typeof n.raw=="string"?n.raw:String(n);return c.length<d.length?c:n},lu}var su,Tm;function nI(){if(Tm)return su;Tm=1;const e=Nt(),t=xl(),{ANY:r}=t,n=$l(),o=kt(),a=(d,f,g={})=>{if(d===f)return!0;d=new e(d,g),f=new e(f,g);let m=!1;e:for(const y of d.set){for(const E of f.set){const b=s(y,E,g);if(m=m||b!==null,b)continue e}if(m)return!1}return!0},i=[new t(">=0.0.0-0")],l=[new t(">=0.0.0")],s=(d,f,g)=>{if(d===f)return!0;if(d.length===1&&d[0].semver===r){if(f.length===1&&f[0].semver===r)return!0;g.includePrerelease?d=i:d=l}if(f.length===1&&f[0].semver===r){if(g.includePrerelease)return!0;f=l}const m=new Set;let y,E;for(const R of d)R.operator===">"||R.operator===">="?y=u(y,R,g):R.operator==="<"||R.operator==="<="?E=c(E,R,g):m.add(R.semver);if(m.size>1)return null;let b;if(y&&E){if(b=o(y.semver,E.semver,g),b>0)return null;if(b===0&&(y.operator!==">="||E.operator!=="<="))return null}for(const R of m){if(y&&!n(R,String(y),g)||E&&!n(R,String(E),g))return null;for(const I of f)if(!n(R,String(I),g))return!1;return!0}let v,S,x,O,w=E&&!g.includePrerelease&&E.semver.prerelease.length?E.semver:!1,T=y&&!g.includePrerelease&&y.semver.prerelease.length?y.semver:!1;w&&w.prerelease.length===1&&E.operator==="<"&&w.prerelease[0]===0&&(w=!1);for(const R of f){if(O=O||R.operator===">"||R.operator===">=",x=x||R.operator==="<"||R.operator==="<=",y){if(T&&R.semver.prerelease&&R.semver.prerelease.length&&R.semver.major===T.major&&R.semver.minor===T.minor&&R.semver.patch===T.patch&&(T=!1),R.operator===">"||R.operator===">="){if(v=u(y,R,g),v===R&&v!==y)return!1}else if(y.operator===">="&&!n(y.semver,String(R),g))return!1}if(E){if(w&&R.semver.prerelease&&R.semver.prerelease.length&&R.semver.major===w.major&&R.semver.minor===w.minor&&R.semver.patch===w.patch&&(w=!1),R.operator==="<"||R.operator==="<="){if(S=c(E,R,g),S===R&&S!==E)return!1}else if(E.operator==="<="&&!n(E.semver,String(R),g))return!1}if(!R.operator&&(E||y)&&b!==0)return!1}return!(y&&x&&!E&&b!==0||E&&O&&!y&&b!==0||T||w)},u=(d,f,g)=>{if(!d)return f;const m=o(d.semver,f.semver,g);return m>0?d:m<0||f.operator===">"&&d.operator===">="?f:d},c=(d,f,g)=>{if(!d)return f;const m=o(d.semver,f.semver,g);return m<0?d:m>0||f.operator==="<"&&d.operator==="<="?f:d};return su=a,su}var uu,Om;function oI(){if(Om)return uu;Om=1;const e=ua(),t=sa(),r=Ye(),n=wE(),o=fn(),a=FF(),i=IF(),l=LF(),s=kF(),u=NF(),c=MF(),d=BF(),f=jF(),g=kt(),m=HF(),y=UF(),E=Of(),b=zF(),v=KF(),S=Sl(),x=Af(),O=CE(),w=_E(),T=Rf(),R=Df(),I=TE(),P=GF(),_=WF(),N=xl(),B=Nt(),$=$l(),C=qF(),A=YF(),D=XF(),L=JF(),M=ZF(),k=Pf(),H=QF(),z=eI(),K=tI(),U=rI(),j=nI();return uu={parse:o,valid:a,clean:i,inc:l,diff:s,major:u,minor:c,patch:d,prerelease:f,compare:g,rcompare:m,compareLoose:y,compareBuild:E,sort:b,rsort:v,gt:S,lt:x,eq:O,neq:w,gte:T,lte:R,cmp:I,coerce:P,truncate:_,Comparator:N,Range:B,satisfies:$,toComparators:C,maxSatisfying:A,minSatisfying:D,minVersion:L,validRange:M,outside:k,gtr:H,ltr:z,intersects:K,simplifyRange:U,subset:j,SemVer:r,re:e.re,src:e.src,tokens:e.t,SEMVER_SPEC_VERSION:t.SEMVER_SPEC_VERSION,RELEASE_TYPES:t.RELEASE_TYPES,compareIdentifiers:n.compareIdentifiers,rcompareIdentifiers:n.rcompareIdentifiers},uu}var aI=oI();const ct=OC(aI);var iI=qe({"../../node_modules/toggle-selection/index.js"(e,t){t.exports=function(){var r=document.getSelection();if(!r.rangeCount)return function(){};for(var n=document.activeElement,o=[],a=0;a<r.rangeCount;a++)o.push(r.getRangeAt(a));switch(n.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":n.blur();break;default:n=null;break}return r.removeAllRanges(),function(){r.type==="Caret"&&r.removeAllRanges(),r.rangeCount||o.forEach(function(i){r.addRange(i)}),n&&n.focus()}}}}),lI=qe({"../../node_modules/copy-to-clipboard/index.js"(e,t){var r=iI(),n={"text/plain":"Text","text/html":"Url",default:"Text"},o="Copy to clipboard: #{key}, Enter";function a(l){var s=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return l.replace(/#{\s*key\s*}/g,s)}function i(l,s){var u,c,d,f,g,m,y=!1;s||(s={}),u=s.debug||!1;try{d=r(),f=document.createRange(),g=document.getSelection(),m=document.createElement("span"),m.textContent=l,m.ariaHidden="true",m.style.all="unset",m.style.position="fixed",m.style.top=0,m.style.clip="rect(0, 0, 0, 0)",m.style.whiteSpace="pre",m.style.webkitUserSelect="text",m.style.MozUserSelect="text",m.style.msUserSelect="text",m.style.userSelect="text",m.addEventListener("copy",function(b){if(b.stopPropagation(),s.format)if(b.preventDefault(),typeof b.clipboardData>"u"){u&&console.warn("unable to use e.clipboardData"),u&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var v=n[s.format]||n.default;window.clipboardData.setData(v,l)}else b.clipboardData.clearData(),b.clipboardData.setData(s.format,l);s.onCopy&&(b.preventDefault(),s.onCopy(b.clipboardData))}),document.body.appendChild(m),f.selectNodeContents(m),g.addRange(f);var E=document.execCommand("copy");if(!E)throw new Error("copy command was unsuccessful");y=!0}catch(b){u&&console.error("unable to copy using execCommand: ",b),u&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(s.format||"text",l),s.onCopy&&s.onCopy(window.clipboardData),y=!0}catch(v){u&&console.error("unable to copy using clipboardData: ",v),u&&console.error("falling back to prompt"),c=a("message"in s?s.message:o),window.prompt(c,l)}}finally{g&&(typeof g.removeRange=="function"?g.removeRange(f):g.removeAllRanges()),m&&document.body.removeChild(m),d()}return y}t.exports=i}}),sI=qe({"../../node_modules/store2/dist/store2.js"(e,t){(function(r,n){var o={version:"2.14.4",areas:{},apis:{},nsdelim:".",inherit:function(i,l){for(var s in i)l.hasOwnProperty(s)||Object.defineProperty(l,s,Object.getOwnPropertyDescriptor(i,s));return l},stringify:function(i,l){return i===void 0||typeof i=="function"?i+"":JSON.stringify(i,l||o.replace)},parse:function(i,l){try{return JSON.parse(i,l||o.revive)}catch{return i}},fn:function(i,l){o.storeAPI[i]=l;for(var s in o.apis)o.apis[s][i]=l},get:function(i,l){return i.getItem(l)},set:function(i,l,s){i.setItem(l,s)},remove:function(i,l){i.removeItem(l)},key:function(i,l){return i.key(l)},length:function(i){return i.length},clear:function(i){i.clear()},Store:function(i,l,s){var u=o.inherit(o.storeAPI,function(d,f,g){return arguments.length===0?u.getAll():typeof f=="function"?u.transact(d,f,g):f!==void 0?u.set(d,f,g):typeof d=="string"||typeof d=="number"?u.get(d):typeof d=="function"?u.each(d):d?u.setAll(d,f):u.clear()});u._id=i;try{var c="__store2_test";l.setItem(c,"ok"),u._area=l,l.removeItem(c)}catch{u._area=o.storage("fake")}return u._ns=s||"",o.areas[i]||(o.areas[i]=u._area),o.apis[u._ns+u._id]||(o.apis[u._ns+u._id]=u),u},storeAPI:{area:function(i,l){var s=this[i];return(!s||!s.area)&&(s=o.Store(i,l,this._ns),this[i]||(this[i]=s)),s},namespace:function(i,l,s){if(s=s||this._delim||o.nsdelim,!i)return this._ns?this._ns.substring(0,this._ns.length-s.length):"";var u=i,c=this[u];if((!c||!c.namespace)&&(c=o.Store(this._id,this._area,this._ns+u+s),c._delim=s,this[u]||(this[u]=c),!l))for(var d in o.areas)c.area(d,o.areas[d]);return c},isFake:function(i){return i?(this._real=this._area,this._area=o.storage("fake")):i===!1&&(this._area=this._real||this._area),this._area.name==="fake"},toString:function(){return"store"+(this._ns?"."+this.namespace():"")+"["+this._id+"]"},has:function(i){return this._area.has?this._area.has(this._in(i)):this._in(i)in this._area},size:function(){return this.keys().length},each:function(i,l){for(var s=0,u=o.length(this._area);s<u;s++){var c=this._out(o.key(this._area,s));if(c!==void 0&&i.call(this,c,this.get(c),l)===!1)break;u>o.length(this._area)&&(u--,s--)}return l||this},keys:function(i){return this.each(function(l,s,u){u.push(l)},i||[])},get:function(i,l){var s=o.get(this._area,this._in(i)),u;return typeof l=="function"&&(u=l,l=null),s!==null?o.parse(s,u):l??s},getAll:function(i){return this.each(function(l,s,u){u[l]=s},i||{})},transact:function(i,l,s){var u=this.get(i,s),c=l(u);return this.set(i,c===void 0?u:c),this},set:function(i,l,s){var u=this.get(i),c;return u!=null&&s===!1?l:(typeof s=="function"&&(c=s,s=void 0),o.set(this._area,this._in(i),o.stringify(l,c),s)||u)},setAll:function(i,l){var s,u;for(var c in i)u=i[c],this.set(c,u,l)!==u&&(s=!0);return s},add:function(i,l,s){var u=this.get(i);if(u instanceof Array)l=u.concat(l);else if(u!==null){var c=typeof u;if(c===typeof l&&c==="object"){for(var d in l)u[d]=l[d];l=u}else l=u+l}return o.set(this._area,this._in(i),o.stringify(l,s)),l},remove:function(i,l){var s=this.get(i,l);return o.remove(this._area,this._in(i)),s},clear:function(){return this._ns?this.each(function(i){o.remove(this._area,this._in(i))},1):o.clear(this._area),this},clearAll:function(){var i=this._area;for(var l in o.areas)o.areas.hasOwnProperty(l)&&(this._area=o.areas[l],this.clear());return this._area=i,this},_in:function(i){return typeof i!="string"&&(i=o.stringify(i)),this._ns?this._ns+i:i},_out:function(i){return this._ns?i&&i.indexOf(this._ns)===0?i.substring(this._ns.length):void 0:i}},storage:function(i){return o.inherit(o.storageAPI,{items:{},name:i})},storageAPI:{length:0,has:function(i){return this.items.hasOwnProperty(i)},key:function(i){var l=0;for(var s in this.items)if(this.has(s)&&i===l++)return s},setItem:function(i,l){this.has(i)||this.length++,this.items[i]=l},removeItem:function(i){this.has(i)&&(delete this.items[i],this.length--)},getItem:function(i){return this.has(i)?this.items[i]:null},clear:function(){for(var i in this.items)this.removeItem(i)}}},a=o.Store("local",(function(){try{return localStorage}catch{}})());a.local=a,a._=o,a.area("session",(function(){try{return sessionStorage}catch{}})()),a.area("page",o.storage("page")),typeof n=="function"&&n.amd!==void 0?n("store2",[],function(){return a}):typeof t<"u"&&t.exports?t.exports=a:(r.store&&(o.conflict=r.store),r.store=a)})(e,e&&e.define)}});const{DOCS_PREPARED:aX,SET_STORIES:iX,SHARED_STATE_CHANGED:lX,SHARED_STATE_SET:sX,STORY_CHANGED:uX,STORY_PREPARED:cX}=__STORYBOOK_MODULE_CORE_EVENTS__;var uI=({api:e,state:t})=>p.createContext({api:e,state:t});const{logger:Am}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var Qr=(e,...t)=>{let r={};r=bi({},e,(n,o)=>{if(Array.isArray(o)&&Array.isArray(n))return o.forEach(a=>{n.find(i=>i===a||Kt(i,a))||n.push(a)}),n;if(Array.isArray(n))return Am.log(["the types mismatch, picking",n]),n});for(let n of t)r=bi(r,n,(o,a)=>{if(Array.isArray(a)&&Array.isArray(o))return a.forEach(i=>{o.find(l=>l===i||Kt(l,i))||o.push(i)}),o;if(Array.isArray(o))return Am.log(["the types mismatch, picking",o]),o});return r},cI=(e,...t)=>{let r={};r=bi({},e,(n,o)=>{if(Array.isArray(o))return o});for(let n of t)r=bi(r,n,(o,a)=>{if(Array.isArray(a))return a});return r},dI=(...e)=>e.reduce((t,r)=>Qr(t,r),{}),Kc=dI;const{logger:fI}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{SET_CONFIG:Rm}=__STORYBOOK_MODULE_CORE_EVENTS__,{Addon_TypesEnum:dX}=__STORYBOOK_MODULE_TYPES__,{global:cu}=__STORYBOOK_MODULE_GLOBAL__,{Channel:pI}=__STORYBOOK_MODULE_CHANNELS__;function hI(){let e={setHandler:()=>{},send:()=>{}};return new pI({transport:e})}var gI=class{constructor(){this.loaders={},this.elements={},this.config={},this.getChannel=()=>(this.channel||this.setChannel(hI()),this.channel),this.ready=()=>this.promise,this.hasChannel=()=>!!this.channel,this.setChannel=e=>{this.channel=e,this.resolve()},this.setConfig=e=>{Object.assign(this.config,e),this.hasChannel()?this.getChannel().emit(Rm,this.config):this.ready().then(t=>{t.emit(Rm,this.config)})},this.getConfig=()=>this.config,this.register=(e,t)=>{this.loaders[e]&&fI.warn(`${e} was loaded twice, this could have bad side-effects`),this.loaders[e]=t},this.loadAddons=e=>{Object.values(this.loaders).forEach(t=>t(e))},this.promise=new Promise(e=>{this.resolve=()=>e(this.getChannel())})}getElements(e){return this.elements[e]||(this.elements[e]={}),this.elements[e]}add(e,t){let{type:r}=t,n=this.getElements(r);n[e]={...t,id:e}}experimental_getRegisteredAddons(e){return Object.keys(e?this.getElements(e):this.loaders)}},du="__STORYBOOK_ADDONS_MANAGER";function mI(){return cu[du]||(cu[du]=new gI),cu[du]}mI();var OE={};ze(OE,{ensurePanel:()=>Gc,init:()=>bI});const{logger:yI}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{Addon_TypesEnum:fu}=__STORYBOOK_MODULE_TYPES__;function Gc(e,t,r){let n=Object.keys(e??{});return n.indexOf(t)>=0?t:n.length?n[0]:r}var bI=({provider:e,store:t,fullAPI:r})=>{let n={getElements:o=>e.getElements(o),clearStatuses:()=>{let o=n.getElements(fu.experimental_TEST_PROVIDER);Object.values(o).forEach(a=>{try{a.clear?.()}catch(i){try{yI.warn(`Failed to clear test provider "${a.id}":`,i)}catch{}}})},getSelectedPanel:()=>{let{selectedPanel:o}=t.getState();return Gc(n.getElements(fu.PANEL),o,o)},setSelectedPanel:o=>{t.setState({selectedPanel:o},{persistence:"session"})},setAddonState(o,a,i){let l=typeof a=="function"?a:()=>a;return t.setState(s=>({...s,addons:{...s.addons,[o]:l(s.addons[o])}}),i).then(()=>n.getAddonState(o))},getAddonState:o=>t.getState().addons[o]||globalThis?.STORYBOOK_ADDON_STATE[o]};return{api:n,state:{selectedPanel:Gc(n.getElements(fu.PANEL),t.getState().selectedPanel),addons:{}}}},AE={};ze(AE,{init:()=>EI});var EI=({provider:e})=>({api:{getChannel:()=>e.channel,on:(t,r)=>(e.channel?.on(t,r),()=>e.channel?.off(t,r)),off:(t,r)=>e.channel?.off(t,r),once:(t,r)=>e.channel?.once(t,r),emit:(t,r,...n)=>{r?.options?.target&&r.options.target!=="storybook-preview-iframe"&&!r.options.target.startsWith("storybook-ref-")&&(r.options.target=r.options.target!=="storybook_internal"?`storybook-ref-${r.options.target}`:"storybook-preview-iframe"),e.channel?.emit(t,r,...n)}},state:{}}),RE={};ze(RE,{init:()=>NI});const{logger:Dm}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{GLOBALS_UPDATED:vI,SET_GLOBALS:SI,UPDATE_GLOBALS:xI}=__STORYBOOK_MODULE_CORE_EVENTS__,{logger:$I}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var DE={};ze(DE,{defaultStoryMapper:()=>LE,getSourceType:()=>IE,init:()=>kI});const{global:PE}=__STORYBOOK_MODULE_GLOBAL__;var FE=rt(sn(),1),wI=(e,t)=>!Array.isArray(e)||!Array.isArray(t)||!e.length||!t.length?[]:e.reduce((r,n)=>(t.includes(n)&&r.push(n),r),[]),CI=/\s*\/\s*/,_I=({globalParameters:e,kindParameters:t,stories:r})=>AC(r,n=>({...n,parameters:l8(e,t[n.kind],n.parameters)})),TI=e=>({v:5,entries:Object.entries(e).reduce((t,[r,n])=>{if(!n)return t;let{docsOnly:o,fileName:a,...i}=n.parameters,l={title:n.kind,id:r,name:n.name,importPath:a};if(o)t[r]={type:"docs",tags:["stories-mdx"],storiesImports:[],...l};else{let{argTypes:s,args:u,initialArgs:c}=n;t[r]={type:"story",subtype:"story",...l,parameters:i,argTypes:s,args:u,initialArgs:c}}return t},{})}),OI=e=>({v:3,stories:Object.values(e.stories).reduce((t,r)=>(t[r.id]={...r,title:r.kind,name:r.name||r.story,importPath:r.parameters.fileName||""},t),{})}),AI=e=>{let t=yD(Object.values(e.stories),r=>r.title);return{v:4,entries:Object.values(e.stories).reduce((r,n)=>{let o="story";return(n.parameters?.docsOnly||n.name==="Page"&&t[n.title]===1)&&(o="docs"),r[n.id]={type:o,...o==="docs"&&{tags:["stories-mdx"],storiesImports:[]},...n},delete r[n.id].story,delete r[n.id].kind,r},{})}},RI=e=>({v:5,entries:Object.values(e.entries).reduce((t,r)=>(t[r.id]={...r,tags:r.tags?[Rn.DEV,Rn.TEST,...r.tags]:[Rn.DEV]},t),{})}),Oi=(e,{provider:t,docsOptions:r,filters:n,allStatuses:o,statusFilterKey:a})=>{if(!e.v)throw new Error("Composition: Missing stories.json version");let i=e;i=i.v===2?OI(i):i,i=i.v===3?AI(i):i,i=i.v===4?RI(i):i,i=i;let l=Object.values(i.entries),s=Object.values(n),u=a?n[a]:void 0,c=l.filter(S=>{let x=o[S.id]??{};return u&&!u({...S,statuses:x})&&!l.filter(O=>"parent"in O&&O.parent===S.id).some(O=>u({...O,statuses:o[O.id]??{}}))?!1:Object.values(x).some(({value:O})=>O==="status-value:error")||s.every(O=>O({...S,statuses:x}))?!0:l.filter(O=>"parent"in O&&O.parent===S.id).some(O=>s.every(w=>w({...O,statuses:x})))}),{sidebar:d={}}=t.getConfig(),{showRoots:f,collapsedRoots:g=[],renderLabel:m}=d,y=typeof f<"u",E=c.reduce((S,x)=>{if(r.docsMode&&x.type!=="docs")return S;let{title:O}=x,w=O.trim().split(CI),T=(!y||f)&&w.length>1?[w.shift()]:[],R=[...T,...w],I=R.reduce((P,_,N)=>{let B=N>0&&P[N-1],$=Hn(B?`${B}-${_}`:_);if(_.trim()==="")throw new Error(St`Invalid title ${O} ending in slash.`);if(B===$)throw new Error(St`
|
|
641
|
+
Invalid part '${_}', leading to id === parentId ('${$}'), inside title '${O}'
|
|
642
|
+
|
|
643
|
+
Did you create a path that uses the separator char accidentally, such as 'Vue <docs/>' where '/' is a separator char? See https://github.com/storybookjs/storybook/issues/6128
|
|
644
|
+
`);return P.push($),P},[]);return I.forEach((P,_)=>{let N=I[_+1]||x.id;T.length&&_===0?S[P]=Qr(S[P]||{},{type:"root",id:P,name:R[_],tags:[],depth:_,renderLabel:m,startCollapsed:g.includes(P),children:[N]}):(!S[P]||S[P].type==="component")&&_===I.length-1?S[P]=Qr(S[P]||{},{type:"component",id:P,name:R[_],tags:[],parent:I[_-1],depth:_,renderLabel:m,...N&&{children:[N]}}):S[P]=Qr(S[P]||{},{type:"group",id:P,name:R[_],tags:[],parent:I[_-1],depth:_,renderLabel:m,...N&&{children:[N]}})}),S[x.id]={tags:[],...x,depth:I.length,parent:"parent"in x?x.parent:I[I.length-1],renderLabel:m,prepared:!!x.parameters},S},{});function b(S,x){if(S[x.id]||(S[x.id]=x,"children"in x&&x.children&&(x.children.forEach(O=>b(S,E[O])),x.tags=x.children.reduce((O,w)=>O===null?S[w].tags:wI(O,S[w].tags),null)||[])),x.type==="component"){let O=S[x.children[0]];O&&"importPath"in O&&(x.importPath=O.importPath)}return S}let v=Object.values(E).filter(S=>S.type!=="root"&&!S.parent).reduce((S,x)=>b(S,x),{});return v=Object.values(E).filter(S=>S.type==="root").reduce(b,v),v=Object.values(v).reduce((S,x)=>{if(x.type==="story"&&x.subtype==="test"){let O=S[x.parent],w=S[O.parent];S[w.id]={...w,children:w.children&&w.children.filter(T=>T!==x.id)},S[O.id]={...O,children:(O.children||[]).concat(x.id)},S[x.id]={...x,depth:x.depth+1}}else S[x.id]=x;return S},{}),v},Pm=(e,t)=>t?Object.fromEntries(Object.entries(e).map(([r,n])=>{let o=t[r];return n.type==="story"&&o?.type==="story"&&o.prepared?("children"in o&&delete o.children,[r,{...o,...n,prepared:!0}]):[r,n]})):e,DI=(0,FE.default)(1)(e=>Object.entries(e).reduce((t,r)=>{let n=r[1];return n.type==="component"&&t.push([...n.children]),t},[])),PI=(0,FE.default)(1)(e=>Object.keys(e).filter(t=>["story","docs"].includes(e[t].type))),{location:FI,fetch:Fm}=PE,IE=(e,t)=>{let{origin:r,pathname:n}=FI,{origin:o,pathname:a}=new URL(e),i=`${r+n}`.replace(/\/[^\/]*$/,""),l=`${o+a}`.replace(/\/[^\/]*$/,"");return i===l?["local",l]:t||e?["external",l]:[null,null]},LE=(e,t)=>({...t,kind:t.kind.replace("|","/")}),Im=(e,t)=>Object.entries(e).reduce((r,[n,o])=>({...r,[n]:{...o,refId:t.id}}),{});async function Lm(e){if(!e)return{};try{let t=await e;if(t===!1||t===!0)throw new Error("Unexpected boolean response");if(!t.ok){if(t.status===401)try{let n=await t.json();if(n.loginUrl)return{loginUrl:n.loginUrl}}catch{}throw new Error(`Unexpected response not OK: ${t.statusText}`)}let r=await t.json();return r.entries||r.stories?{storyIndex:r}:r}catch(t){return{indexError:t}}}var II=e=>{let t=/https?:\/\/(.+:.+)@/,r=e,n,[,o]=e.match(t)||[];return o&&(r=e.replace(`${o}@`,""),n=btoa(`${o}`)),{url:r,authorization:n}},LI=(e,t,r)=>{let{storyMapper:n}=r;return n?Object.entries(e).reduce((o,[a,i])=>({...o,[a]:n(t,i)}),{}):e},kI=({store:e,provider:t,singleStory:r,docsOptions:n={}},{runCheck:o=!0}={})=>{let a={findRef:s=>{let u=a.getRefs();return Object.values(u).find(({url:c})=>c.match(s))},changeRefVersion:async(s,u)=>{let{versions:c,title:d}=a.getRefs()[s],f={id:s,url:u,versions:c,title:d,index:{},filteredIndex:{},expanded:!0};await a.setRef(s,{...f,type:"unknown"},!1),await a.checkRef(f)},changeRefState:(s,u)=>{let{[s]:c,...d}=a.getRefs();d[s]={...c,previewInitialized:u},e.setState({refs:d})},checkRef:async s=>{let{id:u,url:c,version:d,type:f}=s,g=f==="server-checked",m={},y=d?`?version=${d}`:"",E=g?"omit":"include",b=II(c),v={Accept:"application/json"};b.authorization&&Object.assign(v,{Authorization:`Basic ${b.authorization}`});let[S,x]=await Promise.all(["index.json","stories.json"].map(async w=>Lm(Fm(`${b.url}/${w}${y}`,{headers:v,credentials:E}))));if(!S.indexError||!x.indexError){let w=await Lm(Fm(`${b.url}/metadata.json${y}`,{headers:v,credentials:E,cache:"no-cache"}).catch(()=>!1));Object.assign(m,{...S.indexError?x:S,...!w.indexError&&w})}else g||(m.indexError={message:St`
|
|
645
|
+
Error: Loading of ref failed
|
|
646
|
+
at fetch (lib/api/src/modules/refs.ts)
|
|
647
|
+
|
|
648
|
+
URL: ${b.url}
|
|
649
|
+
|
|
650
|
+
We weren't able to load the above URL,
|
|
651
|
+
it's possible a CORS error happened.
|
|
652
|
+
|
|
653
|
+
Please check your dev-tools network tab.
|
|
654
|
+
`});let O=s.versions&&Object.keys(s.versions).length?s.versions:m.versions;await a.setRef(u,{id:u,url:b.url,...m,...O?{versions:O}:{},type:m.storyIndex?"lazy":"auto-inject"})},getRefs:()=>{let{refs:s={}}=e.getState();return s},setRef:async(s,{storyIndex:u,setStoriesData:c,...d},f=!1)=>{if(r)return;let g,m,y,{filters:E}=e.getState(),{storyMapper:b=LE}=t.getConfig(),v=a.getRefs()[s];(u||c)&&(g=c?TI(LI(c,v,{storyMapper:b})):u,y=Oi(u,{provider:t,docsOptions:n,filters:E,allStatuses:{}}),m=Oi(u,{provider:t,docsOptions:n,filters:{},allStatuses:{}})),m&&(m=Im(m,v)),y&&(y=Im(y,v)),await a.updateRef(s,{...v,...d,index:m,filteredIndex:y,internal_index:g})},updateRef:async(s,u)=>{let{[s]:c,...d}=a.getRefs();d[s]={...c,...u};let f=Object.keys(l).reduce((g,m)=>(g[m]=d[m],g),{});await e.setState({refs:f})}},i=!r&&PE.REFS||{},l=i;return o&&new Promise(async s=>{for(let u of Object.values(i))await a.checkRef({...u,stories:{}});s(void 0)}),{api:a,state:{refs:l}}},dt=(e,t)=>{let{source:r,refId:n,type:o}=e,[a,i]=IE(r,n),l;(n||a==="external")&&(l=n&&t.getRefs()[n]?t.getRefs()[n]:t.findRef(i));let s={source:r,sourceType:a,sourceLocation:i,refId:n,ref:l,type:o};switch(!0){case typeof n=="string":case a==="local":case a==="external":return s;default:return $I.warn(`Received a ${o} frame that was not configured as a ref`),null}},NI=({store:e,fullAPI:t,provider:r})=>{let n={getGlobals(){return e.getState().globals},getUserGlobals(){return e.getState().userGlobals},getStoryGlobals(){return e.getState().storyGlobals},getGlobalTypes(){return e.getState().globalTypes},updateGlobals(i){r.channel?.emit(xI,{globals:i,options:{target:"storybook-preview-iframe"}})}},o={globals:{},userGlobals:{},storyGlobals:{},globalTypes:{}},a=({globals:i,storyGlobals:l,userGlobals:s})=>{let{globals:u,userGlobals:c,storyGlobals:d}=e.getState();Wt(i,u)||e.setState({globals:i}),Wt(s,c)||e.setState({userGlobals:s}),Wt(l,d)||e.setState({storyGlobals:l})};return r.channel?.on(vI,function({globals:i,storyGlobals:l,userGlobals:s}){let{ref:u}=dt(this,t);u?Dm.warn("received a GLOBALS_UPDATED from a non-local ref. This is not currently supported."):a({globals:i,storyGlobals:l,userGlobals:s})}),r.channel?.on(SI,function({globals:i,globalTypes:l}){let{ref:s}=dt(this,t),u=e.getState()?.userGlobals;s?Object.keys(i).length>0&&Dm.warn("received globals from a non-local ref. This is not currently supported."):e.setState({globals:i,userGlobals:i,globalTypes:l}),u&&Object.keys(u).length!==0&&!Wt(i,u)&&n.updateGlobals(u)}),{api:n,state:o}},Ff={};ze(Ff,{ActiveTabs:()=>kE,DEFAULT_BOTTOM_PANEL_HEIGHT:()=>Ai,DEFAULT_NAV_SIZE:()=>Wo,DEFAULT_RIGHT_PANEL_WIDTH:()=>Ri,focusableUIElements:()=>Ht,getDefaultLayoutState:()=>NE,init:()=>jI});const{SET_CONFIG:MI}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:BI}=__STORYBOOK_MODULE_GLOBAL__;var{document:Fa}=BI,pu=e=>typeof e=="function",kE={SIDEBAR:"sidebar",CANVAS:"canvas",ADDONS:"addons"},Wo=300,Ai=300,Ri=400,NE=()=>({ui:{enableShortcuts:!0},layout:{initialActive:kE.CANVAS,showToolbar:!0,navSize:Wo,bottomPanelHeight:Ai,rightPanelWidth:Ri,recentVisibleSizes:{navSize:Wo,bottomPanelHeight:Ai,rightPanelWidth:Ri},panelPosition:"bottom",showTabs:!0},layoutCustomisations:{showSidebar:void 0,showToolbar:void 0},selectedPanel:void 0,theme:cb()}),Ht={addonPanel:"storybook-panel-region",storySearchField:"storybook-explorer-searchfield",storyListMenu:"storybook-explorer-menu",storyPanelRoot:"storybook-panel-root",showAddonPanel:"storybook-show-addon-panel",sidebarRegion:"storybook-sidebar-region",showSidebar:"storybook-show-sidebar"},Wc=e=>e.layout.navSize>0,Vc=e=>{let{bottomPanelHeight:t,rightPanelWidth:r,panelPosition:n}=e.layout;return n==="bottom"&&t>0||n==="right"&&r>0},km=e=>!Wc(e)&&!Vc(e),Ia=e=>({navSize:e.navSize>0?e.navSize:e.recentVisibleSizes.navSize,bottomPanelHeight:e.bottomPanelHeight>0?e.bottomPanelHeight:e.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:e.rightPanelWidth>0?e.rightPanelWidth:e.recentVisibleSizes.rightPanelWidth}),jI=({store:e,provider:t,singleStory:r})=>{let n={toggleFullscreen(a){return e.setState(i=>{let l=km(i),s=typeof a=="boolean"?a:!l;return s===l?{layout:i.layout}:s?{layout:{...i.layout,navSize:0,bottomPanelHeight:0,rightPanelWidth:0,recentVisibleSizes:Ia(i.layout)}}:{layout:{...i.layout,navSize:i.singleStory?0:i.layout.recentVisibleSizes.navSize,bottomPanelHeight:i.layout.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:i.layout.recentVisibleSizes.rightPanelWidth}}},{persistence:"session"})},togglePanel(a){return e.setState(i=>{let l=Vc(i),s=typeof a=="boolean"?a:!l;return s===l?{layout:i.layout}:s?{layout:{...i.layout,bottomPanelHeight:i.layout.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:i.layout.recentVisibleSizes.rightPanelWidth}}:{layout:{...i.layout,bottomPanelHeight:0,rightPanelWidth:0,recentVisibleSizes:Ia(i.layout)}}},{persistence:"session"})},togglePanelPosition(a){return e.setState(i=>{let l=a||(i.layout.panelPosition==="right"?"bottom":"right");return{layout:{...i.layout,panelPosition:l,bottomPanelHeight:i.layout.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:i.layout.recentVisibleSizes.rightPanelWidth}}},{persistence:"permanent"})},toggleNav(a){return e.setState(i=>{if(i.singleStory)return{layout:i.layout};let l=Wc(i),s=typeof a=="boolean"?a:!l;return s===l?{layout:i.layout}:s?{layout:{...i.layout,navSize:i.layout.recentVisibleSizes.navSize}}:{layout:{...i.layout,navSize:0,recentVisibleSizes:Ia(i.layout)}}},{persistence:"session"})},toggleToolbar(a){return e.setState(i=>{let l=typeof a<"u"?a:!i.layout.showToolbar;return{layout:{...i.layout,showToolbar:l}}},{persistence:"session"})},setSizes({navSize:a,bottomPanelHeight:i,rightPanelWidth:l}){return e.setState(s=>{let u={...s.layout,navSize:a??s.layout.navSize,bottomPanelHeight:i??s.layout.bottomPanelHeight,rightPanelWidth:l??s.layout.rightPanelWidth};return{layout:{...u,recentVisibleSizes:Ia(u)}}},{persistence:"session"})},focusOnUIElement(a,i){let{forceFocus:l=!1,select:s=!1,poll:u=!0}=typeof i=="boolean"?{select:i}:i??{};if(!a)return!1;let c=()=>{let d=Fa.getElementById(a);return!d||(d.focus(),d!==Fa.activeElement&&l&&d.getAttribute("tabindex")===null&&(d.setAttribute("tabindex","-1"),d.focus()),d!==Fa.activeElement&&d.id!==Fa.activeElement?.id)?!1:(s&&d.select?.(),!0)};return c()?!0:u?new Promise(d=>{let f=Date.now(),g=500,m=setInterval(()=>{let y=Date.now()-f;if(c()){clearInterval(m),d(!0);return}y>=g&&(clearInterval(m),d(!1))},50)}):!1},getInitialOptions(){let{theme:a,selectedPanel:i,layoutCustomisations:l,...s}=t.getConfig(),u=NE();return{...u,layout:{...Yl(u.layout,co(s,Object.keys(u.layout))),...r&&{navSize:0}},layoutCustomisations:{...u.layoutCustomisations,...l??{}},ui:Yl(u.ui,co(s,Object.keys(u.ui))),selectedPanel:i||u.selectedPanel,theme:a||u.theme}},getIsFullscreen(){return km(e.getState())},getIsPanelShown(){return Vc(e.getState())},getIsNavShown(){return Wc(e.getState())},getShowToolbarWithCustomisations(a){let i=e.getState();return pu(i.layoutCustomisations.showToolbar)?i.layoutCustomisations.showToolbar(i,a)??a:a},getShowPanelWithCustomisations(a){let i=e.getState();return pu(i.layoutCustomisations.showPanel)?i.layoutCustomisations.showPanel(i,a)??a:a},getNavSizeWithCustomisations(a){let i=e.getState();if(pu(i.layoutCustomisations.showSidebar)){let l=i.layoutCustomisations.showSidebar(i,a!==0);if(a===0&&l===!0)return i.layout.recentVisibleSizes.navSize;if(a!==0&&l===!1)return 0}return a},setOptions:a=>{let{layout:i,ui:l,selectedPanel:s,theme:u}=e.getState();if(!a)return;let c={...i,...a.layout||{},...co(a,Object.keys(i)),...r&&{navSize:0}},d={...l,...a.ui,...Yl(a.ui||{},co(a,Object.keys(l)))},f={...u,...a.theme},g={};Kt(l,d)||(g.ui=d),Kt(i,c)||(g.layout=c),a.selectedPanel&&!Kt(s,a.selectedPanel)&&(g.selectedPanel=a.selectedPanel),Object.keys(g).length&&e.setState(g,{persistence:"permanent"}),Kt(u,f)||e.setState({theme:f})}},o=co(e.getState(),["layout","selectedPanel"]);return t.channel?.on(MI,()=>{n.setOptions(Qr(n.getInitialOptions(),o))}),{api:n,state:Qr(n.getInitialOptions(),o)}},ME={};ze(ME,{init:()=>HI});var HI=({store:e})=>({api:{addNotification:t=>{e.setState(({notifications:r})=>{let[n,o]=mh(r,a=>a.id===t.id);return n.forEach(a=>{a.onClear&&a.onClear({dismissed:!1,timeout:!1})}),{notifications:[...o,t]}})},clearNotification:t=>{e.setState(({notifications:r})=>{let[n,o]=mh(r,a=>a.id===t);return n.forEach(a=>{a.onClear&&a.onClear({dismissed:!1,timeout:!1})}),{notifications:o}})}},state:{notifications:[]}}),BE={};ze(BE,{init:()=>zI});const{OPEN_IN_EDITOR_REQUEST:UI,OPEN_IN_EDITOR_RESPONSE:hu}=__STORYBOOK_MODULE_CORE_EVENTS__;var zI=({provider:e,fullAPI:t})=>({api:{openInEditor(r){return new Promise(n=>{let{file:o,line:a,column:i}=r,l=s=>{s.file===o&&s.line===a&&s.column===i&&(e.channel?.off(hu,l),n(s))};e.channel?.on(hu,l),e.channel?.emit(UI,r)})}},state:{notifications:[]},init:async()=>{let{color:r}=await cr(async()=>{const{color:n}=await Promise.resolve().then(()=>JT);return{color:n}},void 0,import.meta.url);e.channel?.on(hu,n=>{n.error!==null&&t.addNotification({id:"open-in-editor-error",content:{headline:"Failed to open in editor",subHeadline:n.error||"Check the Storybook process on the command line for more details."},icon:h.createElement(VO,{color:r.negative}),duration:8e3})})}}),jE={};ze(jE,{init:()=>KI});var KI=({provider:e,fullAPI:t})=>({api:e.renderPreview?{renderPreview:e.renderPreview}:{},state:{},init:()=>{e.handleAPI(t)}}),HE={};ze(HE,{init:()=>GI});var GI=({store:e,navigate:t,fullAPI:r})=>({state:{settings:{lastTrackedStoryId:null}},api:{closeSettings:()=>{let{settings:{lastTrackedStoryId:n}}=e.getState();n?r.selectStory(n):r.selectFirstStory()},changeSettingsTab:n=>{t(`/settings/${n}`)},isSettingsScreenActive:()=>{let{path:n}=r.getUrlState();return!!(n||"").match(/^\/settings/)},retrieveSelection(){let{settings:n}=e.getState();return n.lastTrackedStoryId},storeSelection:async()=>{let{storyId:n,settings:o}=e.getState();await e.setState({settings:{...o,lastTrackedStoryId:n}})}}}),UE={};ze(UE,{controlOrMetaKey:()=>xn,defaultShortcuts:()=>$n,init:()=>i6,isMacLike:()=>KE,keys:()=>qc});var WI=rt(lI(),1);const{FORCE_REMOUNT:VI,PREVIEW_KEYDOWN:qI,STORIES_COLLAPSE_ALL:YI,STORIES_EXPAND_ALL:XI}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:zE}=__STORYBOOK_MODULE_GLOBAL__,{global:JI}=__STORYBOOK_MODULE_GLOBAL__;var{navigator:gu}=JI,ZI=()=>gu&&gu.platform?!!gu.platform.match(/(Mac|iPhone|iPod|iPad)/i):!1,QI=()=>ZI()?"⌥":"alt",e6=e=>{if(["Meta","Alt","Control","Shift","Tab"].includes(e.key))return null;let t=[];e.altKey&&t.push("alt"),e.ctrlKey&&t.push("control"),e.metaKey&&t.push("meta"),e.shiftKey&&t.push("shift");let r=e.code?.toUpperCase(),n={MINUS:"-",EQUAL:"=",BRACKETLEFT:"[",BRACKETRIGHT:"]",BACKSLASH:"\\",SEMICOLON:";",QUOTE:"'",BACKQUOTE:"`",COMMA:",",PERIOD:".",SLASH:"/"},o=r?r.startsWith("KEY")&&r.length===4?r.replace("KEY",""):r.startsWith("DIGIT")?r.replace("DIGIT",""):n[r]:void 0;if(e.key&&e.key.length===1&&e.key!==" "){let a=e.key.toUpperCase(),i=o;i&&i.length===1&&i!==a?t.push([a,i]):t.push(a)}else e.key==="Dead"&&o&&t.push(o);return e.key===" "&&t.push("space"),e.key==="Escape"&&t.push("escape"),e.key==="ArrowRight"&&t.push("ArrowRight"),e.key==="ArrowDown"&&t.push("ArrowDown"),e.key==="ArrowUp"&&t.push("ArrowUp"),e.key==="ArrowLeft"&&t.push("ArrowLeft"),t.length>0?t:null},t6=(e,t)=>!e||!t||(e.join("").startsWith("shift/")&&e.shift(),e.length!==t.length)?!1:!e.find((r,n)=>Array.isArray(r)?!r.includes(t[n]):r!==t[n]),r6=e=>e==="alt"?QI():e==="control"?"⌃":e==="meta"?"⌘":e==="shift"?"⇧":e==="Enter"||e==="Backspace"||e==="Esc"||e==="escape"?"":e===" "?"SPACE":e==="ArrowUp"?"↑":e==="ArrowDown"?"↓":e==="ArrowLeft"?"←":e==="ArrowRight"?"→":e?.toUpperCase(),n6=e=>e.map(r6).join(" "),o6=e=>e.map(t=>t==="+"?"plus":t===" "?"space":t).join("+"),{navigator:mu,document:wr}=zE;function Nm(e){return wr.activeElement&&e?.contains(wr.activeElement)}var KE=()=>mu&&mu.platform?!!mu.platform.match(/(Mac|iPhone|iPod|iPad)/i):!1,xn=()=>KE()?"meta":"control";function qc(e){return Object.keys(e)}var $n=Object.freeze({fullScreen:["alt","F"],togglePanel:["alt","A"],panelPosition:["alt","D"],toggleNav:["alt","S"],toolbar:["alt","T"],search:[xn(),"K"],focusNav:["1"],focusIframe:["2"],focusPanel:["3"],prevComponent:["alt","ArrowUp"],nextComponent:["alt","ArrowDown"],prevStory:["alt","ArrowLeft"],nextStory:["alt","ArrowRight"],shortcutsPage:[xn(),"shift",","],aboutPage:[xn(),","],escape:["escape"],collapseAll:[xn(),"shift","ArrowUp"],expandAll:[xn(),"shift","ArrowDown"],remount:["alt","R"],openInEditor:["alt","shift","E"],openInIsolation:["alt","shift","I"],copyStoryLink:["alt","shift","L"],goToPreviousLandmark:["shift","F6"],goToNextLandmark:["F6"]}),yu={};function a6(e){let t=e.target;return!!(/input|textarea/i.test(t.tagName)||t.getAttribute("contenteditable")!==null||t.closest("dialog[open]"))}var i6=({store:e,fullAPI:t,provider:r})=>{let n={getShortcutKeys(){return e.getState().shortcuts},getDefaultShortcuts(){return{...$n,...n.getAddonsShortcutDefaults()}},getAddonsShortcuts(){return yu},getAddonsShortcutLabels(){let i={};return Object.entries(n.getAddonsShortcuts()).forEach(([l,{label:s}])=>{i[l]=s}),i},getAddonsShortcutDefaults(){let i={};return Object.entries(n.getAddonsShortcuts()).forEach(([l,{defaultShortcut:s}])=>{i[l]=s}),i},async setShortcuts(i){let{shortcuts:l}=await e.setState(s=>({shortcuts:typeof i=="function"?i(s.shortcuts):i}),{persistence:"permanent"});return l},async restoreAllDefaultShortcuts(){return n.setShortcuts(n.getDefaultShortcuts())},async setShortcut(i,l){return await n.setShortcuts(s=>({...s,[i]:l})),l},async setAddonShortcut(i,l){return await n.setShortcuts(s=>({...s,[`${i}-${l.actionName}`]:l.defaultShortcut})),yu[`${i}-${l.actionName}`]=l,l},async restoreDefaultShortcut(i){let l=n.getDefaultShortcuts()[i];return n.setShortcut(i,l)},handleKeydownEvent(i){let l=e6(i),s=n.getShortcutKeys(),u=qc(s).find(c=>t6(l,s[c]));u&&n.handleShortcutFeature(u,i)},handleShortcutFeature(i,l){let{ui:{enableShortcuts:s},storyId:u,refId:c,viewMode:d}=e.getState();if(s)switch(l?.preventDefault&&l.preventDefault(),i){case"escape":{t.getIsFullscreen()?t.toggleFullscreen(!1):t.getIsNavShown()&&t.toggleNav(!0);break}case"goToNextLandmark":case"goToPreviousLandmark":break;case"focusNav":{t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsNavShown()||t.toggleNav(!0),t.focusOnUIElement(Ht.storyListMenu);break}case"search":{t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsNavShown()||t.toggleNav(!0),setTimeout(()=>{t.focusOnUIElement(Ht.storySearchField,!0)},0);break}case"focusIframe":{let f=wr.getElementById("storybook-preview-iframe");if(f)try{f.contentWindow.focus()}catch{}break}case"focusPanel":{t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsPanelShown()||t.togglePanel(!0),t.focusOnUIElement(Ht.storyPanelRoot);break}case"nextStory":{t.jumpToStory(1);break}case"prevStory":{t.jumpToStory(-1);break}case"nextComponent":{t.jumpToComponent(1);break}case"prevComponent":{t.jumpToComponent(-1);break}case"fullScreen":{t.toggleFullscreen();break}case"togglePanel":{let f=t.getIsPanelShown(),g=wr.getElementById(Ht.addonPanel);t.togglePanel(),f&&Nm(g)&&t.focusOnUIElement(Ht.showAddonPanel,{poll:!0}).then(m=>{m===!1&&wr.body.focus()}),f||t.focusOnUIElement(Ht.addonPanel,{forceFocus:!0,poll:!0});break}case"toggleNav":{let f=t.getIsNavShown(),g=wr.getElementById(Ht.sidebarRegion);t.toggleNav(),f&&Nm(g)&&t.focusOnUIElement(Ht.showSidebar,{poll:!0}).then(m=>{m===!1&&wr.body.focus()}),f||t.focusOnUIElement(Ht.sidebarRegion,{forceFocus:!0,poll:!0});break}case"toolbar":{t.toggleToolbar();break}case"panelPosition":{t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsPanelShown()||t.togglePanel(!0),t.togglePanelPosition();break}case"aboutPage":{t.navigate("/settings/about");break}case"shortcutsPage":{t.navigate("/settings/shortcuts");break}case"collapseAll":{t.emit(YI);break}case"expandAll":{t.emit(XI);break}case"remount":{t.emit(VI,{storyId:u});break}case"openInEditor":{zE.CONFIG_TYPE==="DEVELOPMENT"&&t.openInEditor({file:t.getCurrentStoryData().importPath});break}case"openInIsolation":{if(u&&d==="story"){let{previewHref:f}=t.getStoryHrefs(u,{refId:c});window.open(f,"_blank","noopener,noreferrer")}break}case"copyStoryLink":{if(u){let{managerHref:f}=t.getStoryHrefs(u,{refId:c});(0,WI.default)(f)}break}default:yu[i].action();break}}},{shortcuts:o=$n}=e.getState(),a={shortcuts:qc($n).reduce((i,l)=>({...i,[l]:o[l]||$n[l]}),$n)};return{api:n,state:a,init:()=>{wr.addEventListener("keydown",i=>{a6(i)||n.handleKeydownEvent(i)}),r.channel?.on(qI,i=>{n.handleKeydownEvent(i.event)})}}},GE={};ze(GE,{init:()=>M6});const{logger:l6}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{CONFIG_ERROR:s6,CURRENT_STORY_WAS_SET:u6,DOCS_PREPARED:c6,PRELOAD_ENTRIES:d6,RESET_STORY_ARGS:f6,SELECT_STORY:p6,SET_CONFIG:h6,SET_CURRENT_STORY:g6,SET_FILTER:m6,SET_INDEX:y6,SET_STORIES:b6,SIDEBAR_FILTER_CHANGED:E6,STORY_ARGS_UPDATED:v6,STORY_CHANGED:S6,STORY_INDEX_INVALIDATED:x6,STORY_MISSING:$6,STORY_PREPARED:w6,STORY_SPECIFIED:C6,UPDATE_STORY_ARGS:_6}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:WE}=__STORYBOOK_MODULE_GLOBAL__;var VE=(e,t={})=>{let r=Object.entries(t).filter(([,n])=>n!=null).sort(([n],[o])=>n<o?-1:1).map(([n,o])=>`${n}=${o}`);return[e,...r].join("&")},T6=({includedTagFilters:e,excludedTagFilters:t,includedStatusFilters:r,excludedStatusFilters:n})=>(e?.length??0)+(t?.length??0)+(r?.length??0)+(n?.length??0),Mm=e=>T6(e)>0,qE=(e,t)=>{let r=p.useRef(t?t(e.getState()):e.getState()),n=p.useCallback(a=>e.onStateChange((i,l)=>{if(!t){r.current=i,a();return}let s=t(i),u=t(l);!Kt(s,u)&&(r.current=s,a())}),[e,t]),o=p.useCallback(()=>{let a=e.getState(),i=t?t(a):a;return Kt(i,r.current)||(r.current=i),r.current},[e,t]);return[p.useSyncExternalStore(n,o),e.setState]},O6=mD({universalStatusStore:Yd.create({...hD,leader:globalThis.CONFIG_TYPE==="PRODUCTION"}),useUniversalStore:qE,environment:"manager"}),{fullStatusStore:li}=O6,YE=(e,t)=>{if(!e)return{included:[],excluded:[]};let r=[],n=[];return e.split(";").forEach(o=>{if(!o)return;let a=o.startsWith("!"),i=t(a?o.slice(1):o);i!=null&&(a?n.push(i):r.push(i))}),{included:r,excluded:n}},A6=e=>YE(e,pD),R6=(e,t)=>{if(!e.length&&!t.length)return;let r=e.map(o=>ph(o)).sort(),n=t.map(o=>`!${ph(o)}`).sort();return[...r,...n].join(";")},bu=(e,t)=>r=>{if(!e.length&&!t.length)return!0;let n=(li.getAll()??{})[r.id],o=n?Object.values(n).map(l=>l.value):[],a=!e.length||e.some(l=>o.includes(l)),i=!t.length||t.every(l=>!o.includes(l));return a&&i},D6=rt(sn(),1),XE={$docs:"_docs",$play:"_play",$test:"_test"},P6=e=>YE(e,t=>XE[t]??t),F6=(e,t)=>{if(!e.length&&!t.length)return"";let r=Object.fromEntries(Object.entries(XE).map(([a,i])=>[i,a])),n=e.map(a=>r[a]??a).sort(),o=t.map(a=>`!${r[a]??a}`).sort();return[...n,...o].join(";")},I6=(0,D6.default)(1)(e=>{let t=Object.entries(e);return{included:t.filter(([,r])=>r.defaultFilterSelection==="include").map(([r])=>r),excluded:t.filter(([,r])=>r.defaultFilterSelection==="exclude").map(([r])=>r)}}),Bm=e=>{let t=Object.entries(e).reduce((r,n)=>{let[o,a]=n;return a.excludeFromSidebar&&(r[o]=!0),r},{});return r=>{let n=r.tags??[];return(n.includes(Rn.DEV)||r.type==="docs")&&n.filter(o=>t[o]).length===0}},Eu=(e,t)=>{let r=n=>Object.values(n.reduce((o,a)=>(Object.hasOwn(Ci,a)?o["built-in"].push(Ci[a]):o.user.push(bD(a)),o),{"built-in":[],user:[]})).filter(o=>o.length>0);return n=>{let o=r(e),a=r(t);return(!o.length||o.every(i=>i.some(l=>l(n,!1))))&&(!a.length||a.every(i=>i.every(l=>l(n,!0))))}},{fetch:L6}=WE,k6="./index.json",vu="tags-filter",jm="static-filter",La="status-filter",En=new Set(Object.keys(Ci)),N6=["enableShortcuts","theme","showRoots"];function Su(e){if(!e||typeof e=="string")return e;let t={...e};return N6.forEach(r=>{r in t&&delete t[r]}),t}var Hm={tag:{included:"includedTagFilters",excluded:"excludedTagFilters"},status:{included:"includedStatusFilters",excluded:"excludedStatusFilters"}},M6=({fullAPI:e,store:t,navigate:r,provider:n,state:{location:o}={},storyId:a,viewMode:i,docsOptions:l={}})=>{let s=($,C)=>{let{customQueryParams:A}=t.getState();r(VE($,A??{}),C)},u=$=>t.setState($,{persistence:"url",serialize:C=>{let A=F6(C.includedTagFilters,C.excludedTagFilters),D=R6(C.includedStatusFilters,C.excludedStatusFilters);return{tags:A??null,statuses:D??null}}}),c=!1,d=async($,C,A)=>{let{included:D,excluded:L}=Hm[$],M=t.getState(),k=new Set(M[D]),H=new Set(M[L]);for(let z of C){let[K,U]=A?[H,k]:[k,H];U.delete(z),K.add(z)}await u({[D]:Array.from(k),[L]:Array.from(H)})},f=async($,C)=>{let{included:A,excluded:D}=Hm[$],L=t.getState(),M=new Set(C);await u({[A]:L[A].filter(k=>!M.has(k)),[D]:L[D].filter(k=>!M.has(k))})},g=($,C)=>{let A=t.getState(),D=(A.includedTagFilters??[]).filter(U=>En.has(U)),L=(A.excludedTagFilters??[]).filter(U=>En.has(U)),M=!!globalThis?.FEATURES?.changeDetection,k=M?A.includedStatusFilters??[]:[],H=M?A.excludedStatusFilters??[]:[],z={},K=A.internal_index?Object.values(A.internal_index.entries):[];for(let U of new Set([...D,...L])){let j=Ci[U];z[U]=K.filter(V=>j(V)).length}if(k.length>0||H.length>0){let U=gD(li.getAll());for(let j of new Set([...k,...H]))U[j]!==void 0&&(z[j]=U[j])}n.channel?.emit(E6,{trigger:$,changed:C,activeTagFilters:{included:D,excluded:L},activeStatusFilters:{included:k,excluded:H},storyCounts:z})},m={storyId:Ra,getData:($,C)=>{let A=m.resolveStory($,C);if(A?.type==="story"||A?.type==="docs")return A},isPrepared:($,C)=>{let A=m.getData($,C);return A?A.type==="story"?A.prepared:!0:!1},resolveStory:($,C)=>{let{refs:A,index:D}=t.getState();if(!(C&&!A[C]))return C?A?.[C]?.index?.[$]??void 0:D?D[$]:void 0},getCurrentStoryData:()=>{let{storyId:$,refId:C}=t.getState();return m.getData($,C)},getIndex:()=>{let{internal_index:$}=t.getState();return $},getParameters:($,C)=>{let{storyId:A,refId:D}=typeof $=="string"?{storyId:$,refId:void 0}:$,L=m.getData(A,D);if(["story","docs"].includes(L?.type)){let{parameters:M}=L;if(M)return C?M[C]:M}return null},getCurrentParameter:$=>{let{storyId:C,refId:A}=t.getState();return m.getParameters({storyId:C,refId:A},$)||void 0},jumpToComponent:$=>{let{filteredIndex:C,storyId:A,refs:D,refId:L}=t.getState();if(!m.getData(A,L))return;let M=L?D[L].filteredIndex||{}:C;if(!M)return;let k=m.findSiblingStoryId(A,M,$,!0);k&&m.selectStory(k,void 0,{ref:L})},jumpToStory:$=>{let{filteredIndex:C,storyId:A,refs:D,refId:L}=t.getState(),M=m.getData(A,L);if(!M)return;let k=M.refId?D[M.refId].filteredIndex:C;if(!k)return;let H=m.findSiblingStoryId(A,k,$,!1);H&&m.selectStory(H,void 0,{ref:L})},selectFirstStory:()=>{let $=t.getState();if(Mm($)){let{filteredIndex:D}=$;if(!D)return;let L=Object.keys(D).find(M=>D[M].type==="story");L&&m.selectStory(L);return}let{index:C}=$;if(!C)return;let A=Object.keys(C).find(D=>C[D].type==="story");if(A){m.selectStory(A);return}s("/")},selectStory:($=void 0,C=void 0,A={})=>{let{ref:D}=A,{storyId:L,index:M,filteredIndex:k,refs:H,settings:z}=t.getState(),K=G=>G?.type==="docs"||G?.type==="story"?(t.setState({settings:{...z,lastTrackedStoryId:G.id}}),s(`/${G.type}/${G.refId?`${G.refId}_${G.id}`:G.id}`),!0):!1,U=L?.split("--",2)[0],j=D?H[D].index:M,V=D?H[D].filteredIndex:k;if(!(!j||!V))if(C)if(!$)K(j[Ra(U,C)]);else{let G=D?`${D}_${Ra($,C)}`:Ra($,C);if(j[G])K(j[G]);else{let Z=j[Hn($)];if(Z?.type==="component"){let Ee=Z.children.find(Le=>j[Le].name===C);K(Ee?j[Ee]:void 0)}}}else{let G=$?j[$]||j[Hn($)]:j[U];if(!G)throw new Error(`Unknown id or title: '${$}'`);K(G)||K(m.findLeafEntry(V,G.id))}},findLeafEntry($,C){let A=$[C];if(!A)return;if(A.type==="docs"||A.type==="story")return A;let D=A.children.find(L=>$[L]);return D?m.findLeafEntry($,D):void 0},findLeafStoryId($,C){return m.findLeafEntry($,C)?.id},findAllLeafStoryIds($){let{index:C}=t.getState();if(!C)return[];let A=(D,L=[])=>{let M=C[D];return M&&(M.type==="story"&&L.push(M.id),"children"in M&&M.children?.forEach(k=>A(k,L))),L};return A($,[])},findSiblingStoryId($,C,A,D){if(D){let k=DI(C),H=k.findIndex(z=>z.includes($));return H===k.length-1&&A>0||H===0&&A<0?void 0:k[H+A]?k[H+A][0]:void 0}let L=PI(C),M=L.indexOf($);if(!(M===L.length-1&&A>0)&&!(M===0&&A<0))return L[M+A]},updateStoryArgs:($,C)=>{let{id:A,refId:D}=$;n.channel?.emit(_6,{storyId:A,updatedArgs:C,options:{target:D}})},resetStoryArgs:($,C)=>{let{id:A,refId:D}=$;n.channel?.emit(f6,{storyId:A,argNames:C,options:{target:D}})},fetchIndex:async()=>{try{let $=await L6(k6);if($.status!==200)throw new Error(await $.text());let C=await $.json();if(C.v<3){l6.warn(`Skipping story index with version v${C.v}, awaiting SET_STORIES.`);return}await m.setIndex(C)}catch($){await t.setState({indexError:$})}},setIndex:async $=>{let{filteredIndex:C,index:A,filters:D}=t.getState(),L=li.getAll(),M=Oi($,{provider:n,docsOptions:l,filters:D,allStatuses:L,statusFilterKey:La}),k=Oi($,{provider:n,docsOptions:l,filters:{},allStatuses:L});await t.setState({internal_index:$,filteredIndex:Pm(M,C),index:Pm(k,A),indexError:void 0})},updateStory:async($,C,A)=>{if(A){let{id:D,index:L,filteredIndex:M}=A;L&&L[$]&&(L[$]={...L[$],...C}),M&&M[$]&&(M[$]={...M[$],...C}),await e.updateRef(D,{index:L,filteredIndex:M})}else{let{index:D,filteredIndex:L}=t.getState();D&&D[$]&&(D[$]={...D[$],...C}),L&&L[$]&&(L[$]={...L[$],...C}),(D||L)&&await t.setState({index:D,filteredIndex:L})}},updateDocs:async($,C,A)=>{if(A){let{id:D,index:L,filteredIndex:M}=A;L[$]={...L[$],...C},M[$]={...M[$],...C},await e.updateRef(D,{index:L,filteredIndex:M})}else{let{index:D,filteredIndex:L}=t.getState();D&&(D[$]={...D[$],...C}),L&&(L[$]={...L[$],...C}),(D||L)&&await t.setState({index:D,filteredIndex:L})}},setPreviewInitialized:async $=>{$?e.updateRef($.id,{previewInitialized:!0}):t.setState({previewInitialized:!0})},experimental_setFilter:async($,C)=>{await t.setState({filters:{...t.getState().filters,[$]:C}});let{internal_index:A}=t.getState();if(!A)return;await m.setIndex(A);let D=await e.getRefs();for(let[L,{internal_index:M,...k}]of Object.entries(D))await e.setRef(L,{...k,storyIndex:M},!0);n.channel?.emit(m6,{id:$})},resetTagFilters:async()=>{await u($=>({includedTagFilters:$.defaultIncludedTagFilters,excludedTagFilters:$.defaultExcludedTagFilters})),await y()},setAllTagFilters:async($,C)=>{await u({includedTagFilters:$,excludedTagFilters:C}),await y()},addTagFilters:async($,C)=>{await d("tag",$,C),await y(),$.length===1&&En.has($[0])&&g("interaction",{filterType:"tag",filterId:$[0],action:C?"exclude":"include"})},removeTagFilters:async $=>{await f("tag",$),await y(),$.length===1&&En.has($[0])&&g("interaction",{filterType:"tag",filterId:$[0],action:"remove"})},resetStatusFilters:async()=>{await u({includedStatusFilters:[],excludedStatusFilters:[]}),await E()},setAllStatusFilters:async($,C)=>{let A=t.getState(),D=new Set(A.includedStatusFilters??[]),L=new Set(A.excludedStatusFilters??[]),M=new Set($),k=new Set(C);await u({includedStatusFilters:$,excludedStatusFilters:C}),await E();let H=new Set([...D,...L,...M,...k]);for(let z of H){let K=D.has(z),U=L.has(z),j=M.has(z),V=k.has(z);if(K===j&&U===V)continue;let G;j?G="include":V?G="exclude":G="remove",g("interaction",{filterType:"status",filterId:z,action:G})}},addStatusFilters:async($,C)=>{await d("status",$,C),await E(),$.length===1&&g("interaction",{filterType:"status",filterId:$[0],action:C?"exclude":"include"})},removeStatusFilters:async $=>{await f("status",$),await E(),$.length===1&&g("interaction",{filterType:"status",filterId:$[0],action:"remove"})}},y=()=>{let{includedTagFilters:$,excludedTagFilters:C}=t.getState();return m.experimental_setFilter(vu,Eu($,C))},E=()=>{let{includedStatusFilters:$,excludedStatusFilters:C}=t.getState();return m.experimental_setFilter(La,bu($??[],C??[]))};n.channel?.on(C6,function({storyId:$,viewMode:C}){let{sourceType:A}=dt(this,e);if(A==="local"){let D=t.getState(),L=D.path==="/"||D.viewMode==="story"||D.viewMode==="docs",M=D.viewMode&&D.storyId,k=D.viewMode!==C||D.storyId!==$,{type:H}=D.index?.[D.storyId]||{},z=!(H==="root"||H==="component"||H==="group");if(L){if(Mm(D)&&!M){let{filteredIndex:K}=D;if(!(K&&K[$]?.type==="story")){let U=K?Object.keys(K).find(j=>{let V=K[j];return V.type==="story"||V.type==="docs"}):void 0;U&&s(`/${C}/${U}`);return}}M&&k&&z?n.channel?.emit(g6,{storyId:D.storyId,viewMode:D.viewMode}):k&&s(`/${C}/${$}`)}}}),n.channel?.on(u6,function(){let{ref:$}=dt(this,e);m.setPreviewInitialized($)}),n.channel?.on(S6,function(){let{sourceType:$}=dt(this,e);if($==="local"){let C=m.getCurrentParameter("options");C&&e.setOptions(Su(C))}}),n.channel?.on(w6,function({id:$,...C}){let{ref:A,sourceType:D}=dt(this,e);if(m.updateStory($,{...C,prepared:!0},A),!A&&!t.getState().hasCalledSetOptions){let{options:L}=C.parameters;e.setOptions(Su(L)),t.setState({hasCalledSetOptions:!0})}if(D==="local"){let{storyId:L,index:M,refId:k}=t.getState();if(!M)return;let H=Array.from(new Set([m.findSiblingStoryId(L,M,1,!0),m.findSiblingStoryId(L,M,-1,!0)])).filter(Boolean);n.channel?.emit(d6,{ids:H,options:{target:k}})}}),n.channel?.on(c6,function({id:$,...C}){let{ref:A}=dt(this,e);m.updateStory($,{...C,prepared:!0},A)}),n.channel?.on(y6,function($){let{ref:C}=dt(this,e);if(C)e.setRef(C.id,{...C,storyIndex:$},!0);else{m.setIndex($);let A=m.getCurrentParameter("options");e.setOptions(Su(A))}}),n.channel?.on(b6,function($){let{ref:C}=dt(this,e),A=$.v?_I($):$.stories;if(C)e.setRef(C.id,{...C,setStoriesData:A},!0);else throw new Error("Cannot call SET_STORIES for local frame")}),n.channel?.on(p6,function({kind:$,title:C=$,story:A,name:D=A,storyId:L,...M}){let{ref:k}=dt(this,e);k?e.selectStory(L||C,D,{...M,ref:k.id}):e.selectStory(L||C,D,M)}),n.channel?.on(v6,function({storyId:$,args:C}){let{ref:A}=dt(this,e);m.updateStory($,{args:C},A)}),n.channel?.on(s6,function($){let{ref:C}=dt(this,e);m.setPreviewInitialized(C)}),n.channel?.on($6,function($){let{ref:C}=dt(this,e);m.setPreviewInitialized(C)}),n.channel?.on(h6,()=>{let $=n.getConfig()?.sidebar?.filters||{},{includedTagFilters:C,excludedTagFilters:A,includedStatusFilters:D,excludedStatusFilters:L,tagPresets:M}=t.getState();t.setState({filters:{...t.getState().filters,...$,[jm]:Bm(M),[vu]:Eu(C,A),[La]:bu(D,L)}})}),li.onAllStatusChange(async()=>{E();let{internal_index:$}=t.getState();if(!$)return;await m.setIndex($);let C=await e.getRefs();Object.entries(C).forEach(([A,{internal_index:D,...L}])=>{e.setRef(A,{...L,storyIndex:D},!0)})});let b=n.getConfig()?.sidebar?.filters||{},v=WE.TAGS_OPTIONS||{},S=I6(v),{tags:x,statuses:O}=gE(o??{search:""}),w=P6(x),T=x!==void 0,R=T?w.included:S.included,I=T?w.excluded:S.excluded,P=A6(O),_=P.included,N=P.excluded,B={...b,[jm]:Bm(v),[vu]:Eu(R,I),[La]:bu(_,N)};return{api:m,state:{storyId:a,viewMode:i,hasCalledSetOptions:!1,previewInitialized:!1,filters:B,tagPresets:v,defaultIncludedTagFilters:S.included,defaultExcludedTagFilters:S.excluded,includedTagFilters:R,excludedTagFilters:I,includedStatusFilters:_,excludedStatusFilters:N},init:async()=>{if(n.channel?.on(x6,()=>m.fetchIndex()),await m.fetchIndex(),c)return;c=!0;let $=R.some(A=>En.has(A))||I.some(A=>En.has(A)),C=!!globalThis?.FEATURES?.changeDetection&&(_.length>0||N.length>0);($||C)&&g("url")}}},JE={};ze(JE,{init:()=>G6});const{GLOBALS_UPDATED:B6,NAVIGATE_URL:j6,SET_CURRENT_STORY:H6,STORY_ARGS_UPDATED:U6,UPDATE_QUERY_PARAMS:z6}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:vn}=__STORYBOOK_MODULE_GLOBAL__;var Um=rt(y1(),1),Lr=e=>{if(e==="true"||e==="1")return!0;if(e==="false"||e==="0")return!1},zm=e=>Object.fromEntries(e.split(";").map(t=>t.split(":")).map(([t,r])=>[t,encodeURIComponent(r)]).filter(([t,r])=>t&&r)),Km=(e,t)=>{let r=zm(e),n=zm(t);return Object.entries({...r,...n}).map(([o,a])=>`${o}:${a}`).join(";")},xu,K6=({state:{location:e,path:t,viewMode:r,storyId:n},singleStory:o})=>{let{full:a,panel:i,nav:l,shortcuts:s,addonPanel:u,tabs:c,path:d,...f}=gE(e),g,m,y;Lr(a)===!0?(g=0,m=0,y=0):Lr(a)===!1&&(g=Wo,m=Ai,y=Ri),o||(Lr(l)===!0&&(g=Wo),Lr(l)===!1&&(g=0)),Lr(i)===!1&&(m=0,y=0);let E={navSize:g,bottomPanelHeight:m,rightPanelWidth:y,panelPosition:["right","bottom"].includes(i)?i:void 0,showTabs:Lr(c)},b={enableShortcuts:Lr(s)},v=u||void 0,S=n,x=Wt(xu,f)?xu:f;return xu=x,{viewMode:r,layout:E,ui:b,selectedPanel:v,location:e,path:t,customQueryParams:x,storyId:S}},G6=e=>{let{store:t,navigate:r,provider:n,fullAPI:o}=e,a=(u,c={},d={})=>r(VE(u,c),d),i={getStoryHrefs(u,c={}){let{id:d,refId:f}=o.getCurrentStoryData()??{},g=u===d&&c.refId===f,{customQueryParams:m,location:y,refs:E}=t.getState(),{base:b,inheritArgs:v=g,inheritGlobals:S=!0,queryParams:x={},refId:O,viewMode:w="story"}=c;if(O&&!E[O])throw new Error(`Invalid refId: ${O}`);let T=y.pathname||"/",R=vn.window.location.origin+T,I=vn.STORYBOOK_NETWORK_ADDRESS??R,P=b==="origin"?R:b==="network"?I:T,_=O?E[O].url+"/iframe.html":vn.PREVIEW_URL||`${P.replace(/\/[^/]*\.html$/,"").replace(/\/?$/,"/")}iframe.html`,N=O?`&refId=${encodeURIComponent(O)}`:"",{args:B="",globals:$="",...C}=x,A=v?Km(m?.args??"",B):B,D=S?Km(m?.globals??"",$):$,L=(0,Um.stringify)(C,{nesting:!0,nestingSyntax:"js"}),M=(0,Um.stringify)(RC(C,["id","viewMode"]),{nesting:!0,nestingSyntax:"js"});return A=A&&`&args=${A}`,D=D&&`&globals=${D}`,L=L&&`&${L}`,M=M&&`&${M}`,{managerHref:`${P}?path=/${w}/${O?`${O}_`:""}${u}${A}${D}${L}`,previewHref:`${_}?id=${u}&viewMode=${w}${N}${A}${O?"":D}${M}`}},getQueryParam(u){let{customQueryParams:c}=t.getState();return c?c[u]:void 0},getUrlState(){let{location:u,path:c,customQueryParams:d,storyId:f,url:g,viewMode:m}=t.getState();return{path:c,hash:u?.hash??"",queryParams:d,storyId:f,url:g,viewMode:m}},setQueryParams(u){let{customQueryParams:c}=t.getState(),d={...c};for(let[f,g]of Object.entries(u))g==null?delete d[f]:d[f]=g;Wt(c,d)||(t.setState({customQueryParams:d}),n.channel?.emit(z6,d))},applyQueryParams(u,c){let{path:d,hash:f="",queryParams:g}=i.getUrlState();a(`${d}${f}`,{...g,...u},c),i.setQueryParams(u)},navigateUrl(u,c){r(u,{plain:!0,...c})}},l=()=>{let{path:u,hash:c="",queryParams:d,viewMode:f}=i.getUrlState();if(f!=="story")return;let g=o.getCurrentStoryData();if(g?.type!=="story")return;let{args:m,initialArgs:y}=g,E=Fg(y,m);a(`${u}${c}`,{...d,args:E||null},{replace:!0}),i.setQueryParams({args:E||null})};n.channel?.on(H6,()=>l());let s;return n.channel?.on(U6,()=>{"requestIdleCallback"in vn.window?(s&&vn.window.cancelIdleCallback(s),s=vn.window.requestIdleCallback(l,{timeout:1e3})):(s&&clearTimeout(s),setTimeout(l,100))}),n.channel?.on(B6,({userGlobals:u,initialGlobals:c})=>{let{path:d,hash:f="",queryParams:g}=i.getUrlState(),m=Fg(c,Qr(c,u));a(`${d}${f}`,{...g,globals:m||null},{replace:!0}),i.setQueryParams({globals:m||null})}),n.channel?.on(j6,(u,c)=>{i.navigateUrl(u,c)}),{api:i,state:K6(e),init:()=>{t.registerPersistenceHandler("url",(u,c)=>{if(c){let d=c(t.getState());i.applyQueryParams(d,{replace:!0})}})}}},ZE={};ze(ZE,{init:()=>X6});var W6=rt(sn(),1);const{global:Yc}=__STORYBOOK_MODULE_GLOBAL__;var V6="10.4.0",{VERSIONCHECK:q6}=Yc,Gm=(0,W6.default)(1)(()=>{try{return{...JSON.parse(q6).data||{}}}catch{return{}}}),Y6=e=>e.includes("vue")?"vue":e,X6=({store:e})=>{let{dismissedVersionNotification:t}=e.getState(),r={versions:{current:{version:V6},...Gm()},dismissedVersionNotification:t},n={getCurrentVersion:()=>{let{versions:{current:o}}=e.getState();return o},getLatestVersion:()=>{let{versions:{latest:o,next:a,current:i}}=e.getState();return i&&ct.prerelease(i.version)&&a?o&&ct.gt(o.version,a.version)?o:a:o},getDocsUrl:({asset:o,subpath:a=o,versioned:i,renderer:l,ref:s="ui"})=>{let{versions:u}=e.getState(),c=u.latest?.version,d=u.current?.version,f=d?.startsWith("0.0.0")&&c||d,g=`https://storybook.js.org/${o?"docs-assets":"docs"}/`;if(o&&f)g+=`${ct.major(f)}.${ct.minor(f)}/`;else if(i&&f&&c){let E=ct.diff(c,f);E==="patch"||E===null||(g+=`${ct.major(f)}.${ct.minor(f)}/`)}let[m,y]=a?.split("#")||[];if(m&&(g+=o?m:`${m}/`),l&&typeof Yc.STORYBOOK_RENDERER<"u"){let E=Yc.STORYBOOK_RENDERER;E&&(g+=`?renderer=${Y6(E)}`)}return s&&(g+=`${g.includes("?")?"&":"?"}ref=${s}`),y&&(g+=`#${y}`),g},versionUpdateAvailable:()=>{let o=n.getLatestVersion(),a=n.getCurrentVersion();if(o){if(!o.version||!a.version)return!0;let i=ct.prerelease(a.version)?`${ct.major(a.version)}.${ct.minor(a.version)}.${ct.patch(a.version)}`:a.version,l=ct.diff(i,o.version);return ct.gt(o.version,i)&&l!=="patch"&&!l.includes("pre")}return!1}};return{init:async()=>{let{versions:o={}}=e.getState(),{latest:a,next:i}=Gm();await e.setState({versions:{...o,latest:a,next:i}})},state:r,api:n}},QE={};ze(QE,{init:()=>n8});const{REQUEST_WHATS_NEW_DATA:J6,RESULT_WHATS_NEW_DATA:Z6,SET_WHATS_NEW_CACHE:Q6,TOGGLE_WHATS_NEW_NOTIFICATIONS:e8}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:t8}=__STORYBOOK_MODULE_GLOBAL__;var Wm="whats-new",r8=({color:e="currentColor",size:t=14})=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.042.616a.704.704 0 00-.66.729L1.816 12.9c.014.367.306.66.672.677l9.395.422h.032a.704.704 0 00.704-.703V.704c0-.015 0-.03-.002-.044a.704.704 0 00-.746-.659l-.773.049.057 1.615a.105.105 0 01-.17.086l-.52-.41-.617.468a.105.105 0 01-.168-.088L9.746.134 2.042.616zm8.003 4.747c-.247.192-2.092.324-2.092.05.04-1.045-.429-1.091-.689-1.091-.247 0-.662.075-.662.634 0 .57.607.893 1.32 1.27 1.014.538 2.24 1.188 2.24 2.823 0 1.568-1.273 2.433-2.898 2.433-1.676 0-3.141-.678-2.976-3.03.065-.275 2.197-.21 2.197 0-.026.971.195 1.256.753 1.256.43 0 .624-.236.624-.634 0-.602-.633-.958-1.361-1.367-.987-.554-2.148-1.205-2.148-2.7 0-1.494 1.027-2.489 2.86-2.489 1.832 0 2.832.98 2.832 2.845z",fill:e})),n8=({fullAPI:e,store:t,provider:r})=>{let n={whatsNewData:void 0};function o(s){t.setState({whatsNewData:s}),n.whatsNewData=s}let a={isWhatsNewUnread(){return n.whatsNewData?.status==="SUCCESS"&&!n.whatsNewData.postIsRead},whatsNewHasBeenRead(){n.whatsNewData?.status==="SUCCESS"&&(l({lastReadPost:n.whatsNewData.url}),o({...n.whatsNewData,postIsRead:!0}),e.clearNotification(Wm))},toggleWhatsNewNotifications(){n.whatsNewData?.status==="SUCCESS"&&(o({...n.whatsNewData,disableWhatsNewNotifications:!n.whatsNewData.disableWhatsNewNotifications}),r.channel?.emit(e8,{disableWhatsNewNotifications:n.whatsNewData.disableWhatsNewNotifications}))}};function i(){return r.channel?.emit(J6),new Promise(s=>r.channel?.once(Z6,({data:u})=>s(u)))}function l(s){r.channel?.emit(Q6,s)}return{init:async()=>{if(t8.CONFIG_TYPE!=="DEVELOPMENT")return;let s=await i();o(s);let u=e.getUrlState();!(u?.path==="/onboarding"||u.queryParams?.onboarding==="true")&&s.status==="SUCCESS"&&!s.disableWhatsNewNotifications&&s.showNotification&&e.addNotification({id:Wm,link:"/settings/whats-new",content:{headline:s.title,subHeadline:"Learn what's new in Storybook"},icon:h.createElement(r8,null),onClear({dismissed:c}){c&&l({lastDismissedPost:s.url})}})},state:n,api:a}},Gr=rt(sI(),1),o8=e=>{e.fn("set",function(t,r){return e.set(this._area,this._in(t),aD(r,{maxDepth:50}))}),e.fn("get",function(t,r){let n=e.get(this._area,this._in(t));return n!==null?lD(n):r||n})};o8(Gr.default._);var ev="@storybook/manager/store";function si(e){return e.get(ev)||{}}function tv(e,t){return e.set(ev,t)}function a8(e,t){let r=si(e);return tv(e,{...r,...t})}var i8=class{constructor({allowPersistence:e,setState:t,getState:r}){this.persistenceHandlers=new Map,this.upstreamPersistence=e??!0,this.upstreamSetState=t,this.upstreamGetState=r}registerPersistenceHandler(e,t){this.persistenceHandlers.set(e,t)}getInitialState(e){for(let n of[Gr.default.local,Gr.default.session]){let o=si(n);if("includedTagFilters"in o||"excludedTagFilters"in o){let{includedTagFilters:a,excludedTagFilters:i,...l}=o;tv(n,l)}}let t=si(Gr.default.local),r=si(Gr.default.session);return{...e,...t,...r}}getState(){return this.upstreamGetState()}async setState(e,t,r){let n,o;typeof t=="function"?(n=t,o=r):o=t;let{persistence:a="none"}=o||{},i={},l={};typeof e=="function"?i=u=>(l=e(u),l):(i=e,l=i);let s=await new Promise(u=>{this.upstreamSetState(i,()=>{u(this.getState())})});if(a!=="none"&&this.upstreamPersistence)if(a==="url"){let u=this.persistenceHandlers.get("url");u&&await u(l,o?.serialize)}else{let u=a==="session"?Gr.default.session:Gr.default.local;await a8(u,l)}return n&&n(s),s}},{ActiveTabs:fX}=Ff,rv=uI({api:void 0,state:Kc({})}),l8=(...e)=>cI({},...e),s8=class extends p.Component{constructor(e){super(e),this.api={},this.initModules=()=>{this.modules.forEach(y=>{"init"in y&&y.init()})};let{location:t,path:r,refId:n,viewMode:o=e.docsOptions.docsMode?"docs":e.viewMode,singleStory:a,storyId:i,docsOptions:l,navigate:s}=e,u=new i8({getState:()=>this.state,setState:(y,E)=>(this.setState(y,()=>E(this.state)),this.state)}),c={location:t,path:r,viewMode:o,singleStory:a,storyId:i,refId:n},d={docsOptions:l};this.state=u.getInitialState(Kc({...c,...d}));let f={navigate:s,store:u,provider:e.provider};this.modules=[jE,AE,OE,Ff,ME,HE,UE,GE,DE,RE,JE,ZE,QE,BE].map(y=>y.init({...c,...d,...f,state:this.state,fullAPI:this.api}));let g=Kc(this.state,...this.modules.map(y=>y.state)),m=Object.assign(this.api,{navigate:s},...this.modules.map(y=>y.api));this.state=g,this.api=m}static getDerivedStateFromProps(e,t){return t.path!==e.path?{...t,location:e.location,path:e.path,refId:e.refId,viewMode:e.viewMode,storyId:e.storyId}:null}shouldComponentUpdate(e,t){let r=this.props,n=this.state;return r.path!==e.path||!Kt(n,t)}render(){let{children:e}=this.props,t={state:this.state,api:this.api};return h.createElement(u8,{effect:this.initModules},h.createElement(rv.Provider,{value:t},h.createElement(d8,null,e)))}};s8.displayName="Manager";var u8=({children:e,effect:t})=>(h.useEffect(t,[]),e),c8=e=>e;function d8({filter:e=c8,children:t}){let r=p.useContext(rv),n=p.useRef(t),o=p.useRef(e);if(typeof n.current!="function")return h.createElement(p.Fragment,null,n.current);let a=o.current(r),i=p.useMemo(()=>[...Object.entries(a).reduce((l,s)=>l.concat(s),[])],[r.state]);return p.useMemo(()=>{let l=n.current;return h.createElement(l,{...a})},i)}globalThis.STORYBOOK_ADDON_STATE={};const{Channel:pX}=__STORYBOOK_MODULE_CHANNELS__;var f8={id:"storybook/test-provider",leader:!0,initialState:{}};function p8({universalTestProviderStore:e,useUniversalStore:t}){let r={settingsChanged:()=>{e.untilReady().then(()=>{e.send({type:"settings-changed"})})},onRunAll:a=>e.subscribe("run-all",a),onClearAll:a=>e.subscribe("clear-all",a)},n={...r,getFullState:e.getState,setFullState:e.setState,onSettingsChanged:a=>e.subscribe("settings-changed",a),runAll:async()=>{await e.untilReady(),e.send({type:"run-all"})},clearAll:async()=>{await e.untilReady(),e.send({type:"clear-all"})}},o=a=>{let i=()=>e.getState()[a]??"test-provider-state:pending",l=s=>{e.untilReady().then(()=>{e.setState(u=>({...u,[a]:s}))})};return{...r,testProviderId:a,getState:i,setState:l,runWithState:async s=>{l("test-provider-state:running");try{await s(),l("test-provider-state:succeeded")}catch{l("test-provider-state:crashed")}}}};return t?{getTestProviderStoreById:o,fullTestProviderStore:n,universalTestProviderStore:e,useTestProviderStore:a=>t(e,a)[0]}:{getTestProviderStoreById:o,fullTestProviderStore:n,universalTestProviderStore:e}}p8({universalTestProviderStore:Yd.create({...f8,leader:globalThis.CONFIG_TYPE==="PRODUCTION"}),useUniversalStore:qE});var h8={items:{accessibilityTests:{status:"open"},aiSetup:{status:"open"},autodocs:{status:"open"},ciTests:{status:"open"},controls:{status:"open"},coverage:{status:"open"},guidedTour:{status:"open"},installA11y:{status:"open"},installChromatic:{status:"open"},installDocs:{status:"open"},installVitest:{status:"open"},mdxDocs:{status:"open"},moreComponents:{status:"open"},moreStories:{status:"open"},onboardingSurvey:{status:"open"},organizeStories:{status:"open"},renderComponent:{status:"open"},runTests:{status:"open"},publishStorybook:{status:"open"},shareStorybook:{status:"open"},viewports:{status:"open"},visualTests:{status:"open"},whatsNewStorybook10:{status:"open"},writeInteractions:{status:"open"}},widget:{}},g8={id:"storybook/checklist",initialState:h8};Yd.create({...g8,leader:globalThis.CONFIG_TYPE==="PRODUCTION"});var $u={exports:{}},wu={};var Vm;function m8(){if(Vm)return wu;Vm=1;var e=ob();function t(d,f){return d===f&&(d!==0||1/d===1/f)||d!==d&&f!==f}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,o=e.useEffect,a=e.useLayoutEffect,i=e.useDebugValue;function l(d,f){var g=f(),m=n({inst:{value:g,getSnapshot:f}}),y=m[0].inst,E=m[1];return a(function(){y.value=g,y.getSnapshot=f,s(y)&&E({inst:y})},[d,g,f]),o(function(){return s(y)&&E({inst:y}),d(function(){s(y)&&E({inst:y})})},[d]),i(g),g}function s(d){var f=d.getSnapshot;d=d.value;try{var g=f();return!r(d,g)}catch{return!0}}function u(d,f){return f()}var c=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:l;return wu.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:c,wu}var qm;function y8(){return qm||(qm=1,$u.exports=m8()),$u.exports}var b8=y8(),ve=({...e},t)=>{let r=[e.class,e.className];return delete e.class,e.className=["sbdocs",`sbdocs-${t}`,...r].filter(Boolean).join(" "),e},no=({theme:e})=>({margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& tt, & code":{fontSize:"inherit"}}),fr=({theme:e})=>({lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:e.typography.size.s2-1,border:e.base==="light"?"1px solid hsl(0 0 0 / 0.05)":"1px solid hsl(0 0 100 / 0.05)",color:e.color.defaultText,backgroundColor:e.base==="light"?"hsl(0 0 0 / 0.01)":"hsl(0 0 100 / 0.02)"}),$e=({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"}),pn={margin:"16px 0"},If=F.div($e),E8=({href:e="",...t})=>{let r=/^\//.test(e)?`./?path=${e}`:e,n=/^#.*/.test(e)?"_self":"_top";return h.createElement("a",{href:r,target:n,...t})},nv=F(E8)(({theme:e})=>({...$e({theme:e}),fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"underline",textDecorationThickness:"0.03125rem",textUnderlineOffset:"0.11em","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0,textDecoration:"none"},"&.anchor:hover, &.anchor:focus":{textDecoration:"underline"},"& code":{color:"inherit",textDecoration:"underline",textDecorationThickness:"0.03125rem",paddingLeft:0,paddingRight:0,"&::before":{content:'"\\00a0"',fontSize:"0.5em"},"&::after":{content:'"\\00a0"',fontSize:"0.5em"}}})),ov=F.blockquote(({theme:e})=>({...$e({theme:e}),...pn,borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}})),en=[],Un=null,v8=p.lazy(async()=>{let{SyntaxHighlighter:e}=await cr(async()=>{const{SyntaxHighlighter:t}=await import("./syntaxhighlighter-W7WJGI2T-D7f2o1Z3.js");return{SyntaxHighlighter:t}},__vite__mapDeps([0,1,2,3]),import.meta.url);return en.length>0&&(en.forEach(t=>{e.registerLanguage(...t)}),en=[]),Un===null&&(Un=e),{default:t=>h.createElement(e,{...t})}}),S8=p.lazy(async()=>{let[{SyntaxHighlighter:e},{formatter:t}]=await Promise.all([cr(()=>import("./syntaxhighlighter-W7WJGI2T-D7f2o1Z3.js"),__vite__mapDeps([0,1,2,3]),import.meta.url),cr(()=>import("./formatter-EIJCOSYU-3FZOx6vn.js"),__vite__mapDeps([4,1,2,3]),import.meta.url)]);return en.length>0&&(en.forEach(r=>{e.registerLanguage(...r)}),en=[]),Un===null&&(Un=e),{default:r=>h.createElement(e,{...r,formatter:t})}}),ca=e=>h.createElement(p.Suspense,{fallback:h.createElement("div",null)},e.format!==!1?h.createElement(S8,{...e}):h.createElement(v8,{...e}));ca.registerLanguage=(...e)=>{if(Un!==null){Un.registerLanguage(...e);return}en.push(e)};var x8=e=>typeof e=="string",$8=/[\n\r]/g,w8=F.code(({theme:e})=>({fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit",...fr({theme:e})})),C8=F(ca)(({theme:e})=>({fontFamily:e.typography.fonts.mono,fontSize:`${e.typography.size.s2-1}px`,lineHeight:"19px",margin:"25px 0 40px",borderRadius:e.appBorderRadius,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}})),Lf=({className:e,children:t,...r})=>{let n=(e||"").match(/lang-(\S+)/),o=p.Children.toArray(t);return o.filter(x8).some(a=>a.match($8))?h.createElement(C8,{bordered:!0,copyable:!0,language:n?.[1]??"text",format:!1,...r},t):h.createElement(w8,{...r,className:e},o)},av=F.dl(({theme:e})=>({...$e({theme:e}),...pn,padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}})),iv=F.div($e),lv=F.h1(({theme:e})=>({...$e({theme:e}),...no({theme:e}),fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold})),kf=F.h2(({theme:e})=>({...$e({theme:e}),...no({theme:e}),fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`})),Nf=F.h3(({theme:e})=>({...$e({theme:e}),...no({theme:e}),fontSize:`${e.typography.size.m1}px`})),sv=F.h4(({theme:e})=>({...$e({theme:e}),...no({theme:e}),fontSize:`${e.typography.size.s3}px`})),uv=F.h5(({theme:e})=>({...$e({theme:e}),...no({theme:e}),fontSize:`${e.typography.size.s2}px`})),cv=F.h6(({theme:e})=>({...$e({theme:e}),...no({theme:e}),fontSize:`${e.typography.size.s2}px`,color:e.color.dark})),dv=F.hr(({theme:e})=>({border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0})),fv=F.img({maxWidth:"100%"}),pv=F.li(({theme:e})=>({...$e({theme:e}),fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":fr({theme:e})})),_8={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},hv=F.ol(({theme:e})=>({...$e({theme:e}),...pn,..._8,listStyle:"decimal"})),gv=F.p(({theme:e})=>({...$e({theme:e}),...pn,fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":fr({theme:e})})),mv=F.pre(({theme:e})=>({...$e({theme:e}),...pn,fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}})),yv=F.span(({theme:e})=>({...$e({theme:e}),"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}})),bv=F.title(fr),Ev=F.table(({theme:e})=>({...$e({theme:e}),...pn,fontSize:e.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:e.base==="dark"?e.color.darker:e.color.lighter},"& tr th":{fontWeight:"bold",color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}})),T8={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},vv=F.ul(({theme:e})=>({...$e({theme:e}),...pn,...T8,listStyle:"disc"})),Sv={h1:e=>h.createElement(lv,{...ve(e,"h1")}),h2:e=>h.createElement(kf,{...ve(e,"h2")}),h3:e=>h.createElement(Nf,{...ve(e,"h3")}),h4:e=>h.createElement(sv,{...ve(e,"h4")}),h5:e=>h.createElement(uv,{...ve(e,"h5")}),h6:e=>h.createElement(cv,{...ve(e,"h6")}),pre:e=>h.createElement(mv,{...ve(e,"pre")}),a:e=>h.createElement(nv,{...ve(e,"a")}),hr:e=>h.createElement(dv,{...ve(e,"hr")}),dl:e=>h.createElement(av,{...ve(e,"dl")}),blockquote:e=>h.createElement(ov,{...ve(e,"blockquote")}),table:e=>h.createElement(Ev,{...ve(e,"table")}),img:e=>h.createElement(fv,{...ve(e,"img")}),div:e=>h.createElement(iv,{...ve(e,"div")}),span:e=>h.createElement(yv,{...ve(e,"span")}),li:e=>h.createElement(pv,{...ve(e,"li")}),ul:e=>h.createElement(vv,{...ve(e,"ul")}),ol:e=>h.createElement(hv,{...ve(e,"ol")}),p:e=>h.createElement(gv,{...ve(e,"p")}),code:e=>h.createElement(Lf,{...ve(e,"code")}),tt:e=>h.createElement(bv,{...ve(e,"tt")}),resetwrapper:e=>h.createElement(If,{...ve(e,"resetwrapper")})};F.div(({theme:e,compact:t})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",fontSize:e.typography.size.s1,fontWeight:e.typography.weight.bold,lineHeight:"12px",minWidth:20,borderRadius:20,padding:t?"4px 7px":"4px 10px"}),{svg:{height:12,width:12,marginRight:4,marginTop:-2,path:{fill:"currentColor"}}},({theme:e,status:t})=>{switch(t){case"critical":return{color:e.fgColor.critical,background:e.bgColor.critical,boxShadow:`inset 0 0 0 1px ${e.borderColor.critical}`};case"negative":return{color:e.fgColor.negative,background:e.bgColor.negative,boxShadow:`inset 0 0 0 1px ${e.borderColor.negative}`};case"warning":return{color:e.fgColor.warning,background:e.bgColor.warning,boxShadow:`inset 0 0 0 1px ${e.borderColor.warning}`};case"neutral":return{color:e.fgColor.muted,background:e.base==="dark"?e.barBg:e.background.app,boxShadow:`inset 0 0 0 1px ${dr(.8,e.textMutedColor)}`};case"positive":return{color:e.fgColor.positive,background:e.bgColor.positive,boxShadow:`inset 0 0 0 1px ${e.borderColor.positive}`};case"active":return{color:e.base==="light"?We(.1,e.color.secondary):e.color.secondary,background:e.background.hoverable,boxShadow:`inset 0 0 0 1px ${dr(.9,e.color.secondary)}`};default:return{}}});const{deprecate:O8}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var A8=0,R8=e=>e.button===A8&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey,D8=(e,t)=>{R8(e)&&(e.preventDefault(),t(e))},P8=F.span(({withArrow:e})=>e?{"> svg:last-of-type":{height:"0.7em",width:"0.7em",marginRight:0,marginLeft:"0.25em",bottom:"auto",verticalAlign:"inherit"}}:{},({containsIcon:e})=>e?{svg:{height:"1em",width:"1em",verticalAlign:"middle",position:"relative",bottom:0,marginRight:0}}:{}),F8=F.a(({theme:e})=>({display:"inline-block",transition:"all 150ms ease-out",textDecoration:"none",color:e.color.secondary,"&:hover, &:focus":{cursor:"pointer",color:We(.07,e.color.secondary),"svg path:not([fill])":{fill:We(.07,e.color.secondary)}},"&:active":{color:We(.1,e.color.secondary),"svg path:not([fill])":{fill:We(.1,e.color.secondary)}},svg:{display:"inline-block",height:"1em",width:"1em",verticalAlign:"text-top",position:"relative",bottom:"-0.125em",marginRight:"0.4em","& path":{fill:e.color.secondary}}}),({theme:e,secondary:t,tertiary:r})=>{let n;return t&&(n=[e.textMutedColor,e.color.secondary,e.color.secondary]),r&&(n=[e.color.dark,e.color.secondary,e.color.secondary]),n?{color:n[0],"svg path:not([fill])":{fill:n[0]},"&:hover":{color:n[1],"svg path:not([fill])":{fill:n[1]}},"&:active":{color:n[2],"svg path:not([fill])":{fill:n[2]}}}:{}},({nochrome:e})=>e?{color:"inherit","&:hover, &:active":{color:"inherit",textDecoration:"underline"}}:{},({theme:e,inverse:t})=>t?{color:e.color.lightest,":not([fill])":{fill:e.color.lightest},"&:hover":{color:e.color.lighter,"svg path:not([fill])":{fill:e.color.lighter}},"&:active":{color:e.color.light,"svg path:not([fill])":{fill:e.color.light}}}:{},({isButton:e,theme:t})=>e?{border:0,borderRadius:t.input.borderRadius,background:"none",padding:0,fontSize:"inherit",lineHeight:"inherit","&:focus-visible":{outline:`2px solid ${t.color.secondary}`,outlineOffset:2,zIndex:"1"}}:{}),zn=p.forwardRef(({cancel:e=!0,children:t,onClick:r=void 0,withArrow:n=!1,containsIcon:o=!1,className:a=void 0,isButton:i=void 0,href:l,...s},u)=>(i!==void 0&&O8("Link: `isButton` is deprecated and will be removed in Storybook 11. Links without a `href` are automatically rendered as buttons."),h.createElement(F8,{as:l?"a":"button",href:l,...s,ref:u,isButton:!l||i===!0,onClick:r&&e?c=>D8(c,r):r,className:a},h.createElement(P8,{withArrow:n,containsIcon:o},t,n&&h.createElement(Wb,null)))));zn.displayName="Link";F.div(({theme:e})=>({fontSize:`${e.typography.size.s2}px`,lineHeight:"1.6",h1:{fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},h2:{fontSize:`${e.typography.size.m2}px`,borderBottom:`1px solid ${e.appBorderColor}`},h3:{fontSize:`${e.typography.size.m1}px`},h4:{fontSize:`${e.typography.size.s3}px`},h5:{fontSize:`${e.typography.size.s2}px`},h6:{fontSize:`${e.typography.size.s2}px`,color:e.color.dark},"pre:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"pre pre, pre.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px"},"pre pre code, pre.prismjs code":{color:"inherit",fontSize:"inherit"},"pre code":{margin:0,padding:0,whiteSpace:"pre",border:"none",background:"transparent"},"pre code, pre tt":{backgroundColor:"transparent",border:"none"},"body > *:first-of-type":{marginTop:"0 !important"},"body > *:last-child":{marginBottom:"0 !important"},a:{color:e.color.secondary,textDecoration:"underline",textDecorationThickness:"0.03125rem",textUnderlineOffset:"0.11em","& code":{color:"inherit",textDecoration:"underline",textDecorationThickness:"0.03125rem",paddingLeft:0,paddingRight:0,"&::before":{content:'"\\00a0"',fontSize:"0.5em"},"&::after":{content:'"\\00a0"',fontSize:"0.5em"}}},"a.absent":{color:"#cc0000"},"a.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0,textDecoration:"none"},"&.anchor:hover, &.anchor:focus":{textDecoration:"underline"},"h1, h2, h3, h4, h5, h6":{margin:"20px 0 10px",padding:0,cursor:"text",position:"relative","&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& tt, & code":{fontSize:"inherit"}},"h1:first-of-type + h2":{marginTop:0,paddingTop:0},"p, blockquote, ul, ol, dl, li, table, pre":{margin:"15px 0"},hr:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},"body > h1:first-of-type, body > h2:first-of-type, body > h3:first-of-type, body > h4:first-of-type, body > h5:first-of-type, body > h6:first-of-type":{marginTop:0,paddingTop:0},"body > h1:first-of-type + h2":{marginTop:0,paddingTop:0},"a:first-of-type h1, a:first-of-type h2, a:first-of-type h3, a:first-of-type h4, a:first-of-type h5, a:first-of-type h6":{marginTop:0,paddingTop:0},"h1 p, h2 p, h3 p, h4 p, h5 p, h6 p":{marginTop:0},"li p.first":{display:"inline-block"},"ul, ol":{paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},dl:{padding:0},"dl dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",margin:"0 0 15px",padding:"0 15px","&:first-of-type":{padding:0},"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},blockquote:{borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},table:{padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:"white",margin:0,padding:0,"& th":{fontWeight:"bold",border:`1px solid ${e.appBorderColor}`,textAlign:"left",margin:0,padding:"6px 13px"},"& td":{border:`1px solid ${e.appBorderColor}`,textAlign:"left",margin:0,padding:"6px 13px"},"&:nth-of-type(2n)":{backgroundColor:e.color.lighter},"& th :first-of-type, & td :first-of-type":{marginTop:0},"& th :last-child, & td :last-child":{marginBottom:0}}},img:{maxWidth:"100%"},"span.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"span.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"span.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"span.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"span.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}},"code, tt":{margin:"0 2px",padding:"0 5px",whiteSpace:"nowrap",border:`1px solid ${e.color.mediumlight}`,backgroundColor:e.color.lighter,borderRadius:3,color:e.base==="dark"?e.color.darkest:e.color.dark}}));const{global:I8}=__STORYBOOK_MODULE_GLOBAL__;var{document:bo,window:Xc}=I8;async function L8(e){try{await Xc.top?.navigator.clipboard.writeText(e)}catch{await Xc.navigator.clipboard.writeText(e)}}async function k8(e){let t=bo.createElement("TEXTAREA"),r=bo.activeElement;t.value=e,bo.body.appendChild(t),t.select(),bo.execCommand("copy"),bo.body.removeChild(t),r.focus()}function N8(){return Xc.navigator?.clipboard?L8:k8}const{deprecate:Jc}=__STORYBOOK_MODULE_CLIENT_LOGGER__;function Ym(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function M8(...e){return t=>{let r=!1,n=e.map(o=>{let a=Ym(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){let a=n[o];typeof a=="function"?a():Ym(e[o],null)}}}}var B8=Symbol.for("react.lazy"),Di=DC[" use ".trim().toString()];function j8(e){return typeof e=="object"&&e!==null&&"then"in e}function xv(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===B8&&"_payload"in e&&j8(e._payload)}function H8(e){let t=z8(e),r=p.forwardRef((n,o)=>{let{children:a,...i}=n;xv(a)&&typeof Di=="function"&&(a=Di(a._payload));let l=p.Children.toArray(a),s=l.find(G8);if(s){let u=s.props.children,c=l.map(d=>d===s?p.Children.count(u)>1?p.Children.only(null):p.isValidElement(u)?u.props.children:null:d);return ae.jsx(t,{...i,ref:o,children:p.isValidElement(u)?p.cloneElement(u,void 0,c):null})}return ae.jsx(t,{...i,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}var U8=H8("Slot");function z8(e){let t=p.forwardRef((r,n)=>{let{children:o,...a}=r;if(xv(o)&&typeof Di=="function"&&(o=Di(o._payload)),p.isValidElement(o)){let i=V8(o),l=W8(a,o.props);return o.type!==p.Fragment&&(l.ref=n?M8(n,i):i),p.cloneElement(o,l)}return p.Children.count(o)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var K8=Symbol("radix.slottable");function G8(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===K8}function W8(e,t){let r={...t};for(let n in t){let o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...i)=>{let l=a(...i);return o(...i),l}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function V8(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 q8=F.div(({theme:e})=>({padding:"2px 6px",lineHeight:"16px",fontSize:10,fontWeight:e.typography.weight.bold,color:e.color.lightest,boxShadow:"0 0 5px 0 rgba(0, 0, 0, 0.3)",borderRadius:4,whiteSpace:"nowrap",pointerEvents:"none",zIndex:-1,background:e.base==="light"?"rgba(60, 60, 60, 0.9)":"rgba(0, 0, 0, 0.95)"})),$v=({note:e,...t})=>h.createElement(q8,{...t},e);const{deprecate:Y8}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var ce=typeof document<"u"?h.useLayoutEffect:()=>{};function X8(e){let[t,r]=p.useState(e),n=p.useRef(t),o=p.useRef(null),a=p.useRef(()=>{if(!o.current)return;let l=o.current.next();if(l.done){o.current=null;return}n.current===l.value?a.current():r(l.value)});ce(()=>{n.current=t,o.current&&a.current()});let i=p.useCallback(l=>{o.current=l(n.current),a.current()},[a]);return[t,i]}var wv={prefix:String(Math.round(Math.random()*1e10)),current:0},Cv=h.createContext(wv),J8=h.createContext(!1),Cu=new WeakMap;function Z8(e=!1){let t=p.useContext(Cv),r=p.useRef(null);if(r.current===null&&!e){var n,o;let a=(o=h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0||(n=o.ReactCurrentOwner)===null||n===void 0?void 0:n.current;if(a){let i=Cu.get(a);i==null?Cu.set(a,{id:t.current,state:a.memoizedState}):a.memoizedState!==i.state&&(t.current=i.id,Cu.delete(a))}r.current=++t.current}return r.current}function Q8(e){let t=p.useContext(Cv),r=Z8(!!e),n=`react-aria${t.prefix}`;return e||`${n}-${r}`}function eL(e){let t=h.useId(),[r]=p.useState(hn()),n=r?"react-aria":`react-aria${wv.prefix}`;return e||`${n}-${t}`}var tL=typeof h.useId=="function"?eL:Q8;function rL(){return!1}function nL(){return!0}function oL(e){return()=>{}}function hn(){return typeof h.useSyncExternalStore=="function"?h.useSyncExternalStore(oL,rL,nL):p.useContext(J8)}var aL=!!(typeof window<"u"&&window.document&&window.document.createElement),Dn=new Map,_o;typeof FinalizationRegistry<"u"&&(_o=new FinalizationRegistry(e=>{Dn.delete(e)}));function Ue(e){let[t,r]=p.useState(e),n=p.useRef(null),o=tL(t),a=p.useRef(null);if(_o&&_o.register(a,o),aL){let i=Dn.get(o);i&&!i.includes(n)?i.push(n):Dn.set(o,[n])}return ce(()=>{let i=o;return()=>{_o&&_o.unregister(a),Dn.delete(i)}},[o]),p.useEffect(()=>{let i=n.current;return i&&r(i),()=>{i&&(n.current=null)}}),o}function iL(e,t){if(e===t)return e;let r=Dn.get(e);if(r)return r.forEach(o=>o.current=t),t;let n=Dn.get(t);return n?(n.forEach(o=>o.current=e),e):t}function ui(e=[]){let t=Ue(),[r,n]=X8(t),o=p.useCallback(()=>{n(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,n]);return ce(o,[t,o,...e]),r}function da(...e){return(...t)=>{for(let r of e)typeof r=="function"&&r(...t)}}var de=e=>{var t;return(t=e?.ownerDocument)!==null&&t!==void 0?t:document},xt=e=>e&&"window"in e&&e.window===e?e:de(e).defaultView||window;function Et(e,t){return t&&e?e.contains(t):!1}var ke=(e=document)=>e.activeElement;function _e(e){return e.target}function lL(e,t,r,n){return e.createTreeWalker(t,r,n)}function _v(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=_v(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function sL(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=_v(e))&&(n&&(n+=" "),n+=t);return n}var uL=sL;function te(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let n=e[r];for(let o in n){let a=t[o],i=n[o];typeof a=="function"&&typeof i=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=da(a,i):(o==="className"||o==="UNSAFE_className")&&typeof a=="string"&&typeof i=="string"?t[o]=uL(a,i):o==="id"&&a&&i?t.id=iL(a,i):t[o]=i!==void 0?i:a}}return t}function Mf(...e){return e.length===1&&e[0]?e[0]:t=>{let r=!1,n=e.map(o=>{let a=Xm(o,t);return r||(r=typeof a=="function"),a});if(r)return()=>{n.forEach((o,a)=>{typeof o=="function"?o():Xm(e[a],null)})}}}function Xm(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}var cL=new Set(["id"]),dL=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),fL=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),pL=new Set(["dir","lang","hidden","inert","translate"]),Jm=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),hL=/^(data-.*)$/;function we(e,t={}){let{labelable:r,isLink:n,global:o,events:a=o,propNames:i}=t,l={};for(let s in e)Object.prototype.hasOwnProperty.call(e,s)&&(cL.has(s)||r&&dL.has(s)||n&&fL.has(s)||o&&pL.has(s)||a&&(Jm.has(s)||s.endsWith("Capture")&&Jm.has(s.slice(0,-7)))||i?.has(s)||hL.test(s))&&(l[s]=e[s]);return l}function ot(e){if(gL())e.focus({preventScroll:!0});else{let t=mL(e);e.focus(),yL(t)}}var ka=null;function gL(){if(ka==null){ka=!1;try{document.createElement("div").focus({get preventScroll(){return ka=!0,!0}})}catch{}}return ka}function mL(e){let t=e.parentNode,r=[],n=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==n;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),r}function yL(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}function wl(e){var t;if(typeof window>"u"||window.navigator==null)return!1;let r=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(r)&&r.some(n=>e.test(n.brand))||e.test(window.navigator.userAgent)}function Bf(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function pr(e){let t=null;return()=>(t==null&&(t=e()),t)}var on=pr(function(){return Bf(/^Mac/i)}),bL=pr(function(){return Bf(/^iPhone/i)}),Tv=pr(function(){return Bf(/^iPad/i)||on()&&navigator.maxTouchPoints>1}),Cl=pr(function(){return bL()||Tv()}),EL=pr(function(){return on()||Cl()}),Ov=pr(function(){return wl(/AppleWebKit/i)&&!Av()}),Av=pr(function(){return wl(/Chrome/i)}),jf=pr(function(){return wl(/Android/i)}),vL=pr(function(){return wl(/Firefox/i)}),SL=p.createContext({isNative:!0,open:wL,useHref:e=>e});function _l(){return p.useContext(SL)}function xL(e,t){let r=e.getAttribute("target");return(!r||r==="_self")&&e.origin===location.origin&&!e.hasAttribute("download")&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function an(e,t,r=!0){var n,o;let{metaKey:a,ctrlKey:i,altKey:l,shiftKey:s}=t;vL()&&!((o=window.event)===null||o===void 0||(n=o.type)===null||n===void 0)&&n.startsWith("key")&&e.target==="_blank"&&(on()?a=!0:i=!0);let u=Ov()&&on()&&!Tv()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:a,ctrlKey:i,altKey:l,shiftKey:s}):new MouseEvent("click",{metaKey:a,ctrlKey:i,altKey:l,shiftKey:s,detail:1,bubbles:!0,cancelable:!0});an.isOpening=r,ot(e),e.dispatchEvent(u),an.isOpening=!1}an.isOpening=!1;function $L(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let r=document.createElement("a");r.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(r.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(r.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(r.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(r.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(r.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(r),t(r),e.removeChild(r)}}function wL(e,t){$L(e,r=>an(r,t))}function Rv(e){let t=_l();var r;let n=t.useHref((r=e?.href)!==null&&r!==void 0?r:"");return{href:e?.href?n:void 0,target:e?.target,rel:e?.rel,download:e?.download,ping:e?.ping,referrerPolicy:e?.referrerPolicy}}function CL(e,t,r,n){!t.isNative&&e.currentTarget instanceof HTMLAnchorElement&&e.currentTarget.href&&!e.isDefaultPrevented()&&xL(e.currentTarget,e)&&r&&(e.preventDefault(),t.open(e.currentTarget,e,r,n))}var Cr=new Map,Zc=new Set;function Zm(){if(typeof window>"u")return;function e(n){return"propertyName"in n}let t=n=>{if(!e(n)||!n.target)return;let o=Cr.get(n.target);o||(o=new Set,Cr.set(n.target,o),n.target.addEventListener("transitioncancel",r,{once:!0})),o.add(n.propertyName)},r=n=>{if(!e(n)||!n.target)return;let o=Cr.get(n.target);if(o&&(o.delete(n.propertyName),o.size===0&&(n.target.removeEventListener("transitioncancel",r),Cr.delete(n.target)),Cr.size===0)){for(let a of Zc)a();Zc.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?Zm():document.addEventListener("DOMContentLoaded",Zm));function _L(){for(let[e]of Cr)"isConnected"in e&&!e.isConnected&&Cr.delete(e)}function Dv(e){requestAnimationFrame(()=>{_L(),Cr.size===0?e():Zc.add(e)})}function Tl(){let e=p.useRef(new Map),t=p.useCallback((o,a,i,l)=>{let s=l?.once?(...u)=>{e.current.delete(i),i(...u)}:i;e.current.set(i,{type:a,eventTarget:o,fn:s,options:l}),o.addEventListener(a,s,l)},[]),r=p.useCallback((o,a,i,l)=>{var s;let u=((s=e.current.get(i))===null||s===void 0?void 0:s.fn)||i;o.removeEventListener(a,u,l),e.current.delete(i)},[]),n=p.useCallback(()=>{e.current.forEach((o,a)=>{r(o.eventTarget,o.type,a,o.options)})},[r]);return p.useEffect(()=>n,[n]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:n}}function Ol(e,t){let{id:r,"aria-label":n,"aria-labelledby":o}=e;return r=Ue(r),o&&n?o=[...new Set([r,...o.trim().split(/\s+/)])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!n&&!o&&t&&(n=t),{id:r,"aria-label":n,"aria-labelledby":o}}function Mt(e){let t=p.useRef(null),r=p.useRef(void 0),n=p.useCallback(o=>{if(typeof e=="function"){let a=e,i=a(o);return()=>{typeof i=="function"?i():a(null)}}else if(e)return e.current=o,()=>{e.current=null}},[e]);return p.useMemo(()=>({get current(){return t.current},set current(o){t.current=o,r.current&&(r.current(),r.current=void 0),o!=null&&(r.current=n(o))}}),[n])}var _u,TL=(_u=h.useInsertionEffect)!==null&&_u!==void 0?_u:ce;function Be(e){let t=p.useRef(null);return TL(()=>{t.current=e},[e]),p.useCallback((...r)=>{let n=t.current;return n?.(...r)},[])}function Qm(e,t){let r=p.useRef(!0),n=p.useRef(null);ce(()=>(r.current=!0,()=>{r.current=!1}),[]),ce(()=>{r.current?r.current=!1:(!n.current||t.some((o,a)=>!Object.is(o,n[a])))&&e(),n.current=t},t)}function OL(){return typeof window.ResizeObserver<"u"}function Pi(e){let{ref:t,box:r,onResize:n}=e,o=Be(n);p.useEffect(()=>{let a=t?.current;if(a)if(OL()){let i=new window.ResizeObserver(l=>{l.length&&o()});return i.observe(a,{box:r}),()=>{a&&i.unobserve(a)}}else return window.addEventListener("resize",o,!1),()=>{window.removeEventListener("resize",o,!1)}},[t,r])}function Hf(e,t){ce(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function Kn(e,t){if(!e)return!1;let r=window.getComputedStyle(e),n=/(auto|scroll)/.test(r.overflow+r.overflowX+r.overflowY);return n&&t&&(n=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),n}function Pv(e,t){let r=e;for(Kn(r,t)&&(r=r.parentElement);r&&!Kn(r,t);)r=r.parentElement;return r||document.scrollingElement||document.documentElement}function AL(e,t){let r=[];for(;e&&e!==document.documentElement;)Kn(e,t)&&r.push(e),e=e.parentElement;return r}function wn(e){return on()?e.metaKey:e.ctrlKey}var RL=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Tu(e){return e instanceof HTMLInputElement&&!RL.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}var DL=0,Ou=new Map;function PL(e){let[t,r]=p.useState();return ce(()=>{if(!e)return;let n=Ou.get(e);if(n)r(n.element.id);else{let o=`react-aria-description-${DL++}`;r(o);let a=document.createElement("div");a.id=o,a.style.display="none",a.textContent=e,document.body.appendChild(a),n={refCount:0,element:a},Ou.set(e,n)}return n.refCount++,()=>{n&&--n.refCount===0&&(n.element.remove(),Ou.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function To(e,t,r,n){let o=Be(r),a=r==null;p.useEffect(()=>{if(a||!e.current)return;let i=e.current;return i.addEventListener(t,o,n),()=>{i.removeEventListener(t,o,n)}},[e,t,n,a])}function Fv(e,t){let r=e0(e,t,"left"),n=e0(e,t,"top"),o=t.offsetWidth,a=t.offsetHeight,i=e.scrollLeft,l=e.scrollTop,{borderTopWidth:s,borderLeftWidth:u,scrollPaddingTop:c,scrollPaddingRight:d,scrollPaddingBottom:f,scrollPaddingLeft:g}=getComputedStyle(e),m=i+parseInt(u,10),y=l+parseInt(s,10),E=m+e.clientWidth,b=y+e.clientHeight,v=parseInt(c,10)||0,S=parseInt(f,10)||0,x=parseInt(d,10)||0,O=parseInt(g,10)||0;r<=i+O?i=r-parseInt(u,10)-O:r+o>E-x&&(i+=r+o-E+x),n<=y+v?l=n-parseInt(s,10)-v:n+a>b-S&&(l+=n+a-b+S),e.scrollLeft=i,e.scrollTop=l}function e0(e,t,r){let n=r==="left"?"offsetLeft":"offsetTop",o=0;for(;t.offsetParent&&(o+=t[n],t.offsetParent!==e);){if(t.offsetParent.contains(e)){o-=e[n];break}t=t.offsetParent}return o}function t0(e,t){if(e&&document.contains(e)){let i=document.scrollingElement||document.documentElement,l=window.getComputedStyle(i).overflow==="hidden";if(l){let s=AL(e);l||s.push(i);for(let u of s)Fv(u,e)}else{var r;let{left:s,top:u}=e.getBoundingClientRect();e==null||(r=e.scrollIntoView)===null||r===void 0||r.call(e,{block:"nearest"});let{left:c,top:d}=e.getBoundingClientRect();if(Math.abs(s-c)>1||Math.abs(u-d)>1){var n,o,a;t==null||(o=t.containingElement)===null||o===void 0||(n=o.scrollIntoView)===null||n===void 0||n.call(o,{block:"center",inline:"center"}),(a=e.scrollIntoView)===null||a===void 0||a.call(e,{block:"nearest"})}}}}function Iv(e){return e.pointerType===""&&e.isTrusted?!0:jf()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function FL(e){return!jf()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function r0(e){let t=p.version.split(".");return parseInt(t[0],10)>=19?e:e?"true":void 0}var IL="react-aria-clear-focus",LL="react-aria-focus";function Lv(e,t=!0){let[r,n]=p.useState(!0),o=r&&t;return ce(()=>{if(o&&e.current&&"getAnimations"in e.current)for(let a of e.current.getAnimations())a instanceof CSSTransition&&a.cancel()},[e,o]),Nv(e,o,p.useCallback(()=>n(!1),[])),o}function kv(e,t){let[r,n]=p.useState(t?"open":"closed");switch(r){case"open":t||n("exiting");break;case"closed":case"exiting":t&&n("open");break}let o=r==="exiting";return Nv(e,o,p.useCallback(()=>{n(a=>a==="exiting"?"closed":a)},[])),o}function Nv(e,t,r){ce(()=>{if(t&&e.current){if(!("getAnimations"in e.current)){r();return}let n=e.current.getAnimations();if(n.length===0){r();return}let o=!1;return Promise.all(n.map(a=>a.finished)).then(()=>{o||Ji.flushSync(()=>{r()})}).catch(()=>{}),()=>{o=!0}}},[e,t,r])}var kL=typeof Element<"u"&&"checkVisibility"in Element.prototype;function NL(e){let t=xt(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:r,visibility:n}=e.style,o=r!=="none"&&n!=="hidden"&&n!=="collapse";if(o){let{getComputedStyle:a}=e.ownerDocument.defaultView,{display:i,visibility:l}=a(e);o=i!=="none"&&l!=="hidden"&&l!=="collapse"}return o}function ML(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function Uf(e,t){return kL?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&NL(e)&&ML(e,t)&&(!e.parentElement||Uf(e.parentElement,e))}var zf=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],BL=zf.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";zf.push('[tabindex]:not([tabindex="-1"]):not([disabled])');var jL=zf.join(':not([hidden]):not([tabindex="-1"]),');function Mv(e){return e.matches(BL)&&Uf(e)&&!Bv(e)}function HL(e){return e.matches(jL)&&Uf(e)&&!Bv(e)}function Bv(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}var Au,UL=typeof document<"u"?(Au=h.useInsertionEffect)!==null&&Au!==void 0?Au:h.useLayoutEffect:()=>{};function Al(e,t,r){let[n,o]=p.useState(e||t),a=p.useRef(n),i=p.useRef(e!==void 0),l=e!==void 0;p.useEffect(()=>{i.current,i.current=l},[l]);let s=l?e:n;UL(()=>{a.current=s});let[,u]=p.useReducer(()=>({}),{}),c=p.useCallback((d,...f)=>{let g=typeof d=="function"?d(a.current):d;Object.is(a.current,g)||(a.current=g,o(g),u(),r?.(g,...f))},[r]);return[s,c]}function Vo(e,t=-1/0,r=1/0){return Math.min(Math.max(e,t),r)}function Kf(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function jv(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function Hv(e){let t=p.useRef({isFocused:!1,observer:null});ce(()=>{let n=t.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]);let r=Be(n=>{e?.(n)});return p.useCallback(n=>{if(n.target instanceof HTMLButtonElement||n.target instanceof HTMLInputElement||n.target instanceof HTMLTextAreaElement||n.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=n.target,a=i=>{if(t.current.isFocused=!1,o.disabled){let l=Kf(i);r(l)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",a,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var i;(i=t.current.observer)===null||i===void 0||i.disconnect();let l=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:l})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:l}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[r])}var Fi=!1;function zL(e){for(;e&&!Mv(e);)e=e.parentElement;let t=xt(e),r=t.document.activeElement;if(!r||r===e)return;Fi=!0;let n=!1,o=c=>{(c.target===r||n)&&c.stopImmediatePropagation()},a=c=>{(c.target===r||n)&&(c.stopImmediatePropagation(),!e&&!n&&(n=!0,ot(r),s()))},i=c=>{(c.target===e||n)&&c.stopImmediatePropagation()},l=c=>{(c.target===e||n)&&(c.stopImmediatePropagation(),n||(n=!0,ot(r),s()))};t.addEventListener("blur",o,!0),t.addEventListener("focusout",a,!0),t.addEventListener("focusin",l,!0),t.addEventListener("focus",i,!0);let s=()=>{cancelAnimationFrame(u),t.removeEventListener("blur",o,!0),t.removeEventListener("focusout",a,!0),t.removeEventListener("focusin",l,!0),t.removeEventListener("focus",i,!0),Fi=!1,n=!1},u=requestAnimationFrame(s);return s}var Tn="default",Qc="",ci=new WeakMap;function KL(e){if(Cl()){if(Tn==="default"){let t=de(e);Qc=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Tn="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";ci.set(e,e.style[t]),e.style[t]="none"}}function n0(e){if(Cl()){if(Tn!=="disabled")return;Tn="restoring",setTimeout(()=>{Dv(()=>{if(Tn==="restoring"){let t=de(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=Qc||""),Qc="",Tn="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&ci.has(e)){let t=ci.get(e),r="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[r]==="none"&&(e.style[r]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),ci.delete(e)}}var qo=h.createContext({register:()=>{}});qo.displayName="PressResponderContext";function GL(e,t){return t.get?t.get.call(e):t.value}function Uv(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function WL(e,t){var r=Uv(e,t,"get");return GL(e,r)}function VL(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function qL(e,t,r){VL(e,t),t.set(e,r)}function YL(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}function o0(e,t,r){var n=Uv(e,t,"set");return YL(e,n,r),r}function XL(e){let t=p.useContext(qo);if(t){let{register:r,...n}=t;e=te(n,e),r()}return Hf(t,e.ref),e}var Na=new WeakMap,Ma=class{continuePropagation(){o0(this,Na,!1)}get shouldStopPropagation(){return WL(this,Na)}constructor(e,t,r,n){qL(this,Na,{writable:!0,value:void 0}),o0(this,Na,!0);var o;let a=(o=n?.target)!==null&&o!==void 0?o:r.currentTarget,i=a?.getBoundingClientRect(),l,s=0,u,c=null;r.clientX!=null&&r.clientY!=null&&(u=r.clientX,c=r.clientY),i&&(u!=null&&c!=null?(l=u-i.left,s=c-i.top):(l=i.width/2,s=i.height/2)),this.type=e,this.pointerType=t,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=l,this.y=s}},a0=Symbol("linkClicked"),i0="react-aria-pressable-style",l0="data-react-aria-pressable";function fa(e){let{onPress:t,onPressChange:r,onPressStart:n,onPressEnd:o,onPressUp:a,onClick:i,isDisabled:l,isPressed:s,preventFocusOnPress:u,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:d,ref:f,...g}=XL(e),[m,y]=p.useState(!1),E=p.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:b,removeAllGlobalListeners:v}=Tl(),S=Be((_,N)=>{let B=E.current;if(l||B.didFirePressStart)return!1;let $=!0;if(B.isTriggeringEvent=!0,n){let C=new Ma("pressstart",N,_);n(C),$=C.shouldStopPropagation}return r&&r(!0),B.isTriggeringEvent=!1,B.didFirePressStart=!0,y(!0),$}),x=Be((_,N,B=!0)=>{let $=E.current;if(!$.didFirePressStart)return!1;$.didFirePressStart=!1,$.isTriggeringEvent=!0;let C=!0;if(o){let A=new Ma("pressend",N,_);o(A),C=A.shouldStopPropagation}if(r&&r(!1),y(!1),t&&B&&!l){let A=new Ma("press",N,_);t(A),C&&(C=A.shouldStopPropagation)}return $.isTriggeringEvent=!1,C}),O=Be((_,N)=>{let B=E.current;if(l)return!1;if(a){B.isTriggeringEvent=!0;let $=new Ma("pressup",N,_);return a($),B.isTriggeringEvent=!1,$.shouldStopPropagation}return!0}),w=Be(_=>{let N=E.current;if(N.isPressed&&N.target){N.didFirePressStart&&N.pointerType!=null&&x(kr(N.target,_),N.pointerType,!1),N.isPressed=!1,N.isOverTarget=!1,N.activePointerId=null,N.pointerType=null,v(),d||n0(N.target);for(let B of N.disposables)B();N.disposables=[]}}),T=Be(_=>{c&&w(_)}),R=Be(_=>{l||i?.(_)}),I=Be((_,N)=>{if(!l&&i){let B=new MouseEvent("click",_);jv(B,N),i(Kf(B))}}),P=p.useMemo(()=>{let _=E.current,N={onKeyDown($){if(Ru($.nativeEvent,$.currentTarget)&&Et($.currentTarget,_e($.nativeEvent))){var C;s0(_e($.nativeEvent),$.key)&&$.preventDefault();let A=!0;if(!_.isPressed&&!$.repeat){_.target=$.currentTarget,_.isPressed=!0,_.pointerType="keyboard",A=S($,"keyboard");let D=$.currentTarget,L=M=>{Ru(M,D)&&!M.repeat&&Et(D,_e(M))&&_.target&&O(kr(_.target,M),"keyboard")};b(de($.currentTarget),"keyup",da(L,B),!0)}A&&$.stopPropagation(),$.metaKey&&on()&&((C=_.metaKeyEvents)===null||C===void 0||C.set($.key,$.nativeEvent))}else $.key==="Meta"&&(_.metaKeyEvents=new Map)},onClick($){if(!($&&!Et($.currentTarget,_e($.nativeEvent)))&&$&&$.button===0&&!_.isTriggeringEvent&&!an.isOpening){let C=!0;if(l&&$.preventDefault(),!_.ignoreEmulatedMouseEvents&&!_.isPressed&&(_.pointerType==="virtual"||Iv($.nativeEvent))){let A=S($,"virtual"),D=O($,"virtual"),L=x($,"virtual");R($),C=A&&D&&L}else if(_.isPressed&&_.pointerType!=="keyboard"){let A=_.pointerType||$.nativeEvent.pointerType||"virtual",D=O(kr($.currentTarget,$),A),L=x(kr($.currentTarget,$),A,!0);C=D&&L,_.isOverTarget=!1,R($),w($)}_.ignoreEmulatedMouseEvents=!1,C&&$.stopPropagation()}}},B=$=>{var C;if(_.isPressed&&_.target&&Ru($,_.target)){var A;s0(_e($),$.key)&&$.preventDefault();let L=_e($),M=Et(_.target,_e($));x(kr(_.target,$),"keyboard",M),M&&I($,_.target),v(),$.key!=="Enter"&&Gf(_.target)&&Et(_.target,L)&&!$[a0]&&($[a0]=!0,an(_.target,$,!1)),_.isPressed=!1,(A=_.metaKeyEvents)===null||A===void 0||A.delete($.key)}else if($.key==="Meta"&&!((C=_.metaKeyEvents)===null||C===void 0)&&C.size){var D;let L=_.metaKeyEvents;_.metaKeyEvents=void 0;for(let M of L.values())(D=_.target)===null||D===void 0||D.dispatchEvent(new KeyboardEvent("keyup",M))}};if(typeof PointerEvent<"u"){N.onPointerDown=A=>{if(A.button!==0||!Et(A.currentTarget,_e(A.nativeEvent)))return;if(FL(A.nativeEvent)){_.pointerType="virtual";return}_.pointerType=A.pointerType;let D=!0;if(!_.isPressed){_.isPressed=!0,_.isOverTarget=!0,_.activePointerId=A.pointerId,_.target=A.currentTarget,d||KL(_.target),D=S(A,_.pointerType);let L=_e(A.nativeEvent);"releasePointerCapture"in L&&L.releasePointerCapture(A.pointerId),b(de(A.currentTarget),"pointerup",$,!1),b(de(A.currentTarget),"pointercancel",C,!1)}D&&A.stopPropagation()},N.onMouseDown=A=>{if(Et(A.currentTarget,_e(A.nativeEvent))&&A.button===0){if(u){let D=zL(A.target);D&&_.disposables.push(D)}A.stopPropagation()}},N.onPointerUp=A=>{!Et(A.currentTarget,_e(A.nativeEvent))||_.pointerType==="virtual"||A.button===0&&!_.isPressed&&O(A,_.pointerType||A.pointerType)},N.onPointerEnter=A=>{A.pointerId===_.activePointerId&&_.target&&!_.isOverTarget&&_.pointerType!=null&&(_.isOverTarget=!0,S(kr(_.target,A),_.pointerType))},N.onPointerLeave=A=>{A.pointerId===_.activePointerId&&_.target&&_.isOverTarget&&_.pointerType!=null&&(_.isOverTarget=!1,x(kr(_.target,A),_.pointerType,!1),T(A))};let $=A=>{if(A.pointerId===_.activePointerId&&_.isPressed&&A.button===0&&_.target){if(Et(_.target,_e(A))&&_.pointerType!=null){let D=!1,L=setTimeout(()=>{_.isPressed&&_.target instanceof HTMLElement&&(D?w(A):(ot(_.target),_.target.click()))},80);b(A.currentTarget,"click",()=>D=!0,!0),_.disposables.push(()=>clearTimeout(L))}else w(A);_.isOverTarget=!1}},C=A=>{w(A)};N.onDragStart=A=>{Et(A.currentTarget,_e(A.nativeEvent))&&w(A)}}return N},[b,l,u,v,d,w,T,x,S,O,R,I]);return p.useEffect(()=>{if(!f)return;let _=de(f.current);if(!_||!_.head||_.getElementById(i0))return;let N=_.createElement("style");N.id=i0,N.textContent=`
|
|
655
|
+
@layer {
|
|
656
|
+
[${l0}] {
|
|
657
|
+
touch-action: pan-x pan-y pinch-zoom;
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
`.trim(),_.head.prepend(N)},[f]),p.useEffect(()=>{let _=E.current;return()=>{var N;d||n0((N=_.target)!==null&&N!==void 0?N:void 0);for(let B of _.disposables)B();_.disposables=[]}},[d]),{isPressed:s||m,pressProps:te(g,P,{[l0]:!0})}}function Gf(e){return e.tagName==="A"&&e.hasAttribute("href")}function Ru(e,t){let{key:r,code:n}=e,o=t,a=o.getAttribute("role");return(r==="Enter"||r===" "||r==="Spacebar"||n==="Space")&&!(o instanceof xt(o).HTMLInputElement&&!zv(o,r)||o instanceof xt(o).HTMLTextAreaElement||o.isContentEditable)&&!((a==="link"||!a&&Gf(o))&&r!=="Enter")}function kr(e,t){let r=t.clientX,n=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:r,clientY:n}}function JL(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!Gf(e)}function s0(e,t){return e instanceof HTMLInputElement?!zv(e,t):JL(e)}var ZL=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function zv(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":ZL.has(e.type)}var Tr=null,Yo=new Set,Po=new Map,ln=!1,ed=!1,QL={Tab:!0,Escape:!0};function Wf(e,t){for(let r of Yo)r(e,t)}function e7(e){return!(e.metaKey||!on()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Ii(e){ln=!0,e7(e)&&(Tr="keyboard",Wf("keyboard",e))}function Pn(e){Tr="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(ln=!0,Wf("pointer",e))}function Kv(e){Iv(e)&&(ln=!0,Tr="virtual")}function Gv(e){e.target===window||e.target===document||Fi||!e.isTrusted||(!ln&&!ed&&(Tr="virtual",Wf("virtual",e)),ln=!1,ed=!1)}function Wv(){Fi||(ln=!1,ed=!0)}function Li(e){if(typeof window>"u"||typeof document>"u"||Po.get(xt(e)))return;let t=xt(e),r=de(e),n=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){ln=!0,n.apply(this,arguments)},r.addEventListener("keydown",Ii,!0),r.addEventListener("keyup",Ii,!0),r.addEventListener("click",Kv,!0),t.addEventListener("focus",Gv,!0),t.addEventListener("blur",Wv,!1),typeof PointerEvent<"u"&&(r.addEventListener("pointerdown",Pn,!0),r.addEventListener("pointermove",Pn,!0),r.addEventListener("pointerup",Pn,!0)),t.addEventListener("beforeunload",()=>{Vv(e)},{once:!0}),Po.set(t,{focus:n})}var Vv=(e,t)=>{let r=xt(e),n=de(e);t&&n.removeEventListener("DOMContentLoaded",t),Po.has(r)&&(r.HTMLElement.prototype.focus=Po.get(r).focus,n.removeEventListener("keydown",Ii,!0),n.removeEventListener("keyup",Ii,!0),n.removeEventListener("click",Kv,!0),r.removeEventListener("focus",Gv,!0),r.removeEventListener("blur",Wv,!1),typeof PointerEvent<"u"&&(n.removeEventListener("pointerdown",Pn,!0),n.removeEventListener("pointermove",Pn,!0),n.removeEventListener("pointerup",Pn,!0)),Po.delete(r))};function t7(e){let t=de(e),r;return t.readyState!=="loading"?Li(e):(r=()=>{Li(e)},t.addEventListener("DOMContentLoaded",r)),()=>Vv(e,r)}typeof document<"u"&&t7();function Xo(){return Tr!=="pointer"}function Jo(){return Tr}function r7(){Li();let[e,t]=p.useState(Tr);return p.useEffect(()=>{let r=()=>{t(Tr)};return Yo.add(r),()=>{Yo.delete(r)}},[]),hn()?null:e}var n7=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function o7(e,t,r){let n=de(r?.target),o=typeof window<"u"?xt(r?.target).HTMLInputElement:HTMLInputElement,a=typeof window<"u"?xt(r?.target).HTMLTextAreaElement:HTMLTextAreaElement,i=typeof window<"u"?xt(r?.target).HTMLElement:HTMLElement,l=typeof window<"u"?xt(r?.target).KeyboardEvent:KeyboardEvent;return e=e||n.activeElement instanceof o&&!n7.has(n.activeElement.type)||n.activeElement instanceof a||n.activeElement instanceof i&&n.activeElement.isContentEditable,!(e&&t==="keyboard"&&r instanceof l&&!QL[r.key])}function a7(e,t,r){Li(),p.useEffect(()=>{let n=(o,a)=>{o7(!!r?.isTextInput,o,a)&&e(Xo())};return Yo.add(n),()=>{Yo.delete(n)}},t)}function Or(e){let t=de(e),r=ke(t);if(Jo()==="virtual"){let n=r;Dv(()=>{ke(t)===n&&e.isConnected&&ot(e)})}else ot(e)}function Vf(e){let{isDisabled:t,onFocus:r,onBlur:n,onFocusChange:o}=e,a=p.useCallback(s=>{if(s.target===s.currentTarget)return n&&n(s),o&&o(!1),!0},[n,o]),i=Hv(a),l=p.useCallback(s=>{let u=de(s.target),c=u?ke(u):ke();s.target===s.currentTarget&&c===_e(s.nativeEvent)&&(r&&r(s),o&&o(!0),i(s))},[o,r,i]);return{focusProps:{onFocus:!t&&(r||o||n)?l:void 0,onBlur:!t&&(n||o)?a:void 0}}}function u0(e){if(!e)return;let t=!0;return r=>{let n={...r,preventDefault(){r.preventDefault()},isDefaultPrevented(){return r.isDefaultPrevented()},stopPropagation(){t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}};e(n),t&&r.stopPropagation()}}function qv(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:u0(e.onKeyDown),onKeyUp:u0(e.onKeyUp)}}}var ki=h.createContext(null);function i7(e){let t=p.useContext(ki)||{};Hf(t,e);let{ref:r,...n}=t;return n}var l7=h.forwardRef(function(e,t){let{children:r,...n}=e,o=Mt(t),a={...n,ref:o};return h.createElement(ki.Provider,{value:a},r)});function pa(e,t){let{focusProps:r}=Vf(e),{keyboardProps:n}=qv(e),o=te(r,n),a=i7(t),i=e.isDisabled?{}:a,l=p.useRef(e.autoFocus);p.useEffect(()=>{l.current&&t.current&&Or(t.current),l.current=!1},[t]);let s=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(s=void 0),{focusableProps:te({...o,tabIndex:s},i)}}var s7=p.forwardRef(({children:e,...t},r)=>{r=Mt(r);let{focusableProps:n}=pa(t,r),o=h.Children.only(e);p.useEffect(()=>{},[r,t.isDisabled]);let a=parseInt(h.version,10)<19?o.ref:o.props.ref;return h.cloneElement(o,{...te(n,o.props),ref:Mf(a,r)})}),u7=h.forwardRef(({children:e,...t},r)=>{r=Mt(r);let{pressProps:n}=fa({...t,ref:r}),{focusableProps:o}=pa(t,r),a=h.Children.only(e);p.useEffect(()=>{},[r,t.isDisabled]);let i=parseInt(h.version,10)<19?a.ref:a.props.ref;return h.cloneElement(a,{...te(n,o,a.props),ref:Mf(i,r)})}),c7=h.forwardRef(({children:e,...t},r)=>{let n=p.useRef(!1),o=p.useContext(qo);r=Mt(r||o?.ref);let a=te(o||{},{...t,ref:r,register(){n.current=!0,o&&o.register()}});return Hf(o,r),p.useEffect(()=>{n.current||(n.current=!0)},[]),h.createElement(qo.Provider,{value:a},e)});function d7({children:e}){let t=p.useMemo(()=>({register:()=>{}}),[]);return h.createElement(qo.Provider,{value:t},e)}function qf(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:n,onFocusWithinChange:o}=e,a=p.useRef({isFocusWithin:!1}),{addGlobalListener:i,removeAllGlobalListeners:l}=Tl(),s=p.useCallback(d=>{d.currentTarget.contains(d.target)&&a.current.isFocusWithin&&!d.currentTarget.contains(d.relatedTarget)&&(a.current.isFocusWithin=!1,l(),r&&r(d),o&&o(!1))},[r,o,a,l]),u=Hv(s),c=p.useCallback(d=>{if(!d.currentTarget.contains(d.target))return;let f=de(d.target),g=ke(f);if(!a.current.isFocusWithin&&g===_e(d.nativeEvent)){n&&n(d),o&&o(!0),a.current.isFocusWithin=!0,u(d);let m=d.currentTarget;i(f,"focus",y=>{if(a.current.isFocusWithin&&!Et(m,y.target)){let E=new f.defaultView.FocusEvent("blur",{relatedTarget:y.target});jv(E,m);let b=Kf(E);s(b)}},{capture:!0})}},[n,o,u,i,s]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:c,onBlur:s}}}var td=!1,Ba=0;function f7(){td=!0,setTimeout(()=>{td=!1},50)}function c0(e){e.pointerType==="touch"&&f7()}function p7(){if(!(typeof document>"u"))return Ba===0&&(typeof PointerEvent<"u"&&document.addEventListener("pointerup",c0)),Ba++,()=>{Ba--,!(Ba>0)&&(typeof PointerEvent<"u"&&document.removeEventListener("pointerup",c0))}}function oo(e){let{onHoverStart:t,onHoverChange:r,onHoverEnd:n,isDisabled:o}=e,[a,i]=p.useState(!1),l=p.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;p.useEffect(p7,[]);let{addGlobalListener:s,removeAllGlobalListeners:u}=Tl(),{hoverProps:c,triggerHoverEnd:d}=p.useMemo(()=>{let f=(y,E)=>{if(l.pointerType=E,o||E==="touch"||l.isHovered||!y.currentTarget.contains(y.target))return;l.isHovered=!0;let b=y.currentTarget;l.target=b,s(de(y.target),"pointerover",v=>{l.isHovered&&l.target&&!Et(l.target,v.target)&&g(v,v.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:b,pointerType:E}),r&&r(!0),i(!0)},g=(y,E)=>{let b=l.target;l.pointerType="",l.target=null,!(E==="touch"||!l.isHovered||!b)&&(l.isHovered=!1,u(),n&&n({type:"hoverend",target:b,pointerType:E}),r&&r(!1),i(!1))},m={};return typeof PointerEvent<"u"&&(m.onPointerEnter=y=>{td&&y.pointerType==="mouse"||f(y,y.pointerType)},m.onPointerLeave=y=>{!o&&y.currentTarget.contains(y.target)&&g(y,y.pointerType)}),{hoverProps:m,triggerHoverEnd:g}},[t,r,n,o,l,s,u]);return p.useEffect(()=>{o&&d({currentTarget:l.target},l.pointerType)},[o]),{hoverProps:c,isHovered:a}}function Yv(e){let{ref:t,onInteractOutside:r,isDisabled:n,onInteractOutsideStart:o}=e,a=p.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),i=Be(s=>{r&&d0(s,t)&&(o&&o(s),a.current.isPointerDown=!0)}),l=Be(s=>{r&&r(s)});p.useEffect(()=>{let s=a.current;if(n)return;let u=t.current,c=de(u);if(typeof PointerEvent<"u"){let d=f=>{s.isPointerDown&&d0(f,t)&&l(f),s.isPointerDown=!1};return c.addEventListener("pointerdown",i,!0),c.addEventListener("click",d,!0),()=>{c.removeEventListener("pointerdown",i,!0),c.removeEventListener("click",d,!0)}}},[t,n,i,l])}function d0(e,t){if(e.button>0)return!1;if(e.target){let r=e.target.ownerDocument;if(!r||!r.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current?!e.composedPath().includes(t.current):!1}var h7=500;function g7(e){let{isDisabled:t,onLongPressStart:r,onLongPressEnd:n,onLongPress:o,threshold:a=h7,accessibilityDescription:i}=e,l=p.useRef(void 0),{addGlobalListener:s,removeGlobalListener:u}=Tl(),{pressProps:c}=fa({isDisabled:t,onPressStart(f){if(f.continuePropagation(),(f.pointerType==="mouse"||f.pointerType==="touch")&&(r&&r({...f,type:"longpressstart"}),l.current=setTimeout(()=>{f.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),de(f.target).activeElement!==f.target&&ot(f.target),o&&o({...f,type:"longpress"}),l.current=void 0},a),f.pointerType==="touch")){let g=m=>{m.preventDefault()};s(f.target,"contextmenu",g,{once:!0}),s(window,"pointerup",()=>{setTimeout(()=>{u(f.target,"contextmenu",g)},30)},{once:!0})}},onPressEnd(f){l.current&&clearTimeout(l.current),n&&(f.pointerType==="mouse"||f.pointerType==="touch")&&n({...f,type:"longpressend"})}}),d=PL(o&&!t?i:void 0);return{longPressProps:te(c,d)}}var Ni=Symbol("default");function hr({values:e,children:t}){for(let[r,n]of e)t=h.createElement(r.Provider,{value:n},t);return t}function ht(e){let{className:t,style:r,children:n,defaultClassName:o,defaultChildren:a,defaultStyle:i,values:l}=e;return p.useMemo(()=>{let s,u,c;return typeof t=="function"?s=t({...l,defaultClassName:o}):s=t,typeof r=="function"?u=r({...l,defaultStyle:i||{}}):u=r,typeof n=="function"?c=n({...l,defaultChildren:a}):n==null?c=a:c=n,{className:s??o,style:u||i?{...i,...u}:void 0,children:c??a,"data-rac":""}},[t,r,n,o,a,i,l])}function Yf(e,t){let r=p.useContext(e);if(t===null)return null;if(r&&typeof r=="object"&&"slots"in r&&r.slots){let n=t||Ni;if(!r.slots[n]){let o=new Intl.ListFormat().format(Object.keys(r.slots).map(i=>`"${i}"`)),a=t?`Invalid slot "${t}".`:"A slot prop is required.";throw new Error(`${a} Valid slot names are ${o}.`)}return r.slots[n]}return r}function Xe(e,t,r){let n=Yf(r,e.slot)||{},{ref:o,...a}=n,i=Mt(p.useMemo(()=>Mf(t,o),[t,o])),l=te(a,e);return"style"in a&&a.style&&"style"in e&&e.style&&(typeof a.style=="function"||typeof e.style=="function"?l.style=s=>{let u=typeof a.style=="function"?a.style(s):a.style,c={...s.defaultStyle,...u},d=typeof e.style=="function"?e.style({...s,defaultStyle:c}):e.style;return{...c,...d}}:l.style={...a.style,...e.style}),[l,i]}function Xv(e=!0){let[t,r]=p.useState(e),n=p.useRef(!1),o=p.useCallback(a=>{n.current=!0,r(!!a)},[]);return ce(()=>{n.current||r(!1)},[]),[o,t]}var Xf=p.createContext({placement:"bottom"});p.forwardRef(function(e,t){[e,t]=Xe(e,t,Xf);let r=e.placement,n={position:"absolute",transform:r==="top"||r==="bottom"?"translateX(-50%)":"translateY(-50%)"};r!=null&&(n[r]="100%");let o=ht({...e,defaultClassName:"react-aria-OverlayArrow",values:{placement:r}});o.style&&Object.keys(o.style).forEach(i=>o.style[i]===void 0&&delete o.style[i]);let a=we(e);return h.createElement("div",{...a,...o,style:{...n,...o.style},ref:t,"data-placement":r})});function m7(e,t){let r=we(e,{labelable:!0}),{hoverProps:n}=oo({onHoverStart:()=>t?.open(!0),onHoverEnd:()=>t?.close()});return{tooltipProps:te(r,n,{role:"tooltip"})}}function y7(e,t,r){let{isDisabled:n,trigger:o}=e,a=Ue(),i=p.useRef(!1),l=p.useRef(!1),s=()=>{(i.current||l.current)&&t.open(l.current)},u=b=>{!i.current&&!l.current&&t.close(b)};p.useEffect(()=>{let b=v=>{r&&r.current&&v.key==="Escape"&&(v.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener("keydown",b,!0),()=>{document.removeEventListener("keydown",b,!0)}},[r,t]);let c=()=>{o!=="focus"&&(Jo()==="pointer"?i.current=!0:i.current=!1,s())},d=()=>{o!=="focus"&&(l.current=!1,i.current=!1,u())},f=()=>{l.current=!1,i.current=!1,u(!0)},g=()=>{Xo()&&(l.current=!0,s())},m=()=>{l.current=!1,i.current=!1,u(!0)},{hoverProps:y}=oo({isDisabled:n,onHoverStart:c,onHoverEnd:d}),{focusableProps:E}=pa({isDisabled:n,onFocus:g,onBlur:m},r);return{triggerProps:{"aria-describedby":t.isOpen?a:void 0,...te(E,y,{onPointerDown:f,onKeyDown:f}),tabIndex:void 0},tooltipProps:{id:a}}}var qt={top:"top",bottom:"top",left:"left",right:"left"},Mi={top:"bottom",bottom:"top",left:"right",right:"left"},b7={top:"left",left:"top"},rd={top:"height",left:"width"},Jv={width:"totalWidth",height:"totalHeight"},ja={},mr=typeof document<"u"?window.visualViewport:null;function f0(e){let t=0,r=0,n=0,o=0,a=0,i=0,l={};var s;let u=((s=mr?.scale)!==null&&s!==void 0?s:1)>1;if(e.tagName==="BODY"){let m=document.documentElement;n=m.clientWidth,o=m.clientHeight;var c;t=(c=mr?.width)!==null&&c!==void 0?c:n;var d;r=(d=mr?.height)!==null&&d!==void 0?d:o,l.top=m.scrollTop||e.scrollTop,l.left=m.scrollLeft||e.scrollLeft,mr&&(a=mr.offsetTop,i=mr.offsetLeft)}else({width:t,height:r,top:a,left:i}=Fn(e,!1)),l.top=e.scrollTop,l.left=e.scrollLeft,n=t,o=r;if(Ov()&&(e.tagName==="BODY"||e.tagName==="HTML")&&u){l.top=0,l.left=0;var f;a=(f=mr?.pageTop)!==null&&f!==void 0?f:0;var g;i=(g=mr?.pageLeft)!==null&&g!==void 0?g:0}return{width:t,height:r,totalWidth:n,totalHeight:o,scroll:l,top:a,left:i}}function E7(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function p0(e,t,r,n,o,a,i){var l;let s=(l=o.scroll[e])!==null&&l!==void 0?l:0,u=n[rd[e]],c=n.scroll[qt[e]]+a,d=u+n.scroll[qt[e]]-a,f=t-s+i[e]-n[qt[e]],g=t-s+r+i[e]-n[qt[e]];return f<c?c-f:g>d?Math.max(d-g,c-f):0}function v7(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function h0(e){if(ja[e])return ja[e];let[t,r]=e.split(" "),n=qt[t]||"right",o=b7[n];qt[r]||(r="center");let a=rd[n],i=rd[o];return ja[e]={placement:t,crossPlacement:r,axis:n,crossAxis:o,size:a,crossSize:i},ja[e]}function Du(e,t,r,n,o,a,i,l,s,u){let{placement:c,crossPlacement:d,axis:f,crossAxis:g,size:m,crossSize:y}=n,E={};var b;E[g]=(b=e[g])!==null&&b!==void 0?b:0;var v,S,x,O;d==="center"?E[g]+=(((v=e[y])!==null&&v!==void 0?v:0)-((S=r[y])!==null&&S!==void 0?S:0))/2:d!==g&&(E[g]+=((x=e[y])!==null&&x!==void 0?x:0)-((O=r[y])!==null&&O!==void 0?O:0)),E[g]+=a;let w=e[g]-r[y]+s+u,T=e[g]+e[y]-s-u;if(E[g]=Vo(E[g],w,T),c===f){let R=l?i[m]:t[Jv[m]];E[Mi[f]]=Math.floor(R-e[f]+o)}else E[f]=Math.floor(e[f]+e[m]+o);return E}function S7(e,t,r,n,o,a,i,l){let s=n?r.height:t[Jv.height];var u;let c=e.top!=null?r.top+e.top:r.top+(s-((u=e.bottom)!==null&&u!==void 0?u:0)-i);var d,f,g,m,y,E;let b=l!=="top"?Math.max(0,t.height+t.top+((d=t.scroll.top)!==null&&d!==void 0?d:0)-c-(((f=o.top)!==null&&f!==void 0?f:0)+((g=o.bottom)!==null&&g!==void 0?g:0)+a)):Math.max(0,c+i-(t.top+((m=t.scroll.top)!==null&&m!==void 0?m:0))-(((y=o.top)!==null&&y!==void 0?y:0)+((E=o.bottom)!==null&&E!==void 0?E:0)+a));return Math.min(t.height-a*2,b)}function g0(e,t,r,n,o,a){let{placement:i,axis:l,size:s}=a;var u,c;if(i===l)return Math.max(0,r[l]-e[l]-((u=e.scroll[l])!==null&&u!==void 0?u:0)+t[l]-((c=n[l])!==null&&c!==void 0?c:0)-n[Mi[l]]-o);var d;return Math.max(0,e[s]+e[l]+e.scroll[l]-t[l]-r[l]-r[s]-((d=n[l])!==null&&d!==void 0?d:0)-n[Mi[l]]-o)}function x7(e,t,r,n,o,a,i,l,s,u,c,d,f,g,m,y){let E=h0(e),{size:b,crossAxis:v,crossSize:S,placement:x,crossPlacement:O}=E,w=Du(t,l,r,E,c,d,u,f,m,y),T=c,R=g0(l,u,t,o,a+c,E);if(i&&n[b]>R){let G=h0(`${Mi[x]} ${O}`),Z=Du(t,l,r,G,c,d,u,f,m,y);g0(l,u,t,o,a+c,G)>R&&(E=G,w=Z,T=c)}let I="bottom";E.axis==="top"?E.placement==="top"?I="top":E.placement==="bottom"&&(I="bottom"):E.crossAxis==="top"&&(E.crossPlacement==="top"?I="bottom":E.crossPlacement==="bottom"&&(I="top"));let P=p0(v,w[v],r[S],l,s,a,u);w[v]+=P;let _=S7(w,l,u,f,o,a,r.height,I);g&&g<_&&(_=g),r.height=Math.min(r.height,_),w=Du(t,l,r,E,T,d,u,f,m,y),P=p0(v,w[v],r[S],l,s,a,u),w[v]+=P;let N={},B=t[v]-w[v]-o[qt[v]],$=B+.5*t[S],C=m/2+y;var A,D,L,M;let k=qt[v]==="left"?((A=o.left)!==null&&A!==void 0?A:0)+((D=o.right)!==null&&D!==void 0?D:0):((L=o.top)!==null&&L!==void 0?L:0)+((M=o.bottom)!==null&&M!==void 0?M:0),H=r[S]-k-m/2-y,z=t[v]+m/2-(w[v]+o[qt[v]]),K=t[v]+t[S]-m/2-(w[v]+o[qt[v]]),U=Vo($,z,K);N[v]=Vo(U,C,H),{placement:x,crossPlacement:O}=E,m?B=N[v]:O==="right"?B+=t[S]:O==="center"&&(B+=t[S]/2);let j=x==="left"||x==="top"?r[b]:0,V={x:x==="top"||x==="bottom"?B:j,y:x==="left"||x==="right"?B:j};return{position:w,maxHeight:_,arrowOffsetLeft:N.left,arrowOffsetTop:N.top,placement:x,triggerAnchorPoint:V}}function $7(e){let{placement:t,targetNode:r,overlayNode:n,scrollNode:o,padding:a,shouldFlip:i,boundaryElement:l,offset:s,crossOffset:u,maxHeight:c,arrowSize:d=0,arrowBoundaryOffset:f=0}=e,g=n instanceof HTMLElement?w7(n):document.documentElement,m=g===document.documentElement,y=window.getComputedStyle(g).position,E=!!y&&y!=="static",b=m?Fn(r,!1):m0(r,g,!1);if(!m){let{marginTop:N,marginLeft:B}=window.getComputedStyle(r);b.top+=parseInt(N,10)||0,b.left+=parseInt(B,10)||0}let v=Fn(n,!0),S=v7(n);var x,O;v.width+=((x=S.left)!==null&&x!==void 0?x:0)+((O=S.right)!==null&&O!==void 0?O:0);var w,T;v.height+=((w=S.top)!==null&&w!==void 0?w:0)+((T=S.bottom)!==null&&T!==void 0?T:0);let R=E7(o),I=f0(l),P=f0(g),_=l.tagName==="BODY"?Fn(g,!1):m0(g,l,!1);return g.tagName==="HTML"&&l.tagName==="BODY"&&(P.scroll.top=0,P.scroll.left=0),x7(t,b,v,R,S,a,i,I,P,_,s,u,E,c,d,f)}function Jf(e,t){let{top:r,left:n,width:o,height:a}=e.getBoundingClientRect();return t&&e instanceof e.ownerDocument.defaultView.HTMLElement&&(o=e.offsetWidth,a=e.offsetHeight),{top:r,left:n,width:o,height:a}}function Fn(e,t){let{top:r,left:n,width:o,height:a}=Jf(e,t),{scrollTop:i,scrollLeft:l,clientTop:s,clientLeft:u}=document.documentElement;return{top:r+i-s,left:n+l-u,width:o,height:a}}function m0(e,t,r){let n=window.getComputedStyle(e),o;if(n.position==="fixed")o=Jf(e,r);else{o=Fn(e,r);let a=Fn(t,r),i=window.getComputedStyle(t);a.top+=(parseInt(i.borderTopWidth,10)||0)-t.scrollTop,a.left+=(parseInt(i.borderLeftWidth,10)||0)-t.scrollLeft,o.top-=a.top,o.left-=a.left}return o.top-=parseInt(n.marginTop,10)||0,o.left-=parseInt(n.marginLeft,10)||0,o}function w7(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!y0(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!y0(t);)t=t.parentElement;return t||document.documentElement}function y0(e){let t=window.getComputedStyle(e);return t.transform!=="none"||/transform|perspective/.test(t.willChange)||t.filter!=="none"||t.contain==="paint"||"backdropFilter"in t&&t.backdropFilter!=="none"||"WebkitBackdropFilter"in t&&t.WebkitBackdropFilter!=="none"}var Zv=new WeakMap;function C7(e){let{triggerRef:t,isOpen:r,onClose:n}=e;p.useEffect(()=>{if(!r||n===null)return;let o=a=>{let i=a.target;if(!t.current||i instanceof Node&&!i.contains(t.current)||a.target instanceof HTMLInputElement||a.target instanceof HTMLTextAreaElement)return;let l=n||Zv.get(t.current);l&&l()};return window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o,!0)}},[r,n,t])}var _7=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),T7=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function O7(e){if(Intl.Locale){let r=new Intl.Locale(e).maximize(),n=typeof r.getTextInfo=="function"?r.getTextInfo():r.textInfo;if(n)return n.direction==="rtl";if(r.script)return _7.has(r.script)}let t=e.split("-")[0];return T7.has(t)}var A7=Symbol.for("react-aria.i18n.locale");function Qv(){let e=typeof window<"u"&&window[A7]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:O7(e)?"rtl":"ltr"}}var nd=Qv(),Oo=new Set;function b0(){nd=Qv();for(let e of Oo)e(nd)}function R7(){let e=hn(),[t,r]=p.useState(nd);return p.useEffect(()=>(Oo.size===0&&window.addEventListener("languagechange",b0),Oo.add(r),()=>{Oo.delete(r),Oo.size===0&&window.removeEventListener("languagechange",b0)}),[]),e?{locale:"en-US",direction:"ltr"}:t}var D7=h.createContext(null);function gr(){let e=R7();return p.useContext(D7)||e}var od=function(e,t){return od=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},od(e,t)};function Rl(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");od(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var ue=function(){return ue=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},ue.apply(this,arguments)};function P7(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){if(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))}function Fu(e,t){var r=t&&t.cache?t.cache:B7,n=t&&t.serializer?t.serializer:N7,o=t&&t.strategy?t.strategy:L7;return o(e,{cache:r,serializer:n})}function F7(e){return e==null||typeof e=="number"||typeof e=="boolean"}function I7(e,t,r,n){var o=F7(n)?n:r(n),a=t.get(o);return typeof a>"u"&&(a=e.call(this,n),t.set(o,a)),a}function eS(e,t,r){var n=Array.prototype.slice.call(arguments,3),o=r(n),a=t.get(o);return typeof a>"u"&&(a=e.apply(this,n),t.set(o,a)),a}function tS(e,t,r,n,o){return r.bind(t,e,n,o)}function L7(e,t){var r=e.length===1?I7:eS;return tS(e,this,r,t.cache.create(),t.serializer)}function k7(e,t){return tS(e,this,eS,t.cache.create(),t.serializer)}var N7=function(){return JSON.stringify(arguments)},M7=(function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,r){this.cache[t]=r},e})(),B7={create:function(){return new M7}},Iu={variadic:k7},ie;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(ie||(ie={}));var Se;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(Se||(Se={}));var Gn;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Gn||(Gn={}));function E0(e){return e.type===Se.literal}function j7(e){return e.type===Se.argument}function rS(e){return e.type===Se.number}function nS(e){return e.type===Se.date}function oS(e){return e.type===Se.time}function aS(e){return e.type===Se.select}function iS(e){return e.type===Se.plural}function H7(e){return e.type===Se.pound}function lS(e){return e.type===Se.tag}function sS(e){return!!(e&&typeof e=="object"&&e.type===Gn.number)}function ad(e){return!!(e&&typeof e=="object"&&e.type===Gn.dateTime)}var uS=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,U7=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function z7(e){var t={};return e.replace(U7,function(r){var n=r.length;switch(r[0]){case"G":t.era=n===4?"long":n===5?"narrow":"short";break;case"y":t.year=n===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=n===4?"long":n===5?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var K7=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function G7(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(K7).filter(function(f){return f.length>0}),r=[],n=0,o=t;n<o.length;n++){var a=o[n],i=a.split("/");if(i.length===0)throw new Error("Invalid number skeleton");for(var l=i[0],s=i.slice(1),u=0,c=s;u<c.length;u++){var d=c[u];if(d.length===0)throw new Error("Invalid number skeleton")}r.push({stem:l,options:s})}return r}function W7(e){return e.replace(/^(.*?)-/,"")}var v0=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,cS=/^(@+)?(\+|#+)?[rs]?$/g,V7=/(\*)(0+)|(#+)(0+)|(0+)/g,dS=/^(0+)$/;function S0(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(cS,function(r,n,o){return typeof o!="string"?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):o==="+"?t.minimumSignificantDigits=n.length:n[0]==="#"?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof o=="string"?o.length:0)),""}),t}function fS(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function q7(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if(r==="+!"?(t.signDisplay="always",e=e.slice(2)):r==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!dS.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function x0(e){var t={},r=fS(e);return r||t}function Y7(e){for(var t={},r=0,n=e;r<n.length;r++){var o=n[r];switch(o.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=o.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=W7(o.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=ue(ue(ue({},t),{notation:"scientific"}),o.options.reduce(function(s,u){return ue(ue({},s),x0(u))},{}));continue;case"engineering":t=ue(ue(ue({},t),{notation:"engineering"}),o.options.reduce(function(s,u){return ue(ue({},s),x0(u))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(o.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(o.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(V7,function(s,u,c,d,f,g){if(u)t.minimumIntegerDigits=c.length;else{if(d&&f)throw new Error("We currently do not support maximum integer digits");if(g)throw new Error("We currently do not support exact integer digits")}return""});continue}if(dS.test(o.stem)){t.minimumIntegerDigits=o.stem.length;continue}if(v0.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(v0,function(s,u,c,d,f,g){return c==="*"?t.minimumFractionDigits=u.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:f&&g?(t.minimumFractionDigits=f.length,t.maximumFractionDigits=f.length+g.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var a=o.options[0];a==="w"?t=ue(ue({},t),{trailingZeroDisplay:"stripIfInteger"}):a&&(t=ue(ue({},t),S0(a)));continue}if(cS.test(o.stem)){t=ue(ue({},t),S0(o.stem));continue}var i=fS(o.stem);i&&(t=ue(ue({},t),i));var l=q7(o.stem);l&&(t=ue(ue({},t),l))}return t}var Ha={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function X7(e,t){for(var r="",n=0;n<e.length;n++){var o=e.charAt(n);if(o==="j"){for(var a=0;n+1<e.length&&e.charAt(n+1)===o;)a++,n++;var i=1+(a&1),l=a<2?1:3+(a>>1),s="a",u=J7(t);for((u=="H"||u=="k")&&(l=0);l-- >0;)r+=s;for(;i-- >0;)r=u+r}else o==="J"?r+="H":r+=o}return r}function J7(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r=e.language,n;r!=="root"&&(n=e.maximize().region);var o=Ha[n||""]||Ha[r||""]||Ha["".concat(r,"-001")]||Ha["001"];return o[0]}var Lu,Z7=new RegExp("^".concat(uS.source,"*")),Q7=new RegExp("".concat(uS.source,"*$"));function le(e,t){return{start:e,end:t}}var ek=!!String.prototype.startsWith&&"_a".startsWith("a",1),tk=!!String.fromCodePoint,rk=!!Object.fromEntries,nk=!!String.prototype.codePointAt,ok=!!String.prototype.trimStart,ak=!!String.prototype.trimEnd,ik=!!Number.isSafeInteger,lk=ik?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},id=!0;try{$0=hS("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),id=((Lu=$0.exec("a"))===null||Lu===void 0?void 0:Lu[0])==="a"}catch{id=!1}var $0,w0=ek?(function(e,t,r){return e.startsWith(t,r)}):(function(e,t,r){return e.slice(r,r+t.length)===t}),ld=tk?String.fromCodePoint:(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r="",n=e.length,o=0,a;n>o;){if(a=e[o++],a>1114111)throw RangeError(a+" is not a valid code point");r+=a<65536?String.fromCharCode(a):String.fromCharCode(((a-=65536)>>10)+55296,a%1024+56320)}return r}),C0=rk?Object.fromEntries:(function(e){for(var t={},r=0,n=e;r<n.length;r++){var o=n[r],a=o[0],i=o[1];t[a]=i}return t}),pS=nk?(function(e,t){return e.codePointAt(t)}):(function(e,t){var r=e.length;if(!(t<0||t>=r)){var n=e.charCodeAt(t),o;return n<55296||n>56319||t+1===r||(o=e.charCodeAt(t+1))<56320||o>57343?n:(n-55296<<10)+(o-56320)+65536}}),sk=ok?(function(e){return e.trimStart()}):(function(e){return e.replace(Z7,"")}),uk=ak?(function(e){return e.trimEnd()}):(function(e){return e.replace(Q7,"")});function hS(e,t){return new RegExp(e,t)}var sd;id?(ku=hS("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),sd=function(e,t){var r;ku.lastIndex=t;var n=ku.exec(e);return(r=n[1])!==null&&r!==void 0?r:""}):sd=function(e,t){for(var r=[];;){var n=pS(e,t);if(n===void 0||gS(n)||pk(n))break;r.push(n),t+=n>=65536?2:1}return ld.apply(void 0,r)};var ku,ck=(function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,r,n){for(var o=[];!this.isEOF();){var a=this.char();if(a===123){var i=this.parseArgument(t,n);if(i.err)return i;o.push(i.val)}else{if(a===125&&t>0)break;if(a===35&&(r==="plural"||r==="selectordinal")){var l=this.clonePosition();this.bump(),o.push({type:Se.pound,location:le(l,this.clonePosition())})}else if(a===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(ie.UNMATCHED_CLOSING_TAG,le(this.clonePosition(),this.clonePosition()))}else if(a===60&&!this.ignoreTag&&ud(this.peek()||0)){var i=this.parseTag(t,r);if(i.err)return i;o.push(i.val)}else{var i=this.parseLiteral(t,r);if(i.err)return i;o.push(i.val)}}}return{val:o,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Se.literal,value:"<".concat(o,"/>"),location:le(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var a=this.parseMessage(t+1,r,!0);if(a.err)return a;var i=a.val,l=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!ud(this.char()))return this.error(ie.INVALID_TAG,le(l,this.clonePosition()));var s=this.clonePosition(),u=this.parseTagName();return o!==u?this.error(ie.UNMATCHED_CLOSING_TAG,le(s,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Se.tag,value:o,children:i,location:le(n,this.clonePosition())},err:null}:this.error(ie.INVALID_TAG,le(l,this.clonePosition())))}else return this.error(ie.UNCLOSED_TAG,le(n,this.clonePosition()))}else return this.error(ie.INVALID_TAG,le(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&fk(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),o="";;){var a=this.tryParseQuote(r);if(a){o+=a;continue}var i=this.tryParseUnquoted(t,r);if(i){o+=i;continue}var l=this.tryParseLeftAngleBracket();if(l){o+=l;continue}break}var s=le(n,this.clonePosition());return{val:{type:Se.literal,value:o,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!dk(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(n);this.bump()}return ld.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(r==="plural"||r==="selectordinal")||n===125&&t>0?null:(this.bump(),ld(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(ie.EXPECT_ARGUMENT_CLOSING_BRACE,le(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(ie.EMPTY_ARGUMENT,le(n,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(ie.MALFORMED_ARGUMENT,le(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(ie.EXPECT_ARGUMENT_CLOSING_BRACE,le(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Se.argument,value:o,location:le(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(ie.EXPECT_ARGUMENT_CLOSING_BRACE,le(n,this.clonePosition())):this.parseArgumentOptions(t,r,o,n);default:return this.error(ie.MALFORMED_ARGUMENT,le(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=sd(this.message,r),o=r+n.length;this.bumpTo(o);var a=this.clonePosition(),i=le(t,a);return{value:n,location:i}},e.prototype.parseArgumentOptions=function(t,r,n,o){var a,i=this.clonePosition(),l=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(l){case"":return this.error(ie.EXPECT_ARGUMENT_TYPE,le(i,s));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var f=uk(d.val);if(f.length===0)return this.error(ie.EXPECT_ARGUMENT_STYLE,le(this.clonePosition(),this.clonePosition()));var g=le(c,this.clonePosition());u={style:f,styleLocation:g}}var m=this.tryParseArgumentClose(o);if(m.err)return m;var y=le(o,this.clonePosition());if(u&&w0(u?.style,"::",0)){var E=sk(u.style.slice(2));if(l==="number"){var d=this.parseNumberSkeletonFromString(E,u.styleLocation);return d.err?d:{val:{type:Se.number,value:n,location:y,style:d.val},err:null}}else{if(E.length===0)return this.error(ie.EXPECT_DATE_TIME_SKELETON,y);var b=E;this.locale&&(b=X7(E,this.locale));var f={type:Gn.dateTime,pattern:b,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?z7(b):{}},v=l==="date"?Se.date:Se.time;return{val:{type:v,value:n,location:y,style:f},err:null}}}return{val:{type:l==="number"?Se.number:l==="date"?Se.date:Se.time,value:n,location:y,style:(a=u?.style)!==null&&a!==void 0?a:null},err:null}}case"plural":case"selectordinal":case"select":{var S=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(ie.EXPECT_SELECT_ARGUMENT_OPTIONS,le(S,ue({},S)));this.bumpSpace();var x=this.parseIdentifierIfPossible(),O=0;if(l!=="select"&&x.value==="offset"){if(!this.bumpIf(":"))return this.error(ie.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,le(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(ie.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ie.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),x=this.parseIdentifierIfPossible(),O=d.val}var w=this.tryParsePluralOrSelectOptions(t,l,r,x);if(w.err)return w;var m=this.tryParseArgumentClose(o);if(m.err)return m;var T=le(o,this.clonePosition());return l==="select"?{val:{type:Se.select,value:n,options:C0(w.val),location:T},err:null}:{val:{type:Se.plural,value:n,options:C0(w.val),offset:O,pluralType:l==="plural"?"cardinal":"ordinal",location:T},err:null}}default:return this.error(ie.INVALID_ARGUMENT_TYPE,le(i,s))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(ie.EXPECT_ARGUMENT_CLOSING_BRACE,le(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var o=this.clonePosition();if(!this.bumpUntil("'"))return this.error(ie.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,le(o,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var n=[];try{n=G7(t)}catch{return this.error(ie.INVALID_NUMBER_SKELETON,r)}return{val:{type:Gn.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?Y7(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,o){for(var a,i=!1,l=[],s=new Set,u=o.value,c=o.location;;){if(u.length===0){var d=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var f=this.tryParseDecimalInteger(ie.EXPECT_PLURAL_ARGUMENT_SELECTOR,ie.INVALID_PLURAL_ARGUMENT_SELECTOR);if(f.err)return f;c=le(d,this.clonePosition()),u=this.message.slice(d.offset,this.offset())}else break}if(s.has(u))return this.error(r==="select"?ie.DUPLICATE_SELECT_ARGUMENT_SELECTOR:ie.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);u==="other"&&(i=!0),this.bumpSpace();var g=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?ie.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:ie.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,le(this.clonePosition(),this.clonePosition()));var m=this.parseMessage(t+1,r,n);if(m.err)return m;var y=this.tryParseArgumentClose(g);if(y.err)return y;l.push([u,{value:m.val,location:le(g,this.clonePosition())}]),s.add(u),this.bumpSpace(),a=this.parseIdentifierIfPossible(),u=a.value,c=a.location}return l.length===0?this.error(r==="select"?ie.EXPECT_SELECT_ARGUMENT_SELECTOR:ie.EXPECT_PLURAL_ARGUMENT_SELECTOR,le(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(ie.MISSING_OTHER_CLAUSE,le(this.clonePosition(),this.clonePosition())):{val:l,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,o=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var a=!1,i=0;!this.isEOF();){var l=this.char();if(l>=48&&l<=57)a=!0,i=i*10+(l-48),this.bump();else break}var s=le(o,this.clonePosition());return a?(i*=n,lk(i)?{val:i,err:null}:this.error(r,s)):this.error(t,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=pS(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(w0(this.message,t,this.offset())){for(var r=0;r<t.length;r++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var r=this.offset(),n=this.message.indexOf(t,r);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&gS(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),n=this.message.charCodeAt(r+(t>=65536?2:1));return n??null},e})();function ud(e){return e>=97&&e<=122||e>=65&&e<=90}function dk(e){return ud(e)||e===47}function fk(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function gS(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function pk(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function cd(e){e.forEach(function(t){if(delete t.location,aS(t)||iS(t))for(var r in t.options)delete t.options[r].location,cd(t.options[r].value);else rS(t)&&sS(t.style)||(nS(t)||oS(t))&&ad(t.style)?delete t.style.location:lS(t)&&cd(t.children)})}function hk(e,t){t===void 0&&(t={}),t=ue({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new ck(e,t).parse();if(r.err){var n=SyntaxError(ie[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t?.captureLocation||cd(r.val),r.val}var Wn;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Wn||(Wn={}));var Dl=(function(e){Rl(t,e);function t(r,n,o){var a=e.call(this,r)||this;return a.code=n,a.originalMessage=o,a}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t})(Error),_0=(function(e){Rl(t,e);function t(r,n,o,a){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(o).join('", "'),'"'),Wn.INVALID_VALUE,a)||this}return t})(Dl),gk=(function(e){Rl(t,e);function t(r,n,o){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),Wn.INVALID_VALUE,o)||this}return t})(Dl),mk=(function(e){Rl(t,e);function t(r,n){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(n,'"'),Wn.MISSING_VALUE,n)||this}return t})(Dl),tt;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(tt||(tt={}));function yk(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==tt.literal||r.type!==tt.literal?t.push(r):n.value+=r.value,t},[])}function bk(e){return typeof e=="function"}function di(e,t,r,n,o,a,i){if(e.length===1&&E0(e[0]))return[{type:tt.literal,value:e[0].value}];for(var l=[],s=0,u=e;s<u.length;s++){var c=u[s];if(E0(c)){l.push({type:tt.literal,value:c.value});continue}if(H7(c)){typeof a=="number"&&l.push({type:tt.literal,value:r.getNumberFormat(t).format(a)});continue}var d=c.value;if(!(o&&d in o))throw new mk(d,i);var f=o[d];if(j7(c)){(!f||typeof f=="string"||typeof f=="number")&&(f=typeof f=="string"||typeof f=="number"?String(f):""),l.push({type:typeof f=="string"?tt.literal:tt.object,value:f});continue}if(nS(c)){var g=typeof c.style=="string"?n.date[c.style]:ad(c.style)?c.style.parsedOptions:void 0;l.push({type:tt.literal,value:r.getDateTimeFormat(t,g).format(f)});continue}if(oS(c)){var g=typeof c.style=="string"?n.time[c.style]:ad(c.style)?c.style.parsedOptions:n.time.medium;l.push({type:tt.literal,value:r.getDateTimeFormat(t,g).format(f)});continue}if(rS(c)){var g=typeof c.style=="string"?n.number[c.style]:sS(c.style)?c.style.parsedOptions:void 0;g&&g.scale&&(f=f*(g.scale||1)),l.push({type:tt.literal,value:r.getNumberFormat(t,g).format(f)});continue}if(lS(c)){var m=c.children,y=c.value,E=o[y];if(!bk(E))throw new gk(y,"function",i);var b=di(m,t,r,n,o,a),v=E(b.map(function(O){return O.value}));Array.isArray(v)||(v=[v]),l.push.apply(l,v.map(function(O){return{type:typeof O=="string"?tt.literal:tt.object,value:O}}))}if(aS(c)){var S=c.options[f]||c.options.other;if(!S)throw new _0(c.value,f,Object.keys(c.options),i);l.push.apply(l,di(S.value,t,r,n,o));continue}if(iS(c)){var S=c.options["=".concat(f)];if(!S){if(!Intl.PluralRules)throw new Dl(`Intl.PluralRules is not available in this environment.
|
|
661
|
+
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
662
|
+
`,Wn.MISSING_INTL_API,i);var x=r.getPluralRules(t,{type:c.pluralType}).select(f-(c.offset||0));S=c.options[x]||c.options.other}if(!S)throw new _0(c.value,f,Object.keys(c.options),i);l.push.apply(l,di(S.value,t,r,n,o,f-(c.offset||0)));continue}}return yk(l)}function Ek(e,t){return t?ue(ue(ue({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=ue(ue({},e[n]),t[n]||{}),r},{})):e}function vk(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=Ek(e[n],t[n]),r},ue({},e)):e}function Nu(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function Sk(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Fu(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,Pu([void 0],r,!1)))},{cache:Nu(e.number),strategy:Iu.variadic}),getDateTimeFormat:Fu(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,Pu([void 0],r,!1)))},{cache:Nu(e.dateTime),strategy:Iu.variadic}),getPluralRules:Fu(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,Pu([void 0],r,!1)))},{cache:Nu(e.pluralRules),strategy:Iu.variadic})}}(function(){function e(t,r,n,o){r===void 0&&(r=e.defaultLocale);var a=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(s){var u=a.formatToParts(s);if(u.length===1)return u[0].value;var c=u.reduce(function(d,f){return!d.length||f.type!==tt.literal||typeof d[d.length-1]!="string"?d.push(f.value):d[d.length-1]+=f.value,d},[]);return c.length<=1?c[0]||"":c},this.formatToParts=function(s){return di(a.ast,a.locales,a.formatters,a.formats,s,void 0,a.message)},this.resolvedOptions=function(){var s;return{locale:((s=a.resolvedLocale)===null||s===void 0?void 0:s.toString())||Intl.NumberFormat.supportedLocalesOf(a.locales)[0]}},this.getAst=function(){return a.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var i=o||{};i.formatters;var l=P7(i,["formatters"]);this.ast=e.__parse(t,ue(ue({},l),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=vk(e.formats,n),this.formatters=o&&o.formatters||Sk(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(!(typeof Intl.Locale>"u")){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=hk,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e})();var xk=Symbol.for("react-aria.i18n.locale"),$k=Symbol.for("react-aria.i18n.strings"),Ua,mS=class yS{getStringForLocale(t,r){let n=this.getStringsForLocale(r)[t];if(!n)throw new Error(`Could not find intl message ${t} in ${r} locale`);return n}getStringsForLocale(t){let r=this.strings[t];return r||(r=wk(t,this.strings,this.defaultLocale),this.strings[t]=r),r}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let r=window[xk];if(Ua===void 0){let o=window[$k];if(!o)return null;Ua={};for(let a in o)Ua[a]=new yS({[r]:o[a]},r)}let n=Ua?.[t];if(!n)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return n}constructor(t,r="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,n])=>n)),this.defaultLocale=r}};function wk(e,t,r="en-US"){if(t[e])return t[e];let n=Ck(e);if(t[n])return t[n];for(let o in t)if(o.startsWith(n+"-"))return t[o];return t[r]}function Ck(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}var T0=new Map,O0=new Map,_k=class{format(e,t){let r=this.strings.getStringForLocale(e,this.locale);return typeof r=="function"?r(t,this):r}plural(e,t,r="cardinal"){let n=t["="+e];if(n)return typeof n=="function"?n():n;let o=this.locale+":"+r,a=T0.get(o);a||(a=new Intl.PluralRules(this.locale,{type:r}),T0.set(o,a));let i=a.select(e);return n=t[i]||t.other,typeof n=="function"?n():n}number(e){let t=O0.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),O0.set(this.locale,t)),t.format(e)}select(e,t){let r=e[t]||e.other;return typeof r=="function"?r():r}constructor(e,t){this.locale=e,this.strings=t}},A0=new WeakMap;function Tk(e){let t=A0.get(e);return t||(t=new mS(e),A0.set(e,t)),t}function Ok(e,t){return mS.getGlobalDictionaryForPackage(t)||Tk(e)}function Ak(e,t){let{locale:r}=gr(),n=Ok(e,t);return p.useMemo(()=>new _k(r,n),[r,n])}var Mu=new Map,dd=!1;try{dd=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}var Bi=!1;try{Bi=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}var bS={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}},Rk=class{format(e){let t="";if(!dd&&this.options.signDisplay!=null?t=Pk(this.numberFormatter,this.options.signDisplay,e):t=this.numberFormatter.format(e),this.options.style==="unit"&&!Bi){var r;let{unit:n,unitDisplay:o="short",locale:a}=this.resolvedOptions();if(!n)return t;let i=(r=bS[n])===null||r===void 0?void 0:r[o];t+=i[a]||i.default}return t}formatToParts(e){return this.numberFormatter.formatToParts(e)}formatRange(e,t){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(e,t);if(t<e)throw new RangeError("End date must be >= start date");return`${this.format(e)} – ${this.format(t)}`}formatRangeToParts(e,t){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(e,t);if(t<e)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(e),n=this.numberFormatter.formatToParts(t);return[...r.map(o=>({...o,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...n.map(o=>({...o,source:"endRange"}))]}resolvedOptions(){let e=this.numberFormatter.resolvedOptions();return!dd&&this.options.signDisplay!=null&&(e={...e,signDisplay:this.options.signDisplay}),!Bi&&this.options.style==="unit"&&(e={...e,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),e}constructor(e,t={}){this.numberFormatter=Dk(e,t),this.options=t}};function Dk(e,t={}){let{numberingSystem:r}=t;if(r&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${r}`),t.style==="unit"&&!Bi){var n;let{unit:i,unitDisplay:l="short"}=t;if(!i)throw new Error('unit option must be provided with style: "unit"');if(!(!((n=bS[i])===null||n===void 0)&&n[l]))throw new Error(`Unsupported unit ${i} with unitDisplay = ${l}`);t={...t,style:"decimal"}}let o=e+(t?Object.entries(t).sort((i,l)=>i[0]<l[0]?-1:1).join():"");if(Mu.has(o))return Mu.get(o);let a=new Intl.NumberFormat(e,t);return Mu.set(o,a),a}function Pk(e,t,r){if(t==="auto")return e.format(r);if(t==="never")return e.format(Math.abs(r));{let n=!1;if(t==="always"?n=r>0||Object.is(r,0):t==="exceptZero"&&(Object.is(r,-0)||Object.is(r,0)?r=Math.abs(r):n=r>0),n){let o=e.format(-r),a=e.format(r),i=o.replace(a,"").replace(/\u200e|\u061C/,"");return[...i].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),o.replace(a,"!!!").replace(i,"+").replace("!!!",a)}else return e.format(r)}}function Fk(e={}){let{locale:t}=gr();return p.useMemo(()=>new Rk(t,e),[t,e])}var Bu=new Map;function Ik(e){let{locale:t}=gr(),r=t+(e?Object.entries(e).sort((o,a)=>o[0]<a[0]?-1:1).join():"");if(Bu.has(r))return Bu.get(r);let n=new Intl.Collator(t,e);return Bu.set(r,n),n}var Nr=typeof document<"u"?window.visualViewport:null;function Zf(e){let{direction:t}=gr(),{arrowSize:r,targetRef:n,overlayRef:o,arrowRef:a,scrollRef:i=o,placement:l="bottom",containerPadding:s=12,shouldFlip:u=!0,boundaryElement:c=typeof document<"u"?document.body:null,offset:d=0,crossOffset:f=0,shouldUpdatePosition:g=!0,isOpen:m=!0,onClose:y,maxHeight:E,arrowBoundaryOffset:b=0}=e,[v,S]=p.useState(null),x=[g,l,o.current,n.current,a?.current,i.current,s,u,c,d,f,m,t,E,b,r],O=p.useRef(Nr?.scale);p.useEffect(()=>{m&&(O.current=Nr?.scale)},[m]);let w=p.useCallback(()=>{if(g===!1||!m||!o.current||!n.current||!c||Nr?.scale!==O.current)return;let N=null;if(i.current&&i.current.contains(document.activeElement)){var B;let k=(B=document.activeElement)===null||B===void 0?void 0:B.getBoundingClientRect(),H=i.current.getBoundingClientRect();var $;if(N={type:"top",offset:(($=k?.top)!==null&&$!==void 0?$:0)-H.top},N.offset>H.height/2){N.type="bottom";var C;N.offset=((C=k?.bottom)!==null&&C!==void 0?C:0)-H.bottom}}let A=o.current;if(!E&&o.current){var D;A.style.top="0px",A.style.bottom="";var L;A.style.maxHeight=((L=(D=window.visualViewport)===null||D===void 0?void 0:D.height)!==null&&L!==void 0?L:window.innerHeight)+"px"}let M=$7({placement:kk(l,t),overlayNode:o.current,targetNode:n.current,scrollNode:i.current||o.current,padding:s,shouldFlip:u,boundaryElement:c,offset:d,crossOffset:f,maxHeight:E,arrowSize:r??(a?.current?Jf(a.current,!0).width:0),arrowBoundaryOffset:b});if(M.position){if(A.style.top="",A.style.bottom="",A.style.left="",A.style.right="",Object.keys(M.position).forEach(k=>A.style[k]=M.position[k]+"px"),A.style.maxHeight=M.maxHeight!=null?M.maxHeight+"px":"",N&&document.activeElement&&i.current){let k=document.activeElement.getBoundingClientRect(),H=i.current.getBoundingClientRect(),z=k[N.type]-H[N.type];i.current.scrollTop+=z-N.offset}S(M)}},x);ce(w,x),Lk(w),Pi({ref:o,onResize:w}),Pi({ref:n,onResize:w});let T=p.useRef(!1);ce(()=>{let N,B=()=>{T.current=!0,clearTimeout(N),N=setTimeout(()=>{T.current=!1},500),w()},$=()=>{T.current&&B()};return Nr?.addEventListener("resize",B),Nr?.addEventListener("scroll",$),()=>{Nr?.removeEventListener("resize",B),Nr?.removeEventListener("scroll",$)}},[w]);let R=p.useCallback(()=>{T.current||y?.()},[y,T]);C7({triggerRef:n,isOpen:m,onClose:y&&R});var I,P,_;return{overlayProps:{style:{position:v?"absolute":"fixed",top:v?void 0:0,left:v?void 0:0,zIndex:1e5,...v?.position,maxHeight:(I=v?.maxHeight)!==null&&I!==void 0?I:"100vh"}},placement:(P=v?.placement)!==null&&P!==void 0?P:null,triggerAnchorPoint:(_=v?.triggerAnchorPoint)!==null&&_!==void 0?_:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:v?.arrowOffsetLeft,top:v?.arrowOffsetTop}},updatePosition:w}}function Lk(e){ce(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function kk(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}var R0=h.createContext(null),fd="react-aria-focus-scope-restore",me=null;function Qf(e){let{children:t,contain:r,restoreFocus:n,autoFocus:o}=e,a=p.useRef(null),i=p.useRef(null),l=p.useRef([]),{parentNode:s}=p.useContext(R0)||{},u=p.useMemo(()=>new hd({scopeRef:l}),[l]);ce(()=>{let f=s||Te.root;if(Te.getTreeNode(f.scopeRef)&&me&&!ji(me,f.scopeRef)){let g=Te.getTreeNode(me);g&&(f=g)}f.addChild(u),Te.addNode(u)},[u,s]),ce(()=>{let f=Te.getTreeNode(l);f&&(f.contain=!!r)},[r]),ce(()=>{var f;let g=(f=a.current)===null||f===void 0?void 0:f.nextSibling,m=[],y=E=>E.stopPropagation();for(;g&&g!==i.current;)m.push(g),g.addEventListener(fd,y),g=g.nextSibling;return l.current=m,()=>{for(let E of m)E.removeEventListener(fd,y)}},[t]),Uk(l,n,r),Bk(l,r),zk(l,n,r),Hk(l,o),p.useEffect(()=>{let f=ke(de(l.current?l.current[0]:void 0)),g=null;if(wt(f,l.current)){for(let m of Te.traverse())m.scopeRef&&wt(f,m.scopeRef.current)&&(g=m);g===Te.getTreeNode(l)&&(me=g.scopeRef)}},[l]),ce(()=>()=>{var f,g,m;let y=(m=(g=Te.getTreeNode(l))===null||g===void 0||(f=g.parent)===null||f===void 0?void 0:f.scopeRef)!==null&&m!==void 0?m:null;(l===me||ji(l,me))&&(!y||Te.getTreeNode(y))&&(me=y),Te.removeTreeNode(l)},[l]);let c=p.useMemo(()=>Nk(l),[]),d=p.useMemo(()=>({focusManager:c,parentNode:u}),[u,c]);return h.createElement(R0.Provider,{value:d},h.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:a}),t,h.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:i}))}function Nk(e){return{focusNext(t={}){let r=e.current,{from:n,tabbable:o,wrap:a,accept:i}=t;var l;let s=n||ke(de((l=r[0])!==null&&l!==void 0?l:void 0)),u=r[0].previousElementSibling,c=Yr(r),d=it(c,{tabbable:o,accept:i},r);d.currentNode=wt(s,r)?s:u;let f=d.nextNode();return!f&&a&&(d.currentNode=u,f=d.nextNode()),f&&at(f,!0),f},focusPrevious(t={}){let r=e.current,{from:n,tabbable:o,wrap:a,accept:i}=t;var l;let s=n||ke(de((l=r[0])!==null&&l!==void 0?l:void 0)),u=r[r.length-1].nextElementSibling,c=Yr(r),d=it(c,{tabbable:o,accept:i},r);d.currentNode=wt(s,r)?s:u;let f=d.previousNode();return!f&&a&&(d.currentNode=u,f=d.previousNode()),f&&at(f,!0),f},focusFirst(t={}){let r=e.current,{tabbable:n,accept:o}=t,a=Yr(r),i=it(a,{tabbable:n,accept:o},r);i.currentNode=r[0].previousElementSibling;let l=i.nextNode();return l&&at(l,!0),l},focusLast(t={}){let r=e.current,{tabbable:n,accept:o}=t,a=Yr(r),i=it(a,{tabbable:n,accept:o},r);i.currentNode=r[r.length-1].nextElementSibling;let l=i.previousNode();return l&&at(l,!0),l}}}function Yr(e){return e[0].parentElement}function Ao(e){let t=Te.getTreeNode(me);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function Mk(e){if(e.checked)return!0;let t=[];if(!e.form)t=[...de(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)].filter(o=>!o.form);else{var r,n;t=[...((n=e.form)===null||n===void 0||(r=n.elements)===null||r===void 0?void 0:r.namedItem(e.name))??[]]}return t?!t.some(o=>o.checked):!1}function Bk(e,t){let r=p.useRef(void 0),n=p.useRef(void 0);ce(()=>{let o=e.current;if(!t){n.current&&(cancelAnimationFrame(n.current),n.current=void 0);return}let a=de(o?o[0]:void 0),i=u=>{if(u.key!=="Tab"||u.altKey||u.ctrlKey||u.metaKey||!Ao(e)||u.isComposing)return;let c=ke(a),d=e.current;if(!d||!wt(c,d))return;let f=Yr(d),g=it(f,{tabbable:!0},d);if(!c)return;g.currentNode=c;let m=u.shiftKey?g.previousNode():g.nextNode();m||(g.currentNode=u.shiftKey?d[d.length-1].nextElementSibling:d[0].previousElementSibling,m=u.shiftKey?g.previousNode():g.nextNode()),u.preventDefault(),m&&at(m,!0)},l=u=>{(!me||ji(me,e))&&wt(_e(u),e.current)?(me=e,r.current=_e(u)):Ao(e)&&!_r(_e(u),e)?r.current?r.current.focus():me&&me.current&&pd(me.current):Ao(e)&&(r.current=_e(u))},s=u=>{n.current&&cancelAnimationFrame(n.current),n.current=requestAnimationFrame(()=>{let c=Jo(),d=(c==="virtual"||c===null)&&jf()&&Av(),f=ke(a);if(!d&&f&&Ao(e)&&!_r(f,e)){me=e;let m=_e(u);if(m&&m.isConnected){var g;r.current=m,(g=r.current)===null||g===void 0||g.focus()}else me.current&&pd(me.current)}})};return a.addEventListener("keydown",i,!1),a.addEventListener("focusin",l,!1),o?.forEach(u=>u.addEventListener("focusin",l,!1)),o?.forEach(u=>u.addEventListener("focusout",s,!1)),()=>{a.removeEventListener("keydown",i,!1),a.removeEventListener("focusin",l,!1),o?.forEach(u=>u.removeEventListener("focusin",l,!1)),o?.forEach(u=>u.removeEventListener("focusout",s,!1))}},[e,t]),ce(()=>()=>{n.current&&cancelAnimationFrame(n.current)},[n])}function ES(e){return _r(e)}function wt(e,t){return!e||!t?!1:t.some(r=>r.contains(e))}function _r(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:r}of Te.traverse(Te.getTreeNode(t)))if(r&&wt(e,r.current))return!0;return!1}function jk(e){return _r(e,me)}function ji(e,t){var r;let n=(r=Te.getTreeNode(t))===null||r===void 0?void 0:r.parent;for(;n;){if(n.scopeRef===e)return!0;n=n.parent}return!1}function at(e,t=!1){if(e!=null&&!t)try{Or(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function vS(e,t=!0){let r=e[0].previousElementSibling,n=Yr(e),o=it(n,{tabbable:t},e);o.currentNode=r;let a=o.nextNode();return t&&!a&&(n=Yr(e),o=it(n,{tabbable:!1},e),o.currentNode=r,a=o.nextNode()),a}function pd(e,t=!0){at(vS(e,t))}function Hk(e,t){let r=h.useRef(t);p.useEffect(()=>{if(r.current){me=e;let n=de(e.current?e.current[0]:void 0);!wt(ke(n),me.current)&&e.current&&pd(e.current)}r.current=!1},[e])}function Uk(e,t,r){ce(()=>{if(t||r)return;let n=e.current,o=de(n?n[0]:void 0),a=i=>{let l=_e(i);wt(l,e.current)?me=e:ES(l)||(me=null)};return o.addEventListener("focusin",a,!1),n?.forEach(i=>i.addEventListener("focusin",a,!1)),()=>{o.removeEventListener("focusin",a,!1),n?.forEach(i=>i.removeEventListener("focusin",a,!1))}},[e,t,r])}function D0(e){let t=Te.getTreeNode(me);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return t?.scopeRef===e}function zk(e,t,r){let n=p.useRef(typeof document<"u"?ke(de(e.current?e.current[0]:void 0)):null);ce(()=>{let o=e.current,a=de(o?o[0]:void 0);if(!t||r)return;let i=()=>{(!me||ji(me,e))&&wt(ke(a),e.current)&&(me=e)};return a.addEventListener("focusin",i,!1),o?.forEach(l=>l.addEventListener("focusin",i,!1)),()=>{a.removeEventListener("focusin",i,!1),o?.forEach(l=>l.removeEventListener("focusin",i,!1))}},[e,r]),ce(()=>{let o=de(e.current?e.current[0]:void 0);if(!t)return;let a=i=>{if(i.key!=="Tab"||i.altKey||i.ctrlKey||i.metaKey||!Ao(e)||i.isComposing)return;let l=o.activeElement;if(!_r(l,e)||!D0(e))return;let s=Te.getTreeNode(e);if(!s)return;let u=s.nodeToRestore,c=it(o.body,{tabbable:!0});c.currentNode=l;let d=i.shiftKey?c.previousNode():c.nextNode();if((!u||!u.isConnected||u===o.body)&&(u=void 0,s.nodeToRestore=void 0),(!d||!_r(d,e))&&u){c.currentNode=u;do d=i.shiftKey?c.previousNode():c.nextNode();while(_r(d,e));i.preventDefault(),i.stopPropagation(),d?at(d,!0):ES(u)?at(u,!0):l.blur()}};return r||o.addEventListener("keydown",a,!0),()=>{r||o.removeEventListener("keydown",a,!0)}},[e,t,r]),ce(()=>{let o=de(e.current?e.current[0]:void 0);if(!t)return;let a=Te.getTreeNode(e);if(a){var i;return a.nodeToRestore=(i=n.current)!==null&&i!==void 0?i:void 0,()=>{let l=Te.getTreeNode(e);if(!l)return;let s=l.nodeToRestore,u=ke(o);if(t&&s&&(u&&_r(u,e)||u===o.body&&D0(e))){let c=Te.clone();requestAnimationFrame(()=>{if(o.activeElement===o.body){let d=c.getTreeNode(e);for(;d;){if(d.nodeToRestore&&d.nodeToRestore.isConnected){P0(d.nodeToRestore);return}d=d.parent}for(d=c.getTreeNode(e);d;){if(d.scopeRef&&d.scopeRef.current&&Te.getTreeNode(d.scopeRef)){let f=vS(d.scopeRef.current,!0);P0(f);return}d=d.parent}}})}}}},[e,t])}function P0(e){e.dispatchEvent(new CustomEvent(fd,{bubbles:!0,cancelable:!0}))&&at(e)}function it(e,t,r){let n=t?.tabbable?HL:Mv,o=e?.nodeType===Node.ELEMENT_NODE?e:null,a=de(o),i=lL(a,e||a,NodeFilter.SHOW_ELEMENT,{acceptNode(l){var s;return!(t==null||(s=t.from)===null||s===void 0)&&s.contains(l)||t?.tabbable&&l.tagName==="INPUT"&&l.getAttribute("type")==="radio"&&(!Mk(l)||i.currentNode.tagName==="INPUT"&&i.currentNode.type==="radio"&&i.currentNode.name===l.name)?NodeFilter.FILTER_REJECT:n(l)&&(!r||wt(l,r))&&(!t?.accept||t.accept(l))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t?.from&&(i.currentNode=t.from),i}function Kk(e,t={}){return{focusNext(r={}){let n=e.current;if(!n)return null;let{from:o,tabbable:a=t.tabbable,wrap:i=t.wrap,accept:l=t.accept}=r,s=o||ke(de(n)),u=it(n,{tabbable:a,accept:l});n.contains(s)&&(u.currentNode=s);let c=u.nextNode();return!c&&i&&(u.currentNode=n,c=u.nextNode()),c&&at(c,!0),c},focusPrevious(r=t){let n=e.current;if(!n)return null;let{from:o,tabbable:a=t.tabbable,wrap:i=t.wrap,accept:l=t.accept}=r,s=o||ke(de(n)),u=it(n,{tabbable:a,accept:l});if(n.contains(s))u.currentNode=s;else{let d=ju(u);return d&&at(d,!0),d??null}let c=u.previousNode();if(!c&&i){u.currentNode=n;let d=ju(u);if(!d)return null;c=d}return c&&at(c,!0),c??null},focusFirst(r=t){let n=e.current;if(!n)return null;let{tabbable:o=t.tabbable,accept:a=t.accept}=r,i=it(n,{tabbable:o,accept:a}).nextNode();return i&&at(i,!0),i},focusLast(r=t){let n=e.current;if(!n)return null;let{tabbable:o=t.tabbable,accept:a=t.accept}=r,i=it(n,{tabbable:o,accept:a}),l=ju(i);return l&&at(l,!0),l??null}}}function ju(e){let t,r;do r=e.lastChild(),r&&(t=r);while(r);return t}var Gk=class SS{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,r,n){let o=this.fastMap.get(r??null);if(!o)return;let a=new hd({scopeRef:t});o.addChild(a),a.parent=o,this.fastMap.set(t,a),n&&(a.nodeToRestore=n)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let r=this.fastMap.get(t);if(!r)return;let n=r.parent;for(let a of this.traverse())a!==r&&r.nodeToRestore&&a.nodeToRestore&&r.scopeRef&&r.scopeRef.current&&wt(a.nodeToRestore,r.scopeRef.current)&&(a.nodeToRestore=r.nodeToRestore);let o=r.children;n&&(n.removeChild(r),o.size>0&&o.forEach(a=>n&&n.addChild(a))),this.fastMap.delete(r.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let r of t.children)yield*this.traverse(r)}clone(){var t;let r=new SS;var n;for(let o of this.traverse())r.addTreeNode(o.scopeRef,(n=(t=o.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&n!==void 0?n:null,o.nodeToRestore);return r}constructor(){this.fastMap=new Map,this.root=new hd({scopeRef:null}),this.fastMap.set(null,this.root)}},hd=class{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}},Te=new Gk;function Pl(e={}){let{autoFocus:t=!1,isTextInput:r,within:n}=e,o=p.useRef({isFocused:!1,isFocusVisible:t||Xo()}),[a,i]=p.useState(!1),[l,s]=p.useState(()=>o.current.isFocused&&o.current.isFocusVisible),u=p.useCallback(()=>s(o.current.isFocused&&o.current.isFocusVisible),[]),c=p.useCallback(g=>{o.current.isFocused=g,i(g),u()},[u]);a7(g=>{o.current.isFocusVisible=g,u()},[],{isTextInput:r});let{focusProps:d}=Vf({isDisabled:n,onFocusChange:c}),{focusWithinProps:f}=qf({isDisabled:!n,onFocusWithinChange:c});return{isFocused:a,isFocusVisible:l,focusProps:n?f:d}}function Wk(e,t){let[r,n]=p.useState(!1);return ce(()=>{if(e?.current){let o=()=>{if(e.current){let i=it(e.current,{tabbable:!0});n(!!i.nextNode())}};o();let a=new MutationObserver(o);return a.observe(e.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{a.disconnect()}}}),r}function xS(e){let t=qk(de(e));t!==e&&(t&&Vk(t,e),e&&$S(e,t))}function Vk(e,t){e.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:t}))}function $S(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:t}))}function qk(e){let t=ke(e),r=t?.getAttribute("aria-activedescendant");return r&&e.getElementById(r)||t}var Bt=[];function ep(e,t){let{onClose:r,shouldCloseOnBlur:n,isOpen:o,isDismissable:a=!1,isKeyboardDismissDisabled:i=!1,shouldCloseOnInteractOutside:l}=e;p.useEffect(()=>{if(o&&!Bt.includes(t))return Bt.push(t),()=>{let m=Bt.indexOf(t);m>=0&&Bt.splice(m,1)}},[o,t]);let s=()=>{Bt[Bt.length-1]===t&&r&&r()},u=m=>{(!l||l(m.target))&&Bt[Bt.length-1]===t&&(m.stopPropagation(),m.preventDefault())},c=m=>{(!l||l(m.target))&&(Bt[Bt.length-1]===t&&(m.stopPropagation(),m.preventDefault()),s())},d=m=>{m.key==="Escape"&&!i&&!m.nativeEvent.isComposing&&(m.stopPropagation(),m.preventDefault(),s())};Yv({ref:t,onInteractOutside:a&&o?c:void 0,onInteractOutsideStart:u});let{focusWithinProps:f}=qf({isDisabled:!n,onBlurWithin:m=>{!m.relatedTarget||jk(m.relatedTarget)||(!l||l(m.relatedTarget))&&r?.()}}),g=m=>{m.target===m.currentTarget&&m.preventDefault()};return{overlayProps:{onKeyDown:d,...f},underlayProps:{onPointerDown:g}}}function Yk(e,t,r){let{isOpen:n}=t;p.useEffect(()=>{r&&r.current&&Zv.set(r.current,t.close)});let o,a=Ue();return{triggerProps:{"aria-haspopup":o,"aria-expanded":n,"aria-controls":n?a:void 0,onPress:t.toggle},overlayProps:{id:a}}}var Fo=typeof document<"u"&&window.visualViewport,za=0,Hu;function wS(e={}){let{isDisabled:t}=e;ce(()=>{if(!t)return za++,za===1&&(Cl()?Hu=Jk():Hu=Xk()),()=>{za--,za===0&&Hu()}},[t])}function Xk(){let e=window.innerWidth-document.documentElement.clientWidth;return da(e>0&&("scrollbarGutter"in document.documentElement.style?Uu(document.documentElement,"scrollbarGutter","stable"):Uu(document.documentElement,"paddingRight",`${e}px`)),Uu(document.documentElement,"overflow","hidden"))}function Jk(){let e,t=!1,r=s=>{let u=s.target;e=Kn(u)?u:Pv(u,!0),t=!1;let c=u.ownerDocument.defaultView.getSelection();c&&!c.isCollapsed&&c.containsNode(u,!0)&&(t=!0),"selectionStart"in u&&"selectionEnd"in u&&u.selectionStart<u.selectionEnd&&u.ownerDocument.activeElement===u&&(t=!0)},n=document.createElement("style");n.textContent=`
|
|
663
|
+
@layer {
|
|
664
|
+
* {
|
|
665
|
+
overscroll-behavior: contain;
|
|
666
|
+
}
|
|
667
|
+
}`.trim(),document.head.prepend(n);let o=s=>{if(!(s.touches.length===2||t)){if(!e||e===document.documentElement||e===document.body){s.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&s.preventDefault()}},a=s=>{let u=s.target,c=s.relatedTarget;if(c&&Tu(c))c.focus({preventScroll:!0}),F0(c,Tu(u));else if(!c){var d;((d=u.parentElement)===null||d===void 0?void 0:d.closest("[tabindex]"))?.focus({preventScroll:!0})}},i=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(s){let u=document.activeElement!=null&&Tu(document.activeElement);i.call(this,{...s,preventScroll:!0}),(!s||!s.preventScroll)&&F0(this,u)};let l=da(zu(document,"touchstart",r,{passive:!1,capture:!0}),zu(document,"touchmove",o,{passive:!1,capture:!0}),zu(document,"blur",a,!0));return()=>{l(),n.remove(),HTMLElement.prototype.focus=i}}function Uu(e,t,r){let n=e.style[t];return e.style[t]=r,()=>{e.style[t]=n}}function zu(e,t,r,n){return e.addEventListener(t,r,n),()=>{e.removeEventListener(t,r,n)}}function F0(e,t){t||!Fo?I0(e):Fo.addEventListener("resize",()=>I0(e),{once:!0})}function I0(e){let t=document.scrollingElement||document.documentElement,r=e;for(;r&&r!==t;){let n=Pv(r);if(n!==document.documentElement&&n!==document.body&&n!==r){let o=n.getBoundingClientRect(),a=r.getBoundingClientRect();if(a.top<o.top||a.bottom>o.top+r.clientHeight){let i=o.bottom;Fo&&(i=Math.min(i,Fo.offsetTop+Fo.height));let l=a.top-o.top-((i-o.top)/2-a.height/2);n.scrollTo({top:Math.max(0,Math.min(n.scrollHeight-n.clientHeight,n.scrollTop+l)),behavior:"smooth"})}}r=n.parentElement}}var Zk=p.createContext({});function CS(){var e;return(e=p.useContext(Zk))!==null&&e!==void 0?e:{}}var gd=h.createContext(null);function Qk(e){let{children:t}=e,r=p.useContext(gd),[n,o]=p.useState(0),a=p.useMemo(()=>({parent:r,modalCount:n,addModal(){o(i=>i+1),r&&r.addModal()},removeModal(){o(i=>i-1),r&&r.removeModal()}}),[r,n]);return h.createElement(gd.Provider,{value:a},t)}function eN(){let e=p.useContext(gd);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:void 0}}}function tN(e){let{modalProviderProps:t}=eN();return h.createElement("div",{"data-overlay-container":!0,...e,...t})}function rN(e){return h.createElement(Qk,null,h.createElement(tN,e))}function nN(e){let t=hn(),{portalContainer:r=t?null:document.body,...n}=e,{getContainer:o}=CS();if(!e.portalContainer&&o&&(r=o()),h.useEffect(()=>{if(r?.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[r]),!r)return null;let a=h.createElement(rN,n);return ab.createPortal(a,r)}var _S={};_S={dismiss:"تجاهل"};var TS={};TS={dismiss:"Отхвърляне"};var OS={};OS={dismiss:"Odstranit"};var AS={};AS={dismiss:"Luk"};var RS={};RS={dismiss:"Schließen"};var DS={};DS={dismiss:"Απόρριψη"};var PS={};PS={dismiss:"Dismiss"};var FS={};FS={dismiss:"Descartar"};var IS={};IS={dismiss:"Lõpeta"};var LS={};LS={dismiss:"Hylkää"};var kS={};kS={dismiss:"Rejeter"};var NS={};NS={dismiss:"התעלם"};var MS={};MS={dismiss:"Odbaci"};var BS={};BS={dismiss:"Elutasítás"};var jS={};jS={dismiss:"Ignora"};var HS={};HS={dismiss:"閉じる"};var US={};US={dismiss:"무시"};var zS={};zS={dismiss:"Atmesti"};var KS={};KS={dismiss:"Nerādīt"};var GS={};GS={dismiss:"Lukk"};var WS={};WS={dismiss:"Negeren"};var VS={};VS={dismiss:"Zignoruj"};var qS={};qS={dismiss:"Descartar"};var YS={};YS={dismiss:"Dispensar"};var XS={};XS={dismiss:"Revocare"};var JS={};JS={dismiss:"Пропустить"};var ZS={};ZS={dismiss:"Zrušiť"};var QS={};QS={dismiss:"Opusti"};var ex={};ex={dismiss:"Odbaci"};var tx={};tx={dismiss:"Avvisa"};var rx={};rx={dismiss:"Kapat"};var nx={};nx={dismiss:"Скасувати"};var ox={};ox={dismiss:"取消"};var ax={};ax={dismiss:"關閉"};var ix={};ix={"ar-AE":_S,"bg-BG":TS,"cs-CZ":OS,"da-DK":AS,"de-DE":RS,"el-GR":DS,"en-US":PS,"es-ES":FS,"et-EE":IS,"fi-FI":LS,"fr-FR":kS,"he-IL":NS,"hr-HR":MS,"hu-HU":BS,"it-IT":jS,"ja-JP":HS,"ko-KR":US,"lt-LT":zS,"lv-LV":KS,"nb-NO":GS,"nl-NL":WS,"pl-PL":VS,"pt-BR":qS,"pt-PT":YS,"ro-RO":XS,"ru-RU":JS,"sk-SK":ZS,"sl-SI":QS,"sr-SP":ex,"sv-SE":tx,"tr-TR":rx,"uk-UA":nx,"zh-CN":ox,"zh-TW":ax};var L0={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function oN(e={}){let{style:t,isFocusable:r}=e,[n,o]=p.useState(!1),{focusWithinProps:a}=qf({isDisabled:!r,onFocusWithinChange:l=>o(l)}),i=p.useMemo(()=>n?t:t?{...L0,...t}:L0,[n]);return{visuallyHiddenProps:{...a,style:i}}}function aN(e){let{children:t,elementType:r="div",isFocusable:n,style:o,...a}=e,{visuallyHiddenProps:i}=oN(e);return h.createElement(r,te(a,i),t)}function iN(e){return e&&e.__esModule?e.default:e}function k0(e){let{onDismiss:t,...r}=e,n=Ak(iN(ix),"@react-aria/overlays"),o=Ol(r,n.format("dismiss")),a=()=>{t&&t()};return h.createElement(aN,null,h.createElement("button",{...o,tabIndex:-1,onClick:a,style:{width:1,height:1}}))}var lN=typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype,Eo=new WeakMap,nt=[];function Fl(e,t){let r=xt(e?.[0]),n=t instanceof r.Element?{root:t}:t;var o;let a=(o=n?.root)!==null&&o!==void 0?o:document.body,i=n?.shouldUseInert&&lN,l=new Set(e),s=new Set,u=y=>i&&y instanceof r.HTMLElement?y.inert:y.getAttribute("aria-hidden")==="true",c=(y,E)=>{i&&y instanceof r.HTMLElement?y.inert=E:E?y.setAttribute("aria-hidden","true"):(y.removeAttribute("aria-hidden"),y instanceof r.HTMLElement&&(y.inert=!1))},d=y=>{for(let S of y.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))l.add(S);let E=S=>{if(s.has(S)||l.has(S)||S.parentElement&&s.has(S.parentElement)&&S.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let x of l)if(S.contains(x))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},b=document.createTreeWalker(y,NodeFilter.SHOW_ELEMENT,{acceptNode:E}),v=E(y);if(v===NodeFilter.FILTER_ACCEPT&&f(y),v!==NodeFilter.FILTER_REJECT){let S=b.nextNode();for(;S!=null;)f(S),S=b.nextNode()}},f=y=>{var E;let b=(E=Eo.get(y))!==null&&E!==void 0?E:0;u(y)&&b===0||(b===0&&c(y,!0),s.add(y),Eo.set(y,b+1))};nt.length&&nt[nt.length-1].disconnect(),d(a);let g=new MutationObserver(y=>{for(let E of y)if(E.type==="childList"&&![...l,...s].some(b=>b.contains(E.target)))for(let b of E.addedNodes)(b instanceof HTMLElement||b instanceof SVGElement)&&(b.dataset.liveAnnouncer==="true"||b.dataset.reactAriaTopLayer==="true")?l.add(b):b instanceof Element&&d(b)});g.observe(a,{childList:!0,subtree:!0});let m={visibleNodes:l,hiddenNodes:s,observe(){g.observe(a,{childList:!0,subtree:!0})},disconnect(){g.disconnect()}};return nt.push(m),()=>{g.disconnect();for(let y of s){let E=Eo.get(y);E!=null&&(E===1?(c(y,!1),Eo.delete(y)):Eo.set(y,E-1))}m===nt[nt.length-1]?(nt.pop(),nt.length&&nt[nt.length-1].observe()):nt.splice(nt.indexOf(m),1)}}function sN(e){let t=nt[nt.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}function uN(e,t){let{triggerRef:r,popoverRef:n,groupRef:o,isNonModal:a,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:l,...s}=e,u=s.trigger==="SubmenuTrigger",{overlayProps:c,underlayProps:d}=ep({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!a||u,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:l},o??n),{overlayProps:f,arrowProps:g,placement:m,triggerAnchorPoint:y}=Zf({...s,targetRef:r,overlayRef:n,isOpen:t.isOpen,onClose:a&&!u?t.close:null});return wS({isDisabled:a||!t.isOpen}),p.useEffect(()=>{if(t.isOpen&&n.current){var E,b;return a?sN((E=o?.current)!==null&&E!==void 0?E:n.current):Fl([(b=o?.current)!==null&&b!==void 0?b:n.current],{shouldUseInert:!0})}},[a,t.isOpen,n,o]),{popoverProps:te(c,f),arrowProps:g,underlayProps:d,placement:m,triggerAnchorPoint:y}}var lx=h.createContext(null);function Hi(e){let t=hn(),{portalContainer:r=t?null:document.body,isExiting:n}=e,[o,a]=p.useState(!1),i=p.useMemo(()=>({contain:o,setContain:a}),[o,a]),{getContainer:l}=CS();if(!e.portalContainer&&l&&(r=l()),!r)return null;let s=e.children;return e.disableFocusManagement||(s=h.createElement(Qf,{restoreFocus:!0,contain:(e.shouldContainFocus||o)&&!n},s)),s=h.createElement(lx.Provider,{value:i},h.createElement(d7,null,s)),ab.createPortal(s,r)}function sx(){let e=p.useContext(lx),t=e?.setContain;ce(()=>{t?.(!0)},[t])}function cN(e,t,r){let{overlayProps:n,underlayProps:o}=ep({...e,isOpen:t.isOpen,onClose:t.close},r);return wS({isDisabled:!t.isOpen}),sx(),p.useEffect(()=>{if(t.isOpen&&r.current)return Fl([r.current],{shouldUseInert:!0})},[t.isOpen,r]),{modalProps:te(n),underlayProps:o}}function ha(e){let[t,r]=Al(e.isOpen,e.defaultOpen||!1,e.onOpenChange),n=p.useCallback(()=>{r(!0)},[r]),o=p.useCallback(()=>{r(!1)},[r]),a=p.useCallback(()=>{r(!t)},[r,t]);return{isOpen:t,setOpen:r,open:n,close:o,toggle:a}}var dN=1500,N0=500,Mr={},fN=0,vo=!1,or=null,Br=null;function ux(e={}){let{delay:t=dN,closeDelay:r=N0}=e,{isOpen:n,open:o,close:a}=ha(e),i=p.useMemo(()=>`${++fN}`,[]),l=p.useRef(null),s=p.useRef(a),u=()=>{Mr[i]=f},c=()=>{for(let m in Mr)m!==i&&(Mr[m](!0),delete Mr[m])},d=()=>{l.current&&clearTimeout(l.current),l.current=null,c(),u(),vo=!0,o(),or&&(clearTimeout(or),or=null),Br&&(clearTimeout(Br),Br=null)},f=m=>{m||r<=0?(l.current&&clearTimeout(l.current),l.current=null,s.current()):l.current||(l.current=setTimeout(()=>{l.current=null,s.current()},r)),or&&(clearTimeout(or),or=null),vo&&(Br&&clearTimeout(Br),Br=setTimeout(()=>{delete Mr[i],Br=null,vo=!1},Math.max(N0,r)))},g=()=>{c(),u(),!n&&!or&&!vo?or=setTimeout(()=>{or=null,vo=!0,d()},t):n||d()};return p.useEffect(()=>{s.current=a},[a]),p.useEffect(()=>()=>{l.current&&clearTimeout(l.current),Mr[i]&&delete Mr[i]},[i]),{isOpen:n,open:m=>{!m&&t>0&&!l.current?g():d()},close:f}}var tp=p.createContext(null),cx=p.createContext(null);function pN(e){let t=ux(e),r=p.useRef(null),{triggerProps:n,tooltipProps:o}=y7(e,t,r);return h.createElement(hr,{values:[[tp,t],[cx,{...o,triggerRef:r}]]},h.createElement(l7,{...n,ref:r},e.children))}var hN=p.forwardRef(function({UNSTABLE_portalContainer:e,...t},r){[t,r]=Xe(t,r,cx);let n=p.useContext(tp),o=ux(t),a=t.isOpen!=null||t.defaultOpen!=null||!n?o:n,i=kv(r,a.isOpen)||t.isExiting||!1;return!a.isOpen&&!i?null:h.createElement(nN,{portalContainer:e},h.createElement(gN,{...t,tooltipRef:r,isExiting:i}))});function gN(e){let t=p.useContext(tp),r=p.useRef(null),{overlayProps:n,arrowProps:o,placement:a,triggerAnchorPoint:i}=Zf({placement:e.placement||"top",targetRef:e.triggerRef,overlayRef:e.tooltipRef,arrowRef:r,offset:e.offset,crossOffset:e.crossOffset,isOpen:t.isOpen,arrowBoundaryOffset:e.arrowBoundaryOffset,shouldFlip:e.shouldFlip,containerPadding:e.containerPadding,onClose:()=>t.close(!0)}),l=Lv(e.tooltipRef,!!a)||e.isEntering||!1,s=ht({...e,defaultClassName:"react-aria-Tooltip",values:{placement:a,isEntering:l,isExiting:e.isExiting,state:t}});e=te(e,n);let{tooltipProps:u}=m7(e,t),c=we(e,{global:!0});return h.createElement("div",{...te(c,s,u),ref:e.tooltipRef,style:{...n.style,"--trigger-anchor-point":i?`${i.x}px ${i.y}px`:void 0,...s.style},"data-placement":a??void 0,"data-entering":l||void 0,"data-exiting":e.isExiting||void 0},h.createElement(Xf.Provider,{value:{...o,placement:a,ref:r}},s.children))}var mN=rt(sn(),1),rp=(0,mN.default)(1e3)(e=>e==="left-end"?"left bottom":e==="right-end"?"right bottom":e==="left-start"?"left top":e==="right-start"?"right top":e.replace("-"," "));F.div({width:500,height:500,paddingTop:100,overflowY:"scroll",background:"#eee",position:"relative"});var yN=p.forwardRef((e,t)=>h.createElement("button",{...e,ref:t,style:{width:120,height:50,margin:10}}));yN.displayName="Trigger";var dx=({triggerOnFocusOnly:e=!1,placement:t="top",offset:r=8,tooltip:n,children:o,defaultVisible:a,startOpen:i,delayShow:l=400,delayHide:s=200,visible:u,onVisibleChange:c,...d})=>{let f=rp(t),g=h.Children.only(o);i!==void 0&&Y8("The `startOpen` prop is deprecated. Please use `defaultVisible` instead.");let[m,y]=p.useState(a??i??!1),E=p.useCallback(b=>{y(b),c?.(b)},[c]);return h.createElement(pN,{delay:l,closeDelay:s,isOpen:u??m,onOpenChange:E,trigger:e?"focus":void 0,...d},h.createElement(s7,null,h.cloneElement(g,{"aria-describedby":null})),h.createElement(hN,{"data-testid":"tooltip",placement:f,offset:r,onOpenChange:E,style:{outline:"none"},...d},n))},fx=({children:e,disableAllTooltips:t,shortcut:r,tooltip:n})=>{let o=p.useMemo(()=>{let a=document?.body?.getAttribute("data-shortcuts-enabled")!=="false";if(!(!n&&(!r||!a)))return[n,r&&a&&`[${n6(r)}]`].filter(Boolean).join(" ")},[r,n]);return o?h.createElement(dx,{placement:"top",tooltip:h.createElement($v,{note:o}),visible:t?!1:void 0},e):h.createElement(h.Fragment,null,e)};fx.displayName="InteractiveTooltipWrapper";function bN(e=""){let t=e.toLowerCase().trim().replace(/\s+/g,"-");return{ariaDescriptionAttrs:{"aria-describedby":e?t:void 0},AriaDescription:()=>e?h.createElement("span",{id:t,hidden:!0},e):null}}var be=p.forwardRef(({as:e="button",asChild:t=!1,animation:r="none",size:n="small",variant:o="outline",padding:a="medium",disabled:i=!1,readOnly:l=!1,active:s,onClick:u,ariaLabel:c,ariaDescription:d=void 0,tooltip:f=void 0,shortcut:g=void 0,disableAllTooltips:m=!1,...y},E)=>{let b=t?U8:e,v;!l&&(c===void 0||c==="")&&(v="ariaLabel",Jc(`The 'ariaLabel' prop on 'Button' will become mandatory in Storybook 11. Buttons with text content should set 'ariaLabel={false}' to indicate that they are accessible as-is. Buttons without text content must provide a meaningful 'ariaLabel' for accessibility. The button content is: ${y.children}.`)),s!==void 0&&(v="active",Jc("The `active` prop on `Button` is deprecated and will be removed in Storybook 11. Use specialized components like `ToggleButton` or `Select` instead."));let{ariaDescriptionAttrs:S,AriaDescription:x}=bN(d),O=p.useMemo(()=>g?o6(g):void 0,[g]),[w,T]=p.useState(!1),R=I=>{u&&u(I),r!=="none"&&T(!0)};return p.useEffect(()=>{let I=setTimeout(()=>{w&&T(!1)},1e3);return()=>clearTimeout(I)},[w]),h.createElement(h.Fragment,null,h.createElement(fx,{disableAllTooltips:m,shortcut:g,tooltip:f||(c!==!1?c:void 0)},h.createElement(EN,{"data-deprecated":v,as:b,ref:E,variant:o,size:n,padding:a,$disabled:i||l,"aria-disabled":i||l?"true":void 0,readOnly:l,active:s,animating:w,animation:r,onClick:i||l?void 0:R,"aria-label":!l&&c!==!1?c:void 0,"aria-keyshortcuts":l?void 0:O,...l?{}:S,...y})),h.createElement(x,null))});be.displayName="Button";var EN=F("button",{shouldForwardProp:e=>ll(e)})(({theme:e,variant:t,size:r,$disabled:n,readOnly:o,active:a,animating:i,animation:l="none",padding:s})=>({border:0,cursor:o?"inherit":n?"not-allowed":"pointer",display:"inline-flex",gap:"6px",alignItems:"center",justifyContent:"center",overflow:"hidden",padding:s==="none"?0:s==="small"&&r==="small"?"0 7px":s==="small"&&r==="medium"?"0 9px":r==="small"?"0 10px":r==="medium"?"0 12px":0,height:r==="small"?"28px":"32px",position:"relative",textAlign:"center",textDecoration:"none",transitionProperty:"background, box-shadow",transitionDuration:"150ms",transitionTimingFunction:"ease-out",verticalAlign:"top",whiteSpace:"nowrap",userSelect:"none",opacity:n&&!o?.5:1,margin:0,fontSize:`${e.typography.size.s1}px`,fontWeight:e.typography.weight.bold,lineHeight:"1",background:t==="solid"?e.base==="light"?e.color.secondary:We(.18,e.color.secondary):t==="outline"?e.button.background:t==="ghost"&&a?dr(.93,e.barSelectedColor):"transparent",color:t==="solid"?e.color.lightest:t==="outline"?e.input.color:t==="ghost"&&a?e.base==="light"?We(.1,e.color.secondary):e.color.secondary:t==="ghost"?e.textMutedColor:e.input.color,boxShadow:t==="outline"?`${e.button.border} 0 0 0 1px inset`:"none",borderRadius:e.input.borderRadius,flexShrink:0,...!o&&{"&:hover":{color:t==="ghost"?e.color.secondary:void 0,background:(()=>{let u=e.color.secondary;return t==="solid"&&(u=e.base==="light"?Ja(.1,e.color.secondary):We(.3,e.color.secondary)),t==="outline"&&(u=e.button.background),t==="ghost"?dr(.86,e.color.secondary):e.base==="light"?We(.02,u):Ja(.03,u)})()},"&:active":{color:t==="ghost"?e.color.secondary:void 0,background:(()=>{let u=e.color.secondary;return t==="solid"&&(u=e.color.secondary),t==="outline"&&(u=e.button.background),t==="ghost"?e.background.hoverable:e.base==="light"?We(.02,u):Ja(.03,u)})()},"&:focus-visible":{outline:`2px solid ${tn(e.color.secondary,1)}`,outlineOffset:2,zIndex:"1"},".sb-bar &:focus-visible, .sb-list &:focus-visible":{outlineOffset:0}},"> svg":{flex:"0 0 auto",animation:i&&l!=="none"?`${e.animation[l]} 1000ms ease-out`:""}})),px=p.forwardRef((e,t)=>(Jc("`IconButton` is deprecated and will be removed in Storybook 11, use `Button` instead."),h.createElement(be,{ref:t,...e,"data-deprecated":"IconButton"})));px.displayName="IconButton";var ga=p.forwardRef(({pressed:e,...t},r)=>h.createElement(vN,{role:"switch","aria-checked":e,ref:r,pressed:e,...t}));ga.displayName="ToggleButton";var vN=F(be)(({theme:e,variant:t="outline",pressed:r})=>({...r?{...t==="solid"?{background:e.base==="lighten"?We(.1,e.color.secondary):We(.2,e.color.secondary)}:{},...t==="outline"?{background:dr(.94,e.barSelectedColor),boxShadow:`${e.barSelectedColor} 0 0 0 1px inset`,color:e.barSelectedColor}:{},...t==="ghost"?{background:dr(.93,e.barSelectedColor),color:e.base==="light"?We(.1,e.color.secondary):e.color.secondary}:{}}:{}})),hx=F.li(({active:e,theme:t})=>({display:"flex",alignItems:"center",justifyContent:"space-between",flex:"0 0 auto",overflow:"hidden",minHeight:32,gap:4,fontSize:t.typography.size.s1,fontWeight:e?t.typography.weight.bold:t.typography.weight.regular,color:e?"var(--listbox-item-active-color)":t.color.defaultText,"--listbox-item-active-color":t.base==="light"?We(.1,t.color.secondary):t.color.secondary,"--listbox-item-muted-color":e?"var(--listbox-item-active-color)":t.color.mediumdark,'&[aria-disabled="true"]':{opacity:.5,cursor:"not-allowed"},'&[aria-selected="true"]':{color:"var(--listbox-item-active-color)",fontWeight:t.typography.weight.bold,"--listbox-item-muted-color":"var(--listbox-item-active-color)"},"&:not(:hover, :has(:focus-visible)) :not(input) + input":{position:"absolute",opacity:0},'&[role="option"]':{cursor:"pointer",borderRadius:t.input.borderRadius,outlineOffset:-2,padding:"0 9px",gap:8,"&:hover":{background:dr(.86,t.color.secondary)},"&:focus-visible":{outline:`2px solid ${t.color.secondary}`}},"@supports (interpolate-size: allow-keywords)":{interpolateSize:"allow-keywords",transitionBehavior:"allow-discrete",transitionDuration:"var(--transition-duration, 0.2s)",transitionProperty:"opacity, block-size, content-visibility"},"@media (prefers-reduced-motion: reduce)":{transition:"none"}}),({transitionStatus:e})=>{switch(e){case"preEnter":case"exiting":case"exited":return{opacity:0,blockSize:0,contentVisibility:"hidden"};default:return{opacity:1,blockSize:"auto",contentVisibility:"visible"}}}),SN=F(hx)(({targetId:e})=>({gap:0,[`& [data-target-id="${e}"]`]:{inlineSize:"auto",marginLeft:4,opacity:1,"@supports (interpolate-size: allow-keywords)":{interpolateSize:"allow-keywords",transitionProperty:"inline-size, margin-left, opacity, padding-inline",transitionDuration:"var(--transition-duration, 0.2s)"}},[`&:not(:hover, :has(:focus-visible)) [data-target-id="${e}"]`]:{inlineSize:0,marginLeft:0,opacity:0,paddingInline:0}})),xN=F(be)(({size:e})=>({gap:e==="small"?6:8,"&:focus-visible":{outlineOffset:-2}})),$N=F(ga)({"&:focus-visible":{outlineOffset:-2}}),gx=p.forwardRef(function({padding:e="small",size:t="medium",variant:r="ghost",...n},o){return h.createElement(xN,{...n,variant:r,padding:e,size:t,ref:o})}),wN=p.forwardRef(function({padding:e="small",size:t="medium",variant:r="ghost",...n},o){return h.createElement($N,{...n,variant:r,padding:e,size:t,ref:o})}),mx=F(gx)(({theme:e})=>({height:"auto",minHeight:32,flex:"0 1 100%",textAlign:"start",justifyContent:"space-between",fontWeight:"inherit",color:"inherit","&:hover":{color:"inherit"},"& input:enabled:focus-visible":{outline:"none"},"&:has(input:focus-visible)":{outline:`2px solid ${e.color.secondary}`,outlineOffset:-2}})),CN=e=>h.createElement(mx,{as:"a",...e}),_N=F.div(({theme:e})=>({display:"flex",flexDirection:"column",justifyContent:"center",flexGrow:1,minWidth:0,padding:"8px 0",lineHeight:"16px","& > *":{margin:0,whiteSpace:"normal"},"& > span":{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},"& small":{fontSize:"inherit",color:e.textMutedColor},"&:first-child":{paddingLeft:8},"&:last-child":{paddingRight:8},'button > &:first-child, [role="option"] > &:first-child':{paddingLeft:0},'button > &:last-child, [role="option"] > &:last-child':{paddingRight:0}})),TN=F.div({display:"flex",alignItems:"center",justifyContent:"center",flex:"0 0 14px",width:14,height:14,color:"var(--listbox-item-muted-color)"}),fi=Object.assign(F.ul(({theme:e,onClick:t})=>({listStyle:"none",margin:0,padding:4,cursor:t?"pointer":"default","& + *":{borderTop:`1px solid ${e.appBorderColor}`}})),{Item:hx,HoverItem:SN,Button:gx,Toggle:wN,Action:mx,Link:CN,Text:_N,Icon:TN}),M0=F.div(({collapsed:e=!1})=>({blockSize:e?0:"auto",contentVisibility:e?"hidden":"visible",transform:e?"translateY(-10px)":"translateY(0)",opacity:e?0:1,overflow:"hidden","@supports (interpolate-size: allow-keywords)":{interpolateSize:"allow-keywords",transition:"all var(--transition-duration, 0.2s)",transitionBehavior:"allow-discrete"},"@media (prefers-reduced-motion: reduce)":{transition:"none"}}));Object.assign(function({children:e,summary:t,collapsed:r,disabled:n,initialCollapsed:o,storageKey:a,state:i,...l}){let s=AN({collapsed:r,disabled:n,initialCollapsed:o,storageKey:a}),u=i||s;return h.createElement(h.Fragment,null,typeof t=="function"?t(u):t,h.createElement(M0,{...l,id:u.contentId,collapsed:u.isCollapsed,"aria-hidden":u.isCollapsed},typeof e=="function"?e(u):e))},{Content:M0});var ON=(e,t)=>{let[r,n]=p.useState(()=>{try{return JSON.parse(sessionStorage.getItem(e))??t}catch{return t}});return p.useEffect(()=>{try{e&&sessionStorage.setItem(e,JSON.stringify(r))}catch{}},[e,r]),[r,n]},AN=({collapsed:e,disabled:t,initialCollapsed:r=e,storageKey:n})=>{let[o,a]=ON(n&&`useCollapsible:${n}`,!!r);p.useEffect(()=>{e!==void 0&&a(e)},[e,a]);let i=p.useCallback(s=>{s?.stopPropagation(),t||a(u=>!u)},[t,a]),l=Ue();return{contentId:l,isCollapsed:o,isDisabled:!!t,setCollapsed:a,toggleCollapsed:i,toggleProps:{disabled:t,onClick:i,"aria-controls":l,"aria-expanded":!o}}},RN=Ne({"0%":{opacity:0},"5%":{opacity:1},"25%":{opacity:1},"30%":{opacity:0}}),DN=Ne({"0%":{transform:"rotate(0deg)"},"10%":{transform:"rotate(10deg)"},"40%":{transform:"rotate(170deg)"},"50%":{transform:"rotate(180deg)"},"60%":{transform:"rotate(190deg)"},"90%":{transform:"rotate(350deg)"},"100%":{transform:"rotate(360deg)"}}),PN=Ne({to:{backgroundPositionX:"36%"}}),B0=F.div(({theme:e})=>({borderRadius:e.appBorderRadius,backgroundColor:e.background.content,position:"relative"})),j0=F.div(({animation:e="none",color:t,theme:r})=>({position:"relative",width:"100%",padding:1,overflow:"hidden",backgroundColor:r.background.content,borderRadius:r.appBorderRadius+1,boxShadow:`inset 0 0 0 1px ${e==="none"&&t&&r.color[t]||r.appBorderColor}, var(--card-box-shadow, transparent 0 0)`,transition:"box-shadow 1s","@supports (interpolate-size: allow-keywords)":{interpolateSize:"allow-keywords",transition:"all var(--transition-duration, 0.2s), box-shadow 1s",transitionBehavior:"allow-discrete"},"@media (prefers-reduced-motion: reduce)":{transition:"box-shadow 1s"},"&:before":{content:'""',display:e==="none"?"none":"block",position:"absolute",left:0,top:0,width:"100%",height:"100%",opacity:1,...e==="rainbow"&&{animation:`${PN} 10s infinite linear, ${RN} 60s infinite linear`,backgroundImage:"linear-gradient(45deg,rgb(234, 0, 0),rgb(255, 157, 0),rgb(255, 208, 0),rgb(0, 172, 0),rgb(0, 166, 255),rgb(181, 0, 181), rgb(234, 0, 0),rgb(255, 157, 0),rgb(255, 208, 0),rgb(0, 172, 0),rgb(0, 166, 255),rgb(181, 0, 181))",backgroundSize:"1000%",backgroundPositionX:"100%"},...e==="spin"&&{left:"50%",top:"50%",marginLeft:"calc(max(100vw, 100vh) * -0.5)",marginTop:"calc(max(100vw, 100vh) * -0.5)",height:"max(100vw, 100vh)",width:"max(100vw, 100vh)",animation:`${DN} 3s linear infinite`,backgroundImage:t==="negative"?"conic-gradient(transparent 90deg, #FC521F 150deg, #FFAE00 210deg, transparent 270deg)":"conic-gradient(transparent 90deg, #029CFD 150deg, #37D5D3 210deg, transparent 270deg)"}}}));Object.assign(p.forwardRef(function({outlineAnimation:e="none",outlineColor:t,outlineAttrs:r={},...n},o){return h.createElement(j0,{animation:e,color:t,ref:o,...r},h.createElement(B0,{...n}))}),{Content:B0,Outline:j0});const{deprecate:Ku}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var FN=["preEnter","entering","entered","preExit","exiting","exited","unmounted"],yx=e=>({_s:e,status:FN[e],isEnter:e<3,isMounted:e!==6,isResolved:e===2||e>4}),md=e=>e?6:5,IN=(e,t)=>{switch(e){case 1:case 0:return 2;case 4:case 3:return md(t)}},LN=e=>typeof e=="object"?[e.enter,e.exit]:[e,e],kN=(e,t)=>setTimeout(()=>{isNaN(document.body.offsetTop)||e(t+1)},0),H0=(e,t,r,n,o)=>{clearTimeout(n.current);let a=yx(e);t(a),r.current=a,o&&o({current:a})},NN=({enter:e=!0,exit:t=!0,preEnter:r,preExit:n,timeout:o,initialEntered:a,mountOnEnter:i,unmountOnExit:l,onStateChange:s}={})=>{let[u,c]=p.useState(()=>yx(a?2:md(i))),d=p.useRef(u),f=p.useRef(),[g,m]=LN(o),y=p.useCallback(()=>{let b=IN(d.current._s,l);b&&H0(b,c,d,f,s)},[s,l]),E=p.useCallback(b=>{let v=x=>{switch(H0(x,c,d,f,s),x){case 1:g>=0&&(f.current=setTimeout(y,g));break;case 4:m>=0&&(f.current=setTimeout(y,m));break;case 0:case 3:f.current=kN(v,x);break}},S=d.current.isEnter;typeof b!="boolean"&&(b=!S),b?!S&&v(e?r?0:1:2):S&&v(t?n?3:4:md(l))},[y,s,e,t,r,n,g,m,l]);return[u,E,y]};function MN(e){let t=a=>typeof window<"u"?window.matchMedia(a).matches:!1,[r,n]=p.useState(t(e));function o(){n(t(e))}return p.useEffect(()=>{let a=window.matchMedia(e);return o(),a.addEventListener("change",o),()=>{a.removeEventListener("change",o)}},[e]),r}var bx={};ze(bx,{Actions:()=>QN,Close:()=>Il,CloseButton:()=>qN,Col:()=>_x,Container:()=>wx,Content:()=>YN,Description:()=>ZN,Dialog:()=>VN,Error:()=>e9,ErrorWrapper:()=>Tx,Header:()=>XN,Overlay:()=>$x,Row:()=>Cx,Title:()=>JN});const{deprecate:Ex}=__STORYBOOK_MODULE_CLIENT_LOGGER__;p.createContext(null);p.createContext(null);p.createContext(null);p.createContext(null);p.createContext(null);var vx=p.createContext({}),BN=p.forwardRef(function(e,t){[e,t]=Xe(e,t,vx);let{children:r,level:n=3,className:o,...a}=e,i=`h${n}`;return h.createElement(i,{...a,ref:t,className:o??"react-aria-Heading"},r)}),Sx=p.createContext({}),jN=p.forwardRef(function(e,t){[e,t]=Xe(e,t,Sx);let{elementType:r="span",...n}=e;return h.createElement(r,{className:"react-aria-Text",...n,ref:t})}),xx=Ne({from:{opacity:0},to:{opacity:1}}),HN=Ne({from:{opacity:1},to:{opacity:0}}),UN=Ne({from:{maxHeight:0},to:{}}),zN=Ne({from:{opacity:0,transform:"translate(-50%, -50%) scale(0.9)"},to:{opacity:1,transform:"translate(-50%, -50%) scale(1)"}}),KN=Ne({from:{opacity:1,transform:"translate(-50%, -50%) scale(1)"},to:{opacity:0,transform:"translate(-50%, -50%) scale(0.9)"}}),GN=Ne({from:{opacity:0,maxHeight:"0px"},to:{opacity:1,maxHeight:"80vh"}}),WN=Ne({from:{opacity:1,maxHeight:"80vh"},to:{opacity:0,maxHeight:"0px"}}),$x=F.div(({$status:e,$transitionDuration:t})=>({backdropFilter:"blur(24px)",background:"rgba(0, 0, 0, 0.4)",position:"absolute",inset:0,width:"100%",height:"100%",zIndex:1e5,"@media (prefers-reduced-motion: no-preference)":{animation:e==="exiting"||e==="preExit"?`${HN} ${t}ms`:`${xx} ${t}ms`,animationFillMode:"forwards"}})),wx=F.div(({theme:e})=>({backgroundColor:e.background.bar,borderRadius:6,boxShadow:"0px 4px 67px 0px #00000040",position:"absolute",overflow:"auto",zIndex:1e5,"&:focus-visible":{outline:"none"}}),({theme:e,width:t,height:r,$variant:n,$status:o,$transitionDuration:a})=>n==="dialog"?{top:"50%",left:"50%",width:t??740,height:r??"auto",maxWidth:"calc(100% - 40px)",maxHeight:"85vh","@media (prefers-reduced-motion: no-preference)":{willChange:"transform, opacity",animationTimingFunction:"cubic-bezier(0.32, 0.72, 0, 1)",animation:o==="exiting"||o==="preExit"?`${KN} ${a}ms`:`${zN} ${a}ms`,animationFillMode:"forwards !important"},"@media (prefers-reduced-motion: reduce)":{transform:"translate(-50%, -50%) scale(1)"}}:{bottom:"0",left:"0",right:"0",borderRadius:"10px 10px 0 0",overflow:"hidden",width:t??"100%",height:r??"80%",maxWidth:"100%",background:e.background.content,"@supports (interpolate-size: allow-keywords)":{interpolateSize:"allow-keywords"},"@media (prefers-reduced-motion: no-preference)":{animationTimingFunction:"cubic-bezier(.9,.16,.77,.64)",animation:o==="exiting"||o==="preExit"?`${WN} ${a}ms`:`${GN} ${a}ms`,animationFillMode:"forwards !important"}}),Il=({asChild:e,children:t,onClick:r,...n})=>{let{close:o}=p.useContext(Ox);if(e&&h.isValidElement(t)){let a=i=>{r?.(i),t.props.onClick?.(i),o?.()};return h.cloneElement(t,{...n,onClick:a})}return h.createElement(be,{type:"button",padding:"small",ariaLabel:"Close modal",variant:"ghost",shortcut:["Escape"],onClick:o},h.createElement(Gb,null))},VN={Close:()=>(Ex("Modal.Dialog.Close is deprecated, please use Modal.Close instead."),h.createElement(Il,{"data-deprecated":"Modal.Dialog.Close"}))},qN=({ariaLabel:e,...t})=>(Ex("Modal.CloseButton is deprecated, please use Modal.Close instead."),h.createElement(Il,{asChild:!0},h.createElement(be,{ariaLabel:e||"Close","data-deprecated":"Modal.CloseButton",...t},h.createElement(Gb,null)))),YN=F.div({display:"flex",flexDirection:"column",margin:16,gap:16}),Cx=F.div({display:"flex",justifyContent:"space-between",gap:16}),_x=F.div({display:"flex",flexDirection:"column",gap:4}),XN=({hasClose:e=!0,onClose:t,...r})=>h.createElement(Cx,null,h.createElement(_x,{...r}),e&&h.createElement(Il,{onClick:t})),JN=F(e=>h.createElement(BN,{level:2,...e}))(({theme:e})=>({margin:0,fontSize:e.typography.size.s3,fontWeight:e.typography.weight.bold})),ZN=F(jN)(({theme:e})=>({position:"relative",zIndex:1,margin:0,fontSize:e.typography.size.s2})),QN=F.div({display:"flex",flexDirection:"row-reverse",gap:8}),Tx=F.div(({theme:e})=>({maxHeight:100,overflow:"auto","@media (prefers-reduced-motion: no-preference)":{animation:`${UN} 300ms, ${xx} 300ms`},backgroundColor:e.background.critical,color:e.color.lightest,fontSize:e.typography.size.s2,"& > div":{position:"relative",padding:"8px 16px"}})),e9=({children:e,...t})=>h.createElement(Tx,{...t},h.createElement("div",null,e)),Ox=p.createContext({});function t9({container:e,portalSelector:t,children:r,width:n,height:o,ariaLabel:a,dismissOnClickOutside:i=!0,dismissOnEscape:l=!0,className:s,open:u,onEscapeKeyDown:c,onInteractOutside:d,onOpenChange:f,defaultOpen:g,transitionDuration:m=200,variant:y="dialog",...E}){let b;(a===void 0||a==="")&&(b="ariaLabel",Ku("The `ariaLabel` prop on `Modal` will become mandatory in Storybook 11.")),c!==void 0&&(b="onEscapeKeyDown",Ku("The `onEscapeKeyDown` prop is deprecated and will be removed in Storybook 11. Use `dismissOnEscape` instead.")),d!==void 0&&(b="onInteractOutside",Ku("The `onInteractOutside` prop is deprecated and will be removed in Storybook 11. Use `dismissOnInteractOutside` instead."));let v=p.useRef(null),S=MN("(prefers-reduced-motion: reduce)"),[{status:x,isMounted:O},w]=NN({timeout:S?0:m,mountOnEnter:!0,unmountOnExit:!0}),T=ha({isOpen:u||O,defaultOpen:g,onOpenChange:B=>{w(B),f?.(B)}}),R=()=>{T.close()},{modalProps:I,underlayProps:P}=cN({isDismissable:i,isKeyboardDismissDisabled:!0,shouldCloseOnInteractOutside:d?B=>{let $=new MouseEvent("click",{bubbles:!0,cancelable:!0,relatedTarget:B});return d($),!$.defaultPrevented}:void 0},T,v);if(p.useEffect(()=>{let B=u??g??!1;B&&!O?w(!0):!B&&O&&w(!1)},[u,g,O,w]),p.useEffect(()=>{O&&(u||g)&&f?.(!0)},[O]),p.useEffect(()=>{if(O&&(u||g)&&v.current)return Fl([v.current],{shouldUseInert:!0})},[O,u,g,v]),!O||x==="exited"||x==="unmounted")return null;let _=te(I,{onKeyDown:B=>{B.key!=="Escape"?I.onKeyDown?.(B):l&&(c?.(B.nativeEvent),B.nativeEvent.defaultPrevented||R())}}),N=e??(t?document.querySelector(t):void 0);return h.createElement(Hi,{disableFocusManagement:!0,portalContainer:N||void 0},h.createElement(Qf,{restoreFocus:!0,contain:!0,autoFocus:!0},h.createElement($x,{$status:x,$transitionDuration:m,...P}),h.createElement("div",{role:"dialog","aria-label":a,ref:v,..._},h.createElement(Ox.Provider,{value:{close:R}},h.createElement("div",{tabIndex:-1},h.createElement(wx,{"data-deprecated":b,$variant:y,$status:x,$transitionDuration:m,className:s,width:n,height:o,...E},r))))))}Object.assign(t9,bx);F.div(({theme:e,col:t,row:r=1})=>t?{display:"inline-block",verticalAlign:"inherit","& > *":{marginLeft:t*e.layoutMargin,verticalAlign:"inherit"},[`& > *:first-child${xi}`]:{marginLeft:0}}:{"& > *":{marginTop:r*e.layoutMargin},[`& > *:first-child${xi}`]:{marginTop:0}},({theme:e,outer:t,col:r,row:n})=>{switch(!0){case!!(t&&r):return{marginLeft:t*e.layoutMargin,marginRight:t*e.layoutMargin};case!!(t&&n):return{marginTop:t*e.layoutMargin,marginBottom:t*e.layoutMargin};default:return{}}});F.div(({theme:e})=>({fontWeight:e.typography.weight.bold}));F.div();F.div(({theme:e})=>({padding:30,textAlign:"center",color:e.color.defaultText,fontSize:e.typography.size.s2-1}));function r9(e,t){var r=p.useRef(null),n=p.useRef(null);n.current=t;var o=p.useRef(null);p.useEffect(function(){a()});var a=p.useCallback(function(){var i=o.current,l=n.current,s=i||(l?l instanceof Element?l:l.current:null);r.current&&r.current.element===s&&r.current.subscriber===e||(r.current&&r.current.cleanup&&r.current.cleanup(),r.current={element:s,subscriber:e,cleanup:s?e(s):void 0})},[e]);return p.useEffect(function(){return function(){r.current&&r.current.cleanup&&(r.current.cleanup(),r.current=null)}},[]),p.useCallback(function(i){o.current=i,a()},[a])}function U0(e,t,r){return e[t]?e[t][0]?e[t][0][r]:e[t][r]:t==="contentBoxSize"?e.contentRect[r==="inlineSize"?"width":"height"]:void 0}function Ax(e){e===void 0&&(e={});var t=e.onResize,r=p.useRef(void 0);r.current=t;var n=e.round||Math.round,o=p.useRef(),a=p.useState({width:void 0,height:void 0}),i=a[0],l=a[1],s=p.useRef(!1);p.useEffect(function(){return s.current=!1,function(){s.current=!0}},[]);var u=p.useRef({width:void 0,height:void 0}),c=r9(p.useCallback(function(d){return(!o.current||o.current.box!==e.box||o.current.round!==n)&&(o.current={box:e.box,round:n,instance:new ResizeObserver(function(f){var g=f[0],m=e.box==="border-box"?"borderBoxSize":e.box==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",y=U0(g,m,"inlineSize"),E=U0(g,m,"blockSize"),b=y?n(y):void 0,v=E?n(E):void 0;if(u.current.width!==b||u.current.height!==v){var S={width:b,height:v};u.current.width=b,u.current.height=v,r.current?r.current(S):s.current||l(S)}})}),o.current.instance.observe(d,{box:e.box}),function(){o.current&&o.current.instance.unobserve(d)}},[e.box,n]),e.ref);return p.useMemo(function(){return{ref:c,width:i.width,height:i.height}},[c,i.width,i.height])}var n9=F.div(({centered:e=!1,scale:t=1,elementHeight:r})=>({height:r||"auto",transformOrigin:e?"center top":"left top",transform:`scale(${1/t})`}));function o9({centered:e,scale:t,children:r}){let n=p.useRef(null),[o,a]=p.useState(0),i=p.useCallback(({height:l})=>{l&&a(l/t)},[t]);return p.useEffect(()=>{n.current&&a(n.current.getBoundingClientRect().height)},[t]),Ax({ref:n,onResize:i}),h.createElement(n9,{centered:e,scale:t,elementHeight:o},h.createElement("div",{ref:n,className:"innerZoomElementWrapper"},r))}var Rx={Element:o9};const{global:a9}=__STORYBOOK_MODULE_GLOBAL__;var{document:i9}=a9,l9=F.strong(({theme:e})=>({color:e.color.orange})),s9=F.strong(({theme:e})=>({color:e.color.ancillary,textDecoration:"underline"})),z0=F.em(({theme:e})=>({color:e.textMutedColor})),u9=/(Error): (.*)\n/,c9=/at (?:(.*) )?\(?(.+)\)?/,d9=/([^@]+)?(?:\/<)?@(.+)?/,f9=/([^@]+)?@(.+)?/,Dx=({error:e})=>{if(!e)return h.createElement(p.Fragment,null,"This error has no stack or message");if(!e.stack)return h.createElement(p.Fragment,null,e.message||"This error has no stack or message");let t=e.stack.toString();t&&e.message&&!t.includes(e.message)&&(t=`Error: ${e.message}
|
|
668
|
+
|
|
669
|
+
${t}`);let r=t.match(u9);if(!r)return h.createElement(p.Fragment,null,t);let[,n,o]=r,a=t.split(/\n/).slice(1),[,...i]=a.map(l=>{let s=l.match(c9)||l.match(d9)||l.match(f9);return s?{name:(s[1]||"").replace("/<",""),location:s[2].replace(i9.location.origin,"")}:null}).filter(Boolean);return h.createElement(p.Fragment,null,h.createElement("span",null,n),": ",h.createElement(l9,null,o),h.createElement("br",null),i.map((l,s)=>l?.name?h.createElement(p.Fragment,{key:s}," ","at ",h.createElement(s9,null,l.name)," (",h.createElement(z0,null,l.location),")",h.createElement("br",null)):h.createElement(p.Fragment,{key:s}," ","at ",h.createElement(z0,null,l?.location),h.createElement("br",null))))},p9=F.input(({theme:e})=>({appearance:"none",backgroundColor:e.input.background,border:`1px solid ${e.base==="dark"?"hsl(0 0 100 / 0.4)":"hsl(0 0 0 / 0.44)"}`,borderRadius:2,display:"grid",flexShrink:0,height:14,margin:0,placeContent:"center",transition:"background-color 0.1s",width:14,"&:enabled":{cursor:"pointer"},"&:disabled":{backgroundColor:"transparent",borderColor:e.input.border},"&:disabled:checked, &:disabled:indeterminate":{backgroundColor:e.base==="dark"?Y.dark:e.color.mediumdark},"&:checked, &:indeterminate":{border:"none",backgroundColor:Y.secondary},"&:checked::before":{content:'""',width:14,height:14,background:`no-repeat center url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='m3 7 2.5 2.5L11 4'/%3E%3C/svg%3E")`},"&:indeterminate::before":{content:'""',width:8,height:2,background:"white"},"&:enabled:focus-visible":{outline:`2px solid ${e.color.secondary}`,outlineOffset:2}})),h9=e=>h.createElement(p9,{...e,type:"checkbox"}),g9=F.label(({theme:e})=>({display:"flex",borderBottom:`1px solid ${e.appBorderColor}`,margin:"0 15px",padding:"8px 0","&:last-child":{marginBottom:"3rem"}})),m9=F.span(({theme:e})=>({minWidth:100,fontWeight:e.typography.weight.bold,marginRight:15,display:"flex",justifyContent:"flex-start",alignItems:"center",lineHeight:"16px"})),y9=({label:e,children:t,...r})=>h.createElement(g9,{...r},e?h.createElement(m9,null,h.createElement("span",null,e)):null,t),np=(({size:e})=>{switch(e){case"100%":return{width:"100%"};case"flex":return{flex:1};default:return{display:"inline"}}}),Px=(({align:e})=>{switch(e){case"end":return{textAlign:"right"};case"center":return{textAlign:"center"};default:return{textAlign:"left"}}}),Fx=(({valid:e,theme:t})=>{switch(e){case"valid":return{boxShadow:`${t.color.positive} 0 0 0 1px inset !important`};case"error":return{boxShadow:`${t.color.negative} 0 0 0 1px inset !important`};case"warn":return{boxShadow:`${t.color.warning} 0 0 0 1px inset`};default:return{}}}),b9={appearance:"none",border:"0 none",boxSizing:"inherit",display:"block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},op=(({theme:e})=>({...b9,transition:"box-shadow 200ms ease-out, opacity 200ms ease-out",color:e.input.color||"inherit",background:e.input.background,boxShadow:`${e.input.border} 0 0 0 1px inset`,borderRadius:e.input.borderRadius,fontSize:e.typography.size.s2-1,lineHeight:"20px",padding:"6px 10px",boxSizing:"border-box",height:32,'&[type="file"]':{height:"auto"},"&:focus":{boxShadow:`${e.color.secondary} 0 0 0 1px inset`,outline:"none","@media (forced-colors: active)":{outline:"1px solid highlight"}},'&[disabled], &[aria-disabled="true"]':{background:e.base==="light"?e.color.lighter:"transparent",cursor:"not-allowed"},"&:-webkit-autofill":{WebkitBoxShadow:`0 0 0 3em ${e.color.lightest} inset`},"&::placeholder":{color:e.textMutedColor,opacity:1}})),E9=F.div({position:"relative",width:"100%"}),v9=F.div(({theme:e})=>({position:"absolute",left:0,right:0,top:0,bottom:0,display:"flex",alignItems:"center",pointerEvents:"none",overflow:"hidden",color:e.textMutedColor,"span:first-of-type":{opacity:0}}),e=>{let{fontSize:t,lineHeight:r,padding:n}=op(e);return{fontSize:t,lineHeight:r,padding:n}}),S9=Object.assign(F(p.forwardRef(function({size:e,valid:t,align:r,value:n,suffix:o,...a},i){let l=Ue();return h.createElement(E9,null,h.createElement("input",{...a,value:n,ref:i,"aria-describedby":o?l:void 0}),o&&h.createElement(v9,{"aria-hidden":!0},h.createElement("span",null,n),h.createElement("span",{id:l},o)))}))(op,np,Px,Fx,{minHeight:32,width:"100%"}),{displayName:"Input"}),x9=F.input(({theme:e})=>({appearance:"none",backgroundColor:e.input.background,border:`1px solid ${e.base==="dark"?"hsl(0 0 100 / 0.4)":"hsl(0 0 0 / 0.44)"}`,borderRadius:8,display:"grid",flexShrink:0,height:16,margin:-1,placeContent:"center",transition:"background-color 0.1s",width:16,"&:enabled":{cursor:"pointer"},"&:disabled":{backgroundColor:"transparent",borderColor:e.input.border},"&:disabled:checked":{backgroundColor:e.base==="dark"?Y.dark:e.color.mediumdark,borderColor:e.base==="dark"?Y.dark:e.color.mediumdark},"&:checked":{backgroundColor:Y.secondary,borderColor:Y.secondary,boxShadow:`inset 0 0 0 2px ${e.input.background}`},"&:enabled:focus-visible":{outline:`2px solid ${e.color.secondary}`,outlineOffset:2}})),$9=e=>h.createElement(x9,{...e,type:"radio"}),w9=F.select(np,({theme:e})=>({appearance:"none",background:`calc(100% - 12px) center no-repeat url("data:image/svg+xml,%3Csvg width='8' height='4' viewBox='0 0 8 4' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.30303 0.196815C1.13566 0.0294472 0.864304 0.0294472 0.696937 0.196815C0.529569 0.364182 0.529569 0.635539 0.696937 0.802906L3.69694 3.80291C3.8643 3.97027 4.13566 3.97027 4.30303 3.80291L7.30303 0.802906C7.4704 0.635539 7.4704 0.364182 7.30303 0.196815C7.13566 0.0294473 6.8643 0.0294473 6.69694 0.196815L3.99998 2.89377L1.30303 0.196815Z' fill='%2373828C'/%3E%3C/svg%3E%0A")`,backgroundSize:10,padding:"6px 30px 6px 10px","@supports (appearance: base-select)":{appearance:"base-select",background:e.input.background,padding:"6px 10px"},transition:"box-shadow 200ms ease-out, opacity 200ms ease-out",color:e.input.color||"inherit",boxShadow:`${e.input.border} 0 0 0 1px inset`,borderRadius:e.input.borderRadius,fontSize:e.typography.size.s2-1,lineHeight:"20px",boxSizing:"border-box",border:"none",cursor:"pointer","& > button":{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",gap:8,"& > svg":{width:14,height:14,color:e.textMutedColor}},"&:has(option:not([hidden]):checked)":{color:e.color.defaultText},"&:focus-visible, &:focus-within":{outline:"none",boxShadow:`${e.color.secondary} 0 0 0 1px inset`},"&::picker-icon":{display:"none"},"&::picker(select)":{appearance:"base-select",border:`1px solid ${e.input.border}`,padding:4,marginTop:4,background:e.base==="light"?Ld(e.background.app):e.background.app,filter:`
|
|
670
|
+
drop-shadow(0 5px 5px rgba(0,0,0,0.05))
|
|
671
|
+
drop-shadow(0 0 3px rgba(0,0,0,0.1))
|
|
672
|
+
`,borderRadius:e.appBorderRadius+2,fontSize:e.typography.size.s1,cursor:"default",transition:"opacity 100ms ease-in-out, transform 100ms ease-in-out",transformOrigin:"top",transform:"translateY(0)",opacity:1,"@starting-style":{transform:"translateY(-0.25rem) scale(0.95)",opacity:0}},"& optgroup label":{display:"block",padding:"3px 6px"},"& option":{lineHeight:"18px",padding:"7px 10px",borderRadius:4,outline:"none",cursor:"pointer",color:e.color.defaultText,"&::checkmark":{display:"none"},"&:hover, &:focus-visible":{backgroundColor:e.background.hoverable},"&:checked":{color:e.color.secondary,fontWeight:e.typography.weight.bold},"&:disabled":{backgroundColor:"transparent",cursor:"default",color:e.color.defaultText}}})),C9=({children:e,...t})=>h.createElement(w9,{...t},!NO()&&h.createElement("button",null,h.createElement("selectedcontent",null),h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true"},h.createElement("path",{d:"m6 9 6 6 6-6"}))),h.createElement("optgroup",null,e)),_9=p.useLayoutEffect,T9=function(e){var t=h.useRef(e);return _9(function(){t.current=e}),t},K0=function(e,t){if(typeof e=="function"){e(t);return}e.current=t},O9=function(e,t){var r=h.useRef();return h.useCallback(function(n){e.current=n,r.current&&K0(r.current,null),r.current=t,t&&K0(t,n)},[t])},G0={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0",display:"block"},A9=function(e){Object.keys(G0).forEach(function(t){e.style.setProperty(t,G0[t],"important")})},W0=A9,et=null,V0=function(e,t){var r=e.scrollHeight;return t.sizingStyle.boxSizing==="border-box"?r+t.borderSize:r-t.paddingSize};function R9(e,t,r,n){r===void 0&&(r=1),n===void 0&&(n=1/0),et||(et=document.createElement("textarea"),et.setAttribute("tabindex","-1"),et.setAttribute("aria-hidden","true"),W0(et)),et.parentNode===null&&document.body.appendChild(et);var o=e.paddingSize,a=e.borderSize,i=e.sizingStyle,l=i.boxSizing;Object.keys(i).forEach(function(f){var g=f;et.style[g]=i[g]}),W0(et),et.value=t;var s=V0(et,e);et.value=t,s=V0(et,e),et.value="x";var u=et.scrollHeight-o,c=u*r;l==="border-box"&&(c=c+o+a),s=Math.max(c,s);var d=u*n;return l==="border-box"&&(d=d+o+a),s=Math.min(d,s),[s,u]}var q0=function(){},D9=function(e,t){return e.reduce(function(r,n){return r[n]=t[n],r},{})},P9=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak","wordSpacing","scrollbarGutter"],F9=!!document.documentElement.currentStyle,I9=function(e){var t=window.getComputedStyle(e);if(t===null)return null;var r=D9(P9,t),n=r.boxSizing;if(n==="")return null;F9&&n==="border-box"&&(r.width=parseFloat(r.width)+parseFloat(r.borderRightWidth)+parseFloat(r.borderLeftWidth)+parseFloat(r.paddingRight)+parseFloat(r.paddingLeft)+"px");var o=parseFloat(r.paddingBottom)+parseFloat(r.paddingTop),a=parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth);return{sizingStyle:r,paddingSize:o,borderSize:a}},L9=I9;function ap(e,t,r){var n=T9(r);p.useLayoutEffect(function(){var o=function(a){return n.current(a)};if(e)return e.addEventListener(t,o),function(){return e.removeEventListener(t,o)}},[])}var k9=function(e,t){ap(document.body,"reset",function(r){e.current.form===r.target&&t(r)})},N9=function(e){ap(window,"resize",e)},M9=function(e){ap(document.fonts,"loadingdone",e)},B9=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],j9=function(e,t){var r=e.cacheMeasurements,n=e.maxRows,o=e.minRows,a=e.onChange,i=a===void 0?q0:a,l=e.onHeightChange,s=l===void 0?q0:l,u=kO(e,B9),c=u.value!==void 0,d=p.useRef(null),f=O9(d,t),g=p.useRef(0),m=p.useRef(),y=function(){var b=d.current,v=r&&m.current?m.current:L9(b);if(v){m.current=v;var S=R9(v,b.value||b.placeholder||"x",o,n),x=S[0],O=S[1];g.current!==x&&(g.current=x,b.style.setProperty("height",x+"px","important"),s(x,{rowHeight:O}))}},E=function(b){c||y(),i(b)};return p.useLayoutEffect(y),k9(d,function(){if(!c){var b=d.current.value;requestAnimationFrame(function(){var v=d.current;v&&b!==v.value&&y()})}}),N9(y),M9(y),p.createElement("textarea",He({},u,{onChange:E,ref:f}))},H9=p.forwardRef(j9),U9=Object.assign(F(p.forwardRef(function({size:e,valid:t,align:r,...n},o){return h.createElement(H9,{...n,ref:o})}))(op,np,Px,Fx,({height:e=400})=>({overflow:"visible",maxHeight:e})),{displayName:"Textarea"}),gn=Object.assign(F.form({boxSizing:"border-box",width:"100%"}),{Field:y9,Input:S9,Select:C9,Textarea:U9,Button:be,Checkbox:h9,Radio:$9}),z9=F.div(({hasCloseButton:e,padding:t})=>({display:"inline-block",position:"relative",minHeight:e?36:void 0,zIndex:2147483647,colorScheme:"light dark",padding:t}),({theme:e,hasChrome:t})=>t?{filter:`
|
|
673
|
+
drop-shadow(0px 5px 5px rgba(0,0,0,0.05))
|
|
674
|
+
drop-shadow(0 1px 3px rgba(0,0,0,0.1))
|
|
675
|
+
`,borderRadius:e.appBorderRadius+2,fontSize:e.typography.size.s1}:{},({theme:e,bgColor:t})=>t==="default"&&{background:e.base==="light"?Ld(e.background.app):e.background.app,color:e.color.defaultText},({theme:e,bgColor:t})=>t==="inverse"&&{background:e.base==="light"?e.color.darkest:e.color.lightest,color:e.color.inverseText},({theme:e,bgColor:t})=>(t==="positive"||t==="negative"||t==="warning")&&{background:e.background[t],color:e.color[`${t}Text`]}),K9=F(be)({position:"absolute",top:4,right:4}),ma=p.forwardRef(({children:e,color:t="default",hasChrome:r=!0,hideLabel:n="Close",onHide:o,padding:a=8,...i},l)=>h.createElement(z9,{bgColor:t,hasChrome:r,hasCloseButton:!!o,padding:a,ref:l,...i},e,o&&h.createElement(K9,{ariaLabel:n,onClick:o,padding:"small",variant:"ghost",size:"small"},h.createElement(WO,null))));ma.displayName="Popover";var Ix=({id:e,title:t,description:r,icon:n,aside:o,children:a,isSelected:i,isActive:l,onClick:s,onFocus:u,onKeyDown:c,shouldLookDisabled:d=!1,...f})=>h.createElement(fi.Item,{...f,id:e,role:"option",tabIndex:l?0:-1,"aria-selected":i,"aria-disabled":d?!0:void 0,onClick:s,onFocus:u,onKeyDown:c},a??h.createElement(h.Fragment,null,n&&h.createElement(fi.Icon,null,n),h.createElement(fi.Text,null,h.createElement("p",null,t),r&&h.createElement("small",null,r)),o));Ix.displayName="SelectOption";var Ka=5,Lx=Symbol.for("undefined");function G9(e){return e==null||typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"}function yd(e){return{...e,type:"option",value:pi(e.value)}}function Gu(e){return"type"in e&&e.type==="reset"?e:yd(e)}function So(e){if(e!==Lx)return e}function pi(e){return e===void 0?Lx:e}var W9=F("ul")({minWidth:180,height:"100%",borderRadius:6,overflow:"hidden auto",listStyle:"none",margin:0,padding:4});function Y0(e,{value:t}){return`${e}-opt-${String(t)??"sb-reset"}`}var V9=F.span(({theme:e})=>({appearance:"none",color:e.textMutedColor,fontSize:12}));function X0(e,t){return t===void 0?[]:G9(t)?e.filter(r=>r.value===t).map(yd):e.filter(r=>t.some(n=>r.value===n)).map(yd)}var q9=F(be)(({$isOpen:e,$hasSelection:t,theme:r})=>e||t?{boxShadow:"none",background:dr(.93,r.barSelectedColor),color:r.base==="light"?We(.1,r.color.secondary):r.color.secondary}:{}),Y9=F.div({position:"fixed",inset:0,zIndex:1e3}),X9=({children:e,handleClose:t,triggerRef:r})=>{let n=h.useRef(null);Yv({ref:n,onInteractOutside:t}),p.useEffect(()=>{if(n.current)return Fl([n.current],{shouldUseInert:!0})},[]);let{overlayProps:o}=Zf({targetRef:r,overlayRef:n,placement:"bottom start",offset:8,maxHeight:504,isOpen:!0}),{overlayProps:a,underlayProps:i}=ep({isOpen:!0,onClose:t,isDismissable:!0,shouldCloseOnBlur:!1,isKeyboardDismissDisabled:!0},n),l=al();return o.style={...o.style,overflow:"hidden auto",scrollbarColor:`${l.barTextColor} transparent`,scrollbarWidth:"thin"},h.createElement(Hi,{disableFocusManagement:!0,...a},h.createElement(Y9,{...i}),h.createElement(ma,{hasChrome:!0,ref:n,padding:0,...o},e))},kx=p.forwardRef(({children:e,icon:t,disabled:r=!1,options:n,defaultOptions:o,multiSelect:a=!1,onReset:i,padding:l="small",resetLabel:s,onSelect:u,onDeselect:c,onChange:d,tooltip:f,ariaLabel:g,showSelectedOptionTitle:m=!0,...y},E)=>{let[b,v]=p.useState(y.defaultOpen||!1),[S,x]=p.useState(!1),O=Mt(E),w=p.useMemo(()=>"select-"+Math.random().toString(36).substring(2,15),[]),T=`${w}-listbox`,R=p.useRef(null),I=ha({isOpen:b&&!r,onOpenChange:v}),P=p.useCallback(()=>{v(!1),x(!0)},[]);p.useEffect(()=>{!I.isOpen&&S&&(O.current?.focus(),x(!1))},[I.isOpen,S,O]);let[_,N]=p.useState(X0(n,o)),B=p.useCallback(U=>{U.type==="reset"?(d?.([]),i?.(),N([])):N(a?j=>{let V=[];return j?.some(G=>G.value===U.value)?(c?.(So(U.value)),V=j?.filter(G=>G.value!==U.value)??[]):(u?.(So(U.value)),V=[...j??[],U]),d?.(V.map(G=>So(G.value))),V}:j=>j.every(V=>V.value!==U.value)?(u?.(So(U.value)),d?.([So(U.value)]),[U]):j)},[a,d,u,c,i]),$=p.useMemo(()=>i?{type:"reset",value:void 0,title:s??"Reset selection",icon:h.createElement(rA,null),description:void 0,children:void 0}:void 0,[i,s]),C=p.useMemo(()=>$?[$,...n]:n,[n,$]);p.useEffect(()=>{o&&N(X0(n,o))},[o,n]);let[A,D]=p.useState(void 0),L=p.useCallback((U,j=!0)=>{D(Gu(U)),!a&&j&&B(Gu(U))},[a,B]),M=p.useCallback((U=1)=>{if(!b||!A){L(C[U===1?0:Math.min(U,C.length-1)]);return}let j=C.findIndex(Z=>A.type==="reset"?"type"in Z&&Z.type==="reset":pi(Z.value)===A.value),V=j+U,G;V>=C.length&&j===C.length-1?G=C[0]:G=C[Math.min(C.length-1,V)],L(G)},[b,A,L,C]),k=p.useCallback((U=1)=>{if(!b||!A){L(C[Math.max(0,C.length-U)]);return}let j=C.findIndex(Z=>A.type==="reset"?"type"in Z&&Z.type==="reset":pi(Z.value)===A.value),V=j-U,G;V<0&&j===0?G=C[C.length-1]:G=C[Math.max(0,V)],L(G)},[b,A,L,C]),H=p.useCallback(U=>{let j=Le=>{U.preventDefault(),L(C[Le]),v(!0)},V=C.findIndex(Le=>_.some(J=>J.value===pi(Le.value))),G=V!==-1,Z=$&&!G?1:0,Ee=C.length-1;U.key==="Enter"||U.key===" "?j(G?Math.min(V,Ee):Z):U.key==="ArrowDown"?j(G?Math.min(V+1,Ee):Z):U.key==="ArrowUp"?j(G?Math.max(V-1,Z):Ee):U.key==="Home"?j(Z):U.key==="End"?j(Ee):U.key==="PageDown"?j(Math.min((G?V:Z)+Ka,Ee)):U.key==="PageUp"&&j(Math.max(0,(G?V:Ee)-Ka))},[C,$,L,_]),z=p.useCallback(U=>{U.key!=="Tab"?U.preventDefault():P(),U.key==="Escape"?P():U.key==="ArrowDown"?M():U.key==="ArrowUp"?k():U.key==="Home"?L(C[0]):U.key==="End"?L(C[C.length-1]):U.key==="PageDown"?M(Ka):U.key==="PageUp"&&k(Ka)},[P,M,k,C,L]);p.useEffect(()=>{if(b&&A){let U=document.getElementById(Y0(w,A));U&&(U.scrollIntoView({block:"nearest"}),U.focus())}else b&&R.current?.focus()},[b,A,w]);let K=p.useMemo(()=>_.length===1?`${g} ${_[0].title}`:_.length?`${g}, ${_.length} values selected`:g,[g,_]);return h.createElement(h.Fragment,null,h.createElement(q9,{...y,variant:"ghost",ariaLabel:K,tooltip:f??g,disableAllTooltips:b,id:w,ref:O,padding:l,$isOpen:b,$hasSelection:!!_.length,"aria-disabled":r,disabled:r,onClick:()=>{b?P():v(!0)},tabIndex:b?-1:0,onKeyDown:H,role:"button","aria-controls":b?T:void 0,"aria-expanded":b,"aria-haspopup":"listbox"},!a&&h.createElement(h.Fragment,null,t,m&&_[0]?.title||e),a&&h.createElement(h.Fragment,null,t,e,!!_.length&&h.createElement(V9,{"aria-label":`${_.length} ${_.length>1?"items":"item"} selected`},_?.length))),I.isOpen&&h.createElement(X9,{handleClose:P,triggerRef:O},h.createElement(W9,{"aria-label":g,role:"listbox",id:T,ref:R,"aria-multiselectable":a,onKeyDown:z,tabIndex:b?0:-1},C.map(U=>({option:Gu(U),externalOption:U})).map(({externalOption:U,option:j})=>{let V=_?.some(Z=>Z.value===j.value)&&j!==$,G=j===$;return h.createElement(Ix,{key:j.value===void 0?"sb-reset":String(j.value),title:j.title,description:j.description,aside:j.aside,icon:!G&&a?h.createElement(gn.Checkbox,{checked:V,hidden:!0,role:"presentation"}):j.icon,id:Y0(w,j),isActive:b&&A?.value===j.value,isSelected:V,onClick:()=>{B(j),a||P()},onFocus:()=>L(U,!1),shouldLookDisabled:G&&_.length===0&&a,onKeyDown:Z=>{Z.key==="Enter"||Z.key===" "?(Z.preventDefault(),B(j),a||P()):Z.key==="Tab"&&(a||B(j),P())}},j.children)}))))});kx.displayName="Select";const{deprecate:J9}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var mn=class{get childNodes(){throw new Error("childNodes is not supported")}clone(){let e=new this.constructor(this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e["aria-label"]=this["aria-label"],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e.colSpan=this.colSpan,e.colIndex=this.colIndex,e}filter(e,t,r){let n=this.clone();return t.addDescendants(n,e),n}constructor(e){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=this.constructor.type,this.key=e}},Nx=class extends mn{filter(e,t,r){let[n,o]=Hx(e,t,this.firstChildKey,r),a=this.clone();return a.firstChildKey=n,a.lastChildKey=o,a}},Mx=class extends mn{};Mx.type="header";var Z9=class extends mn{};Z9.type="loader";var Bx=class extends Nx{filter(e,t,r){if(r(this.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}};Bx.type="item";var jx=class extends Nx{filter(e,t,r){let n=super.filter(e,t,r);if(n&&n.lastChildKey!==null){let o=e.getItem(n.lastChildKey);if(o&&o.type!=="header")return n}return null}};jx.type="section";var Q9=class{get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let e=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;e;)yield e,e=e.nextKey!=null?this.keyMap.get(e.nextKey):void 0}getChildren(e){let t=this.keyMap;return{*[Symbol.iterator](){let r=t.get(e),n=r?.firstChildKey!=null?t.get(r.firstChildKey):null;for(;n;)yield n,n=n.nextKey!=null?t.get(n.nextKey):void 0}}}getKeyBefore(e){let t=this.keyMap.get(e);if(!t)return null;if(t.prevKey!=null){for(t=this.keyMap.get(t.prevKey);t&&t.type!=="item"&&t.lastChildKey!=null;)t=this.keyMap.get(t.lastChildKey);var r;return(r=t?.key)!==null&&r!==void 0?r:null}return t.parentKey}getKeyAfter(e){let t=this.keyMap.get(e);if(!t)return null;if(t.type!=="item"&&t.firstChildKey!=null)return t.firstChildKey;for(;t;){if(t.nextKey!=null)return t.nextKey;if(t.parentKey!=null)t=this.keyMap.get(t.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let e=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;e?.lastChildKey!=null;)e=this.keyMap.get(e.lastChildKey);var t;return(t=e?.key)!==null&&t!==void 0?t:null}getItem(e){var t;return(t=this.keyMap.get(e))!==null&&t!==void 0?t:null}at(){throw new Error("Not implemented")}clone(){let e=this.constructor,t=new e;return t.keyMap=new Map(this.keyMap),t.firstKey=this.firstKey,t.lastKey=this.lastKey,t.itemCount=this.itemCount,t}addNode(e){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");e.type==="item"&&this.keyMap.get(e.key)==null&&this.itemCount++,this.keyMap.set(e.key,e)}addDescendants(e,t){this.addNode(e);let r=t.getChildren(e.key);for(let n of r)this.addDescendants(n,t)}removeNode(e){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");let t=this.keyMap.get(e);t!=null&&t.type==="item"&&this.itemCount--,this.keyMap.delete(e)}commit(e,t,r=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=e,this.lastKey=t,this.frozen=!r}filter(e){let t=new this.constructor,[r,n]=Hx(this,t,this.firstKey,e);return t?.commit(r,n),t}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}};function Hx(e,t,r,n){if(r==null)return[null,null];let o=null,a=null,i=e.getItem(r);for(;i!=null;){let u=i.filter(e,t,n);u!=null&&(u.nextKey=null,a&&(u.prevKey=a.key,a.nextKey=u.key),o==null&&(o=u),t.addNode(u),a=u),i=i.nextKey?e.getItem(i.nextKey):null}if(a&&a.type==="separator"){let u=a.prevKey;t.removeNode(a.key),u?(a=t.getItem(u),a.nextKey=null):a=null}var l,s;return[(l=o?.key)!==null&&l!==void 0?l:null,(s=a?.key)!==null&&s!==void 0?s:null]}var Ux=class{*[Symbol.iterator](){let e=this.firstChild;for(;e;)yield e,e=e.nextSibling}get firstChild(){return this._firstChild}set firstChild(e){this._firstChild=e,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(e){this._lastChild=e,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(e){this._previousSibling=e,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(e){this._nextSibling=e,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(e){this._parentNode=e,this.ownerDocument.markDirty(this)}get isConnected(){var e;return((e=this.parentNode)===null||e===void 0?void 0:e.isConnected)||!1}invalidateChildIndices(e){(this._minInvalidChildIndex==null||!this._minInvalidChildIndex.isConnected||e.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=e,this.ownerDocument.markDirty(this))}updateChildIndices(){let e=this._minInvalidChildIndex;for(;e;)e.index=e.previousSibling?e.previousSibling.index+1:0,e=e.nextSibling;this._minInvalidChildIndex=null}appendChild(e){e.parentNode&&e.parentNode.removeChild(e),this.firstChild==null&&(this.firstChild=e),this.lastChild?(this.lastChild.nextSibling=e,e.index=this.lastChild.index+1,e.previousSibling=this.lastChild):(e.previousSibling=null,e.index=0),e.parentNode=this,e.nextSibling=null,this.lastChild=e,this.ownerDocument.markDirty(this),this.isConnected&&this.ownerDocument.queueUpdate()}insertBefore(e,t){if(t==null)return this.appendChild(e);e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=t,e.previousSibling=t.previousSibling,e.index=t.index-1,this.firstChild===t?this.firstChild=e:t.previousSibling&&(t.previousSibling.nextSibling=e),t.previousSibling=e,e.parentNode=t.parentNode,this.invalidateChildIndices(e),this.isConnected&&this.ownerDocument.queueUpdate()}removeChild(e){e.parentNode!==this||!this.ownerDocument.isMounted||(this._minInvalidChildIndex===e&&(this._minInvalidChildIndex=null),e.nextSibling&&(this.invalidateChildIndices(e.nextSibling),e.nextSibling.previousSibling=e.previousSibling),e.previousSibling&&(e.previousSibling.nextSibling=e.nextSibling),this.firstChild===e&&(this.firstChild=e.nextSibling),this.lastChild===e&&(this.lastChild=e.previousSibling),e.parentNode=null,e.nextSibling=null,e.previousSibling=null,e.index=0,this.ownerDocument.markDirty(e),this.isConnected&&this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let e=this.previousSibling;for(;e&&e.isHidden;)e=e.previousSibling;return e}get nextVisibleSibling(){let e=this.nextSibling;for(;e&&e.isHidden;)e=e.nextSibling;return e}get firstVisibleChild(){let e=this.firstChild;for(;e&&e.isHidden;)e=e.nextSibling;return e}get lastVisibleChild(){let e=this.lastChild;for(;e&&e.isHidden;)e=e.previousSibling;return e}constructor(e){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=e}},Wu=class bd extends Ux{get index(){return this._index}set index(t){this._index=t,this.ownerDocument.markDirty(this)}get level(){var t;return this.parentNode instanceof bd?this.parentNode.level+(((t=this.node)===null||t===void 0?void 0:t.type)==="item"?1:0):0}getMutableNode(){return this.node==null?null:(this.isMutated||(this.node=this.node.clone(),this.isMutated=!0),this.ownerDocument.markDirty(this),this.node)}updateNode(){var t,r,n,o,a,i,l,s;let u=this.nextVisibleSibling,c=this.getMutableNode();if(c!=null){c.index=this.index,c.level=this.level;var d;c.parentKey=this.parentNode instanceof bd&&(d=(t=this.parentNode.node)===null||t===void 0?void 0:t.key)!==null&&d!==void 0?d:null;var f;c.prevKey=(f=(n=this.previousVisibleSibling)===null||n===void 0||(r=n.node)===null||r===void 0?void 0:r.key)!==null&&f!==void 0?f:null;var g;c.nextKey=(g=u==null||(o=u.node)===null||o===void 0?void 0:o.key)!==null&&g!==void 0?g:null,c.hasChildNodes=!!this.firstChild;var m;c.firstChildKey=(m=(i=this.firstVisibleChild)===null||i===void 0||(a=i.node)===null||a===void 0?void 0:a.key)!==null&&m!==void 0?m:null;var y;if(c.lastChildKey=(y=(s=this.lastVisibleChild)===null||s===void 0||(l=s.node)===null||l===void 0?void 0:l.key)!==null&&y!==void 0?y:null,(c.colSpan!=null||c.colIndex!=null)&&u){var E,b;let v=((E=c.colIndex)!==null&&E!==void 0?E:c.index)+((b=c.colSpan)!==null&&b!==void 0?b:1);if(u.node!=null&&v!==u.node.colIndex){let S=u.getMutableNode();S.colIndex=v}}}}setProps(t,r,n,o,a){let i,{value:l,textValue:s,id:u,...c}=t;if(this.node==null?(i=new n(u??`react-aria-${++this.ownerDocument.nodeId}`),this.node=i):i=this.getMutableNode(),c.ref=r,i.props=c,i.rendered=o,i.render=a,i.value=l,i.textValue=s||(typeof c.children=="string"?c.children:"")||t["aria-label"]||"",u!=null&&u!==i.key)throw new Error("Cannot change the id of an item");c.colSpan!=null&&(i.colSpan=c.colSpan),this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let t=this;return{get display(){return t.isHidden?"none":""},set display(r){let n=r==="none";if(t.isHidden!==n){var o,a;(((o=t.parentNode)===null||o===void 0?void 0:o.firstVisibleChild)===t||((a=t.parentNode)===null||a===void 0?void 0:a.lastVisibleChild)===t)&&t.ownerDocument.markDirty(t.parentNode);let i=t.previousVisibleSibling,l=t.nextVisibleSibling;i&&t.ownerDocument.markDirty(i),l&&t.ownerDocument.markDirty(l),t.isHidden=n,t.ownerDocument.markDirty(t)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(t,r){super(r),this.nodeType=8,this.isMutated=!0,this._index=0,this.isHidden=!1,this.node=null}},eM=class extends Ux{get isConnected(){return this.isMounted}createElement(e){return new Wu(e,this)}getMutableCollection(){return this.nextCollection||(this.nextCollection=this.collection.clone()),this.nextCollection}markDirty(e){this.dirtyNodes.add(e)}addNode(e){if(e.isHidden||e.node==null)return;let t=this.getMutableCollection();if(!t.getItem(e.node.key))for(let r of e)this.addNode(r);t.addNode(e.node)}removeNode(e){if(e.node!=null){for(let t of e)this.removeNode(t);this.getMutableCollection().removeNode(e.node.key)}}getCollection(){return this.inSubscription?this.collection.clone():(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let i of this.dirtyNodes)i instanceof Wu&&(!i.isConnected||i.isHidden)?this.removeNode(i):i.updateChildIndices();for(let i of this.dirtyNodes)i instanceof Wu&&(i.isConnected&&!i.isHidden&&(i.updateNode(),this.addNode(i)),i.isMutated=!1);if(this.dirtyNodes.clear(),this.nextCollection){var e,t,r,n,o,a;this.nextCollection.commit((o=(t=this.firstVisibleChild)===null||t===void 0||(e=t.node)===null||e===void 0?void 0:e.key)!==null&&o!==void 0?o:null,(a=(n=this.lastVisibleChild)===null||n===void 0||(r=n.node)===null||r===void 0?void 0:r.key)!==null&&a!==void 0?a:null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null)}}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0;for(let e of this.subscriptions)e();this.inSubscription=!1}}subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(e){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.isMounted=!0,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=e,this.nextCollection=e}};function zx(e){let{children:t,items:r,idScope:n,addIdAndValue:o,dependencies:a=[]}=e,i=p.useMemo(()=>new WeakMap,a);return p.useMemo(()=>{if(r&&typeof t=="function"){let u=[];for(let c of r){let d=i.get(c);if(!d){d=t(c);var l,s;let f=(s=(l=d.props.id)!==null&&l!==void 0?l:c.key)!==null&&s!==void 0?s:c.id;if(f==null)throw new Error("Could not determine key for item");n&&(f=n+":"+f),d=p.cloneElement(d,o?{key:f,id:f,value:c}:{key:f}),i.set(c,d)}u.push(d)}return u}else if(typeof t!="function")return t},[t,r,i,n,o])}if(typeof HTMLTemplateElement<"u"){let e=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}var Ui=p.createContext(!1);function tM(e){if(p.useContext(Ui))return h.createElement(h.Fragment,null,e.children);let t=h.createElement(Ui.Provider,{value:!0},e.children);return h.createElement("template",{"data-react-aria-hidden":!0},t)}function ip(e){let t=(r,n)=>p.useContext(Ui)?null:e(r,n);return t.displayName=e.displayName||e.name,p.forwardRef(t)}function rM(){return p.useContext(Ui)}var Kx=p.createContext(!1),Zo=p.createContext(null);function Gx(e){if(p.useContext(Zo))return e.content;let{collection:t,document:r}=iM(e.createCollection);return h.createElement(h.Fragment,null,h.createElement(tM,null,h.createElement(Zo.Provider,{value:r},e.content)),h.createElement(nM,{render:e.children,collection:t}))}function nM({collection:e,render:t}){return t(e)}function oM(e,t,r){let n=hn(),o=p.useRef(n);o.current=n;let a=p.useCallback(()=>o.current?r():t(),[t,r]);return b8.useSyncExternalStore(e,a)}var aM=typeof h.useSyncExternalStore=="function"?h.useSyncExternalStore:oM;function iM(e){let[t]=p.useState(()=>new eM(e?.()||new Q9)),r=p.useCallback(i=>t.subscribe(i),[t]),n=p.useCallback(()=>{let i=t.getCollection();return t.isSSR&&t.resetAfterSSR(),i},[t]),o=p.useCallback(()=>(t.isSSR=!0,t.getCollection()),[t]),a=aM(r,n,o);return ce(()=>(t.isMounted=!0,()=>{t.isMounted=!1}),[t]),{collection:a,document:t}}var Ed=p.createContext(null);function lM(e){var t;return t=class extends mn{},t.type=e,t}function Wx(e,t,r,n,o,a){typeof e=="string"&&(e=lM(e));let i=p.useCallback(s=>{s?.setProps(t,r,e,n,a)},[t,r,n,a,e]),l=p.useContext(Ed);if(l){let s=l.ownerDocument.nodesByProps.get(t);return s||(s=l.ownerDocument.createElement(e.type),s.setProps(t,r,e,n,a),l.appendChild(s),l.ownerDocument.updateCollection(),l.ownerDocument.nodesByProps.set(t,s)),o?h.createElement(Ed.Provider,{value:s},o):null}return h.createElement(e.type,{ref:i},o)}function Ll(e,t){let r=({node:o})=>t(o.props,o.props.ref,o),n=p.forwardRef((o,a)=>{let i=p.useContext(ki);if(!p.useContext(Kx)){if(t.length>=3)throw new Error(t.name+" cannot be rendered outside a collection.");return t(o,a)}return Wx(e,o,a,"children"in o?o.children:null,null,l=>h.createElement(ki.Provider,{value:i},h.createElement(r,{node:l})))});return n.displayName=t.name,n}function lp(e,t,r=Vx){let n=({node:a})=>t(a.props,a.props.ref,a),o=p.forwardRef((a,i)=>{let l=r(a);var s;return(s=Wx(e,a,i,null,l,u=>h.createElement(n,{node:u})))!==null&&s!==void 0?s:h.createElement(h.Fragment,null)});return o.displayName=t.name,o}function Vx(e){return zx({...e,addIdAndValue:!0})}var J0=p.createContext(null);function qx(e){let t=p.useContext(J0),r=(t?.dependencies||[]).concat(e.dependencies),n=e.idScope||t?.idScope,o=Vx({...e,idScope:n,dependencies:r});return p.useContext(Zo)&&(o=h.createElement(sM,null,o)),t=p.useMemo(()=>({dependencies:r,idScope:n}),[n,...r]),h.createElement(J0.Provider,{value:t},o)}function sM({children:e}){let t=p.useContext(Zo),r=p.useMemo(()=>h.createElement(Zo.Provider,{value:null},h.createElement(Kx.Provider,{value:!0},e)),[e]);return hn()?h.createElement(Ed.Provider,{value:t},r):Ji.createPortal(r,t)}var Yx=p.createContext({});ip(function(e,t){[e,t]=Xe(e,t,Yx);let{elementType:r="label",...n}=e;return h.createElement(r,{className:"react-aria-Label",...n,ref:t})});function uM(e){let{id:t,label:r,"aria-labelledby":n,"aria-label":o,labelElementType:a="label"}=e;t=Ue(t);let i=Ue(),l={};r&&(n=n?`${i} ${n}`:i,l={id:i,htmlFor:a==="label"?t:void 0});let s=Ol({id:t,"aria-label":o,"aria-labelledby":n});return{labelProps:l,fieldProps:s}}function cM(e){let{value:t=0,minValue:r=0,maxValue:n=100,valueLabel:o,isIndeterminate:a,formatOptions:i={style:"percent"}}=e,l=we(e,{labelable:!0}),{labelProps:s,fieldProps:u}=uM({...e,labelElementType:"span"});t=Vo(t,r,n);let c=(t-r)/(n-r),d=Fk(i);if(!a&&!o){let f=i.style==="percent"?c:t;o=d.format(f)}return{progressBarProps:te(l,{...u,"aria-valuenow":a?void 0:t,"aria-valuemin":r,"aria-valuemax":n,"aria-valuetext":a?void 0:o,role:"progressbar"}),labelProps:s}}var Xx=p.createContext(null);p.forwardRef(function(e,t){[e,t]=Xe(e,t,Xx);let{value:r=0,minValue:n=0,maxValue:o=100,isIndeterminate:a=!1}=e;r=Vo(r,n,o);let[i,l]=Xv(!e["aria-label"]&&!e["aria-labelledby"]),{progressBarProps:s,labelProps:u}=cM({...e,label:l}),c=a?void 0:(r-n)/(o-n)*100,d=ht({...e,defaultClassName:"react-aria-ProgressBar",values:{percentage:c,valueText:s["aria-valuetext"],isIndeterminate:a}}),f=we(e,{global:!0});return h.createElement("div",{...te(f,d,s),ref:t,slot:e.slot||void 0},h.createElement(Yx.Provider,{value:{...u,ref:i,elementType:"span"}},d.children))});function dM(e,t){let{elementType:r="button",isDisabled:n,onPress:o,onPressStart:a,onPressEnd:i,onPressUp:l,onPressChange:s,preventFocusOnPress:u,allowFocusWhenDisabled:c,onClick:d,href:f,target:g,rel:m,type:y="button"}=e,E;r==="button"?E={type:y,disabled:n,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:E={role:"button",href:r==="a"&&!n?f:void 0,target:r==="a"?g:void 0,type:r==="input"?y:void 0,disabled:r==="input"?n:void 0,"aria-disabled":!n||r==="input"?void 0:n,rel:r==="a"?m:void 0};let{pressProps:b,isPressed:v}=fa({onPressStart:a,onPressEnd:i,onPressChange:s,onPress:o,onPressUp:l,onClick:d,isDisabled:n,preventFocusOnPress:u,ref:t}),{focusableProps:S}=pa(e,t);c&&(S.tabIndex=n?-1:S.tabIndex);let x=te(S,b,we(e,{labelable:!0}));return{isPressed:v,buttonProps:te(E,x,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"],"aria-disabled":e["aria-disabled"]})}}var Jx=p.createContext({});ip(function(e,t){[e,t]=Xe(e,t,Jx),e=fM(e);let r=e,{isPending:n}=r,{buttonProps:o,isPressed:a}=dM(e,t),{focusProps:i,isFocused:l,isFocusVisible:s}=Pl(e),{hoverProps:u,isHovered:c}=oo({...e,isDisabled:e.isDisabled||n}),d={isHovered:c,isPressed:(r.isPressed||a)&&!n,isFocused:l,isFocusVisible:s,isDisabled:e.isDisabled||!1,isPending:n??!1},f=ht({...e,values:d,defaultClassName:"react-aria-Button"}),g=Ue(o.id),m=Ue(),y=o["aria-labelledby"];n&&(y?y=`${y} ${m}`:o["aria-label"]&&(y=`${g} ${m}`));let E=p.useRef(n);p.useEffect(()=>{let v={"aria-labelledby":y||g};(!E.current&&l&&n||E.current&&l&&!n)&&nh(v,"assertive"),E.current=n},[n,l,y,g]);let b=we(e,{global:!0});return delete b.onClick,h.createElement("button",{...te(b,f,o,i,u),type:o.type==="submit"&&n?"button":o.type,id:g,ref:t,"aria-labelledby":y,slot:e.slot||void 0,"aria-disabled":n?"true":o["aria-disabled"],"data-disabled":e.isDisabled||void 0,"data-pressed":d.isPressed||void 0,"data-hovered":c||void 0,"data-focused":l||void 0,"data-pending":n||void 0,"data-focus-visible":s||void 0},h.createElement(Xx.Provider,{value:{id:m}},f.children))});function fM(e){return e.isPending&&(e.onPress=void 0,e.onPressStart=void 0,e.onPressEnd=void 0,e.onPressChange=void 0,e.onPressUp=void 0,e.onKeyDown=void 0,e.onKeyUp=void 0,e.onClick=void 0,e.href=void 0),e}var sp=p.createContext(null),Z0=p.createContext(null),pM=p.forwardRef(function(e,t){[e,t]=Xe(e,t,sp);let r=p.useContext(Nl),n=ha(e),o=e.isOpen!=null||e.defaultOpen!=null||!r?n:r,a=kv(t,o.isOpen)||e.isExiting||!1,i=rM(),{direction:l}=gr();if(i){let s=e.children;return typeof s=="function"&&(s=s({trigger:e.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),h.createElement(h.Fragment,null,s)}return o&&!o.isOpen&&!a?null:h.createElement(hM,{...e,triggerRef:e.triggerRef,state:o,popoverRef:t,isExiting:a,dir:l})});function hM({state:e,isExiting:t,UNSTABLE_portalContainer:r,clearContexts:n,...o}){let a=p.useRef(null),i=p.useRef(null),l=p.useContext(Z0),s=l&&o.trigger==="SubmenuTrigger";var u;let{popoverProps:c,underlayProps:d,arrowProps:f,placement:g,triggerAnchorPoint:m}=uN({...o,offset:(u=o.offset)!==null&&u!==void 0?u:8,arrowRef:a,groupRef:s?l:i},e),y=o.popoverRef,E=Lv(y,!!g)||o.isEntering||!1,b=ht({...o,defaultClassName:"react-aria-Popover",values:{trigger:o.trigger||null,placement:g,isEntering:E,isExiting:t}}),v=!o.isNonModal||o.trigger==="SubmenuTrigger",[S,x]=p.useState(!1);ce(()=>{y.current&&x(v&&!y.current.querySelector("[role=dialog]"))},[y,v]),p.useEffect(()=>{S&&o.trigger!=="SubmenuTrigger"&&y.current&&!y.current.contains(document.activeElement)&&Or(y.current)},[S,y,o.trigger]);let O=p.useMemo(()=>{let I=b.children;if(n)for(let P of n)I=h.createElement(P.Provider,{value:null},I);return I},[b.children,n]),w={...c.style,"--trigger-anchor-point":m?`${m.x}px ${m.y}px`:void 0,...b.style},T=h.createElement("div",{...te(we(o,{global:!0}),c),...b,role:S?"dialog":void 0,tabIndex:S?-1:void 0,"aria-label":o["aria-label"],"aria-labelledby":o["aria-labelledby"],ref:y,slot:o.slot||void 0,style:w,dir:o.dir,"data-trigger":o.trigger,"data-placement":g,"data-entering":E||void 0,"data-exiting":t||void 0},!o.isNonModal&&h.createElement(k0,{onDismiss:e.close}),h.createElement(Xf.Provider,{value:{...f,placement:g,ref:a}},O),h.createElement(k0,{onDismiss:e.close}));if(!s)return h.createElement(Hi,{...o,shouldContainFocus:S,isExiting:t,portalContainer:r},!o.isNonModal&&e.isOpen&&h.createElement("div",{"data-testid":"underlay",...d,style:{position:"fixed",inset:0}}),h.createElement("div",{ref:i,style:{display:"contents"}},h.createElement(Z0.Provider,{value:i},T)));var R;return h.createElement(Hi,{...o,shouldContainFocus:S,isExiting:t,portalContainer:(R=r??l?.current)!==null&&R!==void 0?R:void 0},T)}var Zx=p.createContext(null);lp("section",(e,t,r)=>{let{name:n,render:o}=p.useContext(Zx);return o(e,t,r,"react-aria-Section")});var Qx={CollectionRoot({collection:e,renderDropIndicator:t}){return Q0(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:r}){return Q0(e,t,r)}};function Q0(e,t,r){return zx({items:t?e.getChildren(t.key):e,dependencies:[r],children(n){let o=n.render(n);return!r||n.type!=="item"?o:h.createElement(h.Fragment,null,r({type:"item",key:n.key,dropPosition:"before"}),o,gM(e,n,r))}})}function gM(e,t,r){let n=t.key,o=e.getKeyAfter(n),a=o!=null?e.getItem(o):null;for(;a!=null&&a.type!=="item";)o=e.getKeyAfter(a.key),a=o!=null?e.getItem(o):null;let i=t.nextKey!=null?e.getItem(t.nextKey):null;for(;i!=null&&i.type!=="item";)i=i.nextKey!=null?e.getItem(i.nextKey):null;let l=[];if(i==null){let s=t;for(;s&&(!a||s.parentKey!==a.parentKey&&a.level<s.level);){let u=r({type:"item",key:s.key,dropPosition:"after"});p.isValidElement(u)&&l.push(p.cloneElement(u,{key:`${s.key}-after`})),s=s.parentKey!=null?e.getItem(s.parentKey):null}}return l}var ya=p.createContext(Qx);function e$(e){return p.useMemo(()=>e!=null?new Set([e]):null,[e])}var ey=p.createContext(null),mM=p.createContext(null),t$=p.createContext({});Ll(Mx,function(e,t){return[e,t]=Xe(e,t,t$),h.createElement("header",{className:"react-aria-Header",...e,ref:t},e.children)});var r$=p.createContext({});p.forwardRef(function(e,t){return[e,t]=Xe(e,t,r$),h.createElement("kbd",{dir:"ltr",...e,ref:t})});function yM(e){let t=we(e,{labelable:!0}),r;return e.orientation==="vertical"&&(r="vertical"),e.elementType!=="hr"?{separatorProps:{...t,role:"separator","aria-orientation":r}}:{separatorProps:t}}var n$=p.createContext({}),o$=class extends mn{filter(e,t){let r=t.getItem(this.prevKey);if(r&&r.type!=="separator"){let n=this.clone();return t.addDescendants(n,e),n}return null}};o$.type="separator";Ll(o$,function(e,t){[e,t]=Xe(e,t,n$);let{elementType:r,orientation:n,style:o,className:a,slot:i,...l}=e,s=r||"hr";s==="hr"&&n==="vertical"&&(s="div");let{separatorProps:u}=yM({...l,elementType:r,orientation:n}),c=we(e,{global:!0});return h.createElement(s,{...te(c,u),style:o,className:a??"react-aria-Separator",ref:t,slot:i||void 0})});var a$=new WeakMap;function vd(e){return EL()?e.altKey:e.ctrlKey}function hi(e,t){var r,n;let o=`[data-key="${CSS.escape(String(t))}"]`,a=(r=e.current)===null||r===void 0?void 0:r.dataset.collection;return a&&(o=`[data-collection="${CSS.escape(a)}"]${o}`),(n=e.current)===null||n===void 0?void 0:n.querySelector(o)}var i$=new WeakMap;function bM(e){let t=Ue();return i$.set(e,t),t}function EM(e){return i$.get(e)}var vM=1e3;function SM(e){let{keyboardDelegate:t,selectionManager:r,onTypeSelect:n}=e,o=p.useRef({search:"",timeout:void 0}).current,a=i=>{let l=xM(i.key);if(!(!l||i.ctrlKey||i.metaKey||!i.currentTarget.contains(i.target)||o.search.length===0&&l===" ")){if(l===" "&&o.search.trim().length>0&&(i.preventDefault(),"continuePropagation"in i||i.stopPropagation()),o.search+=l,t.getKeyForSearch!=null){let s=t.getKeyForSearch(o.search,r.focusedKey);s==null&&(s=t.getKeyForSearch(o.search)),s!=null&&(r.setFocusedKey(s),n&&n(s))}clearTimeout(o.timeout),o.timeout=setTimeout(()=>{o.search=""},vM)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?a:void 0}}}function xM(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function l$(e){let{selectionManager:t,keyboardDelegate:r,ref:n,autoFocus:o=!1,shouldFocusWrap:a=!1,disallowEmptySelection:i=!1,disallowSelectAll:l=!1,escapeKeyBehavior:s="clearSelection",selectOnFocus:u=t.selectionBehavior==="replace",disallowTypeAhead:c=!1,shouldUseVirtualFocus:d,allowsTabNavigation:f=!1,isVirtualized:g,scrollRef:m=n,linkBehavior:y="action"}=e,{direction:E}=gr(),b=_l(),v=D=>{var L;if(D.altKey&&D.key==="Tab"&&D.preventDefault(),!(!((L=n.current)===null||L===void 0)&&L.contains(D.target)))return;let M=(W,q)=>{if(W!=null){if(t.isLink(W)&&y==="selection"&&u&&!vd(D)){Ji.flushSync(()=>{t.setFocusedKey(W,q)});let ee=hi(n,W),se=t.getItemProps(W);ee&&b.open(ee,D,se.href,se.routerOptions);return}if(t.setFocusedKey(W,q),t.isLink(W)&&y==="override")return;D.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(W):u&&!vd(D)&&t.replaceSelection(W)}};switch(D.key){case"ArrowDown":if(r.getKeyBelow){var k,H,z;let W=t.focusedKey!=null?(k=r.getKeyBelow)===null||k===void 0?void 0:k.call(r,t.focusedKey):(H=r.getFirstKey)===null||H===void 0?void 0:H.call(r);W==null&&a&&(W=(z=r.getFirstKey)===null||z===void 0?void 0:z.call(r,t.focusedKey)),W!=null&&(D.preventDefault(),M(W))}break;case"ArrowUp":if(r.getKeyAbove){var K,U,j;let W=t.focusedKey!=null?(K=r.getKeyAbove)===null||K===void 0?void 0:K.call(r,t.focusedKey):(U=r.getLastKey)===null||U===void 0?void 0:U.call(r);W==null&&a&&(W=(j=r.getLastKey)===null||j===void 0?void 0:j.call(r,t.focusedKey)),W!=null&&(D.preventDefault(),M(W))}break;case"ArrowLeft":if(r.getKeyLeftOf){var V,G,Z;let W=t.focusedKey!=null?(V=r.getKeyLeftOf)===null||V===void 0?void 0:V.call(r,t.focusedKey):null;W==null&&a&&(W=E==="rtl"?(G=r.getFirstKey)===null||G===void 0?void 0:G.call(r,t.focusedKey):(Z=r.getLastKey)===null||Z===void 0?void 0:Z.call(r,t.focusedKey)),W!=null&&(D.preventDefault(),M(W,E==="rtl"?"first":"last"))}break;case"ArrowRight":if(r.getKeyRightOf){var Ee,Le,J;let W=t.focusedKey!=null?(Ee=r.getKeyRightOf)===null||Ee===void 0?void 0:Ee.call(r,t.focusedKey):null;W==null&&a&&(W=E==="rtl"?(Le=r.getLastKey)===null||Le===void 0?void 0:Le.call(r,t.focusedKey):(J=r.getFirstKey)===null||J===void 0?void 0:J.call(r,t.focusedKey)),W!=null&&(D.preventDefault(),M(W,E==="rtl"?"last":"first"))}break;case"Home":if(r.getFirstKey){if(t.focusedKey===null&&D.shiftKey)return;D.preventDefault();let W=r.getFirstKey(t.focusedKey,wn(D));t.setFocusedKey(W),W!=null&&(wn(D)&&D.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(W):u&&t.replaceSelection(W))}break;case"End":if(r.getLastKey){if(t.focusedKey===null&&D.shiftKey)return;D.preventDefault();let W=r.getLastKey(t.focusedKey,wn(D));t.setFocusedKey(W),W!=null&&(wn(D)&&D.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(W):u&&t.replaceSelection(W))}break;case"PageDown":if(r.getKeyPageBelow&&t.focusedKey!=null){let W=r.getKeyPageBelow(t.focusedKey);W!=null&&(D.preventDefault(),M(W))}break;case"PageUp":if(r.getKeyPageAbove&&t.focusedKey!=null){let W=r.getKeyPageAbove(t.focusedKey);W!=null&&(D.preventDefault(),M(W))}break;case"a":wn(D)&&t.selectionMode==="multiple"&&l!==!0&&(D.preventDefault(),t.selectAll());break;case"Escape":s==="clearSelection"&&!i&&t.selectedKeys.size!==0&&(D.stopPropagation(),D.preventDefault(),t.clearSelection());break;case"Tab":if(!f){if(D.shiftKey)n.current.focus();else{let W=it(n.current,{tabbable:!0}),q,ee;do ee=W.lastChild(),ee&&(q=ee);while(ee);q&&!q.contains(document.activeElement)&&ot(q)}break}}},S=p.useRef({top:0,left:0});To(m,"scroll",g?void 0:()=>{var D,L,M,k;S.current={top:(M=(D=m.current)===null||D===void 0?void 0:D.scrollTop)!==null&&M!==void 0?M:0,left:(k=(L=m.current)===null||L===void 0?void 0:L.scrollLeft)!==null&&k!==void 0?k:0}});let x=D=>{if(t.isFocused){D.currentTarget.contains(D.target)||t.setFocused(!1);return}if(D.currentTarget.contains(D.target)){if(t.setFocused(!0),t.focusedKey==null){var L,M;let z=U=>{U!=null&&(t.setFocusedKey(U),u&&!t.isSelected(U)&&t.replaceSelection(U))},K=D.relatedTarget;var k,H;K&&D.currentTarget.compareDocumentPosition(K)&Node.DOCUMENT_POSITION_FOLLOWING?z((k=t.lastSelectedKey)!==null&&k!==void 0?k:(L=r.getLastKey)===null||L===void 0?void 0:L.call(r)):z((H=t.firstSelectedKey)!==null&&H!==void 0?H:(M=r.getFirstKey)===null||M===void 0?void 0:M.call(r))}else!g&&m.current&&(m.current.scrollTop=S.current.top,m.current.scrollLeft=S.current.left);if(t.focusedKey!=null&&m.current){let z=hi(n,t.focusedKey);z instanceof HTMLElement&&(!z.contains(document.activeElement)&&!d&&ot(z),Jo()==="keyboard"&&t0(z,{containingElement:n.current}))}}},O=D=>{D.currentTarget.contains(D.relatedTarget)||t.setFocused(!1)},w=p.useRef(!1);To(n,LL,d?D=>{let{detail:L}=D;D.stopPropagation(),t.setFocused(!0),L?.focusStrategy==="first"&&(w.current=!0)}:void 0);let T=Be(()=>{var D,L;let M=(L=(D=r.getFirstKey)===null||D===void 0?void 0:D.call(r))!==null&&L!==void 0?L:null;if(M==null){let k=ke();xS(n.current),$S(k,null),t.collection.size>0&&(w.current=!1)}else t.setFocusedKey(M),w.current=!1});Qm(()=>{w.current&&T()},[t.collection,T]);let R=Be(()=>{t.collection.size>0&&(w.current=!1)});Qm(()=>{R()},[t.focusedKey,R]),To(n,IL,d?D=>{var L;D.stopPropagation(),t.setFocused(!1),!((L=D.detail)===null||L===void 0)&&L.clearFocusKey&&t.setFocusedKey(null)}:void 0);let I=p.useRef(o),P=p.useRef(!1);p.useEffect(()=>{if(I.current){var D,L;let H=null;var M;o==="first"&&(H=(M=(D=r.getFirstKey)===null||D===void 0?void 0:D.call(r))!==null&&M!==void 0?M:null);var k;o==="last"&&(H=(k=(L=r.getLastKey)===null||L===void 0?void 0:L.call(r))!==null&&k!==void 0?k:null);let z=t.selectedKeys;if(z.size){for(let K of z)if(t.canSelectItem(K)){H=K;break}}t.setFocused(!0),t.setFocusedKey(H),H==null&&!d&&n.current&&Or(n.current),t.collection.size>0&&(I.current=!1,P.current=!0)}});let _=p.useRef(t.focusedKey),N=p.useRef(null);p.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==_.current||P.current)&&m.current&&n.current){let D=Jo(),L=hi(n,t.focusedKey);if(!(L instanceof HTMLElement))return;(D==="keyboard"||P.current)&&(N.current&&cancelAnimationFrame(N.current),N.current=requestAnimationFrame(()=>{m.current&&(Fv(m.current,L),D!=="virtual"&&t0(L,{containingElement:n.current}))}))}!d&&t.isFocused&&t.focusedKey==null&&_.current!=null&&n.current&&Or(n.current),_.current=t.focusedKey,P.current=!1}),p.useEffect(()=>()=>{N.current&&cancelAnimationFrame(N.current)},[]),To(n,"react-aria-focus-scope-restore",D=>{D.preventDefault(),t.setFocused(!0)});let B={onKeyDown:v,onFocus:x,onBlur:O,onMouseDown(D){m.current===D.target&&D.preventDefault()}},{typeSelectProps:$}=SM({keyboardDelegate:r,selectionManager:t});c||(B=te($,B));let C;d||(C=t.focusedKey==null?0:-1);let A=bM(t.collection);return{collectionProps:te(B,{tabIndex:C,"data-collection":A})}}function s$(e){let{id:t,selectionManager:r,key:n,ref:o,shouldSelectOnPressUp:a,shouldUseVirtualFocus:i,focus:l,isDisabled:s,onAction:u,allowsDifferentPressOrigin:c,linkBehavior:d="action"}=e,f=_l();t=Ue(t);let g=k=>{if(k.pointerType==="keyboard"&&vd(k))r.toggleSelection(n);else{if(r.selectionMode==="none")return;if(r.isLink(n)){if(d==="selection"&&o.current){let H=r.getItemProps(n);f.open(o.current,k,H.href,H.routerOptions),r.setSelectedKeys(r.selectedKeys);return}else if(d==="override"||d==="none")return}r.selectionMode==="single"?r.isSelected(n)&&!r.disallowEmptySelection?r.toggleSelection(n):r.replaceSelection(n):k&&k.shiftKey?r.extendSelection(n):r.selectionBehavior==="toggle"||k&&(wn(k)||k.pointerType==="touch"||k.pointerType==="virtual")?r.toggleSelection(n):r.replaceSelection(n)}};p.useEffect(()=>{n===r.focusedKey&&r.isFocused&&(i?xS(o.current):l?l():document.activeElement!==o.current&&o.current&&Or(o.current))},[o,n,r.focusedKey,r.childFocusStrategy,r.isFocused,i]),s=s||r.isDisabled(n);let m={};!i&&!s?m={tabIndex:n===r.focusedKey?0:-1,onFocus(k){k.target===o.current&&r.setFocusedKey(n)}}:s&&(m.onMouseDown=k=>{k.preventDefault()});let y=r.isLink(n)&&d==="override",E=u&&e.UNSTABLE_itemBehavior==="action",b=r.isLink(n)&&d!=="selection"&&d!=="none",v=!s&&r.canSelectItem(n)&&!y&&!E,S=(u||b)&&!s,x=S&&(r.selectionBehavior==="replace"?!v:!v||r.isEmpty),O=S&&v&&r.selectionBehavior==="replace",w=x||O,T=p.useRef(null),R=w&&v,I=p.useRef(!1),P=p.useRef(!1),_=r.getItemProps(n),N=k=>{if(u){var H;u(),(H=o.current)===null||H===void 0||H.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))}b&&o.current&&f.open(o.current,k,_.href,_.routerOptions)},B={ref:o};if(a?(B.onPressStart=k=>{T.current=k.pointerType,I.current=R,k.pointerType==="keyboard"&&(!w||ry())&&g(k)},c?(B.onPressUp=x?void 0:k=>{k.pointerType==="mouse"&&v&&g(k)},B.onPress=x?N:k=>{k.pointerType!=="keyboard"&&k.pointerType!=="mouse"&&v&&g(k)}):B.onPress=k=>{if(x||O&&k.pointerType!=="mouse"){if(k.pointerType==="keyboard"&&!ty())return;N(k)}else k.pointerType!=="keyboard"&&v&&g(k)}):(B.onPressStart=k=>{T.current=k.pointerType,I.current=R,P.current=x,v&&(k.pointerType==="mouse"&&!x||k.pointerType==="keyboard"&&(!S||ry()))&&g(k)},B.onPress=k=>{(k.pointerType==="touch"||k.pointerType==="pen"||k.pointerType==="virtual"||k.pointerType==="keyboard"&&w&&ty()||k.pointerType==="mouse"&&P.current)&&(w?N(k):v&&g(k))}),m["data-collection"]=EM(r.collection),m["data-key"]=n,B.preventFocusOnPress=i,i&&(B=te(B,{onPressStart(k){k.pointerType!=="touch"&&(r.setFocused(!0),r.setFocusedKey(n))},onPress(k){k.pointerType==="touch"&&(r.setFocused(!0),r.setFocusedKey(n))}})),_)for(let k of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])_[k]&&(B[k]=da(B[k],_[k]));let{pressProps:$,isPressed:C}=fa(B),A=O?k=>{T.current==="mouse"&&(k.stopPropagation(),k.preventDefault(),N(k))}:void 0,{longPressProps:D}=g7({isDisabled:!R,onLongPress(k){k.pointerType==="touch"&&(g(k),r.setSelectionBehavior("toggle"))}}),L=k=>{T.current==="touch"&&I.current&&k.preventDefault()},M=d!=="none"&&r.isLink(n)?k=>{an.isOpening||k.preventDefault()}:void 0;return{itemProps:te(m,v||x||i&&!s?$:{},R?D:{},{onDoubleClick:A,onDragStartCapture:L,onClick:M,id:t},i?{onMouseDown:k=>k.preventDefault()}:void 0),isPressed:C,isSelected:r.isSelected(n),isFocused:r.isFocused&&r.focusedKey===n,isDisabled:s,allowsSelection:v,hasAction:w}}function ty(){return window.event?.key==="Enter"}function ry(){let e=window.event;return e?.key===" "||e?.code==="Space"}var ny=class{getItemRect(e){let t=this.ref.current;if(!t)return null;let r=e!=null?hi(this.ref,e):null;if(!r)return null;let n=t.getBoundingClientRect(),o=r.getBoundingClientRect();return{x:o.left-n.left-t.clientLeft+t.scrollLeft,y:o.top-n.top-t.clientTop+t.scrollTop,width:o.width,height:o.height}}getContentSize(){let e=this.ref.current;var t,r;return{width:(t=e?.scrollWidth)!==null&&t!==void 0?t:0,height:(r=e?.scrollHeight)!==null&&r!==void 0?r:0}}getVisibleRect(){let e=this.ref.current;var t,r,n,o;return{x:(t=e?.scrollLeft)!==null&&t!==void 0?t:0,y:(r=e?.scrollTop)!==null&&r!==void 0?r:0,width:(n=e?.clientWidth)!==null&&n!==void 0?n:0,height:(o=e?.clientHeight)!==null&&o!==void 0?o:0}}constructor(e){this.ref=e}},$M=class{isDisabled(e){var t;return this.disabledBehavior==="all"&&(((t=e.props)===null||t===void 0?void 0:t.isDisabled)||this.disabledKeys.has(e.key))}findNextNonDisabled(e,t){let r=e;for(;r!=null;){let n=this.collection.getItem(r);if(n?.type==="item"&&!this.isDisabled(n))return r;r=t(r)}return null}getNextKey(e){let t=e;return t=this.collection.getKeyAfter(t),this.findNextNonDisabled(t,r=>this.collection.getKeyAfter(r))}getPreviousKey(e){let t=e;return t=this.collection.getKeyBefore(t),this.findNextNonDisabled(t,r=>this.collection.getKeyBefore(r))}findKey(e,t,r){let n=e,o=this.layoutDelegate.getItemRect(n);if(!o||n==null)return null;let a=o;do{if(n=t(n),n==null)break;o=this.layoutDelegate.getItemRect(n)}while(o&&r(a,o)&&n!=null);return n}isSameRow(e,t){return e.y===t.y||e.x!==t.x}isSameColumn(e,t){return e.x===t.x||e.y!==t.y}getKeyBelow(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,t=>this.getNextKey(t),this.isSameRow):this.getNextKey(e)}getKeyAbove(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,t=>this.getPreviousKey(t),this.isSameRow):this.getPreviousKey(e)}getNextColumn(e,t){return t?this.getPreviousKey(e):this.getNextKey(e)}getKeyRightOf(e){let t=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[t]?(e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,r=>this.layoutDelegate[t](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="rtl"):this.findKey(e,r=>this.getNextColumn(r,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="rtl"):null}getKeyLeftOf(e){let t=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[t]?(e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,r=>this.layoutDelegate[t](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="ltr"):this.findKey(e,r=>this.getNextColumn(r,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="ltr"):null}getFirstKey(){let e=this.collection.getFirstKey();return this.findNextNonDisabled(e,t=>this.collection.getKeyAfter(t))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,t=>this.collection.getKeyBefore(t))}getKeyPageAbove(e){let t=this.ref.current,r=this.layoutDelegate.getItemRect(e);if(!r)return null;if(t&&!Kn(t))return this.getFirstKey();let n=e;if(this.orientation==="horizontal"){let o=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>o&&n!=null;)n=this.getKeyAbove(n),r=n==null?null:this.layoutDelegate.getItemRect(n)}else{let o=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>o&&n!=null;)n=this.getKeyAbove(n),r=n==null?null:this.layoutDelegate.getItemRect(n)}return n??this.getFirstKey()}getKeyPageBelow(e){let t=this.ref.current,r=this.layoutDelegate.getItemRect(e);if(!r)return null;if(t&&!Kn(t))return this.getLastKey();let n=e;if(this.orientation==="horizontal"){let o=Math.min(this.layoutDelegate.getContentSize().width,r.y-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<o&&n!=null;)n=this.getKeyBelow(n),r=n==null?null:this.layoutDelegate.getItemRect(n)}else{let o=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<o&&n!=null;)n=this.getKeyBelow(n),r=n==null?null:this.layoutDelegate.getItemRect(n)}return n??this.getLastKey()}getKeyForSearch(e,t){if(!this.collator)return null;let r=this.collection,n=t||this.getFirstKey();for(;n!=null;){let o=r.getItem(n);if(!o)return null;let a=o.textValue.slice(0,e.length);if(o.textValue&&this.collator.compare(a,e)===0)return n;n=this.getNextKey(n)}return null}constructor(...e){if(e.length===1){let t=e[0];this.collection=t.collection,this.ref=t.ref,this.collator=t.collator,this.disabledKeys=t.disabledKeys||new Set,this.disabledBehavior=t.disabledBehavior||"all",this.orientation=t.orientation||"vertical",this.direction=t.direction,this.layout=t.layout||"stack",this.layoutDelegate=t.layoutDelegate||new ny(t.ref)}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new ny(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}};function wM(e){let{selectionManager:t,collection:r,disabledKeys:n,ref:o,keyboardDelegate:a,layoutDelegate:i}=e,l=Ik({usage:"search",sensitivity:"base"}),s=t.disabledBehavior,u=p.useMemo(()=>a||new $M({collection:r,disabledKeys:n,disabledBehavior:s,ref:o,collator:l,layoutDelegate:i}),[a,i,r,n,o,l,s]),{collectionProps:c}=l$({...e,ref:o,selectionManager:t,keyboardDelegate:u});return{listProps:c}}function CM(e,t,r){let{shouldFocusWrap:n=!0,onKeyDown:o,onKeyUp:a,...i}=e;!e["aria-label"]&&e["aria-labelledby"];let l=we(e,{labelable:!0}),{listProps:s}=wM({...i,ref:r,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:n,linkBehavior:"override"});return a$.set(t,{onClose:e.onClose,onAction:e.onAction,shouldUseVirtualFocus:e.shouldUseVirtualFocus}),{menuProps:te(l,{onKeyDown:o,onKeyUp:a},{role:"menu",...s,onKeyDown:u=>{var c;(u.key!=="Escape"||e.shouldUseVirtualFocus)&&((c=s.onKeyDown)===null||c===void 0||c.call(s,u))}})}}function u$(e){return null}u$.getCollectionNode=function*(e,t){let{childItems:r,title:n,children:o}=e,a=e.title||e.children,i=e.textValue||(typeof a=="string"?a:"")||e["aria-label"]||"";!i&&t?.suppressTextValueWarning,yield{type:"item",props:e,rendered:a,textValue:i,"aria-label":e["aria-label"],hasChildNodes:_M(e),*childNodes(){if(r)for(let l of r)yield{type:"item",value:l};else if(n){let l=[];h.Children.forEach(o,s=>{l.push({type:"item",element:s})}),yield*l}}}};function _M(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&h.Children.count(e.children)>0)}var TM=u$,OM=class{build(e,t){return this.context=t,oy(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:t,items:r}=e;if(h.isValidElement(t)&&t.type===h.Fragment)yield*this.iterateCollection({children:t.props.children,items:r});else if(typeof t=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");let n=0;for(let o of r)yield*this.getFullNode({value:o,index:n},{renderer:t}),n++}else{let n=[];h.Children.forEach(t,a=>{a&&n.push(a)});let o=0;for(let a of n){let i=this.getFullNode({element:a,index:o},{});for(let l of i)o++,yield l}}}getKey(e,t,r,n){if(e.key!=null)return e.key;if(t.type==="cell"&&t.key!=null)return`${n}${t.key}`;let o=t.value;if(o!=null){var a;let i=(a=o.key)!==null&&a!==void 0?a:o.id;if(i==null)throw new Error("No key found for item");return i}return n?`${n}.${t.index}`:`$.${t.index}`}getChildState(e,t){return{renderer:t.renderer||e.renderer}}*getFullNode(e,t,r,n){if(h.isValidElement(e.element)&&e.element.type===h.Fragment){let y=[];h.Children.forEach(e.element.props.children,b=>{y.push(b)});var o;let E=(o=e.index)!==null&&o!==void 0?o:0;for(let b of y)yield*this.getFullNode({element:b,index:E++},t,r,n);return}let a=e.element;if(!a&&e.value&&t&&t.renderer){let y=this.cache.get(e.value);if(y&&(!y.shouldInvalidate||!y.shouldInvalidate(this.context))){y.index=e.index,y.parentKey=n?n.key:null,yield y;return}a=t.renderer(e.value)}if(h.isValidElement(a)){let y=a.type;if(typeof y!="function"&&typeof y.getCollectionNode!="function"){let S=a.type;throw new Error(`Unknown element <${S}> in collection.`)}let E=y.getCollectionNode(a.props,this.context);var i;let b=(i=e.index)!==null&&i!==void 0?i:0,v=E.next();for(;!v.done&&v.value;){let S=v.value;e.index=b;var l;let x=(l=S.key)!==null&&l!==void 0?l:null;x==null&&(x=S.element?null:this.getKey(a,e,t,r));let O=[...this.getFullNode({...S,key:x,index:b,wrapper:AM(e.wrapper,S.wrapper)},this.getChildState(t,S),r?`${r}${a.key}`:a.key,n)];for(let w of O){var s,u;w.value=(u=(s=S.value)!==null&&s!==void 0?s:e.value)!==null&&u!==void 0?u:null,w.value&&this.cache.set(w.value,w);var c;if(e.type&&w.type!==e.type)throw new Error(`Unsupported type <${Vu(w.type)}> in <${Vu((c=n?.type)!==null&&c!==void 0?c:"unknown parent type")}>. Only <${Vu(e.type)}> is supported.`);b++,yield w}v=E.next(O)}return}if(e.key==null||e.type==null)return;let d=this;var f,g;let m={type:e.type,props:e.props,key:e.key,parentKey:n?n.key:null,value:(f=e.value)!==null&&f!==void 0?f:null,level:n?n.level+1:0,index:e.index,rendered:e.rendered,textValue:(g=e.textValue)!==null&&g!==void 0?g:"","aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:oy(function*(){if(!e.hasChildNodes||!e.childNodes)return;let y=0;for(let E of e.childNodes()){E.key!=null&&(E.key=`${m.key}${E.key}`);let b=d.getFullNode({...E,index:y},d.getChildState(t,E),m.key,m);for(let v of b)y++,yield v}})};yield m}constructor(){this.cache=new WeakMap}};function oy(e){let t=[],r=null;return{*[Symbol.iterator](){for(let n of t)yield n;r||(r=e());for(let n of r)t.push(n),yield n}}}function AM(e,t){if(e&&t)return r=>e(t(r));if(e)return e;if(t)return t}function Vu(e){return e[0].toUpperCase()+e.slice(1)}function c$(e,t,r){let n=p.useMemo(()=>new OM,[]),{children:o,items:a,collection:i}=e;return p.useMemo(()=>{if(i)return i;let l=n.build({children:o,items:a},r);return t(l)},[n,o,a,i,r,t])}function d$(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function RM(e){return DM(e)}function DM(e,t){for(let r of e)return r}function qu(e,t,r){if(t.parentKey===r.parentKey)return t.index-r.index;let n=[...ay(e,t),t],o=[...ay(e,r),r],a=n.slice(0,o.length).findIndex((i,l)=>i!==o[l]);return a!==-1?(t=n[a],r=o[a],t.index-r.index):n.findIndex(i=>i===r)>=0?1:(o.findIndex(i=>i===t)>=0,-1)}function ay(e,t){let r=[],n=t;for(;n?.parentKey!=null;)n=e.getItem(n.parentKey),n&&r.unshift(n);return r}var iy=new WeakMap;function PM(e){let t=iy.get(e);if(t!=null)return t;let r=0,n=o=>{for(let a of o)a.type==="section"?n(d$(a,e)):a.type==="item"&&r++};return n(e),iy.set(e,r),r}function FM(e,t,r){let{id:n,key:o,closeOnSelect:a,isVirtualized:i,"aria-haspopup":l,onPressStart:s,onPressUp:u,onPress:c,onPressChange:d,onPressEnd:f,onClick:g,onHoverStart:m,onHoverChange:y,onHoverEnd:E,onKeyDown:b,onKeyUp:v,onFocus:S,onFocusChange:x,onBlur:O,selectionManager:w=t.selectionManager}=e,T=!!l,R=T&&e["aria-expanded"]==="true";var I;let P=(I=e.isDisabled)!==null&&I!==void 0?I:w.isDisabled(o);var _;let N=(_=e.isSelected)!==null&&_!==void 0?_:w.isSelected(o),B=a$.get(t),$=t.collection.getItem(o),C=e.onClose||B.onClose,A=_l(),D=()=>{var X;if(!T&&(!($==null||(X=$.props)===null||X===void 0)&&X.onAction?$.props.onAction():e.onAction&&e.onAction(o),B.onAction)){let Qe=B.onAction;Qe(o)}},L="menuitem";T||(w.selectionMode==="single"?L="menuitemradio":w.selectionMode==="multiple"&&(L="menuitemcheckbox"));let M=ui(),k=ui(),H=ui(),z={id:n,"aria-disabled":P||void 0,role:L,"aria-label":e["aria-label"],"aria-labelledby":M,"aria-describedby":[k,H].filter(Boolean).join(" ")||void 0,"aria-controls":e["aria-controls"],"aria-haspopup":l,"aria-expanded":e["aria-expanded"]};w.selectionMode!=="none"&&!T&&(z["aria-checked"]=N),i&&(z["aria-posinset"]=$?.index,z["aria-setsize"]=PM(t.collection));let K=p.useRef(!1),U=X=>{d?.(X),K.current=X},j=p.useRef(null),V=X=>{X.pointerType!=="keyboard"&&(j.current={pointerType:X.pointerType}),X.pointerType==="mouse"&&(K.current||X.target.click()),u?.(X)},G=X=>{var Qe,_t;g?.(X),D(),CL(X,A,$.props.href,$?.props.routerOptions);let ut=((Qe=j.current)===null||Qe===void 0?void 0:Qe.pointerType)==="keyboard"?((_t=j.current)===null||_t===void 0?void 0:_t.key)==="Enter"||w.selectionMode==="none"||w.isLink(o):w.selectionMode!=="multiple"||w.isLink(o);ut=a??ut,C&&!T&&ut&&C(),j.current=null},{itemProps:Z,isFocused:Ee}=s$({id:n,selectionManager:w,key:o,ref:r,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none",shouldUseVirtualFocus:B.shouldUseVirtualFocus}),{pressProps:Le,isPressed:J}=fa({onPressStart:s,onPress:c,onPressUp:V,onPressChange:U,onPressEnd:f,isDisabled:P}),{hoverProps:W}=oo({isDisabled:P,onHoverStart(X){!Xo()&&!(R&&l)&&(w.setFocused(!0),w.setFocusedKey(o)),m?.(X)},onHoverChange:y,onHoverEnd:E}),{keyboardProps:q}=qv({onKeyDown:X=>{if(X.repeat){X.continuePropagation();return}switch(X.key){case" ":j.current={pointerType:"keyboard",key:" "},X.target.click();break;case"Enter":j.current={pointerType:"keyboard",key:"Enter"},X.target.tagName!=="A"&&X.target.click();break;default:T||X.continuePropagation(),b?.(X);break}},onKeyUp:v}),{focusProps:ee}=Vf({onBlur:O,onFocus:S,onFocusChange:x}),se=we($?.props);delete se.id;let Ze=Rv($?.props);return{menuItemProps:{...z,...te(se,Ze,T?{onFocus:Z.onFocus,"data-collection":Z["data-collection"],"data-key":Z["data-key"]}:Z,Le,W,q,ee,B.shouldUseVirtualFocus||T?{onMouseDown:X=>X.preventDefault()}:void 0,P?void 0:{onClick:G}),tabIndex:Z.tabIndex!=null&&R&&!B.shouldUseVirtualFocus?-1:Z.tabIndex},labelProps:{id:M},descriptionProps:{id:k},keyboardShortcutProps:{id:H},isFocused:Ee,isFocusVisible:Ee&&w.isFocused&&Xo()&&!R,isSelected:N,isPressed:J,isDisabled:P}}function IM(e){let{heading:t,"aria-label":r}=e,n=Ue();return{itemProps:{role:"presentation"},headingProps:t?{id:n,role:"presentation"}:{},groupProps:{role:"group","aria-label":r,"aria-labelledby":t?n:void 0}}}var Ga=2,LM=50,kM=1e3,ly=Math.PI/12;function NM(e){let{menuRef:t,submenuRef:r,isOpen:n,isDisabled:o}=e,a=p.useRef(void 0),i=p.useRef(void 0),l=p.useRef(0),s=p.useRef(void 0),u=p.useRef(void 0),c=p.useRef(void 0),d=p.useRef(2),[f,g]=p.useState(!1);Pi({ref:r,onResize:()=>{r.current&&(i.current=r.current.getBoundingClientRect(),c.current=void 0)}});let m=()=>{g(!1),d.current=Ga,a.current=void 0},y=r7(),E=Be(b=>{f&&b.preventDefault()});p.useEffect(()=>{f&&t.current?t.current.style.pointerEvents="none":t.current.style.pointerEvents=""},[t,f]),p.useEffect(()=>{let b=r.current,v=t.current;if(o||!b||!n||y!=="pointer"||!v){m();return}i.current=b.getBoundingClientRect();let S=x=>{if(x.pointerType==="touch"||x.pointerType==="pen")return;let O=Date.now();if(O-l.current<LM)return;clearTimeout(s.current),clearTimeout(u.current);let{clientX:w,clientY:T}=x;if(!a.current){a.current={x:w,y:T};return}if(!i.current)return;if(c.current||(c.current=w>i.current.right?"left":"right"),w<v.getBoundingClientRect().left||w>v.getBoundingClientRect().right||T<v.getBoundingClientRect().top||T>v.getBoundingClientRect().bottom){m();return}let R=a.current.x,I=a.current.y,P=c.current==="right"?i.current.left-R:R-i.current.right,_=Math.atan2(I-i.current.top,P)+ly,N=Math.atan2(I-i.current.bottom,P)-ly,B=Math.atan2(I-T,c.current==="left"?-(w-R):w-R),$=B<_&&B>N;d.current=$?Math.min(d.current+1,Ga):Math.max(d.current-1,0),d.current>=Ga?g(!0):g(!1),l.current=O,a.current={x:w,y:T},$&&(s.current=setTimeout(()=>{m(),u.current=setTimeout(()=>{let C=document.elementFromPoint(w,T);C&&v.contains(C)&&C.dispatchEvent(new PointerEvent("pointerover",{bubbles:!0,cancelable:!0}))},100)},kM))};return window.addEventListener("pointermove",S),window.addEventListener("pointerdown",E,!0),()=>{window.removeEventListener("pointermove",S),window.removeEventListener("pointerdown",E,!0),clearTimeout(s.current),clearTimeout(u.current),d.current=Ga}},[o,n,t,y,g,E,r])}function MM(e,t,r){let{parentMenuRef:n,submenuRef:o,type:a="menu",isDisabled:i,delay:l=200,shouldUseVirtualFocus:s}=e,u=Ue(),c=Ue(),{direction:d}=gr(),f=p.useRef(void 0),g=p.useCallback(()=>{f.current&&(clearTimeout(f.current),f.current=void 0)},[f]),m=Be(R=>{g(),t.open(R)}),y=Be(()=>{g(),t.close()});ce(()=>()=>{g()},[g]);let E=R=>{if(R.currentTarget.contains(document.activeElement))switch(R.key){case"ArrowLeft":d==="ltr"&&R.currentTarget.contains(R.target)&&(R.preventDefault(),R.stopPropagation(),y(),!s&&r.current&&ot(r.current));break;case"ArrowRight":d==="rtl"&&R.currentTarget.contains(R.target)&&(R.preventDefault(),R.stopPropagation(),y(),!s&&r.current&&ot(r.current));break;case"Escape":var I;!((I=o.current)===null||I===void 0)&&I.contains(R.target)&&(R.stopPropagation(),y(),!s&&r.current&&ot(r.current));break}};var b;let v={id:c,"aria-labelledby":u,submenuLevel:t.submenuLevel,...a==="menu"&&{onClose:t.closeAll,autoFocus:(b=t.focusStrategy)!==null&&b!==void 0?b:void 0,onKeyDown:E}},S=R=>{switch(R.key){case"ArrowRight":i||(d==="ltr"?(R.preventDefault(),t.isOpen||m("first"),a==="menu"&&o?.current&&document.activeElement===r?.current&&ot(o.current)):t.isOpen?y():R.continuePropagation());break;case"ArrowLeft":i||(d==="rtl"?(R.preventDefault(),t.isOpen||m("first"),a==="menu"&&o?.current&&document.activeElement===r?.current&&ot(o.current)):t.isOpen?y():R.continuePropagation());break;default:R.continuePropagation();break}},x=R=>{!i&&(R.pointerType==="virtual"||R.pointerType==="keyboard")&&m("first")},O=R=>{!i&&(R.pointerType==="touch"||R.pointerType==="mouse")&&m()},w=R=>{i||(R&&!t.isOpen?f.current||(f.current=setTimeout(()=>{m()},l)):R||g())};To(n,"focusin",R=>{var I;t.isOpen&&!((I=n.current)===null||I===void 0)&&I.contains(R.target)&&R.target!==r.current&&y()});let T=R=>R!==r.current;return NM({menuRef:n,submenuRef:o,isOpen:t.isOpen,isDisabled:i}),{submenuTriggerProps:{id:u,"aria-controls":t.isOpen?c:void 0,"aria-haspopup":i?void 0:a,"aria-expanded":t.isOpen?"true":"false",onPressStart:x,onPress:O,onHoverChange:w,onKeyDown:S,isOpen:t.isOpen},submenuProps:v,popoverProps:{isNonModal:!0,shouldCloseOnInteractOutside:T}}}function f$(e){let t=ha(e),[r,n]=p.useState(null),[o,a]=p.useState([]),i=()=>{a([]),t.close()};return{focusStrategy:r,...t,open(l=null){n(l),t.open()},toggle(l=null){n(l),t.toggle()},close(){i()},expandedKeysStack:o,openSubmenu:(l,s)=>{a(u=>s>u.length?u:[...u.slice(0,s),l])},closeSubmenu:(l,s)=>{a(u=>u[s]===l?u.slice(0,s):u)}}}function BM(e,t){let{triggerKey:r}=e,{expandedKeysStack:n,openSubmenu:o,closeSubmenu:a,close:i}=t,[l]=p.useState(n?.length),s=p.useMemo(()=>n[l]===r,[n,r,l]),[u,c]=p.useState(null),d=p.useCallback(m=>{c(m??null),o(r,l)},[o,l,r]),f=p.useCallback(()=>{c(null),a(r,l)},[a,l,r]),g=p.useCallback(m=>{c(m??null),s?f():d(m)},[f,d,s]);return p.useMemo(()=>({focusStrategy:u,isOpen:s,open:d,close:f,closeAll:i,submenuLevel:l,setOpen:()=>{},toggle:g}),[s,d,f,i,u,g,l])}var jM=class{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);var r;return t&&(r=t.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(e){let t=this.keyMap.get(e);var r;return t&&(r=t.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var t;return(t=this.keyMap.get(e))!==null&&t!==void 0?t:null}at(e){let t=[...this.getKeys()];return this.getItem(t[e])}constructor(e,{expandedKeys:t}={}){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e,t=t||new Set;let r=i=>{if(this.keyMap.set(i.key,i),i.childNodes&&(i.type==="section"||t.has(i.key)))for(let l of i.childNodes)r(l)};for(let i of e)r(i);let n=null,o=0;for(let[i,l]of this.keyMap)n?(n.nextKey=i,l.prevKey=n.key):(this.firstKey=i,l.prevKey=void 0),l.type==="item"&&(l.index=o++),n=l,n.nextKey=void 0;var a;this.lastKey=(a=n?.key)!==null&&a!==void 0?a:null}},ir=class p$ extends Set{constructor(t,r,n){super(t),t instanceof p$?(this.anchorKey=r??t.anchorKey,this.currentKey=n??t.currentKey):(this.anchorKey=r??null,this.currentKey=n??null)}};function HM(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}function up(e){let{selectionMode:t="none",disallowEmptySelection:r=!1,allowDuplicateSelectionEvents:n,selectionBehavior:o="toggle",disabledBehavior:a="all"}=e,i=p.useRef(!1),[,l]=p.useState(!1),s=p.useRef(null),u=p.useRef(null),[,c]=p.useState(null),d=p.useMemo(()=>sy(e.selectedKeys),[e.selectedKeys]),f=p.useMemo(()=>sy(e.defaultSelectedKeys,new ir),[e.defaultSelectedKeys]),[g,m]=Al(d,f,e.onSelectionChange),y=p.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[E,b]=p.useState(o);o==="replace"&&E==="toggle"&&typeof g=="object"&&g.size===0&&b("replace");let v=p.useRef(o);return p.useEffect(()=>{o!==v.current&&(b(o),v.current=o)},[o]),{selectionMode:t,disallowEmptySelection:r,selectionBehavior:E,setSelectionBehavior:b,get isFocused(){return i.current},setFocused(S){i.current=S,l(S)},get focusedKey(){return s.current},get childFocusStrategy(){return u.current},setFocusedKey(S,x="first"){s.current=S,u.current=x,c(S)},selectedKeys:g,setSelectedKeys(S){(n||!HM(S,g))&&m(S)},disabledKeys:y,disabledBehavior:a}}function sy(e,t){return e?e==="all"?"all":new ir(e):t}var cp=class h${get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,r){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,r)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){if(this.state.selectionMode==="none")return!1;let r=this.getKey(t);return r==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(r):this.state.selectedKeys.has(r)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),r=this.state.selectedKeys;return this._isSelectAll=t.every(n=>r.has(n)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let o=this.collection.getItem(n);(!t||o&&qu(this.collection,o,t)<0)&&(t=o)}var r;return(r=t?.key)!==null&&r!==void 0?r:null}get lastSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let o=this.collection.getItem(n);(!t||o&&qu(this.collection,o,t)>0)&&(t=o)}var r;return(r=t?.key)!==null&&r!==void 0?r:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}let r=this.getKey(t);if(r==null)return;let n;if(this.state.selectedKeys==="all")n=new ir([r],r,r);else{let i=this.state.selectedKeys;var o;let l=(o=i.anchorKey)!==null&&o!==void 0?o:r;n=new ir(i,l,r);var a;for(let s of this.getKeyRange(l,(a=i.currentKey)!==null&&a!==void 0?a:r))n.delete(s);for(let s of this.getKeyRange(r,l))this.canSelectItem(s)&&n.add(s)}this.state.setSelectedKeys(n)}getKeyRange(t,r){let n=this.collection.getItem(t),o=this.collection.getItem(r);return n&&o?qu(this.collection,n,o)<=0?this.getKeyRangeInternal(t,r):this.getKeyRangeInternal(r,t):[]}getKeyRangeInternal(t,r){var n;if(!((n=this.layoutDelegate)===null||n===void 0)&&n.getKeyRange)return this.layoutDelegate.getKeyRange(t,r);let o=[],a=t;for(;a!=null;){let i=this.collection.getItem(a);if(i&&(i.type==="item"||i.type==="cell"&&this.allowsCellSelection)&&o.push(a),a===r)return o;a=this.collection.getKeyAfter(a)}return[]}getKey(t){let r=this.collection.getItem(t);if(!r||r.type==="cell"&&this.allowsCellSelection)return t;for(;r&&r.type!=="item"&&r.parentKey!=null;)r=this.collection.getItem(r.parentKey);return!r||r.type!=="item"?null:r.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}let r=this.getKey(t);if(r==null)return;let n=new ir(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);n.has(r)?n.delete(r):this.canSelectItem(r)&&(n.add(r),n.anchorKey=r,n.currentKey=r),!(this.disallowEmptySelection&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(t){if(this.selectionMode==="none")return;let r=this.getKey(t);if(r==null)return;let n=this.canSelectItem(r)?new ir([r],r,r):new ir;this.state.setSelectedKeys(n)}setSelectedKeys(t){if(this.selectionMode==="none")return;let r=new ir;for(let n of t){let o=this.getKey(n);if(o!=null&&(r.add(o),this.selectionMode==="single"))break}this.state.setSelectedKeys(r)}getSelectAllKeys(){let t=[],r=n=>{for(;n!=null;){if(this.canSelectItem(n)){var o;let i=this.collection.getItem(n);i?.type==="item"&&t.push(n);var a;i?.hasChildNodes&&(this.allowsCellSelection||i.type!=="item")&&r((a=(o=RM(d$(i,this.collection)))===null||o===void 0?void 0:o.key)!==null&&a!==void 0?a:null)}n=this.collection.getKeyAfter(n)}};return r(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new ir)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,r){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||r&&(r.pointerType==="touch"||r.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let r=this.selectedKeys;if(t.size!==r.size)return!1;for(let n of t)if(!r.has(n))return!1;for(let n of r)if(!t.has(n))return!1;return!0}canSelectItem(t){var r;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let n=this.collection.getItem(t);return!(!n||!(n==null||(r=n.props)===null||r===void 0)&&r.isDisabled||n.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){var r,n;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!(!((n=this.collection.getItem(t))===null||n===void 0||(r=n.props)===null||r===void 0)&&r.isDisabled))}isLink(t){var r,n;return!!(!((n=this.collection.getItem(t))===null||n===void 0||(r=n.props)===null||r===void 0)&&r.href)}getItemProps(t){var r;return(r=this.collection.getItem(t))===null||r===void 0?void 0:r.props}withCollection(t){return new h$(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(t,r,n){this.collection=t,this.state=r;var o;this.allowsCellSelection=(o=n?.allowsCellSelection)!==null&&o!==void 0?o:!1,this._isSelectAll=null,this.layoutDelegate=n?.layoutDelegate||null}};function UM(e){let{onExpandedChange:t}=e,[r,n]=Al(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,t),o=up(e),a=p.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),i=c$(e,p.useCallback(l=>new jM(l,{expandedKeys:r}),[r]),null);return p.useEffect(()=>{o.focusedKey!=null&&!i.getItem(o.focusedKey)&&o.setFocusedKey(null)},[i,o.focusedKey]),{collection:i,expandedKeys:r,disabledKeys:a,toggleKey:l=>{n(zM(r,l))},setExpandedKeys:n,selectionManager:new cp(i,o)}}function zM(e,t){let r=new Set(e);return r.has(t)?r.delete(t):r.add(t),r}var g$=p.createContext(null),kl=p.createContext(null),zi=p.createContext(null),Ki=p.createContext(null),m$=p.createContext(null),y$=class extends mn{filter(e,t,r){let n=e.getItem(this.firstChildKey);if(n&&r(n.textValue,this)){let o=this.clone();return t.addDescendants(o,e),o}return null}};y$.type="submenutrigger";lp(y$,(e,t,r)=>{let{CollectionBranch:n}=p.useContext(ya),o=p.useContext(kl),a=p.useContext(zi),i=BM({triggerKey:r.key},a),l=p.useRef(null),s=Mt(t),{parentMenuRef:u,shouldUseVirtualFocus:c}=p.useContext(m$),{submenuTriggerProps:d,submenuProps:f,popoverProps:g}=MM({parentMenuRef:u,submenuRef:l,delay:e.delay,shouldUseVirtualFocus:c},i,s);return h.createElement(hr,{values:[[Gi,{...d,onAction:void 0,ref:s}],[g$,{ref:l,...f}],[Nl,i],[sp,{trigger:"SubmenuTrigger",triggerRef:s,placement:"end top","aria-labelledby":f["aria-labelledby"],...g}]]},h.createElement(n,{collection:o.collection,parent:r}),e.children[1])},e=>e.children[0]);p.forwardRef(function(e,t){return[e,t]=Xe(e,t,g$),h.createElement(Gx,{content:h.createElement(qx,e)},r=>h.createElement(KM,{props:e,collection:r,menuRef:t}))});function KM({props:e,collection:t,menuRef:r}){[e,r]=Xe(e,r,ey);let{filter:n,...o}=e,a=p.useMemo(()=>n?t.filter(n):t,[t,n]),i=UM({...e,collection:a,children:void 0}),l=p.useContext(zi),{isVirtualized:s,CollectionRoot:u}=p.useContext(ya),{menuProps:c}=CM({...e,isVirtualized:s,onClose:e.onClose||l?.close},i,r),d=ht({defaultClassName:"react-aria-Menu",className:e.className,style:e.style,values:{isEmpty:i.collection.size===0}}),f=null;i.collection.size===0&&e.renderEmptyState&&(f=h.createElement("div",{role:"menuitem",style:{display:"contents"}},e.renderEmptyState()));let g=we(e,{global:!0});return h.createElement(Qf,null,h.createElement("div",{...te(g,d,c),ref:r,slot:e.slot||void 0,"data-empty":i.collection.size===0||void 0,onScroll:e.onScroll},h.createElement(hr,{values:[[kl,i],[n$,{elementType:"div"}],[Zx,{name:"MenuSection",render:b$}],[m$,{parentMenuRef:r,shouldUseVirtualFocus:o?.shouldUseVirtualFocus}],[Gi,null],[ey,null],[mM,null],[Ki,i.selectionManager],[zi,l??f$({})]]},h.createElement(u,{collection:i.collection,persistedKeys:e$(i.selectionManager.focusedKey),scrollRef:r})),f))}var GM=class extends cp{get focusedKey(){return this.parent.focusedKey}get isFocused(){return this.parent.isFocused}setFocusedKey(e,t){return this.parent.setFocusedKey(e,t)}setFocused(e){this.parent.setFocused(e)}get childFocusStrategy(){return this.parent.childFocusStrategy}constructor(e,t){super(e.collection,t),this.parent=e}};function b$(e,t,r,n="react-aria-MenuSection"){var o,a;let i=p.useContext(kl),{CollectionBranch:l}=p.useContext(ya),[s,u]=Xv();var c;let{headingProps:d,groupProps:f}=IM({heading:u,"aria-label":(c=r.props["aria-label"])!==null&&c!==void 0?c:void 0}),g=ht({defaultClassName:n,className:(o=r.props)===null||o===void 0?void 0:o.className,style:(a=r.props)===null||a===void 0?void 0:a.style,values:{}}),m=p.useContext(Ki),y=up(e),E=e.selectionMode!=null?new GM(m,y):m,b=we(e,{global:!0});return delete b.id,h.createElement("section",{...te(b,g,f),ref:t},h.createElement(hr,{values:[[t$,{...d,ref:s}],[Ki,E]]},h.createElement(l,{collection:i.collection,parent:r})))}lp(jx,b$);var Gi=p.createContext(null);Ll(Bx,function(e,t,r){var n;[e,t]=Xe(e,t,Gi);let o=(n=Yf(Gi))===null||n===void 0?void 0:n.id,a=p.useContext(kl),i=Mt(t),l=p.useContext(Ki),{menuItemProps:s,labelProps:u,descriptionProps:c,keyboardShortcutProps:d,...f}=FM({...e,id:o,key:r.key,selectionManager:l},a,i),{hoverProps:g,isHovered:m}=oo({isDisabled:f.isDisabled}),y=ht({...e,children:r.rendered,defaultClassName:"react-aria-MenuItem",values:{...f,isHovered:m,isFocusVisible:f.isFocusVisible,selectionMode:l.selectionMode,selectionBehavior:l.selectionBehavior,hasSubmenu:!!e["aria-haspopup"],isOpen:e["aria-expanded"]==="true"}}),E=e.href?"a":"div",b=we(e,{global:!0});return delete b.id,delete b.onClick,h.createElement(E,{...te(b,y,s,g),ref:i,"data-disabled":f.isDisabled||void 0,"data-hovered":m||void 0,"data-focused":f.isFocused||void 0,"data-focus-visible":f.isFocusVisible||void 0,"data-pressed":f.isPressed||void 0,"data-selected":f.isSelected||void 0,"data-selection-mode":l.selectionMode==="none"?void 0:l.selectionMode,"data-has-submenu":!!e["aria-haspopup"]||void 0,"data-open":e["aria-expanded"]==="true"||void 0},h.createElement(hr,{values:[[Sx,{slots:{[Ni]:u,label:u,description:c}}],[r$,d]]},y.children))});function WM(e,t){let{role:r="dialog"}=e,n=ui();n=e["aria-label"]?void 0:n;let o=p.useRef(!1);return p.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){Or(t.current);let a=setTimeout(()=>{(document.activeElement===t.current||document.activeElement===document.body)&&(o.current=!0,t.current&&(t.current.blur(),Or(t.current)),o.current=!1)},500);return()=>{clearTimeout(a)}}},[t]),sx(),{dialogProps:{...we(e,{labelable:!0}),role:r,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||n,onBlur:a=>{o.current&&a.stopPropagation()}},titleProps:{id:n}}}var E$=p.createContext(null),Nl=p.createContext(null);function VM(e){let t=f$(e),r=p.useRef(null),{triggerProps:n,overlayProps:o}=Yk({},t,r),[a,i]=p.useState(null),l=p.useCallback(()=>{r.current&&i(r.current.offsetWidth+"px")},[r]);return Pi({ref:r,onResize:l}),n.id=Ue(),o["aria-labelledby"]=n.id,h.createElement(hr,{values:[[Nl,t],[zi,t],[E$,o],[sp,{trigger:"DialogTrigger",triggerRef:r,"aria-labelledby":o["aria-labelledby"],style:{"--trigger-width":a}}]]},h.createElement(c7,{...n,ref:r,isPressed:t.isOpen},e.children))}p.forwardRef(function(e,t){let r=e["aria-labelledby"];[e,t]=Xe(e,t,E$);let{dialogProps:n,titleProps:o}=WM({...e,"aria-labelledby":r},t),a=p.useContext(Nl);!n["aria-label"]&&!n["aria-labelledby"]&&(e["aria-labelledby"]&&(n["aria-labelledby"]=e["aria-labelledby"]));let i=ht({defaultClassName:"react-aria-Dialog",className:e.className,style:e.style,children:e.children,values:{close:a?.close||(()=>{})}}),l=we(e,{global:!0});return h.createElement("section",{...te(l,i,n),ref:t,slot:e.slot||void 0},h.createElement(hr,{values:[[vx,{slots:{[Ni]:{},title:{...o,level:2}}}],[Jx,{slots:{[Ni]:{},close:{onPress:()=>a?.close()}}}]]},i.children))});var dp=({ariaLabel:e,placement:t="bottom-start",hasChrome:r=!0,hasCloseButton:n=!1,closeLabel:o,offset:a=8,padding:i,popover:l,children:s,defaultVisible:u,visible:c,onVisibleChange:d,...f})=>{e||J9("The 'ariaLabel' prop on 'PopoverProvider' will become mandatory in Storybook 11. Provide a concise, accessible label describing the popover's purpose.");let g=rp(t),[m,y]=p.useState(u??!1),E=p.useCallback(v=>{y(v),d?.(v)},[d]),b=p.useCallback(()=>E(!1),[E]);return h.createElement(VM,{defaultOpen:u,isOpen:c??m,onOpenChange:E,...f},h.createElement(u7,null,p.cloneElement(s,{"aria-haspopup":"dialog"})),h.createElement(pM,{"aria-label":e,placement:g,offset:a,style:{outline:"none"}},h.createElement(ma,{hasChrome:r,hideLabel:o,onHide:n?b:void 0,padding:i},typeof l=="function"?l({onHide:b}):l)))},v$=p.forwardRef((e,t)=>h.createElement(ma,{ref:t,...e}));v$.displayName="Tooltip";p.lazy(()=>cr(()=>import("./WithTooltip-65CFNBJE-CEiAC9o_.js"),__vite__mapDeps([5,1,2,3]),import.meta.url).then(e=>({default:e.WithTooltip})));p.lazy(()=>cr(()=>import("./WithTooltip-65CFNBJE-CEiAC9o_.js"),__vite__mapDeps([5,1,2,3]),import.meta.url).then(e=>({default:e.WithTooltipPure})));const{deprecate:hX}=__STORYBOOK_MODULE_CLIENT_LOGGER__;F.div(({theme:e})=>({fontWeight:e.typography.weight.bold}));F.span();F.div(({theme:e})=>({marginTop:8,textAlign:"center","> *":{margin:"0 8px",fontWeight:e.typography.weight.bold}}));F.div(({theme:e})=>({color:e.color.defaultText,lineHeight:"18px"}));F.div({padding:15,width:280,boxSizing:"border-box"});const{deprecate:qM}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var YM=rt(sn(),1);const{deprecate:XM}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var JM=F(({active:e,loading:t,disabled:r,...n})=>h.createElement("span",{...n}))(({theme:e})=>({color:e.color.defaultText,fontWeight:e.typography.weight.regular}),({active:e,theme:t})=>e?{color:t.color.secondary,fontWeight:t.typography.weight.bold}:{},({loading:e,theme:t})=>e?{display:"inline-block",flex:"none",...t.animation.inlineGlow}:{},({disabled:e,theme:t})=>e?{color:t.textMutedColor}:{}),ZM=F.span({display:"flex","& svg":{height:12,width:12,margin:"3px 0",verticalAlign:"top"}}),QM=F.span({flex:1,textAlign:"left",display:"flex",flexDirection:"column",minWidth:0},({isIndented:e})=>e?{marginLeft:24}:{}),eB=F.span(({theme:e})=>({fontSize:"11px",lineHeight:"14px"}),({active:e,theme:t})=>e?{color:t.color.secondary}:{},({theme:e,disabled:t})=>t?{color:e.textMutedColor}:{}),tB=F.span(({active:e,theme:t})=>e?{color:t.color.secondary}:{},()=>({display:"flex",maxWidth:14})),rB=F.button(({theme:e})=>({width:"100%",minWidth:0,border:"none",borderRadius:e.appBorderRadius,background:"none",fontSize:e.typography.size.s1,transition:"background 150ms ease-out",color:e.color.dark,textDecoration:"none",justifyContent:"space-between",lineHeight:"18px",padding:"7px 10px",display:"flex",alignItems:"center","& > * + *":{paddingLeft:10},"&:focus-visible":{outline:`2px solid ${e.color.secondary}`,outlineOffset:0}}),({theme:e,href:t,onClick:r})=>(t||r)&&{cursor:"pointer","&:hover":{background:e.background.hoverable},"&:hover svg":{opacity:1}},({theme:e,as:t})=>t==="label"&&{"&:has(input:not(:disabled))":{cursor:"pointer","&:hover":{background:e.background.hoverable}}},({disabled:e})=>e&&{cursor:"not-allowed"}),nB=(0,YM.default)(100)(({onClick:e,input:t,href:r,LinkWrapper:n})=>({...e&&{as:"button",role:"button",onClick:e},...t&&{as:"label"},...r&&{as:"a",role:"link",href:r,...n&&{as:n,to:r}}})),S$=p.forwardRef((e,t)=>{let{loading:r=!1,title:n=h.createElement("span",null,"Loading state"),center:o=null,right:a=null,active:i=!1,disabled:l=!1,isIndented:s=!1,href:u=void 0,onClick:c=void 0,icon:d,input:f,LinkWrapper:g=void 0,...m}=e,y={active:i,disabled:l},E=nB(e),b=d||f;return XM("`ListItem` is deprecated and will be removed in Storybook 11, use `MenuItem` instead."),h.createElement(rB,{"data-deprecated":"ListItem",ref:t,...m,...y,...E},h.createElement(h.Fragment,null,b&&h.createElement(tB,{...y},b),n||o?h.createElement(QM,{isIndented:s&&!b},n&&h.createElement(JM,{...y,loading:r},n),o&&h.createElement(eB,{...y},o)):null,a&&h.createElement(ZM,{...y},a)))});S$.displayName="ListItem";var x$=S$,oB=F.div({minWidth:180,overflow:"hidden",overflowY:"auto",maxHeight:15.5*32+8},({theme:e})=>({borderRadius:e.appBorderRadius+2}),({theme:e})=>e.base==="dark"?{background:e.background.content}:{}),aB=F.div(({theme:e})=>({padding:4,"& + &":{borderTop:`1px solid ${e.appBorderColor}`}})),iB=({id:e,onClick:t,...r})=>{let{active:n,disabled:o,title:a,href:i}=r,l=p.useCallback(s=>t?.(s,{id:e,active:n,disabled:o,title:a,href:i}),[t,e,n,o,a,i]);return h.createElement(x$,{id:`list-item-${e}`,...r,...t&&{onClick:l}})},$$=({links:e,LinkWrapper:t,...r})=>{qM("`TooltipLinkList` is deprecated and will be removed in Storybook 11, use `ActionList` or `MenuItem` and `WithMenu` instead.");let n=Array.isArray(e[0])?e:[e],o=n.some(a=>a.some(i=>"icon"in i&&i.icon||"input"in i&&i.input));return h.createElement(oB,{"data-deprecated":"TooltipLinkList",...r,className:"sb-list"},n.filter(a=>a.length).map((a,i)=>h.createElement(aB,{key:a.map(l=>l.id).join(`~${i}~`)},a.map(l=>"content"in l?h.createElement(p.Fragment,{key:l.id},l.content):h.createElement(iB,{key:l.id,isIndented:o,LinkWrapper:t,...l})))))};const{deprecate:Ml}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{deprecate:lB}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var sB=F.div(({backgroundColor:e,border:t=!1,innerStyle:r={},scrollable:n,theme:o})=>({color:o.barTextColor,width:"100%",minHeight:40,flexShrink:0,scrollbarColor:`${o.barTextColor} ${t?e||o.barBg:"transparent"}`,scrollbarWidth:"thin",overflow:n?"auto":"hidden",overflowY:"hidden",display:"flex",alignItems:"center",gap:n?0:6,paddingInline:n?0:6,...t?{boxShadow:`${o.appBorderColor} 0 -1px 0 0 inset`,background:e||o.barBg}:{},...r})),uB=F.div(({innerStyle:e})=>({minHeight:40,display:"flex",alignItems:"center",width:"100%",gap:6,paddingInline:6,...e})),ao=p.forwardRef(({scrollable:e=!0,children:t,innerStyle:r,...n},o)=>h.createElement(sB,{...n,ref:o,innerStyle:e?void 0:r,scrollable:e},e?h.createElement(uB,{innerStyle:r},t):t));ao.displayName="Bar";var Sd=F.div({display:"flex",whiteSpace:"nowrap",flexBasis:"auto",marginLeft:3,marginRight:10},({scrollable:e})=>e?{flexShrink:0}:{},({left:e})=>e?{"& > *":{marginLeft:4}}:{},({right:e})=>e?{gap:6}:{});Sd.displayName="Side";var cB=F.div(({bgColor:e})=>({display:"flex",justifyContent:"space-between",position:"relative",flexWrap:"nowrap",flexShrink:0,height:40,width:"100%",backgroundColor:e||""})),dB=F(ao)({paddingInline:0}),fp=({children:e,backgroundColor:t,className:r="",...n})=>{lB('FlexBar is deprecated. Use Bar with justifyContent: "space-between" instead.');let[o,a]=p.Children.toArray(e);return h.createElement(dB,{"data-deprecated":"FlexBar",backgroundColor:t,className:`sb-bar ${r}`,...n},h.createElement(cB,{bgColor:t},h.createElement(Sd,{scrollable:n.scrollable,left:!0},o),a?h.createElement(Sd,{right:!0},a):null))};fp.displayName="FlexBar";const{deprecate:fB}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var pB=e=>typeof e.props.href=="string",hB=e=>typeof e.props.href!="string";function gB({children:e,...t},r){let n={props:t,ref:r};if(pB(n))return h.createElement("a",{ref:n.ref,...n.props},e);if(hB(n))return h.createElement("button",{ref:n.ref,type:"button",...n.props},e);throw new Error("invalid props")}var w$=p.forwardRef(gB);w$.displayName="ButtonOrLink";var mB=F(w$,{shouldForwardProp:ll})({whiteSpace:"normal",display:"inline-flex",overflow:"hidden",verticalAlign:"top",justifyContent:"center",alignItems:"center",textAlign:"center",textDecoration:"none","&:empty":{display:"none"},"&[hidden]":{display:"none"}},({theme:e})=>({padding:"0 15px",transition:"color 0.2s linear, border-bottom-color 0.2s linear",height:40,lineHeight:"12px",cursor:"pointer",background:"transparent",border:"0 solid transparent",borderTop:"3px solid transparent",borderBottom:"3px solid transparent",fontWeight:"bold",fontSize:13,"&:focus":{outline:"0 none",borderBottomColor:e.barSelectedColor}}),({active:e,textColor:t,theme:r})=>e?{color:t||r.barSelectedColor,borderBottomColor:r.barSelectedColor}:{color:t||r.barTextColor,borderBottomColor:"transparent","&:hover":{color:r.barHoverColor}}),ba=p.forwardRef((e,t)=>(fB("The `TabButton` component is deprecated. Use `TabList` instead."),h.createElement(mB,{"data-deprecated":"TabButton",ref:t,...e})));ba.displayName="TabButton";var yB=F.div(({theme:e})=>({height:"100%",display:"flex",padding:30,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:e.background.content})),bB=F.div({display:"flex",flexDirection:"column",gap:4,maxWidth:415}),EB=F.div(({theme:e})=>({fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,textAlign:"center",color:e.color.defaultText})),vB=F.div(({theme:e})=>({fontSize:e.typography.size.s2-1})),SB=F.div(({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s2-1,textAlign:"center",color:e.textMutedColor})),Ea=({title:e,description:t,footer:r})=>h.createElement(yB,null,h.createElement(bB,null,h.createElement(EB,null,e),t&&h.createElement(SB,null,t)),r&&h.createElement(vB,null,r));const{deprecate:xB}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var C$=F.div(({active:e})=>e?{display:"block"}:{display:"none"}),$B=e=>(xB("The `childrenToList` tabs helper is deprecated. Use `TabsView` instead."),p.Children.toArray(e).map(({props:{title:t,id:r,color:n,children:o}})=>{let a=Array.isArray(o)?o[0]:o;return{title:t,id:r,...n?{color:n}:{},render:typeof a=="function"?a:({active:i})=>h.createElement(C$,{active:i,role:"tabpanel"},a)}}));const{deprecate:wB}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var CB=F.span(({theme:e,isActive:t})=>({display:"inline-block",width:0,height:0,marginLeft:8,color:t?e.color.secondary:e.color.mediumdark,borderRight:"3px solid transparent",borderLeft:"3px solid transparent",borderTop:"3px solid",transition:"transform .1s ease-out"})),_B=F(ba)(({active:e,theme:t,preActive:r})=>`
|
|
676
|
+
color: ${r||e?t.barSelectedColor:t.barTextColor};
|
|
677
|
+
.addon-collapsible-icon {
|
|
678
|
+
color: ${r||e?t.barSelectedColor:t.barTextColor};
|
|
679
|
+
}
|
|
680
|
+
&:hover {
|
|
681
|
+
color: ${t.barHoverColor};
|
|
682
|
+
.addon-collapsible-icon {
|
|
683
|
+
color: ${t.barHoverColor};
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
`);function TB(e){wB("The `useList` tabs hook is deprecated. Use `TabsView` instead.");let t=p.useRef(),r=p.useRef(),n=p.useRef(new Map),{width:o=1}=Ax({ref:t}),[a,i]=p.useState(e),[l,s]=p.useState([]),u=p.useRef(e),c=p.useCallback(({menuName:f,actions:g})=>{let m=l.some(({active:b})=>b),[y,E]=p.useState(!1);return h.createElement(h.Fragment,null,h.createElement(dp,{ariaLabel:"Additional tabs",visible:y,onVisibleChange:E,placement:"bottom",popover:h.createElement($$,{links:l.map(({title:b,id:v,color:S,active:x})=>({id:v,title:b,color:S,active:x,onClick:O=>{O.preventDefault(),g.onSelect(v)}}))})},h.createElement(_B,{id:"addons-menu-button",ref:r,active:m,preActive:y,style:{visibility:l.length?"visible":"hidden"},"aria-hidden":!l.length,className:"tabbutton",type:"button",role:"tab"},f,h.createElement(CB,{className:"addon-collapsible-icon",isActive:m||y}))),l.map(({title:b,id:v,color:S},x)=>{let O=`index-${x}`;return h.createElement(ba,{id:`tabbutton-${Hn(v)??O}`,style:{visibility:"hidden"},"aria-hidden":!0,tabIndex:-1,ref:w=>{n.current.set(v,w)},className:"tabbutton",type:"button",key:v,textColor:S,role:"tab"},b)}))},[l]),d=p.useCallback(()=>{if(!t.current||!r.current)return;let{x:f,width:g}=t.current.getBoundingClientRect(),{width:m}=r.current.getBoundingClientRect(),y=l.length?f+g-m:f+g,E=[],b=0,v=e.filter(S=>{let{id:x}=S,O=n.current.get(x),{width:w=0}=O?.getBoundingClientRect()||{},T=f+b+w>y;return(!T||!O)&&E.push(S),b+=w,T});(E.length!==a.length||u.current!==e)&&(i(E),s(v),u.current=e)},[l.length,e,a]);return p.useLayoutEffect(d,[d,o]),{tabRefs:n,addonsRef:r,tabBarRef:t,visibleList:a,invisibleList:l,AddonTab:c}}var OB="/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */",AB=F.div(({theme:e,bordered:t})=>t?{backgroundClip:"padding-box",border:`1px solid ${e.appBorderColor}`,borderRadius:e.appBorderRadius,overflow:"hidden",boxSizing:"border-box"}:{},({absolute:e})=>e?{width:"100%",height:"100%",boxSizing:"border-box",display:"flex",flexDirection:"column"}:{display:"block"}),RB=F.div({overflow:"hidden","&:first-of-type":{marginLeft:-3},whiteSpace:"nowrap",flexGrow:1}),pp=p.forwardRef((e,t)=>(Ml("The `TabBar` component is deprecated. Use `TabsView` instead."),h.createElement(RB,{"data-deprecated":"TabBar",...e,ref:t})));pp.displayName="TabBar";var DB=F.div({display:"block",position:"relative",container:"tab-content / inline-size"},({theme:e})=>({fontSize:e.typography.size.s2-1,background:e.background.content}),({bordered:e,theme:t})=>e?{borderRadius:`0 0 ${t.appBorderRadius-1}px ${t.appBorderRadius-1}px`}:{},({absolute:e,bordered:t})=>e?{height:`calc(100% - ${t?42:40}px)`,position:"absolute",left:0+(t?1:0),right:0+(t?1:0),bottom:0+(t?1:0),top:40+(t?1:0),overflow:"auto",[`& > *:first-child${OB}`]:{position:"absolute",left:0+(t?1:0),right:0+(t?1:0),bottom:0+(t?1:0),top:0+(t?1:0),height:`calc(100% - ${t?2:0}px)`,overflow:"auto"}}:{}),_$=p.forwardRef(({active:e,render:t,children:r},n)=>(Ml("The `TabWrapper` component is deprecated. Use `TabsView` instead."),h.createElement(C$,{"data-deprecated":"TabWrapper",ref:n,active:e},t?t():r)));_$.displayName="TabWrapper";var PB=class extends p.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){console.error("Error rendering addon panel"),console.error(e),console.error(t.componentStack)}render(){return this.state.hasError&&this.props.active?h.createElement(Ea,{title:"This addon has errors",description:"Check your browser logs and addon code to pinpoint what went wrong. This issue was not caused by Storybook."}):this.props.children}},hp=p.memo(({children:e,selected:t=null,actions:r,absolute:n=!1,bordered:o=!1,tools:a=null,backgroundColor:i,id:l=null,menuName:s="Tabs",emptyState:u,showToolsWhenEmpty:c})=>{Ml("The `Tabs` component is deprecated. Use `TabsView` instead.");let d=p.useMemo(()=>$B(e).map((b,v)=>({...b,active:t?b.id===t:v===0})),[e,t]),{visibleList:f,tabBarRef:g,tabRefs:m,AddonTab:y}=TB(d),E=u??h.createElement(Ea,{title:"Nothing found"});return!c&&d.length===0?E:h.createElement(AB,{"data-deprecated":"Tabs",absolute:n,bordered:o,id:l},h.createElement(fp,{scrollable:!1,border:!0,backgroundColor:i},h.createElement(pp,{style:{whiteSpace:"normal"},ref:g,role:"tablist"},f.map(({title:b,id:v,active:S,color:x},O)=>{let w=`index-${O}`;return h.createElement(ba,{id:`tabbutton-${Hn(v)??w}`,ref:T=>{m.current.set(v,T)},className:`tabbutton ${S?"tabbutton-active":""}`,type:"button",key:v,active:S,textColor:x,onClick:T=>{T.preventDefault(),r.onSelect(v)},role:"tab","aria-selected":S},typeof b=="function"?h.createElement("title",null):b)}),h.createElement(y,{menuName:s,actions:r})),a),h.createElement(DB,{id:"panel-tab-content",bordered:o,absolute:n},d.length?d.map(({id:b,active:v,render:S})=>h.createElement(PB,{key:b,active:v},h.createElement(S,{active:v},null))):E))});hp.displayName="Tabs";var T$=class extends p.Component{constructor(e){super(e),this.handlers={onSelect:t=>this.setState({selected:t})},Ml("The `TabsState` class is deprecated. Use `TabsView` instead."),this.state={selected:e.initial}}render(){let{bordered:e=!1,absolute:t=!1,children:r,backgroundColor:n,menuName:o}=this.props,{selected:a}=this.state;return h.createElement(hp,{bordered:e,absolute:t,selected:a,backgroundColor:n,menuName:o,actions:this.handlers},r)}};T$.defaultProps={children:[],initial:null,absolute:!1,bordered:!1,backgroundColor:"",menuName:void 0};var O$=F.span(({theme:e})=>({display:"inline-block",width:1,height:20,background:e.appBorderColor,marginLeft:2,marginRight:2}),({force:e})=>e?{}:{"& + &":{display:"none"}});O$.displayName="Separator";F.div(({theme:e})=>({fontSize:e.typography.size.s2-1,height:"100%"}));function FB(e,t){let{"aria-label":r,"aria-labelledby":n,orientation:o="horizontal"}=e,[a,i]=p.useState(!1);ce(()=>{var m;i(!!(t.current&&!((m=t.current.parentElement)===null||m===void 0)&&m.closest('[role="toolbar"]')))});let{direction:l}=gr(),s=l==="rtl"&&o==="horizontal",u=Kk(t),c=m=>{if(m.currentTarget.contains(m.target)){if(o==="horizontal"&&m.key==="ArrowRight"||o==="vertical"&&m.key==="ArrowDown")s?u.focusPrevious():u.focusNext();else if(o==="horizontal"&&m.key==="ArrowLeft"||o==="vertical"&&m.key==="ArrowUp")s?u.focusNext():u.focusPrevious();else if(m.key==="Tab"){m.stopPropagation(),d.current=document.activeElement,m.shiftKey?u.focusFirst():u.focusLast();return}else return;m.stopPropagation(),m.preventDefault()}},d=p.useRef(null),f=m=>{!m.currentTarget.contains(m.relatedTarget)&&!d.current&&(d.current=m.target)},g=m=>{var y;if(d.current&&!m.currentTarget.contains(m.relatedTarget)&&!((y=t.current)===null||y===void 0)&&y.contains(m.target)){var E;(E=d.current)===null||E===void 0||E.focus(),d.current=null}};return{toolbarProps:{...we(e,{labelable:!0}),role:a?"group":"toolbar","aria-orientation":o,"aria-label":r,"aria-labelledby":r==null?n:void 0,onKeyDownCapture:a?void 0:c,onFocusCapture:a?void 0:g,onBlurCapture:a?void 0:f}}}var A$=({"aria-label":e,"aria-labelledby":t,...r})=>{let n=p.useRef(null),{toolbarProps:o}=FB({"aria-label":e,"aria-labelledby":t,orientation:"horizontal"},n);return h.createElement(ao,{ref:n,...o,...r})},R$=new WeakMap;function Wi(e,t,r){return e?(typeof t=="string"&&(t=t.replace(/\s+/g,"")),`${R$.get(e)}-${r}-${t}`):""}function D$(e,t,r){let{key:n,isDisabled:o,shouldSelectOnPressUp:a}=e,{selectionManager:i,selectedKey:l}=t,s=n===l,u=o||t.isDisabled||t.selectionManager.isDisabled(n),{itemProps:c,isPressed:d}=s$({selectionManager:i,key:n,ref:r,isDisabled:u,shouldSelectOnPressUp:a,linkBehavior:"selection"}),f=Wi(t,n,"tab"),g=Wi(t,n,"tabpanel"),{tabIndex:m}=c,y=t.collection.getItem(n),E=we(y?.props,{labelable:!0});delete E.id;let b=Rv(y?.props),{focusableProps:v}=pa({isDisabled:u},r);return{tabProps:te(E,v,b,c,{id:f,"aria-selected":s,"aria-disabled":u||void 0,"aria-controls":s?g:void 0,tabIndex:u?void 0:m,role:"tab"}),isSelected:s,isDisabled:u,isPressed:d}}function P$(e,t,r){let n=Wk(r)?void 0:0;var o;let a=Wi(t,(o=e.id)!==null&&o!==void 0?o:t?.selectedKey,"tabpanel"),i=Ol({...e,id:a,"aria-labelledby":Wi(t,t?.selectedKey,"tab")});return{tabPanelProps:te(i,{tabIndex:n,role:"tabpanel","aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]})}}var IB=class{getKeyLeftOf(e){return this.flipDirection?this.getNextKey(e):this.getPreviousKey(e)}getKeyRightOf(e){return this.flipDirection?this.getPreviousKey(e):this.getNextKey(e)}isDisabled(e){var t,r;return this.disabledKeys.has(e)||!!(!((r=this.collection.getItem(e))===null||r===void 0||(t=r.props)===null||t===void 0)&&t.isDisabled)}getFirstKey(){let e=this.collection.getFirstKey();return e!=null&&this.isDisabled(e)&&(e=this.getNextKey(e)),e}getLastKey(){let e=this.collection.getLastKey();return e!=null&&this.isDisabled(e)&&(e=this.getPreviousKey(e)),e}getKeyAbove(e){return this.tabDirection?null:this.getPreviousKey(e)}getKeyBelow(e){return this.tabDirection?null:this.getNextKey(e)}getNextKey(e){let t=e;do t=this.collection.getKeyAfter(t),t==null&&(t=this.collection.getFirstKey());while(t!=null&&this.isDisabled(t));return t}getPreviousKey(e){let t=e;do t=this.collection.getKeyBefore(t),t==null&&(t=this.collection.getLastKey());while(t!=null&&this.isDisabled(t));return t}constructor(e,t,r,n=new Set){this.collection=e,this.flipDirection=t==="rtl"&&r==="horizontal",this.disabledKeys=n,this.tabDirection=r==="horizontal"}};function F$(e,t,r){let{orientation:n="horizontal",keyboardActivation:o="automatic"}=e,{collection:a,selectionManager:i,disabledKeys:l}=t,{direction:s}=gr(),u=p.useMemo(()=>new IB(a,s,n,l),[a,l,n,s]),{collectionProps:c}=l$({ref:r,selectionManager:i,keyboardDelegate:u,selectOnFocus:o==="automatic",disallowEmptySelection:!0,scrollRef:r,linkBehavior:"selection"}),d=Ue();R$.set(t,d);let f=Ol({...e,id:d});return{tabListProps:{...te(c,f),role:"tablist","aria-orientation":n,tabIndex:void 0}}}var LB=F.button({whiteSpace:"normal",display:"inline-flex",overflow:"hidden",verticalAlign:"top",justifyContent:"center",alignItems:"center",textAlign:"center",textDecoration:"none",scrollSnapAlign:"start","&:empty":{display:"none"},"&[hidden]":{display:"none"}},({theme:e})=>({padding:"0 15px",transition:"color 0.2s linear, border-bottom-color 0.2s linear",height:40,lineHeight:"12px",cursor:"pointer",background:"transparent",border:"0 solid transparent",borderTop:"3px solid transparent",borderBottom:"3px solid transparent",fontWeight:"bold",fontSize:13,"&:focus-visible":{outline:"0 none",boxShadow:`inset 0 0 0 2px ${e.barSelectedColor}`}}),({isSelected:e,theme:t})=>e?{color:t.barSelectedColor,borderBottomColor:t.barSelectedColor}:{color:t.barTextColor,borderBottomColor:"transparent","&:hover":{color:t.barHoverColor}}),kB=F.div({display:"flex",alignItems:"center",flexShrink:0,position:"relative",overflow:"hidden"}),NB=F.div({display:"flex",overflowX:"auto",scrollbarWidth:"none",msOverflowStyle:"none",WebkitScrollbar:"none",scrollSnapType:"x mandatory",flex:1,"&::-webkit-scrollbar":{display:"none"}}),MB=F.div({display:"flex",flexShrink:0}),uy=28,cy=F.div(({$showStartBorder:e,$showEndBorder:t,theme:r})=>({flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",padding:6,boxShadow:e?`inset 1px 0 0 ${r.appBorderColor}`:t?`inset -1px 0 0 ${r.appBorderColor}`:"none"})),dy=F(be)({flexShrink:0,paddingInline:0,width:16}),BB=({item:e,state:t})=>{let{rendered:r}=e,n=h.useRef(null),o=t,{tabProps:a,isDisabled:i,isPressed:l,isSelected:s}=D$(e,o,n);return h.createElement(LB,{...a,isDisabled:i,isPressed:l,isSelected:s,className:`tabbutton ${s?"tabbutton-active":""}`,ref:n},r)},I$=({state:e,...t})=>{let r=p.useRef(null),n=p.useRef(null),o=p.useRef(null),{tabListProps:a}=F$({orientation:"horizontal"},e,o),[i,l]=p.useState(!1),[s,u]=p.useState(!1),[c,d]=p.useState(!1),f=p.useCallback(()=>{let b=n.current,v=r.current;if(!b||!v)return;let{scrollLeft:S,scrollWidth:x,clientWidth:O}=b,w=v.clientWidth-(i?uy*2:0),T=x>w;l(T),T?(u(S>0),d(S<x-O)):(u(!1),d(!1))},[i]),g=p.useCallback(()=>{f()},[f]);p.useEffect(()=>{let b=n.current;if(!b||typeof window>"u")return;b.addEventListener("scroll",g,{passive:!0});let v=null;typeof ResizeObserver<"u"&&(v=new ResizeObserver(g),v.observe(b));let S=setTimeout(g,0);return()=>{clearTimeout(S),b.removeEventListener("scroll",g),v&&v.disconnect()}},[g]);let m=p.useCallback(b=>{let v=n.current,S=r.current;if(!v||!S||typeof window>"u")return;let x=S.clientWidth-uy*2,O=b==="backward"?-x:x;typeof v.scrollBy=="function"?v.scrollBy({left:O,behavior:"smooth"}):v.scrollLeft+=O},[]),y=p.useCallback(()=>m("backward"),[m]),E=p.useCallback(()=>m("forward"),[m]);return h.createElement(kB,{...t,ref:r,"data-show-scroll-buttons":i},i&&h.createElement(cy,{$showEndBorder:s},h.createElement(dy,{variant:"ghost",padding:"small",size:"small",ariaLabel:"Scroll backward",disabled:!s,onClick:y,tabIndex:-1},h.createElement(ZO,null))),h.createElement(NB,{ref:n},h.createElement(MB,{ref:o,...a},[...e.collection].map(b=>h.createElement(BB,{key:b.key,item:b,state:e})))),i&&h.createElement(cy,{$showStartBorder:c},h.createElement(dy,{variant:"ghost",padding:"small",size:"small",ariaLabel:"Scroll forward",disabled:!c,onClick:E,tabIndex:-1},h.createElement(QO,null))))},jB=F.div({overflowY:"hidden",height:"100%"}),L$=({hasScrollbar:e=!0,renderAllChildren:t=!1,state:r})=>{let n=p.useRef(null),o=r,{tabPanelProps:a}=P$(o.selectedItem??{},o,n);return(t?[...o.collection]:[o.selectedItem]).filter(i=>!!i).map(i=>{let l=o.selectedKey===i.key;return h.createElement(jB,{key:i.key,ref:l?n:void 0,...l?a:{},id:l?`${a.id}`.replace(/null$/,`${i.key}`):void 0,hidden:l?void 0:!0},e?h.createElement(qd,{vertical:!0},i.props.children):i.props.children)})},fy=class{*[Symbol.iterator](){yield*this.iterable}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);var r;return t&&(r=t.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(e){let t=this.keyMap.get(e);var r;return t&&(r=t.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var t;return(t=this.keyMap.get(e))!==null&&t!==void 0?t:null}at(e){let t=[...this.getKeys()];return this.getItem(t[e])}getChildren(e){return this.keyMap.get(e)?.childNodes||[]}constructor(e){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e;let t=i=>{if(this.keyMap.set(i.key,i),i.childNodes&&i.type==="section")for(let l of i.childNodes)t(l)};for(let i of e)t(i);let r=null,n=0,o=0;for(let[i,l]of this.keyMap)r?(r.nextKey=i,l.prevKey=r.key):(this.firstKey=i,l.prevKey=void 0),l.type==="item"&&(l.index=n++),(l.type==="section"||l.type==="item")&&o++,r=l,r.nextKey=void 0;this._size=o;var a;this.lastKey=(a=r?.key)!==null&&a!==void 0?a:null}};function HB(e){let{filter:t,layoutDelegate:r}=e,n=up(e),o=p.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),a=p.useCallback(u=>t?new fy(t(u)):new fy(u),[t]),i=p.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),l=c$(e,a,i),s=p.useMemo(()=>new cp(l,n,{layoutDelegate:r}),[l,n,r]);return UB(l,s),{collection:l,disabledKeys:o,selectionManager:s}}function UB(e,t){let r=p.useRef(null);p.useEffect(()=>{if(t.focusedKey!=null&&!e.getItem(t.focusedKey)&&r.current){let c=r.current.getItem(t.focusedKey),d=[...r.current.getKeys()].map(b=>{let v=r.current.getItem(b);return v?.type==="item"?v:null}).filter(b=>b!==null),f=[...e.getKeys()].map(b=>{let v=e.getItem(b);return v?.type==="item"?v:null}).filter(b=>b!==null);var n,o;let g=((n=d?.length)!==null&&n!==void 0?n:0)-((o=f?.length)!==null&&o!==void 0?o:0);var a,i,l;let m=Math.min(g>1?Math.max(((a=c?.index)!==null&&a!==void 0?a:0)-g+1,0):(i=c?.index)!==null&&i!==void 0?i:0,((l=f?.length)!==null&&l!==void 0?l:0)-1),y=null,E=!1;for(;m>=0;){if(!t.isDisabled(f[m].key)){y=f[m];break}if(m<f.length-1&&!E)m++;else{E=!0;var s,u;m>((s=c?.index)!==null&&s!==void 0?s:0)&&(m=(u=c?.index)!==null&&u!==void 0?u:0),m--}}t.setFocusedKey(y?y.key:null)}r.current=e},[e,t])}function zB(e){var t;let[r,n]=Al(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),o=p.useMemo(()=>r!=null?[r]:[],[r]),{collection:a,disabledKeys:i,selectionManager:l}=HB({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:o,onSelectionChange:u=>{if(u==="all")return;var c;let d=(c=u.values().next().value)!==null&&c!==void 0?c:null;d===r&&e.onSelectionChange&&e.onSelectionChange(d),n(d)}}),s=r!=null?a.getItem(r):null;return{collection:a,disabledKeys:i,selectionManager:l,selectedKey:r,setSelectedKey:n,selectedItem:s}}function k$(e){var t,r;let n=zB({...e,onSelectionChange:e.onSelectionChange?s=>{var u;s!=null&&((u=e.onSelectionChange)===null||u===void 0||u.call(e,s))}:void 0,suppressTextValueWarning:!0,defaultSelectedKey:(r=(t=e.defaultSelectedKey)!==null&&t!==void 0?t:py(e.collection,e.disabledKeys?new Set(e.disabledKeys):new Set))!==null&&r!==void 0?r:void 0}),{selectionManager:o,collection:a,selectedKey:i}=n,l=p.useRef(i);return p.useEffect(()=>{let s=i;e.selectedKey==null&&(o.isEmpty||s==null||!a.getItem(s))&&(s=py(a,n.disabledKeys),s!=null&&o.setSelectedKeys([s])),(s!=null&&o.focusedKey==null||!o.isFocused&&s!==l.current)&&o.setFocusedKey(s),l.current=s}),{...n,isDisabled:e.isDisabled||!1}}function py(e,t){let r=null;if(e){var n,o,a,i;for(r=e.getFirstKey();r!=null&&(t.has(r)||!((o=e.getItem(r))===null||o===void 0||(n=o.props)===null||n===void 0)&&n.isDisabled)&&r!==e.getLastKey();)r=e.getKeyAfter(r);r!=null&&(t.has(r)||!((i=e.getItem(r))===null||i===void 0||(a=i.props)===null||a===void 0)&&a.isDisabled)&&r===e.getLastKey()&&(r=e.getFirstKey())}return r}var N$=({defaultSelected:e,onSelectionChange:t,selected:r,tabs:n})=>k$({children:n.map(({children:o,id:a,"aria-label":i,title:l})=>h.createElement(TM,{key:a,"aria-label":i,title:typeof l=="function"?h.createElement(l,null):l},typeof o=="function"?h.createElement(o,null):o)),disabledKeys:n.filter(({isDisabled:o})=>o).map(({id:o})=>o),defaultSelectedKey:e,onSelectionChange:o=>t?.(`${o}`),selectedKey:r}),KB=F.div({display:"flex",flexDirection:"column",height:"100%"}),GB=F(L$)(()=>({flex:1})),WB=F(I$)(({$simulatedGap:e})=>({flex:"1 1 0%",'&[data-show-scroll-buttons="true"]':{marginInlineEnd:e}})),M$=({backgroundColor:e,barInnerStyle:t,defaultSelected:r,emptyState:n,onSelectionChange:o,panelProps:a={},selected:i,showToolsWhenEmpty:l,tabs:s,tools:u,...c})=>{let d=N$({defaultSelected:r,onSelectionChange:o,selected:i,tabs:s}),f=n??h.createElement(Ea,{title:"Nothing found"}),g=s.length>0;return!l&&!g?f:h.createElement(KB,{...c},h.createElement(ao,{scrollable:!1,border:!0,backgroundColor:e,innerStyle:{display:"flex",justifyContent:"space-between",paddingInlineStart:0,paddingInlineEnd:10,"> *:not(:last-child)":{order:2},"> *":{flexShrink:0},...t,gap:0}},u,g?h.createElement(WB,{state:d,$simulatedGap:t?.gap??6}):h.createElement("div",null)),g?h.createElement(GB,{state:d,...a}):f)},Bl=p.createContext(null),Vn=p.createContext(null),VB=p.forwardRef(function(e,t){[e,t]=Xe(e,t,Bl);let{children:r,orientation:n="horizontal"}=e;return r=p.useMemo(()=>typeof r=="function"?r({orientation:n,defaultChildren:null}):r,[r,n]),h.createElement(Gx,{content:r},o=>h.createElement(qB,{props:e,collection:o,tabsRef:t}))});function qB({props:e,tabsRef:t,collection:r}){let{orientation:n="horizontal"}=e,o=k$({...e,collection:r,children:void 0}),{focusProps:a,isFocused:i,isFocusVisible:l}=Pl({within:!0}),s=p.useMemo(()=>({orientation:n,isFocusWithin:i,isFocusVisible:l}),[n,i,l]),u=ht({...e,defaultClassName:"react-aria-Tabs",values:s}),c=we(e,{global:!0});return h.createElement("div",{...te(c,u,a),ref:t,slot:e.slot||void 0,"data-focused":i||void 0,"data-orientation":n,"data-focus-visible":l||void 0,"data-disabled":o.isDisabled||void 0},h.createElement(hr,{values:[[Bl,e],[Vn,o]]},u.children))}var YB=p.forwardRef(function(e,t){return p.useContext(Vn)?h.createElement(XB,{props:e,forwardedRef:t}):h.createElement(qx,e)});function XB({props:e,forwardedRef:t}){let r=p.useContext(Vn),{CollectionRoot:n}=p.useContext(ya),{orientation:o="horizontal",keyboardActivation:a="automatic"}=Yf(Bl),i=Mt(t),{tabListProps:l}=F$({...e,orientation:o,keyboardActivation:a},r,i),s=ht({...e,children:null,defaultClassName:"react-aria-TabList",values:{orientation:o,state:r}}),u=we(e,{global:!0});return delete u.id,h.createElement("div",{...te(u,s,l),ref:i,"data-orientation":o||void 0},h.createElement(n,{collection:r.collection,persistedKeys:e$(r.selectionManager.focusedKey)}))}var B$=class extends mn{};B$.type="item";var JB=Ll(B$,(e,t,r)=>{let n=p.useContext(Vn),o=Mt(t),{tabProps:a,isSelected:i,isDisabled:l,isPressed:s}=D$({key:r.key,...e},n,o),{focusProps:u,isFocused:c,isFocusVisible:d}=Pl(),{hoverProps:f,isHovered:g}=oo({isDisabled:l,onHoverStart:e.onHoverStart,onHoverEnd:e.onHoverEnd,onHoverChange:e.onHoverChange}),m=ht({...e,children:r.rendered,defaultClassName:"react-aria-Tab",values:{isSelected:i,isDisabled:l,isFocused:c,isFocusVisible:d,isPressed:s,isHovered:g}}),y=r.props.href?"a":"div",E=we(e,{global:!0});return delete E.id,delete E.onClick,h.createElement(y,{...te(E,m,a,u,f),ref:o,"data-selected":i||void 0,"data-disabled":l||void 0,"data-focused":c||void 0,"data-focus-visible":d||void 0,"data-pressed":s||void 0,"data-hovered":g||void 0},m.children)}),ZB=ip(function(e,t){let r=p.useContext(Vn),n=Mt(t),{id:o,...a}=e,{tabPanelProps:i}=P$(e,r,n),{focusProps:l,isFocused:s,isFocusVisible:u}=Pl(),c=r.selectedKey===e.id,d=ht({...e,defaultClassName:"react-aria-TabPanel",values:{isFocused:s,isFocusVisible:u,isInert:r0(!c),state:r}});if(!c&&!e.shouldForceMount)return null;let f=we(a,{global:!0});delete f.id;let g=c?te(f,i,l,d):d;return h.createElement("div",{...g,ref:n,"data-focused":s||void 0,"data-focus-visible":u||void 0,inert:r0(!c||e.inert),"data-inert":c?void 0:"true"},h.createElement(hr,{values:[[Bl,null],[Vn,null]]},h.createElement(ya.Provider,{value:Qx},d.children)))});F.div({display:"flex",alignItems:"center",flexShrink:0,position:"relative",overflow:"hidden"});F.div({display:"flex",overflowX:"auto",scrollbarWidth:"none",msOverflowStyle:"none",WebkitScrollbar:"none",scrollSnapType:"x mandatory",flex:1,"&::-webkit-scrollbar":{display:"none"}});F(YB)({display:"flex",flexShrink:0});F.div(({$showStartBorder:e,$showEndBorder:t,theme:r})=>({flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",padding:6,boxShadow:e?`inset 1px 0 0 ${r.appBorderColor}`:t?`inset -1px 0 0 ${r.appBorderColor}`:"none"}));F(be)({flexShrink:0,paddingInline:0,width:16});F(ZB)({overflowY:"hidden",height:"100%",display:"block",'&[inert="true"]':{display:"none"}});F(VB)(({$simulatedGap:e})=>({display:"flex",flexDirection:"column",height:"100%",".tablist":{flex:"1 1 100%"},".tablist.tablist-has-scroll":{marginInlineEnd:e},"& > :not(:first-child)":{flex:1}}));F(JB)(({theme:e})=>({whiteSpace:"normal",display:"inline-flex",overflow:"hidden",verticalAlign:"top",justifyContent:"center",alignItems:"center",textAlign:"center",textDecoration:"none",scrollSnapAlign:"start","&:empty":{display:"none"},"&[hidden]":{display:"none"},padding:"0 15px",transition:"color 0.2s linear, border-bottom-color 0.2s linear",height:40,lineHeight:"12px",cursor:"pointer",background:"transparent",border:"0 solid transparent",borderTop:"3px solid transparent",borderBottom:"3px solid transparent",fontWeight:"bold",fontSize:13,"&:focus-visible":{outline:"0 none",boxShadow:`inset 0 0 0 2px ${e.barSelectedColor}`},color:e.barTextColor,borderBottomColor:"transparent","&:hover":{color:e.barHoverColor},"&[data-selected]":{color:e.barSelectedColor,borderBottomColor:e.barSelectedColor}}));var QB=Ne`
|
|
687
|
+
from {
|
|
688
|
+
transform: rotate(0deg);
|
|
689
|
+
}
|
|
690
|
+
to {
|
|
691
|
+
transform: rotate(360deg);
|
|
692
|
+
}
|
|
693
|
+
`,ej=F.div(({size:e=32})=>({borderRadius:"50%",cursor:"progress",display:"inline-block",overflow:"hidden",position:"absolute",transition:"all 200ms ease-out",verticalAlign:"top",top:"50%",left:"50%",marginTop:-(e/2),marginLeft:-(e/2),height:e,width:e,zIndex:4,borderWidth:2,borderStyle:"solid",borderColor:"rgba(97, 97, 97, 0.29)",borderTopColor:"rgb(100,100,100)",animation:`${QB} 0.7s linear infinite`,mixBlendMode:"difference"})),hy=F.div({position:"absolute",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"}),tj=F.div(({theme:e})=>({position:"relative",width:"80%",marginBottom:"0.75rem",maxWidth:300,height:5,borderRadius:5,background:dr(.8,e.color.secondary),overflow:"hidden",cursor:"progress"})),rj=F.div(({theme:e})=>({position:"absolute",top:0,left:0,height:"100%",background:e.color.secondary})),gy=F.div(({theme:e})=>({minHeight:"2em",fontSize:`${e.typography.size.s1}px`,color:e.textMutedColor})),nj=F(HO)(({theme:e})=>({width:20,height:20,marginBottom:"0.5rem",color:e.textMutedColor})),oj=Ne`
|
|
694
|
+
from { content: "..." }
|
|
695
|
+
33% { content: "." }
|
|
696
|
+
66% { content: ".." }
|
|
697
|
+
to { content: "..." }
|
|
698
|
+
`,aj=F.span({"&::after":{content:"'...'",animation:`${oj} 1s linear infinite`,animationDelay:"1s",display:"inline-block",width:"1em",height:"auto"}}),j$=({progress:e,error:t,size:r,...n})=>{if(t)return h.createElement(hy,{"aria-label":t.toString(),"aria-live":"polite",role:"status",...n},h.createElement(nj,null),h.createElement(gy,null,t.message));if(e){let{value:o,modules:a}=e,{message:i}=e;return a&&(i+=` ${a.complete} / ${a.total} modules`),h.createElement(hy,{"aria-label":"Content is loading...","aria-live":"polite","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":o*100,"aria-valuetext":i,role:"progressbar",...n},h.createElement(tj,null,h.createElement(rj,{style:{width:`${o*100}%`}})),h.createElement(gy,null,i,o<1&&h.createElement(aj,{key:i})))}return h.createElement(ej,{"aria-label":"Content is loading...","aria-live":"polite",role:"status",size:r,...n})},ij=Ne({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}});F.div(({size:e})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",minWidth:e,minHeight:e}));F.svg(({size:e,width:t})=>({position:"absolute",width:`${e}px!important`,height:`${e}px!important`,transform:"rotate(-90deg)",circle:{r:(e-Math.ceil(t))/2,cx:e/2,cy:e/2,opacity:.15,fill:"transparent",stroke:"currentColor",strokeWidth:t,strokeLinecap:"round",strokeDasharray:Math.PI*(e-Math.ceil(t))}}),({progress:e})=>e&&{circle:{opacity:.75}},({spinner:e})=>e&&{animation:`${ij} 1s linear infinite`,circle:{opacity:.25}});const{deprecate:gX}=__STORYBOOK_MODULE_CLIENT_LOGGER__;F.pre`
|
|
699
|
+
line-height: 18px;
|
|
700
|
+
padding: 11px 1rem;
|
|
701
|
+
white-space: pre-wrap;
|
|
702
|
+
background: rgba(0, 0, 0, 0.05);
|
|
703
|
+
color: ${Y.darkest};
|
|
704
|
+
border-radius: 3px;
|
|
705
|
+
margin: 1rem 0;
|
|
706
|
+
width: 100%;
|
|
707
|
+
display: block;
|
|
708
|
+
overflow: hidden;
|
|
709
|
+
font-family: ${Ft.fonts.mono};
|
|
710
|
+
font-size: ${Ft.size.s2-1}px;
|
|
711
|
+
`;var H$=Sv;Object.keys(Sv).forEach(e=>{p.forwardRef((t,r)=>p.createElement(e,{...t,ref:r}))});const lj=Object.freeze(Object.defineProperty({__proto__:null,A:nv,ActionBar:tO,ActionList:fi,Bar:ao,Blockquote:ov,Button:be,Code:Lf,DL:av,Div:iv,EmptyTabContent:Ea,ErrorFormatter:Dx,FlexBar:fp,Form:gn,H1:lv,H2:kf,H3:Nf,H4:sv,H5:uv,H6:cv,HR:dv,IconButton:px,Img:fv,LI:pv,Link:zn,ListItem:x$,Loader:j$,OL:hv,P:gv,Popover:ma,PopoverProvider:dp,Pre:mv,ResetWrapper:If,ScrollArea:qd,Select:kx,Separator:O$,Span:yv,SyntaxHighlighter:ca,TT:bv,TabBar:pp,TabButton:ba,TabList:I$,TabPanel:L$,TabWrapper:_$,Table:Ev,Tabs:hp,TabsState:T$,TabsView:M$,ToggleButton:ga,Toolbar:A$,Tooltip:v$,TooltipLinkList:$$,TooltipNote:$v,TooltipProvider:dx,UL:vv,Zoom:Rx,codeCommon:fr,components:H$,convertToReactAriaPlacement:rp,createCopyToClipboardFunction:N8,nameSpaceClassNames:ve,useTabsState:N$,withReset:$e},Symbol.toStringTag,{value:"Module"}));function st(){return st=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},st.apply(null,arguments)}function sj(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qo(e,t){return Qo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Qo(e,t)}function uj(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Qo(e,t)}function xd(e){return xd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},xd(e)}function cj(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function U$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(U$=function(){return!!e})()}function dj(e,t,r){if(U$())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&Qo(o,r.prototype),o}function $d(e){var t=typeof Map=="function"?new Map:void 0;return $d=function(r){if(r===null||!cj(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,n)}function n(){return dj(r,arguments,xd(this).constructor)}return n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Qo(n,r)},$d(e)}var Yt=(function(e){uj(t,e);function t(r){var n;return n=e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+r+" for more information.")||this,sj(n)}return t})($d(Error));function Yu(e){return Math.round(e*255)}function fj(e,t,r){return Yu(e)+","+Yu(t)+","+Yu(r)}function Vi(e,t,r,n){if(n===void 0&&(n=fj),t===0)return n(r,r,r);var o=(e%360+360)%360/60,a=(1-Math.abs(2*r-1))*t,i=a*(1-Math.abs(o%2-1)),l=0,s=0,u=0;o>=0&&o<1?(l=a,s=i):o>=1&&o<2?(l=i,s=a):o>=2&&o<3?(s=a,u=i):o>=3&&o<4?(s=i,u=a):o>=4&&o<5?(l=i,u=a):o>=5&&o<6&&(l=a,u=i);var c=r-a/2,d=l+c,f=s+c,g=u+c;return n(d,f,g)}var my={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function pj(e){if(typeof e!="string")return e;var t=e.toLowerCase();return my[t]?"#"+my[t]:e}var hj=/^#[a-fA-F0-9]{6}$/,gj=/^#[a-fA-F0-9]{8}$/,mj=/^#[a-fA-F0-9]{3}$/,yj=/^#[a-fA-F0-9]{4}$/,Xu=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,bj=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,Ej=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,vj=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function qn(e){if(typeof e!="string")throw new Yt(3);var t=pj(e);if(t.match(hj))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(gj)){var r=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:r}}if(t.match(mj))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(yj)){var n=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:n}}var o=Xu.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var a=bj.exec(t.substring(0,50));if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10),alpha:parseFloat(""+a[4])>1?parseFloat(""+a[4])/100:parseFloat(""+a[4])};var i=Ej.exec(t);if(i){var l=parseInt(""+i[1],10),s=parseInt(""+i[2],10)/100,u=parseInt(""+i[3],10)/100,c="rgb("+Vi(l,s,u)+")",d=Xu.exec(c);if(!d)throw new Yt(4,t,c);return{red:parseInt(""+d[1],10),green:parseInt(""+d[2],10),blue:parseInt(""+d[3],10)}}var f=vj.exec(t.substring(0,50));if(f){var g=parseInt(""+f[1],10),m=parseInt(""+f[2],10)/100,y=parseInt(""+f[3],10)/100,E="rgb("+Vi(g,m,y)+")",b=Xu.exec(E);if(!b)throw new Yt(4,t,E);return{red:parseInt(""+b[1],10),green:parseInt(""+b[2],10),blue:parseInt(""+b[3],10),alpha:parseFloat(""+f[4])>1?parseFloat(""+f[4])/100:parseFloat(""+f[4])}}throw new Yt(5)}function Sj(e){var t=e.red/255,r=e.green/255,n=e.blue/255,o=Math.max(t,r,n),a=Math.min(t,r,n),i=(o+a)/2;if(o===a)return e.alpha!==void 0?{hue:0,saturation:0,lightness:i,alpha:e.alpha}:{hue:0,saturation:0,lightness:i};var l,s=o-a,u=i>.5?s/(2-o-a):s/(o+a);switch(o){case t:l=(r-n)/s+(r<n?6:0);break;case r:l=(n-t)/s+2;break;default:l=(t-r)/s+4;break}return l*=60,e.alpha!==void 0?{hue:l,saturation:u,lightness:i,alpha:e.alpha}:{hue:l,saturation:u,lightness:i}}function Pr(e){return Sj(qn(e))}var xj=function(e){return e.length===7&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e},wd=xj;function Wr(e){var t=e.toString(16);return t.length===1?"0"+t:t}function Ju(e){return Wr(Math.round(e*255))}function $j(e,t,r){return wd("#"+Ju(e)+Ju(t)+Ju(r))}function z$(e,t,r){return Vi(e,t,r,$j)}function wj(e,t,r){if(typeof e=="object"&&t===void 0&&r===void 0)return z$(e.hue,e.saturation,e.lightness);throw new Yt(1)}function Cj(e,t,r,n){if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?z$(e.hue,e.saturation,e.lightness):"rgba("+Vi(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new Yt(2)}function Cd(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return wd("#"+Wr(e)+Wr(t)+Wr(r));if(typeof e=="object"&&t===void 0&&r===void 0)return wd("#"+Wr(e.red)+Wr(e.green)+Wr(e.blue));throw new Yt(6)}function Yn(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var o=qn(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}else{if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?Cd(e,t,r):"rgba("+e+","+t+","+r+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?Cd(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new Yt(7)}var _j=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},Tj=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},Oj=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},Aj=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"};function Fr(e){if(typeof e!="object")throw new Yt(8);if(Tj(e))return Yn(e);if(_j(e))return Cd(e);if(Aj(e))return Cj(e);if(Oj(e))return wj(e);throw new Yt(8)}function K$(e,t,r){return function(){var n=r.concat(Array.prototype.slice.call(arguments));return n.length>=t?e.apply(this,n):K$(e,t,n)}}function gt(e){return K$(e,e.length,[])}function Rj(e,t){if(t==="transparent")return t;var r=Pr(t);return Fr(st({},r,{hue:r.hue+parseFloat(e)}))}gt(Rj);function io(e,t,r){return Math.max(e,Math.min(t,r))}function Dj(e,t){if(t==="transparent")return t;var r=Pr(t);return Fr(st({},r,{lightness:io(0,1,r.lightness-parseFloat(e))}))}var Pj=gt(Dj),Io=Pj;function Fj(e,t){if(t==="transparent")return t;var r=Pr(t);return Fr(st({},r,{saturation:io(0,1,r.saturation-parseFloat(e))}))}gt(Fj);function Ij(e,t){if(t==="transparent")return t;var r=Pr(t);return Fr(st({},r,{lightness:io(0,1,r.lightness+parseFloat(e))}))}var Lj=gt(Ij),_d=Lj;function kj(e,t,r){if(t==="transparent")return r;if(r==="transparent")return t;if(e===0)return r;var n=qn(t),o=st({},n,{alpha:typeof n.alpha=="number"?n.alpha:1}),a=qn(r),i=st({},a,{alpha:typeof a.alpha=="number"?a.alpha:1}),l=o.alpha-i.alpha,s=parseFloat(e)*2-1,u=s*l===-1?s:s+l,c=1+s*l,d=(u/c+1)/2,f=1-d,g={red:Math.floor(o.red*d+i.red*f),green:Math.floor(o.green*d+i.green*f),blue:Math.floor(o.blue*d+i.blue*f),alpha:o.alpha*parseFloat(e)+i.alpha*(1-parseFloat(e))};return Yn(g)}var Nj=gt(kj),G$=Nj;function Mj(e,t){if(t==="transparent")return t;var r=qn(t),n=typeof r.alpha=="number"?r.alpha:1,o=st({},r,{alpha:io(0,1,(n*100+parseFloat(e)*100)/100)});return Yn(o)}var Bj=gt(Mj),Zu=Bj;function jj(e,t){if(t==="transparent")return t;var r=Pr(t);return Fr(st({},r,{saturation:io(0,1,r.saturation+parseFloat(e))}))}gt(jj);function Hj(e,t){return t==="transparent"?t:Fr(st({},Pr(t),{hue:parseFloat(e)}))}gt(Hj);function Uj(e,t){return t==="transparent"?t:Fr(st({},Pr(t),{lightness:parseFloat(e)}))}gt(Uj);function zj(e,t){return t==="transparent"?t:Fr(st({},Pr(t),{saturation:parseFloat(e)}))}gt(zj);function Kj(e,t){return t==="transparent"?t:G$(parseFloat(e),"rgb(0, 0, 0)",t)}gt(Kj);function Gj(e,t){return t==="transparent"?t:G$(parseFloat(e),"rgb(255, 255, 255)",t)}gt(Gj);function Wj(e,t){if(t==="transparent")return t;var r=qn(t),n=typeof r.alpha=="number"?r.alpha:1,o=st({},r,{alpha:io(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return Yn(o)}var Vj=gt(Wj),Ae=Vj,qj=F.div($e,({theme:e})=>({backgroundColor:e.base==="light"?"rgba(0,0,0,.01)":"rgba(255,255,255,.01)",borderRadius:e.appBorderRadius,border:`1px dashed ${e.appBorderColor}`,display:"flex",alignItems:"center",justifyContent:"center",padding:20,margin:"25px 0 40px",color:Ae(.3,e.color.defaultText),fontSize:e.typography.size.s2})),W$=e=>h.createElement(qj,{...e,className:"docblock-emptyblock sb-unstyled"}),Yj=F(ca)(({theme:e})=>({fontSize:`${e.typography.size.s2-1}px`,lineHeight:"19px",margin:"25px 0 40px",borderRadius:e.appBorderRadius,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}})),Xj=F.div(({theme:e})=>({background:e.background.content,borderRadius:e.appBorderRadius,border:`1px solid ${e.appBorderColor}`,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",margin:"25px 0 40px",padding:"20px 20px 20px 22px"})),Wa=F.div(({theme:e})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,height:17,marginTop:1,width:"60%",[`&:first-child${xi}`]:{margin:0}})),Jj=()=>h.createElement(Xj,null,h.createElement(Wa,null),h.createElement(Wa,{style:{width:"80%"}}),h.createElement(Wa,{style:{width:"30%"}}),h.createElement(Wa,{style:{width:"80%"}})),jl=({isLoading:e,error:t,language:r,code:n,dark:o,format:a=!0,copyable:i=!0,...l})=>{let{typography:s}=al();if(e)return h.createElement(Jj,null);if(t)return h.createElement(W$,null,t);let u=h.createElement(Yj,{bordered:!0,copyable:i,format:a,language:r??"jsx",className:"docblock-source sb-unstyled",...l},n);if(typeof o>"u")return u;let c=o?Jr.dark:Jr.light;return h.createElement(Ud,{theme:Si({...c,fontCode:s.fonts.mono,fontBase:s.fonts.base})},u)};const Td={},V$=h.createContext(Td);function gp(e){const t=h.useContext(V$);return h.useMemo(function(){return typeof e=="function"?e(t):{...t,...e}},[t,e])}function Zj(e){let t;return e.disableParentContext?t=typeof e.components=="function"?e.components(Td):e.components||Td:t=gp(e.components),h.createElement(V$.Provider,{value:t},e.children)}const Qj=Object.freeze(Object.defineProperty({__proto__:null,MDXProvider:Zj,useMDXComponents:gp},Symbol.toStringTag,{value:"Module"}));function eH(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Array.from(typeof e=="string"?[e]:e);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,"");var o=n.reduce(function(l,s){var u=s.match(/\n([\t ]+|(?!\s).)/g);return u?l.concat(u.map(function(c){var d,f;return(f=(d=c.match(/[\t ]/g))===null||d===void 0?void 0:d.length)!==null&&f!==void 0?f:0})):l},[]);if(o.length){var a=new RegExp(`
|
|
712
|
+
[ ]{`+Math.min.apply(Math,o)+"}","g");n=n.map(function(l){return l.replace(a,`
|
|
713
|
+
`)})}n[0]=n[0].replace(/^\r?\n/,"");var i=n[0];return t.forEach(function(l,s){var u=i.match(/(?:^|\n)( *)$/),c=u?u[1]:"",d=l;typeof l=="string"&&l.includes(`
|
|
714
|
+
`)&&(d=String(l).split(`
|
|
715
|
+
`).map(function(f,g){return g===0?f:""+c+f}).join(`
|
|
716
|
+
`)),i+=d+n[s+1]}),i}const{once:tH}=__STORYBOOK_MODULE_CLIENT_LOGGER__;function rH(e){return e==null||typeof e!="object"&&typeof e!="function"}function nH(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function oH(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function aH(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}var iH="[object RegExp]",lH="[object String]",sH="[object Number]",uH="[object Boolean]",cH="[object Arguments]",dH="[object Symbol]",fH="[object Date]",pH="[object Map]",hH="[object Set]",gH="[object Array]",mH="[object ArrayBuffer]",yH="[object Object]",bH="[object DataView]",EH="[object Uint8Array]",vH="[object Uint8ClampedArray]",SH="[object Uint16Array]",xH="[object Uint32Array]",$H="[object Int8Array]",wH="[object Int16Array]",CH="[object Int32Array]",_H="[object Float32Array]",TH="[object Float64Array]";function On(e,t,r,n=new Map,o=void 0){let a=o?.(e,t,r,n);if(a!==void 0)return a;if(rH(e))return e;if(n.has(e))return n.get(e);if(Array.isArray(e)){let i=new Array(e.length);n.set(e,i);for(let l=0;l<e.length;l++)i[l]=On(e[l],l,r,n,o);return Object.hasOwn(e,"index")&&(i.index=e.index),Object.hasOwn(e,"input")&&(i.input=e.input),i}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){let i=new RegExp(e.source,e.flags);return i.lastIndex=e.lastIndex,i}if(e instanceof Map){let i=new Map;n.set(e,i);for(let[l,s]of e)i.set(l,On(s,l,r,n,o));return i}if(e instanceof Set){let i=new Set;n.set(e,i);for(let l of e)i.add(On(l,void 0,r,n,o));return i}if(typeof Buffer<"u"&&Buffer.isBuffer(e))return e.subarray();if(nH(e)){let i=new(Object.getPrototypeOf(e)).constructor(e.length);n.set(e,i);for(let l=0;l<e.length;l++)i[l]=On(e[l],l,r,n,o);return i}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){let i=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return n.set(e,i),yr(i,e,r,n,o),i}if(typeof File<"u"&&e instanceof File){let i=new File([e],e.name,{type:e.type});return n.set(e,i),yr(i,e,r,n,o),i}if(typeof Blob<"u"&&e instanceof Blob){let i=new Blob([e],{type:e.type});return n.set(e,i),yr(i,e,r,n,o),i}if(e instanceof Error){let i=new e.constructor;return n.set(e,i),i.message=e.message,i.name=e.name,i.stack=e.stack,i.cause=e.cause,yr(i,e,r,n,o),i}if(e instanceof Boolean){let i=new Boolean(e.valueOf());return n.set(e,i),yr(i,e,r,n,o),i}if(e instanceof Number){let i=new Number(e.valueOf());return n.set(e,i),yr(i,e,r,n,o),i}if(e instanceof String){let i=new String(e.valueOf());return n.set(e,i),yr(i,e,r,n,o),i}if(typeof e=="object"&&OH(e)){let i=Object.create(Object.getPrototypeOf(e));return n.set(e,i),yr(i,e,r,n,o),i}return e}function yr(e,t,r=e,n,o){let a=[...Object.keys(t),...oH(t)];for(let i=0;i<a.length;i++){let l=a[i],s=Object.getOwnPropertyDescriptor(e,l);(s==null||s.writable)&&(e[l]=On(t[l],l,r,n,o))}}function OH(e){switch(aH(e)){case cH:case gH:case mH:case bH:case uH:case fH:case _H:case TH:case $H:case wH:case CH:case pH:case sH:case yH:case iH:case hH:case lH:case dH:case EH:case vH:case SH:case xH:return!0;default:return!1}}function AH(e){return On(e,void 0,e,new Map,void 0)}function RH(e,t){let r={},n=Object.keys(e);for(let o=0;o<n.length;o++){let a=n[o],i=e[a];t(i,a)&&(r[a]=i)}return r}function qr(){return qr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qr.apply(this,arguments)}var DH=["children","options"],yy=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((e,t)=>(e[t.toLowerCase()]=t,e),{class:"className",for:"htmlFor"}),by={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},PH=["style","script","pre"],FH=["src","href","data","formAction","srcDoc","action"],IH=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,LH=/\n{2,}$/,Ey=/^(\s*>[\s\S]*?)(?=\n\n|$)/,kH=/^ *> ?/gm,NH=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,MH=/^ {2,}\n/,BH=/^(?:([-*_])( *\1){2,}) *(?:\n *)+\n/,vy=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,Sy=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,jH=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,HH=/^(?:\n *)*\n/,UH=/\r\n?/g,zH=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,KH=/^\[\^([^\]]+)]/,GH=/\f/g,WH=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,VH=/^\s*?\[(x|\s)\]/,xy=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,$y=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,wy=/^([^\n]+)\n *(=|-)\2{2,} *\n/,Qu=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,qH=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,Cy=/^<!--[\s\S]*?(?:-->)/,YH=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,ec=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,XH=/^\{.*\}$/,JH=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,ZH=/^<([^ >]+[:@\/][^ >]+)>/,QH=/-([a-z])?/gi,_y=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,eU=/^[^\n]+(?: \n|\n{2,})/,tU=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,rU=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,nU=/^\[([^\]]*)\] ?\[([^\]]*)\]/,oU=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,aU=/\t/g,iU=/(^ *\||\| *$)/g,lU=/^ *:-+: *$/,sU=/^ *:-+ *$/,uU=/^ *-+: *$/,Hl=e=>`(?=[\\s\\S]+?\\1${e?"\\1":""})`,Ul="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",cU=RegExp(`^([*_])\\1${Hl(1)}${Ul}\\1\\1(?!\\1)`),dU=RegExp(`^([*_])${Hl(0)}${Ul}\\1(?!\\1)`),fU=RegExp(`^(==)${Hl(0)}${Ul}\\1`),pU=RegExp(`^(~~)${Hl(0)}${Ul}\\1`),hU=/^(:[a-zA-Z0-9-_]+:)/,gU=/^\\([^0-9A-Za-z\s])/,mU=/\\([^0-9A-Za-z\s])/g,yU=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,bU=/^\n+/,EU=/^([ \t]*)/,vU=/(?:^|\n)( *)$/,mp="(?:\\d+\\.)",yp="(?:[*+-])";function q$(e){return"( *)("+(e===1?mp:yp)+") +"}var Y$=q$(1),X$=q$(2);function J$(e){return RegExp("^"+(e===1?Y$:X$))}var SU=J$(1),xU=J$(2);function Z$(e){return RegExp("^"+(e===1?Y$:X$)+"[^\\n]*(?:\\n(?!\\1"+(e===1?mp:yp)+" )[^\\n]*)*(\\n|$)","gm")}var $U=Z$(1),wU=Z$(2);function Q$(e){let t=e===1?mp:yp;return RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}var ew=Q$(1),tw=Q$(2);function Ty(e,t){let r=t===1,n=r?ew:tw,o=r?$U:wU,a=r?SU:xU;return{t:i=>a.test(i),o:Xn(function(i,l){let s=vU.exec(l.prevCapture);return s&&(l.list||!l.inline&&!l.simple)?n.exec(i=s[1]+i):null}),i:1,u(i,l,s){let u=r?+i[2]:void 0,c=i[0].replace(LH,`
|
|
717
|
+
`).match(o),d=!1;return{items:c.map(function(f,g){let m=a.exec(f)[0].length,y=RegExp("^ {1,"+m+"}","gm"),E=f.replace(y,"").replace(a,""),b=g===c.length-1,v=E.indexOf(`
|
|
718
|
+
|
|
719
|
+
`)!==-1||b&&d;d=v;let S=s.inline,x=s.list,O;s.list=!0,v?(s.inline=!1,O=Lo(E)+`
|
|
720
|
+
|
|
721
|
+
`):(s.inline=!0,O=Lo(E));let w=l(O,s);return s.inline=S,s.list=x,w}),ordered:r,start:u}},l:(i,l,s)=>e(i.ordered?"ol":"ul",{key:s.key,start:i.type==="20"?i.start:void 0},i.items.map(function(u,c){return e("li",{key:c},l(u,s))}))}}var CU=RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),_U=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function Oy(e){return typeof e=="string"}function Lo(e){let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)}function gi(e,t){return e.startsWith(t)}function TU(e,t,r){if(Array.isArray(r)){for(let n=0;n<r.length;n++)if(gi(e,r[n]))return!0;return!1}return r(e,t)}function xo(e){return e.replace(/[ÀÁÂÃÄÅàáâãä忯]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function OU(e){return uU.test(e)?"right":lU.test(e)?"center":sU.test(e)?"left":null}function Ay(e,t,r,n){let o=r.inTable;r.inTable=!0;let a=[[]],i="";function l(){if(!i)return;let s=a[a.length-1];s.push.apply(s,t(i,r)),i=""}return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((s,u,c)=>{s.trim()==="|"&&(l(),n)?u!==0&&u!==c.length-1&&a.push([]):i+=s}),l(),r.inTable=o,a}function AU(e,t,r){r.inline=!0;let n=e[2]?e[2].replace(iU,"").split("|").map(OU):[],o=e[3]?(function(i,l,s){return i.trim().split(`
|
|
722
|
+
`).map(function(u){return Ay(u,l,s,!0)})})(e[3],t,r):[],a=Ay(e[1],t,r,!!o.length);return r.inline=!1,o.length?{align:n,cells:o,header:a,type:"25"}:{children:a,type:"21"}}function Ry(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function Xn(e){return e.inline=1,e}function jr(e){return Xn(function(t,r){return r.inline?e.exec(t):null})}function br(e){return Xn(function(t,r){return r.inline||r.simple?e.exec(t):null})}function ar(e){return function(t,r){return r.inline||r.simple?null:e.exec(t)}}function Va(e){return Xn(function(t){return e.exec(t)})}var RU=/(javascript|vbscript|data(?!:image)):/i;function DU(e){try{let t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(RU.test(t))return null}catch{return null}return e}function jt(e){return e&&e.replace(mU,"$1")}function mi(e,t,r){let n=r.inline||!1,o=r.simple||!1;r.inline=!0,r.simple=!0;let a=e(t,r);return r.inline=n,r.simple=o,a}function PU(e,t,r){let n=r.inline||!1,o=r.simple||!1;r.inline=!1,r.simple=!0;let a=e(t,r);return r.inline=n,r.simple=o,a}function FU(e,t,r){let n=r.inline||!1;r.inline=!1;let o=e(t,r);return r.inline=n,o}var tc=(e,t,r)=>({children:mi(t,e[2],r)});function rc(){return{}}function nc(){return null}function IU(...e){return e.filter(Boolean).join(" ")}function oc(e,t,r){let n=e,o=t.split(".");for(;o.length&&(n=n[o[0]],n!==void 0);)o.shift();return n||r}function LU(e="",t={}){t.overrides=t.overrides||{},t.namedCodesToUnicode=t.namedCodesToUnicode?qr({},by,t.namedCodesToUnicode):by;let r=t.slugify||xo,n=t.sanitizer||DU,o=t.createElement||p.createElement,a=[Ey,vy,Sy,t.enforceAtxHeadings?$y:xy,wy,_y,ew,tw],i=[...a,eU,Qu,Cy,ec];function l(b,v){for(let S=0;S<b.length;S++)if(b[S].test(v))return!0;return!1}function s(b,v,...S){let x=oc(t.overrides,b+".props",{});return o((function(O,w){let T=oc(w,O);return T?typeof T=="function"||typeof T=="object"&&"render"in T?T:oc(w,O+".component",O):O})(b,t.overrides),qr({},v,x,{className:IU(v?.className,x.className)||void 0}),...S)}function u(b){b=b.replace(WH,"");let v=!1;t.forceInline?v=!0:t.forceBlock||(v=oU.test(b)===!1);let S=y(m(v?b:Lo(b).replace(bU,"")+`
|
|
723
|
+
|
|
724
|
+
`,{inline:v}));for(;Oy(S[S.length-1])&&!S[S.length-1].trim();)S.pop();if(t.wrapper===null)return S;let x=t.wrapper||(v?"span":"div"),O;if(S.length>1||t.forceWrapper)O=S;else{if(S.length===1)return O=S[0],typeof O=="string"?s("span",{key:"outer"},O):O;O=null}return o(x,{key:"outer"},O)}function c(b,v){if(!v||!v.trim())return null;let S=v.match(IH);return S?S.reduce(function(x,O){let w=O.indexOf("=");if(w!==-1){let T=(function(_){return _.indexOf("-")!==-1&&_.match(YH)===null&&(_=_.replace(QH,function(N,B){return B.toUpperCase()})),_})(O.slice(0,w)).trim(),R=(function(_){let N=_[0];return(N==='"'||N==="'")&&_.length>=2&&_[_.length-1]===N?_.slice(1,-1):_})(O.slice(w+1).trim()),I=yy[T]||T;if(I==="ref")return x;let P=x[I]=(function(_,N,B,$){return N==="style"?(function(C){let A=[],D="",L=!1,M=!1,k="";if(!C)return A;for(let z=0;z<C.length;z++){let K=C[z];if(K!=='"'&&K!=="'"||L||(M?K===k&&(M=!1,k=""):(M=!0,k=K)),K==="("&&D.endsWith("url")?L=!0:K===")"&&L&&(L=!1),K!==";"||M||L)D+=K;else{let U=D.trim();if(U){let j=U.indexOf(":");if(j>0){let V=U.slice(0,j).trim(),G=U.slice(j+1).trim();A.push([V,G])}}D=""}}let H=D.trim();if(H){let z=H.indexOf(":");if(z>0){let K=H.slice(0,z).trim(),U=H.slice(z+1).trim();A.push([K,U])}}return A})(B).reduce(function(C,[A,D]){return C[A.replace(/(-[a-z])/g,L=>L[1].toUpperCase())]=$(D,_,A),C},{}):FH.indexOf(N)!==-1?$(jt(B),_,N):(B.match(XH)&&(B=jt(B.slice(1,B.length-1))),B==="true"||B!=="false"&&B)})(b,T,R,n);typeof P=="string"&&(Qu.test(P)||ec.test(P))&&(x[I]=u(P.trim()))}else O!=="style"&&(x[yy[O]||O]=!0);return x},{}):null}let d=[],f={},g={0:{t:[">"],o:ar(Ey),i:1,u(b,v,S){let[,x,O]=b[0].replace(kH,"").match(NH);return{alert:x,children:v(O,S)}},l(b,v,S){let x={key:S.key};return b.alert&&(x.className="markdown-alert-"+r(b.alert.toLowerCase(),xo),b.children.unshift({attrs:{},children:[{type:"27",text:b.alert}],noInnerParse:!0,type:"11",tag:"header"})),s("blockquote",x,v(b.children,S))}},1:{t:[" "],o:Va(MH),i:1,u:rc,l:(b,v,S)=>s("br",{key:S.key})},2:{t:["--","__","**","- ","* ","_ "],o:ar(BH),i:1,u:rc,l:(b,v,S)=>s("hr",{key:S.key})},3:{t:[" "],o:ar(Sy),i:0,u:b=>({lang:void 0,text:jt(Lo(b[0].replace(/^ {4}/gm,"")))}),l:(b,v,S)=>s("pre",{key:S.key},s("code",qr({},b.attrs,{className:b.lang?"lang-"+b.lang:""}),b.text))},4:{t:["```","~~~"],o:ar(vy),i:0,u:b=>({attrs:c("code",b[3]||""),lang:b[2]||void 0,text:b[4],type:"3"})},5:{t:["`"],o:br(jH),i:3,u:b=>({text:jt(b[2])}),l:(b,v,S)=>s("code",{key:S.key},b.text)},6:{t:["[^"],o:ar(zH),i:0,u:b=>(d.push({footnote:b[2],identifier:b[1]}),{}),l:nc},7:{t:["[^"],o:jr(KH),i:1,u:b=>({target:"#"+r(b[1],xo),text:b[1]}),l:(b,v,S)=>s("a",{key:S.key,href:n(b.target,"a","href")},s("sup",{key:S.key},b.text))},8:{t:["[ ]","[x]"],o:jr(VH),i:1,u:b=>({completed:b[1].toLowerCase()==="x"}),l:(b,v,S)=>s("input",{checked:b.completed,key:S.key,readOnly:!0,type:"checkbox"})},9:{t:["#"],o:ar(t.enforceAtxHeadings?$y:xy),i:1,u:(b,v,S)=>({children:mi(v,b[2],S),id:r(b[2],xo),level:b[1].length}),l:(b,v,S)=>s("h"+b.level,{id:b.id,key:S.key},v(b.children,S))},10:{t:b=>{let v=b.indexOf(`
|
|
725
|
+
`);return v>0&&v<b.length-1&&(b[v+1]==="="||b[v+1]==="-")},o:ar(wy),i:1,u:(b,v,S)=>({children:mi(v,b[1],S),level:b[2]==="="?1:2,type:"9"})},11:{t:["<"],o:Va(Qu),i:1,u(b,v,S){let[,x]=b[3].match(EU),O=RegExp("^"+x,"gm"),w=b[3].replace(O,""),T=l(i,w)?FU:mi,R=b[1].toLowerCase(),I=PH.indexOf(R)!==-1,P=(I?R:b[1]).trim(),_={attrs:c(P,b[2]),noInnerParse:I,tag:P};if(S.inAnchor=S.inAnchor||R==="a",I)_.text=b[3];else{let N=S.inHTML;S.inHTML=!0,_.children=T(v,w,S),S.inHTML=N}return S.inAnchor=!1,_},l:(b,v,S)=>s(b.tag,qr({key:S.key},b.attrs),b.text||(b.children?v(b.children,S):""))},13:{t:["<"],o:Va(ec),i:1,u(b){let v=b[1].trim();return{attrs:c(v,b[2]||""),tag:v}},l:(b,v,S)=>s(b.tag,qr({},b.attrs,{key:S.key}))},12:{t:["<!--"],o:Va(Cy),i:1,u:()=>({}),l:nc},14:{t:["!["],o:br(_U),i:1,u:b=>({alt:jt(b[1]),target:jt(b[2]),title:jt(b[3])}),l:(b,v,S)=>s("img",{key:S.key,alt:b.alt||void 0,title:b.title||void 0,src:n(b.target,"img","src")})},15:{t:["["],o:jr(CU),i:3,u:(b,v,S)=>({children:PU(v,b[1],S),target:jt(b[2]),title:jt(b[3])}),l:(b,v,S)=>s("a",{key:S.key,href:n(b.target,"a","href"),title:b.title},v(b.children,S))},16:{t:["<"],o:jr(ZH),i:0,u(b){let v=b[1],S=!1;return v.indexOf("@")!==-1&&v.indexOf("//")===-1&&(S=!0,v=v.replace("mailto:","")),{children:[{text:v,type:"27"}],target:S?"mailto:"+v:v,type:"15"}}},17:{t:(b,v)=>!v.inAnchor&&!t.disableAutoLink&&(gi(b,"http://")||gi(b,"https://")),o:jr(JH),i:0,u:b=>({children:[{text:b[1],type:"27"}],target:b[1],title:void 0,type:"15"})},20:Ty(s,1),33:Ty(s,2),19:{t:[`
|
|
726
|
+
`],o:ar(HH),i:3,u:rc,l:()=>`
|
|
727
|
+
`},21:{o:Xn(function(b,v){if(v.inline||v.simple||v.inHTML&&b.indexOf(`
|
|
728
|
+
|
|
729
|
+
`)===-1&&v.prevCapture.indexOf(`
|
|
730
|
+
|
|
731
|
+
`)===-1)return null;let S="",x=0;for(;;){let w=b.indexOf(`
|
|
732
|
+
`,x),T=b.slice(x,w===-1?void 0:w+1);if(l(a,T)||(S+=T,w===-1||!T.trim()))break;x=w+1}let O=Lo(S);return O===""?null:[S,,O]}),i:3,u:tc,l:(b,v,S)=>s("p",{key:S.key},v(b.children,S))},22:{t:["["],o:jr(tU),i:0,u:b=>(f[b[1]]={target:b[2],title:b[4]},{}),l:nc},23:{t:["!["],o:br(rU),i:0,u:b=>({alt:b[1]?jt(b[1]):void 0,ref:b[2]}),l:(b,v,S)=>f[b.ref]?s("img",{key:S.key,alt:b.alt,src:n(f[b.ref].target,"img","src"),title:f[b.ref].title}):null},24:{t:b=>b[0]==="["&&b.indexOf("](")===-1,o:jr(nU),i:0,u:(b,v,S)=>({children:v(b[1],S),fallbackChildren:b[0],ref:b[2]}),l:(b,v,S)=>f[b.ref]?s("a",{key:S.key,href:n(f[b.ref].target,"a","href"),title:f[b.ref].title},v(b.children,S)):s("span",{key:S.key},b.fallbackChildren)},25:{t:["|"],o:ar(_y),i:1,u:AU,l(b,v,S){let x=b;return s("table",{key:S.key},s("thead",null,s("tr",null,x.header.map(function(O,w){return s("th",{key:w,style:Ry(x,w)},v(O,S))}))),s("tbody",null,x.cells.map(function(O,w){return s("tr",{key:w},O.map(function(T,R){return s("td",{key:R,style:Ry(x,R)},v(T,S))}))})))}},27:{o:Xn(function(b,v){let S;return gi(b,":")&&(S=hU.exec(b)),S||yU.exec(b)}),i:4,u(b){let v=b[0];return{text:v.indexOf("&")===-1?v:v.replace(qH,(S,x)=>t.namedCodesToUnicode[x]||S)}},l:b=>b.text},28:{t:["**","__"],o:br(cU),i:2,u:(b,v,S)=>({children:v(b[2],S)}),l:(b,v,S)=>s("strong",{key:S.key},v(b.children,S))},29:{t:b=>{let v=b[0];return(v==="*"||v==="_")&&b[1]!==v},o:br(dU),i:3,u:(b,v,S)=>({children:v(b[2],S)}),l:(b,v,S)=>s("em",{key:S.key},v(b.children,S))},30:{t:["\\"],o:br(gU),i:1,u:b=>({text:b[1],type:"27"})},31:{t:["=="],o:br(fU),i:3,u:tc,l:(b,v,S)=>s("mark",{key:S.key},v(b.children,S))},32:{t:["~~"],o:br(pU),i:3,u:tc,l:(b,v,S)=>s("del",{key:S.key},v(b.children,S))}};t.disableParsingRawHTML===!0&&(delete g[11],delete g[13]);let m=(function(b){var v=Object.keys(b);function S(x,O){var w=[];if(O.prevCapture=O.prevCapture||"",x.trim())for(;x;)for(var T=0;T<v.length;){var R=v[T],I=b[R];if(!I.t||TU(x,O,I.t)){var P=I.o(x,O);if(P&&P[0]){x=x.substring(P[0].length);var _=I.u(P,S,O);O.prevCapture+=P[0],_.type||(_.type=R),w.push(_);break}T++}else T++}return O.prevCapture="",w}return v.sort(function(x,O){return b[x].i-b[O].i||(x<O?-1:1)}),function(x,O){return S((function(w){return w.replace(UH,`
|
|
733
|
+
`).replace(GH,"").replace(aU," ")})(x),O)}})(g),y=(function(b,v){return function S(x,O={}){if(Array.isArray(x)){let w=O.key,T=[],R=!1;for(let I=0;I<x.length;I++){O.key=I;let P=S(x[I],O),_=Oy(P);_&&R?T[T.length-1]+=P:P!==null&&T.push(P),R=_}return O.key=w,T}return(function(w,T,R){let I=b[w.type].l;return v?v(()=>I(w,T,R),w,T,R):I(w,T,R)})(x,S,O)}})(g,t.renderRule),E=u(e);return d.length?s("div",null,E,s("footer",{key:"footer"},d.map(function(b){return s("div",{id:r(b.identifier,xo),key:b.identifier},b.identifier,y(m(b.footnote,{inline:!0})))}))):E}var rw=e=>{let{children:t,options:r}=e,n=(function(o,a){if(o==null)return{};var i,l,s={},u=Object.keys(o);for(l=0;l<u.length;l++)a.indexOf(i=u[l])>=0||(s[i]=o[i]);return s})(e,DH);return p.cloneElement(LU(t??"",r),n)},kU=e=>({lineHeight:"18px",alignItems:"center",marginBottom:8,display:"inline-block",position:"relative",whiteSpace:"nowrap",background:e.boolean.background,borderRadius:"3em",padding:1,'&[aria-disabled="true"]':{opacity:.5,input:{cursor:"not-allowed"}},"@media (forced-colors: active)":{background:"ButtonFace",outline:"1px solid ButtonText"},"&:focus-within":{outline:`1px solid ${e.color.secondary}`,outlineOffset:1,"@media (forced-colors: active)":{outline:"1px solid Highlight",outlineOffset:1}},input:{...Kd,appearance:"none",left:0,top:0,background:"transparent",cursor:"pointer",borderRadius:"3em"},span:{textAlign:"center",fontSize:e.typography.size.s1,fontWeight:e.typography.weight.bold,lineHeight:"1",cursor:"pointer",display:"inline-block",padding:"7px 15px",transition:"all 100ms ease-out",userSelect:"none",borderRadius:"3em",color:Ae(.5,e.color.defaultText),background:"transparent","&:active":{boxShadow:`${Zu(.05,e.appBorderColor)} 0 0 0 2px inset`,color:Zu(1,e.appBorderColor)},"&:first-of-type":{paddingRight:8},"&:last-of-type":{paddingLeft:8},"@media (forced-colors: active)":{color:"ButtonText",boxShadow:"none"}},"input:checked ~ span:last-of-type, input:not(:checked) ~ span:first-of-type":{background:e.boolean.selectedBackground,boxShadow:e.base==="light"?`${Zu(.1,e.appBorderColor)} 0 0 2px`:`${e.appBorderColor} 0 0 0 1px`,color:e.color.defaultText,padding:"7px 15px","@media (forced-colors: active)":{forcedColorAdjust:"none",background:"Highlight",color:"HighlightText",boxShadow:"none",outline:"1px solid ButtonText"}}}),NU=F.label(({theme:e})=>kU(e)),MU=e=>e==="true",BU=({name:e,storyId:t,value:r,onChange:n,onBlur:o,onFocus:a,argType:i})=>{let l=p.useCallback(()=>n(!1),[n]),s=!!i?.table?.readonly;if(r===void 0)return h.createElement(be,{ariaLabel:!1,variant:"outline",size:"medium",id:Zi(e,t),onClick:l,disabled:s},"Set boolean");let u=Lt(e,t),c=typeof r=="string"?MU(r):r;return h.createElement(NU,{"aria-disabled":s,htmlFor:u,"aria-label":e},h.createElement("input",{id:u,type:"checkbox",onChange:d=>n(d.target.checked),checked:c,role:"switch",disabled:s,name:e,onBlur:o,onFocus:a}),h.createElement("span",{"aria-hidden":"true"},"False"),h.createElement("span",{"aria-hidden":"true"},"True"))},jU=e=>{let[t,r,n]=e.split("-"),o=new Date;return o.setFullYear(parseInt(t,10),parseInt(r,10)-1,parseInt(n,10)),o},HU=e=>{let[t,r]=e.split(":"),n=new Date;return n.setHours(parseInt(t,10)),n.setMinutes(parseInt(r,10)),n},UU=e=>{let t=new Date(e),r=`000${t.getFullYear()}`.slice(-4),n=`0${t.getMonth()+1}`.slice(-2),o=`0${t.getDate()}`.slice(-2);return`${r}-${n}-${o}`},zU=e=>{let t=new Date(e),r=`0${t.getHours()}`.slice(-2),n=`0${t.getMinutes()}`.slice(-2);return`${r}:${n}`},Dy=F(gn.Input)(({theme:e})=>({"&[readonly]":{background:e.base==="light"?e.color.lighter:"transparent"},"&::-webkit-calendar-picker-indicator":{opacity:.5,height:12,filter:e.base==="light"?void 0:"invert(1)"}})),KU=F.fieldset({flex:1,display:"flex",border:0,marginInline:0,padding:0,gap:10,"div:first-of-type":{flex:4},"div:last-of-type":{flex:3}}),GU=({name:e,storyId:t,value:r,onChange:n,onFocus:o,onBlur:a,argType:i})=>{let[l,s]=p.useState(!0),u=p.useRef(),c=p.useRef(),d=!!i?.table?.readonly;p.useEffect(()=>{l!==!1&&(u&&u.current&&(u.current.value=r?UU(r):""),c&&c.current&&(c.current.value=r?zU(r):""))},[r]);let f=y=>{if(!y.target.value)return n();let E=jU(y.target.value),b=new Date(r??"");b.setFullYear(E.getFullYear(),E.getMonth(),E.getDate());let v=b.getTime();v&&n(v),s(!!v)},g=y=>{if(!y.target.value)return n();let E=HU(y.target.value),b=new Date(r??"");b.setHours(E.getHours()),b.setMinutes(E.getMinutes());let v=b.getTime();v&&n(v),s(!!v)},m=Lt(e,t);return h.createElement(KU,null,h.createElement("legend",{className:"sb-sr-only"},e),h.createElement("label",{htmlFor:`${m}-date`,className:"sb-sr-only"},"Date"),h.createElement(Dy,{type:"date",max:"9999-12-31",ref:u,id:`${m}-date`,name:`${m}-date`,readOnly:d,onChange:f,onFocus:o,onBlur:a}),h.createElement("label",{htmlFor:`${m}-time`,className:"sb-sr-only"},"Time"),h.createElement(Dy,{type:"time",id:`${m}-time`,name:`${m}-time`,ref:c,onChange:g,readOnly:d,onFocus:o,onBlur:a}),l?null:h.createElement("div",null,"invalid"))},WU=F.label({display:"flex"}),VU=e=>{let t=parseFloat(e);return Number.isNaN(t)?void 0:t},qU=F(gn.Input)(({theme:e})=>({background:e.base==="light"?e.color.lighter:"transparent"})),YU=({name:e,storyId:t,value:r,onChange:n,min:o,max:a,step:i,onBlur:l,onFocus:s,argType:u})=>{let[c,d]=p.useState(typeof r=="number"?r:""),[f,g]=p.useState(!1),[m,y]=p.useState(null),E=!!u?.table?.readonly,b=p.useCallback(x=>{d(x.target.value);let O=parseFloat(x.target.value);if(Number.isNaN(O))y(new Error(`'${x.target.value}' is not a number`));else{let w=O;typeof o=="number"&&w<o&&(w=o),typeof a=="number"&&w>a&&(w=a),n(w),y(null),w!==O&&d(String(w))}},[n,y,o,a]),v=p.useCallback(()=>{d("0"),n(0),g(!0)},[g]),S=p.useRef(null);return p.useEffect(()=>{f&&S.current&&S.current.select()},[f]),p.useEffect(()=>{let x=typeof r=="number"?r:"";c!==x&&d(x)},[r]),r===void 0?h.createElement(be,{ariaLabel:!1,variant:"outline",size:"medium",id:Zi(e,t),onClick:v,disabled:E},"Set number"):h.createElement(WU,null,h.createElement(qU,{ref:S,id:Lt(e,t),type:"number",onChange:b,size:"flex",placeholder:"Edit number...",value:c,valid:m?"error":void 0,autoFocus:f,readOnly:E,name:e,min:o,max:a,step:i,onFocus:s,onBlur:l}))};const{logger:XU}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var nw=(e,t)=>{let r=t&&Object.entries(t).find(([n,o])=>o===e);return r?r[0]:void 0},Od=(e,t)=>e&&t?Object.entries(t).filter(r=>e.includes(r[1])).map(r=>r[0]):[],ow=(e,t)=>e&&t&&e.map(r=>t[r]),JU=F.fieldset({border:"none",marginInline:0,padding:0,display:"flex",alignItems:"flex-start"},({$isInline:e})=>e?{flexWrap:"wrap",gap:15,label:{display:"inline-flex"}}:{flexDirection:"column",gap:8,label:{display:"flex"}}),ZU=F.span(({$readOnly:e})=>({opacity:e?.5:1})),QU=F.label(({$readOnly:e})=>({lineHeight:"20px",alignItems:"center",cursor:e?"not-allowed":"pointer",input:{cursor:e?"not-allowed":"pointer",margin:0,marginRight:6}})),Py=({name:e,storyId:t,options:r,value:n,onChange:o,isInline:a,argType:i})=>{if(!r)return XU.warn(`Checkbox with no options: ${e}`),h.createElement(h.Fragment,null,"-");let l=Od(n||[],r),[s,u]=p.useState(l),c=!!i?.table?.readonly,d=g=>{let m=g.target.value,y=[...s];y.includes(m)?y.splice(y.indexOf(m),1):y.push(m),o(ow(y,r)),u(y)};p.useEffect(()=>{u(Od(n||[],r))},[n]);let f=Lt(e,t);return h.createElement(JU,{$isInline:a},h.createElement("legend",{className:"sb-sr-only"},e),Object.keys(r).map((g,m)=>{let y=`${f}-${m}`;return h.createElement(QU,{key:y,htmlFor:y,$readOnly:c},h.createElement("input",{type:"checkbox",disabled:c,id:y,name:y,value:g,onChange:d,checked:s?.includes(g)}),h.createElement(ZU,{$readOnly:c},g))}))};const{logger:ez}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var tz=F.fieldset({border:"none",marginInline:0,padding:0,display:"flex",alignItems:"flex-start"},({isInline:e})=>e?{flexWrap:"wrap",gap:15,label:{display:"inline-flex"}}:{flexDirection:"column",gap:8,label:{display:"flex"}}),rz=F.span(({$readOnly:e})=>({opacity:e?.5:1})),nz=F.label(({$readOnly:e})=>({lineHeight:"20px",alignItems:"center",cursor:e?"not-allowed":"pointer",input:{cursor:e?"not-allowed":"pointer",margin:0,marginRight:6}})),Fy=({name:e,storyId:t,options:r,value:n,onChange:o,isInline:a,argType:i})=>{if(!r)return ez.warn(`Radio with no options: ${e}`),h.createElement(h.Fragment,null,"-");let l=nw(n,r),s=Lt(e,t),u=!!i?.table?.readonly;return h.createElement(tz,{isInline:a},h.createElement("legend",{className:"sb-sr-only"},e),Object.keys(r).map((c,d)=>{let f=`${s}-${d}`;return h.createElement(nz,{key:f,htmlFor:f,$readOnly:u},h.createElement("input",{type:"radio",id:f,name:s,disabled:u,value:c,onChange:g=>o(r[g.currentTarget.value]),checked:c===l}),h.createElement(rz,{$readOnly:u},c))}))};const{logger:oz}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var az={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},aw=F.select(az,({theme:e})=>({boxSizing:"border-box",position:"relative",padding:"6px 10px",width:"100%",color:e.input.color||"inherit",background:e.input.background,borderRadius:e.input.borderRadius,boxShadow:`${e.input.border} 0 0 0 1px inset`,fontSize:e.typography.size.s2-1,lineHeight:"20px","&:focus":{boxShadow:`${e.color.secondary} 0 0 0 1px inset`,outline:"none"},"&[disabled]":{cursor:"not-allowed",opacity:.5},"::placeholder":{color:e.textMutedColor},"&[multiple]":{overflow:"auto",padding:0,option:{display:"block",padding:"6px 10px",marginLeft:1,marginRight:1,"&:hover":{background:e.background.hoverable},"&:checked":{background:"transparent",color:e.color.secondary,fontWeight:e.typography.weight.bold}}}})),iw=F.span(({theme:e})=>({display:"inline-block",lineHeight:"normal",overflow:"hidden",position:"relative",verticalAlign:"top",width:"100%",svg:{position:"absolute",zIndex:1,pointerEvents:"none",height:"12px",marginTop:"-6px",right:"12px",top:"50%",fill:e.textMutedColor,path:{fill:e.textMutedColor}}})),ac="Choose option...",iz=({name:e,storyId:t,value:r,options:n,onChange:o,argType:a})=>{let i=c=>{o(n[c.currentTarget.value])},l=nw(r,n)||ac,s=Lt(e,t),u=!!a?.table?.readonly;return h.createElement(iw,null,h.createElement(Vb,null),h.createElement("label",{htmlFor:s,className:"sb-sr-only"},e),h.createElement(aw,{disabled:u,id:s,value:l,onChange:i},h.createElement("option",{disabled:l===ac,key:"no-selection"},ac),Object.keys(n).map(c=>h.createElement("option",{key:c,value:c},c))))},lz=({name:e,storyId:t,value:r,options:n,onChange:o,argType:a})=>{let i=c=>{let d=Array.from(c.currentTarget.options).filter(f=>f.selected).map(f=>f.value);o(ow(d,n))},l=Od(r,n),s=Lt(e,t),u=!!a?.table?.readonly;return h.createElement(iw,null,h.createElement("label",{htmlFor:s,className:"sb-sr-only"},e),h.createElement(aw,{disabled:u,id:s,multiple:!0,value:l,onChange:i},Object.keys(n).map(c=>h.createElement("option",{key:c,value:c},c))))},Iy=e=>{let{name:t,options:r}=e;return r?e.isMulti?h.createElement(lz,{...e}):h.createElement(iz,{...e}):(oz.warn(`Select with no options: ${t}`),h.createElement(h.Fragment,null,"-"))},sz=(e,t)=>Array.isArray(e)?e.reduce((r,n)=>(r[t?.[n]||String(n)]=n,r),{}):e,uz={check:Py,"inline-check":Py,radio:Fy,"inline-radio":Fy,select:Iy,"multi-select":Iy},Sn=e=>{let{type:t="select",labels:r,argType:n}=e,o={...e,argType:n,options:n?sz(n.options,r):{},isInline:t.includes("inline"),isMulti:t.includes("multi")},a=uz[t];if(a)return h.createElement(a,{...o});throw new Error(`Unknown options type: ${t}`)},cz=F.div(({theme:e})=>({position:"relative",":hover":{"& > .rejt-accordion-button::after":{background:e.color.secondary},"& > .rejt-accordion-region > :is(.rejt-plus-menu, .rejt-minus-menu)":{opacity:1}}})),dz=F.button(({theme:e})=>({padding:0,background:"transparent",border:"none",marginRight:"3px",lineHeight:"22px",color:e.color.secondary,"::after":{content:'""',position:"absolute",top:0,display:"block",width:"100%",marginLeft:"-1rem",height:"22px",background:"transparent",borderRadius:4,transition:"background 0.2s",opacity:.1,paddingRight:"20px"},"::before":{content:'""',position:"absolute"},'&[aria-expanded="true"]::before':{left:-10,top:10,borderTop:"3px solid rgba(153,153,153,0.6)",borderLeft:"3px solid transparent",borderRight:"3px solid transparent"},'&[aria-expanded="false"]::before':{left:-8,top:8,borderTop:"3px solid transparent",borderBottom:"3px solid transparent",borderLeft:"3px solid rgba(153,153,153,0.6)"}})),fz=F.div({display:"inline"});function lw({children:e,name:t,collapsed:r,keyPath:n,deep:o,...a}){let i=`${n.at(-1)??"root"}-${t}-${o}`,l={trigger:`${i}-trigger`,region:`${i}-region`},s=n.length>0?"li":"div";return h.createElement(cz,{as:s},h.createElement(dz,{type:"button","aria-expanded":!r,id:l.trigger,"aria-controls":l.region,className:"rejt-accordion-button",...a},t," :"),h.createElement(fz,{role:"group",id:l.region,"aria-labelledby":l.trigger,className:"rejt-accordion-region"},e))}var pz="Error",hz="Object",gz="Array",mz="String",yz="Number",bz="Boolean",Ez="Date",vz="Null",Sz="Undefined",xz="Function",$z="Symbol",sw="ADD_DELTA_TYPE",uw="REMOVE_DELTA_TYPE",cw="UPDATE_DELTA_TYPE",bp="value";function Xr(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&typeof e[Symbol.iterator]=="function"?"Iterable":Object.prototype.toString.call(e).slice(8,-1)}function dw(e,t){let r=Xr(e),n=Xr(t);return(r==="Function"||n==="Function")&&n!==r}var Ep=class extends p.Component{constructor(e){super(e),this.state={inputRefKey:null,inputRefValue:null},this.refInputValue=this.refInputValue.bind(this),this.refInputKey=this.refInputKey.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onSubmit=this.onSubmit.bind(this)}componentDidMount(){let{inputRefKey:e,inputRefValue:t}=this.state,{onlyValue:r}=this.props;e&&typeof e.focus=="function"&&e.focus(),r&&t&&typeof t.focus=="function"&&t.focus()}onKeydown(e){if(e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat)return;let{inputRefKey:t,inputRefValue:r}=this.state,{addButtonElement:n,handleCancel:o}=this.props;[t,r,n].some(a=>a===e.target)&&((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.onSubmit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),o()))}onSubmit(){let{handleAdd:e,onlyValue:t,onSubmitValueParser:r,keyPath:n,deep:o}=this.props,{inputRefKey:a,inputRefValue:i}=this.state,l={};if(!t){if(!a.value)return;l.key=a.value}l.newValue=r(!1,n,o,l.key,i.value),e(l)}refInputKey(e){this.state.inputRefKey=e}refInputValue(e){this.state.inputRefValue=e}render(){let{handleCancel:e,onlyValue:t,addButtonElement:r,cancelButtonElement:n,inputElementGenerator:o,keyPath:a,deep:i}=this.props,l=r&&p.cloneElement(r,{onClick:this.onSubmit}),s=n&&p.cloneElement(n,{onClick:e}),u=o(bp,a,i),c=p.cloneElement(u,{placeholder:"Value",ref:this.refInputValue,onKeyDown:this.onKeydown}),d=null;if(!t){let f=o("key",a,i);d=p.cloneElement(f,{placeholder:"Key",ref:this.refInputKey,onKeyDown:this.onKeydown})}return h.createElement("span",{className:"rejt-add-value-node"},d,c,l,s)}};Ep.defaultProps={onlyValue:!1,addButtonElement:h.createElement("button",null,"+"),cancelButtonElement:h.createElement("button",null,"c")};var fw=class extends p.Component{constructor(e){super(e);let t=[...e.keyPath||[],e.name];this.state={data:e.data,name:e.name,keyPath:t??[],deep:e.deep??0,nextDeep:(e.deep??0)+1,collapsed:e.isCollapsed(t,e.deep??0,e.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveItem=this.handleRemoveItem.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}onChildUpdate(e,t){let{data:r,keyPath:n=[]}=this.state;r[e]=t,this.setState({data:r});let{onUpdate:o}=this.props,a=n.length;o(n[a-1],r)}handleAddMode(){this.setState({addFormVisible:!0})}handleCollapseMode(){this.setState(e=>({collapsed:!e.collapsed}))}handleRemoveItem(e){return()=>{let{beforeRemoveAction:t,logger:r}=this.props,{data:n,keyPath:o,nextDeep:a}=this.state,i=n[e];(t||Promise.resolve.bind(Promise))(e,o,a,i).then(()=>{let l={keyPath:o,deep:a,key:e,oldValue:i,type:uw};n.splice(e,1),this.setState({data:n});let{onUpdate:s,onDeltaUpdate:u}=this.props;s(o[o.length-1],n),u(l)}).catch(r.error)}}handleAddValueAdd({newValue:e}){let{data:t,keyPath:r=[],nextDeep:n}=this.state,{beforeAddAction:o,logger:a}=this.props,i=t.length;(o||Promise.resolve.bind(Promise))(i,r,n,e).then(()=>{t[i]=e,this.setState({data:t}),this.handleAddValueCancel();let{onUpdate:l,onDeltaUpdate:s}=this.props;l(r[r.length-1],t),s({type:sw,keyPath:r,deep:n,key:i,newValue:e})}).catch(a.error)}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleEditValue({key:e,value:t}){return new Promise((r,n)=>{let{beforeUpdateAction:o}=this.props,{data:a,keyPath:i,nextDeep:l}=this.state,s=a[e];(o||Promise.resolve.bind(Promise))(e,i,l,s,t).then(()=>{a[e]=t,this.setState({data:a});let{onUpdate:u,onDeltaUpdate:c}=this.props;u(i[i.length-1],a),c({type:cw,keyPath:i,deep:l,key:e,newValue:t,oldValue:s}),r(void 0)}).catch(n)})}renderCollapsed(){let{name:e,data:t,keyPath:r,deep:n}=this.state,{handleRemove:o,readOnly:a,dataType:i,minusMenuElement:l}=this.props,s=a(e,t,r,n,i),u=l&&p.cloneElement(l,{onClick:o,className:"rejt-minus-menu","aria-label":`remove the array '${String(e)}'`});return h.createElement(h.Fragment,null,h.createElement("span",{className:"rejt-collapsed-value"},"[...] ",t.length," ",t.length===1?"item":"items"),!s&&u)}renderNotCollapsed(){let{name:e,data:t,keyPath:r,deep:n,addFormVisible:o,nextDeep:a}=this.state,{isCollapsed:i,handleRemove:l,onDeltaUpdate:s,readOnly:u,dataType:c,addButtonElement:d,cancelButtonElement:f,inputElementGenerator:g,textareaElementGenerator:m,minusMenuElement:y,plusMenuElement:E,beforeRemoveAction:b,beforeAddAction:v,beforeUpdateAction:S,logger:x,onSubmitValueParser:O}=this.props,w=u(e,t,r,n,c),T=E&&p.cloneElement(E,{onClick:this.handleAddMode,className:"rejt-plus-menu","aria-label":`add a new item to the '${String(e)}' array`}),R=y&&p.cloneElement(y,{onClick:l,className:"rejt-minus-menu","aria-label":`remove the array '${String(e)}'`});return h.createElement(h.Fragment,null,h.createElement("span",{className:"rejt-not-collapsed-delimiter"},"["),!o&&T,h.createElement("ul",{className:"rejt-not-collapsed-list"},t.map((I,P)=>h.createElement(zl,{key:P,name:P.toString(),data:I,keyPath:r,deep:a,isCollapsed:i,handleRemove:this.handleRemoveItem(P),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:s,readOnly:u,addButtonElement:d,cancelButtonElement:f,inputElementGenerator:g,textareaElementGenerator:m,minusMenuElement:y,plusMenuElement:E,beforeRemoveAction:b,beforeAddAction:v,beforeUpdateAction:S,logger:x,onSubmitValueParser:O}))),!w&&o&&h.createElement("div",{className:"rejt-add-form"},h.createElement(Ep,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,onlyValue:!0,addButtonElement:d,cancelButtonElement:f,inputElementGenerator:g,keyPath:r,deep:n,onSubmitValueParser:O})),h.createElement("span",{className:"rejt-not-collapsed-delimiter"},"]"),!w&&R)}render(){let{name:e,collapsed:t,keyPath:r,deep:n}=this.state,o=t?this.renderCollapsed():this.renderNotCollapsed();return h.createElement(lw,{name:e,collapsed:t,deep:n,keyPath:r,onClick:this.handleCollapseMode},o)}};fw.defaultProps={keyPath:[],deep:0,minusMenuElement:h.createElement("span",null," - "),plusMenuElement:h.createElement("span",null," + ")};var pw=class extends p.Component{constructor(e){super(e);let t=[...e.keyPath||[],e.name];this.state={value:e.value,name:e.name,keyPath:t??[],deep:e.deep??0,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(e,t){return e.value!==t.value?{value:e.value}:null}componentDidUpdate(){let{editEnabled:e,inputRef:t,name:r,value:n,keyPath:o,deep:a}=this.state,{readOnly:i,dataType:l}=this.props,s=i(r,n,o,a,l);e&&!s&&typeof t.focus=="function"&&t.focus()}onKeydown(e){let{inputRef:t}=this.state;e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||t!==e.target||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.handleEdit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:e,originalValue:t,logger:r,onSubmitValueParser:n,keyPath:o}=this.props,{inputRef:a,name:i,deep:l}=this.state;if(!a)return;let s=n(!0,o,l,i,a.value),u={value:s,key:i};(e||Promise.resolve.bind(Promise))(u).then(()=>{dw(t,s)||this.handleCancelEdit()}).catch(r.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(e){this.state.inputRef=e}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:e,value:t,editEnabled:r,keyPath:n,deep:o}=this.state,{handleRemove:a,originalValue:i,readOnly:l,dataType:s,textareaElementGenerator:u,minusMenuElement:c,keyPath:d=[]}=this.props,f=null,g=null,m=l(e,i,n,o,s);if(r&&!m){let y=u(bp,d,o,e,i,s),E=p.cloneElement(y,{ref:this.refInput,defaultValue:t,onKeyDown:this.onKeydown});f=h.createElement("span",{className:"rejt-edit-form"},E),g=null}else{f=h.createElement("span",{className:"rejt-value",onClick:m?void 0:this.handleEditMode},t);let y=d.at(-1),E=c&&p.cloneElement(c,{onClick:a,className:"rejt-minus-menu","aria-label":`remove the function '${String(e)}'${String(y)?` from '${String(y)}'`:""}`});g=m?null:E}return h.createElement("li",{className:"rejt-value-node"},h.createElement("span",{className:"rejt-name"},e," : "),f,g)}};pw.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>{},cancelButtonElement:h.createElement("button",null,"c"),minusMenuElement:h.createElement("span",null," - ")};var zl=class extends p.Component{constructor(e){super(e),this.state={data:e.data,name:e.name,keyPath:e.keyPath??[],deep:e.deep??0}}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}render(){let{data:e,name:t,keyPath:r,deep:n}=this.state,{isCollapsed:o,handleRemove:a,handleUpdateValue:i,onUpdate:l,onDeltaUpdate:s,readOnly:u,addButtonElement:c,cancelButtonElement:d,inputElementGenerator:f,textareaElementGenerator:g,minusMenuElement:m,plusMenuElement:y,beforeRemoveAction:E,beforeAddAction:b,beforeUpdateAction:v,logger:S,onSubmitValueParser:x}=this.props,O=()=>!0,w=Xr(e);switch(w){case pz:return h.createElement(Ad,{data:e,name:t,isCollapsed:o,keyPath:r,deep:n,handleRemove:a,onUpdate:l,onDeltaUpdate:s,readOnly:O,dataType:w,addButtonElement:c,cancelButtonElement:d,inputElementGenerator:f,textareaElementGenerator:g,minusMenuElement:m,plusMenuElement:y,beforeRemoveAction:E,beforeAddAction:b,beforeUpdateAction:v,logger:S,onSubmitValueParser:x});case hz:return h.createElement(Ad,{data:e,name:t,isCollapsed:o,keyPath:r,deep:n,handleRemove:a,onUpdate:l,onDeltaUpdate:s,readOnly:u,dataType:w,addButtonElement:c,cancelButtonElement:d,inputElementGenerator:f,textareaElementGenerator:g,minusMenuElement:m,plusMenuElement:y,beforeRemoveAction:E,beforeAddAction:b,beforeUpdateAction:v,logger:S,onSubmitValueParser:x});case gz:return h.createElement(fw,{data:e,name:t,isCollapsed:o,keyPath:r,deep:n,handleRemove:a,onUpdate:l,onDeltaUpdate:s,readOnly:u,dataType:w,addButtonElement:c,cancelButtonElement:d,inputElementGenerator:f,textareaElementGenerator:g,minusMenuElement:m,plusMenuElement:y,beforeRemoveAction:E,beforeAddAction:b,beforeUpdateAction:v,logger:S,onSubmitValueParser:x});case mz:return h.createElement(Er,{name:t,value:`"${e}"`,originalValue:e,keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:u,dataType:w,cancelButtonElement:d,inputElementGenerator:f,minusMenuElement:m,logger:S,onSubmitValueParser:x});case yz:return h.createElement(Er,{name:t,value:e,originalValue:e,keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:u,dataType:w,cancelButtonElement:d,inputElementGenerator:f,minusMenuElement:m,logger:S,onSubmitValueParser:x});case bz:return h.createElement(Er,{name:t,value:e?"true":"false",originalValue:e,keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:u,dataType:w,cancelButtonElement:d,inputElementGenerator:f,minusMenuElement:m,logger:S,onSubmitValueParser:x});case Ez:return h.createElement(Er,{name:t,value:e.toISOString(),originalValue:e,keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:O,dataType:w,cancelButtonElement:d,inputElementGenerator:f,minusMenuElement:m,logger:S,onSubmitValueParser:x});case vz:return h.createElement(Er,{name:t,value:"null",originalValue:"null",keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:u,dataType:w,cancelButtonElement:d,inputElementGenerator:f,minusMenuElement:m,logger:S,onSubmitValueParser:x});case Sz:return h.createElement(Er,{name:t,value:"undefined",originalValue:"undefined",keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:u,dataType:w,cancelButtonElement:d,inputElementGenerator:f,minusMenuElement:m,logger:S,onSubmitValueParser:x});case xz:return h.createElement(pw,{name:t,value:e.toString(),originalValue:e,keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:u,dataType:w,cancelButtonElement:d,textareaElementGenerator:g,minusMenuElement:m,logger:S,onSubmitValueParser:x});case $z:return h.createElement(Er,{name:t,value:e.toString(),originalValue:e,keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:O,dataType:w,cancelButtonElement:d,inputElementGenerator:f,minusMenuElement:m,logger:S,onSubmitValueParser:x});default:return null}}};zl.defaultProps={keyPath:[],deep:0};var Ad=class extends p.Component{constructor(e){super(e);let t=e.deep===-1?[]:[...e.keyPath||[],e.name];this.state={name:e.name,data:e.data,keyPath:t??[],deep:e.deep??0,nextDeep:(e.deep??0)+1,collapsed:e.isCollapsed(t,e.deep??0,e.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveValue=this.handleRemoveValue.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}onChildUpdate(e,t){let{data:r,keyPath:n=[]}=this.state;r[e]=t,this.setState({data:r});let{onUpdate:o}=this.props,a=n.length;o(n[a-1],r)}handleAddMode(){this.setState({addFormVisible:!0})}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleAddValueAdd({key:e,newValue:t}){let{data:r,keyPath:n=[],nextDeep:o}=this.state,{beforeAddAction:a,logger:i}=this.props;(a||Promise.resolve.bind(Promise))(e,n,o,t).then(()=>{r[e]=t,this.setState({data:r}),this.handleAddValueCancel();let{onUpdate:l,onDeltaUpdate:s}=this.props;l(n[n.length-1],r),s({type:sw,keyPath:n,deep:o,key:e,newValue:t})}).catch(i.error)}handleRemoveValue(e){return()=>{let{beforeRemoveAction:t,logger:r}=this.props,{data:n,keyPath:o=[],nextDeep:a}=this.state,i=n[e];(t||Promise.resolve.bind(Promise))(e,o,a,i).then(()=>{let l={keyPath:o,deep:a,key:e,oldValue:i,type:uw};delete n[e],this.setState({data:n});let{onUpdate:s,onDeltaUpdate:u}=this.props;s(o[o.length-1],n),u(l)}).catch(r.error)}}handleCollapseMode(){this.setState(e=>({collapsed:!e.collapsed}))}handleEditValue({key:e,value:t}){return new Promise((r,n)=>{let{beforeUpdateAction:o}=this.props,{data:a,keyPath:i=[],nextDeep:l}=this.state,s=a[e];(o||Promise.resolve.bind(Promise))(e,i,l,s,t).then(()=>{a[e]=t,this.setState({data:a});let{onUpdate:u,onDeltaUpdate:c}=this.props;u(i[i.length-1],a),c({type:cw,keyPath:i,deep:l,key:e,newValue:t,oldValue:s}),r()}).catch(n)})}renderCollapsed(){let{name:e,keyPath:t,deep:r,data:n}=this.state,{handleRemove:o,readOnly:a,dataType:i,minusMenuElement:l}=this.props,s=Object.getOwnPropertyNames(n),u=a(e,n,t,r,i),c=l&&p.cloneElement(l,{onClick:o,className:"rejt-minus-menu","aria-label":`remove the object '${String(e)}'`});return h.createElement(h.Fragment,null,h.createElement("span",{className:"rejt-collapsed-value"},"{...}"," ",s.length," ",s.length===1?"key":"keys"),!u&&c)}renderNotCollapsed(){let{name:e,data:t,keyPath:r,deep:n,nextDeep:o,addFormVisible:a}=this.state,{isCollapsed:i,handleRemove:l,onDeltaUpdate:s,readOnly:u,dataType:c,addButtonElement:d,cancelButtonElement:f,inputElementGenerator:g,textareaElementGenerator:m,minusMenuElement:y,plusMenuElement:E,beforeRemoveAction:b,beforeAddAction:v,beforeUpdateAction:S,logger:x,onSubmitValueParser:O}=this.props,w=Object.getOwnPropertyNames(t),T=u(e,t,r,n,c),R=E&&p.cloneElement(E,{onClick:this.handleAddMode,className:"rejt-plus-menu","aria-label":`add a new property to the object '${String(e)}'`}),I=y&&p.cloneElement(y,{onClick:l,className:"rejt-minus-menu","aria-label":`remove the object '${String(e)}'`}),P=w.map(_=>h.createElement(zl,{key:_,name:_,data:t[_],keyPath:r,deep:o,isCollapsed:i,handleRemove:this.handleRemoveValue(_),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:s,readOnly:u,addButtonElement:d,cancelButtonElement:f,inputElementGenerator:g,textareaElementGenerator:m,minusMenuElement:y,plusMenuElement:E,beforeRemoveAction:b,beforeAddAction:v,beforeUpdateAction:S,logger:x,onSubmitValueParser:O}));return h.createElement(h.Fragment,null,h.createElement("span",{className:"rejt-not-collapsed-delimiter"},"{"),!T&&R,h.createElement("ul",{className:"rejt-not-collapsed-list"},P),!T&&a&&h.createElement("div",{className:"rejt-add-form"},h.createElement(Ep,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,addButtonElement:d,cancelButtonElement:f,inputElementGenerator:g,keyPath:r,deep:n,onSubmitValueParser:O})),h.createElement("span",{className:"rejt-not-collapsed-delimiter"},"}"),!T&&I)}render(){let{name:e,collapsed:t,keyPath:r,deep:n=0}=this.state,o=t?this.renderCollapsed():this.renderNotCollapsed();return h.createElement(lw,{name:e,collapsed:t,deep:n,keyPath:r,onClick:this.handleCollapseMode},o)}};Ad.defaultProps={keyPath:[],deep:0,minusMenuElement:h.createElement("span",null," - "),plusMenuElement:h.createElement("span",null," + ")};var Er=class extends p.Component{constructor(e){super(e);let t=[...e.keyPath||[],e.name];this.state={value:e.value,name:e.name,keyPath:t??[],deep:e.deep??0,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(e,t){return e.value!==t.value?{value:e.value}:null}componentDidUpdate(){let{editEnabled:e,inputRef:t,name:r,value:n,keyPath:o,deep:a}=this.state,{readOnly:i,dataType:l}=this.props,s=i(r,n,o,a,l);e&&!s&&typeof t.focus=="function"&&t.focus()}onKeydown(e){let{inputRef:t}=this.state;e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||t!==e.target||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.handleEdit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:e,originalValue:t,logger:r,onSubmitValueParser:n,keyPath:o}=this.props,{inputRef:a,name:i,deep:l}=this.state;if(!a)return;let s=n(!0,o,l,i,a.value),u={value:s,key:i};(e||Promise.resolve.bind(Promise))(u).then(()=>{dw(t,s)||this.handleCancelEdit()}).catch(r.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(e){this.state.inputRef=e}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:e,value:t,editEnabled:r,keyPath:n,deep:o}=this.state,{handleRemove:a,originalValue:i,readOnly:l,dataType:s,inputElementGenerator:u,minusMenuElement:c,keyPath:d}=this.props,f=l(e,i,n,o,s),g=r&&!f,m=u(bp,d,o,e,i,s),y=p.cloneElement(m,{ref:this.refInput,defaultValue:JSON.stringify(i),onKeyDown:this.onKeydown}),E=n.at(-2),b=c&&p.cloneElement(c,{onClick:a,className:"rejt-minus-menu","aria-label":`remove the property '${String(e)}' with value '${String(i)}'${String(E)?` from '${String(E)}'`:""}`});return h.createElement("li",{className:"rejt-value-node"},h.createElement("span",{className:"rejt-name"},e," : "),g?h.createElement("span",{className:"rejt-edit-form"},y):h.createElement("span",{className:"rejt-value",onClick:f?void 0:this.handleEditMode},String(t)),!f&&!g&&b)}};Er.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>Promise.resolve(),cancelButtonElement:h.createElement("button",null,"c"),minusMenuElement:h.createElement("span",null," - ")};function wz(e){let t=e;if(t.indexOf("function")===0)return(0,eval)(`(${t})`);try{t=JSON.parse(e)}catch{}return t}var hw=class extends p.Component{constructor(e){super(e),this.state={data:e.data,rootName:e.rootName},this.onUpdate=this.onUpdate.bind(this),this.removeRoot=this.removeRoot.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data||e.rootName!==t.rootName?{data:e.data,rootName:e.rootName}:null}onUpdate(e,t){this.setState({data:t}),this.props.onFullyUpdate?.(t)}removeRoot(){this.onUpdate(null,null)}render(){let{data:e,rootName:t}=this.state,{isCollapsed:r,onDeltaUpdate:n,readOnly:o,addButtonElement:a,cancelButtonElement:i,inputElement:l,textareaElement:s,minusMenuElement:u,plusMenuElement:c,beforeRemoveAction:d,beforeAddAction:f,beforeUpdateAction:g,logger:m,onSubmitValueParser:y,fallback:E=null}=this.props,b=Xr(e),v=o;Xr(o)==="Boolean"&&(v=()=>o);let S=l;l&&Xr(l)!=="Function"&&(S=()=>l);let x=s;return s&&Xr(s)!=="Function"&&(x=()=>s),b==="Object"||b==="Array"?h.createElement("div",{className:"rejt-tree"},h.createElement(zl,{data:e,name:t||"root",deep:-1,isCollapsed:r??(()=>!1),onUpdate:this.onUpdate,onDeltaUpdate:n??(()=>{}),readOnly:v,addButtonElement:a,cancelButtonElement:i,inputElementGenerator:S,textareaElementGenerator:x,minusMenuElement:u,plusMenuElement:c,handleRemove:this.removeRoot,beforeRemoveAction:d,beforeAddAction:f,beforeUpdateAction:g,logger:m??{},onSubmitValueParser:y??(O=>O)})):E}};hw.defaultProps={rootName:"root",isCollapsed:(e,t)=>t!==-1,readOnly:()=>!1,onFullyUpdate:()=>{},onDeltaUpdate:()=>{},beforeRemoveAction:()=>Promise.resolve(),beforeAddAction:()=>Promise.resolve(),beforeUpdateAction:()=>Promise.resolve(),logger:{error:()=>{}},onSubmitValueParser:(e,t,r,n,o)=>wz(o),inputElement:()=>h.createElement("input",null),textareaElement:()=>h.createElement("textarea",null),fallback:null};var{window:Cz}=globalThis,_z=F.div(({theme:e})=>({position:"relative",display:"flex",isolation:"isolate",gap:8,".rejt-tree":{flex:1,marginLeft:"1rem",fontSize:"13px",listStyleType:"none"},".rejt-value-node:hover":{"& > button":{opacity:1}},".rejt-add-form":{marginLeft:10},".rejt-add-value-node":{display:"inline-flex",alignItems:"center"},".rejt-name":{color:e.color.secondary,lineHeight:"22px"},".rejt-not-collapsed-list":{listStyle:"none",margin:"0 0 0 1rem",padding:0},".rejt-not-collapsed-delimiter":{lineHeight:"22px"},".rejt-value":{display:"inline-block",border:"1px solid transparent",borderRadius:4,margin:"1px 0",padding:"0 4px",cursor:"text",color:e.color.defaultText},".rejt-value-node:hover > .rejt-value":{background:e.base==="light"?e.color.lighter:"hsl(0 0 100 / 0.02)",borderColor:e.appBorderColor},".rejt-collapsed-value":{color:e.color.defaultText}})),Ly=F.button(({theme:e,primary:t})=>({border:0,height:20,margin:1,borderRadius:4,background:t?e.color.secondary:"transparent",color:t?e.color.lightest:e.color.dark,fontWeight:t?"bold":"normal",cursor:"pointer"})),ky=F.button(({theme:e})=>({background:"none",border:0,display:"inline-flex",verticalAlign:"middle",padding:3,marginLeft:5,color:e.textMutedColor,opacity:0,transition:"opacity 0.2s",cursor:"pointer",position:"relative",svg:{width:9,height:9},":disabled":{cursor:"not-allowed"},":hover, :focus-visible":{opacity:1},"&:hover:not(:disabled), &:focus-visible:not(:disabled)":{"&.rejt-plus-menu":{color:e.color.ancillary},"&.rejt-minus-menu":{color:e.color.negative}}})),Ny=F.input(({theme:e,placeholder:t})=>({outline:0,margin:t?1:"1px 0",padding:"3px 4px",color:e.color.defaultText,background:e.background.app,border:`1px solid ${e.appBorderColor}`,borderRadius:4,lineHeight:"14px",width:t==="Key"?80:120,"&:focus":{border:`1px solid ${e.color.secondary}`}})),Tz=F(ga)({alignSelf:"flex-start",order:2,marginRight:-10}),Oz=F(gn.Textarea)(({theme:e})=>({flex:1,padding:"7px 6px",fontFamily:e.typography.fonts.mono,fontSize:"12px",lineHeight:"18px","&::placeholder":{fontFamily:e.typography.fonts.base,fontSize:"13px"},"&:placeholder-shown":{padding:"7px 10px"}})),Az={bubbles:!0,cancelable:!0,key:"Enter",code:"Enter",keyCode:13},Rz=e=>{e.currentTarget.dispatchEvent(new Cz.KeyboardEvent("keydown",Az))},Dz=e=>{e.currentTarget.select()},My=({name:e,storyId:t,value:r,onChange:n,argType:o})=>{al();let a=p.useMemo(()=>r&&AH(r),[r]),i=a!=null,[l,s]=p.useState(!i),[u,c]=p.useState(null),d=!!o?.table?.readonly,f=p.useCallback(x=>{try{x&&n(JSON.parse(x)),c(null)}catch(O){c(O)}},[n]),[g,m]=p.useState(!1),y=p.useCallback(()=>{n({}),m(!0)},[n,m]),E=p.useRef(null);p.useEffect(()=>{g&&E.current&&E.current.select()},[g]);let b=p.useMemo(()=>JSON.stringify(a??"",null,2),[a]);if(!i)return h.createElement(be,{ariaLabel:!1,disabled:d,id:Zi(e,t),onClick:y},"Set object");let v=h.createElement(Oz,{ref:E,id:Lt(e,t),minRows:3,name:e,key:b,defaultValue:b,onBlur:x=>f(x.target.value),placeholder:"Edit JSON string...",autoFocus:g,valid:u?"error":void 0,readOnly:d}),S=Array.isArray(r)||typeof r=="object"&&r?.constructor===Object;return h.createElement(_z,null,S&&h.createElement(Tz,{disabled:d,pressed:l,ariaLabel:`Edit ${e} as JSON`,onClick:x=>{x.preventDefault(),s(O=>!O)},variant:"ghost",padding:"small",size:"small"},h.createElement(zO,null)),l?v:h.createElement(hw,{readOnly:d||!S,isCollapsed:S?void 0:()=>!0,data:a,rootName:e,onFullyUpdate:n,cancelButtonElement:h.createElement(Ly,{type:"button"},"Cancel"),addButtonElement:h.createElement(Ly,{type:"submit",primary:!0},"Save"),plusMenuElement:h.createElement(ky,{type:"button"},h.createElement(KO,null)),minusMenuElement:h.createElement(ky,{type:"button"},h.createElement(GO,null)),inputElement:(x,O,w,T)=>T?h.createElement(Ny,{onFocus:Dz,onBlur:Rz}):h.createElement(Ny,null),fallback:v}))},Pz=F.input(({theme:e,min:t,max:r,value:n,disabled:o})=>{let a={background:e.base==="light"?`linear-gradient(to right,
|
|
734
|
+
${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%,
|
|
735
|
+
${Io(.02,e.input.background)} ${(n-t)/(r-t)*100}%,
|
|
736
|
+
${Io(.02,e.input.background)} 100%)`:`linear-gradient(to right,
|
|
737
|
+
${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%,
|
|
738
|
+
${_d(.02,e.input.background)} ${(n-t)/(r-t)*100}%,
|
|
739
|
+
${_d(.02,e.input.background)} 100%)`,borderRadius:6,boxShadow:`${e.base=="dark"?"hsl(0 0 100 / 0.4)":"hsl(0 0 0 / 0.44)"} 0 0 0 1px inset`,cursor:o?"not-allowed":"pointer",height:6,width:"100%"},i={borderColor:Yn(e.color.secondary,.4)},l={width:16,height:16,borderRadius:50,cursor:o?"not-allowed":"grab",background:e.input.background,border:`1px solid ${e.base=="dark"?"hsl(0 0 100 / 0.4)":"hsl(0 0 0 / 0.44)"}`,boxShadow:e.base==="light"?`0 1px 3px 0px ${Yn(e.appBorderColor,.2)}`:"unset",transition:"all 150ms ease-out"},s={background:`${Io(.05,e.input.background)}`,transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},u={background:`${e.input.background}`,transform:"scale3d(1, 1, 1) translateY(0px)"},c={borderColor:e.color.secondary,boxShadow:e.base==="light"?`0 0px 5px 0px ${e.color.secondary}`:"unset"};return{appearance:"none",backgroundColor:"transparent",width:"100%","&::-webkit-slider-runnable-track":a,"&::-moz-range-track":a,"&::-ms-track":{...a,color:"transparent"},"&::-moz-range-thumb":{...l,"&:hover":s,"&:active":u},"&::-webkit-slider-thumb":{...l,marginTop:"-6px",appearance:"none","&:hover":s,"&:active":u},"&::-ms-thumb":{...l,marginTop:0,"&:hover":s,"&:active":u},"&:focus":{outline:"none","&::-webkit-slider-runnable-track":i,"&::-moz-range-track":i,"&::-ms-track":i,"&::-webkit-slider-thumb":c,"&::-moz-range-thumb":c,"&::-ms-thumb":c},"&::-ms-fill-lower":{borderRadius:6},"&::-ms-fill-upper":{borderRadius:6},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}}}),gw=F.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums"}),Fz=F(gw)(({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+t.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),Iz=F.div(({readOnly:e})=>({display:"flex",alignItems:"center",width:"100%",opacity:e?.5:1}));function Lz(e){let t=e.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}var kz=({name:e,storyId:t,value:r,onChange:n,min:o=0,max:a=100,step:i=1,onBlur:l,onFocus:s,argType:u})=>{let c=y=>{n(VU(y.target.value))},d=r!==void 0,f=p.useMemo(()=>Lz(i),[i]),g=!!u?.table?.readonly,m=Lt(e,t);return h.createElement(Iz,{readOnly:g},h.createElement("label",{htmlFor:m,className:"sb-sr-only"},e),h.createElement(gw,null,o),h.createElement(Pz,{id:m,type:"range",disabled:g,onChange:c,name:e,min:o,max:a,step:i,onFocus:s,onBlur:l,value:r??o}),h.createElement(Fz,{numberOFDecimalsPlaces:f,max:a},d?r.toFixed(f):"--"," / ",a))},Nz=F.label({display:"flex"}),Mz=F.div(({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0})),Bz=({name:e,storyId:t,value:r,onChange:n,onFocus:o,onBlur:a,maxLength:i,argType:l})=>{let s=m=>{n(m.target.value)},u=!!l?.table?.readonly,[c,d]=p.useState(!1),f=p.useCallback(()=>{n(""),d(!0)},[d]);if(r===void 0)return h.createElement(be,{ariaLabel:!1,variant:"outline",size:"medium",disabled:u,id:Zi(e,t),onClick:f},"Set string");let g=typeof r=="string";return h.createElement(Nz,null,h.createElement(gn.Textarea,{id:Lt(e,t),maxLength:i,onChange:s,disabled:u,size:"flex",placeholder:"Edit string...",autoFocus:c,valid:g?void 0:"error",name:e,value:g?r:"",onFocus:o,onBlur:a}),i&&h.createElement(Mz,{isMaxed:r?.length===i},r?.length??0," / ",i))},jz=F(gn.Input)({padding:10});function Hz(e){e.forEach(t=>{t.startsWith("blob:")&&URL.revokeObjectURL(t)})}var Uz=({onChange:e,name:t,storyId:r,accept:n="image/*",value:o,argType:a})=>{let i=p.useRef(null),l=a?.control?.readOnly;function s(c){if(!c.target.files)return;let d=Array.from(c.target.files).map(f=>URL.createObjectURL(f));e(d),Hz(o||[])}p.useEffect(()=>{o==null&&i.current&&(i.current.value="")},[o,t]);let u=Lt(t,r);return h.createElement(h.Fragment,null,h.createElement("label",{htmlFor:u,className:"sb-sr-only"},t),h.createElement(jz,{ref:i,id:u,type:"file",name:t,multiple:!0,disabled:l,onChange:s,accept:n,size:"flex"}))},zz=p.lazy(()=>cr(()=>import("./Color-23OOGO2C-CELuW8GR.js"),__vite__mapDeps([6,1,2,3]),import.meta.url)),Kz=e=>h.createElement(p.Suspense,{fallback:h.createElement("div",null)},h.createElement(zz,{...e})),Gz={array:My,object:My,boolean:BU,color:Kz,date:GU,number:YU,check:Sn,"inline-check":Sn,radio:Sn,"inline-radio":Sn,select:Sn,"multi-select":Sn,range:kz,text:Bz,file:Uz},By=()=>h.createElement(h.Fragment,null,"-"),Wz=({row:e,arg:t,updateArgs:r,isHovered:n,storyId:o})=>{let{key:a,control:i}=e,[l,s]=p.useState(!1),[u,c]=p.useState({value:t});p.useEffect(()=>{l||c({value:t})},[l,t]);let d=p.useCallback(E=>(c({value:E}),r({[a]:E}),E),[r,a]),f=p.useCallback(()=>s(!1),[]),g=p.useCallback(()=>s(!0),[]);if(!i||i.disable){let E=i?.disable!==!0&&e?.type?.name!=="function";return n&&E?h.createElement(zn,{href:"https://storybook.js.org/docs/essentials/controls?ref=ui",target:"_blank",withArrow:!0},"Setup controls"):h.createElement(By,null)}let m={name:a,storyId:o,argType:e,value:u.value,onChange:d,onBlur:f,onFocus:g},y=Gz[i.type]||By;return h.createElement(y,{...m,...i,controlType:i.type})},Vz=F.table(({theme:e})=>({"&&":{borderCollapse:"collapse",borderSpacing:0,border:"none",tr:{border:"none !important",background:"none"},"td, th":{padding:0,border:"none",width:"auto!important"},marginTop:0,marginBottom:0,"th:first-of-type, td:first-of-type":{paddingLeft:0},"th:last-of-type, td:last-of-type":{paddingRight:0},td:{paddingTop:0,paddingBottom:4,"&:not(:first-of-type)":{paddingLeft:10,paddingRight:0}},tbody:{boxShadow:"none",border:"none"},code:fr({theme:e}),div:{span:{fontWeight:"bold"}},"& code":{margin:0,display:"inline-block",fontSize:e.typography.size.s1}}})),qz=({tags:e})=>{let t=(e.params||[]).filter(a=>a.description),r=t.length!==0,n=e.deprecated!=null,o=e.returns!=null&&e.returns.description!=null;return!r&&!o&&!n?null:h.createElement(h.Fragment,null,h.createElement(Vz,null,h.createElement("tbody",null,n&&h.createElement("tr",{key:"deprecated"},h.createElement("td",{colSpan:2},h.createElement("strong",null,"Deprecated"),": ",e.deprecated?.toString())),r&&t.map(a=>h.createElement("tr",{key:a.name},h.createElement("td",null,h.createElement("code",null,a.name)),h.createElement("td",null,a.description))),o&&h.createElement("tr",{key:"returns"},h.createElement("td",null,h.createElement("code",null,"Returns")),h.createElement("td",null,e.returns?.description)))))};function Yz(e){return[...new Set(e)]}var qi=8,jy=F.div(({isExpanded:e})=>({display:"flex",flexDirection:e?"column":"row",flexWrap:"wrap",alignItems:"flex-start",marginBottom:"-4px",minWidth:100})),Xz=F.details({display:"flex",flexDirection:"column",summary:{order:2},"summary::-webkit-details-marker":{display:"none"},"summary::marker":{content:"none"}}),Jz=F.div({display:"flex",flexDirection:"column",flexWrap:"wrap",alignItems:"flex-start"}),Zz=F.span(fr,({theme:e,simple:t=!1})=>({flex:"0 0 auto",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,wordBreak:"break-word",whiteSpace:"normal",maxWidth:"100%",margin:0,marginRight:"4px",marginBottom:"4px",paddingTop:"2px",paddingBottom:"2px",lineHeight:"13px",...t&&{background:"transparent",border:"0 none",paddingLeft:0}})),Qz=F.summary(({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,cursor:"pointer",lineHeight:"normal",margin:"0 0 4px",padding:"1px 6px",background:"none",border:"none"})),eK=F.button(fr,({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,fontSize:e.typography.size.s1,margin:0,whiteSpace:"nowrap",display:"flex",alignItems:"center",cursor:"pointer","&:hover":{border:e.base==="light"?"1px solid hsl(0 0 0 / 0.15)":"1px solid hsl(0 0 100 / 0.15)"},"&:focus-visible":{outline:`2px solid ${e.color.secondary}`,outlineOffset:"2px"}})),tK=F.div(({theme:e})=>({minWidth:200,maxWidth:800,paddingRight:16,fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,boxSizing:"content-box","& code":{padding:"0 !important"}})),rK=F(JO)({marginLeft:4}),nK=F(Vb)({marginLeft:4}),oK=()=>h.createElement("span",null,"-"),vp=({text:e,simple:t})=>h.createElement(Zz,{simple:t},e),aK=e=>{if(!e)return[e];let t=e.split("|").map(r=>r.trim());return Yz(t)},Hy=e=>e.slice(0,qi).map(t=>h.createElement(vp,{key:t,text:t===""?'""':t})),iK=e=>e.slice(qi).map(t=>h.createElement(vp,{key:t,text:t===""?'""':t})),lK=({value:e,initialExpandedArgs:t})=>{let{summary:r,detail:n}=e,[o,a]=p.useState(!1),[i,l]=p.useState(t||!1);if(r==null)return null;let s=typeof r.toString=="function"?r.toString():r;if(n==null){if(/[(){}[\]<>]/.test(s))return h.createElement(vp,{text:s});let u=aK(s),c=u.length;return c>qi?h.createElement(jy,{isExpanded:i},Hy(u),h.createElement(Xz,{open:i,onToggle:d=>l(d.currentTarget.open)},h.createElement(Jz,null,iK(u)),h.createElement(Qz,{role:"button"},i?"Show less...":`Show ${c-qi} more...`))):h.createElement(jy,null,Hy(u))}return h.createElement(dp,{ariaLabel:"Arg value details",placement:"bottom",visible:o,onVisibleChange:u=>{a(u)},hasCloseButton:!0,popover:h.createElement(tK,null,h.createElement(ca,{language:"jsx",format:!1},n))},h.createElement(eK,{className:"sbdocs-expandable"},h.createElement("span",null,s),o?h.createElement(rK,null):h.createElement(nK,null)))},ic=({value:e,initialExpandedArgs:t})=>e==null?h.createElement(oK,null):h.createElement(lK,{value:e,initialExpandedArgs:t}),sK=F.span({fontWeight:"bold"}),uK=F.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"})),cK=F.div(({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:{...fr({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),dK=F.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?Ae(.1,e.color.defaultText):Ae(.2,e.color.defaultText),marginTop:t?4:0})),fK=F.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?Ae(.1,e.color.defaultText):Ae(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),pK=F.td(({expandable:e})=>({paddingLeft:e?"40px !important":"20px !important"})),hK=e=>e&&{summary:typeof e=="string"?e:e.name},qa=e=>{let[t,r]=p.useState(!1),{row:n,updateArgs:o,compact:a,expandable:i,initialExpandedArgs:l}=e,{name:s,description:u}=n,c=n.table||{},d=c.type||hK(n.type),f=c.defaultValue||n.defaultValue,g=n.type?.required,m=u!=null&&u!=="";return h.createElement("tr",{onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1)},h.createElement(pK,{expandable:i??!1},h.createElement(sK,null,s),g?h.createElement(uK,{title:"Required"},"*"):null),a?null:h.createElement("td",null,m&&h.createElement(cK,null,h.createElement(rw,null,u)),c.jsDocTags!=null?h.createElement(h.Fragment,null,h.createElement(fK,{hasDescription:m},h.createElement(ic,{value:d,initialExpandedArgs:l})),h.createElement(qz,{tags:c.jsDocTags})):h.createElement(dK,{hasDescription:m},h.createElement(ic,{value:d,initialExpandedArgs:l}))),a?null:h.createElement("td",null,h.createElement(ic,{value:f,initialExpandedArgs:l})),o?h.createElement("td",null,h.createElement(Wz,{...e,isHovered:t})):null)},gK=F.div(({inAddonPanel:e,theme:t})=>({height:e?"100%":"auto",display:"flex",border:e?"none":`1px solid ${t.appBorderColor}`,borderRadius:e?0:t.appBorderRadius,padding:e?0:40,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:t.background.content})),mK=F.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),yK=({inAddonPanel:e})=>{let[t,r]=p.useState(!0);return p.useEffect(()=>{let n=setTimeout(()=>{r(!1)},100);return()=>clearTimeout(n)},[]),t?null:h.createElement(gK,{inAddonPanel:e},h.createElement(Ea,{title:e?"Interactive story playground":"Args table with interactive controls couldn't be auto-generated",description:h.createElement(h.Fragment,null,"Controls give you an easy to use interface to test your components. Set your story args and you'll see controls appearing here automatically."),footer:h.createElement(mK,null,e&&h.createElement(h.Fragment,null,h.createElement(zn,{href:"https://storybook.js.org/docs/essentials/controls?ref=ui",target:"_blank",withArrow:!0},h.createElement(_c,null)," Read docs")),!e&&h.createElement(zn,{href:"https://storybook.js.org/docs/essentials/controls?ref=ui",target:"_blank",withArrow:!0},h.createElement(_c,null)," Learn how to set that up"))}))},bK=F(XO)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?Ae(.25,e.color.defaultText):Ae(.3,e.color.defaultText),border:"none",display:"inline-block"})),EK=F(Wb)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?Ae(.25,e.color.defaultText):Ae(.3,e.color.defaultText),border:"none",display:"inline-block"})),vK=F.span(({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),SK=F.td(({theme:e})=>({position:"relative",letterSpacing:"0.35em",textTransform:"uppercase",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s1-1,color:e.base==="light"?Ae(.4,e.color.defaultText):Ae(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),xK=F.td(({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),$K=F.td({position:"relative"}),wK=F.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${_d(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),Uy=F.button({background:"none",border:"none",padding:"0",font:"inherit",position:"absolute",top:0,bottom:0,left:0,right:0,height:"100%",width:"100%",color:"transparent",cursor:"row-resize !important"}),lc=({level:e="section",label:t,children:r,initialExpanded:n=!0,colSpan:o=3})=>{let[a,i]=p.useState(n),l=e==="subsection"?xK:SK,s=r?.length||0,u=e==="subsection"?`${s} item${s!==1?"s":""}`:"",c=`${a?"Hide":"Show"} ${e==="subsection"?s:t} item${s!==1?"s":""}`;return h.createElement(h.Fragment,null,h.createElement(wK,{title:c},h.createElement(l,{colSpan:1},h.createElement(Uy,{onClick:d=>i(!a),tabIndex:0},c),h.createElement(vK,null,a?h.createElement(bK,null):h.createElement(EK,null),t)),h.createElement($K,{colSpan:o-1},h.createElement(Uy,{onClick:d=>i(!a),tabIndex:-1,style:{outline:"none"}},c),a?null:u)),a?r:null)},CK=F.div(({theme:e})=>({width:"100%",borderSpacing:0,color:e.color.defaultText})),Ya=F.div(({theme:e})=>({display:"flex",borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),Ke=F.div(({position:e,theme:t})=>{let r={display:"flex",flexDirection:"column",gap:5,padding:"10px 15px",alignItems:"flex-start"};switch(e){case"first":return{...r,width:"25%",paddingLeft:20};case"second":return{...r,width:"35%"};case"third":return{...r,width:"15%"};case"last":return{...r,width:"25%",paddingRight:20}}}),De=F.div(({theme:e,width:t,height:r})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,width:t||"100%",height:r||16,borderRadius:3})),_K=()=>h.createElement(CK,null,h.createElement(Ya,null,h.createElement(Ke,{position:"first"},h.createElement(De,{width:"60%"})),h.createElement(Ke,{position:"second"},h.createElement(De,{width:"30%"})),h.createElement(Ke,{position:"third"},h.createElement(De,{width:"60%"})),h.createElement(Ke,{position:"last"},h.createElement(De,{width:"60%"}))),h.createElement(Ya,null,h.createElement(Ke,{position:"first"},h.createElement(De,{width:"60%"})),h.createElement(Ke,{position:"second"},h.createElement(De,{width:"80%"}),h.createElement(De,{width:"30%"})),h.createElement(Ke,{position:"third"},h.createElement(De,{width:"60%"})),h.createElement(Ke,{position:"last"},h.createElement(De,{width:"60%"}))),h.createElement(Ya,null,h.createElement(Ke,{position:"first"},h.createElement(De,{width:"60%"})),h.createElement(Ke,{position:"second"},h.createElement(De,{width:"80%"}),h.createElement(De,{width:"30%"})),h.createElement(Ke,{position:"third"},h.createElement(De,{width:"60%"})),h.createElement(Ke,{position:"last"},h.createElement(De,{width:"60%"}))),h.createElement(Ya,null,h.createElement(Ke,{position:"first"},h.createElement(De,{width:"60%"})),h.createElement(Ke,{position:"second"},h.createElement(De,{width:"80%"}),h.createElement(De,{width:"30%"})),h.createElement(Ke,{position:"third"},h.createElement(De,{width:"60%"})),h.createElement(Ke,{position:"last"},h.createElement(De,{width:"60%"})))),TK=F.table(({theme:e,compact:t,inAddonPanel:r,inTabPanel:n})=>({"&&":{borderSpacing:0,color:e.color.defaultText,"td, th":{padding:0,border:"none",verticalAlign:"top",textOverflow:"ellipsis"},fontSize:e.typography.size.s2-1,lineHeight:"19px",textAlign:"left",width:"100%",marginTop:r?0:25,marginBottom:r?0:40,"thead th:first-of-type, td:first-of-type":{width:"25%"},"th:first-of-type, td:first-of-type":{paddingLeft:20},"th:nth-of-type(2), td:nth-of-type(2)":{...t?null:{width:"35%"}},"td:nth-of-type(3)":{...t?null:{width:"15%"}},"th:last-of-type, td:last-of-type":{paddingRight:20,...t?null:{width:"25%"}},th:{color:e.textMutedColor,paddingTop:10,paddingBottom:10,paddingLeft:15,paddingRight:15},td:{paddingTop:"10px",paddingBottom:"10px","&:not(:first-of-type)":{paddingLeft:15,paddingRight:15},"&:last-of-type":{paddingRight:20}},marginInline:r||n?0:1,paddingInline:n?3:0,tbody:{...r?null:{filter:e.base==="light"?"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.10))":"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.20))"},"> tr > *":{background:e.background.content,borderTop:`1px solid ${e.appBorderColor}`},...r?null:{"> tr:first-of-type > *":{borderBlockStart:`1px solid ${e.appBorderColor}`},"> tr:last-of-type > *":{borderBlockEnd:`1px solid ${e.appBorderColor}`},"> tr > *:first-of-type":{borderInlineStart:`1px solid ${e.appBorderColor}`},"> tr > *:last-of-type":{borderInlineEnd:`1px solid ${e.appBorderColor}`},"> tr:first-of-type > td:first-of-type":{borderTopLeftRadius:e.appBorderRadius},"> tr:first-of-type > td:last-of-type":{borderTopRightRadius:e.appBorderRadius},"> tr:last-of-type > td:first-of-type":{borderBottomLeftRadius:e.appBorderRadius},"> tr:last-of-type > td:last-of-type":{borderBottomRightRadius:e.appBorderRadius}}},"@media (forced-colors: active)":{tbody:{filter:"none","> tr > *":{borderColor:"CanvasText"}}}}})),OK=F.div({position:"relative"}),AK=F.div({position:"absolute",right:22,top:10}),RK=F(be)({margin:"-4px -12px -4px 0"}),DK={alpha:(e,t)=>(e.name??"").localeCompare(t.name??""),requiredFirst:(e,t)=>+!!t.type?.required-+!!e.type?.required||(e.name??"").localeCompare(t.name??""),none:null},PK=(e,t)=>{let r={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return r;Object.entries(e).forEach(([a,i])=>{let{category:l,subcategory:s}=i?.table||{};if(l){let u=r.sections[l]||{ungrouped:[],subsections:{}};if(!s)u.ungrouped.push({key:a,...i});else{let c=u.subsections[s]||[];c.push({key:a,...i}),u.subsections[s]=c}r.sections[l]=u}else if(s){let u=r.ungroupedSubsections[s]||[];u.push({key:a,...i}),r.ungroupedSubsections[s]=u}else r.ungrouped.push({key:a,...i})});let n=DK[t],o=a=>n?Object.keys(a).reduce((i,l)=>({...i,[l]:a[l].sort(n)}),{}):a;return{ungrouped:n?r.ungrouped.sort(n):r.ungrouped,ungroupedSubsections:o(r.ungroupedSubsections),sections:Object.keys(r.sections).reduce((a,i)=>({...a,[i]:{ungrouped:n?r.sections[i].ungrouped.sort(n):r.sections[i].ungrouped,subsections:o(r.sections[i].subsections)}}),{})}},FK=(e,t,r)=>{try{return jP(e,t,r)}catch(n){return tH.warn(n.message),!1}},Yi=e=>{let{updateArgs:t,resetArgs:r,compact:n,inAddonPanel:o,inTabPanel:a,initialExpandedArgs:i,sort:l="none",isLoading:s,storyId:u}=e;if("error"in e){let{error:x}=e;return h.createElement(W$,null,x," ",h.createElement(zn,{href:"http://storybook.js.org/docs/?ref=ui",target:"_blank",withArrow:!0},h.createElement(_c,null)," Read the docs"))}if(s)return h.createElement(_K,null);let{rows:c,args:d,globals:f}="rows"in e?e:{rows:void 0,args:void 0,globals:void 0},g=PK(RH(c||{},x=>!x?.table?.disable&&FK(x,d||{},f||{})),l),m=g.ungrouped.length===0,y=Object.entries(g.sections).length===0,E=Object.entries(g.ungroupedSubsections).length===0;if(m&&y&&E)return h.createElement(yK,{inAddonPanel:o});let b=1;t&&(b+=1),n||(b+=2);let v=Object.keys(g.sections).length>0,S={updateArgs:t,compact:n,inAddonPanel:o,initialExpandedArgs:i,storyId:u};return h.createElement(If,null,h.createElement(OK,null,t&&!s&&r&&h.createElement(AK,null,h.createElement(RK,{variant:"ghost",padding:"small",onClick:()=>r(),ariaLabel:"Reset controls"},h.createElement(eA,null))),h.createElement(TK,{compact:n,inAddonPanel:o,inTabPanel:a,className:"docblock-argstable sb-unstyled"},h.createElement("thead",{className:"docblock-argstable-head"},h.createElement("tr",null,h.createElement("th",null,h.createElement("span",null,"Name")),n?null:h.createElement("th",null,h.createElement("span",null,"Description")),n?null:h.createElement("th",null,h.createElement("span",null,"Default")),t?h.createElement("th",null,h.createElement("span",null,"Control")):null)),h.createElement("tbody",{className:"docblock-argstable-body"},g.ungrouped.map(x=>h.createElement(qa,{key:x.key,row:x,arg:d&&d[x.key],...S})),Object.entries(g.ungroupedSubsections).map(([x,O])=>h.createElement(lc,{key:x,label:x,level:"subsection",colSpan:b},O.map(w=>h.createElement(qa,{key:w.key,row:w,arg:d&&d[w.key],expandable:v,...S})))),Object.entries(g.sections).map(([x,O])=>h.createElement(lc,{key:x,label:x,level:"section",colSpan:b},O.ungrouped.map(w=>h.createElement(qa,{key:w.key,row:w,arg:d&&d[w.key],...S})),Object.entries(O.subsections).map(([w,T])=>h.createElement(lc,{key:w,label:w,level:"subsection",colSpan:b},T.map(R=>h.createElement(qa,{key:R.key,row:R,arg:d&&d[R.key],expandable:v,...S}))))))))))},Pe=e=>`& :where(${e}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${e}))`,Sp=600,IK=F.h1(({theme:e})=>({...$e({theme:e}),color:e.color.defaultText,fontSize:e.typography.size.m3,fontWeight:e.typography.weight.bold,lineHeight:"32px",[`@media (min-width: ${Sp}px)`]:{fontSize:e.typography.size.l1,lineHeight:"36px",marginBottom:"16px"}})),LK=F.h2(({theme:e})=>({...$e({theme:e}),fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15,[`@media (min-width: ${Sp}px)`]:{fontSize:e.typography.size.m1,lineHeight:"28px",marginBottom:24},color:Ae(.25,e.color.defaultText)})),kK=F.div(({theme:e})=>{let t={fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},r={margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& code":{fontSize:"inherit"}},n={lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:e.typography.size.s2-1,border:e.base==="light"?`1px solid ${e.color.mediumlight}`:`1px solid ${e.color.darker}`,color:e.base==="light"?Ae(.1,e.color.defaultText):Ae(.3,e.color.defaultText),backgroundColor:e.base==="light"?e.color.lighter:e.color.border};return{maxWidth:1e3,width:"100%",minWidth:0,[Pe("a")]:{...t,fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"underline",textDecorationThickness:"0.03125rem",textUnderlineOffset:"0.11em","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0,textDecoration:"none"},"&.anchor:hover, &.anchor:focus":{textDecoration:"underline"}},[Pe("blockquote")]:{...t,margin:"16px 0",borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},[Pe("div")]:t,[Pe("dl")]:{...t,margin:"16px 0",padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}},[Pe("h1")]:{...t,...r,fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},[Pe("h2")]:{...t,...r,fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`},[Pe("h3")]:{...t,...r,fontSize:`${e.typography.size.m1}px`,fontWeight:e.typography.weight.bold},[Pe("h4")]:{...t,...r,fontSize:`${e.typography.size.s3}px`},[Pe("h5")]:{...t,...r,fontSize:`${e.typography.size.s2}px`},[Pe("h6")]:{...t,...r,fontSize:`${e.typography.size.s2}px`,color:e.color.dark},[Pe("hr")]:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},[Pe("img")]:{maxWidth:"100%"},[Pe("li")]:{...t,fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":n},[Pe("ol")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},[Pe("p")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":n},[Pe("pre")]:{...t,fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}},[Pe("span")]:{...t,"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}},[Pe("table")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:e.base==="dark"?e.color.darker:e.color.lighter},"& tr th":{fontWeight:"bold",color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}},[Pe("ul")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0},listStyle:"disc"}}}),NK=F.div(({theme:e})=>({background:e.background.content,display:"flex",flexDirection:"row-reverse",justifyContent:"center",padding:"4rem 20px",minHeight:"100vh",boxSizing:"border-box",gap:"3rem",[`@media (min-width: ${Sp}px)`]:{}})),MK=({children:e,toc:t})=>h.createElement(NK,{className:"sbdocs sbdocs-wrapper"},t,h.createElement(kK,{className:"sbdocs sbdocs-content"},e));const{logger:BK}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var mw=typeof document<"u"?h.useLayoutEffect:()=>{},yw={prefix:String(Math.round(Math.random()*1e10)),current:0},bw=h.createContext(yw),jK=h.createContext(!1),sc=new WeakMap;function HK(e=!1){let t=p.useContext(bw),r=p.useRef(null);if(r.current===null&&!e){var n,o;let a=(o=h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0||(n=o.ReactCurrentOwner)===null||n===void 0?void 0:n.current;if(a){let i=sc.get(a);i==null?sc.set(a,{id:t.current,state:a.memoizedState}):a.memoizedState!==i.state&&(t.current=i.id,sc.delete(a))}r.current=++t.current}return r.current}function UK(e){let t=p.useContext(bw),r=HK(!!e),n=`react-aria${t.prefix}`;return e||`${n}-${r}`}function zK(e){let t=h.useId(),[r]=p.useState(qK()),n=r?"react-aria":`react-aria${yw.prefix}`;return e||`${n}-${t}`}var KK=typeof h.useId=="function"?zK:UK;function GK(){return!1}function WK(){return!0}function VK(e){return()=>{}}function qK(){return typeof h.useSyncExternalStore=="function"?h.useSyncExternalStore(VK,GK,WK):p.useContext(jK)}var YK=!!(typeof window<"u"&&window.document&&window.document.createElement),yi=new Map,Ro;typeof FinalizationRegistry<"u"&&(Ro=new FinalizationRegistry(e=>{yi.delete(e)}));function XK(e){let[t,r]=p.useState(e),n=p.useRef(null),o=KK(t),a=p.useRef(null);if(Ro&&Ro.register(a,o),YK){let i=yi.get(o);i&&!i.includes(n)?i.push(n):yi.set(o,[n])}return mw(()=>{let i=o;return()=>{Ro&&Ro.unregister(a),yi.delete(i)}},[o]),p.useEffect(()=>{let i=n.current;return i&&r(i),()=>{i&&(n.current=null)}}),o}function JK(e){if(ZK())e.focus({preventScroll:!0});else{let t=QK(e);e.focus(),eG(t)}}var Xa=null;function ZK(){if(Xa==null){Xa=!1;try{document.createElement("div").focus({get preventScroll(){return Xa=!0,!0}})}catch{}}return Xa}function QK(e){let t=e.parentNode,r=[],n=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==n;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),r}function eG(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}function xp(e){var t;if(typeof window>"u"||window.navigator==null)return!1;let r=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(r)&&r.some(n=>e.test(n.brand))||e.test(window.navigator.userAgent)}function Ew(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function va(e){let t=null;return()=>(t==null&&(t=e()),t)}var Rd=va(function(){return Ew(/^Mac/i)}),tG=va(function(){return Ew(/^iPad/i)||Rd()&&navigator.maxTouchPoints>1}),rG=va(function(){return xp(/AppleWebKit/i)&&!nG()}),nG=va(function(){return xp(/Chrome/i)}),oG=va(function(){return xp(/Firefox/i)});p.createContext({isNative:!0,open:iG,useHref:e=>e});function Xi(e,t,r=!0){var n,o;let{metaKey:a,ctrlKey:i,altKey:l,shiftKey:s}=t;oG()&&!((o=window.event)===null||o===void 0||(n=o.type)===null||n===void 0)&&n.startsWith("key")&&e.target==="_blank"&&(Rd()?a=!0:i=!0);let u=rG()&&Rd()&&!tG()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:a,ctrlKey:i,altKey:l,shiftKey:s}):new MouseEvent("click",{metaKey:a,ctrlKey:i,altKey:l,shiftKey:s,detail:1,bubbles:!0,cancelable:!0});Xi.isOpening=r,JK(e),e.dispatchEvent(u),Xi.isOpening=!1}Xi.isOpening=!1;function aG(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let r=document.createElement("a");r.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(r.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(r.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(r.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(r.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(r.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(r),t(r),e.removeChild(r)}}function iG(e,t){aG(e,r=>Xi(r,t))}var $o=new Map,zy=new Set;function Ky(){if(typeof window>"u")return;function e(n){return"propertyName"in n}let t=n=>{if(!e(n)||!n.target)return;let o=$o.get(n.target);o||(o=new Set,$o.set(n.target,o),n.target.addEventListener("transitioncancel",r,{once:!0})),o.add(n.propertyName)},r=n=>{if(!e(n)||!n.target)return;let o=$o.get(n.target);if(o&&(o.delete(n.propertyName),o.size===0&&(n.target.removeEventListener("transitioncancel",r),$o.delete(n.target)),$o.size===0)){for(let a of zy)a();zy.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?Ky():document.addEventListener("DOMContentLoaded",Ky));var uc;uc=h.useInsertionEffect;var cc;typeof document<"u"&&((cc=h.useInsertionEffect)!==null&&cc!==void 0||h.useLayoutEffect);globalThis&&globalThis.__DOCS_CONTEXT__===void 0&&(globalThis.__DOCS_CONTEXT__=p.createContext(null),globalThis.__DOCS_CONTEXT__.displayName="DocsContext");var mt=globalThis?globalThis.__DOCS_CONTEXT__:p.createContext(null);const{InvalidBlockOfPropError:lG}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__;function sG(e,t){let r=uG([e],t);return r&&r[0]}function uG(e,t){let[r,n]=p.useState({});return p.useEffect(()=>{Promise.all(e.map(async o=>{let a=await t.loadStory(o);n(i=>i[o]===a?i:{...i,[o]:a})}))}),e.map(o=>{if(r[o])return r[o];try{return t.storyById(o)}catch{return}})}var cG=Symbol("mdxWrappedBlock"),Gy=h.createContext(null),Je=(e,t)=>{let r=n=>{let o=h.useContext(Gy),a=gp()[e];if(o?.has(e)||a===r)return h.createElement(t,{...n});if(a){let i=new Set(o??[]);return i.add(e),h.createElement(Gy.Provider,{value:i},h.createElement(a,{...n}))}return h.createElement(t,{...n})};return r.displayName=e,r[cG]=!0,r},vw=(e,t)=>{let{of:r,meta:n}=e;if("of"in e&&r===void 0)throw new lG;return n&&t.referenceMeta(n,!1),t.resolveOf(r||"story",["story"]).story.id},dG=(e,t,r)=>{let{parameters:n={}}=t||{},{docs:o={}}=n,a=o.story||{};if(o.disable)return null;if(e.inline??a.inline??!1){let l=e.height??a.height,s=e.autoplay??a.autoplay??!1;return{story:t,inline:!0,height:l,autoplay:s,forceInitialArgs:!!e.__forceInitialArgs,primary:!!e.__primary,renderStoryToElement:r.renderStoryToElement}}let i=e.height??a.height??a.iframeHeight??"100px";return{story:t,inline:!1,height:i,primary:!!e.__primary}},fG=(e={__forceInitialArgs:!1,__primary:!1})=>{let t=p.useContext(mt),r=vw(e,t),n=sG(r,t);if(!n)return h.createElement($w,null);let o=dG(e,n,t);return o?h.createElement(EG,{...o}):null},pG=Je("Story",fG),Kl=e=>({borderRadius:e.appBorderRadius,background:e.background.content,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",border:`1px solid ${e.appBorderColor}`}),Sw=(e,t={})=>{let r=globalThis.PREVIEW_URL||"iframe.html",[n,o]=r.split("?"),a=new URLSearchParams(o||"");return Object.entries(t).forEach(([i,l])=>{a.set(i,l)}),a.set("id",e),`${n}?${a.toString()}`},{window:hG}=globalThis,gG=class extends p.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{id:e}=this.props;this.iframe=hG.document.getElementById(e)}shouldComponentUpdate(e){let{scale:t}=e;return t!==this.props.scale&&this.setIframeBodyStyle({width:`${t*100}%`,height:`${t*100}%`,transform:`scale(${1/t})`,transformOrigin:"top left"}),!1}setIframeBodyStyle(e){return Object.assign(this.iframe.contentDocument.body.style,e)}render(){let{id:e,title:t,src:r,allowFullScreen:n,scale:o,...a}=this.props;return h.createElement("iframe",{id:e,title:t,src:r,...n?{allow:"fullscreen"}:{},loading:"lazy",...a})}},xw=p.createContext({scale:1}),Dd=({story:e,primary:t})=>`story--${e.id}${t?"--primary":""}`,mG=e=>{let t=p.useRef(),[r,n]=p.useState(!0),[o,a]=p.useState(),{story:i,height:l,autoplay:s,forceInitialArgs:u,renderStoryToElement:c}=e;return p.useEffect(()=>{if(!(i&&t.current))return()=>{};let d=t.current,f=c(i,d,{showMain:()=>{},showError:({title:g,description:m})=>a(new Error(`${g} - ${m}`)),showException:g=>a(g)},{autoplay:s,forceInitialArgs:u});return n(!1),()=>{Promise.resolve().then(()=>f())}},[s,c,i]),o?h.createElement("pre",null,h.createElement(Dx,{error:o})):h.createElement(h.Fragment,null,l?h.createElement("style",null,`#${Dd(e)} { min-height: ${l}; transform: translateZ(0); overflow: auto }`):null,r&&h.createElement($w,null),h.createElement("div",{ref:t,id:`${Dd(e)}-inner`,"data-name":i.name}))},yG=({story:e,height:t="500px"})=>h.createElement("div",{style:{width:"100%",height:t}},h.createElement(xw.Consumer,null,({scale:r})=>h.createElement(gG,{key:"iframe",id:`iframe--${e.id}`,title:e.name,src:Sw(e.id,{viewMode:"story"}),allowFullScreen:!0,scale:r,style:{width:"100%",height:"100%",border:"0 none"}}))),bG=F.strong(({theme:e})=>({color:e.color.orange})),EG=e=>{let{inline:t,story:r}=e;return t&&!e.autoplay&&r.usesMount?h.createElement(bG,null,"This story mounts inside of play. Set"," ",h.createElement("a",{href:"https://storybook.js.org/docs/api/doc-blocks/doc-block-story?ref=ui#autoplay"},"autoplay")," ","to true to view this story."):h.createElement("div",{id:Dd(e),className:"sb-story sb-unstyled","data-story-block":"true"},t?h.createElement(mG,{...e}):h.createElement(yG,{...e}))},$w=()=>h.createElement(j$,null),vG=F(A$)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear",display:"flex",alignItems:"center"}),dc=F.div({display:"flex",alignItems:"center",gap:4}),Wy=F.div(({theme:e})=>({width:14,height:14,borderRadius:2,margin:"0 7px",backgroundColor:e.appBorderColor,animation:`${e.animation.glow} 1.5s ease-in-out infinite`})),SG=({isLoading:e,storyId:t,zoom:r,resetZoom:n,onReloadStory:o,...a})=>h.createElement(vG,{innerStyle:{gap:4,paddingInline:7,justifyContent:"space-between"},...a},h.createElement(dc,{key:"left"},e?[1,2,3].map(i=>h.createElement(Wy,{key:i})):h.createElement(h.Fragment,null,o&&h.createElement(be,{padding:"small",variant:"ghost",key:"reload",onClick:o,ariaLabel:"Reload story"},h.createElement(tA,null)),h.createElement(be,{padding:"small",variant:"ghost",key:"zoomin",onClick:i=>{i.preventDefault(),r(.8)},ariaLabel:"Zoom in"},h.createElement(MO,null)),h.createElement(be,{padding:"small",variant:"ghost",key:"zoomout",onClick:i=>{i.preventDefault(),r(1.25)},ariaLabel:"Zoom out"},h.createElement(BO,null)),h.createElement(be,{padding:"small",variant:"ghost",key:"zoomreset",onClick:i=>{i.preventDefault(),n()},ariaLabel:"Reset zoom"},h.createElement(jO,null)))),e?h.createElement(dc,{key:"right"},h.createElement(Wy,null)):t&&h.createElement(dc,{key:"right"},h.createElement(be,{asChild:!0,padding:"small",variant:"ghost",key:"opener",ariaLabel:"Open canvas in new tab"},h.createElement("a",{href:Sw(t),target:"_blank",rel:"noopener noreferrer"},h.createElement(YO,null))))),xG=F.div(({isColumn:e,columns:t,layout:r})=>({display:e||!t?"block":"flex",position:"relative",flexWrap:"wrap",overflow:"auto",flexDirection:e?"column":"row","& .innerZoomElementWrapper > *":e?{width:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"block"}:{maxWidth:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"inline-block"}}),({layout:e="padded",inline:t})=>e==="centered"||e==="padded"?{padding:t?"32px 22px":"0px","& .innerZoomElementWrapper > *":{width:"auto",border:"8px solid transparent!important"}}:{},({layout:e="padded",inline:t})=>e==="centered"&&t?{display:"flex",justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center"}:{},({columns:e})=>e&&e>1?{".innerZoomElementWrapper > *":{minWidth:`calc(100% / ${e} - 20px)`}}:{}),$G=F(ao)({marginTop:-40,marginBottom:40}),wG=F(jl)(({theme:e})=>({margin:0,borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:e.appBorderRadius,borderBottomRightRadius:e.appBorderRadius,border:"none",background:e.base==="light"?"rgba(0, 0, 0, 0.85)":Io(.05,e.background.content),color:e.color.lightest,button:{background:e.base==="light"?"rgba(0, 0, 0, 0.85)":Io(.05,e.background.content)}})),CG=F.div(({theme:e})=>({position:"relative",overflow:"hidden",margin:"25px 0 40px",...Kl(e),"h3 + &":{marginTop:"16px"}}),({withToolbar:e})=>e&&{paddingTop:40});function _G(e){if(p.Children.count(e)===1){let t=e;if(t.props)return t.props}return null}var TG=F(SG)({position:"absolute",top:0,left:0,right:0,height:40}),OG=2e3,ww=({isLoading:e,isColumn:t,columns:r,children:n,withSource:o,withToolbar:a=!1,isExpanded:i=!1,additionalActions:l,className:s,layout:u="padded",inline:c=!1,onReloadStory:d,...f})=>{let[g,m]=p.useState(i),[y,E]=p.useState(null),[b,v]=p.useState(1),S=p.useMemo(()=>l?[...l]:[],[l]),x=XK(),O=[s].concat(["sbdocs","sbdocs-preview","sb-unstyled"]),w=p.useContext(mt),T=p.useCallback(async N=>{let{createCopyToClipboardFunction:B}=await cr(async()=>{const{createCopyToClipboardFunction:$}=await Promise.resolve().then(()=>lj);return{createCopyToClipboardFunction:$}},void 0,import.meta.url);await B()(N)},[]),R=p.useCallback(async()=>{try{await T(o?.code??""),E("Copied!")}catch(N){BK.error(N),E("Copy error!")}globalThis.window.setTimeout(()=>E(null),OG)},[T,o?.code]),I=_G(n),P=!!(o&&o.error),_=!!(o&&!o.error);return h.createElement(h.Fragment,null,h.createElement(CG,{withSource:o,withToolbar:a,...f,className:O.join(" ")},a&&h.createElement(TG,{isLoading:e,border:!0,zoom:N=>v(b*N),resetZoom:()=>v(1),storyId:!e&&I?vw(I,w):void 0,onReloadStory:d}),h.createElement(xw.Provider,{value:{scale:b}},h.createElement(xG,{isColumn:t||!Array.isArray(n),columns:r,layout:u,inline:c,className:"docs-story"},h.createElement(Rx.Element,{centered:u==="centered",scale:c?b:1},Array.isArray(n)?n.map((N,B)=>h.createElement("div",{key:B},N)):h.createElement("div",null,n)))),_&&g&&h.createElement("div",{id:x},h.createElement(wG,{...o,dark:!0,copyable:!1}))),(o||S.length>0)&&h.createElement($G,{className:"sbdocs sbdocs-preview-actions",innerStyle:{paddingInline:0}},P&&h.createElement(be,{ariaLabel:!1,disabled:!0,variant:"ghost",className:"docblock-code-toggle docblock-code-toggle--disabled"},h.createElement(oh,null)," No code available"),_&&h.createElement(h.Fragment,null,h.createElement(ga,{ariaLabel:!1,pressed:g,"aria-expanded":g,"aria-controls":x,onClick:()=>m(!g),variant:"ghost",className:`docblock-code-toggle${g?" docblock-code-toggle--expanded":""}`},h.createElement(oh,null)," ",g?"Hide code":"Show code"),h.createElement(be,{ariaLabel:!1,variant:"ghost",onClick:R},h.createElement(UO,null)," ",y??"Copy code")),S.map(({title:N,className:B,onClick:$,disabled:C},A)=>h.createElement(be,{key:A,className:B,onClick:$,disabled:!!C,variant:"ghost"},N))))};F(ww)(()=>({".docs-story":{paddingTop:32,paddingBottom:40}}));var AG=F(M$)({height:"fit-content"}),Cw=({tabs:e,...t})=>{let r=Object.entries(e);if(r.length===1)return h.createElement(Yi,{...r[0][1],...t});let n=r.map(([o,a],i)=>({id:`prop_table_div_${o}`,title:o,children:()=>{let l=i===0?t:{sort:t.sort};return h.createElement(Yi,{inTabPanel:!0,key:`prop_table_${o}`,...a,...l})}}));return h.createElement(AG,{tabs:n})};F.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base==="light"?Ae(.4,e.color.defaultText):Ae(.6,e.color.defaultText)}));F.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});F.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}});F.div($e,({theme:e})=>({...Kl(e),margin:"25px 0 40px",padding:"30px 20px"}));F.div(({theme:e})=>({fontWeight:e.typography.weight.bold,color:e.color.defaultText}));F.div(({theme:e})=>({color:Ae(.3,e.color.defaultText)}));F.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5});F.div(({theme:e})=>({flex:1,textAlign:"center",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,lineHeight:1,overflow:"hidden",color:Ae(.3,e.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}}));F.div({display:"flex",flexDirection:"row"});F.div(({background:e})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:e,content:'""'}}));F.div(({theme:e})=>({...Kl(e),display:"flex",flexDirection:"row",height:50,marginBottom:5,overflow:"hidden",backgroundColor:"white",backgroundImage:"repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)",backgroundClip:"padding-box"}));F.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30});F.div({flex:1,display:"flex",flexDirection:"row"});F.div({display:"flex",alignItems:"flex-start"});F.div({flex:"0 0 30%"});F.div({flex:1});F.div(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:e.typography.weight.bold,color:Ae(.3,e.color.defaultText)}));F.div(({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}));F.div(({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s1,color:e.color.defaultText,marginLeft:10,lineHeight:1.2,display:"-webkit-box",overflow:"hidden",wordBreak:"break-word",textOverflow:"ellipsis",WebkitLineClamp:2,WebkitBoxOrient:"vertical"}));F.div(({theme:e})=>({...Kl(e),overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}}));F.div({display:"inline-flex",flexDirection:"row",alignItems:"center",width:"100%"});F.div({display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(140px, 1fr))",gridGap:"8px 16px",gridAutoFlow:"row dense",gridAutoRows:50});const{NAVIGATE_URL:RG}=__STORYBOOK_MODULE_CORE_EVENTS__;function DG(e){let t=[].forEach,r=[].some,n=typeof window<"u"&&document.body,o=" ",a,i=!0,l=0;function s(P,_){let N=_.appendChild(c(P));if(P.children.length){let B=d(P.isCollapsed);P.children.forEach($=>{s($,B)}),N.appendChild(B)}}function u(P,_){let N=d(!1);if(_.forEach(B=>{s(B,N)}),a=P||a,a!==null)return a.firstChild&&a.removeChild(a.firstChild),_.length===0?a:a.appendChild(N)}function c(P){let _=document.createElement("li"),N=document.createElement("a");return e.listItemClass&&_.setAttribute("class",e.listItemClass),e.onClick&&(N.onclick=e.onClick),e.includeTitleTags&&N.setAttribute("title",P.textContent),e.includeHtml&&P.childNodes.length?t.call(P.childNodes,B=>{N.appendChild(B.cloneNode(!0))}):N.textContent=P.textContent,N.setAttribute("href",`${e.basePath}#${P.id}`),N.setAttribute("class",`${e.linkClass+o}node-name--${P.nodeName}${o}${e.extraLinkClasses}`),_.appendChild(N),_}function d(P){let _=e.orderedList?"ol":"ul",N=document.createElement(_),B=e.listClass+o+e.extraListClasses;return P&&(B=B+o+e.collapsibleClass,B=B+o+e.isCollapsedClass),N.setAttribute("class",B),N}function f(){let P=T(),_=document.querySelector(e.positionFixedSelector);e.fixedSidebarOffset==="auto"&&(e.fixedSidebarOffset=a.offsetTop),P>e.fixedSidebarOffset?_.className.indexOf(e.positionFixedClass)===-1&&(_.className+=o+e.positionFixedClass):_.className=_.className.replace(o+e.positionFixedClass,"")}function g(P){let _=0;return P!==null&&(_=P.offsetTop,e.hasInnerContainers&&(_+=g(P.offsetParent))),_}function m(P,_){return P&&P.className!==_&&(P.className=_),P}function y(P,_){e.positionFixedSelector&&f();let N=P,B=_?.target?.getAttribute?_?.target?.getAttribute("href"):null,$=B&&B.charAt(0)==="#"?x(B.replace("#","")):!1,C=i||$;if(_&&l<5&&l++,C&&a&&N.length>0){let A=R(N),D=a.querySelector(`.${e.activeLinkClass}`),L=A.id.replace(/([ #;&,.+*~':"!^$[\]()=>|/\\@])/g,"\\$1"),M=window.location.hash.replace("#",""),k=L,H=O();B&&$?k=B.replace("#",""):M&&M!==L&&H&&(x(L)||l<=2)&&(k=M);let z=a.querySelector(`.${e.linkClass}[href="${e.basePath}#${k}"]`);if(D===z)return;let K=a.querySelectorAll(`.${e.linkClass}`);t.call(K,G=>{m(G,G.className.replace(o+e.activeLinkClass,""))});let U=a.querySelectorAll(`.${e.listItemClass}`);t.call(U,G=>{m(G,G.className.replace(o+e.activeListItemClass,""))}),z&&z.className.indexOf(e.activeLinkClass)===-1&&(z.className+=o+e.activeLinkClass);let j=z?.parentNode;j&&j.className.indexOf(e.activeListItemClass)===-1&&(j.className+=o+e.activeListItemClass);let V=a.querySelectorAll(`.${e.listClass}.${e.collapsibleClass}`);t.call(V,G=>{G.className.indexOf(e.isCollapsedClass)===-1&&(G.className+=o+e.isCollapsedClass)}),z?.nextSibling&&z.nextSibling.className.indexOf(e.isCollapsedClass)!==-1&&m(z.nextSibling,z.nextSibling.className.replace(o+e.isCollapsedClass,"")),E(z?.parentNode.parentNode)}}function E(P){return P&&P.className.indexOf(e.collapsibleClass)!==-1&&P.className.indexOf(e.isCollapsedClass)!==-1?(m(P,P.className.replace(o+e.isCollapsedClass,"")),E(P.parentNode.parentNode)):P}function b(P){let _=P.target||P.srcElement;typeof _.className!="string"||_.className.indexOf(e.linkClass)===-1||(i=!1)}function v(){i=!0}function S(){return i}function x(P){let _=w();return(document?.getElementById(P)).offsetTop>_.offsetHeight-_.clientHeight*1.4-e.bottomModeThreshold}function O(){let P=w(),_=P.scrollHeight>P.clientHeight,N=T()+P.clientHeight>P.offsetHeight-e.bottomModeThreshold;return _&&N}function w(){let P;return e.scrollContainer&&document.querySelector(e.scrollContainer)?P=document.querySelector(e.scrollContainer):P=document.documentElement||n,P}function T(){return w()?.scrollTop||0}function R(P,_=T()){let N;return r.call(P,(B,$)=>{if(g(B)>_+e.headingsOffset+10){let C=$===0?$:$-1;return N=P[C],!0}if($===P.length-1)return N=P[P.length-1],!0}),N}function I(P){let _=T(),N=R(P,_),B=O();if((!N||_<5)&&!B)window.location.hash==="#"||window.location.hash===""||window.history.pushState(null,null,"#");else if(N&&!B){let $=`#${N.id}`;window.location.hash!==$&&window.history.pushState(null,null,$)}}return{enableTocAnimation:v,disableTocAnimation:b,render:u,updateToc:y,getCurrentlyHighlighting:S,getTopHeader:R,getScrollTop:T,updateUrlHashForHeader:I}}var PG={tocSelector:".js-toc",tocElement:null,contentSelector:".js-toc-content",contentElement:null,headingSelector:"h1, h2, h3",ignoreSelector:".js-toc-ignore",hasInnerContainers:!1,linkClass:"toc-link",extraLinkClasses:"",activeLinkClass:"is-active-link",listClass:"toc-list",extraListClasses:"",isCollapsedClass:"is-collapsed",collapsibleClass:"is-collapsible",listItemClass:"toc-list-item",activeListItemClass:"is-active-li",collapseDepth:0,scrollSmooth:!0,scrollSmoothDuration:420,scrollSmoothOffset:0,scrollEndCallback:function(e){},headingsOffset:1,enableUrlHashUpdateOnScroll:!1,scrollHandlerType:"auto",scrollHandlerTimeout:50,throttleTimeout:50,positionFixedSelector:null,positionFixedClass:"is-position-fixed",fixedSidebarOffset:"auto",includeHtml:!1,includeTitleTags:!1,onClick:function(e){},orderedList:!0,scrollContainer:null,skipRendering:!1,headingLabelCallback:!1,ignoreHiddenElements:!1,headingObjectCallback:null,basePath:"",disableTocScrollSync:!1,tocScrollingWrapper:null,tocScrollOffset:30,bottomModeThreshold:30};function FG(e){let t=[].reduce;function r(u){return u[u.length-1]}function n(u){return+u.nodeName.toUpperCase().replace("H","")}function o(u){try{return u instanceof window.HTMLElement||u instanceof window.parent.HTMLElement}catch{return u instanceof window.HTMLElement}}function a(u){if(!o(u))return u;if(e.ignoreHiddenElements&&(!u.offsetHeight||!u.offsetParent))return null;let c=u.getAttribute("data-heading-label")||(e.headingLabelCallback?String(e.headingLabelCallback(u.innerText)):(u.innerText||u.textContent).trim()),d={id:u.id,children:[],nodeName:u.nodeName,headingLevel:n(u),textContent:c};return e.includeHtml&&(d.childNodes=u.childNodes),e.headingObjectCallback?e.headingObjectCallback(d,u):d}function i(u,c){let d=a(u),f=d.headingLevel,g=c,m=r(g),y=m?m.headingLevel:0,E=f-y;for(;E>0&&(m=r(g),!(m&&f===m.headingLevel));)m&&m.children!==void 0&&(g=m.children),E--;return f>=e.collapseDepth&&(d.isCollapsed=!0),g.push(d),g}function l(u,c){let d=c;e.ignoreSelector&&(d=c.split(",").map(function(f){return`${f.trim()}:not(${e.ignoreSelector})`}));try{return u.querySelectorAll(d)}catch{return console.warn(`Headers not found with selector: ${d}`),null}}function s(u){return t.call(u,function(c,d){let f=a(d);return f&&i(f,c.nest),c},{nest:[]})}return{nestHeadingsArray:s,selectHeadings:l}}function IG(e){var t=e.duration,r=e.offset;if(typeof window>"u"||typeof location>"u")return;var n=location.hash?i(location.href):location.href;o();function o(){document.body.addEventListener("click",s,!1);function s(u){!a(u.target)||u.target.className.indexOf("no-smooth-scroll")>-1||u.target.href.charAt(u.target.href.length-2)==="#"&&u.target.href.charAt(u.target.href.length-1)==="!"||u.target.className.indexOf(e.linkClass)===-1||LG(u.target.hash,{duration:t,offset:r,callback:function(){l(u.target.hash)}})}}function a(s){return s.tagName.toLowerCase()==="a"&&(s.hash.length>0||s.href.charAt(s.href.length-1)==="#")&&(i(s.href)===n||i(s.href)+"#"===n)}function i(s){return s.slice(0,s.lastIndexOf("#"))}function l(s){var u=document.getElementById(s.substring(1));u&&(/^(?:a|select|input|button|textarea)$/i.test(u.tagName)||(u.tabIndex=-1),u.focus())}}function LG(e,t){var r=window.pageYOffset,n={duration:t.duration,offset:t.offset||0,callback:t.callback,easing:t.easing||d},o=document.querySelector('[id="'+decodeURI(e).split("#").join("")+'"]')||document.querySelector('[id="'+e.split("#").join("")+'"]'),a=typeof e=="string"?n.offset+(e?o&&o.getBoundingClientRect().top||0:-(document.documentElement.scrollTop||document.body.scrollTop)):e,i=typeof n.duration=="function"?n.duration(a):n.duration,l,s;requestAnimationFrame(function(f){l=f,u(f)});function u(f){s=f-l,window.scrollTo(0,n.easing(s,r,a,i)),s<i?requestAnimationFrame(u):c()}function c(){window.scrollTo(0,r+a),typeof n.callback=="function"&&n.callback()}function d(f,g,m,y){return f/=y/2,f<1?m/2*f*f+g:(f--,-m/2*(f*(f-2)-1)+g)}}function kG(e){let t=e.tocScrollingWrapper||e.tocElement||document.querySelector(e.tocSelector);if(t&&t.scrollHeight>t.clientHeight){let r=t.querySelector(`.${e.activeListItemClass}`);if(r){let n=r.offsetTop-e.tocScrollOffset;t.scrollTop=n>0?n:0}}}var oe={},Ot,fc,Hr,Rt,ko;function _w(e){let t=!1;oe=BG(PG,e||{}),oe.scrollSmooth&&(oe.duration=oe.scrollSmoothDuration,oe.offset=oe.scrollSmoothOffset,IG(oe)),Ot=DG(oe),fc=FG(oe),$p();let r=HG(oe);if(r===null)return;let n=Tw(oe);if(n===null||(Hr=fc.selectHeadings(r,oe.headingSelector),Hr===null))return;let o=fc.nestHeadingsArray(Hr).nest;if(!oe.skipRendering)Ot.render(n,o);else return this;let a=!1,i=oe.scrollHandlerTimeout||oe.throttleTimeout;Rt=((s,u)=>jG(s,u,oe.scrollHandlerType))(s=>{Ot.updateToc(Hr,s),!oe.disableTocScrollSync&&!a&&kG(oe),oe.enableUrlHashUpdateOnScroll&&t&&Ot.getCurrentlyHighlighting()&&Ot.updateUrlHashForHeader(Hr);let u=s?.target?.scrollingElement?.scrollTop===0;(s&&(s.eventPhase===0||s.currentTarget===null)||u)&&(Ot.updateToc(Hr),oe.scrollEndCallback?.(s))},i),t||(Rt(),t=!0),window.onhashchange=window.onscrollend=s=>{Rt(s)},oe.scrollContainer&&document.querySelector(oe.scrollContainer)?(document.querySelector(oe.scrollContainer).addEventListener("scroll",Rt,!1),document.querySelector(oe.scrollContainer).addEventListener("resize",Rt,!1)):(document.addEventListener("scroll",Rt,!1),document.addEventListener("resize",Rt,!1));let l=null;ko=Pd(s=>{a=!0,oe.scrollSmooth&&Ot.disableTocAnimation(s),Ot.updateToc(Hr,s),l&&clearTimeout(l),l=setTimeout(()=>{Ot.enableTocAnimation()},oe.scrollSmoothDuration),setTimeout(()=>{a=!1},oe.scrollSmoothDuration+100)},oe.throttleTimeout),oe.scrollContainer&&document.querySelector(oe.scrollContainer)?document.querySelector(oe.scrollContainer).addEventListener("click",ko,!1):document.addEventListener("click",ko,!1)}function $p(){let e=Tw(oe);e!==null&&(oe.skipRendering||e&&(e.innerHTML=""),oe.scrollContainer&&document.querySelector(oe.scrollContainer)?(document.querySelector(oe.scrollContainer).removeEventListener("scroll",Rt,!1),document.querySelector(oe.scrollContainer).removeEventListener("resize",Rt,!1),Ot&&document.querySelector(oe.scrollContainer).removeEventListener("click",ko,!1)):(document.removeEventListener("scroll",Rt,!1),document.removeEventListener("resize",Rt,!1),Ot&&document.removeEventListener("click",ko,!1)))}function NG(e){$p(),_w(e||oe)}var MG=Object.prototype.hasOwnProperty;function BG(...e){let t={};for(let r=0;r<e.length;r++){let n=e[r];for(let o in n)MG.call(n,o)&&(t[o]=n[o])}return t}function Pd(e,t,r){t||(t=250);let n,o;return function(...a){let i=this,l=+new Date;n&&l<n+t?(clearTimeout(o),o=setTimeout(()=>{n=l,e.apply(i,a)},t)):(n=l,e.apply(i,a))}}function Vy(e,t){let r;return(...n)=>{clearTimeout(r),r=setTimeout(()=>e.apply(this,n),t)}}function jG(e,t,r="auto"){switch(r){case"debounce":return Vy(e,t);case"throttle":return Pd(e,t);default:return t<334?Vy(e,t):Pd(e,t)}}function HG(e){try{return e.contentElement||document.querySelector(e.contentSelector)}catch{return console.warn(`Contents element not found: ${e.contentSelector}`),null}}function Tw(e){try{return e.tocElement||document.querySelector(e.tocSelector)}catch{return console.warn(`TOC element not found: ${e.tocSelector}`),null}}var UG={destroy:$p,init:_w,refresh:NG},qy=UG,zG=F.aside(()=>({width:"10rem","@media (max-width: 768px)":{display:"none"}})),KG=F.nav(({theme:e})=>({position:"fixed",bottom:0,top:0,width:"10rem",paddingTop:"4rem",paddingBottom:"2rem",overflowY:"auto",fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch","& *":{boxSizing:"border-box"},"& > .toc-wrapper > .toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`}}},"& .toc-list-item":{position:"relative",listStyleType:"none",marginLeft:20,paddingTop:3,paddingBottom:3},"& .toc-list-item::before":{content:'""',position:"absolute",height:"100%",top:0,left:0,transform:"translateX(calc(-2px - 20px))",borderLeft:`solid 2px ${e.color.mediumdark}`,opacity:0,transition:"opacity 0.2s"},"& .toc-list-item.is-active-li::before":{opacity:1},"& .toc-list-item > a":{color:e.color.defaultText,textDecoration:"none"},"& .toc-list-item.is-active-li > a":{fontWeight:600,color:e.color.secondary,textDecoration:"none"}})),GG=F.p(({theme:e})=>({fontWeight:600,fontSize:"0.875em",color:e.color.defaultText,textTransform:"uppercase",marginBottom:10})),WG=({headingId:e,title:t})=>typeof t=="string"||!t?h.createElement(GG,{as:"h2",id:e,className:t?"":"sb-sr-only"},t||"Table of contents"):h.createElement("div",{id:e},t),VG=({title:e,disable:t,headingSelector:r,contentsSelector:n,ignoreSelector:o,unsafeTocbotOptions:a,channel:i,className:l})=>{p.useEffect(()=>{if(t)return()=>{};let u={tocSelector:".toc-wrapper",contentSelector:n??".sbdocs-content",headingSelector:r??"h3",ignoreSelector:o??".docs-story *, .skip-toc",headingsOffset:40,scrollSmoothOffset:-40,orderedList:!1,onClick:d=>{if(d.preventDefault(),d.currentTarget instanceof HTMLAnchorElement){let[,f]=d.currentTarget.href.split("#");f&&i.emit(RG,`#${f}`)}},...a},c=setTimeout(()=>qy.init(u),100);return()=>{clearTimeout(c),qy.destroy()}},[i,t,o,n,r,a]);let s="table-of-contents";return h.createElement(zG,{className:l},t?null:h.createElement(KG,{"aria-labelledby":s},h.createElement(WG,{headingId:s,title:e}),h.createElement("div",{className:"toc-wrapper"})))},qG=e=>`anchor--${e}`,YG=({storyId:e,children:t})=>h.createElement("div",{id:qG(e),className:"sb-anchor"},t);const{InvalidBlockOfPropError:XG}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__,{filterArgTypes:Yy}=__STORYBOOK_MODULE_PREVIEW_API__;var yn=(e,t)=>p.useContext(mt).resolveOf(e,t),JG=e=>e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(""),Ow=e=>{if(e)return typeof e=="string"?e.includes("-")?JG(e):e:e.__docgenInfo&&e.__docgenInfo.displayName?e.__docgenInfo.displayName:e.name};function ZG(e,t="start"){e.scrollIntoView({behavior:"smooth",block:t,inline:"nearest"})}function Aw(e,t){let{extractArgTypes:r}=t.docs||{};if(!r)throw new Error("Args unsupported. See Args documentation for your framework.");return r(e)}function QG(e){if(e.type==="component"){let{component:a,projectAnnotations:{parameters:i}}=e;return{argTypes:Aw(a,i),parameters:i,component:a}}if(e.type==="meta"){let{preparedMeta:{argTypes:a,parameters:i,component:l,subcomponents:s}}=e;return{argTypes:a,parameters:i,component:l,subcomponents:s}}let{story:{argTypes:t,parameters:r,component:n,subcomponents:o}}=e;return{argTypes:t,parameters:r,component:n,subcomponents:o}}var eW=e=>{let{of:t}=e;if("of"in e&&t===void 0)throw new XG;let r=yn(t||"meta"),{argTypes:n,parameters:o,component:a,subcomponents:i}=QG(r),l=o?.docs?.argTypes||{},s=e.include??l.include,u=e.exclude??l.exclude,c=e.sort??l.sort,d=Yy(n,s,u);if(!(i&&Object.keys(i||{}).length>0))return h.createElement(Yi,{rows:d,sort:c});let f=Ow(a)||"Main",g=Object.fromEntries(Object.entries(i||{}).map(([y,E])=>[y,{rows:Yy(Aw(E,o),s,u),sort:c}])),m={[f]:{rows:d,sort:c},...g};return h.createElement(Cw,{tabs:m,sort:c})};Je("ArgTypes",eW);const{FORCE_REMOUNT:tW}=__STORYBOOK_MODULE_CORE_EVENTS__,{InvalidBlockOfPropError:rW}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__,{InvalidBlockOfPropError:nW}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__;var oW=Object.create,Rw=Object.defineProperty,aW=Object.getOwnPropertyDescriptor,Dw=Object.getOwnPropertyNames,iW=Object.getPrototypeOf,lW=Object.prototype.hasOwnProperty,ne=(e,t)=>function(){return t||(0,e[Dw(e)[0]])((t={exports:{}}).exports,t),t.exports},sW=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Dw(t))!lW.call(e,o)&&o!==r&&Rw(e,o,{get:()=>t[o],enumerable:!(n=aW(t,o))||n.enumerable});return e},wp=(e,t,r)=>(r=e!=null?oW(iW(e)):{},sW(!e||!e.__esModule?Rw(r,"default",{value:e,enumerable:!0}):r,e)),uW=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],cW=["detail"];function dW(e){let t=uW.filter(r=>e[r]!==void 0).reduce((r,n)=>(r[n]=e[n],r),{});if(e instanceof CustomEvent)for(let r of cW.filter(n=>e[n]!==void 0))t[r]=e[r];return t}var Pw=ne({"node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(e,t){t.exports=Object}}),fW=ne({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(e,t){t.exports=Error}}),pW=ne({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(e,t){t.exports=EvalError}}),hW=ne({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(e,t){t.exports=RangeError}}),gW=ne({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(e,t){t.exports=ReferenceError}}),mW=ne({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(e,t){t.exports=SyntaxError}}),Cp=ne({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(e,t){t.exports=TypeError}}),yW=ne({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(e,t){t.exports=URIError}}),bW=ne({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(e,t){t.exports=Math.abs}}),EW=ne({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(e,t){t.exports=Math.floor}}),vW=ne({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(e,t){t.exports=Math.max}}),SW=ne({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(e,t){t.exports=Math.min}}),xW=ne({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(e,t){t.exports=Math.pow}}),$W=ne({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(e,t){t.exports=Math.round}}),wW=ne({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js"(e,t){t.exports=Number.isNaN||function(r){return r!==r}}}),CW=ne({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(e,t){var r=wW();t.exports=function(n){return r(n)||n===0?n:n<0?-1:1}}}),_W=ne({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(e,t){t.exports=Object.getOwnPropertyDescriptor}}),_p=ne({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(e,t){var r=_W();if(r)try{r([],"length")}catch{r=null}t.exports=r}}),TW=ne({"node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js"(e,t){var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch{r=!1}t.exports=r}}),Fw=ne({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js"(e,t){t.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},n=Symbol("test"),o=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var a=42;r[n]=a;for(var i in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var l=Object.getOwnPropertySymbols(r);if(l.length!==1||l[0]!==n||!Object.prototype.propertyIsEnumerable.call(r,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(r,n);if(s.value!==a||s.enumerable!==!0)return!1}return!0}}}),Iw=ne({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(e,t){var r=typeof Symbol<"u"&&Symbol,n=Fw();t.exports=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()}}}),Lw=ne({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.js"(e,t){t.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null}}),kw=ne({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(e,t){var r=Pw();t.exports=r.getPrototypeOf||null}}),OW=ne({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js"(e,t){var r="Function.prototype.bind called on incompatible ",n=Object.prototype.toString,o=Math.max,a="[object Function]",i=function(u,c){for(var d=[],f=0;f<u.length;f+=1)d[f]=u[f];for(var g=0;g<c.length;g+=1)d[g+u.length]=c[g];return d},l=function(u,c){for(var d=[],f=c,g=0;f<u.length;f+=1,g+=1)d[g]=u[f];return d},s=function(u,c){for(var d="",f=0;f<u.length;f+=1)d+=u[f],f+1<u.length&&(d+=c);return d};t.exports=function(u){var c=this;if(typeof c!="function"||n.apply(c)!==a)throw new TypeError(r+c);for(var d=l(arguments,1),f,g=function(){if(this instanceof f){var v=c.apply(this,i(d,arguments));return Object(v)===v?v:this}return c.apply(u,i(d,arguments))},m=o(0,c.length-d.length),y=[],E=0;E<m;E++)y[E]="$"+E;if(f=Function("binder","return function ("+s(y,",")+"){ return binder.apply(this,arguments); }")(g),c.prototype){var b=function(){};b.prototype=c.prototype,f.prototype=new b,b.prototype=null}return f}}}),Gl=ne({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(e,t){var r=OW();t.exports=Function.prototype.bind||r}}),Tp=ne({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionCall.js"(e,t){t.exports=Function.prototype.call}}),Nw=ne({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionApply.js"(e,t){t.exports=Function.prototype.apply}}),AW=ne({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/reflectApply.js"(e,t){t.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply}}),RW=ne({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"(e,t){var r=Gl(),n=Nw(),o=Tp(),a=AW();t.exports=a||r.call(o,n)}}),Mw=ne({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"(e,t){var r=Gl(),n=Cp(),o=Tp(),a=RW();t.exports=function(i){if(i.length<1||typeof i[0]!="function")throw new n("a function is required");return a(r,o,i)}}}),DW=ne({"node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"(e,t){var r=Mw(),n=_p(),o;try{o=[].__proto__===Array.prototype}catch(s){if(!s||typeof s!="object"||!("code"in s)||s.code!=="ERR_PROTO_ACCESS")throw s}var a=!!o&&n&&n(Object.prototype,"__proto__"),i=Object,l=i.getPrototypeOf;t.exports=a&&typeof a.get=="function"?r([a.get]):typeof l=="function"?(function(s){return l(s==null?s:i(s))}):!1}}),PW=ne({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(e,t){var r=Lw(),n=kw(),o=DW();t.exports=r?function(a){return r(a)}:n?function(a){if(!a||typeof a!="object"&&typeof a!="function")throw new TypeError("getProto: not an object");return n(a)}:o?function(a){return o(a)}:null}}),Bw=ne({"node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(e,t){var r=Function.prototype.call,n=Object.prototype.hasOwnProperty,o=Gl();t.exports=o.call(r,n)}}),FW=ne({"node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"(e,t){var r,n=Pw(),o=fW(),a=pW(),i=hW(),l=gW(),s=mW(),u=Cp(),c=yW(),d=bW(),f=EW(),g=vW(),m=SW(),y=xW(),E=$W(),b=CW(),v=Function,S=function(J){try{return v('"use strict"; return ('+J+").constructor;")()}catch{}},x=_p(),O=TW(),w=function(){throw new u},T=x?(function(){try{return arguments.callee,w}catch{try{return x(arguments,"callee").get}catch{return w}}})():w,R=Iw()(),I=PW(),P=kw(),_=Lw(),N=Nw(),B=Tp(),$={},C=typeof Uint8Array>"u"||!I?r:I(Uint8Array),A={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":R&&I?I([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":$,"%AsyncGenerator%":$,"%AsyncGeneratorFunction%":$,"%AsyncIteratorPrototype%":$,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?r:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":a,"%Float16Array%":typeof Float16Array>"u"?r:Float16Array,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":$,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":R&&I?I(I([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!R||!I?r:I(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":n,"%Object.getOwnPropertyDescriptor%":x,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":i,"%ReferenceError%":l,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!R||!I?r:I(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":R&&I?I(""[Symbol.iterator]()):r,"%Symbol%":R?Symbol:r,"%SyntaxError%":s,"%ThrowTypeError%":T,"%TypedArray%":C,"%TypeError%":u,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":c,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet,"%Function.prototype.call%":B,"%Function.prototype.apply%":N,"%Object.defineProperty%":O,"%Object.getPrototypeOf%":P,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":g,"%Math.min%":m,"%Math.pow%":y,"%Math.round%":E,"%Math.sign%":b,"%Reflect.getPrototypeOf%":_};if(I)try{null.error}catch(J){D=I(I(J)),A["%Error.prototype%"]=D}var D,L=function J(W){var q;if(W==="%AsyncFunction%")q=S("async function () {}");else if(W==="%GeneratorFunction%")q=S("function* () {}");else if(W==="%AsyncGeneratorFunction%")q=S("async function* () {}");else if(W==="%AsyncGenerator%"){var ee=J("%AsyncGeneratorFunction%");ee&&(q=ee.prototype)}else if(W==="%AsyncIteratorPrototype%"){var se=J("%AsyncGenerator%");se&&I&&(q=I(se.prototype))}return A[W]=q,q},M={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},k=Gl(),H=Bw(),z=k.call(B,Array.prototype.concat),K=k.call(N,Array.prototype.splice),U=k.call(B,String.prototype.replace),j=k.call(B,String.prototype.slice),V=k.call(B,RegExp.prototype.exec),G=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Z=/\\(\\)?/g,Ee=function(J){var W=j(J,0,1),q=j(J,-1);if(W==="%"&&q!=="%")throw new s("invalid intrinsic syntax, expected closing `%`");if(q==="%"&&W!=="%")throw new s("invalid intrinsic syntax, expected opening `%`");var ee=[];return U(J,G,function(se,Ze,X,Qe){ee[ee.length]=X?U(Qe,Z,"$1"):Ze||se}),ee},Le=function(J,W){var q=J,ee;if(H(M,q)&&(ee=M[q],q="%"+ee[0]+"%"),H(A,q)){var se=A[q];if(se===$&&(se=L(q)),typeof se>"u"&&!W)throw new u("intrinsic "+J+" exists, but is not available. Please file an issue!");return{alias:ee,name:q,value:se}}throw new s("intrinsic "+J+" does not exist!")};t.exports=function(J,W){if(typeof J!="string"||J.length===0)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof W!="boolean")throw new u('"allowMissing" argument must be a boolean');if(V(/^%?[^%]*%?$/,J)===null)throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var q=Ee(J),ee=q.length>0?q[0]:"",se=Le("%"+ee+"%",W),Ze=se.name,X=se.value,Qe=!1,_t=se.alias;_t&&(ee=_t[0],K(q,z([0,1],_t)));for(var ut=1,Tt=!0;ut<q.length;ut+=1){var Re=q[ut],Zt=j(Re,0,1),Qt=j(Re,-1);if((Zt==='"'||Zt==="'"||Zt==="`"||Qt==='"'||Qt==="'"||Qt==="`")&&Zt!==Qt)throw new s("property names with quotes must have matching quotes");if((Re==="constructor"||!Tt)&&(Qe=!0),ee+="."+Re,Ze="%"+ee+"%",H(A,Ze))X=A[Ze];else if(X!=null){if(!(Re in X)){if(!W)throw new u("base intrinsic for "+J+" exists, but the property is not available.");return}if(x&&ut+1>=q.length){var er=x(X,Re);Tt=!!er,Tt&&"get"in er&&!("originalValue"in er.get)?X=er.get:X=X[Re]}else Tt=H(X,Re),X=X[Re];Tt&&!Qe&&(A[Ze]=X)}}return X}}}),Op=ne({"node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(e,t){var r=FW(),n=Mw(),o=n([r("%String.prototype.indexOf%")]);t.exports=function(a,i){var l=r(a,!!i);return typeof l=="function"&&o(a,".prototype.")>-1?n([l]):l}}}),IW=ne({"node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"(e,t){var r=Fw();t.exports=function(){return r()&&!!Symbol.toStringTag}}}),jw=ne({"node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js"(e,t){var r=Op(),n=IW()(),o=Bw(),a=_p(),i;n?(l=r("RegExp.prototype.exec"),s={},u=function(){throw s},c={toString:u,valueOf:u},typeof Symbol.toPrimitive=="symbol"&&(c[Symbol.toPrimitive]=u),i=function(g){if(!g||typeof g!="object")return!1;var m=a(g,"lastIndex"),y=m&&o(m,"value");if(!y)return!1;try{l(g,c)}catch(E){return E===s}}):(d=r("Object.prototype.toString"),f="[object RegExp]",i=function(g){return!g||typeof g!="object"&&typeof g!="function"?!1:d(g)===f});var l,s,u,c,d,f;t.exports=i}}),LW=ne({"node_modules/.pnpm/is-function@1.0.2/node_modules/is-function/index.js"(e,t){t.exports=n;var r=Object.prototype.toString;function n(o){if(!o)return!1;var a=r.call(o);return a==="[object Function]"||typeof o=="function"&&a!=="[object RegExp]"||typeof window<"u"&&(o===window.setTimeout||o===window.alert||o===window.confirm||o===window.prompt)}}}),kW=ne({"node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js"(e,t){var r=Op(),n=jw(),o=r("RegExp.prototype.exec"),a=Cp();t.exports=function(i){if(!n(i))throw new a("`regex` must be a RegExp");return function(l){return o(i,l)!==null}}}}),NW=ne({"node_modules/.pnpm/is-symbol@1.1.1/node_modules/is-symbol/index.js"(e,t){var r=Op(),n=r("Object.prototype.toString"),o=Iw()(),a=kW();o?(i=r("Symbol.prototype.toString"),l=a(/^Symbol\(.*\)$/),s=function(u){return typeof u.valueOf()!="symbol"?!1:l(i(u))},t.exports=function(u){if(typeof u=="symbol")return!0;if(!u||typeof u!="object"||n(u)!=="[object Symbol]")return!1;try{return s(u)}catch{return!1}}):t.exports=function(u){return!1};var i,l,s}}),MW=wp(jw()),BW=wp(LW()),jW=wp(NW());function HW(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}var UW=typeof global=="object"&&global&&global.Object===Object&&global,zW=UW,KW=typeof self=="object"&&self&&self.Object===Object&&self,GW=zW||KW||Function("return this")(),Ap=GW,WW=Ap.Symbol,Jn=WW,Hw=Object.prototype,VW=Hw.hasOwnProperty,qW=Hw.toString,wo=Jn?Jn.toStringTag:void 0;function YW(e){var t=VW.call(e,wo),r=e[wo];try{e[wo]=void 0;var n=!0}catch{}var o=qW.call(e);return n&&(t?e[wo]=r:delete e[wo]),o}var XW=YW,JW=Object.prototype,ZW=JW.toString;function QW(e){return ZW.call(e)}var eV=QW,tV="[object Null]",rV="[object Undefined]",Xy=Jn?Jn.toStringTag:void 0;function nV(e){return e==null?e===void 0?rV:tV:Xy&&Xy in Object(e)?XW(e):eV(e)}var oV=nV,Jy=Jn?Jn.prototype:void 0;Jy&&Jy.toString;function aV(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Uw=aV,iV="[object AsyncFunction]",lV="[object Function]",sV="[object GeneratorFunction]",uV="[object Proxy]";function cV(e){if(!Uw(e))return!1;var t=oV(e);return t==lV||t==sV||t==iV||t==uV}var dV=cV,fV=Ap["__core-js_shared__"],pc=fV,Zy=(function(){var e=/[^.]+$/.exec(pc&&pc.keys&&pc.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function pV(e){return!!Zy&&Zy in e}var hV=pV,gV=Function.prototype,mV=gV.toString;function yV(e){if(e!=null){try{return mV.call(e)}catch{}try{return e+""}catch{}}return""}var bV=yV,EV=/[\\^$.*+?()[\]{}|]/g,vV=/^\[object .+?Constructor\]$/,SV=Function.prototype,xV=Object.prototype,$V=SV.toString,wV=xV.hasOwnProperty,CV=RegExp("^"+$V.call(wV).replace(EV,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function _V(e){if(!Uw(e)||hV(e))return!1;var t=dV(e)?CV:vV;return t.test(bV(e))}var TV=_V;function OV(e,t){return e?.[t]}var AV=OV;function RV(e,t){var r=AV(e,t);return TV(r)?r:void 0}var zw=RV;function DV(e,t){return e===t||e!==e&&t!==t}var PV=DV,FV=zw(Object,"create"),ea=FV;function IV(){this.__data__=ea?ea(null):{},this.size=0}var LV=IV;function kV(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var NV=kV,MV="__lodash_hash_undefined__",BV=Object.prototype,jV=BV.hasOwnProperty;function HV(e){var t=this.__data__;if(ea){var r=t[e];return r===MV?void 0:r}return jV.call(t,e)?t[e]:void 0}var UV=HV,zV=Object.prototype,KV=zV.hasOwnProperty;function GV(e){var t=this.__data__;return ea?t[e]!==void 0:KV.call(t,e)}var WV=GV,VV="__lodash_hash_undefined__";function qV(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ea&&t===void 0?VV:t,this}var YV=qV;function lo(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}lo.prototype.clear=LV;lo.prototype.delete=NV;lo.prototype.get=UV;lo.prototype.has=WV;lo.prototype.set=YV;var Qy=lo;function XV(){this.__data__=[],this.size=0}var JV=XV;function ZV(e,t){for(var r=e.length;r--;)if(PV(e[r][0],t))return r;return-1}var Wl=ZV,QV=Array.prototype,eq=QV.splice;function tq(e){var t=this.__data__,r=Wl(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():eq.call(t,r,1),--this.size,!0}var rq=tq;function nq(e){var t=this.__data__,r=Wl(t,e);return r<0?void 0:t[r][1]}var oq=nq;function aq(e){return Wl(this.__data__,e)>-1}var iq=aq;function lq(e,t){var r=this.__data__,n=Wl(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var sq=lq;function so(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}so.prototype.clear=JV;so.prototype.delete=rq;so.prototype.get=oq;so.prototype.has=iq;so.prototype.set=sq;var uq=so,cq=zw(Ap,"Map"),dq=cq;function fq(){this.size=0,this.__data__={hash:new Qy,map:new(dq||uq),string:new Qy}}var pq=fq;function hq(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var gq=hq;function mq(e,t){var r=e.__data__;return gq(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Vl=mq;function yq(e){var t=Vl(this,e).delete(e);return this.size-=t?1:0,t}var bq=yq;function Eq(e){return Vl(this,e).get(e)}var vq=Eq;function Sq(e){return Vl(this,e).has(e)}var xq=Sq;function $q(e,t){var r=Vl(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var wq=$q;function uo(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}uo.prototype.clear=pq;uo.prototype.delete=bq;uo.prototype.get=vq;uo.prototype.has=xq;uo.prototype.set=wq;var Kw=uo,Cq="Expected a function";function Rp(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Cq);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=e.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(Rp.Cache||Kw),r}Rp.Cache=Kw;var _q=Rp,Tq=500;function Oq(e){var t=_q(e,function(n){return r.size===Tq&&r.clear(),n}),r=t.cache;return t}var Aq=Oq,Rq=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Dq=/\\(\\)?/g;Aq(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Rq,function(r,n,o,a){t.push(o?a.replace(Dq,"$1"):n||r)}),t});var Pq=HW,Fq=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/;function Gw(e){if(!Pq(e))return e;let t=e,r=!1;return typeof Event<"u"&&e instanceof Event&&(t=dW(t),r=!0),t=Object.keys(t).reduce((n,o)=>{try{t[o]&&t[o].toJSON,n[o]=t[o]}catch{r=!0}return n},{}),r?t:e}var Iq=function(e){let t,r,n,o;return function(a,i){try{if(a==="")return o=[],t=new Map([[i,"[]"]]),r=new Map,n=[],i;let l=r.get(this)||this;for(;n.length&&l!==n[0];)n.shift(),o.pop();if(typeof i=="boolean")return i;if(i===void 0)return e.allowUndefined?"_undefined_":void 0;if(i===null)return null;if(typeof i=="number")return i===Number.NEGATIVE_INFINITY?"_-Infinity_":i===Number.POSITIVE_INFINITY?"_Infinity_":Number.isNaN(i)?"_NaN_":i;if(typeof i=="bigint")return`_bigint_${i.toString()}`;if(typeof i=="string")return Fq.test(i)?e.allowDate?`_date_${i}`:void 0:i;if((0,MW.default)(i))return e.allowRegExp?`_regexp_${i.flags}|${i.source}`:void 0;if((0,BW.default)(i))return;if((0,jW.default)(i)){if(!e.allowSymbol)return;let u=Symbol.keyFor(i);return u!==void 0?`_gsymbol_${u}`:`_symbol_${i.toString().slice(7,-1)}`}if(n.length>=e.maxDepth)return Array.isArray(i)?`[Array(${i.length})]`:"[Object]";if(i===this)return`_duplicate_${JSON.stringify(o)}`;if(i instanceof Error&&e.allowError)return{__isConvertedError__:!0,errorProperties:{...i.cause?{cause:i.cause}:{},...i,name:i.name,message:i.message,stack:i.stack,"_constructor-name_":i.constructor.name}};if(i?.constructor?.name&&i.constructor.name!=="Object"&&!Array.isArray(i)){let u=t.get(i);if(!u){let c={__isClassInstance__:!0,__className__:i.constructor.name,...Object.getOwnPropertyNames(i).reduce((d,f)=>{try{d[f]=i[f]}catch{}return d},{})};return o.push(a),n.unshift(c),t.set(i,JSON.stringify(o)),i!==c&&r.set(i,c),c}return`_duplicate_${u}`}let s=t.get(i);if(!s){let u=Array.isArray(i)?i:Gw(i);return o.push(a),n.unshift(u),t.set(i,JSON.stringify(o)),i!==u&&r.set(i,u),u}return`_duplicate_${s}`}catch{return}}},Lq={maxDepth:10,space:void 0,allowRegExp:!0,allowDate:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0},kq=(e,t={})=>{let r={...Lq,...t};return JSON.stringify(Gw(e),Iq(r),t.space)};function Ww(e){return kq(e,{maxDepth:50})}var Dp=p.createContext({sources:{}}),Vw="--unknown--",Nq=({children:e,channel:t})=>{let[r,n]=p.useState({});return p.useEffect(()=>{let o=(a,i=null,l=!1)=>{let{id:s,args:u=void 0,source:c,format:d}=typeof a=="string"?{id:a,source:i,format:l}:a,f=u?Ww(u):Vw;n(g=>({...g,[s]:{...g[s],[f]:{code:c||"",format:d}}}))};return t.on(Bp,o),()=>t.off(Bp,o)},[]),h.createElement(Dp.Provider,{value:{sources:r}},e)};function Mq(e,t,r){let[n,o]=p.useState("Transforming..."),a=t?t?.(e,r):e;return p.useEffect(()=>{async function i(){let l=await a;l!==n&&o(l)}i()}),typeof a=="object"&&typeof a.then=="function"?n:a}var Bq={sources:{}},jq=(e,t,r)=>{let{sources:n}=r,o=n?.[e];return o?.[Ww(t)]||o?.[Vw]||{code:""}},Hq=({snippet:e,storyContext:t,typeFromProps:r,transformFromProps:n})=>{let o=t.parameters??{},{__isArgsStory:a}=o,i=o.docs?.source||{},l=r||i.type||Xl.AUTO,s=l===Xl.DYNAMIC||l===Xl.AUTO&&e&&a?e:i.originalSource||"",u=n??i.transform,c=u?Mq(s,u,t):s;return i.code!==void 0?i.code:c},Pp=(e,t,r)=>{let{of:n}=e,o=p.useMemo(()=>{if(n)return t.resolveOf(n,["story"]).story;try{return t.storyById()}catch{}},[t,n]),a=o?t.getStoryContext(o):{},i=e.__forceInitialArgs?a.initialArgs:a.unmappedArgs,l=o?jq(o.id,i,r):null,s=Hq({snippet:l?l.code:"",storyContext:{...a,args:i},typeFromProps:e.type,transformFromProps:e.transform});if("of"in e&&n===void 0)throw new nW;let u=o?.parameters?.docs?.source||{},c=e.format,d=e.language??u.language??"jsx",f=e.dark??u.dark??!1;return e.code===void 0&&!o?{error:"Oh no! The source is not available."}:e.code!==void 0?{code:e.code,format:c,language:d,dark:f}:(c=l?.format??!0,{code:s,format:c,language:d,dark:f})},Uq=e=>{let t=p.useContext(Dp),r=p.useContext(mt),n=Pp(e,r,t);return h.createElement(jl,{...n})},zq=e=>{let t=p.useContext(mt),r=Pp(e,t,Bq);return h.createElement(jl,{...r})},Kq=e=>e.code!==void 0?h.createElement(zq,{...e}):h.createElement(Uq,{...e});Je("Source",Kq);var Gq=e=>{let t=p.useContext(mt),r=p.useContext(Dp),{of:n,source:o}=e;if("of"in e&&n===void 0)throw new rW;let{story:a}=yn(n||"story",["story"]),i=Pp({...o,...n&&{of:n}},t,r),l=e.layout??a.parameters.layout??a.parameters.docs?.canvas?.layout??"padded",s=e.withToolbar??a.parameters.docs?.canvas?.withToolbar??!1,u=e.additionalActions??a.parameters.docs?.canvas?.additionalActions,c=e.sourceState??a.parameters.docs?.canvas?.sourceState??"hidden",d=e.className??a.parameters.docs?.canvas?.className,f=e.story?.inline??a.parameters?.docs?.story?.inline??!1,g=p.useCallback(()=>{t.channel.emit(tW,{storyId:a.id})},[t.channel,a.id]);return h.createElement(ww,{withSource:c==="none"?void 0:i,isExpanded:c==="shown",withToolbar:s,additionalActions:u,className:d,layout:l,inline:f,onReloadStory:f?g:void 0},h.createElement(pG,{of:n||a.moduleExport,meta:e.meta,...e.story}))},Wq=Je("Canvas",Gq);const{filterArgTypes:eb}=__STORYBOOK_MODULE_PREVIEW_API__,{RESET_STORY_ARGS:Vq,STORY_ARGS_UPDATED:tb,UPDATE_STORY_ARGS:qq}=__STORYBOOK_MODULE_CORE_EVENTS__;var Yq=(e,t)=>{let r=Xq(e,t);if(!r)throw new Error("No result when story was defined");return r},Xq=(e,t)=>{let r=e?t.getStoryContext(e):{args:{}},{id:n}=e||{id:"none"},[o,a]=p.useState(r.args);p.useEffect(()=>{let s=u=>{u.storyId===n&&a(u.args)};return t.channel.on(tb,s),()=>t.channel.off(tb,s)},[n,t.channel]);let i=p.useCallback(s=>t.channel.emit(qq,{storyId:n,updatedArgs:s}),[n,t.channel]),l=p.useCallback(s=>t.channel.emit(Vq,{storyId:n,argNames:s}),[n,t.channel]);return e&&[o,i,l]};const{GLOBALS_UPDATED:rb}=__STORYBOOK_MODULE_CORE_EVENTS__;var Jq=(e,t)=>{let r=t.getStoryContext(e),[n,o]=p.useState(r.globals);return p.useEffect(()=>{let a=i=>{o(i.globals)};return t.channel.on(rb,a),()=>t.channel.off(rb,a)},[t.channel]),[n]};const{Tag:Zq}=__STORYBOOK_MODULE_PREVIEW_API__;var qw=()=>p.useContext(mt).componentStories().find(e=>e.tags.includes(Zq.AUTODOCS));function Qq(e,t){let{extractArgTypes:r}=t.docs||{};if(!r)throw new Error("Args unsupported. See Args documentation for your framework.");return r(e)}var eY=e=>{let{of:t}=e,r=p.useContext(mt),n=qw(),o=t?r.resolveOf(t,["story"]).story:n;if(!o)return null;let{parameters:a,argTypes:i,component:l,subcomponents:s}=o,u=a.docs?.controls||{},c=e.include??u.include,d=e.exclude??u.exclude,f=e.sort??u.sort,[g,m,y]=Yq(o,r),[E]=Jq(o,r),b=eb(i,c,d);if(!(s&&Object.keys(s||{}).length>0))return Object.keys(b).length>0||Object.keys(g).length>0?h.createElement(Yi,{storyId:o.id,rows:b,sort:f,args:g,globals:E,updateArgs:m,resetArgs:y}):null;let v=Ow(l)||"Story",S=Object.fromEntries(Object.entries(s||{}).map(([O,w])=>[O,{rows:eb(Qq(w,a),c,d),sort:f}])),x={[v]:{rows:b,sort:f},...S};return h.createElement(Cw,{tabs:x,sort:f,args:g,globals:E,updateArgs:m,resetArgs:y,storyId:o.id})},tY=Je("Controls",eY);const{InvalidBlockOfPropError:rY}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__,{NAVIGATE_URL:nY}=__STORYBOOK_MODULE_CORE_EVENTS__;var{document:Yw}=globalThis,Xw=({className:e,children:t,...r})=>{if(typeof e!="string"&&(typeof t!="string"||!t.match(/[\n\r]/g)))return h.createElement(Lf,null,t);let n=e&&e.split("-");return h.createElement(jl,{language:n&&n[1]||"text",format:!1,code:t,...r})};function Fp(e,t){e.channel.emit(nY,t)}var Fd=H$.a,oY=({hash:e,children:t})=>{let r=p.useContext(mt);return h.createElement(Fd,{href:e,target:"_self",onClick:n=>{let o=e.substring(1);Yw.getElementById(o)&&Fp(r,e)}},t)},Jw=e=>{let{href:t,target:r,children:n,...o}=e,a=p.useContext(mt);return!t||r==="_blank"||/^https?:\/\//.test(t)?h.createElement(Fd,{...e}):t.startsWith("#")?h.createElement(oY,{hash:t},n):h.createElement(Fd,{href:t,onClick:i=>{i.button===0&&!i.altKey&&!i.ctrlKey&&!i.metaKey&&!i.shiftKey&&(i.preventDefault(),Fp(a,i.currentTarget.getAttribute("href")||""))},target:r,...o},n)},Zw=["h1","h2","h3","h4","h5","h6"],aY=Zw.reduce((e,t)=>({...e,[t]:F(t)({"& svg":{position:"relative",top:"-0.1em",visibility:"hidden"},"&:hover svg":{visibility:"visible"}})}),{}),iY=F.a(()=>({float:"left",lineHeight:"inherit",paddingRight:"10px",marginLeft:"-24px",color:"inherit"})),lY=({as:e,id:t,children:r,...n})=>{let o=p.useContext(mt),a=aY[e],i=`#${t}`;return h.createElement(a,{id:t,...n},h.createElement(iY,{"aria-hidden":"true",href:i,tabIndex:-1,target:"_self",onClick:l=>{Yw.getElementById(t)&&Fp(o,i)}},h.createElement(qO,null)),r)},Ip=e=>{let{as:t,id:r,children:n,...o}=e;if(r)return h.createElement(lY,{as:t,id:r,...o},n);let a=t,{as:i,...l}=e;return h.createElement(a,{...ve(l,t)})},Qw=Zw.reduce((e,t)=>({...e,[t]:r=>h.createElement(Ip,{as:t,...r})}),{}),sY=e=>{if(!e.children)return null;if(typeof e.children!="string")throw new Error(eH`The Markdown block only accepts children as a single string, but children were of type: '${typeof e.children}'
|
|
740
|
+
This is often caused by not wrapping the child in a template string.
|
|
741
|
+
|
|
742
|
+
This is invalid:
|
|
743
|
+
<Markdown>
|
|
744
|
+
# Some heading
|
|
745
|
+
A paragraph
|
|
746
|
+
</Markdown>
|
|
747
|
+
|
|
748
|
+
Instead do:
|
|
749
|
+
<Markdown>
|
|
750
|
+
{\`
|
|
751
|
+
# Some heading
|
|
752
|
+
A paragraph
|
|
753
|
+
\`}
|
|
754
|
+
</Markdown>
|
|
755
|
+
`);return h.createElement(rw,{...e,options:{forceBlock:!0,overrides:{code:Xw,a:Jw,...Qw,...e?.options?.overrides},...e?.options}})},uY=Je("Markdown",sY),cY=e=>{switch(e.type){case"story":return e.story.parameters.docs?.description?.story||null;case"meta":{let{parameters:t,component:r}=e.preparedMeta;return t.docs?.description?.component||t.docs?.extractComponentDescription?.(r,{component:r,parameters:t})||null}case"component":{let{component:t,projectAnnotations:{parameters:r}}=e;return r?.docs?.extractComponentDescription?.(t,{component:t,parameters:r})||null}default:throw new Error(`Unrecognized module type resolved from 'useOf', got: ${e.type}`)}},dY=e=>{let{of:t}=e;if("of"in e&&t===void 0)throw new rY;let r=yn(t||"meta"),n=cY(r);return n?h.createElement(uY,null,n):null},Id=Je("Description",dY),fY=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,pY=Object.hasOwnProperty,eC=class{constructor(){this.occurrences,this.reset()}slug(e,t){let r=this,n=hY(e,t===!0),o=n;for(;pY.call(r.occurrences,n);)r.occurrences[o]++,n=o+"-"+r.occurrences[o];return r.occurrences[n]=0,n}reset(){this.occurrences=Object.create(null)}};function hY(e,t){return typeof e!="string"?"":(t||(e=e.toLowerCase()),e.replace(fY,"").replace(/ /g,"-"))}var gY=()=>new eC,Lp=p.createContext(null),{document:mY,window:yY}=globalThis,bY=({context:e,theme:t,children:r})=>{let n=p.useMemo(()=>gY(),[]),o;try{o=e.resolveOf("meta",["meta"]).preparedMeta.parameters?.docs?.toc}catch{o=e?.projectAnnotations?.parameters?.docs?.toc}return p.useEffect(()=>{let a;try{if(a=new URL(yY.parent.location.toString()),a.hash){let i=mY.getElementById(decodeURIComponent(a.hash.substring(1)));i&&setTimeout(()=>{ZG(i)},200)}}catch{}}),h.createElement(Lp.Provider,{value:n},h.createElement(mt.Provider,{value:e},h.createElement(Nq,{channel:e.channel},h.createElement(Ud,{theme:Ob(t)},h.createElement(MK,{toc:o?h.createElement(VG,{className:"sbdocs sbdocs-toc--custom",channel:e.channel,...o}):null},r)))))},tC=new eC,EY=({children:e,disableAnchor:t,...r})=>{if(t||typeof e!="string")return h.createElement(kf,null,e);let n=(h.useContext(Lp)??tC).slug(e.toLowerCase());return h.createElement(Ip,{as:"h2",id:n,...r},e)},vY=Je("Heading",EY),SY=({children:e,disableAnchor:t})=>{if(t||typeof e!="string")return h.createElement(Nf,null,e);let r=(h.useContext(Lp)??tC).slug(e.toLowerCase());return h.createElement(Ip,{as:"h3",id:r},e)},xY=Je("Subheading",SY),$Y=({of:e,expanded:t=!0,withToolbar:r=!1,__forceInitialArgs:n=!1,__primary:o=!1})=>{let{story:a}=yn(e||"story",["story"]),i=a.parameters.docs?.canvas?.withToolbar??r;return h.createElement(YG,{storyId:o?`primary--${a.id}`:a.id},t&&h.createElement(h.Fragment,null,h.createElement(xY,null,a.name),h.createElement(Id,{of:e})),h.createElement(Wq,{of:e,withToolbar:i,story:{__forceInitialArgs:n,__primary:o},source:{__forceInitialArgs:n}}))},rC=Je("DocsStory",$Y),wY=()=>{let e=qw();return e?h.createElement(rC,{of:e.moduleExport,expanded:!1,__primary:!0,withToolbar:!0}):null},CY=Je("Primary",wY);const{Tag:nb}=__STORYBOOK_MODULE_PREVIEW_API__;var _Y=F(vY)(({theme:e})=>({fontSize:`${e.typography.size.s2-1}px`,fontWeight:e.typography.weight.bold,lineHeight:"16px",letterSpacing:"0.35em",textTransform:"uppercase",color:e.textMutedColor,border:0,marginBottom:"12px","&:first-of-type":{marginTop:"56px"}})),TY=({title:e="Stories",includePrimary:t=!0})=>{let{componentStories:r,projectAnnotations:n,getStoryContext:o}=p.useContext(mt),a=r(),{stories:{filter:i}={filter:void 0}}=n.parameters?.docs||{};return i&&(a=a.filter(l=>i(l,o(l)))),a.some(l=>l.tags?.includes(nb.AUTODOCS))&&(a=a.filter(l=>l.tags?.includes(nb.AUTODOCS)&&!l.usesMount)),t||(a=a.slice(1)),!a||a.length===0?null:h.createElement(h.Fragment,null,typeof e=="string"?h.createElement(_Y,null,e):e,a.map(l=>l&&h.createElement(rC,{key:l.id,of:l.moduleExport,expanded:!0,__forceInitialArgs:!0})))},OY=Je("Stories",TY);const{deprecate:AY}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{InvalidBlockOfPropError:RY}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__;var DY="https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#subtitle-block-and-parameterscomponentsubtitle",PY=e=>{let{of:t,children:r}=e;if("of"in e&&t===void 0)throw new RY;let n;try{n=yn(t||"meta",["meta"]).preparedMeta}catch(l){if(r&&!l.message.includes("did you forget to use <Meta of={} />?"))throw l}let{componentSubtitle:o,docs:a}=n?.parameters||{};o&&AY(`Using 'parameters.componentSubtitle' property to subtitle stories is deprecated. See ${DY}`);let i=r||a?.subtitle||o;return i?h.createElement(LK,{className:"sbdocs-subtitle sb-unstyled"},i):null},FY=Je("Subtitle",PY);const{InvalidBlockOfPropError:IY}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__;var LY=/\s*\/\s*/,kY=e=>{let t=e.trim().split(LY);return t?.[t?.length-1]||e},NY=e=>{let{children:t,of:r}=e;if("of"in e&&r===void 0)throw new IY;let n;try{n=yn(r||"meta",["meta"]).preparedMeta}catch(a){if(t&&a instanceof Error&&!a.message.includes("did you forget to use <Meta of={} />?"))throw a}let o=t||kY(n?.title||"");return o?h.createElement(IK,{className:"sbdocs-title sb-unstyled"},o):null},MY=Je("Title",NY),BY=()=>{let e=yn("meta",["meta"]),{stories:t}=e.csfFile,r=Object.keys(t).length===1;return h.createElement(h.Fragment,null,h.createElement(MY,null),h.createElement(FY,null),h.createElement(Id,{of:"meta"}),r?h.createElement(Id,{of:"story"}):null,h.createElement(CY,null),h.createElement(tY,null),r?null:h.createElement(OY,null))};function jY({context:e,docsParameter:t}){let r=t.container||bY,n=t.page||BY;return h.createElement(r,{context:e,theme:t.theme},h.createElement(n,null))}const{composeConfigs:mX}=__STORYBOOK_MODULE_PREVIEW_API__,{Channel:yX}=__STORYBOOK_MODULE_CHANNELS__,{Preview:bX,composeConfigs:EX}=__STORYBOOK_MODULE_PREVIEW_API__,{DocsContext:vX}=__STORYBOOK_MODULE_PREVIEW_API__;var HY=e=>h.createElement("div",{...e,className:"sb-unstyled"});Je("Unstyled",HY);var UY=({children:e})=>h.createElement("div",{style:{fontFamily:"sans-serif"}},e);Je("Wrapper",UY);var nC={code:Xw,a:Jw,...Qw},zY=class extends p.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e){let{showException:t}=this.props;t(e)}render(){let{hasError:e}=this.state,{children:t}=this.props;return e?null:h.createElement(h.Fragment,null,t)}},KY=class{constructor(){this.render=async(e,t,r)=>{let n={...nC,...t?.components},o=jY;return new Promise((a,i)=>{cr(async()=>{const{MDXProvider:l}=await Promise.resolve().then(()=>Qj);return{MDXProvider:l}},void 0,import.meta.url).then(({MDXProvider:l})=>PC(h.createElement(zY,{showException:i,key:Math.random()},h.createElement(l,{components:n},h.createElement(o,{context:e,docsParameter:t}))),r)).then(()=>a())})},this.unmount=e=>{FC(e)}}};const SX=Object.freeze(Object.defineProperty({__proto__:null,DocsRenderer:KY,defaultComponents:nC},Symbol.toStringTag,{value:"Module"}));export{nh as $,tO as A,be as B,SX as D,gn as F,oh as M,dp as P,qd as S,He as _,qY as a,kO as b,St as d,Lt as g,Ld as l,sn as r,F as s};
|