@alma-oss/spirit-web-react 4.6.1 → 4.8.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/CHANGELOG.md +24 -0
- package/DEPRECATIONS.md +44 -0
- package/dist/bundles/web-react.umd.js +24 -2
- package/dist/bundles/web-react.umd.js.map +1 -1
- package/dist/bundles/web-react.umd.min.js +1 -1
- package/dist/bundles/web-react.umd.min.js.map +1 -1
- package/dist/common/constants.d.ts +1 -1
- package/dist/common/utilities.d.ts +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/components/Accordion/preview.d.ts +1 -1
- package/dist/components/Accordion.d.ts +1 -1
- package/dist/components/ActionGroup/preview.d.ts +1 -1
- package/dist/components/ActionGroup.d.ts +1 -1
- package/dist/components/Alert/preview.d.ts +1 -1
- package/dist/components/Alert.d.ts +1 -1
- package/dist/components/Avatar/preview.d.ts +1 -1
- package/dist/components/Avatar.d.ts +1 -1
- package/dist/components/Box/preview.d.ts +1 -1
- package/dist/components/Box.d.ts +1 -1
- package/dist/components/Breadcrumbs/preview.d.ts +1 -1
- package/dist/components/Breadcrumbs.d.ts +1 -1
- package/dist/components/Button.d.ts +1 -1
- package/dist/components/ButtonLink.d.ts +1 -1
- package/dist/components/Card.d.ts +1 -1
- package/dist/components/CharacterCounter.d.ts +1 -1
- package/dist/components/Checkbox.d.ts +1 -1
- package/dist/components/Collapse/preview.d.ts +1 -1
- package/dist/components/Collapse.d.ts +1 -1
- package/dist/components/Container/preview.d.ts +1 -1
- package/dist/components/Container.d.ts +1 -1
- package/dist/components/ControlButton/preview.d.ts +1 -1
- package/dist/components/ControlButton.d.ts +1 -1
- package/dist/components/Dialog.d.ts +1 -1
- package/dist/components/Divider/preview.d.ts +1 -1
- package/dist/components/Divider.d.ts +1 -1
- package/dist/components/Drawer.d.ts +1 -1
- package/dist/components/Dropdown.d.ts +1 -1
- package/dist/components/EmptyState/preview.d.ts +1 -1
- package/dist/components/EmptyState.d.ts +1 -1
- package/dist/components/Field.d.ts +1 -1
- package/dist/components/FieldGroup.d.ts +1 -1
- package/dist/components/FileUploader/FileUploader.cjs +1 -1
- package/dist/components/FileUploader/FileUploader.cjs.map +1 -1
- package/dist/components/FileUploader/FileUploader.js +29 -21
- package/dist/components/FileUploader/FileUploader.js.map +1 -1
- package/dist/components/FileUploader.d.ts +1 -1
- package/dist/components/Flex/preview.d.ts +1 -1
- package/dist/components/Flex.d.ts +1 -1
- package/dist/components/Footer.d.ts +1 -1
- package/dist/components/Grid/preview.d.ts +1 -1
- package/dist/components/Grid.d.ts +1 -1
- package/dist/components/Header.d.ts +1 -1
- package/dist/components/Heading/preview.d.ts +1 -1
- package/dist/components/Heading.d.ts +1 -1
- package/dist/components/Hidden/preview.d.ts +1 -1
- package/dist/components/Hidden.d.ts +1 -1
- package/dist/components/Icon/preview.d.ts +1 -1
- package/dist/components/Icon.d.ts +1 -1
- package/dist/components/IconBox/preview.d.ts +1 -1
- package/dist/components/IconBox.d.ts +1 -1
- package/dist/components/InputDetails.d.ts +1 -1
- package/dist/components/Item.d.ts +1 -1
- package/dist/components/Link/preview.d.ts +1 -1
- package/dist/components/Link.d.ts +1 -1
- package/dist/components/Matrix/preview.d.ts +1 -1
- package/dist/components/Matrix.d.ts +1 -1
- package/dist/components/Modal.d.ts +1 -1
- package/dist/components/Navigation.d.ts +1 -1
- package/dist/components/NoSsr.d.ts +1 -1
- package/dist/components/Pagination/preview.d.ts +1 -1
- package/dist/components/Pagination.d.ts +1 -1
- package/dist/components/PartnerLogo/preview.d.ts +1 -1
- package/dist/components/PartnerLogo.d.ts +1 -1
- package/dist/components/Pill/preview.d.ts +1 -1
- package/dist/components/Pill.d.ts +1 -1
- package/dist/components/PricingPlan.d.ts +1 -1
- package/dist/components/ProductLogo/preview.d.ts +1 -1
- package/dist/components/ProductLogo.d.ts +1 -1
- package/dist/components/Radio.d.ts +1 -1
- package/dist/components/ScrollView/preview.d.ts +1 -1
- package/dist/components/ScrollView.d.ts +1 -1
- package/dist/components/Section/preview.d.ts +1 -1
- package/dist/components/Section.d.ts +1 -1
- package/dist/components/SegmentedControl.d.ts +1 -1
- package/dist/components/Select.d.ts +1 -1
- package/dist/components/Skeleton/preview.d.ts +1 -1
- package/dist/components/Skeleton.d.ts +1 -1
- package/dist/components/SkipLink/preview.d.ts +1 -1
- package/dist/components/SkipLink.d.ts +1 -1
- package/dist/components/Slider.d.ts +1 -1
- package/dist/components/Spinner/preview.d.ts +1 -1
- package/dist/components/Spinner.d.ts +1 -1
- package/dist/components/SplitButton.d.ts +1 -1
- package/dist/components/Stack.d.ts +1 -1
- package/dist/components/Tabs/preview.d.ts +1 -1
- package/dist/components/Tabs.d.ts +1 -1
- package/dist/components/Tag/preview.d.ts +1 -1
- package/dist/components/Tag.d.ts +1 -1
- package/dist/components/Text/preview.d.ts +1 -1
- package/dist/components/Text.d.ts +1 -1
- package/dist/components/TextArea.d.ts +1 -1
- package/dist/components/TextField.d.ts +1 -1
- package/dist/components/TextFieldBase.d.ts +1 -1
- package/dist/components/Timeline/preview.d.ts +1 -1
- package/dist/components/Timeline.d.ts +1 -1
- package/dist/components/Toast.d.ts +1 -1
- package/dist/components/Toggle.d.ts +1 -1
- package/dist/components/Tooltip.d.ts +1 -1
- package/dist/components/Truncate/preview.d.ts +1 -1
- package/dist/components/Truncate.d.ts +1 -1
- package/dist/components/UNSTABLE_File.d.ts +1 -1
- package/dist/components/UNSTABLE_FileUpload.d.ts +1 -1
- package/dist/components/UNSTABLE_Header.d.ts +1 -1
- package/dist/components/UNSTABLE_Picker/UNSTABLE_Picker.cjs +1 -1
- package/dist/components/UNSTABLE_Picker/UNSTABLE_Picker.cjs.map +1 -1
- package/dist/components/UNSTABLE_Picker/UNSTABLE_Picker.js +128 -115
- package/dist/components/UNSTABLE_Picker/UNSTABLE_Picker.js.map +1 -1
- package/dist/components/UNSTABLE_Picker/constants.cjs +1 -1
- package/dist/components/UNSTABLE_Picker/constants.cjs.map +1 -1
- package/dist/{src/components → components}/UNSTABLE_Picker/constants.d.ts +2 -1
- package/dist/components/UNSTABLE_Picker/constants.js +10 -7
- package/dist/components/UNSTABLE_Picker/constants.js.map +1 -1
- package/dist/{src/components → components}/UNSTABLE_Picker/types.d.ts +4 -1
- package/dist/components/UNSTABLE_Picker.d.ts +1 -1
- package/dist/components/UNSTABLE_Table/preview.d.ts +1 -1
- package/dist/components/UNSTABLE_Table.d.ts +1 -1
- package/dist/components/VisuallyHidden.d.ts +1 -1
- package/dist/components.d.ts +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/context.d.ts +1 -1
- package/dist/hooks.d.ts +1 -1
- package/dist/index.d.ts +7 -2
- package/dist/translations.d.ts +1 -1
- package/dist/types/dropdown.cjs.map +1 -1
- package/dist/{src/types → types}/dropdown.d.ts +10 -8
- package/dist/types/dropdown.js.map +1 -1
- package/dist/types/shared.d.ts +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/utils.d.ts +1 -1
- package/package.json +11 -11
- package/dist/src/index.d.ts +0 -7
- /package/dist/{src/common → common}/constants/environments.d.ts +0 -0
- /package/dist/{src/common → common}/constants/index.d.ts +0 -0
- /package/dist/{src/common → common}/index.d.ts +0 -0
- /package/dist/{src/common → common}/utilities/index.d.ts +0 -0
- /package/dist/{src/common → common}/utilities/info.d.ts +0 -0
- /package/dist/{src/common → common}/utilities/warning.d.ts +0 -0
- /package/dist/{src/components → components}/Accordion/Accordion.d.ts +0 -0
- /package/dist/{src/components → components}/Accordion/AccordionContent.d.ts +0 -0
- /package/dist/{src/components → components}/Accordion/AccordionContext.d.ts +0 -0
- /package/dist/{src/components → components}/Accordion/AccordionHeader.d.ts +0 -0
- /package/dist/{src/components → components}/Accordion/AccordionItem.d.ts +0 -0
- /package/dist/{src/components → components}/Accordion/AccordionItemContext.d.ts +0 -0
- /package/dist/{src/components → components}/Accordion/UncontrolledAccordion.d.ts +0 -0
- /package/dist/{src/components → components}/Accordion/index.d.ts +0 -0
- /package/dist/{src/components → components}/Accordion/preview/index.d.ts +0 -0
- /package/dist/{src/components → components}/Accordion/useAccordion.d.ts +0 -0
- /package/dist/{src/components → components}/Accordion/useAccordionAriaProps.d.ts +0 -0
- /package/dist/{src/components → components}/Accordion/useAccordionStyleProps.d.ts +0 -0
- /package/dist/{src/components → components}/Accordion/useOpenItem.d.ts +0 -0
- /package/dist/{src/components → components}/ActionGroup/ActionGroup.d.ts +0 -0
- /package/dist/{src/components → components}/ActionGroup/index.d.ts +0 -0
- /package/dist/{src/components → components}/ActionGroup/preview/index.d.ts +0 -0
- /package/dist/{src/components → components}/Alert/Alert.d.ts +0 -0
- /package/dist/{src/components → components}/Alert/index.d.ts +0 -0
- /package/dist/{src/components → components}/Alert/preview/index.d.ts +0 -0
- /package/dist/{src/components → components}/Alert/useAlertIcon.d.ts +0 -0
- /package/dist/{src/components → components}/Alert/useAlertStyleProps.d.ts +0 -0
- /package/dist/{src/components → components}/Avatar/Avatar.d.ts +0 -0
- /package/dist/{src/components → components}/Avatar/constants.d.ts +0 -0
- /package/dist/{src/components → components}/Avatar/index.d.ts +0 -0
- /package/dist/{src/components → components}/Avatar/preview/index.d.ts +0 -0
- /package/dist/{src/components → components}/Avatar/useAvatarStyleProps.d.ts +0 -0
- /package/dist/{src/components → components}/Box/Box.d.ts +0 -0
- /package/dist/{src/components → components}/Box/index.d.ts +0 -0
- /package/dist/{src/components → components}/Box/preview/index.d.ts +0 -0
- /package/dist/{src/components → components}/Box/useBoxStyleProps.d.ts +0 -0
- /package/dist/{src/components → components}/Breadcrumbs/Breadcrumbs.d.ts +0 -0
- /package/dist/{src/components → components}/Breadcrumbs/BreadcrumbsItem.d.ts +0 -0
- /package/dist/{src/components → components}/Breadcrumbs/index.d.ts +0 -0
- /package/dist/{src/components → components}/Breadcrumbs/preview/index.d.ts +0 -0
- /package/dist/{src/components → components}/Breadcrumbs/useBreadcrumbsStyleProps.d.ts +0 -0
- /package/dist/{src/components → components}/Button/Button.d.ts +0 -0
- /package/dist/{src/components → components}/Button/index.d.ts +0 -0
- /package/dist/{src/components → components}/Button/useButtonProps.d.ts +0 -0
- /package/dist/{src/components → components}/Button/useButtonStyleProps.d.ts +0 -0
- /package/dist/{src/components → components}/ButtonLink/ButtonLink.d.ts +0 -0
- /package/dist/{src/components → components}/ButtonLink/index.d.ts +0 -0
- /package/dist/{src/components → components}/ButtonLink/useButtonLinkProps.d.ts +0 -0
- /package/dist/{src/components → components}/ButtonLink/useButtonLinkStyleProps.d.ts +0 -0
- /package/dist/{src/components → components}/Card/Card.d.ts +0 -0
- /package/dist/{src/components → components}/Card/CardArtwork.d.ts +0 -0
- /package/dist/{src/components → components}/Card/CardBody.d.ts +0 -0
- /package/dist/{src/components → components}/Card/CardEyebrow.d.ts +0 -0
- /package/dist/{src/components → components}/Card/CardFooter.d.ts +0 -0
- /package/dist/{src/components → components}/Card/CardLink.d.ts +0 -0
- /package/dist/{src/components → components}/Card/CardLogo.d.ts +0 -0
- /package/dist/{src/components → components}/Card/CardMedia.d.ts +0 -0
- /package/dist/{src/components → components}/Card/CardTitle.d.ts +0 -0
- /package/dist/{src/components → components}/Card/index.d.ts +0 -0
- /package/dist/{src/components → components}/Card/useCardMediaStyleProps.d.ts +0 -0
- /package/dist/{src/components → components}/Card/useCardStyleProps.d.ts +0 -0
- /package/dist/{src/components → components}/CharacterCounter/CharacterCounter.d.ts +0 -0
- /package/dist/{src/components → components}/CharacterCounter/constants.d.ts +0 -0
- /package/dist/{src/components → components}/CharacterCounter/index.d.ts +0 -0
- /package/dist/{src/components → components}/CharacterCounter/types.d.ts +0 -0
- /package/dist/{src/components → components}/CharacterCounter/useCharacterCounterState.d.ts +0 -0
- /package/dist/{src/components → components}/Checkbox/Checkbox.d.ts +0 -0
- /package/dist/{src/components → components}/Checkbox/index.d.ts +0 -0
- /package/dist/{src/components → components}/Checkbox/useCheckboxStyleProps.d.ts +0 -0
- /package/dist/{src/components → components}/Collapse/Collapse.d.ts +0 -0
- /package/dist/{src/components → components}/Collapse/UncontrolledCollapse.d.ts +0 -0
- /package/dist/{src/components → components}/Collapse/index.d.ts +0 -0
- /package/dist/{src/components → components}/Collapse/preview/index.d.ts +0 -0
- /package/dist/{src/components → components}/Collapse/useCollapse.d.ts +0 -0
- /package/dist/{src/components → components}/Collapse/useCollapseAriaProps.d.ts +0 -0
- /package/dist/{src/components → components}/Collapse/useCollapseStyleProps.d.ts +0 -0
- /package/dist/{src/components → components}/Collapse/useResizeHeight.d.ts +0 -0
- /package/dist/{src/components → components}/Container/Container.d.ts +0 -0
- /package/dist/{src/components → components}/Container/index.d.ts +0 -0
- /package/dist/{src/components → components}/Container/preview/index.d.ts +0 -0
- /package/dist/{src/components → components}/Container/useContainerStyleProps.d.ts +0 -0
- /package/dist/{src/components → components}/ControlButton/ControlButton.d.ts +0 -0
- /package/dist/{src/components → components}/ControlButton/index.d.ts +0 -0
- /package/dist/{src/components → components}/ControlButton/preview/index.d.ts +0 -0
- /package/dist/{src/components → components}/ControlButton/useControlButtonProps.d.ts +0 -0
- /package/dist/{src/components → components}/ControlButton/useControlButtonStyleProps.d.ts +0 -0
- /package/dist/{src/components → components}/Dialog/Dialog.d.ts +0 -0
- /package/dist/{src/components → components}/Dialog/constants.d.ts +0 -0
- /package/dist/{src/components → components}/Dialog/index.d.ts +0 -0
- /package/dist/{src/components → components}/Dialog/useDialog.d.ts +0 -0
- /package/dist/{src/components → components}/Divider/Divider.d.ts +0 -0
- /package/dist/{src/components → components}/Divider/index.d.ts +0 -0
- /package/dist/{src/components → components}/Divider/preview/index.d.ts +0 -0
- /package/dist/{src/components → components}/Divider/useDividerStyleProps.d.ts +0 -0
- /package/dist/{src/components → components}/Drawer/Drawer.d.ts +0 -0
- /package/dist/{src/components → components}/Drawer/DrawerCloseButton.d.ts +0 -0
- /package/dist/{src/components → components}/Drawer/DrawerContext.d.ts +0 -0
- /package/dist/{src/components → components}/Drawer/DrawerPanel.d.ts +0 -0
- /package/dist/{src/components → components}/Drawer/constants.d.ts +0 -0
- /package/dist/{src/components → components}/Drawer/index.d.ts +0 -0
- /package/dist/{src/components → components}/Drawer/useDrawerStyleProps.d.ts +0 -0
- /package/dist/{src/components → components}/Dropdown/Dropdown.d.ts +0 -0
- /package/dist/{src/components → components}/Dropdown/DropdownContext.d.ts +0 -0
- /package/dist/{src/components → components}/Dropdown/DropdownPopover.d.ts +0 -0
- /package/dist/{src/components → components}/Dropdown/DropdownTrigger.d.ts +0 -0
- /package/dist/{src/components → components}/Dropdown/UncontrolledDropdown.d.ts +0 -0
- /package/dist/{src/components → components}/Dropdown/index.d.ts +0 -0
- /package/dist/{src/components → components}/Dropdown/useDropdown.d.ts +0 -0
- /package/dist/{src/components → components}/Dropdown/useDropdownAriaProps.d.ts +0 -0
- /package/dist/{src/components → components}/Dropdown/useDropdownStyleProps.d.ts +0 -0
- /package/dist/{src/components → components}/EmptyState/EmptyState.d.ts +0 -0
- /package/dist/{src/components → components}/EmptyState/EmptyStateSection.d.ts +0 -0
- /package/dist/{src/components → components}/EmptyState/index.d.ts +0 -0
- /package/dist/{src/components → components}/EmptyState/preview/index.d.ts +0 -0
- /package/dist/{src/components → components}/EmptyState/useEmptyStateStyleProps.d.ts +0 -0
- /package/dist/{src/components → components}/Field/HelperText.d.ts +0 -0
- /package/dist/{src/components → components}/Field/Label.d.ts +0 -0
- /package/dist/{src/components → components}/Field/ValidationText.d.ts +0 -0
- /package/dist/{src/components → components}/Field/constants.d.ts +0 -0
- /package/dist/{src/components → components}/Field/index.d.ts +0 -0
- /package/dist/{src/components → components}/Field/types.d.ts +0 -0
- /package/dist/{src/components → components}/Field/useValidationIcon.d.ts +0 -0
- /package/dist/{src/components → components}/Field/useValidationTextRole.d.ts +0 -0
- /package/dist/{src/components → components}/FieldGroup/FieldGroup.d.ts +0 -0
- /package/dist/{src/components → components}/FieldGroup/index.d.ts +0 -0
- /package/dist/{src/components → components}/FieldGroup/useFieldGroupStyleProps.d.ts +0 -0
- /package/dist/{src/components → components}/FileUploader/AttachmentActionButton.d.ts +0 -0
- /package/dist/{src/components → components}/FileUploader/AttachmentDismissButton.d.ts +0 -0
- /package/dist/{src/components → components}/FileUploader/AttachmentImagePreview.d.ts +0 -0
- /package/dist/{src/components → components}/FileUploader/FileUploader.d.ts +0 -0
- /package/dist/{src/components → components}/FileUploader/FileUploaderAttachment.d.ts +0 -0
- /package/dist/{src/components → components}/FileUploader/FileUploaderContext.d.ts +0 -0
- /package/dist/{src/components → components}/FileUploader/FileUploaderInput.d.ts +0 -0
- /package/dist/{src/components → components}/FileUploader/FileUploaderList.d.ts +0 -0
- /package/dist/{src/components → components}/FileUploader/UncontrolledFileUploader.d.ts +0 -0
- /package/dist/{src/components → components}/FileUploader/constants.d.ts +0 -0
- /package/dist/{src/components → components}/FileUploader/index.d.ts +0 -0
- /package/dist/{src/components → components}/FileUploader/useFileQueue.d.ts +0 -0
- /package/dist/{src/components → components}/FileUploader/useFileUploaderAttachment.d.ts +0 -0
- /package/dist/{src/components → components}/FileUploader/useFileUploaderInput.d.ts +0 -0
- /package/dist/{src/components → components}/FileUploader/useFileUploaderStyleProps.d.ts +0 -0
- /package/dist/{src/components → components}/FileUploader/utils.d.ts +0 -0
- /package/dist/{src/components → components}/Flex/Flex.d.ts +0 -0
- /package/dist/{src/components → components}/Flex/index.d.ts +0 -0
- /package/dist/{src/components → components}/Flex/preview/index.d.ts +0 -0
- /package/dist/{src/components → components}/Flex/useFlexStyleProps.d.ts +0 -0
- /package/dist/{src/components → components}/Footer/Footer.d.ts +0 -0
- /package/dist/{src/components → components}/Footer/constants.d.ts +0 -0
- /package/dist/{src/components → components}/Footer/index.d.ts +0 -0
- /package/dist/{src/components → components}/Footer/useFooterStyleProps.d.ts +0 -0
- /package/dist/{src/components → components}/Grid/Grid.d.ts +0 -0
- /package/dist/{src/components → components}/Grid/GridItem.d.ts +0 -0
- /package/dist/{src/components → components}/Grid/index.d.ts +0 -0
- /package/dist/{src/components → components}/Grid/preview/index.d.ts +0 -0
- /package/dist/{src/components → components}/Grid/useGridItemStyleProps.d.ts +0 -0
- /package/dist/{src/components → components}/Grid/useGridStyleProps.d.ts +0 -0
- /package/dist/{src/components → components}/Header/Header.d.ts +0 -0
- /package/dist/{src/components → components}/Header/HeaderButton.d.ts +0 -0
- /package/dist/{src/components → components}/Header/HeaderDesktopActions.d.ts +0 -0
- /package/dist/{src/components → components}/Header/HeaderDialog.d.ts +0 -0
- /package/dist/{src/components → components}/Header/HeaderDialogActions.d.ts +0 -0
- /package/dist/{src/components → components}/Header/HeaderDialogButton.d.ts +0 -0
- /package/dist/{src/components → components}/Header/HeaderDialogCloseButton.d.ts +0 -0
- /package/dist/{src/components → components}/Header/HeaderDialogContext.d.ts +0 -0
- /package/dist/{src/components → components}/Header/HeaderDialogLink.d.ts +0 -0
- /package/dist/{src/components → components}/Header/HeaderDialogNav.d.ts +0 -0
- /package/dist/{src/components → components}/Header/HeaderDialogNavItem.d.ts +0 -0
- /package/dist/{src/components → components}/Header/HeaderDialogText.d.ts +0 -0
- /package/dist/{src/components → components}/Header/HeaderLink.d.ts +0 -0
- /package/dist/{src/components → components}/Header/HeaderMobileActions.d.ts +0 -0
- /package/dist/{src/components → components}/Header/HeaderNav.d.ts +0 -0
- /package/dist/{src/components → components}/Header/HeaderNavItem.d.ts +0 -0
- /package/dist/{src/components → components}/Header/constants.d.ts +0 -0
- /package/dist/{src/components → components}/Header/index.d.ts +0 -0
- /package/dist/{src/components → components}/Header/useHeaderStyleProps.d.ts +0 -0
- /package/dist/{src/components → components}/Heading/Heading.d.ts +0 -0
- /package/dist/{src/components → components}/Heading/index.d.ts +0 -0
- /package/dist/{src/components → components}/Heading/preview/index.d.ts +0 -0
- /package/dist/{src/components → components}/Heading/useHeadingStyleProps.d.ts +0 -0
- /package/dist/{src/components → components}/Hidden/Hidden.d.ts +0 -0
- /package/dist/{src/components → components}/Hidden/index.d.ts +0 -0
- /package/dist/{src/components → components}/Hidden/preview/index.d.ts +0 -0
- /package/dist/{src/components → components}/Icon/Icon.d.ts +0 -0
- /package/dist/{src/components → components}/Icon/constants.d.ts +0 -0
- /package/dist/{src/components → components}/Icon/index.d.ts +0 -0
- /package/dist/{src/components → components}/Icon/preview/index.d.ts +0 -0
- /package/dist/{src/components → components}/Icon/useIconBoxSize.d.ts +0 -0
- /package/dist/{src/components → components}/Icon/useIconStyleProps.d.ts +0 -0
- /package/dist/{src/components → components}/Icon/utils.d.ts +0 -0
- /package/dist/{src/components → components}/IconBox/IconBox.d.ts +0 -0
- /package/dist/{src/components → components}/IconBox/constants.d.ts +0 -0
- /package/dist/{src/components → components}/IconBox/index.d.ts +0 -0
- /package/dist/{src/components → components}/IconBox/preview/index.d.ts +0 -0
- /package/dist/{src/components → components}/IconBox/useIconBoxColors.d.ts +0 -0
- /package/dist/{src/components → components}/IconBox/useIconBoxStyleProps.d.ts +0 -0
- /package/dist/{src/components → components}/InputDetails/InputDetails.d.ts +0 -0
- /package/dist/{src/components → components}/InputDetails/index.d.ts +0 -0
- /package/dist/{src/components → components}/InputDetails/useInputDetailsStyleProps.d.ts +0 -0
- /package/dist/{src/components → components}/Item/Item.d.ts +0 -0
- /package/dist/{src/components → components}/Item/index.d.ts +0 -0
- /package/dist/{src/components → components}/Item/useItemStyleProps.d.ts +0 -0
- /package/dist/{src/components → components}/Link/Link.d.ts +0 -0
- /package/dist/{src/components → components}/Link/constants.d.ts +0 -0
- /package/dist/{src/components → components}/Link/index.d.ts +0 -0
- /package/dist/{src/components → components}/Link/preview/index.d.ts +0 -0
- /package/dist/{src/components → components}/Link/useLinkStyleProps.d.ts +0 -0
- /package/dist/{src/components → components}/Matrix/Matrix.d.ts +0 -0
- /package/dist/{src/components → components}/Matrix/constants.d.ts +0 -0
- /package/dist/{src/components → components}/Matrix/index.d.ts +0 -0
- /package/dist/{src/components → components}/Matrix/preview/index.d.ts +0 -0
- /package/dist/{src/components → components}/Matrix/useMatrixStyleProps.d.ts +0 -0
- /package/dist/{src/components → components}/Modal/Modal.d.ts +0 -0
- /package/dist/{src/components → components}/Modal/ModalBody.d.ts +0 -0
- /package/dist/{src/components → components}/Modal/ModalCloseButton.d.ts +0 -0
- /package/dist/{src/components → components}/Modal/ModalContext.d.ts +0 -0
- /package/dist/{src/components → components}/Modal/ModalDialog.d.ts +0 -0
- /package/dist/{src/components → components}/Modal/ModalFooter.d.ts +0 -0
- /package/dist/{src/components → components}/Modal/ModalHeader.d.ts +0 -0
- /package/dist/{src/components → components}/Modal/index.d.ts +0 -0
- /package/dist/{src/components → components}/Modal/useModalDialogStyleProps.d.ts +0 -0
- /package/dist/{src/components → components}/Modal/useModalStyleProps.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/Navigation.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/NavigationAction.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/NavigationAvatar.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/NavigationItem.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/index.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/useNavigationActionProps.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/useNavigationStyleProps.d.ts +0 -0
- /package/dist/{src/components → components}/NoSsr/NoSsr.d.ts +0 -0
- /package/dist/{src/components → components}/NoSsr/index.d.ts +0 -0
- /package/dist/{src/components → components}/Pagination/Pagination.d.ts +0 -0
- /package/dist/{src/components → components}/Pagination/PaginationButtonLink.d.ts +0 -0
- /package/dist/{src/components → components}/Pagination/PaginationItem.d.ts +0 -0
- /package/dist/{src/components → components}/Pagination/PaginationLink.d.ts +0 -0
- /package/dist/{src/components → components}/Pagination/PaginationLinkNext.d.ts +0 -0
- /package/dist/{src/components → components}/Pagination/PaginationLinkPrevious.d.ts +0 -0
- /package/dist/{src/components → components}/Pagination/UncontrolledPagination.d.ts +0 -0
- /package/dist/{src/components → components}/Pagination/index.d.ts +0 -0
- /package/dist/{src/components → components}/Pagination/preview/index.d.ts +0 -0
- /package/dist/{src/components → components}/Pagination/usePagination.d.ts +0 -0
- /package/dist/{src/components → components}/Pagination/usePaginationStyleProps.d.ts +0 -0
- /package/dist/{src/components → components}/PartnerLogo/PartnerLogo.d.ts +0 -0
- /package/dist/{src/components → components}/PartnerLogo/index.d.ts +0 -0
- /package/dist/{src/components → components}/PartnerLogo/preview/index.d.ts +0 -0
- /package/dist/{src/components → components}/PartnerLogo/usePartnerLogoStyleProps.d.ts +0 -0
- /package/dist/{src/components → components}/Pill/Pill.d.ts +0 -0
- /package/dist/{src/components → components}/Pill/constants.d.ts +0 -0
- /package/dist/{src/components → components}/Pill/index.d.ts +0 -0
- /package/dist/{src/components → components}/Pill/preview/index.d.ts +0 -0
- /package/dist/{src/components → components}/Pill/usePillStyleProps.d.ts +0 -0
- /package/dist/{src/components → components}/PricingPlan/PricingPlan.d.ts +0 -0
- /package/dist/{src/components → components}/PricingPlan/PricingPlanBody.d.ts +0 -0
- /package/dist/{src/components → components}/PricingPlan/PricingPlanFeatureTitle.d.ts +0 -0
- /package/dist/{src/components → components}/PricingPlan/PricingPlanFooter.d.ts +0 -0
- /package/dist/{src/components → components}/PricingPlan/PricingPlanHeader.d.ts +0 -0
- /package/dist/{src/components → components}/PricingPlan/constants.d.ts +0 -0
- /package/dist/{src/components → components}/PricingPlan/index.d.ts +0 -0
- /package/dist/{src/components → components}/PricingPlan/usePricingPlanStyleProps.d.ts +0 -0
- /package/dist/{src/components → components}/ProductLogo/ProductLogo.d.ts +0 -0
- /package/dist/{src/components → components}/ProductLogo/index.d.ts +0 -0
- /package/dist/{src/components → components}/ProductLogo/preview/index.d.ts +0 -0
- /package/dist/{src/components → components}/Radio/Radio.d.ts +0 -0
- /package/dist/{src/components → components}/Radio/index.d.ts +0 -0
- /package/dist/{src/components → components}/Radio/useRadioStyleProps.d.ts +0 -0
- /package/dist/{src/components → components}/ScrollView/ScrollView.d.ts +0 -0
- /package/dist/{src/components → components}/ScrollView/ScrollViewArrows.d.ts +0 -0
- /package/dist/{src/components → components}/ScrollView/constants.d.ts +0 -0
- /package/dist/{src/components → components}/ScrollView/index.d.ts +0 -0
- /package/dist/{src/components → components}/ScrollView/preview/index.d.ts +0 -0
- /package/dist/{src/components → components}/ScrollView/useScrollCallback.d.ts +0 -0
- /package/dist/{src/components → components}/ScrollView/useScrollPosition.d.ts +0 -0
- /package/dist/{src/components → components}/ScrollView/useScrollViewArrows.d.ts +0 -0
- /package/dist/{src/components → components}/ScrollView/useScrollViewStyleProps.d.ts +0 -0
- /package/dist/{src/components → components}/Section/Section.d.ts +0 -0
- /package/dist/{src/components → components}/Section/index.d.ts +0 -0
- /package/dist/{src/components → components}/Section/preview/index.d.ts +0 -0
- /package/dist/{src/components → components}/Section/useSectionSizeProps.d.ts +0 -0
- /package/dist/{src/components → components}/Section/useSectionStyleProps.d.ts +0 -0
- /package/dist/{src/components → components}/SegmentedControl/SegmentedControl.d.ts +0 -0
- /package/dist/{src/components → components}/SegmentedControl/SegmentedControlContext.d.ts +0 -0
- /package/dist/{src/components → components}/SegmentedControl/SegmentedControlItem.d.ts +0 -0
- /package/dist/{src/components → components}/SegmentedControl/UncontrolledSegmentedControl.d.ts +0 -0
- /package/dist/{src/components → components}/SegmentedControl/index.d.ts +0 -0
- /package/dist/{src/components → components}/SegmentedControl/useSegmentedControl.d.ts +0 -0
- /package/dist/{src/components → components}/SegmentedControl/useSegmentedControlStyleProps.d.ts +0 -0
- /package/dist/{src/components → components}/Select/Select.d.ts +0 -0
- /package/dist/{src/components → components}/Select/index.d.ts +0 -0
- /package/dist/{src/components → components}/Select/useSelectStyleProps.d.ts +0 -0
- /package/dist/{src/components → components}/Skeleton/SkeletonHeading.d.ts +0 -0
- /package/dist/{src/components → components}/Skeleton/SkeletonItem.d.ts +0 -0
- /package/dist/{src/components → components}/Skeleton/SkeletonShape.d.ts +0 -0
- /package/dist/{src/components → components}/Skeleton/SkeletonText.d.ts +0 -0
- /package/dist/{src/components → components}/Skeleton/constants.d.ts +0 -0
- /package/dist/{src/components → components}/Skeleton/index.d.ts +0 -0
- /package/dist/{src/components → components}/Skeleton/preview/index.d.ts +0 -0
- /package/dist/{src/components → components}/Skeleton/useSkeletonShapeStyleProps.d.ts +0 -0
- /package/dist/{src/components → components}/Skeleton/useSkeletonStyleProps.d.ts +0 -0
- /package/dist/{src/components → components}/SkipLink/SkipLink.d.ts +0 -0
- /package/dist/{src/components → components}/SkipLink/index.d.ts +0 -0
- /package/dist/{src/components → components}/SkipLink/preview/index.d.ts +0 -0
- /package/dist/{src/components → components}/SkipLink/useSkipLinkStyleProps.d.ts +0 -0
- /package/dist/{src/components → components}/Slider/Slider.d.ts +0 -0
- /package/dist/{src/components → components}/Slider/UncontrolledSlider.d.ts +0 -0
- /package/dist/{src/components → components}/Slider/constants.d.ts +0 -0
- /package/dist/{src/components → components}/Slider/index.d.ts +0 -0
- /package/dist/{src/components → components}/Slider/useSlider.d.ts +0 -0
- /package/dist/{src/components → components}/Slider/useSliderStyleProps.d.ts +0 -0
- /package/dist/{src/components → components}/Spinner/Spinner.d.ts +0 -0
- /package/dist/{src/components → components}/Spinner/index.d.ts +0 -0
- /package/dist/{src/components → components}/Spinner/preview/index.d.ts +0 -0
- /package/dist/{src/components → components}/Spinner/useSpinnerStyleProps.d.ts +0 -0
- /package/dist/{src/components → components}/SplitButton/SplitButton.d.ts +0 -0
- /package/dist/{src/components → components}/SplitButton/UncontrolledSplitButton.d.ts +0 -0
- /package/dist/{src/components → components}/SplitButton/index.d.ts +0 -0
- /package/dist/{src/components → components}/SplitButton/useSplitButtonStyleProps.d.ts +0 -0
- /package/dist/{src/components → components}/Stack/Stack.d.ts +0 -0
- /package/dist/{src/components → components}/Stack/StackItem.d.ts +0 -0
- /package/dist/{src/components → components}/Stack/index.d.ts +0 -0
- /package/dist/{src/components → components}/Stack/useStackStyleProps.d.ts +0 -0
- /package/dist/{src/components → components}/Tabs/TabContent.d.ts +0 -0
- /package/dist/{src/components → components}/Tabs/TabContext.d.ts +0 -0
- /package/dist/{src/components → components}/Tabs/TabItem.d.ts +0 -0
- /package/dist/{src/components → components}/Tabs/TabLink.d.ts +0 -0
- /package/dist/{src/components → components}/Tabs/TabList.d.ts +0 -0
- /package/dist/{src/components → components}/Tabs/TabPane.d.ts +0 -0
- /package/dist/{src/components → components}/Tabs/Tabs.d.ts +0 -0
- /package/dist/{src/components → components}/Tabs/UncontrolledTabs.d.ts +0 -0
- /package/dist/{src/components → components}/Tabs/index.d.ts +0 -0
- /package/dist/{src/components → components}/Tabs/preview/index.d.ts +0 -0
- /package/dist/{src/components → components}/Tabs/useTabs.d.ts +0 -0
- /package/dist/{src/components → components}/Tabs/useTabsStyleProps.d.ts +0 -0
- /package/dist/{src/components → components}/Tag/Tag.d.ts +0 -0
- /package/dist/{src/components → components}/Tag/constants.d.ts +0 -0
- /package/dist/{src/components → components}/Tag/index.d.ts +0 -0
- /package/dist/{src/components → components}/Tag/preview/index.d.ts +0 -0
- /package/dist/{src/components → components}/Tag/useTagStyleProps.d.ts +0 -0
- /package/dist/{src/components → components}/Text/Text.d.ts +0 -0
- /package/dist/{src/components → components}/Text/index.d.ts +0 -0
- /package/dist/{src/components → components}/Text/preview/index.d.ts +0 -0
- /package/dist/{src/components → components}/Text/useTextStyleProps.d.ts +0 -0
- /package/dist/{src/components → components}/TextArea/TextArea.d.ts +0 -0
- /package/dist/{src/components → components}/TextArea/constants.d.ts +0 -0
- /package/dist/{src/components → components}/TextArea/index.d.ts +0 -0
- /package/dist/{src/components → components}/TextArea/useAdjustHeight.d.ts +0 -0
- /package/dist/{src/components → components}/TextField/TextField.d.ts +0 -0
- /package/dist/{src/components → components}/TextField/index.d.ts +0 -0
- /package/dist/{src/components → components}/TextFieldBase/TextFieldBase.d.ts +0 -0
- /package/dist/{src/components → components}/TextFieldBase/TextFieldBaseInput.d.ts +0 -0
- /package/dist/{src/components → components}/TextFieldBase/TextFieldBasePasswordToggle.d.ts +0 -0
- /package/dist/{src/components → components}/TextFieldBase/index.d.ts +0 -0
- /package/dist/{src/components → components}/TextFieldBase/usePasswordToggle.d.ts +0 -0
- /package/dist/{src/components → components}/TextFieldBase/useTextFieldBaseInputStyleProps.d.ts +0 -0
- /package/dist/{src/components → components}/TextFieldBase/useTextFieldBasePasswordToggleStyleProps.d.ts +0 -0
- /package/dist/{src/components → components}/TextFieldBase/useTextFieldBaseStyleProps.d.ts +0 -0
- /package/dist/{src/components → components}/TextFieldBase/withPasswordToggle.d.ts +0 -0
- /package/dist/{src/components → components}/Timeline/Timeline.d.ts +0 -0
- /package/dist/{src/components → components}/Timeline/TimelineContent.d.ts +0 -0
- /package/dist/{src/components → components}/Timeline/TimelineHeading.d.ts +0 -0
- /package/dist/{src/components → components}/Timeline/TimelineMarker.d.ts +0 -0
- /package/dist/{src/components → components}/Timeline/TimelineStep.d.ts +0 -0
- /package/dist/{src/components → components}/Timeline/constants.d.ts +0 -0
- /package/dist/{src/components → components}/Timeline/index.d.ts +0 -0
- /package/dist/{src/components → components}/Timeline/preview/index.d.ts +0 -0
- /package/dist/{src/components → components}/Timeline/useTimelineStyleProps.d.ts +0 -0
- /package/dist/{src/components → components}/Toast/Toast.d.ts +0 -0
- /package/dist/{src/components → components}/Toast/ToastBar.d.ts +0 -0
- /package/dist/{src/components → components}/Toast/ToastBarLink.d.ts +0 -0
- /package/dist/{src/components → components}/Toast/ToastBarMessage.d.ts +0 -0
- /package/dist/{src/components → components}/Toast/ToastCloseButton.d.ts +0 -0
- /package/dist/{src/components → components}/Toast/ToastContext.d.ts +0 -0
- /package/dist/{src/components → components}/Toast/UncontrolledToast.d.ts +0 -0
- /package/dist/{src/components → components}/Toast/constants.d.ts +0 -0
- /package/dist/{src/components → components}/Toast/index.d.ts +0 -0
- /package/dist/{src/components → components}/Toast/useToast.d.ts +0 -0
- /package/dist/{src/components → components}/Toast/useToastBarStyleProps.d.ts +0 -0
- /package/dist/{src/components → components}/Toast/useToastIcon.d.ts +0 -0
- /package/dist/{src/components → components}/Toast/useToastStyleProps.d.ts +0 -0
- /package/dist/{src/components → components}/Toggle/Toggle.d.ts +0 -0
- /package/dist/{src/components → components}/Toggle/index.d.ts +0 -0
- /package/dist/{src/components → components}/Toggle/useToggleStyleProps.d.ts +0 -0
- /package/dist/{src/components → components}/Tooltip/Tooltip.d.ts +0 -0
- /package/dist/{src/components → components}/Tooltip/TooltipCloseButton.d.ts +0 -0
- /package/dist/{src/components → components}/Tooltip/TooltipContext.d.ts +0 -0
- /package/dist/{src/components → components}/Tooltip/TooltipPopover.d.ts +0 -0
- /package/dist/{src/components → components}/Tooltip/TooltipTrigger.d.ts +0 -0
- /package/dist/{src/components → components}/Tooltip/UncontrolledTooltip.d.ts +0 -0
- /package/dist/{src/components → components}/Tooltip/index.d.ts +0 -0
- /package/dist/{src/components → components}/Tooltip/useFloating.d.ts +0 -0
- /package/dist/{src/components → components}/Tooltip/useTooltip.d.ts +0 -0
- /package/dist/{src/components → components}/Tooltip/useTooltipStyleProps.d.ts +0 -0
- /package/dist/{src/components → components}/Truncate/Truncate.d.ts +0 -0
- /package/dist/{src/components → components}/Truncate/index.d.ts +0 -0
- /package/dist/{src/components → components}/Truncate/preview/index.d.ts +0 -0
- /package/dist/{src/components → components}/Truncate/useTruncateStyleProps.d.ts +0 -0
- /package/dist/{src/components → components}/Truncate/useTruncatedText.d.ts +0 -0
- /package/dist/{src/components → components}/UNSTABLE_File/UNSTABLE_File.d.ts +0 -0
- /package/dist/{src/components → components}/UNSTABLE_File/UNSTABLE_FileImagePreview.d.ts +0 -0
- /package/dist/{src/components → components}/UNSTABLE_File/constants.d.ts +0 -0
- /package/dist/{src/components → components}/UNSTABLE_File/index.d.ts +0 -0
- /package/dist/{src/components → components}/UNSTABLE_File/types.d.ts +0 -0
- /package/dist/{src/components → components}/UNSTABLE_File/useFileImageStyles.d.ts +0 -0
- /package/dist/{src/components → components}/UNSTABLE_File/useFileStyleProps.d.ts +0 -0
- /package/dist/{src/components → components}/UNSTABLE_FileUpload/UNSTABLE_FileUpload.d.ts +0 -0
- /package/dist/{src/components → components}/UNSTABLE_FileUpload/index.d.ts +0 -0
- /package/dist/{src/components → components}/UNSTABLE_FileUpload/types.d.ts +0 -0
- /package/dist/{src/components → components}/UNSTABLE_FileUpload/useFileUploadState.d.ts +0 -0
- /package/dist/{src/components → components}/UNSTABLE_FileUpload/useFileUploadStyleProps.d.ts +0 -0
- /package/dist/{src/components → components}/UNSTABLE_Header/UNSTABLE_Header.d.ts +0 -0
- /package/dist/{src/components → components}/UNSTABLE_Header/UNSTABLE_HeaderLogo.d.ts +0 -0
- /package/dist/{src/components → components}/UNSTABLE_Header/index.d.ts +0 -0
- /package/dist/{src/components → components}/UNSTABLE_Header/useUnstableHeaderStyleProps.d.ts +0 -0
- /package/dist/{src/components → components}/UNSTABLE_Picker/PickerContext.d.ts +0 -0
- /package/dist/{src/components → components}/UNSTABLE_Picker/PickerPopoverContext.d.ts +0 -0
- /package/dist/{src/components → components}/UNSTABLE_Picker/UNSTABLE_Picker.d.ts +0 -0
- /package/dist/{src/components → components}/UNSTABLE_Picker/UNSTABLE_PickerGroup.d.ts +0 -0
- /package/dist/{src/components → components}/UNSTABLE_Picker/UNSTABLE_PickerItem.d.ts +0 -0
- /package/dist/{src/components → components}/UNSTABLE_Picker/UNSTABLE_PickerTag.d.ts +0 -0
- /package/dist/{src/components → components}/UNSTABLE_Picker/UNSTABLE_UncontrolledPicker.d.ts +0 -0
- /package/dist/{src/components → components}/UNSTABLE_Picker/index.d.ts +0 -0
- /package/dist/{src/components → components}/UNSTABLE_Picker/usePickerId.d.ts +0 -0
- /package/dist/{src/components → components}/UNSTABLE_Picker/usePickerPopoverTabOutToTrigger.d.ts +0 -0
- /package/dist/{src/components → components}/UNSTABLE_Picker/usePickerSelectionGridKeyboard.d.ts +0 -0
- /package/dist/{src/components → components}/UNSTABLE_Picker/usePickerStyleProps.d.ts +0 -0
- /package/dist/{src/components → components}/UNSTABLE_Picker/utils.d.ts +0 -0
- /package/dist/{src/components → components}/UNSTABLE_Table/UNSTABLE_Table.d.ts +0 -0
- /package/dist/{src/components → components}/UNSTABLE_Table/index.d.ts +0 -0
- /package/dist/{src/components → components}/UNSTABLE_Table/preview/index.d.ts +0 -0
- /package/dist/{src/components → components}/UNSTABLE_Table/types.d.ts +0 -0
- /package/dist/{src/components → components}/UNSTABLE_Table/useUnstableTableStyleProps.d.ts +0 -0
- /package/dist/{src/components → components}/VisuallyHidden/VisuallyHidden.d.ts +0 -0
- /package/dist/{src/components → components}/VisuallyHidden/index.d.ts +0 -0
- /package/dist/{src/components → components}/VisuallyHidden/useVisuallyHiddenProps.d.ts +0 -0
- /package/dist/{src/components → components}/index.d.ts +0 -0
- /package/dist/{src/constants → constants}/classes.d.ts +0 -0
- /package/dist/{src/constants → constants}/colors.d.ts +0 -0
- /package/dist/{src/constants → constants}/dictionaries.d.ts +0 -0
- /package/dist/{src/constants → constants}/direction.d.ts +0 -0
- /package/dist/{src/constants → constants}/index.d.ts +0 -0
- /package/dist/{src/constants → constants}/inputs.d.ts +0 -0
- /package/dist/{src/constants → constants}/media.d.ts +0 -0
- /package/dist/{src/constants → constants}/position.d.ts +0 -0
- /package/dist/{src/constants → constants}/selection.d.ts +0 -0
- /package/dist/{src/constants → constants}/style.d.ts +0 -0
- /package/dist/{src/constants → constants}/text.d.ts +0 -0
- /package/dist/{src/constants → constants}/units.d.ts +0 -0
- /package/dist/{src/context → context}/ClassNamePrefixContext.d.ts +0 -0
- /package/dist/{src/context → context}/I18nContext.d.ts +0 -0
- /package/dist/{src/context → context}/IconsContext.d.ts +0 -0
- /package/dist/{src/context → context}/PropsContext.d.ts +0 -0
- /package/dist/{src/context → context}/RouterContext.d.ts +0 -0
- /package/dist/{src/context → context}/index.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/__mocks__/useIcon.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/index.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/styleProps.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/useAlignmentClass.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/useAriaIdRefs.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/useCancelEvent.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/useClassNamePrefix.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/useClick.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/useClickOutside.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/useControlledModeGuard.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/useDebouncedValue.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/useDeprecationMessage.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/useDimensionStyle.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/useDragAndDrop.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/useI18n.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/useIcon.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/useIconName.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/useInputPositionClass.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/useIsMounted.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/useIsomorphicLayoutEffect.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/useLastActiveFocus.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/useLinkClick.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/useResizeObserver.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/useScrollControl.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/useSelectionState.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/useSpacingStyle.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/useStyleUtilities.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/useSymmetry.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/useToggle.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/useWrapClass.d.ts +0 -0
- /package/dist/{src/translations → translations}/defaults.d.ts +0 -0
- /package/dist/{src/translations → translations}/index.d.ts +0 -0
- /package/dist/{src/translations → translations}/mergeTranslations.d.ts +0 -0
- /package/dist/{src/translations → translations}/replaceTranslationParams.d.ts +0 -0
- /package/dist/{src/translations → translations}/resolveTranslationKey.d.ts +0 -0
- /package/dist/{src/types → types}/accordion.d.ts +0 -0
- /package/dist/{src/types → types}/actionGroup.d.ts +0 -0
- /package/dist/{src/types → types}/alert.d.ts +0 -0
- /package/dist/{src/types → types}/avatar.d.ts +0 -0
- /package/dist/{src/types → types}/box.d.ts +0 -0
- /package/dist/{src/types → types}/breadcrumbs.d.ts +0 -0
- /package/dist/{src/types → types}/button.d.ts +0 -0
- /package/dist/{src/types → types}/card.d.ts +0 -0
- /package/dist/{src/types → types}/checkbox.d.ts +0 -0
- /package/dist/{src/types → types}/collapse.d.ts +0 -0
- /package/dist/{src/types → types}/container.d.ts +0 -0
- /package/dist/{src/types → types}/controlButton.d.ts +0 -0
- /package/dist/{src/types → types}/divider.d.ts +0 -0
- /package/dist/{src/types → types}/drawer.d.ts +0 -0
- /package/dist/{src/types → types}/emptyState.d.ts +0 -0
- /package/dist/{src/types → types}/fieldGroup.d.ts +0 -0
- /package/dist/{src/types → types}/fileUploader.d.ts +0 -0
- /package/dist/{src/types → types}/flex.d.ts +0 -0
- /package/dist/{src/types → types}/footer.d.ts +0 -0
- /package/dist/{src/types → types}/grid.d.ts +0 -0
- /package/dist/{src/types → types}/header.d.ts +0 -0
- /package/dist/{src/types → types}/heading.d.ts +0 -0
- /package/dist/{src/types → types}/hidden.d.ts +0 -0
- /package/dist/{src/types → types}/icon.d.ts +0 -0
- /package/dist/{src/types → types}/iconBox.d.ts +0 -0
- /package/dist/{src/types → types}/index.d.ts +0 -0
- /package/dist/{src/types → types}/inputDetails.d.ts +0 -0
- /package/dist/{src/types → types}/item.d.ts +0 -0
- /package/dist/{src/types → types}/label.d.ts +0 -0
- /package/dist/{src/types → types}/link.d.ts +0 -0
- /package/dist/{src/types → types}/matrix.d.ts +0 -0
- /package/dist/{src/types → types}/modal.d.ts +0 -0
- /package/dist/{src/types → types}/navigation.d.ts +0 -0
- /package/dist/{src/types → types}/pagination.d.ts +0 -0
- /package/dist/{src/types → types}/partnerLogo.d.ts +0 -0
- /package/dist/{src/types → types}/pill.d.ts +0 -0
- /package/dist/{src/types → types}/pricingPlan.d.ts +0 -0
- /package/dist/{src/types → types}/productLogo.d.ts +0 -0
- /package/dist/{src/types → types}/radio.d.ts +0 -0
- /package/dist/{src/types → types}/scrollView.d.ts +0 -0
- /package/dist/{src/types → types}/section.d.ts +0 -0
- /package/dist/{src/types → types}/segmentedControl.d.ts +0 -0
- /package/dist/{src/types → types}/select.d.ts +0 -0
- /package/dist/{src/types → types}/shared/adornments.d.ts +0 -0
- /package/dist/{src/types → types}/shared/buttons.d.ts +0 -0
- /package/dist/{src/types → types}/shared/colors.d.ts +0 -0
- /package/dist/{src/types → types}/shared/columns.d.ts +0 -0
- /package/dist/{src/types → types}/shared/dialogs.d.ts +0 -0
- /package/dist/{src/types → types}/shared/dictionaries.d.ts +0 -0
- /package/dist/{src/types → types}/shared/directions.d.ts +0 -0
- /package/dist/{src/types → types}/shared/dragAndDrop.d.ts +0 -0
- /package/dist/{src/types → types}/shared/element.d.ts +0 -0
- /package/dist/{src/types → types}/shared/events.d.ts +0 -0
- /package/dist/{src/types → types}/shared/index.d.ts +0 -0
- /package/dist/{src/types → types}/shared/inputs.d.ts +0 -0
- /package/dist/{src/types → types}/shared/item.d.ts +0 -0
- /package/dist/{src/types → types}/shared/polymorphic.d.ts +0 -0
- /package/dist/{src/types → types}/shared/positions.d.ts +0 -0
- /package/dist/{src/types → types}/shared/radii.d.ts +0 -0
- /package/dist/{src/types → types}/shared/refs.d.ts +0 -0
- /package/dist/{src/types → types}/shared/responsive.d.ts +0 -0
- /package/dist/{src/types → types}/shared/router.d.ts +0 -0
- /package/dist/{src/types → types}/shared/sizes.d.ts +0 -0
- /package/dist/{src/types → types}/shared/style.d.ts +0 -0
- /package/dist/{src/types → types}/shared/text.d.ts +0 -0
- /package/dist/{src/types → types}/shared/tokens.d.ts +0 -0
- /package/dist/{src/types → types}/skeleton.d.ts +0 -0
- /package/dist/{src/types → types}/skipLink.d.ts +0 -0
- /package/dist/{src/types → types}/slider.d.ts +0 -0
- /package/dist/{src/types → types}/spinner.d.ts +0 -0
- /package/dist/{src/types → types}/splitButton.d.ts +0 -0
- /package/dist/{src/types → types}/stack.d.ts +0 -0
- /package/dist/{src/types → types}/tabs.d.ts +0 -0
- /package/dist/{src/types → types}/tag.d.ts +0 -0
- /package/dist/{src/types → types}/text.d.ts +0 -0
- /package/dist/{src/types → types}/textArea.d.ts +0 -0
- /package/dist/{src/types → types}/textField.d.ts +0 -0
- /package/dist/{src/types → types}/textFieldBase.d.ts +0 -0
- /package/dist/{src/types → types}/timeline.d.ts +0 -0
- /package/dist/{src/types → types}/toast.d.ts +0 -0
- /package/dist/{src/types → types}/toggle.d.ts +0 -0
- /package/dist/{src/types → types}/tooltip.d.ts +0 -0
- /package/dist/{src/types → types}/truncate.d.ts +0 -0
- /package/dist/{src/types → types}/unstableHeader.d.ts +0 -0
- /package/dist/{src/types → types}/visuallyHidden.d.ts +0 -0
- /package/dist/{src/utils → utils}/assert.d.ts +0 -0
- /package/dist/{src/utils → utils}/classname.d.ts +0 -0
- /package/dist/{src/utils → utils}/colorObjectGenerators.d.ts +0 -0
- /package/dist/{src/utils → utils}/compose.d.ts +0 -0
- /package/dist/{src/utils → utils}/debounce.d.ts +0 -0
- /package/dist/{src/utils → utils}/delayedCallback.d.ts +0 -0
- /package/dist/{src/utils → utils}/htmlReactParser.d.ts +0 -0
- /package/dist/{src/utils → utils}/index.d.ts +0 -0
- /package/dist/{src/utils → utils}/mergeStyleProps.d.ts +0 -0
- /package/dist/{src/utils → utils}/pxToRem.d.ts +0 -0
- /package/dist/{src/utils → utils}/responsive.d.ts +0 -0
- /package/dist/{src/utils → utils}/router.d.ts +0 -0
- /package/dist/{src/utils → utils}/ssr.d.ts +0 -0
- /package/dist/{src/utils → utils}/string.d.ts +0 -0
- /package/dist/{src/utils → utils}/stylePropsClassesGenerator.d.ts +0 -0
- /package/dist/{src/utils → utils}/toPascalCase.d.ts +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["exports","react","react-dom"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).webReact={},e.React,e.ReactDOM)}(this,(function(e,t,n){"use strict";function r(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const n in e)if("default"!==n){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}return t.default=e,Object.freeze(t)}const o=r(t),s=r(n),i=({defaultOpen:e,stayOpen:n})=>{const[r,o]=t.useState(e);return{open:r,toggle:e=>{n?Array.isArray(r)?r?.includes(e)?o(r.filter((t=>t!==e))):o([...r,e]):o([e]):o(r===e?void 0:e)}}},a="aria-expanded",l="aria-controls",c="aria-labelledby",p=({id:e,isOpen:t})=>{const n=`${e}_Header`,r=`${e}_Content`;return{headerProps:{id:n},triggerProps:{[a]:t,[l]:r},contentProps:{id:r,[c]:n}}};function d(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var u,m={exports:{}};var f,h=(u||(u=1,f=m,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<arguments.length;t++){var o=arguments[t];o&&(e=r(e,n(o)))}return e}function n(n){if("string"==typeof n||"number"==typeof n)return n;if("object"!=typeof n)return"";if(Array.isArray(n))return t.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var o="";for(var s in n)e.call(n,s)&&n[s]&&(o=r(o,s));return o}function r(e,t){return t?e?e+" "+t:e+t:e}f.exports?(t.default=t,f.exports=t):window.classNames=t}()),m.exports);const g=d(h),y="production",b=(e,t)=>{if(process.env.NODE_ENV!==y){const e=`Warning: ${t}`;"undefined"!=typeof console&&console.warn(e);try{throw Error(e)}catch(e){}}},v="is-open",x={ACCENT:"accent",EMOTION:"emotion"},T={mobile:0,tablet:"48rem",desktop:"80rem"},P="spirit-",S={xsmall:{maxWidth:"30rem"},small:{maxWidth:"40rem"},medium:{maxWidth:"48rem"},large:{maxWidth:"64rem"},xlarge:{maxWidth:"80rem"},padding:{desktop:"2rem",mobile:"1rem",tablet:"2rem"},maxWidth:"80rem"},E={"01":{backgroundBasic:"var(--spirit-color-accent-01-background-basic)",backgroundSubtle:"var(--spirit-color-accent-01-background-subtle)",borderBasic:"var(--spirit-color-accent-01-border-basic)",borderSubtle:"var(--spirit-color-accent-01-border-subtle)",contentBasic:"var(--spirit-color-accent-01-content-basic)",contentSubtle:"var(--spirit-color-accent-01-content-subtle)",stateActive:"var(--spirit-color-accent-01-state-active)",stateDefault:"var(--spirit-color-accent-01-state-default)",stateHover:"var(--spirit-color-accent-01-state-hover)"},"02":{backgroundBasic:"var(--spirit-color-accent-02-background-basic)",backgroundSubtle:"var(--spirit-color-accent-02-background-subtle)",borderBasic:"var(--spirit-color-accent-02-border-basic)",borderSubtle:"var(--spirit-color-accent-02-border-subtle)",contentBasic:"var(--spirit-color-accent-02-content-basic)",contentSubtle:"var(--spirit-color-accent-02-content-subtle)",stateActive:"var(--spirit-color-accent-02-state-active)",stateDefault:"var(--spirit-color-accent-02-state-default)",stateHover:"var(--spirit-color-accent-02-state-hover)"}},C={button:{plain:{border:"var(--spirit-color-component-button-plain-border)",content:"var(--spirit-color-component-button-plain-content)",stateActive:"var(--spirit-color-component-button-plain-state-active)",stateDefault:"var(--spirit-color-component-button-plain-state-default)",stateHover:"var(--spirit-color-component-button-plain-state-hover)"},primary:{border:"var(--spirit-color-component-button-primary-border)",content:"var(--spirit-color-component-button-primary-content)",stateActive:"var(--spirit-color-component-button-primary-state-active)",stateDefault:"var(--spirit-color-component-button-primary-state-default)",stateHover:"var(--spirit-color-component-button-primary-state-hover)"},secondary:{border:"var(--spirit-color-component-button-secondary-border)",content:"var(--spirit-color-component-button-secondary-content)",stateActive:"var(--spirit-color-component-button-secondary-state-active)",stateDefault:"var(--spirit-color-component-button-secondary-state-default)",stateHover:"var(--spirit-color-component-button-secondary-state-hover)"},tertiary:{border:"var(--spirit-color-component-button-tertiary-border)",content:"var(--spirit-color-component-button-tertiary-content)",stateActive:"var(--spirit-color-component-button-tertiary-state-active)",stateDefault:"var(--spirit-color-component-button-tertiary-state-default)",stateHover:"var(--spirit-color-component-button-tertiary-state-hover)"}}},N={danger:{backgroundBasic:"var(--spirit-color-emotion-danger-background-basic)",backgroundSubtle:"var(--spirit-color-emotion-danger-background-subtle)",borderBasic:"var(--spirit-color-emotion-danger-border-basic)",borderSubtle:"var(--spirit-color-emotion-danger-border-subtle)",contentBasic:"var(--spirit-color-emotion-danger-content-basic)",contentSubtle:"var(--spirit-color-emotion-danger-content-subtle)",stateActive:"var(--spirit-color-emotion-danger-state-active)",stateDefault:"var(--spirit-color-emotion-danger-state-default)",stateHover:"var(--spirit-color-emotion-danger-state-hover)"},informative:{backgroundBasic:"var(--spirit-color-emotion-informative-background-basic)",backgroundSubtle:"var(--spirit-color-emotion-informative-background-subtle)",borderBasic:"var(--spirit-color-emotion-informative-border-basic)",borderSubtle:"var(--spirit-color-emotion-informative-border-subtle)",contentBasic:"var(--spirit-color-emotion-informative-content-basic)",contentSubtle:"var(--spirit-color-emotion-informative-content-subtle)",stateActive:"var(--spirit-color-emotion-informative-state-active)",stateDefault:"var(--spirit-color-emotion-informative-state-default)",stateHover:"var(--spirit-color-emotion-informative-state-hover)"},success:{backgroundBasic:"var(--spirit-color-emotion-success-background-basic)",backgroundSubtle:"var(--spirit-color-emotion-success-background-subtle)",borderBasic:"var(--spirit-color-emotion-success-border-basic)",borderSubtle:"var(--spirit-color-emotion-success-border-subtle)",contentBasic:"var(--spirit-color-emotion-success-content-basic)",contentSubtle:"var(--spirit-color-emotion-success-content-subtle)",stateActive:"var(--spirit-color-emotion-success-state-active)",stateDefault:"var(--spirit-color-emotion-success-state-default)",stateHover:"var(--spirit-color-emotion-success-state-hover)"},warning:{backgroundBasic:"var(--spirit-color-emotion-warning-background-basic)",backgroundSubtle:"var(--spirit-color-emotion-warning-background-subtle)",borderBasic:"var(--spirit-color-emotion-warning-border-basic)",borderSubtle:"var(--spirit-color-emotion-warning-border-subtle)",contentBasic:"var(--spirit-color-emotion-warning-content-basic)",contentSubtle:"var(--spirit-color-emotion-warning-content-subtle)",stateActive:"var(--spirit-color-emotion-warning-state-active)",stateDefault:"var(--spirit-color-emotion-warning-state-default)",stateHover:"var(--spirit-color-emotion-warning-state-hover)"}},w={primary:"var(--spirit-color-text-primary)",secondary:"var(--spirit-color-text-secondary)",tertiary:"var(--spirit-color-text-tertiary)"};function A(e){return Object.fromEntries(Object.keys(e).map((e=>[e.toUpperCase(),e])))}const _={LEFT:"left",CENTER:"center",RIGHT:"right"},R={SPACE_BETWEEN:"space-between",STRETCH:"stretch",..._},k={TOP:"top",CENTER:"center",BOTTOM:"bottom"},O={BASELINE:"baseline",STRETCH:"stretch",...k},$={BASIC:"basic"},j={0:"0",100:"100",200:"200",300:"300",400:"400",500:"500",FULL:"full"},D={SOLID:"solid",DOTTED:"dotted",DASHED:"dashed"},L={0:"0",100:"100",200:"200"},I={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},M=A(C.button),F=A(N),B=A(w),U={BASIC:"basic",SUBTLE:"subtle"},H={REGULAR:"regular",SEMIBOLD:"semibold",BOLD:"bold",ITALIC:"italic"},z={TOP:"top",TOP_START:"top-start",TOP_END:"top-end",BOTTOM:"bottom",BOTTOM_START:"bottom-start",BOTTOM_END:"bottom-end",LEFT:"left",LEFT_START:"left-start",LEFT_END:"left-end",RIGHT:"right",RIGHT_START:"right-start",RIGHT_END:"right-end"},V={SMALL:"small",MEDIUM:"medium",LARGE:"large"},W={XSMALL:"xsmall",...V,XLARGE:"xlarge"},{MAXWIDTH:G,PADDING:q,...X}=A(S),Y={FILL:"fill",OUTLINE:"outline"},K={BOX:"box",PILL:"pill"},Q={HORIZONTAL:"horizontal",VERTICAL:"vertical"},Z={...Q,HORIZONTAL_REVERSED:"horizontal-reversed"};var J=(e=>(e.X="x",e.Y="y",e))(J||{});const ee=e=>e===Q.HORIZONTAL,te={START:"start",END:"end"},ne={CONTAIN:"contain",COVER:"cover"},re={LEFT:"left",RIGHT:"right",TOP:"top",BOTTOM:"bottom"},oe="multiple",se="single",ie={backgroundGradient:"bg-gradient"},ae={borderRadius:"rounded"},le={margin:"m",marginTop:"mt",marginRight:"mr",marginBottom:"mb",marginLeft:"ml",marginX:"mx",marginY:"my"},ce={padding:"p",paddingBottom:"pb",paddingLeft:"pl",paddingRight:"pr",paddingTop:"pt",paddingX:"px",paddingY:"py"},pe={isTextBalanced:"text-wrap-pretty",textAlignment:"text",textHyphens:"text-hyphens",textWordBreak:"text-word-break"},de={isTextBalanced:"text-wrap-balance"},ue={hideOn:"d",hideFrom:"d"},me={theme:""},fe=4,he=t.createContext(void 0),ge=he.Provider,ye=he.Consumer,be={...V,AUTO:"auto"},ve="background",xe="both",Te="icon",Pe={ALWAYS:"always",HOVER:"hover",NEVER:"never"},Se="auto",Ee="mobile";var Ce=(e=>(e.TABLET="tablet",e.DESKTOP="desktop",e))(Ce||{});const Ne={CLICK:"click",HOVER:"hover",FOCUS:"focus",MANUAL:"manual",OUTSIDE_PRESS:"outside-press",ESCAPE_KEY:"escape-key"},we={LINES:"lines",WORDS:"words",CHARACTERS:"characters"},Ae=e=>null==e,_e=e=>"string"==typeof e&&""===e.trim(),Re=e=>Array.isArray(e)&&0===e.length,ke=e=>"object"==typeof e&&null!==e&&0===Object.keys(e).length,Oe=e=>{if("object"==typeof e&&null!==e)for(const t in e)if(Object.hasOwnProperty.call(e,t))return!0;return!1},$e=e=>!!Ae(e)||(!!_e(e)||(!!Re(e)||(!!ke(e)||(Oe(e),!1)))),je=e=>t=>null!=e&&""!==e?`${e}-${t}`:t,De=e=>t=>`${t}--${e}`,Le=e=>t=>`${t}--${e}`,Ie=(e,t,n)=>{const r={};for(const[o,s]of Object.entries(e))for(const[e]of Object.entries(s))if(e.startsWith(t)){const s=`${n}-${o}-${e.replace(t,"").toLowerCase()}`;r[s.replace(/-/g,"_").toUpperCase()]=s}return r},Me=(...e)=>e.reduceRight(((e,t)=>(...n)=>t(e(...n))),(e=>e)),Fe=(e,t)=>{let n;const r=r=>{void 0!==n&&clearTimeout(n),n=setTimeout((()=>{n=void 0,e(r)}),t)};return r.cancel=()=>{void 0!==n&&(clearTimeout(n),n=void 0)},r},Be=(e,t)=>{const n=setTimeout((()=>{e(),clearTimeout(n)}),t)};var Ue,He={},ze={},Ve={},We={},Ge={};function qe(){return Ue||(Ue=1,e=Ge,Object.defineProperty(e,"__esModule",{value:!0}),e.Doctype=e.CDATA=e.Tag=e.Style=e.Script=e.Comment=e.Directive=e.Text=e.Root=e.isTag=e.ElementType=void 0,(n=t=e.ElementType||(e.ElementType={})).Root="root",n.Text="text",n.Directive="directive",n.Comment="comment",n.Script="script",n.Style="style",n.Tag="tag",n.CDATA="cdata",n.Doctype="doctype",e.isTag=function(e){return e.type===t.Tag||e.type===t.Script||e.type===t.Style},e.Root=t.Root,e.Text=t.Text,e.Directive=t.Directive,e.Comment=t.Comment,e.Script=t.Script,e.Style=t.Style,e.Tag=t.Tag,e.CDATA=t.CDATA,e.Doctype=t.Doctype),Ge;var e,t,n}var Xe,Ye,Ke={};function Qe(){if(Xe)return Ke;Xe=1;var e=Ke&&Ke.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),t=Ke&&Ke.__assign||function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},t.apply(this,arguments)};Object.defineProperty(Ke,"__esModule",{value:!0}),Ke.cloneNode=Ke.hasChildren=Ke.isDocument=Ke.isDirective=Ke.isComment=Ke.isText=Ke.isCDATA=Ke.isTag=Ke.Element=Ke.Document=Ke.CDATA=Ke.NodeWithChildren=Ke.ProcessingInstruction=Ke.Comment=Ke.Text=Ke.DataNode=Ke.Node=void 0;var n=qe(),r=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),b(this,e)},e}();Ke.Node=r;var o=function(t){function n(e){var n=t.call(this)||this;return n.data=e,n}return e(n,t),Object.defineProperty(n.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),n}(r);Ke.DataNode=o;var s=function(t){function r(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.ElementType.Text,e}return e(r,t),Object.defineProperty(r.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),r}(o);Ke.Text=s;var i=function(t){function r(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.ElementType.Comment,e}return e(r,t),Object.defineProperty(r.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),r}(o);Ke.Comment=i;var a=function(t){function r(e,r){var o=t.call(this,r)||this;return o.name=e,o.type=n.ElementType.Directive,o}return e(r,t),Object.defineProperty(r.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),r}(o);Ke.ProcessingInstruction=a;var l=function(t){function n(e){var n=t.call(this)||this;return n.children=e,n}return e(n,t),Object.defineProperty(n.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),n}(r);Ke.NodeWithChildren=l;var c=function(t){function r(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.ElementType.CDATA,e}return e(r,t),Object.defineProperty(r.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),r}(l);Ke.CDATA=c;var p=function(t){function r(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.ElementType.Root,e}return e(r,t),Object.defineProperty(r.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),r}(l);Ke.Document=p;var d=function(t){function r(e,r,o,s){void 0===o&&(o=[]),void 0===s&&(s="script"===e?n.ElementType.Script:"style"===e?n.ElementType.Style:n.ElementType.Tag);var i=t.call(this,o)||this;return i.name=e,i.attribs=r,i.type=s,i}return e(r,t),Object.defineProperty(r.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}}))},enumerable:!1,configurable:!0}),r}(l);function u(e){return(0,n.isTag)(e)}function m(e){return e.type===n.ElementType.CDATA}function f(e){return e.type===n.ElementType.Text}function h(e){return e.type===n.ElementType.Comment}function g(e){return e.type===n.ElementType.Directive}function y(e){return e.type===n.ElementType.Root}function b(e,n){var r;if(void 0===n&&(n=!1),f(e))r=new s(e.data);else if(h(e))r=new i(e.data);else if(u(e)){var o=n?v(e.children):[],l=new d(e.name,t({},e.attribs),o);o.forEach((function(e){return e.parent=l})),null!=e.namespace&&(l.namespace=e.namespace),e["x-attribsNamespace"]&&(l["x-attribsNamespace"]=t({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(l["x-attribsPrefix"]=t({},e["x-attribsPrefix"])),r=l}else if(m(e)){o=n?v(e.children):[];var b=new c(o);o.forEach((function(e){return e.parent=b})),r=b}else if(y(e)){o=n?v(e.children):[];var x=new p(o);o.forEach((function(e){return e.parent=x})),e["x-mode"]&&(x["x-mode"]=e["x-mode"]),r=x}else{if(!g(e))throw new Error("Not implemented yet: ".concat(e.type));var T=new a(e.name,e.data);null!=e["x-name"]&&(T["x-name"]=e["x-name"],T["x-publicId"]=e["x-publicId"],T["x-systemId"]=e["x-systemId"]),r=T}return r.startIndex=e.startIndex,r.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(r.sourceCodeLocation=e.sourceCodeLocation),r}function v(e){for(var t=e.map((function(e){return b(e,!0)})),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}return Ke.Element=d,Ke.isTag=u,Ke.isCDATA=m,Ke.isText=f,Ke.isComment=h,Ke.isDirective=g,Ke.isDocument=y,Ke.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},Ke.cloneNode=b,Ke}function Ze(){return Ye||(Ye=1,function(e){var t=We&&We.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=We&&We.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.DomHandler=void 0;var r=qe(),o=Qe();n(Qe(),e);var s={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},i=function(){function e(e,t,n){this.dom=[],this.root=new o.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=s),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:s,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new o.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?r.ElementType.Tag:void 0,s=new o.Element(e,t,void 0,n);this.addNode(s),this.tagStack.push(s)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===r.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new o.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===r.ElementType.Comment)this.lastNode.data+=e;else{var t=new o.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new o.Text(""),t=new o.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new o.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();e.DomHandler=i,e.default=i}(We)),We}var Je,et,tt,nt,rt={};function ot(){if(et)return Ve;et=1,Object.defineProperty(Ve,"__esModule",{value:!0}),Ve.formatAttributes=r,Ve.escapeSpecialCharacters=function(e){return e.replace(n.CARRIAGE_RETURN_REGEX,n.CARRIAGE_RETURN_PLACEHOLDER)},Ve.revertEscapedCharacters=s,Ve.formatDOM=function e(n,i,a){void 0===i&&(i=null);for(var l,c=[],p=0,d=n.length;p<d;p++){var u=n[p];switch(u.nodeType){case 1:var m=o(u.nodeName);(l=new t.Element(m,r(u.attributes))).children=e("template"===m?u.content.childNodes:u.childNodes,l);break;case 3:l=new t.Text(s(u.nodeValue));break;case 8:l=new t.Comment(u.nodeValue);break;default:continue}var f=c[p-1]||null;f&&(f.next=l),l.parent=i,l.prev=f,l.next=null,c.push(l)}a&&((l=new t.ProcessingInstruction(a.substring(0,a.indexOf(" ")).toLowerCase(),a)).next=c[0]||null,l.parent=i,c.unshift(l),c[1]&&(c[1].prev=c[0]));return c};var e,t=Ze(),n=(Je||(Je=1,e=rt,Object.defineProperty(e,"__esModule",{value:!0}),e.CARRIAGE_RETURN_PLACEHOLDER_REGEX=e.CARRIAGE_RETURN_PLACEHOLDER=e.CARRIAGE_RETURN_REGEX=e.CARRIAGE_RETURN=e.CASE_SENSITIVE_TAG_NAMES_MAP=e.CASE_SENSITIVE_TAG_NAMES=void 0,e.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],e.CASE_SENSITIVE_TAG_NAMES_MAP=e.CASE_SENSITIVE_TAG_NAMES.reduce((function(e,t){return e[t.toLowerCase()]=t,e}),{}),e.CARRIAGE_RETURN="\r",e.CARRIAGE_RETURN_REGEX=new RegExp(e.CARRIAGE_RETURN,"g"),e.CARRIAGE_RETURN_PLACEHOLDER="__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_".concat(Date.now(),"__"),e.CARRIAGE_RETURN_PLACEHOLDER_REGEX=new RegExp(e.CARRIAGE_RETURN_PLACEHOLDER,"g")),rt);function r(e){for(var t={},n=0,r=e.length;n<r;n++){var o=e[n];t[o.name]=o.value}return t}function o(e){var t=function(e){return n.CASE_SENSITIVE_TAG_NAMES_MAP[e]}(e=e.toLowerCase());return t||e}function s(e){return e.replace(n.CARRIAGE_RETURN_PLACEHOLDER_REGEX,n.CARRIAGE_RETURN)}return Ve}const st=d(function(){if(nt)return He;nt=1;var e=He&&He.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(He,"__esModule",{value:!0}),He.default=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];var o=e.match(r),s=o?o[1]:void 0;return(0,n.formatDOM)((0,t.default)(e),null,s)};var t=e(function(){if(tt)return ze;tt=1,Object.defineProperty(ze,"__esModule",{value:!0}),ze.default=function(c){var p,d,m=(c=(0,e.escapeSpecialCharacters)(c)).match(o),f=m&&m[1]?m[1].toLowerCase():"";switch(f){case t:var h=l(c);return s.test(c)||null===(p=null==(y=h.querySelector(n))?void 0:y.parentNode)||void 0===p||p.removeChild(y),i.test(c)||null===(d=null==(y=h.querySelector(r))?void 0:y.parentNode)||void 0===d||d.removeChild(y),h.querySelectorAll(t);case n:case r:var g=a(c).querySelectorAll(f);return i.test(c)&&s.test(c)?g[0].parentNode.childNodes:g;default:return u?u(c):(y=a(c,r).querySelector(r)).childNodes;var y}};var e=ot(),t="html",n="head",r="body",o=/<([a-zA-Z]+[0-9]?)/,s=/<head[^]*>/i,i=/<body[^]*>/i,a=function(e,t){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},l=function(e,t){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},c="object"==typeof window&&window.DOMParser;if("function"==typeof c){var p=new c;a=l=function(e,t){return t&&(e="<".concat(t,">").concat(e,"</").concat(t,">")),p.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var d=document.implementation.createHTMLDocument();a=function(e,t){if(t){var n=d.documentElement.querySelector(t);return n&&(n.innerHTML=e),d}return d.documentElement.innerHTML=e,d}}var u,m="object"==typeof document&&document.createElement("template");return m&&m.content&&(u=function(e){return m.innerHTML=e,m.content.childNodes}),ze}()),n=ot(),r=/<(![a-zA-Z\s]+)>/;return He}()),it=st.default||st;var at,lt,ct={},pt={},dt={},ut={};function mt(){if(lt)return dt;lt=1;function e(e,t,n,r,o,s,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=i}const t={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach((n=>{t[n]=new e(n,0,!1,n,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((([n,r])=>{t[n]=new e(n,1,!1,r,null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((n=>{t[n]=new e(n,2,!1,n.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((n=>{t[n]=new e(n,2,!1,n,null,!1,!1)})),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach((n=>{t[n]=new e(n,3,!1,n.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((n=>{t[n]=new e(n,3,!0,n,null,!1,!1)})),["capture","download"].forEach((n=>{t[n]=new e(n,4,!1,n,null,!1,!1)})),["cols","rows","size","span"].forEach((n=>{t[n]=new e(n,6,!1,n,null,!1,!1)})),["rowSpan","start"].forEach((n=>{t[n]=new e(n,5,!1,n.toLowerCase(),null,!1,!1)}));const n=/[\-\:]([a-z])/g,r=e=>e[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach((o=>{const s=o.replace(n,r);t[s]=new e(s,1,!1,o,null,!1,!1)})),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach((o=>{const s=o.replace(n,r);t[s]=new e(s,1,!1,o,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((o=>{const s=o.replace(n,r);t[s]=new e(s,1,!1,o,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((n=>{t[n]=new e(n,1,!1,n.toLowerCase(),null,!1,!1)}));t.xlinkHref=new e("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((n=>{t[n]=new e(n,1,!1,n.toLowerCase(),null,!0,!0)}));const{CAMELCASE:o,SAME:s,possibleStandardNames:i}=(at||(at=1,ut.SAME=0,ut.CAMELCASE=1,ut.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}),ut),a=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),l=Object.keys(i).reduce(((e,t)=>{const n=i[t];return n===s?e[t]=t:n===o?e[t.toLowerCase()]=t:e[t]=n,e}),{});return dt.BOOLEAN=3,dt.BOOLEANISH_STRING=2,dt.NUMERIC=5,dt.OVERLOADED_BOOLEAN=4,dt.POSITIVE_NUMERIC=6,dt.RESERVED=0,dt.STRING=1,dt.getPropertyInfo=function(e){return t.hasOwnProperty(e)?t[e]:null},dt.isCustomAttribute=a,dt.possibleStandardNames=l,dt}var ft,ht,gt,yt={},bt={},vt={};function xt(){if(gt)return vt;gt=1;var e=vt&&vt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(vt,"__esModule",{value:!0});var t=e(function(){if(ht)return ft;ht=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,i=/^[;\s]*/,a=/^\s+|\s+$/g,l="";function c(e){return e?e.replace(a,l):l}return ft=function(a,p){if("string"!=typeof a)throw new TypeError("First argument must be a string");if(!a)return[];p=p||{};var d=1,u=1;function m(e){var n=e.match(t);n&&(d+=n.length);var r=e.lastIndexOf("\n");u=~r?e.length-r:u+e.length}function f(){var e={line:d,column:u};return function(t){return t.position=new h(e),b(),t}}function h(e){this.start=e,this.end={line:d,column:u},this.source=p.source}function g(e){var t=new Error(p.source+":"+d+":"+u+": "+e);if(t.reason=e,t.filename=p.source,t.line=d,t.column=u,t.source=a,!p.silent)throw t}function y(e){var t=e.exec(a);if(t){var n=t[0];return m(n),a=a.slice(n.length),t}}function b(){y(n)}function v(e){var t;for(e=e||[];t=x();)!1!==t&&e.push(t);return e}function x(){var e=f();if("/"==a.charAt(0)&&"*"==a.charAt(1)){for(var t=2;l!=a.charAt(t)&&("*"!=a.charAt(t)||"/"!=a.charAt(t+1));)++t;if(t+=2,l===a.charAt(t-1))return g("End of comment missing");var n=a.slice(2,t-2);return u+=2,m(n),a=a.slice(t),u+=2,e({type:"comment",comment:n})}}function T(){var t=f(),n=y(r);if(n){if(x(),!y(o))return g("property missing ':'");var a=y(s),p=t({type:"declaration",property:c(n[0].replace(e,l)),value:a?c(a[0].replace(e,l)):l});return y(i),p}}return h.prototype.content=a,b(),function(){var e,t=[];for(v(t);e=T();)!1!==e&&(t.push(e),v(t));return t}()}}());return vt.default=function(e,n){var r=null;if(!e||"string"!=typeof e)return r;var o=(0,t.default)(e),s="function"==typeof n;return o.forEach((function(e){if("declaration"===e.type){var t=e.property,o=e.value;s?n(t,o,e):o&&((r=r||{})[t]=o)}})),r},vt}var Tt,Pt,St,Et,Ct,Nt={};function wt(){if(Tt)return Nt;Tt=1,Object.defineProperty(Nt,"__esModule",{value:!0}),Nt.camelCase=void 0;var e=/^--[a-zA-Z0-9-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,s=function(e,t){return t.toUpperCase()},i=function(e,t){return"".concat(t,"-")};return Nt.camelCase=function(a,l){return void 0===l&&(l={}),function(t){return!t||n.test(t)||e.test(t)}(a)?a:(a=a.toLowerCase(),(a=l.reactCompat?a.replace(o,i):a.replace(r,i)).replace(t,s))},Nt}function At(){return St||(St=1,function(e){var n=yt&&yt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.returnFirstArg=e.canTextBeChildOfNode=e.ELEMENTS_WITH_NO_TEXT_CHILDREN=e.PRESERVE_CUSTOM_ATTRIBUTES=e.setStyleProp=e.isCustomComponent=void 0;var r=t,o=n(function(){if(Pt)return bt;Pt=1;var e=bt&&bt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(bt,"__esModule",{value:!0});var t=e(xt()),n=wt();return bt.default=function(e,r){var o={};return e&&"string"==typeof e?((0,t.default)(e,(function(e,t){e&&t&&(o[(0,n.camelCase)(e,r)]=t)})),o):o},bt}()),s=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);e.isCustomComponent=function(e,t){return e.includes("-")?!s.has(e):Boolean(t&&"string"==typeof t.is)};var i={reactCompat:!0};e.setStyleProp=function(e,t){if("string"==typeof e)if(e.trim())try{t.style=(0,o.default)(e,i)}catch(e){t.style={}}else t.style={}},e.PRESERVE_CUSTOM_ATTRIBUTES=Number(r.version.split(".")[0])>=16,e.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);e.canTextBeChildOfNode=function(t){return!e.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(t.name)};e.returnFirstArg=function(e){return e}}(yt)),yt}const _t=d(function(){if(Ct)return ct;Ct=1;var e=ct&&ct.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ct,"__esModule",{value:!0});var n=t,r=e(function(){if(Et)return pt;Et=1,Object.defineProperty(pt,"__esModule",{value:!0});var e=mt(),t=At(),n=["checked","value"],r=["input","select","textarea"],o={reset:!0,submit:!0};function s(t){return e.possibleStandardNames[t]}return pt.default=function(i,a){void 0===i&&(i={});var l={},c=Boolean(i.type&&o[i.type]);for(var p in i){var d=i[p];if((0,e.isCustomAttribute)(p))l[p]=d;else{var u=p.toLowerCase(),m=s(u);if(m){var f=(0,e.getPropertyInfo)(m);switch(n.includes(m)&&r.includes(a)&&!c&&(m=s("default"+u)),l[m]=d,f&&f.type){case e.BOOLEAN:l[m]=!0;break;case e.OVERLOADED_BOOLEAN:""===d&&(l[m]=!0)}}else t.PRESERVE_CUSTOM_ATTRIBUTES&&(l[p]=d)}}return(0,t.setStyleProp)(i.style,l),l},pt}()),o=At(),s={cloneElement:n.cloneElement,createElement:n.createElement,isValidElement:n.isValidElement};function i(e){return o.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&(0,o.isCustomComponent)(e.name,e.attribs)}return ct.default=function e(t,n){for(var a=[],l="function"==typeof(null==n?void 0:n.replace),c=(null==n?void 0:n.transform)||o.returnFirstArg,p=(null==n?void 0:n.library)||s,d=p.cloneElement,u=p.createElement,m=p.isValidElement,f=t.length,h=0;h<f;h++){var g=t[h];if(l){var y=n.replace(g,h);if(m(y)){f>1&&(y=d(y,{key:y.key||h})),a.push(c(y,g,h));continue}}if("text"!==g.type){var b=g,v={};i(b)?((0,o.setStyleProp)(b.attribs.style,b.attribs),v=b.attribs):b.attribs&&(v=(0,r.default)(b.attribs,b.name));var x=void 0;switch(g.type){case"script":case"style":g.children[0]&&(v.dangerouslySetInnerHTML={__html:g.children[0].data});break;case"tag":"textarea"===g.name&&g.children[0]?v.defaultValue=g.children[0].data:g.children&&g.children.length&&(x=e(g.children,n));break;default:continue}f>1&&(v.key=h),a.push(c(u(g.name,v,x),g,h))}else{var T=!g.data.trim().length;if(T&&g.parent&&!(0,o.canTextBeChildOfNode)(g.parent))continue;if((null==n?void 0:n.trim)&&T)continue;a.push(c(g.data,g,h))}}return 1===a.length?a[0]:a},ct}()),Rt=_t.default||_t,kt=e=>{if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];const t="function"==typeof it.default?it.default:it;return("function"==typeof Rt.default?Rt.default:Rt)(t(e))};function Ot(e,t){const n="string"!=typeof(r=e)&&null!==r&&"spiritComponent"in r;var r;const o=e=>"object"==typeof e&&null!==e,s=Object.values(t).flatMap((e=>"string"==typeof e?[e]:o(e)?[e.className,e.UNSAFE_className].filter(Boolean):[])).filter(Boolean).join(" "),i=Object.values(t).filter(o).reduce(((e,t)=>{if(!o(t))return e;const n=t,r=n.style||n.UNSAFE_style||{},s=(e=>o(e)?Object.entries(e).filter((([e])=>e.startsWith("--"))).reduce(((e,[t,n])=>({...e,[t]:n})),{}):{})(t);return{...e,...r,...s}}),{});return n?{UNSAFE_className:s,UNSAFE_style:i}:{className:s,style:i}}const $t=Number.parseFloat("16px"),jt=Number.isFinite($t)&&$t>0?$t:16,Dt=(e,t={})=>{const{baseFontSize:n=jt,decimals:r=fe}=t,o=Number.parseFloat(String(e)),s=Number.isFinite(o)?o:0,i=Number.parseFloat(String(n)),a=Number.isFinite(i)&&i>0?i:16,l=Number.isInteger(r)&&r>=0&&r<=100?r:fe,c=s/a,p=10**l,d=Math.round((c+Number.EPSILON)*p)/p;return`${(0===Math.abs(d)?0:d).toFixed(l).replace(/\.?0+$/,"")}rem`},Lt=e=>{const{router:t,routerOptions:n,href:r,target:o,download:s,onClick:i,isDisabled:a}=e,l="string"==typeof r&&(e=>(e=>/^[a-z][a-z0-9+.-]*:/i.test(e.trim()))(e)||(e=>e.trim().startsWith("//"))(e))(r),c="string"==typeof r&&(e=>e.trim().startsWith("#"))(r),p=Boolean(t&&r&&!a&&!(!0===s||"string"==typeof s)&&!(e=>"string"==typeof e&&"_self"!==e.toLowerCase())(o)&&!l&&!c);return p?e=>{e.defaultPrevented||(i?.(e),(e=>e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||"number"==typeof e.button&&0!==e.button)(e)||e.defaultPrevented||(e.preventDefault(),t?.navigate(String(r),n)))}:i};function It(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function Mt(e,t){return t?It(t)?Object.entries(t).map((([t,n])=>void 0===n?"":"mobile"===t?`${e}--${n}`:`${e}--${t}--${n}`)).filter((e=>""!==e)):[`${e}--${t}`]:[]}const Ft="undefined"==typeof window,Bt=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ut=e=>e.replace(/-([a-z])/g,(e=>e[1].toUpperCase())),Ht=e=>{if("object"==typeof e&&null!==e){const t={};for(const[n,r]of Object.entries(e))t[n]="string"==typeof r?Ut(r):r;return t}return e},zt=e=>"string"==typeof e||null==e?e??void 0:String(e),Vt=e=>"string"==typeof e?Ut(e):"object"==typeof e&&null!==e?Ht(e):e;function Wt(e){return"string"!=typeof e?e:e.split("-").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join("")}function Gt(e,t,n){return`${e}--${n||""}${n?Wt(t):t}`}function qt(e,t,n){return Object.keys(t).map((r=>{const o="mobile"===r?"":`--${r}`,s=t[r];return`${e}${o}--${n||""}${n?Wt(s):s}`})).join(" ")}function Xt(e,t,n){const r=function(e){return e&&"object"==typeof e}(t)?qt:Gt;return r(e,t,n)}const Yt="-",Kt=e=>(e=>"string"==typeof e&&e.startsWith("space-"))(e)?(e=>e===Se?Se:e.replace(/[^0-9]/g,""))(e):e,Qt=(e,t,n,r)=>{switch(e){case"hideOn":return((e,t,n)=>(Array.isArray(t)?t:[t]).map((t=>je(n)(`${e}${Yt}only${Yt}${t}${Yt}none`))))(t,n,r);case"hideFrom":return((e,t,n)=>{const r=t===Ee?"":`${Yt}${t}`;return[je(n)(`${e}${r}${Yt}none`)]})(t,n,r);default:return[]}},Zt=(e,t,n,r)=>{if(t===me.theme){if("string"!=typeof n)return[];const e=Bt(n);return[je(r)(e)]}return e in ue?Qt(e,t,n,r):"boolean"==typeof n?n?[je(r)(t)]:[]:"string"==typeof n?[je(r)(`${t}-${Kt(n)}`)]:((e,t,n)=>Object.keys(t).reduce(((r,o)=>{const s=t[o];if("string"==typeof s){const t=Kt(s),i=o===Ee?"":`${Yt}${o}`;r.push(je(n)(`${e}${i}${Yt}${t}`))}return r}),[]))(t,n,r)},Jt=(e,t,n,r={includesKey:!0})=>{const o=(s=e,i=t,Object.keys(s).includes(i));var s,i;return r.includesKey?o&&!$e(n):!o};function en(e,n){const r=t.useContext(he),{UNSAFE_className:o,UNSAFE_style:s,...i}=e,a={theme:me.theme,...n??{}},{styleUtilities:l,props:c}=((e,t="",n={})=>{const r={...le,...ue,...me,...n},o=Object.entries(e);return{styleUtilities:o.reduce(((e,[n,o])=>{if(Jt(r,n,o)){const s=r[n];return[...e,...Zt(n,s,o,t)]}return e}),[]),props:o.reduce(((e,[t,n])=>Jt(r,t,n,{includesKey:!1})?{...e,[t]:n}:e),{})}})(i,r,a),p={...s};c.className&&(b(0,"The className prop is unsafe and is unsupported in Spirit Web React. Please use style props with Spirit Design Tokens, or UNSAFE_className if you absolutely must do something custom. Note that this may break in future versions due to DOM structure changes."),delete c.className),c.style&&(b(0,"The style prop is unsafe and is unsupported in Spirit Web React. Please use style props with Spirit Design Tokens, or UNSAFE_style if you absolutely must do something custom. Note that this may break in future versions due to DOM structure changes."),delete c.style);return{styleProps:{style:Object.keys(p).length>0?p:void 0,className:g(...l,o)||void 0},props:c}}function tn(e,t,n){return Xt(e,t&&"object"==typeof t?{mobile:"stretch",...t}:t,n)}function nn(e,n){const[r,o]=t.useState((()=>{if(!n)return[];const e=n.trim().split(/\s+/).filter(Boolean);return Array.from(new Set(e))})),s=t.useCallback((({add:e,remove:t})=>{o((n=>{const r=new Set(n),o=r.size;return t&&r.delete(t),e&&r.add(e),r.size!==o?Array.from(r):n}))}),[]);return[t.useMemo((()=>r.length>0?{[e]:r.join(" ")}:{}),[r,e]),s]}const rn=e=>nn("aria-describedby",e),on=e=>nn("aria-details",e),sn=Ft?t.useEffect:t.useLayoutEffect,an="cancel",ln="keydown",cn=(e,n,r=!0,o=!1)=>{const s=t.useCallback((t=>{e&&n&&(t.defaultPrevented||(t.preventDefault(),n&&r&&n(t)))}),[e,n,r]),i=t.useCallback((e=>{"Escape"===e.key&&!r&&o&&e.preventDefault()}),[r,o]);return sn((()=>{const t=e?.current;return t?(t.addEventListener(an,s),document.addEventListener(ln,i),()=>{t.removeEventListener(an,s),document.removeEventListener(ln,i)}):()=>{}}),[e,s]),s},pn=e=>{const n=t.useContext(he);let r=e;return e&&n?r=je(n)(e):n&&(r=n),r},dn=(e,n)=>t.useCallback((t=>{e?t.preventDefault():n&&n(t)}),[e,n]),un=({ref:e,callback:n})=>{const r=t.useRef({mouseDownTarget:null}),o=t.useCallback((t=>{const o=r.current;!e||!n||t.defaultPrevented||e.current&&e.current.contains(o.mouseDownTarget)||e.current&&!e.current.contains(t?.target)&&n&&n(t)}),[e,n]),s=e=>{r.current.mouseDownTarget=e.target};sn((()=>(document.addEventListener("mousedown",s,{capture:!0}),document.addEventListener("click",o,{capture:!0}),()=>{document.removeEventListener("mousedown",s,{capture:!0}),document.removeEventListener("click",o,{capture:!0})})),[o])},mn=e=>{const{value:n,defaultValue:r,componentName:o,valuePropName:s="value",defaultValuePropName:i="defaultValue",bothDefinedMessage:a,modeSwitchMessage:l}=e,c=void 0!==n,p=t.useRef(void 0),d=t.useRef(!1);t.useEffect((()=>{void 0===n||void 0===r||d.current||(d.current=!0,b(0,a??`${o}: \`${s}\` and \`${i}\` cannot both be set. Use either controlled (\`${s}\`) or uncontrolled (\`${i}\`) mode.`))}),[a,o,r,i,n,s]),t.useEffect((()=>{void 0!==p.current?(p.current!==c&&b(0,l??`${o}: Do not switch between controlled (\`${s}\` defined) and uncontrolled (\`${s}\` undefined) modes across renders.`),p.current=c):p.current=c}),[o,c,l,s])},fn=(e,n)=>{const[r,o]=t.useState(e),s=t.useRef(!0),i=t.useMemo((()=>Fe((e=>o(e)),n)),[n]);return t.useEffect((()=>{if(!s.current)return i(e),()=>i.cancel();s.current=!1}),[e,i]),r},hn=({method:e="component",trigger:n,componentName:r,componentProps:o,propertyProps:s,customText:i})=>{const a=`Deprecation warning (${r}):`;t.useEffect((()=>{const t=n&&r&&"development"===process.env.NODE_ENV;let l,c;switch(e){case"property":l=s?.delete?`${a} "${s?.deprecatedName}" property will be deleted in the next major version.`:s?.deprecatedValue&&s?.newValue&&s?.propertyName?`${a} The "${s?.deprecatedValue}" value for "${s?.propertyName}" property will be renamed to "${s?.newValue}" in the next major version.`:`${a} "${s?.deprecatedName}" property will be replaced in the next major version. Please use "${s?.newName}" instead. ♻️️`,c=!!s;break;case"custom":l=`${a} ${i}`,c=!0;break;default:l=o?.delete?`${a} The component and its subcomponents will be deleted in the next major version.`:`${a} The component and its subcomponents will be renamed to "${o?.newName}" in the next major version.`,c=!!o}l&&t&&c&&b(0,l)}),[])},gn=(e,t)=>{const n={},r=`--${t}`;return"object"==typeof e&&null!==e?Object.keys(e).forEach((t=>{const o="mobile"===t?"":`-${t}`,s=e[t];n[`${r}${o}`]=`${s?.toString()}`})):e&&(n[`${r}`]=`${e?.toString()}`),n},yn=e=>{const[n,r]=t.useState(!1);return{isDragging:n,onDragOver:t=>{t.preventDefault(),e?.onDragOver&&e.onDragOver(t)},onDragEnter:t=>{r(!0),e?.onDragEnter&&e.onDragEnter(t)},onDragLeave:t=>{r(!1),e?.onDragLeave&&e.onDragLeave(t)},onDrop:t=>{t.preventDefault(),e?.onDrop&&e.onDrop(t),r(!1)}}},bn={common:{close:"Close",edit:"Edit",remove:"Remove"},attachment:{edit:"Edit",remove:"Remove"},breadcrumbs:{back:"Go back"},fileUploader:{edit:"Edit",remove:"Remove",attachments:"Attachments"},pagination:{next:"Next",previous:"Previous",goToPage:"Go to page"},picker:{add:"Add",removeAll:"Remove all",removeItemLabel:"Remove {itemLabel}",selectionAriaLabel:"Selected {label}",tagDescriptionText:"Press Delete or Backspace to remove"},textArea:{counter:{charactersEntered:"{count} characters entered",charactersRemaining:"{count} characters remaining",characterRemaining:"{count} character remaining",canEnterUpTo:"You can enter up to {maxLength} characters",charactersOverLimit:"{count} characters over limit",characterOverLimit:"{count} character over limit"}},textField:{password:{show:"Show password",hide:"Hide password"}},splitButton:{dropdown:"More"}},vn=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),xn=e=>{const t={};for(const n of Object.keys(e)){const r=e[n];t[n]="string"==typeof r?r:xn(r)}return t},Tn=(e,t)=>{const n=xn(e);for(const e of Object.keys(t)){const r=t[e],o=n[e];"string"==typeof r?n[e]=r:vn(r)&&("string"==typeof o?n[e]=Tn({},r):vn(o)?n[e]=Tn(o,r):n[e]=Tn({},r))}return n},Pn=t.createContext(null),Sn=Pn.Consumer,En=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),Cn=(e,t)=>{if(null==e||!En(e))return;if((e=>Object.keys(e).some((e=>e in bn)))(e))return e;const n=e[t];return En(n)?n:void 0},Nn=(e,t)=>Object.entries(t).reduce(((e,[t,n])=>{const r=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return e.replace(new RegExp(`\\{${r}\\}`,"g"),String(n))}),e),wn=(e,t)=>{const n=t.split(".");let r=e;for(const e of n){if("object"!=typeof r||null===r||!(e in r))return t;r=r[e]}return"string"==typeof r?r:t},An=()=>{const e=t.useContext(Pn)??bn;return{t:(t,n)=>{const r=wn(e,t);return n?Nn(r,n):r}}},_n=t.createContext(void 0),Rn=_n.Provider,kn=_n.Consumer,On=e=>{const n=t.useContext(_n);return null!=n&&null!=n[e]?n[e]:(b(0,`The ${e} icon is missing from your assets or icon map provided by the IconsProvider. Please make sure you have provided all icons needed by used components.`),"")};function $n(e,t,n="default"){return e&&t[e]?t[e]:t[n]}function jn(e,t){return t?Xt(e,t,"inputPosition"):""}const Dn=e=>{const n=t.useRef(null);t.useEffect((()=>{e?n.current=document.activeElement:n?.current&&n.current.focus()}),[e])},Ln=t.createContext(null),In=Ln.Consumer,Mn=()=>t.useContext(Ln),Fn=e=>{const n=Mn(),{routerOptions:r,href:o,target:s,download:i,onClick:a,isDisabled:l}=e;return t.useMemo((()=>Lt({router:n,routerOptions:r,href:o,target:s,download:i,onClick:a,isDisabled:l})),[n,r,o,s,i,a,l])};function Bn(e,t,n){return e[t]?Array.isArray(e[t])?e[t][0][n]:e[t][n]:"contentBoxSize"===t?e.contentRect["inlineSize"===n?"width":"height"]:void 0}const Un={width:void 0,height:void 0};function Hn(e){const{ref:n,box:r="border-box"}=e,[{width:o,height:s},i]=t.useState(Un),a=function(){const e=t.useRef(!1);return t.useEffect((()=>(e.current=!0,()=>{e.current=!1})),[]),t.useCallback((()=>e.current),[])}(),l=t.useRef({...Un}),c=t.useRef(void 0);return c.current=e.onResize,t.useEffect((()=>{if(Ft)return;if(!("ResizeObserver"in window))return;if(!n.current)return;const e=new ResizeObserver((([e])=>{const t="border-box"===r?"borderBoxSize":"device-pixel-content-box"===r?"devicePixelContentBoxSize":"contentBoxSize",n=Bn(e,t,"inlineSize"),o=Bn(e,t,"blockSize");if(l.current.width!==n||l.current.height!==o){const e={width:n,height:o};l.current.width=n,l.current.height=o,c.current?c.current(e):a()&&i(e)}}));return e.observe(n.current,{box:r}),()=>{e.disconnect()}}),[r,n,a]),{width:o,height:s}}const zn="is-scrolling-disabled",Vn=()=>{const{body:e}=document;e.style.paddingRight="",e.classList.remove(zn)},Wn=(e,n)=>{t.useEffect((()=>(n?(()=>{const{body:e}=document,t=window.innerWidth-e.clientWidth;e.style.paddingRight=`${t}px`,e.classList.add(zn)})():e.current&&!e.current.open&&Vn(),()=>{Vn()})),[n,e])},Gn=e=>e===se,qn=(e,t)=>Gn(t)?e.slice(0,1):e,Xn=(e,t,n)=>Gn(n)?e[0]===t:e.includes(t),Yn=(e,t,n)=>{const r=e.includes(t);return Gn(n)?r?[]:[t]:r?e.filter((e=>e!==t)):[...e,t]},Kn=({defaultSelectedKeys:e=[],onSelectionChange:n,selectionMode:r=oe})=>{const[o,s]=t.useState((()=>qn(e,r))),i=t.useRef(n);i.current=n;const a=t.useRef(!0);t.useEffect((()=>{s((e=>{const t=qn(e,r);return e.length===t.length&&e.every(((e,n)=>e===t[n]))?e:t}))}),[r]),t.useEffect((()=>{a.current?a.current=!1:i.current?.(o)}),[o]);return{selectedKeys:o,setSelectedKeys:e=>{s(qn(e,r))},toggleSelectedKey:e=>{s((t=>Yn(t,e,r)))}}};function Qn(e,t,n=void 0){const r={},o=n?`-${n}`:"";return"object"==typeof e&&null!==e?Object.keys(e).forEach((n=>{r[`--${t}-spacing${o}${"mobile"===n?"":`-${n}`}`]=`var(--${P}${e[n]?.toString()})`})):e&&(r[`--${t}-spacing${o}`]=`var(--${P}${e})`),r}const Zn="--symmetrical";function Jn(e,t){if("object"!=typeof t||null===t)return{isSymmetricalActive:!0===t,symmetricalClassName:t?`${e}${Zn}`:""};const{classes:n}=Object.keys(T).reduce(function(e,t){return(n,r)=>{if(r in t){const o=t[r],s=r===Ee?"":`--${r}`;if(o)return{classes:[...n.classes,`${e}${s}${Zn}`],wasSymmetrical:!0};if(n.wasSymmetrical)return{classes:[...n.classes,`${e}${s}--asymmetrical`],wasSymmetrical:n.wasSymmetrical}}return n}}(e,t),{classes:[],wasSymmetrical:!1});return{isSymmetricalActive:Object.values(t).includes(!0),symmetricalClassName:n.join(" ")}}const er=(e=!1)=>{const[n,r]=t.useState(e);return[n,t.useCallback((()=>r((e=>!e))),[])]},tr="--wrap",nr="--noWrap";function rr(e,t){return"object"==typeof t&&null!==t?Object.entries(t).map((([t,n])=>`${e}${"mobile"===t?"":`--${t}`}${n?tr:nr}`)).join(" "):`${e}${t?tr:nr}`}const or=()=>{const e=pn("Accordion");return{classProps:{root:e,item:`${e}__item`,header:`${e}__itemHeader`,toggle:`${e}__itemToggle`,side:`${e}__itemSide`,slot:`${e}__itemSlot`,icon:`${e}__itemIcon`,content:`${e}__content`}}},sr=t.createContext({open:void 0,toggle:()=>null}),ir=sr.Provider;sr.Consumer;const ar=()=>t.useContext(sr),lr=e=>{const{open:t}=ar();return{isOpen:(n=e,!(!n||n!==t&&!t?.includes(n)))};var n};var cr,pr={exports:{}},dr={};var ur,mr,fr={};function hr(){return ur||(ur=1,"production"!==process.env.NODE_ENV&&function(){function e(t){if(null==t)return null;if("function"==typeof t)return t.$$typeof===C?null:t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case f:return"Fragment";case g:return"Profiler";case h:return"StrictMode";case x:return"Suspense";case T:return"SuspenseList";case E:return"Activity"}if("object"==typeof t)switch("number"==typeof t.tag&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),t.$$typeof){case m:return"Portal";case b:return t.displayName||"Context";case y:return(t._context.displayName||"Context")+".Consumer";case v:var n=t.render;return(t=t.displayName)||(t=""!==(t=n.displayName||n.name||"")?"ForwardRef("+t+")":"ForwardRef"),t;case P:return null!==(n=t.displayName||null)?n:e(t.type)||"Memo";case S:n=t._payload,t=t._init;try{return e(t(n))}catch(e){}}return null}function n(e){return""+e}function r(e){try{n(e);var t=!1}catch(e){t=!0}if(t){var r=(t=console).error,o="function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return r.call(t,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",o),n(e)}}function o(t){if(t===f)return"<>";if("object"==typeof t&&null!==t&&t.$$typeof===S)return"<...>";try{var n=e(t);return n?"<"+n+">":"<...>"}catch(e){return"<...>"}}function s(){return Error("react-stack-top-frame")}function i(){var t=e(this.type);return R[t]||(R[t]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),void 0!==(t=this.props.ref)?t:null}function a(t,n,o,s,a,c){var d,m=n.children;if(void 0!==m)if(s)if(A(m)){for(s=0;s<m.length;s++)l(m[s]);Object.freeze&&Object.freeze(m)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else l(m);if(w.call(n,"key")){m=e(t);var f=Object.keys(n).filter((function(e){return"key"!==e}));s=0<f.length?"{key: someKey, "+f.join(": ..., ")+": ...}":"{key: someKey}",$[m+s]||(f=0<f.length?"{"+f.join(": ..., ")+": ...}":"{}",console.error('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',s,m,f,m),$[m+s]=!0)}if(m=null,void 0!==o&&(r(o),m=""+o),function(e){if(w.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(n)&&(r(n.key),m=""+n.key),"key"in n)for(var h in o={},n)"key"!==h&&(o[h]=n[h]);else o=n;return m&&function(e,t){function n(){p||(p=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",t))}n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}(o,"function"==typeof t?t.displayName||t.name||"Unknown":t),function(e,t,n,r,o,s){var a=n.ref;return e={$$typeof:u,type:e,key:t,props:n,_owner:r},null!==(void 0!==a?a:null)?Object.defineProperty(e,"ref",{enumerable:!1,get:i}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:o}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:s}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}(t,m,o,null===(d=N.A)?null:d.getOwner(),a,c)}function l(e){c(e)?e._store&&(e._store.validated=1):"object"==typeof e&&null!==e&&e.$$typeof===S&&("fulfilled"===e._payload.status?c(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function c(e){return"object"==typeof e&&null!==e&&e.$$typeof===u}var p,d=t,u=Symbol.for("react.transitional.element"),m=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),g=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),b=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),E=Symbol.for("react.activity"),C=Symbol.for("react.client.reference"),N=d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,w=Object.prototype.hasOwnProperty,A=Array.isArray,_=console.createTask?console.createTask:function(){return null},R={},k=(d={react_stack_bottom_frame:function(e){return e()}}).react_stack_bottom_frame.bind(d,s)(),O=_(o(s)),$={};fr.Fragment=f,fr.jsx=function(e,t,n){var r=1e4>N.recentlyCreatedOwnerStacks++;return a(e,t,n,!1,r?Error("react-stack-top-frame"):k,r?_(o(e)):O)},fr.jsxs=function(e,t,n){var r=1e4>N.recentlyCreatedOwnerStacks++;return a(e,t,n,!0,r?Error("react-stack-top-frame"):k,r?_(o(e)):O)}}()),fr}var gr=(mr||(mr=1,"production"===process.env.NODE_ENV?pr.exports=function(){if(cr)return dr;cr=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(t,n,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==n.key&&(o=""+n.key),"key"in n)for(var s in r={},n)"key"!==s&&(r[s]=n[s]);else r=n;return n=r.ref,{$$typeof:e,type:t,key:o,ref:void 0!==n?n:null,props:r}}return dr.Fragment=t,dr.jsx=n,dr.jsxs=n,dr}():pr.exports=hr()),pr.exports);const yr=t.forwardRef(((e,t)=>{const{children:n,elementType:r="section",open:o,toggle:s,...i}=e,a=r,{classProps:l}=or(),{styleProps:c,props:p}=en(i),d=Ot(a,{classProps:l.root,styleProps:c}),u={open:o,toggle:s};return gr.jsx(a,{...p,...d,ref:t,children:gr.jsx(ir,{value:u,children:n})})}));yr.spiritComponent="Accordion",yr.displayName="Accordion";const br=t.createContext({id:""}),vr=br.Provider;br.Consumer;const xr=()=>t.useContext(br),Tr=t.forwardRef(((e,t)=>{const{children:n,elementType:r="article",id:o,...s}=e,i=r,{classProps:a}=or(),{styleProps:l,props:c}=en(s),p=Ot(i,{classProps:a.item,styleProps:l}),d={id:o};return gr.jsx(i,{...c,id:o,...p,ref:t,children:gr.jsx(vr,{value:d,children:n})})}));Tr.spiritComponent="AccordionItem",Tr.displayName="AccordionItem";const Pr=(e,t)=>{const n={};return"object"==typeof t?Object.entries(t).forEach((([t,r])=>{n[`${e}${"mobile"===t?"":`-${t}`}`]=void 0===r?void 0:Dt(r)})):n[e]=Dt(t),n},Sr=e=>{const{boxSize:t,color:n,name:r,...o}=e,s=`--${P}icon`,i=String(r).includes("-dualtone")&&!n?B.PRIMARY:n,a=pn("Icon"),l=`${a}--${i}`;return{classProps:g(a,{[l]:n||i}),iconStyleProps:{...t?Pr(`${s}-size`,t):{}},props:o}},Er={ariaHidden:!0,boxSize:24},Cr=t.forwardRef(((e,t)=>{const n={...Er,...e},{boxSize:r,name:o,title:s,ariaHidden:i,...a}=n;let l=On(o);const c=(e=>"object"==typeof e?e.mobile??24:e??24)(r),{classProps:p,iconStyleProps:d,props:u}=Sr({boxSize:r,name:o,...a}),{styleProps:m,props:f}=en(u),h=Ot("svg",{classProps:p,iconStyleProps:d,styleProps:m});return s&&(l=`<title>${s}</title>${l}`),gr.jsx("svg",{...f,...h,viewBox:"0 0 24 24",fill:"none",width:c,height:c,"aria-hidden":i,ref:t,children:kt(l)})}));Cr.spiritComponent="Icon",Cr.displayName="Icon";const Nr={elementType:"h3"},wr=t.forwardRef(((e,t)=>{const n={...Nr,...e},{elementType:r="h3",children:o,slot:s,...i}=n,a=r,{classProps:l}=or(),{toggle:c}=ar(),{id:d}=xr(),{styleProps:u,props:m}=en(i),{isOpen:f}=lr(d),{triggerProps:h,headerProps:g}=p({id:d,isOpen:f}),y=Ot(a,{classProps:l.header,styleProps:u});return gr.jsxs(a,{...m,...y,...g,ref:t,children:[gr.jsx("button",{type:"button",className:l.toggle,onClick:()=>{c&&d&&c(d)},...h,children:o}),gr.jsxs("span",{className:l.side,children:[s&&gr.jsx("span",{className:l.slot,children:s}),gr.jsx("span",{className:l.icon,children:gr.jsx(Cr,{name:"chevron-down"})})]})]})}));function Ar(e,t){return(Ar=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}wr.spiritComponent="AccordionHeader",wr.displayName="AccordionHeader";var _r,Rr={exports:{}},kr={exports:{}},Or={};var $r,jr,Dr,Lr,Ir,Mr,Fr,Br,Ur,Hr,zr,Vr,Wr,Gr,qr,Xr={};function Yr(){return jr||(jr=1,"production"===process.env.NODE_ENV?kr.exports=function(){if(_r)return Or;_r=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,u=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function v(e){if("object"==typeof e&&null!==e){var u=e.$$typeof;switch(u){case t:switch(e=e.type){case l:case c:case r:case s:case o:case d:return e;default:switch(e=e&&e.$$typeof){case a:case p:case f:case m:case i:return e;default:return u}}case n:return u}}}function x(e){return v(e)===c}return Or.AsyncMode=l,Or.ConcurrentMode=c,Or.ContextConsumer=a,Or.ContextProvider=i,Or.Element=t,Or.ForwardRef=p,Or.Fragment=r,Or.Lazy=f,Or.Memo=m,Or.Portal=n,Or.Profiler=s,Or.StrictMode=o,Or.Suspense=d,Or.isAsyncMode=function(e){return x(e)||v(e)===l},Or.isConcurrentMode=x,Or.isContextConsumer=function(e){return v(e)===a},Or.isContextProvider=function(e){return v(e)===i},Or.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Or.isForwardRef=function(e){return v(e)===p},Or.isFragment=function(e){return v(e)===r},Or.isLazy=function(e){return v(e)===f},Or.isMemo=function(e){return v(e)===m},Or.isPortal=function(e){return v(e)===n},Or.isProfiler=function(e){return v(e)===s},Or.isStrictMode=function(e){return v(e)===o},Or.isSuspense=function(e){return v(e)===d},Or.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===s||e===o||e===d||e===u||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===m||e.$$typeof===i||e.$$typeof===a||e.$$typeof===p||e.$$typeof===g||e.$$typeof===y||e.$$typeof===b||e.$$typeof===h)},Or.typeOf=v,Or}():kr.exports=($r||($r=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,u=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function v(e){if("object"==typeof e&&null!==e){var u=e.$$typeof;switch(u){case t:var h=e.type;switch(h){case l:case c:case r:case s:case o:case d:return h;default:var g=h&&h.$$typeof;switch(g){case a:case p:case f:case m:case i:return g;default:return u}}case n:return u}}}var x=l,T=c,P=a,S=i,E=t,C=p,N=r,w=f,A=m,_=n,R=s,k=o,O=d,$=!1;function j(e){return v(e)===c}Xr.AsyncMode=x,Xr.ConcurrentMode=T,Xr.ContextConsumer=P,Xr.ContextProvider=S,Xr.Element=E,Xr.ForwardRef=C,Xr.Fragment=N,Xr.Lazy=w,Xr.Memo=A,Xr.Portal=_,Xr.Profiler=R,Xr.StrictMode=k,Xr.Suspense=O,Xr.isAsyncMode=function(e){return $||($=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),j(e)||v(e)===l},Xr.isConcurrentMode=j,Xr.isContextConsumer=function(e){return v(e)===a},Xr.isContextProvider=function(e){return v(e)===i},Xr.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Xr.isForwardRef=function(e){return v(e)===p},Xr.isFragment=function(e){return v(e)===r},Xr.isLazy=function(e){return v(e)===f},Xr.isMemo=function(e){return v(e)===m},Xr.isPortal=function(e){return v(e)===n},Xr.isProfiler=function(e){return v(e)===s},Xr.isStrictMode=function(e){return v(e)===o},Xr.isSuspense=function(e){return v(e)===d},Xr.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===s||e===o||e===d||e===u||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===m||e.$$typeof===i||e.$$typeof===a||e.$$typeof===p||e.$$typeof===g||e.$$typeof===y||e.$$typeof===b||e.$$typeof===h)},Xr.typeOf=v}()),Xr)),kr.exports}function Kr(){if(Lr)return Dr;Lr=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return Dr=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(r,o){for(var s,i,a=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(r),l=1;l<arguments.length;l++){for(var c in s=Object(arguments[l]))t.call(s,c)&&(a[c]=s[c]);if(e){i=e(s);for(var p=0;p<i.length;p++)n.call(s,i[p])&&(a[i[p]]=s[i[p]])}}return a},Dr}function Qr(){if(Mr)return Ir;Mr=1;return Ir="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Zr(){return Br?Fr:(Br=1,Fr=Function.call.bind(Object.prototype.hasOwnProperty))}function Jr(){if(Hr)return Ur;Hr=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=Qr(),n={},r=Zr();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function o(o,s,i,a,l){if("production"!==process.env.NODE_ENV)for(var c in o)if(r(o,c)){var p;try{if("function"!=typeof o[c]){var d=Error((a||"React class")+": "+i+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}p=o[c](s,c,a,i,null,t)}catch(e){p=e}if(!p||p instanceof Error||e((a||"React class")+": type specification of "+i+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in n)){n[p.message]=!0;var u=l?l():"";e("Failed "+i+" type: "+p.message+(null!=u?u:""))}}}return o.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},Ur=o}function eo(){if(Vr)return zr;Vr=1;var e=Yr(),t=Kr(),n=Qr(),r=Zr(),o=Jr(),s=function(){};function i(){return null}return"production"!==process.env.NODE_ENV&&(s=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),zr=function(a,l){var c="function"==typeof Symbol&&Symbol.iterator;var p="<<anonymous>>",d={array:h("array"),bigint:h("bigint"),bool:h("boolean"),func:h("function"),number:h("number"),object:h("object"),string:h("string"),symbol:h("symbol"),any:f(i),arrayOf:function(e){return f((function(t,r,o,s,i){if("function"!=typeof e)return new m("Property `"+i+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var a=t[r];if(!Array.isArray(a))return new m("Invalid "+s+" `"+i+"` of type `"+b(a)+"` supplied to `"+o+"`, expected an array.");for(var l=0;l<a.length;l++){var c=e(a,l,o,s,i+"["+l+"]",n);if(c instanceof Error)return c}return null}))},element:f((function(e,t,n,r,o){var s=e[t];return a(s)?null:new m("Invalid "+r+" `"+o+"` of type `"+b(s)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:f((function(t,n,r,o,s){var i=t[n];return e.isValidElementType(i)?null:new m("Invalid "+o+" `"+s+"` of type `"+b(i)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(e){return f((function(t,n,r,o,s){if(!(t[n]instanceof e)){var i=e.name||p;return new m("Invalid "+o+" `"+s+"` of type `"+(((a=t[n]).constructor&&a.constructor.name?a.constructor.name:p)+"` supplied to `")+r+"`, expected instance of `"+i+"`.")}var a;return null}))},node:f((function(e,t,n,r,o){return y(e[t])?null:new m("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return f((function(t,o,s,i,a){if("function"!=typeof e)return new m("Property `"+a+"` of component `"+s+"` has invalid PropType notation inside objectOf.");var l=t[o],c=b(l);if("object"!==c)return new m("Invalid "+i+" `"+a+"` of type `"+c+"` supplied to `"+s+"`, expected an object.");for(var p in l)if(r(l,p)){var d=e(l,p,s,i,a+"."+p,n);if(d instanceof Error)return d}return null}))},oneOf:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&s(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),i;return f((function(t,n,r,o,s){for(var i=t[n],a=0;a<e.length;a++)if(u(i,e[a]))return null;var l=JSON.stringify(e,(function(e,t){return"symbol"===v(t)?String(t):t}));return new m("Invalid "+o+" `"+s+"` of value `"+String(i)+"` supplied to `"+r+"`, expected one of "+l+".")}))},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&s("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var t=0;t<e.length;t++){var o=e[t];if("function"!=typeof o)return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+x(o)+" at index "+t+"."),i}return f((function(t,o,s,i,a){for(var l=[],c=0;c<e.length;c++){var p=(0,e[c])(t,o,s,i,a,n);if(null==p)return null;p.data&&r(p.data,"expectedType")&&l.push(p.data.expectedType)}return new m("Invalid "+i+" `"+a+"` supplied to `"+s+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")}))},shape:function(e){return f((function(t,r,o,s,i){var a=t[r],l=b(a);if("object"!==l)return new m("Invalid "+s+" `"+i+"` of type `"+l+"` supplied to `"+o+"`, expected `object`.");for(var c in e){var p=e[c];if("function"!=typeof p)return g(o,s,i,c,v(p));var d=p(a,c,o,s,i+"."+c,n);if(d)return d}return null}))},exact:function(e){return f((function(o,s,i,a,l){var c=o[s],p=b(c);if("object"!==p)return new m("Invalid "+a+" `"+l+"` of type `"+p+"` supplied to `"+i+"`, expected `object`.");var d=t({},o[s],e);for(var u in d){var f=e[u];if(r(e,u)&&"function"!=typeof f)return g(i,a,l,u,v(f));if(!f)return new m("Invalid "+a+" `"+l+"` key `"+u+"` supplied to `"+i+"`.\nBad object: "+JSON.stringify(o[s],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var h=f(c,u,i,a,l+"."+u,n);if(h)return h}return null}))}};function u(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function m(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function f(e){if("production"!==process.env.NODE_ENV)var t={},r=0;function o(o,i,a,c,d,u,f){if(c=c||p,u=u||a,f!==n){if(l){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var g=c+":"+a;!t[g]&&r<3&&(s("You are manually calling a React.PropTypes validation function for the `"+u+"` prop on `"+c+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[g]=!0,r++)}}return null==i[a]?o?null===i[a]?new m("The "+d+" `"+u+"` is marked as required in `"+c+"`, but its value is `null`."):new m("The "+d+" `"+u+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(i,a,c,d,u)}var i=o.bind(null,!1);return i.isRequired=o.bind(null,!0),i}function h(e){return f((function(t,n,r,o,s,i){var a=t[n];return b(a)!==e?new m("Invalid "+o+" `"+s+"` of type `"+v(a)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null}))}function g(e,t,n,r,o){return new m((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function y(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(y);if(null===e||a(e))return!0;var t=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!y(n.value))return!1}else for(;!(n=r.next()).done;){var o=n.value;if(o&&!y(o[1]))return!1}return!0;default:return!1}}function b(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function v(e){if(null==e)return""+e;var t=b(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function x(e){var t=v(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return m.prototype=Error.prototype,d.checkPropTypes=o,d.resetWarningCache=o.resetWarningCache,d.PropTypes=d,d},zr}function to(){if(Gr)return Wr;Gr=1;var e=Qr();function t(){}function n(){}return n.resetWarningCache=t,Wr=function(){function r(t,n,r,o,s,i){if(i!==e){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function o(){return r}r.isRequired=r;var s={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return s.PropTypes=s,s}}function no(){if(qr)return Rr.exports;if(qr=1,"production"!==process.env.NODE_ENV){var e=Yr();Rr.exports=eo()(e.isElement,true)}else Rr.exports=to()();return Rr.exports}const ro=d(no()),oo=!1;var so="production"!==process.env.NODE_ENV?ro.oneOfType([ro.number,ro.shape({enter:ro.number,exit:ro.number,appear:ro.number}).isRequired]):null;"production"!==process.env.NODE_ENV&&ro.oneOfType([ro.string,ro.shape({enter:ro.string,exit:ro.string,active:ro.string}),ro.shape({enter:ro.string,enterDone:ro.string,enterActive:ro.string,exit:ro.string,exitDone:ro.string,exitActive:ro.string})]);const io=t.createContext(null);var ao="unmounted",lo="exited",co="entering",po="entered",uo="exiting",mo=function(e){var r,o;function s(t,n){var r;r=e.call(this,t,n)||this;var o,s=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?s?(o=lo,r.appearStatus=co):o=po:o=t.unmountOnExit||t.mountOnEnter?ao:lo,r.state={status:o},r.nextCallback=null,r}o=e,(r=s).prototype=Object.create(o.prototype),r.prototype.constructor=r,Ar(r,o),s.getDerivedStateFromProps=function(e,t){return e.in&&t.status===ao?{status:lo}:null};var i=s.prototype;return i.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},i.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==co&&n!==po&&(t=co):n!==co&&n!==po||(t=uo)}this.updateStatus(!1,t)},i.componentWillUnmount=function(){this.cancelNextCallback()},i.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},i.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===co){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:n.findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===lo&&this.setState({status:ao})},i.performEnter=function(e){var t=this,r=this.props.enter,o=this.context?this.context.isMounting:e,s=this.props.nodeRef?[o]:[n.findDOMNode(this),o],i=s[0],a=s[1],l=this.getTimeouts(),c=o?l.appear:l.enter;!e&&!r||oo?this.safeSetState({status:po},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:co},(function(){t.props.onEntering(i,a),t.onTransitionEnd(c,(function(){t.safeSetState({status:po},(function(){t.props.onEntered(i,a)}))}))})))},i.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),o=this.props.nodeRef?void 0:n.findDOMNode(this);t&&!oo?(this.props.onExit(o),this.safeSetState({status:uo},(function(){e.props.onExiting(o),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:lo},(function(){e.props.onExited(o)}))}))}))):this.safeSetState({status:lo},(function(){e.props.onExited(o)}))},i.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},i.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},i.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},i.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:n.findDOMNode(this),o=null==e&&!this.props.addEndListener;if(r&&!o){if(this.props.addEndListener){var s=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],i=s[0],a=s[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},i.render=function(){var e=this.state.status;if(e===ao)return null;var n=this.props,r=n.children;n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef;var o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return t.createElement(io.Provider,{value:null},"function"==typeof r?r(e,o):t.cloneElement(t.Children.only(r),o))},s}(t.Component);function fo(){}mo.contextType=io,mo.propTypes="production"!==process.env.NODE_ENV?{nodeRef:ro.shape({current:"undefined"==typeof Element?ro.any:function(e,t,n,r,o,s){var i=e[t];return ro.instanceOf(i&&"ownerDocument"in i?i.ownerDocument.defaultView.Element:Element)(e,t,n,r,o,s)}}),children:ro.oneOfType([ro.func.isRequired,ro.element.isRequired]).isRequired,in:ro.bool,mountOnEnter:ro.bool,unmountOnExit:ro.bool,appear:ro.bool,enter:ro.bool,exit:ro.bool,timeout:function(e){var t=so;e.addEndListener||(t=t.isRequired);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.apply(void 0,[e].concat(r))},addEndListener:ro.func,onEnter:ro.func,onEntering:ro.func,onEntered:ro.func,onExit:ro.func,onExiting:ro.func,onExited:ro.func}:{},mo.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:fo,onEntering:fo,onEntered:fo,onExit:fo,onExiting:fo,onExited:fo},mo.UNMOUNTED=ao,mo.EXITED=lo,mo.ENTERING=co,mo.ENTERED=po,mo.EXITING=uo;const ho="aria-expanded",go="aria-controls",yo="data-spirit-breakpoint",bo=e=>{const{isOpen:t,collapsibleToBreakpoint:n,...r}=e;return hn({method:"custom",trigger:!r.id,componentName:"Collapse",customText:'The "id" property will be required instead of optional starting from the next major version.'}),{ariaProps:{root:{[yo]:n},trigger:{[ho]:t,[go]:String(r.id)}},props:r}},vo=(e,t,n)=>{const r=pn("Collapse"),o=`${r}__content`,s="span"===t?{}:{height:e?n:0};return{classProps:{root:g(r,e?v:""),content:o},styleProps:s}},xo=250,To={entering:"is-transitioning",entered:"",exiting:"is-transitioning",exited:""},Po={elementType:"div",isOpen:!1,collapsibleToBreakpoint:void 0,transitionDuration:xo},So=e=>{const n={...Po,...e},{elementType:r,children:o,transitionDuration:s=xo,...i}=n,a=r,l=t.useRef(null),c=t.useRef(null),p=(e=>{const[n,r]=t.useState(void 0);return Hn({ref:e,onResize:e=>{const t=e.height;r(`${t}px`)}}),n})(c),{classProps:d,styleProps:u}=vo(i.isOpen,a,p),{ariaProps:m,props:f}=bo(i),{styleProps:h,props:g}=en(f),y={className:h.className,style:{...u,...h.style}};return"span"===a&&i.isOpen?o:gr.jsx(mo,{in:i.isOpen,nodeRef:l,timeout:s,children:e=>gr.jsx(a,{...g,...m.root,...Ot(a,{classProps:d.root,styleProps:h,collapseStyleProps:y,transitioningStyles:To[e]}),ref:l,children:gr.jsx(a,{ref:c,className:d.content,children:o})})})};So.spiritComponent="Collapse",So.displayName="Collapse";const Eo=e=>{const[n,r]=t.useState(e);return{toggleHandler:e=>{e.preventDefault(),r(!n)},toggle:r,isOpen:n}},Co={isOpen:!1},No=e=>{const t={...Co,...e},{children:n,hideOnCollapse:r,isDisposable:o,renderTrigger:s,...i}=t,{isOpen:a,toggleHandler:l}=Eo(i.isOpen),{ariaProps:c}=bo({...i,isOpen:a}),p=r||o;return gr.jsxs(gr.Fragment,{children:[!s||p&&p&&a?null:s({isOpen:a,onClick:l,...c.trigger}),p&&a?n:gr.jsx(So,{...i,isOpen:a,children:n})]})};No.spiritComponent="UncontrolledCollapse";const wo=({children:e,...t})=>{const{classProps:n}=or(),{id:r}=xr(),{styleProps:o,props:s}=en(t),{isOpen:i}=lr(r),{contentProps:a}=p({id:r,isOpen:i});return gr.jsx(So,{isOpen:i,...a,children:gr.jsx("div",{...s,...o,className:g(n.content,o.className),children:e})})};wo.spiritComponent="AccordionContent";const Ao=e=>{const{defaultOpen:t,stayOpen:n,...r}=e,{open:o,toggle:s}=i({defaultOpen:t,stayOpen:n});return gr.jsx(yr,{...r,open:o,toggle:s})};function _o(e){const{alignmentX:t,alignmentY:n,direction:r,spacing:o,spacingX:s,spacingY:i,isWrapping:a,...l}=e;hn({method:"custom",trigger:"row"===r||"column"===r,componentName:"Flex",customText:"Direction values `row` and `column` are deprecated and will be removed in the next major release. Use `horizontal` and `vertical` values instead."});const c=pn("Flex"),p={...Qn(o,"flex",J.X),...Qn(o,"flex",J.Y),...Qn(s,"flex",J.X),...Qn(i,"flex",J.Y)},d=Xt(c,Vt(r));return{classProps:g(c,rr(c,a),{[tn(c,t,"alignmentX")]:t,[tn(c,n,"alignmentY")]:n,[d]:r}),props:l,styleProps:p}}Ao.spiritComponent="UncontrolledAccordion",Ao.displayName="UncontrolledAccordion";const Ro={alignmentX:R.STRETCH,alignmentY:O.STRETCH,direction:Z.HORIZONTAL,elementType:"div",isWrapping:!1},ko=t.forwardRef(((e,t)=>{const n={...Ro,...e},{elementType:r=Ro.elementType,direction:o,children:s,...i}=n,a=r,{classProps:l,props:c,styleProps:p}=_o({direction:o,...i}),{styleProps:d,props:u}=en({...c}),m=Ot(a,{classProps:l,flexStyle:p,styleProps:d,otherProps:u});return gr.jsx(a,{...u,...m,ref:t,children:s})}));ko.spiritComponent="Flex",ko.displayName="Flex";const Oo={alignmentX:{mobile:R.STRETCH,tablet:R.LEFT},direction:{mobile:Z.VERTICAL,tablet:Z.HORIZONTAL}},$o=e=>{const{children:t,...n}=e,r={...Oo,...n};return gr.jsx(ko,{...r,children:t})};function jo(e){const{color:t,isCentered:n,...r}=e,o=pn("Alert"),s=`${o}--${t}`,i=`${o}--center`;return{classProps:g(o,{[s]:t,[i]:n}),props:r}}$o.spiritComponent="ActionGroup";const Do={color:"success",isCentered:!1,elementType:"div"},Lo=t.forwardRef(((e,t)=>{const n={...Do,...e},{elementType:r,children:o,color:s,iconName:i,...a}=n,l=r,{classProps:c,props:p}=jo({color:s,...a}),{styleProps:d,props:u}=en(p),m=Ot(l,{classProps:c,styleProps:d,otherProps:u}),f=function({color:e,iconName:t}){const n=$n(e,{default:"info",success:"check-plain",informative:"info",warning:"warning",danger:"danger"});return t||n}({color:s,iconName:i,...u});return gr.jsxs(l,{...u,...m,ref:t,children:[gr.jsx(Cr,{name:f}),gr.jsx("div",{children:o})]})}));Lo.spiritComponent="Alert",Lo.displayName="Alert";const Io=e=>{const{isSquare:t,size:n,...r}=e,o=pn("Avatar"),s=`${o}--square`,i=Mt(o,n);return{classProps:g(o,...i,{[s]:t}),props:r}},Mo={elementType:"div",isSquare:!1,size:W.MEDIUM},Fo=t.forwardRef(((e,t)=>{const n={...Mo,...e},{elementType:r=Mo.elementType,children:o,...s}=n,i=r,{classProps:a,props:l}=Io(s),{styleProps:c,props:p}=en(l),d=Ot(i,{classProps:a,styleProps:c});return gr.jsx(i,{...p,...d,ref:t,children:o})}));Fo.spiritComponent="Avatar",Fo.displayName="Avatar";const Bo=e=>{const{backgroundColor:t,borderColor:n,borderStyle:r,borderWidth:o,textColor:s,...i}=e||{},a=pn(`bg-${t}`),l=pn("border-"),c=t?a:"";let p=n?n.replace("",l):"",d="";const u=o?o.replace("",l):"",m=pn(s?`text-${s}`:"");o&&parseInt(o,10)>0&&(d=`${l}${r}`,n||(p=`${l}${$.BASIC}`));return{classProps:g(c,p,d,u,{[m]:!!s}),props:i}},Uo={elementType:"div",borderStyle:D.SOLID},Ho=t.forwardRef(((e,t)=>{const n={...Uo,...e},{elementType:r=Uo.elementType,children:o,...s}=n,i=r,{classProps:a,props:l}=Bo(s),{styleProps:c,props:p}=en(l,{...ie,...ae,...ce}),d=Ot(i,{classProps:a,styleProps:c});return gr.jsx(i,{...p,...d,ref:t,children:o})}));function zo(e){const{color:t,hasVisitedStyleAllowed:n,isDisabled:r,underlined:o,...s}=e,i=pn("link"),a=`${i}-disabled`,l=`${i}-underlined`,c=`${i}-not-underlined`,p=`${i}-allow-visited-style`;return{classProps:g(`${i}-${t}`,{[a]:r,[l]:o===Pe.ALWAYS,[c]:o===Pe.NEVER,[p]:n}),props:s}}Ho.spiritComponent="Box",Ho.displayName="Box";const Vo={elementType:"a",color:"primary",hasVisitedStyleAllowed:!1,underlined:"hover"},Wo=t.forwardRef(((e,t)=>{const n={...Vo,...e},{elementType:r=Vo.elementType,children:o,routerOptions:s,...i}=n,a=r,{classProps:l,props:c}=zo(i),{styleProps:p,props:d}=en(c),u=Ot(a,{classProps:l,styleProps:p,otherProps:d}),m=Fn({...i,routerOptions:s});return gr.jsx(a,{...d,...u,onClick:m,ref:t,children:o})}));Wo.spiritComponent="Link",Wo.displayName="Link";function Go(e){const{isGoBackOnly:t,...n}=e,r=pn("Breadcrumbs"),o=pn("d-none"),s=pn("d-tablet-flex"),i=pn("d-tablet-none");return{classProps:{root:r,item:g({[o]:!t,[s]:!t,[i]:t})},props:n}}const qo={iconNameEnd:"chevron-right",iconNameStart:"chevron-left",isCurrent:!1,isGoBackOnly:!1},Xo=e=>{const t={...qo,...e},{children:n,href:r,isCurrent:o,iconNameStart:s,iconNameEnd:i,...a}=t,{classProps:l,props:c}=Go({...a}),{styleProps:p,props:d}=en(c);return gr.jsxs("li",{...d,...p,className:g(l.item,p.className),children:[a.isGoBackOnly&&s&&gr.jsx(Cr,{name:s}),!r&&o?n:gr.jsx(Wo,{href:r,color:o?"secondary":"primary",underlined:o?"hover":"always","aria-current":o?"page":void 0,children:n}),!o&&!a.isGoBackOnly&&i&&gr.jsx(Cr,{name:i})]})};Xo.spiritComponent="BreadcrumbsItem";const Yo={elementType:"nav",items:[]},Ko=e=>{const n={...Yo,...e},{children:r,elementType:o,goBackTitle:s,items:i,...a}=n,l=o,{classProps:c,props:p}=Go({...a}),{styleProps:d,props:u}=en(p),m=Ot(l,{classProps:c.root,styleProps:d}),f=(e,t)=>e===t-1;return gr.jsx(l,{...u,...m,"aria-label":"Breadcrumb",children:gr.jsx("ol",{children:r||i?.map(((e,n)=>gr.jsxs(t.Fragment,{children:[n===i.length-2&&s&&gr.jsx(Xo,{href:e.url||void 0,isGoBackOnly:!0,children:s}),gr.jsx(Xo,{href:e.url||void 0,isCurrent:f(n,i?.length),children:e.title})]},`BreadcrumbsItem_${e.title}`)))})})};Ko.spiritComponent="Breadcrumbs",Ko.displayName="Breadcrumbs";const Qo=e=>{const{isDisabled:t,isLoading:n,onClick:r,type:o="button"}=e;return{buttonProps:{...{type:o,disabled:t||n},onClick:dn(t,r)}}};function Zo(e){const{color:t,isBlock:n,isDisabled:r,isLoading:o,isSymmetrical:s,size:i,...a}=e;hn({method:"custom",trigger:!!n,componentName:"Button",customText:"The `isBlock` property will be deleted in the next major release. Please read component's documentation for more information."});const l=pn("Button"),c=`${l}--block`,p=`${l}--disabled`,d=`${l}--loading`,{isSymmetricalActive:u,symmetricalClassName:m}=Jn(l,s);n&&u&&b(0,"isBlock and isSymmetrical props are mutually exclusive");const f=g(l,((e,t)=>Me(De(t))(e))(l,t),((e,t)=>Me(Le(t))(e))(l,i),{[c]:n&&!u,[p]:r||o,[d]:o},m);return{classProps:f,props:a}}const Jo=t.createContext(null),es=({value:e,children:n})=>{const r=t.useContext(Jo),o=r?{...r,...e}:e;return t.createElement(Jo.Provider,{value:o},n)},ts=Jo.Consumer,ns=(e={})=>{const n=t.useContext(Jo);return n?{...e,...n}:e};function rs(e){const{color:t,...n}=e,r=pn("text"),o=t?`${r}-${t}`:"",s=pn("animation-spin-clockwise");return{classProps:g(o,s),props:n}}const os=e=>{const{classProps:t,props:n}=rs(e),{styleProps:r,props:o}=en(n);return gr.jsx(Cr,{...o,name:"spinner",UNSAFE_className:g(t,r.className),UNSAFE_style:r.style})};os.spiritComponent="Spinner";const ss={color:"primary",isBlock:!1,isDisabled:!1,isLoading:!1,isSymmetrical:!1,size:"medium",type:"button",elementType:"button"},is=t.forwardRef(((e,t)=>{const{elementType:n}=e,r=ns(e),{elementType:o,children:s,...i}=r,a=n??o??ss.elementType,l={...ss,...i},{elementType:c,...p}=l,d=a,{buttonProps:u}=Qo(p),{classProps:m,props:f}=Zo(p),{styleProps:h,props:g}=en(f),y=Ot(d,{classProps:m,styleProps:h,otherProps:g});return gr.jsxs(d,{...g,...u,ref:t,...y,children:[s,p.isLoading&&gr.jsx(os,{})]})}));is.spiritComponent="Button",is.displayName="Button";const as=e=>{const{elementType:t,isDisabled:n,isLoading:r,onClick:o,href:s,target:i,rel:a}=e;return{buttonLinkProps:{...{role:"button",href:"a"===t&&n?void 0:s,target:"a"===t?i:void 0,disabled:n||r,rel:"a"===t?a:void 0},onClick:dn(n,o)}}};function ls(e){const{color:t,isBlock:n,isDisabled:r,isLoading:o,isSymmetrical:s,size:i,...a}=e;hn({method:"custom",trigger:!!n,componentName:"ButtonLink",customText:"The `isBlock` property will be deleted in the next major release. Please read component's documentation for more information."});const l=pn("Button"),c=`${l}--block`,p=`${l}--disabled`,d=`${l}--loading`,{isSymmetricalActive:u,symmetricalClassName:m}=Jn(l,s);n&&u&&b(0,"isBlock and isSymmetrical props are mutually exclusive");const f=g(l,((e,t)=>Me(De(t))(e))(l,t),((e,t)=>Me(Le(t))(e))(l,i),{[c]:n&&!u,[p]:r||o,[d]:o},m);return{classProps:f,props:a}}const cs={color:"primary",elementType:"a",isBlock:!1,isDisabled:!1,isLoading:!1,isSymmetrical:!1,size:"medium"},ps=t.forwardRef(((e,t)=>{const n={...cs,...e},{elementType:r=cs.elementType,children:o,routerOptions:s,...i}=n,a=r,{buttonLinkProps:l}=as(n),{classProps:c,props:p}=ls(i),{styleProps:d,props:u}=en(p),m=Ot(a,{classProps:c,styleProps:d,otherProps:u}),f=Fn({...i,routerOptions:s,onClick:l.onClick});return gr.jsxs(a,{...u,...l,...m,onClick:f,ref:t,children:[o,i.isLoading&&gr.jsx(os,{})]})}));function ds(e){const{alignmentY:t,artworkAlignmentX:n,direction:r,footerAlignmentX:o,hasFilledHeight:s,isBoxed:i,isExpanded:a,isHeading:l,isSelectable:c,size:p}=e||{},d=pn("Card"),u=`${d}Artwork`,m=`${d}Body`,f=`${d}Eyebrow`,h=`${d}Footer`,y=`${d}Link`,b=`${d}Logo`,v=`${d}Media`,x=`${d}Title`,T=`${m}--selectable`,P=`${d}--boxed`,S=`${v}__canvas`,E=`${v}--filledHeight`,C=`${v}--expanded`,N=p?`${v}--${p}`:"",w=`${x}--heading`;return{classProps:{artwork:g(u,{[tn(u,n,"alignmentX")]:n}),body:g(m,{[T]:c}),eyebrow:f,footer:g(h,{[tn(h,o,"alignmentX")]:o}),link:y,logo:b,media:g(v,N,{[C]:a,[E]:s}),mediaCanvas:S,root:g(d,{[tn(d,t,"alignmentY")]:t,[Xt(d,Vt(r))]:r,[P]:i}),title:g(x,{[w]:l})}}}ps.spiritComponent="ButtonLink",ps.displayName="ButtonLink";const us={direction:Z.VERTICAL,elementType:"article",isBoxed:!1},ms=e=>{const t={...us,...e},{elementType:n,alignmentY:r,direction:o,isBoxed:s,children:i,...a}=t,l=n,{classProps:c}=ds({alignmentY:r,direction:o,isBoxed:s}),{styleProps:p,props:d}=en(a),u=Ot(l,{classProps:c.root,styleProps:p,otherProps:d});return gr.jsx(l,{...d,...u,children:i})};ms.spiritComponent="Card",ms.displayName="Card";const fs={alignmentX:_.LEFT},hs=e=>{const t={...fs,...e},{children:n,alignmentX:r,...o}=t,{classProps:s}=ds({artworkAlignmentX:r}),{styleProps:i,props:a}=en(o);return gr.jsx("div",{...a,className:g(s.artwork,i.className),style:i.style,children:n})};hs.spiritComponent="CardArtwork";const gs={isSelectable:!1},ys=e=>{const t={...gs,...e},{children:n,isSelectable:r,...o}=t,{classProps:s}=ds({isSelectable:r}),{styleProps:i,props:a}=en(o);return gr.jsx("div",{...a,className:g(s.body,i.className),style:i.style,children:n})};ys.spiritComponent="CardBody";const bs=e=>{const{children:t,...n}=e,{classProps:r}=ds(),{styleProps:o,props:s}=en(n);return gr.jsx("div",{...s,className:g(r.eyebrow,o.className),style:o.style,children:t})};bs.spiritComponent="CardEyebrow";const vs={alignmentX:_.LEFT},xs=e=>{const t={...vs,...e},{children:n,alignmentX:r,...o}=t,{classProps:s}=ds({footerAlignmentX:r}),{styleProps:i,props:a}=en(o);return gr.jsx("footer",{...a,className:g(s.footer,i.className),style:i.style,children:n})};xs.spiritComponent="CardFooter";const Ts={elementType:"a"},Ps=t.forwardRef(((e,t)=>{const n={...Ts,...e},{elementType:r,children:o,href:s,...i}=n,a=r,{classProps:l}=ds(),{styleProps:c,props:p}=en(i),d=Ot(a,{classProps:l.link,styleProps:c,otherProps:p});return gr.jsx(a,{...p,...c,...d,href:s,ref:t,children:o})}));Ps.spiritComponent="CardLink",Ps.displayName="CardLink";const Ss=e=>{const{children:t,...n}=e,{classProps:r}=ds(),{styleProps:o,props:s}=en(n);return gr.jsx("div",{...s,className:g(r.logo,o.className),style:{...o.style},children:t})};Ss.spiritComponent="CardLogo";const Es={fit:ne.COVER,hasFilledHeight:!1,isExpanded:!1,size:be.AUTO},Cs=e=>{const t={...Es,...e},{backgroundColor:n,children:r,fit:o,hasFilledHeight:s,isExpanded:i,size:a,...l}=t,{classProps:c}=ds({size:a,isExpanded:i,hasFilledHeight:s}),{classProps:p,styleProps:d}=(e=>{const{backgroundColor:t,fit:n}=e||{},r=pn(`bg-${t}`);return{classProps:t?r:"",styleProps:n?{[`--${P}card-media-object-fit`]:n}:{}}})({backgroundColor:n,fit:o}),{styleProps:u,props:m}=en(l,{...ie}),f=Ot("div",{classProps:g(c.media,p,u.className),styleProps:{...d,...u}});return gr.jsx("div",{...m,...f,children:gr.jsx("div",{className:c.mediaCanvas,children:r})})};Cs.spiritComponent="CardMedia";const Ns={elementType:"h4",isHeading:!0},ws=e=>{const t={...Ns,...e},{elementType:n,children:r,isHeading:o,...s}=t,i=n,{classProps:a}=ds({isHeading:o}),{styleProps:l,props:c}=en(s),p=Ot(i,{classProps:a.title,styleProps:l,otherProps:c});return gr.jsx(i,{...c,...p,children:r})};ws.spiritComponent="CardTitle",ws.displayName="CardTitle";const As={elementType:"span"},_s=e=>{const t={...As,...e},{children:n,elementType:r,...o}=t,s=r,{classProps:i,props:a}=function(e){const{...t}=e;return{classProps:pn("accessibility-hidden"),props:t}}(o),{styleProps:l,props:c}=en(a),p=Ot(s,{classProps:i,styleProps:l,otherProps:c});return gr.jsx(s,{...c,...p,children:n})};_s.spiritComponent="VisuallyHidden",_s.displayName="VisuallyHidden";const Rs=e=>{const{value:n,defaultValue:r,counterThreshold:o,hasCounter:s,onChange:i}=e,a=void 0!==n;mn({componentName:"useCharacterCounterState",value:n,defaultValue:r});const[l,c]=t.useState((()=>a?n.length:r?.length??0)),p=a?n.length:l,d=!0===s||void 0!==o,u=t.useCallback((e=>{!a&&d&&c(e.target.value.length),i?.(e)}),[a,d,i]);return{counterProps:d?{counterThreshold:o,currentLength:p,hasCounter:s}:void 0,handleChange:u}},ks=e=>{const{counterThreshold:n,currentLength:r,hasCounter:o,id:s,registerAria:i,...a}=e,{styleProps:l,props:c}=en(a),{t:p}=An(),d=!0===o||void 0!==n,u=`${s}__counterScreenReaderMessage`,m=((e,t)=>void 0!==t?`${e}/${t}`:String(e))(r,n),f=((e,t,n)=>{if(void 0===n)return e("textArea.counter.charactersEntered",{count:t});if(0===t)return e("textArea.counter.canEnterUpTo",{maxLength:n});if(t>n){const r=t-n;return e(1===r?"textArea.counter.characterOverLimit":"textArea.counter.charactersOverLimit",{count:r})}const r=n-t;return e(1===r?"textArea.counter.characterRemaining":"textArea.counter.charactersRemaining",{count:r})})(p,r,n),h=fn(f,500);return t.useEffect((()=>{if(d)return i({add:u}),()=>{i({remove:u})}}),[d,u,i]),{debouncedScreenReaderMessage:h,isVisible:d,screenReaderMessageId:u,styleProps:l,transferProps:c,visibleCounterText:m}},Os=e=>{const{debouncedScreenReaderMessage:t,isVisible:n,screenReaderMessageId:r,styleProps:o,transferProps:s,visibleCounterText:i}=ks(e);return n?gr.jsxs(gr.Fragment,{children:[gr.jsx("div",{...s,...o,"aria-hidden":"true",children:i}),gr.jsx(_s,{id:r,"aria-live":"polite","aria-atomic":"true",children:t})]}):null};Os.spiritComponent="CharacterCounter";const $s={elementType:"div",id:void 0,registerAria:void 0},js=e=>{const n={...$s,...e},{helperText:r,elementType:o,id:s,registerAria:i,...a}=n,l=o,{styleProps:c,props:p}=en(a),d=Ot(l,{styleProps:c,transferProps:p});return t.useEffect((()=>(r&&i?.({add:s}),()=>{i?.({remove:s})})),[r,s,i]),r?gr.jsx(l,{...p,...d,id:s,children:r}):null};js.spiritComponent="HelperText",js.displayName="HelperText";const Ds={elementType:"label"},Ls=e=>{const t={...Ds,...e},{elementType:n,children:r,htmlFor:o,for:s,...i}=t,a=n,{styleProps:l,props:c}=en(i),p=Ot(a,{styleProps:l,otherProps:c});return gr.jsx(a,{...c,...p,htmlFor:"label"===a?s||o:void 0,children:r})};Ls.spiritComponent="Label",Ls.displayName="Label";const Is={elementType:"div",id:void 0,registerAria:void 0,role:void 0},Ms=e=>{const n={...Is,...e},{elementType:r,hasValidationStateIcon:o,id:s,registerAria:i,role:a,validationText:l,...c}=n,p=r,d=function({hasValidationStateIcon:e}){return $n(e,{success:"check-plain",warning:"warning",danger:"danger"})}({hasValidationStateIcon:o}),{styleProps:u,props:m}=en(c),f=Ot(p,{styleProps:u,transferProps:m});if(t.useEffect((()=>(l&&i?.({add:s}),()=>{i?.({remove:s})})),[s,i,l]),!l)return null;const h=o?gr.jsx("div",{children:l}):l;return gr.jsxs(p,{...m,...f,id:s,role:a,children:[o&&gr.jsx(Cr,{name:d,boxSize:20}),Array.isArray(l)?gr.jsx("ul",{children:l.map((e=>gr.jsx("li",{children:e},`validationText_${e}`)))}):h]})};Ms.spiritComponent="ValidationText",Ms.displayName="ValidationText";const Fs=({validationState:e,validationText:n})=>{const[r,o]=t.useState(),s=t.useRef(n),i=t.useRef(e);return t.useEffect((()=>{s.current===n&&i.current===e||o("alert"),s.current=n,i.current=e}),[n,e]),r};function Bs(e){return{classProps:pn("InputDetails"),props:e}}const Us={elementType:"div",id:void 0,registerAriaDetails:void 0},Hs=e=>{const n={...Us,...e},{classProps:r,props:o}=Bs(n),{children:s,elementType:i,id:a,registerAriaDetails:l,...c}=o,{styleProps:p,props:d}=en(c),u=i||Us.elementType,m=Ot(u,{classProps:r,styleProps:p,otherProps:d});return t.useEffect((()=>(a&&l?.({add:a}),()=>{a&&l?.({remove:a})})),[a,l]),gr.jsx(u,{...d,...m,id:a,children:s})};function zs(e){const{inputPosition:t=te.START,isItem:n,isLabelHidden:r,validationState:o,...s}=e,{isDisabled:i,isRequired:a}=s,l=pn("Checkbox"),c=`${l}--disabled`,p=`${l}--item`,d=`${l}__input`,u=jn(l,t),m=`${l}__text`,f=`${l}__label`,h=`${l}__label--required`,y=`${l}__label--hidden`,b=`${l}__helperText`,v=`${l}__validationText`,x=`${l}--${o}`;return{classProps:{root:g(l,{[u]:u,[c]:i,[p]:n,[x]:o}),text:m,label:g(f,{[h]:a,[y]:r}),input:d,helperText:b,validationText:v},props:{...s,validationState:o}}}Hs.spiritComponent="InputDetails",Hs.displayName="InputDetails";const Vs=t.forwardRef(((e,t)=>{const{classProps:n,props:r}=zs(e),{"aria-describedby":o="","aria-details":s,details:i,hasValidationIcon:a,helperText:l,id:c,isChecked:p,isDisabled:d,isRequired:u,label:m,validationState:f,validationText:h,value:y,...b}=r,{styleProps:v,props:x}=en(b),[T,P]=rn(o),[S,E]=on(s),C=Fs({validationState:f,validationText:h});return gr.jsxs("div",{style:v.style,className:g(n.root,v.className),children:[gr.jsx("input",{...x,...T,...S,type:"checkbox",id:c,className:n.input,disabled:d,required:u,checked:p,value:y,ref:t}),gr.jsxs("div",{className:n.text,children:[gr.jsx(Ls,{UNSAFE_className:n.label,htmlFor:c,children:m}),i&&gr.jsx(Hs,{id:`${c}-details`,registerAriaDetails:E,children:i}),gr.jsx(js,{UNSAFE_className:n.helperText,id:`${c}__helperText`,registerAria:P,helperText:l}),f&&gr.jsx(Ms,{UNSAFE_className:n.validationText,id:`${c}__validationText`,...a&&{hasValidationStateIcon:f},validationText:h,registerAria:P,role:C})]})]})}));function Ws(e){const{isFluid:t,size:n,...r}=e,o=pn("Container"),s=`${o}--fluid`,i=`${o}--${n}`;return{classProps:g(o,{[s]:t,[i]:!t&&n}),props:r}}Vs.spiritComponent="Checkbox",Vs.displayName="Checkbox";const Gs={isFluid:!1,size:W.XLARGE},qs=e=>{const t={...Gs,...e},{children:n,...r}=t,{classProps:o,props:s}=Ws(r),{styleProps:i,props:a}=en(s,{textAlignment:pe.textAlignment});return gr.jsx("div",{...a,...i,className:g(o,i.className),children:n})};qs.spiritComponent="Container";const Xs=e=>{const{isDisabled:t,onClick:n,type:r="button"}=e;return{controlButtonProps:{...{type:r,disabled:t},onClick:dn(t,n)}}};function Ys(e){const{isDisabled:t,isSubtle:n,isSymmetrical:r,size:o,...s}=e,i=pn("ControlButton"),a=`${i}--hasBackground`,l=`${i}--disabled`,c=pn("dynamic-color-background-interactive"),p=pn("dynamic-color-border"),d=pn("accessibility-tap-target"),{symmetricalClassName:u}=Jn(i,r),m=g(i,((e,t)=>Me(Le(t))(e))(i,o),c,d,{[l]:t,[a]:!n,[p]:!n},u);return{classProps:m,props:s}}const Ks={elementType:"button",isDisabled:!1,isSubtle:!1,isSymmetrical:!1,size:V.MEDIUM,type:"button"},Qs=t.forwardRef(((e,t)=>{const n={...Ks,...e},{elementType:r=Ks.elementType,children:o,...s}=n,i=r,{controlButtonProps:a}=Xs(s),{classProps:l,props:c}=Ys(s),{styleProps:p,props:d}=en(c),u=Ot(i,{classProps:l,styleProps:p,otherProps:d});return gr.jsx(i,{...d,...a,ref:t,...u,children:o})}));Qs.spiritComponent="ControlButton",Qs.displayName="ControlButton";const Zs=(e,n)=>{const r=t.useRef(null),o=t.useCallback((()=>{null!==r.current&&(clearTimeout(r.current),r.current=null)}),[]),s=t.useCallback((e=>{o(),r.current=setTimeout((()=>{e.open&&e.close&&e.close()}),300)}),[o]),i=t.useCallback((t=>{const r=e?.current;r&&t.target===r&&!n&&r.open&&r.close&&(o(),r.close())}),[n,e,o]);Wn(e,n);const a=t.useCallback((t=>{const n=e?.current;n?.classList&&(t?n.classList.add(v):n.classList.remove(v))}),[e]);t.useEffect((()=>{const t=e?.current;return t&&(n?(o(),!t.open&&t.showModal&&(t.showModal(),a(!0))):!n&&t.open&&(a(!1),s(t))),()=>{o()}}),[n,e,a,o,s]);return{openDialog:()=>{const t=e?.current;t&&(o(),!t.open&&t.showModal&&(t.showModal(),a(!0)))},closeDialog:()=>{const t=e?.current;t&&t.open&&(a(!1),s(t))},onTransitionEnd:i}},Js=t.forwardRef(((e,n)=>{const{children:r,isOpen:o,onClose:s,closeOnBackdropClick:i=!0,closeOnEscapeKeyDown:a,...l}=e,c=t.useRef(n),p=t.useRef(null),{closeDialog:d,onTransitionEnd:u}=Zs(c,o);un({ref:p,callback:o?e=>{i&&e.target===c.current&&(d(),s(e))}:void 0}),cn(c,s,a,o);const m=t.Children.only(r);return gr.jsx("dialog",{ref:c,onTransitionEnd:u,...l,children:t.cloneElement(m,{ref:e=>{p.current=e}})})}));function ei(e){return{classProps:pn("Divider"),props:e}}Js.spiritComponent="Dialog",Js.displayName="Dialog";const ti=e=>{const{classProps:t,props:n}=ei(e),{styleProps:r,props:o}=en(n);return gr.jsx("hr",{...o,...r,className:g(t,r.className)})};ti.spiritComponent="Divider";const ni=_.RIGHT,ri=t.createContext({id:"",isOpen:!1,onClose:()=>null}),oi=ri.Provider,si=ri.Consumer,ii=()=>t.useContext(ri),ai=(e={})=>{const{drawerAlignmentX:t=ni,isOpen:n=!1}=e,r=pn("Drawer"),o=`${r}Panel`,s=`${o}__content`,i=`${r}CloseButton`;return{classProps:{root:g(r,{left:`${r}--left`,right:`${r}--right`}[t],{[v]:n}),panel:o,content:s,closeButton:i}}},li=e=>{const{children:t,alignmentX:n=ni,isOpen:r,onClose:o,id:s,...i}=e,{classProps:a}=ai({drawerAlignmentX:n}),{styleProps:l,props:c}=en(i),p={id:s,isOpen:r,onClose:o};return Dn(r),gr.jsx(oi,{value:p,children:gr.jsx(Js,{...c,...l,id:s,isOpen:r,onClose:o,className:g(a.root,l.className),children:t})})};li.spiritComponent="Drawer";const ci={color:M.TERTIARY,iconBoxSize:24,size:V.MEDIUM},pi=e=>{const t={...ci,...e},{color:n,iconBoxSize:r,label:o,size:s,...i}=t,{t:a}=An(),l=o??a("common.close"),{id:c,isOpen:p,onClose:d}=ii(),{classProps:u}=ai(),{styleProps:m,props:f}=en(i);return gr.jsxs(is,{...f,"aria-expanded":p,"aria-controls":c,onClick:d,color:n,size:s,UNSAFE_className:g(u.closeButton,m.className),UNSAFE_style:m.style,isSymmetrical:!0,children:[gr.jsx(Cr,{name:"close",boxSize:r}),gr.jsx(_s,{children:l})]})};pi.spiritComponent="DrawerCloseButton";const di=t.forwardRef(((e,t)=>{const{elementType:n="div",children:r,...o}=e,s=n,{classProps:i}=ai(o),{styleProps:a,props:l}=en(o),c=Ot(s,{classProps:i.panel,styleProps:a,otherProps:l});return gr.jsx(s,{...l,...c,ref:t,children:gr.jsx("div",{className:i.content,children:r})})}));di.spiritComponent="DrawerPanel",di.displayName="DrawerPanel";const ui="aria-expanded",mi="aria-controls",fi="data-spirit-fullwidthmode",hi="data-spirit-placement";var gi=(e=>(e.off="off",e["mobile-only"]="mobile-only",e.all="all",e))(gi||{});const yi=e=>{const{fullWidthMode:t,id:n,isOpen:r,placement:o=z.BOTTOM_START,toggleHandler:s}=e,i={[ui]:r,[mi]:String(n),onClick:s};return{contentProps:{id:n,[fi]:t,[hi]:o},triggerProps:i}},bi={dropdownRef:{current:null},fullWidthMode:gi.off,id:"",isOpen:!1,onToggle:()=>{},placement:z.BOTTOM_START,triggerRef:{current:void 0}},vi=t.createContext(bi),xi=vi.Provider;vi.Consumer;const Ti=()=>t.useContext(vi),Pi=(e={isOpen:!1})=>{const{alignmentX:t,alignmentY:n,isOpen:r,...o}=e,s=pn("Dropdown"),i=`${s}Popover`,a=r?"is-expanded":"",l=r?v:"";return{classProps:{root:g(s,{[tn(s,t,"alignmentX")]:t,[tn(s,n,"alignmentY")]:n}),trigger:a,popover:g(i,l)},props:o}},Si=e=>{const{children:n,enableAutoClose:r=!0,fullWidthMode:o,id:s,isOpen:i=!1,onAutoClose:a,onToggle:l,placement:c,...p}=e,{classProps:d,props:u}=Pi({isOpen:i,...p}),{styleProps:m,props:f}=en(u),h=t.useRef(null),y=t.useRef();return un({ref:h,callback:e=>{r&&(y?.current?.contains(e?.target)||(a&&a(e),l&&i&&l()))}}),gr.jsx(xi,{value:{id:s,isOpen:i,fullWidthMode:o,placement:c,onToggle:l,dropdownRef:h,triggerRef:y},children:gr.jsx("div",{ref:h,className:g(d.root,m.className),style:m.style,...f,children:n})})};Si.spiritComponent="Dropdown";const Ei={elementType:"button"},Ci=e=>{const t={...Ei,...e},{elementType:n,children:r,...o}=t,s=n,{id:i,isOpen:a,onToggle:l,fullWidthMode:c,triggerRef:p}=Ti(),{classProps:d,props:u}=Pi({isOpen:a,...o}),{styleProps:m,props:f}=en(u),h=Ot(s,{classProps:d.trigger,triggerStyleProps:m}),{triggerProps:g}=yi({id:i,isOpen:a,toggleHandler:l,fullWidthMode:c});return gr.jsx(s,{...f,...g,...h,ref:p,children:"function"==typeof r?r({isOpen:a}):r})};Ci.spiritComponent="DropdownTrigger",Ci.displayName="DropdownTrigger";const Ni=e=>{const{children:t,...n}=e,{id:r,isOpen:o,onToggle:s,fullWidthMode:i,placement:a}=Ti(),{classProps:l,props:c}=Pi({isOpen:o,...n}),{styleProps:p,props:d}=en(c),{contentProps:u}=yi({id:r,isOpen:o,toggleHandler:s,placement:a,fullWidthMode:i});return gr.jsx("div",{className:g(l.popover,p.className),style:p.style,...u,...d,children:t})};Ni.spiritComponent="DropdownPopover";const wi=({dropdownRef:e,triggerRef:n,enableAutoClose:r,onAutoClose:o})=>{const[s,i]=t.useState(!1);return un({ref:e,callback:e=>{r&&(n?.current?.contains(e?.target)||(o&&o(e),i(!1)))}}),{toggleHandler:e=>{e.preventDefault(),i(!s)},isOpen:s}},Ai=e=>{const{children:n,enableAutoClose:r=!0,fullWidthMode:o,id:s,onAutoClose:i,placement:a,...l}=e,{classProps:c,props:p}=Pi(l),{styleProps:d,props:u}=en(p),m=t.useRef(null),f=t.useRef(),{isOpen:h,toggleHandler:y}=wi({dropdownRef:m,triggerRef:f,enableAutoClose:r,onAutoClose:i});return gr.jsx(xi,{value:{id:s,isOpen:h,fullWidthMode:o,placement:a,onToggle:y,dropdownRef:m,triggerRef:f},children:gr.jsx("div",{ref:m,...d,...u,className:g(c.root,d.className),children:n})})};function _i(e){const{hasEndDivider:t,hasIntermediateDividers:n,hasSpacing:r,hasStartDivider:o,spacing:s,...i}=e,a=pn("Stack"),l=`${a}--hasEndDivider`,c=`${a}--hasIntermediateDividers`,p=`${a}--hasSpacing`,d=`${a}--hasStartDivider`,u=`${a}Item`,m=Qn(s,"stack");return{classProps:{root:g(a,{[l]:t,[c]:n,[p]:r||s,[d]:o}),item:u},props:i,styleProps:m}}Ai.spiritComponent="UncontrolledDropdown";const Ri=["ul","ol"],ki={elementType:"div",hasSpacing:!1,hasEndDivider:!1,hasIntermediateDividers:!1,hasStartDivider:!1},Oi=t.forwardRef(((e,t)=>{const n={...ki,...e},{elementType:r=ki.elementType,children:o,...s}=n,i=r,{classProps:a,props:l,styleProps:c}=_i(s),{styleProps:p,props:d}=en(l),u=Ot(i,{classProps:a.root,stackStyle:c,styleProps:p,otherProps:d}),m=Ri.includes(r)?"li":void 0;return gr.jsx(es,{value:{elementType:m},children:gr.jsx(i,{...d,...u,ref:t,children:o})})}));Oi.spiritComponent="Stack",Oi.displayName="Stack";const $i="div",ji=t.forwardRef(((e,t)=>{const{elementType:n}=e,r=ns(e),{children:o,elementType:s,...i}=r,a=n??s??$i,{classProps:l,props:c}=_i(i),{styleProps:p,props:d}=en(c),u=Ot(a,{classProps:l.item,styleProps:p,otherProps:d});return gr.jsx(a,{...d,...u,ref:t,children:gr.jsx(es,{value:{elementType:void 0},children:o})})}));function Di(e){const t=pn("EmptyState");return{classProps:{root:t,section:`${t}__section`},props:e}}ji.spiritComponent="StackItem",ji.displayName="StackItem";const Li=e=>{const{children:t,...n}=e,{classProps:r,props:o}=Di(n),{styleProps:s,props:i}=en(o);return gr.jsx(Oi,{...i,UNSAFE_className:g(r.root,s.className),UNSAFE_style:s.style,children:t})};Li.spiritComponent="EmptyState";const Ii=e=>{const{children:t,...n}=e,{classProps:r,props:o}=Di(n),{styleProps:s,props:i}=en(o);return gr.jsx(Oi,{...i,UNSAFE_className:g(r.section,s.className),UNSAFE_style:s.style,children:t})};Ii.spiritComponent="EmptyStateSection";const Mi=e=>{const{"aria-describedby":t="",children:n,helperText:r,hasValidationIcon:o,id:s,isDisabled:i,isFluid:a,isLabelHidden:l,isRequired:c,label:p,validationState:d,validationText:u,...m}=e,{classProps:f}=(({isFluid:e,isRequired:t,validationState:n})=>{const r=pn("FieldGroup"),o=`${r}--fluid`,s=`${r}--${n}`,i=`${r}__label`,a=`${i}--required`,l=`${r}__fields`,c=`${r}__validationText`,p=`${r}__helperText`;return{classProps:{root:g(r,{[o]:e,[s]:n}),label:g(i,{[a]:t}),fields:l,validationText:c,helperText:p}}})({isFluid:a,isRequired:c,validationState:d}),{styleProps:h,props:y}=en(m),[b,v]=rn(t),x=Fs({validationState:d,validationText:u});return gr.jsxs("fieldset",{...y,...h,...b,className:g(f.root,h.className),disabled:i,children:[gr.jsx(_s,{elementType:"legend",children:p}),!l&&gr.jsx("div",{className:f.label,"aria-hidden":"true",children:p}),gr.jsx("div",{className:f.fields,children:n}),gr.jsx(js,{UNSAFE_className:f.helperText,id:`${s}__helperText`,registerAria:v,helperText:r}),d&&gr.jsx(Ms,{UNSAFE_className:f.validationText,...o&&{hasValidationStateIcon:d},id:`${s}__helperText`,validationText:u,registerAria:v,role:x})]})};Mi.spiritComponent="FieldGroup";const Fi=1e7,Bi=1,Ui="The file size limit has been exceeded",Hi="This file already exists in the queue",zi="You have exceeded the number of files allowed in the queue",Vi="This file type is not supported",Wi="file",Gi={TOP:"--file-uploader-attachment-image-top",LEFT:"--file-uploader-attachment-image-left",WIDTH:"--file-uploader-attachment-image-width",HEIGHT:"--file-uploader-attachment-image-height"},qi={addToQueue:()=>new Map,clearQueue:()=>null,fileQueue:new Map,onDismiss:()=>new Map,findInQueue:()=>null,updateQueue:()=>new Map,errorMessages:{errorFileDuplicity:"",errorFileNotSupported:"",errorMaxFileSize:"",errorMaxUploadedFiles:""}},Xi=t.createContext(qi),Yi=Xi.Provider;Xi.Consumer;const Ki=()=>t.useContext(Xi),Qi=e=>{const t=pn("FileUploader"),n="has-drag-and-drop",r=`${t}--fluid`,o=`${t}Input`,s=`${o}--disabled`,i=`${o}--${e?.validationState}`,a="is-dragging",l=`${o}__dragAndDropLabel`,c=`${o}__dropZone`,p=`${c}Label`,d=`${o}__helperText`,u="d-none",m=`${o}__input`,f=`${o}__label`,h=`${o}__label--hidden`,y=`${o}__label--required`,b=`${o}__link`,v=`${o}__validationText`,x=`${t}List`,T=`${t}Attachment`,P=`${T}__name`,S=`${T}__action`,E=`${T}__image`,C=`${T}__slot`,{meta:N,imageObjectFit:w}=e||{};let A,_;const R=null!=N&&["x","y","cropWidth","cropHeight","originalWidth","originalHeight"].every((e=>null!=N[e]));if(R){const{x:e,y:t,cropWidth:n,cropHeight:r,originalWidth:o,originalHeight:s}=N,i=54;let a;a=r>n?i/n:i/r;const l=Math.round(e*a),c=Math.round(t*a),p=Math.round(o*a),d=Math.round(s*a);A={[Gi.TOP]:`-${c}px`,[Gi.LEFT]:`-${l}px`,[Gi.WIDTH]:`${p}px`,[Gi.HEIGHT]:`${d}px`}}return w&&(_={"--file-uploader-attachment-image-object-fit":w}),{classProps:{root:g(t,{[r]:e?.isFluid}),input:{root:g(o,{[n]:e?.isDragAndDropSupported,[s]:e?.isDisabled||e?.isDisabledByQueueLimitBehavior&&"disable"===e?.queueLimitBehavior,[a]:e?.isDragging,[u]:e?.isDropZoneHidden&&"hide"===e.queueLimitBehavior,[i]:e?.validationState}),label:g(f,{[y]:e?.isRequired,[h]:e?.isLabelHidden}),input:m,dropLabel:l,helper:d,link:g(b,"link-primary","link-underlined"),validationText:v,dropZone:{root:c,label:p}},list:x,attachment:{root:T,button:S,name:P,image:E,slot:C},...R&&{imageCropStyles:A},...w&&{attachmentStyles:_}}}},Zi=e=>{const{addToQueue:t,children:n,clearQueue:r,errorMessages:o,fileQueue:s,findInQueue:i,id:a,isFluid:l,onDismiss:c,updateQueue:p,...d}=e,{classProps:u}=Qi({isFluid:l}),{styleProps:m,props:f}=en(d),h={addToQueue:t,clearQueue:r,fileQueue:s,onDismiss:c,findInQueue:i,updateQueue:p,errorMessages:{errorFileDuplicity:Hi,errorFileNotSupported:Vi,errorMaxFileSize:Ui,errorMaxUploadedFiles:zi,...o}};return gr.jsx(Yi,{value:h,children:gr.jsx("div",{id:a,...f,...m,className:g(u.root,m.className),children:n})})};Zi.spiritComponent="FileUploader";const Ji=e=>{const{maxFileSize:n,maxUploadedFiles:r,queueLimitBehavior:o,isMultiple:s,onError:i,accept:a}=e,[l,c]=t.useState(!1),[p,d]=t.useState(!1),{fileQueue:u,addToQueue:m,clearQueue:f,errorMessages:h}=Ki(),g=e=>`file__${e.replace(/\./g,"_").replace(/\s/g,"_")}`,y=e=>{try{s||f(),(e=>{if(s&&u.has(g(e.name)))throw new Error(`${e.name}: ${h?.errorFileDuplicity}`)})(e),(e=>{if(e.size>n)throw new Error(`${e.name}: ${h?.errorMaxFileSize}`)})(e),(e=>{const t=e.name.split(".").pop()?.toLowerCase(),n=e.type;let r;if(a&&""!==a&&"*"!==a&&"*/*"!==a){const e=a.replace(/ /g,"").split(","),o=e.filter((e=>e.match(/\./g))),s=e.filter((e=>e.match(/\//g)));o.forEach((e=>{const n=e.replace(".","").replace("*","");t.match(n)&&(r=!0)})),s.forEach((e=>{const t=e.replace("*","");n.match(t)&&(r=!0)}))}else r=!0;if(!r)throw new Error(`${e.name}: ${h?.errorFileNotSupported}`)})(e),(()=>{if(u.size>=r)throw new Error(h?.errorMaxUploadedFiles)})(),(()=>{if(r>1&&!s)throw new Error("`isMultiple` props must be set when maxUploadedFiles is greater than `1`")})(),m(g(e.name),e)}catch(e){i?i(e):b(0,e)}};t.useEffect((()=>{var e;e=u,o&&("hide"===o?d(e?.size>=r):c(e?.size>=r))}),[u]);return{isDropZoneHidden:p,isDisabledByQueueLimitBehavior:l,onChange:e=>{const{files:t}=e.target,n=Array.prototype.slice.call(t);let o,s=0;s+=u.size,n.forEach((e=>{s<r?(y(e),s+=1):o=!0})),o&&i&&h?.errorMaxUploadedFiles&&i(new Error(h?.errorMaxUploadedFiles)),e.target.blur(),e.target.value=""},...yn({onDrop:e=>{const t=Array.from(e.dataTransfer.items),n=Array.from(e.dataTransfer.files);let o,s=0;s+=u.size,e.dataTransfer.items?t.forEach((e=>{if("file"===e.kind){const t=e.getAsFile();t&&s<r?(y(t),s+=1):o=!0}})):n.forEach((e=>{s<r?(y(e),s+=1):o=!0})),o&&i&&h?.errorMaxUploadedFiles&&i(new Error(h?.errorMaxUploadedFiles))}})}},ea=e=>{const[n,r]=t.useState(!1),{accept:o,"aria-describedby":s="",dropZoneRef:i,hasValidationIcon:a,helperText:l,iconName:c="upload",id:p,inputRef:d,isDisabled:u,isLabelHidden:m,isMultiple:f,isRequired:h,label:y,labelText:b,linkText:v,maxFileSize:x=Fi,maxUploadedFiles:T=Bi,name:P,onError:S,queueLimitBehavior:E="none",validationState:C,validationText:N,...w}=e,{isDisabledByQueueLimitBehavior:A,isDragging:_,isDropZoneHidden:R,onChange:k,onDragEnter:O,onDragLeave:$,onDragOver:j,onDrop:D}=Ji({accept:o,isMultiple:f,maxFileSize:x,maxUploadedFiles:T,onError:S,queueLimitBehavior:E}),{classProps:L}=Qi({isDisabled:u,isDisabledByQueueLimitBehavior:A,isDragAndDropSupported:n,isDragging:_,isDropZoneHidden:R,isLabelHidden:m,isRequired:h,queueLimitBehavior:E,validationState:C}),{styleProps:I,props:M}=en(w),[F,B]=rn(s),U=Fs({validationState:C,validationText:N});return t.useEffect((()=>{r("draggable"in document.createElement("span"))}),[]),gr.jsxs("div",{...M,...I,onDragOver:!u&&n?j:void 0,onDragEnter:!u&&n?O:void 0,onDragLeave:!u&&n?$:void 0,onDrop:!u&&n?D:void 0,className:g(L.input.root,I.className),children:[gr.jsx(Ls,{htmlFor:p,UNSAFE_className:L.input.label,children:y}),gr.jsx("input",{...F,type:"file",accept:o,id:p,ref:d,name:P,className:L.input.input,onChange:k,multiple:f,disabled:u||A,...w}),gr.jsxs("div",{ref:i,className:L.input.dropZone.root,children:[gr.jsx(Cr,{name:c,"aria-hidden":"true"}),gr.jsxs(Ls,{htmlFor:p,UNSAFE_className:L.input.dropZone.label,children:[gr.jsx("span",{className:L.input.link,children:v})," ",gr.jsx("span",{className:L.input.dropLabel,children:b})]}),gr.jsx(js,{UNSAFE_className:L.input.helper,id:`${p}__helperText`,registerAria:B,helperText:l})]}),C&&gr.jsx(Ms,{UNSAFE_className:L.input.validationText,elementType:"span",...a&&{hasValidationStateIcon:C},id:`${p}__validationText`,validationText:N,registerAria:B,role:U})]})};ea.spiritComponent="FileUploaderInput";const ta=e=>{const{t:n}=An(),{label:r,id:o,attachmentComponent:s,inputName:i,hasImagePreview:a,...l}=e,c=r??n("fileUploader.attachments"),{classProps:p}=Qi(),{styleProps:d,props:u}=en(l),{fileQueue:m,onDismiss:f}=Ki(),h=t.useMemo((()=>Array.from(m,(e=>({key:e[0],file:e[1].file,meta:e[1].meta}))).map((({key:e,file:t,meta:n})=>s&&s({id:e,label:t.name,name:i,file:t,meta:n,onDismiss:f,hasImagePreview:a})))),[s,m,i,f,a]);return gr.jsxs(gr.Fragment,{children:[gr.jsx("h3",{id:o,hidden:!0,children:c}),gr.jsx("ul",{"aria-labelledby":o,...u,...d,className:g(p.list,d.className),children:h})]})};ta.spiritComponent="FileUploaderList";const na=e=>{const{name:t="edit",children:n,...r}=e,{classProps:o}=Qi(),{styleProps:s,props:i}=en(r);return gr.jsxs("button",{type:"button",...i,...s,className:g(o.attachment.button,s.className),children:[gr.jsx(_s,{children:n}),gr.jsx(Cr,{name:t,"aria-hidden":"true"})]})};na.spiritComponent="AttachmentActionButton";const ra=e=>{const{children:t,...n}=e,{classProps:r}=Qi(),{styleProps:o,props:s}=en(n);return gr.jsxs("button",{type:"button",...s,...o,className:g(r.attachment.button,o.className),children:[gr.jsx(_s,{children:t}),gr.jsx(Cr,{name:"close","aria-hidden":"true"})]})};ra.spiritComponent="AttachmentDismissButton";const oa={meta:void 0,imageObjectFit:"cover"},sa=e=>{const t={...oa,...e},{label:n,imagePreview:r,meta:o,imageObjectFit:s}=t,{classProps:i}=Qi({meta:o,imageObjectFit:s}),{imageCropStyles:a,attachmentStyles:l}=i;return gr.jsx("span",{className:i.attachment.image,children:gr.jsx("img",{src:r,width:54,height:54,alt:n,style:{...a,...l}})})};sa.spiritComponent="AttachmentImagePreview";const ia=(e,t,n)=>{const r=document.createElement("input"),o=new DataTransfer;if(e)return o.items?.add(e),r.setAttribute("type","file"),r.setAttribute("name",`${t}[]`),r.setAttribute("hidden",""),r.files=o.files,r;n?n("File not found"):b(0,"File not found")},aa=(e,t,n)=>{const r=document.createElement("input");return r.setAttribute("type","text"),r.setAttribute("name",`${t}_meta`),r.setAttribute("value",JSON.stringify(n)),r.setAttribute("hidden",""),r},la=(e,t,n)=>{const r=new FileReader;r.onload=e=>{const r=new Image;r.onload=()=>{const e=document.createElement("canvas"),o=e.getContext("2d");e.width=t,e.height=r.height/r.width*t,o?.drawImage(r,0,0,e.width,e.height);const s=e.toDataURL("image/jpeg",.8);n(s)},e.target&&e.target.result&&(r.src=e.target.result.toString())},r.readAsDataURL(e)},ca=({attachmentRef:e,file:t,name:n,meta:r,onError:o})=>{sn((()=>{(r=>{e.current?.querySelectorAll("input").forEach((e=>e.remove()));const s=ia(t,n,o);if(s&&e.current?.appendChild(s),r){const t=aa(0,n,r);e.current?.appendChild(t)}})(r)}),[e,t,n,r,o])},pa=e=>{const{t:n}=An(),{editText:r,file:o,hasImagePreview:s,iconName:i=Wi,id:a,imageObjectFit:l,label:c,meta:p,name:d,onDismiss:u,onEdit:m,onError:f,removeText:h,...y}=e,b=r??n("fileUploader.edit"),v=h??n("fileUploader.remove"),[x,T]=t.useState(""),{classProps:P}=Qi(),{styleProps:S,props:E}=en(y),C=o.type.includes("image"),N=t.useRef();return C&&la(o,500,(e=>T(e))),ca({attachmentRef:N,file:o,name:d,meta:p,onError:f}),gr.jsxs("li",{id:a,ref:N,...E,...S,className:g(P.attachment.root,S.className),children:[s&&x?gr.jsx(sa,{label:c,imagePreview:x,meta:p,imageObjectFit:l}):gr.jsx(Cr,{name:i,"aria-hidden":"true"}),gr.jsx("span",{className:P.attachment.name,children:gr.jsx("span",{className:pn("text-truncate"),children:c})}),m&&gr.jsx("span",{className:P.attachment.slot,children:gr.jsx(na,{onClick:e=>m&&m(e,o),children:b})}),gr.jsx(ra,{onClick:()=>{u&&u(a)},children:v})]})};pa.spiritComponent="FileUploaderAttachment";const da=()=>{const[e,n]=t.useState(new Map);return{addToQueue:(t,r,o)=>(n((e=>{const n={file:r};return null!=o&&(n.meta=o),new Map(e.set(t,n))})),e),clearQueue:()=>{n((e=>(e.clear(),new Map(e))))},fileQueue:e,findInQueue:t=>e.get(t)||null,onDismiss:t=>(n((e=>{const n=new Map(e);return n.delete(t),n})),e),updateQueue:(t,r,o)=>(n((e=>{const n=new Map(e),s={file:r};return null!=o&&(s.meta=o),n.set(t,s),n})),e)}},ua=e=>{const{attachmentComponent:n,maxFileSize:r,maxUploadedFiles:o,helperText:s,iconName:i,inputId:a,inputLabel:l,inputName:c,inputProps:p,isLabelHidden:d,isDisabled:u,isFluid:m,queueLimitBehavior:f,isMultiple:h,isRequired:g,labelText:y,linkText:b,listId:v,listProps:x,onInputError:T,onChange:P,errorMessages:S,validationState:E,validationText:C,...N}=e,{fileQueue:w,addToQueue:A,clearQueue:_,onDismiss:R,findInQueue:k,updateQueue:O}=da();return t.useEffect((()=>{P&&P(w)}),[w]),gr.jsxs(Zi,{fileQueue:w,onDismiss:R,addToQueue:A,clearQueue:_,findInQueue:k,updateQueue:O,errorMessages:S,isFluid:m,...N,children:[gr.jsx(ea,{maxFileSize:r,maxUploadedFiles:o,helperText:s,iconName:i,id:a,isLabelHidden:d,isDisabled:u,queueLimitBehavior:f,isMultiple:h,isRequired:g,label:l,labelText:y,linkText:b,name:c,onError:T,validationState:E,validationText:C,...p}),gr.jsx(ta,{id:v,inputName:c,attachmentComponent:n,...x})]})};ua.spiritComponent="UncontrolledFileUploader";const ma={backgroundColor:I.SECONDARY,elementType:"footer",paddingBottom:"space-1200",paddingTop:"space-1400"},fa=t.forwardRef(((e,t)=>{const n={...ma,...e},{elementType:r=ma.elementType,children:o,backgroundColor:s,...i}=n,a=r,{classProps:l}=(e=>{const{backgroundColor:t}=e,n=pn(`bg-${t}`),r=t?n:"";return{classProps:g({[r]:t})}})({backgroundColor:s}),{styleProps:c,props:p}=en(i,{paddingBottom:ce.paddingBottom,paddingTop:ce.paddingTop,textAlignment:pe.textAlignment}),d=Ot(a,{classProps:l,styleProps:c,otherProps:p});return gr.jsx(a,{...p,...d,ref:t,children:o})}));function ha(e){const{alignmentX:t,alignmentY:n,cols:r,spacing:o,spacingX:s,spacingY:i,...a}=e,l=pn("Grid"),c={...Qn(o,"grid",J.X),...Qn(o,"grid",J.Y),...Qn(s,"grid",J.X),...Qn(i,"grid",J.Y)};return{classProps:g(l,{[tn(l,t,"alignmentX")]:t,[tn(l,n,"alignmentY")]:n,[function(e,t,n){return"object"==typeof t&&null!==t?Object.keys(t).map((r=>{const o="mobile"===r?"":`--${r}`,s=t[r];return`${e}${o}--${n}-${s}`})).join(" "):`${e}--${n}-${t}`}(l,r,"cols")]:r}),props:a,styleProps:c}}fa.spiritComponent="Footer",fa.displayName="Footer";const ga={alignmentX:R.STRETCH,alignmentY:O.STRETCH,elementType:"div"},ya=t.forwardRef(((e,t)=>{const n={...ga,...e},{elementType:r=ga.elementType,children:o,...s}=n,i=r,{classProps:a,props:l,styleProps:c}=ha(s),{styleProps:p,props:d}=en(l),u=Ot(i,{classProps:a,styleProps:p,otherProps:d,gridStyle:c});return gr.jsx(i,{...d,...u,ref:t,children:o})}));ya.spiritComponent="Grid",ya.displayName="Grid";const ba=(e,t,n)=>{e[t]=n};function va(e){const t=pn("GridItem"),n={},r={...e};return Object.keys(r).filter((e=>e.startsWith("column")||e.startsWith("row"))).forEach((e=>{const t=e.startsWith("column")?"column":"row",o=r[e];var s,i,a;o&&(s=n,i=`grid-item-${t}-${e.replace(t,"").toLowerCase()}`,"object"==typeof(a=o)&&null!==a?Object.keys(a).forEach((e=>{ba(s,`--${i}${"mobile"===e?"":`-${e}`}`,a[e]?.toString())})):ba(s,`--${i}`,a?.toString())),delete r[e]})),{classProps:t,props:r,styleProps:n}}const xa={elementType:"div"},Ta=t.forwardRef(((e,t)=>{const{elementType:n=xa.elementType,children:r,...o}=e,s=n,{classProps:i,styleProps:a,props:l}=va(o),{styleProps:c,props:p}=en(l),d=Ot(s,{classProps:i,styleProps:c,otherProps:p,gridItemStyle:a});return gr.jsx(s,{...p,...d,ref:t,children:r})}));Ta.spiritComponent="GridItem",Ta.displayName="GridItem";const Pa="primary",Sa="primary",Ea="Close",Ca="Menu",Na=({actionsColor:e=Sa,color:t=Pa,hasActionsAtEnd:n,isCurrentLink:r,isSimple:o}={actionsColor:Sa,color:Pa,hasActionsAtEnd:!1,isCurrentLink:!1,isSimple:!1})=>{const s=pn("Header"),i=`${s}--simple`,a=`${s}Nav`,l=`${s}NavItem`,c=`${s}Link`,p=`${c}--current`,d=`${s}DesktopActions`,u=`${d}--end`,m=`${s}MobileActions`,f=`${s}Dialog`,h=`${f}__panel`,y=`${f}__content`,b=`${s}DialogActions`,v=`${b}--${e}`,x=`${s}DialogCloseButton`,T=`${s}DialogLink`,P=`${T}--current`,S=`${s}DialogNav`,E=`${s}DialogNavItem`,C=`${s}DialogText`;return{classProps:{root:g(s,`${s}--${t}`,{[i]:o}),headerButton:c,headerDesktopActions:g(d,{[u]:n}),headerDialog:{root:f,panel:h,content:y},headerDialogActions:g(b,v),headerDialogButton:T,headerDialogCloseButton:x,headerDialogLink:g(T,{[P]:r}),headerDialogNav:S,headerDialogNavItem:E,headerDialogText:C,headerLink:g(c,{[p]:r}),headerMobileActions:m,headerNav:a,headerNavItem:l}}},wa=e=>{const{children:t,color:n=Pa,isSimple:r,...o}=e,{classProps:s}=Na({color:n,isSimple:r}),{styleProps:i,props:a}=en(o);return hn({method:"custom",trigger:!0,componentName:"Header",customText:"The component will be removed in the next major version. Component is replaced by the current implementation of UNSTABLE_Header.\n Please see the composition of the UNSTABLE_Header, Drawer and Navigation components."}),gr.jsx("header",{...a,className:g(s.root,i.className),style:i.style,children:t})};wa.spiritComponent="Header";const Aa=e=>{const{classProps:t}=Na(),{styleProps:n,props:r}=en(e);return gr.jsx("button",{...r,type:"button",className:g(t.headerButton,n.className),style:n.style})};Aa.spiritComponent="HeaderButton";const _a={isAtEnd:!1},Ra=e=>{const t={..._a,...e},{isAtEnd:n,...r}=t,{classProps:o}=Na({hasActionsAtEnd:n}),{styleProps:s,props:i}=en(r);return gr.jsx("nav",{...i,className:g(o.headerDesktopActions,s.className),style:s.style})};Ra.spiritComponent="HeaderDesktopActions";const ka=t.createContext({id:"",isOpen:!1,onClose:()=>null}),Oa=ka.Provider,$a=ka.Consumer,ja=()=>t.useContext(ka),Da=e=>{const{children:t,id:n,isOpen:r,onClose:o,...s}=e,{classProps:i}=Na(),{styleProps:a,props:l}=en(s),c={id:n,isOpen:r,onClose:o};return Dn(r),gr.jsx(Oa,{value:c,children:gr.jsx(Js,{...l,id:n,isOpen:r,onClose:o,className:g(i.headerDialog.root,a.className),style:a.style,children:gr.jsx("div",{className:i.headerDialog.panel,children:gr.jsx("div",{className:i.headerDialog.content,children:t})})})})};Da.spiritComponent="HeaderDialog";const La=e=>{const{color:t=Sa,...n}=e,{classProps:r}=Na({actionsColor:t}),{styleProps:o,props:s}=en(n);return gr.jsx("nav",{...s,className:g(r.headerDialogActions,o.className),style:o.style})};La.spiritComponent="HeaderDialogActions";const Ia=e=>{const{classProps:t}=Na(),{styleProps:n,props:r}=en(e);return gr.jsx("button",{...r,type:"button",className:g(t.headerDialogButton,n.className),style:n.style})};Ia.spiritComponent="HeaderDialogButton";const Ma=e=>{const{label:t=Ea,onClick:n,...r}=e,{classProps:o}=Na(),{styleProps:s,props:i}=en(r),{id:a,isOpen:l,onClose:c}=ja();return gr.jsxs("button",{...i,type:"button","aria-expanded":l,"aria-controls":a,onClick:e=>{c(e),n&&n(e)},className:g(o.headerDialogCloseButton,s.className),style:s.style,children:[gr.jsx(Cr,{name:"close"}),gr.jsx(_s,{children:t})]})};Ma.spiritComponent="HeaderDialogCloseButton";const Fa=t.forwardRef(((e,t)=>{const{elementType:n="a",children:r,isCurrent:o,routerOptions:s,...i}=e,a=n,{classProps:l}=Na({isCurrentLink:o}),{styleProps:c,props:p}=en(i),d=Ot(a,{classProps:l.headerDialogLink,styleProps:c,otherProps:p}),u=Fn({...i,routerOptions:s});return gr.jsx(a,{...p,...d,onClick:u,ref:t,children:r})}));Fa.spiritComponent="HeaderDialogLink",Fa.displayName="HeaderDialogLink";const Ba=e=>{const{classProps:t}=Na(),{styleProps:n,props:r}=en(e);return gr.jsx("ul",{...r,className:g(t.headerDialogNav,n.className),style:n.style})};Ba.spiritComponent="HeaderDialogNav";const Ua=e=>{const{classProps:t}=Na(),{styleProps:n,props:r}=en(e);return gr.jsx("li",{...r,className:g(t.headerDialogNavItem,n.className),style:n.style})};Ua.spiritComponent="HeaderDialogNavItem";const Ha=e=>{const{classProps:t}=Na(),{styleProps:n,props:r}=en(e);return gr.jsx("span",{...r,className:g(t.headerDialogText,n.className),style:n.style})};Ha.spiritComponent="HeaderDialogText";const za=t.forwardRef(((e,t)=>{const{elementType:n="a",children:r,isCurrent:o,routerOptions:s,...i}=e,{href:a}=i,l=n,{classProps:c}=Na({isCurrentLink:o}),{styleProps:p,props:d}=en(i),u=Ot(l,{classProps:c.headerLink,styleProps:p,otherProps:d}),m=Fn({...i,routerOptions:s});return gr.jsx(l,{...d,...u,href:a,onClick:m,ref:t,children:r})}));za.spiritComponent="HeaderLink",za.displayName="HeaderLink";const Va=e=>{const{children:t,dialogId:n,menuToggleLabel:r=Ca,isOpen:o,onOpen:s,...i}=e,{classProps:a}=Na(),{styleProps:l,props:c}=en(i);return gr.jsxs("div",{...c,className:g(a.headerMobileActions,l.className),style:l.style,children:[t,gr.jsxs(is,{"aria-controls":n,"aria-expanded":o,color:"secondary",onClick:s,isSymmetrical:!0,children:[gr.jsx(Cr,{name:"hamburger"}),gr.jsx(_s,{children:r})]})]})};Va.spiritComponent="HeaderMobileActions";const Wa=e=>{const{classProps:t}=Na(),{styleProps:n,props:r}=en(e);return gr.jsx("ul",{...r,className:g(t.headerNav,n.className),style:n.style})};Wa.spiritComponent="HeaderNav";const Ga=e=>{const{classProps:t}=Na(),{styleProps:n,props:r}=en(e);return gr.jsx("li",{...r,className:g(t.headerNavItem,n.className),style:n.style})};function qa(e){const{emphasis:t,size:n,textColor:r,...o}=e,s=pn("typography-heading"),i=pn(r?`text-${r}`:"");return{classProps:g(`${s}-${n}-${t}`,{[i]:!!r}),props:o}}Ga.spiritComponent="HeaderNavItem";const Xa={emphasis:H.BOLD,size:W.MEDIUM},Ya=e=>{const t={...Xa,...e},{elementType:n,children:r,...o}=t,s=n,{classProps:i,props:a}=qa({...o}),{styleProps:l,props:c}=en(a,{isTextBalanced:de.isTextBalanced,textAlignment:pe.textAlignment,textHyphens:pe.textHyphens,textWordBreak:pe.textWordBreak}),p=Ot(s,{classProps:i,styleProps:l,otherProps:c});return gr.jsx(s,{...c,...p,children:r})};Ya.spiritComponent="Heading",Ya.displayName="Heading";const Ka={elementType:"span"},Qa=t.forwardRef(((e,t)=>{const n={...Ka,...e},{elementType:r=Ka.elementType,children:o,on:s,from:i,...a}=n,l=r,c={...a,hideOn:s||a.hideOn,hideFrom:i||a.hideFrom},{styleProps:p,props:d}=en(c),u=Ot(l,{styleProps:p});return gr.jsx(l,{...d,...u,ref:t,children:o})}));Qa.spiritComponent="Hidden",Qa.displayName="Hidden";const Za={ROUNDED:"rounded",SQUARE:"square",CIRCLE:"circle"},Ja={[W.XSMALL]:{padding:"space-500",iconSize:16},[W.SMALL]:{padding:"space-500",iconSize:20},[W.MEDIUM]:{padding:"space-600",iconSize:24},[W.LARGE]:{padding:"space-600",iconSize:28},[W.XLARGE]:{padding:"space-700",iconSize:28}},el={[Za.CIRCLE]:j.FULL,[Za.ROUNDED]:j[300],[Za.SQUARE]:j[0]},tl=(e,t,n)=>`${e}-${t}-${n}`,nl=(e,t=!0)=>{const n=t?U.SUBTLE:U.BASIC,r=n===U.BASIC?U.SUBTLE:U.BASIC,o=e??F.INFORMATIVE,s=(e=>Object.keys(N).includes(e)?x.EMOTION:x.ACCENT)(o);return{colors:{background:tl(s,o,n),border:tl(s,o,n),text:tl(s,o,r)}}},rl=e=>{const{shape:t=Za.ROUNDED,size:n=W.MEDIUM,...r}=e||{},o=el[t],s={padding:`calc(var(--${P}local-padding) - var(--${P}local-border-width, 0px)) !important`};let i;if(It(n)){const e={},t={};Object.entries(n).forEach((([n,r])=>{const o=Ja[r];e[n]=o.padding,t[n]=o.iconSize})),i={padding:e,iconSize:t}}else i=Ja[n];return{iconBoxStyles:s,props:r,shapesProps:o,sizeProps:i}},ol={shape:Za.ROUNDED,color:F.INFORMATIVE,elementType:"div",hasBorder:!0,isSubtle:!0,size:W.MEDIUM},sl=t.forwardRef(((e,t)=>{const n={...ol,...e},{elementType:r,shape:o,color:s,iconName:i,isSubtle:a,hasBorder:l,size:c,...p}=n,d=r,{colors:u}=nl(s,a),{iconBoxStyles:m,props:f,shapesProps:h,sizeProps:{padding:y,iconSize:b}}=rl({size:c,shape:o,...p}),{styleProps:v,props:x}=en(f);return gr.jsx(Ho,{...x,backgroundColor:u.background,elementType:d,borderColor:l?u.border:void 0,borderRadius:h,borderWidth:l?L[100]:void 0,padding:y,textColor:u.text,UNSAFE_className:g(v.className,"d-inline-flex"),UNSAFE_style:{...v.style,...m},ref:t,children:gr.jsx(Cr,{"aria-hidden":"true",boxSize:b,name:i})})}));function il(e){const{isDisabled:t,isSelected:n,selectionDecorator:r,...o}=e,s=pn("Item"),i=`${s}--disabled`,a=`${s}--selected`,l=`${s}__icon`,c=n&&(r===ve||r===xe);return{classProps:{helperText:`${s}__helperText`,icon:{root:l,start:`${l}--start`,end:`${l}--end`},label:`${s}__label`,root:g(s,{[i]:t,[a]:c})},props:o}}sl.spiritComponent="IconBox",sl.displayName="IconBox";const al={elementType:"button",selectionDecorator:Te},ll=e=>{const t={...al,...e},{elementType:n,helperText:r,iconName:o,isDisabled:s,isSelected:i,label:a,selectionDecorator:l,...c}=t,p=n,{classProps:d,props:u}=il({isSelected:i,isDisabled:s,selectionDecorator:l,...c}),{styleProps:m,props:f}=en(u),h=Ot(p,{classProps:d.root,styleProps:m,otherProps:f}),y=i&&(l===Te||l===xe);return gr.jsxs(p,{...f,...h,disabled:!!s&&"button"===p,children:[o&&gr.jsx("span",{className:g(d.icon.root,d.icon.start),children:gr.jsx(Cr,{name:o})}),gr.jsx("span",{className:d.label,children:a}),gr.jsx(js,{UNSAFE_className:d.helperText,elementType:"span",helperText:r}),y&&gr.jsx("span",{className:g(d.icon.root,d.icon.end),children:gr.jsx(Cr,{name:"check-plain"})})]})};ll.spiritComponent="Item",ll.displayName="Item";const cl=(e,t,n,r)=>{const o={},s=`--${r}`;return"object"==typeof e&&100===t&&n>0&&Object.keys(e).forEach((e=>{const t="mobile"===e?"":`-${e}`;o[`${s}-items-count`]=`${n}`,o[`${s}-rows${t}`]=`calc(var(${s}-item-rows) * var(${s}-items-count) / var(${s}-columns${t}))`})),o};function pl(e){const{cols:t,itemsCount:n,itemRows:r,rows:o,spacing:s,spacingX:i,spacingY:a,...l}=e,c=pn("Matrix"),p=`${P}matrix`,d={...gn(t,`${p}-columns`),...gn(o,`${p}-rows`),...gn(r,`${p}-item-rows`),...cl(t,o,n,p),...Qn(s,p,J.X),...Qn(s,p,J.Y),...Qn(i,p,J.X),...Qn(a,p,J.Y)};return{classProps:g(c),props:l,styleProps:d}}const dl={cols:3,elementType:"div",itemRows:100,rows:100,spacingX:"space-700",spacingY:"space-0"},ul=e=>{const n={...dl,...e},{elementType:r,children:o,...s}=n,i=r,a=t.Children.count(o),{classProps:l,props:c,styleProps:p}=pl({...s,itemsCount:a}),{styleProps:d,props:u}=en(c),m=Ot(i,{classProps:l,styleProps:d,otherProps:u,matrixStyleProps:p});return gr.jsx(i,{...u,...m,children:o})};ul.spiritComponent="Matrix",ul.displayName="Matrix";const ml=t.createContext({id:"",isOpen:!1,onClose:()=>null}),fl=ml.Provider,hl=ml.Consumer,gl=()=>t.useContext(ml);function yl({footerAlignment:e=_.RIGHT,isDockedOnMobile:t=!1,isExpandedOnMobile:n=!1,isOpen:r=!1,isScrollable:o=!1,modalAlignment:s=k.CENTER}={}){const i=pn("Modal"),a={top:`${i}--top`,center:`${i}--center`,bottom:`${i}--bottom`},l=`${i}Dialog`,c=`${l}--dockOnMobile`,p=`${l}--expandOnMobile`,d=`${l}--scrollable`,u=`${i}Header`,m=`${u}__title`,f=`${i}Body`,h=`${i}Footer`,y=`${h}__description`,b=`${h}__actions`,x={left:`${h}--left`,center:`${h}--center`,right:`${h}--right`};return{classProps:{root:g(i,{[a[s]]:s,[v]:r}),dialog:g(l,{[c]:t,[p]:n,[d]:o}),title:m,header:u,body:f,footer:{root:g(h,{[x[e]]:e}),description:y,actions:b}}}}const bl=e=>{const{children:t,alignmentY:n=k.CENTER,isOpen:r,onClose:o,id:s,...i}=e,{classProps:a}=yl({isOpen:r,modalAlignment:n}),{styleProps:l,props:c}=en(i),p={id:s,isOpen:r,onClose:o};return Dn(r),gr.jsx(fl,{value:p,children:gr.jsx(Js,{...c,...l,id:s,isOpen:r,onClose:o,className:g(a.root,l.className),"aria-labelledby":`${s}__title`,children:t})})};bl.spiritComponent="Modal";const vl=({children:e,...t})=>{const{classProps:n}=yl(),{styleProps:r,props:o}=en(t);return gr.jsx("div",{...o,...r,className:g(n.body,r.className),children:e})};vl.spiritComponent="ModalBody";const xl=({label:e,onClose:t,id:n,isOpen:r,...o})=>{const{t:s}=An(),i=e??s("common.close");return gr.jsxs(is,{...o,isSymmetrical:!0,color:"tertiary",onClick:t,"aria-expanded":r,"aria-controls":n,children:[gr.jsx(Cr,{name:"close"}),gr.jsx(_s,{children:i})]})};xl.spiritComponent="ModalCloseButton";const Tl=(e,t)=>{if(!t)return{};if("object"==typeof t)return Object.keys(t).reduce(((n,r)=>{const o=`--${e}${"mobile"===r?"":`-${r}`}`;return{...n,[o]:t[r]?.toString()}}),{});const n=`--${e}`;return{[n]:t?.toString()}},Pl=t.forwardRef(((e,t)=>{const{elementType:n="article",children:r,isDockedOnMobile:o,isExpandedOnMobile:s,isScrollable:i,...a}=e,l=n,{classProps:c}=yl({isDockedOnMobile:o,isExpandedOnMobile:s,isScrollable:i}),{modalDialogStyleProps:p,props:d}=(e=>{const{height:t,maxHeight:n,...r}=e;return{modalDialogStyleProps:{...Tl("modal-dialog-height",t),...Tl("modal-dialog-max-height",n)},props:r}})(a),{styleProps:u,props:m}=en(d),f=Ot(l,{classProps:c.dialog,modalDialogStyleProps:p,styleProps:u,otherProps:m});return gr.jsx(l,{...m,...f,ref:t,children:r})}));Pl.spiritComponent="ModalDialog",Pl.displayName="ModalDialog";const Sl=e=>{const{children:t,alignmentX:n=_.RIGHT,description:r,...o}=e,{classProps:s}=yl({footerAlignment:n}),{styleProps:i,props:a}=en(o);return gr.jsxs("footer",{...a,...i,className:g(s.footer.root,i.className),children:[r&&gr.jsx("div",{className:s.footer.description,children:r}),gr.jsx("div",{className:s.footer.actions,children:t})]})};Sl.spiritComponent="ModalFooter";const El={hasCloseButton:!0},Cl=e=>{const t={...El,...e},{children:n,closeLabel:r,hasCloseButton:o,...s}=t,{t:i}=An(),a=r??i("common.close"),{classProps:l}=yl(),{styleProps:c,props:p}=en(s),{id:d,isOpen:u,onClose:m}=gl();return gr.jsxs("header",{...p,...c,className:g(l.header,c.className),children:[n&&gr.jsx("h2",{id:`${d}__title`,className:l.title,children:n}),o&&gr.jsx(xl,{id:d,isOpen:u,label:a,onClose:m})]})};Cl.spiritComponent="ModalHeader";const Nl=({isDisabled:e=!1,isSelected:t=!1,isSquare:n=!1,alignmentY:r=O.CENTER,direction:o=Q.HORIZONTAL,variant:s=K.BOX,...i})=>{const a=pn("Navigation"),l=`${a}Action`,c=`${a}Avatar`,p=`${a}Item`,d=`${a}--${o}`,u=`${l}--disabled`,m=`${l}--selected`,f=`${l}--${s}`,h=`${c}--square`,y=g(p,{[tn(p,r,"alignmentY")]:r});return{classProps:{root:g(a,d),action:g(l,f,{[u]:e,[m]:t}),avatar:g(c,{[h]:n}),item:y},props:i}},wl={direction:Q.HORIZONTAL},Al=e=>{const t={...wl,...e},{children:n,...r}=t,{classProps:o,props:s}=Nl(r),{styleProps:i,props:a}=en(s);return gr.jsx("nav",{...a,className:g(o.root,i.className),style:i.style,children:gr.jsx("ul",{children:n})})};Al.spiritComponent="Navigation";const _l=e=>{const{isDisabled:t,href:n,target:r,rel:o}=e;return{navigationActionProps:{href:t?void 0:n,target:t?void 0:r,rel:t?void 0:o}}},Rl={elementType:"a",variant:K.BOX},kl=t.forwardRef(((e,t)=>{const n={...Rl,...e},{elementType:r=Rl.elementType,children:o,...s}=n,i=n.isDisabled?"span":r,{navigationActionProps:a}=_l(n),{classProps:l,props:c}=Nl(s),{styleProps:p,props:d}=en(c),u=Ot(i,{classProps:l.action,styleProps:p,otherProps:d});return gr.jsx(i,{...d,...a,...u,ref:t,children:o})}));kl.spiritComponent="NavigationAction",kl.displayName="NavigationAction";const Ol={elementType:"a",isSquare:!1,avatarSize:V.SMALL},$l=t.forwardRef(((e,t)=>{const n={...Ol,...e},{elementType:r=Ol.elementType,avatarContent:o,avatarSize:s=Ol.avatarSize,isSquare:i,children:a,...l}=n,{classProps:c,props:p}=Nl({isSquare:i,...l}),{styleProps:d,props:u}=en(p),m=Ot(r,{classProps:c.avatar,styleProps:d,otherProps:u});return gr.jsxs(r,{...u,...m,ref:t,children:[gr.jsx(Fo,{size:s,isSquare:i,children:o}),a]})}));$l.spiritComponent="NavigationAvatar",$l.displayName="NavigationAvatar";const jl={alignmentY:O.CENTER},Dl=e=>{const t={...jl,...e},{children:n,...r}=t,{classProps:o,props:s}=Nl(r),{styleProps:i,props:a}=en(s);return gr.jsx("li",{...a,className:g(o.item,i.className),style:i.style,children:n})};Dl.spiritComponent="NavigationItem";const Ll=({children:e})=>{const[n,r]=t.useState(!1);return t.useEffect((()=>{r(!0)}),[]),n?e:null};Ll.spiritComponent="NoSsr";const Il=e=>{const t=pn("Pagination"),n=`${t}__link`,r=`${n}--current`;return{classProps:{root:t,item:`${t}__item`,link:g(n,{[r]:e?.isCurrent})}}},Ml=e=>{const{children:t,listProps:n={},...r}=e,{classProps:o}=Il(),{styleProps:s,props:i}=en(r),{styleProps:a,props:l}=en(n);return gr.jsx("nav",{...i,...s,children:gr.jsx("ul",{...a,...l,className:g(o.root,a.className),children:t})})};Ml.spiritComponent="Pagination";const Fl=t.forwardRef(((e,t)=>{const{t:n}=An(),{direction:r,accessibilityLabel:o,...s}=e,i=o??n("previous"===r?"pagination.previous":"pagination.next");return gr.jsxs(ps,{color:"secondary",isSymmetrical:!0,...s,ref:t,children:[gr.jsx(Cr,{name:{previous:"chevron-left",next:"chevron-right"}[r]}),gr.jsx(_s,{children:i})]})}));Fl.spiritComponent="PaginationButtonLink",Fl.displayName="PaginationButtonLink";const Bl=e=>{const{children:t,...n}=e,{classProps:r}=Il(),{styleProps:o,props:s}=en(n);return gr.jsx("li",{...s,...o,className:g(r.item,o.className),children:t})};Bl.spiritComponent="PaginationItem";const Ul=t.forwardRef(((e,t)=>{const{t:n}=An(),{elementType:r="a",accessibilityLabel:o,isCurrent:s,pageNumber:i,routerOptions:a,...l}=e,c=o||`${n("pagination.goToPage")} ${i}`,p=r,{classProps:d}=Il({isCurrent:s}),{styleProps:u,props:m}=en(l),f=Ot(p,{classProps:d.link,styleProps:u,otherProps:m}),h=Fn({...l,routerOptions:a});return gr.jsxs(p,{...s&&{"aria-current":"page"},...m,...f,onClick:h,ref:t,children:[gr.jsx(_s,{children:c}),gr.jsx("span",{"aria-hidden":"true",children:i})]})}));Ul.spiritComponent="PaginationLink",Ul.displayName="PaginationLink";const Hl=t.forwardRef((({accessibilityLabel:e,...t},n)=>{const{t:r}=An(),o=e??r("pagination.next");return gr.jsx(Fl,{direction:"next",accessibilityLabel:o,...t,ref:n})}));Hl.spiritComponent="PaginationLinkNext",Hl.displayName="PaginationLinkNext";const zl=t.forwardRef((({accessibilityLabel:e,...t},n)=>{const{t:r}=An(),o=e??r("pagination.previous");return gr.jsx(Fl,{direction:"previous",accessibilityLabel:o,...t,ref:n})}));zl.spiritComponent="PaginationLinkPrevious",zl.displayName="PaginationLinkPrevious";const Vl=({totalPages:e,onChange:n,defaultPage:r,visiblePages:o})=>{const[s,i]=t.useState(r<=0||r>e?1:r??1),[a,l]=t.useState([o]);t.useMemo((()=>{const t=o>e?e:o,n=e-s<t?e-(t-1):s;l(Array.from(Array(t),((e,t)=>t+n)))}),[o,s,e]);const c=t.useCallback((e=>{i(e),n&&n(e)}),[n]);return t.useMemo((()=>{l((()=>{const t=Math.floor(o/2);let n=Math.max(1,s-t);const r=Math.min(n+o-1,e);if(e-o<n-1){const t=e-o+1;n=t<1?1:t}return Array.from({length:r-n+1},((e,t)=>n+t))})())}),[]),{totalPages:e,currentPage:s,pages:a,handlePageChange:c}},Wl=e=>{const{t:t}=An(),{accessibilityLabel:n,accessibilityLabelPrevious:r,accessibilityLabelNext:o,defaultPage:s=1,onChange:i,totalPages:a=0,visiblePages:l=5,...c}=e,p=n??t("pagination.goToPage"),d=r??t("pagination.previous"),u=o??t("pagination.next"),{currentPage:m,pages:f,handlePageChange:h}=Vl({defaultPage:s,onChange:i,totalPages:a,visiblePages:l});return gr.jsxs(Ml,{...c,children:[1!==m&&gr.jsx(zl,{accessibilityLabel:d,onClick:e=>{e.preventDefault(),h(m-1)}}),f?.map((e=>gr.jsx(Bl,{children:gr.jsx(Ul,{accessibilityLabel:`${p} ${e}`,href:"#",isCurrent:m===e,pageNumber:e,onClick:t=>{t.preventDefault(),h(e)}})},e))),m!==a&&gr.jsx(Hl,{accessibilityLabel:u,onClick:e=>{e.preventDefault(),h(m+1)}})]})};Wl.spiritComponent="UncontrolledPagination";const Gl=e=>{const{hasSafeArea:t,isFluid:n,size:r,...o}=e,s=pn("PartnerLogo"),i=`${s}--fluid`,a=`${s}--safeArea`,l=Mt(s,r);return{classProps:g(s,{[i]:n,[a]:t},l),props:o}},ql={hasSafeArea:!0,isFluid:!1,size:V.MEDIUM},Xl=e=>{const t={...ql,...e},{children:n,...r}=t,{classProps:o,props:s}=Gl(r),{styleProps:i,props:a}=en(s);return gr.jsx("div",{...a,className:g(o,i.className),style:i.style,children:n})};Xl.spiritComponent="PartnerLogo";const Yl={SELECTED:"selected",NEUTRAL:"neutral"};function Kl(e){const{color:t,...n}=e,r=pn("Pill"),o=`${r}--${t}`;return{classProps:g(r,{[o]:t}),props:n}}const Ql={color:Yl.SELECTED,elementType:"span"},Zl=e=>{const t={...Ql,...e},{elementType:n,children:r,...o}=t,s=n,{classProps:i,props:a}=Kl(o),{styleProps:l,props:c}=en(a),p=Ot(s,{classProps:i,styleProps:l,otherProps:c});return gr.jsx(s,{...c,...p,children:r})};Zl.spiritComponent="Pill",Zl.displayName="Pill";const Jl=e=>{const{hasComparableFeatures:t,isHighlighted:n,action:r,badge:o,title:s,subtitle:i,note:a,price:l,rows:c,...p}=e,d=pn("PricingPlan"),u=`${d}--comparableFeatures`,m=`${d}__layout`,f=`${d}--highlighted`,h=pn("PricingPlanHeader"),y=`${h}__badge`,b=`${h}__title`,v=`${h}__subtitle`,x=`${h}__price`,T=`${h}__action`,S=`${h}__note`,E=`${h}__content`,C=pn("PricingPlanBody"),N=`${C}__featureList`,w=`${C}__featureItem`,A=`${C}__featureTitle`,_=`${C}__featureTitleText`,R=`${C}__featureDescription`,k=pn("PricingPlanFooter"),O={};return 100!==c&&(O[`--${P}pricing-plan-rows`]=c?.toString()),{classProps:{root:g(d,{[u]:t,[f]:n}),layout:m,header:{root:h,badge:o?y:void 0,content:E,title:s?b:void 0,subtitle:i?v:void 0,price:l?x:void 0,action:r?T:void 0,note:a?S:void 0},body:{root:C,featureList:N,featureItem:w,featureTitle:A,featureTitleText:_,featureDescription:R},footer:k},props:p,styleProps:O}},ec={elementType:"article",hasComparableFeatures:!1,isHighlighted:!1,rows:100},tc=e=>{const t={...ec,...e},{elementType:n,children:r,...o}=t,s=n,{classProps:i,props:a,styleProps:l}=Jl(o),{styleProps:c,props:p}=en(a),d=Ot(s,{classProps:i.root,pricingPlanStyleProps:l,styleProps:c});return gr.jsx(s,{...p,...d,children:gr.jsx("div",{className:g(i.layout),children:r})})};tc.spiritComponent="PricingPlan",tc.displayName="PricingPlan";const nc={action:void 0,badge:void 0,elementType:"header",note:void 0,price:void 0,subtitle:void 0,title:void 0},rc=e=>{const t={...nc,...e},{elementType:n,...r}=t,o=n,{classProps:s,props:i}=Jl(r),{badge:a,title:l,subtitle:c,price:p,action:d,note:u}=t,{styleProps:m,props:f}=en(i),h=Ot(o,{classProps:s.header.root,styleProps:m});return gr.jsxs(o,{...f,...h,children:[a&&gr.jsx("div",{className:s.header.badge,children:a}),gr.jsxs("div",{className:s.header.content,children:[l&&gr.jsx("h3",{className:s.header.title,children:l}),c&&gr.jsx("div",{className:g(s.header.subtitle),children:c}),p&&gr.jsx("div",{className:s.header.price,children:p}),d&&gr.jsx("div",{className:s.header.action,children:d}),u&&gr.jsx("div",{className:s.header.note,children:u})]})]})};rc.spiritComponent="PricingPlanHeader";const oc=new Set(["none","auto","initial","unset",""]),sc=/([+-]?(?:\d+\.?\d*|\.\d+))/;function ic(){if("undefined"==typeof window||"undefined"==typeof document||!document.documentElement)return 16;const e=Number.parseFloat(window.getComputedStyle(document.documentElement).fontSize);return Number.isFinite(e)&&e>0?e:16}function ac(e){const t=e?.trim();if(!t||oc.has(t))return;const n=new RegExp(`^${sc.source}\\s*px$`,"i").exec(t);if(n){const e=Number.parseFloat(n[1]);return Number.isFinite(e)?e:void 0}const r=new RegExp(`^${sc.source}\\s*rem$`,"i").exec(t);if(r){const e=function(e,t=ic()){return e*t}(Number.parseFloat(r[1]));return Number.isFinite(e)?e:void 0}}const lc=t.createContext({anchorRef:()=>{},arrowRef:{current:null},getReferenceProps:()=>({id:"",ref:()=>{}}),getFloatingProps:()=>({id:"",ref:()=>{}}),id:"",isDismissible:!1,isOpen:!1,middlewareData:{},onToggle:()=>{},placement:"bottom",sizeMaxWidth:void 0,tooltipMaxWidth:void 0,tooltipRef:()=>{},triggerRef:()=>{},x:0,y:0,position:"absolute"}),cc=lc.Provider;lc.Consumer;const pc=()=>t.useContext(lc);function dc(){return"undefined"!=typeof window}function uc(e){return hc(e)?(e.nodeName||"").toLowerCase():"#document"}function mc(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function fc(e){var t;return null==(t=(hc(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function hc(e){return!!dc()&&(e instanceof Node||e instanceof mc(e).Node)}function gc(e){return!!dc()&&(e instanceof Element||e instanceof mc(e).Element)}function yc(e){return!!dc()&&(e instanceof HTMLElement||e instanceof mc(e).HTMLElement)}function bc(e){return!(!dc()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof mc(e).ShadowRoot)}function vc(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Cc(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function xc(e){return["table","td","th"].includes(uc(e))}function Tc(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function Pc(e){const t=Sc(),n=gc(e)?Cc(e):e;return["transform","translate","scale","rotate","perspective"].some((e=>!!n[e]&&"none"!==n[e]))||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function Sc(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Ec(e){return["html","body","#document"].includes(uc(e))}function Cc(e){return mc(e).getComputedStyle(e)}function Nc(e){return gc(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function wc(e){if("html"===uc(e))return e;const t=e.assignedSlot||e.parentNode||bc(e)&&e.host||fc(e);return bc(t)?t.host:t}function Ac(e){const t=wc(e);return Ec(t)?e.ownerDocument?e.ownerDocument.body:e.body:yc(t)&&vc(t)?t:Ac(t)}function _c(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Ac(e),s=o===(null==(r=e.ownerDocument)?void 0:r.body),i=mc(o);if(s){const e=Rc(i);return t.concat(i,i.visualViewport||[],vc(o)?o:[],e&&n?_c(e):[])}return t.concat(o,_c(o,[],n))}function Rc(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function kc(e){let t=e.activeElement;for(;null!=(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement);){var n;t=t.shadowRoot.activeElement}return t}function Oc(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&bc(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function $c(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function jc(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>{let{brand:t,version:n}=e;return t+"/"+n})).join(" "):navigator.userAgent}function Dc(e){return!jc().includes("jsdom/")&&(!Lc()&&0===e.width&&0===e.height||Lc()&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)}function Lc(){const e=/android/i;return e.test($c())||e.test(jc())}function Ic(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function Mc(e){return(null==e?void 0:e.ownerDocument)||document}function Fc(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}function Bc(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Uc(e){return yc(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}const Hc=Math.min,zc=Math.max,Vc=Math.round,Wc=Math.floor,Gc=e=>({x:e,y:e}),qc={left:"right",right:"left",bottom:"top",top:"bottom"},Xc={start:"end",end:"start"};function Yc(e,t,n){return zc(e,Hc(t,n))}function Kc(e,t){return"function"==typeof e?e(t):e}function Qc(e){return e.split("-")[0]}function Zc(e){return e.split("-")[1]}function Jc(e){return"x"===e?"y":"x"}function ep(e){return"y"===e?"height":"width"}function tp(e){return["top","bottom"].includes(Qc(e))?"y":"x"}function np(e){return Jc(tp(e))}function rp(e){return e.replace(/start|end/g,(e=>Xc[e]))}function op(e){return e.replace(/left|right|bottom|top/g,(e=>qc[e]))}function sp(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function ip(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function ap(e,t,n){let{reference:r,floating:o}=e;const s=tp(t),i=np(t),a=ep(i),l=Qc(t),c="y"===s,p=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,u=r[a]/2-o[a]/2;let m;switch(l){case"top":m={x:p,y:r.y-o.height};break;case"bottom":m={x:p,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:d};break;case"left":m={x:r.x-o.width,y:d};break;default:m={x:r.x,y:r.y}}switch(Zc(t)){case"start":m[i]-=u*(n&&c?-1:1);break;case"end":m[i]+=u*(n&&c?-1:1)}return m}async function lp(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:s,rects:i,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:p="viewport",elementContext:d="floating",altBoundary:u=!1,padding:m=0}=Kc(t,e),f=sp(m),h=a[u?"floating"===d?"reference":"floating":d],g=ip(await s.getClippingRect({element:null==(n=await(null==s.isElement?void 0:s.isElement(h)))||n?h:h.contextElement||await(null==s.getDocumentElement?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:p,strategy:l})),y="floating"===d?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,b=await(null==s.getOffsetParent?void 0:s.getOffsetParent(a.floating)),v=await(null==s.isElement?void 0:s.isElement(b))&&await(null==s.getScale?void 0:s.getScale(b))||{x:1,y:1},x=ip(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:b,strategy:l}):y);return{top:(g.top-x.top+f.top)/v.y,bottom:(x.bottom-g.bottom+f.bottom)/v.y,left:(g.left-x.left+f.left)/v.x,right:(x.right-g.right+f.right)/v.x}}function cp(e){const t=Hc(...e.map((e=>e.left))),n=Hc(...e.map((e=>e.top)));return{x:t,y:n,width:zc(...e.map((e=>e.right)))-t,height:zc(...e.map((e=>e.bottom)))-n}}function pp(e){const t=Cc(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=yc(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,a=Vc(n)!==s||Vc(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}function dp(e){return gc(e)?e:e.contextElement}function up(e){const t=dp(e);if(!yc(t))return Gc(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=pp(t);let i=(s?Vc(n.width):n.width)/r,a=(s?Vc(n.height):n.height)/o;return i&&Number.isFinite(i)||(i=1),a&&Number.isFinite(a)||(a=1),{x:i,y:a}}const mp=Gc(0);function fp(e){const t=mc(e);return Sc()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:mp}function hp(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),s=dp(e);let i=Gc(1);t&&(r?gc(r)&&(i=up(r)):i=up(e));const a=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==mc(e))&&t}(s,n,r)?fp(s):Gc(0);let l=(o.left+a.x)/i.x,c=(o.top+a.y)/i.y,p=o.width/i.x,d=o.height/i.y;if(s){const e=mc(s),t=r&&gc(r)?mc(r):r;let n=e,o=Rc(n);for(;o&&r&&t!==n;){const e=up(o),t=o.getBoundingClientRect(),r=Cc(o),s=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,p*=e.x,d*=e.y,l+=s,c+=i,n=mc(o),o=Rc(n)}}return ip({width:p,height:d,x:l,y:c})}function gp(e,t){const n=Nc(e).scrollLeft;return t?t.left+n:hp(fc(e)).left+n}function yp(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:gp(e,r)),y:r.top+t.scrollTop}}function bp(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=mc(e),r=fc(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,a=0,l=0;if(o){s=o.width,i=o.height;const e=Sc();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,l=o.offsetTop)}return{width:s,height:i,x:a,y:l}}(e,n);else if("document"===t)r=function(e){const t=fc(e),n=Nc(e),r=e.ownerDocument.body,o=zc(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=zc(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+gp(e);const a=-n.scrollTop;return"rtl"===Cc(r).direction&&(i+=zc(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:a}}(fc(e));else if(gc(t))r=function(e,t){const n=hp(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=yc(e)?up(e):Gc(1);return{width:e.clientWidth*s.x,height:e.clientHeight*s.y,x:o*s.x,y:r*s.y}}(t,n);else{const n=fp(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return ip(r)}function vp(e,t){const n=wc(e);return!(n===t||!gc(n)||Ec(n))&&("fixed"===Cc(n).position||vp(n,t))}function xp(e,t,n){const r=yc(t),o=fc(t),s="fixed"===n,i=hp(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=Gc(0);if(r||!r&&!s)if(("body"!==uc(t)||vc(o))&&(a=Nc(t)),r){const e=hp(t,!0,s,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=gp(o));const c=!o||r||s?Gc(0):yp(o,a);return{x:i.left+a.scrollLeft-l.x-c.x,y:i.top+a.scrollTop-l.y-c.y,width:i.width,height:i.height}}function Tp(e){return"static"===Cc(e).position}function Pp(e,t){if(!yc(e)||"fixed"===Cc(e).position)return null;if(t)return t(e);let n=e.offsetParent;return fc(e)===n&&(n=n.ownerDocument.body),n}function Sp(e,t){const n=mc(e);if(Tc(e))return n;if(!yc(e)){let t=wc(e);for(;t&&!Ec(t);){if(gc(t)&&!Tp(t))return t;t=wc(t)}return n}let r=Pp(e,t);for(;r&&xc(r)&&Tp(r);)r=Pp(r,t);return r&&Ec(r)&&Tp(r)&&!Pc(r)?n:r||function(e){let t=wc(e);for(;yc(t)&&!Ec(t);){if(Pc(t))return t;if(Tc(t))return null;t=wc(t)}return null}(e)||n}const Ep={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s="fixed"===o,i=fc(r),a=!!t&&Tc(t.floating);if(r===i||a&&s)return n;let l={scrollLeft:0,scrollTop:0},c=Gc(1);const p=Gc(0),d=yc(r);if((d||!d&&!s)&&(("body"!==uc(r)||vc(i))&&(l=Nc(r)),yc(r))){const e=hp(r);c=up(r),p.x=e.x+r.clientLeft,p.y=e.y+r.clientTop}const u=!i||d||s?Gc(0):yp(i,l,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+p.x+u.x,y:n.y*c.y-l.scrollTop*c.y+p.y+u.y}},getDocumentElement:fc,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[..."clippingAncestors"===n?Tc(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=_c(e,[],!1).filter((e=>gc(e)&&"body"!==uc(e))),o=null;const s="fixed"===Cc(e).position;let i=s?wc(e):e;for(;gc(i)&&!Ec(i);){const t=Cc(i),n=Pc(i);n||"fixed"!==t.position||(o=null),(s?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||vc(i)&&!n&&vp(e,i))?r=r.filter((e=>e!==i)):o=t,i=wc(i)}return t.set(e,r),r}(t,this._c):[].concat(n),r],i=s[0],a=s.reduce(((e,n)=>{const r=bp(t,n,o);return e.top=zc(r.top,e.top),e.right=Hc(r.right,e.right),e.bottom=Hc(r.bottom,e.bottom),e.left=zc(r.left,e.left),e}),bp(t,i,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:Sp,getElementRects:async function(e){const t=this.getOffsetParent||Sp,n=this.getDimensions,r=await n(e.floating);return{reference:xp(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=pp(e);return{width:t,height:n}},getScale:up,isElement:gc,isRTL:function(e){return"rtl"===Cc(e).direction}};function Cp(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Np(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=dp(e),p=o||s?[...c?_c(c):[],..._c(t)]:[];p.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),s&&e.addEventListener("resize",n)}));const d=c&&a?function(e,t){let n,r=null;const o=fc(e);function s(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function i(a,l){void 0===a&&(a=!1),void 0===l&&(l=1),s();const c=e.getBoundingClientRect(),{left:p,top:d,width:u,height:m}=c;if(a||t(),!u||!m)return;const f={rootMargin:-Wc(d)+"px "+-Wc(o.clientWidth-(p+u))+"px "+-Wc(o.clientHeight-(d+m))+"px "+-Wc(p)+"px",threshold:zc(0,Hc(1,l))||1};let h=!0;function g(t){const r=t[0].intersectionRatio;if(r!==l){if(!h)return i();r?i(!1,r):n=setTimeout((()=>{i(!1,1e-7)}),1e3)}1!==r||Cp(c,e.getBoundingClientRect())||i(),h=!1}try{r=new IntersectionObserver(g,{...f,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(g,f)}r.observe(e)}(!0),s}(c,n):null;let u,m=-1,f=null;i&&(f=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame((()=>{var e;null==(e=f)||e.observe(t)}))),n()})),c&&!l&&f.observe(c),f.observe(t));let h=l?hp(e):null;return l&&function t(){const r=hp(e);h&&!Cp(h,r)&&n();h=r,u=requestAnimationFrame(t)}(),n(),()=>{var e;p.forEach((e=>{o&&e.removeEventListener("scroll",n),s&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=f)||e.disconnect(),f=null,l&&cancelAnimationFrame(u)}}const wp=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:a}=t,l=await async function(e,t){const{placement:n,platform:r,elements:o}=e,s=await(null==r.isRTL?void 0:r.isRTL(o.floating)),i=Qc(n),a=Zc(n),l="y"===tp(n),c=["left","top"].includes(i)?-1:1,p=s&&l?-1:1,d=Kc(t,e);let{mainAxis:u,crossAxis:m,alignmentAxis:f}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&"number"==typeof f&&(m="end"===a?-1*f:f),l?{x:m*p,y:u*c}:{x:u*c,y:m*p}}(t,e);return i===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:s+l.y,data:{...l,placement:i}}}}},Ap=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Kc(e,t),c={x:n,y:r},p=await lp(t,l),d=tp(Qc(o)),u=Jc(d);let m=c[u],f=c[d];if(s){const e="y"===u?"bottom":"right";m=Yc(m+p["y"===u?"top":"left"],m,m-p[e])}if(i){const e="y"===d?"bottom":"right";f=Yc(f+p["y"===d?"top":"left"],f,f-p[e])}const h=a.fn({...t,[u]:m,[d]:f});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[u]:s,[d]:i}}}}}},_p=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:i,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:p=!0,crossAxis:d=!0,fallbackPlacements:u,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:h=!0,...g}=Kc(e,t);if(null!=(n=s.arrow)&&n.alignmentOffset)return{};const y=Qc(o),b=tp(a),v=Qc(a)===a,x=await(null==l.isRTL?void 0:l.isRTL(c.floating)),T=u||(v||!h?[op(a)]:function(e){const t=op(e);return[rp(e),t,rp(t)]}(a)),P="none"!==f;!u&&P&&T.push(...function(e,t,n,r){const o=Zc(e);let s=function(e,t,n){const r=["left","right"],o=["right","left"],s=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?s:i;default:return[]}}(Qc(e),"start"===n,r);return o&&(s=s.map((e=>e+"-"+o)),t&&(s=s.concat(s.map(rp)))),s}(a,h,f,x));const S=[a,...T],E=await lp(t,g),C=[];let N=(null==(r=s.flip)?void 0:r.overflows)||[];if(p&&C.push(E[y]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=Zc(e),o=np(e),s=ep(o);let i="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=op(i)),[i,op(i)]}(o,i,x);C.push(E[e[0]],E[e[1]])}if(N=[...N,{placement:o,overflows:C}],!C.every((e=>e<=0))){var w,A;const e=((null==(w=s.flip)?void 0:w.index)||0)+1,t=S[e];if(t)return{data:{index:e,overflows:N},reset:{placement:t}};let n=null==(A=N.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:A.placement;if(!n)switch(m){case"bestFit":{var _;const e=null==(_=N.filter((e=>{if(P){const t=tp(e.placement);return t===b||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:_[0];e&&(n=e);break}case"initialPlacement":n=a}if(o!==n)return{reset:{placement:n}}}return{}}}},Rp=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:a}=t,{apply:l=()=>{},...c}=Kc(e,t),p=await lp(t,c),d=Qc(o),u=Zc(o),m="y"===tp(o),{width:f,height:h}=s.floating;let g,y;"top"===d||"bottom"===d?(g=d,y=u===(await(null==i.isRTL?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(y=d,g="end"===u?"top":"bottom");const b=h-p.top-p.bottom,v=f-p.left-p.right,x=Hc(h-p[g],b),T=Hc(f-p[y],v),P=!t.middlewareData.shift;let S=x,E=T;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(E=v),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(S=b),P&&!u){const e=zc(p.left,0),t=zc(p.right,0),n=zc(p.top,0),r=zc(p.bottom,0);m?E=f-2*(0!==e||0!==t?e+t:zc(p.left,p.right)):S=h-2*(0!==n||0!==r?n+r:zc(p.top,p.bottom))}await l({...t,availableWidth:E,availableHeight:S});const C=await i.getDimensions(a.floating);return f!==C.width||h!==C.height?{reset:{rects:!0}}:{}}}},kp=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:a,middlewareData:l}=t,{element:c,padding:p=0}=Kc(e,t)||{};if(null==c)return{};const d=sp(p),u={x:n,y:r},m=np(o),f=ep(m),h=await i.getDimensions(c),g="y"===m,y=g?"top":"left",b=g?"bottom":"right",v=g?"clientHeight":"clientWidth",x=s.reference[f]+s.reference[m]-u[m]-s.floating[f],T=u[m]-s.reference[m],P=await(null==i.getOffsetParent?void 0:i.getOffsetParent(c));let S=P?P[v]:0;S&&await(null==i.isElement?void 0:i.isElement(P))||(S=a.floating[v]||s.floating[f]);const E=x/2-T/2,C=S/2-h[f]/2-1,N=Hc(d[y],C),w=Hc(d[b],C),A=N,_=S-h[f]-w,R=S/2-h[f]/2+E,k=Yc(A,R,_),O=!l.arrow&&null!=Zc(o)&&R!==k&&s.reference[f]/2-(R<A?N:w)-h[f]/2<0,$=O?R<A?R-A:R-_:0;return{[m]:u[m]+$,data:{[m]:k,centerOffset:R-k-$,...O&&{alignmentOffset:$}},reset:O}}}),Op=function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){const{placement:n,elements:r,rects:o,platform:s,strategy:i}=t,{padding:a=2,x:l,y:c}=Kc(e,t),p=Array.from(await(null==s.getClientRects?void 0:s.getClientRects(r.reference))||[]),d=function(e){const t=e.slice().sort(((e,t)=>e.y-t.y)),n=[];let r=null;for(let e=0;e<t.length;e++){const o=t[e];!r||o.y-r.y>r.height/2?n.push([o]):n[n.length-1].push(o),r=o}return n.map((e=>ip(cp(e))))}(p),u=ip(cp(p)),m=sp(a);const f=await s.getElementRects({reference:{getBoundingClientRect:function(){if(2===d.length&&d[0].left>d[1].right&&null!=l&&null!=c)return d.find((e=>l>e.left-m.left&&l<e.right+m.right&&c>e.top-m.top&&c<e.bottom+m.bottom))||u;if(d.length>=2){if("y"===tp(n)){const e=d[0],t=d[d.length-1],r="top"===Qc(n),o=e.top,s=t.bottom,i=r?e.left:t.left,a=r?e.right:t.right;return{top:o,bottom:s,left:i,right:a,width:a-i,height:s-o,x:i,y:o}}const e="left"===Qc(n),t=zc(...d.map((e=>e.right))),r=Hc(...d.map((e=>e.left))),o=d.filter((n=>e?n.left===r:n.right===t)),s=o[0].top,i=o[o.length-1].bottom;return{top:s,bottom:i,left:r,right:t,width:t-r,height:i-s,x:r,y:s}}return u}},floating:r.floating,strategy:i});return o.reference.x!==f.reference.x||o.reference.y!==f.reference.y||o.reference.width!==f.reference.width||o.reference.height!==f.reference.height?{reset:{rects:f}}:{}}}},$p=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=Kc(e,t),p={x:n,y:r},d=tp(o),u=Jc(d);let m=p[u],f=p[d];const h=Kc(a,t),g="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const e="y"===u?"height":"width",t=s.reference[u]-s.floating[e]+g.mainAxis,n=s.reference[u]+s.reference[e]-g.mainAxis;m<t?m=t:m>n&&(m=n)}if(c){var y,b;const e="y"===u?"width":"height",t=["top","left"].includes(Qc(o)),n=s.reference[d]-s.floating[e]+(t&&(null==(y=i.offset)?void 0:y[d])||0)+(t?0:g.crossAxis),r=s.reference[d]+s.reference[e]+(t?0:(null==(b=i.offset)?void 0:b[d])||0)-(t?g.crossAxis:0);f<n?f=n:f>r&&(f=r)}return{[u]:m,[d]:f}}}},jp=(e,t,n)=>{const r=new Map,o={platform:Ep,...n},s={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,a=s.filter(Boolean),l=await(null==i.isRTL?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:p,y:d}=ap(c,r,l),u=r,m={},f=0;for(let n=0;n<a.length;n++){const{name:s,fn:h}=a[n],{x:g,y:y,data:b,reset:v}=await h({x:p,y:d,initialPlacement:r,placement:u,strategy:o,middlewareData:m,rects:c,platform:i,elements:{reference:e,floating:t}});p=null!=g?g:p,d=null!=y?y:d,m={...m,[s]:{...m[s],...b}},v&&f<=50&&(f++,"object"==typeof v&&(v.placement&&(u=v.placement),v.rects&&(c=!0===v.rects?await i.getElementRects({reference:e,floating:t,strategy:o}):v.rects),({x:p,y:d}=ap(c,u,l))),n=-1)}return{x:p,y:d,placement:u,strategy:o,middlewareData:m}})(e,t,{...o,platform:s})};var Dp="undefined"!=typeof document?t.useLayoutEffect:t.useEffect;function Lp(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!Lp(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!Lp(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function Ip(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Mp(e,t){const n=Ip(e);return Math.round(t*n)/n}function Fp(e){const t=o.useRef(e);return Dp((()=>{t.current=e})),t}const Bp=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?kp({element:n.current,padding:r}).fn(t):{}:n?kp({element:n,padding:r}).fn(t):{};var o}}),Up=(e,t)=>({...Ap(e),options:[e,t]}),Hp=(e,t)=>({...$p(e),options:[e,t]}),zp=(e,t)=>({..._p(e),options:[e,t]}),Vp=(e,t)=>({...Rp(e),options:[e,t]}),Wp=(e,t)=>({...Op(e),options:[e,t]}),Gp=(e,t)=>({...Bp(e),options:[e,t]}),qp={...o},Xp=qp.useInsertionEffect||(e=>e());function Yp(e){const t=o.useRef((()=>{if("production"!==process.env.NODE_ENV)throw new Error("Cannot call an event handler while rendering.")}));return Xp((()=>{t.current=e})),o.useCallback((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}var Kp="undefined"!=typeof document?t.useLayoutEffect:t.useEffect;let Qp=!1,Zp=0;const Jp=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Zp++;const ed=qp.useId||function(){const[e,t]=o.useState((()=>Qp?Jp():void 0));return Kp((()=>{null==e&&t(Jp())}),[]),o.useEffect((()=>{Qp=!0}),[]),e};let td;"production"!==process.env.NODE_ENV&&(td=new Set);const nd=o.createContext(null),rd=o.createContext(null),od=()=>{var e;return(null==(e=o.useContext(nd))?void 0:e.id)||null},sd=()=>o.useContext(rd);function id(e){return"data-floating-ui-"+e}function ad(e){-1!==e.current&&(clearTimeout(e.current),e.current=-1)}function ld(e){const n=t.useRef(e);return Kp((()=>{n.current=e})),n}const cd=id("safe-polygon");function pd(e,t,n){return n&&!Ic(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}function dd(e,t){let n=e.filter((e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)})),r=n;for(;r.length;)r=e.filter((e=>{var t;return null==(t=r)?void 0:t.some((t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)}))})),n=n.concat(r);return n}const ud="data-floating-ui-focusable";function md(e){return yc(e.target)&&"BUTTON"===e.target.tagName}function fd(e){return Uc(e)}const hd={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},gd={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},yd=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function bd(e){const{open:t=!1,onOpenChange:n,elements:r}=e,s=ed(),i=o.useRef({}),[a]=o.useState((()=>function(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter((e=>e!==n)))||[])}}}())),l=null!=od();if("production"!==process.env.NODE_ENV){const e=r.reference;e&&!gc(e)&&function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const o="Floating UI: "+n.join(" ");var s;null!=(e=td)&&e.has(o)||(null==(s=td)||s.add(o),console.error(o))}("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[c,p]=o.useState(r.reference),d=Yp(((e,t,r)=>{i.current.openEvent=e?t:void 0,a.emit("openchange",{open:e,event:t,reason:r,nested:l}),null==n||n(e,t,r)})),u=o.useMemo((()=>({setPositionReference:p})),[]),m=o.useMemo((()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference})),[c,r.reference,r.floating]);return o.useMemo((()=>({dataRef:i,open:t,onOpenChange:d,elements:m,events:a,floatingId:s,refs:u})),[t,d,m,a,s,u])}function vd(e){void 0===e&&(e={});const{nodeId:t}=e,n=bd({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[a,l]=o.useState(null),[c,p]=o.useState(null),d=(null==i?void 0:i.domReference)||a,u=o.useRef(null),m=sd();Kp((()=>{d&&(u.current=d)}),[d]);const f=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:a,floating:l}={},transform:c=!0,whileElementsMounted:p,open:d}=e,[u,m]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,h]=o.useState(r);Lp(f,r)||h(r);const[g,y]=o.useState(null),[b,v]=o.useState(null),x=o.useCallback((e=>{e!==E.current&&(E.current=e,y(e))}),[]),T=o.useCallback((e=>{e!==C.current&&(C.current=e,v(e))}),[]),P=a||g,S=l||b,E=o.useRef(null),C=o.useRef(null),N=o.useRef(u),w=null!=p,A=Fp(p),_=Fp(i),R=Fp(d),k=o.useCallback((()=>{if(!E.current||!C.current)return;const e={placement:t,strategy:n,middleware:f};_.current&&(e.platform=_.current),jp(E.current,C.current,e).then((e=>{const t={...e,isPositioned:!1!==R.current};O.current&&!Lp(N.current,t)&&(N.current=t,s.flushSync((()=>{m(t)})))}))}),[f,t,n,_,R]);Dp((()=>{!1===d&&N.current.isPositioned&&(N.current.isPositioned=!1,m((e=>({...e,isPositioned:!1}))))}),[d]);const O=o.useRef(!1);Dp((()=>(O.current=!0,()=>{O.current=!1})),[]),Dp((()=>{if(P&&(E.current=P),S&&(C.current=S),P&&S){if(A.current)return A.current(P,S,k);k()}}),[P,S,k,A,w]);const $=o.useMemo((()=>({reference:E,floating:C,setReference:x,setFloating:T})),[x,T]),j=o.useMemo((()=>({reference:P,floating:S})),[P,S]),D=o.useMemo((()=>{const e={position:n,left:0,top:0};if(!j.floating)return e;const t=Mp(j.floating,u.x),r=Mp(j.floating,u.y);return c?{...e,transform:"translate("+t+"px, "+r+"px)",...Ip(j.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,c,j.floating,u.x,u.y]);return o.useMemo((()=>({...u,update:k,refs:$,elements:j,floatingStyles:D})),[u,k,$,j,D])}({...e,elements:{...i,...c&&{reference:c}}}),h=o.useCallback((e=>{const t=gc(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;p(t),f.refs.setReference(t)}),[f.refs]),g=o.useCallback((e=>{(gc(e)||null===e)&&(u.current=e,l(e)),(gc(f.refs.reference.current)||null===f.refs.reference.current||null!==e&&!gc(e))&&f.refs.setReference(e)}),[f.refs]),y=o.useMemo((()=>({...f.refs,setReference:g,setPositionReference:h,domReference:u})),[f.refs,g,h]),b=o.useMemo((()=>({...f.elements,domReference:d})),[f.elements,d]),v=o.useMemo((()=>({...f,...r,refs:y,elements:b,nodeId:t})),[f,y,b,t,r]);return Kp((()=>{r.dataRef.current.floatingContext=v;const e=null==m?void 0:m.nodesRef.current.find((e=>e.id===t));e&&(e.context=v)})),o.useMemo((()=>({...f,context:v,refs:y,elements:b})),[f,y,b,v])}function xd(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,events:s,dataRef:i,elements:a}=e,{enabled:l=!0,visibleOnly:c=!0}=t,p=o.useRef(!1),d=o.useRef(-1),u=o.useRef(!0);o.useEffect((()=>{if(!l)return;const e=mc(a.domReference);function t(){!n&&yc(a.domReference)&&a.domReference===kc(Mc(a.domReference))&&(p.current=!0)}function r(){u.current=!0}return e.addEventListener("blur",t),e.addEventListener("keydown",r,!0),()=>{e.removeEventListener("blur",t),e.removeEventListener("keydown",r,!0)}}),[a.domReference,n,l]),o.useEffect((()=>{if(l)return s.on("openchange",e),()=>{s.off("openchange",e)};function e(e){let{reason:t}=e;"reference-press"!==t&&"escape-key"!==t||(p.current=!0)}}),[s,l]),o.useEffect((()=>()=>{ad(d)}),[]);const m=o.useMemo((()=>({onPointerDown(e){Dc(e.nativeEvent)||(u.current=!1)},onMouseLeave(){p.current=!1},onFocus(e){if(p.current)return;const t=Bc(e.nativeEvent);if(c&&gc(t))try{if(/apple/i.test(navigator.vendor)&&$c().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints)throw Error();if(!t.matches(":focus-visible"))return}catch(e){if(!u.current&&!Uc(t))return}r(!0,e.nativeEvent,"focus")},onBlur(e){p.current=!1;const t=e.relatedTarget,n=e.nativeEvent,o=gc(t)&&t.hasAttribute(id("focus-guard"))&&"outside"===t.getAttribute("data-type");d.current=window.setTimeout((()=>{var e;const s=kc(a.domReference?a.domReference.ownerDocument:document);(t||s!==a.domReference)&&(Oc(null==(e=i.current.floatingContext)?void 0:e.refs.floating.current,s)||Oc(a.domReference,s)||o||r(!1,n,"focus"))}))}})),[i,a.domReference,r,c]);return o.useMemo((()=>l?{reference:m}:{}),[l,m])}const Td="active",Pd="selected";function Sd(e,t,n){const r=new Map,o="item"===n;let s=e;if(o&&e){const{[Td]:t,[Pd]:n,...r}=e;s=r}return{..."floating"===n&&{tabIndex:-1,[ud]:""},...s,...t.map((t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r})).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[n,s]=t;var i;o&&[Td,Pd].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof s&&(null==(i=r.get(n))||i.push(s),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return null==(e=r.get(n))?void 0:e.map((e=>e(...o))).find((e=>void 0!==e))})):e[n]=s)})),e):e),{})}}const Ed=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function Cd(e,t){const[n,r]=e;let o=!1;const s=t.length;for(let e=0,i=s-1;e<s;i=e++){const[s,a]=t[e]||[0,0],[l,c]=t[i]||[0,0];a>=r!=c>=r&&n<=(l-s)*(r-a)/(c-a)+s&&(o=!o)}return o}function Nd(e){void 0===e&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e;let o,s=!1,i=null,a=null,l=performance.now();const c=e=>{let{x:n,y:c,placement:p,elements:d,onClose:u,nodeId:m,tree:f}=e;return function(e){function h(){clearTimeout(o),u()}if(clearTimeout(o),!d.domReference||!d.floating||null==p||null==n||null==c)return;const{clientX:g,clientY:y}=e,b=[g,y],v=Bc(e),x="mouseleave"===e.type,T=Oc(d.floating,v),P=Oc(d.domReference,v),S=d.domReference.getBoundingClientRect(),E=d.floating.getBoundingClientRect(),C=p.split("-")[0],N=n>E.right-E.width/2,w=c>E.bottom-E.height/2,A=function(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}(b,S),_=E.width>S.width,R=E.height>S.height,k=(_?S:E).left,O=(_?S:E).right,$=(R?S:E).top,j=(R?S:E).bottom;if(T&&(s=!0,!x))return;if(P&&(s=!1),P&&!x)return void(s=!0);if(x&&gc(e.relatedTarget)&&Oc(d.floating,e.relatedTarget))return;if(f&&dd(f.nodesRef.current,m).some((e=>{let{context:t}=e;return null==t?void 0:t.open})))return;if("top"===C&&c>=S.bottom-1||"bottom"===C&&c<=S.top+1||"left"===C&&n>=S.right-1||"right"===C&&n<=S.left+1)return h();let D=[];switch(C){case"top":D=[[k,S.top+1],[k,E.bottom-1],[O,E.bottom-1],[O,S.top+1]];break;case"bottom":D=[[k,E.top+1],[k,S.bottom-1],[O,S.bottom-1],[O,E.top+1]];break;case"left":D=[[E.right-1,j],[E.right-1,$],[S.left+1,$],[S.left+1,j]];break;case"right":D=[[S.right-1,j],[S.right-1,$],[E.left+1,$],[E.left+1,j]]}if(!Cd([g,y],D)){if(s&&!A)return h();if(!x&&r){const t=function(e,t){const n=performance.now(),r=n-l;if(null===i||null===a||0===r)return i=e,a=t,l=n,null;const o=e-i,s=t-a,c=Math.sqrt(o*o+s*s);return i=e,a=t,l=n,c/r}(e.clientX,e.clientY);if(null!==t&&t<.1)return h()}Cd([g,y],function(e){let[n,r]=e;switch(C){case"top":return[[_?n+t/2:N?n+4*t:n-4*t,r+t+1],[_?n-t/2:N?n+4*t:n-4*t,r+t+1],...[[E.left,N||_?E.bottom-t:E.top],[E.right,N?_?E.bottom-t:E.top:E.bottom-t]]];case"bottom":return[[_?n+t/2:N?n+4*t:n-4*t,r-t],[_?n-t/2:N?n+4*t:n-4*t,r-t],...[[E.left,N||_?E.top+t:E.bottom],[E.right,N?_?E.top+t:E.bottom:E.top+t]]];case"left":{const e=[n+t+1,R?r+t/2:w?r+4*t:r-4*t],o=[n+t+1,R?r-t/2:w?r+4*t:r-4*t];return[...[[w||R?E.right-t:E.left,E.top],[w?R?E.right-t:E.left:E.right-t,E.bottom]],e,o]}case"right":return[[n-t,R?r+t/2:w?r+4*t:r-4*t],[n-t,R?r-t/2:w?r+4*t:r-4*t],...[[w||R?E.left+t:E.right,E.top],[w?R?E.left+t:E.right:E.left+t,E.bottom]]]}}([n,c]))?!s&&r&&(o=window.setTimeout(h,40)):h()}}};return c.__options={blockPointerEvents:n},c}const wd=e=>{const{arrowRef:n,cornerOffset:r=0,flipCrossAxis:s,flipFallbackAxisSideDirection:i="none",flipFallbackPlacements:a,flipProp:l,isDismissible:c,isOpen:p=!1,offset:d=0,onToggle:u,isFocusableOnHover:m,shiftProp:f,sizeProp:h,positionStrategy:g="absolute",tooltipArrowWidth:y=0,tooltipPlacement:b,trigger:v}=e,[x,T]=t.useState(void 0),[P,S]=t.useState(!1),E=r+y,C=v?.includes(Ne.HOVER),N=v?.includes(Ne.CLICK),w=v?.includes(Ne.FOCUS),{x:A,y:_,floatingStyles:R,refs:k,context:O,placement:$,middlewareData:j}=vd({open:p,onOpenChange:(e,t,n)=>{if(C){if(n===Ne.CLICK&&S((e=>!e)),p&&P&&n===Ne.HOVER)return;if(p&&P&&(n===Ne.CLICK||n===Ne.OUTSIDE_PRESS||n===Ne.ESCAPE_KEY))return S(!1),void u(!1)}u(e)},placement:b,whileElementsMounted:Np,middleware:[(L=d,{...wp(L),options:[L,I]}),Wp(),l&&zp({crossAxis:s,fallbackPlacements:a?(D=a,Array.isArray(D)?D:[D]):void 0,fallbackAxisSideDirection:i}),f&&Up({limiter:Hp({offset:()=>({mainAxis:E})})}),h&&Vp({apply({availableWidth:e}){T(e)}}),Gp({element:n.current,padding:r})],strategy:g});var D,L,I;const M=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:s,elements:{domReference:i}}=e,{enabled:a=!0,event:l="click",toggle:c=!0,ignoreMouse:p=!1,keyboardHandlers:d=!0,stickIfOpen:u=!0}=t,m=o.useRef(),f=o.useRef(!1),h=o.useMemo((()=>({onPointerDown(e){m.current=e.pointerType},onMouseDown(e){const t=m.current;0===e.button&&"click"!==l&&(Ic(t,!0)&&p||(!n||!c||s.current.openEvent&&u&&"mousedown"!==s.current.openEvent.type?(e.preventDefault(),r(!0,e.nativeEvent,"click")):r(!1,e.nativeEvent,"click")))},onClick(e){const t=m.current;"mousedown"===l&&m.current?m.current=void 0:Ic(t,!0)&&p||(!n||!c||s.current.openEvent&&u&&"click"!==s.current.openEvent.type?r(!0,e.nativeEvent,"click"):r(!1,e.nativeEvent,"click"))},onKeyDown(e){m.current=void 0,e.defaultPrevented||!d||md(e)||(" "!==e.key||fd(i)||(e.preventDefault(),f.current=!0),"Enter"===e.key&&r(!n||!c,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!d||md(e)||fd(i)||" "===e.key&&f.current&&(f.current=!1,r(!n||!c,e.nativeEvent,"click"))}})),[s,i,l,p,d,r,n,u,c]);return o.useMemo((()=>a?{reference:h}:{}),[a,h])}(O,{enabled:N}),F=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:s,events:i,elements:a}=e,{enabled:l=!0,delay:c=0,handleClose:p=null,mouseOnly:d=!1,restMs:u=0,move:m=!0}=t,f=sd(),h=od(),g=ld(p),y=ld(c),b=ld(n),v=o.useRef(),x=o.useRef(-1),T=o.useRef(),P=o.useRef(-1),S=o.useRef(!0),E=o.useRef(!1),C=o.useRef((()=>{})),N=o.useRef(!1),w=o.useCallback((()=>{var e;const t=null==(e=s.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t}),[s]);o.useEffect((()=>{if(l)return i.on("openchange",e),()=>{i.off("openchange",e)};function e(e){let{open:t}=e;t||(ad(x),ad(P),S.current=!0,N.current=!1)}}),[l,i]),o.useEffect((()=>{if(!l)return;if(!g.current)return;if(!n)return;function e(e){w()&&r(!1,e,"hover")}const t=Mc(a.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}}),[a.floating,n,r,l,g,w]);const A=o.useCallback((function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const o=pd(y.current,"close",v.current);o&&!T.current?(ad(x),x.current=window.setTimeout((()=>r(!1,e,n)),o)):t&&(ad(x),r(!1,e,n))}),[y,r]),_=Yp((()=>{C.current(),T.current=void 0})),R=Yp((()=>{if(E.current){const e=Mc(a.floating).body;e.style.pointerEvents="",e.removeAttribute(cd),E.current=!1}})),k=Yp((()=>!!s.current.openEvent&&["click","mousedown"].includes(s.current.openEvent.type)));o.useEffect((()=>{if(l&&gc(a.domReference)){var e;const r=a.domReference;return n&&r.addEventListener("mouseleave",i),null==(e=a.floating)||e.addEventListener("mouseleave",i),m&&r.addEventListener("mousemove",t,{once:!0}),r.addEventListener("mouseenter",t),r.addEventListener("mouseleave",o),()=>{var e;n&&r.removeEventListener("mouseleave",i),null==(e=a.floating)||e.removeEventListener("mouseleave",i),m&&r.removeEventListener("mousemove",t),r.removeEventListener("mouseenter",t),r.removeEventListener("mouseleave",o)}}function t(e){if(ad(x),S.current=!1,d&&!Ic(v.current)||u>0&&!pd(y.current,"open"))return;const t=pd(y.current,"open",v.current);t?x.current=window.setTimeout((()=>{b.current||r(!0,e,"hover")}),t):n||r(!0,e,"hover")}function o(e){if(k())return;C.current();const t=Mc(a.floating);if(ad(P),N.current=!1,g.current&&s.current.floatingContext){n||ad(x),T.current=g.current({...s.current.floatingContext,tree:f,x:e.clientX,y:e.clientY,onClose(){R(),_(),k()||A(e,!0,"safe-polygon")}});const r=T.current;return t.addEventListener("mousemove",r),void(C.current=()=>{t.removeEventListener("mousemove",r)})}("touch"!==v.current||!Oc(a.floating,e.relatedTarget))&&A(e)}function i(e){k()||s.current.floatingContext&&(null==g.current||g.current({...s.current.floatingContext,tree:f,x:e.clientX,y:e.clientY,onClose(){R(),_(),k()||A(e)}})(e))}}),[a,l,e,d,u,m,A,_,R,r,n,b,f,y,g,s,k]),Kp((()=>{var e;if(l&&n&&null!=(e=g.current)&&e.__options.blockPointerEvents&&w()){E.current=!0;const e=a.floating;if(gc(a.domReference)&&e){var t;const n=Mc(a.floating).body;n.setAttribute(cd,"");const r=a.domReference,o=null==f||null==(t=f.nodesRef.current.find((e=>e.id===h)))||null==(t=t.context)?void 0:t.elements.floating;return o&&(o.style.pointerEvents=""),n.style.pointerEvents="none",r.style.pointerEvents="auto",e.style.pointerEvents="auto",()=>{n.style.pointerEvents="",r.style.pointerEvents="",e.style.pointerEvents=""}}}}),[l,n,h,a,f,g,w]),Kp((()=>{n||(v.current=void 0,N.current=!1,_(),R())}),[n,_,R]),o.useEffect((()=>()=>{_(),ad(x),ad(P),R()}),[l,a.domReference,_,R]);const O=o.useMemo((()=>{function e(e){v.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function o(){S.current||b.current||r(!0,t,"hover")}d&&!Ic(v.current)||n||0===u||N.current&&e.movementX**2+e.movementY**2<2||(ad(P),"touch"===v.current?o():(N.current=!0,P.current=window.setTimeout(o,u)))}}}),[d,r,n,b,u]),$=o.useMemo((()=>({onMouseEnter(){ad(x)},onMouseLeave(e){k()||A(e.nativeEvent,!1)}})),[A,k]);return o.useMemo((()=>l?{reference:O,floating:$}:{}),[l,O,$])}(O,{enabled:C,handleClose:(B=!!m,B?Nd({requireIntent:!1}):void 0)});var B;const U=xd(O,{enabled:w}),H=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,elements:s,dataRef:i}=e,{enabled:a=!0,escapeKey:l=!0,outsidePress:c=!0,outsidePressEvent:p="pointerdown",referencePress:d=!1,referencePressEvent:u="pointerdown",ancestorScroll:m=!1,bubbles:f,capture:h}=t,g=sd(),y=Yp("function"==typeof c?c:()=>!1),b="function"==typeof c?y:c,v=o.useRef(!1),x=o.useRef(!1),{escapeKey:T,outsidePress:P}=yd(f),{escapeKey:S,outsidePress:E}=yd(h),C=o.useRef(!1),N=Yp((e=>{var t;if(!n||!a||!l||"Escape"!==e.key)return;if(C.current)return;const o=null==(t=i.current.floatingContext)?void 0:t.nodeId,s=g?dd(g.nodesRef.current,o):[];if(!T&&(e.stopPropagation(),s.length>0)){let e=!0;if(s.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)})),!e)return}r(!1,function(e){return"nativeEvent"in e}(e)?e.nativeEvent:e,"escape-key")})),w=Yp((e=>{var t;const n=()=>{var t;N(e),null==(t=Bc(e))||t.removeEventListener("keydown",n)};null==(t=Bc(e))||t.addEventListener("keydown",n)})),A=Yp((e=>{var t;const n=v.current;v.current=!1;const o=x.current;if(x.current=!1,"click"===p&&o)return;if(n)return;if("function"==typeof b&&!b(e))return;const a=Bc(e),l="["+id("inert")+"]",c=Mc(s.floating).querySelectorAll(l);let d=gc(a)?a:null;for(;d&&!Ec(d);){const e=wc(d);if(Ec(e)||!gc(e))break;d=e}if(c.length&&gc(a)&&!a.matches("html,body")&&!Oc(a,s.floating)&&Array.from(c).every((e=>!Oc(d,e))))return;if(yc(a)&&k){const t=Ec(a),n=Cc(a),r=/auto|scroll/,o=t||r.test(n.overflowX),s=t||r.test(n.overflowY),i=o&&a.clientWidth>0&&a.scrollWidth>a.clientWidth,l=s&&a.clientHeight>0&&a.scrollHeight>a.clientHeight,c="rtl"===n.direction,p=l&&(c?e.offsetX<=a.offsetWidth-a.clientWidth:e.offsetX>a.clientWidth),d=i&&e.offsetY>a.clientHeight;if(p||d)return}const u=null==(t=i.current.floatingContext)?void 0:t.nodeId,m=g&&dd(g.nodesRef.current,u).some((t=>{var n;return Fc(e,null==(n=t.context)?void 0:n.elements.floating)}));if(Fc(e,s.floating)||Fc(e,s.domReference)||m)return;const f=g?dd(g.nodesRef.current,u):[];if(f.length>0){let e=!0;if(f.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)})),!e)return}r(!1,e,"outside-press")})),_=Yp((e=>{var t;const n=()=>{var t;A(e),null==(t=Bc(e))||t.removeEventListener(p,n)};null==(t=Bc(e))||t.addEventListener(p,n)}));o.useEffect((()=>{if(!n||!a)return;i.current.__escapeKeyBubbles=T,i.current.__outsidePressBubbles=P;let e=-1;function t(e){r(!1,e,"ancestor-scroll")}function o(){window.clearTimeout(e),C.current=!0}function c(){e=window.setTimeout((()=>{C.current=!1}),Sc()?5:0)}const d=Mc(s.floating);l&&(d.addEventListener("keydown",S?w:N,S),d.addEventListener("compositionstart",o),d.addEventListener("compositionend",c)),b&&d.addEventListener(p,E?_:A,E);let u=[];return m&&(gc(s.domReference)&&(u=_c(s.domReference)),gc(s.floating)&&(u=u.concat(_c(s.floating))),!gc(s.reference)&&s.reference&&s.reference.contextElement&&(u=u.concat(_c(s.reference.contextElement)))),u=u.filter((e=>{var t;return e!==(null==(t=d.defaultView)?void 0:t.visualViewport)})),u.forEach((e=>{e.addEventListener("scroll",t,{passive:!0})})),()=>{l&&(d.removeEventListener("keydown",S?w:N,S),d.removeEventListener("compositionstart",o),d.removeEventListener("compositionend",c)),b&&d.removeEventListener(p,E?_:A,E),u.forEach((e=>{e.removeEventListener("scroll",t)})),window.clearTimeout(e)}}),[i,s,l,b,p,n,r,m,a,T,P,N,S,w,A,E,_]),o.useEffect((()=>{v.current=!1}),[b,p]);const R=o.useMemo((()=>({onKeyDown:N,...d&&{[hd[u]]:e=>{r(!1,e.nativeEvent,"reference-press")},..."click"!==u&&{onClick(e){r(!1,e.nativeEvent,"reference-press")}}}})),[N,r,d,u]),k=o.useMemo((()=>({onKeyDown:N,onMouseDown(){x.current=!0},onMouseUp(){x.current=!0},[gd[p]]:()=>{v.current=!0}})),[N,p]);return o.useMemo((()=>a?{reference:R,floating:k}:{}),[a,R,k])}(O,{outsidePress:!c}),z=function(e,t){var n;void 0===t&&(t={});const{open:r,floatingId:s}=e,{enabled:i=!0,role:a="dialog"}=t,l=null!=(n=Ed.get(a))?n:a,c=ed(),p=null!=od(),d=o.useMemo((()=>"tooltip"===l||"label"===a?{["aria-"+("label"===a?"labelledby":"describedby")]:r?s:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":"alertdialog"===l?"dialog":l,"aria-controls":r?s:void 0,..."listbox"===l&&{role:"combobox"},..."menu"===l&&{id:c},..."menu"===l&&p&&{role:"menuitem"},..."select"===a&&{"aria-autocomplete":"none"},..."combobox"===a&&{"aria-autocomplete":"list"}}),[l,s,p,r,c,a]),u=o.useMemo((()=>{const e={id:s,...l&&{role:l}};return"tooltip"===l||"label"===a?e:{...e,..."menu"===l&&{"aria-labelledby":c}}}),[l,s,c,a]),m=o.useCallback((e=>{let{active:t,selected:n}=e;const r={role:"option",...t&&{id:s+"-option"}};switch(a){case"select":return{...r,"aria-selected":t&&n};case"combobox":return{...r,...t&&{"aria-selected":!0}}}return{}}),[s,a]);return o.useMemo((()=>i?{reference:d,floating:u,item:m}:{}),[i,d,u,m])}(O,{role:"tooltip"}),{getReferenceProps:V,getFloatingProps:W}=function(e){void 0===e&&(e=[]);const t=e.map((e=>null==e?void 0:e.reference)),n=e.map((e=>null==e?void 0:e.floating)),r=e.map((e=>null==e?void 0:e.item)),s=o.useCallback((t=>Sd(t,e,"reference")),t),i=o.useCallback((t=>Sd(t,e,"floating")),n),a=o.useCallback((t=>Sd(t,e,"item")),r);return o.useMemo((()=>({getReferenceProps:s,getFloatingProps:i,getItemProps:a})),[s,i,a])}([M,F,U,H,z]);return{context:O,getFloatingProps:W,getReferenceProps:e=>{const t=V(e);if(w){const e=t.onMouseDown;t.onMouseDown=t=>{e&&e(t);const n=t.currentTarget;if(n&&n!==document.activeElement){n instanceof HTMLElement&&(n.tabIndex>=0||n instanceof HTMLButtonElement||n instanceof HTMLAnchorElement||n instanceof HTMLInputElement||n instanceof HTMLSelectElement||n instanceof HTMLTextAreaElement)&&n.focus()}}}return t},maxWidth:x,middlewareData:j,placement:$,refs:k,x:A,y:_,position:R.position}},Ad=e=>{const{isDismissible:n,isOpen:r,...o}=e,s=pn("Tooltip"),i=`${s}Popover`,a=`${i}__arrow`,l=`${i}__close`,c=`${i}--dismissible`,p="is-hidden",d=t.useMemo((()=>!1===r),[r]);return{classProps:{rootClassName:s,popoverClassName:g(i,{[c]:n,[p]:d}),arrowClassName:a,closeButtonClassName:l},props:o}},_d=t.forwardRef(((e,n)=>{const{children:r,elementType:o="div",enableFlipping:s=!0,enableFlippingCrossAxis:i=!0,enableShifting:a=!0,enableSizing:l=!0,flipFallbackAxisSideDirection:c="none",flipFallbackPlacements:p=["bottom","top"],id:d,isDismissible:u=!1,isFocusableOnHover:m=!1,isOpen:f=!1,onToggle:h,placement:g,positionStrategy:y="absolute",trigger:b=["click","hover"],...v}=e,x=o,{classProps:T,props:P}=Ad({isDismissible:u,isOpen:f,...v}),{styleProps:S,props:E}=en(P),C=Ot(x,{classProps:T.rootClassName,styleProps:S}),N=t.useRef(null),w=t.useRef(n);let A,_,R,k;const O=w.current?.querySelector('[data-spirit-element="tooltip"]'),$=O?.querySelector('[data-spirit-element="tooltip-arrow"]');if(O){const e=window.getComputedStyle(O),t=$&&window.getComputedStyle($);if(A=ac(e.getPropertyValue("--tooltip-max-width").trim())??ac(e.maxWidth),_=ac(e.getPropertyValue("--tooltip-offset"))??0,R=t?ac(t.getPropertyValue("--tooltip-arrow-corner-offset"))??0:0,k=0,$ instanceof HTMLElement){const e=$.offsetWidth;k=e>0?e:ac(t?.width??"")??0}}const{getFloatingProps:j,getReferenceProps:D,maxWidth:L,middlewareData:I,placement:M,refs:F,x:B,y:U,position:H}=wd({arrowRef:N,cornerOffset:R,flipCrossAxis:i,flipFallbackAxisSideDirection:c,flipFallbackPlacements:p,flipProp:s,isDismissible:u,isFocusableOnHover:m,isOpen:f,offset:_,onToggle:h,shiftProp:a,sizeProp:l,positionStrategy:y,tooltipArrowWidth:k,tooltipPlacement:g,trigger:b});return gr.jsx(cc,{value:{anchorRef:F.setPositionReference,arrowRef:N,getFloatingProps:j,getReferenceProps:D,id:d,isDismissible:u,isOpen:f,middlewareData:I,onToggle:h,placement:M,sizeMaxWidth:L,tooltipMaxWidth:A,tooltipRef:F.setFloating,triggerRef:F.setReference,x:B,y:U,position:H},children:gr.jsx(x,{...E,ref:w,...C,children:r})})}));_d.spiritComponent="Tooltip",_d.displayName="Tooltip";const Rd=({label:e,onClick:t,...n})=>{const{t:r}=An(),o=e??r("common.close"),{classProps:s,props:i}=Ad(n),{styleProps:a}=en({...i});return gr.jsxs("button",{type:"button",className:g(s.closeButtonClassName,a.className),style:a.style,onClick:t,"aria-expanded":"true",children:[gr.jsx(Cr,{name:"close","aria-hidden":"true"}),gr.jsx(_s,{children:o})]})};Rd.spiritComponent="TooltipCloseButton";const kd=e=>{const{children:n,...r}=e,{arrowRef:o,getFloatingProps:s,isDismissible:i,isOpen:a,middlewareData:l,onToggle:c,placement:p,tooltipRef:d,x:u,y:m,position:f,sizeMaxWidth:h,tooltipMaxWidth:y}=pc(),{classProps:b,props:v}=Ad({isOpen:a,isDismissible:i,...r}),{styleProps:x,props:T}=en(v),P=t.useMemo((()=>i&&gr.jsx(Rd,{onClick:()=>c(!1),label:"close"})),[i,c]);return gr.jsxs("div",{ref:d,className:g(b.popoverClassName,x.className),...T,...s(),style:{position:f,top:Number.isFinite(m)?m:0,left:Number.isFinite(u)?u:0,...(()=>{if(a&&h&&y)return{maxWidth:y<h?y:h}})(),...x.style},"data-spirit-element":"tooltip","data-spirit-placement":p,children:[n,P,gr.jsx("span",{ref:o,className:b.arrowClassName,"data-spirit-element":"tooltip-arrow",style:{position:"absolute",...(()=>{if(p&&o.current){const{arrow:e}=l,t={top:"bottom",right:"left",bottom:"top",left:"right"}[p.split("-")[0]],n=o.current,r="top"===t||"bottom"===t?n.offsetHeight:(n.offsetHeight+n.offsetWidth)/2;return{left:e?.x,top:e?.y,[t]:r&&-Math.floor(r)}}})()}})]})};kd.spiritComponent="TooltipPopover";const Od={elementType:"button",children:null},$d=e=>{const t={...Od,...e},{elementType:n,children:r,...o}=t,s=n,{id:i,isOpen:a,triggerRef:l,getReferenceProps:c}=pc(),{styleProps:p,props:d}=en(o),u=Ot(s,{triggerStyleProps:p,transferProps:d});return gr.jsx(s,{...d,...u,id:i,ref:l,...c(),children:"function"==typeof r?r({isOpen:a}):r})};$d.spiritComponent="TooltipTrigger",$d.displayName="TooltipTrigger";const jd=(e=!1)=>{const[n,r]=t.useState(e);return{isOpen:n,onToggle:r}},Dd=e=>{const{children:t,isOpen:n,...r}=e,{isOpen:o,onToggle:s}=jd(n);return gr.jsx(_d,{...r,isOpen:o,onToggle:s,children:t})};Dd.spiritComponent="UncontrolledTooltip";const Ld=({feature:e,featureId:n,...r})=>{const{modalContent:o,title:s,tooltipContent:i}=e,{classProps:a}=Jl(r),[l,c]=er(!1),[p,d]=t.useState(!1);return o?gr.jsxs("div",{className:a.body.featureTitle,children:[gr.jsx(Cr,{name:"check-plain",boxSize:16}),gr.jsx("button",{type:"button",onClick:()=>d(!0),className:g(a.body.featureTitleText,"text-underlined-dotted"),children:s}),gr.jsx(bl,{id:`${n}-modal`,isOpen:p,onClose:()=>d(!1),children:gr.jsxs(Pl,{isScrollable:!0,children:[gr.jsx(Cl,{children:s}),gr.jsx(vl,{children:o})]})})]}):i?gr.jsxs(_d,{elementType:"div",id:`${n}-tooltip`,isDismissible:!0,isOpen:l,onToggle:c,placement:"top",trigger:["click"],UNSAFE_className:a.body.featureTitle,children:[gr.jsx(Cr,{name:"check-plain",boxSize:16}),gr.jsx($d,{elementType:"button",UNSAFE_className:g(a.body.featureTitleText,"text-underlined-dotted"),children:s}),gr.jsx(kd,{children:gr.jsx("div",{children:i})})]}):gr.jsxs("div",{className:a.body.featureTitle,children:[gr.jsx(Cr,{name:"check-plain",boxSize:16}),gr.jsx("div",{className:a.body.featureTitleText,id:`${n}-title`,children:s})]})};Ld.spiritComponent="PricingPlanFeatureTitle";const Id={description:void 0,elementType:"div",features:[]},Md=e=>{const t={...Id,...e},{description:n,elementType:r,features:o,id:s,...i}=t,a=r,{classProps:l,props:c}=Jl(i),{styleProps:p,props:d}=en(c),u=Ot(a,{classProps:l.body.root,styleProps:p});return gr.jsxs(a,{...d,...u,children:[n&&gr.jsx("div",{children:n}),gr.jsx("ul",{className:l.body.featureList,children:(o??[]).map(((e,t)=>{const n=`featureItem-${t}`,r=`${s}-feature-${t}`;return gr.jsxs("li",{className:l.body.featureItem,children:[gr.jsx(Ld,{feature:e,featureId:r}),gr.jsx("div",{className:l.body.featureDescription,children:e.description})]},n)}))})]})};Md.spiritComponent="PricingPlanBody";const Fd={elementType:"footer"},Bd=e=>{const t={...Fd,...e},{children:n,elementType:r,...o}=t,s=r,{classProps:i,props:a}=Jl(o),{styleProps:l,props:c}=en(a),p=Ot(s,{classProps:i.footer,styleProps:l});return gr.jsx(s,{...c,...p,children:n})};Bd.spiritComponent="PricingPlanFooter";const Ud=e=>{const{children:t,...n}=e,r=pn("ProductLogo"),{styleProps:o,props:s}=en(n);return gr.jsx("div",{...s,className:g(r,o.className),style:o.style,children:t})};function Hd(e){const{inputPosition:t=te.START,isItem:n,isLabelHidden:r,validationState:o,...s}=e,{isDisabled:i}=s,a=pn("Radio"),l=`${a}--disabled`,c=`${a}--item`,p=`${a}__input`,d=jn(a,t),u=`${a}__label`,m=`${a}__label--hidden`,f=`${a}__text`,h=`${a}__helperText`,y=`${a}--${o}`;return{classProps:{root:g(a,{[d]:d,[l]:i,[c]:n,[y]:o}),label:g(u,{[m]:r}),input:p,text:f,helperText:h},props:s}}Ud.spiritComponent="ProductLogo";const zd=t.forwardRef(((e,t)=>{const{classProps:n,props:r}=Hd(e),{"aria-describedby":o="",helperText:s,id:i,isChecked:a,isDisabled:l,label:c,onChange:p,value:d,...u}=r,{styleProps:m,props:f}=en(u),[h,y]=rn(o);return gr.jsxs("div",{style:m.style,className:g(n.root,m.className),children:[gr.jsx("input",{...f,...h,type:"radio",id:i,className:n.input,disabled:l,checked:a,onChange:p,value:d,ref:t}),gr.jsxs("div",{className:n.text,children:[gr.jsx(Ls,{UNSAFE_className:n.label,htmlFor:i,children:c}),gr.jsx(js,{UNSAFE_className:n.helperText,id:`${i}__helperText`,registerAria:y,helperText:s})]})]})}));zd.spiritComponent="Radio",zd.displayName="Radio";const Vd="Scroll right",Wd="Scroll left",Gd="Scroll down",qd="Scroll up",Xd=Q.VERTICAL,Yd="shadows",Kd=({viewportRef:e,direction:n})=>{const r=t.useRef(null);t.useEffect((()=>()=>{r.current&&clearTimeout(r.current)}),[]);return{handleScroll:t.useCallback((t=>{if(!e.current)return;const o=ee(n),s=o?re.LEFT:re.TOP,i=o?e.current.scrollLeft:e.current.scrollTop,a=o?e.current.scrollWidth-e.current.clientWidth:e.current.scrollHeight-e.current.clientHeight;e.current.scrollTo({[s]:i,behavior:"auto"}),r.current&&clearTimeout(r.current);const l=Math.max(0,Math.min(i+t,a));r.current=setTimeout((()=>{e.current&&e.current.scrollTo({[s]:l,behavior:"smooth"})}),10)}),[e,n])}},Qd=(e,t,n=300)=>{const r=(e=>e?{start:Wd,end:Vd}:{top:qd,bottom:Gd})(e),o={...r,...t};return{arrows:[{icon:e?"chevron-left":"chevron-up",label:e?o.start??r.start:o.top??r.top,step:-n},{icon:e?"chevron-right":"chevron-down",label:e?o.end??r.end:o.bottom??r.bottom,step:n}]}},Zd=({direction:e,isScrollbarDisabled:t,isScrolledAtEnd:n,isScrolledAtStart:r,overflowDecorators:o=Yd})=>{const s=pn("ScrollView"),i=`${s}--${e}`,a=`${s}--scrollbarDisabled`,l=`${s}__viewport`,c=`${s}__content`,p=`${s}__overflowDecorators`,d={shadows:`${p}--shadows`,borders:`${p}--borders`,both:g(`${p}--shadows`,`${p}--borders`)}[o],u="is-scrolled-at-start",m="is-scrolled-at-end",f=`${s}__arrows`;return{classProps:{root:g(s,i,{[a]:t,[m]:n,[u]:r}),viewport:l,content:c,overflowDecorators:g(p,d),arrows:f}}},Jd=e=>{const{ariaLabelArrows:t,direction:n,scrollStep:r,viewportRef:o,...s}=e,{classProps:i}=Zd({direction:n}),{styleProps:a,props:l}=en(s),c=Ot("button",{classProps:i.arrows,styleProps:a}),p=ee(n),{arrows:d}=Qd(p,t,r),{handleScroll:u}=Kd({viewportRef:o,direction:n});return gr.jsx("div",{...l,...c,children:d.map((({icon:e,label:t,step:n})=>gr.jsx(Qs,{"aria-label":t,onClick:()=>u(n),size:"small",isSymmetrical:!0,children:gr.jsx(Cr,{name:e})},e)))})};Jd.spiritComponent="ScrollViewArrows";const eu=({viewportReference:e,contentReference:n,direction:r})=>{const[o,s]=t.useState(!1),[i,a]=t.useState(!1),l=()=>{const t=ee(r),l=t?re.LEFT:re.TOP,c=t?re.RIGHT:re.BOTTOM,p=(()=>{if(!n.current||!e.current)return null;const t=n.current.getBoundingClientRect(),r=e.current.getBoundingClientRect();return{[re.BOTTOM]:t.bottom-r.bottom,[re.LEFT]:t.left-r.left,[re.RIGHT]:t.right-r.right,[re.TOP]:t.top-r.top}})();if(!p)return;const d=p[l]<=-1,u=p[c]>=1;d!==o&&s(d),u!==i&&a(u)},c=t.useCallback(Fe(l,50),[l]);return Hn({ref:e,onResize:c}),t.useEffect(l,[]),{isScrolledAtEnd:i,isScrolledAtStart:o,onScroll:Fe(l,50)}},tu=e=>{const{ariaLabelArrows:n,arrowsScrollStep:r=300,children:o,direction:s=Xd,hasArrows:i=!1,isScrollbarDisabled:a,overflowDecorators:l=Yd,...c}=e,p=t.useRef(null),d=t.useRef(null),{isScrolledAtEnd:u,isScrolledAtStart:m,onScroll:f}=eu({contentReference:p,direction:s,viewportReference:d}),{classProps:h}=Zd({direction:s,isScrollbarDisabled:a,isScrolledAtStart:m,isScrolledAtEnd:u,overflowDecorators:l}),{styleProps:y,props:b}=en(c);return gr.jsxs("div",{...b,...y,className:g(h.root,y.className),children:[gr.jsx("div",{className:h.viewport,onScroll:f,ref:d,tabIndex:0,children:gr.jsx("div",{className:h.content,ref:p,children:o})}),gr.jsx("div",{className:h.overflowDecorators,"aria-hidden":"true"}),i&&gr.jsx(Jd,{ariaLabelArrows:n,direction:s,scrollStep:r,viewportRef:d})]})};tu.spiritComponent="ScrollView";const nu={[W.XSMALL]:{paddingY:{mobile:"space-900",tablet:"space-1000"}},[W.SMALL]:{paddingY:{mobile:"space-1000",tablet:"space-1100"}},[W.MEDIUM]:{paddingY:{mobile:"space-1100",tablet:"space-1300"}},[W.LARGE]:{paddingY:{mobile:"space-1200",tablet:"space-1400"}},[W.XLARGE]:{paddingY:{mobile:"space-1400",tablet:"space-1600"}}},ru=(e={})=>{const{size:t}=e;return{modifiedProps:t?{...nu[t],...e}:e}},ou=e=>{const{backgroundColor:t}=e||{},n=pn(`bg-${t}`),r=t?n:"";return{classProps:g({[r]:t})}},su={elementType:"section",hasContainer:!0,size:void 0},iu=t.forwardRef(((e,t)=>{const n={...su,...e},{elementType:r=su.elementType,backgroundColor:o,children:s,containerProps:i,hasContainer:a,...l}=n,c=r,{classProps:p}=ou({backgroundColor:o}),{modifiedProps:d}=ru(l),{styleProps:u,props:m}=en(d,{paddingTop:ce.paddingTop,paddingBottom:ce.paddingBottom,paddingY:ce.paddingY,textAlignment:pe.textAlignment}),f=Ot(c,{classProps:p,styleProps:u});return gr.jsx(c,{...m,...f,ref:t,children:a?gr.jsx(qs,{...i,children:s}):s})}));iu.spiritComponent="Section",iu.displayName="Section";const au=t.createContext({isMultiselect:!1,name:"",selectedValue:[],setSelectedValue:()=>{},onSelectionChange:()=>{}}),lu=au.Provider,cu=e=>{const{isFluid:t,variant:n=Y.OUTLINE,...r}=e,o=pn("SegmentedControl"),s=`${o}--fluid`,i=`${o}Item`,a=`${i}__input`,l=`${i}__label`;return{classProps:{root:g(o,`${o}--${n}`,{[s]:t}),input:a,label:l},props:r}},pu={isFluid:!1,isMultiselect:!1,variant:Y.OUTLINE},du=e=>{const t={...pu,...e},{children:n,isMultiselect:r,label:o,name:s,onSelectionChange:i,selectedValue:a,setSelectedValue:l,...c}=t,{classProps:p,props:d}=cu(c),{styleProps:u,props:m}=en(d),f={isMultiselect:r,name:s,selectedValue:a,setSelectedValue:l,onSelectionChange:i};return gr.jsx(lu,{value:f,children:gr.jsxs("fieldset",{...m,...u,className:g(p.root,u.className),children:[gr.jsx(_s,{elementType:"legend",children:o}),n]})})};du.spiritComponent="SegmentedControl";const uu=t.forwardRef(((e,n)=>{const{isMultiselect:r,name:o,onSelectionChange:s,selectedValue:i,setSelectedValue:a}=t.useContext(au),{id:l,isDisabled:c,value:p,children:d,...u}=e,{classProps:m,props:f}=cu(u),{styleProps:h,props:y}=en(f),b=r?Array.isArray(i)&&i.includes(String(p)):i===String(p);return gr.jsxs(gr.Fragment,{children:[gr.jsx("input",{...y,...h,...c&&{disabled:!0},className:g(m.input,h.className),type:r?"checkbox":"radio",name:o,id:l,value:p,checked:b,onChange:()=>(e=>{if(c)return;let t;if(r){const n=Array.isArray(i)?i:[];t=n.includes(e)?n.filter((t=>t!==e)):[...n,e]}else t=e;a(t),s&&s(t)})(String(p))}),gr.jsx("label",{ref:n,htmlFor:l,...h,className:g(m.label,h.className),children:d})]})}));uu.spiritComponent="SegmentedControlItem",uu.displayName="SegmentedControlItem";const mu=({isDisabled:e,isFluid:t,isLabelHidden:n,isRequired:r,size:o,validationState:s})=>{const i=pn("Select"),a=`${i}--fluid`,l=`${i}--disabled`,c=`${i}--${o}`,p=`${i}--${s}`,d=`${i}__label`,u=`${d}--required`,m=`${d}--hidden`,f=`${i}__inputContainer`,h=`${i}__input`,y=`${i}__icon`,b=`${i}__validationText`,v=`${i}__helperText`;return{classProps:{root:g(i,{[l]:e,[a]:t,[c]:o,[p]:s}),label:g(d,{[u]:r,[m]:n}),container:f,input:h,icon:y,validationText:b,helperText:v}}},fu=t.forwardRef(((e,t)=>{const{"aria-describedby":n="",children:r,hasValidationIcon:o,helperText:s,id:i,isDisabled:a,isFluid:l,isLabelHidden:c,isRequired:p,label:d,size:u=V.MEDIUM,validationState:m,validationText:f,...h}=e,{classProps:y}=mu({isDisabled:a,isFluid:l,isLabelHidden:c,isRequired:p,size:u,validationState:m}),{styleProps:b,props:v}=en(h),[x,T]=rn(n),P=Fs({validationState:m,validationText:f});return gr.jsxs("div",{...b,className:g(y.root,b.className),children:[gr.jsx(Ls,{htmlFor:i,UNSAFE_className:y.label,children:d}),gr.jsxs("div",{className:y.container,children:[gr.jsx("select",{...v,...x,id:i,className:y.input,disabled:a,required:p,ref:t,children:r}),gr.jsx("div",{className:y.icon,children:gr.jsx(Cr,{name:"chevron-down",boxSize:u===V.SMALL?16:20})})]}),gr.jsx(js,{UNSAFE_className:y.helperText,id:`${i}__helperText`,registerAria:T,helperText:s}),m&&gr.jsx(Ms,{UNSAFE_className:y.validationText,...o&&{hasValidationStateIcon:m},id:`${i}__validationText`,validationText:f,registerAria:T,role:P})]})}));function hu(e){const{size:t,...n}=e||{},r=pn("Skeleton"),o=`${r}--${t}`,s=`${r}--text`,i=`${r}--heading`,a=`${r}__item`;return{classProps:{root:g(r,{[o]:t}),text:s,heading:i,item:a},props:n}}fu.spiritComponent="Select",fu.displayName="Select";const gu=()=>{const{classProps:e}=hu();return gr.jsx("div",{className:g(e.item),"aria-hidden":"true"})};gu.spiritComponent="SkeletonItem";const yu={size:W.MEDIUM,lines:1,elementType:"div"},bu=e=>{const t={...yu,...e},{elementType:n,lines:r,...o}=t,s=n,{classProps:i,props:a}=hu(o),{styleProps:l,props:c}=en(a),p=Ot(s,{classProps:i.root,classPropsText:i.text,styleProps:l,otherProps:c}),d=[...Array(r??1).keys()];return gr.jsx(s,{...c,...p,children:d.map((e=>gr.jsx(gu,{},`skeleton-item-${e.toString()}`)))})};bu.spiritComponent="SkeletonText",bu.displayName="SkeletonText";const vu={size:W.MEDIUM,lines:1,elementType:"div"},xu=e=>{const t={...vu,...e},{elementType:n,lines:r,...o}=t,s=n,{classProps:i,props:a}=hu(o),{styleProps:l,props:c}=en(a),p=Ot(s,{classProps:i.root,classPropsHeading:i.heading,styleProps:l,otherProps:c}),d=[...Array(r??1).keys()];return gr.jsx(s,{...c,...p,children:d.map((e=>gr.jsx(gu,{},`skeleton-item-${e.toString()}`)))})};xu.spiritComponent="SkeletonHeading",xu.displayName="SkeletonHeading";const Tu=(e,t)=>{if(!t)return{};const n=`--${e}`;return{[n]:`${t?.toString()}px`}},Pu=(e,t)=>{const n={},r=`--${P}radius-`;return"object"==typeof t&&null!==t?Object.keys(t).forEach((o=>{const s="mobile"===o?"":`-${o}`,i=t[o];n[`--${e}${s}`]=`var(${r}${i})`})):t&&(n[`--${e}`]=`var(${r}${t})`),n},Su={borderRadius:j[400],elementType:"div"},Eu=e=>{const t={...Su,...e},{elementType:n,...r}=t,o=n,{classProps:s,skeletonShapeStyleProps:i,props:a}=(e=>{const{height:t,width:n,borderRadius:r,...o}=e,s=pn("Skeleton"),i=g(s,`${s}--shape`),a=`${P}skeleton-shape`;return{classProps:i,skeletonShapeStyleProps:{...Tu(`${a}-width`,n),...Tu(`${a}-height`,t),...r?Pu(`${a}-radius`,r):{}},props:o}})(r),{styleProps:l,props:c}=en(a),p=Ot(o,{classProps:s,styleProps:l,skeletonShapeStyleProps:i,otherProps:c});return gr.jsx(o,{...c,...p})};function Cu(e){const{...t}=e;return{classProps:pn("SkipLink"),props:t}}Eu.spiritComponent="SkeletonShape",Eu.displayName="SkeletonShape";const Nu={elementType:"a"},wu=t.forwardRef(((e,t)=>{const n={...Nu,...e},{elementType:r=Nu.elementType,children:o,...s}=n,{classProps:i,props:a}=Cu(s),{styleProps:l,props:c}=en(a),p=Ot("a",{classProps:i,styleProps:l,otherProps:c});return gr.jsx(r,{...c,...p,href:s.href,ref:t,children:o})}));wu.spiritComponent="SkipLink",wu.displayName="SkipLink";function Au(e){const{isDisabled:t,isFluid:n,isLabelHidden:r,validationState:o,...s}=e,i=pn("Slider"),a=`${i}--disabled`,l=`${i}--fluid`,c=`${i}--${o}`,p=`${i}__label`,d=`${i}__label--hidden`,u=`${i}__input`,m=`${i}__helperText`,f=`${i}__validationText`;return{classProps:{root:g(i,{[a]:t,[l]:n,[c]:o}),label:g(p,{[d]:r}),input:u,helperText:m,validationText:f},props:s}}const _u={max:100,min:0,step:1},Ru=t.forwardRef(((e,t)=>{const n={..._u,...e},{"aria-describedby":r,hasValidationIcon:o,helperText:s,id:i,isDisabled:a,label:l,max:c,min:p,step:d,validationState:u,validationText:m,value:f,...h}=n,{classProps:y,props:b}=Au({...h,isDisabled:a,validationState:u}),{styleProps:v,props:x}=en(b),[T,P]=rn(r),S=Fs({validationState:u,validationText:m}),E="--slider-position",C=e=>`${Math.round(100*(e-p)/(c-p))}%`;return gr.jsxs("div",{...v,...x,className:g(y.root,v.className),children:[gr.jsx(Ls,{htmlFor:i,UNSAFE_className:y.label,children:l}),gr.jsx("input",{...T,className:y.input,id:i,onInput:e=>{const{target:t}=e,{value:n}=t;t.style.setProperty(E,C(Number(n)))},style:{[E]:`${C(f)}`},type:"range",min:p,max:c,step:d,value:f,disabled:a,ref:t}),gr.jsx(js,{UNSAFE_className:y.helperText,helperText:s,id:`${i}__helperText`,registerAria:P}),u&&gr.jsx(Ms,{UNSAFE_className:y.validationText,...o&&{hasValidationStateIcon:u},id:`${i}__validationText`,registerAria:P,validationText:m,role:S})]})}));function ku(){return{classProps:pn("SplitButton")}}Ru.spiritComponent="Slider",Ru.displayName="Slider";const Ou={color:M.PRIMARY,size:V.MEDIUM},$u=e=>{const t={...Ou,...e},{children:n,color:r,size:o,isDisabled:s,...i}=t,{classProps:a}=ku(),{styleProps:l,props:c}=en(i);return gr.jsx(es,{value:{color:r,size:o,isDisabled:s},children:gr.jsx("div",{...l,...c,className:g(a,l.className),children:n})})},ju={dropdownPlacement:"bottom-end",dropdownTriggerIconName:"chevron-down"},Du=({children:e,...t})=>{const{styleProps:n,props:r}=en(t);return gr.jsx("div",{...r,...n,children:e})};Du.spiritComponent="TabContent";const Lu=t.createContext({selectedId:"",selectTab:e=>{},onSelectionChange:(e,t)=>{}}),Iu=Lu.Provider,Mu=Lu.Consumer,Fu=()=>t.useContext(Lu);function Bu(e={selectedId:"",forTabPane:"",id:""}){const{spacing:t}=Fu(),{selectedId:n,forTabPane:r,id:o,...s}=e,i=pn("Tabs"),a=`${i}__item`,l=`${i}__link`,c=`${i}Pane`,p="is-selected",d=Qn(t,"tabs");return{classProps:{item:a,link:g(l,{[p]:!!r&&!!n&&n===r}),pane:g(c,{[p]:!!o&&!!n&&n===o}),root:i},props:s,styleProps:d}}const Uu=({children:e,forTabPane:t,onClick:n,...r})=>{const{selectTab:o,selectedId:s,onSelectionChange:i}=Fu(),{classProps:a}=Bu({forTabPane:t,selectedId:s}),{styleProps:l,props:c}=en(r);return gr.jsx("li",{className:a.item,role:"presentation",children:gr.jsx("button",{...c,...l,type:"button",className:g(a.link,l.className),role:"tab","aria-selected":s===t,id:`${t}-tab`,"aria-controls":t.toString(),onClick:e=>{o(t),n&&n(e),i&&i(s,t)},children:e})})};Uu.spiritComponent="TabItem";const Hu={itemProps:{}},zu=t.forwardRef(((e,t)=>{const n={...Hu,...e},{elementType:r="a",children:o,itemProps:s={},routerOptions:i,...a}=n,{href:l}=a,c=r,{classProps:p}=Bu(),{styleProps:d,props:u}=en(s),m=Ot(c,{classProps:p.link}),f=Fn({...a,routerOptions:i});return gr.jsx("li",{...d,...u,className:g(p.item,d.className),role:"presentation",children:gr.jsx(c,{...a,...m,href:l,onClick:f,ref:t,children:o})})}));zu.spiritComponent="TabLink",zu.displayName="TabLink";const Vu=({children:e,...t})=>{const{classProps:n,styleProps:r}=Bu(),{styleProps:o,props:s}=en(t),i={style:{...o.style,...r}};return gr.jsx("ul",{...s,...o,...i,className:g(n.root,o.className),role:"tablist",children:e})};Vu.spiritComponent="TabList";const Wu=({children:e,id:t,...n})=>{const{selectedId:r}=Fu(),{classProps:o}=Bu({id:t,selectedId:r}),{styleProps:s,props:i}=en(n);return r===t?gr.jsx("div",{...i,...s,id:t.toString(),className:g(o.pane,s.className),role:"tabpanel","aria-labelledby":`${t}-tab`,children:e}):null};Wu.spiritComponent="TabPane";const Gu=({children:e,selectedTab:t,toggle:n,onSelectionChange:r,spacing:o})=>gr.jsx(Iu,{value:{selectedId:t,selectTab:n,onSelectionChange:r,spacing:o},children:e});Gu.spiritComponent="Tabs";const qu=e=>{const[n,r]=t.useState(e);return{selectedId:n,selectTab:t.useCallback((e=>{r(e)}),[])}},Xu=({children:e,defaultSelectedTab:t,onSelectionChange:n,spacing:r})=>{const{selectedId:o,selectTab:s}=qu(t);return gr.jsx(Iu,{value:{selectedId:o,selectTab:s,onSelectionChange:n,spacing:r},children:e})};Xu.spiritComponent="UncontrolledTabs";const Yu={NEUTRAL:"neutral",SELECTED:"selected"},Ku=(e,t)=>{if(!e)return{};const n=Object.keys(N).includes(e)?`${x.EMOTION}-`:"",r=t?U.SUBTLE:U.BASIC,o=t?U.SUBTLE:U.BASIC,s=t?U.BASIC:U.SUBTLE;return{[`border-${n}${e}-${r}`]:!0,[`bg-${n}${e}-${o}`]:!0,[`text-${n}${e}-${s}`]:!0}};function Qu(e){const{color:t,isDisabled:n,isSubtle:r,size:o,...s}=e,i=pn("Tag"),a=`${i}--${t}`,l=`${i}--disabled`,c=`${i}--${o}`,p=`${i}--subtle`;return{classProps:g(i,{[a]:t,[l]:n,[c]:o,[p]:r,...!n&&Ku(t,r)}),props:s}}const Zu={color:Yu.NEUTRAL,elementType:"span",isSubtle:!1,size:W.MEDIUM},Ju=t.forwardRef(((e,t)=>{const n={...Zu,...e},{elementType:r=Zu.elementType,children:o,...s}=n,i=r,{classProps:a,props:l}=Qu(s),{styleProps:c,props:p}=en(l),d=Ot(i,{classProps:a,styleProps:c,otherProps:p});return gr.jsx(i,{...p,...d,ref:t,children:o})}));function em(e){const{emphasis:t,size:n,textColor:r,...o}=e,s=pn("typography-body"),i=pn(r?`text-${r}`:"");return{classProps:g(`${s}-${n}-${t}`,{[i]:!!r}),props:o}}Ju.spiritComponent="Tag",Ju.displayName="Tag";const tm={elementType:"p",emphasis:H.REGULAR,size:W.MEDIUM},nm=e=>{const t={...tm,...e},{elementType:n,children:r,...o}=t,s=n,{classProps:i,props:a}=em(o),{styleProps:l,props:c}=en(a,{isTextBalanced:pe.isTextBalanced,textAlignment:pe.textAlignment,textHyphens:pe.textHyphens,textWordBreak:pe.textWordBreak}),p=Ot(s,{classProps:i,styleProps:l,otherProps:c});return gr.jsx(s,{...c,...p,children:r})};nm.spiritComponent="Text",nm.displayName="Text";const rm=t.forwardRef(((e,t)=>{const{classProps:n,props:r}=function(e){const{isMultiline:t,id:n,...r}=e;return{classProps:{input:`${pn(t?"TextArea":"TextField")}__input`},props:{...r,isMultiline:t,id:n}}}(e),{id:o,isDisabled:s,isMultiline:i,isRequired:a,inputWidth:l,type:c,...p}=r,{props:d}=en(p),u=i?"textarea":"input",m=i?void 0:c;return gr.jsx(u,{...d,className:n.input,disabled:s,id:o,required:a,size:l,type:m,ref:t})}));rm.spiritComponent="TextFieldBaseInput",rm.displayName="TextFieldBaseInput";const om=e=>{const{t:t}=An(),{children:n,isPasswordShown:r,onToggleClick:o,isDisabled:s,size:i}=e,{classProps:a}=function(){const e=pn("TextField");return{classProps:{passwordToggle:`${e}__passwordToggle`,passwordToggleButton:`${e}__passwordToggle__button`,passwordToggleIcon:`${e}__passwordToggle__icon`}}}(),l=t(r?"textField.password.hide":"textField.password.show");return gr.jsxs("div",{className:a.passwordToggle,children:[n,gr.jsx("button",{className:a.passwordToggleButton,type:"button",role:"switch","aria-checked":!!r,"aria-label":l,onClick:()=>o(),disabled:s,children:gr.jsx("span",{className:a.passwordToggleIcon,children:gr.jsx(Cr,{name:"visibility-"+(r?"off":"on"),boxSize:i===V.SMALL?16:20})})})]})};om.spiritComponent="TextFieldBasePasswordToggle";function sm(e){const n=e.displayName||e.name||"Component",r=(n,r)=>{const{isPasswordShown:o,passwordToggle:s}=(()=>{const[e,n]=t.useState(!1);return{isPasswordShown:e,passwordToggle:()=>n(!e)}})(),{hasPasswordToggle:i,isDisabled:a,size:l,...c}=n;return i?gr.jsx(om,{isDisabled:a,isPasswordShown:o,onToggleClick:s,size:l,children:gr.jsx(e,{...c,type:o?"text":"password",isDisabled:a,ref:r})}):gr.jsx(e,{...c,isDisabled:a,ref:r})};return r.displayName=`withPasswordToggle(${n})`,r}sm.spiritComponent="withPasswordToggle";const im=t.forwardRef(sm(rm)),am=t.forwardRef(((e,t)=>{const{"aria-describedby":n="",counterProps:r,hasValidationIcon:o,helperText:s,id:i,label:a,size:l=V.MEDIUM,validationState:c,validationText:p,...d}=e,{classProps:u,props:m}=function(e){const{isFluid:t,isMultiline:n,isLabelHidden:r,size:o,validationState:s,...i}=e,{isDisabled:a,isRequired:l}=i,c=pn(n?"TextArea":"TextField"),p=`${c}--disabled`,d=`${c}--fluid`,u=`${c}--${o}`,m=`${c}--${s}`,f=`${c}__input`,h=`${c}__label`,y=`${c}__label--required`,b=`${c}__label--hidden`,v=`${c}__validationText`,x=`${c}__passwordToggle`,T=`${c}__passwordToggle__button`,P=`${c}__passwordToggle__icon`,S=`${c}__helperText`,E=`${c}__counter`;return{classProps:{root:g(c,{[p]:a,[d]:t,[m]:s,[u]:o}),label:g(h,{[y]:l,[b]:r}),input:f,helperText:S,validationText:v,passwordToggle:x,passwordToggleButton:T,passwordToggleIcon:P,counter:E},props:{...i,isMultiline:n}}}({id:i,size:l,validationState:c,...d}),{styleProps:f,props:h}=en(m),[y,b]=rn(n),v=Fs({validationState:c,validationText:p}),x=s||c&&p,T=gr.jsx(js,{UNSAFE_className:u.helperText,id:`${i}__helper-text`,registerAria:b,helperText:s}),P=c?gr.jsx(Ms,{UNSAFE_className:u.validationText,elementType:"span",...o&&{hasValidationStateIcon:c},id:`${i}__validation-text`,validationText:p,registerAria:b,role:v}):null,S=r?gr.jsx(Os,{...r,id:i,registerAria:b,UNSAFE_className:u.counter}):null;return gr.jsxs("div",{...f,className:g(u.root,f.className),children:[gr.jsx(Ls,{htmlFor:i,UNSAFE_className:u.label,children:a}),gr.jsx(im,{...h,...y,id:i,ref:t,size:l}),r?gr.jsxs(ko,{direction:"horizontal",isWrapping:!1,alignmentX:"space-between",alignmentY:"top",children:[x?gr.jsxs("div",{children:[P,T]}):null,S]}):gr.jsxs(gr.Fragment,{children:[T,P]})]})}));am.spiritComponent="TextFieldBase",am.displayName="TextFieldBase";const lm=t.forwardRef(((e,n)=>{const{onInput:r,isAutoResizing:o,autoResizingMaxHeight:s=400,counterThreshold:i,hasCounter:a,onChange:l,value:c,defaultValue:p,helperText:d,isDisabled:u,id:m,...f}=e,h=t.useRef(n),{adjustHeightOnAutoresize:g,onInput:y}=(({elementReference:e,maxHeight:n,onInput:r,isAutoResizing:o})=>{const s=e=>{const t=(parseFloat(getComputedStyle(e).getPropertyValue("border-top-width"))||0)+(parseFloat(getComputedStyle(e).getPropertyValue("border-bottom-width"))||0);e.style.height="auto",e.style.overflow="auto";const r=e.scrollHeight+t;e.style.height=`${r<n?r:n}px`,e.style.overflow=r<n?"hidden":"auto"},i=()=>{if(o){const t=e?.current;t&&s(t)}};return t.useEffect((()=>{i()}),[]),{adjustHeight:s,adjustHeightOnAutoresize:i,onInput:e=>{i(),r&&r(e)}}})({elementReference:h,onInput:r,isAutoResizing:o,maxHeight:s}),v=zt(c),x=zt(p),{counterProps:T,handleChange:P}=Rs({value:v,defaultValue:x,counterThreshold:i,hasCounter:a,onChange:l}),S=((e,t)=>!0===e||void 0!==t)(a,i),E=S?void 0===(C=f.maxLength)?1e4:C:void 0;var C;const N=S?P:l,w=t.useRef(!1);return t.useEffect((()=>{void 0!==i&&void 0!==f.maxLength&&f.maxLength<i&&!w.current&&(w.current=!0,b(0,"TextArea: `maxLength` should be greater than or equal to `counterThreshold` to keep visible counter and hard input limit aligned."))}),[i,f.maxLength]),gr.jsx(am,{id:m,isMultiline:!0,ref:h,onInput:y,onFocus:g,onChange:N,value:c,defaultValue:p,helperText:d,isDisabled:u,counterProps:T,...f,...void 0!==E&&{maxLength:E}})}));lm.spiritComponent="TextArea",lm.displayName="TextArea";const cm=t.forwardRef(((e,t)=>gr.jsx(am,{type:"text",...e,ref:t})));cm.spiritComponent="TextField",cm.displayName="TextField";const pm="dot",dm="number",um=V.SMALL;function mm(e){const{markerBackgroundColor:t,markerBorderColor:n,markerTextColor:r,markerVariant:o,markerSize:s=um,...i}=e||{},a=pn("Timeline"),l=`${a}Content`,c=`${a}Heading`,p=`${a}Marker`,d=`${a}Step`,u=o===pm||o===dm,m=pn(`bg-${t}`),f=pn(`border-${n}`),h=pn(`text-${r}`),y=t?m:"",b=n?f:"",v=r?h:"";return{classProps:{content:l,heading:c,marker:g(p,{[`${p}--${o}`]:!!o,[y]:u,[b]:u,[v]:!!r}),root:g(a,Mt(a,s)),step:d},props:i}}const fm={elementType:"ol",size:um},hm=e=>{const t={...fm,...e},{elementType:n,children:r,size:o,...s}=t,i=n,{classProps:a}=mm({markerSize:o}),{styleProps:l,props:c}=en(s),p=Ot(i,{classProps:a.root,styleProps:l,otherProps:c});return gr.jsx(i,{...c,...p,children:r})};hm.spiritComponent="Timeline",hm.displayName="Timeline";const gm=e=>{const{children:t,...n}=e,{classProps:r}=mm(),{styleProps:o,props:s}=en(n);return gr.jsx("div",{...s,className:g(r.content,o.className),style:o.style,children:t})};gm.spiritComponent="TimelineContent";const ym=e=>{const{children:t,...n}=e,{classProps:r}=mm(),{styleProps:o,props:s}=en(n);return gr.jsx("div",{...s,className:g(r.heading,o.className),style:o.style,children:t})};ym.spiritComponent="TimelineHeading";const bm={variant:"number"},vm=e=>{const t={...bm,...e},{backgroundColor:n,borderColor:r,children:o,textColor:s,variant:i,...a}=t,{classProps:l}=mm({markerBackgroundColor:n,markerBorderColor:r,markerTextColor:s,markerVariant:i}),{styleProps:c,props:p}=en(a);return gr.jsx("div",{...p,className:g(l.marker,c.className),style:c.style,"aria-hidden":"true",children:i!==pm&&o})};vm.spiritComponent="TimelineMarker";const xm={elementType:"li"},Tm=e=>{const t={...xm,...e},{elementType:n,children:r,...o}=t,s=n,{classProps:i}=mm(),{styleProps:a,props:l}=en(o),c=Ot(s,{classProps:i.step,styleProps:a,otherProps:l});return gr.jsx(s,{...l,...c,children:r})};Tm.spiritComponent="TimelineStep",Tm.displayName="TimelineStep";const Pm={alignmentX:_.CENTER,alignmentY:k.BOTTOM,isCollapsible:!0},Sm=e=>{const t={...Pm,...e},{children:n,alignmentX:r,alignmentY:o,...s}=t,{classProps:i,props:a}=function(e){const{alignmentX:t,alignmentY:n,isCollapsible:r,...o}=e,s=pn("Toast"),i=[...(a=[t,n],a.map((e=>"object"==typeof e&&null!==e?Object.keys(e).reduce(((t,n)=>[...t,`${s}${"mobile"===n?"":`--${n}`}--${e[n]}`]),[]):[`${s}--${e}`])))];var a;const l=`${s}__queue`;return{classProps:{root:g(s,r&&`${s}--collapsible`,...i),queue:l},props:o}}({...s,alignmentX:r,alignmentY:o}),{styleProps:l,props:c}=en(a);return gr.jsx("div",{...c,...l,className:g(i.root,l.className),role:"log",children:gr.jsx("div",{className:i.queue,children:n})})};Sm.spiritComponent="Toast";const Em={entering:"is-open is-transitioning",entered:"is-open",exiting:"is-hidden is-transitioning",exited:"is-hidden"},Cm="neutral",Nm=3e3,wm={NEUTRAL:"neutral"},Am=e=>{const{color:t,isDismissible:n,...r}=e,o=pn("ToastBar"),s=`${o}__box`,i=`${o}__close`,a=`${o}__container`,l=`${o}__content`,c=`${o}__link`,p=pn("link-underlined");return{classProps:{root:g(o,`${o}--${t||wm.NEUTRAL}`,n&&`${o}--dismissible`),box:s,close:i,container:a,content:l,link:g(c,p)},props:r}},_m=e=>{const{onClose:t,isOpen:n,id:r,closeLabel:o,isDismissible:s,...i}=e,{classProps:a,props:l}=Am({...i}),{styleProps:c,props:p}=en(l);return s&&t?gr.jsxs("button",{...p,...c,type:"button",className:g(a.close,c.className),onClick:t,"aria-expanded":n,"aria-controls":r,children:[gr.jsx(Cr,{name:"close"}),gr.jsx(_s,{children:o})]}):null};_m.spiritComponent="ToastCloseButton";const Rm=e=>{const{t:n}=An(),{id:r,children:o,closeLabel:s,color:i=Cm,hasIcon:a,iconName:l,isDismissible:c,isOpen:p=!0,onClose:d=()=>{},...u}=e,m=s??n("common.close"),f=t.useRef(null),h=function({color:e,iconName:t}){const n=$n(e,{danger:"danger",informative:"info",neutral:"info",success:"check-plain",warning:"warning"},Cm);return t||n}({color:i,iconName:l}),{classProps:y,props:b}=Am({...u,color:i,isDismissible:c}),{styleProps:v,props:x}=en(b);return gr.jsx(mo,{in:p,nodeRef:f,timeout:250,unmountOnExit:!0,children:e=>gr.jsx("div",{...v,...x,id:r,className:g(y.root,Em[e],v.className),ref:f,children:gr.jsxs("div",{className:y.box,children:[gr.jsxs("div",{className:y.container,children:[(a||l)&&gr.jsx(Cr,{name:h,boxSize:20}),gr.jsx("div",{className:y.content,children:o})]}),gr.jsx(_m,{id:r,isOpen:p,closeLabel:m,onClose:d,isDismissible:c})]})})})};Rm.spiritComponent="ToastBar";const km=e=>{const{children:t,...n}=e,{styleProps:r,props:o}=en(n);return gr.jsx("div",{...r,...o,className:g(pn("text-truncate-multiline"),r.className),children:t})};km.spiritComponent="ToastBarMessage";const Om={elementType:"a"},$m=t.forwardRef(((e,t)=>{const n={...Om,...e},{elementType:r=Om.elementType,children:o,...s}=n,i=r,{classProps:a,props:l}=Am({...s}),{styleProps:c,props:p}=en(l),d=Ot(i,{classProps:a.link,styleProps:c,otherProps:p});return gr.jsx(i,{...p,...d,ref:t,children:o})}));$m.spiritComponent="ToastBarLink",$m.displayName="ToastBarLink";const jm=t.createContext({clear:()=>{},hide:()=>{},queue:[],setQueue:()=>{},show:()=>{}}),Dm=(e,t)=>{const{type:n,payload:r}=t,{queue:o}=e;switch(n){case"show":return{queue:[...o,{autoCloseInterval:r.options?.autoCloseInterval||Nm,color:r.options?.color||void 0,enableAutoClose:r.options?.enableAutoClose||!0,hasIcon:r.options?.hasIcon||!1,iconName:r.options?.iconName,id:r.toastId,isDismissible:r.options?.isDismissible||!1,linkProps:r.options?.linkProps||{},isOpen:!0,content:{message:r.content.message,link:r.content.link||void 0}}]};case"hide":return{queue:o.filter((e=>e.id!==r.id))};case"clear":return{queue:[]};default:throw new Error}},Lm={queue:[]},Im=()=>{const e=t.useContext(jm);if(!e)throw new Error("useToast has to be used within <ToastProvider>");return e},Mm=e=>{const{t:n}=An(),{alignmentX:r,alignmentY:o,isCollapsible:s,closeLabel:i,...a}=e,l=i??n("common.close"),{hide:c,queue:p}=Im();return gr.jsx(Sm,{alignmentX:r,alignmentY:o,isCollapsible:s,children:p.map((e=>{const{color:n,iconName:r,id:o,isOpen:s,content:i,hasIcon:p,isDismissible:d,linkProps:u}=e;return t.createElement(Rm,{...a,key:o,id:o,closeLabel:l,color:n,hasIcon:p,iconName:r,isDismissible:d,onClose:()=>c(o),isOpen:s&&!!i},gr.jsx(km,{children:i.message}),i.link&&gr.jsx($m,{...u,children:i.link}))}))})};function Fm(e){const{hasIndicators:t=!1,inputPosition:n=te.END,isDisabled:r=!1,isFluid:o=!1,isLabelHidden:s=!1,isRequired:i=!1,validationState:a,...l}=e,c=pn("Toggle"),p=`${c}--fluid`,d=`${c}--disabled`,u=`${c}__text`,m=`${c}__label`,f=`${m}--hidden`,h=`${c}--${a}`,y=`${m}--required`,b=`${c}__input`,v=`${b}--indicators`,x=jn(c,n),T=`${c}__helperText`,P=`${c}__validationText`;return{classProps:{root:g(c,{[x]:x,[p]:o,[d]:r,[h]:a}),label:g(m,{[y]:i,[f]:s}),text:u,helperText:T,input:g(b,{[v]:t}),validationText:P},props:{...l,validationState:a,isDisabled:r,isRequired:i}}}Mm.spiritComponent="UncontrolledToast";const Bm=t.forwardRef(((e,n)=>{const{classProps:r,props:o}=Fm(e),{"aria-describedby":s="","aria-details":i,details:a,hasValidationIcon:l,id:c,isDisabled:p,isChecked:d=!1,isRequired:u,label:m,helperText:f,onChange:h=()=>{},validationState:y,validationText:b,...v}=o,{styleProps:x,props:T}=en(v),[P,S]=rn(s),[E,C]=on(i),[N,w]=t.useState(d),A=Fs({validationState:y,validationText:b});return gr.jsxs("div",{style:x.style,className:g(r.root,x.className),children:[gr.jsxs("div",{className:r.text,children:[gr.jsx(Ls,{UNSAFE_className:r.label,htmlFor:c,children:m}),a&&gr.jsx(Hs,{id:`${c}-details`,registerAriaDetails:C,children:a}),gr.jsx(js,{UNSAFE_className:r.helperText,id:`${c}__helperText`,registerAria:S,helperText:f}),y&&gr.jsx(Ms,{UNSAFE_className:r.validationText,...l&&{hasValidationStateIcon:y},id:`${c}__validationText`,validationText:b,registerAria:S,role:A})]}),gr.jsx("input",{...T,...P,...E,type:"checkbox",id:c,className:r.input,disabled:p,checked:N,required:u,onChange:e=>{w(e.target.checked),h(e)},ref:n})]})}));Bm.spiritComponent="Toggle",Bm.displayName="Toggle";const Um=(e,t)=>{const n=e.trim().split(/\s+/);return n.length<=t?e:`${n.slice(0,t).join(" ")}…`},Hm=(e,t)=>e.length<=t?e:`${e.slice(0,t)}…`,zm=e=>e,Vm=(e,n,r)=>t.useMemo((()=>{if("string"!=typeof e)return e;if(!r||r<=0)return e;switch(n){case we.WORDS:return Um(e,r);case we.CHARACTERS:return Hm(e,r);case we.LINES:default:return e}}),[e,n,r]),Wm=e=>{const{limit:t,mode:n=we.LINES,...r}=e,o=pn(n===we.LINES?"text-truncate-multiline":""),s={};return n===we.LINES&&void 0!==t&&(s["--text-truncate-lines"]=t),{classProps:o,props:r,styleProps:s,effectiveMode:n,effectiveLimit:t}},Gm={elementType:"span"},qm=e=>{const t={...Gm,...e},{children:n,elementType:r,...o}=t,s=r,{classProps:i,props:a,styleProps:l,effectiveMode:c,effectiveLimit:p}=Wm(o),d=Vm(n,c,c!==we.LINES?p:void 0),{styleProps:u,props:m}=en(a),f=Ot(s,{classProps:i,styleProps:u,truncateStyleProps:{style:{...u.style,...l}}});return gr.jsx(s,{...m,...f,children:d})};qm.spiritComponent="Truncate",qm.displayName="Truncate";const Xm="file",Ym="edit",Km={TOP:"--spirit-file-image-top",LEFT:"--spirit-file-image-left",WIDTH:"--spirit-file-image-width",HEIGHT:"--spirit-file-image-height"},Qm=["x","y","cropWidth","cropHeight","originalWidth","originalHeight"];function Zm(e,t){const n=(e=>null!=e&&Qm.every((t=>null!=e[t])))(e),r=n?(e=>{const{x:t,y:n,cropWidth:r,cropHeight:o,originalWidth:s,originalHeight:i}=e;let a;a=o>r?48/r:48/o;const l=Math.round(t*a),c=Math.round(n*a),p=Math.round(s*a),d=Math.round(i*a);return{[Km.TOP]:`-${c}px`,[Km.LEFT]:`-${l}px`,[Km.WIDTH]:`${p}px`,[Km.HEIGHT]:`${d}px`}})(e):void 0;return{hasCoordsInMeta:n,imageCropStyles:r,imageObjectFitStyles:t?{"--spirit-file-image-object-fit":t}:void 0}}const Jm=e=>{const t=pn("UNSTABLE_File"),{imageCropStyles:n,imageObjectFitStyles:r,hasCoordsInMeta:o}=Zm(e?.meta,e?.imageObjectFit);return{classProps:{root:g(t,{[`${t}--disabled`]:e?.isDisabled,[`has-${e?.validationState}`]:e?.validationState}),preview:`${t}__preview`,content:`${t}__content`,text:`${t}__text`,name:`${t}__name`,helperText:`${t}__helperText`,validationText:`${t}__validationText`,...o&&{imageCropStyles:n},...r&&{imageObjectFitStyles:r}}}},ef={elementType:"li",iconName:Xm},tf=e=>{const t={...ef,...e},{t:n}=An(),{editText:r,elementType:o,hasValidationIcon:s,helperText:i,iconName:a,id:l,isDisabled:c,label:p,onDismiss:d,onChange:u,previewSlot:m,removeText:f,validationState:h,validationText:y,...b}=t,v=r??n("attachment.edit"),x=f??n("attachment.remove"),{classProps:T}=Jm({isDisabled:c,validationState:h}),{styleProps:P,props:S}=en(b),E=Fs({validationState:h,validationText:y}),C={size:"large",isSymmetrical:!0,isDisabled:c},N={UNSAFE_className:"color-scheme-on-disabled"},w=u?gr.jsxs(Qs,{...C,onClick:u,...c&&N,children:[gr.jsx(_s,{children:v}),gr.jsx(Cr,{name:Ym,boxSize:16,"aria-hidden":"true"})]}):null,A=d?gr.jsxs(Qs,{...C,onClick:d,...c&&N,children:[gr.jsx(_s,{children:x}),gr.jsx(Cr,{name:"close",boxSize:16,"aria-hidden":"true"})]}):null,_=o;return gr.jsxs(_,{...S,...P,...null!=l&&""!==l?{id:l}:{},className:g(T.root,P.className),children:[m??gr.jsx("div",{className:T.preview,children:gr.jsx(Cr,{name:a,boxSize:20,"aria-hidden":"true"})}),gr.jsx("div",{className:T.content,children:gr.jsxs("div",{className:T.text,children:[gr.jsx("span",{className:T.name,children:gr.jsx("span",{className:pn("text-truncate"),children:p})}),i&&gr.jsx("div",{className:T.helperText,children:i}),h&&gr.jsx(Ms,{UNSAFE_className:T.validationText,elementType:"div",...s&&{hasValidationStateIcon:h},role:E,validationText:y})]})}),w&&A?gr.jsxs(ko,{alignmentX:{mobile:"stretch",tablet:"left"},alignmentY:"stretch",spacingX:"space-500",children:[w,A]}):gr.jsxs(gr.Fragment,{children:[w,A]})]})};tf.spiritComponent="UNSTABLE_File",tf.displayName="UNSTABLE_File";const nf={meta:void 0,imageObjectFit:ne.COVER},rf=e=>{const t={...nf,...e},{label:n,imagePreview:r,meta:o,imageObjectFit:s,...i}=t,{classProps:a}=Jm({meta:o,imageObjectFit:s}),l=a.imageCropStyles??{},c=a.imageObjectFitStyles??{},{styleProps:p,props:d}=en(i);return gr.jsx("span",{...d,...p,className:g(a.preview,p.className),children:gr.jsx("img",{src:r,width:48,height:48,alt:n,style:{...l,...c}})})};rf.spiritComponent="UNSTABLE_FileImagePreview",rf.displayName="UNSTABLE_FileImagePreview";const of=e=>{const{onFilesSelected:t}=e;return{onChange:e=>{if(!t)return;const{files:n}=e.target,r=n?Array.prototype.slice.call(n):[];r.length&&t(r),e.target.blur(),e.target.value=""},...yn({onDrop:e=>{if(!t)return;const n=Array.from(e.dataTransfer.items),r=Array.from(e.dataTransfer.files),o=[];e.dataTransfer.items?.length?n.forEach((e=>{if("file"===e.kind){const t=e.getAsFile();t&&o.push(t)}})):r.forEach((e=>o.push(e))),o.length&&t(o)}})}},sf=e=>{const t=pn("UNSTABLE_FileUpload"),n="has-drag-and-drop",r=`${t}Input`,o=`${r}--disabled`,s=`${r}__dropZone--disabled`,i=`${r}__dropZone--compact`,a=`${r}--${e?.validationState}`,l="is-dragging",c=`${r}__dragAndDropLabel`,p=`${r}__dropZone`,d=`${r}__dropZoneContent`,u=`${r}__dropZoneLabel`,m=`${r}__helperText`,f=`${r}__input`,h=`${r}__label`,y=`${r}__label--hidden`,b=`${r}__label--required`,v=`${r}__validationText`;return{classProps:{root:t,input:{root:g(r,{[n]:e?.isDragAndDropSupported,[o]:e?.isDisabled,[l]:e?.isDragging,[a]:e?.validationState}),label:g(h,{[b]:e?.isRequired,[y]:e?.isLabelHidden}),input:f,dropLabel:c,helper:m,validationText:v,dropZone:{root:g(p,{[s]:e?.isDisabled,[i]:e?.isCompact}),content:d,label:u}}}}},af=e=>{const[n,r]=t.useState(!1),{"aria-describedby":o="",accept:s,buttonText:i="Browse",children:a,dropZoneRef:l,hasValidationIcon:c,helperText:p,iconName:d="upload",id:u,inputRef:m,isCompact:f,isDisabled:h,isDragAndDropSupported:y,isLabelHidden:b,isMultiple:v,isRequired:x,label:T,labelText:P,linkText:S,name:E,onFilesSelected:C,rootId:N,validationState:w,validationText:A,..._}=e,R=void 0!==E,k=y??n,{isDragging:O,onChange:$,onDragEnter:j,onDragLeave:D,onDragOver:L,onDrop:I}=of({onFilesSelected:R?C:void 0}),{classProps:M}=sf({isCompact:f,isDisabled:h,isDragAndDropSupported:k,isDragging:O,isLabelHidden:b,isRequired:x,validationState:w}),{styleProps:F,props:B}=en(_),[U,H]=rn(o),z=Fs({validationState:w,validationText:A}),V=u;return t.useEffect((()=>{void 0===y&&r("draggable"in document.createElement("span"))}),[y]),gr.jsxs("div",{...B,...F,...null!=N&&""!==N?{id:N}:{},className:g(M.root,F.className),children:[R&&gr.jsxs("div",{onDragOver:!h&&k?L:void 0,onDragEnter:!h&&k?j:void 0,onDragLeave:!h&&k?D:void 0,onDrop:!h&&k?I:void 0,className:M.input.root,children:[gr.jsx(Ls,{htmlFor:V,UNSAFE_className:M.input.label,children:T}),gr.jsx("input",{...U,type:"file",accept:s,id:V,ref:m,name:E,className:M.input.input,onChange:$,multiple:v,disabled:h}),gr.jsxs("div",{ref:l,className:M.input.dropZone.root,children:[!f&&gr.jsx(Cr,{name:d,boxSize:28,"aria-hidden":"true"}),gr.jsxs("div",{className:M.input.dropZone.content,children:[gr.jsxs(Ls,{htmlFor:V,UNSAFE_className:M.input.dropZone.label,children:[S,P&&gr.jsxs(gr.Fragment,{children:[" ",gr.jsx("span",{className:M.input.dropLabel,children:P})]})]}),gr.jsx(js,{UNSAFE_className:M.input.helper,id:`${V}-helper`,registerAria:H,helperText:p})]}),gr.jsx(is,{"aria-hidden":"true",isDisabled:h,elementType:"div",type:null,children:i})]}),w&&gr.jsx(Ms,{UNSAFE_className:M.input.validationText,elementType:"div",...c&&{hasValidationStateIcon:w},id:`${V}-validation`,validationText:A,registerAria:H,role:z})]}),a]})};af.spiritComponent="UNSTABLE_FileUpload",af.displayName="UNSTABLE_FileUpload";const lf=e=>{const{hasBottomDivider:t=!1,...n}=e,r=pn("UNSTABLE_Header"),o=`${r}Logo`,s=`${r}--bottomDivider`;return{classProps:{root:g(r,{[s]:t}),logo:o},props:n}},cf=Object.freeze(Object.defineProperty({__proto__:null,useUnstableHeaderStyleProps:lf},Symbol.toStringTag,{value:"Module"})),pf=e=>{const{children:t,...n}=e,{classProps:r,props:o}=lf(n),{styleProps:s,props:i}=en(o);return gr.jsx("header",{...i,className:g(r.root,s.className),style:s.style,children:t})};pf.spiritComponent="UNSTABLE_Header";const df={elementType:"a"},uf=t.forwardRef(((e,t)=>{const n={...df,...e},{elementType:r=df.elementType,children:o,...s}=n,i=r,{classProps:a,props:l}=lf(s),{styleProps:c,props:p}=en(l),d=Ot(i,{classProps:a.logo,styleProps:c,otherProps:p});return gr.jsx(i,{...p,...d,href:s.href,ref:t,children:o})}));uf.spiritComponent="UNSTABLE_HeaderLogo",uf.displayName="UNSTABLE_HeaderLogo";const mf=V.MEDIUM,ff={[V.SMALL]:W.XSMALL,[V.MEDIUM]:W.SMALL,[V.LARGE]:W.MEDIUM},hf=t.createContext({size:V.MEDIUM}),gf=hf.Provider,yf={id:"",isDisabled:!1,onSelectionChange:()=>{},selectedKeys:[],selectionMode:oe},bf=t.createContext(yf),vf=bf.Provider,xf=()=>t.useContext(bf),Tf=e=>{const n=[],r=e=>{t.Children.forEach(e,(e=>{t.isValidElement(e)&&((e=>t.isValidElement(e)&&"UNSTABLE_PickerItem"===e.type?.spiritComponent)(e)?n.push({label:e.props.children,value:e.props.value}):e.props?.children&&r(e.props.children))}))};return r(e),n},Pf=e=>{const n=e=>null==e||"boolean"==typeof e?"":"string"==typeof e||"number"==typeof e?String(e):Array.isArray(e)?e.map(n).filter(Boolean).join(" "):t.isValidElement(e)?n(e.props.children):"";return(e=>e.replace(/\s+/g," ").trim())(n(e))},Sf=({children:e,tagKeyboardProps:n,isDisabled:r,label:o,onRemove:s,removeLabel:i,...a})=>{const{t:l}=An(),{size:c=V.MEDIUM,tagDescriptionId:p}=t.useContext(hf),d=i??Nn(l("picker.removeItemLabel"),{itemLabel:Pf(o)}),u=t.useMemo((()=>r||!n?{}:{onBlurCapture:n.onBlurCapture,onFocusCapture:n.onFocusCapture,onKeyDown:n.onKeyDown}),[r,n]);return gr.jsx(Ju,{...a,color:"selected",elementType:"div",size:ff[c],isDisabled:r,role:"row",tabIndex:r?-1:n?.tabIndex??0,"aria-label":Pf(o),...u,...p?{"aria-describedby":p}:{},children:gr.jsxs("div",{role:"gridcell","aria-colindex":1,className:"d-contents",children:[e??gr.jsx("span",{children:o}),gr.jsx(Qs,{"aria-label":d,isDisabled:r,isSymmetrical:!0,onClick:s,size:ff[c],...n&&{tabIndex:n.removeButtonTabIndex},children:gr.jsx(Cr,{name:"close"})})]})})};Sf.spiritComponent="UNSTABLE_PickerTag";const Ef=e=>t.useMemo((()=>{const t=`picker-${e}`;return{pickerId:t,labelId:`${t}-label`,popoverId:`${t}-popover`,selectionId:`${t}-selection`,tagDescriptionId:`${t}-tag-description`}}),[e]),Cf="input:not([disabled]), button:not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href]",Nf=e=>Array.from(e.querySelectorAll(Cf)),wf=({isOpen:e,onClose:n,getLastPopoverFocusable:r})=>({onPopoverKeyDownCapture:t.useCallback((t=>{if("Tab"!==t.key||t.shiftKey||!e)return;const o=t.currentTarget;let s=r?.()??null;if(!s){const e=Nf(o);s=e.length>0?e[e.length-1]:null}const i=t.target instanceof Node?t.target:null,a=document.activeElement;!s||i!==s&&a!==s||(t.preventDefault(),n())}),[r,e,n])}),Af=({onRemoveAtIndex:e,selectionRef:n,tagCount:r,isPopoverOpen:o=!1,isDisabled:s=!1})=>{const[i,a]=t.useState(0),[l,c]=t.useState(null),p=t.useRef(null),d=t.useRef(null);sn((()=>{const e=p.current;if(null===e)return p.current=r,void(r>0&&a(r-1));if(0===r)return void(p.current=0);const t=r-1,n=r-e;n>0?(a(t),o||(d.current=t)):n<0&&a((e=>Math.min(e,t))),p.current=r}),[o,r]),sn((()=>{const e=d.current;null===e||0===r||o||(d.current=null,((e,t)=>{if(!e?.current)return;const n=e.current.querySelectorAll('[role="row"]');n.item(t)?.focus()})(n,e))}),[i,o,n,r]);const u=t.useCallback((t=>{const n=r-1;if(n>0){const e=t<n?t:t-1;a(e),o||(d.current=e)}c(null),e(t)}),[o,e,r]);return{getKeyboardGridRowProps:t.useCallback((e=>o||s?{tabIndex:-1,removeButtonTabIndex:-1,onFocusCapture:()=>{},onBlurCapture:()=>{},onKeyDown:()=>{}}:{tabIndex:e===i?0:-1,removeButtonTabIndex:l===e?0:-1,onFocusCapture:()=>{a(e),c(e)},onBlurCapture:e=>{e.currentTarget.contains(e.relatedTarget)||c(null)},onKeyDown:t=>{if(0===r)return;if("Delete"===t.key||"Backspace"===t.key)return t.preventDefault(),void u(e);let n=-1;switch(t.key){case"ArrowRight":case"ArrowDown":n=(e+1)%r;break;case"ArrowLeft":case"ArrowUp":n=(e-1+r)%r;break;case"Home":n=0;break;case"End":n=r-1}n>=0&&(t.preventDefault(),a(n),d.current=n)}}),[i,l,s,o,u,r]),removeTagAtIndex:u}},_f=e=>{const{isDisabled:t,isFluid:n,isLabelHidden:r,isRequired:o,size:s,validationState:i}=e,a=pn("UNSTABLE_Picker"),l=`${a}--disabled`,c=`${a}--fluid`,p=`${a}--${s}`,d=`${a}--${i}`,u=`${a}__label`,m=`${u}--hidden`,f=`${u}--required`,h=`${a}__inputContainer`,y=`${a}__selection`,b=`${a}__selectionEmpty`,v=`${a}__trigger`,x=`${a}__helperText`,T=`${a}__validationText`;return{classProps:{root:g(a,{[l]:t,[c]:n,[p]:s,[d]:i}),label:g(u,{[m]:r,[f]:o}),inputContainer:h,selection:y,selectionEmpty:b,trigger:v,helperText:x,validationText:T}}},Rf=t.forwardRef(((e,n)=>{const{t:r}=An(),{"aria-describedby":o="",addButtonLabel:s=r("picker.add"),children:i,closeButtonLabel:a=r("common.close"),emptySelectionLabel:l,helperText:c,id:p,isAggregated:d=!1,isDisabled:u=!1,isFluid:m=!1,isLabelHidden:f=!1,isOpen:h,isRequired:y=!1,label:b,onSelectionChange:v,onToggle:x,removeAllLabel:T=r("picker.removeAll"),renderTags:P,selectedKeys:S,selectionAriaLabel:E=r("picker.selectionAriaLabel"),selectionMode:C=oe,size:N=mf,tagDescriptionText:w=r("picker.tagDescriptionText"),hasValidationIcon:A,validationState:_,validationText:R,...k}=e,[O,$]=rn(o),j=Fs({validationState:_,validationText:R}),{classProps:D}=_f({isDisabled:u,isFluid:m,isLabelHidden:f,isRequired:y,size:N,validationState:_}),{styleProps:L,props:I}=en(k),{labelId:M,pickerId:F,popoverId:B,selectionId:U,tagDescriptionId:H}=Ef(p),z=t.useMemo((()=>Tf(i)),[i]),V=t.useMemo((()=>(e=>{const t={};for(const n of e)t[n.value]=n.label;return t})(z)),[z]),W=t.useMemo((()=>qn(S,C)),[S,C]),G=t.useMemo((()=>{return e=V,W.map((t=>({label:e[t]??t,value:t})));var e}),[W,V]),q=e=>Gn(C)?v([]):v(S.filter((t=>t!==e))),X=t.useRef(null),Y=t.useRef(null),K=t.useCallback((()=>{h&&(x(),Promise.resolve().then((()=>{Y.current?.focus()})))}),[h,x]),{onPopoverKeyDownCapture:Q}=wf({isOpen:h,onClose:K}),Z=((e,t)=>{const{isAggregated:n}=t;return 0===e?0:n?1:e})(G.length,{isAggregated:d}),{getKeyboardGridRowProps:J,removeTagAtIndex:ee}=Af({isDisabled:u,isPopoverOpen:h,onRemoveAtIndex:e=>{d?v([]):q(G[e].value)},selectionRef:X,tagCount:Z}),te=l?Nn(l,{label:b}):b,ne=((e,t)=>t.length>1?`${e} (${t.length})`:t[0]?.label??e)(b,G),re=G.length?P?P({getKeyboardGridRowProps:J,onRemove:q,removeTagAtIndex:ee}):d?gr.jsx(Sf,{tagKeyboardProps:J(0),isDisabled:u,label:ne,onRemove:()=>ee(0),removeLabel:T}):G.map(((e,t)=>gr.jsx(Sf,{tagKeyboardProps:J(t),isDisabled:u,label:e.label,onRemove:()=>ee(t)},e.value))):gr.jsx("span",{"aria-hidden":"true",className:D.selectionEmpty,children:te}),se=t.useMemo((()=>({id:F,isDisabled:u,onSelectionChange:v,selectedKeys:W,selectionMode:C})),[W,u,v,F,C]);return t.useImperativeHandle(n,(()=>({close:K,selectedKeys:S})),[K,S]),gr.jsx(gf,{value:{size:N,tagDescriptionId:H},children:gr.jsxs("div",{...L,className:g(D.root,L.className),...I,children:[gr.jsx(Ls,{id:M,UNSAFE_className:D.label,elementType:"span",children:b}),gr.jsxs(Si,{id:B,isOpen:h,onToggle:x,children:[gr.jsxs("div",{role:"group","aria-label":b,className:D.inputContainer,children:[gr.jsx("div",{ref:X,...O,id:U,role:G.length?"grid":"group","aria-label":Nn(E,{label:b}),"aria-live":"off","aria-atomic":!1,"aria-relevant":"additions",className:D.selection,children:re}),gr.jsxs("button",{ref:Y,type:"button",className:D.trigger,"aria-haspopup":"dialog","aria-expanded":h,"aria-controls":B,onClick:x,disabled:u,children:[gr.jsx(_s,{children:h?a:s}),gr.jsx(Cr,{name:"chevron-"+(h?"up":"down"),boxSize:20})]})]}),gr.jsx(Ni,{"aria-labelledby":M,role:"dialog","aria-modal":"true",onKeyDownCapture:Q,children:gr.jsx(vf,{value:se,children:i})})]}),gr.jsx(js,{UNSAFE_className:D.helperText,id:`${F}-helper-text`,registerAria:$,helperText:c}),_&&gr.jsx(Ms,{UNSAFE_className:D.validationText,id:`${F}-validation-text`,...A&&{hasValidationStateIcon:_},validationText:R,registerAria:$,role:j}),gr.jsx("span",{id:H,hidden:!0,children:w})]})})}));Rf.spiritComponent="UNSTABLE_Picker",Rf.displayName="UNSTABLE_Picker";const kf=({children:e,label:n,...r})=>{const o=xf(),s=t.useId(),i=o.id?`${o.id}-group-${s}`:s;return gr.jsx(Mi,{...r,id:i,isFluid:!0,isLabelHidden:!0,label:n,children:e})};kf.spiritComponent="UNSTABLE_PickerGroup";const Of=({children:e,value:t,...n})=>{const{id:r,isDisabled:o,onSelectionChange:s,selectedKeys:i,selectionMode:a}=xf(),l=Xn(i,t,a),c=Gn(a),p=c?zd:Vs,d=`${r}-${t}`;return gr.jsx(p,{...n,id:d,inputPosition:te.START,isChecked:l,isDisabled:o,isItem:!0,label:e,value:t,onChange:()=>{s(c?[t]:Yn(i,t,a))},...c?{name:r}:{}})};Of.spiritComponent="UNSTABLE_PickerItem";const $f=t.forwardRef(((e,n)=>{const{defaultIsOpen:r=!1,defaultSelectedKeys:o=[],onSelectionChange:s,selectionMode:i,...a}=e,l=t.useRef(null),[c,p]=er(r),{selectedKeys:d,setSelectedKeys:u}=Kn({defaultSelectedKeys:o,onSelectionChange:s,selectionMode:i});return t.useImperativeHandle(n,(()=>({close:()=>l.current?.close(),selectedKeys:d})),[d]),gr.jsx(Rf,{...a,ref:l,isOpen:c,onSelectionChange:u,onToggle:p,selectedKeys:d,selectionMode:i})}));$f.spiritComponent="UNSTABLE_UncontrolledPicker",$f.displayName="UNSTABLE_UncontrolledPicker";const jf=e=>{const{isStriped:t=!1,isBordered:n=!1,isCompact:r=!1,isHoverable:o=!1,isResponsive:s=!1,...i}=e,a=pn("UNSTABLE_Table"),l=`${a}--striped`,c=`${a}--bordered`,p=`${a}--compact`,d=`${a}--hoverable`,u=`${a}--responsive`;return{classProps:{root:g(a,{[l]:t,[c]:n,[p]:r,[d]:o,[u]:s})},props:i}},Df=Object.freeze(Object.defineProperty({__proto__:null,useUnstableTableStyleProps:jf},Symbol.toStringTag,{value:"Module"})),Lf=e=>{const{children:t,...n}=e,{classProps:r,props:o}=jf(n),{styleProps:s,props:i}=en(o);return gr.jsx("table",{...i,className:g(r.root,s.className),style:s.style,children:t})};Lf.spiritComponent="UNSTABLE_Table",e.Accordion=yr,e.AccordionContent=wo,e.AccordionContext=sr,e.AccordionHeader=wr,e.AccordionItem=Tr,e.AccordionItemContext=br,e.ActionGroup=$o,e.Alert=Lo,e.AlignmentX=_,e.AlignmentXExtended=R,e.AlignmentY=k,e.AlignmentYExtended=O,e.AttachmentActionButton=na,e.AttachmentDismissButton=ra,e.Avatar=Fo,e.BREAKPOINT_MOBILE=Ee,e.BackgroundColors=I,e.BackgroundGradients={PRIMARY:"primary",SECONDARY:"secondary"},e.BackgroundStyleProps=ie,e.BorderColors=$,e.BorderRadii=j,e.BorderRadiusStyleProps=ae,e.BorderStyles=D,e.BorderWidths=L,e.Box=Ho,e.Breadcrumbs=Ko,e.BreadcrumbsItem=Xo,e.Button=is,e.ButtonLink=ps,e.CLASS_NAME_OPEN=v,e.Card=ms,e.CardArtwork=hs,e.CardBody=ys,e.CardEyebrow=bs,e.CardFooter=xs,e.CardLink=Ps,e.CardLogo=Ss,e.CardMedia=Cs,e.CardSizes=be,e.CardTitle=ws,e.CharacterCounter=Os,e.Checkbox=Vs,e.ClassNamePrefixConsumer=ye,e.ClassNamePrefixProvider=ge,e.Collapse=So,e.ColorPrefixes=x,e.ComponentButtonColors=M,e.Container=qs,e.ContainerTokenSizes=X,e.ControlButton=Qs,e.DEBOUNCE_DELAY=50,e.DEFAULT_BASE_FONT_SIZE_PX=jt,e.DEFAULT_DECIMALS=fe,e.DEFAULT_ERROR_MESSAGE_MAX_FILE_SIZE=Ui,e.DEFAULT_ERROR_MESSAGE_QUEUE_DUPLICITY=Hi,e.DEFAULT_ERROR_MESSAGE_QUEUE_LIMIT=zi,e.DEFAULT_ERROR_MESSAGE_UNSUPPORTED_FILE=Vi,e.DEFAULT_FILE_ACTION_BUTTON_ICON_NAME=Ym,e.DEFAULT_FILE_ICON_NAME=Xm,e.DEFAULT_FILE_IMAGE_DIMENSION=48,e.DEFAULT_FILE_QUEUE_LIMIT=Bi,e.DEFAULT_FILE_SIZE_LIMIT=Fi,e.DEFAULT_ICON_NAME=Wi,e.DEFAULT_TOAST_AUTO_CLOSE_INTERVAL=Nm,e.DEFAULT_TOAST_COLOR=Cm,e.Dialog=Js,e.Direction=Q,e.DirectionAxis=J,e.DirectionExtended=Z,e.DisplayStyleProps=ue,e.Divider=ti,e.Drawer=li,e.DrawerCloseButton=pi,e.DrawerConsumer=si,e.DrawerPanel=di,e.DrawerProvider=oi,e.Dropdown=Si,e.DropdownContext=vi,e.DropdownFullWidthModes={OFF:"off",MOBILE_ONLY:"mobile-only",ALL:"all"},e.DropdownPopover=Ni,e.DropdownTrigger=Ci,e.EDGE_DETECTION_INACCURACY_PX=1,e.EmotionColors=F,e.Emphasis=H,e.EmptyState=Li,e.EmptyStateSection=Ii,e.FALLBACK_BASE_FONT_SIZE_PX=16,e.FieldGroup=Mi,e.FileImageCropCSS=Km,e.FileUploader=Zi,e.FileUploaderAttachment=pa,e.FileUploaderCropCSS=Gi,e.FileUploaderInput=ea,e.FileUploaderList=ta,e.FillVariants=Y,e.Flex=ko,e.Footer=fa,e.Grid=ya,e.GridItem=Ta,e.HEADER_ACTIONS_COLOR_DEFAULT=Sa,e.HEADER_COLOR_DEFAULT=Pa,e.HEADER_DIALOG_CLOSE_BUTTON_LABEL_DEFAULT=Ea,e.HEADER_MENU_TOGGLE_LABEL_DEFAULT=Ca,e.Header=wa,e.HeaderButton=Aa,e.HeaderDesktopActions=Ra,e.HeaderDialog=Da,e.HeaderDialogActions=La,e.HeaderDialogButton=Ia,e.HeaderDialogCloseButton=Ma,e.HeaderDialogConsumer=$a,e.HeaderDialogLink=Fa,e.HeaderDialogNav=Ba,e.HeaderDialogNavItem=Ua,e.HeaderDialogProvider=Oa,e.HeaderDialogText=Ha,e.HeaderLink=za,e.HeaderMobileActions=Va,e.HeaderNav=Wa,e.HeaderNavItem=Ga,e.Heading=Ya,e.HeadingStyleProps=de,e.HelperText=js,e.Hidden=Qa,e.I18nConsumer=Sn,e.I18nProvider=({children:e,locale:n="en",translations:r})=>{const o=t.useMemo((()=>{const e=Cn(r,n);return null==e||0===Object.keys(e).length?bn:Tn(bn,e)}),[n,r]);return t.createElement(Pn.Provider,{value:o},e)},e.ICON_BOX_SIZE=20,e.IMAGE_DIMENSION=54,e.IMAGE_PREVIEW_BASE64_MAX_WIDTH=500,e.ITEM_SELECTION_DECORATOR_BACKGROUND=ve,e.ITEM_SELECTION_DECORATOR_BOTH=xe,e.ITEM_SELECTION_DECORATOR_ICON=Te,e.Icon=Cr,e.IconBox=sl,e.IconsConsumer=kn,e.IconsProvider=Rn,e.InputDetails=Hs,e.InputPositions=te,e.Intensity=U,e.Item=ll,e.Label=Ls,e.Link=Wo,e.LinkColors={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},e.LinkColorsExtended={INHERIT:"inherit"},e.MAX_TO_FIXED_DIGITS=100,e.MULTIPLE_SELECTION_MODE=oe,e.Matrix=ul,e.Modal=bl,e.ModalBody=vl,e.ModalCloseButton=xl,e.ModalConsumer=hl,e.ModalDialog=Pl,e.ModalFooter=Sl,e.ModalHeader=Cl,e.ModalProvider=fl,e.Navigation=Al,e.NavigationAction=kl,e.NavigationAvatar=$l,e.NavigationItem=Dl,e.NoSsr=Ll,e.ObjectFit=ne,e.PICKER_POPOVER_FOCUSABLE_SELECTOR=Cf,e.PaddingStyleProps=ce,e.Pagination=Ml,e.PaginationButtonLink=Fl,e.PaginationItem=Bl,e.PaginationLink=Ul,e.PaginationLinkNext=Hl,e.PaginationLinkPrevious=zl,e.PartnerLogo=Xl,e.PickerPopoverContextProvider=vf,e.Pill=Zl,e.PillColorsExtended=Yl,e.Placements=z,e.Position=re,e.PricingPlan=tc,e.PricingPlanBody=Md,e.PricingPlanFooter=Bd,e.PricingPlanHeader=rc,e.ProductLogo=Ud,e.PropsConsumer=ts,e.PropsProvider=es,e.REM_UNIT="rem",e.Radio=zd,e.RouterConsumer=In,e.RouterProvider=e=>{const{navigate:n,children:r}=e,o=t.useMemo((()=>({navigate:n})),[n]);return t.createElement(Ln.Provider,{value:o},r)},e.SCROLL_CANCEL_DELAY=10,e.SCROLL_VIEW_ARROWS_LABEL_HORIZONTAL_END=Vd,e.SCROLL_VIEW_ARROWS_LABEL_HORIZONTAL_START=Wd,e.SCROLL_VIEW_ARROWS_LABEL_VERTICAL_END=Gd,e.SCROLL_VIEW_ARROWS_LABEL_VERTICAL_START=qd,e.SCROLL_VIEW_DEFAULT_DIRECTION=Xd,e.SCROLL_VIEW_DEFAULT_OVERFLOW_DECORATOR=Yd,e.SINGLE_SELECTION_MODE=se,e.STYLE_SPACING_AUTO=Se,e.ScrollView=tu,e.ScrollViewArrows=Jd,e.Section=iu,e.SegmentedControl=du,e.SegmentedControlItem=uu,e.Select=fu,e.ShapeVariants=K,e.Sizes=V,e.SizesExtended=W,e.SkeletonHeading=xu,e.SkeletonItem=gu,e.SkeletonShape=Eu,e.SkeletonText=bu,e.SkipLink=wu,e.Slider=Ru,e.SpacingStyleProp=le,e.Spinner=os,e.SpiritBreakpoints=Ce,e.SplitButton=$u,e.Stack=Oi,e.StackItem=ji,e.TOOLTIP_TRIGGER=Ne,e.TRANSITIONING_STYLES=Em,e.TRANSITION_DURATION=250,e.TabContent=Du,e.TabContext=Lu,e.TabItem=Uu,e.TabLink=zu,e.TabList=Vu,e.TabPane=Wu,e.Tabs=Gu,e.TabsConsumer=Mu,e.TabsProvider=Iu,e.Tag=Ju,e.TagColorsExtended=Yu,e.Text=nm,e.TextAlignments={LEFT:"left",CENTER:"center",RIGHT:"right"},e.TextArea=lm,e.TextColors=B,e.TextField=cm,e.TextFieldBase=am,e.TextHyphens={NONE:"none",AUTO:"auto",MANUAL:"manual"},e.TextStyleProps=pe,e.TextWordBreaks={NORMAL:"normal",ANYWHERE:"anywhere",LONG_WORDS:"long-words"},e.ThemeStyleProps=me,e.Timeline=hm,e.TimelineContent=gm,e.TimelineHeading=ym,e.TimelineMarker=vm,e.TimelineStep=Tm,e.Toast=Sm,e.ToastBar=Rm,e.ToastBarLink=$m,e.ToastBarMessage=km,e.ToastColorsExtended=wm,e.ToastContext=jm,e.ToastProvider=({children:e})=>{const[n,r]=t.useReducer(Dm,Lm),{queue:o}=n,s=t.useCallback((e=>{r({type:"hide",payload:{id:e}})}),[]),i=t.useCallback((()=>{r({type:"clear",payload:null})}),[]),a=t.useCallback(((e,t,n)=>{r({type:"show",payload:{content:e,toastId:t,options:n}}),n?.enableAutoClose&&Be((()=>s(t)),n?.autoCloseInterval||Nm)}),[s]),l=t.useCallback((e=>{r({type:"clear",payload:null}),e.forEach((e=>{const t=e.enableAutoClose??!0,n=e.autoCloseInterval||Nm;r({type:"show",payload:{content:{message:e.content.message,link:e.content.link??void 0},toastId:e.id,options:{autoCloseInterval:n,enableAutoClose:t,color:e.color,hasIcon:e.hasIcon||!1,iconName:e.iconName,isDismissible:e.isDismissible||!1,linkProps:e.linkProps||{}}}}),t&&Be((()=>s(e.id)),n)}))}),[s]),c=t.useMemo((()=>({clear:i,hide:s,queue:o,setQueue:l,show:a})),[s,a,i,o.length,l]);return gr.jsx(jm.Provider,{value:c,children:e})},e.Toggle=Bm,e.Tooltip=_d,e.TooltipCloseButton=Rd,e.TooltipPopover=kd,e.TooltipTrigger=$d,e.Truncate=qm,e.TruncateModes=we,e.UNDERLINED_OPTIONS=Pe,e.UNSTABLE_File=tf,e.UNSTABLE_FileImagePreview=rf,e.UNSTABLE_FileUpload=af,e.UNSTABLE_Header=pf,e.UNSTABLE_HeaderLogo=uf,e.UNSTABLE_Picker=Rf,e.UNSTABLE_PickerGroup=kf,e.UNSTABLE_PickerItem=Of,e.UNSTABLE_PickerTag=Sf,e.UNSTABLE_Table=Lf,e.UNSTABLE_UncontrolledPicker=$f,e.UncontrolledAccordion=Ao,e.UncontrolledCollapse=No,e.UncontrolledDropdown=Ai,e.UncontrolledFileUploader=ua,e.UncontrolledPagination=Wl,e.UncontrolledSplitButton=e=>{const{t:n}=An(),r={...ju,...e},{buttonIconName:o,buttonLabel:s,buttonOnClick:i,children:a,dropdownTriggerIconName:l,dropdownTriggerLabel:c,dropdownPlacement:p,id:d,isButtonLabelHidden:u,isDisabled:m,isDropdownTriggerLabelHidden:f,...h}=r,g=c??n("splitButton.dropdown"),[y,b]=t.useState(!1);return gr.jsxs($u,{...h,id:d,isDisabled:m,children:[gr.jsxs(is,{onClick:i,children:[o&&gr.jsx(Cr,{name:o,...!u&&{marginRight:"space-400"}}),u?gr.jsx(_s,{children:s}):s]}),gr.jsxs(Si,{id:`${d}-dropdown`,isOpen:y,onToggle:()=>b(!y),placement:p,children:[gr.jsxs(Ci,{elementType:is,children:[f?gr.jsx(_s,{children:g}):g,gr.jsx(Cr,{name:l,...!f&&{marginLeft:"space-400"}})]}),gr.jsx(Ni,{children:a})]})]})},e.UncontrolledTabs=Xu,e.UncontrolledToast=Mm,e.UncontrolledTooltip=Dd,e.ValidationStates={SUCCESS:"success",WARNING:"warning",DANGER:"danger"},e.ValidationText=Ms,e.VisuallyHidden=_s,e.applyClassNamePrefix=je,e.applyColor=De,e.applySize=Le,e.applyTheme=e=>t=>`${t}--${e}`,e.base64ToByteArray=e=>{const t=atob(e),n=new Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return new Uint8Array(n)},e.camelCaseToKebabCase=Bt,e.compose=Me,e.debounce=Fe,e.defaultTranslations=bn,e.delayedCallback=Be,e.fullWidthModeKeys=gi,e.generateColorsObject=Ie,e.generateResponsiveClassNames=Mt,e.generateResponsiveStylePropsClasses=qt,e.generateStaticStylePropsClasses=Gt,e.generateStylePropsClassNames=Xt,e.getAccentBackgroundColors=()=>Ie(E,"background","accent"),e.getAccentBorderColors=()=>Ie(E,"border","accent"),e.getAccentColorNames=()=>Object.keys(E),e.getAccentTextColors=()=>Ie(E,"content","accent"),e.getAttachmentInput=ia,e.getAttachmentMetaInput=aa,e.getEmotionBackgroundColors=()=>Ie(N,"background","emotion"),e.getEmotionBorderColors=()=>Ie(N,"border","emotion"),e.getEmotionColorNames=()=>Object.keys(N),e.getEmotionTextColors=()=>Ie(N,"content","emotion"),e.getNeutralBackgroundColors=()=>({NEUTRAL_BASIC:"neutral-basic",NEUTRAL_SUBTLE:"neutral-subtle"}),e.getNeutralTextColors=()=>({NEUTRAL_BASIC:"neutral-basic",NEUTRAL_SUBTLE:"neutral-subtle"}),e.getPickerPopoverFocusableElements=Nf,e.getSelectedKeys=qn,e.getTextColorNames=()=>Object.keys(w),e.getToggledSelectedKeys=Yn,e.handleLinkClick=Lt,e.htmlReactParser=kt,e.image2Base64Preview=la,e.isDirectionHorizontal=ee,e.isEmpty=$e,e.isEmptyArray=Re,e.isEmptyObject=ke,e.isEmptyString=_e,e.isEnumerable=Oe,e.isKeySelected=Xn,e.isNullish=Ae,e.isResponsive=It,e.isSSR=Ft,e.isSingleSelectionMode=Gn,e.kebabCaseToCamelCase=Ut,e.kebabCaseToCamelCaseValues=Ht,e.mergeStyleProps=Ot,e.mergeTranslations=Tn,e.normalizeStringValue=zt,e.pxToRem=Dt,e.replaceTranslationParams=Nn,e.resolveTranslationKey=wn,e.stringOrObjectKebabCaseToCamelCase=Vt,e.toPascalCase=Wt,e.truncateByCharacters=Hm,e.truncateByLines=zm,e.truncateByWords=Um,e.useAccordion=i,e.useAccordionAriaProps=p,e.useAccordionStyleProps=or,e.useAlertStyleProps=jo,e.useAlignmentClass=tn,e.useAriaDescribedBy=rn,e.useAriaDetails=on,e.useAriaIdRefs=nn,e.useAvatarStyleProps=Io,e.useBoxStyleProps=Bo,e.useBreadcrumbsStyleProps=Go,e.useButtonLinkProps=as,e.useButtonLinkStyleProps=ls,e.useButtonProps=Qo,e.useButtonStyleProps=Zo,e.useCancelEvent=cn,e.useCardStyleProps=ds,e.useCharacterCounterState=Rs,e.useCheckboxStyleProps=zs,e.useClassNamePrefix=pn,e.useClick=dn,e.useClickOutside=un,e.useCollapse=Eo,e.useCollapseAriaProps=bo,e.useCollapseStyleProps=vo,e.useContainerStyleProps=Ws,e.useContextProps=ns,e.useControlButtonProps=Xs,e.useControlButtonStyleProps=Ys,e.useControlledModeGuard=mn,e.useDebouncedValue=fn,e.useDefaultResponsiveRowsStyle=cl,e.useDeprecationMessage=hn,e.useDialog=Zs,e.useDimensionStyle=gn,e.useDividerStyleProps=ei,e.useDragAndDrop=yn,e.useDrawerContext=ii,e.useDrawerStyleProps=ai,e.useDropdown=wi,e.useDropdownAriaProps=yi,e.useDropdownStyleProps=Pi,e.useEmptyStateStyleProps=Di,e.useFileImageStyles=Zm,e.useFileQueue=da,e.useFileStyleProps=Jm,e.useFileUploadState=of,e.useFileUploadStyleProps=sf,e.useFileUploaderAttachment=ca,e.useFileUploaderInput=Ji,e.useFileUploaderStyleProps=Qi,e.useFlexStyleProps=_o,e.useGridStyleProps=ha,e.useHeaderDialogContext=ja,e.useHeaderStyleProps=Na,e.useHeadingStyleProps=qa,e.useI18n=An,e.useIcon=On,e.useIconBoxColors=nl,e.useIconBoxStyleProps=rl,e.useIconName=$n,e.useIconStyleProps=Sr,e.useInputDetailsStyleProps=Bs,e.useInputPositionClass=jn,e.useIsomorphicLayoutEffect=sn,e.useItemStyleProps=il,e.useLastActiveFocus=Dn,e.useLinkClick=Fn,e.useLinkStyleProps=zo,e.useMatrixStyleProps=pl,e.useModalContext=gl,e.useModalStyleProps=yl,e.useNavigationActionProps=_l,e.useNavigationStyleProps=Nl,e.useOpenItem=lr,e.usePaginationStyleProps=Il,e.usePartnerLogoStyleProps=Gl,e.usePickerId=Ef,e.usePickerPopoverContext=xf,e.usePickerPopoverTabOutToTrigger=wf,e.usePickerSelectionGridKeyboard=Af,e.usePickerStyleProps=_f,e.usePillStyleProps=Kl,e.usePricingPlanStyleProps=Jl,e.useRadioStyleProps=Hd,e.useResizeObserver=Hn,e.useRouter=Mn,e.useScrollCallback=Kd,e.useScrollControl=Wn,e.useScrollPosition=eu,e.useScrollViewArrows=Qd,e.useScrollViewStyleProps=Zd,e.useSectionSizeProps=ru,e.useSectionStyleProps=ou,e.useSegmentedControl=({defaultSelectedValue:e,isMultiselect:n})=>{let r;r=n?Array.isArray(e)?e:void 0!==e?[e]:[]:e??"";const[o,s]=t.useState(r);return{selectedValue:o,setSelectedValue:s}},e.useSegmentedControlStyleProps=cu,e.useSelectStyleProps=mu,e.useSelectionState=Kn,e.useSkeletonStyleProps=hu,e.useSkipLinkStyleProps=Cu,e.useSliderStyleProps=Au,e.useSpacingStyle=Qn,e.useSpinnerStyleProps=rs,e.useSplitButtonStyleProps=ku,e.useStyleProps=en,e.useSymmetry=Jn,e.useTab=qu,e.useTabContext=Fu,e.useTabsStyleProps=Bu,e.useTagStyleProps=Qu,e.useTextStyleProps=em,e.useTimelineStyleProps=mm,e.useToast=Im,e.useToggle=er,e.useToggleStyleProps=Fm,e.useTooltip=jd,e.useTooltipStyleProps=Ad,e.useTruncateStyleProps=Wm,e.useTruncatedText=Vm,e.useUnstableHeaderStyleProps=cf,e.useUnstableTableStyleProps=Df,e.useWrapClass=rr,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["exports","react","react-dom"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).webReact={},e.React,e.ReactDOM)}(this,(function(e,t,n){"use strict";function r(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const n in e)if("default"!==n){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}return t.default=e,Object.freeze(t)}const o=r(t),s=r(n),i=({defaultOpen:e,stayOpen:n})=>{const[r,o]=t.useState(e);return{open:r,toggle:e=>{n?Array.isArray(r)?r?.includes(e)?o(r.filter((t=>t!==e))):o([...r,e]):o([e]):o(r===e?void 0:e)}}},a="aria-expanded",l="aria-controls",c="aria-labelledby",p=({id:e,isOpen:t})=>{const n=`${e}_Header`,r=`${e}_Content`;return{headerProps:{id:n},triggerProps:{[a]:t,[l]:r},contentProps:{id:r,[c]:n}}};function d(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var u,m={exports:{}};var f,h=(u||(u=1,f=m,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<arguments.length;t++){var o=arguments[t];o&&(e=r(e,n(o)))}return e}function n(n){if("string"==typeof n||"number"==typeof n)return n;if("object"!=typeof n)return"";if(Array.isArray(n))return t.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var o="";for(var s in n)e.call(n,s)&&n[s]&&(o=r(o,s));return o}function r(e,t){return t?e?e+" "+t:e+t:e}f.exports?(t.default=t,f.exports=t):window.classNames=t}()),m.exports);const g=d(h),y="production",b=(e,t)=>{if(process.env.NODE_ENV!==y){const e=`Warning: ${t}`;"undefined"!=typeof console&&console.warn(e);try{throw Error(e)}catch(e){}}},v="is-open",x={ACCENT:"accent",EMOTION:"emotion"},T={mobile:0,tablet:"48rem",desktop:"80rem"},P="spirit-",S={xsmall:{maxWidth:"30rem"},small:{maxWidth:"40rem"},medium:{maxWidth:"48rem"},large:{maxWidth:"64rem"},xlarge:{maxWidth:"80rem"},padding:{desktop:"2rem",mobile:"1rem",tablet:"2rem"},maxWidth:"80rem"},E={"01":{backgroundBasic:"var(--spirit-color-accent-01-background-basic)",backgroundSubtle:"var(--spirit-color-accent-01-background-subtle)",borderBasic:"var(--spirit-color-accent-01-border-basic)",borderSubtle:"var(--spirit-color-accent-01-border-subtle)",contentBasic:"var(--spirit-color-accent-01-content-basic)",contentSubtle:"var(--spirit-color-accent-01-content-subtle)",stateActive:"var(--spirit-color-accent-01-state-active)",stateDefault:"var(--spirit-color-accent-01-state-default)",stateHover:"var(--spirit-color-accent-01-state-hover)"},"02":{backgroundBasic:"var(--spirit-color-accent-02-background-basic)",backgroundSubtle:"var(--spirit-color-accent-02-background-subtle)",borderBasic:"var(--spirit-color-accent-02-border-basic)",borderSubtle:"var(--spirit-color-accent-02-border-subtle)",contentBasic:"var(--spirit-color-accent-02-content-basic)",contentSubtle:"var(--spirit-color-accent-02-content-subtle)",stateActive:"var(--spirit-color-accent-02-state-active)",stateDefault:"var(--spirit-color-accent-02-state-default)",stateHover:"var(--spirit-color-accent-02-state-hover)"}},C={button:{plain:{border:"var(--spirit-color-component-button-plain-border)",content:"var(--spirit-color-component-button-plain-content)",stateActive:"var(--spirit-color-component-button-plain-state-active)",stateDefault:"var(--spirit-color-component-button-plain-state-default)",stateHover:"var(--spirit-color-component-button-plain-state-hover)"},primary:{border:"var(--spirit-color-component-button-primary-border)",content:"var(--spirit-color-component-button-primary-content)",stateActive:"var(--spirit-color-component-button-primary-state-active)",stateDefault:"var(--spirit-color-component-button-primary-state-default)",stateHover:"var(--spirit-color-component-button-primary-state-hover)"},secondary:{border:"var(--spirit-color-component-button-secondary-border)",content:"var(--spirit-color-component-button-secondary-content)",stateActive:"var(--spirit-color-component-button-secondary-state-active)",stateDefault:"var(--spirit-color-component-button-secondary-state-default)",stateHover:"var(--spirit-color-component-button-secondary-state-hover)"},tertiary:{border:"var(--spirit-color-component-button-tertiary-border)",content:"var(--spirit-color-component-button-tertiary-content)",stateActive:"var(--spirit-color-component-button-tertiary-state-active)",stateDefault:"var(--spirit-color-component-button-tertiary-state-default)",stateHover:"var(--spirit-color-component-button-tertiary-state-hover)"}}},N={danger:{backgroundBasic:"var(--spirit-color-emotion-danger-background-basic)",backgroundSubtle:"var(--spirit-color-emotion-danger-background-subtle)",borderBasic:"var(--spirit-color-emotion-danger-border-basic)",borderSubtle:"var(--spirit-color-emotion-danger-border-subtle)",contentBasic:"var(--spirit-color-emotion-danger-content-basic)",contentSubtle:"var(--spirit-color-emotion-danger-content-subtle)",stateActive:"var(--spirit-color-emotion-danger-state-active)",stateDefault:"var(--spirit-color-emotion-danger-state-default)",stateHover:"var(--spirit-color-emotion-danger-state-hover)"},informative:{backgroundBasic:"var(--spirit-color-emotion-informative-background-basic)",backgroundSubtle:"var(--spirit-color-emotion-informative-background-subtle)",borderBasic:"var(--spirit-color-emotion-informative-border-basic)",borderSubtle:"var(--spirit-color-emotion-informative-border-subtle)",contentBasic:"var(--spirit-color-emotion-informative-content-basic)",contentSubtle:"var(--spirit-color-emotion-informative-content-subtle)",stateActive:"var(--spirit-color-emotion-informative-state-active)",stateDefault:"var(--spirit-color-emotion-informative-state-default)",stateHover:"var(--spirit-color-emotion-informative-state-hover)"},success:{backgroundBasic:"var(--spirit-color-emotion-success-background-basic)",backgroundSubtle:"var(--spirit-color-emotion-success-background-subtle)",borderBasic:"var(--spirit-color-emotion-success-border-basic)",borderSubtle:"var(--spirit-color-emotion-success-border-subtle)",contentBasic:"var(--spirit-color-emotion-success-content-basic)",contentSubtle:"var(--spirit-color-emotion-success-content-subtle)",stateActive:"var(--spirit-color-emotion-success-state-active)",stateDefault:"var(--spirit-color-emotion-success-state-default)",stateHover:"var(--spirit-color-emotion-success-state-hover)"},warning:{backgroundBasic:"var(--spirit-color-emotion-warning-background-basic)",backgroundSubtle:"var(--spirit-color-emotion-warning-background-subtle)",borderBasic:"var(--spirit-color-emotion-warning-border-basic)",borderSubtle:"var(--spirit-color-emotion-warning-border-subtle)",contentBasic:"var(--spirit-color-emotion-warning-content-basic)",contentSubtle:"var(--spirit-color-emotion-warning-content-subtle)",stateActive:"var(--spirit-color-emotion-warning-state-active)",stateDefault:"var(--spirit-color-emotion-warning-state-default)",stateHover:"var(--spirit-color-emotion-warning-state-hover)"}},w={primary:"var(--spirit-color-text-primary)",secondary:"var(--spirit-color-text-secondary)",tertiary:"var(--spirit-color-text-tertiary)"};function A(e){return Object.fromEntries(Object.keys(e).map((e=>[e.toUpperCase(),e])))}const _={LEFT:"left",CENTER:"center",RIGHT:"right"},R={SPACE_BETWEEN:"space-between",STRETCH:"stretch",..._},k={TOP:"top",CENTER:"center",BOTTOM:"bottom"},O={BASELINE:"baseline",STRETCH:"stretch",...k},$={BASIC:"basic"},j={0:"0",100:"100",200:"200",300:"300",400:"400",500:"500",FULL:"full"},D={SOLID:"solid",DOTTED:"dotted",DASHED:"dashed"},L={0:"0",100:"100",200:"200"},I={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},M=A(C.button),F=A(N),B=A(w),U={BASIC:"basic",SUBTLE:"subtle"},H={REGULAR:"regular",SEMIBOLD:"semibold",BOLD:"bold",ITALIC:"italic"},z={TOP:"top",TOP_START:"top-start",TOP_END:"top-end",BOTTOM:"bottom",BOTTOM_START:"bottom-start",BOTTOM_END:"bottom-end",LEFT:"left",LEFT_START:"left-start",LEFT_END:"left-end",RIGHT:"right",RIGHT_START:"right-start",RIGHT_END:"right-end"},V={SMALL:"small",MEDIUM:"medium",LARGE:"large"},W={XSMALL:"xsmall",...V,XLARGE:"xlarge"},{MAXWIDTH:G,PADDING:q,...X}=A(S),Y={FILL:"fill",OUTLINE:"outline"},K={BOX:"box",PILL:"pill"},Q={HORIZONTAL:"horizontal",VERTICAL:"vertical"},Z={...Q,HORIZONTAL_REVERSED:"horizontal-reversed"};var J=(e=>(e.X="x",e.Y="y",e))(J||{});const ee=e=>e===Q.HORIZONTAL,te={START:"start",END:"end"},ne={CONTAIN:"contain",COVER:"cover"},re={LEFT:"left",RIGHT:"right",TOP:"top",BOTTOM:"bottom"},oe="multiple",se="single",ie={backgroundGradient:"bg-gradient"},ae={borderRadius:"rounded"},le={margin:"m",marginTop:"mt",marginRight:"mr",marginBottom:"mb",marginLeft:"ml",marginX:"mx",marginY:"my"},ce={padding:"p",paddingBottom:"pb",paddingLeft:"pl",paddingRight:"pr",paddingTop:"pt",paddingX:"px",paddingY:"py"},pe={isTextBalanced:"text-wrap-pretty",textAlignment:"text",textHyphens:"text-hyphens",textWordBreak:"text-word-break"},de={isTextBalanced:"text-wrap-balance"},ue={hideOn:"d",hideFrom:"d"},me={theme:""},fe=4,he=t.createContext(void 0),ge=he.Provider,ye=he.Consumer,be={...V,AUTO:"auto"},ve="background",xe="both",Te="icon",Pe={ALWAYS:"always",HOVER:"hover",NEVER:"never"},Se="auto",Ee="mobile";var Ce=(e=>(e.TABLET="tablet",e.DESKTOP="desktop",e))(Ce||{});const Ne={CLICK:"click",HOVER:"hover",FOCUS:"focus",MANUAL:"manual",OUTSIDE_PRESS:"outside-press",ESCAPE_KEY:"escape-key"},we={LINES:"lines",WORDS:"words",CHARACTERS:"characters"},Ae=e=>null==e,_e=e=>"string"==typeof e&&""===e.trim(),Re=e=>Array.isArray(e)&&0===e.length,ke=e=>"object"==typeof e&&null!==e&&0===Object.keys(e).length,Oe=e=>{if("object"==typeof e&&null!==e)for(const t in e)if(Object.hasOwnProperty.call(e,t))return!0;return!1},$e=e=>!!Ae(e)||(!!_e(e)||(!!Re(e)||(!!ke(e)||(Oe(e),!1)))),je=e=>t=>null!=e&&""!==e?`${e}-${t}`:t,De=e=>t=>`${t}--${e}`,Le=e=>t=>`${t}--${e}`,Ie=(e,t,n)=>{const r={};for(const[o,s]of Object.entries(e))for(const[e]of Object.entries(s))if(e.startsWith(t)){const s=`${n}-${o}-${e.replace(t,"").toLowerCase()}`;r[s.replace(/-/g,"_").toUpperCase()]=s}return r},Me=(...e)=>e.reduceRight(((e,t)=>(...n)=>t(e(...n))),(e=>e)),Fe=(e,t)=>{let n;const r=r=>{void 0!==n&&clearTimeout(n),n=setTimeout((()=>{n=void 0,e(r)}),t)};return r.cancel=()=>{void 0!==n&&(clearTimeout(n),n=void 0)},r},Be=(e,t)=>{const n=setTimeout((()=>{e(),clearTimeout(n)}),t)};var Ue,He={},ze={},Ve={},We={},Ge={};function qe(){return Ue||(Ue=1,e=Ge,Object.defineProperty(e,"__esModule",{value:!0}),e.Doctype=e.CDATA=e.Tag=e.Style=e.Script=e.Comment=e.Directive=e.Text=e.Root=e.isTag=e.ElementType=void 0,(n=t=e.ElementType||(e.ElementType={})).Root="root",n.Text="text",n.Directive="directive",n.Comment="comment",n.Script="script",n.Style="style",n.Tag="tag",n.CDATA="cdata",n.Doctype="doctype",e.isTag=function(e){return e.type===t.Tag||e.type===t.Script||e.type===t.Style},e.Root=t.Root,e.Text=t.Text,e.Directive=t.Directive,e.Comment=t.Comment,e.Script=t.Script,e.Style=t.Style,e.Tag=t.Tag,e.CDATA=t.CDATA,e.Doctype=t.Doctype),Ge;var e,t,n}var Xe,Ye,Ke={};function Qe(){if(Xe)return Ke;Xe=1;var e=Ke&&Ke.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),t=Ke&&Ke.__assign||function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},t.apply(this,arguments)};Object.defineProperty(Ke,"__esModule",{value:!0}),Ke.cloneNode=Ke.hasChildren=Ke.isDocument=Ke.isDirective=Ke.isComment=Ke.isText=Ke.isCDATA=Ke.isTag=Ke.Element=Ke.Document=Ke.CDATA=Ke.NodeWithChildren=Ke.ProcessingInstruction=Ke.Comment=Ke.Text=Ke.DataNode=Ke.Node=void 0;var n=qe(),r=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),b(this,e)},e}();Ke.Node=r;var o=function(t){function n(e){var n=t.call(this)||this;return n.data=e,n}return e(n,t),Object.defineProperty(n.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),n}(r);Ke.DataNode=o;var s=function(t){function r(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.ElementType.Text,e}return e(r,t),Object.defineProperty(r.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),r}(o);Ke.Text=s;var i=function(t){function r(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.ElementType.Comment,e}return e(r,t),Object.defineProperty(r.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),r}(o);Ke.Comment=i;var a=function(t){function r(e,r){var o=t.call(this,r)||this;return o.name=e,o.type=n.ElementType.Directive,o}return e(r,t),Object.defineProperty(r.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),r}(o);Ke.ProcessingInstruction=a;var l=function(t){function n(e){var n=t.call(this)||this;return n.children=e,n}return e(n,t),Object.defineProperty(n.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),n}(r);Ke.NodeWithChildren=l;var c=function(t){function r(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.ElementType.CDATA,e}return e(r,t),Object.defineProperty(r.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),r}(l);Ke.CDATA=c;var p=function(t){function r(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.ElementType.Root,e}return e(r,t),Object.defineProperty(r.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),r}(l);Ke.Document=p;var d=function(t){function r(e,r,o,s){void 0===o&&(o=[]),void 0===s&&(s="script"===e?n.ElementType.Script:"style"===e?n.ElementType.Style:n.ElementType.Tag);var i=t.call(this,o)||this;return i.name=e,i.attribs=r,i.type=s,i}return e(r,t),Object.defineProperty(r.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}}))},enumerable:!1,configurable:!0}),r}(l);function u(e){return(0,n.isTag)(e)}function m(e){return e.type===n.ElementType.CDATA}function f(e){return e.type===n.ElementType.Text}function h(e){return e.type===n.ElementType.Comment}function g(e){return e.type===n.ElementType.Directive}function y(e){return e.type===n.ElementType.Root}function b(e,n){var r;if(void 0===n&&(n=!1),f(e))r=new s(e.data);else if(h(e))r=new i(e.data);else if(u(e)){var o=n?v(e.children):[],l=new d(e.name,t({},e.attribs),o);o.forEach((function(e){return e.parent=l})),null!=e.namespace&&(l.namespace=e.namespace),e["x-attribsNamespace"]&&(l["x-attribsNamespace"]=t({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(l["x-attribsPrefix"]=t({},e["x-attribsPrefix"])),r=l}else if(m(e)){o=n?v(e.children):[];var b=new c(o);o.forEach((function(e){return e.parent=b})),r=b}else if(y(e)){o=n?v(e.children):[];var x=new p(o);o.forEach((function(e){return e.parent=x})),e["x-mode"]&&(x["x-mode"]=e["x-mode"]),r=x}else{if(!g(e))throw new Error("Not implemented yet: ".concat(e.type));var T=new a(e.name,e.data);null!=e["x-name"]&&(T["x-name"]=e["x-name"],T["x-publicId"]=e["x-publicId"],T["x-systemId"]=e["x-systemId"]),r=T}return r.startIndex=e.startIndex,r.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(r.sourceCodeLocation=e.sourceCodeLocation),r}function v(e){for(var t=e.map((function(e){return b(e,!0)})),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}return Ke.Element=d,Ke.isTag=u,Ke.isCDATA=m,Ke.isText=f,Ke.isComment=h,Ke.isDirective=g,Ke.isDocument=y,Ke.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},Ke.cloneNode=b,Ke}function Ze(){return Ye||(Ye=1,function(e){var t=We&&We.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=We&&We.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.DomHandler=void 0;var r=qe(),o=Qe();n(Qe(),e);var s={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},i=function(){function e(e,t,n){this.dom=[],this.root=new o.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=s),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:s,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new o.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?r.ElementType.Tag:void 0,s=new o.Element(e,t,void 0,n);this.addNode(s),this.tagStack.push(s)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===r.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new o.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===r.ElementType.Comment)this.lastNode.data+=e;else{var t=new o.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new o.Text(""),t=new o.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new o.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();e.DomHandler=i,e.default=i}(We)),We}var Je,et,tt,nt,rt={};function ot(){if(et)return Ve;et=1,Object.defineProperty(Ve,"__esModule",{value:!0}),Ve.formatAttributes=r,Ve.escapeSpecialCharacters=function(e){return e.replace(n.CARRIAGE_RETURN_REGEX,n.CARRIAGE_RETURN_PLACEHOLDER)},Ve.revertEscapedCharacters=s,Ve.formatDOM=function e(n,i,a){void 0===i&&(i=null);for(var l,c=[],p=0,d=n.length;p<d;p++){var u=n[p];switch(u.nodeType){case 1:var m=o(u.nodeName);(l=new t.Element(m,r(u.attributes))).children=e("template"===m?u.content.childNodes:u.childNodes,l);break;case 3:l=new t.Text(s(u.nodeValue));break;case 8:l=new t.Comment(u.nodeValue);break;default:continue}var f=c[p-1]||null;f&&(f.next=l),l.parent=i,l.prev=f,l.next=null,c.push(l)}a&&((l=new t.ProcessingInstruction(a.substring(0,a.indexOf(" ")).toLowerCase(),a)).next=c[0]||null,l.parent=i,c.unshift(l),c[1]&&(c[1].prev=c[0]));return c};var e,t=Ze(),n=(Je||(Je=1,e=rt,Object.defineProperty(e,"__esModule",{value:!0}),e.CARRIAGE_RETURN_PLACEHOLDER_REGEX=e.CARRIAGE_RETURN_PLACEHOLDER=e.CARRIAGE_RETURN_REGEX=e.CARRIAGE_RETURN=e.CASE_SENSITIVE_TAG_NAMES_MAP=e.CASE_SENSITIVE_TAG_NAMES=void 0,e.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],e.CASE_SENSITIVE_TAG_NAMES_MAP=e.CASE_SENSITIVE_TAG_NAMES.reduce((function(e,t){return e[t.toLowerCase()]=t,e}),{}),e.CARRIAGE_RETURN="\r",e.CARRIAGE_RETURN_REGEX=new RegExp(e.CARRIAGE_RETURN,"g"),e.CARRIAGE_RETURN_PLACEHOLDER="__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_".concat(Date.now(),"__"),e.CARRIAGE_RETURN_PLACEHOLDER_REGEX=new RegExp(e.CARRIAGE_RETURN_PLACEHOLDER,"g")),rt);function r(e){for(var t={},n=0,r=e.length;n<r;n++){var o=e[n];t[o.name]=o.value}return t}function o(e){var t=function(e){return n.CASE_SENSITIVE_TAG_NAMES_MAP[e]}(e=e.toLowerCase());return t||e}function s(e){return e.replace(n.CARRIAGE_RETURN_PLACEHOLDER_REGEX,n.CARRIAGE_RETURN)}return Ve}const st=d(function(){if(nt)return He;nt=1;var e=He&&He.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(He,"__esModule",{value:!0}),He.default=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];var o=e.match(r),s=o?o[1]:void 0;return(0,n.formatDOM)((0,t.default)(e),null,s)};var t=e(function(){if(tt)return ze;tt=1,Object.defineProperty(ze,"__esModule",{value:!0}),ze.default=function(c){var p,d,m=(c=(0,e.escapeSpecialCharacters)(c)).match(o),f=m&&m[1]?m[1].toLowerCase():"";switch(f){case t:var h=l(c);return s.test(c)||null===(p=null==(y=h.querySelector(n))?void 0:y.parentNode)||void 0===p||p.removeChild(y),i.test(c)||null===(d=null==(y=h.querySelector(r))?void 0:y.parentNode)||void 0===d||d.removeChild(y),h.querySelectorAll(t);case n:case r:var g=a(c).querySelectorAll(f);return i.test(c)&&s.test(c)?g[0].parentNode.childNodes:g;default:return u?u(c):(y=a(c,r).querySelector(r)).childNodes;var y}};var e=ot(),t="html",n="head",r="body",o=/<([a-zA-Z]+[0-9]?)/,s=/<head[^]*>/i,i=/<body[^]*>/i,a=function(e,t){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},l=function(e,t){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},c="object"==typeof window&&window.DOMParser;if("function"==typeof c){var p=new c;a=l=function(e,t){return t&&(e="<".concat(t,">").concat(e,"</").concat(t,">")),p.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var d=document.implementation.createHTMLDocument();a=function(e,t){if(t){var n=d.documentElement.querySelector(t);return n&&(n.innerHTML=e),d}return d.documentElement.innerHTML=e,d}}var u,m="object"==typeof document&&document.createElement("template");return m&&m.content&&(u=function(e){return m.innerHTML=e,m.content.childNodes}),ze}()),n=ot(),r=/<(![a-zA-Z\s]+)>/;return He}()),it=st.default||st;var at,lt,ct={},pt={},dt={},ut={};function mt(){if(lt)return dt;lt=1;function e(e,t,n,r,o,s,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=i}const t={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach((n=>{t[n]=new e(n,0,!1,n,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((([n,r])=>{t[n]=new e(n,1,!1,r,null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((n=>{t[n]=new e(n,2,!1,n.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((n=>{t[n]=new e(n,2,!1,n,null,!1,!1)})),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach((n=>{t[n]=new e(n,3,!1,n.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((n=>{t[n]=new e(n,3,!0,n,null,!1,!1)})),["capture","download"].forEach((n=>{t[n]=new e(n,4,!1,n,null,!1,!1)})),["cols","rows","size","span"].forEach((n=>{t[n]=new e(n,6,!1,n,null,!1,!1)})),["rowSpan","start"].forEach((n=>{t[n]=new e(n,5,!1,n.toLowerCase(),null,!1,!1)}));const n=/[\-\:]([a-z])/g,r=e=>e[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach((o=>{const s=o.replace(n,r);t[s]=new e(s,1,!1,o,null,!1,!1)})),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach((o=>{const s=o.replace(n,r);t[s]=new e(s,1,!1,o,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((o=>{const s=o.replace(n,r);t[s]=new e(s,1,!1,o,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((n=>{t[n]=new e(n,1,!1,n.toLowerCase(),null,!1,!1)}));t.xlinkHref=new e("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((n=>{t[n]=new e(n,1,!1,n.toLowerCase(),null,!0,!0)}));const{CAMELCASE:o,SAME:s,possibleStandardNames:i}=(at||(at=1,ut.SAME=0,ut.CAMELCASE=1,ut.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}),ut),a=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),l=Object.keys(i).reduce(((e,t)=>{const n=i[t];return n===s?e[t]=t:n===o?e[t.toLowerCase()]=t:e[t]=n,e}),{});return dt.BOOLEAN=3,dt.BOOLEANISH_STRING=2,dt.NUMERIC=5,dt.OVERLOADED_BOOLEAN=4,dt.POSITIVE_NUMERIC=6,dt.RESERVED=0,dt.STRING=1,dt.getPropertyInfo=function(e){return t.hasOwnProperty(e)?t[e]:null},dt.isCustomAttribute=a,dt.possibleStandardNames=l,dt}var ft,ht,gt,yt={},bt={},vt={};function xt(){if(gt)return vt;gt=1;var e=vt&&vt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(vt,"__esModule",{value:!0});var t=e(function(){if(ht)return ft;ht=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,i=/^[;\s]*/,a=/^\s+|\s+$/g,l="";function c(e){return e?e.replace(a,l):l}return ft=function(a,p){if("string"!=typeof a)throw new TypeError("First argument must be a string");if(!a)return[];p=p||{};var d=1,u=1;function m(e){var n=e.match(t);n&&(d+=n.length);var r=e.lastIndexOf("\n");u=~r?e.length-r:u+e.length}function f(){var e={line:d,column:u};return function(t){return t.position=new h(e),b(),t}}function h(e){this.start=e,this.end={line:d,column:u},this.source=p.source}function g(e){var t=new Error(p.source+":"+d+":"+u+": "+e);if(t.reason=e,t.filename=p.source,t.line=d,t.column=u,t.source=a,!p.silent)throw t}function y(e){var t=e.exec(a);if(t){var n=t[0];return m(n),a=a.slice(n.length),t}}function b(){y(n)}function v(e){var t;for(e=e||[];t=x();)!1!==t&&e.push(t);return e}function x(){var e=f();if("/"==a.charAt(0)&&"*"==a.charAt(1)){for(var t=2;l!=a.charAt(t)&&("*"!=a.charAt(t)||"/"!=a.charAt(t+1));)++t;if(t+=2,l===a.charAt(t-1))return g("End of comment missing");var n=a.slice(2,t-2);return u+=2,m(n),a=a.slice(t),u+=2,e({type:"comment",comment:n})}}function T(){var t=f(),n=y(r);if(n){if(x(),!y(o))return g("property missing ':'");var a=y(s),p=t({type:"declaration",property:c(n[0].replace(e,l)),value:a?c(a[0].replace(e,l)):l});return y(i),p}}return h.prototype.content=a,b(),function(){var e,t=[];for(v(t);e=T();)!1!==e&&(t.push(e),v(t));return t}()}}());return vt.default=function(e,n){var r=null;if(!e||"string"!=typeof e)return r;var o=(0,t.default)(e),s="function"==typeof n;return o.forEach((function(e){if("declaration"===e.type){var t=e.property,o=e.value;s?n(t,o,e):o&&((r=r||{})[t]=o)}})),r},vt}var Tt,Pt,St,Et,Ct,Nt={};function wt(){if(Tt)return Nt;Tt=1,Object.defineProperty(Nt,"__esModule",{value:!0}),Nt.camelCase=void 0;var e=/^--[a-zA-Z0-9-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,s=function(e,t){return t.toUpperCase()},i=function(e,t){return"".concat(t,"-")};return Nt.camelCase=function(a,l){return void 0===l&&(l={}),function(t){return!t||n.test(t)||e.test(t)}(a)?a:(a=a.toLowerCase(),(a=l.reactCompat?a.replace(o,i):a.replace(r,i)).replace(t,s))},Nt}function At(){return St||(St=1,function(e){var n=yt&&yt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.returnFirstArg=e.canTextBeChildOfNode=e.ELEMENTS_WITH_NO_TEXT_CHILDREN=e.PRESERVE_CUSTOM_ATTRIBUTES=e.setStyleProp=e.isCustomComponent=void 0;var r=t,o=n(function(){if(Pt)return bt;Pt=1;var e=bt&&bt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(bt,"__esModule",{value:!0});var t=e(xt()),n=wt();return bt.default=function(e,r){var o={};return e&&"string"==typeof e?((0,t.default)(e,(function(e,t){e&&t&&(o[(0,n.camelCase)(e,r)]=t)})),o):o},bt}()),s=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);e.isCustomComponent=function(e,t){return e.includes("-")?!s.has(e):Boolean(t&&"string"==typeof t.is)};var i={reactCompat:!0};e.setStyleProp=function(e,t){if("string"==typeof e)if(e.trim())try{t.style=(0,o.default)(e,i)}catch(e){t.style={}}else t.style={}},e.PRESERVE_CUSTOM_ATTRIBUTES=Number(r.version.split(".")[0])>=16,e.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);e.canTextBeChildOfNode=function(t){return!e.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(t.name)};e.returnFirstArg=function(e){return e}}(yt)),yt}const _t=d(function(){if(Ct)return ct;Ct=1;var e=ct&&ct.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ct,"__esModule",{value:!0});var n=t,r=e(function(){if(Et)return pt;Et=1,Object.defineProperty(pt,"__esModule",{value:!0});var e=mt(),t=At(),n=["checked","value"],r=["input","select","textarea"],o={reset:!0,submit:!0};function s(t){return e.possibleStandardNames[t]}return pt.default=function(i,a){void 0===i&&(i={});var l={},c=Boolean(i.type&&o[i.type]);for(var p in i){var d=i[p];if((0,e.isCustomAttribute)(p))l[p]=d;else{var u=p.toLowerCase(),m=s(u);if(m){var f=(0,e.getPropertyInfo)(m);switch(n.includes(m)&&r.includes(a)&&!c&&(m=s("default"+u)),l[m]=d,f&&f.type){case e.BOOLEAN:l[m]=!0;break;case e.OVERLOADED_BOOLEAN:""===d&&(l[m]=!0)}}else t.PRESERVE_CUSTOM_ATTRIBUTES&&(l[p]=d)}}return(0,t.setStyleProp)(i.style,l),l},pt}()),o=At(),s={cloneElement:n.cloneElement,createElement:n.createElement,isValidElement:n.isValidElement};function i(e){return o.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&(0,o.isCustomComponent)(e.name,e.attribs)}return ct.default=function e(t,n){for(var a=[],l="function"==typeof(null==n?void 0:n.replace),c=(null==n?void 0:n.transform)||o.returnFirstArg,p=(null==n?void 0:n.library)||s,d=p.cloneElement,u=p.createElement,m=p.isValidElement,f=t.length,h=0;h<f;h++){var g=t[h];if(l){var y=n.replace(g,h);if(m(y)){f>1&&(y=d(y,{key:y.key||h})),a.push(c(y,g,h));continue}}if("text"!==g.type){var b=g,v={};i(b)?((0,o.setStyleProp)(b.attribs.style,b.attribs),v=b.attribs):b.attribs&&(v=(0,r.default)(b.attribs,b.name));var x=void 0;switch(g.type){case"script":case"style":g.children[0]&&(v.dangerouslySetInnerHTML={__html:g.children[0].data});break;case"tag":"textarea"===g.name&&g.children[0]?v.defaultValue=g.children[0].data:g.children&&g.children.length&&(x=e(g.children,n));break;default:continue}f>1&&(v.key=h),a.push(c(u(g.name,v,x),g,h))}else{var T=!g.data.trim().length;if(T&&g.parent&&!(0,o.canTextBeChildOfNode)(g.parent))continue;if((null==n?void 0:n.trim)&&T)continue;a.push(c(g.data,g,h))}}return 1===a.length?a[0]:a},ct}()),Rt=_t.default||_t,kt=e=>{if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];const t="function"==typeof it.default?it.default:it;return("function"==typeof Rt.default?Rt.default:Rt)(t(e))};function Ot(e,t){const n="string"!=typeof(r=e)&&null!==r&&"spiritComponent"in r;var r;const o=e=>"object"==typeof e&&null!==e,s=Object.values(t).flatMap((e=>"string"==typeof e?[e]:o(e)?[e.className,e.UNSAFE_className].filter(Boolean):[])).filter(Boolean).join(" "),i=Object.values(t).filter(o).reduce(((e,t)=>{if(!o(t))return e;const n=t,r=n.style||n.UNSAFE_style||{},s=(e=>o(e)?Object.entries(e).filter((([e])=>e.startsWith("--"))).reduce(((e,[t,n])=>({...e,[t]:n})),{}):{})(t);return{...e,...r,...s}}),{});return n?{UNSAFE_className:s,UNSAFE_style:i}:{className:s,style:i}}const $t=Number.parseFloat("16px"),jt=Number.isFinite($t)&&$t>0?$t:16,Dt=(e,t={})=>{const{baseFontSize:n=jt,decimals:r=fe}=t,o=Number.parseFloat(String(e)),s=Number.isFinite(o)?o:0,i=Number.parseFloat(String(n)),a=Number.isFinite(i)&&i>0?i:16,l=Number.isInteger(r)&&r>=0&&r<=100?r:fe,c=s/a,p=10**l,d=Math.round((c+Number.EPSILON)*p)/p;return`${(0===Math.abs(d)?0:d).toFixed(l).replace(/\.?0+$/,"")}rem`},Lt=e=>{const{router:t,routerOptions:n,href:r,target:o,download:s,onClick:i,isDisabled:a}=e,l="string"==typeof r&&(e=>(e=>/^[a-z][a-z0-9+.-]*:/i.test(e.trim()))(e)||(e=>e.trim().startsWith("//"))(e))(r),c="string"==typeof r&&(e=>e.trim().startsWith("#"))(r),p=Boolean(t&&r&&!a&&!(!0===s||"string"==typeof s)&&!(e=>"string"==typeof e&&"_self"!==e.toLowerCase())(o)&&!l&&!c);return p?e=>{e.defaultPrevented||(i?.(e),(e=>e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||"number"==typeof e.button&&0!==e.button)(e)||e.defaultPrevented||(e.preventDefault(),t?.navigate(String(r),n)))}:i};function It(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function Mt(e,t){return t?It(t)?Object.entries(t).map((([t,n])=>void 0===n?"":"mobile"===t?`${e}--${n}`:`${e}--${t}--${n}`)).filter((e=>""!==e)):[`${e}--${t}`]:[]}const Ft="undefined"==typeof window,Bt=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ut=e=>e.replace(/-([a-z])/g,(e=>e[1].toUpperCase())),Ht=e=>{if("object"==typeof e&&null!==e){const t={};for(const[n,r]of Object.entries(e))t[n]="string"==typeof r?Ut(r):r;return t}return e},zt=e=>"string"==typeof e||null==e?e??void 0:String(e),Vt=e=>"string"==typeof e?Ut(e):"object"==typeof e&&null!==e?Ht(e):e;function Wt(e){return"string"!=typeof e?e:e.split("-").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join("")}function Gt(e,t,n){return`${e}--${n||""}${n?Wt(t):t}`}function qt(e,t,n){return Object.keys(t).map((r=>{const o="mobile"===r?"":`--${r}`,s=t[r];return`${e}${o}--${n||""}${n?Wt(s):s}`})).join(" ")}function Xt(e,t,n){const r=function(e){return e&&"object"==typeof e}(t)?qt:Gt;return r(e,t,n)}const Yt="-",Kt=e=>(e=>"string"==typeof e&&e.startsWith("space-"))(e)?(e=>e===Se?Se:e.replace(/[^0-9]/g,""))(e):e,Qt=(e,t,n,r)=>{switch(e){case"hideOn":return((e,t,n)=>(Array.isArray(t)?t:[t]).map((t=>je(n)(`${e}${Yt}only${Yt}${t}${Yt}none`))))(t,n,r);case"hideFrom":return((e,t,n)=>{const r=t===Ee?"":`${Yt}${t}`;return[je(n)(`${e}${r}${Yt}none`)]})(t,n,r);default:return[]}},Zt=(e,t,n,r)=>{if(t===me.theme){if("string"!=typeof n)return[];const e=Bt(n);return[je(r)(e)]}return e in ue?Qt(e,t,n,r):"boolean"==typeof n?n?[je(r)(t)]:[]:"string"==typeof n?[je(r)(`${t}-${Kt(n)}`)]:((e,t,n)=>Object.keys(t).reduce(((r,o)=>{const s=t[o];if("string"==typeof s){const t=Kt(s),i=o===Ee?"":`${Yt}${o}`;r.push(je(n)(`${e}${i}${Yt}${t}`))}return r}),[]))(t,n,r)},Jt=(e,t,n,r={includesKey:!0})=>{const o=(s=e,i=t,Object.keys(s).includes(i));var s,i;return r.includesKey?o&&!$e(n):!o};function en(e,n){const r=t.useContext(he),{UNSAFE_className:o,UNSAFE_style:s,...i}=e,a={theme:me.theme,...n??{}},{styleUtilities:l,props:c}=((e,t="",n={})=>{const r={...le,...ue,...me,...n},o=Object.entries(e);return{styleUtilities:o.reduce(((e,[n,o])=>{if(Jt(r,n,o)){const s=r[n];return[...e,...Zt(n,s,o,t)]}return e}),[]),props:o.reduce(((e,[t,n])=>Jt(r,t,n,{includesKey:!1})?{...e,[t]:n}:e),{})}})(i,r,a),p={...s};c.className&&(b(0,"The className prop is unsafe and is unsupported in Spirit Web React. Please use style props with Spirit Design Tokens, or UNSAFE_className if you absolutely must do something custom. Note that this may break in future versions due to DOM structure changes."),delete c.className),c.style&&(b(0,"The style prop is unsafe and is unsupported in Spirit Web React. Please use style props with Spirit Design Tokens, or UNSAFE_style if you absolutely must do something custom. Note that this may break in future versions due to DOM structure changes."),delete c.style);return{styleProps:{style:Object.keys(p).length>0?p:void 0,className:g(...l,o)||void 0},props:c}}function tn(e,t,n){return Xt(e,t&&"object"==typeof t?{mobile:"stretch",...t}:t,n)}function nn(e,n){const[r,o]=t.useState((()=>{if(!n)return[];const e=n.trim().split(/\s+/).filter(Boolean);return Array.from(new Set(e))})),s=t.useCallback((({add:e,remove:t})=>{o((n=>{const r=new Set(n),o=r.size;return t&&r.delete(t),e&&r.add(e),r.size!==o?Array.from(r):n}))}),[]);return[t.useMemo((()=>r.length>0?{[e]:r.join(" ")}:{}),[r,e]),s]}const rn=e=>nn("aria-describedby",e),on=e=>nn("aria-details",e),sn=Ft?t.useEffect:t.useLayoutEffect,an="cancel",ln="keydown",cn=(e,n,r=!0,o=!1)=>{const s=t.useCallback((t=>{e&&n&&(t.defaultPrevented||(t.preventDefault(),n&&r&&n(t)))}),[e,n,r]),i=t.useCallback((e=>{"Escape"===e.key&&!r&&o&&e.preventDefault()}),[r,o]);return sn((()=>{const t=e?.current;return t?(t.addEventListener(an,s),document.addEventListener(ln,i),()=>{t.removeEventListener(an,s),document.removeEventListener(ln,i)}):()=>{}}),[e,s]),s},pn=e=>{const n=t.useContext(he);let r=e;return e&&n?r=je(n)(e):n&&(r=n),r},dn=(e,n)=>t.useCallback((t=>{e?t.preventDefault():n&&n(t)}),[e,n]),un=({ref:e,callback:n})=>{const r=t.useRef({mouseDownTarget:null}),o=t.useCallback((t=>{const o=r.current;!e||!n||t.defaultPrevented||e.current&&e.current.contains(o.mouseDownTarget)||e.current&&!e.current.contains(t?.target)&&n&&n(t)}),[e,n]),s=e=>{r.current.mouseDownTarget=e.target};sn((()=>(document.addEventListener("mousedown",s,{capture:!0}),document.addEventListener("click",o,{capture:!0}),()=>{document.removeEventListener("mousedown",s,{capture:!0}),document.removeEventListener("click",o,{capture:!0})})),[o])},mn=e=>{const{value:n,defaultValue:r,componentName:o,valuePropName:s="value",defaultValuePropName:i="defaultValue",bothDefinedMessage:a,modeSwitchMessage:l}=e,c=void 0!==n,p=t.useRef(void 0),d=t.useRef(!1);t.useEffect((()=>{void 0===n||void 0===r||d.current||(d.current=!0,b(0,a??`${o}: \`${s}\` and \`${i}\` cannot both be set. Use either controlled (\`${s}\`) or uncontrolled (\`${i}\`) mode.`))}),[a,o,r,i,n,s]),t.useEffect((()=>{void 0!==p.current?(p.current!==c&&b(0,l??`${o}: Do not switch between controlled (\`${s}\` defined) and uncontrolled (\`${s}\` undefined) modes across renders.`),p.current=c):p.current=c}),[o,c,l,s])},fn=(e,n)=>{const[r,o]=t.useState(e),s=t.useRef(!0),i=t.useMemo((()=>Fe((e=>o(e)),n)),[n]);return t.useEffect((()=>{if(!s.current)return i(e),()=>i.cancel();s.current=!1}),[e,i]),r},hn=({method:e="component",trigger:n,componentName:r,componentProps:o,propertyProps:s,customText:i})=>{const a=`Deprecation warning (${r}):`;t.useEffect((()=>{const t=n&&r&&"development"===process.env.NODE_ENV;let l,c;switch(e){case"property":l=s?.delete?`${a} "${s?.deprecatedName}" property will be deleted in the next major version.`:s?.deprecatedValue&&s?.newValue&&s?.propertyName?`${a} The "${s?.deprecatedValue}" value for "${s?.propertyName}" property will be renamed to "${s?.newValue}" in the next major version.`:`${a} "${s?.deprecatedName}" property will be replaced in the next major version. Please use "${s?.newName}" instead. ♻️️`,c=!!s;break;case"custom":l=`${a} ${i}`,c=!0;break;default:l=o?.delete?`${a} The component and its subcomponents will be deleted in the next major version.`:`${a} The component and its subcomponents will be renamed to "${o?.newName}" in the next major version.`,c=!!o}l&&t&&c&&b(0,l)}),[])},gn=(e,t)=>{const n={},r=`--${t}`;return"object"==typeof e&&null!==e?Object.keys(e).forEach((t=>{const o="mobile"===t?"":`-${t}`,s=e[t];n[`${r}${o}`]=`${s?.toString()}`})):e&&(n[`${r}`]=`${e?.toString()}`),n},yn=e=>{const[n,r]=t.useState(!1);return{isDragging:n,onDragOver:t=>{t.preventDefault(),e?.onDragOver&&e.onDragOver(t)},onDragEnter:t=>{r(!0),e?.onDragEnter&&e.onDragEnter(t)},onDragLeave:t=>{r(!1),e?.onDragLeave&&e.onDragLeave(t)},onDrop:t=>{t.preventDefault(),e?.onDrop&&e.onDrop(t),r(!1)}}},bn={common:{close:"Close",edit:"Edit",remove:"Remove"},attachment:{edit:"Edit",remove:"Remove"},breadcrumbs:{back:"Go back"},fileUploader:{edit:"Edit",remove:"Remove",attachments:"Attachments"},pagination:{next:"Next",previous:"Previous",goToPage:"Go to page"},picker:{add:"Add",removeAll:"Remove all",removeItemLabel:"Remove {itemLabel}",selectionAriaLabel:"Selected {label}",tagDescriptionText:"Press Delete or Backspace to remove"},textArea:{counter:{charactersEntered:"{count} characters entered",charactersRemaining:"{count} characters remaining",characterRemaining:"{count} character remaining",canEnterUpTo:"You can enter up to {maxLength} characters",charactersOverLimit:"{count} characters over limit",characterOverLimit:"{count} character over limit"}},textField:{password:{show:"Show password",hide:"Hide password"}},splitButton:{dropdown:"More"}},vn=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),xn=e=>{const t={};for(const n of Object.keys(e)){const r=e[n];t[n]="string"==typeof r?r:xn(r)}return t},Tn=(e,t)=>{const n=xn(e);for(const e of Object.keys(t)){const r=t[e],o=n[e];"string"==typeof r?n[e]=r:vn(r)&&("string"==typeof o?n[e]=Tn({},r):vn(o)?n[e]=Tn(o,r):n[e]=Tn({},r))}return n},Pn=t.createContext(null),Sn=Pn.Consumer,En=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),Cn=(e,t)=>{if(null==e||!En(e))return;if((e=>Object.keys(e).some((e=>e in bn)))(e))return e;const n=e[t];return En(n)?n:void 0},Nn=(e,t)=>Object.entries(t).reduce(((e,[t,n])=>{const r=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return e.replace(new RegExp(`\\{${r}\\}`,"g"),String(n))}),e),wn=(e,t)=>{const n=t.split(".");let r=e;for(const e of n){if("object"!=typeof r||null===r||!(e in r))return t;r=r[e]}return"string"==typeof r?r:t},An=()=>{const e=t.useContext(Pn)??bn;return{t:(t,n)=>{const r=wn(e,t);return n?Nn(r,n):r}}},_n=t.createContext(void 0),Rn=_n.Provider,kn=_n.Consumer,On=e=>{const n=t.useContext(_n);return null!=n&&null!=n[e]?n[e]:(b(0,`The ${e} icon is missing from your assets or icon map provided by the IconsProvider. Please make sure you have provided all icons needed by used components.`),"")};function $n(e,t,n="default"){return e&&t[e]?t[e]:t[n]}function jn(e,t){return t?Xt(e,t,"inputPosition"):""}const Dn=e=>{const n=t.useRef(null);t.useEffect((()=>{e?n.current=document.activeElement:n?.current&&n.current.focus()}),[e])},Ln=t.createContext(null),In=Ln.Consumer,Mn=()=>t.useContext(Ln),Fn=e=>{const n=Mn(),{routerOptions:r,href:o,target:s,download:i,onClick:a,isDisabled:l}=e;return t.useMemo((()=>Lt({router:n,routerOptions:r,href:o,target:s,download:i,onClick:a,isDisabled:l})),[n,r,o,s,i,a,l])};function Bn(e,t,n){return e[t]?Array.isArray(e[t])?e[t][0][n]:e[t][n]:"contentBoxSize"===t?e.contentRect["inlineSize"===n?"width":"height"]:void 0}const Un={width:void 0,height:void 0};function Hn(e){const{ref:n,box:r="border-box"}=e,[{width:o,height:s},i]=t.useState(Un),a=function(){const e=t.useRef(!1);return t.useEffect((()=>(e.current=!0,()=>{e.current=!1})),[]),t.useCallback((()=>e.current),[])}(),l=t.useRef({...Un}),c=t.useRef(void 0);return c.current=e.onResize,t.useEffect((()=>{if(Ft)return;if(!("ResizeObserver"in window))return;if(!n.current)return;const e=new ResizeObserver((([e])=>{const t="border-box"===r?"borderBoxSize":"device-pixel-content-box"===r?"devicePixelContentBoxSize":"contentBoxSize",n=Bn(e,t,"inlineSize"),o=Bn(e,t,"blockSize");if(l.current.width!==n||l.current.height!==o){const e={width:n,height:o};l.current.width=n,l.current.height=o,c.current?c.current(e):a()&&i(e)}}));return e.observe(n.current,{box:r}),()=>{e.disconnect()}}),[r,n,a]),{width:o,height:s}}const zn="is-scrolling-disabled",Vn=()=>{const{body:e}=document;e.style.paddingRight="",e.classList.remove(zn)},Wn=(e,n)=>{t.useEffect((()=>(n?(()=>{const{body:e}=document,t=window.innerWidth-e.clientWidth;e.style.paddingRight=`${t}px`,e.classList.add(zn)})():e.current&&!e.current.open&&Vn(),()=>{Vn()})),[n,e])},Gn=e=>e===se,qn=(e,t)=>Gn(t)?e.slice(0,1):e,Xn=(e,t,n)=>Gn(n)?e[0]===t:e.includes(t),Yn=(e,t,n)=>{const r=e.includes(t);return Gn(n)?r?[]:[t]:r?e.filter((e=>e!==t)):[...e,t]},Kn=({defaultSelectedKeys:e=[],onSelectionChange:n,selectionMode:r=oe})=>{const[o,s]=t.useState((()=>qn(e,r))),i=t.useRef(n);i.current=n;const a=t.useRef(!0);t.useEffect((()=>{s((e=>{const t=qn(e,r);return e.length===t.length&&e.every(((e,n)=>e===t[n]))?e:t}))}),[r]),t.useEffect((()=>{a.current?a.current=!1:i.current?.(o)}),[o]);return{selectedKeys:o,setSelectedKeys:e=>{s(qn(e,r))},toggleSelectedKey:e=>{s((t=>Yn(t,e,r)))}}};function Qn(e,t,n=void 0){const r={},o=n?`-${n}`:"";return"object"==typeof e&&null!==e?Object.keys(e).forEach((n=>{r[`--${t}-spacing${o}${"mobile"===n?"":`-${n}`}`]=`var(--${P}${e[n]?.toString()})`})):e&&(r[`--${t}-spacing${o}`]=`var(--${P}${e})`),r}const Zn="--symmetrical";function Jn(e,t){if("object"!=typeof t||null===t)return{isSymmetricalActive:!0===t,symmetricalClassName:t?`${e}${Zn}`:""};const{classes:n}=Object.keys(T).reduce(function(e,t){return(n,r)=>{if(r in t){const o=t[r],s=r===Ee?"":`--${r}`;if(o)return{classes:[...n.classes,`${e}${s}${Zn}`],wasSymmetrical:!0};if(n.wasSymmetrical)return{classes:[...n.classes,`${e}${s}--asymmetrical`],wasSymmetrical:n.wasSymmetrical}}return n}}(e,t),{classes:[],wasSymmetrical:!1});return{isSymmetricalActive:Object.values(t).includes(!0),symmetricalClassName:n.join(" ")}}const er=(e=!1)=>{const[n,r]=t.useState(e);return[n,t.useCallback((()=>r((e=>!e))),[])]},tr="--wrap",nr="--noWrap";function rr(e,t){return"object"==typeof t&&null!==t?Object.entries(t).map((([t,n])=>`${e}${"mobile"===t?"":`--${t}`}${n?tr:nr}`)).join(" "):`${e}${t?tr:nr}`}const or=()=>{const e=pn("Accordion");return{classProps:{root:e,item:`${e}__item`,header:`${e}__itemHeader`,toggle:`${e}__itemToggle`,side:`${e}__itemSide`,slot:`${e}__itemSlot`,icon:`${e}__itemIcon`,content:`${e}__content`}}},sr=t.createContext({open:void 0,toggle:()=>null}),ir=sr.Provider;sr.Consumer;const ar=()=>t.useContext(sr),lr=e=>{const{open:t}=ar();return{isOpen:(n=e,!(!n||n!==t&&!t?.includes(n)))};var n};var cr,pr={exports:{}},dr={};var ur,mr,fr={};function hr(){return ur||(ur=1,"production"!==process.env.NODE_ENV&&function(){function e(t){if(null==t)return null;if("function"==typeof t)return t.$$typeof===C?null:t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case f:return"Fragment";case g:return"Profiler";case h:return"StrictMode";case x:return"Suspense";case T:return"SuspenseList";case E:return"Activity"}if("object"==typeof t)switch("number"==typeof t.tag&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),t.$$typeof){case m:return"Portal";case b:return t.displayName||"Context";case y:return(t._context.displayName||"Context")+".Consumer";case v:var n=t.render;return(t=t.displayName)||(t=""!==(t=n.displayName||n.name||"")?"ForwardRef("+t+")":"ForwardRef"),t;case P:return null!==(n=t.displayName||null)?n:e(t.type)||"Memo";case S:n=t._payload,t=t._init;try{return e(t(n))}catch(e){}}return null}function n(e){return""+e}function r(e){try{n(e);var t=!1}catch(e){t=!0}if(t){var r=(t=console).error,o="function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return r.call(t,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",o),n(e)}}function o(t){if(t===f)return"<>";if("object"==typeof t&&null!==t&&t.$$typeof===S)return"<...>";try{var n=e(t);return n?"<"+n+">":"<...>"}catch(e){return"<...>"}}function s(){return Error("react-stack-top-frame")}function i(){var t=e(this.type);return R[t]||(R[t]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),void 0!==(t=this.props.ref)?t:null}function a(t,n,o,s,a,c){var d,m=n.children;if(void 0!==m)if(s)if(A(m)){for(s=0;s<m.length;s++)l(m[s]);Object.freeze&&Object.freeze(m)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else l(m);if(w.call(n,"key")){m=e(t);var f=Object.keys(n).filter((function(e){return"key"!==e}));s=0<f.length?"{key: someKey, "+f.join(": ..., ")+": ...}":"{key: someKey}",$[m+s]||(f=0<f.length?"{"+f.join(": ..., ")+": ...}":"{}",console.error('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',s,m,f,m),$[m+s]=!0)}if(m=null,void 0!==o&&(r(o),m=""+o),function(e){if(w.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(n)&&(r(n.key),m=""+n.key),"key"in n)for(var h in o={},n)"key"!==h&&(o[h]=n[h]);else o=n;return m&&function(e,t){function n(){p||(p=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",t))}n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}(o,"function"==typeof t?t.displayName||t.name||"Unknown":t),function(e,t,n,r,o,s){var a=n.ref;return e={$$typeof:u,type:e,key:t,props:n,_owner:r},null!==(void 0!==a?a:null)?Object.defineProperty(e,"ref",{enumerable:!1,get:i}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:o}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:s}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}(t,m,o,null===(d=N.A)?null:d.getOwner(),a,c)}function l(e){c(e)?e._store&&(e._store.validated=1):"object"==typeof e&&null!==e&&e.$$typeof===S&&("fulfilled"===e._payload.status?c(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function c(e){return"object"==typeof e&&null!==e&&e.$$typeof===u}var p,d=t,u=Symbol.for("react.transitional.element"),m=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),g=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),b=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),E=Symbol.for("react.activity"),C=Symbol.for("react.client.reference"),N=d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,w=Object.prototype.hasOwnProperty,A=Array.isArray,_=console.createTask?console.createTask:function(){return null},R={},k=(d={react_stack_bottom_frame:function(e){return e()}}).react_stack_bottom_frame.bind(d,s)(),O=_(o(s)),$={};fr.Fragment=f,fr.jsx=function(e,t,n){var r=1e4>N.recentlyCreatedOwnerStacks++;return a(e,t,n,!1,r?Error("react-stack-top-frame"):k,r?_(o(e)):O)},fr.jsxs=function(e,t,n){var r=1e4>N.recentlyCreatedOwnerStacks++;return a(e,t,n,!0,r?Error("react-stack-top-frame"):k,r?_(o(e)):O)}}()),fr}var gr=(mr||(mr=1,"production"===process.env.NODE_ENV?pr.exports=function(){if(cr)return dr;cr=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(t,n,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==n.key&&(o=""+n.key),"key"in n)for(var s in r={},n)"key"!==s&&(r[s]=n[s]);else r=n;return n=r.ref,{$$typeof:e,type:t,key:o,ref:void 0!==n?n:null,props:r}}return dr.Fragment=t,dr.jsx=n,dr.jsxs=n,dr}():pr.exports=hr()),pr.exports);const yr=t.forwardRef(((e,t)=>{const{children:n,elementType:r="section",open:o,toggle:s,...i}=e,a=r,{classProps:l}=or(),{styleProps:c,props:p}=en(i),d=Ot(a,{classProps:l.root,styleProps:c}),u={open:o,toggle:s};return gr.jsx(a,{...p,...d,ref:t,children:gr.jsx(ir,{value:u,children:n})})}));yr.spiritComponent="Accordion",yr.displayName="Accordion";const br=t.createContext({id:""}),vr=br.Provider;br.Consumer;const xr=()=>t.useContext(br),Tr=t.forwardRef(((e,t)=>{const{children:n,elementType:r="article",id:o,...s}=e,i=r,{classProps:a}=or(),{styleProps:l,props:c}=en(s),p=Ot(i,{classProps:a.item,styleProps:l}),d={id:o};return gr.jsx(i,{...c,id:o,...p,ref:t,children:gr.jsx(vr,{value:d,children:n})})}));Tr.spiritComponent="AccordionItem",Tr.displayName="AccordionItem";const Pr=(e,t)=>{const n={};return"object"==typeof t?Object.entries(t).forEach((([t,r])=>{n[`${e}${"mobile"===t?"":`-${t}`}`]=void 0===r?void 0:Dt(r)})):n[e]=Dt(t),n},Sr=e=>{const{boxSize:t,color:n,name:r,...o}=e,s=`--${P}icon`,i=String(r).includes("-dualtone")&&!n?B.PRIMARY:n,a=pn("Icon"),l=`${a}--${i}`;return{classProps:g(a,{[l]:n||i}),iconStyleProps:{...t?Pr(`${s}-size`,t):{}},props:o}},Er={ariaHidden:!0,boxSize:24},Cr=t.forwardRef(((e,t)=>{const n={...Er,...e},{boxSize:r,name:o,title:s,ariaHidden:i,...a}=n;let l=On(o);const c=(e=>"object"==typeof e?e.mobile??24:e??24)(r),{classProps:p,iconStyleProps:d,props:u}=Sr({boxSize:r,name:o,...a}),{styleProps:m,props:f}=en(u),h=Ot("svg",{classProps:p,iconStyleProps:d,styleProps:m});return s&&(l=`<title>${s}</title>${l}`),gr.jsx("svg",{...f,...h,viewBox:"0 0 24 24",fill:"none",width:c,height:c,"aria-hidden":i,ref:t,children:kt(l)})}));Cr.spiritComponent="Icon",Cr.displayName="Icon";const Nr={elementType:"h3"},wr=t.forwardRef(((e,t)=>{const n={...Nr,...e},{elementType:r="h3",children:o,slot:s,...i}=n,a=r,{classProps:l}=or(),{toggle:c}=ar(),{id:d}=xr(),{styleProps:u,props:m}=en(i),{isOpen:f}=lr(d),{triggerProps:h,headerProps:g}=p({id:d,isOpen:f}),y=Ot(a,{classProps:l.header,styleProps:u});return gr.jsxs(a,{...m,...y,...g,ref:t,children:[gr.jsx("button",{type:"button",className:l.toggle,onClick:()=>{c&&d&&c(d)},...h,children:o}),gr.jsxs("span",{className:l.side,children:[s&&gr.jsx("span",{className:l.slot,children:s}),gr.jsx("span",{className:l.icon,children:gr.jsx(Cr,{name:"chevron-down"})})]})]})}));function Ar(e,t){return(Ar=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}wr.spiritComponent="AccordionHeader",wr.displayName="AccordionHeader";var _r,Rr={exports:{}},kr={exports:{}},Or={};var $r,jr,Dr,Lr,Ir,Mr,Fr,Br,Ur,Hr,zr,Vr,Wr,Gr,qr,Xr={};function Yr(){return jr||(jr=1,"production"===process.env.NODE_ENV?kr.exports=function(){if(_r)return Or;_r=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,u=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function v(e){if("object"==typeof e&&null!==e){var u=e.$$typeof;switch(u){case t:switch(e=e.type){case l:case c:case r:case s:case o:case d:return e;default:switch(e=e&&e.$$typeof){case a:case p:case f:case m:case i:return e;default:return u}}case n:return u}}}function x(e){return v(e)===c}return Or.AsyncMode=l,Or.ConcurrentMode=c,Or.ContextConsumer=a,Or.ContextProvider=i,Or.Element=t,Or.ForwardRef=p,Or.Fragment=r,Or.Lazy=f,Or.Memo=m,Or.Portal=n,Or.Profiler=s,Or.StrictMode=o,Or.Suspense=d,Or.isAsyncMode=function(e){return x(e)||v(e)===l},Or.isConcurrentMode=x,Or.isContextConsumer=function(e){return v(e)===a},Or.isContextProvider=function(e){return v(e)===i},Or.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Or.isForwardRef=function(e){return v(e)===p},Or.isFragment=function(e){return v(e)===r},Or.isLazy=function(e){return v(e)===f},Or.isMemo=function(e){return v(e)===m},Or.isPortal=function(e){return v(e)===n},Or.isProfiler=function(e){return v(e)===s},Or.isStrictMode=function(e){return v(e)===o},Or.isSuspense=function(e){return v(e)===d},Or.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===s||e===o||e===d||e===u||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===m||e.$$typeof===i||e.$$typeof===a||e.$$typeof===p||e.$$typeof===g||e.$$typeof===y||e.$$typeof===b||e.$$typeof===h)},Or.typeOf=v,Or}():kr.exports=($r||($r=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,u=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function v(e){if("object"==typeof e&&null!==e){var u=e.$$typeof;switch(u){case t:var h=e.type;switch(h){case l:case c:case r:case s:case o:case d:return h;default:var g=h&&h.$$typeof;switch(g){case a:case p:case f:case m:case i:return g;default:return u}}case n:return u}}}var x=l,T=c,P=a,S=i,E=t,C=p,N=r,w=f,A=m,_=n,R=s,k=o,O=d,$=!1;function j(e){return v(e)===c}Xr.AsyncMode=x,Xr.ConcurrentMode=T,Xr.ContextConsumer=P,Xr.ContextProvider=S,Xr.Element=E,Xr.ForwardRef=C,Xr.Fragment=N,Xr.Lazy=w,Xr.Memo=A,Xr.Portal=_,Xr.Profiler=R,Xr.StrictMode=k,Xr.Suspense=O,Xr.isAsyncMode=function(e){return $||($=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),j(e)||v(e)===l},Xr.isConcurrentMode=j,Xr.isContextConsumer=function(e){return v(e)===a},Xr.isContextProvider=function(e){return v(e)===i},Xr.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Xr.isForwardRef=function(e){return v(e)===p},Xr.isFragment=function(e){return v(e)===r},Xr.isLazy=function(e){return v(e)===f},Xr.isMemo=function(e){return v(e)===m},Xr.isPortal=function(e){return v(e)===n},Xr.isProfiler=function(e){return v(e)===s},Xr.isStrictMode=function(e){return v(e)===o},Xr.isSuspense=function(e){return v(e)===d},Xr.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===s||e===o||e===d||e===u||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===m||e.$$typeof===i||e.$$typeof===a||e.$$typeof===p||e.$$typeof===g||e.$$typeof===y||e.$$typeof===b||e.$$typeof===h)},Xr.typeOf=v}()),Xr)),kr.exports}function Kr(){if(Lr)return Dr;Lr=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return Dr=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(r,o){for(var s,i,a=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(r),l=1;l<arguments.length;l++){for(var c in s=Object(arguments[l]))t.call(s,c)&&(a[c]=s[c]);if(e){i=e(s);for(var p=0;p<i.length;p++)n.call(s,i[p])&&(a[i[p]]=s[i[p]])}}return a},Dr}function Qr(){if(Mr)return Ir;Mr=1;return Ir="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Zr(){return Br?Fr:(Br=1,Fr=Function.call.bind(Object.prototype.hasOwnProperty))}function Jr(){if(Hr)return Ur;Hr=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=Qr(),n={},r=Zr();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function o(o,s,i,a,l){if("production"!==process.env.NODE_ENV)for(var c in o)if(r(o,c)){var p;try{if("function"!=typeof o[c]){var d=Error((a||"React class")+": "+i+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}p=o[c](s,c,a,i,null,t)}catch(e){p=e}if(!p||p instanceof Error||e((a||"React class")+": type specification of "+i+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in n)){n[p.message]=!0;var u=l?l():"";e("Failed "+i+" type: "+p.message+(null!=u?u:""))}}}return o.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},Ur=o}function eo(){if(Vr)return zr;Vr=1;var e=Yr(),t=Kr(),n=Qr(),r=Zr(),o=Jr(),s=function(){};function i(){return null}return"production"!==process.env.NODE_ENV&&(s=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),zr=function(a,l){var c="function"==typeof Symbol&&Symbol.iterator;var p="<<anonymous>>",d={array:h("array"),bigint:h("bigint"),bool:h("boolean"),func:h("function"),number:h("number"),object:h("object"),string:h("string"),symbol:h("symbol"),any:f(i),arrayOf:function(e){return f((function(t,r,o,s,i){if("function"!=typeof e)return new m("Property `"+i+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var a=t[r];if(!Array.isArray(a))return new m("Invalid "+s+" `"+i+"` of type `"+b(a)+"` supplied to `"+o+"`, expected an array.");for(var l=0;l<a.length;l++){var c=e(a,l,o,s,i+"["+l+"]",n);if(c instanceof Error)return c}return null}))},element:f((function(e,t,n,r,o){var s=e[t];return a(s)?null:new m("Invalid "+r+" `"+o+"` of type `"+b(s)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:f((function(t,n,r,o,s){var i=t[n];return e.isValidElementType(i)?null:new m("Invalid "+o+" `"+s+"` of type `"+b(i)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(e){return f((function(t,n,r,o,s){if(!(t[n]instanceof e)){var i=e.name||p;return new m("Invalid "+o+" `"+s+"` of type `"+(((a=t[n]).constructor&&a.constructor.name?a.constructor.name:p)+"` supplied to `")+r+"`, expected instance of `"+i+"`.")}var a;return null}))},node:f((function(e,t,n,r,o){return y(e[t])?null:new m("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return f((function(t,o,s,i,a){if("function"!=typeof e)return new m("Property `"+a+"` of component `"+s+"` has invalid PropType notation inside objectOf.");var l=t[o],c=b(l);if("object"!==c)return new m("Invalid "+i+" `"+a+"` of type `"+c+"` supplied to `"+s+"`, expected an object.");for(var p in l)if(r(l,p)){var d=e(l,p,s,i,a+"."+p,n);if(d instanceof Error)return d}return null}))},oneOf:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&s(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),i;return f((function(t,n,r,o,s){for(var i=t[n],a=0;a<e.length;a++)if(u(i,e[a]))return null;var l=JSON.stringify(e,(function(e,t){return"symbol"===v(t)?String(t):t}));return new m("Invalid "+o+" `"+s+"` of value `"+String(i)+"` supplied to `"+r+"`, expected one of "+l+".")}))},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&s("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var t=0;t<e.length;t++){var o=e[t];if("function"!=typeof o)return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+x(o)+" at index "+t+"."),i}return f((function(t,o,s,i,a){for(var l=[],c=0;c<e.length;c++){var p=(0,e[c])(t,o,s,i,a,n);if(null==p)return null;p.data&&r(p.data,"expectedType")&&l.push(p.data.expectedType)}return new m("Invalid "+i+" `"+a+"` supplied to `"+s+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")}))},shape:function(e){return f((function(t,r,o,s,i){var a=t[r],l=b(a);if("object"!==l)return new m("Invalid "+s+" `"+i+"` of type `"+l+"` supplied to `"+o+"`, expected `object`.");for(var c in e){var p=e[c];if("function"!=typeof p)return g(o,s,i,c,v(p));var d=p(a,c,o,s,i+"."+c,n);if(d)return d}return null}))},exact:function(e){return f((function(o,s,i,a,l){var c=o[s],p=b(c);if("object"!==p)return new m("Invalid "+a+" `"+l+"` of type `"+p+"` supplied to `"+i+"`, expected `object`.");var d=t({},o[s],e);for(var u in d){var f=e[u];if(r(e,u)&&"function"!=typeof f)return g(i,a,l,u,v(f));if(!f)return new m("Invalid "+a+" `"+l+"` key `"+u+"` supplied to `"+i+"`.\nBad object: "+JSON.stringify(o[s],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var h=f(c,u,i,a,l+"."+u,n);if(h)return h}return null}))}};function u(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function m(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function f(e){if("production"!==process.env.NODE_ENV)var t={},r=0;function o(o,i,a,c,d,u,f){if(c=c||p,u=u||a,f!==n){if(l){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var g=c+":"+a;!t[g]&&r<3&&(s("You are manually calling a React.PropTypes validation function for the `"+u+"` prop on `"+c+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[g]=!0,r++)}}return null==i[a]?o?null===i[a]?new m("The "+d+" `"+u+"` is marked as required in `"+c+"`, but its value is `null`."):new m("The "+d+" `"+u+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(i,a,c,d,u)}var i=o.bind(null,!1);return i.isRequired=o.bind(null,!0),i}function h(e){return f((function(t,n,r,o,s,i){var a=t[n];return b(a)!==e?new m("Invalid "+o+" `"+s+"` of type `"+v(a)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null}))}function g(e,t,n,r,o){return new m((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function y(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(y);if(null===e||a(e))return!0;var t=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!y(n.value))return!1}else for(;!(n=r.next()).done;){var o=n.value;if(o&&!y(o[1]))return!1}return!0;default:return!1}}function b(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function v(e){if(null==e)return""+e;var t=b(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function x(e){var t=v(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return m.prototype=Error.prototype,d.checkPropTypes=o,d.resetWarningCache=o.resetWarningCache,d.PropTypes=d,d},zr}function to(){if(Gr)return Wr;Gr=1;var e=Qr();function t(){}function n(){}return n.resetWarningCache=t,Wr=function(){function r(t,n,r,o,s,i){if(i!==e){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function o(){return r}r.isRequired=r;var s={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return s.PropTypes=s,s}}function no(){if(qr)return Rr.exports;if(qr=1,"production"!==process.env.NODE_ENV){var e=Yr();Rr.exports=eo()(e.isElement,true)}else Rr.exports=to()();return Rr.exports}const ro=d(no()),oo=!1;var so="production"!==process.env.NODE_ENV?ro.oneOfType([ro.number,ro.shape({enter:ro.number,exit:ro.number,appear:ro.number}).isRequired]):null;"production"!==process.env.NODE_ENV&&ro.oneOfType([ro.string,ro.shape({enter:ro.string,exit:ro.string,active:ro.string}),ro.shape({enter:ro.string,enterDone:ro.string,enterActive:ro.string,exit:ro.string,exitDone:ro.string,exitActive:ro.string})]);const io=t.createContext(null);var ao="unmounted",lo="exited",co="entering",po="entered",uo="exiting",mo=function(e){var r,o;function s(t,n){var r;r=e.call(this,t,n)||this;var o,s=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?s?(o=lo,r.appearStatus=co):o=po:o=t.unmountOnExit||t.mountOnEnter?ao:lo,r.state={status:o},r.nextCallback=null,r}o=e,(r=s).prototype=Object.create(o.prototype),r.prototype.constructor=r,Ar(r,o),s.getDerivedStateFromProps=function(e,t){return e.in&&t.status===ao?{status:lo}:null};var i=s.prototype;return i.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},i.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==co&&n!==po&&(t=co):n!==co&&n!==po||(t=uo)}this.updateStatus(!1,t)},i.componentWillUnmount=function(){this.cancelNextCallback()},i.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},i.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===co){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:n.findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===lo&&this.setState({status:ao})},i.performEnter=function(e){var t=this,r=this.props.enter,o=this.context?this.context.isMounting:e,s=this.props.nodeRef?[o]:[n.findDOMNode(this),o],i=s[0],a=s[1],l=this.getTimeouts(),c=o?l.appear:l.enter;!e&&!r||oo?this.safeSetState({status:po},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:co},(function(){t.props.onEntering(i,a),t.onTransitionEnd(c,(function(){t.safeSetState({status:po},(function(){t.props.onEntered(i,a)}))}))})))},i.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),o=this.props.nodeRef?void 0:n.findDOMNode(this);t&&!oo?(this.props.onExit(o),this.safeSetState({status:uo},(function(){e.props.onExiting(o),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:lo},(function(){e.props.onExited(o)}))}))}))):this.safeSetState({status:lo},(function(){e.props.onExited(o)}))},i.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},i.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},i.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},i.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:n.findDOMNode(this),o=null==e&&!this.props.addEndListener;if(r&&!o){if(this.props.addEndListener){var s=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],i=s[0],a=s[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},i.render=function(){var e=this.state.status;if(e===ao)return null;var n=this.props,r=n.children;n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef;var o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return t.createElement(io.Provider,{value:null},"function"==typeof r?r(e,o):t.cloneElement(t.Children.only(r),o))},s}(t.Component);function fo(){}mo.contextType=io,mo.propTypes="production"!==process.env.NODE_ENV?{nodeRef:ro.shape({current:"undefined"==typeof Element?ro.any:function(e,t,n,r,o,s){var i=e[t];return ro.instanceOf(i&&"ownerDocument"in i?i.ownerDocument.defaultView.Element:Element)(e,t,n,r,o,s)}}),children:ro.oneOfType([ro.func.isRequired,ro.element.isRequired]).isRequired,in:ro.bool,mountOnEnter:ro.bool,unmountOnExit:ro.bool,appear:ro.bool,enter:ro.bool,exit:ro.bool,timeout:function(e){var t=so;e.addEndListener||(t=t.isRequired);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.apply(void 0,[e].concat(r))},addEndListener:ro.func,onEnter:ro.func,onEntering:ro.func,onEntered:ro.func,onExit:ro.func,onExiting:ro.func,onExited:ro.func}:{},mo.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:fo,onEntering:fo,onEntered:fo,onExit:fo,onExiting:fo,onExited:fo},mo.UNMOUNTED=ao,mo.EXITED=lo,mo.ENTERING=co,mo.ENTERED=po,mo.EXITING=uo;const ho="aria-expanded",go="aria-controls",yo="data-spirit-breakpoint",bo=e=>{const{isOpen:t,collapsibleToBreakpoint:n,...r}=e;return hn({method:"custom",trigger:!r.id,componentName:"Collapse",customText:'The "id" property will be required instead of optional starting from the next major version.'}),{ariaProps:{root:{[yo]:n},trigger:{[ho]:t,[go]:String(r.id)}},props:r}},vo=(e,t,n)=>{const r=pn("Collapse"),o=`${r}__content`,s="span"===t?{}:{height:e?n:0};return{classProps:{root:g(r,e?v:""),content:o},styleProps:s}},xo=250,To={entering:"is-transitioning",entered:"",exiting:"is-transitioning",exited:""},Po={elementType:"div",isOpen:!1,collapsibleToBreakpoint:void 0,transitionDuration:xo},So=e=>{const n={...Po,...e},{elementType:r,children:o,transitionDuration:s=xo,...i}=n,a=r,l=t.useRef(null),c=t.useRef(null),p=(e=>{const[n,r]=t.useState(void 0);return Hn({ref:e,onResize:e=>{const t=e.height;r(`${t}px`)}}),n})(c),{classProps:d,styleProps:u}=vo(i.isOpen,a,p),{ariaProps:m,props:f}=bo(i),{styleProps:h,props:g}=en(f),y={className:h.className,style:{...u,...h.style}};return"span"===a&&i.isOpen?o:gr.jsx(mo,{in:i.isOpen,nodeRef:l,timeout:s,children:e=>gr.jsx(a,{...g,...m.root,...Ot(a,{classProps:d.root,styleProps:h,collapseStyleProps:y,transitioningStyles:To[e]}),ref:l,children:gr.jsx(a,{ref:c,className:d.content,children:o})})})};So.spiritComponent="Collapse",So.displayName="Collapse";const Eo=e=>{const[n,r]=t.useState(e);return{toggleHandler:e=>{e.preventDefault(),r(!n)},toggle:r,isOpen:n}},Co={isOpen:!1},No=e=>{const t={...Co,...e},{children:n,hideOnCollapse:r,isDisposable:o,renderTrigger:s,...i}=t,{isOpen:a,toggleHandler:l}=Eo(i.isOpen),{ariaProps:c}=bo({...i,isOpen:a}),p=r||o;return gr.jsxs(gr.Fragment,{children:[!s||p&&p&&a?null:s({isOpen:a,onClick:l,...c.trigger}),p&&a?n:gr.jsx(So,{...i,isOpen:a,children:n})]})};No.spiritComponent="UncontrolledCollapse";const wo=({children:e,...t})=>{const{classProps:n}=or(),{id:r}=xr(),{styleProps:o,props:s}=en(t),{isOpen:i}=lr(r),{contentProps:a}=p({id:r,isOpen:i});return gr.jsx(So,{isOpen:i,...a,children:gr.jsx("div",{...s,...o,className:g(n.content,o.className),children:e})})};wo.spiritComponent="AccordionContent";const Ao=e=>{const{defaultOpen:t,stayOpen:n,...r}=e,{open:o,toggle:s}=i({defaultOpen:t,stayOpen:n});return gr.jsx(yr,{...r,open:o,toggle:s})};function _o(e){const{alignmentX:t,alignmentY:n,direction:r,spacing:o,spacingX:s,spacingY:i,isWrapping:a,...l}=e;hn({method:"custom",trigger:"row"===r||"column"===r,componentName:"Flex",customText:"Direction values `row` and `column` are deprecated and will be removed in the next major release. Use `horizontal` and `vertical` values instead."});const c=pn("Flex"),p={...Qn(o,"flex",J.X),...Qn(o,"flex",J.Y),...Qn(s,"flex",J.X),...Qn(i,"flex",J.Y)},d=Xt(c,Vt(r));return{classProps:g(c,rr(c,a),{[tn(c,t,"alignmentX")]:t,[tn(c,n,"alignmentY")]:n,[d]:r}),props:l,styleProps:p}}Ao.spiritComponent="UncontrolledAccordion",Ao.displayName="UncontrolledAccordion";const Ro={alignmentX:R.STRETCH,alignmentY:O.STRETCH,direction:Z.HORIZONTAL,elementType:"div",isWrapping:!1},ko=t.forwardRef(((e,t)=>{const n={...Ro,...e},{elementType:r=Ro.elementType,direction:o,children:s,...i}=n,a=r,{classProps:l,props:c,styleProps:p}=_o({direction:o,...i}),{styleProps:d,props:u}=en({...c}),m=Ot(a,{classProps:l,flexStyle:p,styleProps:d,otherProps:u});return gr.jsx(a,{...u,...m,ref:t,children:s})}));ko.spiritComponent="Flex",ko.displayName="Flex";const Oo={alignmentX:{mobile:R.STRETCH,tablet:R.LEFT},direction:{mobile:Z.VERTICAL,tablet:Z.HORIZONTAL}},$o=e=>{const{children:t,...n}=e,r={...Oo,...n};return gr.jsx(ko,{...r,children:t})};function jo(e){const{color:t,isCentered:n,...r}=e,o=pn("Alert"),s=`${o}--${t}`,i=`${o}--center`;return{classProps:g(o,{[s]:t,[i]:n}),props:r}}$o.spiritComponent="ActionGroup";const Do={color:"success",isCentered:!1,elementType:"div"},Lo=t.forwardRef(((e,t)=>{const n={...Do,...e},{elementType:r,children:o,color:s,iconName:i,...a}=n,l=r,{classProps:c,props:p}=jo({color:s,...a}),{styleProps:d,props:u}=en(p),m=Ot(l,{classProps:c,styleProps:d,otherProps:u}),f=function({color:e,iconName:t}){const n=$n(e,{default:"info",success:"check-plain",informative:"info",warning:"warning",danger:"danger"});return t||n}({color:s,iconName:i,...u});return gr.jsxs(l,{...u,...m,ref:t,children:[gr.jsx(Cr,{name:f}),gr.jsx("div",{children:o})]})}));Lo.spiritComponent="Alert",Lo.displayName="Alert";const Io=e=>{const{isSquare:t,size:n,...r}=e,o=pn("Avatar"),s=`${o}--square`,i=Mt(o,n);return{classProps:g(o,...i,{[s]:t}),props:r}},Mo={elementType:"div",isSquare:!1,size:W.MEDIUM},Fo=t.forwardRef(((e,t)=>{const n={...Mo,...e},{elementType:r=Mo.elementType,children:o,...s}=n,i=r,{classProps:a,props:l}=Io(s),{styleProps:c,props:p}=en(l),d=Ot(i,{classProps:a,styleProps:c});return gr.jsx(i,{...p,...d,ref:t,children:o})}));Fo.spiritComponent="Avatar",Fo.displayName="Avatar";const Bo=e=>{const{backgroundColor:t,borderColor:n,borderStyle:r,borderWidth:o,textColor:s,...i}=e||{},a=pn(`bg-${t}`),l=pn("border-"),c=t?a:"";let p=n?n.replace("",l):"",d="";const u=o?o.replace("",l):"",m=pn(s?`text-${s}`:"");o&&parseInt(o,10)>0&&(d=`${l}${r}`,n||(p=`${l}${$.BASIC}`));return{classProps:g(c,p,d,u,{[m]:!!s}),props:i}},Uo={elementType:"div",borderStyle:D.SOLID},Ho=t.forwardRef(((e,t)=>{const n={...Uo,...e},{elementType:r=Uo.elementType,children:o,...s}=n,i=r,{classProps:a,props:l}=Bo(s),{styleProps:c,props:p}=en(l,{...ie,...ae,...ce}),d=Ot(i,{classProps:a,styleProps:c});return gr.jsx(i,{...p,...d,ref:t,children:o})}));function zo(e){const{color:t,hasVisitedStyleAllowed:n,isDisabled:r,underlined:o,...s}=e,i=pn("link"),a=`${i}-disabled`,l=`${i}-underlined`,c=`${i}-not-underlined`,p=`${i}-allow-visited-style`;return{classProps:g(`${i}-${t}`,{[a]:r,[l]:o===Pe.ALWAYS,[c]:o===Pe.NEVER,[p]:n}),props:s}}Ho.spiritComponent="Box",Ho.displayName="Box";const Vo={elementType:"a",color:"primary",hasVisitedStyleAllowed:!1,underlined:"hover"},Wo=t.forwardRef(((e,t)=>{const n={...Vo,...e},{elementType:r=Vo.elementType,children:o,routerOptions:s,...i}=n,a=r,{classProps:l,props:c}=zo(i),{styleProps:p,props:d}=en(c),u=Ot(a,{classProps:l,styleProps:p,otherProps:d}),m=Fn({...i,routerOptions:s});return gr.jsx(a,{...d,...u,onClick:m,ref:t,children:o})}));Wo.spiritComponent="Link",Wo.displayName="Link";function Go(e){const{isGoBackOnly:t,...n}=e,r=pn("Breadcrumbs"),o=pn("d-none"),s=pn("d-tablet-flex"),i=pn("d-tablet-none");return{classProps:{root:r,item:g({[o]:!t,[s]:!t,[i]:t})},props:n}}const qo={iconNameEnd:"chevron-right",iconNameStart:"chevron-left",isCurrent:!1,isGoBackOnly:!1},Xo=e=>{const t={...qo,...e},{children:n,href:r,isCurrent:o,iconNameStart:s,iconNameEnd:i,...a}=t,{classProps:l,props:c}=Go({...a}),{styleProps:p,props:d}=en(c);return gr.jsxs("li",{...d,...p,className:g(l.item,p.className),children:[a.isGoBackOnly&&s&&gr.jsx(Cr,{name:s}),!r&&o?n:gr.jsx(Wo,{href:r,color:o?"secondary":"primary",underlined:o?"hover":"always","aria-current":o?"page":void 0,children:n}),!o&&!a.isGoBackOnly&&i&&gr.jsx(Cr,{name:i})]})};Xo.spiritComponent="BreadcrumbsItem";const Yo={elementType:"nav",items:[]},Ko=e=>{const n={...Yo,...e},{children:r,elementType:o,goBackTitle:s,items:i,...a}=n,l=o,{classProps:c,props:p}=Go({...a}),{styleProps:d,props:u}=en(p),m=Ot(l,{classProps:c.root,styleProps:d}),f=(e,t)=>e===t-1;return gr.jsx(l,{...u,...m,"aria-label":"Breadcrumb",children:gr.jsx("ol",{children:r||i?.map(((e,n)=>gr.jsxs(t.Fragment,{children:[n===i.length-2&&s&&gr.jsx(Xo,{href:e.url||void 0,isGoBackOnly:!0,children:s}),gr.jsx(Xo,{href:e.url||void 0,isCurrent:f(n,i?.length),children:e.title})]},`BreadcrumbsItem_${e.title}`)))})})};Ko.spiritComponent="Breadcrumbs",Ko.displayName="Breadcrumbs";const Qo=e=>{const{isDisabled:t,isLoading:n,onClick:r,type:o="button"}=e;return{buttonProps:{...{type:o,disabled:t||n},onClick:dn(t,r)}}};function Zo(e){const{color:t,isBlock:n,isDisabled:r,isLoading:o,isSymmetrical:s,size:i,...a}=e;hn({method:"custom",trigger:!!n,componentName:"Button",customText:"The `isBlock` property will be deleted in the next major release. Please read component's documentation for more information."});const l=pn("Button"),c=`${l}--block`,p=`${l}--disabled`,d=`${l}--loading`,{isSymmetricalActive:u,symmetricalClassName:m}=Jn(l,s);n&&u&&b(0,"isBlock and isSymmetrical props are mutually exclusive");const f=g(l,((e,t)=>Me(De(t))(e))(l,t),((e,t)=>Me(Le(t))(e))(l,i),{[c]:n&&!u,[p]:r||o,[d]:o},m);return{classProps:f,props:a}}const Jo=t.createContext(null),es=({value:e,children:n})=>{const r=t.useContext(Jo),o=r?{...r,...e}:e;return t.createElement(Jo.Provider,{value:o},n)},ts=Jo.Consumer,ns=(e={})=>{const n=t.useContext(Jo);return n?{...e,...n}:e};function rs(e){const{color:t,...n}=e,r=pn("text"),o=t?`${r}-${t}`:"",s=pn("animation-spin-clockwise");return{classProps:g(o,s),props:n}}const os=e=>{const{classProps:t,props:n}=rs(e),{styleProps:r,props:o}=en(n);return gr.jsx(Cr,{...o,name:"spinner",UNSAFE_className:g(t,r.className),UNSAFE_style:r.style})};os.spiritComponent="Spinner";const ss={color:"primary",isBlock:!1,isDisabled:!1,isLoading:!1,isSymmetrical:!1,size:"medium",type:"button",elementType:"button"},is=t.forwardRef(((e,t)=>{const{elementType:n}=e,r=ns(e),{elementType:o,children:s,...i}=r,a=n??o??ss.elementType,l={...ss,...i},{elementType:c,...p}=l,d=a,{buttonProps:u}=Qo(p),{classProps:m,props:f}=Zo(p),{styleProps:h,props:g}=en(f),y=Ot(d,{classProps:m,styleProps:h,otherProps:g});return gr.jsxs(d,{...g,...u,ref:t,...y,children:[s,p.isLoading&&gr.jsx(os,{})]})}));is.spiritComponent="Button",is.displayName="Button";const as=e=>{const{elementType:t,isDisabled:n,isLoading:r,onClick:o,href:s,target:i,rel:a}=e;return{buttonLinkProps:{...{role:"button",href:"a"===t&&n?void 0:s,target:"a"===t?i:void 0,disabled:n||r,rel:"a"===t?a:void 0},onClick:dn(n,o)}}};function ls(e){const{color:t,isBlock:n,isDisabled:r,isLoading:o,isSymmetrical:s,size:i,...a}=e;hn({method:"custom",trigger:!!n,componentName:"ButtonLink",customText:"The `isBlock` property will be deleted in the next major release. Please read component's documentation for more information."});const l=pn("Button"),c=`${l}--block`,p=`${l}--disabled`,d=`${l}--loading`,{isSymmetricalActive:u,symmetricalClassName:m}=Jn(l,s);n&&u&&b(0,"isBlock and isSymmetrical props are mutually exclusive");const f=g(l,((e,t)=>Me(De(t))(e))(l,t),((e,t)=>Me(Le(t))(e))(l,i),{[c]:n&&!u,[p]:r||o,[d]:o},m);return{classProps:f,props:a}}const cs={color:"primary",elementType:"a",isBlock:!1,isDisabled:!1,isLoading:!1,isSymmetrical:!1,size:"medium"},ps=t.forwardRef(((e,t)=>{const n={...cs,...e},{elementType:r=cs.elementType,children:o,routerOptions:s,...i}=n,a=r,{buttonLinkProps:l}=as(n),{classProps:c,props:p}=ls(i),{styleProps:d,props:u}=en(p),m=Ot(a,{classProps:c,styleProps:d,otherProps:u}),f=Fn({...i,routerOptions:s,onClick:l.onClick});return gr.jsxs(a,{...u,...l,...m,onClick:f,ref:t,children:[o,i.isLoading&&gr.jsx(os,{})]})}));function ds(e){const{alignmentY:t,artworkAlignmentX:n,direction:r,footerAlignmentX:o,hasFilledHeight:s,isBoxed:i,isExpanded:a,isHeading:l,isSelectable:c,size:p}=e||{},d=pn("Card"),u=`${d}Artwork`,m=`${d}Body`,f=`${d}Eyebrow`,h=`${d}Footer`,y=`${d}Link`,b=`${d}Logo`,v=`${d}Media`,x=`${d}Title`,T=`${m}--selectable`,P=`${d}--boxed`,S=`${v}__canvas`,E=`${v}--filledHeight`,C=`${v}--expanded`,N=p?`${v}--${p}`:"",w=`${x}--heading`;return{classProps:{artwork:g(u,{[tn(u,n,"alignmentX")]:n}),body:g(m,{[T]:c}),eyebrow:f,footer:g(h,{[tn(h,o,"alignmentX")]:o}),link:y,logo:b,media:g(v,N,{[C]:a,[E]:s}),mediaCanvas:S,root:g(d,{[tn(d,t,"alignmentY")]:t,[Xt(d,Vt(r))]:r,[P]:i}),title:g(x,{[w]:l})}}}ps.spiritComponent="ButtonLink",ps.displayName="ButtonLink";const us={direction:Z.VERTICAL,elementType:"article",isBoxed:!1},ms=e=>{const t={...us,...e},{elementType:n,alignmentY:r,direction:o,isBoxed:s,children:i,...a}=t,l=n,{classProps:c}=ds({alignmentY:r,direction:o,isBoxed:s}),{styleProps:p,props:d}=en(a),u=Ot(l,{classProps:c.root,styleProps:p,otherProps:d});return gr.jsx(l,{...d,...u,children:i})};ms.spiritComponent="Card",ms.displayName="Card";const fs={alignmentX:_.LEFT},hs=e=>{const t={...fs,...e},{children:n,alignmentX:r,...o}=t,{classProps:s}=ds({artworkAlignmentX:r}),{styleProps:i,props:a}=en(o);return gr.jsx("div",{...a,className:g(s.artwork,i.className),style:i.style,children:n})};hs.spiritComponent="CardArtwork";const gs={isSelectable:!1},ys=e=>{const t={...gs,...e},{children:n,isSelectable:r,...o}=t,{classProps:s}=ds({isSelectable:r}),{styleProps:i,props:a}=en(o);return gr.jsx("div",{...a,className:g(s.body,i.className),style:i.style,children:n})};ys.spiritComponent="CardBody";const bs=e=>{const{children:t,...n}=e,{classProps:r}=ds(),{styleProps:o,props:s}=en(n);return gr.jsx("div",{...s,className:g(r.eyebrow,o.className),style:o.style,children:t})};bs.spiritComponent="CardEyebrow";const vs={alignmentX:_.LEFT},xs=e=>{const t={...vs,...e},{children:n,alignmentX:r,...o}=t,{classProps:s}=ds({footerAlignmentX:r}),{styleProps:i,props:a}=en(o);return gr.jsx("footer",{...a,className:g(s.footer,i.className),style:i.style,children:n})};xs.spiritComponent="CardFooter";const Ts={elementType:"a"},Ps=t.forwardRef(((e,t)=>{const n={...Ts,...e},{elementType:r,children:o,href:s,...i}=n,a=r,{classProps:l}=ds(),{styleProps:c,props:p}=en(i),d=Ot(a,{classProps:l.link,styleProps:c,otherProps:p});return gr.jsx(a,{...p,...c,...d,href:s,ref:t,children:o})}));Ps.spiritComponent="CardLink",Ps.displayName="CardLink";const Ss=e=>{const{children:t,...n}=e,{classProps:r}=ds(),{styleProps:o,props:s}=en(n);return gr.jsx("div",{...s,className:g(r.logo,o.className),style:{...o.style},children:t})};Ss.spiritComponent="CardLogo";const Es={fit:ne.COVER,hasFilledHeight:!1,isExpanded:!1,size:be.AUTO},Cs=e=>{const t={...Es,...e},{backgroundColor:n,children:r,fit:o,hasFilledHeight:s,isExpanded:i,size:a,...l}=t,{classProps:c}=ds({size:a,isExpanded:i,hasFilledHeight:s}),{classProps:p,styleProps:d}=(e=>{const{backgroundColor:t,fit:n}=e||{},r=pn(`bg-${t}`);return{classProps:t?r:"",styleProps:n?{[`--${P}card-media-object-fit`]:n}:{}}})({backgroundColor:n,fit:o}),{styleProps:u,props:m}=en(l,{...ie}),f=Ot("div",{classProps:g(c.media,p,u.className),styleProps:{...d,...u}});return gr.jsx("div",{...m,...f,children:gr.jsx("div",{className:c.mediaCanvas,children:r})})};Cs.spiritComponent="CardMedia";const Ns={elementType:"h4",isHeading:!0},ws=e=>{const t={...Ns,...e},{elementType:n,children:r,isHeading:o,...s}=t,i=n,{classProps:a}=ds({isHeading:o}),{styleProps:l,props:c}=en(s),p=Ot(i,{classProps:a.title,styleProps:l,otherProps:c});return gr.jsx(i,{...c,...p,children:r})};ws.spiritComponent="CardTitle",ws.displayName="CardTitle";const As={elementType:"span"},_s=e=>{const t={...As,...e},{children:n,elementType:r,...o}=t,s=r,{classProps:i,props:a}=function(e){const{...t}=e;return{classProps:pn("accessibility-hidden"),props:t}}(o),{styleProps:l,props:c}=en(a),p=Ot(s,{classProps:i,styleProps:l,otherProps:c});return gr.jsx(s,{...c,...p,children:n})};_s.spiritComponent="VisuallyHidden",_s.displayName="VisuallyHidden";const Rs=e=>{const{value:n,defaultValue:r,counterThreshold:o,hasCounter:s,onChange:i}=e,a=void 0!==n;mn({componentName:"useCharacterCounterState",value:n,defaultValue:r});const[l,c]=t.useState((()=>a?n.length:r?.length??0)),p=a?n.length:l,d=!0===s||void 0!==o,u=t.useCallback((e=>{!a&&d&&c(e.target.value.length),i?.(e)}),[a,d,i]);return{counterProps:d?{counterThreshold:o,currentLength:p,hasCounter:s}:void 0,handleChange:u}},ks=e=>{const{counterThreshold:n,currentLength:r,hasCounter:o,id:s,registerAria:i,...a}=e,{styleProps:l,props:c}=en(a),{t:p}=An(),d=!0===o||void 0!==n,u=`${s}__counterScreenReaderMessage`,m=((e,t)=>void 0!==t?`${e}/${t}`:String(e))(r,n),f=((e,t,n)=>{if(void 0===n)return e("textArea.counter.charactersEntered",{count:t});if(0===t)return e("textArea.counter.canEnterUpTo",{maxLength:n});if(t>n){const r=t-n;return e(1===r?"textArea.counter.characterOverLimit":"textArea.counter.charactersOverLimit",{count:r})}const r=n-t;return e(1===r?"textArea.counter.characterRemaining":"textArea.counter.charactersRemaining",{count:r})})(p,r,n),h=fn(f,500);return t.useEffect((()=>{if(d)return i({add:u}),()=>{i({remove:u})}}),[d,u,i]),{debouncedScreenReaderMessage:h,isVisible:d,screenReaderMessageId:u,styleProps:l,transferProps:c,visibleCounterText:m}},Os=e=>{const{debouncedScreenReaderMessage:t,isVisible:n,screenReaderMessageId:r,styleProps:o,transferProps:s,visibleCounterText:i}=ks(e);return n?gr.jsxs(gr.Fragment,{children:[gr.jsx("div",{...s,...o,"aria-hidden":"true",children:i}),gr.jsx(_s,{id:r,"aria-live":"polite","aria-atomic":"true",children:t})]}):null};Os.spiritComponent="CharacterCounter";const $s={elementType:"div",id:void 0,registerAria:void 0},js=e=>{const n={...$s,...e},{helperText:r,elementType:o,id:s,registerAria:i,...a}=n,l=o,{styleProps:c,props:p}=en(a),d=Ot(l,{styleProps:c,transferProps:p});return t.useEffect((()=>(r&&i?.({add:s}),()=>{i?.({remove:s})})),[r,s,i]),r?gr.jsx(l,{...p,...d,id:s,children:r}):null};js.spiritComponent="HelperText",js.displayName="HelperText";const Ds={elementType:"label"},Ls=e=>{const t={...Ds,...e},{elementType:n,children:r,htmlFor:o,for:s,...i}=t,a=n,{styleProps:l,props:c}=en(i),p=Ot(a,{styleProps:l,otherProps:c});return gr.jsx(a,{...c,...p,htmlFor:"label"===a?s||o:void 0,children:r})};Ls.spiritComponent="Label",Ls.displayName="Label";const Is={elementType:"div",id:void 0,registerAria:void 0,role:void 0},Ms=e=>{const n={...Is,...e},{elementType:r,hasValidationStateIcon:o,id:s,registerAria:i,role:a,validationText:l,...c}=n,p=r,d=function({hasValidationStateIcon:e}){return $n(e,{success:"check-plain",warning:"warning",danger:"danger"})}({hasValidationStateIcon:o}),{styleProps:u,props:m}=en(c),f=Ot(p,{styleProps:u,transferProps:m});if(t.useEffect((()=>(l&&i?.({add:s}),()=>{i?.({remove:s})})),[s,i,l]),!l)return null;const h=o?gr.jsx("div",{children:l}):l;return gr.jsxs(p,{...m,...f,id:s,role:a,children:[o&&gr.jsx(Cr,{name:d,boxSize:20}),Array.isArray(l)?gr.jsx("ul",{children:l.map((e=>gr.jsx("li",{children:e},`validationText_${e}`)))}):h]})};Ms.spiritComponent="ValidationText",Ms.displayName="ValidationText";const Fs=({validationState:e,validationText:n})=>{const[r,o]=t.useState(),s=t.useRef(n),i=t.useRef(e);return t.useEffect((()=>{s.current===n&&i.current===e||o("alert"),s.current=n,i.current=e}),[n,e]),r};function Bs(e){return{classProps:pn("InputDetails"),props:e}}const Us={elementType:"div",id:void 0,registerAriaDetails:void 0},Hs=e=>{const n={...Us,...e},{classProps:r,props:o}=Bs(n),{children:s,elementType:i,id:a,registerAriaDetails:l,...c}=o,{styleProps:p,props:d}=en(c),u=i||Us.elementType,m=Ot(u,{classProps:r,styleProps:p,otherProps:d});return t.useEffect((()=>(a&&l?.({add:a}),()=>{a&&l?.({remove:a})})),[a,l]),gr.jsx(u,{...d,...m,id:a,children:s})};function zs(e){const{inputPosition:t=te.START,isItem:n,isLabelHidden:r,validationState:o,...s}=e,{isDisabled:i,isRequired:a}=s,l=pn("Checkbox"),c=`${l}--disabled`,p=`${l}--item`,d=`${l}__input`,u=jn(l,t),m=`${l}__text`,f=`${l}__label`,h=`${l}__label--required`,y=`${l}__label--hidden`,b=`${l}__helperText`,v=`${l}__validationText`,x=`${l}--${o}`;return{classProps:{root:g(l,{[u]:u,[c]:i,[p]:n,[x]:o}),text:m,label:g(f,{[h]:a,[y]:r}),input:d,helperText:b,validationText:v},props:{...s,validationState:o}}}Hs.spiritComponent="InputDetails",Hs.displayName="InputDetails";const Vs=t.forwardRef(((e,t)=>{const{classProps:n,props:r}=zs(e),{"aria-describedby":o="","aria-details":s,details:i,hasValidationIcon:a,helperText:l,id:c,isChecked:p,isDisabled:d,isRequired:u,label:m,validationState:f,validationText:h,value:y,...b}=r,{styleProps:v,props:x}=en(b),[T,P]=rn(o),[S,E]=on(s),C=Fs({validationState:f,validationText:h});return gr.jsxs("div",{style:v.style,className:g(n.root,v.className),children:[gr.jsx("input",{...x,...T,...S,type:"checkbox",id:c,className:n.input,disabled:d,required:u,checked:p,value:y,ref:t}),gr.jsxs("div",{className:n.text,children:[gr.jsx(Ls,{UNSAFE_className:n.label,htmlFor:c,children:m}),i&&gr.jsx(Hs,{id:`${c}-details`,registerAriaDetails:E,children:i}),gr.jsx(js,{UNSAFE_className:n.helperText,id:`${c}__helperText`,registerAria:P,helperText:l}),f&&gr.jsx(Ms,{UNSAFE_className:n.validationText,id:`${c}__validationText`,...a&&{hasValidationStateIcon:f},validationText:h,registerAria:P,role:C})]})]})}));function Ws(e){const{isFluid:t,size:n,...r}=e,o=pn("Container"),s=`${o}--fluid`,i=`${o}--${n}`;return{classProps:g(o,{[s]:t,[i]:!t&&n}),props:r}}Vs.spiritComponent="Checkbox",Vs.displayName="Checkbox";const Gs={isFluid:!1,size:W.XLARGE},qs=e=>{const t={...Gs,...e},{children:n,...r}=t,{classProps:o,props:s}=Ws(r),{styleProps:i,props:a}=en(s,{textAlignment:pe.textAlignment});return gr.jsx("div",{...a,...i,className:g(o,i.className),children:n})};qs.spiritComponent="Container";const Xs=e=>{const{isDisabled:t,onClick:n,type:r="button"}=e;return{controlButtonProps:{...{type:r,disabled:t},onClick:dn(t,n)}}};function Ys(e){const{isDisabled:t,isSubtle:n,isSymmetrical:r,size:o,...s}=e,i=pn("ControlButton"),a=`${i}--hasBackground`,l=`${i}--disabled`,c=pn("dynamic-color-background-interactive"),p=pn("dynamic-color-border"),d=pn("accessibility-tap-target"),{symmetricalClassName:u}=Jn(i,r),m=g(i,((e,t)=>Me(Le(t))(e))(i,o),c,d,{[l]:t,[a]:!n,[p]:!n},u);return{classProps:m,props:s}}const Ks={elementType:"button",isDisabled:!1,isSubtle:!1,isSymmetrical:!1,size:V.MEDIUM,type:"button"},Qs=t.forwardRef(((e,t)=>{const n={...Ks,...e},{elementType:r=Ks.elementType,children:o,...s}=n,i=r,{controlButtonProps:a}=Xs(s),{classProps:l,props:c}=Ys(s),{styleProps:p,props:d}=en(c),u=Ot(i,{classProps:l,styleProps:p,otherProps:d});return gr.jsx(i,{...d,...a,ref:t,...u,children:o})}));Qs.spiritComponent="ControlButton",Qs.displayName="ControlButton";const Zs=(e,n)=>{const r=t.useRef(null),o=t.useCallback((()=>{null!==r.current&&(clearTimeout(r.current),r.current=null)}),[]),s=t.useCallback((e=>{o(),r.current=setTimeout((()=>{e.open&&e.close&&e.close()}),300)}),[o]),i=t.useCallback((t=>{const r=e?.current;r&&t.target===r&&!n&&r.open&&r.close&&(o(),r.close())}),[n,e,o]);Wn(e,n);const a=t.useCallback((t=>{const n=e?.current;n?.classList&&(t?n.classList.add(v):n.classList.remove(v))}),[e]);t.useEffect((()=>{const t=e?.current;return t&&(n?(o(),!t.open&&t.showModal&&(t.showModal(),a(!0))):!n&&t.open&&(a(!1),s(t))),()=>{o()}}),[n,e,a,o,s]);return{openDialog:()=>{const t=e?.current;t&&(o(),!t.open&&t.showModal&&(t.showModal(),a(!0)))},closeDialog:()=>{const t=e?.current;t&&t.open&&(a(!1),s(t))},onTransitionEnd:i}},Js=t.forwardRef(((e,n)=>{const{children:r,isOpen:o,onClose:s,closeOnBackdropClick:i=!0,closeOnEscapeKeyDown:a,...l}=e,c=t.useRef(n),p=t.useRef(null),{closeDialog:d,onTransitionEnd:u}=Zs(c,o);un({ref:p,callback:o?e=>{i&&e.target===c.current&&(d(),s(e))}:void 0}),cn(c,s,a,o);const m=t.Children.only(r);return gr.jsx("dialog",{ref:c,onTransitionEnd:u,...l,children:t.cloneElement(m,{ref:e=>{p.current=e}})})}));function ei(e){return{classProps:pn("Divider"),props:e}}Js.spiritComponent="Dialog",Js.displayName="Dialog";const ti=e=>{const{classProps:t,props:n}=ei(e),{styleProps:r,props:o}=en(n);return gr.jsx("hr",{...o,...r,className:g(t,r.className)})};ti.spiritComponent="Divider";const ni=_.RIGHT,ri=t.createContext({id:"",isOpen:!1,onClose:()=>null}),oi=ri.Provider,si=ri.Consumer,ii=()=>t.useContext(ri),ai=(e={})=>{const{drawerAlignmentX:t=ni,isOpen:n=!1}=e,r=pn("Drawer"),o=`${r}Panel`,s=`${o}__content`,i=`${r}CloseButton`;return{classProps:{root:g(r,{left:`${r}--left`,right:`${r}--right`}[t],{[v]:n}),panel:o,content:s,closeButton:i}}},li=e=>{const{children:t,alignmentX:n=ni,isOpen:r,onClose:o,id:s,...i}=e,{classProps:a}=ai({drawerAlignmentX:n}),{styleProps:l,props:c}=en(i),p={id:s,isOpen:r,onClose:o};return Dn(r),gr.jsx(oi,{value:p,children:gr.jsx(Js,{...c,...l,id:s,isOpen:r,onClose:o,className:g(a.root,l.className),children:t})})};li.spiritComponent="Drawer";const ci={color:M.TERTIARY,iconBoxSize:24,size:V.MEDIUM},pi=e=>{const t={...ci,...e},{color:n,iconBoxSize:r,label:o,size:s,...i}=t,{t:a}=An(),l=o??a("common.close"),{id:c,isOpen:p,onClose:d}=ii(),{classProps:u}=ai(),{styleProps:m,props:f}=en(i);return gr.jsxs(is,{...f,"aria-expanded":p,"aria-controls":c,onClick:d,color:n,size:s,UNSAFE_className:g(u.closeButton,m.className),UNSAFE_style:m.style,isSymmetrical:!0,children:[gr.jsx(Cr,{name:"close",boxSize:r}),gr.jsx(_s,{children:l})]})};pi.spiritComponent="DrawerCloseButton";const di=t.forwardRef(((e,t)=>{const{elementType:n="div",children:r,...o}=e,s=n,{classProps:i}=ai(o),{styleProps:a,props:l}=en(o),c=Ot(s,{classProps:i.panel,styleProps:a,otherProps:l});return gr.jsx(s,{...l,...c,ref:t,children:gr.jsx("div",{className:i.content,children:r})})}));di.spiritComponent="DrawerPanel",di.displayName="DrawerPanel";const ui="aria-expanded",mi="aria-controls",fi="data-spirit-fullwidthmode",hi="data-spirit-placement";var gi=(e=>(e.off="off",e["mobile-only"]="mobile-only",e.all="all",e))(gi||{});const yi=e=>{const{fullWidthMode:t,id:n,isOpen:r,placement:o=z.BOTTOM_START,toggleHandler:s}=e,i={[ui]:r,[mi]:String(n),onClick:s};return{contentProps:{id:n,[fi]:t,[hi]:o},triggerProps:i}},bi={dropdownRef:{current:null},fullWidthMode:gi.off,id:"",isOpen:!1,onToggle:()=>{},placement:z.BOTTOM_START,triggerRef:{current:void 0}},vi=t.createContext(bi),xi=vi.Provider;vi.Consumer;const Ti=()=>t.useContext(vi),Pi=(e={isOpen:!1})=>{const{alignmentX:t,alignmentY:n,isOpen:r,...o}=e,s=pn("Dropdown"),i=`${s}Popover`,a=r?"is-expanded":"",l=r?v:"";return{classProps:{root:g(s,{[tn(s,t,"alignmentX")]:t,[tn(s,n,"alignmentY")]:n}),trigger:a,popover:g(i,l)},props:o}},Si=e=>{const{children:n,enableAutoClose:r=!0,fullWidthMode:o,id:s,isOpen:i=!1,onAutoClose:a,onToggle:l,placement:c,...p}=e,{classProps:d,props:u}=Pi({isOpen:i,...p}),{styleProps:m,props:f}=en(u),h=t.useRef(null),y=t.useRef();return un({ref:h,callback:e=>{r&&(y?.current?.contains(e?.target)||(a&&a(e),l&&i&&l()))}}),gr.jsx(xi,{value:{id:s,isOpen:i,fullWidthMode:o,placement:c,onToggle:l,dropdownRef:h,triggerRef:y},children:gr.jsx("div",{ref:h,className:g(d.root,m.className),style:m.style,...f,children:n})})};Si.spiritComponent="Dropdown";const Ei={elementType:"button"},Ci=e=>{const t={...Ei,...e},{elementType:n,children:r,...o}=t,s=n,{id:i,isOpen:a,onToggle:l,fullWidthMode:c,triggerRef:p}=Ti(),{classProps:d,props:u}=Pi({isOpen:a,...o}),{styleProps:m,props:f}=en(u),h=Ot(s,{classProps:d.trigger,triggerStyleProps:m}),{triggerProps:g}=yi({id:i,isOpen:a,toggleHandler:l,fullWidthMode:c});return gr.jsx(s,{...f,...g,...h,ref:p,children:"function"==typeof r?r({isOpen:a}):r})};Ci.spiritComponent="DropdownTrigger",Ci.displayName="DropdownTrigger";const Ni=e=>{const{children:t,...n}=e,{id:r,isOpen:o,onToggle:s,fullWidthMode:i,placement:a}=Ti(),{classProps:l,props:c}=Pi({isOpen:o,...n}),{styleProps:p,props:d}=en(c),{contentProps:u}=yi({id:r,isOpen:o,toggleHandler:s,placement:a,fullWidthMode:i});return gr.jsx("div",{className:g(l.popover,p.className),style:p.style,...u,...d,children:t})};Ni.spiritComponent="DropdownPopover";const wi=({dropdownRef:e,triggerRef:n,enableAutoClose:r,onAutoClose:o})=>{const[s,i]=t.useState(!1);return un({ref:e,callback:e=>{r&&(n?.current?.contains(e?.target)||(o&&o(e),i(!1)))}}),{toggleHandler:e=>{e.preventDefault(),i(!s)},isOpen:s}},Ai=e=>{const{children:n,enableAutoClose:r=!0,fullWidthMode:o,id:s,onAutoClose:i,placement:a,...l}=e,{classProps:c,props:p}=Pi(l),{styleProps:d,props:u}=en(p),m=t.useRef(null),f=t.useRef(),{isOpen:h,toggleHandler:y}=wi({dropdownRef:m,triggerRef:f,enableAutoClose:r,onAutoClose:i});return gr.jsx(xi,{value:{id:s,isOpen:h,fullWidthMode:o,placement:a,onToggle:y,dropdownRef:m,triggerRef:f},children:gr.jsx("div",{ref:m,...d,...u,className:g(c.root,d.className),children:n})})};function _i(e){const{hasEndDivider:t,hasIntermediateDividers:n,hasSpacing:r,hasStartDivider:o,spacing:s,...i}=e,a=pn("Stack"),l=`${a}--hasEndDivider`,c=`${a}--hasIntermediateDividers`,p=`${a}--hasSpacing`,d=`${a}--hasStartDivider`,u=`${a}Item`,m=Qn(s,"stack");return{classProps:{root:g(a,{[l]:t,[c]:n,[p]:r||s,[d]:o}),item:u},props:i,styleProps:m}}Ai.spiritComponent="UncontrolledDropdown";const Ri=["ul","ol"],ki={elementType:"div",hasSpacing:!1,hasEndDivider:!1,hasIntermediateDividers:!1,hasStartDivider:!1},Oi=t.forwardRef(((e,t)=>{const n={...ki,...e},{elementType:r=ki.elementType,children:o,...s}=n,i=r,{classProps:a,props:l,styleProps:c}=_i(s),{styleProps:p,props:d}=en(l),u=Ot(i,{classProps:a.root,stackStyle:c,styleProps:p,otherProps:d}),m=Ri.includes(r)?"li":void 0;return gr.jsx(es,{value:{elementType:m},children:gr.jsx(i,{...d,...u,ref:t,children:o})})}));Oi.spiritComponent="Stack",Oi.displayName="Stack";const $i="div",ji=t.forwardRef(((e,t)=>{const{elementType:n}=e,r=ns(e),{children:o,elementType:s,...i}=r,a=n??s??$i,{classProps:l,props:c}=_i(i),{styleProps:p,props:d}=en(c),u=Ot(a,{classProps:l.item,styleProps:p,otherProps:d});return gr.jsx(a,{...d,...u,ref:t,children:gr.jsx(es,{value:{elementType:void 0},children:o})})}));function Di(e){const t=pn("EmptyState");return{classProps:{root:t,section:`${t}__section`},props:e}}ji.spiritComponent="StackItem",ji.displayName="StackItem";const Li=e=>{const{children:t,...n}=e,{classProps:r,props:o}=Di(n),{styleProps:s,props:i}=en(o);return gr.jsx(Oi,{...i,UNSAFE_className:g(r.root,s.className),UNSAFE_style:s.style,children:t})};Li.spiritComponent="EmptyState";const Ii=e=>{const{children:t,...n}=e,{classProps:r,props:o}=Di(n),{styleProps:s,props:i}=en(o);return gr.jsx(Oi,{...i,UNSAFE_className:g(r.section,s.className),UNSAFE_style:s.style,children:t})};Ii.spiritComponent="EmptyStateSection";const Mi=e=>{const{"aria-describedby":t="",children:n,helperText:r,hasValidationIcon:o,id:s,isDisabled:i,isFluid:a,isLabelHidden:l,isRequired:c,label:p,validationState:d,validationText:u,...m}=e,{classProps:f}=(({isFluid:e,isRequired:t,validationState:n})=>{const r=pn("FieldGroup"),o=`${r}--fluid`,s=`${r}--${n}`,i=`${r}__label`,a=`${i}--required`,l=`${r}__fields`,c=`${r}__validationText`,p=`${r}__helperText`;return{classProps:{root:g(r,{[o]:e,[s]:n}),label:g(i,{[a]:t}),fields:l,validationText:c,helperText:p}}})({isFluid:a,isRequired:c,validationState:d}),{styleProps:h,props:y}=en(m),[b,v]=rn(t),x=Fs({validationState:d,validationText:u});return gr.jsxs("fieldset",{...y,...h,...b,className:g(f.root,h.className),disabled:i,children:[gr.jsx(_s,{elementType:"legend",children:p}),!l&&gr.jsx("div",{className:f.label,"aria-hidden":"true",children:p}),gr.jsx("div",{className:f.fields,children:n}),gr.jsx(js,{UNSAFE_className:f.helperText,id:`${s}__helperText`,registerAria:v,helperText:r}),d&&gr.jsx(Ms,{UNSAFE_className:f.validationText,...o&&{hasValidationStateIcon:d},id:`${s}__helperText`,validationText:u,registerAria:v,role:x})]})};Mi.spiritComponent="FieldGroup";const Fi=1e7,Bi=1,Ui="The file size limit has been exceeded",Hi="This file already exists in the queue",zi="You have exceeded the number of files allowed in the queue",Vi="This file type is not supported",Wi="file",Gi={TOP:"--file-uploader-attachment-image-top",LEFT:"--file-uploader-attachment-image-left",WIDTH:"--file-uploader-attachment-image-width",HEIGHT:"--file-uploader-attachment-image-height"},qi={addToQueue:()=>new Map,clearQueue:()=>null,fileQueue:new Map,onDismiss:()=>new Map,findInQueue:()=>null,updateQueue:()=>new Map,errorMessages:{errorFileDuplicity:"",errorFileNotSupported:"",errorMaxFileSize:"",errorMaxUploadedFiles:""}},Xi=t.createContext(qi),Yi=Xi.Provider;Xi.Consumer;const Ki=()=>t.useContext(Xi),Qi=e=>{const t=pn("FileUploader"),n="has-drag-and-drop",r=`${t}--fluid`,o=`${t}Input`,s=`${o}--disabled`,i=`${o}--${e?.validationState}`,a="is-dragging",l=`${o}__dragAndDropLabel`,c=`${o}__dropZone`,p=`${c}Label`,d=`${o}__helperText`,u="d-none",m=`${o}__input`,f=`${o}__label`,h=`${o}__label--hidden`,y=`${o}__label--required`,b=`${o}__link`,v=`${o}__validationText`,x=`${t}List`,T=`${t}Attachment`,P=`${T}__name`,S=`${T}__action`,E=`${T}__image`,C=`${T}__slot`,{meta:N,imageObjectFit:w}=e||{};let A,_;const R=null!=N&&["x","y","cropWidth","cropHeight","originalWidth","originalHeight"].every((e=>null!=N[e]));if(R){const{x:e,y:t,cropWidth:n,cropHeight:r,originalWidth:o,originalHeight:s}=N,i=54;let a;a=r>n?i/n:i/r;const l=Math.round(e*a),c=Math.round(t*a),p=Math.round(o*a),d=Math.round(s*a);A={[Gi.TOP]:`-${c}px`,[Gi.LEFT]:`-${l}px`,[Gi.WIDTH]:`${p}px`,[Gi.HEIGHT]:`${d}px`}}return w&&(_={"--file-uploader-attachment-image-object-fit":w}),{classProps:{root:g(t,{[r]:e?.isFluid}),input:{root:g(o,{[n]:e?.isDragAndDropSupported,[s]:e?.isDisabled||e?.isDisabledByQueueLimitBehavior&&"disable"===e?.queueLimitBehavior,[a]:e?.isDragging,[u]:e?.isDropZoneHidden&&"hide"===e.queueLimitBehavior,[i]:e?.validationState}),label:g(f,{[y]:e?.isRequired,[h]:e?.isLabelHidden}),input:m,dropLabel:l,helper:d,link:g(b,"link-primary","link-underlined"),validationText:v,dropZone:{root:c,label:p}},list:x,attachment:{root:T,button:S,name:P,image:E,slot:C},...R&&{imageCropStyles:A},...w&&{attachmentStyles:_}}}},Zi=e=>{const{addToQueue:t,children:n,clearQueue:r,errorMessages:o,fileQueue:s,findInQueue:i,id:a,isFluid:l,onDismiss:c,updateQueue:p,...d}=e,{classProps:u}=Qi({isFluid:l}),{styleProps:m,props:f}=en(d);hn({method:"custom",trigger:!0,componentName:"FileUploader",customText:"See the UNSTABLE_FileUpload and UNSTABLE_File component documentation."});const h={addToQueue:t,clearQueue:r,fileQueue:s,onDismiss:c,findInQueue:i,updateQueue:p,errorMessages:{errorFileDuplicity:Hi,errorFileNotSupported:Vi,errorMaxFileSize:Ui,errorMaxUploadedFiles:zi,...o}};return gr.jsx(Yi,{value:h,children:gr.jsx("div",{id:a,...f,...m,className:g(u.root,m.className),children:n})})};Zi.spiritComponent="FileUploader";const Ji=e=>{const{maxFileSize:n,maxUploadedFiles:r,queueLimitBehavior:o,isMultiple:s,onError:i,accept:a}=e,[l,c]=t.useState(!1),[p,d]=t.useState(!1),{fileQueue:u,addToQueue:m,clearQueue:f,errorMessages:h}=Ki(),g=e=>`file__${e.replace(/\./g,"_").replace(/\s/g,"_")}`,y=e=>{try{s||f(),(e=>{if(s&&u.has(g(e.name)))throw new Error(`${e.name}: ${h?.errorFileDuplicity}`)})(e),(e=>{if(e.size>n)throw new Error(`${e.name}: ${h?.errorMaxFileSize}`)})(e),(e=>{const t=e.name.split(".").pop()?.toLowerCase(),n=e.type;let r;if(a&&""!==a&&"*"!==a&&"*/*"!==a){const e=a.replace(/ /g,"").split(","),o=e.filter((e=>e.match(/\./g))),s=e.filter((e=>e.match(/\//g)));o.forEach((e=>{const n=e.replace(".","").replace("*","");t.match(n)&&(r=!0)})),s.forEach((e=>{const t=e.replace("*","");n.match(t)&&(r=!0)}))}else r=!0;if(!r)throw new Error(`${e.name}: ${h?.errorFileNotSupported}`)})(e),(()=>{if(u.size>=r)throw new Error(h?.errorMaxUploadedFiles)})(),(()=>{if(r>1&&!s)throw new Error("`isMultiple` props must be set when maxUploadedFiles is greater than `1`")})(),m(g(e.name),e)}catch(e){i?i(e):b(0,e)}};t.useEffect((()=>{var e;e=u,o&&("hide"===o?d(e?.size>=r):c(e?.size>=r))}),[u]);return{isDropZoneHidden:p,isDisabledByQueueLimitBehavior:l,onChange:e=>{const{files:t}=e.target,n=Array.prototype.slice.call(t);let o,s=0;s+=u.size,n.forEach((e=>{s<r?(y(e),s+=1):o=!0})),o&&i&&h?.errorMaxUploadedFiles&&i(new Error(h?.errorMaxUploadedFiles)),e.target.blur(),e.target.value=""},...yn({onDrop:e=>{const t=Array.from(e.dataTransfer.items),n=Array.from(e.dataTransfer.files);let o,s=0;s+=u.size,e.dataTransfer.items?t.forEach((e=>{if("file"===e.kind){const t=e.getAsFile();t&&s<r?(y(t),s+=1):o=!0}})):n.forEach((e=>{s<r?(y(e),s+=1):o=!0})),o&&i&&h?.errorMaxUploadedFiles&&i(new Error(h?.errorMaxUploadedFiles))}})}},ea=e=>{const[n,r]=t.useState(!1),{accept:o,"aria-describedby":s="",dropZoneRef:i,hasValidationIcon:a,helperText:l,iconName:c="upload",id:p,inputRef:d,isDisabled:u,isLabelHidden:m,isMultiple:f,isRequired:h,label:y,labelText:b,linkText:v,maxFileSize:x=Fi,maxUploadedFiles:T=Bi,name:P,onError:S,queueLimitBehavior:E="none",validationState:C,validationText:N,...w}=e,{isDisabledByQueueLimitBehavior:A,isDragging:_,isDropZoneHidden:R,onChange:k,onDragEnter:O,onDragLeave:$,onDragOver:j,onDrop:D}=Ji({accept:o,isMultiple:f,maxFileSize:x,maxUploadedFiles:T,onError:S,queueLimitBehavior:E}),{classProps:L}=Qi({isDisabled:u,isDisabledByQueueLimitBehavior:A,isDragAndDropSupported:n,isDragging:_,isDropZoneHidden:R,isLabelHidden:m,isRequired:h,queueLimitBehavior:E,validationState:C}),{styleProps:I,props:M}=en(w),[F,B]=rn(s),U=Fs({validationState:C,validationText:N});return t.useEffect((()=>{r("draggable"in document.createElement("span"))}),[]),gr.jsxs("div",{...M,...I,onDragOver:!u&&n?j:void 0,onDragEnter:!u&&n?O:void 0,onDragLeave:!u&&n?$:void 0,onDrop:!u&&n?D:void 0,className:g(L.input.root,I.className),children:[gr.jsx(Ls,{htmlFor:p,UNSAFE_className:L.input.label,children:y}),gr.jsx("input",{...F,type:"file",accept:o,id:p,ref:d,name:P,className:L.input.input,onChange:k,multiple:f,disabled:u||A,...w}),gr.jsxs("div",{ref:i,className:L.input.dropZone.root,children:[gr.jsx(Cr,{name:c,"aria-hidden":"true"}),gr.jsxs(Ls,{htmlFor:p,UNSAFE_className:L.input.dropZone.label,children:[gr.jsx("span",{className:L.input.link,children:v})," ",gr.jsx("span",{className:L.input.dropLabel,children:b})]}),gr.jsx(js,{UNSAFE_className:L.input.helper,id:`${p}__helperText`,registerAria:B,helperText:l})]}),C&&gr.jsx(Ms,{UNSAFE_className:L.input.validationText,elementType:"span",...a&&{hasValidationStateIcon:C},id:`${p}__validationText`,validationText:N,registerAria:B,role:U})]})};ea.spiritComponent="FileUploaderInput";const ta=e=>{const{t:n}=An(),{label:r,id:o,attachmentComponent:s,inputName:i,hasImagePreview:a,...l}=e,c=r??n("fileUploader.attachments"),{classProps:p}=Qi(),{styleProps:d,props:u}=en(l),{fileQueue:m,onDismiss:f}=Ki(),h=t.useMemo((()=>Array.from(m,(e=>({key:e[0],file:e[1].file,meta:e[1].meta}))).map((({key:e,file:t,meta:n})=>s&&s({id:e,label:t.name,name:i,file:t,meta:n,onDismiss:f,hasImagePreview:a})))),[s,m,i,f,a]);return gr.jsxs(gr.Fragment,{children:[gr.jsx("h3",{id:o,hidden:!0,children:c}),gr.jsx("ul",{"aria-labelledby":o,...u,...d,className:g(p.list,d.className),children:h})]})};ta.spiritComponent="FileUploaderList";const na=e=>{const{name:t="edit",children:n,...r}=e,{classProps:o}=Qi(),{styleProps:s,props:i}=en(r);return gr.jsxs("button",{type:"button",...i,...s,className:g(o.attachment.button,s.className),children:[gr.jsx(_s,{children:n}),gr.jsx(Cr,{name:t,"aria-hidden":"true"})]})};na.spiritComponent="AttachmentActionButton";const ra=e=>{const{children:t,...n}=e,{classProps:r}=Qi(),{styleProps:o,props:s}=en(n);return gr.jsxs("button",{type:"button",...s,...o,className:g(r.attachment.button,o.className),children:[gr.jsx(_s,{children:t}),gr.jsx(Cr,{name:"close","aria-hidden":"true"})]})};ra.spiritComponent="AttachmentDismissButton";const oa={meta:void 0,imageObjectFit:"cover"},sa=e=>{const t={...oa,...e},{label:n,imagePreview:r,meta:o,imageObjectFit:s}=t,{classProps:i}=Qi({meta:o,imageObjectFit:s}),{imageCropStyles:a,attachmentStyles:l}=i;return gr.jsx("span",{className:i.attachment.image,children:gr.jsx("img",{src:r,width:54,height:54,alt:n,style:{...a,...l}})})};sa.spiritComponent="AttachmentImagePreview";const ia=(e,t,n)=>{const r=document.createElement("input"),o=new DataTransfer;if(e)return o.items?.add(e),r.setAttribute("type","file"),r.setAttribute("name",`${t}[]`),r.setAttribute("hidden",""),r.files=o.files,r;n?n("File not found"):b(0,"File not found")},aa=(e,t,n)=>{const r=document.createElement("input");return r.setAttribute("type","text"),r.setAttribute("name",`${t}_meta`),r.setAttribute("value",JSON.stringify(n)),r.setAttribute("hidden",""),r},la=(e,t,n)=>{const r=new FileReader;r.onload=e=>{const r=new Image;r.onload=()=>{const e=document.createElement("canvas"),o=e.getContext("2d");e.width=t,e.height=r.height/r.width*t,o?.drawImage(r,0,0,e.width,e.height);const s=e.toDataURL("image/jpeg",.8);n(s)},e.target&&e.target.result&&(r.src=e.target.result.toString())},r.readAsDataURL(e)},ca=({attachmentRef:e,file:t,name:n,meta:r,onError:o})=>{sn((()=>{(r=>{e.current?.querySelectorAll("input").forEach((e=>e.remove()));const s=ia(t,n,o);if(s&&e.current?.appendChild(s),r){const t=aa(0,n,r);e.current?.appendChild(t)}})(r)}),[e,t,n,r,o])},pa=e=>{const{t:n}=An(),{editText:r,file:o,hasImagePreview:s,iconName:i=Wi,id:a,imageObjectFit:l,label:c,meta:p,name:d,onDismiss:u,onEdit:m,onError:f,removeText:h,...y}=e,b=r??n("fileUploader.edit"),v=h??n("fileUploader.remove"),[x,T]=t.useState(""),{classProps:P}=Qi(),{styleProps:S,props:E}=en(y),C=o.type.includes("image"),N=t.useRef();return C&&la(o,500,(e=>T(e))),ca({attachmentRef:N,file:o,name:d,meta:p,onError:f}),gr.jsxs("li",{id:a,ref:N,...E,...S,className:g(P.attachment.root,S.className),children:[s&&x?gr.jsx(sa,{label:c,imagePreview:x,meta:p,imageObjectFit:l}):gr.jsx(Cr,{name:i,"aria-hidden":"true"}),gr.jsx("span",{className:P.attachment.name,children:gr.jsx("span",{className:pn("text-truncate"),children:c})}),m&&gr.jsx("span",{className:P.attachment.slot,children:gr.jsx(na,{onClick:e=>m&&m(e,o),children:b})}),gr.jsx(ra,{onClick:()=>{u&&u(a)},children:v})]})};pa.spiritComponent="FileUploaderAttachment";const da=()=>{const[e,n]=t.useState(new Map);return{addToQueue:(t,r,o)=>(n((e=>{const n={file:r};return null!=o&&(n.meta=o),new Map(e.set(t,n))})),e),clearQueue:()=>{n((e=>(e.clear(),new Map(e))))},fileQueue:e,findInQueue:t=>e.get(t)||null,onDismiss:t=>(n((e=>{const n=new Map(e);return n.delete(t),n})),e),updateQueue:(t,r,o)=>(n((e=>{const n=new Map(e),s={file:r};return null!=o&&(s.meta=o),n.set(t,s),n})),e)}},ua=e=>{const{attachmentComponent:n,maxFileSize:r,maxUploadedFiles:o,helperText:s,iconName:i,inputId:a,inputLabel:l,inputName:c,inputProps:p,isLabelHidden:d,isDisabled:u,isFluid:m,queueLimitBehavior:f,isMultiple:h,isRequired:g,labelText:y,linkText:b,listId:v,listProps:x,onInputError:T,onChange:P,errorMessages:S,validationState:E,validationText:C,...N}=e,{fileQueue:w,addToQueue:A,clearQueue:_,onDismiss:R,findInQueue:k,updateQueue:O}=da();return t.useEffect((()=>{P&&P(w)}),[w]),gr.jsxs(Zi,{fileQueue:w,onDismiss:R,addToQueue:A,clearQueue:_,findInQueue:k,updateQueue:O,errorMessages:S,isFluid:m,...N,children:[gr.jsx(ea,{maxFileSize:r,maxUploadedFiles:o,helperText:s,iconName:i,id:a,isLabelHidden:d,isDisabled:u,queueLimitBehavior:f,isMultiple:h,isRequired:g,label:l,labelText:y,linkText:b,name:c,onError:T,validationState:E,validationText:C,...p}),gr.jsx(ta,{id:v,inputName:c,attachmentComponent:n,...x})]})};ua.spiritComponent="UncontrolledFileUploader";const ma={backgroundColor:I.SECONDARY,elementType:"footer",paddingBottom:"space-1200",paddingTop:"space-1400"},fa=t.forwardRef(((e,t)=>{const n={...ma,...e},{elementType:r=ma.elementType,children:o,backgroundColor:s,...i}=n,a=r,{classProps:l}=(e=>{const{backgroundColor:t}=e,n=pn(`bg-${t}`),r=t?n:"";return{classProps:g({[r]:t})}})({backgroundColor:s}),{styleProps:c,props:p}=en(i,{paddingBottom:ce.paddingBottom,paddingTop:ce.paddingTop,textAlignment:pe.textAlignment}),d=Ot(a,{classProps:l,styleProps:c,otherProps:p});return gr.jsx(a,{...p,...d,ref:t,children:o})}));function ha(e){const{alignmentX:t,alignmentY:n,cols:r,spacing:o,spacingX:s,spacingY:i,...a}=e,l=pn("Grid"),c={...Qn(o,"grid",J.X),...Qn(o,"grid",J.Y),...Qn(s,"grid",J.X),...Qn(i,"grid",J.Y)};return{classProps:g(l,{[tn(l,t,"alignmentX")]:t,[tn(l,n,"alignmentY")]:n,[function(e,t,n){return"object"==typeof t&&null!==t?Object.keys(t).map((r=>{const o="mobile"===r?"":`--${r}`,s=t[r];return`${e}${o}--${n}-${s}`})).join(" "):`${e}--${n}-${t}`}(l,r,"cols")]:r}),props:a,styleProps:c}}fa.spiritComponent="Footer",fa.displayName="Footer";const ga={alignmentX:R.STRETCH,alignmentY:O.STRETCH,elementType:"div"},ya=t.forwardRef(((e,t)=>{const n={...ga,...e},{elementType:r=ga.elementType,children:o,...s}=n,i=r,{classProps:a,props:l,styleProps:c}=ha(s),{styleProps:p,props:d}=en(l),u=Ot(i,{classProps:a,styleProps:p,otherProps:d,gridStyle:c});return gr.jsx(i,{...d,...u,ref:t,children:o})}));ya.spiritComponent="Grid",ya.displayName="Grid";const ba=(e,t,n)=>{e[t]=n};function va(e){const t=pn("GridItem"),n={},r={...e};return Object.keys(r).filter((e=>e.startsWith("column")||e.startsWith("row"))).forEach((e=>{const t=e.startsWith("column")?"column":"row",o=r[e];var s,i,a;o&&(s=n,i=`grid-item-${t}-${e.replace(t,"").toLowerCase()}`,"object"==typeof(a=o)&&null!==a?Object.keys(a).forEach((e=>{ba(s,`--${i}${"mobile"===e?"":`-${e}`}`,a[e]?.toString())})):ba(s,`--${i}`,a?.toString())),delete r[e]})),{classProps:t,props:r,styleProps:n}}const xa={elementType:"div"},Ta=t.forwardRef(((e,t)=>{const{elementType:n=xa.elementType,children:r,...o}=e,s=n,{classProps:i,styleProps:a,props:l}=va(o),{styleProps:c,props:p}=en(l),d=Ot(s,{classProps:i,styleProps:c,otherProps:p,gridItemStyle:a});return gr.jsx(s,{...p,...d,ref:t,children:r})}));Ta.spiritComponent="GridItem",Ta.displayName="GridItem";const Pa="primary",Sa="primary",Ea="Close",Ca="Menu",Na=({actionsColor:e=Sa,color:t=Pa,hasActionsAtEnd:n,isCurrentLink:r,isSimple:o}={actionsColor:Sa,color:Pa,hasActionsAtEnd:!1,isCurrentLink:!1,isSimple:!1})=>{const s=pn("Header"),i=`${s}--simple`,a=`${s}Nav`,l=`${s}NavItem`,c=`${s}Link`,p=`${c}--current`,d=`${s}DesktopActions`,u=`${d}--end`,m=`${s}MobileActions`,f=`${s}Dialog`,h=`${f}__panel`,y=`${f}__content`,b=`${s}DialogActions`,v=`${b}--${e}`,x=`${s}DialogCloseButton`,T=`${s}DialogLink`,P=`${T}--current`,S=`${s}DialogNav`,E=`${s}DialogNavItem`,C=`${s}DialogText`;return{classProps:{root:g(s,`${s}--${t}`,{[i]:o}),headerButton:c,headerDesktopActions:g(d,{[u]:n}),headerDialog:{root:f,panel:h,content:y},headerDialogActions:g(b,v),headerDialogButton:T,headerDialogCloseButton:x,headerDialogLink:g(T,{[P]:r}),headerDialogNav:S,headerDialogNavItem:E,headerDialogText:C,headerLink:g(c,{[p]:r}),headerMobileActions:m,headerNav:a,headerNavItem:l}}},wa=e=>{const{children:t,color:n=Pa,isSimple:r,...o}=e,{classProps:s}=Na({color:n,isSimple:r}),{styleProps:i,props:a}=en(o);return hn({method:"custom",trigger:!0,componentName:"Header",customText:"The component will be removed in the next major version. Component is replaced by the current implementation of UNSTABLE_Header.\n Please see the composition of the UNSTABLE_Header, Drawer and Navigation components."}),gr.jsx("header",{...a,className:g(s.root,i.className),style:i.style,children:t})};wa.spiritComponent="Header";const Aa=e=>{const{classProps:t}=Na(),{styleProps:n,props:r}=en(e);return gr.jsx("button",{...r,type:"button",className:g(t.headerButton,n.className),style:n.style})};Aa.spiritComponent="HeaderButton";const _a={isAtEnd:!1},Ra=e=>{const t={..._a,...e},{isAtEnd:n,...r}=t,{classProps:o}=Na({hasActionsAtEnd:n}),{styleProps:s,props:i}=en(r);return gr.jsx("nav",{...i,className:g(o.headerDesktopActions,s.className),style:s.style})};Ra.spiritComponent="HeaderDesktopActions";const ka=t.createContext({id:"",isOpen:!1,onClose:()=>null}),Oa=ka.Provider,$a=ka.Consumer,ja=()=>t.useContext(ka),Da=e=>{const{children:t,id:n,isOpen:r,onClose:o,...s}=e,{classProps:i}=Na(),{styleProps:a,props:l}=en(s),c={id:n,isOpen:r,onClose:o};return Dn(r),gr.jsx(Oa,{value:c,children:gr.jsx(Js,{...l,id:n,isOpen:r,onClose:o,className:g(i.headerDialog.root,a.className),style:a.style,children:gr.jsx("div",{className:i.headerDialog.panel,children:gr.jsx("div",{className:i.headerDialog.content,children:t})})})})};Da.spiritComponent="HeaderDialog";const La=e=>{const{color:t=Sa,...n}=e,{classProps:r}=Na({actionsColor:t}),{styleProps:o,props:s}=en(n);return gr.jsx("nav",{...s,className:g(r.headerDialogActions,o.className),style:o.style})};La.spiritComponent="HeaderDialogActions";const Ia=e=>{const{classProps:t}=Na(),{styleProps:n,props:r}=en(e);return gr.jsx("button",{...r,type:"button",className:g(t.headerDialogButton,n.className),style:n.style})};Ia.spiritComponent="HeaderDialogButton";const Ma=e=>{const{label:t=Ea,onClick:n,...r}=e,{classProps:o}=Na(),{styleProps:s,props:i}=en(r),{id:a,isOpen:l,onClose:c}=ja();return gr.jsxs("button",{...i,type:"button","aria-expanded":l,"aria-controls":a,onClick:e=>{c(e),n&&n(e)},className:g(o.headerDialogCloseButton,s.className),style:s.style,children:[gr.jsx(Cr,{name:"close"}),gr.jsx(_s,{children:t})]})};Ma.spiritComponent="HeaderDialogCloseButton";const Fa=t.forwardRef(((e,t)=>{const{elementType:n="a",children:r,isCurrent:o,routerOptions:s,...i}=e,a=n,{classProps:l}=Na({isCurrentLink:o}),{styleProps:c,props:p}=en(i),d=Ot(a,{classProps:l.headerDialogLink,styleProps:c,otherProps:p}),u=Fn({...i,routerOptions:s});return gr.jsx(a,{...p,...d,onClick:u,ref:t,children:r})}));Fa.spiritComponent="HeaderDialogLink",Fa.displayName="HeaderDialogLink";const Ba=e=>{const{classProps:t}=Na(),{styleProps:n,props:r}=en(e);return gr.jsx("ul",{...r,className:g(t.headerDialogNav,n.className),style:n.style})};Ba.spiritComponent="HeaderDialogNav";const Ua=e=>{const{classProps:t}=Na(),{styleProps:n,props:r}=en(e);return gr.jsx("li",{...r,className:g(t.headerDialogNavItem,n.className),style:n.style})};Ua.spiritComponent="HeaderDialogNavItem";const Ha=e=>{const{classProps:t}=Na(),{styleProps:n,props:r}=en(e);return gr.jsx("span",{...r,className:g(t.headerDialogText,n.className),style:n.style})};Ha.spiritComponent="HeaderDialogText";const za=t.forwardRef(((e,t)=>{const{elementType:n="a",children:r,isCurrent:o,routerOptions:s,...i}=e,{href:a}=i,l=n,{classProps:c}=Na({isCurrentLink:o}),{styleProps:p,props:d}=en(i),u=Ot(l,{classProps:c.headerLink,styleProps:p,otherProps:d}),m=Fn({...i,routerOptions:s});return gr.jsx(l,{...d,...u,href:a,onClick:m,ref:t,children:r})}));za.spiritComponent="HeaderLink",za.displayName="HeaderLink";const Va=e=>{const{children:t,dialogId:n,menuToggleLabel:r=Ca,isOpen:o,onOpen:s,...i}=e,{classProps:a}=Na(),{styleProps:l,props:c}=en(i);return gr.jsxs("div",{...c,className:g(a.headerMobileActions,l.className),style:l.style,children:[t,gr.jsxs(is,{"aria-controls":n,"aria-expanded":o,color:"secondary",onClick:s,isSymmetrical:!0,children:[gr.jsx(Cr,{name:"hamburger"}),gr.jsx(_s,{children:r})]})]})};Va.spiritComponent="HeaderMobileActions";const Wa=e=>{const{classProps:t}=Na(),{styleProps:n,props:r}=en(e);return gr.jsx("ul",{...r,className:g(t.headerNav,n.className),style:n.style})};Wa.spiritComponent="HeaderNav";const Ga=e=>{const{classProps:t}=Na(),{styleProps:n,props:r}=en(e);return gr.jsx("li",{...r,className:g(t.headerNavItem,n.className),style:n.style})};function qa(e){const{emphasis:t,size:n,textColor:r,...o}=e,s=pn("typography-heading"),i=pn(r?`text-${r}`:"");return{classProps:g(`${s}-${n}-${t}`,{[i]:!!r}),props:o}}Ga.spiritComponent="HeaderNavItem";const Xa={emphasis:H.BOLD,size:W.MEDIUM},Ya=e=>{const t={...Xa,...e},{elementType:n,children:r,...o}=t,s=n,{classProps:i,props:a}=qa({...o}),{styleProps:l,props:c}=en(a,{isTextBalanced:de.isTextBalanced,textAlignment:pe.textAlignment,textHyphens:pe.textHyphens,textWordBreak:pe.textWordBreak}),p=Ot(s,{classProps:i,styleProps:l,otherProps:c});return gr.jsx(s,{...c,...p,children:r})};Ya.spiritComponent="Heading",Ya.displayName="Heading";const Ka={elementType:"span"},Qa=t.forwardRef(((e,t)=>{const n={...Ka,...e},{elementType:r=Ka.elementType,children:o,on:s,from:i,...a}=n,l=r,c={...a,hideOn:s||a.hideOn,hideFrom:i||a.hideFrom},{styleProps:p,props:d}=en(c),u=Ot(l,{styleProps:p});return gr.jsx(l,{...d,...u,ref:t,children:o})}));Qa.spiritComponent="Hidden",Qa.displayName="Hidden";const Za={ROUNDED:"rounded",SQUARE:"square",CIRCLE:"circle"},Ja={[W.XSMALL]:{padding:"space-500",iconSize:16},[W.SMALL]:{padding:"space-500",iconSize:20},[W.MEDIUM]:{padding:"space-600",iconSize:24},[W.LARGE]:{padding:"space-600",iconSize:28},[W.XLARGE]:{padding:"space-700",iconSize:28}},el={[Za.CIRCLE]:j.FULL,[Za.ROUNDED]:j[300],[Za.SQUARE]:j[0]},tl=(e,t,n)=>`${e}-${t}-${n}`,nl=(e,t=!0)=>{const n=t?U.SUBTLE:U.BASIC,r=n===U.BASIC?U.SUBTLE:U.BASIC,o=e??F.INFORMATIVE,s=(e=>Object.keys(N).includes(e)?x.EMOTION:x.ACCENT)(o);return{colors:{background:tl(s,o,n),border:tl(s,o,n),text:tl(s,o,r)}}},rl=e=>{const{shape:t=Za.ROUNDED,size:n=W.MEDIUM,...r}=e||{},o=el[t],s={padding:`calc(var(--${P}local-padding) - var(--${P}local-border-width, 0px)) !important`};let i;if(It(n)){const e={},t={};Object.entries(n).forEach((([n,r])=>{const o=Ja[r];e[n]=o.padding,t[n]=o.iconSize})),i={padding:e,iconSize:t}}else i=Ja[n];return{iconBoxStyles:s,props:r,shapesProps:o,sizeProps:i}},ol={shape:Za.ROUNDED,color:F.INFORMATIVE,elementType:"div",hasBorder:!0,isSubtle:!0,size:W.MEDIUM},sl=t.forwardRef(((e,t)=>{const n={...ol,...e},{elementType:r,shape:o,color:s,iconName:i,isSubtle:a,hasBorder:l,size:c,...p}=n,d=r,{colors:u}=nl(s,a),{iconBoxStyles:m,props:f,shapesProps:h,sizeProps:{padding:y,iconSize:b}}=rl({size:c,shape:o,...p}),{styleProps:v,props:x}=en(f);return gr.jsx(Ho,{...x,backgroundColor:u.background,elementType:d,borderColor:l?u.border:void 0,borderRadius:h,borderWidth:l?L[100]:void 0,padding:y,textColor:u.text,UNSAFE_className:g(v.className,"d-inline-flex"),UNSAFE_style:{...v.style,...m},ref:t,children:gr.jsx(Cr,{"aria-hidden":"true",boxSize:b,name:i})})}));function il(e){const{isDisabled:t,isSelected:n,selectionDecorator:r,...o}=e,s=pn("Item"),i=`${s}--disabled`,a=`${s}--selected`,l=`${s}__icon`,c=n&&(r===ve||r===xe);return{classProps:{helperText:`${s}__helperText`,icon:{root:l,start:`${l}--start`,end:`${l}--end`},label:`${s}__label`,root:g(s,{[i]:t,[a]:c})},props:o}}sl.spiritComponent="IconBox",sl.displayName="IconBox";const al={elementType:"button",selectionDecorator:Te},ll=e=>{const t={...al,...e},{elementType:n,helperText:r,iconName:o,isDisabled:s,isSelected:i,label:a,selectionDecorator:l,...c}=t,p=n,{classProps:d,props:u}=il({isSelected:i,isDisabled:s,selectionDecorator:l,...c}),{styleProps:m,props:f}=en(u),h=Ot(p,{classProps:d.root,styleProps:m,otherProps:f}),y=i&&(l===Te||l===xe);return gr.jsxs(p,{...f,...h,disabled:!!s&&"button"===p,children:[o&&gr.jsx("span",{className:g(d.icon.root,d.icon.start),children:gr.jsx(Cr,{name:o})}),gr.jsx("span",{className:d.label,children:a}),gr.jsx(js,{UNSAFE_className:d.helperText,elementType:"span",helperText:r}),y&&gr.jsx("span",{className:g(d.icon.root,d.icon.end),children:gr.jsx(Cr,{name:"check-plain"})})]})};ll.spiritComponent="Item",ll.displayName="Item";const cl=(e,t,n,r)=>{const o={},s=`--${r}`;return"object"==typeof e&&100===t&&n>0&&Object.keys(e).forEach((e=>{const t="mobile"===e?"":`-${e}`;o[`${s}-items-count`]=`${n}`,o[`${s}-rows${t}`]=`calc(var(${s}-item-rows) * var(${s}-items-count) / var(${s}-columns${t}))`})),o};function pl(e){const{cols:t,itemsCount:n,itemRows:r,rows:o,spacing:s,spacingX:i,spacingY:a,...l}=e,c=pn("Matrix"),p=`${P}matrix`,d={...gn(t,`${p}-columns`),...gn(o,`${p}-rows`),...gn(r,`${p}-item-rows`),...cl(t,o,n,p),...Qn(s,p,J.X),...Qn(s,p,J.Y),...Qn(i,p,J.X),...Qn(a,p,J.Y)};return{classProps:g(c),props:l,styleProps:d}}const dl={cols:3,elementType:"div",itemRows:100,rows:100,spacingX:"space-700",spacingY:"space-0"},ul=e=>{const n={...dl,...e},{elementType:r,children:o,...s}=n,i=r,a=t.Children.count(o),{classProps:l,props:c,styleProps:p}=pl({...s,itemsCount:a}),{styleProps:d,props:u}=en(c),m=Ot(i,{classProps:l,styleProps:d,otherProps:u,matrixStyleProps:p});return gr.jsx(i,{...u,...m,children:o})};ul.spiritComponent="Matrix",ul.displayName="Matrix";const ml=t.createContext({id:"",isOpen:!1,onClose:()=>null}),fl=ml.Provider,hl=ml.Consumer,gl=()=>t.useContext(ml);function yl({footerAlignment:e=_.RIGHT,isDockedOnMobile:t=!1,isExpandedOnMobile:n=!1,isOpen:r=!1,isScrollable:o=!1,modalAlignment:s=k.CENTER}={}){const i=pn("Modal"),a={top:`${i}--top`,center:`${i}--center`,bottom:`${i}--bottom`},l=`${i}Dialog`,c=`${l}--dockOnMobile`,p=`${l}--expandOnMobile`,d=`${l}--scrollable`,u=`${i}Header`,m=`${u}__title`,f=`${i}Body`,h=`${i}Footer`,y=`${h}__description`,b=`${h}__actions`,x={left:`${h}--left`,center:`${h}--center`,right:`${h}--right`};return{classProps:{root:g(i,{[a[s]]:s,[v]:r}),dialog:g(l,{[c]:t,[p]:n,[d]:o}),title:m,header:u,body:f,footer:{root:g(h,{[x[e]]:e}),description:y,actions:b}}}}const bl=e=>{const{children:t,alignmentY:n=k.CENTER,isOpen:r,onClose:o,id:s,...i}=e,{classProps:a}=yl({isOpen:r,modalAlignment:n}),{styleProps:l,props:c}=en(i),p={id:s,isOpen:r,onClose:o};return Dn(r),gr.jsx(fl,{value:p,children:gr.jsx(Js,{...c,...l,id:s,isOpen:r,onClose:o,className:g(a.root,l.className),"aria-labelledby":`${s}__title`,children:t})})};bl.spiritComponent="Modal";const vl=({children:e,...t})=>{const{classProps:n}=yl(),{styleProps:r,props:o}=en(t);return gr.jsx("div",{...o,...r,className:g(n.body,r.className),children:e})};vl.spiritComponent="ModalBody";const xl=({label:e,onClose:t,id:n,isOpen:r,...o})=>{const{t:s}=An(),i=e??s("common.close");return gr.jsxs(is,{...o,isSymmetrical:!0,color:"tertiary",onClick:t,"aria-expanded":r,"aria-controls":n,children:[gr.jsx(Cr,{name:"close"}),gr.jsx(_s,{children:i})]})};xl.spiritComponent="ModalCloseButton";const Tl=(e,t)=>{if(!t)return{};if("object"==typeof t)return Object.keys(t).reduce(((n,r)=>{const o=`--${e}${"mobile"===r?"":`-${r}`}`;return{...n,[o]:t[r]?.toString()}}),{});const n=`--${e}`;return{[n]:t?.toString()}},Pl=t.forwardRef(((e,t)=>{const{elementType:n="article",children:r,isDockedOnMobile:o,isExpandedOnMobile:s,isScrollable:i,...a}=e,l=n,{classProps:c}=yl({isDockedOnMobile:o,isExpandedOnMobile:s,isScrollable:i}),{modalDialogStyleProps:p,props:d}=(e=>{const{height:t,maxHeight:n,...r}=e;return{modalDialogStyleProps:{...Tl("modal-dialog-height",t),...Tl("modal-dialog-max-height",n)},props:r}})(a),{styleProps:u,props:m}=en(d),f=Ot(l,{classProps:c.dialog,modalDialogStyleProps:p,styleProps:u,otherProps:m});return gr.jsx(l,{...m,...f,ref:t,children:r})}));Pl.spiritComponent="ModalDialog",Pl.displayName="ModalDialog";const Sl=e=>{const{children:t,alignmentX:n=_.RIGHT,description:r,...o}=e,{classProps:s}=yl({footerAlignment:n}),{styleProps:i,props:a}=en(o);return gr.jsxs("footer",{...a,...i,className:g(s.footer.root,i.className),children:[r&&gr.jsx("div",{className:s.footer.description,children:r}),gr.jsx("div",{className:s.footer.actions,children:t})]})};Sl.spiritComponent="ModalFooter";const El={hasCloseButton:!0},Cl=e=>{const t={...El,...e},{children:n,closeLabel:r,hasCloseButton:o,...s}=t,{t:i}=An(),a=r??i("common.close"),{classProps:l}=yl(),{styleProps:c,props:p}=en(s),{id:d,isOpen:u,onClose:m}=gl();return gr.jsxs("header",{...p,...c,className:g(l.header,c.className),children:[n&&gr.jsx("h2",{id:`${d}__title`,className:l.title,children:n}),o&&gr.jsx(xl,{id:d,isOpen:u,label:a,onClose:m})]})};Cl.spiritComponent="ModalHeader";const Nl=({isDisabled:e=!1,isSelected:t=!1,isSquare:n=!1,alignmentY:r=O.CENTER,direction:o=Q.HORIZONTAL,variant:s=K.BOX,...i})=>{const a=pn("Navigation"),l=`${a}Action`,c=`${a}Avatar`,p=`${a}Item`,d=`${a}--${o}`,u=`${l}--disabled`,m=`${l}--selected`,f=`${l}--${s}`,h=`${c}--square`,y=g(p,{[tn(p,r,"alignmentY")]:r});return{classProps:{root:g(a,d),action:g(l,f,{[u]:e,[m]:t}),avatar:g(c,{[h]:n}),item:y},props:i}},wl={direction:Q.HORIZONTAL},Al=e=>{const t={...wl,...e},{children:n,...r}=t,{classProps:o,props:s}=Nl(r),{styleProps:i,props:a}=en(s);return gr.jsx("nav",{...a,className:g(o.root,i.className),style:i.style,children:gr.jsx("ul",{children:n})})};Al.spiritComponent="Navigation";const _l=e=>{const{isDisabled:t,href:n,target:r,rel:o}=e;return{navigationActionProps:{href:t?void 0:n,target:t?void 0:r,rel:t?void 0:o}}},Rl={elementType:"a",variant:K.BOX},kl=t.forwardRef(((e,t)=>{const n={...Rl,...e},{elementType:r=Rl.elementType,children:o,...s}=n,i=n.isDisabled?"span":r,{navigationActionProps:a}=_l(n),{classProps:l,props:c}=Nl(s),{styleProps:p,props:d}=en(c),u=Ot(i,{classProps:l.action,styleProps:p,otherProps:d});return gr.jsx(i,{...d,...a,...u,ref:t,children:o})}));kl.spiritComponent="NavigationAction",kl.displayName="NavigationAction";const Ol={elementType:"a",isSquare:!1,avatarSize:V.SMALL},$l=t.forwardRef(((e,t)=>{const n={...Ol,...e},{elementType:r=Ol.elementType,avatarContent:o,avatarSize:s=Ol.avatarSize,isSquare:i,children:a,...l}=n,{classProps:c,props:p}=Nl({isSquare:i,...l}),{styleProps:d,props:u}=en(p),m=Ot(r,{classProps:c.avatar,styleProps:d,otherProps:u});return gr.jsxs(r,{...u,...m,ref:t,children:[gr.jsx(Fo,{size:s,isSquare:i,children:o}),a]})}));$l.spiritComponent="NavigationAvatar",$l.displayName="NavigationAvatar";const jl={alignmentY:O.CENTER},Dl=e=>{const t={...jl,...e},{children:n,...r}=t,{classProps:o,props:s}=Nl(r),{styleProps:i,props:a}=en(s);return gr.jsx("li",{...a,className:g(o.item,i.className),style:i.style,children:n})};Dl.spiritComponent="NavigationItem";const Ll=({children:e})=>{const[n,r]=t.useState(!1);return t.useEffect((()=>{r(!0)}),[]),n?e:null};Ll.spiritComponent="NoSsr";const Il=e=>{const t=pn("Pagination"),n=`${t}__link`,r=`${n}--current`;return{classProps:{root:t,item:`${t}__item`,link:g(n,{[r]:e?.isCurrent})}}},Ml=e=>{const{children:t,listProps:n={},...r}=e,{classProps:o}=Il(),{styleProps:s,props:i}=en(r),{styleProps:a,props:l}=en(n);return gr.jsx("nav",{...i,...s,children:gr.jsx("ul",{...a,...l,className:g(o.root,a.className),children:t})})};Ml.spiritComponent="Pagination";const Fl=t.forwardRef(((e,t)=>{const{t:n}=An(),{direction:r,accessibilityLabel:o,...s}=e,i=o??n("previous"===r?"pagination.previous":"pagination.next");return gr.jsxs(ps,{color:"secondary",isSymmetrical:!0,...s,ref:t,children:[gr.jsx(Cr,{name:{previous:"chevron-left",next:"chevron-right"}[r]}),gr.jsx(_s,{children:i})]})}));Fl.spiritComponent="PaginationButtonLink",Fl.displayName="PaginationButtonLink";const Bl=e=>{const{children:t,...n}=e,{classProps:r}=Il(),{styleProps:o,props:s}=en(n);return gr.jsx("li",{...s,...o,className:g(r.item,o.className),children:t})};Bl.spiritComponent="PaginationItem";const Ul=t.forwardRef(((e,t)=>{const{t:n}=An(),{elementType:r="a",accessibilityLabel:o,isCurrent:s,pageNumber:i,routerOptions:a,...l}=e,c=o||`${n("pagination.goToPage")} ${i}`,p=r,{classProps:d}=Il({isCurrent:s}),{styleProps:u,props:m}=en(l),f=Ot(p,{classProps:d.link,styleProps:u,otherProps:m}),h=Fn({...l,routerOptions:a});return gr.jsxs(p,{...s&&{"aria-current":"page"},...m,...f,onClick:h,ref:t,children:[gr.jsx(_s,{children:c}),gr.jsx("span",{"aria-hidden":"true",children:i})]})}));Ul.spiritComponent="PaginationLink",Ul.displayName="PaginationLink";const Hl=t.forwardRef((({accessibilityLabel:e,...t},n)=>{const{t:r}=An(),o=e??r("pagination.next");return gr.jsx(Fl,{direction:"next",accessibilityLabel:o,...t,ref:n})}));Hl.spiritComponent="PaginationLinkNext",Hl.displayName="PaginationLinkNext";const zl=t.forwardRef((({accessibilityLabel:e,...t},n)=>{const{t:r}=An(),o=e??r("pagination.previous");return gr.jsx(Fl,{direction:"previous",accessibilityLabel:o,...t,ref:n})}));zl.spiritComponent="PaginationLinkPrevious",zl.displayName="PaginationLinkPrevious";const Vl=({totalPages:e,onChange:n,defaultPage:r,visiblePages:o})=>{const[s,i]=t.useState(r<=0||r>e?1:r??1),[a,l]=t.useState([o]);t.useMemo((()=>{const t=o>e?e:o,n=e-s<t?e-(t-1):s;l(Array.from(Array(t),((e,t)=>t+n)))}),[o,s,e]);const c=t.useCallback((e=>{i(e),n&&n(e)}),[n]);return t.useMemo((()=>{l((()=>{const t=Math.floor(o/2);let n=Math.max(1,s-t);const r=Math.min(n+o-1,e);if(e-o<n-1){const t=e-o+1;n=t<1?1:t}return Array.from({length:r-n+1},((e,t)=>n+t))})())}),[]),{totalPages:e,currentPage:s,pages:a,handlePageChange:c}},Wl=e=>{const{t:t}=An(),{accessibilityLabel:n,accessibilityLabelPrevious:r,accessibilityLabelNext:o,defaultPage:s=1,onChange:i,totalPages:a=0,visiblePages:l=5,...c}=e,p=n??t("pagination.goToPage"),d=r??t("pagination.previous"),u=o??t("pagination.next"),{currentPage:m,pages:f,handlePageChange:h}=Vl({defaultPage:s,onChange:i,totalPages:a,visiblePages:l});return gr.jsxs(Ml,{...c,children:[1!==m&&gr.jsx(zl,{accessibilityLabel:d,onClick:e=>{e.preventDefault(),h(m-1)}}),f?.map((e=>gr.jsx(Bl,{children:gr.jsx(Ul,{accessibilityLabel:`${p} ${e}`,href:"#",isCurrent:m===e,pageNumber:e,onClick:t=>{t.preventDefault(),h(e)}})},e))),m!==a&&gr.jsx(Hl,{accessibilityLabel:u,onClick:e=>{e.preventDefault(),h(m+1)}})]})};Wl.spiritComponent="UncontrolledPagination";const Gl=e=>{const{hasSafeArea:t,isFluid:n,size:r,...o}=e,s=pn("PartnerLogo"),i=`${s}--fluid`,a=`${s}--safeArea`,l=Mt(s,r);return{classProps:g(s,{[i]:n,[a]:t},l),props:o}},ql={hasSafeArea:!0,isFluid:!1,size:V.MEDIUM},Xl=e=>{const t={...ql,...e},{children:n,...r}=t,{classProps:o,props:s}=Gl(r),{styleProps:i,props:a}=en(s);return gr.jsx("div",{...a,className:g(o,i.className),style:i.style,children:n})};Xl.spiritComponent="PartnerLogo";const Yl={SELECTED:"selected",NEUTRAL:"neutral"};function Kl(e){const{color:t,...n}=e,r=pn("Pill"),o=`${r}--${t}`;return{classProps:g(r,{[o]:t}),props:n}}const Ql={color:Yl.SELECTED,elementType:"span"},Zl=e=>{const t={...Ql,...e},{elementType:n,children:r,...o}=t,s=n,{classProps:i,props:a}=Kl(o),{styleProps:l,props:c}=en(a),p=Ot(s,{classProps:i,styleProps:l,otherProps:c});return gr.jsx(s,{...c,...p,children:r})};Zl.spiritComponent="Pill",Zl.displayName="Pill";const Jl=e=>{const{hasComparableFeatures:t,isHighlighted:n,action:r,badge:o,title:s,subtitle:i,note:a,price:l,rows:c,...p}=e,d=pn("PricingPlan"),u=`${d}--comparableFeatures`,m=`${d}__layout`,f=`${d}--highlighted`,h=pn("PricingPlanHeader"),y=`${h}__badge`,b=`${h}__title`,v=`${h}__subtitle`,x=`${h}__price`,T=`${h}__action`,S=`${h}__note`,E=`${h}__content`,C=pn("PricingPlanBody"),N=`${C}__featureList`,w=`${C}__featureItem`,A=`${C}__featureTitle`,_=`${C}__featureTitleText`,R=`${C}__featureDescription`,k=pn("PricingPlanFooter"),O={};return 100!==c&&(O[`--${P}pricing-plan-rows`]=c?.toString()),{classProps:{root:g(d,{[u]:t,[f]:n}),layout:m,header:{root:h,badge:o?y:void 0,content:E,title:s?b:void 0,subtitle:i?v:void 0,price:l?x:void 0,action:r?T:void 0,note:a?S:void 0},body:{root:C,featureList:N,featureItem:w,featureTitle:A,featureTitleText:_,featureDescription:R},footer:k},props:p,styleProps:O}},ec={elementType:"article",hasComparableFeatures:!1,isHighlighted:!1,rows:100},tc=e=>{const t={...ec,...e},{elementType:n,children:r,...o}=t,s=n,{classProps:i,props:a,styleProps:l}=Jl(o),{styleProps:c,props:p}=en(a),d=Ot(s,{classProps:i.root,pricingPlanStyleProps:l,styleProps:c});return gr.jsx(s,{...p,...d,children:gr.jsx("div",{className:g(i.layout),children:r})})};tc.spiritComponent="PricingPlan",tc.displayName="PricingPlan";const nc={action:void 0,badge:void 0,elementType:"header",note:void 0,price:void 0,subtitle:void 0,title:void 0},rc=e=>{const t={...nc,...e},{elementType:n,...r}=t,o=n,{classProps:s,props:i}=Jl(r),{badge:a,title:l,subtitle:c,price:p,action:d,note:u}=t,{styleProps:m,props:f}=en(i),h=Ot(o,{classProps:s.header.root,styleProps:m});return gr.jsxs(o,{...f,...h,children:[a&&gr.jsx("div",{className:s.header.badge,children:a}),gr.jsxs("div",{className:s.header.content,children:[l&&gr.jsx("h3",{className:s.header.title,children:l}),c&&gr.jsx("div",{className:g(s.header.subtitle),children:c}),p&&gr.jsx("div",{className:s.header.price,children:p}),d&&gr.jsx("div",{className:s.header.action,children:d}),u&&gr.jsx("div",{className:s.header.note,children:u})]})]})};rc.spiritComponent="PricingPlanHeader";const oc=new Set(["none","auto","initial","unset",""]),sc=/([+-]?(?:\d+\.?\d*|\.\d+))/;function ic(){if("undefined"==typeof window||"undefined"==typeof document||!document.documentElement)return 16;const e=Number.parseFloat(window.getComputedStyle(document.documentElement).fontSize);return Number.isFinite(e)&&e>0?e:16}function ac(e){const t=e?.trim();if(!t||oc.has(t))return;const n=new RegExp(`^${sc.source}\\s*px$`,"i").exec(t);if(n){const e=Number.parseFloat(n[1]);return Number.isFinite(e)?e:void 0}const r=new RegExp(`^${sc.source}\\s*rem$`,"i").exec(t);if(r){const e=function(e,t=ic()){return e*t}(Number.parseFloat(r[1]));return Number.isFinite(e)?e:void 0}}const lc=t.createContext({anchorRef:()=>{},arrowRef:{current:null},getReferenceProps:()=>({id:"",ref:()=>{}}),getFloatingProps:()=>({id:"",ref:()=>{}}),id:"",isDismissible:!1,isOpen:!1,middlewareData:{},onToggle:()=>{},placement:"bottom",sizeMaxWidth:void 0,tooltipMaxWidth:void 0,tooltipRef:()=>{},triggerRef:()=>{},x:0,y:0,position:"absolute"}),cc=lc.Provider;lc.Consumer;const pc=()=>t.useContext(lc);function dc(){return"undefined"!=typeof window}function uc(e){return hc(e)?(e.nodeName||"").toLowerCase():"#document"}function mc(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function fc(e){var t;return null==(t=(hc(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function hc(e){return!!dc()&&(e instanceof Node||e instanceof mc(e).Node)}function gc(e){return!!dc()&&(e instanceof Element||e instanceof mc(e).Element)}function yc(e){return!!dc()&&(e instanceof HTMLElement||e instanceof mc(e).HTMLElement)}function bc(e){return!(!dc()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof mc(e).ShadowRoot)}function vc(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Cc(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function xc(e){return["table","td","th"].includes(uc(e))}function Tc(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function Pc(e){const t=Sc(),n=gc(e)?Cc(e):e;return["transform","translate","scale","rotate","perspective"].some((e=>!!n[e]&&"none"!==n[e]))||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function Sc(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Ec(e){return["html","body","#document"].includes(uc(e))}function Cc(e){return mc(e).getComputedStyle(e)}function Nc(e){return gc(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function wc(e){if("html"===uc(e))return e;const t=e.assignedSlot||e.parentNode||bc(e)&&e.host||fc(e);return bc(t)?t.host:t}function Ac(e){const t=wc(e);return Ec(t)?e.ownerDocument?e.ownerDocument.body:e.body:yc(t)&&vc(t)?t:Ac(t)}function _c(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Ac(e),s=o===(null==(r=e.ownerDocument)?void 0:r.body),i=mc(o);if(s){const e=Rc(i);return t.concat(i,i.visualViewport||[],vc(o)?o:[],e&&n?_c(e):[])}return t.concat(o,_c(o,[],n))}function Rc(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function kc(e){let t=e.activeElement;for(;null!=(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement);){var n;t=t.shadowRoot.activeElement}return t}function Oc(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&bc(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function $c(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function jc(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>{let{brand:t,version:n}=e;return t+"/"+n})).join(" "):navigator.userAgent}function Dc(e){return!jc().includes("jsdom/")&&(!Lc()&&0===e.width&&0===e.height||Lc()&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)}function Lc(){const e=/android/i;return e.test($c())||e.test(jc())}function Ic(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function Mc(e){return(null==e?void 0:e.ownerDocument)||document}function Fc(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}function Bc(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Uc(e){return yc(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}const Hc=Math.min,zc=Math.max,Vc=Math.round,Wc=Math.floor,Gc=e=>({x:e,y:e}),qc={left:"right",right:"left",bottom:"top",top:"bottom"},Xc={start:"end",end:"start"};function Yc(e,t,n){return zc(e,Hc(t,n))}function Kc(e,t){return"function"==typeof e?e(t):e}function Qc(e){return e.split("-")[0]}function Zc(e){return e.split("-")[1]}function Jc(e){return"x"===e?"y":"x"}function ep(e){return"y"===e?"height":"width"}function tp(e){return["top","bottom"].includes(Qc(e))?"y":"x"}function np(e){return Jc(tp(e))}function rp(e){return e.replace(/start|end/g,(e=>Xc[e]))}function op(e){return e.replace(/left|right|bottom|top/g,(e=>qc[e]))}function sp(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function ip(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function ap(e,t,n){let{reference:r,floating:o}=e;const s=tp(t),i=np(t),a=ep(i),l=Qc(t),c="y"===s,p=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,u=r[a]/2-o[a]/2;let m;switch(l){case"top":m={x:p,y:r.y-o.height};break;case"bottom":m={x:p,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:d};break;case"left":m={x:r.x-o.width,y:d};break;default:m={x:r.x,y:r.y}}switch(Zc(t)){case"start":m[i]-=u*(n&&c?-1:1);break;case"end":m[i]+=u*(n&&c?-1:1)}return m}async function lp(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:s,rects:i,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:p="viewport",elementContext:d="floating",altBoundary:u=!1,padding:m=0}=Kc(t,e),f=sp(m),h=a[u?"floating"===d?"reference":"floating":d],g=ip(await s.getClippingRect({element:null==(n=await(null==s.isElement?void 0:s.isElement(h)))||n?h:h.contextElement||await(null==s.getDocumentElement?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:p,strategy:l})),y="floating"===d?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,b=await(null==s.getOffsetParent?void 0:s.getOffsetParent(a.floating)),v=await(null==s.isElement?void 0:s.isElement(b))&&await(null==s.getScale?void 0:s.getScale(b))||{x:1,y:1},x=ip(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:b,strategy:l}):y);return{top:(g.top-x.top+f.top)/v.y,bottom:(x.bottom-g.bottom+f.bottom)/v.y,left:(g.left-x.left+f.left)/v.x,right:(x.right-g.right+f.right)/v.x}}function cp(e){const t=Hc(...e.map((e=>e.left))),n=Hc(...e.map((e=>e.top)));return{x:t,y:n,width:zc(...e.map((e=>e.right)))-t,height:zc(...e.map((e=>e.bottom)))-n}}function pp(e){const t=Cc(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=yc(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,a=Vc(n)!==s||Vc(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}function dp(e){return gc(e)?e:e.contextElement}function up(e){const t=dp(e);if(!yc(t))return Gc(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=pp(t);let i=(s?Vc(n.width):n.width)/r,a=(s?Vc(n.height):n.height)/o;return i&&Number.isFinite(i)||(i=1),a&&Number.isFinite(a)||(a=1),{x:i,y:a}}const mp=Gc(0);function fp(e){const t=mc(e);return Sc()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:mp}function hp(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),s=dp(e);let i=Gc(1);t&&(r?gc(r)&&(i=up(r)):i=up(e));const a=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==mc(e))&&t}(s,n,r)?fp(s):Gc(0);let l=(o.left+a.x)/i.x,c=(o.top+a.y)/i.y,p=o.width/i.x,d=o.height/i.y;if(s){const e=mc(s),t=r&&gc(r)?mc(r):r;let n=e,o=Rc(n);for(;o&&r&&t!==n;){const e=up(o),t=o.getBoundingClientRect(),r=Cc(o),s=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,p*=e.x,d*=e.y,l+=s,c+=i,n=mc(o),o=Rc(n)}}return ip({width:p,height:d,x:l,y:c})}function gp(e,t){const n=Nc(e).scrollLeft;return t?t.left+n:hp(fc(e)).left+n}function yp(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:gp(e,r)),y:r.top+t.scrollTop}}function bp(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=mc(e),r=fc(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,a=0,l=0;if(o){s=o.width,i=o.height;const e=Sc();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,l=o.offsetTop)}return{width:s,height:i,x:a,y:l}}(e,n);else if("document"===t)r=function(e){const t=fc(e),n=Nc(e),r=e.ownerDocument.body,o=zc(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=zc(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+gp(e);const a=-n.scrollTop;return"rtl"===Cc(r).direction&&(i+=zc(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:a}}(fc(e));else if(gc(t))r=function(e,t){const n=hp(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=yc(e)?up(e):Gc(1);return{width:e.clientWidth*s.x,height:e.clientHeight*s.y,x:o*s.x,y:r*s.y}}(t,n);else{const n=fp(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return ip(r)}function vp(e,t){const n=wc(e);return!(n===t||!gc(n)||Ec(n))&&("fixed"===Cc(n).position||vp(n,t))}function xp(e,t,n){const r=yc(t),o=fc(t),s="fixed"===n,i=hp(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=Gc(0);if(r||!r&&!s)if(("body"!==uc(t)||vc(o))&&(a=Nc(t)),r){const e=hp(t,!0,s,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=gp(o));const c=!o||r||s?Gc(0):yp(o,a);return{x:i.left+a.scrollLeft-l.x-c.x,y:i.top+a.scrollTop-l.y-c.y,width:i.width,height:i.height}}function Tp(e){return"static"===Cc(e).position}function Pp(e,t){if(!yc(e)||"fixed"===Cc(e).position)return null;if(t)return t(e);let n=e.offsetParent;return fc(e)===n&&(n=n.ownerDocument.body),n}function Sp(e,t){const n=mc(e);if(Tc(e))return n;if(!yc(e)){let t=wc(e);for(;t&&!Ec(t);){if(gc(t)&&!Tp(t))return t;t=wc(t)}return n}let r=Pp(e,t);for(;r&&xc(r)&&Tp(r);)r=Pp(r,t);return r&&Ec(r)&&Tp(r)&&!Pc(r)?n:r||function(e){let t=wc(e);for(;yc(t)&&!Ec(t);){if(Pc(t))return t;if(Tc(t))return null;t=wc(t)}return null}(e)||n}const Ep={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s="fixed"===o,i=fc(r),a=!!t&&Tc(t.floating);if(r===i||a&&s)return n;let l={scrollLeft:0,scrollTop:0},c=Gc(1);const p=Gc(0),d=yc(r);if((d||!d&&!s)&&(("body"!==uc(r)||vc(i))&&(l=Nc(r)),yc(r))){const e=hp(r);c=up(r),p.x=e.x+r.clientLeft,p.y=e.y+r.clientTop}const u=!i||d||s?Gc(0):yp(i,l,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+p.x+u.x,y:n.y*c.y-l.scrollTop*c.y+p.y+u.y}},getDocumentElement:fc,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[..."clippingAncestors"===n?Tc(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=_c(e,[],!1).filter((e=>gc(e)&&"body"!==uc(e))),o=null;const s="fixed"===Cc(e).position;let i=s?wc(e):e;for(;gc(i)&&!Ec(i);){const t=Cc(i),n=Pc(i);n||"fixed"!==t.position||(o=null),(s?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||vc(i)&&!n&&vp(e,i))?r=r.filter((e=>e!==i)):o=t,i=wc(i)}return t.set(e,r),r}(t,this._c):[].concat(n),r],i=s[0],a=s.reduce(((e,n)=>{const r=bp(t,n,o);return e.top=zc(r.top,e.top),e.right=Hc(r.right,e.right),e.bottom=Hc(r.bottom,e.bottom),e.left=zc(r.left,e.left),e}),bp(t,i,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:Sp,getElementRects:async function(e){const t=this.getOffsetParent||Sp,n=this.getDimensions,r=await n(e.floating);return{reference:xp(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=pp(e);return{width:t,height:n}},getScale:up,isElement:gc,isRTL:function(e){return"rtl"===Cc(e).direction}};function Cp(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Np(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=dp(e),p=o||s?[...c?_c(c):[],..._c(t)]:[];p.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),s&&e.addEventListener("resize",n)}));const d=c&&a?function(e,t){let n,r=null;const o=fc(e);function s(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function i(a,l){void 0===a&&(a=!1),void 0===l&&(l=1),s();const c=e.getBoundingClientRect(),{left:p,top:d,width:u,height:m}=c;if(a||t(),!u||!m)return;const f={rootMargin:-Wc(d)+"px "+-Wc(o.clientWidth-(p+u))+"px "+-Wc(o.clientHeight-(d+m))+"px "+-Wc(p)+"px",threshold:zc(0,Hc(1,l))||1};let h=!0;function g(t){const r=t[0].intersectionRatio;if(r!==l){if(!h)return i();r?i(!1,r):n=setTimeout((()=>{i(!1,1e-7)}),1e3)}1!==r||Cp(c,e.getBoundingClientRect())||i(),h=!1}try{r=new IntersectionObserver(g,{...f,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(g,f)}r.observe(e)}(!0),s}(c,n):null;let u,m=-1,f=null;i&&(f=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame((()=>{var e;null==(e=f)||e.observe(t)}))),n()})),c&&!l&&f.observe(c),f.observe(t));let h=l?hp(e):null;return l&&function t(){const r=hp(e);h&&!Cp(h,r)&&n();h=r,u=requestAnimationFrame(t)}(),n(),()=>{var e;p.forEach((e=>{o&&e.removeEventListener("scroll",n),s&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=f)||e.disconnect(),f=null,l&&cancelAnimationFrame(u)}}const wp=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:a}=t,l=await async function(e,t){const{placement:n,platform:r,elements:o}=e,s=await(null==r.isRTL?void 0:r.isRTL(o.floating)),i=Qc(n),a=Zc(n),l="y"===tp(n),c=["left","top"].includes(i)?-1:1,p=s&&l?-1:1,d=Kc(t,e);let{mainAxis:u,crossAxis:m,alignmentAxis:f}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&"number"==typeof f&&(m="end"===a?-1*f:f),l?{x:m*p,y:u*c}:{x:u*c,y:m*p}}(t,e);return i===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:s+l.y,data:{...l,placement:i}}}}},Ap=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Kc(e,t),c={x:n,y:r},p=await lp(t,l),d=tp(Qc(o)),u=Jc(d);let m=c[u],f=c[d];if(s){const e="y"===u?"bottom":"right";m=Yc(m+p["y"===u?"top":"left"],m,m-p[e])}if(i){const e="y"===d?"bottom":"right";f=Yc(f+p["y"===d?"top":"left"],f,f-p[e])}const h=a.fn({...t,[u]:m,[d]:f});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[u]:s,[d]:i}}}}}},_p=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:i,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:p=!0,crossAxis:d=!0,fallbackPlacements:u,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:h=!0,...g}=Kc(e,t);if(null!=(n=s.arrow)&&n.alignmentOffset)return{};const y=Qc(o),b=tp(a),v=Qc(a)===a,x=await(null==l.isRTL?void 0:l.isRTL(c.floating)),T=u||(v||!h?[op(a)]:function(e){const t=op(e);return[rp(e),t,rp(t)]}(a)),P="none"!==f;!u&&P&&T.push(...function(e,t,n,r){const o=Zc(e);let s=function(e,t,n){const r=["left","right"],o=["right","left"],s=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?s:i;default:return[]}}(Qc(e),"start"===n,r);return o&&(s=s.map((e=>e+"-"+o)),t&&(s=s.concat(s.map(rp)))),s}(a,h,f,x));const S=[a,...T],E=await lp(t,g),C=[];let N=(null==(r=s.flip)?void 0:r.overflows)||[];if(p&&C.push(E[y]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=Zc(e),o=np(e),s=ep(o);let i="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=op(i)),[i,op(i)]}(o,i,x);C.push(E[e[0]],E[e[1]])}if(N=[...N,{placement:o,overflows:C}],!C.every((e=>e<=0))){var w,A;const e=((null==(w=s.flip)?void 0:w.index)||0)+1,t=S[e];if(t)return{data:{index:e,overflows:N},reset:{placement:t}};let n=null==(A=N.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:A.placement;if(!n)switch(m){case"bestFit":{var _;const e=null==(_=N.filter((e=>{if(P){const t=tp(e.placement);return t===b||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:_[0];e&&(n=e);break}case"initialPlacement":n=a}if(o!==n)return{reset:{placement:n}}}return{}}}},Rp=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:a}=t,{apply:l=()=>{},...c}=Kc(e,t),p=await lp(t,c),d=Qc(o),u=Zc(o),m="y"===tp(o),{width:f,height:h}=s.floating;let g,y;"top"===d||"bottom"===d?(g=d,y=u===(await(null==i.isRTL?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(y=d,g="end"===u?"top":"bottom");const b=h-p.top-p.bottom,v=f-p.left-p.right,x=Hc(h-p[g],b),T=Hc(f-p[y],v),P=!t.middlewareData.shift;let S=x,E=T;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(E=v),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(S=b),P&&!u){const e=zc(p.left,0),t=zc(p.right,0),n=zc(p.top,0),r=zc(p.bottom,0);m?E=f-2*(0!==e||0!==t?e+t:zc(p.left,p.right)):S=h-2*(0!==n||0!==r?n+r:zc(p.top,p.bottom))}await l({...t,availableWidth:E,availableHeight:S});const C=await i.getDimensions(a.floating);return f!==C.width||h!==C.height?{reset:{rects:!0}}:{}}}},kp=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:a,middlewareData:l}=t,{element:c,padding:p=0}=Kc(e,t)||{};if(null==c)return{};const d=sp(p),u={x:n,y:r},m=np(o),f=ep(m),h=await i.getDimensions(c),g="y"===m,y=g?"top":"left",b=g?"bottom":"right",v=g?"clientHeight":"clientWidth",x=s.reference[f]+s.reference[m]-u[m]-s.floating[f],T=u[m]-s.reference[m],P=await(null==i.getOffsetParent?void 0:i.getOffsetParent(c));let S=P?P[v]:0;S&&await(null==i.isElement?void 0:i.isElement(P))||(S=a.floating[v]||s.floating[f]);const E=x/2-T/2,C=S/2-h[f]/2-1,N=Hc(d[y],C),w=Hc(d[b],C),A=N,_=S-h[f]-w,R=S/2-h[f]/2+E,k=Yc(A,R,_),O=!l.arrow&&null!=Zc(o)&&R!==k&&s.reference[f]/2-(R<A?N:w)-h[f]/2<0,$=O?R<A?R-A:R-_:0;return{[m]:u[m]+$,data:{[m]:k,centerOffset:R-k-$,...O&&{alignmentOffset:$}},reset:O}}}),Op=function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){const{placement:n,elements:r,rects:o,platform:s,strategy:i}=t,{padding:a=2,x:l,y:c}=Kc(e,t),p=Array.from(await(null==s.getClientRects?void 0:s.getClientRects(r.reference))||[]),d=function(e){const t=e.slice().sort(((e,t)=>e.y-t.y)),n=[];let r=null;for(let e=0;e<t.length;e++){const o=t[e];!r||o.y-r.y>r.height/2?n.push([o]):n[n.length-1].push(o),r=o}return n.map((e=>ip(cp(e))))}(p),u=ip(cp(p)),m=sp(a);const f=await s.getElementRects({reference:{getBoundingClientRect:function(){if(2===d.length&&d[0].left>d[1].right&&null!=l&&null!=c)return d.find((e=>l>e.left-m.left&&l<e.right+m.right&&c>e.top-m.top&&c<e.bottom+m.bottom))||u;if(d.length>=2){if("y"===tp(n)){const e=d[0],t=d[d.length-1],r="top"===Qc(n),o=e.top,s=t.bottom,i=r?e.left:t.left,a=r?e.right:t.right;return{top:o,bottom:s,left:i,right:a,width:a-i,height:s-o,x:i,y:o}}const e="left"===Qc(n),t=zc(...d.map((e=>e.right))),r=Hc(...d.map((e=>e.left))),o=d.filter((n=>e?n.left===r:n.right===t)),s=o[0].top,i=o[o.length-1].bottom;return{top:s,bottom:i,left:r,right:t,width:t-r,height:i-s,x:r,y:s}}return u}},floating:r.floating,strategy:i});return o.reference.x!==f.reference.x||o.reference.y!==f.reference.y||o.reference.width!==f.reference.width||o.reference.height!==f.reference.height?{reset:{rects:f}}:{}}}},$p=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=Kc(e,t),p={x:n,y:r},d=tp(o),u=Jc(d);let m=p[u],f=p[d];const h=Kc(a,t),g="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const e="y"===u?"height":"width",t=s.reference[u]-s.floating[e]+g.mainAxis,n=s.reference[u]+s.reference[e]-g.mainAxis;m<t?m=t:m>n&&(m=n)}if(c){var y,b;const e="y"===u?"width":"height",t=["top","left"].includes(Qc(o)),n=s.reference[d]-s.floating[e]+(t&&(null==(y=i.offset)?void 0:y[d])||0)+(t?0:g.crossAxis),r=s.reference[d]+s.reference[e]+(t?0:(null==(b=i.offset)?void 0:b[d])||0)-(t?g.crossAxis:0);f<n?f=n:f>r&&(f=r)}return{[u]:m,[d]:f}}}},jp=(e,t,n)=>{const r=new Map,o={platform:Ep,...n},s={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,a=s.filter(Boolean),l=await(null==i.isRTL?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:p,y:d}=ap(c,r,l),u=r,m={},f=0;for(let n=0;n<a.length;n++){const{name:s,fn:h}=a[n],{x:g,y:y,data:b,reset:v}=await h({x:p,y:d,initialPlacement:r,placement:u,strategy:o,middlewareData:m,rects:c,platform:i,elements:{reference:e,floating:t}});p=null!=g?g:p,d=null!=y?y:d,m={...m,[s]:{...m[s],...b}},v&&f<=50&&(f++,"object"==typeof v&&(v.placement&&(u=v.placement),v.rects&&(c=!0===v.rects?await i.getElementRects({reference:e,floating:t,strategy:o}):v.rects),({x:p,y:d}=ap(c,u,l))),n=-1)}return{x:p,y:d,placement:u,strategy:o,middlewareData:m}})(e,t,{...o,platform:s})};var Dp="undefined"!=typeof document?t.useLayoutEffect:t.useEffect;function Lp(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!Lp(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!Lp(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function Ip(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Mp(e,t){const n=Ip(e);return Math.round(t*n)/n}function Fp(e){const t=o.useRef(e);return Dp((()=>{t.current=e})),t}const Bp=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?kp({element:n.current,padding:r}).fn(t):{}:n?kp({element:n,padding:r}).fn(t):{};var o}}),Up=(e,t)=>({...Ap(e),options:[e,t]}),Hp=(e,t)=>({...$p(e),options:[e,t]}),zp=(e,t)=>({..._p(e),options:[e,t]}),Vp=(e,t)=>({...Rp(e),options:[e,t]}),Wp=(e,t)=>({...Op(e),options:[e,t]}),Gp=(e,t)=>({...Bp(e),options:[e,t]}),qp={...o},Xp=qp.useInsertionEffect||(e=>e());function Yp(e){const t=o.useRef((()=>{if("production"!==process.env.NODE_ENV)throw new Error("Cannot call an event handler while rendering.")}));return Xp((()=>{t.current=e})),o.useCallback((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}var Kp="undefined"!=typeof document?t.useLayoutEffect:t.useEffect;let Qp=!1,Zp=0;const Jp=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Zp++;const ed=qp.useId||function(){const[e,t]=o.useState((()=>Qp?Jp():void 0));return Kp((()=>{null==e&&t(Jp())}),[]),o.useEffect((()=>{Qp=!0}),[]),e};let td;"production"!==process.env.NODE_ENV&&(td=new Set);const nd=o.createContext(null),rd=o.createContext(null),od=()=>{var e;return(null==(e=o.useContext(nd))?void 0:e.id)||null},sd=()=>o.useContext(rd);function id(e){return"data-floating-ui-"+e}function ad(e){-1!==e.current&&(clearTimeout(e.current),e.current=-1)}function ld(e){const n=t.useRef(e);return Kp((()=>{n.current=e})),n}const cd=id("safe-polygon");function pd(e,t,n){return n&&!Ic(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}function dd(e,t){let n=e.filter((e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)})),r=n;for(;r.length;)r=e.filter((e=>{var t;return null==(t=r)?void 0:t.some((t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)}))})),n=n.concat(r);return n}const ud="data-floating-ui-focusable";function md(e){return yc(e.target)&&"BUTTON"===e.target.tagName}function fd(e){return Uc(e)}const hd={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},gd={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},yd=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function bd(e){const{open:t=!1,onOpenChange:n,elements:r}=e,s=ed(),i=o.useRef({}),[a]=o.useState((()=>function(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter((e=>e!==n)))||[])}}}())),l=null!=od();if("production"!==process.env.NODE_ENV){const e=r.reference;e&&!gc(e)&&function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const o="Floating UI: "+n.join(" ");var s;null!=(e=td)&&e.has(o)||(null==(s=td)||s.add(o),console.error(o))}("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[c,p]=o.useState(r.reference),d=Yp(((e,t,r)=>{i.current.openEvent=e?t:void 0,a.emit("openchange",{open:e,event:t,reason:r,nested:l}),null==n||n(e,t,r)})),u=o.useMemo((()=>({setPositionReference:p})),[]),m=o.useMemo((()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference})),[c,r.reference,r.floating]);return o.useMemo((()=>({dataRef:i,open:t,onOpenChange:d,elements:m,events:a,floatingId:s,refs:u})),[t,d,m,a,s,u])}function vd(e){void 0===e&&(e={});const{nodeId:t}=e,n=bd({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[a,l]=o.useState(null),[c,p]=o.useState(null),d=(null==i?void 0:i.domReference)||a,u=o.useRef(null),m=sd();Kp((()=>{d&&(u.current=d)}),[d]);const f=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:a,floating:l}={},transform:c=!0,whileElementsMounted:p,open:d}=e,[u,m]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,h]=o.useState(r);Lp(f,r)||h(r);const[g,y]=o.useState(null),[b,v]=o.useState(null),x=o.useCallback((e=>{e!==E.current&&(E.current=e,y(e))}),[]),T=o.useCallback((e=>{e!==C.current&&(C.current=e,v(e))}),[]),P=a||g,S=l||b,E=o.useRef(null),C=o.useRef(null),N=o.useRef(u),w=null!=p,A=Fp(p),_=Fp(i),R=Fp(d),k=o.useCallback((()=>{if(!E.current||!C.current)return;const e={placement:t,strategy:n,middleware:f};_.current&&(e.platform=_.current),jp(E.current,C.current,e).then((e=>{const t={...e,isPositioned:!1!==R.current};O.current&&!Lp(N.current,t)&&(N.current=t,s.flushSync((()=>{m(t)})))}))}),[f,t,n,_,R]);Dp((()=>{!1===d&&N.current.isPositioned&&(N.current.isPositioned=!1,m((e=>({...e,isPositioned:!1}))))}),[d]);const O=o.useRef(!1);Dp((()=>(O.current=!0,()=>{O.current=!1})),[]),Dp((()=>{if(P&&(E.current=P),S&&(C.current=S),P&&S){if(A.current)return A.current(P,S,k);k()}}),[P,S,k,A,w]);const $=o.useMemo((()=>({reference:E,floating:C,setReference:x,setFloating:T})),[x,T]),j=o.useMemo((()=>({reference:P,floating:S})),[P,S]),D=o.useMemo((()=>{const e={position:n,left:0,top:0};if(!j.floating)return e;const t=Mp(j.floating,u.x),r=Mp(j.floating,u.y);return c?{...e,transform:"translate("+t+"px, "+r+"px)",...Ip(j.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,c,j.floating,u.x,u.y]);return o.useMemo((()=>({...u,update:k,refs:$,elements:j,floatingStyles:D})),[u,k,$,j,D])}({...e,elements:{...i,...c&&{reference:c}}}),h=o.useCallback((e=>{const t=gc(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;p(t),f.refs.setReference(t)}),[f.refs]),g=o.useCallback((e=>{(gc(e)||null===e)&&(u.current=e,l(e)),(gc(f.refs.reference.current)||null===f.refs.reference.current||null!==e&&!gc(e))&&f.refs.setReference(e)}),[f.refs]),y=o.useMemo((()=>({...f.refs,setReference:g,setPositionReference:h,domReference:u})),[f.refs,g,h]),b=o.useMemo((()=>({...f.elements,domReference:d})),[f.elements,d]),v=o.useMemo((()=>({...f,...r,refs:y,elements:b,nodeId:t})),[f,y,b,t,r]);return Kp((()=>{r.dataRef.current.floatingContext=v;const e=null==m?void 0:m.nodesRef.current.find((e=>e.id===t));e&&(e.context=v)})),o.useMemo((()=>({...f,context:v,refs:y,elements:b})),[f,y,b,v])}function xd(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,events:s,dataRef:i,elements:a}=e,{enabled:l=!0,visibleOnly:c=!0}=t,p=o.useRef(!1),d=o.useRef(-1),u=o.useRef(!0);o.useEffect((()=>{if(!l)return;const e=mc(a.domReference);function t(){!n&&yc(a.domReference)&&a.domReference===kc(Mc(a.domReference))&&(p.current=!0)}function r(){u.current=!0}return e.addEventListener("blur",t),e.addEventListener("keydown",r,!0),()=>{e.removeEventListener("blur",t),e.removeEventListener("keydown",r,!0)}}),[a.domReference,n,l]),o.useEffect((()=>{if(l)return s.on("openchange",e),()=>{s.off("openchange",e)};function e(e){let{reason:t}=e;"reference-press"!==t&&"escape-key"!==t||(p.current=!0)}}),[s,l]),o.useEffect((()=>()=>{ad(d)}),[]);const m=o.useMemo((()=>({onPointerDown(e){Dc(e.nativeEvent)||(u.current=!1)},onMouseLeave(){p.current=!1},onFocus(e){if(p.current)return;const t=Bc(e.nativeEvent);if(c&&gc(t))try{if(/apple/i.test(navigator.vendor)&&$c().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints)throw Error();if(!t.matches(":focus-visible"))return}catch(e){if(!u.current&&!Uc(t))return}r(!0,e.nativeEvent,"focus")},onBlur(e){p.current=!1;const t=e.relatedTarget,n=e.nativeEvent,o=gc(t)&&t.hasAttribute(id("focus-guard"))&&"outside"===t.getAttribute("data-type");d.current=window.setTimeout((()=>{var e;const s=kc(a.domReference?a.domReference.ownerDocument:document);(t||s!==a.domReference)&&(Oc(null==(e=i.current.floatingContext)?void 0:e.refs.floating.current,s)||Oc(a.domReference,s)||o||r(!1,n,"focus"))}))}})),[i,a.domReference,r,c]);return o.useMemo((()=>l?{reference:m}:{}),[l,m])}const Td="active",Pd="selected";function Sd(e,t,n){const r=new Map,o="item"===n;let s=e;if(o&&e){const{[Td]:t,[Pd]:n,...r}=e;s=r}return{..."floating"===n&&{tabIndex:-1,[ud]:""},...s,...t.map((t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r})).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[n,s]=t;var i;o&&[Td,Pd].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof s&&(null==(i=r.get(n))||i.push(s),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return null==(e=r.get(n))?void 0:e.map((e=>e(...o))).find((e=>void 0!==e))})):e[n]=s)})),e):e),{})}}const Ed=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function Cd(e,t){const[n,r]=e;let o=!1;const s=t.length;for(let e=0,i=s-1;e<s;i=e++){const[s,a]=t[e]||[0,0],[l,c]=t[i]||[0,0];a>=r!=c>=r&&n<=(l-s)*(r-a)/(c-a)+s&&(o=!o)}return o}function Nd(e){void 0===e&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e;let o,s=!1,i=null,a=null,l=performance.now();const c=e=>{let{x:n,y:c,placement:p,elements:d,onClose:u,nodeId:m,tree:f}=e;return function(e){function h(){clearTimeout(o),u()}if(clearTimeout(o),!d.domReference||!d.floating||null==p||null==n||null==c)return;const{clientX:g,clientY:y}=e,b=[g,y],v=Bc(e),x="mouseleave"===e.type,T=Oc(d.floating,v),P=Oc(d.domReference,v),S=d.domReference.getBoundingClientRect(),E=d.floating.getBoundingClientRect(),C=p.split("-")[0],N=n>E.right-E.width/2,w=c>E.bottom-E.height/2,A=function(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}(b,S),_=E.width>S.width,R=E.height>S.height,k=(_?S:E).left,O=(_?S:E).right,$=(R?S:E).top,j=(R?S:E).bottom;if(T&&(s=!0,!x))return;if(P&&(s=!1),P&&!x)return void(s=!0);if(x&&gc(e.relatedTarget)&&Oc(d.floating,e.relatedTarget))return;if(f&&dd(f.nodesRef.current,m).some((e=>{let{context:t}=e;return null==t?void 0:t.open})))return;if("top"===C&&c>=S.bottom-1||"bottom"===C&&c<=S.top+1||"left"===C&&n>=S.right-1||"right"===C&&n<=S.left+1)return h();let D=[];switch(C){case"top":D=[[k,S.top+1],[k,E.bottom-1],[O,E.bottom-1],[O,S.top+1]];break;case"bottom":D=[[k,E.top+1],[k,S.bottom-1],[O,S.bottom-1],[O,E.top+1]];break;case"left":D=[[E.right-1,j],[E.right-1,$],[S.left+1,$],[S.left+1,j]];break;case"right":D=[[S.right-1,j],[S.right-1,$],[E.left+1,$],[E.left+1,j]]}if(!Cd([g,y],D)){if(s&&!A)return h();if(!x&&r){const t=function(e,t){const n=performance.now(),r=n-l;if(null===i||null===a||0===r)return i=e,a=t,l=n,null;const o=e-i,s=t-a,c=Math.sqrt(o*o+s*s);return i=e,a=t,l=n,c/r}(e.clientX,e.clientY);if(null!==t&&t<.1)return h()}Cd([g,y],function(e){let[n,r]=e;switch(C){case"top":return[[_?n+t/2:N?n+4*t:n-4*t,r+t+1],[_?n-t/2:N?n+4*t:n-4*t,r+t+1],...[[E.left,N||_?E.bottom-t:E.top],[E.right,N?_?E.bottom-t:E.top:E.bottom-t]]];case"bottom":return[[_?n+t/2:N?n+4*t:n-4*t,r-t],[_?n-t/2:N?n+4*t:n-4*t,r-t],...[[E.left,N||_?E.top+t:E.bottom],[E.right,N?_?E.top+t:E.bottom:E.top+t]]];case"left":{const e=[n+t+1,R?r+t/2:w?r+4*t:r-4*t],o=[n+t+1,R?r-t/2:w?r+4*t:r-4*t];return[...[[w||R?E.right-t:E.left,E.top],[w?R?E.right-t:E.left:E.right-t,E.bottom]],e,o]}case"right":return[[n-t,R?r+t/2:w?r+4*t:r-4*t],[n-t,R?r-t/2:w?r+4*t:r-4*t],...[[w||R?E.left+t:E.right,E.top],[w?R?E.left+t:E.right:E.left+t,E.bottom]]]}}([n,c]))?!s&&r&&(o=window.setTimeout(h,40)):h()}}};return c.__options={blockPointerEvents:n},c}const wd=e=>{const{arrowRef:n,cornerOffset:r=0,flipCrossAxis:s,flipFallbackAxisSideDirection:i="none",flipFallbackPlacements:a,flipProp:l,isDismissible:c,isOpen:p=!1,offset:d=0,onToggle:u,isFocusableOnHover:m,shiftProp:f,sizeProp:h,positionStrategy:g="absolute",tooltipArrowWidth:y=0,tooltipPlacement:b,trigger:v}=e,[x,T]=t.useState(void 0),[P,S]=t.useState(!1),E=r+y,C=v?.includes(Ne.HOVER),N=v?.includes(Ne.CLICK),w=v?.includes(Ne.FOCUS),{x:A,y:_,floatingStyles:R,refs:k,context:O,placement:$,middlewareData:j}=vd({open:p,onOpenChange:(e,t,n)=>{if(C){if(n===Ne.CLICK&&S((e=>!e)),p&&P&&n===Ne.HOVER)return;if(p&&P&&(n===Ne.CLICK||n===Ne.OUTSIDE_PRESS||n===Ne.ESCAPE_KEY))return S(!1),void u(!1)}u(e)},placement:b,whileElementsMounted:Np,middleware:[(L=d,{...wp(L),options:[L,I]}),Wp(),l&&zp({crossAxis:s,fallbackPlacements:a?(D=a,Array.isArray(D)?D:[D]):void 0,fallbackAxisSideDirection:i}),f&&Up({limiter:Hp({offset:()=>({mainAxis:E})})}),h&&Vp({apply({availableWidth:e}){T(e)}}),Gp({element:n.current,padding:r})],strategy:g});var D,L,I;const M=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:s,elements:{domReference:i}}=e,{enabled:a=!0,event:l="click",toggle:c=!0,ignoreMouse:p=!1,keyboardHandlers:d=!0,stickIfOpen:u=!0}=t,m=o.useRef(),f=o.useRef(!1),h=o.useMemo((()=>({onPointerDown(e){m.current=e.pointerType},onMouseDown(e){const t=m.current;0===e.button&&"click"!==l&&(Ic(t,!0)&&p||(!n||!c||s.current.openEvent&&u&&"mousedown"!==s.current.openEvent.type?(e.preventDefault(),r(!0,e.nativeEvent,"click")):r(!1,e.nativeEvent,"click")))},onClick(e){const t=m.current;"mousedown"===l&&m.current?m.current=void 0:Ic(t,!0)&&p||(!n||!c||s.current.openEvent&&u&&"click"!==s.current.openEvent.type?r(!0,e.nativeEvent,"click"):r(!1,e.nativeEvent,"click"))},onKeyDown(e){m.current=void 0,e.defaultPrevented||!d||md(e)||(" "!==e.key||fd(i)||(e.preventDefault(),f.current=!0),"Enter"===e.key&&r(!n||!c,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!d||md(e)||fd(i)||" "===e.key&&f.current&&(f.current=!1,r(!n||!c,e.nativeEvent,"click"))}})),[s,i,l,p,d,r,n,u,c]);return o.useMemo((()=>a?{reference:h}:{}),[a,h])}(O,{enabled:N}),F=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:s,events:i,elements:a}=e,{enabled:l=!0,delay:c=0,handleClose:p=null,mouseOnly:d=!1,restMs:u=0,move:m=!0}=t,f=sd(),h=od(),g=ld(p),y=ld(c),b=ld(n),v=o.useRef(),x=o.useRef(-1),T=o.useRef(),P=o.useRef(-1),S=o.useRef(!0),E=o.useRef(!1),C=o.useRef((()=>{})),N=o.useRef(!1),w=o.useCallback((()=>{var e;const t=null==(e=s.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t}),[s]);o.useEffect((()=>{if(l)return i.on("openchange",e),()=>{i.off("openchange",e)};function e(e){let{open:t}=e;t||(ad(x),ad(P),S.current=!0,N.current=!1)}}),[l,i]),o.useEffect((()=>{if(!l)return;if(!g.current)return;if(!n)return;function e(e){w()&&r(!1,e,"hover")}const t=Mc(a.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}}),[a.floating,n,r,l,g,w]);const A=o.useCallback((function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const o=pd(y.current,"close",v.current);o&&!T.current?(ad(x),x.current=window.setTimeout((()=>r(!1,e,n)),o)):t&&(ad(x),r(!1,e,n))}),[y,r]),_=Yp((()=>{C.current(),T.current=void 0})),R=Yp((()=>{if(E.current){const e=Mc(a.floating).body;e.style.pointerEvents="",e.removeAttribute(cd),E.current=!1}})),k=Yp((()=>!!s.current.openEvent&&["click","mousedown"].includes(s.current.openEvent.type)));o.useEffect((()=>{if(l&&gc(a.domReference)){var e;const r=a.domReference;return n&&r.addEventListener("mouseleave",i),null==(e=a.floating)||e.addEventListener("mouseleave",i),m&&r.addEventListener("mousemove",t,{once:!0}),r.addEventListener("mouseenter",t),r.addEventListener("mouseleave",o),()=>{var e;n&&r.removeEventListener("mouseleave",i),null==(e=a.floating)||e.removeEventListener("mouseleave",i),m&&r.removeEventListener("mousemove",t),r.removeEventListener("mouseenter",t),r.removeEventListener("mouseleave",o)}}function t(e){if(ad(x),S.current=!1,d&&!Ic(v.current)||u>0&&!pd(y.current,"open"))return;const t=pd(y.current,"open",v.current);t?x.current=window.setTimeout((()=>{b.current||r(!0,e,"hover")}),t):n||r(!0,e,"hover")}function o(e){if(k())return;C.current();const t=Mc(a.floating);if(ad(P),N.current=!1,g.current&&s.current.floatingContext){n||ad(x),T.current=g.current({...s.current.floatingContext,tree:f,x:e.clientX,y:e.clientY,onClose(){R(),_(),k()||A(e,!0,"safe-polygon")}});const r=T.current;return t.addEventListener("mousemove",r),void(C.current=()=>{t.removeEventListener("mousemove",r)})}("touch"!==v.current||!Oc(a.floating,e.relatedTarget))&&A(e)}function i(e){k()||s.current.floatingContext&&(null==g.current||g.current({...s.current.floatingContext,tree:f,x:e.clientX,y:e.clientY,onClose(){R(),_(),k()||A(e)}})(e))}}),[a,l,e,d,u,m,A,_,R,r,n,b,f,y,g,s,k]),Kp((()=>{var e;if(l&&n&&null!=(e=g.current)&&e.__options.blockPointerEvents&&w()){E.current=!0;const e=a.floating;if(gc(a.domReference)&&e){var t;const n=Mc(a.floating).body;n.setAttribute(cd,"");const r=a.domReference,o=null==f||null==(t=f.nodesRef.current.find((e=>e.id===h)))||null==(t=t.context)?void 0:t.elements.floating;return o&&(o.style.pointerEvents=""),n.style.pointerEvents="none",r.style.pointerEvents="auto",e.style.pointerEvents="auto",()=>{n.style.pointerEvents="",r.style.pointerEvents="",e.style.pointerEvents=""}}}}),[l,n,h,a,f,g,w]),Kp((()=>{n||(v.current=void 0,N.current=!1,_(),R())}),[n,_,R]),o.useEffect((()=>()=>{_(),ad(x),ad(P),R()}),[l,a.domReference,_,R]);const O=o.useMemo((()=>{function e(e){v.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function o(){S.current||b.current||r(!0,t,"hover")}d&&!Ic(v.current)||n||0===u||N.current&&e.movementX**2+e.movementY**2<2||(ad(P),"touch"===v.current?o():(N.current=!0,P.current=window.setTimeout(o,u)))}}}),[d,r,n,b,u]),$=o.useMemo((()=>({onMouseEnter(){ad(x)},onMouseLeave(e){k()||A(e.nativeEvent,!1)}})),[A,k]);return o.useMemo((()=>l?{reference:O,floating:$}:{}),[l,O,$])}(O,{enabled:C,handleClose:(B=!!m,B?Nd({requireIntent:!1}):void 0)});var B;const U=xd(O,{enabled:w}),H=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,elements:s,dataRef:i}=e,{enabled:a=!0,escapeKey:l=!0,outsidePress:c=!0,outsidePressEvent:p="pointerdown",referencePress:d=!1,referencePressEvent:u="pointerdown",ancestorScroll:m=!1,bubbles:f,capture:h}=t,g=sd(),y=Yp("function"==typeof c?c:()=>!1),b="function"==typeof c?y:c,v=o.useRef(!1),x=o.useRef(!1),{escapeKey:T,outsidePress:P}=yd(f),{escapeKey:S,outsidePress:E}=yd(h),C=o.useRef(!1),N=Yp((e=>{var t;if(!n||!a||!l||"Escape"!==e.key)return;if(C.current)return;const o=null==(t=i.current.floatingContext)?void 0:t.nodeId,s=g?dd(g.nodesRef.current,o):[];if(!T&&(e.stopPropagation(),s.length>0)){let e=!0;if(s.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)})),!e)return}r(!1,function(e){return"nativeEvent"in e}(e)?e.nativeEvent:e,"escape-key")})),w=Yp((e=>{var t;const n=()=>{var t;N(e),null==(t=Bc(e))||t.removeEventListener("keydown",n)};null==(t=Bc(e))||t.addEventListener("keydown",n)})),A=Yp((e=>{var t;const n=v.current;v.current=!1;const o=x.current;if(x.current=!1,"click"===p&&o)return;if(n)return;if("function"==typeof b&&!b(e))return;const a=Bc(e),l="["+id("inert")+"]",c=Mc(s.floating).querySelectorAll(l);let d=gc(a)?a:null;for(;d&&!Ec(d);){const e=wc(d);if(Ec(e)||!gc(e))break;d=e}if(c.length&&gc(a)&&!a.matches("html,body")&&!Oc(a,s.floating)&&Array.from(c).every((e=>!Oc(d,e))))return;if(yc(a)&&k){const t=Ec(a),n=Cc(a),r=/auto|scroll/,o=t||r.test(n.overflowX),s=t||r.test(n.overflowY),i=o&&a.clientWidth>0&&a.scrollWidth>a.clientWidth,l=s&&a.clientHeight>0&&a.scrollHeight>a.clientHeight,c="rtl"===n.direction,p=l&&(c?e.offsetX<=a.offsetWidth-a.clientWidth:e.offsetX>a.clientWidth),d=i&&e.offsetY>a.clientHeight;if(p||d)return}const u=null==(t=i.current.floatingContext)?void 0:t.nodeId,m=g&&dd(g.nodesRef.current,u).some((t=>{var n;return Fc(e,null==(n=t.context)?void 0:n.elements.floating)}));if(Fc(e,s.floating)||Fc(e,s.domReference)||m)return;const f=g?dd(g.nodesRef.current,u):[];if(f.length>0){let e=!0;if(f.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)})),!e)return}r(!1,e,"outside-press")})),_=Yp((e=>{var t;const n=()=>{var t;A(e),null==(t=Bc(e))||t.removeEventListener(p,n)};null==(t=Bc(e))||t.addEventListener(p,n)}));o.useEffect((()=>{if(!n||!a)return;i.current.__escapeKeyBubbles=T,i.current.__outsidePressBubbles=P;let e=-1;function t(e){r(!1,e,"ancestor-scroll")}function o(){window.clearTimeout(e),C.current=!0}function c(){e=window.setTimeout((()=>{C.current=!1}),Sc()?5:0)}const d=Mc(s.floating);l&&(d.addEventListener("keydown",S?w:N,S),d.addEventListener("compositionstart",o),d.addEventListener("compositionend",c)),b&&d.addEventListener(p,E?_:A,E);let u=[];return m&&(gc(s.domReference)&&(u=_c(s.domReference)),gc(s.floating)&&(u=u.concat(_c(s.floating))),!gc(s.reference)&&s.reference&&s.reference.contextElement&&(u=u.concat(_c(s.reference.contextElement)))),u=u.filter((e=>{var t;return e!==(null==(t=d.defaultView)?void 0:t.visualViewport)})),u.forEach((e=>{e.addEventListener("scroll",t,{passive:!0})})),()=>{l&&(d.removeEventListener("keydown",S?w:N,S),d.removeEventListener("compositionstart",o),d.removeEventListener("compositionend",c)),b&&d.removeEventListener(p,E?_:A,E),u.forEach((e=>{e.removeEventListener("scroll",t)})),window.clearTimeout(e)}}),[i,s,l,b,p,n,r,m,a,T,P,N,S,w,A,E,_]),o.useEffect((()=>{v.current=!1}),[b,p]);const R=o.useMemo((()=>({onKeyDown:N,...d&&{[hd[u]]:e=>{r(!1,e.nativeEvent,"reference-press")},..."click"!==u&&{onClick(e){r(!1,e.nativeEvent,"reference-press")}}}})),[N,r,d,u]),k=o.useMemo((()=>({onKeyDown:N,onMouseDown(){x.current=!0},onMouseUp(){x.current=!0},[gd[p]]:()=>{v.current=!0}})),[N,p]);return o.useMemo((()=>a?{reference:R,floating:k}:{}),[a,R,k])}(O,{outsidePress:!c}),z=function(e,t){var n;void 0===t&&(t={});const{open:r,floatingId:s}=e,{enabled:i=!0,role:a="dialog"}=t,l=null!=(n=Ed.get(a))?n:a,c=ed(),p=null!=od(),d=o.useMemo((()=>"tooltip"===l||"label"===a?{["aria-"+("label"===a?"labelledby":"describedby")]:r?s:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":"alertdialog"===l?"dialog":l,"aria-controls":r?s:void 0,..."listbox"===l&&{role:"combobox"},..."menu"===l&&{id:c},..."menu"===l&&p&&{role:"menuitem"},..."select"===a&&{"aria-autocomplete":"none"},..."combobox"===a&&{"aria-autocomplete":"list"}}),[l,s,p,r,c,a]),u=o.useMemo((()=>{const e={id:s,...l&&{role:l}};return"tooltip"===l||"label"===a?e:{...e,..."menu"===l&&{"aria-labelledby":c}}}),[l,s,c,a]),m=o.useCallback((e=>{let{active:t,selected:n}=e;const r={role:"option",...t&&{id:s+"-option"}};switch(a){case"select":return{...r,"aria-selected":t&&n};case"combobox":return{...r,...t&&{"aria-selected":!0}}}return{}}),[s,a]);return o.useMemo((()=>i?{reference:d,floating:u,item:m}:{}),[i,d,u,m])}(O,{role:"tooltip"}),{getReferenceProps:V,getFloatingProps:W}=function(e){void 0===e&&(e=[]);const t=e.map((e=>null==e?void 0:e.reference)),n=e.map((e=>null==e?void 0:e.floating)),r=e.map((e=>null==e?void 0:e.item)),s=o.useCallback((t=>Sd(t,e,"reference")),t),i=o.useCallback((t=>Sd(t,e,"floating")),n),a=o.useCallback((t=>Sd(t,e,"item")),r);return o.useMemo((()=>({getReferenceProps:s,getFloatingProps:i,getItemProps:a})),[s,i,a])}([M,F,U,H,z]);return{context:O,getFloatingProps:W,getReferenceProps:e=>{const t=V(e);if(w){const e=t.onMouseDown;t.onMouseDown=t=>{e&&e(t);const n=t.currentTarget;if(n&&n!==document.activeElement){n instanceof HTMLElement&&(n.tabIndex>=0||n instanceof HTMLButtonElement||n instanceof HTMLAnchorElement||n instanceof HTMLInputElement||n instanceof HTMLSelectElement||n instanceof HTMLTextAreaElement)&&n.focus()}}}return t},maxWidth:x,middlewareData:j,placement:$,refs:k,x:A,y:_,position:R.position}},Ad=e=>{const{isDismissible:n,isOpen:r,...o}=e,s=pn("Tooltip"),i=`${s}Popover`,a=`${i}__arrow`,l=`${i}__close`,c=`${i}--dismissible`,p="is-hidden",d=t.useMemo((()=>!1===r),[r]);return{classProps:{rootClassName:s,popoverClassName:g(i,{[c]:n,[p]:d}),arrowClassName:a,closeButtonClassName:l},props:o}},_d=t.forwardRef(((e,n)=>{const{children:r,elementType:o="div",enableFlipping:s=!0,enableFlippingCrossAxis:i=!0,enableShifting:a=!0,enableSizing:l=!0,flipFallbackAxisSideDirection:c="none",flipFallbackPlacements:p=["bottom","top"],id:d,isDismissible:u=!1,isFocusableOnHover:m=!1,isOpen:f=!1,onToggle:h,placement:g,positionStrategy:y="absolute",trigger:b=["click","hover"],...v}=e,x=o,{classProps:T,props:P}=Ad({isDismissible:u,isOpen:f,...v}),{styleProps:S,props:E}=en(P),C=Ot(x,{classProps:T.rootClassName,styleProps:S}),N=t.useRef(null),w=t.useRef(n);let A,_,R,k;const O=w.current?.querySelector('[data-spirit-element="tooltip"]'),$=O?.querySelector('[data-spirit-element="tooltip-arrow"]');if(O){const e=window.getComputedStyle(O),t=$&&window.getComputedStyle($);if(A=ac(e.getPropertyValue("--tooltip-max-width").trim())??ac(e.maxWidth),_=ac(e.getPropertyValue("--tooltip-offset"))??0,R=t?ac(t.getPropertyValue("--tooltip-arrow-corner-offset"))??0:0,k=0,$ instanceof HTMLElement){const e=$.offsetWidth;k=e>0?e:ac(t?.width??"")??0}}const{getFloatingProps:j,getReferenceProps:D,maxWidth:L,middlewareData:I,placement:M,refs:F,x:B,y:U,position:H}=wd({arrowRef:N,cornerOffset:R,flipCrossAxis:i,flipFallbackAxisSideDirection:c,flipFallbackPlacements:p,flipProp:s,isDismissible:u,isFocusableOnHover:m,isOpen:f,offset:_,onToggle:h,shiftProp:a,sizeProp:l,positionStrategy:y,tooltipArrowWidth:k,tooltipPlacement:g,trigger:b});return gr.jsx(cc,{value:{anchorRef:F.setPositionReference,arrowRef:N,getFloatingProps:j,getReferenceProps:D,id:d,isDismissible:u,isOpen:f,middlewareData:I,onToggle:h,placement:M,sizeMaxWidth:L,tooltipMaxWidth:A,tooltipRef:F.setFloating,triggerRef:F.setReference,x:B,y:U,position:H},children:gr.jsx(x,{...E,ref:w,...C,children:r})})}));_d.spiritComponent="Tooltip",_d.displayName="Tooltip";const Rd=({label:e,onClick:t,...n})=>{const{t:r}=An(),o=e??r("common.close"),{classProps:s,props:i}=Ad(n),{styleProps:a}=en({...i});return gr.jsxs("button",{type:"button",className:g(s.closeButtonClassName,a.className),style:a.style,onClick:t,"aria-expanded":"true",children:[gr.jsx(Cr,{name:"close","aria-hidden":"true"}),gr.jsx(_s,{children:o})]})};Rd.spiritComponent="TooltipCloseButton";const kd=e=>{const{children:n,...r}=e,{arrowRef:o,getFloatingProps:s,isDismissible:i,isOpen:a,middlewareData:l,onToggle:c,placement:p,tooltipRef:d,x:u,y:m,position:f,sizeMaxWidth:h,tooltipMaxWidth:y}=pc(),{classProps:b,props:v}=Ad({isOpen:a,isDismissible:i,...r}),{styleProps:x,props:T}=en(v),P=t.useMemo((()=>i&&gr.jsx(Rd,{onClick:()=>c(!1),label:"close"})),[i,c]);return gr.jsxs("div",{ref:d,className:g(b.popoverClassName,x.className),...T,...s(),style:{position:f,top:Number.isFinite(m)?m:0,left:Number.isFinite(u)?u:0,...(()=>{if(a&&h&&y)return{maxWidth:y<h?y:h}})(),...x.style},"data-spirit-element":"tooltip","data-spirit-placement":p,children:[n,P,gr.jsx("span",{ref:o,className:b.arrowClassName,"data-spirit-element":"tooltip-arrow",style:{position:"absolute",...(()=>{if(p&&o.current){const{arrow:e}=l,t={top:"bottom",right:"left",bottom:"top",left:"right"}[p.split("-")[0]],n=o.current,r="top"===t||"bottom"===t?n.offsetHeight:(n.offsetHeight+n.offsetWidth)/2;return{left:e?.x,top:e?.y,[t]:r&&-Math.floor(r)}}})()}})]})};kd.spiritComponent="TooltipPopover";const Od={elementType:"button",children:null},$d=e=>{const t={...Od,...e},{elementType:n,children:r,...o}=t,s=n,{id:i,isOpen:a,triggerRef:l,getReferenceProps:c}=pc(),{styleProps:p,props:d}=en(o),u=Ot(s,{triggerStyleProps:p,transferProps:d});return gr.jsx(s,{...d,...u,id:i,ref:l,...c(),children:"function"==typeof r?r({isOpen:a}):r})};$d.spiritComponent="TooltipTrigger",$d.displayName="TooltipTrigger";const jd=(e=!1)=>{const[n,r]=t.useState(e);return{isOpen:n,onToggle:r}},Dd=e=>{const{children:t,isOpen:n,...r}=e,{isOpen:o,onToggle:s}=jd(n);return gr.jsx(_d,{...r,isOpen:o,onToggle:s,children:t})};Dd.spiritComponent="UncontrolledTooltip";const Ld=({feature:e,featureId:n,...r})=>{const{modalContent:o,title:s,tooltipContent:i}=e,{classProps:a}=Jl(r),[l,c]=er(!1),[p,d]=t.useState(!1);return o?gr.jsxs("div",{className:a.body.featureTitle,children:[gr.jsx(Cr,{name:"check-plain",boxSize:16}),gr.jsx("button",{type:"button",onClick:()=>d(!0),className:g(a.body.featureTitleText,"text-underlined-dotted"),children:s}),gr.jsx(bl,{id:`${n}-modal`,isOpen:p,onClose:()=>d(!1),children:gr.jsxs(Pl,{isScrollable:!0,children:[gr.jsx(Cl,{children:s}),gr.jsx(vl,{children:o})]})})]}):i?gr.jsxs(_d,{elementType:"div",id:`${n}-tooltip`,isDismissible:!0,isOpen:l,onToggle:c,placement:"top",trigger:["click"],UNSAFE_className:a.body.featureTitle,children:[gr.jsx(Cr,{name:"check-plain",boxSize:16}),gr.jsx($d,{elementType:"button",UNSAFE_className:g(a.body.featureTitleText,"text-underlined-dotted"),children:s}),gr.jsx(kd,{children:gr.jsx("div",{children:i})})]}):gr.jsxs("div",{className:a.body.featureTitle,children:[gr.jsx(Cr,{name:"check-plain",boxSize:16}),gr.jsx("div",{className:a.body.featureTitleText,id:`${n}-title`,children:s})]})};Ld.spiritComponent="PricingPlanFeatureTitle";const Id={description:void 0,elementType:"div",features:[]},Md=e=>{const t={...Id,...e},{description:n,elementType:r,features:o,id:s,...i}=t,a=r,{classProps:l,props:c}=Jl(i),{styleProps:p,props:d}=en(c),u=Ot(a,{classProps:l.body.root,styleProps:p});return gr.jsxs(a,{...d,...u,children:[n&&gr.jsx("div",{children:n}),gr.jsx("ul",{className:l.body.featureList,children:(o??[]).map(((e,t)=>{const n=`featureItem-${t}`,r=`${s}-feature-${t}`;return gr.jsxs("li",{className:l.body.featureItem,children:[gr.jsx(Ld,{feature:e,featureId:r}),gr.jsx("div",{className:l.body.featureDescription,children:e.description})]},n)}))})]})};Md.spiritComponent="PricingPlanBody";const Fd={elementType:"footer"},Bd=e=>{const t={...Fd,...e},{children:n,elementType:r,...o}=t,s=r,{classProps:i,props:a}=Jl(o),{styleProps:l,props:c}=en(a),p=Ot(s,{classProps:i.footer,styleProps:l});return gr.jsx(s,{...c,...p,children:n})};Bd.spiritComponent="PricingPlanFooter";const Ud=e=>{const{children:t,...n}=e,r=pn("ProductLogo"),{styleProps:o,props:s}=en(n);return gr.jsx("div",{...s,className:g(r,o.className),style:o.style,children:t})};function Hd(e){const{inputPosition:t=te.START,isItem:n,isLabelHidden:r,validationState:o,...s}=e,{isDisabled:i}=s,a=pn("Radio"),l=`${a}--disabled`,c=`${a}--item`,p=`${a}__input`,d=jn(a,t),u=`${a}__label`,m=`${a}__label--hidden`,f=`${a}__text`,h=`${a}__helperText`,y=`${a}--${o}`;return{classProps:{root:g(a,{[d]:d,[l]:i,[c]:n,[y]:o}),label:g(u,{[m]:r}),input:p,text:f,helperText:h},props:s}}Ud.spiritComponent="ProductLogo";const zd=t.forwardRef(((e,t)=>{const{classProps:n,props:r}=Hd(e),{"aria-describedby":o="",helperText:s,id:i,isChecked:a,isDisabled:l,label:c,onChange:p,value:d,...u}=r,{styleProps:m,props:f}=en(u),[h,y]=rn(o);return gr.jsxs("div",{style:m.style,className:g(n.root,m.className),children:[gr.jsx("input",{...f,...h,type:"radio",id:i,className:n.input,disabled:l,checked:a,onChange:p,value:d,ref:t}),gr.jsxs("div",{className:n.text,children:[gr.jsx(Ls,{UNSAFE_className:n.label,htmlFor:i,children:c}),gr.jsx(js,{UNSAFE_className:n.helperText,id:`${i}__helperText`,registerAria:y,helperText:s})]})]})}));zd.spiritComponent="Radio",zd.displayName="Radio";const Vd="Scroll right",Wd="Scroll left",Gd="Scroll down",qd="Scroll up",Xd=Q.VERTICAL,Yd="shadows",Kd=({viewportRef:e,direction:n})=>{const r=t.useRef(null);t.useEffect((()=>()=>{r.current&&clearTimeout(r.current)}),[]);return{handleScroll:t.useCallback((t=>{if(!e.current)return;const o=ee(n),s=o?re.LEFT:re.TOP,i=o?e.current.scrollLeft:e.current.scrollTop,a=o?e.current.scrollWidth-e.current.clientWidth:e.current.scrollHeight-e.current.clientHeight;e.current.scrollTo({[s]:i,behavior:"auto"}),r.current&&clearTimeout(r.current);const l=Math.max(0,Math.min(i+t,a));r.current=setTimeout((()=>{e.current&&e.current.scrollTo({[s]:l,behavior:"smooth"})}),10)}),[e,n])}},Qd=(e,t,n=300)=>{const r=(e=>e?{start:Wd,end:Vd}:{top:qd,bottom:Gd})(e),o={...r,...t};return{arrows:[{icon:e?"chevron-left":"chevron-up",label:e?o.start??r.start:o.top??r.top,step:-n},{icon:e?"chevron-right":"chevron-down",label:e?o.end??r.end:o.bottom??r.bottom,step:n}]}},Zd=({direction:e,isScrollbarDisabled:t,isScrolledAtEnd:n,isScrolledAtStart:r,overflowDecorators:o=Yd})=>{const s=pn("ScrollView"),i=`${s}--${e}`,a=`${s}--scrollbarDisabled`,l=`${s}__viewport`,c=`${s}__content`,p=`${s}__overflowDecorators`,d={shadows:`${p}--shadows`,borders:`${p}--borders`,both:g(`${p}--shadows`,`${p}--borders`)}[o],u="is-scrolled-at-start",m="is-scrolled-at-end",f=`${s}__arrows`;return{classProps:{root:g(s,i,{[a]:t,[m]:n,[u]:r}),viewport:l,content:c,overflowDecorators:g(p,d),arrows:f}}},Jd=e=>{const{ariaLabelArrows:t,direction:n,scrollStep:r,viewportRef:o,...s}=e,{classProps:i}=Zd({direction:n}),{styleProps:a,props:l}=en(s),c=Ot("button",{classProps:i.arrows,styleProps:a}),p=ee(n),{arrows:d}=Qd(p,t,r),{handleScroll:u}=Kd({viewportRef:o,direction:n});return gr.jsx("div",{...l,...c,children:d.map((({icon:e,label:t,step:n})=>gr.jsx(Qs,{"aria-label":t,onClick:()=>u(n),size:"small",isSymmetrical:!0,children:gr.jsx(Cr,{name:e})},e)))})};Jd.spiritComponent="ScrollViewArrows";const eu=({viewportReference:e,contentReference:n,direction:r})=>{const[o,s]=t.useState(!1),[i,a]=t.useState(!1),l=()=>{const t=ee(r),l=t?re.LEFT:re.TOP,c=t?re.RIGHT:re.BOTTOM,p=(()=>{if(!n.current||!e.current)return null;const t=n.current.getBoundingClientRect(),r=e.current.getBoundingClientRect();return{[re.BOTTOM]:t.bottom-r.bottom,[re.LEFT]:t.left-r.left,[re.RIGHT]:t.right-r.right,[re.TOP]:t.top-r.top}})();if(!p)return;const d=p[l]<=-1,u=p[c]>=1;d!==o&&s(d),u!==i&&a(u)},c=t.useCallback(Fe(l,50),[l]);return Hn({ref:e,onResize:c}),t.useEffect(l,[]),{isScrolledAtEnd:i,isScrolledAtStart:o,onScroll:Fe(l,50)}},tu=e=>{const{ariaLabelArrows:n,arrowsScrollStep:r=300,children:o,direction:s=Xd,hasArrows:i=!1,isScrollbarDisabled:a,overflowDecorators:l=Yd,...c}=e,p=t.useRef(null),d=t.useRef(null),{isScrolledAtEnd:u,isScrolledAtStart:m,onScroll:f}=eu({contentReference:p,direction:s,viewportReference:d}),{classProps:h}=Zd({direction:s,isScrollbarDisabled:a,isScrolledAtStart:m,isScrolledAtEnd:u,overflowDecorators:l}),{styleProps:y,props:b}=en(c);return gr.jsxs("div",{...b,...y,className:g(h.root,y.className),children:[gr.jsx("div",{className:h.viewport,onScroll:f,ref:d,tabIndex:0,children:gr.jsx("div",{className:h.content,ref:p,children:o})}),gr.jsx("div",{className:h.overflowDecorators,"aria-hidden":"true"}),i&&gr.jsx(Jd,{ariaLabelArrows:n,direction:s,scrollStep:r,viewportRef:d})]})};tu.spiritComponent="ScrollView";const nu={[W.XSMALL]:{paddingY:{mobile:"space-900",tablet:"space-1000"}},[W.SMALL]:{paddingY:{mobile:"space-1000",tablet:"space-1100"}},[W.MEDIUM]:{paddingY:{mobile:"space-1100",tablet:"space-1300"}},[W.LARGE]:{paddingY:{mobile:"space-1200",tablet:"space-1400"}},[W.XLARGE]:{paddingY:{mobile:"space-1400",tablet:"space-1600"}}},ru=(e={})=>{const{size:t}=e;return{modifiedProps:t?{...nu[t],...e}:e}},ou=e=>{const{backgroundColor:t}=e||{},n=pn(`bg-${t}`),r=t?n:"";return{classProps:g({[r]:t})}},su={elementType:"section",hasContainer:!0,size:void 0},iu=t.forwardRef(((e,t)=>{const n={...su,...e},{elementType:r=su.elementType,backgroundColor:o,children:s,containerProps:i,hasContainer:a,...l}=n,c=r,{classProps:p}=ou({backgroundColor:o}),{modifiedProps:d}=ru(l),{styleProps:u,props:m}=en(d,{paddingTop:ce.paddingTop,paddingBottom:ce.paddingBottom,paddingY:ce.paddingY,textAlignment:pe.textAlignment}),f=Ot(c,{classProps:p,styleProps:u});return gr.jsx(c,{...m,...f,ref:t,children:a?gr.jsx(qs,{...i,children:s}):s})}));iu.spiritComponent="Section",iu.displayName="Section";const au=t.createContext({isMultiselect:!1,name:"",selectedValue:[],setSelectedValue:()=>{},onSelectionChange:()=>{}}),lu=au.Provider,cu=e=>{const{isFluid:t,variant:n=Y.OUTLINE,...r}=e,o=pn("SegmentedControl"),s=`${o}--fluid`,i=`${o}Item`,a=`${i}__input`,l=`${i}__label`;return{classProps:{root:g(o,`${o}--${n}`,{[s]:t}),input:a,label:l},props:r}},pu={isFluid:!1,isMultiselect:!1,variant:Y.OUTLINE},du=e=>{const t={...pu,...e},{children:n,isMultiselect:r,label:o,name:s,onSelectionChange:i,selectedValue:a,setSelectedValue:l,...c}=t,{classProps:p,props:d}=cu(c),{styleProps:u,props:m}=en(d),f={isMultiselect:r,name:s,selectedValue:a,setSelectedValue:l,onSelectionChange:i};return gr.jsx(lu,{value:f,children:gr.jsxs("fieldset",{...m,...u,className:g(p.root,u.className),children:[gr.jsx(_s,{elementType:"legend",children:o}),n]})})};du.spiritComponent="SegmentedControl";const uu=t.forwardRef(((e,n)=>{const{isMultiselect:r,name:o,onSelectionChange:s,selectedValue:i,setSelectedValue:a}=t.useContext(au),{id:l,isDisabled:c,value:p,children:d,...u}=e,{classProps:m,props:f}=cu(u),{styleProps:h,props:y}=en(f),b=r?Array.isArray(i)&&i.includes(String(p)):i===String(p);return gr.jsxs(gr.Fragment,{children:[gr.jsx("input",{...y,...h,...c&&{disabled:!0},className:g(m.input,h.className),type:r?"checkbox":"radio",name:o,id:l,value:p,checked:b,onChange:()=>(e=>{if(c)return;let t;if(r){const n=Array.isArray(i)?i:[];t=n.includes(e)?n.filter((t=>t!==e)):[...n,e]}else t=e;a(t),s&&s(t)})(String(p))}),gr.jsx("label",{ref:n,htmlFor:l,...h,className:g(m.label,h.className),children:d})]})}));uu.spiritComponent="SegmentedControlItem",uu.displayName="SegmentedControlItem";const mu=({isDisabled:e,isFluid:t,isLabelHidden:n,isRequired:r,size:o,validationState:s})=>{const i=pn("Select"),a=`${i}--fluid`,l=`${i}--disabled`,c=`${i}--${o}`,p=`${i}--${s}`,d=`${i}__label`,u=`${d}--required`,m=`${d}--hidden`,f=`${i}__inputContainer`,h=`${i}__input`,y=`${i}__icon`,b=`${i}__validationText`,v=`${i}__helperText`;return{classProps:{root:g(i,{[l]:e,[a]:t,[c]:o,[p]:s}),label:g(d,{[u]:r,[m]:n}),container:f,input:h,icon:y,validationText:b,helperText:v}}},fu=t.forwardRef(((e,t)=>{const{"aria-describedby":n="",children:r,hasValidationIcon:o,helperText:s,id:i,isDisabled:a,isFluid:l,isLabelHidden:c,isRequired:p,label:d,size:u=V.MEDIUM,validationState:m,validationText:f,...h}=e,{classProps:y}=mu({isDisabled:a,isFluid:l,isLabelHidden:c,isRequired:p,size:u,validationState:m}),{styleProps:b,props:v}=en(h),[x,T]=rn(n),P=Fs({validationState:m,validationText:f});return gr.jsxs("div",{...b,className:g(y.root,b.className),children:[gr.jsx(Ls,{htmlFor:i,UNSAFE_className:y.label,children:d}),gr.jsxs("div",{className:y.container,children:[gr.jsx("select",{...v,...x,id:i,className:y.input,disabled:a,required:p,ref:t,children:r}),gr.jsx("div",{className:y.icon,children:gr.jsx(Cr,{name:"chevron-down",boxSize:u===V.SMALL?16:20})})]}),gr.jsx(js,{UNSAFE_className:y.helperText,id:`${i}__helperText`,registerAria:T,helperText:s}),m&&gr.jsx(Ms,{UNSAFE_className:y.validationText,...o&&{hasValidationStateIcon:m},id:`${i}__validationText`,validationText:f,registerAria:T,role:P})]})}));function hu(e){const{size:t,...n}=e||{},r=pn("Skeleton"),o=`${r}--${t}`,s=`${r}--text`,i=`${r}--heading`,a=`${r}__item`;return{classProps:{root:g(r,{[o]:t}),text:s,heading:i,item:a},props:n}}fu.spiritComponent="Select",fu.displayName="Select";const gu=()=>{const{classProps:e}=hu();return gr.jsx("div",{className:g(e.item),"aria-hidden":"true"})};gu.spiritComponent="SkeletonItem";const yu={size:W.MEDIUM,lines:1,elementType:"div"},bu=e=>{const t={...yu,...e},{elementType:n,lines:r,...o}=t,s=n,{classProps:i,props:a}=hu(o),{styleProps:l,props:c}=en(a),p=Ot(s,{classProps:i.root,classPropsText:i.text,styleProps:l,otherProps:c}),d=[...Array(r??1).keys()];return gr.jsx(s,{...c,...p,children:d.map((e=>gr.jsx(gu,{},`skeleton-item-${e.toString()}`)))})};bu.spiritComponent="SkeletonText",bu.displayName="SkeletonText";const vu={size:W.MEDIUM,lines:1,elementType:"div"},xu=e=>{const t={...vu,...e},{elementType:n,lines:r,...o}=t,s=n,{classProps:i,props:a}=hu(o),{styleProps:l,props:c}=en(a),p=Ot(s,{classProps:i.root,classPropsHeading:i.heading,styleProps:l,otherProps:c}),d=[...Array(r??1).keys()];return gr.jsx(s,{...c,...p,children:d.map((e=>gr.jsx(gu,{},`skeleton-item-${e.toString()}`)))})};xu.spiritComponent="SkeletonHeading",xu.displayName="SkeletonHeading";const Tu=(e,t)=>{if(!t)return{};const n=`--${e}`;return{[n]:`${t?.toString()}px`}},Pu=(e,t)=>{const n={},r=`--${P}radius-`;return"object"==typeof t&&null!==t?Object.keys(t).forEach((o=>{const s="mobile"===o?"":`-${o}`,i=t[o];n[`--${e}${s}`]=`var(${r}${i})`})):t&&(n[`--${e}`]=`var(${r}${t})`),n},Su={borderRadius:j[400],elementType:"div"},Eu=e=>{const t={...Su,...e},{elementType:n,...r}=t,o=n,{classProps:s,skeletonShapeStyleProps:i,props:a}=(e=>{const{height:t,width:n,borderRadius:r,...o}=e,s=pn("Skeleton"),i=g(s,`${s}--shape`),a=`${P}skeleton-shape`;return{classProps:i,skeletonShapeStyleProps:{...Tu(`${a}-width`,n),...Tu(`${a}-height`,t),...r?Pu(`${a}-radius`,r):{}},props:o}})(r),{styleProps:l,props:c}=en(a),p=Ot(o,{classProps:s,styleProps:l,skeletonShapeStyleProps:i,otherProps:c});return gr.jsx(o,{...c,...p})};function Cu(e){const{...t}=e;return{classProps:pn("SkipLink"),props:t}}Eu.spiritComponent="SkeletonShape",Eu.displayName="SkeletonShape";const Nu={elementType:"a"},wu=t.forwardRef(((e,t)=>{const n={...Nu,...e},{elementType:r=Nu.elementType,children:o,...s}=n,{classProps:i,props:a}=Cu(s),{styleProps:l,props:c}=en(a),p=Ot("a",{classProps:i,styleProps:l,otherProps:c});return gr.jsx(r,{...c,...p,href:s.href,ref:t,children:o})}));wu.spiritComponent="SkipLink",wu.displayName="SkipLink";function Au(e){const{isDisabled:t,isFluid:n,isLabelHidden:r,validationState:o,...s}=e,i=pn("Slider"),a=`${i}--disabled`,l=`${i}--fluid`,c=`${i}--${o}`,p=`${i}__label`,d=`${i}__label--hidden`,u=`${i}__input`,m=`${i}__helperText`,f=`${i}__validationText`;return{classProps:{root:g(i,{[a]:t,[l]:n,[c]:o}),label:g(p,{[d]:r}),input:u,helperText:m,validationText:f},props:s}}const _u={max:100,min:0,step:1},Ru=t.forwardRef(((e,t)=>{const n={..._u,...e},{"aria-describedby":r,hasValidationIcon:o,helperText:s,id:i,isDisabled:a,label:l,max:c,min:p,step:d,validationState:u,validationText:m,value:f,...h}=n,{classProps:y,props:b}=Au({...h,isDisabled:a,validationState:u}),{styleProps:v,props:x}=en(b),[T,P]=rn(r),S=Fs({validationState:u,validationText:m}),E="--slider-position",C=e=>`${Math.round(100*(e-p)/(c-p))}%`;return gr.jsxs("div",{...v,...x,className:g(y.root,v.className),children:[gr.jsx(Ls,{htmlFor:i,UNSAFE_className:y.label,children:l}),gr.jsx("input",{...T,className:y.input,id:i,onInput:e=>{const{target:t}=e,{value:n}=t;t.style.setProperty(E,C(Number(n)))},style:{[E]:`${C(f)}`},type:"range",min:p,max:c,step:d,value:f,disabled:a,ref:t}),gr.jsx(js,{UNSAFE_className:y.helperText,helperText:s,id:`${i}__helperText`,registerAria:P}),u&&gr.jsx(Ms,{UNSAFE_className:y.validationText,...o&&{hasValidationStateIcon:u},id:`${i}__validationText`,registerAria:P,validationText:m,role:S})]})}));function ku(){return{classProps:pn("SplitButton")}}Ru.spiritComponent="Slider",Ru.displayName="Slider";const Ou={color:M.PRIMARY,size:V.MEDIUM},$u=e=>{const t={...Ou,...e},{children:n,color:r,size:o,isDisabled:s,...i}=t,{classProps:a}=ku(),{styleProps:l,props:c}=en(i);return gr.jsx(es,{value:{color:r,size:o,isDisabled:s},children:gr.jsx("div",{...l,...c,className:g(a,l.className),children:n})})},ju={dropdownPlacement:"bottom-end",dropdownTriggerIconName:"chevron-down"},Du=({children:e,...t})=>{const{styleProps:n,props:r}=en(t);return gr.jsx("div",{...r,...n,children:e})};Du.spiritComponent="TabContent";const Lu=t.createContext({selectedId:"",selectTab:e=>{},onSelectionChange:(e,t)=>{}}),Iu=Lu.Provider,Mu=Lu.Consumer,Fu=()=>t.useContext(Lu);function Bu(e={selectedId:"",forTabPane:"",id:""}){const{spacing:t}=Fu(),{selectedId:n,forTabPane:r,id:o,...s}=e,i=pn("Tabs"),a=`${i}__item`,l=`${i}__link`,c=`${i}Pane`,p="is-selected",d=Qn(t,"tabs");return{classProps:{item:a,link:g(l,{[p]:!!r&&!!n&&n===r}),pane:g(c,{[p]:!!o&&!!n&&n===o}),root:i},props:s,styleProps:d}}const Uu=({children:e,forTabPane:t,onClick:n,...r})=>{const{selectTab:o,selectedId:s,onSelectionChange:i}=Fu(),{classProps:a}=Bu({forTabPane:t,selectedId:s}),{styleProps:l,props:c}=en(r);return gr.jsx("li",{className:a.item,role:"presentation",children:gr.jsx("button",{...c,...l,type:"button",className:g(a.link,l.className),role:"tab","aria-selected":s===t,id:`${t}-tab`,"aria-controls":t.toString(),onClick:e=>{o(t),n&&n(e),i&&i(s,t)},children:e})})};Uu.spiritComponent="TabItem";const Hu={itemProps:{}},zu=t.forwardRef(((e,t)=>{const n={...Hu,...e},{elementType:r="a",children:o,itemProps:s={},routerOptions:i,...a}=n,{href:l}=a,c=r,{classProps:p}=Bu(),{styleProps:d,props:u}=en(s),m=Ot(c,{classProps:p.link}),f=Fn({...a,routerOptions:i});return gr.jsx("li",{...d,...u,className:g(p.item,d.className),role:"presentation",children:gr.jsx(c,{...a,...m,href:l,onClick:f,ref:t,children:o})})}));zu.spiritComponent="TabLink",zu.displayName="TabLink";const Vu=({children:e,...t})=>{const{classProps:n,styleProps:r}=Bu(),{styleProps:o,props:s}=en(t),i={style:{...o.style,...r}};return gr.jsx("ul",{...s,...o,...i,className:g(n.root,o.className),role:"tablist",children:e})};Vu.spiritComponent="TabList";const Wu=({children:e,id:t,...n})=>{const{selectedId:r}=Fu(),{classProps:o}=Bu({id:t,selectedId:r}),{styleProps:s,props:i}=en(n);return r===t?gr.jsx("div",{...i,...s,id:t.toString(),className:g(o.pane,s.className),role:"tabpanel","aria-labelledby":`${t}-tab`,children:e}):null};Wu.spiritComponent="TabPane";const Gu=({children:e,selectedTab:t,toggle:n,onSelectionChange:r,spacing:o})=>gr.jsx(Iu,{value:{selectedId:t,selectTab:n,onSelectionChange:r,spacing:o},children:e});Gu.spiritComponent="Tabs";const qu=e=>{const[n,r]=t.useState(e);return{selectedId:n,selectTab:t.useCallback((e=>{r(e)}),[])}},Xu=({children:e,defaultSelectedTab:t,onSelectionChange:n,spacing:r})=>{const{selectedId:o,selectTab:s}=qu(t);return gr.jsx(Iu,{value:{selectedId:o,selectTab:s,onSelectionChange:n,spacing:r},children:e})};Xu.spiritComponent="UncontrolledTabs";const Yu={NEUTRAL:"neutral",SELECTED:"selected"},Ku=(e,t)=>{if(!e)return{};const n=Object.keys(N).includes(e)?`${x.EMOTION}-`:"",r=t?U.SUBTLE:U.BASIC,o=t?U.SUBTLE:U.BASIC,s=t?U.BASIC:U.SUBTLE;return{[`border-${n}${e}-${r}`]:!0,[`bg-${n}${e}-${o}`]:!0,[`text-${n}${e}-${s}`]:!0}};function Qu(e){const{color:t,isDisabled:n,isSubtle:r,size:o,...s}=e,i=pn("Tag"),a=`${i}--${t}`,l=`${i}--disabled`,c=`${i}--${o}`,p=`${i}--subtle`;return{classProps:g(i,{[a]:t,[l]:n,[c]:o,[p]:r,...!n&&Ku(t,r)}),props:s}}const Zu={color:Yu.NEUTRAL,elementType:"span",isSubtle:!1,size:W.MEDIUM},Ju=t.forwardRef(((e,t)=>{const n={...Zu,...e},{elementType:r=Zu.elementType,children:o,...s}=n,i=r,{classProps:a,props:l}=Qu(s),{styleProps:c,props:p}=en(l),d=Ot(i,{classProps:a,styleProps:c,otherProps:p});return gr.jsx(i,{...p,...d,ref:t,children:o})}));function em(e){const{emphasis:t,size:n,textColor:r,...o}=e,s=pn("typography-body"),i=pn(r?`text-${r}`:"");return{classProps:g(`${s}-${n}-${t}`,{[i]:!!r}),props:o}}Ju.spiritComponent="Tag",Ju.displayName="Tag";const tm={elementType:"p",emphasis:H.REGULAR,size:W.MEDIUM},nm=e=>{const t={...tm,...e},{elementType:n,children:r,...o}=t,s=n,{classProps:i,props:a}=em(o),{styleProps:l,props:c}=en(a,{isTextBalanced:pe.isTextBalanced,textAlignment:pe.textAlignment,textHyphens:pe.textHyphens,textWordBreak:pe.textWordBreak}),p=Ot(s,{classProps:i,styleProps:l,otherProps:c});return gr.jsx(s,{...c,...p,children:r})};nm.spiritComponent="Text",nm.displayName="Text";const rm=t.forwardRef(((e,t)=>{const{classProps:n,props:r}=function(e){const{isMultiline:t,id:n,...r}=e;return{classProps:{input:`${pn(t?"TextArea":"TextField")}__input`},props:{...r,isMultiline:t,id:n}}}(e),{id:o,isDisabled:s,isMultiline:i,isRequired:a,inputWidth:l,type:c,...p}=r,{props:d}=en(p),u=i?"textarea":"input",m=i?void 0:c;return gr.jsx(u,{...d,className:n.input,disabled:s,id:o,required:a,size:l,type:m,ref:t})}));rm.spiritComponent="TextFieldBaseInput",rm.displayName="TextFieldBaseInput";const om=e=>{const{t:t}=An(),{children:n,isPasswordShown:r,onToggleClick:o,isDisabled:s,size:i}=e,{classProps:a}=function(){const e=pn("TextField");return{classProps:{passwordToggle:`${e}__passwordToggle`,passwordToggleButton:`${e}__passwordToggle__button`,passwordToggleIcon:`${e}__passwordToggle__icon`}}}(),l=t(r?"textField.password.hide":"textField.password.show");return gr.jsxs("div",{className:a.passwordToggle,children:[n,gr.jsx("button",{className:a.passwordToggleButton,type:"button",role:"switch","aria-checked":!!r,"aria-label":l,onClick:()=>o(),disabled:s,children:gr.jsx("span",{className:a.passwordToggleIcon,children:gr.jsx(Cr,{name:"visibility-"+(r?"off":"on"),boxSize:i===V.SMALL?16:20})})})]})};om.spiritComponent="TextFieldBasePasswordToggle";function sm(e){const n=e.displayName||e.name||"Component",r=(n,r)=>{const{isPasswordShown:o,passwordToggle:s}=(()=>{const[e,n]=t.useState(!1);return{isPasswordShown:e,passwordToggle:()=>n(!e)}})(),{hasPasswordToggle:i,isDisabled:a,size:l,...c}=n;return i?gr.jsx(om,{isDisabled:a,isPasswordShown:o,onToggleClick:s,size:l,children:gr.jsx(e,{...c,type:o?"text":"password",isDisabled:a,ref:r})}):gr.jsx(e,{...c,isDisabled:a,ref:r})};return r.displayName=`withPasswordToggle(${n})`,r}sm.spiritComponent="withPasswordToggle";const im=t.forwardRef(sm(rm)),am=t.forwardRef(((e,t)=>{const{"aria-describedby":n="",counterProps:r,hasValidationIcon:o,helperText:s,id:i,label:a,size:l=V.MEDIUM,validationState:c,validationText:p,...d}=e,{classProps:u,props:m}=function(e){const{isFluid:t,isMultiline:n,isLabelHidden:r,size:o,validationState:s,...i}=e,{isDisabled:a,isRequired:l}=i,c=pn(n?"TextArea":"TextField"),p=`${c}--disabled`,d=`${c}--fluid`,u=`${c}--${o}`,m=`${c}--${s}`,f=`${c}__input`,h=`${c}__label`,y=`${c}__label--required`,b=`${c}__label--hidden`,v=`${c}__validationText`,x=`${c}__passwordToggle`,T=`${c}__passwordToggle__button`,P=`${c}__passwordToggle__icon`,S=`${c}__helperText`,E=`${c}__counter`;return{classProps:{root:g(c,{[p]:a,[d]:t,[m]:s,[u]:o}),label:g(h,{[y]:l,[b]:r}),input:f,helperText:S,validationText:v,passwordToggle:x,passwordToggleButton:T,passwordToggleIcon:P,counter:E},props:{...i,isMultiline:n}}}({id:i,size:l,validationState:c,...d}),{styleProps:f,props:h}=en(m),[y,b]=rn(n),v=Fs({validationState:c,validationText:p}),x=s||c&&p,T=gr.jsx(js,{UNSAFE_className:u.helperText,id:`${i}__helper-text`,registerAria:b,helperText:s}),P=c?gr.jsx(Ms,{UNSAFE_className:u.validationText,elementType:"span",...o&&{hasValidationStateIcon:c},id:`${i}__validation-text`,validationText:p,registerAria:b,role:v}):null,S=r?gr.jsx(Os,{...r,id:i,registerAria:b,UNSAFE_className:u.counter}):null;return gr.jsxs("div",{...f,className:g(u.root,f.className),children:[gr.jsx(Ls,{htmlFor:i,UNSAFE_className:u.label,children:a}),gr.jsx(im,{...h,...y,id:i,ref:t,size:l}),r?gr.jsxs(ko,{direction:"horizontal",isWrapping:!1,alignmentX:"space-between",alignmentY:"top",children:[x?gr.jsxs("div",{children:[P,T]}):null,S]}):gr.jsxs(gr.Fragment,{children:[T,P]})]})}));am.spiritComponent="TextFieldBase",am.displayName="TextFieldBase";const lm=t.forwardRef(((e,n)=>{const{onInput:r,isAutoResizing:o,autoResizingMaxHeight:s=400,counterThreshold:i,hasCounter:a,onChange:l,value:c,defaultValue:p,helperText:d,isDisabled:u,id:m,...f}=e,h=t.useRef(n),{adjustHeightOnAutoresize:g,onInput:y}=(({elementReference:e,maxHeight:n,onInput:r,isAutoResizing:o})=>{const s=e=>{const t=(parseFloat(getComputedStyle(e).getPropertyValue("border-top-width"))||0)+(parseFloat(getComputedStyle(e).getPropertyValue("border-bottom-width"))||0);e.style.height="auto",e.style.overflow="auto";const r=e.scrollHeight+t;e.style.height=`${r<n?r:n}px`,e.style.overflow=r<n?"hidden":"auto"},i=()=>{if(o){const t=e?.current;t&&s(t)}};return t.useEffect((()=>{i()}),[]),{adjustHeight:s,adjustHeightOnAutoresize:i,onInput:e=>{i(),r&&r(e)}}})({elementReference:h,onInput:r,isAutoResizing:o,maxHeight:s}),v=zt(c),x=zt(p),{counterProps:T,handleChange:P}=Rs({value:v,defaultValue:x,counterThreshold:i,hasCounter:a,onChange:l}),S=((e,t)=>!0===e||void 0!==t)(a,i),E=S?void 0===(C=f.maxLength)?1e4:C:void 0;var C;const N=S?P:l,w=t.useRef(!1);return t.useEffect((()=>{void 0!==i&&void 0!==f.maxLength&&f.maxLength<i&&!w.current&&(w.current=!0,b(0,"TextArea: `maxLength` should be greater than or equal to `counterThreshold` to keep visible counter and hard input limit aligned."))}),[i,f.maxLength]),gr.jsx(am,{id:m,isMultiline:!0,ref:h,onInput:y,onFocus:g,onChange:N,value:c,defaultValue:p,helperText:d,isDisabled:u,counterProps:T,...f,...void 0!==E&&{maxLength:E}})}));lm.spiritComponent="TextArea",lm.displayName="TextArea";const cm=t.forwardRef(((e,t)=>gr.jsx(am,{type:"text",...e,ref:t})));cm.spiritComponent="TextField",cm.displayName="TextField";const pm="dot",dm="number",um=V.SMALL;function mm(e){const{markerBackgroundColor:t,markerBorderColor:n,markerTextColor:r,markerVariant:o,markerSize:s=um,...i}=e||{},a=pn("Timeline"),l=`${a}Content`,c=`${a}Heading`,p=`${a}Marker`,d=`${a}Step`,u=o===pm||o===dm,m=pn(`bg-${t}`),f=pn(`border-${n}`),h=pn(`text-${r}`),y=t?m:"",b=n?f:"",v=r?h:"";return{classProps:{content:l,heading:c,marker:g(p,{[`${p}--${o}`]:!!o,[y]:u,[b]:u,[v]:!!r}),root:g(a,Mt(a,s)),step:d},props:i}}const fm={elementType:"ol",size:um},hm=e=>{const t={...fm,...e},{elementType:n,children:r,size:o,...s}=t,i=n,{classProps:a}=mm({markerSize:o}),{styleProps:l,props:c}=en(s),p=Ot(i,{classProps:a.root,styleProps:l,otherProps:c});return gr.jsx(i,{...c,...p,children:r})};hm.spiritComponent="Timeline",hm.displayName="Timeline";const gm=e=>{const{children:t,...n}=e,{classProps:r}=mm(),{styleProps:o,props:s}=en(n);return gr.jsx("div",{...s,className:g(r.content,o.className),style:o.style,children:t})};gm.spiritComponent="TimelineContent";const ym=e=>{const{children:t,...n}=e,{classProps:r}=mm(),{styleProps:o,props:s}=en(n);return gr.jsx("div",{...s,className:g(r.heading,o.className),style:o.style,children:t})};ym.spiritComponent="TimelineHeading";const bm={variant:"number"},vm=e=>{const t={...bm,...e},{backgroundColor:n,borderColor:r,children:o,textColor:s,variant:i,...a}=t,{classProps:l}=mm({markerBackgroundColor:n,markerBorderColor:r,markerTextColor:s,markerVariant:i}),{styleProps:c,props:p}=en(a);return gr.jsx("div",{...p,className:g(l.marker,c.className),style:c.style,"aria-hidden":"true",children:i!==pm&&o})};vm.spiritComponent="TimelineMarker";const xm={elementType:"li"},Tm=e=>{const t={...xm,...e},{elementType:n,children:r,...o}=t,s=n,{classProps:i}=mm(),{styleProps:a,props:l}=en(o),c=Ot(s,{classProps:i.step,styleProps:a,otherProps:l});return gr.jsx(s,{...l,...c,children:r})};Tm.spiritComponent="TimelineStep",Tm.displayName="TimelineStep";const Pm={alignmentX:_.CENTER,alignmentY:k.BOTTOM,isCollapsible:!0},Sm=e=>{const t={...Pm,...e},{children:n,alignmentX:r,alignmentY:o,...s}=t,{classProps:i,props:a}=function(e){const{alignmentX:t,alignmentY:n,isCollapsible:r,...o}=e,s=pn("Toast"),i=[...(a=[t,n],a.map((e=>"object"==typeof e&&null!==e?Object.keys(e).reduce(((t,n)=>[...t,`${s}${"mobile"===n?"":`--${n}`}--${e[n]}`]),[]):[`${s}--${e}`])))];var a;const l=`${s}__queue`;return{classProps:{root:g(s,r&&`${s}--collapsible`,...i),queue:l},props:o}}({...s,alignmentX:r,alignmentY:o}),{styleProps:l,props:c}=en(a);return gr.jsx("div",{...c,...l,className:g(i.root,l.className),role:"log",children:gr.jsx("div",{className:i.queue,children:n})})};Sm.spiritComponent="Toast";const Em={entering:"is-open is-transitioning",entered:"is-open",exiting:"is-hidden is-transitioning",exited:"is-hidden"},Cm="neutral",Nm=3e3,wm={NEUTRAL:"neutral"},Am=e=>{const{color:t,isDismissible:n,...r}=e,o=pn("ToastBar"),s=`${o}__box`,i=`${o}__close`,a=`${o}__container`,l=`${o}__content`,c=`${o}__link`,p=pn("link-underlined");return{classProps:{root:g(o,`${o}--${t||wm.NEUTRAL}`,n&&`${o}--dismissible`),box:s,close:i,container:a,content:l,link:g(c,p)},props:r}},_m=e=>{const{onClose:t,isOpen:n,id:r,closeLabel:o,isDismissible:s,...i}=e,{classProps:a,props:l}=Am({...i}),{styleProps:c,props:p}=en(l);return s&&t?gr.jsxs("button",{...p,...c,type:"button",className:g(a.close,c.className),onClick:t,"aria-expanded":n,"aria-controls":r,children:[gr.jsx(Cr,{name:"close"}),gr.jsx(_s,{children:o})]}):null};_m.spiritComponent="ToastCloseButton";const Rm=e=>{const{t:n}=An(),{id:r,children:o,closeLabel:s,color:i=Cm,hasIcon:a,iconName:l,isDismissible:c,isOpen:p=!0,onClose:d=()=>{},...u}=e,m=s??n("common.close"),f=t.useRef(null),h=function({color:e,iconName:t}){const n=$n(e,{danger:"danger",informative:"info",neutral:"info",success:"check-plain",warning:"warning"},Cm);return t||n}({color:i,iconName:l}),{classProps:y,props:b}=Am({...u,color:i,isDismissible:c}),{styleProps:v,props:x}=en(b);return gr.jsx(mo,{in:p,nodeRef:f,timeout:250,unmountOnExit:!0,children:e=>gr.jsx("div",{...v,...x,id:r,className:g(y.root,Em[e],v.className),ref:f,children:gr.jsxs("div",{className:y.box,children:[gr.jsxs("div",{className:y.container,children:[(a||l)&&gr.jsx(Cr,{name:h,boxSize:20}),gr.jsx("div",{className:y.content,children:o})]}),gr.jsx(_m,{id:r,isOpen:p,closeLabel:m,onClose:d,isDismissible:c})]})})})};Rm.spiritComponent="ToastBar";const km=e=>{const{children:t,...n}=e,{styleProps:r,props:o}=en(n);return gr.jsx("div",{...r,...o,className:g(pn("text-truncate-multiline"),r.className),children:t})};km.spiritComponent="ToastBarMessage";const Om={elementType:"a"},$m=t.forwardRef(((e,t)=>{const n={...Om,...e},{elementType:r=Om.elementType,children:o,...s}=n,i=r,{classProps:a,props:l}=Am({...s}),{styleProps:c,props:p}=en(l),d=Ot(i,{classProps:a.link,styleProps:c,otherProps:p});return gr.jsx(i,{...p,...d,ref:t,children:o})}));$m.spiritComponent="ToastBarLink",$m.displayName="ToastBarLink";const jm=t.createContext({clear:()=>{},hide:()=>{},queue:[],setQueue:()=>{},show:()=>{}}),Dm=(e,t)=>{const{type:n,payload:r}=t,{queue:o}=e;switch(n){case"show":return{queue:[...o,{autoCloseInterval:r.options?.autoCloseInterval||Nm,color:r.options?.color||void 0,enableAutoClose:r.options?.enableAutoClose||!0,hasIcon:r.options?.hasIcon||!1,iconName:r.options?.iconName,id:r.toastId,isDismissible:r.options?.isDismissible||!1,linkProps:r.options?.linkProps||{},isOpen:!0,content:{message:r.content.message,link:r.content.link||void 0}}]};case"hide":return{queue:o.filter((e=>e.id!==r.id))};case"clear":return{queue:[]};default:throw new Error}},Lm={queue:[]},Im=()=>{const e=t.useContext(jm);if(!e)throw new Error("useToast has to be used within <ToastProvider>");return e},Mm=e=>{const{t:n}=An(),{alignmentX:r,alignmentY:o,isCollapsible:s,closeLabel:i,...a}=e,l=i??n("common.close"),{hide:c,queue:p}=Im();return gr.jsx(Sm,{alignmentX:r,alignmentY:o,isCollapsible:s,children:p.map((e=>{const{color:n,iconName:r,id:o,isOpen:s,content:i,hasIcon:p,isDismissible:d,linkProps:u}=e;return t.createElement(Rm,{...a,key:o,id:o,closeLabel:l,color:n,hasIcon:p,iconName:r,isDismissible:d,onClose:()=>c(o),isOpen:s&&!!i},gr.jsx(km,{children:i.message}),i.link&&gr.jsx($m,{...u,children:i.link}))}))})};function Fm(e){const{hasIndicators:t=!1,inputPosition:n=te.END,isDisabled:r=!1,isFluid:o=!1,isLabelHidden:s=!1,isRequired:i=!1,validationState:a,...l}=e,c=pn("Toggle"),p=`${c}--fluid`,d=`${c}--disabled`,u=`${c}__text`,m=`${c}__label`,f=`${m}--hidden`,h=`${c}--${a}`,y=`${m}--required`,b=`${c}__input`,v=`${b}--indicators`,x=jn(c,n),T=`${c}__helperText`,P=`${c}__validationText`;return{classProps:{root:g(c,{[x]:x,[p]:o,[d]:r,[h]:a}),label:g(m,{[y]:i,[f]:s}),text:u,helperText:T,input:g(b,{[v]:t}),validationText:P},props:{...l,validationState:a,isDisabled:r,isRequired:i}}}Mm.spiritComponent="UncontrolledToast";const Bm=t.forwardRef(((e,n)=>{const{classProps:r,props:o}=Fm(e),{"aria-describedby":s="","aria-details":i,details:a,hasValidationIcon:l,id:c,isDisabled:p,isChecked:d=!1,isRequired:u,label:m,helperText:f,onChange:h=()=>{},validationState:y,validationText:b,...v}=o,{styleProps:x,props:T}=en(v),[P,S]=rn(s),[E,C]=on(i),[N,w]=t.useState(d),A=Fs({validationState:y,validationText:b});return gr.jsxs("div",{style:x.style,className:g(r.root,x.className),children:[gr.jsxs("div",{className:r.text,children:[gr.jsx(Ls,{UNSAFE_className:r.label,htmlFor:c,children:m}),a&&gr.jsx(Hs,{id:`${c}-details`,registerAriaDetails:C,children:a}),gr.jsx(js,{UNSAFE_className:r.helperText,id:`${c}__helperText`,registerAria:S,helperText:f}),y&&gr.jsx(Ms,{UNSAFE_className:r.validationText,...l&&{hasValidationStateIcon:y},id:`${c}__validationText`,validationText:b,registerAria:S,role:A})]}),gr.jsx("input",{...T,...P,...E,type:"checkbox",id:c,className:r.input,disabled:p,checked:N,required:u,onChange:e=>{w(e.target.checked),h(e)},ref:n})]})}));Bm.spiritComponent="Toggle",Bm.displayName="Toggle";const Um=(e,t)=>{const n=e.trim().split(/\s+/);return n.length<=t?e:`${n.slice(0,t).join(" ")}…`},Hm=(e,t)=>e.length<=t?e:`${e.slice(0,t)}…`,zm=e=>e,Vm=(e,n,r)=>t.useMemo((()=>{if("string"!=typeof e)return e;if(!r||r<=0)return e;switch(n){case we.WORDS:return Um(e,r);case we.CHARACTERS:return Hm(e,r);case we.LINES:default:return e}}),[e,n,r]),Wm=e=>{const{limit:t,mode:n=we.LINES,...r}=e,o=pn(n===we.LINES?"text-truncate-multiline":""),s={};return n===we.LINES&&void 0!==t&&(s["--text-truncate-lines"]=t),{classProps:o,props:r,styleProps:s,effectiveMode:n,effectiveLimit:t}},Gm={elementType:"span"},qm=e=>{const t={...Gm,...e},{children:n,elementType:r,...o}=t,s=r,{classProps:i,props:a,styleProps:l,effectiveMode:c,effectiveLimit:p}=Wm(o),d=Vm(n,c,c!==we.LINES?p:void 0),{styleProps:u,props:m}=en(a),f=Ot(s,{classProps:i,styleProps:u,truncateStyleProps:{style:{...u.style,...l}}});return gr.jsx(s,{...m,...f,children:d})};qm.spiritComponent="Truncate",qm.displayName="Truncate";const Xm="file",Ym="edit",Km={TOP:"--spirit-file-image-top",LEFT:"--spirit-file-image-left",WIDTH:"--spirit-file-image-width",HEIGHT:"--spirit-file-image-height"},Qm=["x","y","cropWidth","cropHeight","originalWidth","originalHeight"];function Zm(e,t){const n=(e=>null!=e&&Qm.every((t=>null!=e[t])))(e),r=n?(e=>{const{x:t,y:n,cropWidth:r,cropHeight:o,originalWidth:s,originalHeight:i}=e;let a;a=o>r?48/r:48/o;const l=Math.round(t*a),c=Math.round(n*a),p=Math.round(s*a),d=Math.round(i*a);return{[Km.TOP]:`-${c}px`,[Km.LEFT]:`-${l}px`,[Km.WIDTH]:`${p}px`,[Km.HEIGHT]:`${d}px`}})(e):void 0;return{hasCoordsInMeta:n,imageCropStyles:r,imageObjectFitStyles:t?{"--spirit-file-image-object-fit":t}:void 0}}const Jm=e=>{const t=pn("UNSTABLE_File"),{imageCropStyles:n,imageObjectFitStyles:r,hasCoordsInMeta:o}=Zm(e?.meta,e?.imageObjectFit);return{classProps:{root:g(t,{[`${t}--disabled`]:e?.isDisabled,[`has-${e?.validationState}`]:e?.validationState}),preview:`${t}__preview`,content:`${t}__content`,text:`${t}__text`,name:`${t}__name`,helperText:`${t}__helperText`,validationText:`${t}__validationText`,...o&&{imageCropStyles:n},...r&&{imageObjectFitStyles:r}}}},ef={elementType:"li",iconName:Xm},tf=e=>{const t={...ef,...e},{t:n}=An(),{editText:r,elementType:o,hasValidationIcon:s,helperText:i,iconName:a,id:l,isDisabled:c,label:p,onDismiss:d,onChange:u,previewSlot:m,removeText:f,validationState:h,validationText:y,...b}=t,v=r??n("attachment.edit"),x=f??n("attachment.remove"),{classProps:T}=Jm({isDisabled:c,validationState:h}),{styleProps:P,props:S}=en(b),E=Fs({validationState:h,validationText:y}),C={size:"large",isSymmetrical:!0,isDisabled:c},N={UNSAFE_className:"color-scheme-on-disabled"},w=u?gr.jsxs(Qs,{...C,onClick:u,...c&&N,children:[gr.jsx(_s,{children:v}),gr.jsx(Cr,{name:Ym,boxSize:16,"aria-hidden":"true"})]}):null,A=d?gr.jsxs(Qs,{...C,onClick:d,...c&&N,children:[gr.jsx(_s,{children:x}),gr.jsx(Cr,{name:"close",boxSize:16,"aria-hidden":"true"})]}):null,_=o;return gr.jsxs(_,{...S,...P,...null!=l&&""!==l?{id:l}:{},className:g(T.root,P.className),children:[m??gr.jsx("div",{className:T.preview,children:gr.jsx(Cr,{name:a,boxSize:20,"aria-hidden":"true"})}),gr.jsx("div",{className:T.content,children:gr.jsxs("div",{className:T.text,children:[gr.jsx("span",{className:T.name,children:gr.jsx("span",{className:pn("text-truncate"),children:p})}),i&&gr.jsx("div",{className:T.helperText,children:i}),h&&gr.jsx(Ms,{UNSAFE_className:T.validationText,elementType:"div",...s&&{hasValidationStateIcon:h},role:E,validationText:y})]})}),w&&A?gr.jsxs(ko,{alignmentX:{mobile:"stretch",tablet:"left"},alignmentY:"stretch",spacingX:"space-500",children:[w,A]}):gr.jsxs(gr.Fragment,{children:[w,A]})]})};tf.spiritComponent="UNSTABLE_File",tf.displayName="UNSTABLE_File";const nf={meta:void 0,imageObjectFit:ne.COVER},rf=e=>{const t={...nf,...e},{label:n,imagePreview:r,meta:o,imageObjectFit:s,...i}=t,{classProps:a}=Jm({meta:o,imageObjectFit:s}),l=a.imageCropStyles??{},c=a.imageObjectFitStyles??{},{styleProps:p,props:d}=en(i);return gr.jsx("span",{...d,...p,className:g(a.preview,p.className),children:gr.jsx("img",{src:r,width:48,height:48,alt:n,style:{...l,...c}})})};rf.spiritComponent="UNSTABLE_FileImagePreview",rf.displayName="UNSTABLE_FileImagePreview";const of=e=>{const{onFilesSelected:t}=e;return{onChange:e=>{if(!t)return;const{files:n}=e.target,r=n?Array.prototype.slice.call(n):[];r.length&&t(r),e.target.blur(),e.target.value=""},...yn({onDrop:e=>{if(!t)return;const n=Array.from(e.dataTransfer.items),r=Array.from(e.dataTransfer.files),o=[];e.dataTransfer.items?.length?n.forEach((e=>{if("file"===e.kind){const t=e.getAsFile();t&&o.push(t)}})):r.forEach((e=>o.push(e))),o.length&&t(o)}})}},sf=e=>{const t=pn("UNSTABLE_FileUpload"),n="has-drag-and-drop",r=`${t}Input`,o=`${r}--disabled`,s=`${r}__dropZone--disabled`,i=`${r}__dropZone--compact`,a=`${r}--${e?.validationState}`,l="is-dragging",c=`${r}__dragAndDropLabel`,p=`${r}__dropZone`,d=`${r}__dropZoneContent`,u=`${r}__dropZoneLabel`,m=`${r}__helperText`,f=`${r}__input`,h=`${r}__label`,y=`${r}__label--hidden`,b=`${r}__label--required`,v=`${r}__validationText`;return{classProps:{root:t,input:{root:g(r,{[n]:e?.isDragAndDropSupported,[o]:e?.isDisabled,[l]:e?.isDragging,[a]:e?.validationState}),label:g(h,{[b]:e?.isRequired,[y]:e?.isLabelHidden}),input:f,dropLabel:c,helper:m,validationText:v,dropZone:{root:g(p,{[s]:e?.isDisabled,[i]:e?.isCompact}),content:d,label:u}}}}},af=e=>{const[n,r]=t.useState(!1),{"aria-describedby":o="",accept:s,buttonText:i="Browse",children:a,dropZoneRef:l,hasValidationIcon:c,helperText:p,iconName:d="upload",id:u,inputRef:m,isCompact:f,isDisabled:h,isDragAndDropSupported:y,isLabelHidden:b,isMultiple:v,isRequired:x,label:T,labelText:P,linkText:S,name:E,onFilesSelected:C,rootId:N,validationState:w,validationText:A,..._}=e,R=void 0!==E,k=y??n,{isDragging:O,onChange:$,onDragEnter:j,onDragLeave:D,onDragOver:L,onDrop:I}=of({onFilesSelected:R?C:void 0}),{classProps:M}=sf({isCompact:f,isDisabled:h,isDragAndDropSupported:k,isDragging:O,isLabelHidden:b,isRequired:x,validationState:w}),{styleProps:F,props:B}=en(_),[U,H]=rn(o),z=Fs({validationState:w,validationText:A}),V=u;return t.useEffect((()=>{void 0===y&&r("draggable"in document.createElement("span"))}),[y]),gr.jsxs("div",{...B,...F,...null!=N&&""!==N?{id:N}:{},className:g(M.root,F.className),children:[R&&gr.jsxs("div",{onDragOver:!h&&k?L:void 0,onDragEnter:!h&&k?j:void 0,onDragLeave:!h&&k?D:void 0,onDrop:!h&&k?I:void 0,className:M.input.root,children:[gr.jsx(Ls,{htmlFor:V,UNSAFE_className:M.input.label,children:T}),gr.jsx("input",{...U,type:"file",accept:s,id:V,ref:m,name:E,className:M.input.input,onChange:$,multiple:v,disabled:h}),gr.jsxs("div",{ref:l,className:M.input.dropZone.root,children:[!f&&gr.jsx(Cr,{name:d,boxSize:28,"aria-hidden":"true"}),gr.jsxs("div",{className:M.input.dropZone.content,children:[gr.jsxs(Ls,{htmlFor:V,UNSAFE_className:M.input.dropZone.label,children:[S,P&&gr.jsxs(gr.Fragment,{children:[" ",gr.jsx("span",{className:M.input.dropLabel,children:P})]})]}),gr.jsx(js,{UNSAFE_className:M.input.helper,id:`${V}-helper`,registerAria:H,helperText:p})]}),gr.jsx(is,{"aria-hidden":"true",isDisabled:h,elementType:"div",type:null,children:i})]}),w&&gr.jsx(Ms,{UNSAFE_className:M.input.validationText,elementType:"div",...c&&{hasValidationStateIcon:w},id:`${V}-validation`,validationText:A,registerAria:H,role:z})]}),a]})};af.spiritComponent="UNSTABLE_FileUpload",af.displayName="UNSTABLE_FileUpload";const lf=e=>{const{hasBottomDivider:t=!1,...n}=e,r=pn("UNSTABLE_Header"),o=`${r}Logo`,s=`${r}--bottomDivider`;return{classProps:{root:g(r,{[s]:t}),logo:o},props:n}},cf=Object.freeze(Object.defineProperty({__proto__:null,useUnstableHeaderStyleProps:lf},Symbol.toStringTag,{value:"Module"})),pf=e=>{const{children:t,...n}=e,{classProps:r,props:o}=lf(n),{styleProps:s,props:i}=en(o);return gr.jsx("header",{...i,className:g(r.root,s.className),style:s.style,children:t})};pf.spiritComponent="UNSTABLE_Header";const df={elementType:"a"},uf=t.forwardRef(((e,t)=>{const n={...df,...e},{elementType:r=df.elementType,children:o,...s}=n,i=r,{classProps:a,props:l}=lf(s),{styleProps:c,props:p}=en(l),d=Ot(i,{classProps:a.logo,styleProps:c,otherProps:p});return gr.jsx(i,{...p,...d,href:s.href,ref:t,children:o})}));uf.spiritComponent="UNSTABLE_HeaderLogo",uf.displayName="UNSTABLE_HeaderLogo";const mf=V.MEDIUM,ff={theme:"theme-light-default"},hf={[V.SMALL]:W.XSMALL,[V.MEDIUM]:W.SMALL,[V.LARGE]:W.MEDIUM},gf=t.createContext({size:V.MEDIUM}),yf=gf.Provider,bf={id:"",isDisabled:!1,onSelectionChange:()=>{},selectedKeys:[],selectionMode:oe},vf=t.createContext(bf),xf=vf.Provider,Tf=()=>t.useContext(vf),Pf=e=>{const n=[],r=e=>{t.Children.forEach(e,(e=>{t.isValidElement(e)&&((e=>t.isValidElement(e)&&"UNSTABLE_PickerItem"===e.type?.spiritComponent)(e)?n.push({label:e.props.children,value:e.props.value}):e.props?.children&&r(e.props.children))}))};return r(e),n},Sf=e=>{const n=e=>null==e||"boolean"==typeof e?"":"string"==typeof e||"number"==typeof e?String(e):Array.isArray(e)?e.map(n).filter(Boolean).join(" "):t.isValidElement(e)?n(e.props.children):"";return(e=>e.replace(/\s+/g," ").trim())(n(e))},Ef=({children:e,tagKeyboardProps:n,isDisabled:r,label:o,onRemove:s,removeLabel:i,...a})=>{const{t:l}=An(),{size:c=V.MEDIUM,tagDescriptionId:p}=t.useContext(gf),d=i??Nn(l("picker.removeItemLabel"),{itemLabel:Sf(o)}),u=t.useMemo((()=>r||!n?{}:{onBlurCapture:n.onBlurCapture,onFocusCapture:n.onFocusCapture,onKeyDown:n.onKeyDown}),[r,n]);return gr.jsx(Ju,{...a,color:"selected",elementType:"div",size:hf[c],isDisabled:r,role:"row",tabIndex:r?-1:n?.tabIndex??0,"aria-label":Sf(o),...u,...p?{"aria-describedby":p}:{},children:gr.jsxs("div",{role:"gridcell","aria-colindex":1,className:"d-contents",children:[e??gr.jsx("span",{children:o}),gr.jsx(Qs,{"aria-label":d,isDisabled:r,isSymmetrical:!0,onClick:s,size:hf[c],...n&&{tabIndex:n.removeButtonTabIndex},children:gr.jsx(Cr,{name:"close"})})]})})};Ef.spiritComponent="UNSTABLE_PickerTag";const Cf=e=>t.useMemo((()=>{const t=`picker-${e}`;return{pickerId:t,labelId:`${t}-label`,popoverId:`${t}-popover`,selectionId:`${t}-selection`,tagDescriptionId:`${t}-tag-description`}}),[e]),Nf="input:not([disabled]), button:not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href]",wf=e=>Array.from(e.querySelectorAll(Nf)),Af=({isOpen:e,onClose:n,getLastPopoverFocusable:r})=>({onPopoverKeyDownCapture:t.useCallback((t=>{if("Tab"!==t.key||t.shiftKey||!e)return;const o=t.currentTarget;let s=r?.()??null;if(!s){const e=wf(o);s=e.length>0?e[e.length-1]:null}const i=t.target instanceof Node?t.target:null,a=document.activeElement;!s||i!==s&&a!==s||(t.preventDefault(),n())}),[r,e,n])}),_f=({onRemoveAtIndex:e,selectionRef:n,tagCount:r,isPopoverOpen:o=!1,isDisabled:s=!1})=>{const[i,a]=t.useState(0),[l,c]=t.useState(null),p=t.useRef(null),d=t.useRef(null);sn((()=>{const e=p.current;if(null===e)return p.current=r,void(r>0&&a(r-1));if(0===r)return void(p.current=0);const t=r-1,n=r-e;n>0?(a(t),o||(d.current=t)):n<0&&a((e=>Math.min(e,t))),p.current=r}),[o,r]),sn((()=>{const e=d.current;null===e||0===r||o||(d.current=null,((e,t)=>{if(!e?.current)return;const n=e.current.querySelectorAll('[role="row"]');n.item(t)?.focus()})(n,e))}),[i,o,n,r]);const u=t.useCallback((t=>{const n=r-1;if(n>0){const e=t<n?t:t-1;a(e),o||(d.current=e)}c(null),e(t)}),[o,e,r]);return{getKeyboardGridRowProps:t.useCallback((e=>o||s?{tabIndex:-1,removeButtonTabIndex:-1,onFocusCapture:()=>{},onBlurCapture:()=>{},onKeyDown:()=>{}}:{tabIndex:e===i?0:-1,removeButtonTabIndex:l===e?0:-1,onFocusCapture:()=>{a(e),c(e)},onBlurCapture:e=>{e.currentTarget.contains(e.relatedTarget)||c(null)},onKeyDown:t=>{if(0===r)return;if("Delete"===t.key||"Backspace"===t.key)return t.preventDefault(),void u(e);let n=-1;switch(t.key){case"ArrowRight":case"ArrowDown":n=(e+1)%r;break;case"ArrowLeft":case"ArrowUp":n=(e-1+r)%r;break;case"Home":n=0;break;case"End":n=r-1}n>=0&&(t.preventDefault(),a(n),d.current=n)}}),[i,l,s,o,u,r]),removeTagAtIndex:u}},Rf=e=>{const{isDisabled:t,isFluid:n,isLabelHidden:r,isRequired:o,size:s,validationState:i}=e,a=pn("UNSTABLE_Picker"),l=`${a}--disabled`,c=`${a}--fluid`,p=`${a}--${s}`,d=`${a}--${i}`,u=`${a}__label`,m=`${u}--hidden`,f=`${u}--required`,h=`${a}__inputContainer`,y=`${a}__selection`,b=`${a}__selectionEmpty`,v=`${a}__trigger`,x=`${a}__helperText`,T=`${a}__validationText`;return{classProps:{root:g(a,{[l]:t,[c]:n,[p]:s,[d]:i}),label:g(u,{[m]:r,[f]:o}),inputContainer:h,selection:y,selectionEmpty:b,trigger:v,helperText:x,validationText:T}}},kf=t.forwardRef(((e,n)=>{const{t:r}=An(),{"aria-describedby":o="",addButtonLabel:s=r("picker.add"),children:i,closeButtonLabel:a=r("common.close"),emptySelectionLabel:l,helperText:c,id:p,isAggregated:d=!1,isDisabled:u=!1,isFluid:m=!1,isLabelHidden:f=!1,isOpen:h,isRequired:y=!1,dropdownProps:b,label:v,labelProps:x,onSelectionChange:T,onToggle:P,popoverProps:S=ff,removeAllLabel:E=r("picker.removeAll"),renderTags:C,selectedKeys:N,selectionAriaLabel:w=r("picker.selectionAriaLabel"),selectionMode:A=oe,size:_=mf,tagDescriptionText:R=r("picker.tagDescriptionText"),hasValidationIcon:k,validationState:O,validationText:$,...j}=e,[D,L]=rn(o),I=Fs({validationState:O,validationText:$}),{classProps:M}=Rf({isDisabled:u,isFluid:m,isLabelHidden:f,isRequired:y,size:_,validationState:O}),{styleProps:F,props:B}=en(j),{labelId:U,pickerId:H,popoverId:z,selectionId:V,tagDescriptionId:W}=Cf(p),G=t.useMemo((()=>Pf(i)),[i]),q=t.useMemo((()=>(e=>{const t={};for(const n of e)t[n.value]=n.label;return t})(G)),[G]),X=t.useMemo((()=>qn(N,A)),[N,A]),Y=t.useMemo((()=>{return e=q,X.map((t=>({label:e[t]??t,value:t})));var e}),[X,q]),K=e=>Gn(A)?T([]):T(N.filter((t=>t!==e))),Q=t.useRef(null),Z=t.useRef(null),J=t.useCallback((()=>{h&&(P(),Promise.resolve().then((()=>{Z.current?.focus()})))}),[h,P]),{onPopoverKeyDownCapture:ee}=Af({isOpen:h,onClose:J}),te=((e,t)=>{const{isAggregated:n}=t;return 0===e?0:n?1:e})(Y.length,{isAggregated:d}),{getKeyboardGridRowProps:ne,removeTagAtIndex:re}=_f({isDisabled:u,isPopoverOpen:h,onRemoveAtIndex:e=>{d?T([]):K(Y[e].value)},selectionRef:Q,tagCount:te}),se=l?Nn(l,{label:v}):v,ie=((e,t)=>t.length>1?`${e} (${t.length})`:t[0]?.label??e)(v,Y),ae=Y.length?C?C({getKeyboardGridRowProps:ne,onRemove:K,removeTagAtIndex:re}):d?gr.jsx(Ef,{tagKeyboardProps:ne(0),isDisabled:u,label:ie,onRemove:()=>re(0),removeLabel:E}):Y.map(((e,t)=>gr.jsx(Ef,{tagKeyboardProps:ne(t),isDisabled:u,label:e.label,onRemove:()=>re(t)},e.value))):gr.jsx("span",{"aria-hidden":"true",className:M.selectionEmpty,children:se}),le=t.useMemo((()=>({id:H,isDisabled:u,onSelectionChange:T,selectedKeys:X,selectionMode:A})),[X,u,T,H,A]);return t.useImperativeHandle(n,(()=>({close:J,selectedKeys:N})),[J,N]),gr.jsx(yf,{value:{size:_,tagDescriptionId:W},children:gr.jsxs("div",{...F,className:g(M.root,F.className),...B,children:[gr.jsx(Ls,{...x,id:U,elementType:"span",UNSAFE_className:g(M.label,x?.UNSAFE_className),children:v}),gr.jsxs(Si,{...b,id:z,isOpen:h,onToggle:P,children:[gr.jsxs("div",{role:"group","aria-label":v,className:M.inputContainer,children:[gr.jsx("div",{ref:Q,...D,id:V,role:Y.length?"grid":"group","aria-label":Nn(w,{label:v}),"aria-live":"off","aria-atomic":!1,"aria-relevant":"additions",className:M.selection,children:ae}),gr.jsxs("button",{ref:Z,type:"button",className:M.trigger,"aria-haspopup":"dialog","aria-expanded":h,"aria-controls":z,onClick:P,disabled:u,children:[gr.jsx(_s,{children:h?a:s}),gr.jsx(Cr,{name:"chevron-"+(h?"up":"down"),boxSize:20})]})]}),gr.jsx(Ni,{...S,"aria-labelledby":U,role:"dialog","aria-modal":"true",onKeyDownCapture:ee,children:gr.jsx(xf,{value:le,children:i})})]}),gr.jsx(js,{UNSAFE_className:M.helperText,id:`${H}-helper-text`,registerAria:L,helperText:c}),O&&gr.jsx(Ms,{UNSAFE_className:M.validationText,id:`${H}-validation-text`,...k&&{hasValidationStateIcon:O},validationText:$,registerAria:L,role:I}),gr.jsx("span",{id:W,hidden:!0,children:R})]})})}));kf.spiritComponent="UNSTABLE_Picker",kf.displayName="UNSTABLE_Picker";const Of=({children:e,label:n,...r})=>{const o=Tf(),s=t.useId(),i=o.id?`${o.id}-group-${s}`:s;return gr.jsx(Mi,{...r,id:i,isFluid:!0,isLabelHidden:!0,label:n,children:e})};Of.spiritComponent="UNSTABLE_PickerGroup";const $f=({children:e,value:t,...n})=>{const{id:r,isDisabled:o,onSelectionChange:s,selectedKeys:i,selectionMode:a}=Tf(),l=Xn(i,t,a),c=Gn(a),p=c?zd:Vs,d=`${r}-${t}`;return gr.jsx(p,{...n,id:d,inputPosition:te.START,isChecked:l,isDisabled:o,isItem:!0,label:e,value:t,onChange:()=>{s(c?[t]:Yn(i,t,a))},...c?{name:r}:{}})};$f.spiritComponent="UNSTABLE_PickerItem";const jf=t.forwardRef(((e,n)=>{const{defaultIsOpen:r=!1,defaultSelectedKeys:o=[],onSelectionChange:s,selectionMode:i,...a}=e,l=t.useRef(null),[c,p]=er(r),{selectedKeys:d,setSelectedKeys:u}=Kn({defaultSelectedKeys:o,onSelectionChange:s,selectionMode:i});return t.useImperativeHandle(n,(()=>({close:()=>l.current?.close(),selectedKeys:d})),[d]),gr.jsx(kf,{...a,ref:l,isOpen:c,onSelectionChange:u,onToggle:p,selectedKeys:d,selectionMode:i})}));jf.spiritComponent="UNSTABLE_UncontrolledPicker",jf.displayName="UNSTABLE_UncontrolledPicker";const Df=e=>{const{isStriped:t=!1,isBordered:n=!1,isCompact:r=!1,isHoverable:o=!1,isResponsive:s=!1,...i}=e,a=pn("UNSTABLE_Table"),l=`${a}--striped`,c=`${a}--bordered`,p=`${a}--compact`,d=`${a}--hoverable`,u=`${a}--responsive`;return{classProps:{root:g(a,{[l]:t,[c]:n,[p]:r,[d]:o,[u]:s})},props:i}},Lf=Object.freeze(Object.defineProperty({__proto__:null,useUnstableTableStyleProps:Df},Symbol.toStringTag,{value:"Module"})),If=e=>{const{children:t,...n}=e,{classProps:r,props:o}=Df(n),{styleProps:s,props:i}=en(o);return gr.jsx("table",{...i,className:g(r.root,s.className),style:s.style,children:t})};If.spiritComponent="UNSTABLE_Table",e.Accordion=yr,e.AccordionContent=wo,e.AccordionContext=sr,e.AccordionHeader=wr,e.AccordionItem=Tr,e.AccordionItemContext=br,e.ActionGroup=$o,e.Alert=Lo,e.AlignmentX=_,e.AlignmentXExtended=R,e.AlignmentY=k,e.AlignmentYExtended=O,e.AttachmentActionButton=na,e.AttachmentDismissButton=ra,e.Avatar=Fo,e.BREAKPOINT_MOBILE=Ee,e.BackgroundColors=I,e.BackgroundGradients={PRIMARY:"primary",SECONDARY:"secondary"},e.BackgroundStyleProps=ie,e.BorderColors=$,e.BorderRadii=j,e.BorderRadiusStyleProps=ae,e.BorderStyles=D,e.BorderWidths=L,e.Box=Ho,e.Breadcrumbs=Ko,e.BreadcrumbsItem=Xo,e.Button=is,e.ButtonLink=ps,e.CLASS_NAME_OPEN=v,e.Card=ms,e.CardArtwork=hs,e.CardBody=ys,e.CardEyebrow=bs,e.CardFooter=xs,e.CardLink=Ps,e.CardLogo=Ss,e.CardMedia=Cs,e.CardSizes=be,e.CardTitle=ws,e.CharacterCounter=Os,e.Checkbox=Vs,e.ClassNamePrefixConsumer=ye,e.ClassNamePrefixProvider=ge,e.Collapse=So,e.ColorPrefixes=x,e.ComponentButtonColors=M,e.Container=qs,e.ContainerTokenSizes=X,e.ControlButton=Qs,e.DEBOUNCE_DELAY=50,e.DEFAULT_BASE_FONT_SIZE_PX=jt,e.DEFAULT_DECIMALS=fe,e.DEFAULT_ERROR_MESSAGE_MAX_FILE_SIZE=Ui,e.DEFAULT_ERROR_MESSAGE_QUEUE_DUPLICITY=Hi,e.DEFAULT_ERROR_MESSAGE_QUEUE_LIMIT=zi,e.DEFAULT_ERROR_MESSAGE_UNSUPPORTED_FILE=Vi,e.DEFAULT_FILE_ACTION_BUTTON_ICON_NAME=Ym,e.DEFAULT_FILE_ICON_NAME=Xm,e.DEFAULT_FILE_IMAGE_DIMENSION=48,e.DEFAULT_FILE_QUEUE_LIMIT=Bi,e.DEFAULT_FILE_SIZE_LIMIT=Fi,e.DEFAULT_ICON_NAME=Wi,e.DEFAULT_TOAST_AUTO_CLOSE_INTERVAL=Nm,e.DEFAULT_TOAST_COLOR=Cm,e.Dialog=Js,e.Direction=Q,e.DirectionAxis=J,e.DirectionExtended=Z,e.DisplayStyleProps=ue,e.Divider=ti,e.Drawer=li,e.DrawerCloseButton=pi,e.DrawerConsumer=si,e.DrawerPanel=di,e.DrawerProvider=oi,e.Dropdown=Si,e.DropdownContext=vi,e.DropdownFullWidthModes={OFF:"off",MOBILE_ONLY:"mobile-only",ALL:"all"},e.DropdownPopover=Ni,e.DropdownTrigger=Ci,e.EDGE_DETECTION_INACCURACY_PX=1,e.EmotionColors=F,e.Emphasis=H,e.EmptyState=Li,e.EmptyStateSection=Ii,e.FALLBACK_BASE_FONT_SIZE_PX=16,e.FieldGroup=Mi,e.FileImageCropCSS=Km,e.FileUploader=Zi,e.FileUploaderAttachment=pa,e.FileUploaderCropCSS=Gi,e.FileUploaderInput=ea,e.FileUploaderList=ta,e.FillVariants=Y,e.Flex=ko,e.Footer=fa,e.Grid=ya,e.GridItem=Ta,e.HEADER_ACTIONS_COLOR_DEFAULT=Sa,e.HEADER_COLOR_DEFAULT=Pa,e.HEADER_DIALOG_CLOSE_BUTTON_LABEL_DEFAULT=Ea,e.HEADER_MENU_TOGGLE_LABEL_DEFAULT=Ca,e.Header=wa,e.HeaderButton=Aa,e.HeaderDesktopActions=Ra,e.HeaderDialog=Da,e.HeaderDialogActions=La,e.HeaderDialogButton=Ia,e.HeaderDialogCloseButton=Ma,e.HeaderDialogConsumer=$a,e.HeaderDialogLink=Fa,e.HeaderDialogNav=Ba,e.HeaderDialogNavItem=Ua,e.HeaderDialogProvider=Oa,e.HeaderDialogText=Ha,e.HeaderLink=za,e.HeaderMobileActions=Va,e.HeaderNav=Wa,e.HeaderNavItem=Ga,e.Heading=Ya,e.HeadingStyleProps=de,e.HelperText=js,e.Hidden=Qa,e.I18nConsumer=Sn,e.I18nProvider=({children:e,locale:n="en",translations:r})=>{const o=t.useMemo((()=>{const e=Cn(r,n);return null==e||0===Object.keys(e).length?bn:Tn(bn,e)}),[n,r]);return t.createElement(Pn.Provider,{value:o},e)},e.ICON_BOX_SIZE=20,e.IMAGE_DIMENSION=54,e.IMAGE_PREVIEW_BASE64_MAX_WIDTH=500,e.ITEM_SELECTION_DECORATOR_BACKGROUND=ve,e.ITEM_SELECTION_DECORATOR_BOTH=xe,e.ITEM_SELECTION_DECORATOR_ICON=Te,e.Icon=Cr,e.IconBox=sl,e.IconsConsumer=kn,e.IconsProvider=Rn,e.InputDetails=Hs,e.InputPositions=te,e.Intensity=U,e.Item=ll,e.Label=Ls,e.Link=Wo,e.LinkColors={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},e.LinkColorsExtended={INHERIT:"inherit"},e.MAX_TO_FIXED_DIGITS=100,e.MULTIPLE_SELECTION_MODE=oe,e.Matrix=ul,e.Modal=bl,e.ModalBody=vl,e.ModalCloseButton=xl,e.ModalConsumer=hl,e.ModalDialog=Pl,e.ModalFooter=Sl,e.ModalHeader=Cl,e.ModalProvider=fl,e.Navigation=Al,e.NavigationAction=kl,e.NavigationAvatar=$l,e.NavigationItem=Dl,e.NoSsr=Ll,e.ObjectFit=ne,e.PICKER_POPOVER_FOCUSABLE_SELECTOR=Nf,e.PaddingStyleProps=ce,e.Pagination=Ml,e.PaginationButtonLink=Fl,e.PaginationItem=Bl,e.PaginationLink=Ul,e.PaginationLinkNext=Hl,e.PaginationLinkPrevious=zl,e.PartnerLogo=Xl,e.PickerPopoverContextProvider=xf,e.Pill=Zl,e.PillColorsExtended=Yl,e.Placements=z,e.Position=re,e.PricingPlan=tc,e.PricingPlanBody=Md,e.PricingPlanFooter=Bd,e.PricingPlanHeader=rc,e.ProductLogo=Ud,e.PropsConsumer=ts,e.PropsProvider=es,e.REM_UNIT="rem",e.Radio=zd,e.RouterConsumer=In,e.RouterProvider=e=>{const{navigate:n,children:r}=e,o=t.useMemo((()=>({navigate:n})),[n]);return t.createElement(Ln.Provider,{value:o},r)},e.SCROLL_CANCEL_DELAY=10,e.SCROLL_VIEW_ARROWS_LABEL_HORIZONTAL_END=Vd,e.SCROLL_VIEW_ARROWS_LABEL_HORIZONTAL_START=Wd,e.SCROLL_VIEW_ARROWS_LABEL_VERTICAL_END=Gd,e.SCROLL_VIEW_ARROWS_LABEL_VERTICAL_START=qd,e.SCROLL_VIEW_DEFAULT_DIRECTION=Xd,e.SCROLL_VIEW_DEFAULT_OVERFLOW_DECORATOR=Yd,e.SINGLE_SELECTION_MODE=se,e.STYLE_SPACING_AUTO=Se,e.ScrollView=tu,e.ScrollViewArrows=Jd,e.Section=iu,e.SegmentedControl=du,e.SegmentedControlItem=uu,e.Select=fu,e.ShapeVariants=K,e.Sizes=V,e.SizesExtended=W,e.SkeletonHeading=xu,e.SkeletonItem=gu,e.SkeletonShape=Eu,e.SkeletonText=bu,e.SkipLink=wu,e.Slider=Ru,e.SpacingStyleProp=le,e.Spinner=os,e.SpiritBreakpoints=Ce,e.SplitButton=$u,e.Stack=Oi,e.StackItem=ji,e.TOOLTIP_TRIGGER=Ne,e.TRANSITIONING_STYLES=Em,e.TRANSITION_DURATION=250,e.TabContent=Du,e.TabContext=Lu,e.TabItem=Uu,e.TabLink=zu,e.TabList=Vu,e.TabPane=Wu,e.Tabs=Gu,e.TabsConsumer=Mu,e.TabsProvider=Iu,e.Tag=Ju,e.TagColorsExtended=Yu,e.Text=nm,e.TextAlignments={LEFT:"left",CENTER:"center",RIGHT:"right"},e.TextArea=lm,e.TextColors=B,e.TextField=cm,e.TextFieldBase=am,e.TextHyphens={NONE:"none",AUTO:"auto",MANUAL:"manual"},e.TextStyleProps=pe,e.TextWordBreaks={NORMAL:"normal",ANYWHERE:"anywhere",LONG_WORDS:"long-words"},e.ThemeStyleProps=me,e.Timeline=hm,e.TimelineContent=gm,e.TimelineHeading=ym,e.TimelineMarker=vm,e.TimelineStep=Tm,e.Toast=Sm,e.ToastBar=Rm,e.ToastBarLink=$m,e.ToastBarMessage=km,e.ToastColorsExtended=wm,e.ToastContext=jm,e.ToastProvider=({children:e})=>{const[n,r]=t.useReducer(Dm,Lm),{queue:o}=n,s=t.useCallback((e=>{r({type:"hide",payload:{id:e}})}),[]),i=t.useCallback((()=>{r({type:"clear",payload:null})}),[]),a=t.useCallback(((e,t,n)=>{r({type:"show",payload:{content:e,toastId:t,options:n}}),n?.enableAutoClose&&Be((()=>s(t)),n?.autoCloseInterval||Nm)}),[s]),l=t.useCallback((e=>{r({type:"clear",payload:null}),e.forEach((e=>{const t=e.enableAutoClose??!0,n=e.autoCloseInterval||Nm;r({type:"show",payload:{content:{message:e.content.message,link:e.content.link??void 0},toastId:e.id,options:{autoCloseInterval:n,enableAutoClose:t,color:e.color,hasIcon:e.hasIcon||!1,iconName:e.iconName,isDismissible:e.isDismissible||!1,linkProps:e.linkProps||{}}}}),t&&Be((()=>s(e.id)),n)}))}),[s]),c=t.useMemo((()=>({clear:i,hide:s,queue:o,setQueue:l,show:a})),[s,a,i,o.length,l]);return gr.jsx(jm.Provider,{value:c,children:e})},e.Toggle=Bm,e.Tooltip=_d,e.TooltipCloseButton=Rd,e.TooltipPopover=kd,e.TooltipTrigger=$d,e.Truncate=qm,e.TruncateModes=we,e.UNDERLINED_OPTIONS=Pe,e.UNSTABLE_File=tf,e.UNSTABLE_FileImagePreview=rf,e.UNSTABLE_FileUpload=af,e.UNSTABLE_Header=pf,e.UNSTABLE_HeaderLogo=uf,e.UNSTABLE_Picker=kf,e.UNSTABLE_PickerGroup=Of,e.UNSTABLE_PickerItem=$f,e.UNSTABLE_PickerTag=Ef,e.UNSTABLE_Table=If,e.UNSTABLE_UncontrolledPicker=jf,e.UncontrolledAccordion=Ao,e.UncontrolledCollapse=No,e.UncontrolledDropdown=Ai,e.UncontrolledFileUploader=ua,e.UncontrolledPagination=Wl,e.UncontrolledSplitButton=e=>{const{t:n}=An(),r={...ju,...e},{buttonIconName:o,buttonLabel:s,buttonOnClick:i,children:a,dropdownTriggerIconName:l,dropdownTriggerLabel:c,dropdownPlacement:p,id:d,isButtonLabelHidden:u,isDisabled:m,isDropdownTriggerLabelHidden:f,...h}=r,g=c??n("splitButton.dropdown"),[y,b]=t.useState(!1);return gr.jsxs($u,{...h,id:d,isDisabled:m,children:[gr.jsxs(is,{onClick:i,children:[o&&gr.jsx(Cr,{name:o,...!u&&{marginRight:"space-400"}}),u?gr.jsx(_s,{children:s}):s]}),gr.jsxs(Si,{id:`${d}-dropdown`,isOpen:y,onToggle:()=>b(!y),placement:p,children:[gr.jsxs(Ci,{elementType:is,children:[f?gr.jsx(_s,{children:g}):g,gr.jsx(Cr,{name:l,...!f&&{marginLeft:"space-400"}})]}),gr.jsx(Ni,{children:a})]})]})},e.UncontrolledTabs=Xu,e.UncontrolledToast=Mm,e.UncontrolledTooltip=Dd,e.ValidationStates={SUCCESS:"success",WARNING:"warning",DANGER:"danger"},e.ValidationText=Ms,e.VisuallyHidden=_s,e.applyClassNamePrefix=je,e.applyColor=De,e.applySize=Le,e.applyTheme=e=>t=>`${t}--${e}`,e.base64ToByteArray=e=>{const t=atob(e),n=new Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return new Uint8Array(n)},e.camelCaseToKebabCase=Bt,e.compose=Me,e.debounce=Fe,e.defaultTranslations=bn,e.delayedCallback=Be,e.fullWidthModeKeys=gi,e.generateColorsObject=Ie,e.generateResponsiveClassNames=Mt,e.generateResponsiveStylePropsClasses=qt,e.generateStaticStylePropsClasses=Gt,e.generateStylePropsClassNames=Xt,e.getAccentBackgroundColors=()=>Ie(E,"background","accent"),e.getAccentBorderColors=()=>Ie(E,"border","accent"),e.getAccentColorNames=()=>Object.keys(E),e.getAccentTextColors=()=>Ie(E,"content","accent"),e.getAttachmentInput=ia,e.getAttachmentMetaInput=aa,e.getEmotionBackgroundColors=()=>Ie(N,"background","emotion"),e.getEmotionBorderColors=()=>Ie(N,"border","emotion"),e.getEmotionColorNames=()=>Object.keys(N),e.getEmotionTextColors=()=>Ie(N,"content","emotion"),e.getNeutralBackgroundColors=()=>({NEUTRAL_BASIC:"neutral-basic",NEUTRAL_SUBTLE:"neutral-subtle"}),e.getNeutralTextColors=()=>({NEUTRAL_BASIC:"neutral-basic",NEUTRAL_SUBTLE:"neutral-subtle"}),e.getPickerPopoverFocusableElements=wf,e.getSelectedKeys=qn,e.getTextColorNames=()=>Object.keys(w),e.getToggledSelectedKeys=Yn,e.handleLinkClick=Lt,e.htmlReactParser=kt,e.image2Base64Preview=la,e.isDirectionHorizontal=ee,e.isEmpty=$e,e.isEmptyArray=Re,e.isEmptyObject=ke,e.isEmptyString=_e,e.isEnumerable=Oe,e.isKeySelected=Xn,e.isNullish=Ae,e.isResponsive=It,e.isSSR=Ft,e.isSingleSelectionMode=Gn,e.kebabCaseToCamelCase=Ut,e.kebabCaseToCamelCaseValues=Ht,e.mergeStyleProps=Ot,e.mergeTranslations=Tn,e.normalizeStringValue=zt,e.pxToRem=Dt,e.replaceTranslationParams=Nn,e.resolveTranslationKey=wn,e.stringOrObjectKebabCaseToCamelCase=Vt,e.toPascalCase=Wt,e.truncateByCharacters=Hm,e.truncateByLines=zm,e.truncateByWords=Um,e.useAccordion=i,e.useAccordionAriaProps=p,e.useAccordionStyleProps=or,e.useAlertStyleProps=jo,e.useAlignmentClass=tn,e.useAriaDescribedBy=rn,e.useAriaDetails=on,e.useAriaIdRefs=nn,e.useAvatarStyleProps=Io,e.useBoxStyleProps=Bo,e.useBreadcrumbsStyleProps=Go,e.useButtonLinkProps=as,e.useButtonLinkStyleProps=ls,e.useButtonProps=Qo,e.useButtonStyleProps=Zo,e.useCancelEvent=cn,e.useCardStyleProps=ds,e.useCharacterCounterState=Rs,e.useCheckboxStyleProps=zs,e.useClassNamePrefix=pn,e.useClick=dn,e.useClickOutside=un,e.useCollapse=Eo,e.useCollapseAriaProps=bo,e.useCollapseStyleProps=vo,e.useContainerStyleProps=Ws,e.useContextProps=ns,e.useControlButtonProps=Xs,e.useControlButtonStyleProps=Ys,e.useControlledModeGuard=mn,e.useDebouncedValue=fn,e.useDefaultResponsiveRowsStyle=cl,e.useDeprecationMessage=hn,e.useDialog=Zs,e.useDimensionStyle=gn,e.useDividerStyleProps=ei,e.useDragAndDrop=yn,e.useDrawerContext=ii,e.useDrawerStyleProps=ai,e.useDropdown=wi,e.useDropdownAriaProps=yi,e.useDropdownStyleProps=Pi,e.useEmptyStateStyleProps=Di,e.useFileImageStyles=Zm,e.useFileQueue=da,e.useFileStyleProps=Jm,e.useFileUploadState=of,e.useFileUploadStyleProps=sf,e.useFileUploaderAttachment=ca,e.useFileUploaderInput=Ji,e.useFileUploaderStyleProps=Qi,e.useFlexStyleProps=_o,e.useGridStyleProps=ha,e.useHeaderDialogContext=ja,e.useHeaderStyleProps=Na,e.useHeadingStyleProps=qa,e.useI18n=An,e.useIcon=On,e.useIconBoxColors=nl,e.useIconBoxStyleProps=rl,e.useIconName=$n,e.useIconStyleProps=Sr,e.useInputDetailsStyleProps=Bs,e.useInputPositionClass=jn,e.useIsomorphicLayoutEffect=sn,e.useItemStyleProps=il,e.useLastActiveFocus=Dn,e.useLinkClick=Fn,e.useLinkStyleProps=zo,e.useMatrixStyleProps=pl,e.useModalContext=gl,e.useModalStyleProps=yl,e.useNavigationActionProps=_l,e.useNavigationStyleProps=Nl,e.useOpenItem=lr,e.usePaginationStyleProps=Il,e.usePartnerLogoStyleProps=Gl,e.usePickerId=Cf,e.usePickerPopoverContext=Tf,e.usePickerPopoverTabOutToTrigger=Af,e.usePickerSelectionGridKeyboard=_f,e.usePickerStyleProps=Rf,e.usePillStyleProps=Kl,e.usePricingPlanStyleProps=Jl,e.useRadioStyleProps=Hd,e.useResizeObserver=Hn,e.useRouter=Mn,e.useScrollCallback=Kd,e.useScrollControl=Wn,e.useScrollPosition=eu,e.useScrollViewArrows=Qd,e.useScrollViewStyleProps=Zd,e.useSectionSizeProps=ru,e.useSectionStyleProps=ou,e.useSegmentedControl=({defaultSelectedValue:e,isMultiselect:n})=>{let r;r=n?Array.isArray(e)?e:void 0!==e?[e]:[]:e??"";const[o,s]=t.useState(r);return{selectedValue:o,setSelectedValue:s}},e.useSegmentedControlStyleProps=cu,e.useSelectStyleProps=mu,e.useSelectionState=Kn,e.useSkeletonStyleProps=hu,e.useSkipLinkStyleProps=Cu,e.useSliderStyleProps=Au,e.useSpacingStyle=Qn,e.useSpinnerStyleProps=rs,e.useSplitButtonStyleProps=ku,e.useStyleProps=en,e.useSymmetry=Jn,e.useTab=qu,e.useTabContext=Fu,e.useTabsStyleProps=Bu,e.useTagStyleProps=Qu,e.useTextStyleProps=em,e.useTimelineStyleProps=mm,e.useToast=Im,e.useToggle=er,e.useToggleStyleProps=Fm,e.useTooltip=jd,e.useTooltipStyleProps=Ad,e.useTruncateStyleProps=Wm,e.useTruncatedText=Vm,e.useUnstableHeaderStyleProps=cf,e.useUnstableTableStyleProps=Lf,e.useWrapClass=rr,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}));
|
|
2
2
|
//# sourceMappingURL=web-react.umd.min.js.map
|