@alma-oss/spirit-web-react 4.4.2 → 4.5.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 +51 -0
- package/DEPRECATIONS.md +2 -2
- package/README.md +135 -6
- package/dist/bundles/web-react.umd.js +1731 -624
- 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/components/Button/Button.cjs +1 -1
- package/dist/components/Button/Button.cjs.map +1 -1
- package/dist/components/Button/Button.js +19 -19
- package/dist/components/Button/Button.js.map +1 -1
- package/dist/components/ButtonLink/ButtonLink.cjs +1 -1
- package/dist/components/ButtonLink/ButtonLink.cjs.map +1 -1
- package/dist/components/ButtonLink/ButtonLink.d.ts +2 -2
- package/dist/components/ButtonLink/ButtonLink.js +23 -18
- package/dist/components/ButtonLink/ButtonLink.js.map +1 -1
- package/dist/components/ButtonLink/useButtonLinkStyleProps.cjs.map +1 -1
- package/dist/components/ButtonLink/useButtonLinkStyleProps.d.ts +9 -9
- package/dist/components/ButtonLink/useButtonLinkStyleProps.js.map +1 -1
- package/dist/components/Card/CardLink.cjs +1 -1
- package/dist/components/Card/CardLink.cjs.map +1 -1
- package/dist/components/Card/CardLink.d.ts +2 -2
- package/dist/components/Card/CardLink.js +10 -15
- package/dist/components/Card/CardLink.js.map +1 -1
- package/dist/components/CharacterCounter/CharacterCounter.cjs +2 -0
- package/dist/components/CharacterCounter/CharacterCounter.cjs.map +1 -0
- package/dist/components/CharacterCounter/CharacterCounter.d.ts +7 -0
- package/dist/components/CharacterCounter/CharacterCounter.js +23 -0
- package/dist/components/CharacterCounter/CharacterCounter.js.map +1 -0
- package/dist/components/CharacterCounter/constants.cjs +2 -0
- package/dist/components/CharacterCounter/constants.cjs.map +1 -0
- package/dist/components/CharacterCounter/constants.d.ts +1 -0
- package/dist/components/CharacterCounter/constants.js +5 -0
- package/dist/components/CharacterCounter/constants.js.map +1 -0
- package/dist/components/CharacterCounter/index.cjs +2 -0
- package/dist/components/CharacterCounter/index.d.ts +3 -0
- package/dist/components/CharacterCounter/index.js +7 -0
- package/dist/components/{UNSTABLE_Attachment → CharacterCounter}/index.js.map +1 -1
- package/dist/components/CharacterCounter/types.d.ts +6 -0
- package/dist/components/CharacterCounter/useCharacterCounterState.cjs +2 -0
- package/dist/components/CharacterCounter/useCharacterCounterState.cjs.map +1 -0
- package/dist/components/CharacterCounter/useCharacterCounterState.d.ts +25 -0
- package/dist/components/CharacterCounter/useCharacterCounterState.js +66 -0
- package/dist/components/CharacterCounter/useCharacterCounterState.js.map +1 -0
- package/dist/components/CharacterCounter.d.ts +2 -0
- package/dist/components/Checkbox/Checkbox.cjs +1 -1
- package/dist/components/Checkbox/Checkbox.cjs.map +1 -1
- package/dist/components/Checkbox/Checkbox.js +58 -54
- package/dist/components/Checkbox/Checkbox.js.map +1 -1
- package/dist/components/ControlButton/useControlButtonStyleProps.cjs.map +1 -1
- package/dist/components/ControlButton/useControlButtonStyleProps.js.map +1 -1
- package/dist/components/Dropdown/DropdownPopover.cjs.map +1 -1
- package/dist/components/Dropdown/DropdownPopover.d.ts +2 -2
- package/dist/components/Dropdown/DropdownPopover.js.map +1 -1
- package/dist/components/Field/index.cjs +1 -1
- package/dist/components/Field/index.d.ts +0 -2
- package/dist/components/Field/index.js +2 -4
- package/dist/components/Field/index.js.map +1 -1
- package/dist/components/Field/types.d.ts +1 -1
- package/dist/components/FieldGroup/FieldGroup.cjs +1 -1
- package/dist/components/FieldGroup/FieldGroup.cjs.map +1 -1
- package/dist/components/FieldGroup/FieldGroup.js +15 -16
- package/dist/components/FieldGroup/FieldGroup.js.map +1 -1
- package/dist/components/FileUploader/FileUploaderInput.cjs +1 -1
- package/dist/components/FileUploader/FileUploaderInput.cjs.map +1 -1
- package/dist/components/FileUploader/FileUploaderInput.js +36 -35
- package/dist/components/FileUploader/FileUploaderInput.js.map +1 -1
- package/dist/components/Header/HeaderDialogLink.cjs +1 -1
- package/dist/components/Header/HeaderDialogLink.cjs.map +1 -1
- package/dist/components/Header/HeaderDialogLink.js +18 -17
- package/dist/components/Header/HeaderDialogLink.js.map +1 -1
- package/dist/components/Header/HeaderLink.cjs +1 -1
- package/dist/components/Header/HeaderLink.cjs.map +1 -1
- package/dist/components/Header/HeaderLink.js +16 -15
- package/dist/components/Header/HeaderLink.js.map +1 -1
- package/dist/components/InputDetails/InputDetails.cjs +2 -0
- package/dist/components/InputDetails/InputDetails.cjs.map +1 -0
- package/dist/components/InputDetails/InputDetails.d.ts +7 -0
- package/dist/components/InputDetails/InputDetails.js +21 -0
- package/dist/components/InputDetails/InputDetails.js.map +1 -0
- package/dist/components/InputDetails/index.cjs +2 -0
- package/dist/components/InputDetails/index.cjs.map +1 -0
- package/dist/components/InputDetails/index.d.ts +2 -0
- package/dist/components/InputDetails/index.js +7 -0
- package/dist/components/InputDetails/index.js.map +1 -0
- package/dist/components/InputDetails/useInputDetailsStyleProps.cjs +2 -0
- package/dist/components/InputDetails/useInputDetailsStyleProps.cjs.map +1 -0
- package/dist/components/InputDetails/useInputDetailsStyleProps.d.ts +7 -0
- package/dist/components/InputDetails/useInputDetailsStyleProps.js +11 -0
- package/dist/components/InputDetails/useInputDetailsStyleProps.js.map +1 -0
- package/dist/components/InputDetails.d.ts +2 -0
- package/dist/components/Link/Link.cjs +1 -1
- package/dist/components/Link/Link.cjs.map +1 -1
- package/dist/components/Link/Link.js +10 -9
- package/dist/components/Link/Link.js.map +1 -1
- package/dist/components/Link/useLinkStyleProps.cjs.map +1 -1
- package/dist/components/Link/useLinkStyleProps.d.ts +1 -1
- package/dist/components/Link/useLinkStyleProps.js.map +1 -1
- package/dist/components/Pagination/PaginationLink.cjs +1 -1
- package/dist/components/Pagination/PaginationLink.cjs.map +1 -1
- package/dist/components/Pagination/PaginationLink.js +29 -18
- package/dist/components/Pagination/PaginationLink.js.map +1 -1
- package/dist/components/Radio/Radio.cjs +1 -1
- package/dist/components/Radio/Radio.cjs.map +1 -1
- package/dist/components/Radio/Radio.js +24 -25
- package/dist/components/Radio/Radio.js.map +1 -1
- package/dist/components/ScrollView/useScrollPosition.js +4 -4
- package/dist/components/Select/Select.cjs +1 -1
- package/dist/components/Select/Select.cjs.map +1 -1
- package/dist/components/Select/Select.js +28 -29
- package/dist/components/Select/Select.js.map +1 -1
- package/dist/components/Slider/Slider.cjs +1 -1
- package/dist/components/Slider/Slider.cjs.map +1 -1
- package/dist/components/Slider/Slider.js +23 -24
- package/dist/components/Slider/Slider.js.map +1 -1
- package/dist/components/Tabs/TabLink.cjs +1 -1
- package/dist/components/Tabs/TabLink.cjs.map +1 -1
- package/dist/components/Tabs/TabLink.js +18 -17
- package/dist/components/Tabs/TabLink.js.map +1 -1
- package/dist/components/Tag/constants.cjs +1 -1
- package/dist/components/Tag/constants.cjs.map +1 -1
- package/dist/components/Tag/constants.d.ts +1 -0
- package/dist/components/Tag/constants.js +4 -3
- package/dist/components/Tag/constants.js.map +1 -1
- package/dist/components/Tag/useTagStyleProps.cjs +1 -1
- package/dist/components/Tag/useTagStyleProps.cjs.map +1 -1
- package/dist/components/Tag/useTagStyleProps.js +25 -10
- package/dist/components/Tag/useTagStyleProps.js.map +1 -1
- package/dist/components/TextArea/TextArea.cjs +1 -1
- package/dist/components/TextArea/TextArea.cjs.map +1 -1
- package/dist/components/TextArea/TextArea.js +57 -21
- package/dist/components/TextArea/TextArea.js.map +1 -1
- package/dist/components/TextArea/constants.cjs +2 -0
- package/dist/components/TextArea/constants.cjs.map +1 -0
- package/dist/components/TextArea/constants.d.ts +1 -0
- package/dist/components/TextArea/constants.js +5 -0
- package/dist/components/TextArea/constants.js.map +1 -0
- package/dist/components/TextFieldBase/TextFieldBase.cjs +1 -1
- package/dist/components/TextFieldBase/TextFieldBase.cjs.map +1 -1
- package/dist/components/TextFieldBase/TextFieldBase.js +69 -59
- package/dist/components/TextFieldBase/TextFieldBase.js.map +1 -1
- package/dist/components/TextFieldBase/useTextFieldBaseStyleProps.cjs +1 -1
- package/dist/components/TextFieldBase/useTextFieldBaseStyleProps.cjs.map +1 -1
- package/dist/components/TextFieldBase/useTextFieldBaseStyleProps.d.ts +1 -0
- package/dist/components/TextFieldBase/useTextFieldBaseStyleProps.js +11 -10
- package/dist/components/TextFieldBase/useTextFieldBaseStyleProps.js.map +1 -1
- package/dist/components/Toggle/Toggle.cjs +1 -1
- package/dist/components/Toggle/Toggle.cjs.map +1 -1
- package/dist/components/Toggle/Toggle.js +59 -55
- package/dist/components/Toggle/Toggle.js.map +1 -1
- package/dist/components/UNSTABLE_File/UNSTABLE_File.cjs +2 -0
- package/dist/components/UNSTABLE_File/UNSTABLE_File.cjs.map +1 -0
- package/dist/components/UNSTABLE_File/UNSTABLE_File.d.ts +8 -0
- package/dist/components/UNSTABLE_File/UNSTABLE_File.js +88 -0
- package/dist/components/UNSTABLE_File/UNSTABLE_File.js.map +1 -0
- package/dist/components/UNSTABLE_File/UNSTABLE_FileImagePreview.cjs +2 -0
- package/dist/components/UNSTABLE_File/UNSTABLE_FileImagePreview.cjs.map +1 -0
- package/dist/components/UNSTABLE_File/UNSTABLE_FileImagePreview.d.ts +8 -0
- package/dist/components/UNSTABLE_File/UNSTABLE_FileImagePreview.js +29 -0
- package/dist/components/UNSTABLE_File/UNSTABLE_FileImagePreview.js.map +1 -0
- package/dist/components/UNSTABLE_File/constants.cjs +2 -0
- package/dist/components/UNSTABLE_File/constants.cjs.map +1 -0
- package/dist/components/UNSTABLE_File/constants.d.ts +9 -0
- package/dist/components/UNSTABLE_File/constants.js +13 -0
- package/dist/components/UNSTABLE_File/constants.js.map +1 -0
- package/dist/components/UNSTABLE_File/index.cjs +2 -0
- package/dist/components/UNSTABLE_File/index.cjs.map +1 -0
- package/dist/components/UNSTABLE_File/index.d.ts +6 -0
- package/dist/components/UNSTABLE_File/index.js +16 -0
- package/dist/components/UNSTABLE_File/index.js.map +1 -0
- package/dist/components/UNSTABLE_File/types.d.ts +48 -0
- package/dist/components/UNSTABLE_File/useFileImageStyles.cjs +2 -0
- package/dist/components/UNSTABLE_File/useFileImageStyles.cjs.map +1 -0
- package/dist/components/UNSTABLE_File/useFileImageStyles.d.ts +19 -0
- package/dist/components/UNSTABLE_File/useFileImageStyles.js +21 -0
- package/dist/components/UNSTABLE_File/useFileImageStyles.js.map +1 -0
- package/dist/components/UNSTABLE_File/useFileStyleProps.cjs +2 -0
- package/dist/components/UNSTABLE_File/useFileStyleProps.cjs.map +1 -0
- package/dist/components/UNSTABLE_File/useFileStyleProps.d.ts +20 -0
- package/dist/components/UNSTABLE_File/useFileStyleProps.js +29 -0
- package/dist/components/UNSTABLE_File/useFileStyleProps.js.map +1 -0
- package/dist/components/UNSTABLE_File.d.ts +2 -0
- package/dist/components/UNSTABLE_FileUpload/UNSTABLE_FileUpload.cjs +1 -1
- package/dist/components/UNSTABLE_FileUpload/UNSTABLE_FileUpload.cjs.map +1 -1
- package/dist/components/UNSTABLE_FileUpload/UNSTABLE_FileUpload.js +129 -112
- package/dist/components/UNSTABLE_FileUpload/UNSTABLE_FileUpload.js.map +1 -1
- package/dist/components/UNSTABLE_FileUpload/types.d.ts +6 -3
- package/dist/components/UNSTABLE_FileUpload/useFileUploadStyleProps.cjs +1 -1
- package/dist/components/UNSTABLE_FileUpload/useFileUploadStyleProps.cjs.map +1 -1
- package/dist/components/UNSTABLE_FileUpload/useFileUploadStyleProps.d.ts +2 -3
- package/dist/components/UNSTABLE_FileUpload/useFileUploadStyleProps.js +18 -16
- package/dist/components/UNSTABLE_FileUpload/useFileUploadStyleProps.js.map +1 -1
- package/dist/components/UNSTABLE_Picker/PickerContext.cjs +2 -0
- package/dist/components/UNSTABLE_Picker/PickerContext.cjs.map +1 -0
- package/dist/components/UNSTABLE_Picker/PickerContext.d.ts +3 -0
- package/dist/components/UNSTABLE_Picker/PickerContext.js +9 -0
- package/dist/components/UNSTABLE_Picker/PickerContext.js.map +1 -0
- package/dist/components/UNSTABLE_Picker/PickerPopoverContext.cjs +2 -0
- package/dist/components/UNSTABLE_Picker/PickerPopoverContext.cjs.map +1 -0
- package/dist/components/UNSTABLE_Picker/PickerPopoverContext.d.ts +3 -0
- package/dist/components/UNSTABLE_Picker/PickerPopoverContext.js +16 -0
- package/dist/components/UNSTABLE_Picker/PickerPopoverContext.js.map +1 -0
- package/dist/components/UNSTABLE_Picker/UNSTABLE_Picker.cjs +2 -0
- package/dist/components/UNSTABLE_Picker/UNSTABLE_Picker.cjs.map +1 -0
- package/dist/components/UNSTABLE_Picker/UNSTABLE_Picker.d.ts +4 -0
- package/dist/components/UNSTABLE_Picker/UNSTABLE_Picker.js +204 -0
- package/dist/components/UNSTABLE_Picker/UNSTABLE_Picker.js.map +1 -0
- package/dist/components/UNSTABLE_Picker/UNSTABLE_PickerGroup.cjs +2 -0
- package/dist/components/UNSTABLE_Picker/UNSTABLE_PickerGroup.cjs.map +1 -0
- package/dist/components/UNSTABLE_Picker/UNSTABLE_PickerGroup.d.ts +7 -0
- package/dist/components/UNSTABLE_Picker/UNSTABLE_PickerGroup.js +14 -0
- package/dist/components/UNSTABLE_Picker/UNSTABLE_PickerGroup.js.map +1 -0
- package/dist/components/UNSTABLE_Picker/UNSTABLE_PickerItem.cjs +2 -0
- package/dist/components/UNSTABLE_Picker/UNSTABLE_PickerItem.cjs.map +1 -0
- package/dist/components/UNSTABLE_Picker/UNSTABLE_PickerItem.d.ts +7 -0
- package/dist/components/UNSTABLE_Picker/UNSTABLE_PickerItem.js +32 -0
- package/dist/components/UNSTABLE_Picker/UNSTABLE_PickerItem.js.map +1 -0
- package/dist/components/UNSTABLE_Picker/UNSTABLE_PickerTag.cjs +2 -0
- package/dist/components/UNSTABLE_Picker/UNSTABLE_PickerTag.cjs.map +1 -0
- package/dist/components/UNSTABLE_Picker/UNSTABLE_PickerTag.d.ts +7 -0
- package/dist/components/UNSTABLE_Picker/UNSTABLE_PickerTag.js +64 -0
- package/dist/components/UNSTABLE_Picker/UNSTABLE_PickerTag.js.map +1 -0
- package/dist/components/UNSTABLE_Picker/UNSTABLE_UncontrolledPicker.cjs +2 -0
- package/dist/components/UNSTABLE_Picker/UNSTABLE_UncontrolledPicker.cjs.map +1 -0
- package/dist/components/UNSTABLE_Picker/UNSTABLE_UncontrolledPicker.d.ts +4 -0
- package/dist/components/UNSTABLE_Picker/UNSTABLE_UncontrolledPicker.js +40 -0
- package/dist/components/UNSTABLE_Picker/UNSTABLE_UncontrolledPicker.js.map +1 -0
- package/dist/components/UNSTABLE_Picker/constants.cjs +2 -0
- package/dist/components/UNSTABLE_Picker/constants.cjs.map +1 -0
- package/dist/components/UNSTABLE_Picker/constants.d.ts +6 -0
- package/dist/components/UNSTABLE_Picker/constants.js +11 -0
- package/dist/components/UNSTABLE_Picker/constants.js.map +1 -0
- package/dist/components/UNSTABLE_Picker/index.cjs +2 -0
- package/dist/components/UNSTABLE_Picker/index.cjs.map +1 -0
- package/dist/components/UNSTABLE_Picker/index.d.ts +11 -0
- package/dist/components/UNSTABLE_Picker/index.js +26 -0
- package/dist/components/UNSTABLE_Picker/index.js.map +1 -0
- package/dist/components/UNSTABLE_Picker/types.d.ts +91 -0
- package/dist/components/UNSTABLE_Picker/usePickerId.cjs +2 -0
- package/dist/components/UNSTABLE_Picker/usePickerId.cjs.map +1 -0
- package/dist/components/UNSTABLE_Picker/usePickerId.d.ts +8 -0
- package/dist/components/UNSTABLE_Picker/usePickerId.js +15 -0
- package/dist/components/UNSTABLE_Picker/usePickerId.js.map +1 -0
- package/dist/components/UNSTABLE_Picker/usePickerPopoverTabOutToTrigger.cjs +2 -0
- package/dist/components/UNSTABLE_Picker/usePickerPopoverTabOutToTrigger.cjs.map +1 -0
- package/dist/components/UNSTABLE_Picker/usePickerPopoverTabOutToTrigger.d.ts +11 -0
- package/dist/components/UNSTABLE_Picker/usePickerPopoverTabOutToTrigger.js +27 -0
- package/dist/components/UNSTABLE_Picker/usePickerPopoverTabOutToTrigger.js.map +1 -0
- package/dist/components/UNSTABLE_Picker/usePickerSelectionGridKeyboard.cjs +2 -0
- package/dist/components/UNSTABLE_Picker/usePickerSelectionGridKeyboard.cjs.map +1 -0
- package/dist/components/UNSTABLE_Picker/usePickerSelectionGridKeyboard.d.ts +13 -0
- package/dist/components/UNSTABLE_Picker/usePickerSelectionGridKeyboard.js +95 -0
- package/dist/components/UNSTABLE_Picker/usePickerSelectionGridKeyboard.js.map +1 -0
- package/dist/components/UNSTABLE_Picker/usePickerStyleProps.cjs +2 -0
- package/dist/components/UNSTABLE_Picker/usePickerStyleProps.cjs.map +1 -0
- package/dist/components/UNSTABLE_Picker/usePickerStyleProps.d.ts +21 -0
- package/dist/components/UNSTABLE_Picker/usePickerStyleProps.js +29 -0
- package/dist/components/UNSTABLE_Picker/usePickerStyleProps.js.map +1 -0
- package/dist/components/UNSTABLE_Picker/utils.cjs +2 -0
- package/dist/components/UNSTABLE_Picker/utils.cjs.map +1 -0
- package/dist/components/UNSTABLE_Picker/utils.d.ts +10 -0
- package/dist/components/UNSTABLE_Picker/utils.js +41 -0
- package/dist/components/UNSTABLE_Picker/utils.js.map +1 -0
- package/dist/components/UNSTABLE_Picker.d.ts +2 -0
- package/dist/components/index.cjs +1 -1
- package/dist/components/index.d.ts +4 -1
- package/dist/components/index.js +523 -498
- package/dist/components/index.js.map +1 -1
- package/dist/constants/index.cjs +1 -1
- package/dist/constants/index.d.ts +1 -0
- package/dist/constants/index.js +43 -40
- package/dist/constants/index.js.map +1 -1
- package/dist/constants/selection.cjs +2 -0
- package/dist/constants/selection.cjs.map +1 -0
- package/dist/constants/selection.d.ts +2 -0
- package/dist/constants/selection.js +6 -0
- package/dist/constants/selection.js.map +1 -0
- package/dist/context/RouterContext.cjs +2 -0
- package/dist/context/RouterContext.cjs.map +1 -0
- package/dist/context/RouterContext.d.ts +16 -0
- package/dist/context/RouterContext.js +12 -0
- package/dist/context/RouterContext.js.map +1 -0
- package/dist/context/index.cjs +1 -1
- package/dist/context/index.d.ts +1 -0
- package/dist/context/index.js +11 -7
- package/dist/context/index.js.map +1 -1
- package/dist/hooks/index.cjs +1 -1
- package/dist/hooks/index.d.ts +5 -1
- package/dist/hooks/index.js +54 -40
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/useAriaIdRefs.cjs +2 -0
- package/dist/hooks/useAriaIdRefs.cjs.map +1 -0
- package/dist/hooks/useAriaIdRefs.d.ts +11 -0
- package/dist/hooks/useAriaIdRefs.js +23 -0
- package/dist/hooks/useAriaIdRefs.js.map +1 -0
- package/dist/hooks/useControlledModeGuard.cjs +2 -0
- package/dist/hooks/useControlledModeGuard.cjs.map +1 -0
- package/dist/hooks/useControlledModeGuard.d.ts +10 -0
- package/dist/hooks/useControlledModeGuard.js +33 -0
- package/dist/hooks/useControlledModeGuard.js.map +1 -0
- package/dist/hooks/useDebouncedValue.cjs +2 -0
- package/dist/hooks/useDebouncedValue.cjs.map +1 -0
- package/dist/hooks/useDebouncedValue.d.ts +1 -0
- package/dist/hooks/useDebouncedValue.js +17 -0
- package/dist/hooks/useDebouncedValue.js.map +1 -0
- package/dist/hooks/useLinkClick.cjs +2 -0
- package/dist/hooks/useLinkClick.cjs.map +1 -0
- package/dist/hooks/useLinkClick.d.ts +4 -0
- package/dist/hooks/useLinkClick.js +15 -0
- package/dist/hooks/useLinkClick.js.map +1 -0
- package/dist/hooks/useSelectionState.cjs +2 -0
- package/dist/hooks/useSelectionState.cjs.map +1 -0
- package/dist/hooks/useSelectionState.d.ts +17 -0
- package/dist/hooks/useSelectionState.js +41 -0
- package/dist/hooks/useSelectionState.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +722 -673
- package/dist/index.js.map +1 -1
- package/dist/translations/defaults.cjs +1 -1
- package/dist/translations/defaults.cjs.map +1 -1
- package/dist/translations/defaults.d.ts +17 -0
- package/dist/translations/defaults.js +17 -0
- package/dist/translations/defaults.js.map +1 -1
- package/dist/types/button.d.ts +3 -2
- package/dist/types/card.cjs.map +1 -1
- package/dist/types/card.d.ts +5 -7
- package/dist/types/card.js.map +1 -1
- package/dist/types/checkbox.d.ts +2 -2
- package/dist/types/controlButton.d.ts +2 -3
- package/dist/types/header.d.ts +3 -3
- package/dist/types/index.d.ts +1 -0
- package/dist/types/inputDetails.d.ts +9 -0
- package/dist/types/link.cjs.map +1 -1
- package/dist/types/link.d.ts +2 -2
- package/dist/types/link.js.map +1 -1
- package/dist/types/pagination.d.ts +4 -4
- package/dist/types/shared/index.cjs.map +1 -1
- package/dist/types/shared/index.d.ts +1 -0
- package/dist/types/shared/index.js.map +1 -1
- package/dist/types/shared/inputs.d.ts +3 -0
- package/dist/types/shared/router.d.ts +3 -0
- package/dist/types/tabs.d.ts +2 -2
- package/dist/types/tag.d.ts +1 -0
- package/dist/types/textArea.d.ts +26 -5
- package/dist/types/textFieldBase.d.ts +5 -2
- package/dist/types/toggle.d.ts +2 -2
- package/dist/utils/debounce.cjs +1 -1
- package/dist/utils/debounce.cjs.map +1 -1
- package/dist/utils/debounce.d.ts +4 -1
- package/dist/utils/debounce.js +11 -8
- package/dist/utils/debounce.js.map +1 -1
- package/dist/utils/index.cjs +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +36 -33
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/router.cjs +2 -0
- package/dist/utils/router.cjs.map +1 -0
- package/dist/utils/router.d.ts +12 -0
- package/dist/utils/router.js +10 -0
- package/dist/utils/router.js.map +1 -0
- package/dist/utils/string.cjs +1 -1
- package/dist/utils/string.cjs.map +1 -1
- package/dist/utils/string.d.ts +1 -0
- package/dist/utils/string.js +10 -9
- package/dist/utils/string.js.map +1 -1
- package/package.json +38 -23
- package/dist/components/Field/useAriaIds.cjs +0 -2
- package/dist/components/Field/useAriaIds.cjs.map +0 -1
- package/dist/components/Field/useAriaIds.d.ts +0 -8
- package/dist/components/Field/useAriaIds.js +0 -15
- package/dist/components/Field/useAriaIds.js.map +0 -1
- package/dist/components/UNSTABLE_Attachment/UNSTABLE_Attachment.cjs +0 -2
- package/dist/components/UNSTABLE_Attachment/UNSTABLE_Attachment.cjs.map +0 -1
- package/dist/components/UNSTABLE_Attachment/UNSTABLE_Attachment.d.ts +0 -8
- package/dist/components/UNSTABLE_Attachment/UNSTABLE_Attachment.js +0 -42
- package/dist/components/UNSTABLE_Attachment/UNSTABLE_Attachment.js.map +0 -1
- package/dist/components/UNSTABLE_Attachment/UNSTABLE_AttachmentActionButton.cjs +0 -2
- package/dist/components/UNSTABLE_Attachment/UNSTABLE_AttachmentActionButton.cjs.map +0 -1
- package/dist/components/UNSTABLE_Attachment/UNSTABLE_AttachmentActionButton.d.ts +0 -8
- package/dist/components/UNSTABLE_Attachment/UNSTABLE_AttachmentActionButton.js +0 -30
- package/dist/components/UNSTABLE_Attachment/UNSTABLE_AttachmentActionButton.js.map +0 -1
- package/dist/components/UNSTABLE_Attachment/UNSTABLE_AttachmentDismissButton.cjs +0 -2
- package/dist/components/UNSTABLE_Attachment/UNSTABLE_AttachmentDismissButton.cjs.map +0 -1
- package/dist/components/UNSTABLE_Attachment/UNSTABLE_AttachmentDismissButton.d.ts +0 -8
- package/dist/components/UNSTABLE_Attachment/UNSTABLE_AttachmentDismissButton.js +0 -29
- package/dist/components/UNSTABLE_Attachment/UNSTABLE_AttachmentDismissButton.js.map +0 -1
- package/dist/components/UNSTABLE_Attachment/UNSTABLE_AttachmentImagePreview.cjs +0 -2
- package/dist/components/UNSTABLE_Attachment/UNSTABLE_AttachmentImagePreview.cjs.map +0 -1
- package/dist/components/UNSTABLE_Attachment/UNSTABLE_AttachmentImagePreview.d.ts +0 -8
- package/dist/components/UNSTABLE_Attachment/UNSTABLE_AttachmentImagePreview.js +0 -29
- package/dist/components/UNSTABLE_Attachment/UNSTABLE_AttachmentImagePreview.js.map +0 -1
- package/dist/components/UNSTABLE_Attachment/constants.cjs +0 -2
- package/dist/components/UNSTABLE_Attachment/constants.cjs.map +0 -1
- package/dist/components/UNSTABLE_Attachment/constants.d.ts +0 -9
- package/dist/components/UNSTABLE_Attachment/constants.js +0 -13
- package/dist/components/UNSTABLE_Attachment/constants.js.map +0 -1
- package/dist/components/UNSTABLE_Attachment/index.cjs +0 -2
- package/dist/components/UNSTABLE_Attachment/index.d.ts +0 -8
- package/dist/components/UNSTABLE_Attachment/index.js +0 -20
- package/dist/components/UNSTABLE_Attachment/types.d.ts +0 -42
- package/dist/components/UNSTABLE_Attachment/useAttachmentImageStyles.cjs +0 -2
- package/dist/components/UNSTABLE_Attachment/useAttachmentImageStyles.cjs.map +0 -1
- package/dist/components/UNSTABLE_Attachment/useAttachmentImageStyles.d.ts +0 -18
- package/dist/components/UNSTABLE_Attachment/useAttachmentImageStyles.js +0 -22
- package/dist/components/UNSTABLE_Attachment/useAttachmentImageStyles.js.map +0 -1
- package/dist/components/UNSTABLE_Attachment/useAttachmentStyleProps.cjs +0 -2
- package/dist/components/UNSTABLE_Attachment/useAttachmentStyleProps.cjs.map +0 -1
- package/dist/components/UNSTABLE_Attachment/useAttachmentStyleProps.d.ts +0 -21
- package/dist/components/UNSTABLE_Attachment/useAttachmentStyleProps.js +0 -24
- package/dist/components/UNSTABLE_Attachment/useAttachmentStyleProps.js.map +0 -1
- package/dist/components/UNSTABLE_Attachment.d.ts +0 -2
- package/dist/hooks/useAriaDescribedBy.cjs +0 -2
- package/dist/hooks/useAriaDescribedBy.cjs.map +0 -1
- package/dist/hooks/useAriaDescribedBy.d.ts +0 -5
- package/dist/hooks/useAriaDescribedBy.js +0 -7
- package/dist/hooks/useAriaDescribedBy.js.map +0 -1
- /package/dist/components/{UNSTABLE_Attachment → CharacterCounter}/index.cjs.map +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 u(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var d,f={exports:{}};var m,h=(d||(d=1,m=f,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}m.exports?(t.default=t,m.exports=t):window.classNames=t}()),f.exports);const y=u(h),g="production",b=(e,t)=>{if(process.env.NODE_ENV!==g){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:"768px",desktop:"1280px"},P="spirit-",S={xsmall:{maxWidth:"480px"},small:{maxWidth:"640px"},medium:{maxWidth:"768px"},large:{maxWidth:"1024px"},xlarge:{maxWidth:"1280px"},padding:{mobile:"16px",tablet:"32px",desktop:"32px"},maxWidth:"1280px"},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)"}}},w={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)"}},N={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(w),B=A(N),H={BASIC:"basic",SUBTLE:"subtle"},U={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"},Q={BOX:"box",PILL:"pill"},K={HORIZONTAL:"horizontal",VERTICAL:"vertical"},Z={...K,HORIZONTAL_REVERSED:"horizontal-reversed"};var J=(e=>(e.X="x",e.Y="y",e))(J||{});const ee=e=>e===K.HORIZONTAL,te={START:"start",END:"end"},ne={CONTAIN:"contain",COVER:"cover"},re={LEFT:"left",RIGHT:"right",TOP:"top",BOTTOM:"bottom"},oe={backgroundGradient:"bg-gradient"},se={borderRadius:"rounded"},ie={margin:"m",marginTop:"mt",marginRight:"mr",marginBottom:"mb",marginLeft:"ml",marginX:"mx",marginY:"my"},ae={padding:"p",paddingBottom:"pb",paddingLeft:"pl",paddingRight:"pr",paddingTop:"pt",paddingX:"px",paddingY:"py"},le={isTextBalanced:"text-wrap-pretty",textAlignment:"text",textHyphens:"text-hyphens",textWordBreak:"text-word-break"},ce={isTextBalanced:"text-wrap-balance"},pe={hideOn:"d",hideFrom:"d"},ue={theme:""},de=t.createContext(void 0),fe=de.Provider,me=de.Consumer,he={...V,AUTO:"auto"},ye="background",ge="both",be="icon",ve={ALWAYS:"always",HOVER:"hover",NEVER:"never"},xe="auto",Te="mobile";var Pe=(e=>(e.TABLET="tablet",e.DESKTOP="desktop",e))(Pe||{});const Se={CLICK:"click",HOVER:"hover",FOCUS:"focus",MANUAL:"manual",OUTSIDE_PRESS:"outside-press",ESCAPE_KEY:"escape-key"},Ee={LINES:"lines",WORDS:"words",CHARACTERS:"characters"},Ce=e=>null==e,we=e=>"string"==typeof e&&""===e.trim(),Ne=e=>Array.isArray(e)&&0===e.length,Ae=e=>"object"==typeof e&&null!==e&&0===Object.keys(e).length,_e=e=>{if("object"==typeof e&&null!==e)for(const t in e)if(Object.hasOwnProperty.call(e,t))return!0;return!1},Re=e=>!!Ce(e)||(!!we(e)||(!!Ne(e)||(!!Ae(e)||(_e(e),!1)))),ke=e=>t=>null!=e&&""!==e?`${e}-${t}`:t,Oe=e=>t=>`${t}--${e}`,$e=e=>t=>`${t}--${e}`,je=(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},De=(...e)=>e.reduceRight(((e,t)=>(...n)=>t(e(...n))),(e=>e)),Le=(e,t)=>{let n,r=!1;return o=>{r||(r=!0,n&&clearTimeout(n),n=setTimeout((()=>{e(o),r=!1}),t))}};var Ie,Me={},Fe={},Be={},He={},Ue={};function ze(){return Ie||(Ie=1,e=Ue,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),Ue;var e,t,n}var Ve,We,Ge={};function qe(){if(Ve)return Ge;Ve=1;var e=Ge&&Ge.__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=Ge&&Ge.__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(Ge,"__esModule",{value:!0}),Ge.cloneNode=Ge.hasChildren=Ge.isDocument=Ge.isDirective=Ge.isComment=Ge.isText=Ge.isCDATA=Ge.isTag=Ge.Element=Ge.Document=Ge.CDATA=Ge.NodeWithChildren=Ge.ProcessingInstruction=Ge.Comment=Ge.Text=Ge.DataNode=Ge.Node=void 0;var n=ze(),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}();Ge.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);Ge.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);Ge.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);Ge.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);Ge.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);Ge.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);Ge.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);Ge.Document=p;var u=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 d(e){return(0,n.isTag)(e)}function f(e){return e.type===n.ElementType.CDATA}function m(e){return e.type===n.ElementType.Text}function h(e){return e.type===n.ElementType.Comment}function y(e){return e.type===n.ElementType.Directive}function g(e){return e.type===n.ElementType.Root}function b(e,n){var r;if(void 0===n&&(n=!1),m(e))r=new s(e.data);else if(h(e))r=new i(e.data);else if(d(e)){var o=n?v(e.children):[],l=new u(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(f(e)){o=n?v(e.children):[];var b=new c(o);o.forEach((function(e){return e.parent=b})),r=b}else if(g(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(!y(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 Ge.Element=u,Ge.isTag=d,Ge.isCDATA=f,Ge.isText=m,Ge.isComment=h,Ge.isDirective=y,Ge.isDocument=g,Ge.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},Ge.cloneNode=b,Ge}function Xe(){return We||(We=1,function(e){var t=He&&He.__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=He&&He.__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=ze(),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}(He)),He}var Ye,Qe,Ke,Ze,Je={};function et(){if(Qe)return Be;Qe=1,Object.defineProperty(Be,"__esModule",{value:!0}),Be.formatAttributes=r,Be.escapeSpecialCharacters=function(e){return e.replace(n.CARRIAGE_RETURN_REGEX,n.CARRIAGE_RETURN_PLACEHOLDER)},Be.revertEscapedCharacters=s,Be.formatDOM=function e(n,i,a){void 0===i&&(i=null);for(var l,c=[],p=0,u=n.length;p<u;p++){var d=n[p];switch(d.nodeType){case 1:var f=o(d.nodeName);(l=new t.Element(f,r(d.attributes))).children=e("template"===f?d.content.childNodes:d.childNodes,l);break;case 3:l=new t.Text(s(d.nodeValue));break;case 8:l=new t.Comment(d.nodeValue);break;default:continue}var m=c[p-1]||null;m&&(m.next=l),l.parent=i,l.prev=m,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=Xe(),n=(Ye||(Ye=1,e=Je,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")),Je);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 Be}const tt=u(function(){if(Ze)return Me;Ze=1;var e=Me&&Me.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Me,"__esModule",{value:!0}),Me.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(Ke)return Fe;Ke=1,Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.default=function(c){var p,u,f=(c=(0,e.escapeSpecialCharacters)(c)).match(o),m=f&&f[1]?f[1].toLowerCase():"";switch(m){case t:var h=l(c);return s.test(c)||null===(p=null==(g=h.querySelector(n))?void 0:g.parentNode)||void 0===p||p.removeChild(g),i.test(c)||null===(u=null==(g=h.querySelector(r))?void 0:g.parentNode)||void 0===u||u.removeChild(g),h.querySelectorAll(t);case n:case r:var y=a(c).querySelectorAll(m);return i.test(c)&&s.test(c)?y[0].parentNode.childNodes:y;default:return d?d(c):(g=a(c,r).querySelector(r)).childNodes;var g}};var e=et(),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 u=document.implementation.createHTMLDocument();a=function(e,t){if(t){var n=u.documentElement.querySelector(t);return n&&(n.innerHTML=e),u}return u.documentElement.innerHTML=e,u}}var d,f="object"==typeof document&&document.createElement("template");return f&&f.content&&(d=function(e){return f.innerHTML=e,f.content.childNodes}),Fe}()),n=et(),r=/<(![a-zA-Z\s]+)>/;return Me}()),nt=tt.default||tt;var rt,ot,st={},it={},at={},lt={};function ct(){if(ot)return at;ot=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}=(rt||(rt=1,lt.SAME=0,lt.CAMELCASE=1,lt.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}),lt),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 at.BOOLEAN=3,at.BOOLEANISH_STRING=2,at.NUMERIC=5,at.OVERLOADED_BOOLEAN=4,at.POSITIVE_NUMERIC=6,at.RESERVED=0,at.STRING=1,at.getPropertyInfo=function(e){return t.hasOwnProperty(e)?t[e]:null},at.isCustomAttribute=a,at.possibleStandardNames=l,at}var pt,ut,dt,ft={},mt={},ht={};function yt(){if(dt)return ht;dt=1;var e=ht&&ht.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ht,"__esModule",{value:!0});var t=e(function(){if(ut)return pt;ut=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 pt=function(a,p){if("string"!=typeof a)throw new TypeError("First argument must be a string");if(!a)return[];p=p||{};var u=1,d=1;function f(e){var n=e.match(t);n&&(u+=n.length);var r=e.lastIndexOf("\n");d=~r?e.length-r:d+e.length}function m(){var e={line:u,column:d};return function(t){return t.position=new h(e),b(),t}}function h(e){this.start=e,this.end={line:u,column:d},this.source=p.source}function y(e){var t=new Error(p.source+":"+u+":"+d+": "+e);if(t.reason=e,t.filename=p.source,t.line=u,t.column=d,t.source=a,!p.silent)throw t}function g(e){var t=e.exec(a);if(t){var n=t[0];return f(n),a=a.slice(n.length),t}}function b(){g(n)}function v(e){var t;for(e=e||[];t=x();)!1!==t&&e.push(t);return e}function x(){var e=m();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 y("End of comment missing");var n=a.slice(2,t-2);return d+=2,f(n),a=a.slice(t),d+=2,e({type:"comment",comment:n})}}function T(){var t=m(),n=g(r);if(n){if(x(),!g(o))return y("property missing ':'");var a=g(s),p=t({type:"declaration",property:c(n[0].replace(e,l)),value:a?c(a[0].replace(e,l)):l});return g(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 ht.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},ht}var gt,bt,vt,xt,Tt,Pt={};function St(){if(gt)return Pt;gt=1,Object.defineProperty(Pt,"__esModule",{value:!0}),Pt.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 Pt.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))},Pt}function Et(){return vt||(vt=1,function(e){var n=ft&&ft.__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(bt)return mt;bt=1;var e=mt&&mt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(mt,"__esModule",{value:!0});var t=e(yt()),n=St();return mt.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},mt}()),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}}(ft)),ft}const Ct=u(function(){if(Tt)return st;Tt=1;var e=st&&st.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(st,"__esModule",{value:!0});var n=t,r=e(function(){if(xt)return it;xt=1,Object.defineProperty(it,"__esModule",{value:!0});var e=ct(),t=Et(),n=["checked","value"],r=["input","select","textarea"],o={reset:!0,submit:!0};function s(t){return e.possibleStandardNames[t]}return it.default=function(i,a){void 0===i&&(i={});var l={},c=Boolean(i.type&&o[i.type]);for(var p in i){var u=i[p];if((0,e.isCustomAttribute)(p))l[p]=u;else{var d=p.toLowerCase(),f=s(d);if(f){var m=(0,e.getPropertyInfo)(f);switch(n.includes(f)&&r.includes(a)&&!c&&(f=s("default"+d)),l[f]=u,m&&m.type){case e.BOOLEAN:l[f]=!0;break;case e.OVERLOADED_BOOLEAN:""===u&&(l[f]=!0)}}else t.PRESERVE_CUSTOM_ATTRIBUTES&&(l[p]=u)}}return(0,t.setStyleProp)(i.style,l),l},it}()),o=Et(),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 st.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,u=p.cloneElement,d=p.createElement,f=p.isValidElement,m=t.length,h=0;h<m;h++){var y=t[h];if(l){var g=n.replace(y,h);if(f(g)){m>1&&(g=u(g,{key:g.key||h})),a.push(c(g,y,h));continue}}if("text"!==y.type){var b=y,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(y.type){case"script":case"style":y.children[0]&&(v.dangerouslySetInnerHTML={__html:y.children[0].data});break;case"tag":"textarea"===y.name&&y.children[0]?v.defaultValue=y.children[0].data:y.children&&y.children.length&&(x=e(y.children,n));break;default:continue}m>1&&(v.key=h),a.push(c(d(y.name,v,x),y,h))}else{var T=!y.data.trim().length;if(T&&y.parent&&!(0,o.canTextBeChildOfNode)(y.parent))continue;if((null==n?void 0:n.trim)&&T)continue;a.push(c(y.data,y,h))}}return 1===a.length?a[0]:a},st}()),wt=Ct.default||Ct,Nt=e=>{if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];const t="function"==typeof nt.default?nt.default:nt;return("function"==typeof wt.default?wt.default:wt)(t(e))};function At(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}}function _t(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function Rt(e,t){return t?_t(t)?Object.entries(t).map((([t,n])=>void 0===n?"":"mobile"===t?`${e}--${n}`:`${e}--${t}--${n}`)).filter((e=>""!==e)):[`${e}--${t}`]:[]}const kt="undefined"==typeof window,Ot=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),$t=e=>e.replace(/-([a-z])/g,(e=>e[1].toUpperCase())),jt=e=>{if("object"==typeof e&&null!==e){const t={};for(const[n,r]of Object.entries(e))t[n]="string"==typeof r?$t(r):r;return t}return e},Dt=e=>"string"==typeof e?$t(e):"object"==typeof e&&null!==e?jt(e):e;function Lt(e){return"string"!=typeof e?e:e.split("-").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join("")}function It(e,t,n){return`${e}--${n||""}${n?Lt(t):t}`}function Mt(e,t,n){return Object.keys(t).map((r=>{const o="mobile"===r?"":`--${r}`,s=t[r];return`${e}${o}--${n||""}${n?Lt(s):s}`})).join(" ")}function Ft(e,t,n){const r=function(e){return e&&"object"==typeof e}(t)?Mt:It;return r(e,t,n)}const Bt="-",Ht=e=>(e=>"string"==typeof e&&e.startsWith("space-"))(e)?(e=>e===xe?xe:e.replace(/[^0-9]/g,""))(e):e,Ut=(e,t,n,r)=>{switch(e){case"hideOn":return((e,t,n)=>(Array.isArray(t)?t:[t]).map((t=>ke(n)(`${e}${Bt}only${Bt}${t}${Bt}none`))))(t,n,r);case"hideFrom":return((e,t,n)=>{const r=t===Te?"":`${Bt}${t}`;return[ke(n)(`${e}${r}${Bt}none`)]})(t,n,r);default:return[]}},zt=(e,t,n,r)=>{if(t===ue.theme){if("string"!=typeof n)return[];const e=Ot(n);return[ke(r)(e)]}return e in pe?Ut(e,t,n,r):"boolean"==typeof n?n?[ke(r)(t)]:[]:"string"==typeof n?[ke(r)(`${t}-${Ht(n)}`)]:((e,t,n)=>Object.keys(t).reduce(((r,o)=>{const s=t[o];if("string"==typeof s){const t=Ht(s),i=o===Te?"":`${Bt}${o}`;r.push(ke(n)(`${e}${i}${Bt}${t}`))}return r}),[]))(t,n,r)},Vt=(e,t,n,r={includesKey:!0})=>{const o=(s=e,i=t,Object.keys(s).includes(i));var s,i;return r.includesKey?o&&!Re(n):!o};function Wt(e,n){const r=t.useContext(de),{UNSAFE_className:o,UNSAFE_style:s,...i}=e,a={theme:ue.theme,...n??{}},{styleUtilities:l,props:c}=((e,t="",n={})=>{const r={...ie,...pe,...ue,...n},o=Object.entries(e);return{styleUtilities:o.reduce(((e,[n,o])=>{if(Vt(r,n,o)){const s=r[n];return[...e,...zt(n,s,o,t)]}return e}),[]),props:o.reduce(((e,[t,n])=>Vt(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:y(o,...l)||void 0},props:c}}function Gt(e,t,n){return Ft(e,t&&"object"==typeof t?{mobile:"stretch",...t}:t,n)}const qt=e=>t.useMemo((()=>e.length?{"aria-describedby":e.join(" ")}:{}),[e]),Xt=kt?t.useEffect:t.useLayoutEffect,Yt="cancel",Qt="keydown",Kt=(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 Xt((()=>{const t=e?.current;return t?(t.addEventListener(Yt,s),document.addEventListener(Qt,i),()=>{t.removeEventListener(Yt,s),document.removeEventListener(Qt,i)}):()=>{}}),[e,s]),s},Zt=e=>{const n=t.useContext(de);let r=e;return e&&n?r=ke(n)(e):n&&(r=n),r},Jt=(e,n)=>t.useCallback((t=>{e?t.preventDefault():n&&n(t)}),[e,n]),en=({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};Xt((()=>(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])},tn=({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)}),[])},nn=(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},rn=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)}}},on={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"},textField:{password:{show:"Show password",hide:"Hide password"}},splitButton:{dropdown:"More"}},sn=(e,t)=>Object.entries(t).reduce(((e,[t,n])=>{const r=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return e.replace(new RegExp(`\\{${r}\\}`,"g"),String(n))}),e),an=(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},ln=()=>({t:(e,t)=>{const n=an(on,e);return t?sn(n,t):n}}),cn=t.createContext(void 0),pn=cn.Provider,un=cn.Consumer,dn=e=>{const n=t.useContext(cn);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 fn(e,t,n="default"){return e&&t[e]?t[e]:t[n]}function mn(e,t){return t?Ft(e,t,"inputPosition"):""}const hn=e=>{const n=t.useRef(null);t.useEffect((()=>{e?n.current=document.activeElement:n?.current&&n.current.focus()}),[e])};function yn(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 gn={width:void 0,height:void 0};function bn(e){const{ref:n,box:r="border-box"}=e,[{width:o,height:s},i]=t.useState(gn),a=function(){const e=t.useRef(!1);return t.useEffect((()=>(e.current=!0,()=>{e.current=!1})),[]),t.useCallback((()=>e.current),[])}(),l=t.useRef({...gn}),c=t.useRef(void 0);return c.current=e.onResize,t.useEffect((()=>{if(kt)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=yn(e,t,"inlineSize"),o=yn(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 vn="is-scrolling-disabled",xn=()=>{const{body:e}=document;e.style.paddingRight="",e.classList.remove(vn)},Tn=(e,n)=>{t.useEffect((()=>(n?(()=>{const{body:e}=document,t=window.innerWidth-e.clientWidth;e.style.paddingRight=`${t}px`,e.classList.add(vn)})():e.current&&!e.current.open&&xn(),()=>{xn()})),[n,e])};function Pn(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 Sn="--symmetrical";function En(e,t){if("object"!=typeof t||null===t)return{isSymmetricalActive:!0===t,symmetricalClassName:t?`${e}${Sn}`:""};const{classes:n}=Object.keys(T).reduce(function(e,t){return(n,r)=>{if(r in t){const o=t[r],s=r===Te?"":`--${r}`;if(o)return{classes:[...n.classes,`${e}${s}${Sn}`],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 Cn=(e=!1)=>{const[n,r]=t.useState(e);return[n,t.useCallback((()=>r((e=>!e))),[])]},wn="--wrap",Nn="--noWrap";function An(e,t){return"object"==typeof t&&null!==t?Object.entries(t).map((([t,n])=>`${e}${"mobile"===t?"":`--${t}`}${n?wn:Nn}`)).join(" "):`${e}${t?wn:Nn}`}const _n=()=>{const e=Zt("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`}}},Rn=t.createContext({open:void 0,toggle:()=>null}),kn=Rn.Provider;Rn.Consumer;const On=()=>t.useContext(Rn),$n=e=>{const{open:t}=On();return{isOpen:(n=e,!(!n||n!==t&&!t?.includes(n)))};var n};var jn,Dn={exports:{}},Ln={};var In,Mn,Fn={};function Bn(){return In||(In=1,"production"!==process.env.NODE_ENV&&function(){function e(t){if(null==t)return null;if("function"==typeof t)return t.$$typeof===L?null:t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case E:return"Fragment";case S:return"Portal";case w:return"Profiler";case C:return"StrictMode";case R:return"Suspense";case k:return"SuspenseList"}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 A:return(t.displayName||"Context")+".Provider";case N:return(t._context.displayName||"Context")+".Consumer";case _:var n=t.render;return(t=t.displayName)||(t=""!==(t=n.displayName||n.name||"")?"ForwardRef("+t+")":"ForwardRef"),t;case O:return null!==(n=t.displayName||null)?n:e(t.type)||"Memo";case $: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(){}function s(e){if(void 0===z)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);z=t&&t[1]||"",V=-1<e.stack.indexOf("\n at")?" (<anonymous>)":-1<e.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+z+e+V}function i(e,t){if(!e||G)return"";var n=q.get(e);if(void 0!==n)return n;G=!0,n=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var r;r=I.H,I.H=null,function(){if(0===U){m=console.log,h=console.info,y=console.warn,g=console.error,b=console.group,v=console.groupCollapsed,x=console.groupEnd;var e={configurable:!0,enumerable:!0,value:o,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}U++}();try{var i={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&"function"==typeof n.catch&&n.catch((function(){}))}}catch(e){if(e&&r&&"string"==typeof e.stack)return[e.stack,r.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var l=i.DetermineComponentFrameRoot(),c=l[0],p=l[1];if(c&&p){var u=c.split("\n"),d=p.split("\n");for(l=a=0;a<u.length&&!u[a].includes("DetermineComponentFrameRoot");)a++;for(;l<d.length&&!d[l].includes("DetermineComponentFrameRoot");)l++;if(a===u.length||l===d.length)for(a=u.length-1,l=d.length-1;1<=a&&0<=l&&u[a]!==d[l];)l--;for(;1<=a&&0<=l;a--,l--)if(u[a]!==d[l]){if(1!==a||1!==l)do{if(a--,0>--l||u[a]!==d[l]){var f="\n"+u[a].replace(" at new "," at ");return e.displayName&&f.includes("<anonymous>")&&(f=f.replace("<anonymous>",e.displayName)),"function"==typeof e&&q.set(e,f),f}}while(1<=a&&0<=l);break}}}finally{G=!1,I.H=r,function(){if(0==--U){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:F({},e,{value:m}),info:F({},e,{value:h}),warn:F({},e,{value:y}),error:F({},e,{value:g}),group:F({},e,{value:b}),groupCollapsed:F({},e,{value:v}),groupEnd:F({},e,{value:x})})}0>U&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=n}return u=(u=e?e.displayName||e.name:"")?s(u):"","function"==typeof e&&q.set(e,u),u}function a(e){if(null==e)return"";if("function"==typeof e){var t=e.prototype;return i(e,!(!t||!t.isReactComponent))}if("string"==typeof e)return s(e);switch(e){case R:return s("Suspense");case k:return s("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case _:return e=i(e.render,!1);case O:return a(e.type);case $:t=e._payload,e=e._init;try{return a(e(t))}catch(e){}}return""}function l(){var e=I.A;return null===e?null:e.getOwner()}function c(){var t=e(this.type);return Y[t]||(Y[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 p(t,n,o,s,i,a){if("string"==typeof t||"function"==typeof t||t===E||t===w||t===C||t===R||t===k||t===j||"object"==typeof t&&null!==t&&(t.$$typeof===$||t.$$typeof===O||t.$$typeof===A||t.$$typeof===N||t.$$typeof===_||t.$$typeof===B||void 0!==t.getModuleId)){var p=n.children;if(void 0!==p)if(s)if(H(p)){for(s=0;s<p.length;s++)u(p[s],t);Object.freeze&&Object.freeze(p)}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 u(p,t)}else p="",(void 0===t||"object"==typeof t&&null!==t&&0===Object.keys(t).length)&&(p+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),null===t?s="null":H(t)?s="array":void 0!==t&&t.$$typeof===P?(s="<"+(e(t.type)||"Unknown")+" />",p=" Did you accidentally export a JSX literal instead of a component?"):s=typeof t,console.error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",s,p);if(M.call(n,"key")){p=e(t);var d=Object.keys(n).filter((function(e){return"key"!==e}));s=0<d.length?"{key: someKey, "+d.join(": ..., ")+": ...}":"{key: someKey}",Q[p+s]||(d=0<d.length?"{"+d.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,p,d,p),Q[p+s]=!0)}if(p=null,void 0!==o&&(r(o),p=""+o),function(e){if(M.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),p=""+n.key),"key"in n)for(var f in o={},n)"key"!==f&&(o[f]=n[f]);else o=n;return p&&function(e,t){function n(){W||(W=!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){return n=s.ref,e={$$typeof:P,type:e,key:t,props:s,_owner:o},null!==(void 0!==n?n:null)?Object.defineProperty(e,"ref",{enumerable:!1,get:c}):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.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}(t,p,a,0,l(),o)}function u(e,t){if("object"==typeof e&&e&&e.$$typeof!==X)if(H(e))for(var n=0;n<e.length;n++){var r=e[n];d(r)&&f(r,t)}else if(d(e))e._store&&(e._store.validated=1);else if(null===e||"object"!=typeof e?n=null:n="function"==typeof(n=D&&e[D]||e["@@iterator"])?n:null,"function"==typeof n&&n!==e.entries&&(n=n.call(e))!==e)for(;!(e=n.next()).done;)d(e.value)&&f(e.value,t)}function d(e){return"object"==typeof e&&null!==e&&e.$$typeof===P}function f(t,n){if(t._store&&!t._store.validated&&null==t.key&&(t._store.validated=1,n=function(t){var n="",r=l();return r&&(r=e(r.type))&&(n="\n\nCheck the render method of `"+r+"`."),n||(t=e(t))&&(n="\n\nCheck the top-level render call using <"+t+">."),n}(n),!K[n])){K[n]=!0;var r="";t&&null!=t._owner&&t._owner!==l()&&(r=null,"number"==typeof t._owner.tag?r=e(t._owner.type):"string"==typeof t._owner.name&&(r=t._owner.name),r=" It was passed a child from "+r+".");var o=I.getCurrentStack;I.getCurrentStack=function(){var e=a(t.type);return o&&(e+=o()||""),e},console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',n,r),I.getCurrentStack=o}}var m,h,y,g,b,v,x,T=t,P=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),N=Symbol.for("react.consumer"),A=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),k=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),j=Symbol.for("react.offscreen"),D=Symbol.iterator,L=Symbol.for("react.client.reference"),I=T.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,M=Object.prototype.hasOwnProperty,F=Object.assign,B=Symbol.for("react.client.reference"),H=Array.isArray,U=0;o.__reactDisabledLog=!0;var z,V,W,G=!1,q=new("function"==typeof WeakMap?WeakMap:Map),X=Symbol.for("react.client.reference"),Y={},Q={},K={};Fn.Fragment=E,Fn.jsx=function(e,t,n,r,o){return p(e,t,n,!1,0,o)},Fn.jsxs=function(e,t,n,r,o){return p(e,t,n,!0,0,o)}}()),Fn}var Hn=(Mn||(Mn=1,"production"===process.env.NODE_ENV?Dn.exports=function(){if(jn)return Ln;jn=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 Ln.Fragment=t,Ln.jsx=n,Ln.jsxs=n,Ln}():Dn.exports=Bn()),Dn.exports);const Un=t.forwardRef(((e,t)=>{const{children:n,elementType:r="section",open:o,toggle:s,...i}=e,a=r,{classProps:l}=_n(),{styleProps:c,props:p}=Wt(i),u=At(a,{classProps:l.root,styleProps:c}),d={open:o,toggle:s};return Hn.jsx(a,{...p,...u,ref:t,children:Hn.jsx(kn,{value:d,children:n})})}));Un.spiritComponent="Accordion",Un.displayName="Accordion";const zn=t.createContext({id:""}),Vn=zn.Provider;zn.Consumer;const Wn=()=>t.useContext(zn),Gn=t.forwardRef(((e,t)=>{const{children:n,elementType:r="article",id:o,...s}=e,i=r,{classProps:a}=_n(),{styleProps:l,props:c}=Wt(s),p=At(i,{classProps:a.item,styleProps:l}),u={id:o};return Hn.jsx(i,{...c,id:o,...p,ref:t,children:Hn.jsx(Vn,{value:u,children:n})})}));Gn.spiritComponent="AccordionItem",Gn.displayName="AccordionItem";const qn=(e,t)=>{const n={};return"object"==typeof t&&Object.entries(t).forEach((([t,r])=>{n[`${e}${"mobile"===t?"":`-${t}`}`]=`${r?.toString()}px`})),n},Xn=e=>{const{boxSize:t,color:n,name:r,...o}=e,s=`--${P}icon`,i=String(r).includes("-dualtone")&&!n?B.PRIMARY:n,a=Zt("Icon"),l=`${a}--${i}`;return{classProps:y(a,{[l]:n||i}),iconStyleProps:{...t?qn(`${s}-size`,t):{}},props:o}},Yn={ariaHidden:!0,boxSize:24},Qn=t.forwardRef(((e,t)=>{const n={...Yn,...e},{boxSize:r,name:o,title:s,ariaHidden:i,...a}=n;let l=dn(o);const c=(e=>"object"==typeof e?e.mobile??24:e??24)(r),{classProps:p,iconStyleProps:u,props:d}=Xn({boxSize:r,name:o,...a}),{styleProps:f,props:m}=Wt(d),h=At("svg",{classProps:p,iconStyleProps:u,styleProps:f});return s&&(l=`<title>${s}</title>${l}`),Hn.jsx("svg",{...m,...h,viewBox:"0 0 24 24",fill:"none",width:c,height:c,"aria-hidden":i,ref:t,children:Nt(l)})}));Qn.spiritComponent="Icon",Qn.displayName="Icon";const Kn={elementType:"h3"},Zn=t.forwardRef(((e,t)=>{const n={...Kn,...e},{elementType:r="h3",children:o,slot:s,...i}=n,a=r,{classProps:l}=_n(),{toggle:c}=On(),{id:u}=Wn(),{styleProps:d,props:f}=Wt(i),{isOpen:m}=$n(u),{triggerProps:h,headerProps:y}=p({id:u,isOpen:m}),g=At(a,{classProps:l.header,styleProps:d});return Hn.jsxs(a,{...f,...g,...y,ref:t,children:[Hn.jsx("button",{type:"button",className:l.toggle,onClick:()=>{c&&u&&c(u)},...h,children:o}),Hn.jsxs("span",{className:l.side,children:[s&&Hn.jsx("span",{className:l.slot,children:s}),Hn.jsx("span",{className:l.icon,children:Hn.jsx(Qn,{name:"chevron-down"})})]})]})}));function Jn(e,t){return(Jn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}Zn.spiritComponent="AccordionHeader",Zn.displayName="AccordionHeader";var er,tr={exports:{}},nr={exports:{}},rr={};var or,sr,ir,ar,lr,cr,pr,ur,dr,fr,mr,hr,yr,gr,br,vr={};function xr(){return sr||(sr=1,"production"===process.env.NODE_ENV?nr.exports=function(){if(er)return rr;er=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,u=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function v(e){if("object"==typeof e&&null!==e){var d=e.$$typeof;switch(d){case t:switch(e=e.type){case l:case c:case r:case s:case o:case u:return e;default:switch(e=e&&e.$$typeof){case a:case p:case m:case f:case i:return e;default:return d}}case n:return d}}}function x(e){return v(e)===c}return rr.AsyncMode=l,rr.ConcurrentMode=c,rr.ContextConsumer=a,rr.ContextProvider=i,rr.Element=t,rr.ForwardRef=p,rr.Fragment=r,rr.Lazy=m,rr.Memo=f,rr.Portal=n,rr.Profiler=s,rr.StrictMode=o,rr.Suspense=u,rr.isAsyncMode=function(e){return x(e)||v(e)===l},rr.isConcurrentMode=x,rr.isContextConsumer=function(e){return v(e)===a},rr.isContextProvider=function(e){return v(e)===i},rr.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},rr.isForwardRef=function(e){return v(e)===p},rr.isFragment=function(e){return v(e)===r},rr.isLazy=function(e){return v(e)===m},rr.isMemo=function(e){return v(e)===f},rr.isPortal=function(e){return v(e)===n},rr.isProfiler=function(e){return v(e)===s},rr.isStrictMode=function(e){return v(e)===o},rr.isSuspense=function(e){return v(e)===u},rr.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===s||e===o||e===u||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===f||e.$$typeof===i||e.$$typeof===a||e.$$typeof===p||e.$$typeof===y||e.$$typeof===g||e.$$typeof===b||e.$$typeof===h)},rr.typeOf=v,rr}():nr.exports=(or||(or=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,u=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function v(e){if("object"==typeof e&&null!==e){var d=e.$$typeof;switch(d){case t:var h=e.type;switch(h){case l:case c:case r:case s:case o:case u:return h;default:var y=h&&h.$$typeof;switch(y){case a:case p:case m:case f:case i:return y;default:return d}}case n:return d}}}var x=l,T=c,P=a,S=i,E=t,C=p,w=r,N=m,A=f,_=n,R=s,k=o,O=u,$=!1;function j(e){return v(e)===c}vr.AsyncMode=x,vr.ConcurrentMode=T,vr.ContextConsumer=P,vr.ContextProvider=S,vr.Element=E,vr.ForwardRef=C,vr.Fragment=w,vr.Lazy=N,vr.Memo=A,vr.Portal=_,vr.Profiler=R,vr.StrictMode=k,vr.Suspense=O,vr.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},vr.isConcurrentMode=j,vr.isContextConsumer=function(e){return v(e)===a},vr.isContextProvider=function(e){return v(e)===i},vr.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},vr.isForwardRef=function(e){return v(e)===p},vr.isFragment=function(e){return v(e)===r},vr.isLazy=function(e){return v(e)===m},vr.isMemo=function(e){return v(e)===f},vr.isPortal=function(e){return v(e)===n},vr.isProfiler=function(e){return v(e)===s},vr.isStrictMode=function(e){return v(e)===o},vr.isSuspense=function(e){return v(e)===u},vr.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===s||e===o||e===u||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===f||e.$$typeof===i||e.$$typeof===a||e.$$typeof===p||e.$$typeof===y||e.$$typeof===g||e.$$typeof===b||e.$$typeof===h)},vr.typeOf=v}()),vr)),nr.exports}function Tr(){if(ar)return ir;ar=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return ir=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},ir}function Pr(){if(cr)return lr;cr=1;return lr="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Sr(){return ur?pr:(ur=1,pr=Function.call.bind(Object.prototype.hasOwnProperty))}function Er(){if(fr)return dr;fr=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=Pr(),n={},r=Sr();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 u=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 u.name="Invariant Violation",u}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 d=l?l():"";e("Failed "+i+" type: "+p.message+(null!=d?d:""))}}}return o.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},dr=o}function Cr(){if(hr)return mr;hr=1;var e=xr(),t=Tr(),n=Pr(),r=Sr(),o=Er(),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){}}),mr=function(a,l){var c="function"==typeof Symbol&&Symbol.iterator;var p="<<anonymous>>",u={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:m(i),arrayOf:function(e){return m((function(t,r,o,s,i){if("function"!=typeof e)return new f("Property `"+i+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var a=t[r];if(!Array.isArray(a))return new f("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:m((function(e,t,n,r,o){var s=e[t];return a(s)?null:new f("Invalid "+r+" `"+o+"` of type `"+b(s)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:m((function(t,n,r,o,s){var i=t[n];return e.isValidElementType(i)?null:new f("Invalid "+o+" `"+s+"` of type `"+b(i)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(e){return m((function(t,n,r,o,s){if(!(t[n]instanceof e)){var i=e.name||p;return new f("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:m((function(e,t,n,r,o){return g(e[t])?null:new f("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return m((function(t,o,s,i,a){if("function"!=typeof e)return new f("Property `"+a+"` of component `"+s+"` has invalid PropType notation inside objectOf.");var l=t[o],c=b(l);if("object"!==c)return new f("Invalid "+i+" `"+a+"` of type `"+c+"` supplied to `"+s+"`, expected an object.");for(var p in l)if(r(l,p)){var u=e(l,p,s,i,a+"."+p,n);if(u instanceof Error)return u}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 m((function(t,n,r,o,s){for(var i=t[n],a=0;a<e.length;a++)if(d(i,e[a]))return null;var l=JSON.stringify(e,(function(e,t){return"symbol"===v(t)?String(t):t}));return new f("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 m((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 f("Invalid "+i+" `"+a+"` supplied to `"+s+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")}))},shape:function(e){return m((function(t,r,o,s,i){var a=t[r],l=b(a);if("object"!==l)return new f("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 y(o,s,i,c,v(p));var u=p(a,c,o,s,i+"."+c,n);if(u)return u}return null}))},exact:function(e){return m((function(o,s,i,a,l){var c=o[s],p=b(c);if("object"!==p)return new f("Invalid "+a+" `"+l+"` of type `"+p+"` supplied to `"+i+"`, expected `object`.");var u=t({},o[s],e);for(var d in u){var m=e[d];if(r(e,d)&&"function"!=typeof m)return y(i,a,l,d,v(m));if(!m)return new f("Invalid "+a+" `"+l+"` key `"+d+"` supplied to `"+i+"`.\nBad object: "+JSON.stringify(o[s],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var h=m(c,d,i,a,l+"."+d,n);if(h)return h}return null}))}};function d(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function f(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function m(e){if("production"!==process.env.NODE_ENV)var t={},r=0;function o(o,i,a,c,u,d,m){if(c=c||p,d=d||a,m!==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 y=c+":"+a;!t[y]&&r<3&&(s("You are manually calling a React.PropTypes validation function for the `"+d+"` 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[y]=!0,r++)}}return null==i[a]?o?null===i[a]?new f("The "+u+" `"+d+"` is marked as required in `"+c+"`, but its value is `null`."):new f("The "+u+" `"+d+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(i,a,c,u,d)}var i=o.bind(null,!1);return i.isRequired=o.bind(null,!0),i}function h(e){return m((function(t,n,r,o,s,i){var a=t[n];return b(a)!==e?new f("Invalid "+o+" `"+s+"` of type `"+v(a)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null}))}function y(e,t,n,r,o){return new f((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function g(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(g);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(!g(n.value))return!1}else for(;!(n=r.next()).done;){var o=n.value;if(o&&!g(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 f.prototype=Error.prototype,u.checkPropTypes=o,u.resetWarningCache=o.resetWarningCache,u.PropTypes=u,u},mr}function wr(){if(gr)return yr;gr=1;var e=Pr();function t(){}function n(){}return n.resetWarningCache=t,yr=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 Nr(){if(br)return tr.exports;if(br=1,"production"!==process.env.NODE_ENV){var e=xr();tr.exports=Cr()(e.isElement,true)}else tr.exports=wr()();return tr.exports}const Ar=u(Nr()),_r=!1;var Rr="production"!==process.env.NODE_ENV?Ar.oneOfType([Ar.number,Ar.shape({enter:Ar.number,exit:Ar.number,appear:Ar.number}).isRequired]):null;"production"!==process.env.NODE_ENV&&Ar.oneOfType([Ar.string,Ar.shape({enter:Ar.string,exit:Ar.string,active:Ar.string}),Ar.shape({enter:Ar.string,enterDone:Ar.string,enterActive:Ar.string,exit:Ar.string,exitDone:Ar.string,exitActive:Ar.string})]);const kr=t.createContext(null);var Or="unmounted",$r="exited",jr="entering",Dr="entered",Lr="exiting",Ir=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=$r,r.appearStatus=jr):o=Dr:o=t.unmountOnExit||t.mountOnEnter?Or:$r,r.state={status:o},r.nextCallback=null,r}o=e,(r=s).prototype=Object.create(o.prototype),r.prototype.constructor=r,Jn(r,o),s.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Or?{status:$r}: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!==jr&&n!==Dr&&(t=jr):n!==jr&&n!==Dr||(t=Lr)}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===jr){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===$r&&this.setState({status:Or})},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||_r?this.safeSetState({status:Dr},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:jr},(function(){t.props.onEntering(i,a),t.onTransitionEnd(c,(function(){t.safeSetState({status:Dr},(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&&!_r?(this.props.onExit(o),this.safeSetState({status:Lr},(function(){e.props.onExiting(o),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:$r},(function(){e.props.onExited(o)}))}))}))):this.safeSetState({status:$r},(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===Or)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(kr.Provider,{value:null},"function"==typeof r?r(e,o):t.cloneElement(t.Children.only(r),o))},s}(t.Component);function Mr(){}Ir.contextType=kr,Ir.propTypes="production"!==process.env.NODE_ENV?{nodeRef:Ar.shape({current:"undefined"==typeof Element?Ar.any:function(e,t,n,r,o,s){var i=e[t];return Ar.instanceOf(i&&"ownerDocument"in i?i.ownerDocument.defaultView.Element:Element)(e,t,n,r,o,s)}}),children:Ar.oneOfType([Ar.func.isRequired,Ar.element.isRequired]).isRequired,in:Ar.bool,mountOnEnter:Ar.bool,unmountOnExit:Ar.bool,appear:Ar.bool,enter:Ar.bool,exit:Ar.bool,timeout:function(e){var t=Rr;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:Ar.func,onEnter:Ar.func,onEntering:Ar.func,onEntered:Ar.func,onExit:Ar.func,onExiting:Ar.func,onExited:Ar.func}:{},Ir.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Mr,onEntering:Mr,onEntered:Mr,onExit:Mr,onExiting:Mr,onExited:Mr},Ir.UNMOUNTED=Or,Ir.EXITED=$r,Ir.ENTERING=jr,Ir.ENTERED=Dr,Ir.EXITING=Lr;const Fr="aria-expanded",Br="aria-controls",Hr="data-spirit-breakpoint",Ur=e=>{const{isOpen:t,collapsibleToBreakpoint:n,...r}=e;return tn({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:{[Hr]:n},trigger:{[Fr]:t,[Br]:String(r.id)}},props:r}},zr=(e,t,n)=>{const r=Zt("Collapse"),o=`${r}__content`;return{classProps:{root:y(r,e?v:""),content:o},styleProps:"span"===t?{}:{height:e?n:0}}},Vr=250,Wr={entering:"is-transitioning",entered:"",exiting:"is-transitioning",exited:""},Gr={elementType:"div",isOpen:!1,collapsibleToBreakpoint:void 0,transitionDuration:Vr},qr=e=>{const n={...Gr,...e},{elementType:r=Gr.elementType,children:o,transitionDuration:s=Vr,...i}=n,a=t.useRef(null),l=t.useRef(null),c=(e=>{const[n,r]=t.useState(void 0);return bn({ref:e,onResize:e=>{const t=e.height;r(`${t}px`)}}),n})(l),{classProps:p,styleProps:u}=zr(i.isOpen,r,c),{ariaProps:d,props:f}=Ur(i),{styleProps:m,props:h}=Wt(f),y={className:m.className,style:{...u,...m.style}};return"span"===r&&i.isOpen?o:Hn.jsx(Ir,{in:i.isOpen,nodeRef:a,timeout:s,children:e=>Hn.jsx(r,{...h,...d.root,...At(r,{classProps:p.root,styleProps:m,collapseStyleProps:y,transitioningStyles:Wr[e]}),ref:a,children:Hn.jsx(r,{ref:l,className:p.content,children:o})})})};qr.spiritComponent="Collapse";const Xr=e=>{const[n,r]=t.useState(e);return{toggleHandler:e=>{e.preventDefault(),r(!n)},toggle:r,isOpen:n}},Yr={isOpen:!1},Qr=e=>{const t={...Yr,...e},{children:n,hideOnCollapse:r,isDisposable:o,renderTrigger:s,...i}=t,{isOpen:a,toggleHandler:l}=Xr(i.isOpen),{ariaProps:c}=Ur({...i,isOpen:a}),p=r||o;return Hn.jsxs(Hn.Fragment,{children:[!s||p&&p&&a?null:s({isOpen:a,onClick:l,...c.trigger}),p&&a?n:Hn.jsx(qr,{...i,isOpen:a,children:n})]})};Qr.spiritComponent="UncontrolledCollapse";const Kr=({children:e,...t})=>{const{classProps:n}=_n(),{id:r}=Wn(),{styleProps:o,props:s}=Wt(t),{isOpen:i}=$n(r),{contentProps:a}=p({id:r,isOpen:i});return Hn.jsx(qr,{isOpen:i,...a,children:Hn.jsx("div",{...s,...o,className:y(n.content,o.className),children:e})})};Kr.spiritComponent="AccordionContent";const Zr=e=>{const{defaultOpen:t,stayOpen:n,...r}=e,{open:o,toggle:s}=i({defaultOpen:t,stayOpen:n});return Hn.jsx(Un,{...r,open:o,toggle:s})};function Jr(e){const{alignmentX:t,alignmentY:n,direction:r,spacing:o,spacingX:s,spacingY:i,isWrapping:a,...l}=e;tn({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=Zt("Flex"),p={...Pn(o,"flex",J.X),...Pn(o,"flex",J.Y),...Pn(s,"flex",J.X),...Pn(i,"flex",J.Y)},u=Ft(c,Dt(r));return{classProps:y(c,An(c,a),{[Gt(c,t,"alignmentX")]:t,[Gt(c,n,"alignmentY")]:n,[u]:r}),props:l,styleProps:p}}Zr.spiritComponent="UncontrolledAccordion",Zr.displayName="UncontrolledAccordion";const eo={alignmentX:R.STRETCH,alignmentY:O.STRETCH,direction:Z.HORIZONTAL,elementType:"div",isWrapping:!1},to=t.forwardRef(((e,t)=>{const n={...eo,...e},{elementType:r=eo.elementType,direction:o,children:s,...i}=n,a=r,{classProps:l,props:c,styleProps:p}=Jr({direction:o,...i}),{styleProps:u,props:d}=Wt({...c}),f=At(a,{classProps:l,flexStyle:p,styleProps:u,otherProps:d});return Hn.jsx(a,{...d,...f,ref:t,children:s})}));to.spiritComponent="Flex",to.displayName="Flex";const no={alignmentX:{mobile:R.STRETCH,tablet:R.LEFT},direction:{mobile:Z.VERTICAL,tablet:Z.HORIZONTAL}},ro=e=>{const{children:t,...n}=e,r={...no,...n};return Hn.jsx(to,{...r,children:t})};function oo(e){const{color:t,isCentered:n,...r}=e,o=Zt("Alert"),s=`${o}--${t}`,i=`${o}--center`;return{classProps:y(o,{[s]:t,[i]:n}),props:r}}ro.spiritComponent="ActionGroup";const so={color:"success",isCentered:!1,elementType:"div"},io=t.forwardRef(((e,t)=>{const n={...so,...e},{elementType:r,children:o,color:s,iconName:i,...a}=n,l=r,{classProps:c,props:p}=oo({color:s,...a}),{styleProps:u,props:d}=Wt(p),f=At(l,{classProps:c,styleProps:u,otherProps:d}),m=function({color:e,iconName:t}){const n=fn(e,{default:"info",success:"check-plain",informative:"info",warning:"warning",danger:"danger"});return t||n}({color:s,iconName:i,...d});return Hn.jsxs(l,{...d,...f,ref:t,children:[Hn.jsx(Qn,{name:m}),Hn.jsx("div",{children:o})]})}));io.spiritComponent="Alert",io.displayName="Alert";const ao=e=>{const{isSquare:t,size:n,...r}=e,o=Zt("Avatar"),s=`${o}--square`,i=Rt(o,n);return{classProps:y(o,...i,{[s]:t}),props:r}},lo={elementType:"div",isSquare:!1,size:W.MEDIUM},co=t.forwardRef(((e,t)=>{const n={...lo,...e},{elementType:r=lo.elementType,children:o,...s}=n,i=r,{classProps:a,props:l}=ao(s),{styleProps:c,props:p}=Wt(l),u=At(i,{classProps:a,styleProps:c});return Hn.jsx(i,{...p,...u,ref:t,children:o})}));co.spiritComponent="Avatar",co.displayName="Avatar";const po=e=>{const{backgroundColor:t,borderColor:n,borderStyle:r,borderWidth:o,textColor:s,...i}=e||{},a=Zt(`bg-${t}`),l=Zt("border-"),c=t?a:"";let p=n?n.replace("",l):"",u="";const d=o?o.replace("",l):"",f=Zt(s?`text-${s}`:"");o&&parseInt(o,10)>0&&(u=`${l}${r}`,n||(p=`${l}${$.BASIC}`));return{classProps:y(c,p,u,d,{[f]:!!s}),props:i}},uo={elementType:"div",borderStyle:D.SOLID},fo=t.forwardRef(((e,t)=>{const n={...uo,...e},{elementType:r=uo.elementType,children:o,...s}=n,i=r,{classProps:a,props:l}=po(s),{styleProps:c,props:p}=Wt(l,{...oe,...se,...ae}),u=At(i,{classProps:a,styleProps:c});return Hn.jsx(i,{...p,...u,ref:t,children:o})}));function mo(e){const{color:t,hasVisitedStyleAllowed:n,isDisabled:r,underlined:o,...s}=e,i=Zt("link"),a=`${i}-disabled`,l=`${i}-underlined`,c=`${i}-not-underlined`,p=`${i}-allow-visited-style`;return{classProps:y(`${i}-${t}`,{[a]:r,[l]:o===ve.ALWAYS,[c]:o===ve.NEVER,[p]:n}),props:s}}fo.spiritComponent="Box",fo.displayName="Box";const ho={elementType:"a",color:"primary",hasVisitedStyleAllowed:!1,underlined:"hover"},yo=t.forwardRef(((e,t)=>{const n={...ho,...e},{elementType:r=ho.elementType,children:o,...s}=n,i=r,{classProps:a,props:l}=mo(s),{styleProps:c,props:p}=Wt(l),u=At(i,{classProps:a,styleProps:c,otherProps:p});return Hn.jsx(i,{...p,...u,href:s.href,ref:t,children:o})}));yo.spiritComponent="Link",yo.displayName="Link";function go(e){const{isGoBackOnly:t,...n}=e,r=Zt("Breadcrumbs"),o=Zt("d-none"),s=Zt("d-tablet-flex"),i=Zt("d-tablet-none");return{classProps:{root:r,item:y({[o]:!t,[s]:!t,[i]:t})},props:n}}const bo={iconNameEnd:"chevron-right",iconNameStart:"chevron-left",isCurrent:!1,isGoBackOnly:!1},vo=e=>{const t={...bo,...e},{children:n,href:r,isCurrent:o,iconNameStart:s,iconNameEnd:i,...a}=t,{classProps:l,props:c}=go({...a}),{styleProps:p,props:u}=Wt(c);return Hn.jsxs("li",{...u,...p,className:y(l.item,p.className),children:[a.isGoBackOnly&&s&&Hn.jsx(Qn,{name:s}),!r&&o?n:Hn.jsx(yo,{href:r,color:o?"secondary":"primary",underlined:o?"hover":"always","aria-current":o?"page":void 0,children:n}),!o&&!a.isGoBackOnly&&i&&Hn.jsx(Qn,{name:i})]})};vo.spiritComponent="BreadcrumbsItem";const xo={elementType:"nav",items:[]},To=e=>{const n={...xo,...e},{children:r,elementType:o="nav",goBackTitle:s,items:i,...a}=n,{classProps:l,props:c}=go({...a}),{styleProps:p,props:u}=Wt(c),d=At(o,{classProps:l.root,styleProps:p}),f=(e,t)=>e===t-1;return Hn.jsx(o,{...u,...d,"aria-label":"Breadcrumb",children:Hn.jsx("ol",{children:r||i?.map(((e,n)=>Hn.jsxs(t.Fragment,{children:[n===i.length-2&&s&&Hn.jsx(vo,{href:e.url||void 0,isGoBackOnly:!0,children:s}),Hn.jsx(vo,{href:e.url||void 0,isCurrent:f(n,i?.length),children:e.title})]},`BreadcrumbsItem_${e.title}`)))})})};To.spiritComponent="Breadcrumbs";const Po=e=>{const{isDisabled:t,isLoading:n,onClick:r,type:o="button"}=e;return{buttonProps:{...{type:o,disabled:t||n},onClick:Jt(t,r)}}};function So(e){const{color:t,isBlock:n,isDisabled:r,isLoading:o,isSymmetrical:s,size:i,...a}=e;tn({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=Zt("Button"),c=`${l}--block`,p=`${l}--disabled`,u=`${l}--loading`,{isSymmetricalActive:d,symmetricalClassName:f}=En(l,s);n&&d&&b(0,"isBlock and isSymmetrical props are mutually exclusive");const m=y(l,((e,t)=>De(Oe(t))(e))(l,t),((e,t)=>De($e(t))(e))(l,i),{[c]:n&&!d,[p]:r||o,[u]:o},f);return{classProps:m,props:a}}const Eo=t.createContext(null),Co=({value:e,children:n})=>{const r=t.useContext(Eo),o=r?{...r,...e}:e;return t.createElement(Eo.Provider,{value:o},n)},wo=Eo.Consumer,No=(e={})=>{const n=t.useContext(Eo);return n?{...e,...n}:e};function Ao(e){const{color:t,...n}=e,r=Zt("text"),o=t?`${r}-${t}`:"",s=Zt("animation-spin-clockwise");return{classProps:y(o,s),props:n}}const _o=e=>{const{classProps:t,props:n}=Ao(e),{styleProps:r,props:o}=Wt(n);return Hn.jsx(Qn,{...o,name:"spinner",UNSAFE_className:y(t,r.className),UNSAFE_style:r.style})};_o.spiritComponent="Spinner";const Ro={color:"primary",isBlock:!1,isDisabled:!1,isLoading:!1,isSymmetrical:!1,size:"medium",type:"button",elementType:"button"},ko=t.forwardRef(((e,t)=>{const n=No(),r={...Ro,...e,...n},{elementType:o=Ro.elementType,children:s,...i}=r,a=o,{buttonProps:l}=Po(i),{classProps:c,props:p}=So(i),{styleProps:u,props:d}=Wt(p),f=At(a,{classProps:c,styleProps:u,otherProps:d});return Hn.jsxs(a,{...d,...l,ref:t,...f,children:[s,i.isLoading&&Hn.jsx(_o,{})]})}));ko.spiritComponent="Button",ko.displayName="Button";const Oo=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:Jt(n,o)}}};function $o(e){const{color:t,isBlock:n,isDisabled:r,isLoading:o,isSymmetrical:s,size:i,...a}=e;tn({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=Zt("Button"),c=`${l}--block`,p=`${l}--disabled`,u=`${l}--loading`,{isSymmetricalActive:d,symmetricalClassName:f}=En(l,s);n&&d&&b(0,"isBlock and isSymmetrical props are mutually exclusive");const m=y(l,((e,t)=>De(Oe(t))(e))(l,t),((e,t)=>De($e(t))(e))(l,i),{[c]:n&&!d,[p]:r||o,[u]:o},f);return{classProps:m,props:a}}const jo={color:"primary",elementType:"a",isBlock:!1,isDisabled:!1,isLoading:!1,isSymmetrical:!1,size:"medium"},Do=t.forwardRef(((e,t)=>{const n={...jo,...e},{elementType:r=jo.elementType,children:o,...s}=n,i=r,{buttonLinkProps:a}=Oo(n),{classProps:l,props:c}=$o(s),{styleProps:p,props:u}=Wt(c),d=At(i,{classProps:l,styleProps:p,otherProps:u});return Hn.jsxs(i,{...u,...a,...d,ref:t,children:[o,s.isLoading&&Hn.jsx(_o,{})]})}));function Lo(e){const{alignmentY:t,artworkAlignmentX:n,direction:r,footerAlignmentX:o,hasFilledHeight:s,isBoxed:i,isExpanded:a,isHeading:l,isSelectable:c,size:p}=e||{},u=Zt("Card"),d=`${u}Artwork`,f=`${u}Body`,m=`${u}Eyebrow`,h=`${u}Footer`,g=`${u}Link`,b=`${u}Logo`,v=`${u}Media`,x=`${u}Title`,T=`${f}--selectable`,P=Ft(u,Dt(r)),S=`${u}--boxed`,E=`${v}__canvas`,C=`${v}--filledHeight`,w=`${v}--expanded`,N=p?`${v}--${p}`:"",A=`${x}--heading`;return{classProps:{artwork:y(d,{[Gt(d,n,"alignmentX")]:n}),body:y(f,{[T]:c}),eyebrow:m,footer:y(h,{[Gt(h,o,"alignmentX")]:o}),link:g,logo:b,media:y(v,N,{[w]:a,[C]:s}),mediaCanvas:E,root:y(u,{[Gt(u,t,"alignmentY")]:t,[P]:r,[S]:i}),title:y(x,{[A]:l})}}}Do.spiritComponent="ButtonLink",Do.displayName="ButtonLink";const Io={direction:Z.VERTICAL,elementType:"article",isBoxed:!1},Mo=e=>{const t={...Io,...e},{elementType:n="article",alignmentY:r,direction:o,isBoxed:s,children:i,...a}=t,{classProps:l}=Lo({alignmentY:r,direction:o,isBoxed:s}),{styleProps:c,props:p}=Wt(a),u=At(n,{classProps:l.root,styleProps:c,otherProps:p});return Hn.jsx(n,{...p,...u,children:i})};Mo.spiritComponent="Card";const Fo={alignmentX:_.LEFT},Bo=e=>{const t={...Fo,...e},{children:n,alignmentX:r,...o}=t,{classProps:s}=Lo({artworkAlignmentX:r}),{styleProps:i,props:a}=Wt(o);return Hn.jsx("div",{...a,className:y(s.artwork,i.className),style:i.style,children:n})};Bo.spiritComponent="CardArtwork";const Ho={isSelectable:!1},Uo=e=>{const t={...Ho,...e},{children:n,isSelectable:r,...o}=t,{classProps:s}=Lo({isSelectable:r}),{styleProps:i,props:a}=Wt(o);return Hn.jsx("div",{...a,className:y(s.body,i.className),style:i.style,children:n})};Uo.spiritComponent="CardBody";const zo=e=>{const{children:t,...n}=e,{classProps:r}=Lo(),{styleProps:o,props:s}=Wt(n);return Hn.jsx("div",{...s,className:y(r.eyebrow,o.className),style:o.style,children:t})};zo.spiritComponent="CardEyebrow";const Vo={alignmentX:_.LEFT},Wo=e=>{const t={...Vo,...e},{children:n,alignmentX:r,...o}=t,{classProps:s}=Lo({footerAlignmentX:r}),{styleProps:i,props:a}=Wt(o);return Hn.jsx("footer",{...a,className:y(s.footer,i.className),style:i.style,children:n})};Wo.spiritComponent="CardFooter";const Go={elementType:"a"},qo=t.forwardRef(((e,t)=>{const n={...Go,...e},{elementType:r=Go.elementType,children:o,href:s,...i}=n,{classProps:a}=Lo(),{styleProps:l,props:c}=Wt(i),p=At(r,{classProps:a.link,styleProps:l,otherProps:c});return Hn.jsx(r,{...c,...l,...p,href:s,ref:t,children:o})}));qo.spiritComponent="CardLink",qo.displayName="CardLink";const Xo=e=>{const{children:t,...n}=e,{classProps:r}=Lo(),{styleProps:o,props:s}=Wt(n);return Hn.jsx("div",{...s,className:y(r.logo,o.className),style:{...o.style},children:t})};Xo.spiritComponent="CardLogo";const Yo={fit:ne.COVER,hasFilledHeight:!1,isExpanded:!1,size:he.AUTO},Qo=e=>{const t={...Yo,...e},{backgroundColor:n,children:r,fit:o,hasFilledHeight:s,isExpanded:i,size:a,...l}=t,{classProps:c}=Lo({size:a,isExpanded:i,hasFilledHeight:s}),{classProps:p,styleProps:u}=(e=>{const{backgroundColor:t,fit:n}=e||{},r=Zt(`bg-${t}`);return{classProps:t?r:"",styleProps:n?{[`--${P}card-media-object-fit`]:n}:{}}})({backgroundColor:n,fit:o}),{styleProps:d,props:f}=Wt(l,{...oe}),m=At("div",{classProps:y(c.media,p,d.className),styleProps:{...u,...d}});return Hn.jsx("div",{...f,...m,children:Hn.jsx("div",{className:c.mediaCanvas,children:r})})};Qo.spiritComponent="CardMedia";const Ko={elementType:"h4",isHeading:!0},Zo=e=>{const t={...Ko,...e},{elementType:n="h4",children:r,isHeading:o,...s}=t,{classProps:i}=Lo({isHeading:o}),{styleProps:a,props:l}=Wt(s),c=At(n,{classProps:i.title,styleProps:a,otherProps:l});return Hn.jsx(n,{...l,...c,children:r})};Zo.spiritComponent="CardTitle";const Jo={elementType:"div",id:void 0,registerAria:void 0},es=e=>{const n={...Jo,...e},{helperText:r,elementType:o=Jo.elementType,id:s,registerAria:i,...a}=n,{styleProps:l,props:c}=Wt(a),p=At(o,{styleProps:l,transferProps:c});return t.useEffect((()=>(r&&i?.({add:s}),()=>{i?.({remove:s})})),[r,s,i]),r?Hn.jsx(o,{...c,...p,id:s,children:r}):null};es.spiritComponent="HelperText";const ts=e=>{const{elementType:t="label",children:n,htmlFor:r,for:o,...s}=e,{styleProps:i,props:a}=Wt(s),l=At(t,{styleProps:i,otherProps:a});return Hn.jsx(t,{...a,...l,htmlFor:"label"===t?o||r:void 0,children:n})};ts.spiritComponent="Label";const ns=e=>{const[n,r]=t.useState(e?e.split(" "):[]);return[n,t.useCallback((({add:e,remove:t})=>{r((n=>{let r=[...n];return t&&(r=r.filter((e=>e!==t))),e&&(r=[...r,e]),r}))}),[])]};const rs={elementType:"div",id:void 0,registerAria:void 0,role:void 0},os=e=>{const n={...rs,...e},{elementType:r=rs.elementType,id:o,hasValidationStateIcon:s,registerAria:i,role:a,validationText:l,...c}=n,p=function({hasValidationStateIcon:e}){return fn(e,{success:"check-plain",warning:"warning",danger:"danger"})}({hasValidationStateIcon:s}),{styleProps:u,props:d}=Wt(c),f=At(r,{styleProps:u,transferProps:d});if(t.useEffect((()=>(l&&i?.({add:o}),()=>{i?.({remove:o})})),[o,i,l]),!l)return null;const m=s?Hn.jsx("div",{children:l}):l;return Hn.jsxs(r,{...d,...f,id:o,role:a,children:[s&&Hn.jsx(Qn,{name:p,boxSize:20}),Array.isArray(l)?Hn.jsx("ul",{children:l.map((e=>Hn.jsx("li",{children:e},`validationText_${e}`)))}):m]})};os.spiritComponent="ValidationText";const ss=({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 is(e){const{inputPosition:t=te.START,isItem:n,isLabelHidden:r,validationState:o,...s}=e,{isDisabled:i,isRequired:a}=s,l=Zt("Checkbox"),c=`${l}--disabled`,p=`${l}--item`,u=`${l}__input`,d=mn(l,t),f=`${l}__text`,m=`${l}__label`,h=`${l}__label--required`,g=`${l}__label--hidden`,b=`${l}__helperText`,v=`${l}__validationText`,x=`${l}--${o}`;return{classProps:{root:y(l,{[d]:d,[c]:i,[p]:n,[x]:o}),text:f,label:y(m,{[h]:a,[g]:r}),input:u,helperText:b,validationText:v},props:{...s,validationState:o}}}const as=t.forwardRef(((e,t)=>{const{classProps:n,props:r}=is(e),{"aria-describedby":o="",hasValidationIcon:s,helperText:i,id:a,isChecked:l,isDisabled:c,isRequired:p,label:u,validationState:d,validationText:f,value:m,...h}=r,{styleProps:g,props:b}=Wt(h),[v,x]=ns(o),T=qt(v),P=ss({validationState:d,validationText:f});return Hn.jsxs("div",{style:g.style,className:y(n.root,g.className),children:[Hn.jsx("input",{...b,...T,type:"checkbox",id:a,className:n.input,disabled:c,required:p,checked:l,value:m,ref:t}),Hn.jsxs("div",{className:n.text,children:[Hn.jsx(ts,{UNSAFE_className:n.label,htmlFor:a,children:u}),Hn.jsx(es,{UNSAFE_className:n.helperText,id:`${a}__helperText`,registerAria:x,helperText:i}),d&&Hn.jsx(os,{UNSAFE_className:n.validationText,id:`${a}__validationText`,...s&&{hasValidationStateIcon:d},validationText:f,registerAria:x,role:P})]})]})}));function ls(e){const{isFluid:t,size:n,...r}=e,o=Zt("Container"),s=`${o}--fluid`,i=`${o}--${n}`;return{classProps:y(o,{[s]:t,[i]:!t&&n}),props:r}}as.spiritComponent="Checkbox",as.displayName="Checkbox";const cs={isFluid:!1,size:W.XLARGE},ps=e=>{const t={...cs,...e},{children:n,...r}=t,{classProps:o,props:s}=ls(r),{styleProps:i,props:a}=Wt(s,{textAlignment:le.textAlignment});return Hn.jsx("div",{...a,...i,className:y(o,i.className),children:n})};ps.spiritComponent="Container";const us=e=>{const{isDisabled:t,onClick:n,type:r="button"}=e;return{controlButtonProps:{...{type:r,disabled:t},onClick:Jt(t,n)}}};function ds(e){const{isDisabled:t,isSubtle:n,isSymmetrical:r,size:o,...s}=e,i=Zt("ControlButton"),a=`${i}--hasBackground`,l=`${i}--disabled`,c=Zt("dynamic-color-background-interactive"),p=Zt("dynamic-color-border"),u=Zt("accessibility-tap-target"),{symmetricalClassName:d}=En(i,r),f=y(i,((e,t)=>De($e(t))(e))(i,o),c,u,{[l]:t,[a]:!n,[p]:!n},d);return{classProps:f,props:s}}const fs={elementType:"button",isDisabled:!1,isSubtle:!1,isSymmetrical:!1,size:V.MEDIUM,type:"button"},ms=t.forwardRef(((e,t)=>{const n={...fs,...e},{elementType:r=fs.elementType,children:o,...s}=n,i=r,{controlButtonProps:a}=us(s),{classProps:l,props:c}=ds(s),{styleProps:p,props:u}=Wt(c),d=At(i,{classProps:l,styleProps:p,otherProps:u});return Hn.jsx(i,{...u,...a,ref:t,...d,children:o})}));ms.spiritComponent="ControlButton",ms.displayName="ControlButton";const hs=(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]);Tn(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}},ys=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:u,onTransitionEnd:d}=hs(c,o);en({ref:p,callback:o?e=>{i&&e.target===c.current&&(u(),s(e))}:void 0}),Kt(c,s,a,o);const f=t.Children.only(r);return Hn.jsx("dialog",{ref:c,onTransitionEnd:d,...l,children:t.cloneElement(f,{ref:e=>{p.current=e}})})}));function gs(e){return{classProps:Zt("Divider"),props:e}}ys.spiritComponent="Dialog",ys.displayName="Dialog";const bs=e=>{const{classProps:t,props:n}=gs(e),{styleProps:r,props:o}=Wt(n);return Hn.jsx("hr",{...o,...r,className:y(t,r.className)})};bs.spiritComponent="Divider";const vs=_.RIGHT,xs=t.createContext({id:"",isOpen:!1,onClose:()=>null}),Ts=xs.Provider,Ps=xs.Consumer,Ss=()=>t.useContext(xs),Es=(e={})=>{const{drawerAlignmentX:t=vs,isOpen:n=!1}=e,r=Zt("Drawer"),o=`${r}Panel`,s=`${o}__content`,i=`${r}CloseButton`;return{classProps:{root:y(r,{left:`${r}--left`,right:`${r}--right`}[t],{[v]:n}),panel:o,content:s,closeButton:i}}},Cs=e=>{const{children:t,alignmentX:n=vs,isOpen:r,onClose:o,id:s,...i}=e,{classProps:a}=Es({drawerAlignmentX:n}),{styleProps:l,props:c}=Wt(i),p={id:s,isOpen:r,onClose:o};return hn(r),Hn.jsx(Ts,{value:p,children:Hn.jsx(ys,{...c,...l,id:s,isOpen:r,onClose:o,className:y(a.root,l.className),children:t})})};Cs.spiritComponent="Drawer";const ws=e=>{const{children:t,elementType:n="span",...r}=e,{classProps:o,props:s}=function(e){const{...t}=e;return{classProps:Zt("accessibility-hidden"),props:t}}(r),{styleProps:i,props:a}=Wt(s),l=At(n,{classProps:o,styleProps:i,otherProps:a});return Hn.jsx(n,{...a,...l,children:t})};ws.spiritComponent="VisuallyHidden";const Ns={color:M.TERTIARY,iconBoxSize:24,size:V.MEDIUM},As=e=>{const t={...Ns,...e},{color:n,iconBoxSize:r,label:o,size:s,...i}=t,{t:a}=ln(),l=o??a("common.close"),{id:c,isOpen:p,onClose:u}=Ss(),{classProps:d}=Es(),{styleProps:f,props:m}=Wt(i);return Hn.jsxs(ko,{...m,"aria-expanded":p,"aria-controls":c,onClick:u,color:n,size:s,UNSAFE_className:y(d.closeButton,f.className),UNSAFE_style:f.style,isSymmetrical:!0,children:[Hn.jsx(Qn,{name:"close",boxSize:r}),Hn.jsx(ws,{children:l})]})};As.spiritComponent="DrawerCloseButton";const _s=t.forwardRef(((e,t)=>{const{elementType:n="div",children:r,...o}=e,s=n,{classProps:i}=Es(o),{styleProps:a,props:l}=Wt(o),c=At(s,{classProps:i.panel,styleProps:a,otherProps:l});return Hn.jsx(s,{...l,...c,ref:t,children:Hn.jsx("div",{className:i.content,children:r})})}));_s.spiritComponent="DrawerPanel",_s.displayName="DrawerPanel";const Rs="aria-expanded",ks="aria-controls",Os="data-spirit-fullwidthmode",$s="data-spirit-placement";var js=(e=>(e.off="off",e["mobile-only"]="mobile-only",e.all="all",e))(js||{});const Ds=e=>{const{fullWidthMode:t,id:n,isOpen:r,placement:o=z.BOTTOM_START,toggleHandler:s}=e,i={[Rs]:r,[ks]:String(n),onClick:s};return{contentProps:{id:n,[Os]:t,[$s]:o},triggerProps:i}},Ls={dropdownRef:{current:null},fullWidthMode:js.off,id:"",isOpen:!1,onToggle:()=>{},placement:z.BOTTOM_START,triggerRef:{current:void 0}},Is=t.createContext(Ls),Ms=Is.Provider;Is.Consumer;const Fs=()=>t.useContext(Is),Bs=(e={isOpen:!1})=>{const{alignmentX:t,alignmentY:n,isOpen:r,...o}=e,s=Zt("Dropdown"),i=`${s}Popover`,a=r?"is-expanded":"",l=r?v:"",c=y(s,{[Gt(s,t,"alignmentX")]:t,[Gt(s,n,"alignmentY")]:n}),p=y(i,l);return{classProps:{root:c,trigger:y(a),popover:p},props:o}},Hs=e=>{const{children:n,enableAutoClose:r=!0,fullWidthMode:o,id:s,isOpen:i=!1,onAutoClose:a,onToggle:l,placement:c,...p}=e,{classProps:u,props:d}=Bs({isOpen:i,...p}),{styleProps:f,props:m}=Wt(d),h=t.useRef(null),g=t.useRef();return en({ref:h,callback:e=>{r&&(g?.current?.contains(e?.target)||(a&&a(e),l&&i&&l()))}}),Hn.jsx(Ms,{value:{id:s,isOpen:i,fullWidthMode:o,placement:c,onToggle:l,dropdownRef:h,triggerRef:g},children:Hn.jsx("div",{ref:h,className:y(u.root,f.className),style:f.style,...m,children:n})})};Hs.spiritComponent="Dropdown";const Us={elementType:"button"},zs=e=>{const t={...Us,...e},{elementType:n="button",children:r,...o}=t,{id:s,isOpen:i,onToggle:a,fullWidthMode:l,triggerRef:c}=Fs(),{classProps:p,props:u}=Bs({isOpen:i,...o}),{styleProps:d,props:f}=Wt(u),m=At(n,{classProps:p.trigger,triggerStyleProps:d}),{triggerProps:h}=Ds({id:s,isOpen:i,toggleHandler:a,fullWidthMode:l});return Hn.jsx(n,{...f,...h,...m,ref:c,children:"function"==typeof r?r({isOpen:i}):r})};zs.spiritComponent="DropdownTrigger";const Vs=e=>{const{children:t,...n}=e,{id:r,isOpen:o,onToggle:s,fullWidthMode:i,placement:a}=Fs(),{classProps:l,props:c}=Bs({isOpen:o,...n}),{styleProps:p,props:u}=Wt(c),{contentProps:d}=Ds({id:r,isOpen:o,toggleHandler:s,placement:a,fullWidthMode:i});return Hn.jsx("div",{className:y(l.popover,p.className),style:p.style,...d,...u,children:t})};Vs.spiritComponent="DropdownPopover";const Ws=({dropdownRef:e,triggerRef:n,enableAutoClose:r,onAutoClose:o})=>{const[s,i]=t.useState(!1);return en({ref:e,callback:e=>{r&&(n?.current?.contains(e?.target)||(o&&o(e),i(!1)))}}),{toggleHandler:e=>{e.preventDefault(),i(!s)},isOpen:s}},Gs=e=>{const{children:n,enableAutoClose:r=!0,fullWidthMode:o,id:s,onAutoClose:i,placement:a,...l}=e,{classProps:c,props:p}=Bs(l),{styleProps:u,props:d}=Wt(p),f=t.useRef(null),m=t.useRef(),{isOpen:h,toggleHandler:g}=Ws({dropdownRef:f,triggerRef:m,enableAutoClose:r,onAutoClose:i});return Hn.jsx(Ms,{value:{id:s,isOpen:h,fullWidthMode:o,placement:a,onToggle:g,dropdownRef:f,triggerRef:m},children:Hn.jsx("div",{ref:f,...u,...d,className:y(c.root,u.className),children:n})})};function qs(e){const{hasEndDivider:t,hasIntermediateDividers:n,hasSpacing:r,hasStartDivider:o,spacing:s,...i}=e,a=Zt("Stack"),l=`${a}--hasEndDivider`,c=`${a}--hasIntermediateDividers`,p=`${a}--hasSpacing`,u=`${a}--hasStartDivider`;return{classProps:{root:y(a,{[l]:t,[c]:n,[p]:r||s,[u]:o}),item:y(`${a}Item`)},props:i,styleProps:Pn(s,"stack")}}Gs.spiritComponent="UncontrolledDropdown";const Xs=["ul","ol"],Ys={elementType:"div",hasSpacing:!1,hasEndDivider:!1,hasIntermediateDividers:!1,hasStartDivider:!1},Qs=t.forwardRef(((e,t)=>{const n={...Ys,...e},{elementType:r=Ys.elementType,children:o,...s}=n,i=r,{classProps:a,props:l,styleProps:c}=qs(s),{styleProps:p,props:u}=Wt(l),d=At(i,{classProps:a.root,stackStyle:c,styleProps:p,otherProps:u}),f=Xs.includes(r)?"li":void 0;return Hn.jsx(Co,{value:{elementType:f},children:Hn.jsx(i,{...u,...d,ref:t,children:o})})}));Qs.spiritComponent="Stack",Qs.displayName="Stack";const Ks="div",Zs=t.forwardRef(((e,t)=>{const{elementType:n}=e,r=No(e),{children:o,elementType:s,...i}=r,a=n??s??Ks,{classProps:l,props:c}=qs(i),{styleProps:p,props:u}=Wt(c),d=At(a,{classProps:l.item,styleProps:p,otherProps:u});return Hn.jsx(a,{...u,...d,ref:t,children:Hn.jsx(Co,{value:{elementType:void 0},children:o})})}));function Js(e){const t=Zt("EmptyState");return{classProps:{root:t,section:`${t}__section`},props:e}}Zs.spiritComponent="StackItem",Zs.displayName="StackItem";const ei=e=>{const{children:t,...n}=e,{classProps:r,props:o}=Js(n),{styleProps:s,props:i}=Wt(o);return Hn.jsx(Qs,{...i,UNSAFE_className:y(r.root,s.className),UNSAFE_style:s.style,children:t})};ei.spiritComponent="EmptyState";const ti=e=>{const{children:t,...n}=e,{classProps:r,props:o}=Js(n),{styleProps:s,props:i}=Wt(o);return Hn.jsx(Qs,{...i,UNSAFE_className:y(r.section,s.className),UNSAFE_style:s.style,children:t})};ti.spiritComponent="EmptyStateSection";const ni=e=>{const{"aria-describedby":t="",children:n,helperText:r,hasValidationIcon:o,id:s,isDisabled:i,isFluid:a,isLabelHidden:l,isRequired:c,label:p,validationState:u,validationText:d,...f}=e,{classProps:m}=(({isFluid:e,isRequired:t,validationState:n})=>{const r=Zt("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:y(r,{[o]:e,[s]:n}),label:y(i,{[a]:t}),fields:l,validationText:c,helperText:p}}})({isFluid:a,isRequired:c,validationState:u}),{styleProps:h,props:g}=Wt(f),[b,v]=ns(t),x=qt(b),T=ss({validationState:u,validationText:d});return Hn.jsxs("fieldset",{...g,...h,...x,className:y(m.root,h.className),disabled:i,children:[Hn.jsx(ws,{elementType:"legend",children:p}),!l&&Hn.jsx("div",{className:m.label,"aria-hidden":"true",children:p}),Hn.jsx("div",{className:m.fields,children:n}),Hn.jsx(es,{UNSAFE_className:m.helperText,id:`${s}__helperText`,registerAria:v,helperText:r}),u&&Hn.jsx(os,{UNSAFE_className:m.validationText,...o&&{hasValidationStateIcon:u},id:`${s}__helperText`,validationText:d,registerAria:v,role:T})]})};ni.spiritComponent="FieldGroup";const ri=1e7,oi=1,si="The file size limit has been exceeded",ii="This file already exists in the queue",ai="You have exceeded the number of files allowed in the queue",li="This file type is not supported",ci="file",pi={TOP:"--file-uploader-attachment-image-top",LEFT:"--file-uploader-attachment-image-left",WIDTH:"--file-uploader-attachment-image-width",HEIGHT:"--file-uploader-attachment-image-height"},ui={addToQueue:()=>new Map,clearQueue:()=>null,fileQueue:new Map,onDismiss:()=>new Map,findInQueue:()=>null,updateQueue:()=>new Map,errorMessages:{errorFileDuplicity:"",errorFileNotSupported:"",errorMaxFileSize:"",errorMaxUploadedFiles:""}},di=t.createContext(ui),fi=di.Provider;di.Consumer;const mi=()=>t.useContext(di),hi=e=>{const t=Zt("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`,u=`${o}__helperText`,d="d-none",f=`${o}__input`,m=`${o}__label`,h=`${o}__label--hidden`,g=`${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:w,imageObjectFit:N}=e||{};let A,_;const R=null!=w&&["x","y","cropWidth","cropHeight","originalWidth","originalHeight"].every((e=>null!=w[e]));if(R){const{x:e,y:t,cropWidth:n,cropHeight:r,originalWidth:o,originalHeight:s}=w,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),u=Math.round(s*a);A={[pi.TOP]:`-${c}px`,[pi.LEFT]:`-${l}px`,[pi.WIDTH]:`${p}px`,[pi.HEIGHT]:`${u}px`}}return N&&(_={"--file-uploader-attachment-image-object-fit":N}),{classProps:{root:y(t,{[r]:e?.isFluid}),input:{root:y(o,{[n]:e?.isDragAndDropSupported,[s]:e?.isDisabled||e?.isDisabledByQueueLimitBehavior&&"disable"===e?.queueLimitBehavior,[a]:e?.isDragging,[d]:e?.isDropZoneHidden&&"hide"===e.queueLimitBehavior,[i]:e?.validationState}),label:y(m,{[g]:e?.isRequired,[h]:e?.isLabelHidden}),input:f,dropLabel:l,helper:u,link:y(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},...N&&{attachmentStyles:_}}}},yi=e=>{const{addToQueue:t,children:n,clearQueue:r,errorMessages:o,fileQueue:s,findInQueue:i,id:a,isFluid:l,onDismiss:c,updateQueue:p,...u}=e,{classProps:d}=hi({isFluid:l}),{styleProps:f,props:m}=Wt(u),h={addToQueue:t,clearQueue:r,fileQueue:s,onDismiss:c,findInQueue:i,updateQueue:p,errorMessages:{errorFileDuplicity:ii,errorFileNotSupported:li,errorMaxFileSize:si,errorMaxUploadedFiles:ai,...o}};return Hn.jsx(fi,{value:h,children:Hn.jsx("div",{id:a,...m,...f,className:y(d.root,f.className),children:n})})};yi.spiritComponent="FileUploader";const gi=e=>{const{maxFileSize:n,maxUploadedFiles:r,queueLimitBehavior:o,isMultiple:s,onError:i,accept:a}=e,[l,c]=t.useState(!1),[p,u]=t.useState(!1),{fileQueue:d,addToQueue:f,clearQueue:m,errorMessages:h}=mi(),y=e=>`file__${e.replace(/\./g,"_").replace(/\s/g,"_")}`,g=e=>{try{s||m(),(e=>{if(s&&d.has(y(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(d.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`")})(),f(y(e.name),e)}catch(e){i?i(e):b(0,e)}};t.useEffect((()=>{var e;e=d,o&&("hide"===o?u(e?.size>=r):c(e?.size>=r))}),[d]);return{isDropZoneHidden:p,isDisabledByQueueLimitBehavior:l,onChange:e=>{const{files:t}=e.target,n=Array.prototype.slice.call(t);let o,s=0;s+=d.size,n.forEach((e=>{s<r?(g(e),s+=1):o=!0})),o&&i&&h?.errorMaxUploadedFiles&&i(new Error(h?.errorMaxUploadedFiles)),e.target.blur(),e.target.value=""},...rn({onDrop:e=>{const t=Array.from(e.dataTransfer.items),n=Array.from(e.dataTransfer.files);let o,s=0;s+=d.size,e.dataTransfer.items?t.forEach((e=>{if("file"===e.kind){const t=e.getAsFile();t&&s<r?(g(t),s+=1):o=!0}})):n.forEach((e=>{s<r?(g(e),s+=1):o=!0})),o&&i&&h?.errorMaxUploadedFiles&&i(new Error(h?.errorMaxUploadedFiles))}})}},bi=e=>{const[n,r]=t.useState(!1),{accept:o,"aria-describedby":s="",dropZoneRef:i,hasValidationIcon:a,helperText:l,iconName:c="upload",id:p,inputRef:u,isDisabled:d,isLabelHidden:f,isMultiple:m,isRequired:h,label:g,labelText:b,linkText:v,maxFileSize:x=ri,maxUploadedFiles:T=oi,onError:P,queueLimitBehavior:S="none",validationState:E,validationText:C,...w}=e,{isDisabledByQueueLimitBehavior:N,isDragging:A,isDropZoneHidden:_,onChange:R,onDragEnter:k,onDragLeave:O,onDragOver:$,onDrop:j}=gi({accept:o,isMultiple:m,maxFileSize:x,maxUploadedFiles:T,onError:P,queueLimitBehavior:S}),{classProps:D}=hi({isDisabled:d,isDisabledByQueueLimitBehavior:N,isDragAndDropSupported:n,isDragging:A,isDropZoneHidden:_,isLabelHidden:f,isRequired:h,queueLimitBehavior:S,validationState:E}),{styleProps:L,props:I}=Wt(w),[M,F]=ns(s),B=qt(M),H=ss({validationState:E,validationText:C});return t.useEffect((()=>{r("draggable"in document.createElement("span"))}),[]),Hn.jsxs("div",{...I,...L,onDragOver:!d&&n?$:void 0,onDragEnter:!d&&n?k:void 0,onDragLeave:!d&&n?O:void 0,onDrop:!d&&n?j:void 0,className:y(D.input.root,L.className),children:[Hn.jsx(ts,{htmlFor:p,UNSAFE_className:D.input.label,children:g}),Hn.jsx("input",{...B,type:"file",accept:o,id:p,ref:u,className:D.input.input,onChange:R,multiple:m,disabled:d||N,...w}),Hn.jsxs("div",{ref:i,className:D.input.dropZone.root,children:[Hn.jsx(Qn,{name:c,"aria-hidden":"true"}),Hn.jsxs(ts,{htmlFor:p,UNSAFE_className:D.input.dropZone.label,children:[Hn.jsx("span",{className:D.input.link,children:v})," ",Hn.jsx("span",{className:D.input.dropLabel,children:b})]}),Hn.jsx(es,{UNSAFE_className:D.input.helper,id:`${p}__helperText`,registerAria:F,helperText:l})]}),E&&Hn.jsx(os,{UNSAFE_className:D.input.validationText,elementType:"span",...a&&{hasValidationStateIcon:E},id:`${p}__validationText`,validationText:C,registerAria:F,role:H})]})};bi.spiritComponent="FileUploaderInput";const vi=e=>{const{t:n}=ln(),{label:r,id:o,attachmentComponent:s,inputName:i,hasImagePreview:a,...l}=e,c=r??n("fileUploader.attachments"),{classProps:p}=hi(),{styleProps:u,props:d}=Wt(l),{fileQueue:f,onDismiss:m}=mi(),h=t.useMemo((()=>Array.from(f,(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:m,hasImagePreview:a})))),[s,f,i,m,a]);return Hn.jsxs(Hn.Fragment,{children:[Hn.jsx("h3",{id:o,hidden:!0,children:c}),Hn.jsx("ul",{"aria-labelledby":o,...d,...u,className:y(p.list,u.className),children:h})]})};vi.spiritComponent="FileUploaderList";const xi=e=>{const{name:t="edit",children:n,...r}=e,{classProps:o}=hi(),{styleProps:s,props:i}=Wt(r);return Hn.jsxs("button",{type:"button",...i,...s,className:y(o.attachment.button,s.className),children:[Hn.jsx(ws,{children:n}),Hn.jsx(Qn,{name:t,"aria-hidden":"true"})]})};xi.spiritComponent="AttachmentActionButton";const Ti=e=>{const{children:t,...n}=e,{classProps:r}=hi(),{styleProps:o,props:s}=Wt(n);return Hn.jsxs("button",{type:"button",...s,...o,className:y(r.attachment.button,o.className),children:[Hn.jsx(ws,{children:t}),Hn.jsx(Qn,{name:"close","aria-hidden":"true"})]})};Ti.spiritComponent="AttachmentDismissButton";const Pi={meta:void 0,imageObjectFit:"cover"},Si=e=>{const t={...Pi,...e},{label:n,imagePreview:r,meta:o,imageObjectFit:s}=t,{classProps:i}=hi({meta:o,imageObjectFit:s}),{imageCropStyles:a,attachmentStyles:l}=i;return Hn.jsx("span",{className:i.attachment.image,children:Hn.jsx("img",{src:r,width:54,height:54,alt:n,style:{...a,...l}})})};Si.spiritComponent="AttachmentImagePreview";const Ei=(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")},Ci=(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},wi=(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)},Ni=({attachmentRef:e,file:t,name:n,meta:r,onError:o})=>{Xt((()=>{(r=>{e.current?.querySelectorAll("input").forEach((e=>e.remove()));const s=Ei(t,n,o);if(s&&e.current?.appendChild(s),r){const t=Ci(0,n,r);e.current?.appendChild(t)}})(r)}),[e,t,n,r,o])},Ai=e=>{const{t:n}=ln(),{editText:r,file:o,hasImagePreview:s,iconName:i=ci,id:a,imageObjectFit:l,label:c,meta:p,name:u,onDismiss:d,onEdit:f,onError:m,removeText:h,...g}=e,b=r??n("fileUploader.edit"),v=h??n("fileUploader.remove"),[x,T]=t.useState(""),{classProps:P}=hi(),{styleProps:S,props:E}=Wt(g),C=o.type.includes("image"),w=t.useRef();return C&&wi(o,500,(e=>T(e))),Ni({attachmentRef:w,file:o,name:u,meta:p,onError:m}),Hn.jsxs("li",{id:a,ref:w,...E,...S,className:y(P.attachment.root,S.className),children:[s&&x?Hn.jsx(Si,{label:c,imagePreview:x,meta:p,imageObjectFit:l}):Hn.jsx(Qn,{name:i,"aria-hidden":"true"}),Hn.jsx("span",{className:P.attachment.name,children:Hn.jsx("span",{className:Zt("text-truncate"),children:c})}),f&&Hn.jsx("span",{className:P.attachment.slot,children:Hn.jsx(xi,{onClick:e=>f&&f(e,o),children:b})}),Hn.jsx(Ti,{onClick:()=>{d&&d(a)},children:v})]})};Ai.spiritComponent="FileUploaderAttachment";const _i=()=>{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)}},Ri=e=>{const{attachmentComponent:n,maxFileSize:r,maxUploadedFiles:o,helperText:s,iconName:i,inputId:a,inputLabel:l,inputName:c,inputProps:p,isLabelHidden:u,isDisabled:d,isFluid:f,queueLimitBehavior:m,isMultiple:h,isRequired:y,labelText:g,linkText:b,listId:v,listProps:x,onInputError:T,onChange:P,errorMessages:S,validationState:E,validationText:C,...w}=e,{fileQueue:N,addToQueue:A,clearQueue:_,onDismiss:R,findInQueue:k,updateQueue:O}=_i();return t.useEffect((()=>{P&&P(N)}),[N]),Hn.jsxs(yi,{fileQueue:N,onDismiss:R,addToQueue:A,clearQueue:_,findInQueue:k,updateQueue:O,errorMessages:S,isFluid:f,...w,children:[Hn.jsx(bi,{maxFileSize:r,maxUploadedFiles:o,helperText:s,iconName:i,id:a,isLabelHidden:u,isDisabled:d,queueLimitBehavior:m,isMultiple:h,isRequired:y,label:l,labelText:g,linkText:b,name:c,onError:T,validationState:E,validationText:C,...p}),Hn.jsx(vi,{id:v,inputName:c,attachmentComponent:n,...x})]})};Ri.spiritComponent="UncontrolledFileUploader";const ki={backgroundColor:I.SECONDARY,elementType:"footer",paddingBottom:"space-1200",paddingTop:"space-1400"},Oi=t.forwardRef(((e,t)=>{const n={...ki,...e},{elementType:r=ki.elementType,children:o,backgroundColor:s,...i}=n,a=r,{classProps:l}=(e=>{const{backgroundColor:t}=e,n=Zt(`bg-${t}`),r=t?n:"";return{classProps:y({[r]:t})}})({backgroundColor:s}),{styleProps:c,props:p}=Wt(i,{paddingBottom:ae.paddingBottom,paddingTop:ae.paddingTop,textAlignment:le.textAlignment}),u=At(a,{classProps:l,styleProps:c,otherProps:p});return Hn.jsx(a,{...p,...u,ref:t,children:o})}));function $i(e){const{alignmentX:t,alignmentY:n,cols:r,spacing:o,spacingX:s,spacingY:i,...a}=e,l=Zt("Grid"),c={...Pn(o,"grid",J.X),...Pn(o,"grid",J.Y),...Pn(s,"grid",J.X),...Pn(i,"grid",J.Y)};return{classProps:y(l,{[Gt(l,t,"alignmentX")]:t,[Gt(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}}Oi.spiritComponent="Footer",Oi.displayName="Footer";const ji={alignmentX:R.STRETCH,alignmentY:O.STRETCH,elementType:"div"},Di=t.forwardRef(((e,t)=>{const n={...ji,...e},{elementType:r=ji.elementType,children:o,...s}=n,i=r,{classProps:a,props:l,styleProps:c}=$i(s),{styleProps:p,props:u}=Wt(l),d=At(i,{classProps:a,styleProps:p,otherProps:u,gridStyle:c});return Hn.jsx(i,{...u,...d,ref:t,children:o})}));Di.spiritComponent="Grid",Di.displayName="Grid";const Li=(e,t,n)=>{e[t]=n};function Ii(e){const t=Zt("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=>{Li(s,`--${i}${"mobile"===e?"":`-${e}`}`,a[e]?.toString())})):Li(s,`--${i}`,a?.toString())),delete r[e]})),{classProps:t,props:r,styleProps:n}}const Mi={elementType:"div"},Fi=t.forwardRef(((e,t)=>{const{elementType:n=Mi.elementType,children:r,...o}=e,s=n,{classProps:i,styleProps:a,props:l}=Ii(o),{styleProps:c,props:p}=Wt(l),u=At(s,{classProps:i,styleProps:c,otherProps:p,gridItemStyle:a});return Hn.jsx(s,{...p,...u,ref:t,children:r})}));Fi.spiritComponent="GridItem",Fi.displayName="GridItem";const Bi="primary",Hi="primary",Ui="Close",zi="Menu",Vi=({actionsColor:e=Hi,color:t=Bi,hasActionsAtEnd:n,isCurrentLink:r,isSimple:o}={actionsColor:Hi,color:Bi,hasActionsAtEnd:!1,isCurrentLink:!1,isSimple:!1})=>{const s=Zt("Header"),i=`${s}--simple`,a=`${s}Nav`,l=`${s}NavItem`,c=`${s}Link`,p=`${c}--current`,u=`${s}DesktopActions`,d=`${u}--end`,f=`${s}MobileActions`,m=`${s}Dialog`,h=`${m}__panel`,g=`${m}__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:y(s,`${s}--${t}`,{[i]:o}),headerButton:c,headerDesktopActions:y(u,{[d]:n}),headerDialog:{root:m,panel:h,content:g},headerDialogActions:y(b,v),headerDialogButton:T,headerDialogCloseButton:x,headerDialogLink:y(T,{[P]:r}),headerDialogNav:S,headerDialogNavItem:E,headerDialogText:C,headerLink:y(c,{[p]:r}),headerMobileActions:f,headerNav:a,headerNavItem:l}}},Wi=e=>{const{children:t,color:n=Bi,isSimple:r,...o}=e,{classProps:s}=Vi({color:n,isSimple:r}),{styleProps:i,props:a}=Wt(o);return tn({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."}),Hn.jsx("header",{...a,className:y(s.root,i.className),style:i.style,children:t})};Wi.spiritComponent="Header";const Gi=e=>{const{classProps:t}=Vi(),{styleProps:n,props:r}=Wt(e);return Hn.jsx("button",{...r,type:"button",className:y(t.headerButton,n.className),style:n.style})};Gi.spiritComponent="HeaderButton";const qi={isAtEnd:!1},Xi=e=>{const t={...qi,...e},{isAtEnd:n,...r}=t,{classProps:o}=Vi({hasActionsAtEnd:n}),{styleProps:s,props:i}=Wt(r);return Hn.jsx("nav",{...i,className:y(o.headerDesktopActions,s.className),style:s.style})};Xi.spiritComponent="HeaderDesktopActions";const Yi=t.createContext({id:"",isOpen:!1,onClose:()=>null}),Qi=Yi.Provider,Ki=Yi.Consumer,Zi=()=>t.useContext(Yi),Ji=e=>{const{children:t,id:n,isOpen:r,onClose:o,...s}=e,{classProps:i}=Vi(),{styleProps:a,props:l}=Wt(s),c={id:n,isOpen:r,onClose:o};return hn(r),Hn.jsx(Qi,{value:c,children:Hn.jsx(ys,{...l,id:n,isOpen:r,onClose:o,className:y(i.headerDialog.root,a.className),style:a.style,children:Hn.jsx("div",{className:i.headerDialog.panel,children:Hn.jsx("div",{className:i.headerDialog.content,children:t})})})})};Ji.spiritComponent="HeaderDialog";const ea=e=>{const{color:t=Hi,...n}=e,{classProps:r}=Vi({actionsColor:t}),{styleProps:o,props:s}=Wt(n);return Hn.jsx("nav",{...s,className:y(r.headerDialogActions,o.className),style:o.style})};ea.spiritComponent="HeaderDialogActions";const ta=e=>{const{classProps:t}=Vi(),{styleProps:n,props:r}=Wt(e);return Hn.jsx("button",{...r,type:"button",className:y(t.headerDialogButton,n.className),style:n.style})};ta.spiritComponent="HeaderDialogButton";const na=e=>{const{label:t=Ui,onClick:n,...r}=e,{classProps:o}=Vi(),{styleProps:s,props:i}=Wt(r),{id:a,isOpen:l,onClose:c}=Zi();return Hn.jsxs("button",{...i,type:"button","aria-expanded":l,"aria-controls":a,onClick:e=>{c(e),n&&n(e)},className:y(o.headerDialogCloseButton,s.className),style:s.style,children:[Hn.jsx(Qn,{name:"close"}),Hn.jsx(ws,{children:t})]})};na.spiritComponent="HeaderDialogCloseButton";const ra=t.forwardRef(((e,t)=>{const{elementType:n="a",children:r,isCurrent:o,...s}=e,i=n,{classProps:a}=Vi({isCurrentLink:o}),{styleProps:l,props:c}=Wt(s),p=At(i,{classProps:a.headerDialogLink,styleProps:l,otherProps:c});return Hn.jsx(i,{...c,...p,ref:t,children:r})}));ra.spiritComponent="HeaderDialogLink",ra.displayName="HeaderDialogLink";const oa=e=>{const{classProps:t}=Vi(),{styleProps:n,props:r}=Wt(e);return Hn.jsx("ul",{...r,className:y(t.headerDialogNav,n.className),style:n.style})};oa.spiritComponent="HeaderDialogNav";const sa=e=>{const{classProps:t}=Vi(),{styleProps:n,props:r}=Wt(e);return Hn.jsx("li",{...r,className:y(t.headerDialogNavItem,n.className),style:n.style})};sa.spiritComponent="HeaderDialogNavItem";const ia=e=>{const{classProps:t}=Vi(),{styleProps:n,props:r}=Wt(e);return Hn.jsx("span",{...r,className:y(t.headerDialogText,n.className),style:n.style})};ia.spiritComponent="HeaderDialogText";const aa=t.forwardRef(((e,t)=>{const{elementType:n="a",children:r,isCurrent:o,...s}=e,i=n,{classProps:a}=Vi({isCurrentLink:o}),{styleProps:l,props:c}=Wt(s),p=At(i,{classProps:a.headerLink,styleProps:l,otherProps:c});return Hn.jsx(i,{...c,...p,ref:t,children:r})}));aa.spiritComponent="HeaderLink",aa.displayName="HeaderLink";const la=e=>{const{children:t,dialogId:n,menuToggleLabel:r=zi,isOpen:o,onOpen:s,...i}=e,{classProps:a}=Vi(),{styleProps:l,props:c}=Wt(i);return Hn.jsxs("div",{...c,className:y(a.headerMobileActions,l.className),style:l.style,children:[t,Hn.jsxs(ko,{"aria-controls":n,"aria-expanded":o,color:"secondary",onClick:s,isSymmetrical:!0,children:[Hn.jsx(Qn,{name:"hamburger"}),Hn.jsx(ws,{children:r})]})]})};la.spiritComponent="HeaderMobileActions";const ca=e=>{const{classProps:t}=Vi(),{styleProps:n,props:r}=Wt(e);return Hn.jsx("ul",{...r,className:y(t.headerNav,n.className),style:n.style})};ca.spiritComponent="HeaderNav";const pa=e=>{const{classProps:t}=Vi(),{styleProps:n,props:r}=Wt(e);return Hn.jsx("li",{...r,className:y(t.headerNavItem,n.className),style:n.style})};function ua(e){const{emphasis:t,size:n,textColor:r,...o}=e,s=Zt("typography-heading"),i=Zt(r?`text-${r}`:"");return{classProps:y(`${s}-${n}-${t}`,{[i]:!!r}),props:o}}pa.spiritComponent="HeaderNavItem";const da={emphasis:U.BOLD,size:W.MEDIUM},fa=e=>{const t={...da,...e},{elementType:n,children:r,...o}=t,{classProps:s,props:i}=ua({...o}),{styleProps:a,props:l}=Wt(i,{isTextBalanced:ce.isTextBalanced,textAlignment:le.textAlignment,textHyphens:le.textHyphens,textWordBreak:le.textWordBreak}),c=At(n,{classProps:s,styleProps:a,otherProps:l});return Hn.jsx(n,{...l,...c,children:r})};fa.spiritComponent="Heading";const ma={elementType:"span"},ha=t.forwardRef(((e,t)=>{const n={...ma,...e},{elementType:r=ma.elementType,children:o,on:s,from:i,...a}=n,l=r,c={...a,hideOn:s||a.hideOn,hideFrom:i||a.hideFrom},{styleProps:p,props:u}=Wt(c),d=At(l,{styleProps:p});return Hn.jsx(l,{...u,...d,ref:t,children:o})}));ha.spiritComponent="Hidden",ha.displayName="Hidden";const ya={ROUNDED:"rounded",SQUARE:"square",CIRCLE:"circle"},ga={[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}},ba={[ya.CIRCLE]:j.FULL,[ya.ROUNDED]:j[300],[ya.SQUARE]:j[0]},va=(e,t,n)=>`${e}-${t}-${n}`,xa=(e,t=!0)=>{const n=t?H.SUBTLE:H.BASIC,r=n===H.BASIC?H.SUBTLE:H.BASIC,o=e??F.INFORMATIVE,s=(e=>Object.keys(w).includes(e)?x.EMOTION:x.ACCENT)(o);return{colors:{background:va(s,o,n),border:va(s,o,n),text:va(s,o,r)}}},Ta=e=>{const{shape:t=ya.ROUNDED,size:n=W.MEDIUM,...r}=e||{},o=ba[t],s={padding:`calc(var(--${P}local-padding) - var(--${P}local-border-width, 0px)) !important`};let i;if(_t(n)){const e={},t={};Object.entries(n).forEach((([n,r])=>{const o=ga[r];e[n]=o.padding,t[n]=o.iconSize})),i={padding:e,iconSize:t}}else i=ga[n];return{iconBoxStyles:s,props:r,shapesProps:o,sizeProps:i}},Pa={shape:ya.ROUNDED,color:F.INFORMATIVE,elementType:"div",hasBorder:!0,isSubtle:!0,size:W.MEDIUM},Sa=t.forwardRef(((e,t)=>{const n={...Pa,...e},{elementType:r,shape:o,color:s,iconName:i,isSubtle:a,hasBorder:l,size:c,...p}=n,u=r,{colors:d}=xa(s,a),{iconBoxStyles:f,props:m,shapesProps:h,sizeProps:{padding:g,iconSize:b}}=Ta({size:c,shape:o,...p}),{styleProps:v,props:x}=Wt(m);return Hn.jsx(fo,{...x,backgroundColor:d.background,elementType:u,borderColor:l?d.border:void 0,borderRadius:h,borderWidth:l?L[100]:void 0,padding:g,textColor:d.text,UNSAFE_className:y(v.className,"d-inline-flex"),UNSAFE_style:{...v.style,...f},ref:t,children:Hn.jsx(Qn,{"aria-hidden":"true",boxSize:b,name:i})})}));function Ea(e){const{isDisabled:t,isSelected:n,selectionDecorator:r,...o}=e,s=Zt("Item"),i=`${s}--disabled`,a=`${s}--selected`,l=`${s}__icon`,c=n&&(r===ye||r===ge);return{classProps:{helperText:`${s}__helperText`,icon:{root:l,start:`${l}--start`,end:`${l}--end`},label:`${s}__label`,root:y(s,{[i]:t,[a]:c})},props:o}}Sa.spiritComponent="IconBox",Sa.displayName="IconBox";const Ca=e=>{const{label:t,elementType:n="button",iconName:r,helperText:o,isSelected:s,isDisabled:i,selectionDecorator:a=be,...l}=e,{classProps:c,props:p}=Ea({isSelected:s,isDisabled:i,selectionDecorator:a,...l}),{styleProps:u,props:d}=Wt(p),f=At(n,{classProps:c.root,styleProps:u,otherProps:d}),m=s&&(a===be||a===ge);return Hn.jsxs(n,{...d,...f,disabled:!!i&&"button"===n,children:[r&&Hn.jsx("span",{className:y(c.icon.root,c.icon.start),children:Hn.jsx(Qn,{name:r})}),Hn.jsx("span",{className:c.label,children:t}),Hn.jsx(es,{UNSAFE_className:c.helperText,elementType:"span",helperText:o}),m&&Hn.jsx("span",{className:y(c.icon.root,c.icon.end),children:Hn.jsx(Qn,{name:"check-plain"})})]})};Ca.spiritComponent="Item";const wa=(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 Na(e){const{cols:t,itemsCount:n,itemRows:r,rows:o,spacing:s,spacingX:i,spacingY:a,...l}=e,c=Zt("Matrix"),p=`${P}matrix`,u={...nn(t,`${p}-columns`),...nn(o,`${p}-rows`),...nn(r,`${p}-item-rows`),...wa(t,o,n,p),...Pn(s,p,J.X),...Pn(s,p,J.Y),...Pn(i,p,J.X),...Pn(a,p,J.Y)};return{classProps:y(c),props:l,styleProps:u}}const Aa={cols:3,elementType:"div",itemRows:100,rows:100,spacingX:"space-700",spacingY:"space-0"},_a=e=>{const n={...Aa,...e},{elementType:r="div",children:o,...s}=n,i=t.Children.count(o),{classProps:a,props:l,styleProps:c}=Na({...s,itemsCount:i}),{styleProps:p,props:u}=Wt(l),d=At(r,{classProps:a,styleProps:p,otherProps:u,matrixStyleProps:c});return Hn.jsx(r,{...u,...d,children:o})};_a.spiritComponent="Matrix";const Ra=t.createContext({id:"",isOpen:!1,onClose:()=>null}),ka=Ra.Provider,Oa=Ra.Consumer,$a=()=>t.useContext(Ra);function ja({footerAlignment:e=_.RIGHT,isDockedOnMobile:t=!1,isExpandedOnMobile:n=!1,isOpen:r=!1,isScrollable:o=!1,modalAlignment:s=k.CENTER}={}){const i=Zt("Modal"),a={top:`${i}--top`,center:`${i}--center`,bottom:`${i}--bottom`},l=`${i}Dialog`,c=`${l}--dockOnMobile`,p=`${l}--expandOnMobile`,u=`${l}--scrollable`,d=`${i}Header`,f=`${d}__title`,m=`${i}Body`,h=`${i}Footer`,g=`${h}__description`,b=`${h}__actions`,x={left:`${h}--left`,center:`${h}--center`,right:`${h}--right`};return{classProps:{root:y(i,{[a[s]]:s,[v]:r}),dialog:y(l,{[c]:t,[p]:n,[u]:o}),title:f,header:d,body:m,footer:{root:y(h,{[x[e]]:e}),description:g,actions:b}}}}const Da=e=>{const{children:t,alignmentY:n=k.CENTER,isOpen:r,onClose:o,id:s,...i}=e,{classProps:a}=ja({isOpen:r,modalAlignment:n}),{styleProps:l,props:c}=Wt(i),p={id:s,isOpen:r,onClose:o};return hn(r),Hn.jsx(ka,{value:p,children:Hn.jsx(ys,{...c,...l,id:s,isOpen:r,onClose:o,className:y(a.root,l.className),"aria-labelledby":`${s}__title`,children:t})})};Da.spiritComponent="Modal";const La=({children:e,...t})=>{const{classProps:n}=ja(),{styleProps:r,props:o}=Wt(t);return Hn.jsx("div",{...o,...r,className:y(n.body,r.className),children:e})};La.spiritComponent="ModalBody";const Ia=({label:e,onClose:t,id:n,isOpen:r,...o})=>{const{t:s}=ln(),i=e??s("common.close");return Hn.jsxs(ko,{...o,isSymmetrical:!0,color:"tertiary",onClick:t,"aria-expanded":r,"aria-controls":n,children:[Hn.jsx(Qn,{name:"close"}),Hn.jsx(ws,{children:i})]})};Ia.spiritComponent="ModalCloseButton";const Ma=(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()}},Fa=t.forwardRef(((e,t)=>{const{elementType:n="article",children:r,isDockedOnMobile:o,isExpandedOnMobile:s,isScrollable:i,...a}=e,l=n,{classProps:c}=ja({isDockedOnMobile:o,isExpandedOnMobile:s,isScrollable:i}),{modalDialogStyleProps:p,props:u}=(e=>{const{height:t,maxHeight:n,...r}=e;return{modalDialogStyleProps:{...Ma("modal-dialog-height",t),...Ma("modal-dialog-max-height",n)},props:r}})(a),{styleProps:d,props:f}=Wt(u),m=At(l,{classProps:c.dialog,modalDialogStyleProps:p,styleProps:d,otherProps:f});return Hn.jsx(l,{...f,...m,ref:t,children:r})}));Fa.spiritComponent="ModalDialog",Fa.displayName="ModalDialog";const Ba=e=>{const{children:t,alignmentX:n=_.RIGHT,description:r,...o}=e,{classProps:s}=ja({footerAlignment:n}),{styleProps:i,props:a}=Wt(o);return Hn.jsxs("footer",{...a,...i,className:y(s.footer.root,i.className),children:[r&&Hn.jsx("div",{className:s.footer.description,children:r}),Hn.jsx("div",{className:s.footer.actions,children:t})]})};Ba.spiritComponent="ModalFooter";const Ha={hasCloseButton:!0},Ua=e=>{const t={...Ha,...e},{children:n,closeLabel:r,hasCloseButton:o,...s}=t,{t:i}=ln(),a=r??i("common.close"),{classProps:l}=ja(),{styleProps:c,props:p}=Wt(s),{id:u,isOpen:d,onClose:f}=$a();return Hn.jsxs("header",{...p,...c,className:y(l.header,c.className),children:[n&&Hn.jsx("h2",{id:`${u}__title`,className:l.title,children:n}),o&&Hn.jsx(Ia,{id:u,isOpen:d,label:a,onClose:f})]})};Ua.spiritComponent="ModalHeader";const za=({isDisabled:e=!1,isSelected:t=!1,isSquare:n=!1,alignmentY:r=O.CENTER,direction:o=K.HORIZONTAL,variant:s=Q.BOX,...i})=>{const a=Zt("Navigation"),l=`${a}Action`,c=`${a}Avatar`,p=`${a}Item`,u=`${a}--${o}`,d=`${l}--disabled`,f=`${l}--selected`,m=`${l}--${s}`,h=`${c}--square`,g=y(p,{[Gt(p,r,"alignmentY")]:r});return{classProps:{root:y(a,u),action:y(l,m,{[d]:e,[f]:t}),avatar:y(c,{[h]:n}),item:g},props:i}},Va={direction:K.HORIZONTAL},Wa=e=>{const t={...Va,...e},{children:n,...r}=t,{classProps:o,props:s}=za(r),{styleProps:i,props:a}=Wt(s);return Hn.jsx("nav",{...a,className:y(o.root,i.className),style:i.style,children:Hn.jsx("ul",{children:n})})};Wa.spiritComponent="Navigation";const Ga=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}}},qa={elementType:"a",variant:Q.BOX},Xa=t.forwardRef(((e,t)=>{const n={...qa,...e},{elementType:r=qa.elementType,children:o,...s}=n,i=n.isDisabled?"span":r,{navigationActionProps:a}=Ga(n),{classProps:l,props:c}=za(s),{styleProps:p,props:u}=Wt(c),d=At(i,{classProps:l.action,styleProps:p,otherProps:u});return Hn.jsx(i,{...u,...a,...d,ref:t,children:o})}));Xa.spiritComponent="NavigationAction",Xa.displayName="NavigationAction";const Ya={elementType:"a",isSquare:!1,avatarSize:V.SMALL},Qa=t.forwardRef(((e,t)=>{const n={...Ya,...e},{elementType:r=Ya.elementType,avatarContent:o,avatarSize:s=Ya.avatarSize,isSquare:i,children:a,...l}=n,{classProps:c,props:p}=za({isSquare:i,...l}),{styleProps:u,props:d}=Wt(p),f=At(r,{classProps:c.avatar,styleProps:u,otherProps:d});return Hn.jsxs(r,{...d,...f,ref:t,children:[Hn.jsx(co,{size:s,isSquare:i,children:o}),a]})}));Qa.spiritComponent="NavigationAvatar",Qa.displayName="NavigationAvatar";const Ka={alignmentY:O.CENTER},Za=e=>{const t={...Ka,...e},{children:n,...r}=t,{classProps:o,props:s}=za(r),{styleProps:i,props:a}=Wt(s);return Hn.jsx("li",{...a,className:y(o.item,i.className),style:i.style,children:n})};Za.spiritComponent="NavigationItem";const Ja=({children:e})=>{const[n,r]=t.useState(!1);return t.useEffect((()=>{r(!0)}),[]),n?e:null};Ja.spiritComponent="NoSsr";const el=e=>{const t=Zt("Pagination"),n=`${t}__link`,r=`${n}--current`;return{classProps:{root:t,item:`${t}__item`,link:y(n,{[r]:e?.isCurrent})}}},tl=e=>{const{children:t,listProps:n={},...r}=e,{classProps:o}=el(),{styleProps:s,props:i}=Wt(r),{styleProps:a,props:l}=Wt(n);return Hn.jsx("nav",{...i,...s,children:Hn.jsx("ul",{...a,...l,className:y(o.root,a.className),children:t})})};tl.spiritComponent="Pagination";const nl=t.forwardRef(((e,t)=>{const{t:n}=ln(),{direction:r,accessibilityLabel:o,...s}=e,i=o??n("previous"===r?"pagination.previous":"pagination.next");return Hn.jsxs(Do,{color:"secondary",isSymmetrical:!0,...s,ref:t,children:[Hn.jsx(Qn,{name:{previous:"chevron-left",next:"chevron-right"}[r]}),Hn.jsx(ws,{children:i})]})}));nl.spiritComponent="PaginationButtonLink",nl.displayName="PaginationButtonLink";const rl=e=>{const{children:t,...n}=e,{classProps:r}=el(),{styleProps:o,props:s}=Wt(n);return Hn.jsx("li",{...s,...o,className:y(r.item,o.className),children:t})};rl.spiritComponent="PaginationItem";const ol=t.forwardRef(((e,t)=>{const{t:n}=ln(),{elementType:r="a",accessibilityLabel:o,isCurrent:s,pageNumber:i,...a}=e,l=o||`${n("pagination.goToPage")} ${i}`,c=r,{classProps:p}=el({isCurrent:s}),{styleProps:u,props:d}=Wt(a),f=At(c,{classProps:p.link,styleProps:u,otherProps:d});return Hn.jsxs(c,{...s&&{"aria-current":"page"},...d,...f,ref:t,children:[Hn.jsx(ws,{children:l}),Hn.jsx("span",{"aria-hidden":"true",children:i})]})}));ol.spiritComponent="PaginationLink",ol.displayName="PaginationLink";const sl=t.forwardRef((({accessibilityLabel:e,...t},n)=>{const{t:r}=ln(),o=e??r("pagination.next");return Hn.jsx(nl,{direction:"next",accessibilityLabel:o,...t,ref:n})}));sl.spiritComponent="PaginationLinkNext",sl.displayName="PaginationLinkNext";const il=t.forwardRef((({accessibilityLabel:e,...t},n)=>{const{t:r}=ln(),o=e??r("pagination.previous");return Hn.jsx(nl,{direction:"previous",accessibilityLabel:o,...t,ref:n})}));il.spiritComponent="PaginationLinkPrevious",il.displayName="PaginationLinkPrevious";const al=({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}},ll=e=>{const{t:t}=ln(),{accessibilityLabel:n,accessibilityLabelPrevious:r,accessibilityLabelNext:o,defaultPage:s=1,onChange:i,totalPages:a=0,visiblePages:l=5,...c}=e,p=n??t("pagination.goToPage"),u=r??t("pagination.previous"),d=o??t("pagination.next"),{currentPage:f,pages:m,handlePageChange:h}=al({defaultPage:s,onChange:i,totalPages:a,visiblePages:l});return Hn.jsxs(tl,{...c,children:[1!==f&&Hn.jsx(il,{accessibilityLabel:u,onClick:e=>{e.preventDefault(),h(f-1)}}),m?.map((e=>Hn.jsx(rl,{children:Hn.jsx(ol,{accessibilityLabel:`${p} ${e}`,href:"#",isCurrent:f===e,pageNumber:e,onClick:t=>{t.preventDefault(),h(e)}})},e))),f!==a&&Hn.jsx(sl,{accessibilityLabel:d,onClick:e=>{e.preventDefault(),h(f+1)}})]})};ll.spiritComponent="UncontrolledPagination";const cl=e=>{const{hasSafeArea:t,isFluid:n,size:r,...o}=e,s=Zt("PartnerLogo"),i=`${s}--fluid`,a=`${s}--safeArea`,l=Rt(s,r);return{classProps:y(s,{[i]:n,[a]:t},l),props:o}},pl={hasSafeArea:!0,isFluid:!1,size:V.MEDIUM},ul=e=>{const t={...pl,...e},{children:n,...r}=t,{classProps:o,props:s}=cl(r),{styleProps:i,props:a}=Wt(s);return Hn.jsx("div",{...a,className:y(o,i.className),style:i.style,children:n})};ul.spiritComponent="PartnerLogo";const dl={SELECTED:"selected",NEUTRAL:"neutral"};function fl(e){const{color:t,...n}=e,r=Zt("Pill"),o=`${r}--${t}`;return{classProps:y(r,{[o]:t}),props:n}}const ml={color:dl.SELECTED,elementType:"span"},hl=e=>{const t={...ml,...e},{elementType:n="span",children:r,...o}=t,{classProps:s,props:i}=fl(o),{styleProps:a,props:l}=Wt(i),c=At(n,{classProps:s,styleProps:a,otherProps:l});return Hn.jsx(n,{...l,...c,children:r})};hl.spiritComponent="Pill";const yl=e=>{const{hasComparableFeatures:t,isHighlighted:n,action:r,badge:o,title:s,subtitle:i,note:a,price:l,rows:c,...p}=e,u=Zt("PricingPlan"),d=`${u}--comparableFeatures`,f=`${u}__layout`,m=`${u}--highlighted`,h=Zt("PricingPlanHeader"),g=`${h}__badge`,b=`${h}__title`,v=`${h}__subtitle`,x=`${h}__price`,T=`${h}__action`,S=`${h}__note`,E=`${h}__content`,C=Zt("PricingPlanBody"),w=`${C}__featureList`,N=`${C}__featureItem`,A=`${C}__featureTitle`,_=`${C}__featureTitleText`,R=`${C}__featureDescription`,k=Zt("PricingPlanFooter"),O=y(u,{[d]:t,[m]:n}),$={};return 100!==c&&($[`--${P}pricing-plan-rows`]=c?.toString()),{classProps:{root:O,layout:f,header:{root:h,badge:o?g: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:w,featureItem:N,featureTitle:A,featureTitleText:_,featureDescription:R},footer:k},props:p,styleProps:$}},gl={hasComparableFeatures:!1,isHighlighted:!1,rows:100},bl=e=>{const t={...gl,...e},{elementType:n="article",children:r,...o}=t,{classProps:s,props:i,styleProps:a}=yl(o),{styleProps:l,props:c}=Wt(i),p=At(n,{classProps:s.root,pricingPlanStyleProps:a,styleProps:l});return Hn.jsx(n,{...c,...p,children:Hn.jsx("div",{className:y(s.layout),children:r})})};bl.spiritComponent="PricingPlan";const vl={action:void 0,badge:void 0,note:void 0,price:void 0,subtitle:void 0,title:void 0},xl=e=>{const t={...vl,...e},{elementType:n="header",...r}=t,{classProps:o,props:s}=yl(r),{badge:i,title:a,subtitle:l,price:c,action:p,note:u}=t,{styleProps:d,props:f}=Wt(s),m=At(n,{classProps:o.header.root,styleProps:d});return Hn.jsxs(n,{...f,...m,children:[i&&Hn.jsx("div",{className:o.header.badge,children:i}),Hn.jsxs("div",{className:o.header.content,children:[a&&Hn.jsx("h3",{className:o.header.title,children:a}),l&&Hn.jsx("div",{className:y(o.header.subtitle),children:l}),c&&Hn.jsx("div",{className:o.header.price,children:c}),p&&Hn.jsx("div",{className:o.header.action,children:p}),u&&Hn.jsx("div",{className:o.header.note,children:u})]})]})};xl.spiritComponent="PricingPlanHeader";const Tl=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"}),Pl=Tl.Provider;Tl.Consumer;const Sl=()=>t.useContext(Tl);function El(){return"undefined"!=typeof window}function Cl(e){return Al(e)?(e.nodeName||"").toLowerCase():"#document"}function wl(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Nl(e){var t;return null==(t=(Al(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Al(e){return!!El()&&(e instanceof Node||e instanceof wl(e).Node)}function _l(e){return!!El()&&(e instanceof Element||e instanceof wl(e).Element)}function Rl(e){return!!El()&&(e instanceof HTMLElement||e instanceof wl(e).HTMLElement)}function kl(e){return!(!El()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof wl(e).ShadowRoot)}function Ol(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ml(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function $l(e){return["table","td","th"].includes(Cl(e))}function jl(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function Dl(e){const t=Ll(),n=_l(e)?Ml(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 Ll(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Il(e){return["html","body","#document"].includes(Cl(e))}function Ml(e){return wl(e).getComputedStyle(e)}function Fl(e){return _l(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Bl(e){if("html"===Cl(e))return e;const t=e.assignedSlot||e.parentNode||kl(e)&&e.host||Nl(e);return kl(t)?t.host:t}function Hl(e){const t=Bl(e);return Il(t)?e.ownerDocument?e.ownerDocument.body:e.body:Rl(t)&&Ol(t)?t:Hl(t)}function Ul(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Hl(e),s=o===(null==(r=e.ownerDocument)?void 0:r.body),i=wl(o);if(s){const e=zl(i);return t.concat(i,i.visualViewport||[],Ol(o)?o:[],e&&n?Ul(e):[])}return t.concat(o,Ul(o,[],n))}function zl(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Vl(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 Wl(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&kl(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Gl(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function ql(){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 Xl(e){return!ql().includes("jsdom/")&&(!Yl()&&0===e.width&&0===e.height||Yl()&&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 Yl(){const e=/android/i;return e.test(Gl())||e.test(ql())}function Ql(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function Kl(e){return(null==e?void 0:e.ownerDocument)||document}function Zl(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 Jl(e){return"composedPath"in e?e.composedPath()[0]:e.target}function ec(e){return Rl(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}const tc=Math.min,nc=Math.max,rc=Math.round,oc=Math.floor,sc=e=>({x:e,y:e}),ic={left:"right",right:"left",bottom:"top",top:"bottom"},ac={start:"end",end:"start"};function lc(e,t,n){return nc(e,tc(t,n))}function cc(e,t){return"function"==typeof e?e(t):e}function pc(e){return e.split("-")[0]}function uc(e){return e.split("-")[1]}function dc(e){return"x"===e?"y":"x"}function fc(e){return"y"===e?"height":"width"}function mc(e){return["top","bottom"].includes(pc(e))?"y":"x"}function hc(e){return dc(mc(e))}function yc(e){return e.replace(/start|end/g,(e=>ac[e]))}function gc(e){return e.replace(/left|right|bottom|top/g,(e=>ic[e]))}function bc(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 vc(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 xc(e,t,n){let{reference:r,floating:o}=e;const s=mc(t),i=hc(t),a=fc(i),l=pc(t),c="y"===s,p=r.x+r.width/2-o.width/2,u=r.y+r.height/2-o.height/2,d=r[a]/2-o[a]/2;let f;switch(l){case"top":f={x:p,y:r.y-o.height};break;case"bottom":f={x:p,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:u};break;case"left":f={x:r.x-o.width,y:u};break;default:f={x:r.x,y:r.y}}switch(uc(t)){case"start":f[i]-=d*(n&&c?-1:1);break;case"end":f[i]+=d*(n&&c?-1:1)}return f}async function Tc(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:u="floating",altBoundary:d=!1,padding:f=0}=cc(t,e),m=bc(f),h=a[d?"floating"===u?"reference":"floating":u],y=vc(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})),g="floating"===u?{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=vc(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:g,offsetParent:b,strategy:l}):g);return{top:(y.top-x.top+m.top)/v.y,bottom:(x.bottom-y.bottom+m.bottom)/v.y,left:(y.left-x.left+m.left)/v.x,right:(x.right-y.right+m.right)/v.x}}function Pc(e){const t=tc(...e.map((e=>e.left))),n=tc(...e.map((e=>e.top)));return{x:t,y:n,width:nc(...e.map((e=>e.right)))-t,height:nc(...e.map((e=>e.bottom)))-n}}function Sc(e){const t=Ml(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Rl(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,a=rc(n)!==s||rc(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}function Ec(e){return _l(e)?e:e.contextElement}function Cc(e){const t=Ec(e);if(!Rl(t))return sc(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=Sc(t);let i=(s?rc(n.width):n.width)/r,a=(s?rc(n.height):n.height)/o;return i&&Number.isFinite(i)||(i=1),a&&Number.isFinite(a)||(a=1),{x:i,y:a}}const wc=sc(0);function Nc(e){const t=wl(e);return Ll()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:wc}function Ac(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),s=Ec(e);let i=sc(1);t&&(r?_l(r)&&(i=Cc(r)):i=Cc(e));const a=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==wl(e))&&t}(s,n,r)?Nc(s):sc(0);let l=(o.left+a.x)/i.x,c=(o.top+a.y)/i.y,p=o.width/i.x,u=o.height/i.y;if(s){const e=wl(s),t=r&&_l(r)?wl(r):r;let n=e,o=zl(n);for(;o&&r&&t!==n;){const e=Cc(o),t=o.getBoundingClientRect(),r=Ml(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,u*=e.y,l+=s,c+=i,n=wl(o),o=zl(n)}}return vc({width:p,height:u,x:l,y:c})}function _c(e,t){const n=Fl(e).scrollLeft;return t?t.left+n:Ac(Nl(e)).left+n}function Rc(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:_c(e,r)),y:r.top+t.scrollTop}}function kc(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=wl(e),r=Nl(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=Ll();(!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=Nl(e),n=Fl(e),r=e.ownerDocument.body,o=nc(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=nc(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+_c(e);const a=-n.scrollTop;return"rtl"===Ml(r).direction&&(i+=nc(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:a}}(Nl(e));else if(_l(t))r=function(e,t){const n=Ac(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=Rl(e)?Cc(e):sc(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=Nc(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return vc(r)}function Oc(e,t){const n=Bl(e);return!(n===t||!_l(n)||Il(n))&&("fixed"===Ml(n).position||Oc(n,t))}function $c(e,t,n){const r=Rl(t),o=Nl(t),s="fixed"===n,i=Ac(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=sc(0);if(r||!r&&!s)if(("body"!==Cl(t)||Ol(o))&&(a=Fl(t)),r){const e=Ac(t,!0,s,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=_c(o));const c=!o||r||s?sc(0):Rc(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 jc(e){return"static"===Ml(e).position}function Dc(e,t){if(!Rl(e)||"fixed"===Ml(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Nl(e)===n&&(n=n.ownerDocument.body),n}function Lc(e,t){const n=wl(e);if(jl(e))return n;if(!Rl(e)){let t=Bl(e);for(;t&&!Il(t);){if(_l(t)&&!jc(t))return t;t=Bl(t)}return n}let r=Dc(e,t);for(;r&&$l(r)&&jc(r);)r=Dc(r,t);return r&&Il(r)&&jc(r)&&!Dl(r)?n:r||function(e){let t=Bl(e);for(;Rl(t)&&!Il(t);){if(Dl(t))return t;if(jl(t))return null;t=Bl(t)}return null}(e)||n}const Ic={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s="fixed"===o,i=Nl(r),a=!!t&&jl(t.floating);if(r===i||a&&s)return n;let l={scrollLeft:0,scrollTop:0},c=sc(1);const p=sc(0),u=Rl(r);if((u||!u&&!s)&&(("body"!==Cl(r)||Ol(i))&&(l=Fl(r)),Rl(r))){const e=Ac(r);c=Cc(r),p.x=e.x+r.clientLeft,p.y=e.y+r.clientTop}const d=!i||u||s?sc(0):Rc(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+d.x,y:n.y*c.y-l.scrollTop*c.y+p.y+d.y}},getDocumentElement:Nl,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[..."clippingAncestors"===n?jl(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=Ul(e,[],!1).filter((e=>_l(e)&&"body"!==Cl(e))),o=null;const s="fixed"===Ml(e).position;let i=s?Bl(e):e;for(;_l(i)&&!Il(i);){const t=Ml(i),n=Dl(i);n||"fixed"!==t.position||(o=null),(s?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||Ol(i)&&!n&&Oc(e,i))?r=r.filter((e=>e!==i)):o=t,i=Bl(i)}return t.set(e,r),r}(t,this._c):[].concat(n),r],i=s[0],a=s.reduce(((e,n)=>{const r=kc(t,n,o);return e.top=nc(r.top,e.top),e.right=tc(r.right,e.right),e.bottom=tc(r.bottom,e.bottom),e.left=nc(r.left,e.left),e}),kc(t,i,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:Lc,getElementRects:async function(e){const t=this.getOffsetParent||Lc,n=this.getDimensions,r=await n(e.floating);return{reference:$c(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}=Sc(e);return{width:t,height:n}},getScale:Cc,isElement:_l,isRTL:function(e){return"rtl"===Ml(e).direction}};function Mc(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Fc(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=Ec(e),p=o||s?[...c?Ul(c):[],...Ul(t)]:[];p.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),s&&e.addEventListener("resize",n)}));const u=c&&a?function(e,t){let n,r=null;const o=Nl(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:u,width:d,height:f}=c;if(a||t(),!d||!f)return;const m={rootMargin:-oc(u)+"px "+-oc(o.clientWidth-(p+d))+"px "+-oc(o.clientHeight-(u+f))+"px "+-oc(p)+"px",threshold:nc(0,tc(1,l))||1};let h=!0;function y(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||Mc(c,e.getBoundingClientRect())||i(),h=!1}try{r=new IntersectionObserver(y,{...m,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(y,m)}r.observe(e)}(!0),s}(c,n):null;let d,f=-1,m=null;i&&(m=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame((()=>{var e;null==(e=m)||e.observe(t)}))),n()})),c&&!l&&m.observe(c),m.observe(t));let h=l?Ac(e):null;return l&&function t(){const r=Ac(e);h&&!Mc(h,r)&&n();h=r,d=requestAnimationFrame(t)}(),n(),()=>{var e;p.forEach((e=>{o&&e.removeEventListener("scroll",n),s&&e.removeEventListener("resize",n)})),null==u||u(),null==(e=m)||e.disconnect(),m=null,l&&cancelAnimationFrame(d)}}const Bc=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=pc(n),a=uc(n),l="y"===mc(n),c=["left","top"].includes(i)?-1:1,p=s&&l?-1:1,u=cc(t,e);let{mainAxis:d,crossAxis:f,alignmentAxis:m}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return a&&"number"==typeof m&&(f="end"===a?-1*m:m),l?{x:f*p,y:d*c}:{x:d*c,y:f*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}}}}},Hc=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}=cc(e,t),c={x:n,y:r},p=await Tc(t,l),u=mc(pc(o)),d=dc(u);let f=c[d],m=c[u];if(s){const e="y"===d?"bottom":"right";f=lc(f+p["y"===d?"top":"left"],f,f-p[e])}if(i){const e="y"===u?"bottom":"right";m=lc(m+p["y"===u?"top":"left"],m,m-p[e])}const h=a.fn({...t,[d]:f,[u]:m});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[d]:s,[u]:i}}}}}},Uc=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:u=!0,fallbackPlacements:d,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...y}=cc(e,t);if(null!=(n=s.arrow)&&n.alignmentOffset)return{};const g=pc(o),b=mc(a),v=pc(a)===a,x=await(null==l.isRTL?void 0:l.isRTL(c.floating)),T=d||(v||!h?[gc(a)]:function(e){const t=gc(e);return[yc(e),t,yc(t)]}(a)),P="none"!==m;!d&&P&&T.push(...function(e,t,n,r){const o=uc(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[]}}(pc(e),"start"===n,r);return o&&(s=s.map((e=>e+"-"+o)),t&&(s=s.concat(s.map(yc)))),s}(a,h,m,x));const S=[a,...T],E=await Tc(t,y),C=[];let w=(null==(r=s.flip)?void 0:r.overflows)||[];if(p&&C.push(E[g]),u){const e=function(e,t,n){void 0===n&&(n=!1);const r=uc(e),o=hc(e),s=fc(o);let i="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=gc(i)),[i,gc(i)]}(o,i,x);C.push(E[e[0]],E[e[1]])}if(w=[...w,{placement:o,overflows:C}],!C.every((e=>e<=0))){var N,A;const e=((null==(N=s.flip)?void 0:N.index)||0)+1,t=S[e];if(t)return{data:{index:e,overflows:w},reset:{placement:t}};let n=null==(A=w.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:A.placement;if(!n)switch(f){case"bestFit":{var _;const e=null==(_=w.filter((e=>{if(P){const t=mc(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{}}}},zc=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}=cc(e,t),p=await Tc(t,c),u=pc(o),d=uc(o),f="y"===mc(o),{width:m,height:h}=s.floating;let y,g;"top"===u||"bottom"===u?(y=u,g=d===(await(null==i.isRTL?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(g=u,y="end"===d?"top":"bottom");const b=h-p.top-p.bottom,v=m-p.left-p.right,x=tc(h-p[y],b),T=tc(m-p[g],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&&!d){const e=nc(p.left,0),t=nc(p.right,0),n=nc(p.top,0),r=nc(p.bottom,0);f?E=m-2*(0!==e||0!==t?e+t:nc(p.left,p.right)):S=h-2*(0!==n||0!==r?n+r:nc(p.top,p.bottom))}await l({...t,availableWidth:E,availableHeight:S});const C=await i.getDimensions(a.floating);return m!==C.width||h!==C.height?{reset:{rects:!0}}:{}}}},Vc=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}=cc(e,t)||{};if(null==c)return{};const u=bc(p),d={x:n,y:r},f=hc(o),m=fc(f),h=await i.getDimensions(c),y="y"===f,g=y?"top":"left",b=y?"bottom":"right",v=y?"clientHeight":"clientWidth",x=s.reference[m]+s.reference[f]-d[f]-s.floating[m],T=d[f]-s.reference[f],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[m]);const E=x/2-T/2,C=S/2-h[m]/2-1,w=tc(u[g],C),N=tc(u[b],C),A=w,_=S-h[m]-N,R=S/2-h[m]/2+E,k=lc(A,R,_),O=!l.arrow&&null!=uc(o)&&R!==k&&s.reference[m]/2-(R<A?w:N)-h[m]/2<0,$=O?R<A?R-A:R-_:0;return{[f]:d[f]+$,data:{[f]:k,centerOffset:R-k-$,...O&&{alignmentOffset:$}},reset:O}}}),Wc=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}=cc(e,t),p=Array.from(await(null==s.getClientRects?void 0:s.getClientRects(r.reference))||[]),u=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=>vc(Pc(e))))}(p),d=vc(Pc(p)),f=bc(a);const m=await s.getElementRects({reference:{getBoundingClientRect:function(){if(2===u.length&&u[0].left>u[1].right&&null!=l&&null!=c)return u.find((e=>l>e.left-f.left&&l<e.right+f.right&&c>e.top-f.top&&c<e.bottom+f.bottom))||d;if(u.length>=2){if("y"===mc(n)){const e=u[0],t=u[u.length-1],r="top"===pc(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"===pc(n),t=nc(...u.map((e=>e.right))),r=tc(...u.map((e=>e.left))),o=u.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 d}},floating:r.floating,strategy:i});return o.reference.x!==m.reference.x||o.reference.y!==m.reference.y||o.reference.width!==m.reference.width||o.reference.height!==m.reference.height?{reset:{rects:m}}:{}}}},Gc=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}=cc(e,t),p={x:n,y:r},u=mc(o),d=dc(u);let f=p[d],m=p[u];const h=cc(a,t),y="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const e="y"===d?"height":"width",t=s.reference[d]-s.floating[e]+y.mainAxis,n=s.reference[d]+s.reference[e]-y.mainAxis;f<t?f=t:f>n&&(f=n)}if(c){var g,b;const e="y"===d?"width":"height",t=["top","left"].includes(pc(o)),n=s.reference[u]-s.floating[e]+(t&&(null==(g=i.offset)?void 0:g[u])||0)+(t?0:y.crossAxis),r=s.reference[u]+s.reference[e]+(t?0:(null==(b=i.offset)?void 0:b[u])||0)-(t?y.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[d]:f,[u]:m}}}},qc=(e,t,n)=>{const r=new Map,o={platform:Ic,...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:u}=xc(c,r,l),d=r,f={},m=0;for(let n=0;n<a.length;n++){const{name:s,fn:h}=a[n],{x:y,y:g,data:b,reset:v}=await h({x:p,y:u,initialPlacement:r,placement:d,strategy:o,middlewareData:f,rects:c,platform:i,elements:{reference:e,floating:t}});p=null!=y?y:p,u=null!=g?g:u,f={...f,[s]:{...f[s],...b}},v&&m<=50&&(m++,"object"==typeof v&&(v.placement&&(d=v.placement),v.rects&&(c=!0===v.rects?await i.getElementRects({reference:e,floating:t,strategy:o}):v.rects),({x:p,y:u}=xc(c,d,l))),n=-1)}return{x:p,y:u,placement:d,strategy:o,middlewareData:f}})(e,t,{...o,platform:s})};var Xc="undefined"!=typeof document?t.useLayoutEffect:t.useEffect;function Yc(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(!Yc(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)&&!Yc(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function Qc(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Kc(e,t){const n=Qc(e);return Math.round(t*n)/n}function Zc(e){const t=o.useRef(e);return Xc((()=>{t.current=e})),t}const Jc=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?Vc({element:n.current,padding:r}).fn(t):{}:n?Vc({element:n,padding:r}).fn(t):{};var o}}),ep=(e,t)=>({...Hc(e),options:[e,t]}),tp=(e,t)=>({...Gc(e),options:[e,t]}),np=(e,t)=>({...Uc(e),options:[e,t]}),rp=(e,t)=>({...zc(e),options:[e,t]}),op=(e,t)=>({...Wc(e),options:[e,t]}),sp=(e,t)=>({...Jc(e),options:[e,t]}),ip={...o},ap=ip.useInsertionEffect||(e=>e());function lp(e){const t=o.useRef((()=>{if("production"!==process.env.NODE_ENV)throw new Error("Cannot call an event handler while rendering.")}));return ap((()=>{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 cp="undefined"!=typeof document?t.useLayoutEffect:t.useEffect;let pp=!1,up=0;const dp=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+up++;const fp=ip.useId||function(){const[e,t]=o.useState((()=>pp?dp():void 0));return cp((()=>{null==e&&t(dp())}),[]),o.useEffect((()=>{pp=!0}),[]),e};let mp;"production"!==process.env.NODE_ENV&&(mp=new Set);const hp=o.createContext(null),yp=o.createContext(null),gp=()=>{var e;return(null==(e=o.useContext(hp))?void 0:e.id)||null},bp=()=>o.useContext(yp);function vp(e){return"data-floating-ui-"+e}function xp(e){-1!==e.current&&(clearTimeout(e.current),e.current=-1)}function Tp(e){const n=t.useRef(e);return cp((()=>{n.current=e})),n}const Pp=vp("safe-polygon");function Sp(e,t,n){return n&&!Ql(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}function Ep(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 Cp="data-floating-ui-focusable";function wp(e){return Rl(e.target)&&"BUTTON"===e.target.tagName}function Np(e){return ec(e)}const Ap={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},_p={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Rp=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 kp(e){const{open:t=!1,onOpenChange:n,elements:r}=e,s=fp(),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!=gp();if("production"!==process.env.NODE_ENV){const e=r.reference;e&&!_l(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=mp)&&e.has(o)||(null==(s=mp)||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),u=lp(((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)})),d=o.useMemo((()=>({setPositionReference:p})),[]),f=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:u,elements:f,events:a,floatingId:s,refs:d})),[t,u,f,a,s,d])}function Op(e){void 0===e&&(e={});const{nodeId:t}=e,n=kp({...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),u=(null==i?void 0:i.domReference)||a,d=o.useRef(null),f=bp();cp((()=>{u&&(d.current=u)}),[u]);const m=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:u}=e,[d,f]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,h]=o.useState(r);Yc(m,r)||h(r);const[y,g]=o.useState(null),[b,v]=o.useState(null),x=o.useCallback((e=>{e!==E.current&&(E.current=e,g(e))}),[]),T=o.useCallback((e=>{e!==C.current&&(C.current=e,v(e))}),[]),P=a||y,S=l||b,E=o.useRef(null),C=o.useRef(null),w=o.useRef(d),N=null!=p,A=Zc(p),_=Zc(i),R=Zc(u),k=o.useCallback((()=>{if(!E.current||!C.current)return;const e={placement:t,strategy:n,middleware:m};_.current&&(e.platform=_.current),qc(E.current,C.current,e).then((e=>{const t={...e,isPositioned:!1!==R.current};O.current&&!Yc(w.current,t)&&(w.current=t,s.flushSync((()=>{f(t)})))}))}),[m,t,n,_,R]);Xc((()=>{!1===u&&w.current.isPositioned&&(w.current.isPositioned=!1,f((e=>({...e,isPositioned:!1}))))}),[u]);const O=o.useRef(!1);Xc((()=>(O.current=!0,()=>{O.current=!1})),[]),Xc((()=>{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,N]);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=Kc(j.floating,d.x),r=Kc(j.floating,d.y);return c?{...e,transform:"translate("+t+"px, "+r+"px)",...Qc(j.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,c,j.floating,d.x,d.y]);return o.useMemo((()=>({...d,update:k,refs:$,elements:j,floatingStyles:D})),[d,k,$,j,D])}({...e,elements:{...i,...c&&{reference:c}}}),h=o.useCallback((e=>{const t=_l(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;p(t),m.refs.setReference(t)}),[m.refs]),y=o.useCallback((e=>{(_l(e)||null===e)&&(d.current=e,l(e)),(_l(m.refs.reference.current)||null===m.refs.reference.current||null!==e&&!_l(e))&&m.refs.setReference(e)}),[m.refs]),g=o.useMemo((()=>({...m.refs,setReference:y,setPositionReference:h,domReference:d})),[m.refs,y,h]),b=o.useMemo((()=>({...m.elements,domReference:u})),[m.elements,u]),v=o.useMemo((()=>({...m,...r,refs:g,elements:b,nodeId:t})),[m,g,b,t,r]);return cp((()=>{r.dataRef.current.floatingContext=v;const e=null==f?void 0:f.nodesRef.current.find((e=>e.id===t));e&&(e.context=v)})),o.useMemo((()=>({...m,context:v,refs:g,elements:b})),[m,g,b,v])}function $p(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),u=o.useRef(-1),d=o.useRef(!0);o.useEffect((()=>{if(!l)return;const e=wl(a.domReference);function t(){!n&&Rl(a.domReference)&&a.domReference===Vl(Kl(a.domReference))&&(p.current=!0)}function r(){d.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((()=>()=>{xp(u)}),[]);const f=o.useMemo((()=>({onPointerDown(e){Xl(e.nativeEvent)||(d.current=!1)},onMouseLeave(){p.current=!1},onFocus(e){if(p.current)return;const t=Jl(e.nativeEvent);if(c&&_l(t))try{if(/apple/i.test(navigator.vendor)&&Gl().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints)throw Error();if(!t.matches(":focus-visible"))return}catch(e){if(!d.current&&!ec(t))return}r(!0,e.nativeEvent,"focus")},onBlur(e){p.current=!1;const t=e.relatedTarget,n=e.nativeEvent,o=_l(t)&&t.hasAttribute(vp("focus-guard"))&&"outside"===t.getAttribute("data-type");u.current=window.setTimeout((()=>{var e;const s=Vl(a.domReference?a.domReference.ownerDocument:document);(t||s!==a.domReference)&&(Wl(null==(e=i.current.floatingContext)?void 0:e.refs.floating.current,s)||Wl(a.domReference,s)||o||r(!1,n,"focus"))}))}})),[i,a.domReference,r,c]);return o.useMemo((()=>l?{reference:f}:{}),[l,f])}const jp="active",Dp="selected";function Lp(e,t,n){const r=new Map,o="item"===n;let s=e;if(o&&e){const{[jp]:t,[Dp]:n,...r}=e;s=r}return{..."floating"===n&&{tabIndex:-1,[Cp]:""},...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&&[jp,Dp].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 Ip=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function Mp(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 Fp(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:u,onClose:d,nodeId:f,tree:m}=e;return function(e){function h(){clearTimeout(o),d()}if(clearTimeout(o),!u.domReference||!u.floating||null==p||null==n||null==c)return;const{clientX:y,clientY:g}=e,b=[y,g],v=Jl(e),x="mouseleave"===e.type,T=Wl(u.floating,v),P=Wl(u.domReference,v),S=u.domReference.getBoundingClientRect(),E=u.floating.getBoundingClientRect(),C=p.split("-")[0],w=n>E.right-E.width/2,N=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&&_l(e.relatedTarget)&&Wl(u.floating,e.relatedTarget))return;if(m&&Ep(m.nodesRef.current,f).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(!Mp([y,g],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()}Mp([y,g],function(e){let[n,r]=e;switch(C){case"top":return[[_?n+t/2:w?n+4*t:n-4*t,r+t+1],[_?n-t/2:w?n+4*t:n-4*t,r+t+1],...[[E.left,w||_?E.bottom-t:E.top],[E.right,w?_?E.bottom-t:E.top:E.bottom-t]]];case"bottom":return[[_?n+t/2:w?n+4*t:n-4*t,r-t],[_?n-t/2:w?n+4*t:n-4*t,r-t],...[[E.left,w||_?E.top+t:E.bottom],[E.right,w?_?E.top+t:E.bottom:E.top+t]]];case"left":{const e=[n+t+1,R?r+t/2:N?r+4*t:r-4*t],o=[n+t+1,R?r-t/2:N?r+4*t:r-4*t];return[...[[N||R?E.right-t:E.left,E.top],[N?R?E.right-t:E.left:E.right-t,E.bottom]],e,o]}case"right":return[[n-t,R?r+t/2:N?r+4*t:r-4*t],[n-t,R?r-t/2:N?r+4*t:r-4*t],...[[N||R?E.left+t:E.right,E.top],[N?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 Bp=e=>{const{arrowRef:n,cornerOffset:r=0,flipCrossAxis:s,flipFallbackAxisSideDirection:i="none",flipFallbackPlacements:a,flipProp:l,isDismissible:c,isOpen:p=!1,offset:u=0,onToggle:d,isFocusableOnHover:f,shiftProp:m,sizeProp:h,positionStrategy:y="absolute",tooltipArrowWidth:g=0,tooltipPlacement:b,trigger:v}=e,[x,T]=t.useState(void 0),[P,S]=t.useState(!1),E=r+g,C=v?.includes(Se.HOVER),w=v?.includes(Se.CLICK),N=v?.includes(Se.FOCUS),{x:A,y:_,floatingStyles:R,refs:k,context:O,placement:$,middlewareData:j}=Op({open:p,onOpenChange:(e,t,n)=>{if(C){if(n===Se.CLICK&&S((e=>!e)),p&&P&&n===Se.HOVER)return;if(p&&P&&(n===Se.CLICK||n===Se.OUTSIDE_PRESS||n===Se.ESCAPE_KEY))return S(!1),void d(!1)}d(e)},placement:b,whileElementsMounted:Fc,middleware:[(L=u,{...Bc(L),options:[L,I]}),op(),l&&np({crossAxis:s,fallbackPlacements:a?(D=a,Array.isArray(D)?D:[D]):void 0,fallbackAxisSideDirection:i}),m&&ep({limiter:tp({offset:()=>({mainAxis:E})})}),h&&rp({apply({availableWidth:e}){T(e)}}),sp({element:n.current,padding:r})],strategy:y});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:u=!0,stickIfOpen:d=!0}=t,f=o.useRef(),m=o.useRef(!1),h=o.useMemo((()=>({onPointerDown(e){f.current=e.pointerType},onMouseDown(e){const t=f.current;0===e.button&&"click"!==l&&(Ql(t,!0)&&p||(!n||!c||s.current.openEvent&&d&&"mousedown"!==s.current.openEvent.type?(e.preventDefault(),r(!0,e.nativeEvent,"click")):r(!1,e.nativeEvent,"click")))},onClick(e){const t=f.current;"mousedown"===l&&f.current?f.current=void 0:Ql(t,!0)&&p||(!n||!c||s.current.openEvent&&d&&"click"!==s.current.openEvent.type?r(!0,e.nativeEvent,"click"):r(!1,e.nativeEvent,"click"))},onKeyDown(e){f.current=void 0,e.defaultPrevented||!u||wp(e)||(" "!==e.key||Np(i)||(e.preventDefault(),m.current=!0),"Enter"===e.key&&r(!n||!c,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!u||wp(e)||Np(i)||" "===e.key&&m.current&&(m.current=!1,r(!n||!c,e.nativeEvent,"click"))}})),[s,i,l,p,u,r,n,d,c]);return o.useMemo((()=>a?{reference:h}:{}),[a,h])}(O,{enabled:w}),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:u=!1,restMs:d=0,move:f=!0}=t,m=bp(),h=gp(),y=Tp(p),g=Tp(c),b=Tp(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((()=>{})),w=o.useRef(!1),N=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||(xp(x),xp(P),S.current=!0,w.current=!1)}}),[l,i]),o.useEffect((()=>{if(!l)return;if(!y.current)return;if(!n)return;function e(e){N()&&r(!1,e,"hover")}const t=Kl(a.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}}),[a.floating,n,r,l,y,N]);const A=o.useCallback((function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const o=Sp(g.current,"close",v.current);o&&!T.current?(xp(x),x.current=window.setTimeout((()=>r(!1,e,n)),o)):t&&(xp(x),r(!1,e,n))}),[g,r]),_=lp((()=>{C.current(),T.current=void 0})),R=lp((()=>{if(E.current){const e=Kl(a.floating).body;e.style.pointerEvents="",e.removeAttribute(Pp),E.current=!1}})),k=lp((()=>!!s.current.openEvent&&["click","mousedown"].includes(s.current.openEvent.type)));o.useEffect((()=>{if(l&&_l(a.domReference)){var e;const r=a.domReference;return n&&r.addEventListener("mouseleave",i),null==(e=a.floating)||e.addEventListener("mouseleave",i),f&&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),f&&r.removeEventListener("mousemove",t),r.removeEventListener("mouseenter",t),r.removeEventListener("mouseleave",o)}}function t(e){if(xp(x),S.current=!1,u&&!Ql(v.current)||d>0&&!Sp(g.current,"open"))return;const t=Sp(g.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=Kl(a.floating);if(xp(P),w.current=!1,y.current&&s.current.floatingContext){n||xp(x),T.current=y.current({...s.current.floatingContext,tree:m,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||!Wl(a.floating,e.relatedTarget))&&A(e)}function i(e){k()||s.current.floatingContext&&(null==y.current||y.current({...s.current.floatingContext,tree:m,x:e.clientX,y:e.clientY,onClose(){R(),_(),k()||A(e)}})(e))}}),[a,l,e,u,d,f,A,_,R,r,n,b,m,g,y,s,k]),cp((()=>{var e;if(l&&n&&null!=(e=y.current)&&e.__options.blockPointerEvents&&N()){E.current=!0;const e=a.floating;if(_l(a.domReference)&&e){var t;const n=Kl(a.floating).body;n.setAttribute(Pp,"");const r=a.domReference,o=null==m||null==(t=m.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,m,y,N]),cp((()=>{n||(v.current=void 0,w.current=!1,_(),R())}),[n,_,R]),o.useEffect((()=>()=>{_(),xp(x),xp(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")}u&&!Ql(v.current)||n||0===d||w.current&&e.movementX**2+e.movementY**2<2||(xp(P),"touch"===v.current?o():(w.current=!0,P.current=window.setTimeout(o,d)))}}}),[u,r,n,b,d]),$=o.useMemo((()=>({onMouseEnter(){xp(x)},onMouseLeave(e){k()||A(e.nativeEvent,!1)}})),[A,k]);return o.useMemo((()=>l?{reference:O,floating:$}:{}),[l,O,$])}(O,{enabled:C,handleClose:(B=!!f,B?Fp({requireIntent:!1}):void 0)});var B;const H=$p(O,{enabled:N}),U=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:u=!1,referencePressEvent:d="pointerdown",ancestorScroll:f=!1,bubbles:m,capture:h}=t,y=bp(),g=lp("function"==typeof c?c:()=>!1),b="function"==typeof c?g:c,v=o.useRef(!1),x=o.useRef(!1),{escapeKey:T,outsidePress:P}=Rp(m),{escapeKey:S,outsidePress:E}=Rp(h),C=o.useRef(!1),w=lp((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=y?Ep(y.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")})),N=lp((e=>{var t;const n=()=>{var t;w(e),null==(t=Jl(e))||t.removeEventListener("keydown",n)};null==(t=Jl(e))||t.addEventListener("keydown",n)})),A=lp((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=Jl(e),l="["+vp("inert")+"]",c=Kl(s.floating).querySelectorAll(l);let u=_l(a)?a:null;for(;u&&!Il(u);){const e=Bl(u);if(Il(e)||!_l(e))break;u=e}if(c.length&&_l(a)&&!a.matches("html,body")&&!Wl(a,s.floating)&&Array.from(c).every((e=>!Wl(u,e))))return;if(Rl(a)&&k){const t=Il(a),n=Ml(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),u=i&&e.offsetY>a.clientHeight;if(p||u)return}const d=null==(t=i.current.floatingContext)?void 0:t.nodeId,f=y&&Ep(y.nodesRef.current,d).some((t=>{var n;return Zl(e,null==(n=t.context)?void 0:n.elements.floating)}));if(Zl(e,s.floating)||Zl(e,s.domReference)||f)return;const m=y?Ep(y.nodesRef.current,d):[];if(m.length>0){let e=!0;if(m.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)})),!e)return}r(!1,e,"outside-press")})),_=lp((e=>{var t;const n=()=>{var t;A(e),null==(t=Jl(e))||t.removeEventListener(p,n)};null==(t=Jl(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}),Ll()?5:0)}const u=Kl(s.floating);l&&(u.addEventListener("keydown",S?N:w,S),u.addEventListener("compositionstart",o),u.addEventListener("compositionend",c)),b&&u.addEventListener(p,E?_:A,E);let d=[];return f&&(_l(s.domReference)&&(d=Ul(s.domReference)),_l(s.floating)&&(d=d.concat(Ul(s.floating))),!_l(s.reference)&&s.reference&&s.reference.contextElement&&(d=d.concat(Ul(s.reference.contextElement)))),d=d.filter((e=>{var t;return e!==(null==(t=u.defaultView)?void 0:t.visualViewport)})),d.forEach((e=>{e.addEventListener("scroll",t,{passive:!0})})),()=>{l&&(u.removeEventListener("keydown",S?N:w,S),u.removeEventListener("compositionstart",o),u.removeEventListener("compositionend",c)),b&&u.removeEventListener(p,E?_:A,E),d.forEach((e=>{e.removeEventListener("scroll",t)})),window.clearTimeout(e)}}),[i,s,l,b,p,n,r,f,a,T,P,w,S,N,A,E,_]),o.useEffect((()=>{v.current=!1}),[b,p]);const R=o.useMemo((()=>({onKeyDown:w,...u&&{[Ap[d]]:e=>{r(!1,e.nativeEvent,"reference-press")},..."click"!==d&&{onClick(e){r(!1,e.nativeEvent,"reference-press")}}}})),[w,r,u,d]),k=o.useMemo((()=>({onKeyDown:w,onMouseDown(){x.current=!0},onMouseUp(){x.current=!0},[_p[p]]:()=>{v.current=!0}})),[w,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=Ip.get(a))?n:a,c=fp(),p=null!=gp(),u=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]),d=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]),f=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:u,floating:d,item:f}:{}),[i,u,d,f])}(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=>Lp(t,e,"reference")),t),i=o.useCallback((t=>Lp(t,e,"floating")),n),a=o.useCallback((t=>Lp(t,e,"item")),r);return o.useMemo((()=>({getReferenceProps:s,getFloatingProps:i,getItemProps:a})),[s,i,a])}([M,F,H,U,z]);return{context:O,getFloatingProps:W,getReferenceProps:e=>{const t=V(e);if(N){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}},Hp=e=>{const{isDismissible:n,isOpen:r,...o}=e,s=Zt("Tooltip"),i=`${s}Popover`,a=`${i}__arrow`,l=`${i}__close`,c=`${i}--dismissible`,p="is-hidden",u=t.useMemo((()=>!1===r),[r]);return{classProps:{rootClassName:s,popoverClassName:y(i,{[c]:n,[p]:u}),arrowClassName:a,closeButtonClassName:l},props:o}},Up=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:u,isDismissible:d=!1,isFocusableOnHover:f=!1,isOpen:m=!1,onToggle:h,placement:y,positionStrategy:g="absolute",trigger:b=["click","hover"],...v}=e,x=o,{classProps:T,props:P}=Hp({isDismissible:d,isOpen:m,...v}),{styleProps:S,props:E}=Wt(P),C=At(x,{classProps:T.rootClassName,styleProps:S}),w=t.useRef(null),N=t.useRef(n);let A,_,R,k;const O=N.current?.querySelector('[data-spirit-element="tooltip"]'),$=O?.querySelector('[data-spirit-element="tooltip-arrow"]');if(O){const e=window.getComputedStyle(O),t=$&&window.getComputedStyle($);A=parseInt(e.getPropertyValue("--tooltip-max-width"),10),_=parseInt(e.getPropertyValue("--tooltip-offset"),10),R=t?parseInt(t.getPropertyValue("--tooltip-arrow-corner-offset"),10):0,k=t?parseInt(t.width,10):0}const{getFloatingProps:j,getReferenceProps:D,maxWidth:L,middlewareData:I,placement:M,refs:F,x:B,y:H,position:U}=Bp({arrowRef:w,cornerOffset:R,flipCrossAxis:i,flipFallbackAxisSideDirection:c,flipFallbackPlacements:p,flipProp:s,isDismissible:d,isFocusableOnHover:f,isOpen:m,offset:_,onToggle:h,shiftProp:a,sizeProp:l,positionStrategy:g,tooltipArrowWidth:k,tooltipPlacement:y,trigger:b});return Hn.jsx(Pl,{value:{anchorRef:F.setPositionReference,arrowRef:w,getFloatingProps:j,getReferenceProps:D,id:u,isDismissible:d,isOpen:m,middlewareData:I,onToggle:h,placement:M,sizeMaxWidth:L,tooltipMaxWidth:A,tooltipRef:F.setFloating,triggerRef:F.setReference,x:B,y:H,position:U},children:Hn.jsx(x,{...E,ref:N,...C,children:r})})}));Up.spiritComponent="Tooltip",Up.displayName="Tooltip";const zp=({label:e,onClick:t,...n})=>{const{t:r}=ln(),o=e??r("common.close"),{classProps:s,props:i}=Hp(n),{styleProps:a}=Wt({...i});return Hn.jsxs("button",{type:"button",className:y(s.closeButtonClassName,a.className),style:a.style,onClick:t,"aria-expanded":"true",children:[Hn.jsx(Qn,{name:"close","aria-hidden":"true"}),Hn.jsx(ws,{children:o})]})};zp.spiritComponent="TooltipCloseButton";const Vp=e=>{const{children:n,...r}=e,{arrowRef:o,getFloatingProps:s,isDismissible:i,isOpen:a,middlewareData:l,onToggle:c,placement:p,tooltipRef:u,x:d,y:f,position:m,sizeMaxWidth:h,tooltipMaxWidth:g}=Sl(),{classProps:b,props:v}=Hp({isOpen:a,isDismissible:i,...r}),{styleProps:x,props:T}=Wt(v),P=t.useMemo((()=>i&&Hn.jsx(zp,{onClick:()=>c(!1),label:"close"})),[i,c]);return Hn.jsxs("div",{ref:u,className:y(b.popoverClassName,x.className),...T,...s(),style:{position:m,top:f??0,left:d??0,...(()=>{if(a&&h&&g)return{maxWidth:g<h?g:h}})(),...x.style},"data-spirit-element":"tooltip","data-spirit-placement":p,children:[n,P,Hn.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)}}})()}})]})};Vp.spiritComponent="TooltipPopover";const Wp={elementType:"button",children:null},Gp=e=>{const t={...Wp,...e},{elementType:n="button",children:r,...o}=t,{id:s,isOpen:i,triggerRef:a,getReferenceProps:l}=Sl(),{styleProps:c,props:p}=Wt(o),u=At(n,{triggerStyleProps:c,transferProps:p});return Hn.jsx(n,{...p,...u,id:s,ref:a,...l(),children:"function"==typeof r?r({isOpen:i}):r})};Gp.spiritComponent="TooltipTrigger";const qp=(e=!1)=>{const[n,r]=t.useState(e);return{isOpen:n,onToggle:r}},Xp=e=>{const{children:t,isOpen:n,...r}=e,{isOpen:o,onToggle:s}=qp(n);return Hn.jsx(Up,{...r,isOpen:o,onToggle:s,children:t})};Xp.spiritComponent="UncontrolledTooltip";const Yp=({feature:e,featureId:n,...r})=>{const{modalContent:o,title:s,tooltipContent:i}=e,{classProps:a}=yl(r),[l,c]=Cn(!1),[p,u]=t.useState(!1);return o?Hn.jsxs("div",{className:a.body.featureTitle,children:[Hn.jsx(Qn,{name:"check-plain",boxSize:16}),Hn.jsx("button",{type:"button",onClick:()=>u(!0),className:y(a.body.featureTitleText,"text-underlined-dotted"),children:s}),Hn.jsx(Da,{id:`${n}-modal`,isOpen:p,onClose:()=>u(!1),children:Hn.jsxs(Fa,{isScrollable:!0,children:[Hn.jsx(Ua,{children:s}),Hn.jsx(La,{children:o})]})})]}):i?Hn.jsxs(Up,{elementType:"div",id:`${n}-tooltip`,isDismissible:!0,isOpen:l,onToggle:c,placement:"top",trigger:["click"],UNSAFE_className:a.body.featureTitle,children:[Hn.jsx(Qn,{name:"check-plain",boxSize:16}),Hn.jsx(Gp,{elementType:"button",UNSAFE_className:y(a.body.featureTitleText,"text-underlined-dotted"),children:s}),Hn.jsx(Vp,{children:Hn.jsx("div",{children:i})})]}):Hn.jsxs("div",{className:a.body.featureTitle,children:[Hn.jsx(Qn,{name:"check-plain",boxSize:16}),Hn.jsx("div",{className:a.body.featureTitleText,id:`${n}-title`,children:s})]})};Yp.spiritComponent="PricingPlanFeatureTitle";const Qp={description:void 0,features:[]},Kp=e=>{const t={...Qp,...e},{description:n,elementType:r="div",features:o=[],id:s,...i}=t,{classProps:a,props:l}=yl(i),{styleProps:c,props:p}=Wt(l),u=At(r,{classProps:a.body.root,styleProps:c});return Hn.jsxs(r,{...p,...u,children:[n&&Hn.jsx("div",{children:n}),Hn.jsx("ul",{className:a.body.featureList,children:o.map(((e,t)=>{const n=`featureItem-${t}`,r=`${s}-feature-${t}`;return Hn.jsxs("li",{className:a.body.featureItem,children:[Hn.jsx(Yp,{feature:e,featureId:r}),Hn.jsx("div",{className:a.body.featureDescription,children:e.description})]},n)}))})]})};Kp.spiritComponent="PricingPlanBody";const Zp=e=>{const{children:t,elementType:n="footer",...r}=e,{classProps:o,props:s}=yl(r),{styleProps:i,props:a}=Wt(s),l=At(n,{classProps:o.footer,styleProps:i});return Hn.jsx(n,{...a,...l,children:t})};Zp.spiritComponent="PricingPlanFooter";const Jp=e=>{const{children:t,...n}=e,r=Zt("ProductLogo"),{styleProps:o,props:s}=Wt(n);return Hn.jsx("div",{...s,className:y(r,o.className),style:o.style,children:t})};function eu(e){const{inputPosition:t=te.START,isItem:n,isLabelHidden:r,validationState:o,...s}=e,{isDisabled:i}=s,a=Zt("Radio"),l=`${a}--disabled`,c=`${a}--item`,p=`${a}__input`,u=mn(a,t),d=`${a}__label`,f=`${a}__label--hidden`,m=`${a}__text`,h=`${a}__helperText`,g=`${a}--${o}`;return{classProps:{root:y(a,{[u]:u,[l]:i,[c]:n,[g]:o}),label:y(d,{[f]:r}),input:p,text:m,helperText:h},props:s}}Jp.spiritComponent="ProductLogo";const tu=t.forwardRef(((e,t)=>{const{classProps:n,props:r}=eu(e),{"aria-describedby":o="",helperText:s,id:i,isChecked:a,isDisabled:l,label:c,onChange:p,value:u,...d}=r,{styleProps:f,props:m}=Wt(d),[h,g]=ns(o),b=qt(h);return Hn.jsxs("div",{style:f.style,className:y(n.root,f.className),children:[Hn.jsx("input",{...m,...b,type:"radio",id:i,className:n.input,disabled:l,checked:a,onChange:p,value:u,ref:t}),Hn.jsxs("div",{className:n.text,children:[Hn.jsx(ts,{UNSAFE_className:n.label,htmlFor:i,children:c}),Hn.jsx(es,{UNSAFE_className:n.helperText,id:`${i}__helperText`,registerAria:g,helperText:s})]})]})}));tu.spiritComponent="Radio",tu.displayName="Radio";const nu="Scroll right",ru="Scroll left",ou="Scroll down",su="Scroll up",iu=K.VERTICAL,au="shadows",lu=({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])}},cu=(e,t,n=300)=>{const r=(e=>e?{start:ru,end:nu}:{top:su,bottom:ou})(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}]}},pu=({direction:e,isScrollbarDisabled:t,isScrolledAtEnd:n,isScrolledAtStart:r,overflowDecorators:o=au})=>{const s=Zt("ScrollView"),i=`${s}--${e}`,a=`${s}--scrollbarDisabled`,l=`${s}__viewport`,c=`${s}__content`,p=`${s}__overflowDecorators`,u={shadows:`${p}--shadows`,borders:`${p}--borders`,both:y(`${p}--shadows`,`${p}--borders`)}[o],d="is-scrolled-at-start",f="is-scrolled-at-end",m=`${s}__arrows`;return{classProps:{root:y(s,i,{[a]:t,[f]:n,[d]:r}),viewport:l,content:c,overflowDecorators:y(p,u),arrows:m}}},uu=e=>{const{ariaLabelArrows:t,direction:n,scrollStep:r,viewportRef:o,...s}=e,{classProps:i}=pu({direction:n}),{styleProps:a,props:l}=Wt(s),c=At("button",{classProps:i.arrows,styleProps:a}),p=ee(n),{arrows:u}=cu(p,t,r),{handleScroll:d}=lu({viewportRef:o,direction:n});return Hn.jsx("div",{...l,...c,children:u.map((({icon:e,label:t,step:n})=>Hn.jsx(ms,{"aria-label":t,onClick:()=>d(n),size:"small",isSymmetrical:!0,children:Hn.jsx(Qn,{name:e})},e)))})};uu.spiritComponent="ScrollViewArrows";const du=({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 u=p[l]<=-1,d=p[c]>=1;u!==o&&s(u),d!==i&&a(d)},c=t.useCallback(Le(l,50),[l]);return bn({ref:e,onResize:c}),t.useEffect(l,[]),{isScrolledAtEnd:i,isScrolledAtStart:o,onScroll:Le(l,50)}},fu=e=>{const{ariaLabelArrows:n,arrowsScrollStep:r=300,children:o,direction:s=iu,hasArrows:i=!1,isScrollbarDisabled:a,overflowDecorators:l=au,...c}=e,p=t.useRef(null),u=t.useRef(null),{isScrolledAtEnd:d,isScrolledAtStart:f,onScroll:m}=du({contentReference:p,direction:s,viewportReference:u}),{classProps:h}=pu({direction:s,isScrollbarDisabled:a,isScrolledAtStart:f,isScrolledAtEnd:d,overflowDecorators:l}),{styleProps:g,props:b}=Wt(c);return Hn.jsxs("div",{...b,...g,className:y(h.root,g.className),children:[Hn.jsx("div",{className:h.viewport,onScroll:m,ref:u,tabIndex:0,children:Hn.jsx("div",{className:h.content,ref:p,children:o})}),Hn.jsx("div",{className:h.overflowDecorators,"aria-hidden":"true"}),i&&Hn.jsx(uu,{ariaLabelArrows:n,direction:s,scrollStep:r,viewportRef:u})]})};fu.spiritComponent="ScrollView";const mu={[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"}}},hu=(e={})=>{const{size:t}=e;return{modifiedProps:t?{...mu[t],...e}:e}},yu=e=>{const{backgroundColor:t}=e||{},n=Zt(`bg-${t}`),r=t?n:"";return{classProps:y({[r]:t})}},gu={elementType:"section",hasContainer:!0,size:void 0},bu=t.forwardRef(((e,t)=>{const n={...gu,...e},{elementType:r=gu.elementType,backgroundColor:o,children:s,containerProps:i,hasContainer:a,...l}=n,c=r,{classProps:p}=yu({backgroundColor:o}),{modifiedProps:u}=hu(l),{styleProps:d,props:f}=Wt(u,{paddingTop:ae.paddingTop,paddingBottom:ae.paddingBottom,paddingY:ae.paddingY,textAlignment:le.textAlignment}),m=At(c,{classProps:p,styleProps:d});return Hn.jsx(c,{...f,...m,ref:t,children:a?Hn.jsx(ps,{...i,children:s}):s})}));bu.spiritComponent="Section",bu.displayName="Section";const vu=t.createContext({isMultiselect:!1,name:"",selectedValue:[],setSelectedValue:()=>{},onSelectionChange:()=>{}}),xu=vu.Provider,Tu=e=>{const{isFluid:t,variant:n=Y.OUTLINE,...r}=e,o=Zt("SegmentedControl"),s=`${o}--fluid`,i=`${o}Item`,a=`${i}__input`,l=`${i}__label`;return{classProps:{root:y(o,`${o}--${n}`,{[s]:t}),input:a,label:l},props:r}},Pu={isFluid:!1,isMultiselect:!1,variant:Y.OUTLINE},Su=e=>{const t={...Pu,...e},{children:n,isMultiselect:r,label:o,name:s,onSelectionChange:i,selectedValue:a,setSelectedValue:l,...c}=t,{classProps:p,props:u}=Tu(c),{styleProps:d,props:f}=Wt(u),m={isMultiselect:r,name:s,selectedValue:a,setSelectedValue:l,onSelectionChange:i};return Hn.jsx(xu,{value:m,children:Hn.jsxs("fieldset",{...f,...d,className:y(p.root,d.className),children:[Hn.jsx(ws,{elementType:"legend",children:o}),n]})})};Su.spiritComponent="SegmentedControl";const Eu=t.forwardRef(((e,n)=>{const{isMultiselect:r,name:o,onSelectionChange:s,selectedValue:i,setSelectedValue:a}=t.useContext(vu),{id:l,isDisabled:c,value:p,children:u,...d}=e,{classProps:f,props:m}=Tu(d),{styleProps:h,props:g}=Wt(m),b=r?Array.isArray(i)&&i.includes(String(p)):i===String(p);return Hn.jsxs(Hn.Fragment,{children:[Hn.jsx("input",{...g,...h,...c&&{disabled:!0},className:y(f.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))}),Hn.jsx("label",{ref:n,htmlFor:l,...h,className:y(f.label,h.className),children:u})]})}));Eu.spiritComponent="SegmentedControlItem",Eu.displayName="SegmentedControlItem";const Cu=({isDisabled:e,isFluid:t,isLabelHidden:n,isRequired:r,size:o,validationState:s})=>{const i=Zt("Select"),a=`${i}--fluid`,l=`${i}--disabled`,c=`${i}--${o}`,p=`${i}--${s}`,u=`${i}__label`,d=`${u}--required`,f=`${u}--hidden`,m=`${i}__inputContainer`,h=`${i}__input`,g=`${i}__icon`,b=`${i}__validationText`,v=`${i}__helperText`;return{classProps:{root:y(i,{[l]:e,[a]:t,[c]:o,[p]:s}),label:y(u,{[d]:r,[f]:n}),container:m,input:h,icon:g,validationText:b,helperText:v}}},wu=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:u,size:d=V.MEDIUM,validationState:f,validationText:m,...h}=e,{classProps:g}=Cu({isDisabled:a,isFluid:l,isLabelHidden:c,isRequired:p,size:d,validationState:f}),{styleProps:b,props:v}=Wt(h),[x,T]=ns(n),P=qt(x),S=ss({validationState:f,validationText:m});return Hn.jsxs("div",{...b,className:y(g.root,b.className),children:[Hn.jsx(ts,{htmlFor:i,UNSAFE_className:g.label,children:u}),Hn.jsxs("div",{className:g.container,children:[Hn.jsx("select",{...v,...P,id:i,className:g.input,disabled:a,required:p,ref:t,children:r}),Hn.jsx("div",{className:g.icon,children:Hn.jsx(Qn,{name:"chevron-down",boxSize:d===V.SMALL?16:20})})]}),Hn.jsx(es,{UNSAFE_className:g.helperText,id:`${i}__helperText`,registerAria:T,helperText:s}),f&&Hn.jsx(os,{UNSAFE_className:g.validationText,...o&&{hasValidationStateIcon:f},id:`${i}__validationText`,validationText:m,registerAria:T,role:S})]})}));function Nu(e){const{size:t,...n}=e||{},r=Zt("Skeleton"),o=`${r}--${t}`,s=`${r}--text`,i=`${r}--heading`,a=`${r}__item`;return{classProps:{root:y(r,{[o]:t}),text:s,heading:i,item:a},props:n}}wu.spiritComponent="Select",wu.displayName="Select";const Au=()=>{const{classProps:e}=Nu();return Hn.jsx("div",{className:y(e.item),"aria-hidden":"true"})};Au.spiritComponent="SkeletonItem";const _u={size:W.MEDIUM,lines:1,elementType:"div"},Ru=e=>{const t={..._u,...e},{elementType:n="div",lines:r,...o}=t,{classProps:s,props:i}=Nu(o),{styleProps:a,props:l}=Wt(i),c=At(n,{classProps:s.root,classPropsText:s.text,styleProps:a,otherProps:l}),p=[...Array(r??1).keys()];return Hn.jsx(n,{...l,...c,children:p.map((e=>Hn.jsx(Au,{},`skeleton-item-${e.toString()}`)))})};Ru.spiritComponent="SkeletonText";const ku={size:W.MEDIUM,lines:1,elementType:"div"},Ou=e=>{const t={...ku,...e},{elementType:n="div",lines:r,...o}=t,{classProps:s,props:i}=Nu(o),{styleProps:a,props:l}=Wt(i),c=At(n,{classProps:s.root,classPropsHeading:s.heading,styleProps:a,otherProps:l}),p=[...Array(r??1).keys()];return Hn.jsx(n,{...l,...c,children:p.map((e=>Hn.jsx(Au,{},`skeleton-item-${e.toString()}`)))})};Ou.spiritComponent="SkeletonHeading";const $u=(e,t)=>{if(!t)return{};const n=`--${e}`;return{[n]:`${t?.toString()}px`}},ju=(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},Du={borderRadius:j[400],elementType:"div"},Lu=e=>{const t={...Du,...e},{elementType:n="div",...r}=t,{classProps:o,skeletonShapeStyleProps:s,props:i}=(e=>{const{height:t,width:n,borderRadius:r,...o}=e,s=Zt("Skeleton"),i=y(s,`${s}--shape`),a=`${P}skeleton-shape`;return{classProps:i,skeletonShapeStyleProps:{...$u(`${a}-width`,n),...$u(`${a}-height`,t),...r?ju(`${a}-radius`,r):{}},props:o}})(r),{styleProps:a,props:l}=Wt(i),c=At(n,{classProps:o,styleProps:a,skeletonShapeStyleProps:s,otherProps:l});return Hn.jsx(n,{...l,...c})};function Iu(e){const{...t}=e;return{classProps:Zt("SkipLink"),props:t}}Lu.spiritComponent="SkeletonShape";const Mu={elementType:"a"},Fu=t.forwardRef(((e,t)=>{const n={...Mu,...e},{elementType:r=Mu.elementType,children:o,...s}=n,{classProps:i,props:a}=Iu(s),{styleProps:l,props:c}=Wt(a),p=At("a",{classProps:i,styleProps:l,otherProps:c});return Hn.jsx(r,{...c,...p,href:s.href,ref:t,children:o})}));Fu.spiritComponent="SkipLink",Fu.displayName="SkipLink";function Bu(e){const{isDisabled:t,isFluid:n,isLabelHidden:r,validationState:o,...s}=e,i=Zt("Slider"),a=y(i),l=`${i}--disabled`,c=`${i}--fluid`,p=`${i}--${o}`,u=y(`${i}__label`),d=`${i}__label--hidden`,f=`${i}__input`,m=`${i}__helperText`,h=`${i}__validationText`;return{classProps:{root:y(a,{[l]:t,[c]:n,[p]:o}),label:y(u,{[d]:r}),input:f,helperText:m,validationText:h},props:s}}const Hu={max:100,min:0,step:1},Uu=t.forwardRef(((e,t)=>{const n={...Hu,...e},{"aria-describedby":r,hasValidationIcon:o,helperText:s,id:i,isDisabled:a,label:l,max:c,min:p,step:u,validationState:d,validationText:f,value:m,...h}=n,{classProps:g,props:b}=Bu({...h,isDisabled:a,validationState:d}),{styleProps:v,props:x}=Wt(b),[T,P]=ns(r),S=qt(T),E=ss({validationState:d,validationText:f}),C="--slider-position",w=e=>`${Math.round(100*(e-p)/(c-p))}%`;return Hn.jsxs("div",{...v,...x,className:y(g.root,v.className),children:[Hn.jsx(ts,{htmlFor:i,UNSAFE_className:g.label,children:l}),Hn.jsx("input",{...S,className:g.input,id:i,onInput:e=>{const{target:t}=e,{value:n}=t;t.style.setProperty(C,w(Number(n)))},style:{[C]:`${w(m)}`},type:"range",min:p,max:c,step:u,value:m,disabled:a,ref:t}),Hn.jsx(es,{UNSAFE_className:g.helperText,helperText:s,id:`${i}__helperText`,registerAria:P}),d&&Hn.jsx(os,{UNSAFE_className:g.validationText,...o&&{hasValidationStateIcon:d},id:`${i}__validationText`,registerAria:P,validationText:f,role:E})]})}));function zu(){return{classProps:Zt("SplitButton")}}Uu.spiritComponent="Slider",Uu.displayName="Slider";const Vu={color:M.PRIMARY,size:V.MEDIUM},Wu=e=>{const t={...Vu,...e},{children:n,color:r,size:o,isDisabled:s,...i}=t,{classProps:a}=zu(),{styleProps:l,props:c}=Wt(i);return Hn.jsx(Co,{value:{color:r,size:o,isDisabled:s},children:Hn.jsx("div",{...l,...c,className:y(a,l.className),children:n})})},Gu={dropdownPlacement:"bottom-end",dropdownTriggerIconName:"chevron-down"},qu=({children:e,...t})=>{const{styleProps:n,props:r}=Wt(t);return Hn.jsx("div",{...r,...n,children:e})};qu.spiritComponent="TabContent";const Xu=t.createContext({selectedId:"",selectTab:e=>{},onSelectionChange:(e,t)=>{}}),Yu=Xu.Provider,Qu=Xu.Consumer,Ku=()=>t.useContext(Xu);function Zu(e={selectedId:"",forTabPane:"",id:""}){const{spacing:t}=Ku(),{selectedId:n,forTabPane:r,id:o,...s}=e,i=Zt("Tabs"),a=`${i}__item`,l=`${i}__link`,c=`${i}Pane`,p="is-selected",u=Pn(t,"tabs");return{classProps:{item:a,link:y(l,{[p]:!!r&&!!n&&n===r}),pane:y(c,{[p]:!!o&&!!n&&n===o}),root:i},props:s,styleProps:u}}const Ju=({children:e,forTabPane:t,onClick:n,...r})=>{const{selectTab:o,selectedId:s,onSelectionChange:i}=Ku(),{classProps:a}=Zu({forTabPane:t,selectedId:s}),{styleProps:l,props:c}=Wt(r);return Hn.jsx("li",{className:a.item,role:"presentation",children:Hn.jsx("button",{...c,...l,type:"button",className:y(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})})};Ju.spiritComponent="TabItem";const ed={itemProps:{}},td=t.forwardRef(((e,t)=>{const n={...ed,...e},{elementType:r="a",children:o,itemProps:s={},...i}=n,a=r,{classProps:l}=Zu(),{styleProps:c,props:p}=Wt(s),u=At(a,{classProps:l.link});return Hn.jsx("li",{...c,...p,className:y(l.item,c.className),role:"presentation",children:Hn.jsx(a,{...i,...u,ref:t,children:o})})}));td.spiritComponent="TabLink",td.displayName="TabLink";const nd=({children:e,...t})=>{const{classProps:n,styleProps:r}=Zu(),{styleProps:o,props:s}=Wt(t),i={style:{...o.style,...r}};return Hn.jsx("ul",{...s,...o,...i,className:y(n.root,o.className),role:"tablist",children:e})};nd.spiritComponent="TabList";const rd=({children:e,id:t,...n})=>{const{selectedId:r}=Ku(),{classProps:o}=Zu({id:t,selectedId:r}),{styleProps:s,props:i}=Wt(n);return r===t?Hn.jsx("div",{...i,...s,id:t.toString(),className:y(o.pane,s.className),role:"tabpanel","aria-labelledby":`${t}-tab`,children:e}):null};rd.spiritComponent="TabPane";const od=({children:e,selectedTab:t,toggle:n,onSelectionChange:r,spacing:o})=>Hn.jsx(Yu,{value:{selectedId:t,selectTab:n,onSelectionChange:r,spacing:o},children:e});od.spiritComponent="Tabs";const sd=e=>{const[n,r]=t.useState(e);return{selectedId:n,selectTab:t.useCallback((e=>{r(e)}),[])}},id=({children:e,defaultSelectedTab:t,onSelectionChange:n,spacing:r})=>{const{selectedId:o,selectTab:s}=sd(t);return Hn.jsx(Yu,{value:{selectedId:o,selectTab:s,onSelectionChange:n,spacing:r},children:e})};id.spiritComponent="UncontrolledTabs";const ad={NEUTRAL:"neutral"};function ld(e){const{color:t,isSubtle:n,size:r,...o}=e,s=Zt("Tag"),i=`${s}--${t}`,a=`${s}--${r}`,l=`${s}--subtle`;return{classProps:y(s,{[i]:t,[a]:r,[l]:n}),props:o}}const cd={color:ad.NEUTRAL,elementType:"span",isSubtle:!1,size:W.MEDIUM},pd=t.forwardRef(((e,t)=>{const n={...cd,...e},{elementType:r=cd.elementType,children:o,...s}=n,i=r,{classProps:a,props:l}=ld(s),{styleProps:c,props:p}=Wt(l),u=At(i,{classProps:a,styleProps:c,otherProps:p});return Hn.jsx(i,{...p,...u,ref:t,children:o})}));function ud(e){const{emphasis:t,size:n,textColor:r,...o}=e,s=Zt("typography-body"),i=Zt(r?`text-${r}`:"");return{classProps:y(`${s}-${n}-${t}`,{[i]:!!r}),props:o}}pd.spiritComponent="Tag",pd.displayName="Tag";const dd={elementType:"p",emphasis:U.REGULAR,size:W.MEDIUM},fd=e=>{const t={...dd,...e},{elementType:n="p",children:r,...o}=t,{classProps:s,props:i}=ud(o),{styleProps:a,props:l}=Wt(i,{isTextBalanced:le.isTextBalanced,textAlignment:le.textAlignment,textHyphens:le.textHyphens,textWordBreak:le.textWordBreak}),c=At(n,{classProps:s,styleProps:a,otherProps:l});return Hn.jsx(n,{...l,...c,children:r})};fd.spiritComponent="Text";const md=t.forwardRef(((e,t)=>{const{classProps:n,props:r}=function(e){const{isMultiline:t,id:n,...r}=e;return{classProps:{input:`${Zt(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:u}=Wt(p),d=i?"textarea":"input",f=i?void 0:c;return Hn.jsx(d,{...u,className:n.input,disabled:s,id:o,required:a,size:l,type:f,ref:t})}));md.spiritComponent="TextFieldBaseInput",md.displayName="TextFieldBaseInput";const hd=e=>{const{t:t}=ln(),{children:n,isPasswordShown:r,onToggleClick:o,isDisabled:s,size:i}=e,{classProps:a}=function(){const e=Zt("TextField");return{classProps:{passwordToggle:`${e}__passwordToggle`,passwordToggleButton:`${e}__passwordToggle__button`,passwordToggleIcon:`${e}__passwordToggle__icon`}}}(),l=t(r?"textField.password.hide":"textField.password.show");return Hn.jsxs("div",{className:a.passwordToggle,children:[n,Hn.jsx("button",{className:a.passwordToggleButton,type:"button",role:"switch","aria-checked":!!r,"aria-label":l,onClick:()=>o(),disabled:s,children:Hn.jsx("span",{className:a.passwordToggleIcon,children:Hn.jsx(Qn,{name:"visibility-"+(r?"off":"on"),boxSize:i===V.SMALL?16:20})})})]})};hd.spiritComponent="TextFieldBasePasswordToggle";function yd(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?Hn.jsx(hd,{isDisabled:a,isPasswordShown:o,onToggleClick:s,size:l,children:Hn.jsx(e,{...c,type:o?"text":"password",isDisabled:a,ref:r})}):Hn.jsx(e,{...c,isDisabled:a,ref:r})};return r.displayName=`withPasswordToggle(${n})`,r}yd.spiritComponent="withPasswordToggle";const gd=t.forwardRef(yd(md)),bd=t.forwardRef(((e,t)=>{const{"aria-describedby":n="",hasValidationIcon:r,helperText:o,id:s,label:i,size:a=V.MEDIUM,validationState:l,validationText:c,...p}=e,{classProps:u,props:d}=function(e){const{isFluid:t,isMultiline:n,isLabelHidden:r,size:o,validationState:s,...i}=e,{isDisabled:a,isRequired:l}=i,c=Zt(n?"TextArea":"TextField"),p=`${c}--disabled`,u=`${c}--fluid`,d=`${c}--${o}`,f=`${c}--${s}`,m=`${c}__input`,h=`${c}__label`,g=`${c}__label--required`,b=`${c}__label--hidden`,v=`${c}__validationText`,x=`${c}__passwordToggle`,T=`${c}__passwordToggle__button`,P=`${c}__passwordToggle__icon`,S=`${c}__helperText`;return{classProps:{root:y(c,{[p]:a,[u]:t,[f]:s,[d]:o}),label:y(h,{[g]:l,[b]:r}),input:m,helperText:S,validationText:v,passwordToggle:x,passwordToggleButton:T,passwordToggleIcon:P},props:{...i,isMultiline:n}}}({id:s,size:a,validationState:l,...p}),{styleProps:f,props:m}=Wt(d),[h,g]=ns(n),b=qt(h),v=ss({validationState:l,validationText:c});return Hn.jsxs("div",{...f,className:y(u.root,f.className),children:[Hn.jsx(ts,{htmlFor:s,UNSAFE_className:u.label,children:i}),Hn.jsx(gd,{...m,...b,id:s,ref:t,size:a}),Hn.jsx(es,{UNSAFE_className:u.helperText,id:`${s}__helperText`,registerAria:g,helperText:o}),l&&Hn.jsx(os,{UNSAFE_className:u.validationText,elementType:"span",...r&&{hasValidationStateIcon:l},id:`${s}__validationText`,validationText:c,registerAria:g,role:v})]})}));bd.spiritComponent="TextFieldBase",bd.displayName="TextFieldBase";const vd=t.forwardRef(((e,n)=>{const{onInput:r,isAutoResizing:o,autoResizingMaxHeight:s=400,...i}=e,a=t.useRef(n),{adjustHeightOnAutoresize:l,onInput:c}=(({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:a,onInput:r,isAutoResizing:o,maxHeight:s});return Hn.jsx(bd,{isMultiline:!0,ref:a,onInput:c,onFocus:l,...i})}));vd.spiritComponent="TextArea",vd.displayName="TextArea";const xd=t.forwardRef(((e,t)=>Hn.jsx(bd,{type:"text",...e,ref:t})));xd.spiritComponent="TextField",xd.displayName="TextField";const Td="dot",Pd="number",Sd=V.SMALL;function Ed(e){const{markerBackgroundColor:t,markerBorderColor:n,markerTextColor:r,markerVariant:o,markerSize:s=Sd,...i}=e||{},a=Zt("Timeline"),l=`${a}Content`,c=`${a}Heading`,p=`${a}Marker`,u=`${a}Step`,d=o===Td||o===Pd,f=Zt(`bg-${t}`),m=Zt(`border-${n}`),h=Zt(`text-${r}`),g=t?f:"",b=n?m:"",v=r?h:"",x=y(p,{[`${p}--${o}`]:!!o,[g]:d,[b]:d,[v]:!!r}),T=Rt(a,s);return{classProps:{content:l,heading:c,marker:x,root:y(a,...T),step:u},props:i}}const Cd={elementType:"ol",size:Sd},wd=e=>{const t={...Cd,...e},{elementType:n="ol",children:r,size:o,...s}=t,{classProps:i}=Ed({markerSize:o}),{styleProps:a,props:l}=Wt(s),c=At(n,{classProps:i.root,styleProps:a,otherProps:l});return Hn.jsx(n,{...l,...c,children:r})};wd.spiritComponent="Timeline";const Nd=e=>{const{children:t,...n}=e,{classProps:r}=Ed(),{styleProps:o,props:s}=Wt(n);return Hn.jsx("div",{...s,className:y(r.content,o.className),style:o.style,children:t})};Nd.spiritComponent="TimelineContent";const Ad=e=>{const{children:t,...n}=e,{classProps:r}=Ed(),{styleProps:o,props:s}=Wt(n);return Hn.jsx("div",{...s,className:y(r.heading,o.className),style:o.style,children:t})};Ad.spiritComponent="TimelineHeading";const _d={variant:"number"},Rd=e=>{const t={..._d,...e},{backgroundColor:n,borderColor:r,children:o,textColor:s,variant:i,...a}=t,{classProps:l}=Ed({markerBackgroundColor:n,markerBorderColor:r,markerTextColor:s,markerVariant:i}),{styleProps:c,props:p}=Wt(a);return Hn.jsx("div",{...p,className:y(l.marker,c.className),style:c.style,"aria-hidden":"true",children:i!==Td&&o})};Rd.spiritComponent="TimelineMarker";const kd={elementType:"li"},Od=e=>{const t={...kd,...e},{elementType:n="li",children:r,...o}=t,{classProps:s}=Ed(),{styleProps:i,props:a}=Wt(o),l=At(n,{classProps:s.step,styleProps:i,otherProps:a});return Hn.jsx(n,{...a,...l,children:r})};Od.spiritComponent="TimelineStep";const $d={alignmentX:_.CENTER,alignmentY:k.BOTTOM,isCollapsible:!0},jd=e=>{const t={...$d,...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=Zt("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;return{classProps:{root:y(s,r&&`${s}--collapsible`,...i),queue:`${s}__queue`},props:o}}({...s,alignmentX:r,alignmentY:o}),{styleProps:l,props:c}=Wt(a);return Hn.jsx("div",{...c,...l,className:y(i.root,l.className),role:"log",children:Hn.jsx("div",{className:i.queue,children:n})})};jd.spiritComponent="Toast";const Dd={entering:"is-open is-transitioning",entered:"is-open",exiting:"is-hidden is-transitioning",exited:"is-hidden"},Ld="neutral",Id={NEUTRAL:"neutral"},Md=e=>{const{color:t,isDismissible:n,...r}=e,o=Zt("ToastBar"),s=`${o}__box`,i=`${o}__close`,a=`${o}__container`,l=`${o}__content`,c=`${o}__link`,p=Zt("link-underlined");return{classProps:{root:y(o,`${o}--${t||Id.NEUTRAL}`,n&&`${o}--dismissible`),box:s,close:i,container:a,content:l,link:y(c,p)},props:r}},Fd=e=>{const{onClose:t,isOpen:n,id:r,closeLabel:o,isDismissible:s,...i}=e,{classProps:a,props:l}=Md({...i}),{styleProps:c,props:p}=Wt(l);return s&&t?Hn.jsxs("button",{...p,...c,type:"button",className:y(a.close,c.className),onClick:t,"aria-expanded":n,"aria-controls":r,children:[Hn.jsx(Qn,{name:"close"}),Hn.jsx(ws,{children:o})]}):null};Fd.spiritComponent="ToastCloseButton";const Bd=e=>{const{t:n}=ln(),{id:r,children:o,closeLabel:s,color:i=Ld,hasIcon:a,iconName:l,isDismissible:c,isOpen:p=!0,onClose:u=()=>{},...d}=e,f=s??n("common.close"),m=t.useRef(null),h=function({color:e,iconName:t}){const n=fn(e,{danger:"danger",informative:"info",neutral:"info",success:"check-plain",warning:"warning"},Ld);return t||n}({color:i,iconName:l}),{classProps:g,props:b}=Md({...d,color:i,isDismissible:c}),{styleProps:v,props:x}=Wt(b);return Hn.jsx(Ir,{in:p,nodeRef:m,timeout:250,unmountOnExit:!0,children:e=>Hn.jsx("div",{...v,...x,id:r,className:y(g.root,Dd[e],v.className),ref:m,children:Hn.jsxs("div",{className:g.box,children:[Hn.jsxs("div",{className:g.container,children:[(a||l)&&Hn.jsx(Qn,{name:h,boxSize:20}),Hn.jsx("div",{className:g.content,children:o})]}),Hn.jsx(Fd,{id:r,isOpen:p,closeLabel:f,onClose:u,isDismissible:c})]})})})};Bd.spiritComponent="ToastBar";const Hd=e=>{const{children:t,...n}=e,{styleProps:r,props:o}=Wt(n);return Hn.jsx("div",{...r,...o,className:y(Zt("text-truncate-multiline"),r.className),children:t})};Hd.spiritComponent="ToastBarMessage";const Ud={elementType:"a"},zd=t.forwardRef(((e,t)=>{const n={...Ud,...e},{elementType:r=Ud.elementType,children:o,...s}=n,i=r,{classProps:a,props:l}=Md({...s}),{styleProps:c,props:p}=Wt(l),u=At(i,{classProps:a.link,styleProps:c,otherProps:p});return Hn.jsx(i,{...p,...u,ref:t,children:o})}));zd.spiritComponent="ToastBarLink",zd.displayName="ToastBarLink";const Vd=t.createContext({clear:()=>{},hide:()=>{},queue:[],setQueue:()=>{},show:()=>{}}),Wd=()=>{const e=t.useContext(Vd);if(!e)throw new Error("useToast has to be used within <ToastProvider>");return e},Gd=e=>{const{t:n}=ln(),{alignmentX:r,alignmentY:o,isCollapsible:s,closeLabel:i,...a}=e,l=i??n("common.close"),{hide:c,queue:p}=Wd();return Hn.jsx(jd,{alignmentX:r,alignmentY:o,isCollapsible:s,children:p.map((e=>{const{color:n,iconName:r,id:o,isOpen:s,content:i,hasIcon:p,isDismissible:u,linkProps:d}=e;return t.createElement(Bd,{...a,key:o,id:o,closeLabel:l,color:n,hasIcon:p,iconName:r,isDismissible:u,onClose:()=>c(o),isOpen:s&&!!i},Hn.jsx(Hd,{children:i.message}),i.link&&Hn.jsx(zd,{...d,children:i.link}))}))})};function qd(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=Zt("Toggle"),p=`${c}--fluid`,u=`${c}--disabled`,d=`${c}__text`,f=`${c}__label`,m=`${f}--hidden`,h=`${c}--${a}`,g=`${f}--required`,b=`${c}__input`,v=`${b}--indicators`,x=mn(c,n),T=`${c}__helperText`,P=`${c}__validationText`;return{classProps:{root:y(c,{[x]:x,[p]:o,[u]:r,[h]:a}),label:y(f,{[g]:i,[m]:s}),text:d,helperText:T,input:y(b,{[v]:t}),validationText:P},props:{...l,validationState:a,isDisabled:r,isRequired:i}}}Gd.spiritComponent="UncontrolledToast";const Xd=t.forwardRef(((e,n)=>{const{classProps:r,props:o}=qd(e),{"aria-describedby":s="",hasValidationIcon:i,id:a,isDisabled:l,isChecked:c=!1,isRequired:p,label:u,helperText:d,onChange:f=()=>{},validationState:m,validationText:h,...g}=o,{styleProps:b,props:v}=Wt(g),[x,T]=ns(s),P=qt(x),[S,E]=t.useState(c),C=ss({validationState:m,validationText:h});return Hn.jsxs("div",{style:b.style,className:y(r.root,b.className),children:[Hn.jsxs("div",{className:r.text,children:[Hn.jsx(ts,{UNSAFE_className:r.label,htmlFor:a,children:u}),Hn.jsx(es,{UNSAFE_className:r.helperText,id:`${a}__helperText`,registerAria:T,helperText:d}),m&&Hn.jsx(os,{UNSAFE_className:r.validationText,...i&&{hasValidationStateIcon:m},id:`${a}__validationText`,validationText:h,registerAria:T,role:C})]}),Hn.jsx("input",{...v,...P,type:"checkbox",id:a,className:r.input,disabled:l,checked:S,required:p,onChange:e=>{E(e.target.checked),f(e)},ref:n})]})}));Xd.spiritComponent="Toggle",Xd.displayName="Toggle";const Yd=(e,t)=>{const n=e.trim().split(/\s+/);return n.length<=t?e:`${n.slice(0,t).join(" ")}…`},Qd=(e,t)=>e.length<=t?e:`${e.slice(0,t)}…`,Kd=e=>e,Zd=(e,n,r)=>t.useMemo((()=>{if("string"!=typeof e)return e;if(!r||r<=0)return e;switch(n){case Ee.WORDS:return Yd(e,r);case Ee.CHARACTERS:return Qd(e,r);case Ee.LINES:default:return e}}),[e,n,r]),Jd=e=>{const{limit:t,mode:n=Ee.LINES,...r}=e,o=Zt(n===Ee.LINES?"text-truncate-multiline":""),s={};return n===Ee.LINES&&void 0!==t&&(s["--text-truncate-lines"]=t),{classProps:o,props:r,styleProps:s,effectiveMode:n,effectiveLimit:t}},ef={elementType:"span"},tf=e=>{const t={...ef,...e},{children:n,elementType:r="span",...o}=t,{classProps:s,props:i,styleProps:a,effectiveMode:l,effectiveLimit:c}=Jd(o),p=Zd(n,l,l!==Ee.LINES?c:void 0),{styleProps:u,props:d}=Wt(i),f=At(r,{classProps:s,styleProps:u,truncateStyleProps:{style:{...u.style,...a}}});return Hn.jsx(r,{...d,...f,children:p})};tf.spiritComponent="Truncate";const nf="file",rf="edit",of={TOP:"--file-uploader-attachment-image-top",LEFT:"--file-uploader-attachment-image-left",WIDTH:"--file-uploader-attachment-image-width",HEIGHT:"--file-uploader-attachment-image-height"},sf=["x","y","cropWidth","cropHeight","originalWidth","originalHeight"];function af(e,t){const n=function(e){return null!=e&&sf.every((t=>null!=e[t]))}(e),r=n?function(e){const{x:t,y:n,cropWidth:r,cropHeight:o,originalWidth:s,originalHeight:i}=e,a=o>r?54/r:54/o;return{[of.TOP]:`-${Math.round(n*a)}px`,[of.LEFT]:`-${Math.round(t*a)}px`,[of.WIDTH]:`${Math.round(s*a)}px`,[of.HEIGHT]:`${Math.round(i*a)}px`}}(e):void 0;return{imageCropCSS:r,imageObjectFitCSS:t?{"--file-uploader-attachment-image-object-fit":t}:void 0,hasCoordsInMeta:n}}const lf=e=>{const t=Zt("Attachment"),n=`${t}--fluid`,r=`${t}__name`,o=`${t}__action`,s=`${t}__image`,i=`${t}__slot`,{imageCropCSS:a,imageObjectFitCSS:l,hasCoordsInMeta:c}=af(e?.meta,e?.imageObjectFit);return{classProps:{root:y(t,{[n]:e?.isFluid}),button:o,name:r,image:s,slot:i,...c&&{imageCropStyles:a},...l&&{attachmentStyles:l}}}},cf=e=>{const{name:t=rf,children:n,...r}=e,{classProps:o}=lf(),{styleProps:s,props:i}=Wt(r);return Hn.jsxs("button",{type:"button",...i,...s,className:y(o.button,s.className),children:[Hn.jsx(ws,{children:n}),Hn.jsx(Qn,{name:t,"aria-hidden":"true"})]})};cf.spiritComponent="UNSTABLE_AttachmentActionButton",cf.displayName="UNSTABLE_AttachmentActionButton";const pf=e=>{const{children:t,...n}=e,{classProps:r}=lf(),{styleProps:o,props:s}=Wt(n);return Hn.jsxs("button",{type:"button",...s,...o,className:y(r.button,o.className),children:[Hn.jsx(ws,{children:t}),Hn.jsx(Qn,{name:"close","aria-hidden":"true"})]})};pf.spiritComponent="UNSTABLE_AttachmentDismissButton",pf.displayName="UNSTABLE_AttachmentDismissButton";const uf={elementType:"li",iconName:nf,isFluid:!1},df=e=>{const t={...uf,...e},{t:n}=ln(),{editText:r,elementType:o,iconName:s,id:i,isFluid:a,label:l,onDismiss:c,onChange:p,removeText:u,previewSlot:d,...f}=t,m=r??n("attachment.edit"),h=u??n("attachment.remove"),{classProps:g}=lf({isFluid:a}),{styleProps:b,props:v}=Wt(f),x=o;return Hn.jsxs(x,{...v,...b,id:i,className:y(g.root,b.className),children:[d??Hn.jsx(Qn,{name:s,"aria-hidden":"true"}),Hn.jsx("span",{className:g.name,children:Hn.jsx("span",{className:Zt("text-truncate"),children:l})}),p&&Hn.jsx("span",{className:g.slot,children:Hn.jsx(cf,{onClick:p,children:m})}),Hn.jsx(pf,{onClick:c,children:h})]})};df.spiritComponent="UNSTABLE_Attachment",df.displayName="UNSTABLE_Attachment";const ff={meta:void 0,imageObjectFit:ne.COVER},mf=e=>{const t={...ff,...e},{label:n,imagePreview:r,meta:o,imageObjectFit:s,...i}=t,{classProps:a}=lf({meta:o,imageObjectFit:s}),l=a.imageCropStyles??{},c=a.attachmentStyles??{},{styleProps:p,props:u}=Wt(i);return Hn.jsx("span",{...u,...p,className:y(a.image,p.className),children:Hn.jsx("img",{src:r,width:54,height:54,alt:n,style:{...l,...c}})})};mf.spiritComponent="UNSTABLE_AttachmentImagePreview",mf.displayName="UNSTABLE_AttachmentImagePreview";const hf=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=""},...rn({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)}})}},yf=e=>{const t=Zt("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`,u=`${o}__helperText`,d=`${o}__input`,f=`${o}__label`,m=`${o}__label--hidden`,h=`${o}__label--required`,g=`${o}__link`,b=`${o}__validationText`,v=`${t}List`;return{classProps:{root:y(t,{[r]:e?.isFluid}),input:{root:y(o,{[n]:e?.isDragAndDropSupported,[s]:e?.isDisabled,[a]:e?.isDragging,[i]:e?.validationState}),label:y(f,{[h]:e?.isRequired,[m]:e?.isLabelHidden}),input:d,dropLabel:l,helper:u,link:y(g,"link-primary","link-underlined"),validationText:b,dropZone:{root:c,label:p}},list:v}}},gf=e=>{const[n,r]=t.useState(!1),{"aria-describedby":o="",accept:s,children:i,dropZoneRef:a,hasValidationIcon:l,helperText:c,iconName:p="upload",id:u,inputRef:d,isDisabled:f,isFluid:m,isLabelHidden:h,isMultiple:g,isRequired:b,label:v,labelText:x,linkText:T,name:P,onFilesSelected:S,validationState:E,validationText:C,...w}=e,N=void 0!==P,{isDragging:A,onChange:_,onDragEnter:R,onDragLeave:k,onDragOver:O,onDrop:$}=hf({onFilesSelected:N?S:void 0}),{classProps:j}=yf({isDisabled:f,isDragAndDropSupported:n,isDragging:A,isFluid:m,isLabelHidden:h,isRequired:b,validationState:E}),{styleProps:D,props:L}=Wt(w),[I,M]=ns(o),F=qt(I),B=ss({validationState:E,validationText:C}),H=`${u}-input`;return t.useEffect((()=>{r("draggable"in document.createElement("span"))}),[]),Hn.jsxs("div",{id:u,...L,...D,className:y(j.root,D.className),children:[N&&Hn.jsxs("div",{onDragOver:!f&&n?O:void 0,onDragEnter:!f&&n?R:void 0,onDragLeave:!f&&n?k:void 0,onDrop:!f&&n?$:void 0,className:j.input.root,children:[Hn.jsx(ts,{htmlFor:H,UNSAFE_className:j.input.label,children:v}),Hn.jsx("input",{...F,type:"file",accept:s,id:H,ref:d,name:P,className:j.input.input,onChange:_,multiple:g,disabled:f}),Hn.jsxs("div",{ref:a,className:j.input.dropZone.root,children:[Hn.jsx(Qn,{name:p,"aria-hidden":"true"}),Hn.jsxs(ts,{htmlFor:H,UNSAFE_className:j.input.dropZone.label,children:[Hn.jsx("span",{className:j.input.link,children:T})," ",Hn.jsx("span",{className:j.input.dropLabel,children:x})]}),Hn.jsx(es,{UNSAFE_className:j.input.helper,id:`${H}__helperText`,registerAria:M,helperText:c})]}),E&&Hn.jsx(os,{UNSAFE_className:j.input.validationText,elementType:"span",...l&&{hasValidationStateIcon:E},id:`${H}__validationText`,validationText:C,registerAria:M,role:B})]}),i]})};gf.spiritComponent="UNSTABLE_FileUpload",gf.displayName="UNSTABLE_FileUpload";const bf=e=>{const{hasBottomDivider:t=!1,...n}=e,r=Zt("UNSTABLE_Header"),o=`${r}Logo`,s=`${r}--bottomDivider`;return{classProps:{root:y(r,{[s]:t}),logo:o},props:n}},vf=Object.freeze(Object.defineProperty({__proto__:null,useUnstableHeaderStyleProps:bf},Symbol.toStringTag,{value:"Module"})),xf=e=>{const{children:t,...n}=e,{classProps:r,props:o}=bf(n),{styleProps:s,props:i}=Wt(o);return Hn.jsx("header",{...i,className:y(r.root,s.className),style:s.style,children:t})};xf.spiritComponent="UNSTABLE_Header";const Tf={elementType:"a"},Pf=t.forwardRef(((e,t)=>{const n={...Tf,...e},{elementType:r=Tf.elementType,children:o,...s}=n,i=r,{classProps:a,props:l}=bf(s),{styleProps:c,props:p}=Wt(l),u=At(i,{classProps:a.logo,styleProps:c,otherProps:p});return Hn.jsx(i,{...p,...u,href:s.href,ref:t,children:o})}));Pf.spiritComponent="UNSTABLE_HeaderLogo",Pf.displayName="UNSTABLE_HeaderLogo",e.Accordion=Un,e.AccordionContent=Kr,e.AccordionContext=Rn,e.AccordionHeader=Zn,e.AccordionItem=Gn,e.AccordionItemContext=zn,e.ActionGroup=ro,e.Alert=io,e.AlignmentX=_,e.AlignmentXExtended=R,e.AlignmentY=k,e.AlignmentYExtended=O,e.AttachmentActionButton=xi,e.AttachmentCropCSS=of,e.AttachmentDismissButton=Ti,e.Avatar=co,e.BREAKPOINT_MOBILE=Te,e.BackgroundColors=I,e.BackgroundGradients={PRIMARY:"primary",SECONDARY:"secondary"},e.BackgroundStyleProps=oe,e.BorderColors=$,e.BorderRadii=j,e.BorderRadiusStyleProps=se,e.BorderStyles=D,e.BorderWidths=L,e.Box=fo,e.Breadcrumbs=To,e.BreadcrumbsItem=vo,e.Button=ko,e.ButtonLink=Do,e.CLASS_NAME_OPEN=v,e.Card=Mo,e.CardArtwork=Bo,e.CardBody=Uo,e.CardEyebrow=zo,e.CardFooter=Wo,e.CardLink=qo,e.CardLogo=Xo,e.CardMedia=Qo,e.CardSizes=he,e.CardTitle=Zo,e.Checkbox=as,e.ClassNamePrefixConsumer=me,e.ClassNamePrefixProvider=fe,e.Collapse=qr,e.ColorPrefixes=x,e.ComponentButtonColors=M,e.Container=ps,e.ContainerTokenSizes=X,e.ControlButton=ms,e.DEBOUNCE_DELAY=50,e.DEFAULT_ATTACHMENT_ACTION_BUTTON_ICON_NAME=rf,e.DEFAULT_ATTACHMENT_ICON_NAME=nf,e.DEFAULT_ATTACHMENT_IMAGE_DIMENSION=54,e.DEFAULT_ERROR_MESSAGE_MAX_FILE_SIZE=si,e.DEFAULT_ERROR_MESSAGE_QUEUE_DUPLICITY=ii,e.DEFAULT_ERROR_MESSAGE_QUEUE_LIMIT=ai,e.DEFAULT_ERROR_MESSAGE_UNSUPPORTED_FILE=li,e.DEFAULT_FILE_QUEUE_LIMIT=oi,e.DEFAULT_FILE_SIZE_LIMIT=ri,e.DEFAULT_ICON_NAME=ci,e.DEFAULT_TOAST_AUTO_CLOSE_INTERVAL=3e3,e.DEFAULT_TOAST_COLOR=Ld,e.Dialog=ys,e.Direction=K,e.DirectionAxis=J,e.DirectionExtended=Z,e.DisplayStyleProps=pe,e.Divider=bs,e.Drawer=Cs,e.DrawerCloseButton=As,e.DrawerConsumer=Ps,e.DrawerPanel=_s,e.DrawerProvider=Ts,e.Dropdown=Hs,e.DropdownContext=Is,e.DropdownFullWidthModes={OFF:"off",MOBILE_ONLY:"mobile-only",ALL:"all"},e.DropdownPopover=Vs,e.DropdownTrigger=zs,e.EDGE_DETECTION_INACCURACY_PX=1,e.EmotionColors=F,e.Emphasis=U,e.EmptyState=ei,e.EmptyStateSection=ti,e.FieldGroup=ni,e.FileUploader=yi,e.FileUploaderAttachment=Ai,e.FileUploaderCropCSS=pi,e.FileUploaderInput=bi,e.FileUploaderList=vi,e.FillVariants=Y,e.Flex=to,e.Footer=Oi,e.Grid=Di,e.GridItem=Fi,e.HEADER_ACTIONS_COLOR_DEFAULT=Hi,e.HEADER_COLOR_DEFAULT=Bi,e.HEADER_DIALOG_CLOSE_BUTTON_LABEL_DEFAULT=Ui,e.HEADER_MENU_TOGGLE_LABEL_DEFAULT=zi,e.Header=Wi,e.HeaderButton=Gi,e.HeaderDesktopActions=Xi,e.HeaderDialog=Ji,e.HeaderDialogActions=ea,e.HeaderDialogButton=ta,e.HeaderDialogCloseButton=na,e.HeaderDialogConsumer=Ki,e.HeaderDialogLink=ra,e.HeaderDialogNav=oa,e.HeaderDialogNavItem=sa,e.HeaderDialogProvider=Qi,e.HeaderDialogText=ia,e.HeaderLink=aa,e.HeaderMobileActions=la,e.HeaderNav=ca,e.HeaderNavItem=pa,e.Heading=fa,e.HeadingStyleProps=ce,e.HelperText=es,e.Hidden=ha,e.ICON_BOX_SIZE=20,e.IMAGE_DIMENSION=54,e.IMAGE_PREVIEW_BASE64_MAX_WIDTH=500,e.ITEM_SELECTION_DECORATOR_BACKGROUND=ye,e.ITEM_SELECTION_DECORATOR_BOTH=ge,e.ITEM_SELECTION_DECORATOR_ICON=be,e.Icon=Qn,e.IconBox=Sa,e.IconsConsumer=un,e.IconsProvider=pn,e.InputPositions=te,e.Intensity=H,e.Item=Ca,e.Label=ts,e.Link=yo,e.LinkColors={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},e.LinkColorsExtended={INHERIT:"inherit"},e.Matrix=_a,e.Modal=Da,e.ModalBody=La,e.ModalCloseButton=Ia,e.ModalConsumer=Oa,e.ModalDialog=Fa,e.ModalFooter=Ba,e.ModalHeader=Ua,e.ModalProvider=ka,e.Navigation=Wa,e.NavigationAction=Xa,e.NavigationAvatar=Qa,e.NavigationItem=Za,e.NoSsr=Ja,e.ObjectFit=ne,e.PaddingStyleProps=ae,e.Pagination=tl,e.PaginationButtonLink=nl,e.PaginationItem=rl,e.PaginationLink=ol,e.PaginationLinkNext=sl,e.PaginationLinkPrevious=il,e.PartnerLogo=ul,e.Pill=hl,e.PillColorsExtended=dl,e.Placements=z,e.Position=re,e.PricingPlan=bl,e.PricingPlanBody=Kp,e.PricingPlanFooter=Zp,e.PricingPlanHeader=xl,e.ProductLogo=Jp,e.PropsConsumer=wo,e.PropsProvider=Co,e.Radio=tu,e.SCROLL_CANCEL_DELAY=10,e.SCROLL_VIEW_ARROWS_LABEL_HORIZONTAL_END=nu,e.SCROLL_VIEW_ARROWS_LABEL_HORIZONTAL_START=ru,e.SCROLL_VIEW_ARROWS_LABEL_VERTICAL_END=ou,e.SCROLL_VIEW_ARROWS_LABEL_VERTICAL_START=su,e.SCROLL_VIEW_DEFAULT_DIRECTION=iu,e.SCROLL_VIEW_DEFAULT_OVERFLOW_DECORATOR=au,e.STYLE_SPACING_AUTO=xe,e.ScrollView=fu,e.ScrollViewArrows=uu,e.Section=bu,e.SegmentedControl=Su,e.SegmentedControlItem=Eu,e.Select=wu,e.ShapeVariants=Q,e.Sizes=V,e.SizesExtended=W,e.SkeletonHeading=Ou,e.SkeletonItem=Au,e.SkeletonShape=Lu,e.SkeletonText=Ru,e.SkipLink=Fu,e.Slider=Uu,e.SpacingStyleProp=ie,e.Spinner=_o,e.SpiritBreakpoints=Pe,e.SplitButton=Wu,e.Stack=Qs,e.StackItem=Zs,e.TOOLTIP_TRIGGER=Se,e.TRANSITIONING_STYLES=Dd,e.TRANSITION_DURATION=250,e.TabContent=qu,e.TabContext=Xu,e.TabItem=Ju,e.TabLink=td,e.TabList=nd,e.TabPane=rd,e.Tabs=od,e.TabsConsumer=Qu,e.TabsProvider=Yu,e.Tag=pd,e.TagColorsExtended=ad,e.Text=fd,e.TextAlignments={LEFT:"left",CENTER:"center",RIGHT:"right"},e.TextArea=vd,e.TextColors=B,e.TextField=xd,e.TextFieldBase=bd,e.TextHyphens={NONE:"none",AUTO:"auto",MANUAL:"manual"},e.TextStyleProps=le,e.TextWordBreaks={NORMAL:"normal",ANYWHERE:"anywhere",LONG_WORDS:"long-words"},e.ThemeStyleProps=ue,e.Timeline=wd,e.TimelineContent=Nd,e.TimelineHeading=Ad,e.TimelineMarker=Rd,e.TimelineStep=Od,e.Toast=jd,e.ToastBar=Bd,e.ToastBarLink=zd,e.ToastBarMessage=Hd,e.ToastColorsExtended=Id,e.Toggle=Xd,e.Tooltip=Up,e.TooltipCloseButton=zp,e.TooltipPopover=Vp,e.TooltipTrigger=Gp,e.Truncate=tf,e.TruncateModes=Ee,e.UNDERLINED_OPTIONS=ve,e.UNSTABLE_Attachment=df,e.UNSTABLE_AttachmentActionButton=cf,e.UNSTABLE_AttachmentDismissButton=pf,e.UNSTABLE_AttachmentImagePreview=mf,e.UNSTABLE_FileUpload=gf,e.UNSTABLE_Header=xf,e.UNSTABLE_HeaderLogo=Pf,e.UncontrolledAccordion=Zr,e.UncontrolledCollapse=Qr,e.UncontrolledDropdown=Gs,e.UncontrolledFileUploader=Ri,e.UncontrolledPagination=ll,e.UncontrolledSplitButton=e=>{const{t:n}=ln(),r={...Gu,...e},{buttonIconName:o,buttonLabel:s,buttonOnClick:i,children:a,dropdownTriggerIconName:l,dropdownTriggerLabel:c,dropdownPlacement:p,id:u,isButtonLabelHidden:d,isDisabled:f,isDropdownTriggerLabelHidden:m,...h}=r,y=c??n("splitButton.dropdown"),[g,b]=t.useState(!1);return Hn.jsxs(Wu,{...h,id:u,isDisabled:f,children:[Hn.jsxs(ko,{onClick:i,children:[o&&Hn.jsx(Qn,{name:o,...!d&&{marginRight:"space-400"}}),d?Hn.jsx(ws,{children:s}):s]}),Hn.jsxs(Hs,{id:`${u}-dropdown`,isOpen:g,onToggle:()=>b(!g),placement:p,children:[Hn.jsxs(zs,{elementType:ko,children:[m?Hn.jsx(ws,{children:y}):y,Hn.jsx(Qn,{name:l,...!m&&{marginLeft:"space-400"}})]}),Hn.jsx(Vs,{children:a})]})]})},e.UncontrolledTabs=id,e.UncontrolledToast=Gd,e.UncontrolledTooltip=Xp,e.ValidationStates={SUCCESS:"success",WARNING:"warning",DANGER:"danger"},e.ValidationText=os,e.VisuallyHidden=ws,e.applyClassNamePrefix=ke,e.applyColor=Oe,e.applySize=$e,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=Ot,e.compose=De,e.debounce=Le,e.defaultLabels=on,e.delayedCallback=(e,t)=>{const n=setTimeout((()=>{e(),clearTimeout(n)}),t)},e.fullWidthModeKeys=js,e.generateColorsObject=je,e.generateResponsiveClassNames=Rt,e.generateResponsiveStylePropsClasses=Mt,e.generateStaticStylePropsClasses=It,e.generateStylePropsClassNames=Ft,e.getAccentBackgroundColors=()=>je(E,"background","accent"),e.getAccentBorderColors=()=>je(E,"border","accent"),e.getAccentColorNames=()=>Object.keys(E),e.getAccentTextColors=()=>je(E,"content","accent"),e.getAttachmentInput=Ei,e.getAttachmentMetaInput=Ci,e.getEmotionBackgroundColors=()=>je(w,"background","emotion"),e.getEmotionBorderColors=()=>je(w,"border","emotion"),e.getEmotionColorNames=()=>Object.keys(w),e.getEmotionTextColors=()=>je(w,"content","emotion"),e.getNeutralBackgroundColors=()=>({NEUTRAL_BASIC:"neutral-basic",NEUTRAL_SUBTLE:"neutral-subtle"}),e.getNeutralTextColors=()=>({NEUTRAL_BASIC:"neutral-basic",NEUTRAL_SUBTLE:"neutral-subtle"}),e.getTextColorNames=()=>Object.keys(N),e.htmlReactParser=Nt,e.image2Base64Preview=wi,e.isDirectionHorizontal=ee,e.isEmpty=Re,e.isEmptyArray=Ne,e.isEmptyObject=Ae,e.isEmptyString=we,e.isEnumerable=_e,e.isNullish=Ce,e.isResponsive=_t,e.isSSR=kt,e.kebabCaseToCamelCase=$t,e.kebabCaseToCamelCaseValues=jt,e.mergeStyleProps=At,e.replaceTranslationParams=sn,e.resolveTranslationKey=an,e.stringOrObjectKebabCaseToCamelCase=Dt,e.toPascalCase=Lt,e.truncateByCharacters=Qd,e.truncateByLines=Kd,e.truncateByWords=Yd,e.useAccordion=i,e.useAccordionAriaProps=p,e.useAccordionStyleProps=_n,e.useAlertStyleProps=oo,e.useAlignmentClass=Gt,e.useAriaDescribedBy=qt,e.useAriaIds=ns,e.useAttachmentImageStyles=af,e.useAttachmentStyleProps=lf,e.useAvatarStyleProps=ao,e.useBoxStyleProps=po,e.useBreadcrumbsStyleProps=go,e.useButtonLinkProps=Oo,e.useButtonLinkStyleProps=$o,e.useButtonProps=Po,e.useButtonStyleProps=So,e.useCancelEvent=Kt,e.useCardStyleProps=Lo,e.useCheckboxStyleProps=is,e.useClassNamePrefix=Zt,e.useClick=Jt,e.useClickOutside=en,e.useCollapse=Xr,e.useCollapseAriaProps=Ur,e.useCollapseStyleProps=zr,e.useContainerStyleProps=ls,e.useContextProps=No,e.useControlButtonProps=us,e.useControlButtonStyleProps=ds,e.useDefaultResponsiveRowsStyle=wa,e.useDeprecationMessage=tn,e.useDialog=hs,e.useDimensionStyle=nn,e.useDividerStyleProps=gs,e.useDragAndDrop=rn,e.useDrawerContext=Ss,e.useDrawerStyleProps=Es,e.useDropdown=Ws,e.useDropdownAriaProps=Ds,e.useDropdownStyleProps=Bs,e.useEmptyStateStyleProps=Js,e.useFileQueue=_i,e.useFileUploadState=hf,e.useFileUploadStyleProps=yf,e.useFileUploaderAttachment=Ni,e.useFileUploaderInput=gi,e.useFileUploaderStyleProps=hi,e.useFlexStyleProps=Jr,e.useGridStyleProps=$i,e.useHeaderDialogContext=Zi,e.useHeaderStyleProps=Vi,e.useHeadingStyleProps=ua,e.useI18n=ln,e.useIcon=dn,e.useIconBoxColors=xa,e.useIconBoxStyleProps=Ta,e.useIconName=fn,e.useIconStyleProps=Xn,e.useInputPositionClass=mn,e.useIsomorphicLayoutEffect=Xt,e.useItemStyleProps=Ea,e.useLastActiveFocus=hn,e.useLinkStyleProps=mo,e.useMatrixStyleProps=Na,e.useModalContext=$a,e.useModalStyleProps=ja,e.useNavigationActionProps=Ga,e.useNavigationStyleProps=za,e.useOpenItem=$n,e.usePaginationStyleProps=el,e.usePartnerLogoStyleProps=cl,e.usePillStyleProps=fl,e.usePricingPlanStyleProps=yl,e.useRadioStyleProps=eu,e.useResizeObserver=bn,e.useScrollCallback=lu,e.useScrollControl=Tn,e.useScrollPosition=du,e.useScrollViewArrows=cu,e.useScrollViewStyleProps=pu,e.useSectionSizeProps=hu,e.useSectionStyleProps=yu,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=Tu,e.useSelectStyleProps=Cu,e.useSkeletonStyleProps=Nu,e.useSkipLinkStyleProps=Iu,e.useSliderStyleProps=Bu,e.useSpacingStyle=Pn,e.useSpinnerStyleProps=Ao,e.useSplitButtonStyleProps=zu,e.useStyleProps=Wt,e.useSymmetry=En,e.useTab=sd,e.useTabContext=Ku,e.useTabsStyleProps=Zu,e.useTagStyleProps=ld,e.useTextStyleProps=ud,e.useTimelineStyleProps=Ed,e.useToast=Wd,e.useToggle=Cn,e.useToggleStyleProps=qd,e.useTooltip=qp,e.useTooltipStyleProps=Hp,e.useTruncateStyleProps=Jd,e.useTruncatedText=Zd,e.useUnstableHeaderStyleProps=vf,e.useWrapClass=An,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),i=r(n),s=({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 u(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var d,m={exports:{}};var f,h=(d||(d=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 i in n)e.call(n,i)&&n[i]&&(o=r(o,i));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=u(h),y="production",v=(e,t)=>{if(process.env.NODE_ENV!==y){const e=`Warning: ${t}`;"undefined"!=typeof console&&console.warn(e);try{throw Error(e)}catch(e){}}},b="is-open",x={ACCENT:"accent",EMOTION:"emotion"},T={mobile:0,tablet:"768px",desktop:"1280px"},P="spirit-",S={xsmall:{maxWidth:"480px"},small:{maxWidth:"640px"},medium:{maxWidth:"768px"},large:{maxWidth:"1024px"},xlarge:{maxWidth:"1280px"},padding:{desktop:"32px",mobile:"16px",tablet:"32px"},maxWidth:"1280px"},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)"}}},w={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)"}},N={primary:"var(--spirit-color-text-primary)",secondary:"var(--spirit-color-text-secondary)",tertiary:"var(--spirit-color-text-tertiary)"};function _(e){return Object.fromEntries(Object.keys(e).map((e=>[e.toUpperCase(),e])))}const A={LEFT:"left",CENTER:"center",RIGHT:"right"},R={SPACE_BETWEEN:"space-between",STRETCH:"stretch",...A},k={TOP:"top",CENTER:"center",BOTTOM:"bottom"},$={BASELINE:"baseline",STRETCH:"stretch",...k},O={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=_(C.button),F=_(w),B=_(N),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}=_(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",ie="single",se={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"},ue={isTextBalanced:"text-wrap-balance"},de={hideOn:"d",hideFrom:"d"},me={theme:""},fe=t.createContext(void 0),he=fe.Provider,ge=fe.Consumer,ye={...V,AUTO:"auto"},ve="background",be="both",xe="icon",Te={ALWAYS:"always",HOVER:"hover",NEVER:"never"},Pe="auto",Se="mobile";var Ee=(e=>(e.TABLET="tablet",e.DESKTOP="desktop",e))(Ee||{});const Ce={CLICK:"click",HOVER:"hover",FOCUS:"focus",MANUAL:"manual",OUTSIDE_PRESS:"outside-press",ESCAPE_KEY:"escape-key"},we={LINES:"lines",WORDS:"words",CHARACTERS:"characters"},Ne=e=>null==e,_e=e=>"string"==typeof e&&""===e.trim(),Ae=e=>Array.isArray(e)&&0===e.length,Re=e=>"object"==typeof e&&null!==e&&0===Object.keys(e).length,ke=e=>{if("object"==typeof e&&null!==e)for(const t in e)if(Object.hasOwnProperty.call(e,t))return!0;return!1},$e=e=>!!Ne(e)||(!!_e(e)||(!!Ae(e)||(!!Re(e)||(ke(e),!1)))),Oe=e=>t=>null!=e&&""!==e?`${e}-${t}`:t,je=e=>t=>`${t}--${e}`,De=e=>t=>`${t}--${e}`,Le=(e,t,n)=>{const r={};for(const[o,i]of Object.entries(e))for(const[e]of Object.entries(i))if(e.startsWith(t)){const i=`${n}-${o}-${e.replace(t,"").toLowerCase()}`;r[i.replace(/-/g,"_").toUpperCase()]=i}return r},Ie=(...e)=>e.reduceRight(((e,t)=>(...n)=>t(e(...n))),(e=>e)),Me=(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};var Fe,Be={},Ue={},He={},ze={},Ve={};function We(){return Fe||(Fe=1,e=Ve,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),Ve;var e,t,n}var Ge,qe,Xe={};function Ye(){if(Ge)return Xe;Ge=1;var e=Xe&&Xe.__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=Xe&&Xe.__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(Xe,"__esModule",{value:!0}),Xe.cloneNode=Xe.hasChildren=Xe.isDocument=Xe.isDirective=Xe.isComment=Xe.isText=Xe.isCDATA=Xe.isTag=Xe.Element=Xe.Document=Xe.CDATA=Xe.NodeWithChildren=Xe.ProcessingInstruction=Xe.Comment=Xe.Text=Xe.DataNode=Xe.Node=void 0;var n=We(),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),v(this,e)},e}();Xe.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);Xe.DataNode=o;var i=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);Xe.Text=i;var s=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);Xe.Comment=s;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);Xe.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);Xe.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);Xe.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);Xe.Document=p;var u=function(t){function r(e,r,o,i){void 0===o&&(o=[]),void 0===i&&(i="script"===e?n.ElementType.Script:"style"===e?n.ElementType.Style:n.ElementType.Tag);var s=t.call(this,o)||this;return s.name=e,s.attribs=r,s.type=i,s}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 d(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 v(e,n){var r;if(void 0===n&&(n=!1),f(e))r=new i(e.data);else if(h(e))r=new s(e.data);else if(d(e)){var o=n?b(e.children):[],l=new u(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?b(e.children):[];var v=new c(o);o.forEach((function(e){return e.parent=v})),r=v}else if(y(e)){o=n?b(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 b(e){for(var t=e.map((function(e){return v(e,!0)})),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}return Xe.Element=u,Xe.isTag=d,Xe.isCDATA=m,Xe.isText=f,Xe.isComment=h,Xe.isDirective=g,Xe.isDocument=y,Xe.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},Xe.cloneNode=v,Xe}function Ke(){return qe||(qe=1,function(e){var t=ze&&ze.__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=ze&&ze.__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=We(),o=Ye();n(Ye(),e);var i={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},s=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=i),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:i,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,i=new o.Element(e,t,void 0,n);this.addNode(i),this.tagStack.push(i)},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=s,e.default=s}(ze)),ze}var Qe,Ze,Je,et,tt={};function nt(){if(Ze)return He;Ze=1,Object.defineProperty(He,"__esModule",{value:!0}),He.formatAttributes=r,He.escapeSpecialCharacters=function(e){return e.replace(n.CARRIAGE_RETURN_REGEX,n.CARRIAGE_RETURN_PLACEHOLDER)},He.revertEscapedCharacters=i,He.formatDOM=function e(n,s,a){void 0===s&&(s=null);for(var l,c=[],p=0,u=n.length;p<u;p++){var d=n[p];switch(d.nodeType){case 1:var m=o(d.nodeName);(l=new t.Element(m,r(d.attributes))).children=e("template"===m?d.content.childNodes:d.childNodes,l);break;case 3:l=new t.Text(i(d.nodeValue));break;case 8:l=new t.Comment(d.nodeValue);break;default:continue}var f=c[p-1]||null;f&&(f.next=l),l.parent=s,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=s,c.unshift(l),c[1]&&(c[1].prev=c[0]));return c};var e,t=Ke(),n=(Qe||(Qe=1,e=tt,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")),tt);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 i(e){return e.replace(n.CARRIAGE_RETURN_PLACEHOLDER_REGEX,n.CARRIAGE_RETURN)}return He}const rt=u(function(){if(et)return Be;et=1;var e=Be&&Be.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Be,"__esModule",{value:!0}),Be.default=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];var o=e.match(r),i=o?o[1]:void 0;return(0,n.formatDOM)((0,t.default)(e),null,i)};var t=e(function(){if(Je)return Ue;Je=1,Object.defineProperty(Ue,"__esModule",{value:!0}),Ue.default=function(c){var p,u,m=(c=(0,e.escapeSpecialCharacters)(c)).match(o),f=m&&m[1]?m[1].toLowerCase():"";switch(f){case t:var h=l(c);return i.test(c)||null===(p=null==(y=h.querySelector(n))?void 0:y.parentNode)||void 0===p||p.removeChild(y),s.test(c)||null===(u=null==(y=h.querySelector(r))?void 0:y.parentNode)||void 0===u||u.removeChild(y),h.querySelectorAll(t);case n:case r:var g=a(c).querySelectorAll(f);return s.test(c)&&i.test(c)?g[0].parentNode.childNodes:g;default:return d?d(c):(y=a(c,r).querySelector(r)).childNodes;var y}};var e=nt(),t="html",n="head",r="body",o=/<([a-zA-Z]+[0-9]?)/,i=/<head[^]*>/i,s=/<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 u=document.implementation.createHTMLDocument();a=function(e,t){if(t){var n=u.documentElement.querySelector(t);return n&&(n.innerHTML=e),u}return u.documentElement.innerHTML=e,u}}var d,m="object"==typeof document&&document.createElement("template");return m&&m.content&&(d=function(e){return m.innerHTML=e,m.content.childNodes}),Ue}()),n=nt(),r=/<(![a-zA-Z\s]+)>/;return Be}()),ot=rt.default||rt;var it,st,at={},lt={},ct={},pt={};function ut(){if(st)return ct;st=1;function e(e,t,n,r,o,i,s){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=i,this.removeEmptyString=s}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 i=o.replace(n,r);t[i]=new e(i,1,!1,o,null,!1,!1)})),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach((o=>{const i=o.replace(n,r);t[i]=new e(i,1,!1,o,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((o=>{const i=o.replace(n,r);t[i]=new e(i,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:i,possibleStandardNames:s}=(it||(it=1,pt.SAME=0,pt.CAMELCASE=1,pt.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}),pt),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(s).reduce(((e,t)=>{const n=s[t];return n===i?e[t]=t:n===o?e[t.toLowerCase()]=t:e[t]=n,e}),{});return ct.BOOLEAN=3,ct.BOOLEANISH_STRING=2,ct.NUMERIC=5,ct.OVERLOADED_BOOLEAN=4,ct.POSITIVE_NUMERIC=6,ct.RESERVED=0,ct.STRING=1,ct.getPropertyInfo=function(e){return t.hasOwnProperty(e)?t[e]:null},ct.isCustomAttribute=a,ct.possibleStandardNames=l,ct}var dt,mt,ft,ht={},gt={},yt={};function vt(){if(ft)return yt;ft=1;var e=yt&&yt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(yt,"__esModule",{value:!0});var t=e(function(){if(mt)return dt;mt=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,a=/^\s+|\s+$/g,l="";function c(e){return e?e.replace(a,l):l}return dt=function(a,p){if("string"!=typeof a)throw new TypeError("First argument must be a string");if(!a)return[];p=p||{};var u=1,d=1;function m(e){var n=e.match(t);n&&(u+=n.length);var r=e.lastIndexOf("\n");d=~r?e.length-r:d+e.length}function f(){var e={line:u,column:d};return function(t){return t.position=new h(e),v(),t}}function h(e){this.start=e,this.end={line:u,column:d},this.source=p.source}function g(e){var t=new Error(p.source+":"+u+":"+d+": "+e);if(t.reason=e,t.filename=p.source,t.line=u,t.column=d,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 v(){y(n)}function b(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 d+=2,m(n),a=a.slice(t),d+=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(i),p=t({type:"declaration",property:c(n[0].replace(e,l)),value:a?c(a[0].replace(e,l)):l});return y(s),p}}return h.prototype.content=a,v(),function(){var e,t=[];for(b(t);e=T();)!1!==e&&(t.push(e),b(t));return t}()}}());return yt.default=function(e,n){var r=null;if(!e||"string"!=typeof e)return r;var o=(0,t.default)(e),i="function"==typeof n;return o.forEach((function(e){if("declaration"===e.type){var t=e.property,o=e.value;i?n(t,o,e):o&&((r=r||{})[t]=o)}})),r},yt}var bt,xt,Tt,Pt,St,Et={};function Ct(){if(bt)return Et;bt=1,Object.defineProperty(Et,"__esModule",{value:!0}),Et.camelCase=void 0;var e=/^--[a-zA-Z0-9-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,i=function(e,t){return t.toUpperCase()},s=function(e,t){return"".concat(t,"-")};return Et.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,s):a.replace(r,s)).replace(t,i))},Et}function wt(){return Tt||(Tt=1,function(e){var n=ht&&ht.__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(xt)return gt;xt=1;var e=gt&>.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(gt,"__esModule",{value:!0});var t=e(vt()),n=Ct();return gt.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},gt}()),i=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("-")?!i.has(e):Boolean(t&&"string"==typeof t.is)};var s={reactCompat:!0};e.setStyleProp=function(e,t){if("string"==typeof e)if(e.trim())try{t.style=(0,o.default)(e,s)}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}}(ht)),ht}const Nt=u(function(){if(St)return at;St=1;var e=at&&at.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(at,"__esModule",{value:!0});var n=t,r=e(function(){if(Pt)return lt;Pt=1,Object.defineProperty(lt,"__esModule",{value:!0});var e=ut(),t=wt(),n=["checked","value"],r=["input","select","textarea"],o={reset:!0,submit:!0};function i(t){return e.possibleStandardNames[t]}return lt.default=function(s,a){void 0===s&&(s={});var l={},c=Boolean(s.type&&o[s.type]);for(var p in s){var u=s[p];if((0,e.isCustomAttribute)(p))l[p]=u;else{var d=p.toLowerCase(),m=i(d);if(m){var f=(0,e.getPropertyInfo)(m);switch(n.includes(m)&&r.includes(a)&&!c&&(m=i("default"+d)),l[m]=u,f&&f.type){case e.BOOLEAN:l[m]=!0;break;case e.OVERLOADED_BOOLEAN:""===u&&(l[m]=!0)}}else t.PRESERVE_CUSTOM_ATTRIBUTES&&(l[p]=u)}}return(0,t.setStyleProp)(s.style,l),l},lt}()),o=wt(),i={cloneElement:n.cloneElement,createElement:n.createElement,isValidElement:n.isValidElement};function s(e){return o.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&(0,o.isCustomComponent)(e.name,e.attribs)}return at.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)||i,u=p.cloneElement,d=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=u(y,{key:y.key||h})),a.push(c(y,g,h));continue}}if("text"!==g.type){var v=g,b={};s(v)?((0,o.setStyleProp)(v.attribs.style,v.attribs),b=v.attribs):v.attribs&&(b=(0,r.default)(v.attribs,v.name));var x=void 0;switch(g.type){case"script":case"style":g.children[0]&&(b.dangerouslySetInnerHTML={__html:g.children[0].data});break;case"tag":"textarea"===g.name&&g.children[0]?b.defaultValue=g.children[0].data:g.children&&g.children.length&&(x=e(g.children,n));break;default:continue}f>1&&(b.key=h),a.push(c(d(g.name,b,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},at}()),_t=Nt.default||Nt,At=e=>{if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];const t="function"==typeof ot.default?ot.default:ot;return("function"==typeof _t.default?_t.default:_t)(t(e))};function Rt(e,t){const n="string"!=typeof(r=e)&&null!==r&&"spiritComponent"in r;var r;const o=e=>"object"==typeof e&&null!==e,i=Object.values(t).flatMap((e=>"string"==typeof e?[e]:o(e)?[e.className,e.UNSAFE_className].filter(Boolean):[])).filter(Boolean).join(" "),s=Object.values(t).filter(o).reduce(((e,t)=>{if(!o(t))return e;const n=t,r=n.style||n.UNSAFE_style||{},i=(e=>o(e)?Object.entries(e).filter((([e])=>e.startsWith("--"))).reduce(((e,[t,n])=>({...e,[t]:n})),{}):{})(t);return{...e,...r,...i}}),{});return n?{UNSAFE_className:i,UNSAFE_style:s}:{className:i,style:s}}const kt=e=>{const{router:t,routerOptions:n,href:r,target:o,download:i,onClick:s,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===i||"string"==typeof i)&&!(e=>"string"==typeof e&&"_self"!==e.toLowerCase())(o)&&!l&&!c);return p?e=>{e.defaultPrevented||(s?.(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)))}:s};function $t(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function Ot(e,t){return t?$t(t)?Object.entries(t).map((([t,n])=>void 0===n?"":"mobile"===t?`${e}--${n}`:`${e}--${t}--${n}`)).filter((e=>""!==e)):[`${e}--${t}`]:[]}const jt="undefined"==typeof window,Dt=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Lt=e=>e.replace(/-([a-z])/g,(e=>e[1].toUpperCase())),It=e=>{if("object"==typeof e&&null!==e){const t={};for(const[n,r]of Object.entries(e))t[n]="string"==typeof r?Lt(r):r;return t}return e},Mt=e=>"string"==typeof e||null==e?e??void 0:String(e),Ft=e=>"string"==typeof e?Lt(e):"object"==typeof e&&null!==e?It(e):e;function Bt(e){return"string"!=typeof e?e:e.split("-").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join("")}function Ut(e,t,n){return`${e}--${n||""}${n?Bt(t):t}`}function Ht(e,t,n){return Object.keys(t).map((r=>{const o="mobile"===r?"":`--${r}`,i=t[r];return`${e}${o}--${n||""}${n?Bt(i):i}`})).join(" ")}function zt(e,t,n){const r=function(e){return e&&"object"==typeof e}(t)?Ht:Ut;return r(e,t,n)}const Vt="-",Wt=e=>(e=>"string"==typeof e&&e.startsWith("space-"))(e)?(e=>e===Pe?Pe:e.replace(/[^0-9]/g,""))(e):e,Gt=(e,t,n,r)=>{switch(e){case"hideOn":return((e,t,n)=>(Array.isArray(t)?t:[t]).map((t=>Oe(n)(`${e}${Vt}only${Vt}${t}${Vt}none`))))(t,n,r);case"hideFrom":return((e,t,n)=>{const r=t===Se?"":`${Vt}${t}`;return[Oe(n)(`${e}${r}${Vt}none`)]})(t,n,r);default:return[]}},qt=(e,t,n,r)=>{if(t===me.theme){if("string"!=typeof n)return[];const e=Dt(n);return[Oe(r)(e)]}return e in de?Gt(e,t,n,r):"boolean"==typeof n?n?[Oe(r)(t)]:[]:"string"==typeof n?[Oe(r)(`${t}-${Wt(n)}`)]:((e,t,n)=>Object.keys(t).reduce(((r,o)=>{const i=t[o];if("string"==typeof i){const t=Wt(i),s=o===Se?"":`${Vt}${o}`;r.push(Oe(n)(`${e}${s}${Vt}${t}`))}return r}),[]))(t,n,r)},Xt=(e,t,n,r={includesKey:!0})=>{const o=(i=e,s=t,Object.keys(i).includes(s));var i,s;return r.includesKey?o&&!$e(n):!o};function Yt(e,n){const r=t.useContext(fe),{UNSAFE_className:o,UNSAFE_style:i,...s}=e,a={theme:me.theme,...n??{}},{styleUtilities:l,props:c}=((e,t="",n={})=>{const r={...le,...de,...me,...n},o=Object.entries(e);return{styleUtilities:o.reduce(((e,[n,o])=>{if(Xt(r,n,o)){const i=r[n];return[...e,...qt(n,i,o,t)]}return e}),[]),props:o.reduce(((e,[t,n])=>Xt(r,t,n,{includesKey:!1})?{...e,[t]:n}:e),{})}})(s,r,a),p={...i};c.className&&(v(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&&(v(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(o,...l)||void 0},props:c}}function Kt(e,t,n){return zt(e,t&&"object"==typeof t?{mobile:"stretch",...t}:t,n)}function Qt(e,n){const[r,o]=t.useState((()=>{if(!n)return[];const e=n.trim().split(/\s+/).filter(Boolean);return Array.from(new Set(e))})),i=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]),i]}const Zt=e=>Qt("aria-describedby",e),Jt=e=>Qt("aria-details",e),en=jt?t.useEffect:t.useLayoutEffect,tn="cancel",nn="keydown",rn=(e,n,r=!0,o=!1)=>{const i=t.useCallback((t=>{e&&n&&(t.defaultPrevented||(t.preventDefault(),n&&r&&n(t)))}),[e,n,r]),s=t.useCallback((e=>{"Escape"===e.key&&!r&&o&&e.preventDefault()}),[r,o]);return en((()=>{const t=e?.current;return t?(t.addEventListener(tn,i),document.addEventListener(nn,s),()=>{t.removeEventListener(tn,i),document.removeEventListener(nn,s)}):()=>{}}),[e,i]),i},on=e=>{const n=t.useContext(fe);let r=e;return e&&n?r=Oe(n)(e):n&&(r=n),r},sn=(e,n)=>t.useCallback((t=>{e?t.preventDefault():n&&n(t)}),[e,n]),an=({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]),i=e=>{r.current.mouseDownTarget=e.target};en((()=>(document.addEventListener("mousedown",i,{capture:!0}),document.addEventListener("click",o,{capture:!0}),()=>{document.removeEventListener("mousedown",i,{capture:!0}),document.removeEventListener("click",o,{capture:!0})})),[o])},ln=e=>{const{value:n,defaultValue:r,componentName:o,valuePropName:i="value",defaultValuePropName:s="defaultValue",bothDefinedMessage:a,modeSwitchMessage:l}=e,c=void 0!==n,p=t.useRef(void 0),u=t.useRef(!1);t.useEffect((()=>{void 0===n||void 0===r||u.current||(u.current=!0,v(0,a??`${o}: \`${i}\` and \`${s}\` cannot both be set. Use either controlled (\`${i}\`) or uncontrolled (\`${s}\`) mode.`))}),[a,o,r,s,n,i]),t.useEffect((()=>{void 0!==p.current?(p.current!==c&&v(0,l??`${o}: Do not switch between controlled (\`${i}\` defined) and uncontrolled (\`${i}\` undefined) modes across renders.`),p.current=c):p.current=c}),[o,c,l,i])},cn=(e,n)=>{const[r,o]=t.useState(e),i=t.useRef(!0),s=t.useMemo((()=>Me((e=>o(e)),n)),[n]);return t.useEffect((()=>{if(!i.current)return s(e),()=>s.cancel();i.current=!1}),[e,s]),r},pn=({method:e="component",trigger:n,componentName:r,componentProps:o,propertyProps:i,customText:s})=>{const a=`Deprecation warning (${r}):`;t.useEffect((()=>{const t=n&&r&&"development"===process.env.NODE_ENV;let l,c;switch(e){case"property":l=i?.delete?`${a} "${i?.deprecatedName}" property will be deleted in the next major version.`:i?.deprecatedValue&&i?.newValue&&i?.propertyName?`${a} The "${i?.deprecatedValue}" value for "${i?.propertyName}" property will be renamed to "${i?.newValue}" in the next major version.`:`${a} "${i?.deprecatedName}" property will be replaced in the next major version. Please use "${i?.newName}" instead. ♻️️`,c=!!i;break;case"custom":l=`${a} ${s}`,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&&v(0,l)}),[])},un=(e,t)=>{const n={},r=`--${t}`;return"object"==typeof e&&null!==e?Object.keys(e).forEach((t=>{const o="mobile"===t?"":`-${t}`,i=e[t];n[`${r}${o}`]=`${i?.toString()}`})):e&&(n[`${r}`]=`${e?.toString()}`),n},dn=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)}}},mn={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"}},fn=(e,t)=>Object.entries(t).reduce(((e,[t,n])=>{const r=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return e.replace(new RegExp(`\\{${r}\\}`,"g"),String(n))}),e),hn=(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},gn=()=>({t:(e,t)=>{const n=hn(mn,e);return t?fn(n,t):n}}),yn=t.createContext(void 0),vn=yn.Provider,bn=yn.Consumer,xn=e=>{const n=t.useContext(yn);return null!=n&&null!=n[e]?n[e]:(v(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 Tn(e,t,n="default"){return e&&t[e]?t[e]:t[n]}function Pn(e,t){return t?zt(e,t,"inputPosition"):""}const Sn=e=>{const n=t.useRef(null);t.useEffect((()=>{e?n.current=document.activeElement:n?.current&&n.current.focus()}),[e])},En=t.createContext(null),Cn=En.Consumer,wn=()=>t.useContext(En),Nn=e=>{const n=wn(),{routerOptions:r,href:o,target:i,download:s,onClick:a,isDisabled:l}=e;return t.useMemo((()=>kt({router:n,routerOptions:r,href:o,target:i,download:s,onClick:a,isDisabled:l})),[n,r,o,i,s,a,l])};function _n(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 An={width:void 0,height:void 0};function Rn(e){const{ref:n,box:r="border-box"}=e,[{width:o,height:i},s]=t.useState(An),a=function(){const e=t.useRef(!1);return t.useEffect((()=>(e.current=!0,()=>{e.current=!1})),[]),t.useCallback((()=>e.current),[])}(),l=t.useRef({...An}),c=t.useRef(void 0);return c.current=e.onResize,t.useEffect((()=>{if(jt)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=_n(e,t,"inlineSize"),o=_n(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()&&s(e)}}));return e.observe(n.current,{box:r}),()=>{e.disconnect()}}),[r,n,a]),{width:o,height:i}}const kn="is-scrolling-disabled",$n=()=>{const{body:e}=document;e.style.paddingRight="",e.classList.remove(kn)},On=(e,n)=>{t.useEffect((()=>(n?(()=>{const{body:e}=document,t=window.innerWidth-e.clientWidth;e.style.paddingRight=`${t}px`,e.classList.add(kn)})():e.current&&!e.current.open&&$n(),()=>{$n()})),[n,e])},jn=e=>e===ie,Dn=(e,t)=>jn(t)?e.slice(0,1):e,Ln=(e,t,n)=>jn(n)?e[0]===t:e.includes(t),In=(e,t,n)=>{const r=e.includes(t);return jn(n)?r?[]:[t]:r?e.filter((e=>e!==t)):[...e,t]},Mn=({defaultSelectedKeys:e=[],onSelectionChange:n,selectionMode:r=oe})=>{const[o,i]=t.useState((()=>Dn(e,r))),s=t.useRef(n);s.current=n;const a=t.useRef(!0);t.useEffect((()=>{i((e=>{const t=Dn(e,r);return e.length===t.length&&e.every(((e,n)=>e===t[n]))?e:t}))}),[r]),t.useEffect((()=>{a.current?a.current=!1:s.current?.(o)}),[o]);return{selectedKeys:o,setSelectedKeys:e=>{i(Dn(e,r))},toggleSelectedKey:e=>{i((t=>In(t,e,r)))}}};function Fn(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 Bn="--symmetrical";function Un(e,t){if("object"!=typeof t||null===t)return{isSymmetricalActive:!0===t,symmetricalClassName:t?`${e}${Bn}`:""};const{classes:n}=Object.keys(T).reduce(function(e,t){return(n,r)=>{if(r in t){const o=t[r],i=r===Se?"":`--${r}`;if(o)return{classes:[...n.classes,`${e}${i}${Bn}`],wasSymmetrical:!0};if(n.wasSymmetrical)return{classes:[...n.classes,`${e}${i}--asymmetrical`],wasSymmetrical:n.wasSymmetrical}}return n}}(e,t),{classes:[],wasSymmetrical:!1});return{isSymmetricalActive:Object.values(t).includes(!0),symmetricalClassName:n.join(" ")}}const Hn=(e=!1)=>{const[n,r]=t.useState(e);return[n,t.useCallback((()=>r((e=>!e))),[])]},zn="--wrap",Vn="--noWrap";function Wn(e,t){return"object"==typeof t&&null!==t?Object.entries(t).map((([t,n])=>`${e}${"mobile"===t?"":`--${t}`}${n?zn:Vn}`)).join(" "):`${e}${t?zn:Vn}`}const Gn=()=>{const e=on("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`}}},qn=t.createContext({open:void 0,toggle:()=>null}),Xn=qn.Provider;qn.Consumer;const Yn=()=>t.useContext(qn),Kn=e=>{const{open:t}=Yn();return{isOpen:(n=e,!(!n||n!==t&&!t?.includes(n)))};var n};var Qn,Zn={exports:{}},Jn={};var er,tr,nr={};function rr(){return er||(er=1,"production"!==process.env.NODE_ENV&&function(){function e(t){if(null==t)return null;if("function"==typeof t)return t.$$typeof===L?null:t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case E:return"Fragment";case S:return"Portal";case w:return"Profiler";case C:return"StrictMode";case R:return"Suspense";case k:return"SuspenseList"}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 _:return(t.displayName||"Context")+".Provider";case N:return(t._context.displayName||"Context")+".Consumer";case A:var n=t.render;return(t=t.displayName)||(t=""!==(t=n.displayName||n.name||"")?"ForwardRef("+t+")":"ForwardRef"),t;case $:return null!==(n=t.displayName||null)?n:e(t.type)||"Memo";case O: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(){}function i(e){if(void 0===z)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);z=t&&t[1]||"",V=-1<e.stack.indexOf("\n at")?" (<anonymous>)":-1<e.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+z+e+V}function s(e,t){if(!e||G)return"";var n=q.get(e);if(void 0!==n)return n;G=!0,n=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var r;r=I.H,I.H=null,function(){if(0===H){f=console.log,h=console.info,g=console.warn,y=console.error,v=console.group,b=console.groupCollapsed,x=console.groupEnd;var e={configurable:!0,enumerable:!0,value:o,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}H++}();try{var s={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&"function"==typeof n.catch&&n.catch((function(){}))}}catch(e){if(e&&r&&"string"==typeof e.stack)return[e.stack,r.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var l=s.DetermineComponentFrameRoot(),c=l[0],p=l[1];if(c&&p){var u=c.split("\n"),d=p.split("\n");for(l=a=0;a<u.length&&!u[a].includes("DetermineComponentFrameRoot");)a++;for(;l<d.length&&!d[l].includes("DetermineComponentFrameRoot");)l++;if(a===u.length||l===d.length)for(a=u.length-1,l=d.length-1;1<=a&&0<=l&&u[a]!==d[l];)l--;for(;1<=a&&0<=l;a--,l--)if(u[a]!==d[l]){if(1!==a||1!==l)do{if(a--,0>--l||u[a]!==d[l]){var m="\n"+u[a].replace(" at new "," at ");return e.displayName&&m.includes("<anonymous>")&&(m=m.replace("<anonymous>",e.displayName)),"function"==typeof e&&q.set(e,m),m}}while(1<=a&&0<=l);break}}}finally{G=!1,I.H=r,function(){if(0==--H){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:F({},e,{value:f}),info:F({},e,{value:h}),warn:F({},e,{value:g}),error:F({},e,{value:y}),group:F({},e,{value:v}),groupCollapsed:F({},e,{value:b}),groupEnd:F({},e,{value:x})})}0>H&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=n}return u=(u=e?e.displayName||e.name:"")?i(u):"","function"==typeof e&&q.set(e,u),u}function a(e){if(null==e)return"";if("function"==typeof e){var t=e.prototype;return s(e,!(!t||!t.isReactComponent))}if("string"==typeof e)return i(e);switch(e){case R:return i("Suspense");case k:return i("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case A:return e=s(e.render,!1);case $:return a(e.type);case O:t=e._payload,e=e._init;try{return a(e(t))}catch(e){}}return""}function l(){var e=I.A;return null===e?null:e.getOwner()}function c(){var t=e(this.type);return Y[t]||(Y[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 p(t,n,o,i,s,a){if("string"==typeof t||"function"==typeof t||t===E||t===w||t===C||t===R||t===k||t===j||"object"==typeof t&&null!==t&&(t.$$typeof===O||t.$$typeof===$||t.$$typeof===_||t.$$typeof===N||t.$$typeof===A||t.$$typeof===B||void 0!==t.getModuleId)){var p=n.children;if(void 0!==p)if(i)if(U(p)){for(i=0;i<p.length;i++)u(p[i],t);Object.freeze&&Object.freeze(p)}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 u(p,t)}else p="",(void 0===t||"object"==typeof t&&null!==t&&0===Object.keys(t).length)&&(p+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),null===t?i="null":U(t)?i="array":void 0!==t&&t.$$typeof===P?(i="<"+(e(t.type)||"Unknown")+" />",p=" Did you accidentally export a JSX literal instead of a component?"):i=typeof t,console.error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",i,p);if(M.call(n,"key")){p=e(t);var d=Object.keys(n).filter((function(e){return"key"!==e}));i=0<d.length?"{key: someKey, "+d.join(": ..., ")+": ...}":"{key: someKey}",K[p+i]||(d=0<d.length?"{"+d.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} />',i,p,d,p),K[p+i]=!0)}if(p=null,void 0!==o&&(r(o),p=""+o),function(e){if(M.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),p=""+n.key),"key"in n)for(var m in o={},n)"key"!==m&&(o[m]=n[m]);else o=n;return p&&function(e,t){function n(){W||(W=!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,i){return n=i.ref,e={$$typeof:P,type:e,key:t,props:i,_owner:o},null!==(void 0!==n?n:null)?Object.defineProperty(e,"ref",{enumerable:!1,get:c}):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.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}(t,p,a,0,l(),o)}function u(e,t){if("object"==typeof e&&e&&e.$$typeof!==X)if(U(e))for(var n=0;n<e.length;n++){var r=e[n];d(r)&&m(r,t)}else if(d(e))e._store&&(e._store.validated=1);else if(null===e||"object"!=typeof e?n=null:n="function"==typeof(n=D&&e[D]||e["@@iterator"])?n:null,"function"==typeof n&&n!==e.entries&&(n=n.call(e))!==e)for(;!(e=n.next()).done;)d(e.value)&&m(e.value,t)}function d(e){return"object"==typeof e&&null!==e&&e.$$typeof===P}function m(t,n){if(t._store&&!t._store.validated&&null==t.key&&(t._store.validated=1,n=function(t){var n="",r=l();return r&&(r=e(r.type))&&(n="\n\nCheck the render method of `"+r+"`."),n||(t=e(t))&&(n="\n\nCheck the top-level render call using <"+t+">."),n}(n),!Q[n])){Q[n]=!0;var r="";t&&null!=t._owner&&t._owner!==l()&&(r=null,"number"==typeof t._owner.tag?r=e(t._owner.type):"string"==typeof t._owner.name&&(r=t._owner.name),r=" It was passed a child from "+r+".");var o=I.getCurrentStack;I.getCurrentStack=function(){var e=a(t.type);return o&&(e+=o()||""),e},console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',n,r),I.getCurrentStack=o}}var f,h,g,y,v,b,x,T=t,P=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),N=Symbol.for("react.consumer"),_=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),k=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),j=Symbol.for("react.offscreen"),D=Symbol.iterator,L=Symbol.for("react.client.reference"),I=T.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,M=Object.prototype.hasOwnProperty,F=Object.assign,B=Symbol.for("react.client.reference"),U=Array.isArray,H=0;o.__reactDisabledLog=!0;var z,V,W,G=!1,q=new("function"==typeof WeakMap?WeakMap:Map),X=Symbol.for("react.client.reference"),Y={},K={},Q={};nr.Fragment=E,nr.jsx=function(e,t,n,r,o){return p(e,t,n,!1,0,o)},nr.jsxs=function(e,t,n,r,o){return p(e,t,n,!0,0,o)}}()),nr}var or=(tr||(tr=1,"production"===process.env.NODE_ENV?Zn.exports=function(){if(Qn)return Jn;Qn=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 i in r={},n)"key"!==i&&(r[i]=n[i]);else r=n;return n=r.ref,{$$typeof:e,type:t,key:o,ref:void 0!==n?n:null,props:r}}return Jn.Fragment=t,Jn.jsx=n,Jn.jsxs=n,Jn}():Zn.exports=rr()),Zn.exports);const ir=t.forwardRef(((e,t)=>{const{children:n,elementType:r="section",open:o,toggle:i,...s}=e,a=r,{classProps:l}=Gn(),{styleProps:c,props:p}=Yt(s),u=Rt(a,{classProps:l.root,styleProps:c}),d={open:o,toggle:i};return or.jsx(a,{...p,...u,ref:t,children:or.jsx(Xn,{value:d,children:n})})}));ir.spiritComponent="Accordion",ir.displayName="Accordion";const sr=t.createContext({id:""}),ar=sr.Provider;sr.Consumer;const lr=()=>t.useContext(sr),cr=t.forwardRef(((e,t)=>{const{children:n,elementType:r="article",id:o,...i}=e,s=r,{classProps:a}=Gn(),{styleProps:l,props:c}=Yt(i),p=Rt(s,{classProps:a.item,styleProps:l}),u={id:o};return or.jsx(s,{...c,id:o,...p,ref:t,children:or.jsx(ar,{value:u,children:n})})}));cr.spiritComponent="AccordionItem",cr.displayName="AccordionItem";const pr=(e,t)=>{const n={};return"object"==typeof t&&Object.entries(t).forEach((([t,r])=>{n[`${e}${"mobile"===t?"":`-${t}`}`]=`${r?.toString()}px`})),n},ur=e=>{const{boxSize:t,color:n,name:r,...o}=e,i=`--${P}icon`,s=String(r).includes("-dualtone")&&!n?B.PRIMARY:n,a=on("Icon"),l=`${a}--${s}`;return{classProps:g(a,{[l]:n||s}),iconStyleProps:{...t?pr(`${i}-size`,t):{}},props:o}},dr={ariaHidden:!0,boxSize:24},mr=t.forwardRef(((e,t)=>{const n={...dr,...e},{boxSize:r,name:o,title:i,ariaHidden:s,...a}=n;let l=xn(o);const c=(e=>"object"==typeof e?e.mobile??24:e??24)(r),{classProps:p,iconStyleProps:u,props:d}=ur({boxSize:r,name:o,...a}),{styleProps:m,props:f}=Yt(d),h=Rt("svg",{classProps:p,iconStyleProps:u,styleProps:m});return i&&(l=`<title>${i}</title>${l}`),or.jsx("svg",{...f,...h,viewBox:"0 0 24 24",fill:"none",width:c,height:c,"aria-hidden":s,ref:t,children:At(l)})}));mr.spiritComponent="Icon",mr.displayName="Icon";const fr={elementType:"h3"},hr=t.forwardRef(((e,t)=>{const n={...fr,...e},{elementType:r="h3",children:o,slot:i,...s}=n,a=r,{classProps:l}=Gn(),{toggle:c}=Yn(),{id:u}=lr(),{styleProps:d,props:m}=Yt(s),{isOpen:f}=Kn(u),{triggerProps:h,headerProps:g}=p({id:u,isOpen:f}),y=Rt(a,{classProps:l.header,styleProps:d});return or.jsxs(a,{...m,...y,...g,ref:t,children:[or.jsx("button",{type:"button",className:l.toggle,onClick:()=>{c&&u&&c(u)},...h,children:o}),or.jsxs("span",{className:l.side,children:[i&&or.jsx("span",{className:l.slot,children:i}),or.jsx("span",{className:l.icon,children:or.jsx(mr,{name:"chevron-down"})})]})]})}));function gr(e,t){return(gr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}hr.spiritComponent="AccordionHeader",hr.displayName="AccordionHeader";var yr,vr={exports:{}},br={exports:{}},xr={};var Tr,Pr,Sr,Er,Cr,wr,Nr,_r,Ar,Rr,kr,$r,Or,jr,Dr,Lr={};function Ir(){return Pr||(Pr=1,"production"===process.env.NODE_ENV?br.exports=function(){if(yr)return xr;yr=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,i=e?Symbol.for("react.profiler"):60114,s=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,u=e?Symbol.for("react.suspense"):60113,d=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,v=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var d=e.$$typeof;switch(d){case t:switch(e=e.type){case l:case c:case r:case i:case o:case u:return e;default:switch(e=e&&e.$$typeof){case a:case p:case f:case m:case s:return e;default:return d}}case n:return d}}}function x(e){return b(e)===c}return xr.AsyncMode=l,xr.ConcurrentMode=c,xr.ContextConsumer=a,xr.ContextProvider=s,xr.Element=t,xr.ForwardRef=p,xr.Fragment=r,xr.Lazy=f,xr.Memo=m,xr.Portal=n,xr.Profiler=i,xr.StrictMode=o,xr.Suspense=u,xr.isAsyncMode=function(e){return x(e)||b(e)===l},xr.isConcurrentMode=x,xr.isContextConsumer=function(e){return b(e)===a},xr.isContextProvider=function(e){return b(e)===s},xr.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},xr.isForwardRef=function(e){return b(e)===p},xr.isFragment=function(e){return b(e)===r},xr.isLazy=function(e){return b(e)===f},xr.isMemo=function(e){return b(e)===m},xr.isPortal=function(e){return b(e)===n},xr.isProfiler=function(e){return b(e)===i},xr.isStrictMode=function(e){return b(e)===o},xr.isSuspense=function(e){return b(e)===u},xr.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===i||e===o||e===u||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===m||e.$$typeof===s||e.$$typeof===a||e.$$typeof===p||e.$$typeof===g||e.$$typeof===y||e.$$typeof===v||e.$$typeof===h)},xr.typeOf=b,xr}():br.exports=(Tr||(Tr=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,i=e?Symbol.for("react.profiler"):60114,s=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,u=e?Symbol.for("react.suspense"):60113,d=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,v=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var d=e.$$typeof;switch(d){case t:var h=e.type;switch(h){case l:case c:case r:case i:case o:case u:return h;default:var g=h&&h.$$typeof;switch(g){case a:case p:case f:case m:case s:return g;default:return d}}case n:return d}}}var x=l,T=c,P=a,S=s,E=t,C=p,w=r,N=f,_=m,A=n,R=i,k=o,$=u,O=!1;function j(e){return b(e)===c}Lr.AsyncMode=x,Lr.ConcurrentMode=T,Lr.ContextConsumer=P,Lr.ContextProvider=S,Lr.Element=E,Lr.ForwardRef=C,Lr.Fragment=w,Lr.Lazy=N,Lr.Memo=_,Lr.Portal=A,Lr.Profiler=R,Lr.StrictMode=k,Lr.Suspense=$,Lr.isAsyncMode=function(e){return O||(O=!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)||b(e)===l},Lr.isConcurrentMode=j,Lr.isContextConsumer=function(e){return b(e)===a},Lr.isContextProvider=function(e){return b(e)===s},Lr.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Lr.isForwardRef=function(e){return b(e)===p},Lr.isFragment=function(e){return b(e)===r},Lr.isLazy=function(e){return b(e)===f},Lr.isMemo=function(e){return b(e)===m},Lr.isPortal=function(e){return b(e)===n},Lr.isProfiler=function(e){return b(e)===i},Lr.isStrictMode=function(e){return b(e)===o},Lr.isSuspense=function(e){return b(e)===u},Lr.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===i||e===o||e===u||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===m||e.$$typeof===s||e.$$typeof===a||e.$$typeof===p||e.$$typeof===g||e.$$typeof===y||e.$$typeof===v||e.$$typeof===h)},Lr.typeOf=b}()),Lr)),br.exports}function Mr(){if(Er)return Sr;Er=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return Sr=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 i,s,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 i=Object(arguments[l]))t.call(i,c)&&(a[c]=i[c]);if(e){s=e(i);for(var p=0;p<s.length;p++)n.call(i,s[p])&&(a[s[p]]=i[s[p]])}}return a},Sr}function Fr(){if(wr)return Cr;wr=1;return Cr="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Br(){return _r?Nr:(_r=1,Nr=Function.call.bind(Object.prototype.hasOwnProperty))}function Ur(){if(Rr)return Ar;Rr=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=Fr(),n={},r=Br();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function o(o,i,s,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 u=Error((a||"React class")+": "+s+" 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 u.name="Invariant Violation",u}p=o[c](i,c,a,s,null,t)}catch(e){p=e}if(!p||p instanceof Error||e((a||"React class")+": type specification of "+s+" `"+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 d=l?l():"";e("Failed "+s+" type: "+p.message+(null!=d?d:""))}}}return o.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},Ar=o}function Hr(){if($r)return kr;$r=1;var e=Ir(),t=Mr(),n=Fr(),r=Br(),o=Ur(),i=function(){};function s(){return null}return"production"!==process.env.NODE_ENV&&(i=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),kr=function(a,l){var c="function"==typeof Symbol&&Symbol.iterator;var p="<<anonymous>>",u={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(s),arrayOf:function(e){return f((function(t,r,o,i,s){if("function"!=typeof e)return new m("Property `"+s+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var a=t[r];if(!Array.isArray(a))return new m("Invalid "+i+" `"+s+"` of type `"+v(a)+"` supplied to `"+o+"`, expected an array.");for(var l=0;l<a.length;l++){var c=e(a,l,o,i,s+"["+l+"]",n);if(c instanceof Error)return c}return null}))},element:f((function(e,t,n,r,o){var i=e[t];return a(i)?null:new m("Invalid "+r+" `"+o+"` of type `"+v(i)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:f((function(t,n,r,o,i){var s=t[n];return e.isValidElementType(s)?null:new m("Invalid "+o+" `"+i+"` of type `"+v(s)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(e){return f((function(t,n,r,o,i){if(!(t[n]instanceof e)){var s=e.name||p;return new m("Invalid "+o+" `"+i+"` of type `"+(((a=t[n]).constructor&&a.constructor.name?a.constructor.name:p)+"` supplied to `")+r+"`, expected instance of `"+s+"`.")}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,i,s,a){if("function"!=typeof e)return new m("Property `"+a+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var l=t[o],c=v(l);if("object"!==c)return new m("Invalid "+s+" `"+a+"` of type `"+c+"` supplied to `"+i+"`, expected an object.");for(var p in l)if(r(l,p)){var u=e(l,p,i,s,a+"."+p,n);if(u instanceof Error)return u}return null}))},oneOf:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&i(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."),s;return f((function(t,n,r,o,i){for(var s=t[n],a=0;a<e.length;a++)if(d(s,e[a]))return null;var l=JSON.stringify(e,(function(e,t){return"symbol"===b(t)?String(t):t}));return new m("Invalid "+o+" `"+i+"` of value `"+String(s)+"` supplied to `"+r+"`, expected one of "+l+".")}))},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&i("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var t=0;t<e.length;t++){var o=e[t];if("function"!=typeof o)return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+x(o)+" at index "+t+"."),s}return f((function(t,o,i,s,a){for(var l=[],c=0;c<e.length;c++){var p=(0,e[c])(t,o,i,s,a,n);if(null==p)return null;p.data&&r(p.data,"expectedType")&&l.push(p.data.expectedType)}return new m("Invalid "+s+" `"+a+"` supplied to `"+i+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")}))},shape:function(e){return f((function(t,r,o,i,s){var a=t[r],l=v(a);if("object"!==l)return new m("Invalid "+i+" `"+s+"` of type `"+l+"` supplied to `"+o+"`, expected `object`.");for(var c in e){var p=e[c];if("function"!=typeof p)return g(o,i,s,c,b(p));var u=p(a,c,o,i,s+"."+c,n);if(u)return u}return null}))},exact:function(e){return f((function(o,i,s,a,l){var c=o[i],p=v(c);if("object"!==p)return new m("Invalid "+a+" `"+l+"` of type `"+p+"` supplied to `"+s+"`, expected `object`.");var u=t({},o[i],e);for(var d in u){var f=e[d];if(r(e,d)&&"function"!=typeof f)return g(s,a,l,d,b(f));if(!f)return new m("Invalid "+a+" `"+l+"` key `"+d+"` supplied to `"+s+"`.\nBad object: "+JSON.stringify(o[i],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var h=f(c,d,s,a,l+"."+d,n);if(h)return h}return null}))}};function d(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,s,a,c,u,d,f){if(c=c||p,d=d||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&&(i("You are manually calling a React.PropTypes validation function for the `"+d+"` 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==s[a]?o?null===s[a]?new m("The "+u+" `"+d+"` is marked as required in `"+c+"`, but its value is `null`."):new m("The "+u+" `"+d+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(s,a,c,u,d)}var s=o.bind(null,!1);return s.isRequired=o.bind(null,!0),s}function h(e){return f((function(t,n,r,o,i,s){var a=t[n];return v(a)!==e?new m("Invalid "+o+" `"+i+"` of type `"+b(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 v(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 b(e){if(null==e)return""+e;var t=v(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function x(e){var t=b(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,u.checkPropTypes=o,u.resetWarningCache=o.resetWarningCache,u.PropTypes=u,u},kr}function zr(){if(jr)return Or;jr=1;var e=Fr();function t(){}function n(){}return n.resetWarningCache=t,Or=function(){function r(t,n,r,o,i,s){if(s!==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 i={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 i.PropTypes=i,i}}function Vr(){if(Dr)return vr.exports;if(Dr=1,"production"!==process.env.NODE_ENV){var e=Ir();vr.exports=Hr()(e.isElement,true)}else vr.exports=zr()();return vr.exports}const Wr=u(Vr()),Gr=!1;var qr="production"!==process.env.NODE_ENV?Wr.oneOfType([Wr.number,Wr.shape({enter:Wr.number,exit:Wr.number,appear:Wr.number}).isRequired]):null;"production"!==process.env.NODE_ENV&&Wr.oneOfType([Wr.string,Wr.shape({enter:Wr.string,exit:Wr.string,active:Wr.string}),Wr.shape({enter:Wr.string,enterDone:Wr.string,enterActive:Wr.string,exit:Wr.string,exitDone:Wr.string,exitActive:Wr.string})]);const Xr=t.createContext(null);var Yr="unmounted",Kr="exited",Qr="entering",Zr="entered",Jr="exiting",eo=function(e){var r,o;function i(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=Kr,r.appearStatus=Qr):o=Zr:o=t.unmountOnExit||t.mountOnEnter?Yr:Kr,r.state={status:o},r.nextCallback=null,r}o=e,(r=i).prototype=Object.create(o.prototype),r.prototype.constructor=r,gr(r,o),i.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Yr?{status:Kr}:null};var s=i.prototype;return s.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},s.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Qr&&n!==Zr&&(t=Qr):n!==Qr&&n!==Zr||(t=Jr)}this.updateStatus(!1,t)},s.componentWillUnmount=function(){this.cancelNextCallback()},s.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}},s.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Qr){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===Kr&&this.setState({status:Yr})},s.performEnter=function(e){var t=this,r=this.props.enter,o=this.context?this.context.isMounting:e,i=this.props.nodeRef?[o]:[n.findDOMNode(this),o],s=i[0],a=i[1],l=this.getTimeouts(),c=o?l.appear:l.enter;!e&&!r||Gr?this.safeSetState({status:Zr},(function(){t.props.onEntered(s)})):(this.props.onEnter(s,a),this.safeSetState({status:Qr},(function(){t.props.onEntering(s,a),t.onTransitionEnd(c,(function(){t.safeSetState({status:Zr},(function(){t.props.onEntered(s,a)}))}))})))},s.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),o=this.props.nodeRef?void 0:n.findDOMNode(this);t&&!Gr?(this.props.onExit(o),this.safeSetState({status:Jr},(function(){e.props.onExiting(o),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:Kr},(function(){e.props.onExited(o)}))}))}))):this.safeSetState({status:Kr},(function(){e.props.onExited(o)}))},s.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},s.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},s.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},s.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 i=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],s=i[0],a=i[1];this.props.addEndListener(s,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},s.render=function(){var e=this.state.status;if(e===Yr)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(Xr.Provider,{value:null},"function"==typeof r?r(e,o):t.cloneElement(t.Children.only(r),o))},i}(t.Component);function to(){}eo.contextType=Xr,eo.propTypes="production"!==process.env.NODE_ENV?{nodeRef:Wr.shape({current:"undefined"==typeof Element?Wr.any:function(e,t,n,r,o,i){var s=e[t];return Wr.instanceOf(s&&"ownerDocument"in s?s.ownerDocument.defaultView.Element:Element)(e,t,n,r,o,i)}}),children:Wr.oneOfType([Wr.func.isRequired,Wr.element.isRequired]).isRequired,in:Wr.bool,mountOnEnter:Wr.bool,unmountOnExit:Wr.bool,appear:Wr.bool,enter:Wr.bool,exit:Wr.bool,timeout:function(e){var t=qr;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:Wr.func,onEnter:Wr.func,onEntering:Wr.func,onEntered:Wr.func,onExit:Wr.func,onExiting:Wr.func,onExited:Wr.func}:{},eo.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:to,onEntering:to,onEntered:to,onExit:to,onExiting:to,onExited:to},eo.UNMOUNTED=Yr,eo.EXITED=Kr,eo.ENTERING=Qr,eo.ENTERED=Zr,eo.EXITING=Jr;const no="aria-expanded",ro="aria-controls",oo="data-spirit-breakpoint",io=e=>{const{isOpen:t,collapsibleToBreakpoint:n,...r}=e;return pn({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:{[oo]:n},trigger:{[no]:t,[ro]:String(r.id)}},props:r}},so=(e,t,n)=>{const r=on("Collapse"),o=`${r}__content`;return{classProps:{root:g(r,e?b:""),content:o},styleProps:"span"===t?{}:{height:e?n:0}}},ao=250,lo={entering:"is-transitioning",entered:"",exiting:"is-transitioning",exited:""},co={elementType:"div",isOpen:!1,collapsibleToBreakpoint:void 0,transitionDuration:ao},po=e=>{const n={...co,...e},{elementType:r=co.elementType,children:o,transitionDuration:i=ao,...s}=n,a=t.useRef(null),l=t.useRef(null),c=(e=>{const[n,r]=t.useState(void 0);return Rn({ref:e,onResize:e=>{const t=e.height;r(`${t}px`)}}),n})(l),{classProps:p,styleProps:u}=so(s.isOpen,r,c),{ariaProps:d,props:m}=io(s),{styleProps:f,props:h}=Yt(m),g={className:f.className,style:{...u,...f.style}};return"span"===r&&s.isOpen?o:or.jsx(eo,{in:s.isOpen,nodeRef:a,timeout:i,children:e=>or.jsx(r,{...h,...d.root,...Rt(r,{classProps:p.root,styleProps:f,collapseStyleProps:g,transitioningStyles:lo[e]}),ref:a,children:or.jsx(r,{ref:l,className:p.content,children:o})})})};po.spiritComponent="Collapse";const uo=e=>{const[n,r]=t.useState(e);return{toggleHandler:e=>{e.preventDefault(),r(!n)},toggle:r,isOpen:n}},mo={isOpen:!1},fo=e=>{const t={...mo,...e},{children:n,hideOnCollapse:r,isDisposable:o,renderTrigger:i,...s}=t,{isOpen:a,toggleHandler:l}=uo(s.isOpen),{ariaProps:c}=io({...s,isOpen:a}),p=r||o;return or.jsxs(or.Fragment,{children:[!i||p&&p&&a?null:i({isOpen:a,onClick:l,...c.trigger}),p&&a?n:or.jsx(po,{...s,isOpen:a,children:n})]})};fo.spiritComponent="UncontrolledCollapse";const ho=({children:e,...t})=>{const{classProps:n}=Gn(),{id:r}=lr(),{styleProps:o,props:i}=Yt(t),{isOpen:s}=Kn(r),{contentProps:a}=p({id:r,isOpen:s});return or.jsx(po,{isOpen:s,...a,children:or.jsx("div",{...i,...o,className:g(n.content,o.className),children:e})})};ho.spiritComponent="AccordionContent";const go=e=>{const{defaultOpen:t,stayOpen:n,...r}=e,{open:o,toggle:i}=s({defaultOpen:t,stayOpen:n});return or.jsx(ir,{...r,open:o,toggle:i})};function yo(e){const{alignmentX:t,alignmentY:n,direction:r,spacing:o,spacingX:i,spacingY:s,isWrapping:a,...l}=e;pn({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=on("Flex"),p={...Fn(o,"flex",J.X),...Fn(o,"flex",J.Y),...Fn(i,"flex",J.X),...Fn(s,"flex",J.Y)},u=zt(c,Ft(r));return{classProps:g(c,Wn(c,a),{[Kt(c,t,"alignmentX")]:t,[Kt(c,n,"alignmentY")]:n,[u]:r}),props:l,styleProps:p}}go.spiritComponent="UncontrolledAccordion",go.displayName="UncontrolledAccordion";const vo={alignmentX:R.STRETCH,alignmentY:$.STRETCH,direction:Z.HORIZONTAL,elementType:"div",isWrapping:!1},bo=t.forwardRef(((e,t)=>{const n={...vo,...e},{elementType:r=vo.elementType,direction:o,children:i,...s}=n,a=r,{classProps:l,props:c,styleProps:p}=yo({direction:o,...s}),{styleProps:u,props:d}=Yt({...c}),m=Rt(a,{classProps:l,flexStyle:p,styleProps:u,otherProps:d});return or.jsx(a,{...d,...m,ref:t,children:i})}));bo.spiritComponent="Flex",bo.displayName="Flex";const xo={alignmentX:{mobile:R.STRETCH,tablet:R.LEFT},direction:{mobile:Z.VERTICAL,tablet:Z.HORIZONTAL}},To=e=>{const{children:t,...n}=e,r={...xo,...n};return or.jsx(bo,{...r,children:t})};function Po(e){const{color:t,isCentered:n,...r}=e,o=on("Alert"),i=`${o}--${t}`,s=`${o}--center`;return{classProps:g(o,{[i]:t,[s]:n}),props:r}}To.spiritComponent="ActionGroup";const So={color:"success",isCentered:!1,elementType:"div"},Eo=t.forwardRef(((e,t)=>{const n={...So,...e},{elementType:r,children:o,color:i,iconName:s,...a}=n,l=r,{classProps:c,props:p}=Po({color:i,...a}),{styleProps:u,props:d}=Yt(p),m=Rt(l,{classProps:c,styleProps:u,otherProps:d}),f=function({color:e,iconName:t}){const n=Tn(e,{default:"info",success:"check-plain",informative:"info",warning:"warning",danger:"danger"});return t||n}({color:i,iconName:s,...d});return or.jsxs(l,{...d,...m,ref:t,children:[or.jsx(mr,{name:f}),or.jsx("div",{children:o})]})}));Eo.spiritComponent="Alert",Eo.displayName="Alert";const Co=e=>{const{isSquare:t,size:n,...r}=e,o=on("Avatar"),i=`${o}--square`,s=Ot(o,n);return{classProps:g(o,...s,{[i]:t}),props:r}},wo={elementType:"div",isSquare:!1,size:W.MEDIUM},No=t.forwardRef(((e,t)=>{const n={...wo,...e},{elementType:r=wo.elementType,children:o,...i}=n,s=r,{classProps:a,props:l}=Co(i),{styleProps:c,props:p}=Yt(l),u=Rt(s,{classProps:a,styleProps:c});return or.jsx(s,{...p,...u,ref:t,children:o})}));No.spiritComponent="Avatar",No.displayName="Avatar";const _o=e=>{const{backgroundColor:t,borderColor:n,borderStyle:r,borderWidth:o,textColor:i,...s}=e||{},a=on(`bg-${t}`),l=on("border-"),c=t?a:"";let p=n?n.replace("",l):"",u="";const d=o?o.replace("",l):"",m=on(i?`text-${i}`:"");o&&parseInt(o,10)>0&&(u=`${l}${r}`,n||(p=`${l}${O.BASIC}`));return{classProps:g(c,p,u,d,{[m]:!!i}),props:s}},Ao={elementType:"div",borderStyle:D.SOLID},Ro=t.forwardRef(((e,t)=>{const n={...Ao,...e},{elementType:r=Ao.elementType,children:o,...i}=n,s=r,{classProps:a,props:l}=_o(i),{styleProps:c,props:p}=Yt(l,{...se,...ae,...ce}),u=Rt(s,{classProps:a,styleProps:c});return or.jsx(s,{...p,...u,ref:t,children:o})}));function ko(e){const{color:t,hasVisitedStyleAllowed:n,isDisabled:r,underlined:o,...i}=e,s=on("link"),a=`${s}-disabled`,l=`${s}-underlined`,c=`${s}-not-underlined`,p=`${s}-allow-visited-style`;return{classProps:g(`${s}-${t}`,{[a]:r,[l]:o===Te.ALWAYS,[c]:o===Te.NEVER,[p]:n}),props:i}}Ro.spiritComponent="Box",Ro.displayName="Box";const $o={elementType:"a",color:"primary",hasVisitedStyleAllowed:!1,underlined:"hover"},Oo=t.forwardRef(((e,t)=>{const n={...$o,...e},{elementType:r=$o.elementType,children:o,routerOptions:i,...s}=n,a=r,{classProps:l,props:c}=ko(s),{styleProps:p,props:u}=Yt(c),d=Rt(a,{classProps:l,styleProps:p,otherProps:u}),m=Nn({...s,routerOptions:i});return or.jsx(a,{...u,...d,onClick:m,ref:t,children:o})}));Oo.spiritComponent="Link",Oo.displayName="Link";function jo(e){const{isGoBackOnly:t,...n}=e,r=on("Breadcrumbs"),o=on("d-none"),i=on("d-tablet-flex"),s=on("d-tablet-none");return{classProps:{root:r,item:g({[o]:!t,[i]:!t,[s]:t})},props:n}}const Do={iconNameEnd:"chevron-right",iconNameStart:"chevron-left",isCurrent:!1,isGoBackOnly:!1},Lo=e=>{const t={...Do,...e},{children:n,href:r,isCurrent:o,iconNameStart:i,iconNameEnd:s,...a}=t,{classProps:l,props:c}=jo({...a}),{styleProps:p,props:u}=Yt(c);return or.jsxs("li",{...u,...p,className:g(l.item,p.className),children:[a.isGoBackOnly&&i&&or.jsx(mr,{name:i}),!r&&o?n:or.jsx(Oo,{href:r,color:o?"secondary":"primary",underlined:o?"hover":"always","aria-current":o?"page":void 0,children:n}),!o&&!a.isGoBackOnly&&s&&or.jsx(mr,{name:s})]})};Lo.spiritComponent="BreadcrumbsItem";const Io={elementType:"nav",items:[]},Mo=e=>{const n={...Io,...e},{children:r,elementType:o="nav",goBackTitle:i,items:s,...a}=n,{classProps:l,props:c}=jo({...a}),{styleProps:p,props:u}=Yt(c),d=Rt(o,{classProps:l.root,styleProps:p}),m=(e,t)=>e===t-1;return or.jsx(o,{...u,...d,"aria-label":"Breadcrumb",children:or.jsx("ol",{children:r||s?.map(((e,n)=>or.jsxs(t.Fragment,{children:[n===s.length-2&&i&&or.jsx(Lo,{href:e.url||void 0,isGoBackOnly:!0,children:i}),or.jsx(Lo,{href:e.url||void 0,isCurrent:m(n,s?.length),children:e.title})]},`BreadcrumbsItem_${e.title}`)))})})};Mo.spiritComponent="Breadcrumbs";const Fo=e=>{const{isDisabled:t,isLoading:n,onClick:r,type:o="button"}=e;return{buttonProps:{...{type:o,disabled:t||n},onClick:sn(t,r)}}};function Bo(e){const{color:t,isBlock:n,isDisabled:r,isLoading:o,isSymmetrical:i,size:s,...a}=e;pn({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=on("Button"),c=`${l}--block`,p=`${l}--disabled`,u=`${l}--loading`,{isSymmetricalActive:d,symmetricalClassName:m}=Un(l,i);n&&d&&v(0,"isBlock and isSymmetrical props are mutually exclusive");const f=g(l,((e,t)=>Ie(je(t))(e))(l,t),((e,t)=>Ie(De(t))(e))(l,s),{[c]:n&&!d,[p]:r||o,[u]:o},m);return{classProps:f,props:a}}const Uo=t.createContext(null),Ho=({value:e,children:n})=>{const r=t.useContext(Uo),o=r?{...r,...e}:e;return t.createElement(Uo.Provider,{value:o},n)},zo=Uo.Consumer,Vo=(e={})=>{const n=t.useContext(Uo);return n?{...e,...n}:e};function Wo(e){const{color:t,...n}=e,r=on("text"),o=t?`${r}-${t}`:"",i=on("animation-spin-clockwise");return{classProps:g(o,i),props:n}}const Go=e=>{const{classProps:t,props:n}=Wo(e),{styleProps:r,props:o}=Yt(n);return or.jsx(mr,{...o,name:"spinner",UNSAFE_className:g(t,r.className),UNSAFE_style:r.style})};Go.spiritComponent="Spinner";const qo={color:"primary",isBlock:!1,isDisabled:!1,isLoading:!1,isSymmetrical:!1,size:"medium",type:"button",elementType:"button"},Xo=t.forwardRef(((e,t)=>{const{elementType:n}=e,r=Vo(e),{elementType:o,children:i,...s}=r,a=n??o??qo.elementType,l={...qo,...s},{elementType:c,...p}=l,u=a,{buttonProps:d}=Fo(p),{classProps:m,props:f}=Bo(p),{styleProps:h,props:g}=Yt(f),y=Rt(u,{classProps:m,styleProps:h,otherProps:g});return or.jsxs(u,{...g,...d,ref:t,...y,children:[i,p.isLoading&&or.jsx(Go,{})]})}));Xo.spiritComponent="Button",Xo.displayName="Button";const Yo=e=>{const{elementType:t,isDisabled:n,isLoading:r,onClick:o,href:i,target:s,rel:a}=e;return{buttonLinkProps:{...{role:"button",href:"a"===t&&n?void 0:i,target:"a"===t?s:void 0,disabled:n||r,rel:"a"===t?a:void 0},onClick:sn(n,o)}}};function Ko(e){const{color:t,isBlock:n,isDisabled:r,isLoading:o,isSymmetrical:i,size:s,...a}=e;pn({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=on("Button"),c=`${l}--block`,p=`${l}--disabled`,u=`${l}--loading`,{isSymmetricalActive:d,symmetricalClassName:m}=Un(l,i);n&&d&&v(0,"isBlock and isSymmetrical props are mutually exclusive");const f=g(l,((e,t)=>Ie(je(t))(e))(l,t),((e,t)=>Ie(De(t))(e))(l,s),{[c]:n&&!d,[p]:r||o,[u]:o},m);return{classProps:f,props:a}}const Qo={color:"primary",elementType:"a",isBlock:!1,isDisabled:!1,isLoading:!1,isSymmetrical:!1,size:"medium"},Zo=t.forwardRef(((e,t)=>{const n={...Qo,...e},{elementType:r=Qo.elementType,children:o,routerOptions:i,...s}=n,a=r,{buttonLinkProps:l}=Yo(n),{classProps:c,props:p}=Ko(s),{styleProps:u,props:d}=Yt(p),m=Rt(a,{classProps:c,styleProps:u,otherProps:d}),f=Nn({...s,routerOptions:i,onClick:l.onClick});return or.jsxs(a,{...d,...l,...m,onClick:f,ref:t,children:[o,s.isLoading&&or.jsx(Go,{})]})}));function Jo(e){const{alignmentY:t,artworkAlignmentX:n,direction:r,footerAlignmentX:o,hasFilledHeight:i,isBoxed:s,isExpanded:a,isHeading:l,isSelectable:c,size:p}=e||{},u=on("Card"),d=`${u}Artwork`,m=`${u}Body`,f=`${u}Eyebrow`,h=`${u}Footer`,y=`${u}Link`,v=`${u}Logo`,b=`${u}Media`,x=`${u}Title`,T=`${m}--selectable`,P=zt(u,Ft(r)),S=`${u}--boxed`,E=`${b}__canvas`,C=`${b}--filledHeight`,w=`${b}--expanded`,N=p?`${b}--${p}`:"",_=`${x}--heading`;return{classProps:{artwork:g(d,{[Kt(d,n,"alignmentX")]:n}),body:g(m,{[T]:c}),eyebrow:f,footer:g(h,{[Kt(h,o,"alignmentX")]:o}),link:y,logo:v,media:g(b,N,{[w]:a,[C]:i}),mediaCanvas:E,root:g(u,{[Kt(u,t,"alignmentY")]:t,[P]:r,[S]:s}),title:g(x,{[_]:l})}}}Zo.spiritComponent="ButtonLink",Zo.displayName="ButtonLink";const ei={direction:Z.VERTICAL,elementType:"article",isBoxed:!1},ti=e=>{const t={...ei,...e},{elementType:n="article",alignmentY:r,direction:o,isBoxed:i,children:s,...a}=t,{classProps:l}=Jo({alignmentY:r,direction:o,isBoxed:i}),{styleProps:c,props:p}=Yt(a),u=Rt(n,{classProps:l.root,styleProps:c,otherProps:p});return or.jsx(n,{...p,...u,children:s})};ti.spiritComponent="Card";const ni={alignmentX:A.LEFT},ri=e=>{const t={...ni,...e},{children:n,alignmentX:r,...o}=t,{classProps:i}=Jo({artworkAlignmentX:r}),{styleProps:s,props:a}=Yt(o);return or.jsx("div",{...a,className:g(i.artwork,s.className),style:s.style,children:n})};ri.spiritComponent="CardArtwork";const oi={isSelectable:!1},ii=e=>{const t={...oi,...e},{children:n,isSelectable:r,...o}=t,{classProps:i}=Jo({isSelectable:r}),{styleProps:s,props:a}=Yt(o);return or.jsx("div",{...a,className:g(i.body,s.className),style:s.style,children:n})};ii.spiritComponent="CardBody";const si=e=>{const{children:t,...n}=e,{classProps:r}=Jo(),{styleProps:o,props:i}=Yt(n);return or.jsx("div",{...i,className:g(r.eyebrow,o.className),style:o.style,children:t})};si.spiritComponent="CardEyebrow";const ai={alignmentX:A.LEFT},li=e=>{const t={...ai,...e},{children:n,alignmentX:r,...o}=t,{classProps:i}=Jo({footerAlignmentX:r}),{styleProps:s,props:a}=Yt(o);return or.jsx("footer",{...a,className:g(i.footer,s.className),style:s.style,children:n})};li.spiritComponent="CardFooter";const ci={elementType:"a"},pi=t.forwardRef(((e,t)=>{const n={...ci,...e},{elementType:r,children:o,href:i,...s}=n,a=r,{classProps:l}=Jo(),{styleProps:c,props:p}=Yt(s),u=Rt(a,{classProps:l.link,styleProps:c,otherProps:p});return or.jsx(a,{...p,...c,...u,href:i,ref:t,children:o})}));pi.spiritComponent="CardLink",pi.displayName="CardLink";const ui=e=>{const{children:t,...n}=e,{classProps:r}=Jo(),{styleProps:o,props:i}=Yt(n);return or.jsx("div",{...i,className:g(r.logo,o.className),style:{...o.style},children:t})};ui.spiritComponent="CardLogo";const di={fit:ne.COVER,hasFilledHeight:!1,isExpanded:!1,size:ye.AUTO},mi=e=>{const t={...di,...e},{backgroundColor:n,children:r,fit:o,hasFilledHeight:i,isExpanded:s,size:a,...l}=t,{classProps:c}=Jo({size:a,isExpanded:s,hasFilledHeight:i}),{classProps:p,styleProps:u}=(e=>{const{backgroundColor:t,fit:n}=e||{},r=on(`bg-${t}`);return{classProps:t?r:"",styleProps:n?{[`--${P}card-media-object-fit`]:n}:{}}})({backgroundColor:n,fit:o}),{styleProps:d,props:m}=Yt(l,{...se}),f=Rt("div",{classProps:g(c.media,p,d.className),styleProps:{...u,...d}});return or.jsx("div",{...m,...f,children:or.jsx("div",{className:c.mediaCanvas,children:r})})};mi.spiritComponent="CardMedia";const fi={elementType:"h4",isHeading:!0},hi=e=>{const t={...fi,...e},{elementType:n="h4",children:r,isHeading:o,...i}=t,{classProps:s}=Jo({isHeading:o}),{styleProps:a,props:l}=Yt(i),c=Rt(n,{classProps:s.title,styleProps:a,otherProps:l});return or.jsx(n,{...l,...c,children:r})};hi.spiritComponent="CardTitle";const gi=e=>{const{children:t,elementType:n="span",...r}=e,{classProps:o,props:i}=function(e){const{...t}=e;return{classProps:on("accessibility-hidden"),props:t}}(r),{styleProps:s,props:a}=Yt(i),l=Rt(n,{classProps:o,styleProps:s,otherProps:a});return or.jsx(n,{...a,...l,children:t})};gi.spiritComponent="VisuallyHidden";const yi=mn.textArea.counter,vi=e=>{const{value:n,defaultValue:r,counterThreshold:o,hasCounter:i,onChange:s}=e,a=void 0!==n;ln({componentName:"useCharacterCounterState",value:n,defaultValue:r});const[l,c]=t.useState((()=>a?n.length:r?.length??0)),p=a?n.length:l,u=!0===i||void 0!==o,d=t.useCallback((e=>{!a&&u&&c(e.target.value.length),s?.(e)}),[a,u,s]);return{counterProps:u?{counterThreshold:o,currentLength:p,hasCounter:i}:void 0,handleChange:d}},bi=e=>{const{counterThreshold:n,currentLength:r,hasCounter:o,id:i,registerAria:s,...a}=e,{styleProps:l,props:c}=Yt(a),p=!0===o||void 0!==n,u=`${i}__counterScreenReaderMessage`,d=((e,t)=>void 0!==t?`${e}/${t}`:String(e))(r,n),m=((e,t)=>{if(void 0===t)return fn(yi.charactersEntered,{count:e});if(0===e)return fn(yi.canEnterUpTo,{maxLength:t});if(e>t){const n=e-t,r=1===n?yi.characterOverLimit:yi.charactersOverLimit;return fn(r,{count:n})}const n=t-e,r=1===n?yi.characterRemaining:yi.charactersRemaining;return fn(r,{count:n})})(r,n),f=cn(m,500);return t.useEffect((()=>{if(p)return s({add:u}),()=>{s({remove:u})}}),[p,u,s]),{debouncedScreenReaderMessage:f,isVisible:p,screenReaderMessageId:u,styleProps:l,transferProps:c,visibleCounterText:d}},xi=e=>{const{debouncedScreenReaderMessage:t,isVisible:n,screenReaderMessageId:r,styleProps:o,transferProps:i,visibleCounterText:s}=bi(e);return n?or.jsxs(or.Fragment,{children:[or.jsx("div",{...i,...o,"aria-hidden":"true",children:s}),or.jsx(gi,{id:r,"aria-live":"polite","aria-atomic":"true",children:t})]}):null};xi.spiritComponent="CharacterCounter";const Ti={elementType:"div",id:void 0,registerAria:void 0},Pi=e=>{const n={...Ti,...e},{helperText:r,elementType:o=Ti.elementType,id:i,registerAria:s,...a}=n,{styleProps:l,props:c}=Yt(a),p=Rt(o,{styleProps:l,transferProps:c});return t.useEffect((()=>(r&&s?.({add:i}),()=>{s?.({remove:i})})),[r,i,s]),r?or.jsx(o,{...c,...p,id:i,children:r}):null};Pi.spiritComponent="HelperText";const Si=e=>{const{elementType:t="label",children:n,htmlFor:r,for:o,...i}=e,{styleProps:s,props:a}=Yt(i),l=Rt(t,{styleProps:s,otherProps:a});return or.jsx(t,{...a,...l,htmlFor:"label"===t?o||r:void 0,children:n})};Si.spiritComponent="Label";const Ei={elementType:"div",id:void 0,registerAria:void 0,role:void 0},Ci=e=>{const n={...Ei,...e},{elementType:r=Ei.elementType,id:o,hasValidationStateIcon:i,registerAria:s,role:a,validationText:l,...c}=n,p=function({hasValidationStateIcon:e}){return Tn(e,{success:"check-plain",warning:"warning",danger:"danger"})}({hasValidationStateIcon:i}),{styleProps:u,props:d}=Yt(c),m=Rt(r,{styleProps:u,transferProps:d});if(t.useEffect((()=>(l&&s?.({add:o}),()=>{s?.({remove:o})})),[o,s,l]),!l)return null;const f=i?or.jsx("div",{children:l}):l;return or.jsxs(r,{...d,...m,id:o,role:a,children:[i&&or.jsx(mr,{name:p,boxSize:20}),Array.isArray(l)?or.jsx("ul",{children:l.map((e=>or.jsx("li",{children:e},`validationText_${e}`)))}):f]})};Ci.spiritComponent="ValidationText";const wi=({validationState:e,validationText:n})=>{const[r,o]=t.useState(),i=t.useRef(n),s=t.useRef(e);return t.useEffect((()=>{i.current===n&&s.current===e||o("alert"),i.current=n,s.current=e}),[n,e]),r};function Ni(e){return{classProps:on("InputDetails"),props:e}}const _i={elementType:"div",id:void 0,registerAriaDetails:void 0},Ai=e=>{const n={..._i,...e},{classProps:r,props:o}=Ni(n),{children:i,elementType:s,id:a,registerAriaDetails:l,...c}=o,{styleProps:p,props:u}=Yt(c),d=s||_i.elementType,m=Rt(d,{classProps:r,styleProps:p,otherProps:u});return t.useEffect((()=>(a&&l?.({add:a}),()=>{a&&l?.({remove:a})})),[a,l]),or.jsx(d,{...u,...m,id:a,children:i})};function Ri(e){const{inputPosition:t=te.START,isItem:n,isLabelHidden:r,validationState:o,...i}=e,{isDisabled:s,isRequired:a}=i,l=on("Checkbox"),c=`${l}--disabled`,p=`${l}--item`,u=`${l}__input`,d=Pn(l,t),m=`${l}__text`,f=`${l}__label`,h=`${l}__label--required`,y=`${l}__label--hidden`,v=`${l}__helperText`,b=`${l}__validationText`,x=`${l}--${o}`;return{classProps:{root:g(l,{[d]:d,[c]:s,[p]:n,[x]:o}),text:m,label:g(f,{[h]:a,[y]:r}),input:u,helperText:v,validationText:b},props:{...i,validationState:o}}}Ai.spiritComponent="InputDetails";const ki=t.forwardRef(((e,t)=>{const{classProps:n,props:r}=Ri(e),{"aria-describedby":o="","aria-details":i,details:s,hasValidationIcon:a,helperText:l,id:c,isChecked:p,isDisabled:u,isRequired:d,label:m,validationState:f,validationText:h,value:y,...v}=r,{styleProps:b,props:x}=Yt(v),[T,P]=Zt(o),[S,E]=Jt(i),C=wi({validationState:f,validationText:h});return or.jsxs("div",{style:b.style,className:g(n.root,b.className),children:[or.jsx("input",{...x,...T,...S,type:"checkbox",id:c,className:n.input,disabled:u,required:d,checked:p,value:y,ref:t}),or.jsxs("div",{className:n.text,children:[or.jsx(Si,{UNSAFE_className:n.label,htmlFor:c,children:m}),s&&or.jsx(Ai,{id:`${c}-details`,registerAriaDetails:E,children:s}),or.jsx(Pi,{UNSAFE_className:n.helperText,id:`${c}__helperText`,registerAria:P,helperText:l}),f&&or.jsx(Ci,{UNSAFE_className:n.validationText,id:`${c}__validationText`,...a&&{hasValidationStateIcon:f},validationText:h,registerAria:P,role:C})]})]})}));function $i(e){const{isFluid:t,size:n,...r}=e,o=on("Container"),i=`${o}--fluid`,s=`${o}--${n}`;return{classProps:g(o,{[i]:t,[s]:!t&&n}),props:r}}ki.spiritComponent="Checkbox",ki.displayName="Checkbox";const Oi={isFluid:!1,size:W.XLARGE},ji=e=>{const t={...Oi,...e},{children:n,...r}=t,{classProps:o,props:i}=$i(r),{styleProps:s,props:a}=Yt(i,{textAlignment:pe.textAlignment});return or.jsx("div",{...a,...s,className:g(o,s.className),children:n})};ji.spiritComponent="Container";const Di=e=>{const{isDisabled:t,onClick:n,type:r="button"}=e;return{controlButtonProps:{...{type:r,disabled:t},onClick:sn(t,n)}}};function Li(e){const{isDisabled:t,isSubtle:n,isSymmetrical:r,size:o,...i}=e,s=on("ControlButton"),a=`${s}--hasBackground`,l=`${s}--disabled`,c=on("dynamic-color-background-interactive"),p=on("dynamic-color-border"),u=on("accessibility-tap-target"),{symmetricalClassName:d}=Un(s,r),m=g(s,((e,t)=>Ie(De(t))(e))(s,o),c,u,{[l]:t,[a]:!n,[p]:!n},d);return{classProps:m,props:i}}const Ii={elementType:"button",isDisabled:!1,isSubtle:!1,isSymmetrical:!1,size:V.MEDIUM,type:"button"},Mi=t.forwardRef(((e,t)=>{const n={...Ii,...e},{elementType:r=Ii.elementType,children:o,...i}=n,s=r,{controlButtonProps:a}=Di(i),{classProps:l,props:c}=Li(i),{styleProps:p,props:u}=Yt(c),d=Rt(s,{classProps:l,styleProps:p,otherProps:u});return or.jsx(s,{...u,...a,ref:t,...d,children:o})}));Mi.spiritComponent="ControlButton",Mi.displayName="ControlButton";const Fi=(e,n)=>{const r=t.useRef(null),o=t.useCallback((()=>{null!==r.current&&(clearTimeout(r.current),r.current=null)}),[]),i=t.useCallback((e=>{o(),r.current=setTimeout((()=>{e.open&&e.close&&e.close()}),300)}),[o]),s=t.useCallback((t=>{const r=e?.current;r&&t.target===r&&!n&&r.open&&r.close&&(o(),r.close())}),[n,e,o]);On(e,n);const a=t.useCallback((t=>{const n=e?.current;n?.classList&&(t?n.classList.add(b):n.classList.remove(b))}),[e]);t.useEffect((()=>{const t=e?.current;return t&&(n?(o(),!t.open&&t.showModal&&(t.showModal(),a(!0))):!n&&t.open&&(a(!1),i(t))),()=>{o()}}),[n,e,a,o,i]);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),i(t))},onTransitionEnd:s}},Bi=t.forwardRef(((e,n)=>{const{children:r,isOpen:o,onClose:i,closeOnBackdropClick:s=!0,closeOnEscapeKeyDown:a,...l}=e,c=t.useRef(n),p=t.useRef(null),{closeDialog:u,onTransitionEnd:d}=Fi(c,o);an({ref:p,callback:o?e=>{s&&e.target===c.current&&(u(),i(e))}:void 0}),rn(c,i,a,o);const m=t.Children.only(r);return or.jsx("dialog",{ref:c,onTransitionEnd:d,...l,children:t.cloneElement(m,{ref:e=>{p.current=e}})})}));function Ui(e){return{classProps:on("Divider"),props:e}}Bi.spiritComponent="Dialog",Bi.displayName="Dialog";const Hi=e=>{const{classProps:t,props:n}=Ui(e),{styleProps:r,props:o}=Yt(n);return or.jsx("hr",{...o,...r,className:g(t,r.className)})};Hi.spiritComponent="Divider";const zi=A.RIGHT,Vi=t.createContext({id:"",isOpen:!1,onClose:()=>null}),Wi=Vi.Provider,Gi=Vi.Consumer,qi=()=>t.useContext(Vi),Xi=(e={})=>{const{drawerAlignmentX:t=zi,isOpen:n=!1}=e,r=on("Drawer"),o=`${r}Panel`,i=`${o}__content`,s=`${r}CloseButton`;return{classProps:{root:g(r,{left:`${r}--left`,right:`${r}--right`}[t],{[b]:n}),panel:o,content:i,closeButton:s}}},Yi=e=>{const{children:t,alignmentX:n=zi,isOpen:r,onClose:o,id:i,...s}=e,{classProps:a}=Xi({drawerAlignmentX:n}),{styleProps:l,props:c}=Yt(s),p={id:i,isOpen:r,onClose:o};return Sn(r),or.jsx(Wi,{value:p,children:or.jsx(Bi,{...c,...l,id:i,isOpen:r,onClose:o,className:g(a.root,l.className),children:t})})};Yi.spiritComponent="Drawer";const Ki={color:M.TERTIARY,iconBoxSize:24,size:V.MEDIUM},Qi=e=>{const t={...Ki,...e},{color:n,iconBoxSize:r,label:o,size:i,...s}=t,{t:a}=gn(),l=o??a("common.close"),{id:c,isOpen:p,onClose:u}=qi(),{classProps:d}=Xi(),{styleProps:m,props:f}=Yt(s);return or.jsxs(Xo,{...f,"aria-expanded":p,"aria-controls":c,onClick:u,color:n,size:i,UNSAFE_className:g(d.closeButton,m.className),UNSAFE_style:m.style,isSymmetrical:!0,children:[or.jsx(mr,{name:"close",boxSize:r}),or.jsx(gi,{children:l})]})};Qi.spiritComponent="DrawerCloseButton";const Zi=t.forwardRef(((e,t)=>{const{elementType:n="div",children:r,...o}=e,i=n,{classProps:s}=Xi(o),{styleProps:a,props:l}=Yt(o),c=Rt(i,{classProps:s.panel,styleProps:a,otherProps:l});return or.jsx(i,{...l,...c,ref:t,children:or.jsx("div",{className:s.content,children:r})})}));Zi.spiritComponent="DrawerPanel",Zi.displayName="DrawerPanel";const Ji="aria-expanded",es="aria-controls",ts="data-spirit-fullwidthmode",ns="data-spirit-placement";var rs=(e=>(e.off="off",e["mobile-only"]="mobile-only",e.all="all",e))(rs||{});const os=e=>{const{fullWidthMode:t,id:n,isOpen:r,placement:o=z.BOTTOM_START,toggleHandler:i}=e,s={[Ji]:r,[es]:String(n),onClick:i};return{contentProps:{id:n,[ts]:t,[ns]:o},triggerProps:s}},is={dropdownRef:{current:null},fullWidthMode:rs.off,id:"",isOpen:!1,onToggle:()=>{},placement:z.BOTTOM_START,triggerRef:{current:void 0}},ss=t.createContext(is),as=ss.Provider;ss.Consumer;const ls=()=>t.useContext(ss),cs=(e={isOpen:!1})=>{const{alignmentX:t,alignmentY:n,isOpen:r,...o}=e,i=on("Dropdown"),s=`${i}Popover`,a=r?"is-expanded":"",l=r?b:"",c=g(i,{[Kt(i,t,"alignmentX")]:t,[Kt(i,n,"alignmentY")]:n}),p=g(s,l);return{classProps:{root:c,trigger:g(a),popover:p},props:o}},ps=e=>{const{children:n,enableAutoClose:r=!0,fullWidthMode:o,id:i,isOpen:s=!1,onAutoClose:a,onToggle:l,placement:c,...p}=e,{classProps:u,props:d}=cs({isOpen:s,...p}),{styleProps:m,props:f}=Yt(d),h=t.useRef(null),y=t.useRef();return an({ref:h,callback:e=>{r&&(y?.current?.contains(e?.target)||(a&&a(e),l&&s&&l()))}}),or.jsx(as,{value:{id:i,isOpen:s,fullWidthMode:o,placement:c,onToggle:l,dropdownRef:h,triggerRef:y},children:or.jsx("div",{ref:h,className:g(u.root,m.className),style:m.style,...f,children:n})})};ps.spiritComponent="Dropdown";const us={elementType:"button"},ds=e=>{const t={...us,...e},{elementType:n="button",children:r,...o}=t,{id:i,isOpen:s,onToggle:a,fullWidthMode:l,triggerRef:c}=ls(),{classProps:p,props:u}=cs({isOpen:s,...o}),{styleProps:d,props:m}=Yt(u),f=Rt(n,{classProps:p.trigger,triggerStyleProps:d}),{triggerProps:h}=os({id:i,isOpen:s,toggleHandler:a,fullWidthMode:l});return or.jsx(n,{...m,...h,...f,ref:c,children:"function"==typeof r?r({isOpen:s}):r})};ds.spiritComponent="DropdownTrigger";const ms=e=>{const{children:t,...n}=e,{id:r,isOpen:o,onToggle:i,fullWidthMode:s,placement:a}=ls(),{classProps:l,props:c}=cs({isOpen:o,...n}),{styleProps:p,props:u}=Yt(c),{contentProps:d}=os({id:r,isOpen:o,toggleHandler:i,placement:a,fullWidthMode:s});return or.jsx("div",{className:g(l.popover,p.className),style:p.style,...d,...u,children:t})};ms.spiritComponent="DropdownPopover";const fs=({dropdownRef:e,triggerRef:n,enableAutoClose:r,onAutoClose:o})=>{const[i,s]=t.useState(!1);return an({ref:e,callback:e=>{r&&(n?.current?.contains(e?.target)||(o&&o(e),s(!1)))}}),{toggleHandler:e=>{e.preventDefault(),s(!i)},isOpen:i}},hs=e=>{const{children:n,enableAutoClose:r=!0,fullWidthMode:o,id:i,onAutoClose:s,placement:a,...l}=e,{classProps:c,props:p}=cs(l),{styleProps:u,props:d}=Yt(p),m=t.useRef(null),f=t.useRef(),{isOpen:h,toggleHandler:y}=fs({dropdownRef:m,triggerRef:f,enableAutoClose:r,onAutoClose:s});return or.jsx(as,{value:{id:i,isOpen:h,fullWidthMode:o,placement:a,onToggle:y,dropdownRef:m,triggerRef:f},children:or.jsx("div",{ref:m,...u,...d,className:g(c.root,u.className),children:n})})};function gs(e){const{hasEndDivider:t,hasIntermediateDividers:n,hasSpacing:r,hasStartDivider:o,spacing:i,...s}=e,a=on("Stack"),l=`${a}--hasEndDivider`,c=`${a}--hasIntermediateDividers`,p=`${a}--hasSpacing`,u=`${a}--hasStartDivider`;return{classProps:{root:g(a,{[l]:t,[c]:n,[p]:r||i,[u]:o}),item:g(`${a}Item`)},props:s,styleProps:Fn(i,"stack")}}hs.spiritComponent="UncontrolledDropdown";const ys=["ul","ol"],vs={elementType:"div",hasSpacing:!1,hasEndDivider:!1,hasIntermediateDividers:!1,hasStartDivider:!1},bs=t.forwardRef(((e,t)=>{const n={...vs,...e},{elementType:r=vs.elementType,children:o,...i}=n,s=r,{classProps:a,props:l,styleProps:c}=gs(i),{styleProps:p,props:u}=Yt(l),d=Rt(s,{classProps:a.root,stackStyle:c,styleProps:p,otherProps:u}),m=ys.includes(r)?"li":void 0;return or.jsx(Ho,{value:{elementType:m},children:or.jsx(s,{...u,...d,ref:t,children:o})})}));bs.spiritComponent="Stack",bs.displayName="Stack";const xs="div",Ts=t.forwardRef(((e,t)=>{const{elementType:n}=e,r=Vo(e),{children:o,elementType:i,...s}=r,a=n??i??xs,{classProps:l,props:c}=gs(s),{styleProps:p,props:u}=Yt(c),d=Rt(a,{classProps:l.item,styleProps:p,otherProps:u});return or.jsx(a,{...u,...d,ref:t,children:or.jsx(Ho,{value:{elementType:void 0},children:o})})}));function Ps(e){const t=on("EmptyState");return{classProps:{root:t,section:`${t}__section`},props:e}}Ts.spiritComponent="StackItem",Ts.displayName="StackItem";const Ss=e=>{const{children:t,...n}=e,{classProps:r,props:o}=Ps(n),{styleProps:i,props:s}=Yt(o);return or.jsx(bs,{...s,UNSAFE_className:g(r.root,i.className),UNSAFE_style:i.style,children:t})};Ss.spiritComponent="EmptyState";const Es=e=>{const{children:t,...n}=e,{classProps:r,props:o}=Ps(n),{styleProps:i,props:s}=Yt(o);return or.jsx(bs,{...s,UNSAFE_className:g(r.section,i.className),UNSAFE_style:i.style,children:t})};Es.spiritComponent="EmptyStateSection";const Cs=e=>{const{"aria-describedby":t="",children:n,helperText:r,hasValidationIcon:o,id:i,isDisabled:s,isFluid:a,isLabelHidden:l,isRequired:c,label:p,validationState:u,validationText:d,...m}=e,{classProps:f}=(({isFluid:e,isRequired:t,validationState:n})=>{const r=on("FieldGroup"),o=`${r}--fluid`,i=`${r}--${n}`,s=`${r}__label`,a=`${s}--required`,l=`${r}__fields`,c=`${r}__validationText`,p=`${r}__helperText`;return{classProps:{root:g(r,{[o]:e,[i]:n}),label:g(s,{[a]:t}),fields:l,validationText:c,helperText:p}}})({isFluid:a,isRequired:c,validationState:u}),{styleProps:h,props:y}=Yt(m),[v,b]=Zt(t),x=wi({validationState:u,validationText:d});return or.jsxs("fieldset",{...y,...h,...v,className:g(f.root,h.className),disabled:s,children:[or.jsx(gi,{elementType:"legend",children:p}),!l&&or.jsx("div",{className:f.label,"aria-hidden":"true",children:p}),or.jsx("div",{className:f.fields,children:n}),or.jsx(Pi,{UNSAFE_className:f.helperText,id:`${i}__helperText`,registerAria:b,helperText:r}),u&&or.jsx(Ci,{UNSAFE_className:f.validationText,...o&&{hasValidationStateIcon:u},id:`${i}__helperText`,validationText:d,registerAria:b,role:x})]})};Cs.spiritComponent="FieldGroup";const ws=1e7,Ns=1,_s="The file size limit has been exceeded",As="This file already exists in the queue",Rs="You have exceeded the number of files allowed in the queue",ks="This file type is not supported",$s="file",Os={TOP:"--file-uploader-attachment-image-top",LEFT:"--file-uploader-attachment-image-left",WIDTH:"--file-uploader-attachment-image-width",HEIGHT:"--file-uploader-attachment-image-height"},js={addToQueue:()=>new Map,clearQueue:()=>null,fileQueue:new Map,onDismiss:()=>new Map,findInQueue:()=>null,updateQueue:()=>new Map,errorMessages:{errorFileDuplicity:"",errorFileNotSupported:"",errorMaxFileSize:"",errorMaxUploadedFiles:""}},Ds=t.createContext(js),Ls=Ds.Provider;Ds.Consumer;const Is=()=>t.useContext(Ds),Ms=e=>{const t=on("FileUploader"),n="has-drag-and-drop",r=`${t}--fluid`,o=`${t}Input`,i=`${o}--disabled`,s=`${o}--${e?.validationState}`,a="is-dragging",l=`${o}__dragAndDropLabel`,c=`${o}__dropZone`,p=`${c}Label`,u=`${o}__helperText`,d="d-none",m=`${o}__input`,f=`${o}__label`,h=`${o}__label--hidden`,y=`${o}__label--required`,v=`${o}__link`,b=`${o}__validationText`,x=`${t}List`,T=`${t}Attachment`,P=`${T}__name`,S=`${T}__action`,E=`${T}__image`,C=`${T}__slot`,{meta:w,imageObjectFit:N}=e||{};let _,A;const R=null!=w&&["x","y","cropWidth","cropHeight","originalWidth","originalHeight"].every((e=>null!=w[e]));if(R){const{x:e,y:t,cropWidth:n,cropHeight:r,originalWidth:o,originalHeight:i}=w,s=54;let a;a=r>n?s/n:s/r;const l=Math.round(e*a),c=Math.round(t*a),p=Math.round(o*a),u=Math.round(i*a);_={[Os.TOP]:`-${c}px`,[Os.LEFT]:`-${l}px`,[Os.WIDTH]:`${p}px`,[Os.HEIGHT]:`${u}px`}}return N&&(A={"--file-uploader-attachment-image-object-fit":N}),{classProps:{root:g(t,{[r]:e?.isFluid}),input:{root:g(o,{[n]:e?.isDragAndDropSupported,[i]:e?.isDisabled||e?.isDisabledByQueueLimitBehavior&&"disable"===e?.queueLimitBehavior,[a]:e?.isDragging,[d]:e?.isDropZoneHidden&&"hide"===e.queueLimitBehavior,[s]:e?.validationState}),label:g(f,{[y]:e?.isRequired,[h]:e?.isLabelHidden}),input:m,dropLabel:l,helper:u,link:g(v,"link-primary","link-underlined"),validationText:b,dropZone:{root:c,label:p}},list:x,attachment:{root:T,button:S,name:P,image:E,slot:C},...R&&{imageCropStyles:_},...N&&{attachmentStyles:A}}}},Fs=e=>{const{addToQueue:t,children:n,clearQueue:r,errorMessages:o,fileQueue:i,findInQueue:s,id:a,isFluid:l,onDismiss:c,updateQueue:p,...u}=e,{classProps:d}=Ms({isFluid:l}),{styleProps:m,props:f}=Yt(u),h={addToQueue:t,clearQueue:r,fileQueue:i,onDismiss:c,findInQueue:s,updateQueue:p,errorMessages:{errorFileDuplicity:As,errorFileNotSupported:ks,errorMaxFileSize:_s,errorMaxUploadedFiles:Rs,...o}};return or.jsx(Ls,{value:h,children:or.jsx("div",{id:a,...f,...m,className:g(d.root,m.className),children:n})})};Fs.spiritComponent="FileUploader";const Bs=e=>{const{maxFileSize:n,maxUploadedFiles:r,queueLimitBehavior:o,isMultiple:i,onError:s,accept:a}=e,[l,c]=t.useState(!1),[p,u]=t.useState(!1),{fileQueue:d,addToQueue:m,clearQueue:f,errorMessages:h}=Is(),g=e=>`file__${e.replace(/\./g,"_").replace(/\s/g,"_")}`,y=e=>{try{i||f(),(e=>{if(i&&d.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))),i=e.filter((e=>e.match(/\//g)));o.forEach((e=>{const n=e.replace(".","").replace("*","");t.match(n)&&(r=!0)})),i.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(d.size>=r)throw new Error(h?.errorMaxUploadedFiles)})(),(()=>{if(r>1&&!i)throw new Error("`isMultiple` props must be set when maxUploadedFiles is greater than `1`")})(),m(g(e.name),e)}catch(e){s?s(e):v(0,e)}};t.useEffect((()=>{var e;e=d,o&&("hide"===o?u(e?.size>=r):c(e?.size>=r))}),[d]);return{isDropZoneHidden:p,isDisabledByQueueLimitBehavior:l,onChange:e=>{const{files:t}=e.target,n=Array.prototype.slice.call(t);let o,i=0;i+=d.size,n.forEach((e=>{i<r?(y(e),i+=1):o=!0})),o&&s&&h?.errorMaxUploadedFiles&&s(new Error(h?.errorMaxUploadedFiles)),e.target.blur(),e.target.value=""},...dn({onDrop:e=>{const t=Array.from(e.dataTransfer.items),n=Array.from(e.dataTransfer.files);let o,i=0;i+=d.size,e.dataTransfer.items?t.forEach((e=>{if("file"===e.kind){const t=e.getAsFile();t&&i<r?(y(t),i+=1):o=!0}})):n.forEach((e=>{i<r?(y(e),i+=1):o=!0})),o&&s&&h?.errorMaxUploadedFiles&&s(new Error(h?.errorMaxUploadedFiles))}})}},Us=e=>{const[n,r]=t.useState(!1),{accept:o,"aria-describedby":i="",dropZoneRef:s,hasValidationIcon:a,helperText:l,iconName:c="upload",id:p,inputRef:u,isDisabled:d,isLabelHidden:m,isMultiple:f,isRequired:h,label:y,labelText:v,linkText:b,maxFileSize:x=ws,maxUploadedFiles:T=Ns,name:P,onError:S,queueLimitBehavior:E="none",validationState:C,validationText:w,...N}=e,{isDisabledByQueueLimitBehavior:_,isDragging:A,isDropZoneHidden:R,onChange:k,onDragEnter:$,onDragLeave:O,onDragOver:j,onDrop:D}=Bs({accept:o,isMultiple:f,maxFileSize:x,maxUploadedFiles:T,onError:S,queueLimitBehavior:E}),{classProps:L}=Ms({isDisabled:d,isDisabledByQueueLimitBehavior:_,isDragAndDropSupported:n,isDragging:A,isDropZoneHidden:R,isLabelHidden:m,isRequired:h,queueLimitBehavior:E,validationState:C}),{styleProps:I,props:M}=Yt(N),[F,B]=Zt(i),U=wi({validationState:C,validationText:w});return t.useEffect((()=>{r("draggable"in document.createElement("span"))}),[]),or.jsxs("div",{...M,...I,onDragOver:!d&&n?j:void 0,onDragEnter:!d&&n?$:void 0,onDragLeave:!d&&n?O:void 0,onDrop:!d&&n?D:void 0,className:g(L.input.root,I.className),children:[or.jsx(Si,{htmlFor:p,UNSAFE_className:L.input.label,children:y}),or.jsx("input",{...F,type:"file",accept:o,id:p,ref:u,name:P,className:L.input.input,onChange:k,multiple:f,disabled:d||_,...N}),or.jsxs("div",{ref:s,className:L.input.dropZone.root,children:[or.jsx(mr,{name:c,"aria-hidden":"true"}),or.jsxs(Si,{htmlFor:p,UNSAFE_className:L.input.dropZone.label,children:[or.jsx("span",{className:L.input.link,children:b})," ",or.jsx("span",{className:L.input.dropLabel,children:v})]}),or.jsx(Pi,{UNSAFE_className:L.input.helper,id:`${p}__helperText`,registerAria:B,helperText:l})]}),C&&or.jsx(Ci,{UNSAFE_className:L.input.validationText,elementType:"span",...a&&{hasValidationStateIcon:C},id:`${p}__validationText`,validationText:w,registerAria:B,role:U})]})};Us.spiritComponent="FileUploaderInput";const Hs=e=>{const{t:n}=gn(),{label:r,id:o,attachmentComponent:i,inputName:s,hasImagePreview:a,...l}=e,c=r??n("fileUploader.attachments"),{classProps:p}=Ms(),{styleProps:u,props:d}=Yt(l),{fileQueue:m,onDismiss:f}=Is(),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})=>i&&i({id:e,label:t.name,name:s,file:t,meta:n,onDismiss:f,hasImagePreview:a})))),[i,m,s,f,a]);return or.jsxs(or.Fragment,{children:[or.jsx("h3",{id:o,hidden:!0,children:c}),or.jsx("ul",{"aria-labelledby":o,...d,...u,className:g(p.list,u.className),children:h})]})};Hs.spiritComponent="FileUploaderList";const zs=e=>{const{name:t="edit",children:n,...r}=e,{classProps:o}=Ms(),{styleProps:i,props:s}=Yt(r);return or.jsxs("button",{type:"button",...s,...i,className:g(o.attachment.button,i.className),children:[or.jsx(gi,{children:n}),or.jsx(mr,{name:t,"aria-hidden":"true"})]})};zs.spiritComponent="AttachmentActionButton";const Vs=e=>{const{children:t,...n}=e,{classProps:r}=Ms(),{styleProps:o,props:i}=Yt(n);return or.jsxs("button",{type:"button",...i,...o,className:g(r.attachment.button,o.className),children:[or.jsx(gi,{children:t}),or.jsx(mr,{name:"close","aria-hidden":"true"})]})};Vs.spiritComponent="AttachmentDismissButton";const Ws={meta:void 0,imageObjectFit:"cover"},Gs=e=>{const t={...Ws,...e},{label:n,imagePreview:r,meta:o,imageObjectFit:i}=t,{classProps:s}=Ms({meta:o,imageObjectFit:i}),{imageCropStyles:a,attachmentStyles:l}=s;return or.jsx("span",{className:s.attachment.image,children:or.jsx("img",{src:r,width:54,height:54,alt:n,style:{...a,...l}})})};Gs.spiritComponent="AttachmentImagePreview";const qs=(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"):v(0,"File not found")},Xs=(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},Ys=(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 i=e.toDataURL("image/jpeg",.8);n(i)},e.target&&e.target.result&&(r.src=e.target.result.toString())},r.readAsDataURL(e)},Ks=({attachmentRef:e,file:t,name:n,meta:r,onError:o})=>{en((()=>{(r=>{e.current?.querySelectorAll("input").forEach((e=>e.remove()));const i=qs(t,n,o);if(i&&e.current?.appendChild(i),r){const t=Xs(0,n,r);e.current?.appendChild(t)}})(r)}),[e,t,n,r,o])},Qs=e=>{const{t:n}=gn(),{editText:r,file:o,hasImagePreview:i,iconName:s=$s,id:a,imageObjectFit:l,label:c,meta:p,name:u,onDismiss:d,onEdit:m,onError:f,removeText:h,...y}=e,v=r??n("fileUploader.edit"),b=h??n("fileUploader.remove"),[x,T]=t.useState(""),{classProps:P}=Ms(),{styleProps:S,props:E}=Yt(y),C=o.type.includes("image"),w=t.useRef();return C&&Ys(o,500,(e=>T(e))),Ks({attachmentRef:w,file:o,name:u,meta:p,onError:f}),or.jsxs("li",{id:a,ref:w,...E,...S,className:g(P.attachment.root,S.className),children:[i&&x?or.jsx(Gs,{label:c,imagePreview:x,meta:p,imageObjectFit:l}):or.jsx(mr,{name:s,"aria-hidden":"true"}),or.jsx("span",{className:P.attachment.name,children:or.jsx("span",{className:on("text-truncate"),children:c})}),m&&or.jsx("span",{className:P.attachment.slot,children:or.jsx(zs,{onClick:e=>m&&m(e,o),children:v})}),or.jsx(Vs,{onClick:()=>{d&&d(a)},children:b})]})};Qs.spiritComponent="FileUploaderAttachment";const Zs=()=>{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),i={file:r};return null!=o&&(i.meta=o),n.set(t,i),n})),e)}},Js=e=>{const{attachmentComponent:n,maxFileSize:r,maxUploadedFiles:o,helperText:i,iconName:s,inputId:a,inputLabel:l,inputName:c,inputProps:p,isLabelHidden:u,isDisabled:d,isFluid:m,queueLimitBehavior:f,isMultiple:h,isRequired:g,labelText:y,linkText:v,listId:b,listProps:x,onInputError:T,onChange:P,errorMessages:S,validationState:E,validationText:C,...w}=e,{fileQueue:N,addToQueue:_,clearQueue:A,onDismiss:R,findInQueue:k,updateQueue:$}=Zs();return t.useEffect((()=>{P&&P(N)}),[N]),or.jsxs(Fs,{fileQueue:N,onDismiss:R,addToQueue:_,clearQueue:A,findInQueue:k,updateQueue:$,errorMessages:S,isFluid:m,...w,children:[or.jsx(Us,{maxFileSize:r,maxUploadedFiles:o,helperText:i,iconName:s,id:a,isLabelHidden:u,isDisabled:d,queueLimitBehavior:f,isMultiple:h,isRequired:g,label:l,labelText:y,linkText:v,name:c,onError:T,validationState:E,validationText:C,...p}),or.jsx(Hs,{id:b,inputName:c,attachmentComponent:n,...x})]})};Js.spiritComponent="UncontrolledFileUploader";const ea={backgroundColor:I.SECONDARY,elementType:"footer",paddingBottom:"space-1200",paddingTop:"space-1400"},ta=t.forwardRef(((e,t)=>{const n={...ea,...e},{elementType:r=ea.elementType,children:o,backgroundColor:i,...s}=n,a=r,{classProps:l}=(e=>{const{backgroundColor:t}=e,n=on(`bg-${t}`),r=t?n:"";return{classProps:g({[r]:t})}})({backgroundColor:i}),{styleProps:c,props:p}=Yt(s,{paddingBottom:ce.paddingBottom,paddingTop:ce.paddingTop,textAlignment:pe.textAlignment}),u=Rt(a,{classProps:l,styleProps:c,otherProps:p});return or.jsx(a,{...p,...u,ref:t,children:o})}));function na(e){const{alignmentX:t,alignmentY:n,cols:r,spacing:o,spacingX:i,spacingY:s,...a}=e,l=on("Grid"),c={...Fn(o,"grid",J.X),...Fn(o,"grid",J.Y),...Fn(i,"grid",J.X),...Fn(s,"grid",J.Y)};return{classProps:g(l,{[Kt(l,t,"alignmentX")]:t,[Kt(l,n,"alignmentY")]:n,[function(e,t,n){return"object"==typeof t&&null!==t?Object.keys(t).map((r=>{const o="mobile"===r?"":`--${r}`,i=t[r];return`${e}${o}--${n}-${i}`})).join(" "):`${e}--${n}-${t}`}(l,r,"cols")]:r}),props:a,styleProps:c}}ta.spiritComponent="Footer",ta.displayName="Footer";const ra={alignmentX:R.STRETCH,alignmentY:$.STRETCH,elementType:"div"},oa=t.forwardRef(((e,t)=>{const n={...ra,...e},{elementType:r=ra.elementType,children:o,...i}=n,s=r,{classProps:a,props:l,styleProps:c}=na(i),{styleProps:p,props:u}=Yt(l),d=Rt(s,{classProps:a,styleProps:p,otherProps:u,gridStyle:c});return or.jsx(s,{...u,...d,ref:t,children:o})}));oa.spiritComponent="Grid",oa.displayName="Grid";const ia=(e,t,n)=>{e[t]=n};function sa(e){const t=on("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 i,s,a;o&&(i=n,s=`grid-item-${t}-${e.replace(t,"").toLowerCase()}`,"object"==typeof(a=o)&&null!==a?Object.keys(a).forEach((e=>{ia(i,`--${s}${"mobile"===e?"":`-${e}`}`,a[e]?.toString())})):ia(i,`--${s}`,a?.toString())),delete r[e]})),{classProps:t,props:r,styleProps:n}}const aa={elementType:"div"},la=t.forwardRef(((e,t)=>{const{elementType:n=aa.elementType,children:r,...o}=e,i=n,{classProps:s,styleProps:a,props:l}=sa(o),{styleProps:c,props:p}=Yt(l),u=Rt(i,{classProps:s,styleProps:c,otherProps:p,gridItemStyle:a});return or.jsx(i,{...p,...u,ref:t,children:r})}));la.spiritComponent="GridItem",la.displayName="GridItem";const ca="primary",pa="primary",ua="Close",da="Menu",ma=({actionsColor:e=pa,color:t=ca,hasActionsAtEnd:n,isCurrentLink:r,isSimple:o}={actionsColor:pa,color:ca,hasActionsAtEnd:!1,isCurrentLink:!1,isSimple:!1})=>{const i=on("Header"),s=`${i}--simple`,a=`${i}Nav`,l=`${i}NavItem`,c=`${i}Link`,p=`${c}--current`,u=`${i}DesktopActions`,d=`${u}--end`,m=`${i}MobileActions`,f=`${i}Dialog`,h=`${f}__panel`,y=`${f}__content`,v=`${i}DialogActions`,b=`${v}--${e}`,x=`${i}DialogCloseButton`,T=`${i}DialogLink`,P=`${T}--current`,S=`${i}DialogNav`,E=`${i}DialogNavItem`,C=`${i}DialogText`;return{classProps:{root:g(i,`${i}--${t}`,{[s]:o}),headerButton:c,headerDesktopActions:g(u,{[d]:n}),headerDialog:{root:f,panel:h,content:y},headerDialogActions:g(v,b),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}}},fa=e=>{const{children:t,color:n=ca,isSimple:r,...o}=e,{classProps:i}=ma({color:n,isSimple:r}),{styleProps:s,props:a}=Yt(o);return pn({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."}),or.jsx("header",{...a,className:g(i.root,s.className),style:s.style,children:t})};fa.spiritComponent="Header";const ha=e=>{const{classProps:t}=ma(),{styleProps:n,props:r}=Yt(e);return or.jsx("button",{...r,type:"button",className:g(t.headerButton,n.className),style:n.style})};ha.spiritComponent="HeaderButton";const ga={isAtEnd:!1},ya=e=>{const t={...ga,...e},{isAtEnd:n,...r}=t,{classProps:o}=ma({hasActionsAtEnd:n}),{styleProps:i,props:s}=Yt(r);return or.jsx("nav",{...s,className:g(o.headerDesktopActions,i.className),style:i.style})};ya.spiritComponent="HeaderDesktopActions";const va=t.createContext({id:"",isOpen:!1,onClose:()=>null}),ba=va.Provider,xa=va.Consumer,Ta=()=>t.useContext(va),Pa=e=>{const{children:t,id:n,isOpen:r,onClose:o,...i}=e,{classProps:s}=ma(),{styleProps:a,props:l}=Yt(i),c={id:n,isOpen:r,onClose:o};return Sn(r),or.jsx(ba,{value:c,children:or.jsx(Bi,{...l,id:n,isOpen:r,onClose:o,className:g(s.headerDialog.root,a.className),style:a.style,children:or.jsx("div",{className:s.headerDialog.panel,children:or.jsx("div",{className:s.headerDialog.content,children:t})})})})};Pa.spiritComponent="HeaderDialog";const Sa=e=>{const{color:t=pa,...n}=e,{classProps:r}=ma({actionsColor:t}),{styleProps:o,props:i}=Yt(n);return or.jsx("nav",{...i,className:g(r.headerDialogActions,o.className),style:o.style})};Sa.spiritComponent="HeaderDialogActions";const Ea=e=>{const{classProps:t}=ma(),{styleProps:n,props:r}=Yt(e);return or.jsx("button",{...r,type:"button",className:g(t.headerDialogButton,n.className),style:n.style})};Ea.spiritComponent="HeaderDialogButton";const Ca=e=>{const{label:t=ua,onClick:n,...r}=e,{classProps:o}=ma(),{styleProps:i,props:s}=Yt(r),{id:a,isOpen:l,onClose:c}=Ta();return or.jsxs("button",{...s,type:"button","aria-expanded":l,"aria-controls":a,onClick:e=>{c(e),n&&n(e)},className:g(o.headerDialogCloseButton,i.className),style:i.style,children:[or.jsx(mr,{name:"close"}),or.jsx(gi,{children:t})]})};Ca.spiritComponent="HeaderDialogCloseButton";const wa=t.forwardRef(((e,t)=>{const{elementType:n="a",children:r,isCurrent:o,routerOptions:i,...s}=e,a=n,{classProps:l}=ma({isCurrentLink:o}),{styleProps:c,props:p}=Yt(s),u=Rt(a,{classProps:l.headerDialogLink,styleProps:c,otherProps:p}),d=Nn({...s,routerOptions:i});return or.jsx(a,{...p,...u,onClick:d,ref:t,children:r})}));wa.spiritComponent="HeaderDialogLink",wa.displayName="HeaderDialogLink";const Na=e=>{const{classProps:t}=ma(),{styleProps:n,props:r}=Yt(e);return or.jsx("ul",{...r,className:g(t.headerDialogNav,n.className),style:n.style})};Na.spiritComponent="HeaderDialogNav";const _a=e=>{const{classProps:t}=ma(),{styleProps:n,props:r}=Yt(e);return or.jsx("li",{...r,className:g(t.headerDialogNavItem,n.className),style:n.style})};_a.spiritComponent="HeaderDialogNavItem";const Aa=e=>{const{classProps:t}=ma(),{styleProps:n,props:r}=Yt(e);return or.jsx("span",{...r,className:g(t.headerDialogText,n.className),style:n.style})};Aa.spiritComponent="HeaderDialogText";const Ra=t.forwardRef(((e,t)=>{const{elementType:n="a",children:r,isCurrent:o,routerOptions:i,...s}=e,{href:a}=s,l=n,{classProps:c}=ma({isCurrentLink:o}),{styleProps:p,props:u}=Yt(s),d=Rt(l,{classProps:c.headerLink,styleProps:p,otherProps:u}),m=Nn({...s,routerOptions:i});return or.jsx(l,{...u,...d,href:a,onClick:m,ref:t,children:r})}));Ra.spiritComponent="HeaderLink",Ra.displayName="HeaderLink";const ka=e=>{const{children:t,dialogId:n,menuToggleLabel:r=da,isOpen:o,onOpen:i,...s}=e,{classProps:a}=ma(),{styleProps:l,props:c}=Yt(s);return or.jsxs("div",{...c,className:g(a.headerMobileActions,l.className),style:l.style,children:[t,or.jsxs(Xo,{"aria-controls":n,"aria-expanded":o,color:"secondary",onClick:i,isSymmetrical:!0,children:[or.jsx(mr,{name:"hamburger"}),or.jsx(gi,{children:r})]})]})};ka.spiritComponent="HeaderMobileActions";const $a=e=>{const{classProps:t}=ma(),{styleProps:n,props:r}=Yt(e);return or.jsx("ul",{...r,className:g(t.headerNav,n.className),style:n.style})};$a.spiritComponent="HeaderNav";const Oa=e=>{const{classProps:t}=ma(),{styleProps:n,props:r}=Yt(e);return or.jsx("li",{...r,className:g(t.headerNavItem,n.className),style:n.style})};function ja(e){const{emphasis:t,size:n,textColor:r,...o}=e,i=on("typography-heading"),s=on(r?`text-${r}`:"");return{classProps:g(`${i}-${n}-${t}`,{[s]:!!r}),props:o}}Oa.spiritComponent="HeaderNavItem";const Da={emphasis:H.BOLD,size:W.MEDIUM},La=e=>{const t={...Da,...e},{elementType:n,children:r,...o}=t,{classProps:i,props:s}=ja({...o}),{styleProps:a,props:l}=Yt(s,{isTextBalanced:ue.isTextBalanced,textAlignment:pe.textAlignment,textHyphens:pe.textHyphens,textWordBreak:pe.textWordBreak}),c=Rt(n,{classProps:i,styleProps:a,otherProps:l});return or.jsx(n,{...l,...c,children:r})};La.spiritComponent="Heading";const Ia={elementType:"span"},Ma=t.forwardRef(((e,t)=>{const n={...Ia,...e},{elementType:r=Ia.elementType,children:o,on:i,from:s,...a}=n,l=r,c={...a,hideOn:i||a.hideOn,hideFrom:s||a.hideFrom},{styleProps:p,props:u}=Yt(c),d=Rt(l,{styleProps:p});return or.jsx(l,{...u,...d,ref:t,children:o})}));Ma.spiritComponent="Hidden",Ma.displayName="Hidden";const Fa={ROUNDED:"rounded",SQUARE:"square",CIRCLE:"circle"},Ba={[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}},Ua={[Fa.CIRCLE]:j.FULL,[Fa.ROUNDED]:j[300],[Fa.SQUARE]:j[0]},Ha=(e,t,n)=>`${e}-${t}-${n}`,za=(e,t=!0)=>{const n=t?U.SUBTLE:U.BASIC,r=n===U.BASIC?U.SUBTLE:U.BASIC,o=e??F.INFORMATIVE,i=(e=>Object.keys(w).includes(e)?x.EMOTION:x.ACCENT)(o);return{colors:{background:Ha(i,o,n),border:Ha(i,o,n),text:Ha(i,o,r)}}},Va=e=>{const{shape:t=Fa.ROUNDED,size:n=W.MEDIUM,...r}=e||{},o=Ua[t],i={padding:`calc(var(--${P}local-padding) - var(--${P}local-border-width, 0px)) !important`};let s;if($t(n)){const e={},t={};Object.entries(n).forEach((([n,r])=>{const o=Ba[r];e[n]=o.padding,t[n]=o.iconSize})),s={padding:e,iconSize:t}}else s=Ba[n];return{iconBoxStyles:i,props:r,shapesProps:o,sizeProps:s}},Wa={shape:Fa.ROUNDED,color:F.INFORMATIVE,elementType:"div",hasBorder:!0,isSubtle:!0,size:W.MEDIUM},Ga=t.forwardRef(((e,t)=>{const n={...Wa,...e},{elementType:r,shape:o,color:i,iconName:s,isSubtle:a,hasBorder:l,size:c,...p}=n,u=r,{colors:d}=za(i,a),{iconBoxStyles:m,props:f,shapesProps:h,sizeProps:{padding:y,iconSize:v}}=Va({size:c,shape:o,...p}),{styleProps:b,props:x}=Yt(f);return or.jsx(Ro,{...x,backgroundColor:d.background,elementType:u,borderColor:l?d.border:void 0,borderRadius:h,borderWidth:l?L[100]:void 0,padding:y,textColor:d.text,UNSAFE_className:g(b.className,"d-inline-flex"),UNSAFE_style:{...b.style,...m},ref:t,children:or.jsx(mr,{"aria-hidden":"true",boxSize:v,name:s})})}));function qa(e){const{isDisabled:t,isSelected:n,selectionDecorator:r,...o}=e,i=on("Item"),s=`${i}--disabled`,a=`${i}--selected`,l=`${i}__icon`,c=n&&(r===ve||r===be);return{classProps:{helperText:`${i}__helperText`,icon:{root:l,start:`${l}--start`,end:`${l}--end`},label:`${i}__label`,root:g(i,{[s]:t,[a]:c})},props:o}}Ga.spiritComponent="IconBox",Ga.displayName="IconBox";const Xa=e=>{const{label:t,elementType:n="button",iconName:r,helperText:o,isSelected:i,isDisabled:s,selectionDecorator:a=xe,...l}=e,{classProps:c,props:p}=qa({isSelected:i,isDisabled:s,selectionDecorator:a,...l}),{styleProps:u,props:d}=Yt(p),m=Rt(n,{classProps:c.root,styleProps:u,otherProps:d}),f=i&&(a===xe||a===be);return or.jsxs(n,{...d,...m,disabled:!!s&&"button"===n,children:[r&&or.jsx("span",{className:g(c.icon.root,c.icon.start),children:or.jsx(mr,{name:r})}),or.jsx("span",{className:c.label,children:t}),or.jsx(Pi,{UNSAFE_className:c.helperText,elementType:"span",helperText:o}),f&&or.jsx("span",{className:g(c.icon.root,c.icon.end),children:or.jsx(mr,{name:"check-plain"})})]})};Xa.spiritComponent="Item";const Ya=(e,t,n,r)=>{const o={},i=`--${r}`;return"object"==typeof e&&100===t&&n>0&&Object.keys(e).forEach((e=>{const t="mobile"===e?"":`-${e}`;o[`${i}-items-count`]=`${n}`,o[`${i}-rows${t}`]=`calc(var(${i}-item-rows) * var(${i}-items-count) / var(${i}-columns${t}))`})),o};function Ka(e){const{cols:t,itemsCount:n,itemRows:r,rows:o,spacing:i,spacingX:s,spacingY:a,...l}=e,c=on("Matrix"),p=`${P}matrix`,u={...un(t,`${p}-columns`),...un(o,`${p}-rows`),...un(r,`${p}-item-rows`),...Ya(t,o,n,p),...Fn(i,p,J.X),...Fn(i,p,J.Y),...Fn(s,p,J.X),...Fn(a,p,J.Y)};return{classProps:g(c),props:l,styleProps:u}}const Qa={cols:3,elementType:"div",itemRows:100,rows:100,spacingX:"space-700",spacingY:"space-0"},Za=e=>{const n={...Qa,...e},{elementType:r="div",children:o,...i}=n,s=t.Children.count(o),{classProps:a,props:l,styleProps:c}=Ka({...i,itemsCount:s}),{styleProps:p,props:u}=Yt(l),d=Rt(r,{classProps:a,styleProps:p,otherProps:u,matrixStyleProps:c});return or.jsx(r,{...u,...d,children:o})};Za.spiritComponent="Matrix";const Ja=t.createContext({id:"",isOpen:!1,onClose:()=>null}),el=Ja.Provider,tl=Ja.Consumer,nl=()=>t.useContext(Ja);function rl({footerAlignment:e=A.RIGHT,isDockedOnMobile:t=!1,isExpandedOnMobile:n=!1,isOpen:r=!1,isScrollable:o=!1,modalAlignment:i=k.CENTER}={}){const s=on("Modal"),a={top:`${s}--top`,center:`${s}--center`,bottom:`${s}--bottom`},l=`${s}Dialog`,c=`${l}--dockOnMobile`,p=`${l}--expandOnMobile`,u=`${l}--scrollable`,d=`${s}Header`,m=`${d}__title`,f=`${s}Body`,h=`${s}Footer`,y=`${h}__description`,v=`${h}__actions`,x={left:`${h}--left`,center:`${h}--center`,right:`${h}--right`};return{classProps:{root:g(s,{[a[i]]:i,[b]:r}),dialog:g(l,{[c]:t,[p]:n,[u]:o}),title:m,header:d,body:f,footer:{root:g(h,{[x[e]]:e}),description:y,actions:v}}}}const ol=e=>{const{children:t,alignmentY:n=k.CENTER,isOpen:r,onClose:o,id:i,...s}=e,{classProps:a}=rl({isOpen:r,modalAlignment:n}),{styleProps:l,props:c}=Yt(s),p={id:i,isOpen:r,onClose:o};return Sn(r),or.jsx(el,{value:p,children:or.jsx(Bi,{...c,...l,id:i,isOpen:r,onClose:o,className:g(a.root,l.className),"aria-labelledby":`${i}__title`,children:t})})};ol.spiritComponent="Modal";const il=({children:e,...t})=>{const{classProps:n}=rl(),{styleProps:r,props:o}=Yt(t);return or.jsx("div",{...o,...r,className:g(n.body,r.className),children:e})};il.spiritComponent="ModalBody";const sl=({label:e,onClose:t,id:n,isOpen:r,...o})=>{const{t:i}=gn(),s=e??i("common.close");return or.jsxs(Xo,{...o,isSymmetrical:!0,color:"tertiary",onClick:t,"aria-expanded":r,"aria-controls":n,children:[or.jsx(mr,{name:"close"}),or.jsx(gi,{children:s})]})};sl.spiritComponent="ModalCloseButton";const al=(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()}},ll=t.forwardRef(((e,t)=>{const{elementType:n="article",children:r,isDockedOnMobile:o,isExpandedOnMobile:i,isScrollable:s,...a}=e,l=n,{classProps:c}=rl({isDockedOnMobile:o,isExpandedOnMobile:i,isScrollable:s}),{modalDialogStyleProps:p,props:u}=(e=>{const{height:t,maxHeight:n,...r}=e;return{modalDialogStyleProps:{...al("modal-dialog-height",t),...al("modal-dialog-max-height",n)},props:r}})(a),{styleProps:d,props:m}=Yt(u),f=Rt(l,{classProps:c.dialog,modalDialogStyleProps:p,styleProps:d,otherProps:m});return or.jsx(l,{...m,...f,ref:t,children:r})}));ll.spiritComponent="ModalDialog",ll.displayName="ModalDialog";const cl=e=>{const{children:t,alignmentX:n=A.RIGHT,description:r,...o}=e,{classProps:i}=rl({footerAlignment:n}),{styleProps:s,props:a}=Yt(o);return or.jsxs("footer",{...a,...s,className:g(i.footer.root,s.className),children:[r&&or.jsx("div",{className:i.footer.description,children:r}),or.jsx("div",{className:i.footer.actions,children:t})]})};cl.spiritComponent="ModalFooter";const pl={hasCloseButton:!0},ul=e=>{const t={...pl,...e},{children:n,closeLabel:r,hasCloseButton:o,...i}=t,{t:s}=gn(),a=r??s("common.close"),{classProps:l}=rl(),{styleProps:c,props:p}=Yt(i),{id:u,isOpen:d,onClose:m}=nl();return or.jsxs("header",{...p,...c,className:g(l.header,c.className),children:[n&&or.jsx("h2",{id:`${u}__title`,className:l.title,children:n}),o&&or.jsx(sl,{id:u,isOpen:d,label:a,onClose:m})]})};ul.spiritComponent="ModalHeader";const dl=({isDisabled:e=!1,isSelected:t=!1,isSquare:n=!1,alignmentY:r=$.CENTER,direction:o=Q.HORIZONTAL,variant:i=K.BOX,...s})=>{const a=on("Navigation"),l=`${a}Action`,c=`${a}Avatar`,p=`${a}Item`,u=`${a}--${o}`,d=`${l}--disabled`,m=`${l}--selected`,f=`${l}--${i}`,h=`${c}--square`,y=g(p,{[Kt(p,r,"alignmentY")]:r});return{classProps:{root:g(a,u),action:g(l,f,{[d]:e,[m]:t}),avatar:g(c,{[h]:n}),item:y},props:s}},ml={direction:Q.HORIZONTAL},fl=e=>{const t={...ml,...e},{children:n,...r}=t,{classProps:o,props:i}=dl(r),{styleProps:s,props:a}=Yt(i);return or.jsx("nav",{...a,className:g(o.root,s.className),style:s.style,children:or.jsx("ul",{children:n})})};fl.spiritComponent="Navigation";const hl=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}}},gl={elementType:"a",variant:K.BOX},yl=t.forwardRef(((e,t)=>{const n={...gl,...e},{elementType:r=gl.elementType,children:o,...i}=n,s=n.isDisabled?"span":r,{navigationActionProps:a}=hl(n),{classProps:l,props:c}=dl(i),{styleProps:p,props:u}=Yt(c),d=Rt(s,{classProps:l.action,styleProps:p,otherProps:u});return or.jsx(s,{...u,...a,...d,ref:t,children:o})}));yl.spiritComponent="NavigationAction",yl.displayName="NavigationAction";const vl={elementType:"a",isSquare:!1,avatarSize:V.SMALL},bl=t.forwardRef(((e,t)=>{const n={...vl,...e},{elementType:r=vl.elementType,avatarContent:o,avatarSize:i=vl.avatarSize,isSquare:s,children:a,...l}=n,{classProps:c,props:p}=dl({isSquare:s,...l}),{styleProps:u,props:d}=Yt(p),m=Rt(r,{classProps:c.avatar,styleProps:u,otherProps:d});return or.jsxs(r,{...d,...m,ref:t,children:[or.jsx(No,{size:i,isSquare:s,children:o}),a]})}));bl.spiritComponent="NavigationAvatar",bl.displayName="NavigationAvatar";const xl={alignmentY:$.CENTER},Tl=e=>{const t={...xl,...e},{children:n,...r}=t,{classProps:o,props:i}=dl(r),{styleProps:s,props:a}=Yt(i);return or.jsx("li",{...a,className:g(o.item,s.className),style:s.style,children:n})};Tl.spiritComponent="NavigationItem";const Pl=({children:e})=>{const[n,r]=t.useState(!1);return t.useEffect((()=>{r(!0)}),[]),n?e:null};Pl.spiritComponent="NoSsr";const Sl=e=>{const t=on("Pagination"),n=`${t}__link`,r=`${n}--current`;return{classProps:{root:t,item:`${t}__item`,link:g(n,{[r]:e?.isCurrent})}}},El=e=>{const{children:t,listProps:n={},...r}=e,{classProps:o}=Sl(),{styleProps:i,props:s}=Yt(r),{styleProps:a,props:l}=Yt(n);return or.jsx("nav",{...s,...i,children:or.jsx("ul",{...a,...l,className:g(o.root,a.className),children:t})})};El.spiritComponent="Pagination";const Cl=t.forwardRef(((e,t)=>{const{t:n}=gn(),{direction:r,accessibilityLabel:o,...i}=e,s=o??n("previous"===r?"pagination.previous":"pagination.next");return or.jsxs(Zo,{color:"secondary",isSymmetrical:!0,...i,ref:t,children:[or.jsx(mr,{name:{previous:"chevron-left",next:"chevron-right"}[r]}),or.jsx(gi,{children:s})]})}));Cl.spiritComponent="PaginationButtonLink",Cl.displayName="PaginationButtonLink";const wl=e=>{const{children:t,...n}=e,{classProps:r}=Sl(),{styleProps:o,props:i}=Yt(n);return or.jsx("li",{...i,...o,className:g(r.item,o.className),children:t})};wl.spiritComponent="PaginationItem";const Nl=t.forwardRef(((e,t)=>{const{t:n}=gn(),{elementType:r="a",accessibilityLabel:o,isCurrent:i,pageNumber:s,routerOptions:a,...l}=e,c=o||`${n("pagination.goToPage")} ${s}`,p=r,{classProps:u}=Sl({isCurrent:i}),{styleProps:d,props:m}=Yt(l),f=Rt(p,{classProps:u.link,styleProps:d,otherProps:m}),h=Nn({...l,routerOptions:a});return or.jsxs(p,{...i&&{"aria-current":"page"},...m,...f,onClick:h,ref:t,children:[or.jsx(gi,{children:c}),or.jsx("span",{"aria-hidden":"true",children:s})]})}));Nl.spiritComponent="PaginationLink",Nl.displayName="PaginationLink";const _l=t.forwardRef((({accessibilityLabel:e,...t},n)=>{const{t:r}=gn(),o=e??r("pagination.next");return or.jsx(Cl,{direction:"next",accessibilityLabel:o,...t,ref:n})}));_l.spiritComponent="PaginationLinkNext",_l.displayName="PaginationLinkNext";const Al=t.forwardRef((({accessibilityLabel:e,...t},n)=>{const{t:r}=gn(),o=e??r("pagination.previous");return or.jsx(Cl,{direction:"previous",accessibilityLabel:o,...t,ref:n})}));Al.spiritComponent="PaginationLinkPrevious",Al.displayName="PaginationLinkPrevious";const Rl=({totalPages:e,onChange:n,defaultPage:r,visiblePages:o})=>{const[i,s]=t.useState(r<=0||r>e?1:r??1),[a,l]=t.useState([o]);t.useMemo((()=>{const t=o>e?e:o,n=e-i<t?e-(t-1):i;l(Array.from(Array(t),((e,t)=>t+n)))}),[o,i,e]);const c=t.useCallback((e=>{s(e),n&&n(e)}),[n]);return t.useMemo((()=>{l((()=>{const t=Math.floor(o/2);let n=Math.max(1,i-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:i,pages:a,handlePageChange:c}},kl=e=>{const{t:t}=gn(),{accessibilityLabel:n,accessibilityLabelPrevious:r,accessibilityLabelNext:o,defaultPage:i=1,onChange:s,totalPages:a=0,visiblePages:l=5,...c}=e,p=n??t("pagination.goToPage"),u=r??t("pagination.previous"),d=o??t("pagination.next"),{currentPage:m,pages:f,handlePageChange:h}=Rl({defaultPage:i,onChange:s,totalPages:a,visiblePages:l});return or.jsxs(El,{...c,children:[1!==m&&or.jsx(Al,{accessibilityLabel:u,onClick:e=>{e.preventDefault(),h(m-1)}}),f?.map((e=>or.jsx(wl,{children:or.jsx(Nl,{accessibilityLabel:`${p} ${e}`,href:"#",isCurrent:m===e,pageNumber:e,onClick:t=>{t.preventDefault(),h(e)}})},e))),m!==a&&or.jsx(_l,{accessibilityLabel:d,onClick:e=>{e.preventDefault(),h(m+1)}})]})};kl.spiritComponent="UncontrolledPagination";const $l=e=>{const{hasSafeArea:t,isFluid:n,size:r,...o}=e,i=on("PartnerLogo"),s=`${i}--fluid`,a=`${i}--safeArea`,l=Ot(i,r);return{classProps:g(i,{[s]:n,[a]:t},l),props:o}},Ol={hasSafeArea:!0,isFluid:!1,size:V.MEDIUM},jl=e=>{const t={...Ol,...e},{children:n,...r}=t,{classProps:o,props:i}=$l(r),{styleProps:s,props:a}=Yt(i);return or.jsx("div",{...a,className:g(o,s.className),style:s.style,children:n})};jl.spiritComponent="PartnerLogo";const Dl={SELECTED:"selected",NEUTRAL:"neutral"};function Ll(e){const{color:t,...n}=e,r=on("Pill"),o=`${r}--${t}`;return{classProps:g(r,{[o]:t}),props:n}}const Il={color:Dl.SELECTED,elementType:"span"},Ml=e=>{const t={...Il,...e},{elementType:n="span",children:r,...o}=t,{classProps:i,props:s}=Ll(o),{styleProps:a,props:l}=Yt(s),c=Rt(n,{classProps:i,styleProps:a,otherProps:l});return or.jsx(n,{...l,...c,children:r})};Ml.spiritComponent="Pill";const Fl=e=>{const{hasComparableFeatures:t,isHighlighted:n,action:r,badge:o,title:i,subtitle:s,note:a,price:l,rows:c,...p}=e,u=on("PricingPlan"),d=`${u}--comparableFeatures`,m=`${u}__layout`,f=`${u}--highlighted`,h=on("PricingPlanHeader"),y=`${h}__badge`,v=`${h}__title`,b=`${h}__subtitle`,x=`${h}__price`,T=`${h}__action`,S=`${h}__note`,E=`${h}__content`,C=on("PricingPlanBody"),w=`${C}__featureList`,N=`${C}__featureItem`,_=`${C}__featureTitle`,A=`${C}__featureTitleText`,R=`${C}__featureDescription`,k=on("PricingPlanFooter"),$=g(u,{[d]:t,[f]:n}),O={};return 100!==c&&(O[`--${P}pricing-plan-rows`]=c?.toString()),{classProps:{root:$,layout:m,header:{root:h,badge:o?y:void 0,content:E,title:i?v:void 0,subtitle:s?b:void 0,price:l?x:void 0,action:r?T:void 0,note:a?S:void 0},body:{root:C,featureList:w,featureItem:N,featureTitle:_,featureTitleText:A,featureDescription:R},footer:k},props:p,styleProps:O}},Bl={hasComparableFeatures:!1,isHighlighted:!1,rows:100},Ul=e=>{const t={...Bl,...e},{elementType:n="article",children:r,...o}=t,{classProps:i,props:s,styleProps:a}=Fl(o),{styleProps:l,props:c}=Yt(s),p=Rt(n,{classProps:i.root,pricingPlanStyleProps:a,styleProps:l});return or.jsx(n,{...c,...p,children:or.jsx("div",{className:g(i.layout),children:r})})};Ul.spiritComponent="PricingPlan";const Hl={action:void 0,badge:void 0,note:void 0,price:void 0,subtitle:void 0,title:void 0},zl=e=>{const t={...Hl,...e},{elementType:n="header",...r}=t,{classProps:o,props:i}=Fl(r),{badge:s,title:a,subtitle:l,price:c,action:p,note:u}=t,{styleProps:d,props:m}=Yt(i),f=Rt(n,{classProps:o.header.root,styleProps:d});return or.jsxs(n,{...m,...f,children:[s&&or.jsx("div",{className:o.header.badge,children:s}),or.jsxs("div",{className:o.header.content,children:[a&&or.jsx("h3",{className:o.header.title,children:a}),l&&or.jsx("div",{className:g(o.header.subtitle),children:l}),c&&or.jsx("div",{className:o.header.price,children:c}),p&&or.jsx("div",{className:o.header.action,children:p}),u&&or.jsx("div",{className:o.header.note,children:u})]})]})};zl.spiritComponent="PricingPlanHeader";const Vl=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"}),Wl=Vl.Provider;Vl.Consumer;const Gl=()=>t.useContext(Vl);function ql(){return"undefined"!=typeof window}function Xl(e){return Ql(e)?(e.nodeName||"").toLowerCase():"#document"}function Yl(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Kl(e){var t;return null==(t=(Ql(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Ql(e){return!!ql()&&(e instanceof Node||e instanceof Yl(e).Node)}function Zl(e){return!!ql()&&(e instanceof Element||e instanceof Yl(e).Element)}function Jl(e){return!!ql()&&(e instanceof HTMLElement||e instanceof Yl(e).HTMLElement)}function ec(e){return!(!ql()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Yl(e).ShadowRoot)}function tc(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=ac(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function nc(e){return["table","td","th"].includes(Xl(e))}function rc(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function oc(e){const t=ic(),n=Zl(e)?ac(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 ic(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function sc(e){return["html","body","#document"].includes(Xl(e))}function ac(e){return Yl(e).getComputedStyle(e)}function lc(e){return Zl(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function cc(e){if("html"===Xl(e))return e;const t=e.assignedSlot||e.parentNode||ec(e)&&e.host||Kl(e);return ec(t)?t.host:t}function pc(e){const t=cc(e);return sc(t)?e.ownerDocument?e.ownerDocument.body:e.body:Jl(t)&&tc(t)?t:pc(t)}function uc(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=pc(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),s=Yl(o);if(i){const e=dc(s);return t.concat(s,s.visualViewport||[],tc(o)?o:[],e&&n?uc(e):[])}return t.concat(o,uc(o,[],n))}function dc(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function mc(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 fc(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&ec(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function hc(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function gc(){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 yc(e){return!gc().includes("jsdom/")&&(!vc()&&0===e.width&&0===e.height||vc()&&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 vc(){const e=/android/i;return e.test(hc())||e.test(gc())}function bc(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function xc(e){return(null==e?void 0:e.ownerDocument)||document}function Tc(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 Pc(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Sc(e){return Jl(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}const Ec=Math.min,Cc=Math.max,wc=Math.round,Nc=Math.floor,_c=e=>({x:e,y:e}),Ac={left:"right",right:"left",bottom:"top",top:"bottom"},Rc={start:"end",end:"start"};function kc(e,t,n){return Cc(e,Ec(t,n))}function $c(e,t){return"function"==typeof e?e(t):e}function Oc(e){return e.split("-")[0]}function jc(e){return e.split("-")[1]}function Dc(e){return"x"===e?"y":"x"}function Lc(e){return"y"===e?"height":"width"}function Ic(e){return["top","bottom"].includes(Oc(e))?"y":"x"}function Mc(e){return Dc(Ic(e))}function Fc(e){return e.replace(/start|end/g,(e=>Rc[e]))}function Bc(e){return e.replace(/left|right|bottom|top/g,(e=>Ac[e]))}function Uc(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 Hc(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 zc(e,t,n){let{reference:r,floating:o}=e;const i=Ic(t),s=Mc(t),a=Lc(s),l=Oc(t),c="y"===i,p=r.x+r.width/2-o.width/2,u=r.y+r.height/2-o.height/2,d=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:u};break;case"left":m={x:r.x-o.width,y:u};break;default:m={x:r.x,y:r.y}}switch(jc(t)){case"start":m[s]-=d*(n&&c?-1:1);break;case"end":m[s]+=d*(n&&c?-1:1)}return m}async function Vc(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:p="viewport",elementContext:u="floating",altBoundary:d=!1,padding:m=0}=$c(t,e),f=Uc(m),h=a[d?"floating"===u?"reference":"floating":u],g=Hc(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:p,strategy:l})),y="floating"===u?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,v=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),b=await(null==i.isElement?void 0:i.isElement(v))&&await(null==i.getScale?void 0:i.getScale(v))||{x:1,y:1},x=Hc(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:v,strategy:l}):y);return{top:(g.top-x.top+f.top)/b.y,bottom:(x.bottom-g.bottom+f.bottom)/b.y,left:(g.left-x.left+f.left)/b.x,right:(x.right-g.right+f.right)/b.x}}function Wc(e){const t=Ec(...e.map((e=>e.left))),n=Ec(...e.map((e=>e.top)));return{x:t,y:n,width:Cc(...e.map((e=>e.right)))-t,height:Cc(...e.map((e=>e.bottom)))-n}}function Gc(e){const t=ac(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Jl(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=wc(n)!==i||wc(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function qc(e){return Zl(e)?e:e.contextElement}function Xc(e){const t=qc(e);if(!Jl(t))return _c(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Gc(t);let s=(i?wc(n.width):n.width)/r,a=(i?wc(n.height):n.height)/o;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const Yc=_c(0);function Kc(e){const t=Yl(e);return ic()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Yc}function Qc(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=qc(e);let s=_c(1);t&&(r?Zl(r)&&(s=Xc(r)):s=Xc(e));const a=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Yl(e))&&t}(i,n,r)?Kc(i):_c(0);let l=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,p=o.width/s.x,u=o.height/s.y;if(i){const e=Yl(i),t=r&&Zl(r)?Yl(r):r;let n=e,o=dc(n);for(;o&&r&&t!==n;){const e=Xc(o),t=o.getBoundingClientRect(),r=ac(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,s=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,p*=e.x,u*=e.y,l+=i,c+=s,n=Yl(o),o=dc(n)}}return Hc({width:p,height:u,x:l,y:c})}function Zc(e,t){const n=lc(e).scrollLeft;return t?t.left+n:Qc(Kl(e)).left+n}function Jc(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:Zc(e,r)),y:r.top+t.scrollTop}}function ep(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Yl(e),r=Kl(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const e=ic();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a,y:l}}(e,n);else if("document"===t)r=function(e){const t=Kl(e),n=lc(e),r=e.ownerDocument.body,o=Cc(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Cc(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Zc(e);const a=-n.scrollTop;return"rtl"===ac(r).direction&&(s+=Cc(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}(Kl(e));else if(Zl(t))r=function(e,t){const n=Qc(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Jl(e)?Xc(e):_c(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=Kc(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Hc(r)}function tp(e,t){const n=cc(e);return!(n===t||!Zl(n)||sc(n))&&("fixed"===ac(n).position||tp(n,t))}function np(e,t,n){const r=Jl(t),o=Kl(t),i="fixed"===n,s=Qc(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=_c(0);if(r||!r&&!i)if(("body"!==Xl(t)||tc(o))&&(a=lc(t)),r){const e=Qc(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=Zc(o));const c=!o||r||i?_c(0):Jc(o,a);return{x:s.left+a.scrollLeft-l.x-c.x,y:s.top+a.scrollTop-l.y-c.y,width:s.width,height:s.height}}function rp(e){return"static"===ac(e).position}function op(e,t){if(!Jl(e)||"fixed"===ac(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Kl(e)===n&&(n=n.ownerDocument.body),n}function ip(e,t){const n=Yl(e);if(rc(e))return n;if(!Jl(e)){let t=cc(e);for(;t&&!sc(t);){if(Zl(t)&&!rp(t))return t;t=cc(t)}return n}let r=op(e,t);for(;r&&nc(r)&&rp(r);)r=op(r,t);return r&&sc(r)&&rp(r)&&!oc(r)?n:r||function(e){let t=cc(e);for(;Jl(t)&&!sc(t);){if(oc(t))return t;if(rc(t))return null;t=cc(t)}return null}(e)||n}const sp={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,s=Kl(r),a=!!t&&rc(t.floating);if(r===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},c=_c(1);const p=_c(0),u=Jl(r);if((u||!u&&!i)&&(("body"!==Xl(r)||tc(s))&&(l=lc(r)),Jl(r))){const e=Qc(r);c=Xc(r),p.x=e.x+r.clientLeft,p.y=e.y+r.clientTop}const d=!s||u||i?_c(0):Jc(s,l,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+p.x+d.x,y:n.y*c.y-l.scrollTop*c.y+p.y+d.y}},getDocumentElement:Kl,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?rc(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=uc(e,[],!1).filter((e=>Zl(e)&&"body"!==Xl(e))),o=null;const i="fixed"===ac(e).position;let s=i?cc(e):e;for(;Zl(s)&&!sc(s);){const t=ac(s),n=oc(s);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||tc(s)&&!n&&tp(e,s))?r=r.filter((e=>e!==s)):o=t,s=cc(s)}return t.set(e,r),r}(t,this._c):[].concat(n),r],s=i[0],a=i.reduce(((e,n)=>{const r=ep(t,n,o);return e.top=Cc(r.top,e.top),e.right=Ec(r.right,e.right),e.bottom=Ec(r.bottom,e.bottom),e.left=Cc(r.left,e.left),e}),ep(t,s,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:ip,getElementRects:async function(e){const t=this.getOffsetParent||ip,n=this.getDimensions,r=await n(e.floating);return{reference:np(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}=Gc(e);return{width:t,height:n}},getScale:Xc,isElement:Zl,isRTL:function(e){return"rtl"===ac(e).direction}};function ap(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function lp(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=qc(e),p=o||i?[...c?uc(c):[],...uc(t)]:[];p.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const u=c&&a?function(e,t){let n,r=null;const o=Kl(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function s(a,l){void 0===a&&(a=!1),void 0===l&&(l=1),i();const c=e.getBoundingClientRect(),{left:p,top:u,width:d,height:m}=c;if(a||t(),!d||!m)return;const f={rootMargin:-Nc(u)+"px "+-Nc(o.clientWidth-(p+d))+"px "+-Nc(o.clientHeight-(u+m))+"px "+-Nc(p)+"px",threshold:Cc(0,Ec(1,l))||1};let h=!0;function g(t){const r=t[0].intersectionRatio;if(r!==l){if(!h)return s();r?s(!1,r):n=setTimeout((()=>{s(!1,1e-7)}),1e3)}1!==r||ap(c,e.getBoundingClientRect())||s(),h=!1}try{r=new IntersectionObserver(g,{...f,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(g,f)}r.observe(e)}(!0),i}(c,n):null;let d,m=-1,f=null;s&&(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?Qc(e):null;return l&&function t(){const r=Qc(e);h&&!ap(h,r)&&n();h=r,d=requestAnimationFrame(t)}(),n(),()=>{var e;p.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==u||u(),null==(e=f)||e.disconnect(),f=null,l&&cancelAnimationFrame(d)}}const cp=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,l=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),s=Oc(n),a=jc(n),l="y"===Ic(n),c=["left","top"].includes(s)?-1:1,p=i&&l?-1:1,u=$c(t,e);let{mainAxis:d,crossAxis:m,alignmentAxis:f}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return a&&"number"==typeof f&&(m="end"===a?-1*f:f),l?{x:m*p,y:d*c}:{x:d*c,y:m*p}}(t,e);return s===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},pp=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=$c(e,t),c={x:n,y:r},p=await Vc(t,l),u=Ic(Oc(o)),d=Dc(u);let m=c[d],f=c[u];if(i){const e="y"===d?"bottom":"right";m=kc(m+p["y"===d?"top":"left"],m,m-p[e])}if(s){const e="y"===u?"bottom":"right";f=kc(f+p["y"===u?"top":"left"],f,f-p[e])}const h=a.fn({...t,[d]:m,[u]:f});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[d]:i,[u]:s}}}}}},up=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:p=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:h=!0,...g}=$c(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const y=Oc(o),v=Ic(a),b=Oc(a)===a,x=await(null==l.isRTL?void 0:l.isRTL(c.floating)),T=d||(b||!h?[Bc(a)]:function(e){const t=Bc(e);return[Fc(e),t,Fc(t)]}(a)),P="none"!==f;!d&&P&&T.push(...function(e,t,n,r){const o=jc(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:s;default:return[]}}(Oc(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(Fc)))),i}(a,h,f,x));const S=[a,...T],E=await Vc(t,g),C=[];let w=(null==(r=i.flip)?void 0:r.overflows)||[];if(p&&C.push(E[y]),u){const e=function(e,t,n){void 0===n&&(n=!1);const r=jc(e),o=Mc(e),i=Lc(o);let s="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Bc(s)),[s,Bc(s)]}(o,s,x);C.push(E[e[0]],E[e[1]])}if(w=[...w,{placement:o,overflows:C}],!C.every((e=>e<=0))){var N,_;const e=((null==(N=i.flip)?void 0:N.index)||0)+1,t=S[e];if(t)return{data:{index:e,overflows:w},reset:{placement:t}};let n=null==(_=w.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:_.placement;if(!n)switch(m){case"bestFit":{var A;const e=null==(A=w.filter((e=>{if(P){const t=Ic(e.placement);return t===v||"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:A[0];e&&(n=e);break}case"initialPlacement":n=a}if(o!==n)return{reset:{placement:n}}}return{}}}},dp=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:l=()=>{},...c}=$c(e,t),p=await Vc(t,c),u=Oc(o),d=jc(o),m="y"===Ic(o),{width:f,height:h}=i.floating;let g,y;"top"===u||"bottom"===u?(g=u,y=d===(await(null==s.isRTL?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(y=u,g="end"===d?"top":"bottom");const v=h-p.top-p.bottom,b=f-p.left-p.right,x=Ec(h-p[g],v),T=Ec(f-p[y],b),P=!t.middlewareData.shift;let S=x,E=T;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(E=b),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(S=v),P&&!d){const e=Cc(p.left,0),t=Cc(p.right,0),n=Cc(p.top,0),r=Cc(p.bottom,0);m?E=f-2*(0!==e||0!==t?e+t:Cc(p.left,p.right)):S=h-2*(0!==n||0!==r?n+r:Cc(p.top,p.bottom))}await l({...t,availableWidth:E,availableHeight:S});const C=await s.getDimensions(a.floating);return f!==C.width||h!==C.height?{reset:{rects:!0}}:{}}}},mp=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:c,padding:p=0}=$c(e,t)||{};if(null==c)return{};const u=Uc(p),d={x:n,y:r},m=Mc(o),f=Lc(m),h=await s.getDimensions(c),g="y"===m,y=g?"top":"left",v=g?"bottom":"right",b=g?"clientHeight":"clientWidth",x=i.reference[f]+i.reference[m]-d[m]-i.floating[f],T=d[m]-i.reference[m],P=await(null==s.getOffsetParent?void 0:s.getOffsetParent(c));let S=P?P[b]:0;S&&await(null==s.isElement?void 0:s.isElement(P))||(S=a.floating[b]||i.floating[f]);const E=x/2-T/2,C=S/2-h[f]/2-1,w=Ec(u[y],C),N=Ec(u[v],C),_=w,A=S-h[f]-N,R=S/2-h[f]/2+E,k=kc(_,R,A),$=!l.arrow&&null!=jc(o)&&R!==k&&i.reference[f]/2-(R<_?w:N)-h[f]/2<0,O=$?R<_?R-_:R-A:0;return{[m]:d[m]+O,data:{[m]:k,centerOffset:R-k-O,...$&&{alignmentOffset:O}},reset:$}}}),fp=function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){const{placement:n,elements:r,rects:o,platform:i,strategy:s}=t,{padding:a=2,x:l,y:c}=$c(e,t),p=Array.from(await(null==i.getClientRects?void 0:i.getClientRects(r.reference))||[]),u=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=>Hc(Wc(e))))}(p),d=Hc(Wc(p)),m=Uc(a);const f=await i.getElementRects({reference:{getBoundingClientRect:function(){if(2===u.length&&u[0].left>u[1].right&&null!=l&&null!=c)return u.find((e=>l>e.left-m.left&&l<e.right+m.right&&c>e.top-m.top&&c<e.bottom+m.bottom))||d;if(u.length>=2){if("y"===Ic(n)){const e=u[0],t=u[u.length-1],r="top"===Oc(n),o=e.top,i=t.bottom,s=r?e.left:t.left,a=r?e.right:t.right;return{top:o,bottom:i,left:s,right:a,width:a-s,height:i-o,x:s,y:o}}const e="left"===Oc(n),t=Cc(...u.map((e=>e.right))),r=Ec(...u.map((e=>e.left))),o=u.filter((n=>e?n.left===r:n.right===t)),i=o[0].top,s=o[o.length-1].bottom;return{top:i,bottom:s,left:r,right:t,width:t-r,height:s-i,x:r,y:i}}return d}},floating:r.floating,strategy:s});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}}:{}}}},hp=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=$c(e,t),p={x:n,y:r},u=Ic(o),d=Dc(u);let m=p[d],f=p[u];const h=$c(a,t),g="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const e="y"===d?"height":"width",t=i.reference[d]-i.floating[e]+g.mainAxis,n=i.reference[d]+i.reference[e]-g.mainAxis;m<t?m=t:m>n&&(m=n)}if(c){var y,v;const e="y"===d?"width":"height",t=["top","left"].includes(Oc(o)),n=i.reference[u]-i.floating[e]+(t&&(null==(y=s.offset)?void 0:y[u])||0)+(t?0:g.crossAxis),r=i.reference[u]+i.reference[e]+(t?0:(null==(v=s.offset)?void 0:v[u])||0)-(t?g.crossAxis:0);f<n?f=n:f>r&&(f=r)}return{[d]:m,[u]:f}}}},gp=(e,t,n)=>{const r=new Map,o={platform:sp,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),l=await(null==s.isRTL?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:p,y:u}=zc(c,r,l),d=r,m={},f=0;for(let n=0;n<a.length;n++){const{name:i,fn:h}=a[n],{x:g,y:y,data:v,reset:b}=await h({x:p,y:u,initialPlacement:r,placement:d,strategy:o,middlewareData:m,rects:c,platform:s,elements:{reference:e,floating:t}});p=null!=g?g:p,u=null!=y?y:u,m={...m,[i]:{...m[i],...v}},b&&f<=50&&(f++,"object"==typeof b&&(b.placement&&(d=b.placement),b.rects&&(c=!0===b.rects?await s.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:p,y:u}=zc(c,d,l))),n=-1)}return{x:p,y:u,placement:d,strategy:o,middlewareData:m}})(e,t,{...o,platform:i})};var yp="undefined"!=typeof document?t.useLayoutEffect:t.useEffect;function vp(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(!vp(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)&&!vp(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function bp(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function xp(e,t){const n=bp(e);return Math.round(t*n)/n}function Tp(e){const t=o.useRef(e);return yp((()=>{t.current=e})),t}const Pp=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?mp({element:n.current,padding:r}).fn(t):{}:n?mp({element:n,padding:r}).fn(t):{};var o}}),Sp=(e,t)=>({...pp(e),options:[e,t]}),Ep=(e,t)=>({...hp(e),options:[e,t]}),Cp=(e,t)=>({...up(e),options:[e,t]}),wp=(e,t)=>({...dp(e),options:[e,t]}),Np=(e,t)=>({...fp(e),options:[e,t]}),_p=(e,t)=>({...Pp(e),options:[e,t]}),Ap={...o},Rp=Ap.useInsertionEffect||(e=>e());function kp(e){const t=o.useRef((()=>{if("production"!==process.env.NODE_ENV)throw new Error("Cannot call an event handler while rendering.")}));return Rp((()=>{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 $p="undefined"!=typeof document?t.useLayoutEffect:t.useEffect;let Op=!1,jp=0;const Dp=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+jp++;const Lp=Ap.useId||function(){const[e,t]=o.useState((()=>Op?Dp():void 0));return $p((()=>{null==e&&t(Dp())}),[]),o.useEffect((()=>{Op=!0}),[]),e};let Ip;"production"!==process.env.NODE_ENV&&(Ip=new Set);const Mp=o.createContext(null),Fp=o.createContext(null),Bp=()=>{var e;return(null==(e=o.useContext(Mp))?void 0:e.id)||null},Up=()=>o.useContext(Fp);function Hp(e){return"data-floating-ui-"+e}function zp(e){-1!==e.current&&(clearTimeout(e.current),e.current=-1)}function Vp(e){const n=t.useRef(e);return $p((()=>{n.current=e})),n}const Wp=Hp("safe-polygon");function Gp(e,t,n){return n&&!bc(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}function qp(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 Xp="data-floating-ui-focusable";function Yp(e){return Jl(e.target)&&"BUTTON"===e.target.tagName}function Kp(e){return Sc(e)}const Qp={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},Zp={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Jp=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 eu(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=Lp(),s=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!=Bp();if("production"!==process.env.NODE_ENV){const e=r.reference;e&&!Zl(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 i;null!=(e=Ip)&&e.has(o)||(null==(i=Ip)||i.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),u=kp(((e,t,r)=>{s.current.openEvent=e?t:void 0,a.emit("openchange",{open:e,event:t,reason:r,nested:l}),null==n||n(e,t,r)})),d=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:s,open:t,onOpenChange:u,elements:m,events:a,floatingId:i,refs:d})),[t,u,m,a,i,d])}function tu(e){void 0===e&&(e={});const{nodeId:t}=e,n=eu({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,s=r.elements,[a,l]=o.useState(null),[c,p]=o.useState(null),u=(null==s?void 0:s.domReference)||a,d=o.useRef(null),m=Up();$p((()=>{u&&(d.current=u)}),[u]);const f=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:a,floating:l}={},transform:c=!0,whileElementsMounted:p,open:u}=e,[d,m]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,h]=o.useState(r);vp(f,r)||h(r);const[g,y]=o.useState(null),[v,b]=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,b(e))}),[]),P=a||g,S=l||v,E=o.useRef(null),C=o.useRef(null),w=o.useRef(d),N=null!=p,_=Tp(p),A=Tp(s),R=Tp(u),k=o.useCallback((()=>{if(!E.current||!C.current)return;const e={placement:t,strategy:n,middleware:f};A.current&&(e.platform=A.current),gp(E.current,C.current,e).then((e=>{const t={...e,isPositioned:!1!==R.current};$.current&&!vp(w.current,t)&&(w.current=t,i.flushSync((()=>{m(t)})))}))}),[f,t,n,A,R]);yp((()=>{!1===u&&w.current.isPositioned&&(w.current.isPositioned=!1,m((e=>({...e,isPositioned:!1}))))}),[u]);const $=o.useRef(!1);yp((()=>($.current=!0,()=>{$.current=!1})),[]),yp((()=>{if(P&&(E.current=P),S&&(C.current=S),P&&S){if(_.current)return _.current(P,S,k);k()}}),[P,S,k,_,N]);const O=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=xp(j.floating,d.x),r=xp(j.floating,d.y);return c?{...e,transform:"translate("+t+"px, "+r+"px)",...bp(j.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,c,j.floating,d.x,d.y]);return o.useMemo((()=>({...d,update:k,refs:O,elements:j,floatingStyles:D})),[d,k,O,j,D])}({...e,elements:{...s,...c&&{reference:c}}}),h=o.useCallback((e=>{const t=Zl(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;p(t),f.refs.setReference(t)}),[f.refs]),g=o.useCallback((e=>{(Zl(e)||null===e)&&(d.current=e,l(e)),(Zl(f.refs.reference.current)||null===f.refs.reference.current||null!==e&&!Zl(e))&&f.refs.setReference(e)}),[f.refs]),y=o.useMemo((()=>({...f.refs,setReference:g,setPositionReference:h,domReference:d})),[f.refs,g,h]),v=o.useMemo((()=>({...f.elements,domReference:u})),[f.elements,u]),b=o.useMemo((()=>({...f,...r,refs:y,elements:v,nodeId:t})),[f,y,v,t,r]);return $p((()=>{r.dataRef.current.floatingContext=b;const e=null==m?void 0:m.nodesRef.current.find((e=>e.id===t));e&&(e.context=b)})),o.useMemo((()=>({...f,context:b,refs:y,elements:v})),[f,y,v,b])}function nu(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,events:i,dataRef:s,elements:a}=e,{enabled:l=!0,visibleOnly:c=!0}=t,p=o.useRef(!1),u=o.useRef(-1),d=o.useRef(!0);o.useEffect((()=>{if(!l)return;const e=Yl(a.domReference);function t(){!n&&Jl(a.domReference)&&a.domReference===mc(xc(a.domReference))&&(p.current=!0)}function r(){d.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 i.on("openchange",e),()=>{i.off("openchange",e)};function e(e){let{reason:t}=e;"reference-press"!==t&&"escape-key"!==t||(p.current=!0)}}),[i,l]),o.useEffect((()=>()=>{zp(u)}),[]);const m=o.useMemo((()=>({onPointerDown(e){yc(e.nativeEvent)||(d.current=!1)},onMouseLeave(){p.current=!1},onFocus(e){if(p.current)return;const t=Pc(e.nativeEvent);if(c&&Zl(t))try{if(/apple/i.test(navigator.vendor)&&hc().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints)throw Error();if(!t.matches(":focus-visible"))return}catch(e){if(!d.current&&!Sc(t))return}r(!0,e.nativeEvent,"focus")},onBlur(e){p.current=!1;const t=e.relatedTarget,n=e.nativeEvent,o=Zl(t)&&t.hasAttribute(Hp("focus-guard"))&&"outside"===t.getAttribute("data-type");u.current=window.setTimeout((()=>{var e;const i=mc(a.domReference?a.domReference.ownerDocument:document);(t||i!==a.domReference)&&(fc(null==(e=s.current.floatingContext)?void 0:e.refs.floating.current,i)||fc(a.domReference,i)||o||r(!1,n,"focus"))}))}})),[s,a.domReference,r,c]);return o.useMemo((()=>l?{reference:m}:{}),[l,m])}const ru="active",ou="selected";function iu(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[ru]:t,[ou]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1,[Xp]:""},...i,...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,i]=t;var s;o&&[ru,ou].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof i&&(null==(s=r.get(n))||s.push(i),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return null==(e=r.get(n))?void 0:e.map((e=>e(...o))).find((e=>void 0!==e))})):e[n]=i)})),e):e),{})}}const su=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function au(e,t){const[n,r]=e;let o=!1;const i=t.length;for(let e=0,s=i-1;e<i;s=e++){const[i,a]=t[e]||[0,0],[l,c]=t[s]||[0,0];a>=r!=c>=r&&n<=(l-i)*(r-a)/(c-a)+i&&(o=!o)}return o}function lu(e){void 0===e&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e;let o,i=!1,s=null,a=null,l=performance.now();const c=e=>{let{x:n,y:c,placement:p,elements:u,onClose:d,nodeId:m,tree:f}=e;return function(e){function h(){clearTimeout(o),d()}if(clearTimeout(o),!u.domReference||!u.floating||null==p||null==n||null==c)return;const{clientX:g,clientY:y}=e,v=[g,y],b=Pc(e),x="mouseleave"===e.type,T=fc(u.floating,b),P=fc(u.domReference,b),S=u.domReference.getBoundingClientRect(),E=u.floating.getBoundingClientRect(),C=p.split("-")[0],w=n>E.right-E.width/2,N=c>E.bottom-E.height/2,_=function(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}(v,S),A=E.width>S.width,R=E.height>S.height,k=(A?S:E).left,$=(A?S:E).right,O=(R?S:E).top,j=(R?S:E).bottom;if(T&&(i=!0,!x))return;if(P&&(i=!1),P&&!x)return void(i=!0);if(x&&Zl(e.relatedTarget)&&fc(u.floating,e.relatedTarget))return;if(f&&qp(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],[$,E.bottom-1],[$,S.top+1]];break;case"bottom":D=[[k,E.top+1],[k,S.bottom-1],[$,S.bottom-1],[$,E.top+1]];break;case"left":D=[[E.right-1,j],[E.right-1,O],[S.left+1,O],[S.left+1,j]];break;case"right":D=[[S.right-1,j],[S.right-1,O],[E.left+1,O],[E.left+1,j]]}if(!au([g,y],D)){if(i&&!_)return h();if(!x&&r){const t=function(e,t){const n=performance.now(),r=n-l;if(null===s||null===a||0===r)return s=e,a=t,l=n,null;const o=e-s,i=t-a,c=Math.sqrt(o*o+i*i);return s=e,a=t,l=n,c/r}(e.clientX,e.clientY);if(null!==t&&t<.1)return h()}au([g,y],function(e){let[n,r]=e;switch(C){case"top":return[[A?n+t/2:w?n+4*t:n-4*t,r+t+1],[A?n-t/2:w?n+4*t:n-4*t,r+t+1],...[[E.left,w||A?E.bottom-t:E.top],[E.right,w?A?E.bottom-t:E.top:E.bottom-t]]];case"bottom":return[[A?n+t/2:w?n+4*t:n-4*t,r-t],[A?n-t/2:w?n+4*t:n-4*t,r-t],...[[E.left,w||A?E.top+t:E.bottom],[E.right,w?A?E.top+t:E.bottom:E.top+t]]];case"left":{const e=[n+t+1,R?r+t/2:N?r+4*t:r-4*t],o=[n+t+1,R?r-t/2:N?r+4*t:r-4*t];return[...[[N||R?E.right-t:E.left,E.top],[N?R?E.right-t:E.left:E.right-t,E.bottom]],e,o]}case"right":return[[n-t,R?r+t/2:N?r+4*t:r-4*t],[n-t,R?r-t/2:N?r+4*t:r-4*t],...[[N||R?E.left+t:E.right,E.top],[N?R?E.left+t:E.right:E.left+t,E.bottom]]]}}([n,c]))?!i&&r&&(o=window.setTimeout(h,40)):h()}}};return c.__options={blockPointerEvents:n},c}const cu=e=>{const{arrowRef:n,cornerOffset:r=0,flipCrossAxis:i,flipFallbackAxisSideDirection:s="none",flipFallbackPlacements:a,flipProp:l,isDismissible:c,isOpen:p=!1,offset:u=0,onToggle:d,isFocusableOnHover:m,shiftProp:f,sizeProp:h,positionStrategy:g="absolute",tooltipArrowWidth:y=0,tooltipPlacement:v,trigger:b}=e,[x,T]=t.useState(void 0),[P,S]=t.useState(!1),E=r+y,C=b?.includes(Ce.HOVER),w=b?.includes(Ce.CLICK),N=b?.includes(Ce.FOCUS),{x:_,y:A,floatingStyles:R,refs:k,context:$,placement:O,middlewareData:j}=tu({open:p,onOpenChange:(e,t,n)=>{if(C){if(n===Ce.CLICK&&S((e=>!e)),p&&P&&n===Ce.HOVER)return;if(p&&P&&(n===Ce.CLICK||n===Ce.OUTSIDE_PRESS||n===Ce.ESCAPE_KEY))return S(!1),void d(!1)}d(e)},placement:v,whileElementsMounted:lp,middleware:[(L=u,{...cp(L),options:[L,I]}),Np(),l&&Cp({crossAxis:i,fallbackPlacements:a?(D=a,Array.isArray(D)?D:[D]):void 0,fallbackAxisSideDirection:s}),f&&Sp({limiter:Ep({offset:()=>({mainAxis:E})})}),h&&wp({apply({availableWidth:e}){T(e)}}),_p({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:i,elements:{domReference:s}}=e,{enabled:a=!0,event:l="click",toggle:c=!0,ignoreMouse:p=!1,keyboardHandlers:u=!0,stickIfOpen:d=!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&&(bc(t,!0)&&p||(!n||!c||i.current.openEvent&&d&&"mousedown"!==i.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:bc(t,!0)&&p||(!n||!c||i.current.openEvent&&d&&"click"!==i.current.openEvent.type?r(!0,e.nativeEvent,"click"):r(!1,e.nativeEvent,"click"))},onKeyDown(e){m.current=void 0,e.defaultPrevented||!u||Yp(e)||(" "!==e.key||Kp(s)||(e.preventDefault(),f.current=!0),"Enter"===e.key&&r(!n||!c,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!u||Yp(e)||Kp(s)||" "===e.key&&f.current&&(f.current=!1,r(!n||!c,e.nativeEvent,"click"))}})),[i,s,l,p,u,r,n,d,c]);return o.useMemo((()=>a?{reference:h}:{}),[a,h])}($,{enabled:w}),F=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:i,events:s,elements:a}=e,{enabled:l=!0,delay:c=0,handleClose:p=null,mouseOnly:u=!1,restMs:d=0,move:m=!0}=t,f=Up(),h=Bp(),g=Vp(p),y=Vp(c),v=Vp(n),b=o.useRef(),x=o.useRef(-1),T=o.useRef(),P=o.useRef(-1),S=o.useRef(!0),E=o.useRef(!1),C=o.useRef((()=>{})),w=o.useRef(!1),N=o.useCallback((()=>{var e;const t=null==(e=i.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t}),[i]);o.useEffect((()=>{if(l)return s.on("openchange",e),()=>{s.off("openchange",e)};function e(e){let{open:t}=e;t||(zp(x),zp(P),S.current=!0,w.current=!1)}}),[l,s]),o.useEffect((()=>{if(!l)return;if(!g.current)return;if(!n)return;function e(e){N()&&r(!1,e,"hover")}const t=xc(a.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}}),[a.floating,n,r,l,g,N]);const _=o.useCallback((function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const o=Gp(y.current,"close",b.current);o&&!T.current?(zp(x),x.current=window.setTimeout((()=>r(!1,e,n)),o)):t&&(zp(x),r(!1,e,n))}),[y,r]),A=kp((()=>{C.current(),T.current=void 0})),R=kp((()=>{if(E.current){const e=xc(a.floating).body;e.style.pointerEvents="",e.removeAttribute(Wp),E.current=!1}})),k=kp((()=>!!i.current.openEvent&&["click","mousedown"].includes(i.current.openEvent.type)));o.useEffect((()=>{if(l&&Zl(a.domReference)){var e;const r=a.domReference;return n&&r.addEventListener("mouseleave",s),null==(e=a.floating)||e.addEventListener("mouseleave",s),m&&r.addEventListener("mousemove",t,{once:!0}),r.addEventListener("mouseenter",t),r.addEventListener("mouseleave",o),()=>{var e;n&&r.removeEventListener("mouseleave",s),null==(e=a.floating)||e.removeEventListener("mouseleave",s),m&&r.removeEventListener("mousemove",t),r.removeEventListener("mouseenter",t),r.removeEventListener("mouseleave",o)}}function t(e){if(zp(x),S.current=!1,u&&!bc(b.current)||d>0&&!Gp(y.current,"open"))return;const t=Gp(y.current,"open",b.current);t?x.current=window.setTimeout((()=>{v.current||r(!0,e,"hover")}),t):n||r(!0,e,"hover")}function o(e){if(k())return;C.current();const t=xc(a.floating);if(zp(P),w.current=!1,g.current&&i.current.floatingContext){n||zp(x),T.current=g.current({...i.current.floatingContext,tree:f,x:e.clientX,y:e.clientY,onClose(){R(),A(),k()||_(e,!0,"safe-polygon")}});const r=T.current;return t.addEventListener("mousemove",r),void(C.current=()=>{t.removeEventListener("mousemove",r)})}("touch"!==b.current||!fc(a.floating,e.relatedTarget))&&_(e)}function s(e){k()||i.current.floatingContext&&(null==g.current||g.current({...i.current.floatingContext,tree:f,x:e.clientX,y:e.clientY,onClose(){R(),A(),k()||_(e)}})(e))}}),[a,l,e,u,d,m,_,A,R,r,n,v,f,y,g,i,k]),$p((()=>{var e;if(l&&n&&null!=(e=g.current)&&e.__options.blockPointerEvents&&N()){E.current=!0;const e=a.floating;if(Zl(a.domReference)&&e){var t;const n=xc(a.floating).body;n.setAttribute(Wp,"");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,N]),$p((()=>{n||(b.current=void 0,w.current=!1,A(),R())}),[n,A,R]),o.useEffect((()=>()=>{A(),zp(x),zp(P),R()}),[l,a.domReference,A,R]);const $=o.useMemo((()=>{function e(e){b.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function o(){S.current||v.current||r(!0,t,"hover")}u&&!bc(b.current)||n||0===d||w.current&&e.movementX**2+e.movementY**2<2||(zp(P),"touch"===b.current?o():(w.current=!0,P.current=window.setTimeout(o,d)))}}}),[u,r,n,v,d]),O=o.useMemo((()=>({onMouseEnter(){zp(x)},onMouseLeave(e){k()||_(e.nativeEvent,!1)}})),[_,k]);return o.useMemo((()=>l?{reference:$,floating:O}:{}),[l,$,O])}($,{enabled:C,handleClose:(B=!!m,B?lu({requireIntent:!1}):void 0)});var B;const U=nu($,{enabled:N}),H=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,elements:i,dataRef:s}=e,{enabled:a=!0,escapeKey:l=!0,outsidePress:c=!0,outsidePressEvent:p="pointerdown",referencePress:u=!1,referencePressEvent:d="pointerdown",ancestorScroll:m=!1,bubbles:f,capture:h}=t,g=Up(),y=kp("function"==typeof c?c:()=>!1),v="function"==typeof c?y:c,b=o.useRef(!1),x=o.useRef(!1),{escapeKey:T,outsidePress:P}=Jp(f),{escapeKey:S,outsidePress:E}=Jp(h),C=o.useRef(!1),w=kp((e=>{var t;if(!n||!a||!l||"Escape"!==e.key)return;if(C.current)return;const o=null==(t=s.current.floatingContext)?void 0:t.nodeId,i=g?qp(g.nodesRef.current,o):[];if(!T&&(e.stopPropagation(),i.length>0)){let e=!0;if(i.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")})),N=kp((e=>{var t;const n=()=>{var t;w(e),null==(t=Pc(e))||t.removeEventListener("keydown",n)};null==(t=Pc(e))||t.addEventListener("keydown",n)})),_=kp((e=>{var t;const n=b.current;b.current=!1;const o=x.current;if(x.current=!1,"click"===p&&o)return;if(n)return;if("function"==typeof v&&!v(e))return;const a=Pc(e),l="["+Hp("inert")+"]",c=xc(i.floating).querySelectorAll(l);let u=Zl(a)?a:null;for(;u&&!sc(u);){const e=cc(u);if(sc(e)||!Zl(e))break;u=e}if(c.length&&Zl(a)&&!a.matches("html,body")&&!fc(a,i.floating)&&Array.from(c).every((e=>!fc(u,e))))return;if(Jl(a)&&k){const t=sc(a),n=ac(a),r=/auto|scroll/,o=t||r.test(n.overflowX),i=t||r.test(n.overflowY),s=o&&a.clientWidth>0&&a.scrollWidth>a.clientWidth,l=i&&a.clientHeight>0&&a.scrollHeight>a.clientHeight,c="rtl"===n.direction,p=l&&(c?e.offsetX<=a.offsetWidth-a.clientWidth:e.offsetX>a.clientWidth),u=s&&e.offsetY>a.clientHeight;if(p||u)return}const d=null==(t=s.current.floatingContext)?void 0:t.nodeId,m=g&&qp(g.nodesRef.current,d).some((t=>{var n;return Tc(e,null==(n=t.context)?void 0:n.elements.floating)}));if(Tc(e,i.floating)||Tc(e,i.domReference)||m)return;const f=g?qp(g.nodesRef.current,d):[];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")})),A=kp((e=>{var t;const n=()=>{var t;_(e),null==(t=Pc(e))||t.removeEventListener(p,n)};null==(t=Pc(e))||t.addEventListener(p,n)}));o.useEffect((()=>{if(!n||!a)return;s.current.__escapeKeyBubbles=T,s.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}),ic()?5:0)}const u=xc(i.floating);l&&(u.addEventListener("keydown",S?N:w,S),u.addEventListener("compositionstart",o),u.addEventListener("compositionend",c)),v&&u.addEventListener(p,E?A:_,E);let d=[];return m&&(Zl(i.domReference)&&(d=uc(i.domReference)),Zl(i.floating)&&(d=d.concat(uc(i.floating))),!Zl(i.reference)&&i.reference&&i.reference.contextElement&&(d=d.concat(uc(i.reference.contextElement)))),d=d.filter((e=>{var t;return e!==(null==(t=u.defaultView)?void 0:t.visualViewport)})),d.forEach((e=>{e.addEventListener("scroll",t,{passive:!0})})),()=>{l&&(u.removeEventListener("keydown",S?N:w,S),u.removeEventListener("compositionstart",o),u.removeEventListener("compositionend",c)),v&&u.removeEventListener(p,E?A:_,E),d.forEach((e=>{e.removeEventListener("scroll",t)})),window.clearTimeout(e)}}),[s,i,l,v,p,n,r,m,a,T,P,w,S,N,_,E,A]),o.useEffect((()=>{b.current=!1}),[v,p]);const R=o.useMemo((()=>({onKeyDown:w,...u&&{[Qp[d]]:e=>{r(!1,e.nativeEvent,"reference-press")},..."click"!==d&&{onClick(e){r(!1,e.nativeEvent,"reference-press")}}}})),[w,r,u,d]),k=o.useMemo((()=>({onKeyDown:w,onMouseDown(){x.current=!0},onMouseUp(){x.current=!0},[Zp[p]]:()=>{b.current=!0}})),[w,p]);return o.useMemo((()=>a?{reference:R,floating:k}:{}),[a,R,k])}($,{outsidePress:!c}),z=function(e,t){var n;void 0===t&&(t={});const{open:r,floatingId:i}=e,{enabled:s=!0,role:a="dialog"}=t,l=null!=(n=su.get(a))?n:a,c=Lp(),p=null!=Bp(),u=o.useMemo((()=>"tooltip"===l||"label"===a?{["aria-"+("label"===a?"labelledby":"describedby")]:r?i:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":"alertdialog"===l?"dialog":l,"aria-controls":r?i: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,i,p,r,c,a]),d=o.useMemo((()=>{const e={id:i,...l&&{role:l}};return"tooltip"===l||"label"===a?e:{...e,..."menu"===l&&{"aria-labelledby":c}}}),[l,i,c,a]),m=o.useCallback((e=>{let{active:t,selected:n}=e;const r={role:"option",...t&&{id:i+"-option"}};switch(a){case"select":return{...r,"aria-selected":t&&n};case"combobox":return{...r,...t&&{"aria-selected":!0}}}return{}}),[i,a]);return o.useMemo((()=>s?{reference:u,floating:d,item:m}:{}),[s,u,d,m])}($,{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)),i=o.useCallback((t=>iu(t,e,"reference")),t),s=o.useCallback((t=>iu(t,e,"floating")),n),a=o.useCallback((t=>iu(t,e,"item")),r);return o.useMemo((()=>({getReferenceProps:i,getFloatingProps:s,getItemProps:a})),[i,s,a])}([M,F,U,H,z]);return{context:$,getFloatingProps:W,getReferenceProps:e=>{const t=V(e);if(N){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:O,refs:k,x:_,y:A,position:R.position}},pu=e=>{const{isDismissible:n,isOpen:r,...o}=e,i=on("Tooltip"),s=`${i}Popover`,a=`${s}__arrow`,l=`${s}__close`,c=`${s}--dismissible`,p="is-hidden",u=t.useMemo((()=>!1===r),[r]);return{classProps:{rootClassName:i,popoverClassName:g(s,{[c]:n,[p]:u}),arrowClassName:a,closeButtonClassName:l},props:o}},uu=t.forwardRef(((e,n)=>{const{children:r,elementType:o="div",enableFlipping:i=!0,enableFlippingCrossAxis:s=!0,enableShifting:a=!0,enableSizing:l=!0,flipFallbackAxisSideDirection:c="none",flipFallbackPlacements:p=["bottom","top"],id:u,isDismissible:d=!1,isFocusableOnHover:m=!1,isOpen:f=!1,onToggle:h,placement:g,positionStrategy:y="absolute",trigger:v=["click","hover"],...b}=e,x=o,{classProps:T,props:P}=pu({isDismissible:d,isOpen:f,...b}),{styleProps:S,props:E}=Yt(P),C=Rt(x,{classProps:T.rootClassName,styleProps:S}),w=t.useRef(null),N=t.useRef(n);let _,A,R,k;const $=N.current?.querySelector('[data-spirit-element="tooltip"]'),O=$?.querySelector('[data-spirit-element="tooltip-arrow"]');if($){const e=window.getComputedStyle($),t=O&&window.getComputedStyle(O);_=parseInt(e.getPropertyValue("--tooltip-max-width"),10),A=parseInt(e.getPropertyValue("--tooltip-offset"),10),R=t?parseInt(t.getPropertyValue("--tooltip-arrow-corner-offset"),10):0,k=t?parseInt(t.width,10):0}const{getFloatingProps:j,getReferenceProps:D,maxWidth:L,middlewareData:I,placement:M,refs:F,x:B,y:U,position:H}=cu({arrowRef:w,cornerOffset:R,flipCrossAxis:s,flipFallbackAxisSideDirection:c,flipFallbackPlacements:p,flipProp:i,isDismissible:d,isFocusableOnHover:m,isOpen:f,offset:A,onToggle:h,shiftProp:a,sizeProp:l,positionStrategy:y,tooltipArrowWidth:k,tooltipPlacement:g,trigger:v});return or.jsx(Wl,{value:{anchorRef:F.setPositionReference,arrowRef:w,getFloatingProps:j,getReferenceProps:D,id:u,isDismissible:d,isOpen:f,middlewareData:I,onToggle:h,placement:M,sizeMaxWidth:L,tooltipMaxWidth:_,tooltipRef:F.setFloating,triggerRef:F.setReference,x:B,y:U,position:H},children:or.jsx(x,{...E,ref:N,...C,children:r})})}));uu.spiritComponent="Tooltip",uu.displayName="Tooltip";const du=({label:e,onClick:t,...n})=>{const{t:r}=gn(),o=e??r("common.close"),{classProps:i,props:s}=pu(n),{styleProps:a}=Yt({...s});return or.jsxs("button",{type:"button",className:g(i.closeButtonClassName,a.className),style:a.style,onClick:t,"aria-expanded":"true",children:[or.jsx(mr,{name:"close","aria-hidden":"true"}),or.jsx(gi,{children:o})]})};du.spiritComponent="TooltipCloseButton";const mu=e=>{const{children:n,...r}=e,{arrowRef:o,getFloatingProps:i,isDismissible:s,isOpen:a,middlewareData:l,onToggle:c,placement:p,tooltipRef:u,x:d,y:m,position:f,sizeMaxWidth:h,tooltipMaxWidth:y}=Gl(),{classProps:v,props:b}=pu({isOpen:a,isDismissible:s,...r}),{styleProps:x,props:T}=Yt(b),P=t.useMemo((()=>s&&or.jsx(du,{onClick:()=>c(!1),label:"close"})),[s,c]);return or.jsxs("div",{ref:u,className:g(v.popoverClassName,x.className),...T,...i(),style:{position:f,top:m??0,left:d??0,...(()=>{if(a&&h&&y)return{maxWidth:y<h?y:h}})(),...x.style},"data-spirit-element":"tooltip","data-spirit-placement":p,children:[n,P,or.jsx("span",{ref:o,className:v.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)}}})()}})]})};mu.spiritComponent="TooltipPopover";const fu={elementType:"button",children:null},hu=e=>{const t={...fu,...e},{elementType:n="button",children:r,...o}=t,{id:i,isOpen:s,triggerRef:a,getReferenceProps:l}=Gl(),{styleProps:c,props:p}=Yt(o),u=Rt(n,{triggerStyleProps:c,transferProps:p});return or.jsx(n,{...p,...u,id:i,ref:a,...l(),children:"function"==typeof r?r({isOpen:s}):r})};hu.spiritComponent="TooltipTrigger";const gu=(e=!1)=>{const[n,r]=t.useState(e);return{isOpen:n,onToggle:r}},yu=e=>{const{children:t,isOpen:n,...r}=e,{isOpen:o,onToggle:i}=gu(n);return or.jsx(uu,{...r,isOpen:o,onToggle:i,children:t})};yu.spiritComponent="UncontrolledTooltip";const vu=({feature:e,featureId:n,...r})=>{const{modalContent:o,title:i,tooltipContent:s}=e,{classProps:a}=Fl(r),[l,c]=Hn(!1),[p,u]=t.useState(!1);return o?or.jsxs("div",{className:a.body.featureTitle,children:[or.jsx(mr,{name:"check-plain",boxSize:16}),or.jsx("button",{type:"button",onClick:()=>u(!0),className:g(a.body.featureTitleText,"text-underlined-dotted"),children:i}),or.jsx(ol,{id:`${n}-modal`,isOpen:p,onClose:()=>u(!1),children:or.jsxs(ll,{isScrollable:!0,children:[or.jsx(ul,{children:i}),or.jsx(il,{children:o})]})})]}):s?or.jsxs(uu,{elementType:"div",id:`${n}-tooltip`,isDismissible:!0,isOpen:l,onToggle:c,placement:"top",trigger:["click"],UNSAFE_className:a.body.featureTitle,children:[or.jsx(mr,{name:"check-plain",boxSize:16}),or.jsx(hu,{elementType:"button",UNSAFE_className:g(a.body.featureTitleText,"text-underlined-dotted"),children:i}),or.jsx(mu,{children:or.jsx("div",{children:s})})]}):or.jsxs("div",{className:a.body.featureTitle,children:[or.jsx(mr,{name:"check-plain",boxSize:16}),or.jsx("div",{className:a.body.featureTitleText,id:`${n}-title`,children:i})]})};vu.spiritComponent="PricingPlanFeatureTitle";const bu={description:void 0,features:[]},xu=e=>{const t={...bu,...e},{description:n,elementType:r="div",features:o=[],id:i,...s}=t,{classProps:a,props:l}=Fl(s),{styleProps:c,props:p}=Yt(l),u=Rt(r,{classProps:a.body.root,styleProps:c});return or.jsxs(r,{...p,...u,children:[n&&or.jsx("div",{children:n}),or.jsx("ul",{className:a.body.featureList,children:o.map(((e,t)=>{const n=`featureItem-${t}`,r=`${i}-feature-${t}`;return or.jsxs("li",{className:a.body.featureItem,children:[or.jsx(vu,{feature:e,featureId:r}),or.jsx("div",{className:a.body.featureDescription,children:e.description})]},n)}))})]})};xu.spiritComponent="PricingPlanBody";const Tu=e=>{const{children:t,elementType:n="footer",...r}=e,{classProps:o,props:i}=Fl(r),{styleProps:s,props:a}=Yt(i),l=Rt(n,{classProps:o.footer,styleProps:s});return or.jsx(n,{...a,...l,children:t})};Tu.spiritComponent="PricingPlanFooter";const Pu=e=>{const{children:t,...n}=e,r=on("ProductLogo"),{styleProps:o,props:i}=Yt(n);return or.jsx("div",{...i,className:g(r,o.className),style:o.style,children:t})};function Su(e){const{inputPosition:t=te.START,isItem:n,isLabelHidden:r,validationState:o,...i}=e,{isDisabled:s}=i,a=on("Radio"),l=`${a}--disabled`,c=`${a}--item`,p=`${a}__input`,u=Pn(a,t),d=`${a}__label`,m=`${a}__label--hidden`,f=`${a}__text`,h=`${a}__helperText`,y=`${a}--${o}`;return{classProps:{root:g(a,{[u]:u,[l]:s,[c]:n,[y]:o}),label:g(d,{[m]:r}),input:p,text:f,helperText:h},props:i}}Pu.spiritComponent="ProductLogo";const Eu=t.forwardRef(((e,t)=>{const{classProps:n,props:r}=Su(e),{"aria-describedby":o="",helperText:i,id:s,isChecked:a,isDisabled:l,label:c,onChange:p,value:u,...d}=r,{styleProps:m,props:f}=Yt(d),[h,y]=Zt(o);return or.jsxs("div",{style:m.style,className:g(n.root,m.className),children:[or.jsx("input",{...f,...h,type:"radio",id:s,className:n.input,disabled:l,checked:a,onChange:p,value:u,ref:t}),or.jsxs("div",{className:n.text,children:[or.jsx(Si,{UNSAFE_className:n.label,htmlFor:s,children:c}),or.jsx(Pi,{UNSAFE_className:n.helperText,id:`${s}__helperText`,registerAria:y,helperText:i})]})]})}));Eu.spiritComponent="Radio",Eu.displayName="Radio";const Cu="Scroll right",wu="Scroll left",Nu="Scroll down",_u="Scroll up",Au=Q.VERTICAL,Ru="shadows",ku=({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),i=o?re.LEFT:re.TOP,s=o?e.current.scrollLeft:e.current.scrollTop,a=o?e.current.scrollWidth-e.current.clientWidth:e.current.scrollHeight-e.current.clientHeight;e.current.scrollTo({[i]:s,behavior:"auto"}),r.current&&clearTimeout(r.current);const l=Math.max(0,Math.min(s+t,a));r.current=setTimeout((()=>{e.current&&e.current.scrollTo({[i]:l,behavior:"smooth"})}),10)}),[e,n])}},$u=(e,t,n=300)=>{const r=(e=>e?{start:wu,end:Cu}:{top:_u,bottom:Nu})(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}]}},Ou=({direction:e,isScrollbarDisabled:t,isScrolledAtEnd:n,isScrolledAtStart:r,overflowDecorators:o=Ru})=>{const i=on("ScrollView"),s=`${i}--${e}`,a=`${i}--scrollbarDisabled`,l=`${i}__viewport`,c=`${i}__content`,p=`${i}__overflowDecorators`,u={shadows:`${p}--shadows`,borders:`${p}--borders`,both:g(`${p}--shadows`,`${p}--borders`)}[o],d="is-scrolled-at-start",m="is-scrolled-at-end",f=`${i}__arrows`;return{classProps:{root:g(i,s,{[a]:t,[m]:n,[d]:r}),viewport:l,content:c,overflowDecorators:g(p,u),arrows:f}}},ju=e=>{const{ariaLabelArrows:t,direction:n,scrollStep:r,viewportRef:o,...i}=e,{classProps:s}=Ou({direction:n}),{styleProps:a,props:l}=Yt(i),c=Rt("button",{classProps:s.arrows,styleProps:a}),p=ee(n),{arrows:u}=$u(p,t,r),{handleScroll:d}=ku({viewportRef:o,direction:n});return or.jsx("div",{...l,...c,children:u.map((({icon:e,label:t,step:n})=>or.jsx(Mi,{"aria-label":t,onClick:()=>d(n),size:"small",isSymmetrical:!0,children:or.jsx(mr,{name:e})},e)))})};ju.spiritComponent="ScrollViewArrows";const Du=({viewportReference:e,contentReference:n,direction:r})=>{const[o,i]=t.useState(!1),[s,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 u=p[l]<=-1,d=p[c]>=1;u!==o&&i(u),d!==s&&a(d)},c=t.useCallback(Me(l,50),[l]);return Rn({ref:e,onResize:c}),t.useEffect(l,[]),{isScrolledAtEnd:s,isScrolledAtStart:o,onScroll:Me(l,50)}},Lu=e=>{const{ariaLabelArrows:n,arrowsScrollStep:r=300,children:o,direction:i=Au,hasArrows:s=!1,isScrollbarDisabled:a,overflowDecorators:l=Ru,...c}=e,p=t.useRef(null),u=t.useRef(null),{isScrolledAtEnd:d,isScrolledAtStart:m,onScroll:f}=Du({contentReference:p,direction:i,viewportReference:u}),{classProps:h}=Ou({direction:i,isScrollbarDisabled:a,isScrolledAtStart:m,isScrolledAtEnd:d,overflowDecorators:l}),{styleProps:y,props:v}=Yt(c);return or.jsxs("div",{...v,...y,className:g(h.root,y.className),children:[or.jsx("div",{className:h.viewport,onScroll:f,ref:u,tabIndex:0,children:or.jsx("div",{className:h.content,ref:p,children:o})}),or.jsx("div",{className:h.overflowDecorators,"aria-hidden":"true"}),s&&or.jsx(ju,{ariaLabelArrows:n,direction:i,scrollStep:r,viewportRef:u})]})};Lu.spiritComponent="ScrollView";const Iu={[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"}}},Mu=(e={})=>{const{size:t}=e;return{modifiedProps:t?{...Iu[t],...e}:e}},Fu=e=>{const{backgroundColor:t}=e||{},n=on(`bg-${t}`),r=t?n:"";return{classProps:g({[r]:t})}},Bu={elementType:"section",hasContainer:!0,size:void 0},Uu=t.forwardRef(((e,t)=>{const n={...Bu,...e},{elementType:r=Bu.elementType,backgroundColor:o,children:i,containerProps:s,hasContainer:a,...l}=n,c=r,{classProps:p}=Fu({backgroundColor:o}),{modifiedProps:u}=Mu(l),{styleProps:d,props:m}=Yt(u,{paddingTop:ce.paddingTop,paddingBottom:ce.paddingBottom,paddingY:ce.paddingY,textAlignment:pe.textAlignment}),f=Rt(c,{classProps:p,styleProps:d});return or.jsx(c,{...m,...f,ref:t,children:a?or.jsx(ji,{...s,children:i}):i})}));Uu.spiritComponent="Section",Uu.displayName="Section";const Hu=t.createContext({isMultiselect:!1,name:"",selectedValue:[],setSelectedValue:()=>{},onSelectionChange:()=>{}}),zu=Hu.Provider,Vu=e=>{const{isFluid:t,variant:n=Y.OUTLINE,...r}=e,o=on("SegmentedControl"),i=`${o}--fluid`,s=`${o}Item`,a=`${s}__input`,l=`${s}__label`;return{classProps:{root:g(o,`${o}--${n}`,{[i]:t}),input:a,label:l},props:r}},Wu={isFluid:!1,isMultiselect:!1,variant:Y.OUTLINE},Gu=e=>{const t={...Wu,...e},{children:n,isMultiselect:r,label:o,name:i,onSelectionChange:s,selectedValue:a,setSelectedValue:l,...c}=t,{classProps:p,props:u}=Vu(c),{styleProps:d,props:m}=Yt(u),f={isMultiselect:r,name:i,selectedValue:a,setSelectedValue:l,onSelectionChange:s};return or.jsx(zu,{value:f,children:or.jsxs("fieldset",{...m,...d,className:g(p.root,d.className),children:[or.jsx(gi,{elementType:"legend",children:o}),n]})})};Gu.spiritComponent="SegmentedControl";const qu=t.forwardRef(((e,n)=>{const{isMultiselect:r,name:o,onSelectionChange:i,selectedValue:s,setSelectedValue:a}=t.useContext(Hu),{id:l,isDisabled:c,value:p,children:u,...d}=e,{classProps:m,props:f}=Vu(d),{styleProps:h,props:y}=Yt(f),v=r?Array.isArray(s)&&s.includes(String(p)):s===String(p);return or.jsxs(or.Fragment,{children:[or.jsx("input",{...y,...h,...c&&{disabled:!0},className:g(m.input,h.className),type:r?"checkbox":"radio",name:o,id:l,value:p,checked:v,onChange:()=>(e=>{if(c)return;let t;if(r){const n=Array.isArray(s)?s:[];t=n.includes(e)?n.filter((t=>t!==e)):[...n,e]}else t=e;a(t),i&&i(t)})(String(p))}),or.jsx("label",{ref:n,htmlFor:l,...h,className:g(m.label,h.className),children:u})]})}));qu.spiritComponent="SegmentedControlItem",qu.displayName="SegmentedControlItem";const Xu=({isDisabled:e,isFluid:t,isLabelHidden:n,isRequired:r,size:o,validationState:i})=>{const s=on("Select"),a=`${s}--fluid`,l=`${s}--disabled`,c=`${s}--${o}`,p=`${s}--${i}`,u=`${s}__label`,d=`${u}--required`,m=`${u}--hidden`,f=`${s}__inputContainer`,h=`${s}__input`,y=`${s}__icon`,v=`${s}__validationText`,b=`${s}__helperText`;return{classProps:{root:g(s,{[l]:e,[a]:t,[c]:o,[p]:i}),label:g(u,{[d]:r,[m]:n}),container:f,input:h,icon:y,validationText:v,helperText:b}}},Yu=t.forwardRef(((e,t)=>{const{"aria-describedby":n="",children:r,hasValidationIcon:o,helperText:i,id:s,isDisabled:a,isFluid:l,isLabelHidden:c,isRequired:p,label:u,size:d=V.MEDIUM,validationState:m,validationText:f,...h}=e,{classProps:y}=Xu({isDisabled:a,isFluid:l,isLabelHidden:c,isRequired:p,size:d,validationState:m}),{styleProps:v,props:b}=Yt(h),[x,T]=Zt(n),P=wi({validationState:m,validationText:f});return or.jsxs("div",{...v,className:g(y.root,v.className),children:[or.jsx(Si,{htmlFor:s,UNSAFE_className:y.label,children:u}),or.jsxs("div",{className:y.container,children:[or.jsx("select",{...b,...x,id:s,className:y.input,disabled:a,required:p,ref:t,children:r}),or.jsx("div",{className:y.icon,children:or.jsx(mr,{name:"chevron-down",boxSize:d===V.SMALL?16:20})})]}),or.jsx(Pi,{UNSAFE_className:y.helperText,id:`${s}__helperText`,registerAria:T,helperText:i}),m&&or.jsx(Ci,{UNSAFE_className:y.validationText,...o&&{hasValidationStateIcon:m},id:`${s}__validationText`,validationText:f,registerAria:T,role:P})]})}));function Ku(e){const{size:t,...n}=e||{},r=on("Skeleton"),o=`${r}--${t}`,i=`${r}--text`,s=`${r}--heading`,a=`${r}__item`;return{classProps:{root:g(r,{[o]:t}),text:i,heading:s,item:a},props:n}}Yu.spiritComponent="Select",Yu.displayName="Select";const Qu=()=>{const{classProps:e}=Ku();return or.jsx("div",{className:g(e.item),"aria-hidden":"true"})};Qu.spiritComponent="SkeletonItem";const Zu={size:W.MEDIUM,lines:1,elementType:"div"},Ju=e=>{const t={...Zu,...e},{elementType:n="div",lines:r,...o}=t,{classProps:i,props:s}=Ku(o),{styleProps:a,props:l}=Yt(s),c=Rt(n,{classProps:i.root,classPropsText:i.text,styleProps:a,otherProps:l}),p=[...Array(r??1).keys()];return or.jsx(n,{...l,...c,children:p.map((e=>or.jsx(Qu,{},`skeleton-item-${e.toString()}`)))})};Ju.spiritComponent="SkeletonText";const ed={size:W.MEDIUM,lines:1,elementType:"div"},td=e=>{const t={...ed,...e},{elementType:n="div",lines:r,...o}=t,{classProps:i,props:s}=Ku(o),{styleProps:a,props:l}=Yt(s),c=Rt(n,{classProps:i.root,classPropsHeading:i.heading,styleProps:a,otherProps:l}),p=[...Array(r??1).keys()];return or.jsx(n,{...l,...c,children:p.map((e=>or.jsx(Qu,{},`skeleton-item-${e.toString()}`)))})};td.spiritComponent="SkeletonHeading";const nd=(e,t)=>{if(!t)return{};const n=`--${e}`;return{[n]:`${t?.toString()}px`}},rd=(e,t)=>{const n={},r=`--${P}radius-`;return"object"==typeof t&&null!==t?Object.keys(t).forEach((o=>{const i="mobile"===o?"":`-${o}`,s=t[o];n[`--${e}${i}`]=`var(${r}${s})`})):t&&(n[`--${e}`]=`var(${r}${t})`),n},od={borderRadius:j[400],elementType:"div"},id=e=>{const t={...od,...e},{elementType:n="div",...r}=t,{classProps:o,skeletonShapeStyleProps:i,props:s}=(e=>{const{height:t,width:n,borderRadius:r,...o}=e,i=on("Skeleton"),s=g(i,`${i}--shape`),a=`${P}skeleton-shape`;return{classProps:s,skeletonShapeStyleProps:{...nd(`${a}-width`,n),...nd(`${a}-height`,t),...r?rd(`${a}-radius`,r):{}},props:o}})(r),{styleProps:a,props:l}=Yt(s),c=Rt(n,{classProps:o,styleProps:a,skeletonShapeStyleProps:i,otherProps:l});return or.jsx(n,{...l,...c})};function sd(e){const{...t}=e;return{classProps:on("SkipLink"),props:t}}id.spiritComponent="SkeletonShape";const ad={elementType:"a"},ld=t.forwardRef(((e,t)=>{const n={...ad,...e},{elementType:r=ad.elementType,children:o,...i}=n,{classProps:s,props:a}=sd(i),{styleProps:l,props:c}=Yt(a),p=Rt("a",{classProps:s,styleProps:l,otherProps:c});return or.jsx(r,{...c,...p,href:i.href,ref:t,children:o})}));ld.spiritComponent="SkipLink",ld.displayName="SkipLink";function cd(e){const{isDisabled:t,isFluid:n,isLabelHidden:r,validationState:o,...i}=e,s=on("Slider"),a=g(s),l=`${s}--disabled`,c=`${s}--fluid`,p=`${s}--${o}`,u=g(`${s}__label`),d=`${s}__label--hidden`,m=`${s}__input`,f=`${s}__helperText`,h=`${s}__validationText`;return{classProps:{root:g(a,{[l]:t,[c]:n,[p]:o}),label:g(u,{[d]:r}),input:m,helperText:f,validationText:h},props:i}}const pd={max:100,min:0,step:1},ud=t.forwardRef(((e,t)=>{const n={...pd,...e},{"aria-describedby":r,hasValidationIcon:o,helperText:i,id:s,isDisabled:a,label:l,max:c,min:p,step:u,validationState:d,validationText:m,value:f,...h}=n,{classProps:y,props:v}=cd({...h,isDisabled:a,validationState:d}),{styleProps:b,props:x}=Yt(v),[T,P]=Zt(r),S=wi({validationState:d,validationText:m}),E="--slider-position",C=e=>`${Math.round(100*(e-p)/(c-p))}%`;return or.jsxs("div",{...b,...x,className:g(y.root,b.className),children:[or.jsx(Si,{htmlFor:s,UNSAFE_className:y.label,children:l}),or.jsx("input",{...T,className:y.input,id:s,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:u,value:f,disabled:a,ref:t}),or.jsx(Pi,{UNSAFE_className:y.helperText,helperText:i,id:`${s}__helperText`,registerAria:P}),d&&or.jsx(Ci,{UNSAFE_className:y.validationText,...o&&{hasValidationStateIcon:d},id:`${s}__validationText`,registerAria:P,validationText:m,role:S})]})}));function dd(){return{classProps:on("SplitButton")}}ud.spiritComponent="Slider",ud.displayName="Slider";const md={color:M.PRIMARY,size:V.MEDIUM},fd=e=>{const t={...md,...e},{children:n,color:r,size:o,isDisabled:i,...s}=t,{classProps:a}=dd(),{styleProps:l,props:c}=Yt(s);return or.jsx(Ho,{value:{color:r,size:o,isDisabled:i},children:or.jsx("div",{...l,...c,className:g(a,l.className),children:n})})},hd={dropdownPlacement:"bottom-end",dropdownTriggerIconName:"chevron-down"},gd=({children:e,...t})=>{const{styleProps:n,props:r}=Yt(t);return or.jsx("div",{...r,...n,children:e})};gd.spiritComponent="TabContent";const yd=t.createContext({selectedId:"",selectTab:e=>{},onSelectionChange:(e,t)=>{}}),vd=yd.Provider,bd=yd.Consumer,xd=()=>t.useContext(yd);function Td(e={selectedId:"",forTabPane:"",id:""}){const{spacing:t}=xd(),{selectedId:n,forTabPane:r,id:o,...i}=e,s=on("Tabs"),a=`${s}__item`,l=`${s}__link`,c=`${s}Pane`,p="is-selected",u=Fn(t,"tabs");return{classProps:{item:a,link:g(l,{[p]:!!r&&!!n&&n===r}),pane:g(c,{[p]:!!o&&!!n&&n===o}),root:s},props:i,styleProps:u}}const Pd=({children:e,forTabPane:t,onClick:n,...r})=>{const{selectTab:o,selectedId:i,onSelectionChange:s}=xd(),{classProps:a}=Td({forTabPane:t,selectedId:i}),{styleProps:l,props:c}=Yt(r);return or.jsx("li",{className:a.item,role:"presentation",children:or.jsx("button",{...c,...l,type:"button",className:g(a.link,l.className),role:"tab","aria-selected":i===t,id:`${t}-tab`,"aria-controls":t.toString(),onClick:e=>{o(t),n&&n(e),s&&s(i,t)},children:e})})};Pd.spiritComponent="TabItem";const Sd={itemProps:{}},Ed=t.forwardRef(((e,t)=>{const n={...Sd,...e},{elementType:r="a",children:o,itemProps:i={},routerOptions:s,...a}=n,{href:l}=a,c=r,{classProps:p}=Td(),{styleProps:u,props:d}=Yt(i),m=Rt(c,{classProps:p.link}),f=Nn({...a,routerOptions:s});return or.jsx("li",{...u,...d,className:g(p.item,u.className),role:"presentation",children:or.jsx(c,{...a,...m,href:l,onClick:f,ref:t,children:o})})}));Ed.spiritComponent="TabLink",Ed.displayName="TabLink";const Cd=({children:e,...t})=>{const{classProps:n,styleProps:r}=Td(),{styleProps:o,props:i}=Yt(t),s={style:{...o.style,...r}};return or.jsx("ul",{...i,...o,...s,className:g(n.root,o.className),role:"tablist",children:e})};Cd.spiritComponent="TabList";const wd=({children:e,id:t,...n})=>{const{selectedId:r}=xd(),{classProps:o}=Td({id:t,selectedId:r}),{styleProps:i,props:s}=Yt(n);return r===t?or.jsx("div",{...s,...i,id:t.toString(),className:g(o.pane,i.className),role:"tabpanel","aria-labelledby":`${t}-tab`,children:e}):null};wd.spiritComponent="TabPane";const Nd=({children:e,selectedTab:t,toggle:n,onSelectionChange:r,spacing:o})=>or.jsx(vd,{value:{selectedId:t,selectTab:n,onSelectionChange:r,spacing:o},children:e});Nd.spiritComponent="Tabs";const _d=e=>{const[n,r]=t.useState(e);return{selectedId:n,selectTab:t.useCallback((e=>{r(e)}),[])}},Ad=({children:e,defaultSelectedTab:t,onSelectionChange:n,spacing:r})=>{const{selectedId:o,selectTab:i}=_d(t);return or.jsx(vd,{value:{selectedId:o,selectTab:i,onSelectionChange:n,spacing:r},children:e})};Ad.spiritComponent="UncontrolledTabs";const Rd={NEUTRAL:"neutral",SELECTED:"selected"},kd=(e,t)=>{if(!e)return{};const n=Object.keys(w).includes(e)?`${x.EMOTION}-`:"",r=t?U.SUBTLE:U.BASIC,o=t?U.SUBTLE:U.BASIC,i=t?U.BASIC:U.SUBTLE;return{[`border-${n}${e}-${r}`]:!0,[`bg-${n}${e}-${o}`]:!0,[`text-${n}${e}-${i}`]:!0}};function $d(e){const{color:t,isDisabled:n,isSubtle:r,size:o,...i}=e,s=on("Tag"),a=`${s}--${t}`,l=`${s}--disabled`,c=`${s}--${o}`,p=`${s}--subtle`;return{classProps:g(s,{[a]:t,[l]:n,[c]:o,[p]:r,...!n&&kd(t,r)}),props:i}}const Od={color:Rd.NEUTRAL,elementType:"span",isSubtle:!1,size:W.MEDIUM},jd=t.forwardRef(((e,t)=>{const n={...Od,...e},{elementType:r=Od.elementType,children:o,...i}=n,s=r,{classProps:a,props:l}=$d(i),{styleProps:c,props:p}=Yt(l),u=Rt(s,{classProps:a,styleProps:c,otherProps:p});return or.jsx(s,{...p,...u,ref:t,children:o})}));function Dd(e){const{emphasis:t,size:n,textColor:r,...o}=e,i=on("typography-body"),s=on(r?`text-${r}`:"");return{classProps:g(`${i}-${n}-${t}`,{[s]:!!r}),props:o}}jd.spiritComponent="Tag",jd.displayName="Tag";const Ld={elementType:"p",emphasis:H.REGULAR,size:W.MEDIUM},Id=e=>{const t={...Ld,...e},{elementType:n="p",children:r,...o}=t,{classProps:i,props:s}=Dd(o),{styleProps:a,props:l}=Yt(s,{isTextBalanced:pe.isTextBalanced,textAlignment:pe.textAlignment,textHyphens:pe.textHyphens,textWordBreak:pe.textWordBreak}),c=Rt(n,{classProps:i,styleProps:a,otherProps:l});return or.jsx(n,{...l,...c,children:r})};Id.spiritComponent="Text";const Md=t.forwardRef(((e,t)=>{const{classProps:n,props:r}=function(e){const{isMultiline:t,id:n,...r}=e;return{classProps:{input:`${on(t?"TextArea":"TextField")}__input`},props:{...r,isMultiline:t,id:n}}}(e),{id:o,isDisabled:i,isMultiline:s,isRequired:a,inputWidth:l,type:c,...p}=r,{props:u}=Yt(p),d=s?"textarea":"input",m=s?void 0:c;return or.jsx(d,{...u,className:n.input,disabled:i,id:o,required:a,size:l,type:m,ref:t})}));Md.spiritComponent="TextFieldBaseInput",Md.displayName="TextFieldBaseInput";const Fd=e=>{const{t:t}=gn(),{children:n,isPasswordShown:r,onToggleClick:o,isDisabled:i,size:s}=e,{classProps:a}=function(){const e=on("TextField");return{classProps:{passwordToggle:`${e}__passwordToggle`,passwordToggleButton:`${e}__passwordToggle__button`,passwordToggleIcon:`${e}__passwordToggle__icon`}}}(),l=t(r?"textField.password.hide":"textField.password.show");return or.jsxs("div",{className:a.passwordToggle,children:[n,or.jsx("button",{className:a.passwordToggleButton,type:"button",role:"switch","aria-checked":!!r,"aria-label":l,onClick:()=>o(),disabled:i,children:or.jsx("span",{className:a.passwordToggleIcon,children:or.jsx(mr,{name:"visibility-"+(r?"off":"on"),boxSize:s===V.SMALL?16:20})})})]})};Fd.spiritComponent="TextFieldBasePasswordToggle";function Bd(e){const n=e.displayName||e.name||"Component",r=(n,r)=>{const{isPasswordShown:o,passwordToggle:i}=(()=>{const[e,n]=t.useState(!1);return{isPasswordShown:e,passwordToggle:()=>n(!e)}})(),{hasPasswordToggle:s,isDisabled:a,size:l,...c}=n;return s?or.jsx(Fd,{isDisabled:a,isPasswordShown:o,onToggleClick:i,size:l,children:or.jsx(e,{...c,type:o?"text":"password",isDisabled:a,ref:r})}):or.jsx(e,{...c,isDisabled:a,ref:r})};return r.displayName=`withPasswordToggle(${n})`,r}Bd.spiritComponent="withPasswordToggle";const Ud=t.forwardRef(Bd(Md)),Hd=t.forwardRef(((e,t)=>{const{"aria-describedby":n="",counterProps:r,hasValidationIcon:o,helperText:i,id:s,label:a,size:l=V.MEDIUM,validationState:c,validationText:p,...u}=e,{classProps:d,props:m}=function(e){const{isFluid:t,isMultiline:n,isLabelHidden:r,size:o,validationState:i,...s}=e,{isDisabled:a,isRequired:l}=s,c=on(n?"TextArea":"TextField"),p=`${c}--disabled`,u=`${c}--fluid`,d=`${c}--${o}`,m=`${c}--${i}`,f=`${c}__input`,h=`${c}__label`,y=`${c}__label--required`,v=`${c}__label--hidden`,b=`${c}__validationText`,x=`${c}__passwordToggle`,T=`${c}__passwordToggle__button`,P=`${c}__passwordToggle__icon`,S=`${c}__helperText`;return{classProps:{root:g(c,{[p]:a,[u]:t,[m]:i,[d]:o}),label:g(h,{[y]:l,[v]:r}),input:f,helperText:S,validationText:b,passwordToggle:x,passwordToggleButton:T,passwordToggleIcon:P,counter:`${c}__counter`},props:{...s,isMultiline:n}}}({id:s,size:l,validationState:c,...u}),{styleProps:f,props:h}=Yt(m),[y,v]=Zt(n),b=wi({validationState:c,validationText:p}),x=i||c&&p,T=or.jsx(Pi,{UNSAFE_className:d.helperText,id:`${s}__helper-text`,registerAria:v,helperText:i}),P=c?or.jsx(Ci,{UNSAFE_className:d.validationText,elementType:"span",...o&&{hasValidationStateIcon:c},id:`${s}__validation-text`,validationText:p,registerAria:v,role:b}):null,S=r?or.jsx(xi,{...r,id:s,registerAria:v,UNSAFE_className:d.counter}):null;return or.jsxs("div",{...f,className:g(d.root,f.className),children:[or.jsx(Si,{htmlFor:s,UNSAFE_className:d.label,children:a}),or.jsx(Ud,{...h,...y,id:s,ref:t,size:l}),r?or.jsxs(bo,{direction:"horizontal",isWrapping:!1,alignmentX:"space-between",alignmentY:"top",children:[x?or.jsxs("div",{children:[P,T]}):null,S]}):or.jsxs(or.Fragment,{children:[T,P]})]})}));Hd.spiritComponent="TextFieldBase",Hd.displayName="TextFieldBase";const zd=t.forwardRef(((e,n)=>{const{onInput:r,isAutoResizing:o,autoResizingMaxHeight:i=400,counterThreshold:s,hasCounter:a,onChange:l,value:c,defaultValue:p,helperText:u,isDisabled:d,id:m,...f}=e,h=t.useRef(n),{adjustHeightOnAutoresize:g,onInput:y}=(({elementReference:e,maxHeight:n,onInput:r,isAutoResizing:o})=>{const i=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"},s=()=>{if(o){const t=e?.current;t&&i(t)}};return t.useEffect((()=>{s()}),[]),{adjustHeight:i,adjustHeightOnAutoresize:s,onInput:e=>{s(),r&&r(e)}}})({elementReference:h,onInput:r,isAutoResizing:o,maxHeight:i}),b=Mt(c),x=Mt(p),{counterProps:T,handleChange:P}=vi({value:b,defaultValue:x,counterThreshold:s,hasCounter:a,onChange:l}),S=((e,t)=>!0===e||void 0!==t)(a,s),E=S?void 0===(C=f.maxLength)?1e4:C:void 0;var C;const w=S?P:l,N=t.useRef(!1);return t.useEffect((()=>{void 0!==s&&void 0!==f.maxLength&&f.maxLength<s&&!N.current&&(N.current=!0,v(0,"TextArea: `maxLength` should be greater than or equal to `counterThreshold` to keep visible counter and hard input limit aligned."))}),[s,f.maxLength]),or.jsx(Hd,{id:m,isMultiline:!0,ref:h,onInput:y,onFocus:g,onChange:w,value:c,defaultValue:p,helperText:u,isDisabled:d,counterProps:T,...f,...void 0!==E&&{maxLength:E}})}));zd.spiritComponent="TextArea",zd.displayName="TextArea";const Vd=t.forwardRef(((e,t)=>or.jsx(Hd,{type:"text",...e,ref:t})));Vd.spiritComponent="TextField",Vd.displayName="TextField";const Wd="dot",Gd="number",qd=V.SMALL;function Xd(e){const{markerBackgroundColor:t,markerBorderColor:n,markerTextColor:r,markerVariant:o,markerSize:i=qd,...s}=e||{},a=on("Timeline"),l=`${a}Content`,c=`${a}Heading`,p=`${a}Marker`,u=`${a}Step`,d=o===Wd||o===Gd,m=on(`bg-${t}`),f=on(`border-${n}`),h=on(`text-${r}`),y=t?m:"",v=n?f:"",b=r?h:"",x=g(p,{[`${p}--${o}`]:!!o,[y]:d,[v]:d,[b]:!!r}),T=Ot(a,i);return{classProps:{content:l,heading:c,marker:x,root:g(a,...T),step:u},props:s}}const Yd={elementType:"ol",size:qd},Kd=e=>{const t={...Yd,...e},{elementType:n="ol",children:r,size:o,...i}=t,{classProps:s}=Xd({markerSize:o}),{styleProps:a,props:l}=Yt(i),c=Rt(n,{classProps:s.root,styleProps:a,otherProps:l});return or.jsx(n,{...l,...c,children:r})};Kd.spiritComponent="Timeline";const Qd=e=>{const{children:t,...n}=e,{classProps:r}=Xd(),{styleProps:o,props:i}=Yt(n);return or.jsx("div",{...i,className:g(r.content,o.className),style:o.style,children:t})};Qd.spiritComponent="TimelineContent";const Zd=e=>{const{children:t,...n}=e,{classProps:r}=Xd(),{styleProps:o,props:i}=Yt(n);return or.jsx("div",{...i,className:g(r.heading,o.className),style:o.style,children:t})};Zd.spiritComponent="TimelineHeading";const Jd={variant:"number"},em=e=>{const t={...Jd,...e},{backgroundColor:n,borderColor:r,children:o,textColor:i,variant:s,...a}=t,{classProps:l}=Xd({markerBackgroundColor:n,markerBorderColor:r,markerTextColor:i,markerVariant:s}),{styleProps:c,props:p}=Yt(a);return or.jsx("div",{...p,className:g(l.marker,c.className),style:c.style,"aria-hidden":"true",children:s!==Wd&&o})};em.spiritComponent="TimelineMarker";const tm={elementType:"li"},nm=e=>{const t={...tm,...e},{elementType:n="li",children:r,...o}=t,{classProps:i}=Xd(),{styleProps:s,props:a}=Yt(o),l=Rt(n,{classProps:i.step,styleProps:s,otherProps:a});return or.jsx(n,{...a,...l,children:r})};nm.spiritComponent="TimelineStep";const rm={alignmentX:A.CENTER,alignmentY:k.BOTTOM,isCollapsible:!0},om=e=>{const t={...rm,...e},{children:n,alignmentX:r,alignmentY:o,...i}=t,{classProps:s,props:a}=function(e){const{alignmentX:t,alignmentY:n,isCollapsible:r,...o}=e,i=on("Toast"),s=[...(a=[t,n],a.map((e=>"object"==typeof e&&null!==e?Object.keys(e).reduce(((t,n)=>[...t,`${i}${"mobile"===n?"":`--${n}`}--${e[n]}`]),[]):[`${i}--${e}`])))];var a;return{classProps:{root:g(i,r&&`${i}--collapsible`,...s),queue:`${i}__queue`},props:o}}({...i,alignmentX:r,alignmentY:o}),{styleProps:l,props:c}=Yt(a);return or.jsx("div",{...c,...l,className:g(s.root,l.className),role:"log",children:or.jsx("div",{className:s.queue,children:n})})};om.spiritComponent="Toast";const im={entering:"is-open is-transitioning",entered:"is-open",exiting:"is-hidden is-transitioning",exited:"is-hidden"},sm="neutral",am={NEUTRAL:"neutral"},lm=e=>{const{color:t,isDismissible:n,...r}=e,o=on("ToastBar"),i=`${o}__box`,s=`${o}__close`,a=`${o}__container`,l=`${o}__content`,c=`${o}__link`,p=on("link-underlined");return{classProps:{root:g(o,`${o}--${t||am.NEUTRAL}`,n&&`${o}--dismissible`),box:i,close:s,container:a,content:l,link:g(c,p)},props:r}},cm=e=>{const{onClose:t,isOpen:n,id:r,closeLabel:o,isDismissible:i,...s}=e,{classProps:a,props:l}=lm({...s}),{styleProps:c,props:p}=Yt(l);return i&&t?or.jsxs("button",{...p,...c,type:"button",className:g(a.close,c.className),onClick:t,"aria-expanded":n,"aria-controls":r,children:[or.jsx(mr,{name:"close"}),or.jsx(gi,{children:o})]}):null};cm.spiritComponent="ToastCloseButton";const pm=e=>{const{t:n}=gn(),{id:r,children:o,closeLabel:i,color:s=sm,hasIcon:a,iconName:l,isDismissible:c,isOpen:p=!0,onClose:u=()=>{},...d}=e,m=i??n("common.close"),f=t.useRef(null),h=function({color:e,iconName:t}){const n=Tn(e,{danger:"danger",informative:"info",neutral:"info",success:"check-plain",warning:"warning"},sm);return t||n}({color:s,iconName:l}),{classProps:y,props:v}=lm({...d,color:s,isDismissible:c}),{styleProps:b,props:x}=Yt(v);return or.jsx(eo,{in:p,nodeRef:f,timeout:250,unmountOnExit:!0,children:e=>or.jsx("div",{...b,...x,id:r,className:g(y.root,im[e],b.className),ref:f,children:or.jsxs("div",{className:y.box,children:[or.jsxs("div",{className:y.container,children:[(a||l)&&or.jsx(mr,{name:h,boxSize:20}),or.jsx("div",{className:y.content,children:o})]}),or.jsx(cm,{id:r,isOpen:p,closeLabel:m,onClose:u,isDismissible:c})]})})})};pm.spiritComponent="ToastBar";const um=e=>{const{children:t,...n}=e,{styleProps:r,props:o}=Yt(n);return or.jsx("div",{...r,...o,className:g(on("text-truncate-multiline"),r.className),children:t})};um.spiritComponent="ToastBarMessage";const dm={elementType:"a"},mm=t.forwardRef(((e,t)=>{const n={...dm,...e},{elementType:r=dm.elementType,children:o,...i}=n,s=r,{classProps:a,props:l}=lm({...i}),{styleProps:c,props:p}=Yt(l),u=Rt(s,{classProps:a.link,styleProps:c,otherProps:p});return or.jsx(s,{...p,...u,ref:t,children:o})}));mm.spiritComponent="ToastBarLink",mm.displayName="ToastBarLink";const fm=t.createContext({clear:()=>{},hide:()=>{},queue:[],setQueue:()=>{},show:()=>{}}),hm=()=>{const e=t.useContext(fm);if(!e)throw new Error("useToast has to be used within <ToastProvider>");return e},gm=e=>{const{t:n}=gn(),{alignmentX:r,alignmentY:o,isCollapsible:i,closeLabel:s,...a}=e,l=s??n("common.close"),{hide:c,queue:p}=hm();return or.jsx(om,{alignmentX:r,alignmentY:o,isCollapsible:i,children:p.map((e=>{const{color:n,iconName:r,id:o,isOpen:i,content:s,hasIcon:p,isDismissible:u,linkProps:d}=e;return t.createElement(pm,{...a,key:o,id:o,closeLabel:l,color:n,hasIcon:p,iconName:r,isDismissible:u,onClose:()=>c(o),isOpen:i&&!!s},or.jsx(um,{children:s.message}),s.link&&or.jsx(mm,{...d,children:s.link}))}))})};function ym(e){const{hasIndicators:t=!1,inputPosition:n=te.END,isDisabled:r=!1,isFluid:o=!1,isLabelHidden:i=!1,isRequired:s=!1,validationState:a,...l}=e,c=on("Toggle"),p=`${c}--fluid`,u=`${c}--disabled`,d=`${c}__text`,m=`${c}__label`,f=`${m}--hidden`,h=`${c}--${a}`,y=`${m}--required`,v=`${c}__input`,b=`${v}--indicators`,x=Pn(c,n),T=`${c}__helperText`,P=`${c}__validationText`;return{classProps:{root:g(c,{[x]:x,[p]:o,[u]:r,[h]:a}),label:g(m,{[y]:s,[f]:i}),text:d,helperText:T,input:g(v,{[b]:t}),validationText:P},props:{...l,validationState:a,isDisabled:r,isRequired:s}}}gm.spiritComponent="UncontrolledToast";const vm=t.forwardRef(((e,n)=>{const{classProps:r,props:o}=ym(e),{"aria-describedby":i="","aria-details":s,details:a,hasValidationIcon:l,id:c,isDisabled:p,isChecked:u=!1,isRequired:d,label:m,helperText:f,onChange:h=()=>{},validationState:y,validationText:v,...b}=o,{styleProps:x,props:T}=Yt(b),[P,S]=Zt(i),[E,C]=Jt(s),[w,N]=t.useState(u),_=wi({validationState:y,validationText:v});return or.jsxs("div",{style:x.style,className:g(r.root,x.className),children:[or.jsxs("div",{className:r.text,children:[or.jsx(Si,{UNSAFE_className:r.label,htmlFor:c,children:m}),a&&or.jsx(Ai,{id:`${c}-details`,registerAriaDetails:C,children:a}),or.jsx(Pi,{UNSAFE_className:r.helperText,id:`${c}__helperText`,registerAria:S,helperText:f}),y&&or.jsx(Ci,{UNSAFE_className:r.validationText,...l&&{hasValidationStateIcon:y},id:`${c}__validationText`,validationText:v,registerAria:S,role:_})]}),or.jsx("input",{...T,...P,...E,type:"checkbox",id:c,className:r.input,disabled:p,checked:w,required:d,onChange:e=>{N(e.target.checked),h(e)},ref:n})]})}));vm.spiritComponent="Toggle",vm.displayName="Toggle";const bm=(e,t)=>{const n=e.trim().split(/\s+/);return n.length<=t?e:`${n.slice(0,t).join(" ")}…`},xm=(e,t)=>e.length<=t?e:`${e.slice(0,t)}…`,Tm=e=>e,Pm=(e,n,r)=>t.useMemo((()=>{if("string"!=typeof e)return e;if(!r||r<=0)return e;switch(n){case we.WORDS:return bm(e,r);case we.CHARACTERS:return xm(e,r);case we.LINES:default:return e}}),[e,n,r]),Sm=e=>{const{limit:t,mode:n=we.LINES,...r}=e,o=on(n===we.LINES?"text-truncate-multiline":""),i={};return n===we.LINES&&void 0!==t&&(i["--text-truncate-lines"]=t),{classProps:o,props:r,styleProps:i,effectiveMode:n,effectiveLimit:t}},Em={elementType:"span"},Cm=e=>{const t={...Em,...e},{children:n,elementType:r="span",...o}=t,{classProps:i,props:s,styleProps:a,effectiveMode:l,effectiveLimit:c}=Sm(o),p=Pm(n,l,l!==we.LINES?c:void 0),{styleProps:u,props:d}=Yt(s),m=Rt(r,{classProps:i,styleProps:u,truncateStyleProps:{style:{...u.style,...a}}});return or.jsx(r,{...d,...m,children:p})};Cm.spiritComponent="Truncate";const wm="file",Nm="edit",_m={TOP:"--spirit-file-image-top",LEFT:"--spirit-file-image-left",WIDTH:"--spirit-file-image-width",HEIGHT:"--spirit-file-image-height"},Am=["x","y","cropWidth","cropHeight","originalWidth","originalHeight"];function Rm(e,t){const n=(e=>null!=e&&Am.every((t=>null!=e[t])))(e),r=n?(e=>{const{x:t,y:n,cropWidth:r,cropHeight:o,originalWidth:i,originalHeight:s}=e;let a;a=o>r?48/r:48/o;const l=Math.round(t*a),c=Math.round(n*a),p=Math.round(i*a),u=Math.round(s*a);return{[_m.TOP]:`-${c}px`,[_m.LEFT]:`-${l}px`,[_m.WIDTH]:`${p}px`,[_m.HEIGHT]:`${u}px`}})(e):void 0;return{hasCoordsInMeta:n,imageCropStyles:r,imageObjectFitStyles:t?{"--spirit-file-image-object-fit":t}:void 0}}const km=e=>{const t=on("UNSTABLE_File"),{imageCropStyles:n,imageObjectFitStyles:r,hasCoordsInMeta:o}=Rm(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}}}},$m={elementType:"li",iconName:wm},Om=e=>{const t={...$m,...e},{t:n}=gn(),{editText:r,elementType:o,hasValidationIcon:i,helperText:s,iconName:a,id:l,isDisabled:c,label:p,onDismiss:u,onChange:d,previewSlot:m,removeText:f,validationState:h,validationText:y,...v}=t,b=r??n("attachment.edit"),x=f??n("attachment.remove"),{classProps:T}=km({isDisabled:c,validationState:h}),{styleProps:P,props:S}=Yt(v),E=wi({validationState:h,validationText:y}),C={size:"large",isSymmetrical:!0,isDisabled:c},w=d?or.jsxs(Mi,{...C,onClick:d,children:[or.jsx(gi,{children:b}),or.jsx(mr,{name:Nm,boxSize:16,"aria-hidden":"true"})]}):null,N=u?or.jsxs(Mi,{...C,onClick:u,children:[or.jsx(gi,{children:x}),or.jsx(mr,{name:"close",boxSize:16,"aria-hidden":"true"})]}):null,_=o;return or.jsxs(_,{...S,...P,...null!=l&&""!==l?{id:l}:{},className:g(T.root,P.className),children:[m??or.jsx("div",{className:T.preview,children:or.jsx(mr,{name:a,boxSize:20,"aria-hidden":"true"})}),or.jsx("div",{className:T.content,children:or.jsxs("div",{className:T.text,children:[or.jsx("span",{className:T.name,children:or.jsx("span",{className:on("text-truncate"),children:p})}),s&&or.jsx("div",{className:T.helperText,children:s}),h&&or.jsx(Ci,{UNSAFE_className:T.validationText,elementType:"div",...i&&{hasValidationStateIcon:h},role:E,validationText:y})]})}),w&&N?or.jsxs(bo,{alignmentX:{mobile:"stretch",tablet:"left"},alignmentY:"stretch",spacingX:"space-500",children:[w,N]}):or.jsxs(or.Fragment,{children:[w,N]})]})};Om.spiritComponent="UNSTABLE_File",Om.displayName="UNSTABLE_File";const jm={meta:void 0,imageObjectFit:ne.COVER},Dm=e=>{const t={...jm,...e},{label:n,imagePreview:r,meta:o,imageObjectFit:i,...s}=t,{classProps:a}=km({meta:o,imageObjectFit:i}),l=a.imageCropStyles??{},c=a.imageObjectFitStyles??{},{styleProps:p,props:u}=Yt(s);return or.jsx("span",{...u,...p,className:g(a.preview,p.className),children:or.jsx("img",{src:r,width:48,height:48,alt:n,style:{...l,...c}})})};Dm.spiritComponent="UNSTABLE_FileImagePreview",Dm.displayName="UNSTABLE_FileImagePreview";const Lm=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=""},...dn({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)}})}},Im=e=>{const t=on("UNSTABLE_FileUpload"),n="has-drag-and-drop",r=`${t}Input`,o=`${r}--disabled`,i=`${r}__dropZone--disabled`,s=`${r}__dropZone--compact`,a=`${r}--${e?.validationState}`,l="is-dragging",c=`${r}__dragAndDropLabel`,p=`${r}__dropZone`,u=`${r}__dropZoneContent`,d=`${r}__dropZoneLabel`,m=`${r}__helperText`,f=`${r}__input`,h=`${r}__label`,y=`${r}__label--hidden`,v=`${r}__label--required`,b=`${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,{[v]:e?.isRequired,[y]:e?.isLabelHidden}),input:f,dropLabel:c,helper:m,validationText:b,dropZone:{root:g(p,{[i]:e?.isDisabled,[s]:e?.isCompact}),content:u,label:d}}}}},Mm=e=>{const[n,r]=t.useState(!1),{"aria-describedby":o="",accept:i,buttonText:s="Browse",children:a,dropZoneRef:l,hasValidationIcon:c,helperText:p,iconName:u="upload",id:d,inputRef:m,isCompact:f,isDisabled:h,isDragAndDropSupported:y,isLabelHidden:v,isMultiple:b,isRequired:x,label:T,labelText:P,linkText:S,name:E,onFilesSelected:C,rootId:w,validationState:N,validationText:_,...A}=e,R=void 0!==E,k=y??n,{isDragging:$,onChange:O,onDragEnter:j,onDragLeave:D,onDragOver:L,onDrop:I}=Lm({onFilesSelected:R?C:void 0}),{classProps:M}=Im({isCompact:f,isDisabled:h,isDragAndDropSupported:k,isDragging:$,isLabelHidden:v,isRequired:x,validationState:N}),{styleProps:F,props:B}=Yt(A),[U,H]=Zt(o),z=wi({validationState:N,validationText:_}),V=d;return t.useEffect((()=>{void 0===y&&r("draggable"in document.createElement("span"))}),[y]),or.jsxs("div",{...B,...F,...null!=w&&""!==w?{id:w}:{},className:g(M.root,F.className),children:[R&&or.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:[or.jsx(Si,{htmlFor:V,UNSAFE_className:M.input.label,children:T}),or.jsx("input",{...U,type:"file",accept:i,id:V,ref:m,name:E,className:M.input.input,onChange:O,multiple:b,disabled:h}),or.jsxs("div",{ref:l,className:M.input.dropZone.root,children:[!f&&or.jsx(mr,{name:u,boxSize:28,"aria-hidden":"true"}),or.jsxs("div",{className:M.input.dropZone.content,children:[or.jsxs(Si,{htmlFor:V,UNSAFE_className:M.input.dropZone.label,children:[S,P&&or.jsxs(or.Fragment,{children:[" ",or.jsx("span",{className:M.input.dropLabel,children:P})]})]}),or.jsx(Pi,{UNSAFE_className:M.input.helper,id:`${V}-helper`,registerAria:H,helperText:p})]}),or.jsx(Xo,{"aria-hidden":"true",isDisabled:h,elementType:"div",type:null,children:s})]}),N&&or.jsx(Ci,{UNSAFE_className:M.input.validationText,elementType:"div",...c&&{hasValidationStateIcon:N},id:`${V}-validation`,validationText:_,registerAria:H,role:z})]}),a]})};Mm.spiritComponent="UNSTABLE_FileUpload",Mm.displayName="UNSTABLE_FileUpload";const Fm=e=>{const{hasBottomDivider:t=!1,...n}=e,r=on("UNSTABLE_Header"),o=`${r}Logo`,i=`${r}--bottomDivider`;return{classProps:{root:g(r,{[i]:t}),logo:o},props:n}},Bm=Object.freeze(Object.defineProperty({__proto__:null,useUnstableHeaderStyleProps:Fm},Symbol.toStringTag,{value:"Module"})),Um=e=>{const{children:t,...n}=e,{classProps:r,props:o}=Fm(n),{styleProps:i,props:s}=Yt(o);return or.jsx("header",{...s,className:g(r.root,i.className),style:i.style,children:t})};Um.spiritComponent="UNSTABLE_Header";const Hm={elementType:"a"},zm=t.forwardRef(((e,t)=>{const n={...Hm,...e},{elementType:r=Hm.elementType,children:o,...i}=n,s=r,{classProps:a,props:l}=Fm(i),{styleProps:c,props:p}=Yt(l),u=Rt(s,{classProps:a.logo,styleProps:c,otherProps:p});return or.jsx(s,{...p,...u,href:i.href,ref:t,children:o})}));zm.spiritComponent="UNSTABLE_HeaderLogo",zm.displayName="UNSTABLE_HeaderLogo";const Vm=V.MEDIUM,Wm={[V.SMALL]:W.XSMALL,[V.MEDIUM]:W.SMALL,[V.LARGE]:W.MEDIUM},Gm=t.createContext({size:V.MEDIUM}),qm=Gm.Provider,Xm={id:"",isDisabled:!1,onSelectionChange:()=>{},selectedKeys:[],selectionMode:oe},Ym=t.createContext(Xm),Km=Ym.Provider,Qm=()=>t.useContext(Ym),Zm=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},Jm=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:i,removeLabel:s,...a})=>{const{t:l}=gn(),{size:c=V.MEDIUM,tagDescriptionId:p}=t.useContext(Gm),u=s??fn(l("picker.removeItemLabel"),{itemLabel:Jm(o)}),d=t.useMemo((()=>r||!n?{}:{onBlurCapture:n.onBlurCapture,onFocusCapture:n.onFocusCapture,onKeyDown:n.onKeyDown}),[r,n]);return or.jsx(jd,{...a,color:"selected",elementType:"div",size:Wm[c],isDisabled:r,role:"row",tabIndex:r?-1:n?.tabIndex??0,"aria-label":Jm(o),...d,...p?{"aria-describedby":p}:{},children:or.jsxs("div",{role:"gridcell","aria-colindex":1,className:"d-contents",children:[e??or.jsx("span",{children:o}),or.jsx(Mi,{"aria-label":u,isDisabled:r,isSymmetrical:!0,onClick:i,size:Wm[c],...n&&{tabIndex:n.removeButtonTabIndex},children:or.jsx(mr,{name:"close"})})]})})};ef.spiritComponent="UNSTABLE_PickerTag";const tf=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]",rf=e=>Array.from(e.querySelectorAll(nf)),of=({isOpen:e,onClose:n,getLastPopoverFocusable:r})=>({onPopoverKeyDownCapture:t.useCallback((t=>{if("Tab"!==t.key||t.shiftKey||!e)return;const o=t.currentTarget;let i=r?.()??null;if(!i){const e=rf(o);i=e.length>0?e[e.length-1]:null}const s=t.target instanceof Node?t.target:null,a=document.activeElement;!i||s!==i&&a!==i||(t.preventDefault(),n())}),[r,e,n])}),sf=({onRemoveAtIndex:e,selectionRef:n,tagCount:r,isPopoverOpen:o=!1,isDisabled:i=!1})=>{const[s,a]=t.useState(0),[l,c]=t.useState(null),p=t.useRef(null),u=t.useRef(null);en((()=>{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||(u.current=t)):n<0&&a((e=>Math.min(e,t))),p.current=r}),[o,r]),en((()=>{const e=u.current;null===e||0===r||o||(u.current=null,((e,t)=>{if(!e?.current)return;const n=e.current.querySelectorAll('[role="row"]');n.item(t)?.focus()})(n,e))}),[s,o,n,r]);const d=t.useCallback((t=>{const n=r-1;if(n>0){const e=t<n?t:t-1;a(e),o||(u.current=e)}c(null),e(t)}),[o,e,r]);return{getKeyboardGridRowProps:t.useCallback((e=>o||i?{tabIndex:-1,removeButtonTabIndex:-1,onFocusCapture:()=>{},onBlurCapture:()=>{},onKeyDown:()=>{}}:{tabIndex:e===s?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 d(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),u.current=n)}}),[s,l,i,o,d,r]),removeTagAtIndex:d}},af=e=>{const{isDisabled:t,isFluid:n,isLabelHidden:r,isRequired:o,size:i,validationState:s}=e,a=on("UNSTABLE_Picker"),l=`${a}--disabled`,c=`${a}--fluid`,p=`${a}--${i}`,u=`${a}--${s}`,d=`${a}__label`,m=`${d}--hidden`,f=`${d}--required`,h=`${a}__inputContainer`,y=`${a}__selection`,v=`${a}__selectionEmpty`,b=`${a}__trigger`,x=`${a}__helperText`,T=`${a}__validationText`;return{classProps:{root:g(a,{[l]:t,[c]:n,[p]:i,[u]:s}),label:g(d,{[m]:r,[f]:o}),inputContainer:h,selection:y,selectionEmpty:v,trigger:b,helperText:x,validationText:T}}},lf=t.forwardRef(((e,n)=>{const{t:r}=gn(),{"aria-describedby":o="",addButtonLabel:i=r("picker.add"),children:s,closeButtonLabel:a=r("common.close"),emptySelectionLabel:l,helperText:c,id:p,isAggregated:u=!1,isDisabled:d=!1,isFluid:m=!1,isLabelHidden:f=!1,isOpen:h,isRequired:y=!1,label:v,onSelectionChange:b,onToggle:x,removeAllLabel:T=r("picker.removeAll"),renderTags:P,selectedKeys:S,selectionAriaLabel:E=r("picker.selectionAriaLabel"),selectionMode:C=oe,size:w=Vm,tagDescriptionText:N=r("picker.tagDescriptionText"),hasValidationIcon:_,validationState:A,validationText:R,...k}=e,[$,O]=Zt(o),j=wi({validationState:A,validationText:R}),{classProps:D}=af({isDisabled:d,isFluid:m,isLabelHidden:f,isRequired:y,size:w,validationState:A}),{styleProps:L,props:I}=Yt(k),{labelId:M,pickerId:F,popoverId:B,selectionId:U,tagDescriptionId:H}=tf(p),z=t.useMemo((()=>Zm(s)),[s]),V=t.useMemo((()=>(e=>{const t={};for(const n of e)t[n.value]=n.label;return t})(z)),[z]),W=t.useMemo((()=>Dn(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=>jn(C)?b([]):b(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}=of({isOpen:h,onClose:K}),Z=((e,t)=>{const{isAggregated:n}=t;return 0===e?0:n?1:e})(G.length,{isAggregated:u}),{getKeyboardGridRowProps:J,removeTagAtIndex:ee}=sf({isDisabled:d,isPopoverOpen:h,onRemoveAtIndex:e=>{u?b([]):q(G[e].value)},selectionRef:X,tagCount:Z}),te=l?fn(l,{label:v}):v,ne=((e,t)=>t.length>1?`${e} (${t.length})`:t[0]?.label??e)(v,G),re=G.length?P?P({getKeyboardGridRowProps:J,onRemove:q,removeTagAtIndex:ee}):u?or.jsx(ef,{tagKeyboardProps:J(0),isDisabled:d,label:ne,onRemove:()=>ee(0),removeLabel:T}):G.map(((e,t)=>or.jsx(ef,{tagKeyboardProps:J(t),isDisabled:d,label:e.label,onRemove:()=>ee(t)},e.value))):or.jsx("span",{"aria-hidden":"true",className:D.selectionEmpty,children:te}),ie=t.useMemo((()=>({id:F,isDisabled:d,onSelectionChange:b,selectedKeys:W,selectionMode:C})),[W,d,b,F,C]);return t.useImperativeHandle(n,(()=>({close:K,selectedKeys:S})),[K,S]),or.jsx(qm,{value:{size:w,tagDescriptionId:H},children:or.jsxs("div",{...L,className:g(D.root,L.className),...I,children:[or.jsx(Si,{id:M,UNSAFE_className:D.label,elementType:"span",children:v}),or.jsxs(ps,{id:B,isOpen:h,onToggle:x,children:[or.jsxs("div",{role:"group","aria-label":v,className:D.inputContainer,children:[or.jsx("div",{ref:X,...$,id:U,role:G.length?"grid":"group","aria-label":fn(E,{label:v}),"aria-live":"off","aria-atomic":!1,"aria-relevant":"additions",className:D.selection,children:re}),or.jsxs("button",{ref:Y,type:"button",className:D.trigger,"aria-haspopup":"dialog","aria-expanded":h,"aria-controls":B,onClick:x,disabled:d,children:[or.jsx(gi,{children:h?a:i}),or.jsx(mr,{name:"chevron-"+(h?"up":"down"),boxSize:20})]})]}),or.jsx(ms,{"aria-labelledby":M,role:"dialog","aria-modal":"true",onKeyDownCapture:Q,children:or.jsx(Km,{value:ie,children:s})})]}),or.jsx(Pi,{UNSAFE_className:D.helperText,id:`${F}-helper-text`,registerAria:O,helperText:c}),A&&or.jsx(Ci,{UNSAFE_className:D.validationText,id:`${F}-validation-text`,..._&&{hasValidationStateIcon:A},validationText:R,registerAria:O,role:j}),or.jsx("span",{id:H,hidden:!0,children:N})]})})}));lf.spiritComponent="UNSTABLE_Picker",lf.displayName="UNSTABLE_Picker";const cf=({children:e,label:n,...r})=>{const o=Qm(),i=t.useId(),s=o.id?`${o.id}-group-${i}`:i;return or.jsx(Cs,{...r,id:s,isFluid:!0,isLabelHidden:!0,label:n,children:e})};cf.spiritComponent="UNSTABLE_PickerGroup";const pf=({children:e,value:t,...n})=>{const{id:r,isDisabled:o,onSelectionChange:i,selectedKeys:s,selectionMode:a}=Qm(),l=Ln(s,t,a),c=jn(a),p=c?Eu:ki,u=`${r}-${t}`;return or.jsx(p,{...n,id:u,inputPosition:te.START,isChecked:l,isDisabled:o,isItem:!0,label:e,value:t,onChange:()=>{i(c?[t]:In(s,t,a))},...c?{name:r}:{}})};pf.spiritComponent="UNSTABLE_PickerItem";const uf=t.forwardRef(((e,n)=>{const{defaultIsOpen:r=!1,defaultSelectedKeys:o=[],onSelectionChange:i,selectionMode:s,...a}=e,l=t.useRef(null),[c,p]=Hn(r),{selectedKeys:u,setSelectedKeys:d}=Mn({defaultSelectedKeys:o,onSelectionChange:i,selectionMode:s});return t.useImperativeHandle(n,(()=>({close:()=>l.current?.close(),selectedKeys:u})),[u]),or.jsx(lf,{...a,ref:l,isOpen:c,onSelectionChange:d,onToggle:p,selectedKeys:u,selectionMode:s})}));uf.spiritComponent="UNSTABLE_UncontrolledPicker",uf.displayName="UNSTABLE_UncontrolledPicker",e.Accordion=ir,e.AccordionContent=ho,e.AccordionContext=qn,e.AccordionHeader=hr,e.AccordionItem=cr,e.AccordionItemContext=sr,e.ActionGroup=To,e.Alert=Eo,e.AlignmentX=A,e.AlignmentXExtended=R,e.AlignmentY=k,e.AlignmentYExtended=$,e.AttachmentActionButton=zs,e.AttachmentDismissButton=Vs,e.Avatar=No,e.BREAKPOINT_MOBILE=Se,e.BackgroundColors=I,e.BackgroundGradients={PRIMARY:"primary",SECONDARY:"secondary"},e.BackgroundStyleProps=se,e.BorderColors=O,e.BorderRadii=j,e.BorderRadiusStyleProps=ae,e.BorderStyles=D,e.BorderWidths=L,e.Box=Ro,e.Breadcrumbs=Mo,e.BreadcrumbsItem=Lo,e.Button=Xo,e.ButtonLink=Zo,e.CLASS_NAME_OPEN=b,e.Card=ti,e.CardArtwork=ri,e.CardBody=ii,e.CardEyebrow=si,e.CardFooter=li,e.CardLink=pi,e.CardLogo=ui,e.CardMedia=mi,e.CardSizes=ye,e.CardTitle=hi,e.CharacterCounter=xi,e.Checkbox=ki,e.ClassNamePrefixConsumer=ge,e.ClassNamePrefixProvider=he,e.Collapse=po,e.ColorPrefixes=x,e.ComponentButtonColors=M,e.Container=ji,e.ContainerTokenSizes=X,e.ControlButton=Mi,e.DEBOUNCE_DELAY=50,e.DEFAULT_ERROR_MESSAGE_MAX_FILE_SIZE=_s,e.DEFAULT_ERROR_MESSAGE_QUEUE_DUPLICITY=As,e.DEFAULT_ERROR_MESSAGE_QUEUE_LIMIT=Rs,e.DEFAULT_ERROR_MESSAGE_UNSUPPORTED_FILE=ks,e.DEFAULT_FILE_ACTION_BUTTON_ICON_NAME=Nm,e.DEFAULT_FILE_ICON_NAME=wm,e.DEFAULT_FILE_IMAGE_DIMENSION=48,e.DEFAULT_FILE_QUEUE_LIMIT=Ns,e.DEFAULT_FILE_SIZE_LIMIT=ws,e.DEFAULT_ICON_NAME=$s,e.DEFAULT_TOAST_AUTO_CLOSE_INTERVAL=3e3,e.DEFAULT_TOAST_COLOR=sm,e.Dialog=Bi,e.Direction=Q,e.DirectionAxis=J,e.DirectionExtended=Z,e.DisplayStyleProps=de,e.Divider=Hi,e.Drawer=Yi,e.DrawerCloseButton=Qi,e.DrawerConsumer=Gi,e.DrawerPanel=Zi,e.DrawerProvider=Wi,e.Dropdown=ps,e.DropdownContext=ss,e.DropdownFullWidthModes={OFF:"off",MOBILE_ONLY:"mobile-only",ALL:"all"},e.DropdownPopover=ms,e.DropdownTrigger=ds,e.EDGE_DETECTION_INACCURACY_PX=1,e.EmotionColors=F,e.Emphasis=H,e.EmptyState=Ss,e.EmptyStateSection=Es,e.FieldGroup=Cs,e.FileImageCropCSS=_m,e.FileUploader=Fs,e.FileUploaderAttachment=Qs,e.FileUploaderCropCSS=Os,e.FileUploaderInput=Us,e.FileUploaderList=Hs,e.FillVariants=Y,e.Flex=bo,e.Footer=ta,e.Grid=oa,e.GridItem=la,e.HEADER_ACTIONS_COLOR_DEFAULT=pa,e.HEADER_COLOR_DEFAULT=ca,e.HEADER_DIALOG_CLOSE_BUTTON_LABEL_DEFAULT=ua,e.HEADER_MENU_TOGGLE_LABEL_DEFAULT=da,e.Header=fa,e.HeaderButton=ha,e.HeaderDesktopActions=ya,e.HeaderDialog=Pa,e.HeaderDialogActions=Sa,e.HeaderDialogButton=Ea,e.HeaderDialogCloseButton=Ca,e.HeaderDialogConsumer=xa,e.HeaderDialogLink=wa,e.HeaderDialogNav=Na,e.HeaderDialogNavItem=_a,e.HeaderDialogProvider=ba,e.HeaderDialogText=Aa,e.HeaderLink=Ra,e.HeaderMobileActions=ka,e.HeaderNav=$a,e.HeaderNavItem=Oa,e.Heading=La,e.HeadingStyleProps=ue,e.HelperText=Pi,e.Hidden=Ma,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=be,e.ITEM_SELECTION_DECORATOR_ICON=xe,e.Icon=mr,e.IconBox=Ga,e.IconsConsumer=bn,e.IconsProvider=vn,e.InputDetails=Ai,e.InputPositions=te,e.Intensity=U,e.Item=Xa,e.Label=Si,e.Link=Oo,e.LinkColors={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},e.LinkColorsExtended={INHERIT:"inherit"},e.MULTIPLE_SELECTION_MODE=oe,e.Matrix=Za,e.Modal=ol,e.ModalBody=il,e.ModalCloseButton=sl,e.ModalConsumer=tl,e.ModalDialog=ll,e.ModalFooter=cl,e.ModalHeader=ul,e.ModalProvider=el,e.Navigation=fl,e.NavigationAction=yl,e.NavigationAvatar=bl,e.NavigationItem=Tl,e.NoSsr=Pl,e.ObjectFit=ne,e.PICKER_POPOVER_FOCUSABLE_SELECTOR=nf,e.PaddingStyleProps=ce,e.Pagination=El,e.PaginationButtonLink=Cl,e.PaginationItem=wl,e.PaginationLink=Nl,e.PaginationLinkNext=_l,e.PaginationLinkPrevious=Al,e.PartnerLogo=jl,e.PickerPopoverContextProvider=Km,e.Pill=Ml,e.PillColorsExtended=Dl,e.Placements=z,e.Position=re,e.PricingPlan=Ul,e.PricingPlanBody=xu,e.PricingPlanFooter=Tu,e.PricingPlanHeader=zl,e.ProductLogo=Pu,e.PropsConsumer=zo,e.PropsProvider=Ho,e.Radio=Eu,e.RouterConsumer=Cn,e.RouterProvider=e=>{const{navigate:n,children:r}=e,o=t.useMemo((()=>({navigate:n})),[n]);return t.createElement(En.Provider,{value:o},r)},e.SCROLL_CANCEL_DELAY=10,e.SCROLL_VIEW_ARROWS_LABEL_HORIZONTAL_END=Cu,e.SCROLL_VIEW_ARROWS_LABEL_HORIZONTAL_START=wu,e.SCROLL_VIEW_ARROWS_LABEL_VERTICAL_END=Nu,e.SCROLL_VIEW_ARROWS_LABEL_VERTICAL_START=_u,e.SCROLL_VIEW_DEFAULT_DIRECTION=Au,e.SCROLL_VIEW_DEFAULT_OVERFLOW_DECORATOR=Ru,e.SINGLE_SELECTION_MODE=ie,e.STYLE_SPACING_AUTO=Pe,e.ScrollView=Lu,e.ScrollViewArrows=ju,e.Section=Uu,e.SegmentedControl=Gu,e.SegmentedControlItem=qu,e.Select=Yu,e.ShapeVariants=K,e.Sizes=V,e.SizesExtended=W,e.SkeletonHeading=td,e.SkeletonItem=Qu,e.SkeletonShape=id,e.SkeletonText=Ju,e.SkipLink=ld,e.Slider=ud,e.SpacingStyleProp=le,e.Spinner=Go,e.SpiritBreakpoints=Ee,e.SplitButton=fd,e.Stack=bs,e.StackItem=Ts,e.TOOLTIP_TRIGGER=Ce,e.TRANSITIONING_STYLES=im,e.TRANSITION_DURATION=250,e.TabContent=gd,e.TabContext=yd,e.TabItem=Pd,e.TabLink=Ed,e.TabList=Cd,e.TabPane=wd,e.Tabs=Nd,e.TabsConsumer=bd,e.TabsProvider=vd,e.Tag=jd,e.TagColorsExtended=Rd,e.Text=Id,e.TextAlignments={LEFT:"left",CENTER:"center",RIGHT:"right"},e.TextArea=zd,e.TextColors=B,e.TextField=Vd,e.TextFieldBase=Hd,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=Kd,e.TimelineContent=Qd,e.TimelineHeading=Zd,e.TimelineMarker=em,e.TimelineStep=nm,e.Toast=om,e.ToastBar=pm,e.ToastBarLink=mm,e.ToastBarMessage=um,e.ToastColorsExtended=am,e.Toggle=vm,e.Tooltip=uu,e.TooltipCloseButton=du,e.TooltipPopover=mu,e.TooltipTrigger=hu,e.Truncate=Cm,e.TruncateModes=we,e.UNDERLINED_OPTIONS=Te,e.UNSTABLE_File=Om,e.UNSTABLE_FileImagePreview=Dm,e.UNSTABLE_FileUpload=Mm,e.UNSTABLE_Header=Um,e.UNSTABLE_HeaderLogo=zm,e.UNSTABLE_Picker=lf,e.UNSTABLE_PickerGroup=cf,e.UNSTABLE_PickerItem=pf,e.UNSTABLE_PickerTag=ef,e.UNSTABLE_UncontrolledPicker=uf,e.UncontrolledAccordion=go,e.UncontrolledCollapse=fo,e.UncontrolledDropdown=hs,e.UncontrolledFileUploader=Js,e.UncontrolledPagination=kl,e.UncontrolledSplitButton=e=>{const{t:n}=gn(),r={...hd,...e},{buttonIconName:o,buttonLabel:i,buttonOnClick:s,children:a,dropdownTriggerIconName:l,dropdownTriggerLabel:c,dropdownPlacement:p,id:u,isButtonLabelHidden:d,isDisabled:m,isDropdownTriggerLabelHidden:f,...h}=r,g=c??n("splitButton.dropdown"),[y,v]=t.useState(!1);return or.jsxs(fd,{...h,id:u,isDisabled:m,children:[or.jsxs(Xo,{onClick:s,children:[o&&or.jsx(mr,{name:o,...!d&&{marginRight:"space-400"}}),d?or.jsx(gi,{children:i}):i]}),or.jsxs(ps,{id:`${u}-dropdown`,isOpen:y,onToggle:()=>v(!y),placement:p,children:[or.jsxs(ds,{elementType:Xo,children:[f?or.jsx(gi,{children:g}):g,or.jsx(mr,{name:l,...!f&&{marginLeft:"space-400"}})]}),or.jsx(ms,{children:a})]})]})},e.UncontrolledTabs=Ad,e.UncontrolledToast=gm,e.UncontrolledTooltip=yu,e.ValidationStates={SUCCESS:"success",WARNING:"warning",DANGER:"danger"},e.ValidationText=Ci,e.VisuallyHidden=gi,e.applyClassNamePrefix=Oe,e.applyColor=je,e.applySize=De,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=Dt,e.compose=Ie,e.debounce=Me,e.defaultLabels=mn,e.delayedCallback=(e,t)=>{const n=setTimeout((()=>{e(),clearTimeout(n)}),t)},e.fullWidthModeKeys=rs,e.generateColorsObject=Le,e.generateResponsiveClassNames=Ot,e.generateResponsiveStylePropsClasses=Ht,e.generateStaticStylePropsClasses=Ut,e.generateStylePropsClassNames=zt,e.getAccentBackgroundColors=()=>Le(E,"background","accent"),e.getAccentBorderColors=()=>Le(E,"border","accent"),e.getAccentColorNames=()=>Object.keys(E),e.getAccentTextColors=()=>Le(E,"content","accent"),e.getAttachmentInput=qs,e.getAttachmentMetaInput=Xs,e.getEmotionBackgroundColors=()=>Le(w,"background","emotion"),e.getEmotionBorderColors=()=>Le(w,"border","emotion"),e.getEmotionColorNames=()=>Object.keys(w),e.getEmotionTextColors=()=>Le(w,"content","emotion"),e.getNeutralBackgroundColors=()=>({NEUTRAL_BASIC:"neutral-basic",NEUTRAL_SUBTLE:"neutral-subtle"}),e.getNeutralTextColors=()=>({NEUTRAL_BASIC:"neutral-basic",NEUTRAL_SUBTLE:"neutral-subtle"}),e.getPickerPopoverFocusableElements=rf,e.getSelectedKeys=Dn,e.getTextColorNames=()=>Object.keys(N),e.getToggledSelectedKeys=In,e.handleLinkClick=kt,e.htmlReactParser=At,e.image2Base64Preview=Ys,e.isDirectionHorizontal=ee,e.isEmpty=$e,e.isEmptyArray=Ae,e.isEmptyObject=Re,e.isEmptyString=_e,e.isEnumerable=ke,e.isKeySelected=Ln,e.isNullish=Ne,e.isResponsive=$t,e.isSSR=jt,e.isSingleSelectionMode=jn,e.kebabCaseToCamelCase=Lt,e.kebabCaseToCamelCaseValues=It,e.mergeStyleProps=Rt,e.normalizeStringValue=Mt,e.replaceTranslationParams=fn,e.resolveTranslationKey=hn,e.stringOrObjectKebabCaseToCamelCase=Ft,e.toPascalCase=Bt,e.truncateByCharacters=xm,e.truncateByLines=Tm,e.truncateByWords=bm,e.useAccordion=s,e.useAccordionAriaProps=p,e.useAccordionStyleProps=Gn,e.useAlertStyleProps=Po,e.useAlignmentClass=Kt,e.useAriaDescribedBy=Zt,e.useAriaDetails=Jt,e.useAriaIdRefs=Qt,e.useAvatarStyleProps=Co,e.useBoxStyleProps=_o,e.useBreadcrumbsStyleProps=jo,e.useButtonLinkProps=Yo,e.useButtonLinkStyleProps=Ko,e.useButtonProps=Fo,e.useButtonStyleProps=Bo,e.useCancelEvent=rn,e.useCardStyleProps=Jo,e.useCharacterCounterState=vi,e.useCheckboxStyleProps=Ri,e.useClassNamePrefix=on,e.useClick=sn,e.useClickOutside=an,e.useCollapse=uo,e.useCollapseAriaProps=io,e.useCollapseStyleProps=so,e.useContainerStyleProps=$i,e.useContextProps=Vo,e.useControlButtonProps=Di,e.useControlButtonStyleProps=Li,e.useControlledModeGuard=ln,e.useDebouncedValue=cn,e.useDefaultResponsiveRowsStyle=Ya,e.useDeprecationMessage=pn,e.useDialog=Fi,e.useDimensionStyle=un,e.useDividerStyleProps=Ui,e.useDragAndDrop=dn,e.useDrawerContext=qi,e.useDrawerStyleProps=Xi,e.useDropdown=fs,e.useDropdownAriaProps=os,e.useDropdownStyleProps=cs,e.useEmptyStateStyleProps=Ps,e.useFileImageStyles=Rm,e.useFileQueue=Zs,e.useFileStyleProps=km,e.useFileUploadState=Lm,e.useFileUploadStyleProps=Im,e.useFileUploaderAttachment=Ks,e.useFileUploaderInput=Bs,e.useFileUploaderStyleProps=Ms,e.useFlexStyleProps=yo,e.useGridStyleProps=na,e.useHeaderDialogContext=Ta,e.useHeaderStyleProps=ma,e.useHeadingStyleProps=ja,e.useI18n=gn,e.useIcon=xn,e.useIconBoxColors=za,e.useIconBoxStyleProps=Va,e.useIconName=Tn,e.useIconStyleProps=ur,e.useInputDetailsStyleProps=Ni,e.useInputPositionClass=Pn,e.useIsomorphicLayoutEffect=en,e.useItemStyleProps=qa,e.useLastActiveFocus=Sn,e.useLinkClick=Nn,e.useLinkStyleProps=ko,e.useMatrixStyleProps=Ka,e.useModalContext=nl,e.useModalStyleProps=rl,e.useNavigationActionProps=hl,e.useNavigationStyleProps=dl,e.useOpenItem=Kn,e.usePaginationStyleProps=Sl,e.usePartnerLogoStyleProps=$l,e.usePickerId=tf,e.usePickerPopoverContext=Qm,e.usePickerPopoverTabOutToTrigger=of,e.usePickerSelectionGridKeyboard=sf,e.usePickerStyleProps=af,e.usePillStyleProps=Ll,e.usePricingPlanStyleProps=Fl,e.useRadioStyleProps=Su,e.useResizeObserver=Rn,e.useRouter=wn,e.useScrollCallback=ku,e.useScrollControl=On,e.useScrollPosition=Du,e.useScrollViewArrows=$u,e.useScrollViewStyleProps=Ou,e.useSectionSizeProps=Mu,e.useSectionStyleProps=Fu,e.useSegmentedControl=({defaultSelectedValue:e,isMultiselect:n})=>{let r;r=n?Array.isArray(e)?e:void 0!==e?[e]:[]:e??"";const[o,i]=t.useState(r);return{selectedValue:o,setSelectedValue:i}},e.useSegmentedControlStyleProps=Vu,e.useSelectStyleProps=Xu,e.useSelectionState=Mn,e.useSkeletonStyleProps=Ku,e.useSkipLinkStyleProps=sd,e.useSliderStyleProps=cd,e.useSpacingStyle=Fn,e.useSpinnerStyleProps=Wo,e.useSplitButtonStyleProps=dd,e.useStyleProps=Yt,e.useSymmetry=Un,e.useTab=_d,e.useTabContext=xd,e.useTabsStyleProps=Td,e.useTagStyleProps=$d,e.useTextStyleProps=Dd,e.useTimelineStyleProps=Xd,e.useToast=hm,e.useToggle=Hn,e.useToggleStyleProps=ym,e.useTooltip=gu,e.useTooltipStyleProps=pu,e.useTruncateStyleProps=Sm,e.useTruncatedText=Pm,e.useUnstableHeaderStyleProps=Bm,e.useWrapClass=Wn,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}));
|
|
2
2
|
//# sourceMappingURL=web-react.umd.min.js.map
|