@zealicsolutions/web-ui 0.3.267 → 0.3.268
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/assets/index.d.ts +8 -0
- package/dist/cjs/atoms/Avatar/Avatar.d.ts +20 -0
- package/dist/cjs/atoms/Buttons/IconButton.d.ts +12 -0
- package/dist/cjs/atoms/Buttons/TextButton.d.ts +21 -0
- package/dist/cjs/atoms/Buttons/TouchableOpacity.d.ts +16 -0
- package/dist/cjs/atoms/Checkbox/Checkbox.d.ts +14 -0
- package/dist/cjs/atoms/Checkbox/helpers.d.ts +2 -0
- package/dist/cjs/atoms/Checkbox/types.d.ts +18 -0
- package/dist/cjs/atoms/Circle/Circle.d.ts +12 -0
- package/dist/cjs/atoms/CircularIndicator/CircularIndicator.d.ts +12 -0
- package/dist/cjs/atoms/Divider/Divider.d.ts +13 -0
- package/dist/cjs/atoms/HorizontalButtons/HorizontalButtons.d.ts +11 -0
- package/dist/cjs/atoms/Icon/Icon.d.ts +38 -0
- package/dist/cjs/atoms/Input/Input.d.ts +39 -0
- package/dist/cjs/atoms/Input/helpers.d.ts +44 -0
- package/dist/cjs/atoms/Paddings/Paddings.d.ts +13 -0
- package/dist/cjs/atoms/RadioButtons/RadioButtons.d.ts +56 -0
- package/dist/cjs/atoms/RadioButtons/RadioOption.d.ts +11 -0
- package/dist/cjs/atoms/RadioButtons/helpers.d.ts +17 -0
- package/dist/cjs/atoms/RadioButtons/styles.d.ts +13 -0
- package/dist/cjs/atoms/RegularImage/RegularImage.d.ts +38 -0
- package/dist/cjs/atoms/RichTextViewer/RichTextViewer.d.ts +24 -0
- package/dist/cjs/atoms/RichTextViewer/components/EditorElement.d.ts +5 -0
- package/dist/cjs/atoms/RichTextViewer/components/Leaf.d.ts +2 -0
- package/dist/cjs/atoms/RichTextViewer/components/index.d.ts +2 -0
- package/dist/cjs/atoms/RichTextViewer/types.d.ts +36 -0
- package/dist/cjs/atoms/Select/Select.d.ts +34 -0
- package/dist/cjs/atoms/Select/styles.d.ts +27 -0
- package/dist/cjs/atoms/Spacer/Spacer.d.ts +11 -0
- package/dist/cjs/atoms/Spinner/Spinner.d.ts +9 -0
- package/dist/cjs/atoms/Tab/Tab.d.ts +56 -0
- package/dist/cjs/atoms/Tab/styles.d.ts +18 -0
- package/dist/cjs/atoms/Tab/utils.d.ts +4 -0
- package/dist/cjs/atoms/TextWrapper/TextWrapper.d.ts +23 -0
- package/dist/cjs/atoms/Toast/ToastContent.d.ts +7 -0
- package/dist/cjs/atoms/Toast/toast.d.ts +3 -0
- package/dist/cjs/atoms/Toast/types.d.ts +6 -0
- package/dist/cjs/atoms/Tooltip/Tooltip.d.ts +12 -0
- package/dist/cjs/atoms/ValidationTag/ValidationTag.d.ts +6 -0
- package/dist/cjs/atoms/index.d.ts +23 -0
- package/dist/cjs/constants/params.d.ts +8 -0
- package/dist/cjs/containers/Container.d.ts +84 -0
- package/dist/cjs/containers/Container.stories.d.ts +7 -0
- package/dist/cjs/containers/FormContainer.d.ts +8 -0
- package/dist/cjs/containers/FormOrganismItem.d.ts +11 -0
- package/dist/cjs/containers/FormStepContainer.d.ts +9 -0
- package/dist/cjs/containers/MoleculeItem.d.ts +8 -0
- package/dist/cjs/containers/helpers.d.ts +6 -0
- package/dist/cjs/containers/hooks/index.d.ts +3 -0
- package/dist/cjs/containers/hooks/useCheckCondition.d.ts +16 -0
- package/dist/cjs/containers/hooks/useCheckCondition.test.d.ts +1 -0
- package/dist/cjs/containers/hooks/useFormOrganismItem.d.ts +3 -0
- package/dist/cjs/containers/hooks/useSetFormData.d.ts +10 -0
- package/dist/cjs/containers/hooks/useStateListenerValue.d.ts +18 -0
- package/dist/cjs/containers/hooks/useStateModifierHandler.d.ts +7 -0
- package/dist/cjs/containers/hooks/useStateViewModifierHandler.d.ts +2 -0
- package/dist/cjs/containers/index.d.ts +5 -0
- package/dist/cjs/containers/mock-data.d.ts +1153 -0
- package/dist/cjs/containers/styles.d.ts +41 -0
- package/dist/cjs/containers/types/moleculeTypes.d.ts +345 -0
- package/dist/cjs/containers/types/types.d.ts +135 -0
- package/dist/cjs/contexts/AccountButtonContext/AccountButtonContext.d.ts +14 -0
- package/dist/cjs/contexts/AccountButtonContext/AccountButtonContextProvider.d.ts +9 -0
- package/dist/cjs/contexts/ButtonActionsContext/ButtonActionsContext.d.ts +12 -0
- package/dist/cjs/contexts/ButtonActionsContext/ButtonActionsContextProvider.d.ts +26 -0
- package/dist/cjs/contexts/FormStepContext/FormStepContext.d.ts +13 -0
- package/dist/cjs/contexts/FormStepContext/FormStepContextProvider.d.ts +5 -0
- package/dist/cjs/contexts/FormStepContext/utils.d.ts +2 -0
- package/dist/cjs/contexts/MlrRichTextViewerContext/MlrRichTextViewerContext.d.ts +8 -0
- package/dist/cjs/contexts/MlrRichTextViewerContext/MlrRichTextViewerProvider.d.ts +8 -0
- package/dist/cjs/contexts/MlrRichTextViewerContext/types.d.ts +15 -0
- package/dist/cjs/contexts/OrganismContext/OrganismContext.d.ts +33 -0
- package/dist/cjs/contexts/OrganismContext/OrganismContextProvider.d.ts +31 -0
- package/dist/cjs/contexts/OrganismContext/utils.d.ts +5 -0
- package/dist/cjs/contexts/StateContext/StateContext.d.ts +7 -0
- package/dist/cjs/contexts/StateContext/StateContextProvider.d.ts +7 -0
- package/dist/cjs/contexts/hooks/index.d.ts +6 -0
- package/dist/cjs/contexts/hooks/useAccountButtonContext.d.ts +6 -0
- package/dist/cjs/contexts/hooks/useButtonActionsContext.d.ts +1 -0
- package/dist/cjs/contexts/hooks/useFormStepContext.d.ts +1 -0
- package/dist/cjs/contexts/hooks/useMlrRichTextViewerContext.d.ts +1 -0
- package/dist/cjs/contexts/hooks/useOrganismContext.d.ts +1 -0
- package/dist/cjs/contexts/hooks/useStateContext.d.ts +1 -0
- package/dist/cjs/contexts/index.d.ts +13 -0
- package/dist/cjs/fieldsConfiguration/getFieldPlaceholder.d.ts +2 -0
- package/dist/cjs/fieldsConfiguration/index.d.ts +3 -0
- package/dist/cjs/fieldsConfiguration/types.d.ts +29 -0
- package/dist/cjs/fieldsConfiguration/utils.d.ts +6 -0
- package/dist/cjs/helpers/constants.d.ts +6 -0
- package/dist/cjs/helpers/date.d.ts +3 -0
- package/dist/cjs/helpers/slate.d.ts +2 -0
- package/dist/cjs/helpers/styles.d.ts +5 -0
- package/dist/cjs/helpers/utils.d.ts +14 -0
- package/dist/cjs/helpers/validations.d.ts +23 -0
- package/dist/cjs/hooks/index.d.ts +2 -0
- package/dist/cjs/hooks/useRequiredConsentsAcceptedValues.d.ts +2 -0
- package/dist/cjs/hooks/useStep.d.ts +11 -0
- package/dist/cjs/icons/ArrowRight.d.ts +2 -0
- package/dist/cjs/icons/Bell.d.ts +2 -0
- package/dist/cjs/icons/Bookmark.d.ts +2 -0
- package/dist/cjs/icons/CaretDown.d.ts +2 -0
- package/dist/cjs/icons/CaretLeft.d.ts +2 -0
- package/dist/cjs/icons/CaretRight.d.ts +2 -0
- package/dist/cjs/icons/CaretUp.d.ts +2 -0
- package/dist/cjs/icons/Check.d.ts +2 -0
- package/dist/cjs/icons/Close.d.ts +2 -0
- package/dist/cjs/icons/Edit.d.ts +2 -0
- package/dist/cjs/icons/Filter.d.ts +2 -0
- package/dist/cjs/icons/Hide.d.ts +2 -0
- package/dist/cjs/icons/Info.d.ts +2 -0
- package/dist/cjs/icons/InfoBoxIcon.d.ts +2 -0
- package/dist/cjs/icons/Mail.d.ts +2 -0
- package/dist/cjs/icons/Menu.d.ts +2 -0
- package/dist/cjs/icons/Minus.d.ts +2 -0
- package/dist/cjs/icons/Mobile.d.ts +2 -0
- package/dist/cjs/icons/Play.d.ts +2 -0
- package/dist/cjs/icons/Save.d.ts +2 -0
- package/dist/cjs/icons/Search.d.ts +2 -0
- package/dist/cjs/icons/View.d.ts +2 -0
- package/dist/cjs/icons/Warning.d.ts +2 -0
- package/dist/cjs/icons/index.d.ts +23 -0
- package/dist/cjs/index.css +503 -0
- package/dist/cjs/index.d.ts +7 -0
- package/dist/cjs/index.js +23 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/molecules/Alert/Alert.d.ts +20 -0
- package/dist/cjs/molecules/Alert/Alert.stories.d.ts +9 -0
- package/dist/cjs/molecules/AvatarDropdown/AvatarDropdown.d.ts +11 -0
- package/dist/cjs/molecules/AvatarDropdown/AvatarDropdown.stories.d.ts +8 -0
- package/dist/cjs/molecules/BottomNavBarItem/BottomNavBarItem.d.ts +11 -0
- package/dist/cjs/molecules/BottomNavBarItem/BottomNavBarItem.stories.d.ts +8 -0
- package/dist/cjs/molecules/Button/Button.d.ts +47 -0
- package/dist/cjs/molecules/Button/Button.stories.d.ts +8 -0
- package/dist/cjs/molecules/Caruser/Carousel.d.ts +35 -0
- package/dist/cjs/molecules/CheckboxField/CheckboxField.d.ts +37 -0
- package/dist/cjs/molecules/CheckboxField/CheckboxField.stories.d.ts +61 -0
- package/dist/cjs/molecules/CheckboxField/CheckboxGroup.d.ts +10 -0
- package/dist/cjs/molecules/CheckboxField/CheckboxGroup.stories.d.ts +32 -0
- package/dist/cjs/molecules/CheckboxField/styles.d.ts +13 -0
- package/dist/cjs/molecules/Checklist/Checklist.d.ts +30 -0
- package/dist/cjs/molecules/Checklist/Checklist.stories.d.ts +8 -0
- package/dist/cjs/molecules/Consent/Consent.d.ts +27 -0
- package/dist/cjs/molecules/Consent/Consent.stories.d.ts +8 -0
- package/dist/cjs/molecules/Consent/ConsentCapture.d.ts +20 -0
- package/dist/cjs/molecules/Consent/ConsentMolecule.d.ts +11 -0
- package/dist/cjs/molecules/Consent/consentMock.d.ts +7 -0
- package/dist/cjs/molecules/CustomValidation/CustomValidation.d.ts +14 -0
- package/dist/cjs/molecules/CustomValidation/CustomValidation.stories.d.ts +8 -0
- package/dist/cjs/molecules/Drawer/Drawer.d.ts +3 -0
- package/dist/cjs/molecules/Drawer/Drawer.stories.d.ts +9 -0
- package/dist/cjs/molecules/Drawer/styles.d.ts +34 -0
- package/dist/cjs/molecules/EmphasizedText/EmphasizedText.d.ts +6 -0
- package/dist/cjs/molecules/EmphasizedText/EmphasizedText.stories.d.ts +8 -0
- package/dist/cjs/molecules/FeedContentHeader/FeedContentHeader.d.ts +11 -0
- package/dist/cjs/molecules/FeedContentHeader/FeedContentHeader.stories.d.ts +8 -0
- package/dist/cjs/molecules/FieldLabels/FieldLabels.d.ts +42 -0
- package/dist/cjs/molecules/FieldLabels/FieldLabels.stories.d.ts +8 -0
- package/dist/cjs/molecules/FieldLabels/helpers.d.ts +8 -0
- package/dist/cjs/molecules/FieldMapper/FieldMapper.d.ts +13 -0
- package/dist/cjs/molecules/FieldSection/FieldSection.d.ts +9 -0
- package/dist/cjs/molecules/FieldSection/FieldSection.stories.d.ts +8 -0
- package/dist/cjs/molecules/HorizontalButtonsField/HorizontalButtonsField.d.ts +12 -0
- package/dist/cjs/molecules/HorizontalButtonsField/HorizontalButtonsField.stories.d.ts +15 -0
- package/dist/cjs/molecules/Image/Image.d.ts +20 -0
- package/dist/cjs/molecules/Image/Image.stories.d.ts +8 -0
- package/dist/cjs/molecules/InputField/InputField.d.ts +22 -0
- package/dist/cjs/molecules/InputField/InputField.stories.d.ts +66 -0
- package/dist/cjs/molecules/Link/Link.d.ts +14 -0
- package/dist/cjs/molecules/Link/Link.stories.d.ts +8 -0
- package/dist/cjs/molecules/MenuItems/MenuItem.d.ts +20 -0
- package/dist/cjs/molecules/MenuItems/MenuItems.d.ts +11 -0
- package/dist/cjs/molecules/MenuItems/MenuItems.stories.d.ts +8 -0
- package/dist/cjs/molecules/MenuNavigation/MenuNavigation.d.ts +15 -0
- package/dist/cjs/molecules/MenuNavigation/MenuNavigation.stories.d.ts +9 -0
- package/dist/cjs/molecules/PasswordSetup/PasswordSetup.d.ts +13 -0
- package/dist/cjs/molecules/PasswordSetup/PasswordSetup.stories.d.ts +8 -0
- package/dist/cjs/molecules/PasswordSetup/types.d.ts +25 -0
- package/dist/cjs/molecules/PasswordSetup/utils.d.ts +3 -0
- package/dist/cjs/molecules/PdfDocument/PdfDocument.d.ts +14 -0
- package/dist/cjs/molecules/PdfDocument/PdfDocument.stories.d.ts +8 -0
- package/dist/cjs/molecules/RadioButtonField/RadioButtonField.d.ts +74 -0
- package/dist/cjs/molecules/RadioButtonField/RadioButtonField.stories.d.ts +74 -0
- package/dist/cjs/molecules/SelectField/SelectField.d.ts +23 -0
- package/dist/cjs/molecules/SelectField/SelectField.stories.d.ts +53 -0
- package/dist/cjs/molecules/SelectableInfoCard/BaseSelectable.d.ts +9 -0
- package/dist/cjs/molecules/SelectableInfoCard/SelectableCardGroup.d.ts +9 -0
- package/dist/cjs/molecules/SelectableInfoCard/SelectableInfoCard.stories.d.ts +8 -0
- package/dist/cjs/molecules/SelectableInfoCard/styles.d.ts +19 -0
- package/dist/cjs/molecules/SettingsSelectionField/SettingsSelectionField.d.ts +9 -0
- package/dist/cjs/molecules/SettingsSelectionField/SettingsSelectionField.stories.d.ts +8 -0
- package/dist/cjs/molecules/Stepper/Step.d.ts +9 -0
- package/dist/cjs/molecules/Stepper/Stepper.d.ts +12 -0
- package/dist/cjs/molecules/Stepper/Stepper.stories.d.ts +8 -0
- package/dist/cjs/molecules/Stepper/styles.d.ts +40 -0
- package/dist/cjs/molecules/TabGroup/TabGroup.d.ts +32 -0
- package/dist/cjs/molecules/TabGroup/TabGroup.stories.d.ts +8 -0
- package/dist/cjs/molecules/TabGroup/styles.d.ts +43 -0
- package/dist/cjs/molecules/TabGroup/useTabAnimation.d.ts +6 -0
- package/dist/cjs/molecules/TextMolecule/TextMolecule.d.ts +20 -0
- package/dist/cjs/molecules/TextMolecule/TextMolecule.stories.d.ts +8 -0
- package/dist/cjs/molecules/Video/Video.d.ts +22 -0
- package/dist/cjs/molecules/Video/Video.stories.d.ts +8 -0
- package/dist/cjs/molecules/ZealUIModal/ZealUIModal.d.ts +30 -0
- package/dist/cjs/molecules/ZealUIModal/ZealUIModal.stories.d.ts +8 -0
- package/dist/cjs/molecules/index.d.ts +31 -0
- package/dist/cjs/organisms/Organism/Organism.d.ts +5 -0
- package/dist/cjs/organisms/Organism/Organism.stories.d.ts +8 -0
- package/dist/cjs/organisms/Organism/mock-data.d.ts +410 -0
- package/dist/cjs/organisms/OrganismItem/OrganismItem.d.ts +14 -0
- package/dist/cjs/organisms/OrganismItem/helpers.d.ts +3 -0
- package/dist/cjs/organisms/index.d.ts +2 -0
- package/dist/cjs/organisms/types.d.ts +21 -0
- package/dist/cjs/theme/index.d.ts +5 -0
- package/dist/cjs/theme/provider.d.ts +7 -0
- package/dist/cjs/theme/theme.d.ts +2 -0
- package/dist/cjs/theme/toastStyles.d.ts +1 -0
- package/dist/cjs/theme/types.d.ts +19 -0
- package/dist/cjs/theme/useMediaQuery.d.ts +2 -0
- package/dist/cjs/typescript.d.ts +17 -0
- package/dist/esm/assets/index.d.ts +8 -0
- package/dist/esm/atoms/Avatar/Avatar.d.ts +20 -0
- package/dist/esm/atoms/Buttons/IconButton.d.ts +12 -0
- package/dist/esm/atoms/Buttons/TextButton.d.ts +21 -0
- package/dist/esm/atoms/Buttons/TouchableOpacity.d.ts +16 -0
- package/dist/esm/atoms/Checkbox/Checkbox.d.ts +14 -0
- package/dist/esm/atoms/Checkbox/helpers.d.ts +2 -0
- package/dist/esm/atoms/Checkbox/types.d.ts +18 -0
- package/dist/esm/atoms/Circle/Circle.d.ts +12 -0
- package/dist/esm/atoms/CircularIndicator/CircularIndicator.d.ts +12 -0
- package/dist/esm/atoms/Divider/Divider.d.ts +13 -0
- package/dist/esm/atoms/HorizontalButtons/HorizontalButtons.d.ts +11 -0
- package/dist/esm/atoms/Icon/Icon.d.ts +38 -0
- package/dist/esm/atoms/Input/Input.d.ts +39 -0
- package/dist/esm/atoms/Input/helpers.d.ts +44 -0
- package/dist/esm/atoms/Paddings/Paddings.d.ts +13 -0
- package/dist/esm/atoms/RadioButtons/RadioButtons.d.ts +56 -0
- package/dist/esm/atoms/RadioButtons/RadioOption.d.ts +11 -0
- package/dist/esm/atoms/RadioButtons/helpers.d.ts +17 -0
- package/dist/esm/atoms/RadioButtons/styles.d.ts +13 -0
- package/dist/esm/atoms/RegularImage/RegularImage.d.ts +38 -0
- package/dist/esm/atoms/RichTextViewer/RichTextViewer.d.ts +24 -0
- package/dist/esm/atoms/RichTextViewer/components/EditorElement.d.ts +5 -0
- package/dist/esm/atoms/RichTextViewer/components/Leaf.d.ts +2 -0
- package/dist/esm/atoms/RichTextViewer/components/index.d.ts +2 -0
- package/dist/esm/atoms/RichTextViewer/types.d.ts +36 -0
- package/dist/esm/atoms/Select/Select.d.ts +34 -0
- package/dist/esm/atoms/Select/styles.d.ts +27 -0
- package/dist/esm/atoms/Spacer/Spacer.d.ts +11 -0
- package/dist/esm/atoms/Spinner/Spinner.d.ts +9 -0
- package/dist/esm/atoms/Tab/Tab.d.ts +56 -0
- package/dist/esm/atoms/Tab/styles.d.ts +18 -0
- package/dist/esm/atoms/Tab/utils.d.ts +4 -0
- package/dist/esm/atoms/TextWrapper/TextWrapper.d.ts +23 -0
- package/dist/esm/atoms/Toast/ToastContent.d.ts +7 -0
- package/dist/esm/atoms/Toast/toast.d.ts +3 -0
- package/dist/esm/atoms/Toast/types.d.ts +6 -0
- package/dist/esm/atoms/Tooltip/Tooltip.d.ts +12 -0
- package/dist/esm/atoms/ValidationTag/ValidationTag.d.ts +6 -0
- package/dist/esm/atoms/index.d.ts +23 -0
- package/dist/esm/constants/params.d.ts +8 -0
- package/dist/esm/containers/Container.d.ts +84 -0
- package/dist/esm/containers/Container.stories.d.ts +7 -0
- package/dist/esm/containers/FormContainer.d.ts +8 -0
- package/dist/esm/containers/FormOrganismItem.d.ts +11 -0
- package/dist/esm/containers/FormStepContainer.d.ts +9 -0
- package/dist/esm/containers/MoleculeItem.d.ts +8 -0
- package/dist/esm/containers/helpers.d.ts +6 -0
- package/dist/esm/containers/hooks/index.d.ts +3 -0
- package/dist/esm/containers/hooks/useCheckCondition.d.ts +16 -0
- package/dist/esm/containers/hooks/useCheckCondition.test.d.ts +1 -0
- package/dist/esm/containers/hooks/useFormOrganismItem.d.ts +3 -0
- package/dist/esm/containers/hooks/useSetFormData.d.ts +10 -0
- package/dist/esm/containers/hooks/useStateListenerValue.d.ts +18 -0
- package/dist/esm/containers/hooks/useStateModifierHandler.d.ts +7 -0
- package/dist/esm/containers/hooks/useStateViewModifierHandler.d.ts +2 -0
- package/dist/esm/containers/index.d.ts +5 -0
- package/dist/esm/containers/mock-data.d.ts +1153 -0
- package/dist/esm/containers/styles.d.ts +41 -0
- package/dist/esm/containers/types/moleculeTypes.d.ts +345 -0
- package/dist/esm/containers/types/types.d.ts +135 -0
- package/dist/esm/contexts/AccountButtonContext/AccountButtonContext.d.ts +14 -0
- package/dist/esm/contexts/AccountButtonContext/AccountButtonContextProvider.d.ts +9 -0
- package/dist/esm/contexts/ButtonActionsContext/ButtonActionsContext.d.ts +12 -0
- package/dist/esm/contexts/ButtonActionsContext/ButtonActionsContextProvider.d.ts +26 -0
- package/dist/esm/contexts/FormStepContext/FormStepContext.d.ts +13 -0
- package/dist/esm/contexts/FormStepContext/FormStepContextProvider.d.ts +5 -0
- package/dist/esm/contexts/FormStepContext/utils.d.ts +2 -0
- package/dist/esm/contexts/MlrRichTextViewerContext/MlrRichTextViewerContext.d.ts +8 -0
- package/dist/esm/contexts/MlrRichTextViewerContext/MlrRichTextViewerProvider.d.ts +8 -0
- package/dist/esm/contexts/MlrRichTextViewerContext/types.d.ts +15 -0
- package/dist/esm/contexts/OrganismContext/OrganismContext.d.ts +33 -0
- package/dist/esm/contexts/OrganismContext/OrganismContextProvider.d.ts +31 -0
- package/dist/esm/contexts/OrganismContext/utils.d.ts +5 -0
- package/dist/esm/contexts/StateContext/StateContext.d.ts +7 -0
- package/dist/esm/contexts/StateContext/StateContextProvider.d.ts +7 -0
- package/dist/esm/contexts/hooks/index.d.ts +6 -0
- package/dist/esm/contexts/hooks/useAccountButtonContext.d.ts +6 -0
- package/dist/esm/contexts/hooks/useButtonActionsContext.d.ts +1 -0
- package/dist/esm/contexts/hooks/useFormStepContext.d.ts +1 -0
- package/dist/esm/contexts/hooks/useMlrRichTextViewerContext.d.ts +1 -0
- package/dist/esm/contexts/hooks/useOrganismContext.d.ts +1 -0
- package/dist/esm/contexts/hooks/useStateContext.d.ts +1 -0
- package/dist/esm/contexts/index.d.ts +13 -0
- package/dist/esm/fieldsConfiguration/getFieldPlaceholder.d.ts +2 -0
- package/dist/esm/fieldsConfiguration/index.d.ts +3 -0
- package/dist/esm/fieldsConfiguration/types.d.ts +29 -0
- package/dist/esm/fieldsConfiguration/utils.d.ts +6 -0
- package/dist/esm/helpers/constants.d.ts +6 -0
- package/dist/esm/helpers/date.d.ts +3 -0
- package/dist/esm/helpers/slate.d.ts +2 -0
- package/dist/esm/helpers/styles.d.ts +5 -0
- package/dist/esm/helpers/utils.d.ts +14 -0
- package/dist/esm/helpers/validations.d.ts +23 -0
- package/dist/esm/hooks/index.d.ts +2 -0
- package/dist/esm/hooks/useRequiredConsentsAcceptedValues.d.ts +2 -0
- package/dist/esm/hooks/useStep.d.ts +11 -0
- package/dist/esm/icons/ArrowRight.d.ts +2 -0
- package/dist/esm/icons/Bell.d.ts +2 -0
- package/dist/esm/icons/Bookmark.d.ts +2 -0
- package/dist/esm/icons/CaretDown.d.ts +2 -0
- package/dist/esm/icons/CaretLeft.d.ts +2 -0
- package/dist/esm/icons/CaretRight.d.ts +2 -0
- package/dist/esm/icons/CaretUp.d.ts +2 -0
- package/dist/esm/icons/Check.d.ts +2 -0
- package/dist/esm/icons/Close.d.ts +2 -0
- package/dist/esm/icons/Edit.d.ts +2 -0
- package/dist/esm/icons/Filter.d.ts +2 -0
- package/dist/esm/icons/Hide.d.ts +2 -0
- package/dist/esm/icons/Info.d.ts +2 -0
- package/dist/esm/icons/InfoBoxIcon.d.ts +2 -0
- package/dist/esm/icons/Mail.d.ts +2 -0
- package/dist/esm/icons/Menu.d.ts +2 -0
- package/dist/esm/icons/Minus.d.ts +2 -0
- package/dist/esm/icons/Mobile.d.ts +2 -0
- package/dist/esm/icons/Play.d.ts +2 -0
- package/dist/esm/icons/Save.d.ts +2 -0
- package/dist/esm/icons/Search.d.ts +2 -0
- package/dist/esm/icons/View.d.ts +2 -0
- package/dist/esm/icons/Warning.d.ts +2 -0
- package/dist/esm/icons/index.d.ts +23 -0
- package/dist/esm/index.css +503 -0
- package/dist/esm/index.d.ts +7 -0
- package/dist/esm/index.js +23 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/molecules/Alert/Alert.d.ts +20 -0
- package/dist/esm/molecules/Alert/Alert.stories.d.ts +9 -0
- package/dist/esm/molecules/AvatarDropdown/AvatarDropdown.d.ts +11 -0
- package/dist/esm/molecules/AvatarDropdown/AvatarDropdown.stories.d.ts +8 -0
- package/dist/esm/molecules/BottomNavBarItem/BottomNavBarItem.d.ts +11 -0
- package/dist/esm/molecules/BottomNavBarItem/BottomNavBarItem.stories.d.ts +8 -0
- package/dist/esm/molecules/Button/Button.d.ts +47 -0
- package/dist/esm/molecules/Button/Button.stories.d.ts +8 -0
- package/dist/esm/molecules/Caruser/Carousel.d.ts +35 -0
- package/dist/esm/molecules/CheckboxField/CheckboxField.d.ts +37 -0
- package/dist/esm/molecules/CheckboxField/CheckboxField.stories.d.ts +61 -0
- package/dist/esm/molecules/CheckboxField/CheckboxGroup.d.ts +10 -0
- package/dist/esm/molecules/CheckboxField/CheckboxGroup.stories.d.ts +32 -0
- package/dist/esm/molecules/CheckboxField/styles.d.ts +13 -0
- package/dist/esm/molecules/Checklist/Checklist.d.ts +30 -0
- package/dist/esm/molecules/Checklist/Checklist.stories.d.ts +8 -0
- package/dist/esm/molecules/Consent/Consent.d.ts +27 -0
- package/dist/esm/molecules/Consent/Consent.stories.d.ts +8 -0
- package/dist/esm/molecules/Consent/ConsentCapture.d.ts +20 -0
- package/dist/esm/molecules/Consent/ConsentMolecule.d.ts +11 -0
- package/dist/esm/molecules/Consent/consentMock.d.ts +7 -0
- package/dist/esm/molecules/CustomValidation/CustomValidation.d.ts +14 -0
- package/dist/esm/molecules/CustomValidation/CustomValidation.stories.d.ts +8 -0
- package/dist/esm/molecules/Drawer/Drawer.d.ts +3 -0
- package/dist/esm/molecules/Drawer/Drawer.stories.d.ts +9 -0
- package/dist/esm/molecules/Drawer/styles.d.ts +34 -0
- package/dist/esm/molecules/EmphasizedText/EmphasizedText.d.ts +6 -0
- package/dist/esm/molecules/EmphasizedText/EmphasizedText.stories.d.ts +8 -0
- package/dist/esm/molecules/FeedContentHeader/FeedContentHeader.d.ts +11 -0
- package/dist/esm/molecules/FeedContentHeader/FeedContentHeader.stories.d.ts +8 -0
- package/dist/esm/molecules/FieldLabels/FieldLabels.d.ts +42 -0
- package/dist/esm/molecules/FieldLabels/FieldLabels.stories.d.ts +8 -0
- package/dist/esm/molecules/FieldLabels/helpers.d.ts +8 -0
- package/dist/esm/molecules/FieldMapper/FieldMapper.d.ts +13 -0
- package/dist/esm/molecules/FieldSection/FieldSection.d.ts +9 -0
- package/dist/esm/molecules/FieldSection/FieldSection.stories.d.ts +8 -0
- package/dist/esm/molecules/HorizontalButtonsField/HorizontalButtonsField.d.ts +12 -0
- package/dist/esm/molecules/HorizontalButtonsField/HorizontalButtonsField.stories.d.ts +15 -0
- package/dist/esm/molecules/Image/Image.d.ts +20 -0
- package/dist/esm/molecules/Image/Image.stories.d.ts +8 -0
- package/dist/esm/molecules/InputField/InputField.d.ts +22 -0
- package/dist/esm/molecules/InputField/InputField.stories.d.ts +66 -0
- package/dist/esm/molecules/Link/Link.d.ts +14 -0
- package/dist/esm/molecules/Link/Link.stories.d.ts +8 -0
- package/dist/esm/molecules/MenuItems/MenuItem.d.ts +20 -0
- package/dist/esm/molecules/MenuItems/MenuItems.d.ts +11 -0
- package/dist/esm/molecules/MenuItems/MenuItems.stories.d.ts +8 -0
- package/dist/esm/molecules/MenuNavigation/MenuNavigation.d.ts +15 -0
- package/dist/esm/molecules/MenuNavigation/MenuNavigation.stories.d.ts +9 -0
- package/dist/esm/molecules/PasswordSetup/PasswordSetup.d.ts +13 -0
- package/dist/esm/molecules/PasswordSetup/PasswordSetup.stories.d.ts +8 -0
- package/dist/esm/molecules/PasswordSetup/types.d.ts +25 -0
- package/dist/esm/molecules/PasswordSetup/utils.d.ts +3 -0
- package/dist/esm/molecules/PdfDocument/PdfDocument.d.ts +14 -0
- package/dist/esm/molecules/PdfDocument/PdfDocument.stories.d.ts +8 -0
- package/dist/esm/molecules/RadioButtonField/RadioButtonField.d.ts +74 -0
- package/dist/esm/molecules/RadioButtonField/RadioButtonField.stories.d.ts +74 -0
- package/dist/esm/molecules/SelectField/SelectField.d.ts +23 -0
- package/dist/esm/molecules/SelectField/SelectField.stories.d.ts +53 -0
- package/dist/esm/molecules/SelectableInfoCard/BaseSelectable.d.ts +9 -0
- package/dist/esm/molecules/SelectableInfoCard/SelectableCardGroup.d.ts +9 -0
- package/dist/esm/molecules/SelectableInfoCard/SelectableInfoCard.stories.d.ts +8 -0
- package/dist/esm/molecules/SelectableInfoCard/styles.d.ts +19 -0
- package/dist/esm/molecules/SettingsSelectionField/SettingsSelectionField.d.ts +9 -0
- package/dist/esm/molecules/SettingsSelectionField/SettingsSelectionField.stories.d.ts +8 -0
- package/dist/esm/molecules/Stepper/Step.d.ts +9 -0
- package/dist/esm/molecules/Stepper/Stepper.d.ts +12 -0
- package/dist/esm/molecules/Stepper/Stepper.stories.d.ts +8 -0
- package/dist/esm/molecules/Stepper/styles.d.ts +40 -0
- package/dist/esm/molecules/TabGroup/TabGroup.d.ts +32 -0
- package/dist/esm/molecules/TabGroup/TabGroup.stories.d.ts +8 -0
- package/dist/esm/molecules/TabGroup/styles.d.ts +43 -0
- package/dist/esm/molecules/TabGroup/useTabAnimation.d.ts +6 -0
- package/dist/esm/molecules/TextMolecule/TextMolecule.d.ts +20 -0
- package/dist/esm/molecules/TextMolecule/TextMolecule.stories.d.ts +8 -0
- package/dist/esm/molecules/Video/Video.d.ts +22 -0
- package/dist/esm/molecules/Video/Video.stories.d.ts +8 -0
- package/dist/esm/molecules/ZealUIModal/ZealUIModal.d.ts +30 -0
- package/dist/esm/molecules/ZealUIModal/ZealUIModal.stories.d.ts +8 -0
- package/dist/esm/molecules/index.d.ts +31 -0
- package/dist/esm/organisms/Organism/Organism.d.ts +5 -0
- package/dist/esm/organisms/Organism/Organism.stories.d.ts +8 -0
- package/dist/esm/organisms/Organism/mock-data.d.ts +410 -0
- package/dist/esm/organisms/OrganismItem/OrganismItem.d.ts +14 -0
- package/dist/esm/organisms/OrganismItem/helpers.d.ts +3 -0
- package/dist/esm/organisms/index.d.ts +2 -0
- package/dist/esm/organisms/types.d.ts +21 -0
- package/dist/esm/theme/index.d.ts +5 -0
- package/dist/esm/theme/provider.d.ts +7 -0
- package/dist/esm/theme/theme.d.ts +2 -0
- package/dist/esm/theme/toastStyles.d.ts +1 -0
- package/dist/esm/theme/types.d.ts +19 -0
- package/dist/esm/theme/useMediaQuery.d.ts +2 -0
- package/dist/esm/typescript.d.ts +17 -0
- package/dist/index.d.ts +1943 -0
- package/package.json +13 -4
@@ -0,0 +1,23 @@
|
|
1
|
+
import e from"@emotion/styled";import{css as t,ThemeProvider as n,Global as r,useTheme as o,keyframes as i}from"@emotion/react";import{jsx as a,jsxs as u,Fragment as l}from"@emotion/react/jsx-runtime";import*as s from"react";import c,{useState as d,useEffect as f,createContext as p,useContext as h,Component as v,useRef as g,useReducer as m,useMemo as y,useCallback as b,useLayoutEffect as C,forwardRef as D,useImperativeHandle as w,Fragment as x,Children as E}from"react";import{createTheme as B,StyledEngineProvider as k,ThemeProvider as A,alpha as F}from"@mui/material/styles";import{CssBaseline as O,Stack as S,FormControl as P,InputLabel as T,FormControlLabel as M,Radio as _,RadioGroup as L,Checkbox as j,Drawer as I,TextField as N,Divider as R,CircularProgress as z,ButtonBase as V,Modal as W}from"@mui/material";import{extendTheme as H}from"@mui/joy/styles";import{deepmerge as $}from"@mui/utils";import*as U from"react-dom";import q from"react-dom";import X from"@mui/joy/Link";import{pdfjs as K,Document as Y,Page as G}from"react-pdf";import{useNavigate as Z,useSearchParams as J,useInRouterContext as Q,BrowserRouter as ee}from"react-router-dom";var te=function(){return te=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},te.apply(this,arguments)};function ne(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function re(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function u(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}l((r=r.apply(e,t||[])).next())}))}function oe(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}function ie(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function ae(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var ue,le,se,ce,de=e.div(le||(le=ae(["\n cursor: pointer;\n transition: 0.15s;\n opacity: 1;\n\n ","\n"],["\n cursor: pointer;\n transition: 0.15s;\n opacity: 1;\n\n ","\n"])),(function(e){var n=e.disabled,r=e.activeOpacity,o=void 0===r?.5:r;return e.withoutOpacityEffect?"":n?"cursor: unset;":t(ue||(ue=ae(["\n &:hover {\n opacity: ",";\n }\n\n &:active {\n opacity: ",";\n }\n "],["\n &:hover {\n opacity: ",";\n }\n\n &:active {\n opacity: ",";\n }\n "])),o+.2,o)})),fe=function(e){return{maxWidth:e,maxHeight:e,minWidth:e,minHeight:e}},pe=function(e,t){var n=[parseInt(e.substring(1,3),16),parseInt(e.substring(3,5),16),parseInt(e.substring(5,7),16)],r=t>=0;n=n.map((function(e){var n=r?255-e:e;return e+Math.round(n*t)}));var o=n[0],i=n[1],a=n[2];return"rgb(".concat(o,", ").concat(i,", ").concat(a,")")},he=function(e,t){return void 0===t&&(t=.7),pe(e,t)},ve=function(e,t){return void 0===t&&(t=-.65),pe(e,t)},ge={colors:{pink:"#F10088",pinkTint:"#FED2EB",pinkShade:"#8A0550",orange:"#FF5B29",orangeTint:"#FFE0D6",orangeShade:"#842F15",purple:"#8800F1",purpleTint:"#EBD6FF",purpleShade:"#640BA8",indigo:"#0B003D",indigoTint1:"#342966",indigoTint2:"#5A508B",gray1:"#1D242D",gray2:"#535A5F",gray3:"#ABAEB5",gray4:"#E1E4E8",gray5:"#F9FBFD",green:"#00A65D",greenTint:"#D6F6E8",greenShade:"#005731",red:"#F33938",redTint:"#FFDBDA",redShade:"#960303",yellow:"#F3BB41",yellowTint:"#FFF0D0",yellowShade:"#654A10",blue:"#1293FD",blueTint:"#D7EDFF",blueShade:"#09487B",primary:"#930EB5",primaryTint:he("#930EB5"),primaryShade:ve("#930EB5"),secondary:"#48E0F9",secondaryTint:he("#48E0F9"),secondaryShade:ve("#48E0F9"),black:"#000",white:"#FFFFFF",background:"#fdfdfd"},fonts:{"3XL":{"font-weight":"700","font-size":32,"line-height":38},"2XL":{"font-weight":"700","font-size":24,"line-height":28},XL:{"font-weight":"700","font-size":16,"line-height":19},L:{"font-weight":"600","font-size":14,"line-height":17},M:{"font-weight":"400","font-size":16,"line-height":21},S:{"font-weight":"400","font-size":14,"line-height":17},XS:{"font-weight":"400","font-size":12,"line-height":14}},sizes:{"5XL":96,"4XL":64,"3XL":48,"2XL":40,XL:32,L:24,M:16,S:8,XS:4},devices:{xs:"0",sm:"768px",md:"992px",lg:"1200px",xl:"1400px"}},me=ge.colors,ye=ge.sizes,be=t(se||(se=ae(["\n .rc-notification {\n transform: translate(-50%, 0);\n width: max-content;\n max-width: 90%;\n &-notice {\n margin: ","px 0;\n border-radius: 100px;\n padding: ","px;\n padding-right: ","px;\n &-close {\n top: 15px;\n right: 20px;\n opacity: 0.8;\n &:hover {\n opacity: 1;\n }\n }\n &.toast-success {\n background-color: ",";\n }\n &.toast-error {\n background-color: ",";\n }\n &.toast-warning {\n background-color: ",";\n }\n &.toast-infoTierOne {\n background-color: ",";\n }\n &.toast-infoTierTwo {\n background-color: ",";\n }\n }\n &-fade {\n overflow: hidden;\n transition: all 0.3s;\n }\n\n &-fade-appear-start {\n transform: translateY(-100%);\n opacity: 0;\n }\n\n &-fade-appear-active {\n transform: translateY(0);\n opacity: 1;\n }\n }\n"],["\n .rc-notification {\n transform: translate(-50%, 0);\n width: max-content;\n max-width: 90%;\n &-notice {\n margin: ","px 0;\n border-radius: 100px;\n padding: ","px;\n padding-right: ","px;\n &-close {\n top: 15px;\n right: 20px;\n opacity: 0.8;\n &:hover {\n opacity: 1;\n }\n }\n &.toast-success {\n background-color: ",";\n }\n &.toast-error {\n background-color: ",";\n }\n &.toast-warning {\n background-color: ",";\n }\n &.toast-infoTierOne {\n background-color: ",";\n }\n &.toast-infoTierTwo {\n background-color: ",";\n }\n }\n &-fade {\n overflow: hidden;\n transition: all 0.3s;\n }\n\n &-fade-appear-start {\n transform: translateY(-100%);\n opacity: 0;\n }\n\n &-fade-appear-active {\n transform: translateY(0);\n opacity: 1;\n }\n }\n"])),ye.S+ye.XS,ye.S,ye.M+ye.XS,me.greenTint,me.redTint,me.yellowTint,me.blueTint,he(me.gray2)),Ce=t(ce||(ce=ae(["\n * {\n font-family: 'Rubik', sans-serif;\n box-sizing: border-box;\n }\n body {\n margin: 0;\n ",";\n input:-webkit-autofill {\n -webkit-background-clip: text;\n }\n }\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n p,\n ol,\n ul {\n padding: 0;\n margin: 0;\n }\n"],["\n * {\n font-family: 'Rubik', sans-serif;\n box-sizing: border-box;\n }\n body {\n margin: 0;\n ",";\n input:-webkit-autofill {\n -webkit-background-clip: text;\n }\n }\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n p,\n ol,\n ul {\n padding: 0;\n margin: 0;\n }\n"])),be),De=$(B({palette:{mode:"light"},typography:{fontFamily:"'Rubik', sans-serif"},shape:{borderRadius:8}}),H({fontFamily:{body:"'Rubik', sans-serif",display:"'Rubik', sans-serif",code:"'Roboto Mono', monospace"},radius:{xs:"2px",sm:"4px",md:"8px",lg:"12px",xl:"16px"}})),we=function(e){return a(k,te({injectFirst:!0},{children:a(n,te({theme:te(te(te({},De),ge),e.theme)},{children:u(A,te({theme:te(te(te({},De),ge),e.theme)},{children:[a(O,{}),a(r,{styles:Ce}),e.children]}))}))}))},xe=function(e){var t,n,r,o,i=(t=e,n=ge.devices,r=Object.keys(n),o=r[r.indexOf(t)+1],"xl"===t?"(min-width: ".concat(n[t]," )"):"(min-width: ".concat(n[t],") and (max-width: ").concat(n[o]||n[t],")")),a=function(){return"undefined"!=typeof window&&window.matchMedia(i).matches},u=d(a()),l=u[0],s=u[1],c=function(){return s(a())};return f((function(){var e=window.matchMedia(i);return c(),e.addEventListener("change",c),function(){e.removeEventListener("change",c)}}),[i]),l},Ee=function(e){var t=e.fill,n=void 0===t?ge.colors.gray5:t,r=e.color,o=void 0===r?ge.colors.gray3:r,i=e.size,u=void 0===i?33:i,l=ne(e,["fill","color","size"]);return a("svg",te({width:u,height:u,viewBox:"0 0 33 33",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l,{children:a("path",{d:"M21.734 24.2969L16.1687 20.8186L10.6035 24.2969V8.99253C10.6035 8.80803 10.6768 8.63109 10.8073 8.50063C10.9377 8.37017 11.1147 8.29688 11.2992 8.29688H21.0383C21.2228 8.29688 21.3997 8.37017 21.5302 8.50063C21.6607 8.63109 21.734 8.80803 21.734 8.99253V24.2969Z",stroke:o,fill:n,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}))},Be=function(e){var t=e.color,n=void 0===t?ge.colors.gray1:t,r=e.size;return a("svg",te({width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",style:fe(void 0===r?32:r)},{children:a("path",{d:"M24 12.5417L16 20.5417L8 12.5417",stroke:n,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}))},ke=function(e){var t=e.color,n=void 0===t?ge.colors.gray1:t,r=ne(e,["color"]);return a("svg",te({width:18,height:11,fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{children:a("path",{d:"m1 9.5 8-8 8 8",stroke:n,strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})}))},Ae=function(e){var t=e.color,n=void 0===t?ge.colors.blue:t,r=e.size,o=void 0===r?16:r,i=ne(e,["color","size"]);return a("svg",te({width:17,height:16,viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:fe(o)},i,{children:a("path",{d:"M10.7693 12L6.76929 8L10.7693 4",stroke:n,strokeLinecap:"round",strokeLinejoin:"round"})}))},Fe=function(e){var t=e.color,n=void 0===t?ge.colors.gray1:t,r=e.size,o=void 0===r?33:r,i=ne(e,["color","size"]);return a("svg",te({width:"33",height:"33",viewBox:"0 0 33 33",fill:"none"},i,{style:fe(o)},{children:a("path",{d:"M12.9968 8.5L20.9968 16.5L12.9968 24.5",stroke:n,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}))},Oe=function(e){var t=e.size,n=void 0===t?16:t,r=e.color,o=void 0===r?ge.colors.black:r;return a("svg",te({width:16,height:16,viewBox:"0 0 16 16",fill:"none",style:fe(n)},{children:a("path",{d:"M12 5.83331L6.66667 11.1666L4 8.49998",stroke:o,strokeLinecap:"round",strokeLinejoin:"round"})}))},Se=function(e){var t=e.size,n=void 0===t?16:t,r=e.color,o=void 0===r?ge.colors.black:r;return u("svg",te({pointerEvents:"none",width:n,height:n,viewBox:"0 0 ".concat(n," ").concat(n),fill:"none"},{children:[a("path",{d:"M8 12C10.2091 12 12 10.2091 12 8C12 5.79086 10.2091 4 8 4C5.79086 4 4 5.79086 4 8C4 10.2091 5.79086 12 8 12Z",stroke:o,strokeLinecap:"round",strokeLinejoin:"round"}),a("path",{d:"M7.6665 7.66663H7.99984V9.99996H8.33317",stroke:o,strokeLinecap:"round",strokeLinejoin:"round"}),a("path",{d:"M7.91667 6.58333C8.14679 6.58333 8.33333 6.39679 8.33333 6.16667C8.33333 5.93655 8.14679 5.75 7.91667 5.75C7.68655 5.75 7.5 5.93655 7.5 6.16667C7.5 6.39679 7.68655 6.58333 7.91667 6.58333Z",fill:o})]}))},Pe=function(e){var t=e.size,n=void 0===t?32:t,r=e.color,o=void 0===r?ge.colors.gray1:r;return a("svg",te({width:32,height:32,viewBox:"0 0 32 32",style:fe(n),fill:"none"},{children:a("path",{d:"M8.68138 8.45905H23.3186C23.4508 8.45909 23.5802 8.49758 23.6909 8.56983C23.8016 8.64208 23.8889 8.74498 23.9422 8.86598C23.9955 8.98698 24.0124 9.12086 23.991 9.25132C23.9695 9.38177 23.9105 9.50317 23.8213 9.60072L18.2237 15.7606C18.1072 15.8853 18.0431 16.0501 18.0448 16.2207V21.043C18.0458 21.1563 18.0183 21.268 17.9646 21.3677C17.911 21.4675 17.8331 21.5522 17.7381 21.6138L15.0117 23.4286C14.9094 23.4959 14.7909 23.5345 14.6686 23.5402C14.5462 23.5459 14.4246 23.5186 14.3165 23.461C14.2084 23.4035 14.1178 23.3179 14.0542 23.2132C13.9907 23.1086 13.9565 22.9887 13.9552 22.8663V16.2207C13.9569 16.0501 13.8928 15.8853 13.7763 15.7606L8.1787 9.60072C8.08946 9.50317 8.03051 9.38177 8.00905 9.25132C7.98758 9.12086 8.00451 8.98698 8.05779 8.86598C8.11107 8.74498 8.19838 8.64208 8.3091 8.56983C8.41982 8.49758 8.54917 8.45909 8.68138 8.45905V8.45905Z",stroke:o,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}))},Te=function(e){var t=e.size,n=void 0===t?18:t,r=e.color,o=void 0===r?ge.colors.gray2:r;return u("svg",te({width:32,height:32,viewBox:"0 0 32 32",style:fe(n)},{children:[a("path",{d:"M24 8L8 24",stroke:o,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a("path",{d:"M24 24L8 8",stroke:o,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}))},Me=function(e){var t=e.color,n=void 0===t?ge.colors.primary:t,r=e.size;return u("svg",te({width:"33",height:"33",viewBox:"0 0 33 33",fill:"none",style:fe(void 0===r?32:r)},{children:[a("path",{d:"M16.8203 11.111C11.106 11.111 8.82031 16.2539 8.82031 16.2539C8.82031 16.2539 11.106 21.3967 16.8203 21.3967C22.5346 21.3967 24.8203 16.2539 24.8203 16.2539C24.8203 16.2539 22.5346 11.111 16.8203 11.111Z",stroke:n,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a("path",{d:"M16.8205 19.111C18.3985 19.111 19.6777 17.8318 19.6777 16.2539C19.6777 14.6759 18.3985 13.3967 16.8205 13.3967C15.2426 13.3967 13.9634 14.6759 13.9634 16.2539C13.9634 17.8318 15.2426 19.111 16.8205 19.111Z",stroke:n,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}))},_e=function(e){var t=e.color,n=void 0===t?ge.colors.gray1:t,r=e.size;return u("svg",te({width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",style:fe(void 0===r?32:r)},{children:[a("path",{d:"M11.8667 7.4231L12.8204 9.06807",stroke:n,strokeLinecap:"round",strokeLinejoin:"round"}),a("path",{d:"M9.91357 8.33929L10.2093 10.0176",stroke:n,strokeLinecap:"round",strokeLinejoin:"round"}),a("path",{d:"M7.72732 8.33508L7.43164 10.0175",stroke:n,strokeLinecap:"round",strokeLinejoin:"round"}),a("path",{d:"M5.77398 7.4231L4.82031 9.07639",stroke:n,strokeLinecap:"round",strokeLinejoin:"round"}),a("path",{d:"M4.82422 6.49023C5.52385 7.35645 6.80651 8.4517 8.82212 8.4517C10.8377 8.4517 12.1204 7.35645 12.82 6.49023",stroke:n,strokeLinecap:"round",strokeLinejoin:"round"})]}))},Le=function(e){var t=e.color,n=void 0===t?"#F20089":t,r=e.size,o=void 0===r?44:r;return u("svg",te({width:o,height:o,viewBox:"0 0 ".concat(o," ").concat(o),fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[a("path",{d:"M3.90742 14.3118C2.63783 12.9106 1.95569 11.0749 2.00223 9.18463C2.04877 7.29439 2.82043 5.49444 4.15743 4.15743C5.49444 2.82043 7.29439 2.04877 9.18463 2.00223C11.0749 1.95569 12.9106 2.63783 14.3118 3.90742L40.0926 29.6882C41.3622 31.0894 42.0443 32.9251 41.9978 34.8154C41.9512 36.7056 41.1796 38.5056 39.8426 39.8426C38.5056 41.1796 36.7056 41.9512 34.8154 41.9978C32.9251 42.0443 31.0894 41.3622 29.6882 40.0926L3.90742 14.3118Z",stroke:n,strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"}),a("path",{d:"M29.6882 3.90742C31.0894 2.63783 32.9251 1.95569 34.8154 2.00223C36.7056 2.04877 38.5056 2.82043 39.8426 4.15743C41.1796 5.49444 41.9512 7.29439 41.9978 9.18463C42.0443 11.0749 41.3622 12.9106 40.0926 14.3118L14.3118 40.0926C12.9106 41.3622 11.0749 42.0443 9.18463 41.9978C7.29439 41.9512 5.49444 41.1796 4.15743 39.8426C2.82043 38.5056 2.04877 36.7056 2.00223 34.8154C1.95569 32.9251 2.63783 31.0894 3.90742 29.6882L29.6882 3.90742Z",stroke:n,strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"}),a("path",{opacity:"0.5",d:"M22 22.9208C22.5085 22.9208 22.9208 22.5086 22.9208 22.0001C22.9208 21.4916 22.5085 21.0793 22 21.0793C21.4915 21.0793 21.0793 21.4916 21.0793 22.0001C21.0793 22.5086 21.4915 22.9208 22 22.9208Z",stroke:n,strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"}),a("path",{d:"M22 24.7622C23.5256 24.7622 24.7622 23.5256 24.7622 22C24.7622 20.4745 23.5256 19.2378 22 19.2378C20.4745 19.2378 19.2378 20.4745 19.2378 22C19.2378 23.5256 20.4745 24.7622 22 24.7622Z",fill:"#F20089"})]}))},je=function(e){var t=e.size,n=void 0===t?16:t,r=e.color,o=void 0===r?ge.colors.gray2:r;return a("svg",te({width:n,height:n,viewBox:"0 0 ".concat(n," ").concat(n),fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:a("path",{d:"M4 8H12",stroke:o,strokeLinecap:"round",strokeLinejoin:"round"})}))},Ie=function(e){var t=e.size,n=void 0===t?18:t,r=e.color,o=void 0===r?"#fff":r;return a("svg",te({width:18,height:18,viewBox:"0 0 18 18",fill:"none",style:fe(n)},{children:a("path",{d:"M5.325 17h5.333M2.017 7a5.992 5.992 0 0 1 6.025-6c3.3.025 5.941 2.767 5.941 6.075v.592c0 2.983.625 4.716 1.175 5.666a.666.666 0 0 1-.575 1H1.417a.668.668 0 0 1-.575-1c.55-.95 1.175-2.683 1.175-5.666V7Z",stroke:o,strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})}))},Ne=function(e){var t=e.size,n=void 0===t?18:t,r=e.color,o=void 0===r?ge.colors.yellowShade:r;return u("svg",te({width:18,height:18,viewBox:"0 0 18 18",fill:"none",style:fe(n)},{children:[a("path",{d:"M9 6.46v3.08M7.938 1.535 1.165 13.234a1.232 1.232 0 0 0 1.062 1.847h13.546a1.232 1.232 0 0 0 1.062-1.847L10.062 1.535a1.224 1.224 0 0 0-2.124 0v0Z",stroke:o,strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),a("path",{d:"M9 13.08a.77.77 0 1 0 0-1.54.77.77 0 0 0 0 1.54Z",fill:o})]}))},Re=function(e){var t=e.size,n=void 0===t?27:t,r=e.color,o=void 0===r?ge.colors.gray1:r;return a("svg",te({width:18,height:27,fill:"none",viewBox:"0 0 18 27",style:fe(n)},{children:a("path",{d:"M14.359 1.254H3.282c-1.02 0-1.846.826-1.846 1.846v20.308c0 1.02.826 1.846 1.846 1.846h11.077c1.02 0 1.846-.827 1.846-1.846V3.1c0-1.02-.827-1.846-1.846-1.846ZM1.436 4.946h14.769M1.436 21.562h14.769",stroke:o,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})}))},ze=function(e){var t=e.size,n=void 0===t?27:t,r=e.color,o=void 0===r?ge.colors.gray1:r;return u("svg",te({width:27,height:21,viewBox:"0 0 27 21",fill:"none",style:fe(n)},{children:[a("path",{d:"M1.82 1.254h24v17a1 1 0 0 1-1 1h-22a1 1 0 0 1-1-1v-17Z",stroke:o,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),a("path",{d:"m25.82 1.254-12 11-12-11",stroke:o,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]}))},Ve=function(e){var t=e.size,n=void 0===t?18:t,r=e.color,o=void 0===r?ge.colors.gray2:r;return u("svg",te({width:18,height:18,viewBox:"0 0 18 18",fill:"none",style:fe(n)},{children:[a("path",{d:"M8.65273 12.1304H5.87012V9.34783L14.2179 1L17.0006 3.78261L8.65273 12.1304Z",stroke:o,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a("path",{d:"M12.1318 3.08698L14.9144 5.86958",stroke:o,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a("path",{d:"M16.3053 8.65217V16.3043C16.3053 16.4888 16.232 16.6658 16.1016 16.7962C15.9711 16.9267 15.7942 17 15.6097 17H1.69663C1.51213 17 1.33519 16.9267 1.20473 16.7962C1.07427 16.6658 1.00098 16.4888 1.00098 16.3043V2.3913C1.00098 2.2068 1.07427 2.02986 1.20473 1.8994C1.33519 1.76894 1.51213 1.69565 1.69663 1.69565H9.3488",stroke:o,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}))},We=function(e){var t=e.size,n=void 0===t?18:t,r=e.color,o=void 0===r?ge.colors.gray2:r;return u("svg",te({width:18,height:18,viewBox:"0 0 18 18",fill:"none",style:fe(n)},{children:[a("path",{d:"M17.001 5.66364V16.2727C17.001 16.4656 16.9243 16.6506 16.788 16.787C16.6516 16.9234 16.4666 17 16.2737 17H1.72825C1.53536 17 1.35038 16.9234 1.21399 16.787C1.0776 16.6506 1.00098 16.4656 1.00098 16.2727V1.72728C1.00098 1.53439 1.0776 1.34941 1.21399 1.21302C1.35038 1.07663 1.53536 1 1.72825 1H12.3373C12.4318 0.999673 12.5253 1.01797 12.6127 1.05385C12.7001 1.08973 12.7795 1.14248 12.8464 1.2091L16.7919 5.15455C16.8585 5.22149 16.9112 5.30091 16.9471 5.38827C16.983 5.47563 17.0013 5.5692 17.001 5.66364V5.66364Z",stroke:o,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a("path",{d:"M4.6377 17V11.1819C4.6377 10.989 4.71432 10.804 4.85071 10.6676C4.9871 10.5312 5.17208 10.4546 5.36497 10.4546H12.6377C12.8306 10.4546 13.0156 10.5312 13.152 10.6676C13.2883 10.804 13.365 10.989 13.365 11.1819V17",stroke:o,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a("path",{d:"M11.1827 3.90906H6.0918",stroke:o,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}))},He=function(e){var t=e.size,n=void 0===t?19:t,r=e.color,o=void 0===r?ge.colors.gray2:r;return u("svg",te({width:19,height:14,viewBox:"0 0 19 14",fill:"none",style:fe(n)},{children:[a("path",{d:"M1.28174 7.14917H17.2817",stroke:o,strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),a("path",{d:"M1.28174 1.33105H17.2817",stroke:o,strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),a("path",{d:"M1.28174 12.9675H17.2817",stroke:o,strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})]}))},$e=function(e){var t=e.size,n=void 0===t?48:t,r=e.color,o=void 0===r?ge.colors.gray4:r;return u("svg",te({width:"49",height:"49",viewBox:"0 0 49 49",fill:"none",style:fe(n)},{children:[a("path",{d:"M24.457 40.4443C33.2936 40.4443 40.457 33.2809 40.457 24.4443C40.457 15.6078 33.2936 8.44434 24.457 8.44434C15.6205 8.44434 8.45703 15.6078 8.45703 24.4443C8.45703 33.2809 15.6205 40.4443 24.457 40.4443Z",stroke:o,strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"}),a("path",{d:"M29.7827 24.4442L21.7827 19.1108V29.7775L29.7827 24.4442Z",stroke:o,strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"})]}))},Ue=function(e){var t=e.size,n=void 0===t?32:t,r=e.color,o=void 0===r?ge.colors.gray3:r,i=ne(e,["size","color"]);return u("svg",te({width:32,height:32,viewBox:"0 0 32 32",style:fe(n),fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{children:[a("path",{d:"M15 22.0391C18.866 22.0391 22 18.9051 22 15.0391C22 11.1731 18.866 8.03906 15 8.03906C11.134 8.03906 8 11.1731 8 15.0391C8 18.9051 11.134 22.0391 15 22.0391Z",stroke:o,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a("path",{d:"M19.9502 19.9891L24.0002 24.0391",stroke:o,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}))},qe=function(e){var t=e.color,n=void 0===t?ge.colors.gray1:t,r=ne(e,["color"]);return u("svg",te({width:"19",height:"15",viewBox:"0 0 19 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{children:[a("path",{d:"M1.33337 7.5H17.3334",stroke:n,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a("path",{d:"M10.7878 0.95459L17.3332 7.50004L10.7878 14.0455",stroke:n,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}))},Xe={ArrowRight:qe,Bell:Ie,Bookmark:Ee,CaretDown:Be,CaretLeft:Ae,CaretRight:Fe,CaretUp:ke,Check:Oe,Close:Te,Edit:Ve,Filter:Pe,Hide:_e,Info:Se,InfoBoxIcon:Le,Mail:ze,Menu:He,Minus:je,Mobile:Re,Play:$e,Save:We,Search:Ue,View:Me,Warning:Ne},Ke=function(e){var t=e.name,n=e.color,r=ne(e,["name","color"]),i=(o()||ge).colors;return a(Xe[t],te({},r,{color:i[n]||n}))},Ye=p({steps:0,currentStep:0,canGoToNextStep:!1,canGoToPrevStep:!1,goToNextStep:function(){return null},goToPrevStep:function(){return null},reset:function(){return null},setStep:function(){return null},setInitSteps:function(){return null}}),Ge=p({actionContent:void 0,setActionContent:function(){return null},isModalVisible:!1,isDrawerVisible:!1,setDrawerVisible:function(){return null},setActivePopUpById:function(){return null},onCloseModal:function(){return null}}),Ze=function(){return h(Ge)},Je=p({isMLRReview:!1,annotationsList:{links:[],tags:[]},showAnnotations:!1}),Qe=function(){return h(Je)},et=p({items:[],groupStepItemsByStepContainer:function(){return new Map},dateFields:[],setDateFields:function(){return null},formId:"",submitHandler:function(){return Promise.resolve()},validations:[],editable:!0,isPreview:!1,isFormInEditMode:!0,organismMetadata:{},isConfigurationMode:!1,onConfigurationItemClicked:function(){return null},selectedConfigurationItemId:""}),tt=function(){return h(et)},nt=p({stateConfig:{},stateHandler:function(){return null}}),rt=function(){return h(nt)},ot=p({userInitials:"",logOutHandler:function(){return null},goToAccountInfo:function(){return null},username:""}),it=function(e){var t=e.id,n=e.isTrigger,r=void 0!==n&&n,o=rt(),i=o.stateConfig,a=o.stateHandler;return function(e){var n,o,u,l;if(r&&t in i){var s=i[t],c={click:"clicked",start:"started",complete:"completed",close:"closed"}[e];if(void 0!==s[c]){var d="closed"===c?((n={})[c]=!0,n.visible=!1,n):((o={})[c]=!0,o);console.log("callback data from zeal-ui: ",((u={})[t]=d,u)),null==a||a(((l={})[t]=d,l))}}}},at="alias",ut="webpageId",lt="applicationId",st="viewApplicationId",ct="selected-webpage-id",dt="selectedWebpageId",ft="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function pt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ht={exports:{}};ht.exports=function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(1);Object.defineProperty(t,"createAutoCorrectedDatePipe",{enumerable:!0,get:function(){return r(o).default}});var i=n(2);Object.defineProperty(t,"createNumberMask",{enumerable:!0,get:function(){return r(i).default}});var a=n(3);Object.defineProperty(t,"emailMask",{enumerable:!0,get:function(){return r(a).default}})},function(e,t){function n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"mm dd yyyy",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minYear,i=void 0===n?1:n,a=t.maxYear,u=void 0===a?9999:a,l=e.split(/[^dmyHMS]+/).sort((function(e,t){return o.indexOf(e)-o.indexOf(t)}));return function(t){var n=[],o={dd:31,mm:12,yy:99,yyyy:u,HH:23,MM:59,SS:59},a={dd:1,mm:1,yy:0,yyyy:i,HH:0,MM:0,SS:0},s=t.split("");l.forEach((function(t){var r=e.indexOf(t),i=parseInt(o[t].toString().substr(0,1),10);parseInt(s[r],10)>i&&(s[r+1]=s[r],s[r]=0,n.push(r))}));var c=0,d=l.some((function(n){var l=e.indexOf(n),s=n.length,d=t.substr(l,s).replace(/\D/g,""),f=parseInt(d,10);"mm"===n&&(c=f||0);var p="dd"===n?r[c]:o[n];if("yyyy"===n&&(1!==i||9999!==u)){var h=parseInt(o[n].toString().substring(0,d.length),10);return f<parseInt(a[n].toString().substring(0,d.length),10)||f>h}return f>p||d.length===s&&f<a[n]}));return!d&&{value:s.join(""),indexesOfPipedChars:n}}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;var r=[31,31,29,31,30,31,30,31,31,30,31,30,31],o=["yyyy","yy","mm","dd","HH","MM","SS"]},function(e,t){function n(){function e(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,t=e.length;if(e===u||e[0]===g[0]&&1===t)return g.split(u).concat([h]).concat(y.split(u));if(e===k&&E)return g.split(u).concat(["0",k,h]).concat(y.split(u));var n=e[0]===c&&T;n&&(e=e.toString().substr(1));var a=e.lastIndexOf(k),l=-1!==a,s=void 0,m=void 0,b=void 0;if(e.slice(-1*N)===y&&(e=e.slice(0,-1*N)),l&&(E||S)?(s=e.slice(e.slice(0,I)===g?I:0,a),m=r((m=e.slice(a+1,t)).replace(f,u))):s=e.slice(0,I)===g?e.slice(I):e,j&&(void 0===j?"undefined":i(j))===p){var D="."===w?"[.]":""+w,x=(s.match(new RegExp(D,"g"))||[]).length;s=s.slice(0,j+x*R)}return s=s.replace(f,u),_||(s=s.replace(/^0+(0$|[^0])/,"$1")),b=r(s=C?o(s,w):s),(l&&E||!0===S)&&(e[a-1]!==k&&b.push(v),b.push(k,v),m&&((void 0===F?"undefined":i(F))===p&&(m=m.slice(0,F)),b=b.concat(m)),!0===S&&e[a-1]===k&&b.push(h)),I>0&&(b=g.split(u).concat(b)),n&&(b.length===I&&b.push(h),b=[d].concat(b)),y.length>0&&(b=b.concat(y.split(u))),b}var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.prefix,g=void 0===n?a:n,m=t.suffix,y=void 0===m?u:m,b=t.includeThousandsSeparator,C=void 0===b||b,D=t.thousandsSeparatorSymbol,w=void 0===D?l:D,x=t.allowDecimal,E=void 0!==x&&x,B=t.decimalSymbol,k=void 0===B?s:B,A=t.decimalLimit,F=void 0===A?2:A,O=t.requireDecimal,S=void 0!==O&&O,P=t.allowNegative,T=void 0!==P&&P,M=t.allowLeadingZeroes,_=void 0!==M&&M,L=t.integerLimit,j=void 0===L?null:L,I=g&&g.length||0,N=y&&y.length||0,R=w&&w.length||0;return e.instanceOf="createNumberMask",e}function r(e){return e.split(u).map((function(e){return h.test(e)?h:e}))}function o(e,t){return e.replace(/\B(?=(\d{3})+(?!\d))/g,t)}Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=n;var a="$",u="",l=",",s=".",c="-",d=/-/,f=/\D+/g,p="number",h=/\d/,v="[]"},function(e,t,n){function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){e=e.replace(C,p);var n=t.placeholderChar,r=t.currentCaretPosition,o=e.indexOf(h),c=e.lastIndexOf(f),d=c<o?-1:c,v=i(e,o+1,h),g=i(e,d-1,f),m=a(e,o),y=u(e,o,d,n),b=l(e,d,n,r);return m=s(m),y=s(y),b=s(b,!0),m.concat(v).concat(y).concat(g).concat(b)}function i(e,t,n){var r=[];return e[t]===n?r.push(n):r.push(v,n),r.push(v),r}function a(e,t){return-1===t?e:e.slice(0,t)}function u(e,t,n,r){var o=p;return-1!==t&&(o=-1===n?e.slice(t+1,e.length):e.slice(t+1,n)),(o=o.replace(new RegExp("[\\s"+r+"]",m),p))===h?d:o.length<1?g:o[o.length-1]===f?o.slice(0,o.length-1):o}function l(e,t,n,r){var o=p;return-1!==t&&(o=e.slice(t+1,e.length)),0===(o=o.replace(new RegExp("[\\s"+n+".]",m),p)).length?e[t-1]===f&&r!==e.length?d:p:o}function s(e,t){return e.split(p).map((function(e){return e===g?e:t?b:y}))}Object.defineProperty(t,"__esModule",{value:!0});var c=r(n(4)),d="*",f=".",p="",h="@",v="[]",g=" ",m="g",y=/[^\s]/,b=/[^.\s]/,C=/\s/g;t.default={mask:o,pipe:c.default}},function(e,t){function n(e,t){var n=t.currentCaretPosition,i=t.rawValue,f=t.previousConformedValue,p=t.placeholderChar,h=e,v=(h=r(h)).indexOf(u);if(null===i.match(new RegExp("[^@\\s."+p+"]")))return a;if(-1!==h.indexOf(s)||-1!==v&&n!==v+1||-1===i.indexOf(o)&&f!==a&&-1!==i.indexOf(l))return!1;var g=h.indexOf(o);return(h.slice(g+1,h.length).match(d)||c).length>1&&h.substr(-1)===l&&n!==i.length&&(h=h.slice(0,h.length-1)),h}function r(e){var t=0;return e.replace(i,(function(){return 1==++t?o:a}))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;var o="@",i=/@/g,a="",u="@.",l=".",s="..",c=[],d=/\./g}]);var vt=/^[+]?[(]?[0-9]{3}[)]?[-\s.]?[0-9]{3}[-\s.]?[0-9]{4,6}$/im,gt=/^[0-9]*$/,mt=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,yt=/^[a-zA-Z]+$/,bt=/^(0[1-9]|1[0-2])\/(0[1-9]|[1-2][0-9]|3[0-1])\/(19[3-9]\d|20\d\d)$/,Ct=/^(0[1-9]|[12][0-9]|3[01])\/(0[1-9]|1[0-2])\/(19[3-9]\d|20\d\d)$/,Dt=/^(0[1-9]|1[0-2])\/(19[3-9]\d|20\d\d)$/,wt=/^(19[3-9]\d|20\d\d)\/(0[1-9]|1[0-2])\/(0[1-9]|[1-2][0-9]|3[0-1])$/,xt=/^\d{5}$/,Et=/^[a-zA-Z0-9\-_]+$/,Bt=function(e){switch(e){case"email":return{value:mt,message:"Please enter an email address into this field"};case"month_year_date":return{value:Dt,message:"Please enter correct date into this field"};case"day_month_year_date":return{value:Ct,message:"Please enter correct date into this field"};case"month_day_year_date":return{value:bt,message:"Please enter correct date into this field"};case"year_month_day_date":return{value:wt,message:"Please enter correct date into this field"};case"phone_number":return{value:vt,message:"Please only enter correct phone number into this field"};case"numerical":return{value:gt,message:"Please only enter numbers into this field"};case"text":return{value:yt,message:"Please only enter alphabetic letters into this field"};case"us_zip_code":return{value:xt,message:"Please only correct zip code into this field"};case"username":return{value:Et,message:'Please only enter "-", "_" characters, alphabetic letters and numbers into this field'};default:return}},kt=[/\d/,/\d/,/\d/,/\d/,/\d/],At=[/\d/,/\d/,/\d/,/\d/,"/",/\d/,/\d/,"/",/\d/,/\d/],Ft=[/\d/,/\d/,"/",/\d/,/\d/,"/",/\d/,/\d/,/\d/,/\d/],Ot=[/\d/,/\d/,"/",/\d/,/\d/,"/",/\d/,/\d/,/\d/,/\d/],St=[/\d/,/\d/,"/",/\d/,/\d/,/\d/,/\d/],Pt=["(",/\d/,/\d/,/\d/,")"," ",/\d/,/\d/,/\d/,"-",/\d/,/\d/,/\d/,/\d/],Tt=ht.exports.createNumberMask({prefix:"",includeThousandsSeparator:!1}),Mt=ht.exports.createNumberMask({prefix:"",allowDecimal:!0,includeThousandsSeparator:!1}),_t=function(e,t){var n=t.match(new RegExp("".concat(e,"=([^/]+)")));return n?decodeURIComponent(n[1]):""},Lt=function(e,t,n){if(void 0===n&&(n=!1),!t)return e;var r=_t(ut,t),o=_t(lt,t);if(!r||!o)return e;var i=new URLSearchParams(e.toString());return n?(e.has(st)&&i.set(st,o),e.has(ct)&&i.set(ct,r)):(e.has(dt)&&i.set(dt,r),i.set(dt,r)),i},jt=function(e){if(e){var t=e.match(/^http[s]?:\/\//)?e:"http://".concat(e);window.open(t,"_blank")}},It=function(e){return!!e&&"internalLink"===(null==e?void 0:e.type)},Nt=function(e,t){if(!e)return"";var n=new URL(window.location.href),r=Lt(n.searchParams,e,t);return n.search=r.toString(),n.toString()},Rt=function(e){if(e)return It(e)?Nt(null==e?void 0:e.internalLink):(null==e?void 0:e.externalLink)||""},zt=function(e){var t=null==e?void 0:e.replace(/\\/g,"");try{return JSON.parse(e)}catch(e){try{return JSON.parse(t)}catch(e){return Jl}}},Vt=function(e,t){return Object.keys(t).length?(e.forEach((function(e){Array.isArray(e.children)&&e.children.forEach((function(e){var n,r,o,i;if(e.variable){var a=(null===(n=e.variable)||void 0===n?void 0:n.dataModelField)||{},u=a.defaultValue,l=void 0===u?"":u,s=a.dataModelFieldId,c=a.entitySubtypeId,d=c?null===(o=null===(r=t[s])||void 0===r?void 0:r[c])||void 0===o?void 0:o.value:null===(i=t[s])||void 0===i?void 0:i.value;e.variable.text=d||l,e.variable.isStateConfigPresent=Boolean(d)}}))})),e):e};
|
2
|
+
/*!
|
3
|
+
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
4
|
+
*
|
5
|
+
* Copyright (c) 2014-2017, Jon Schlinkert.
|
6
|
+
* Released under the MIT License.
|
7
|
+
*/
|
8
|
+
function Wt(e){return"[object Object]"===Object.prototype.toString.call(e)}function Ht(e){var t,n;return!1!==Wt(e)&&(void 0===(t=e.constructor)||!1!==Wt(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}function $t(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if("production"!==process.env.NODE_ENV){var o=Tn[e],i=o?"function"==typeof o?o.apply(null,n):o:"unknown error nr: "+e;throw Error("[Immer] "+i)}throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ut(e){return!!e&&!!e[Pn]}function qt(e){var t;return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===Mn}(e)||Array.isArray(e)||!!e[Sn]||!!(null===(t=e.constructor)||void 0===t?void 0:t[Sn])||Zt(e)||Jt(e))}function Xt(e,t,n){void 0===n&&(n=!1),0===Kt(e)?(n?Object.keys:_n)(e).forEach((function(r){n&&"symbol"==typeof r||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function Kt(e){var t=e[Pn];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Zt(e)?2:Jt(e)?3:0}function Yt(e,t){return 2===Kt(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Gt(e,t,n){var r=Kt(e);2===r?e.set(t,n):3===r?(e.delete(t),e.add(n)):e[t]=n}function Zt(e){return kn&&e instanceof Map}function Jt(e){return An&&e instanceof Set}function Qt(e){return e.o||e.t}function en(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Ln(e);delete t[Pn];for(var n=_n(t),r=0;r<n.length;r++){var o=n[r],i=t[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function tn(e,t){return void 0===t&&(t=!1),rn(e)||Ut(e)||!qt(e)||(Kt(e)>1&&(e.set=e.add=e.clear=e.delete=nn),Object.freeze(e),t&&Xt(e,(function(e,t){return tn(t,!0)}),!0)),e}function nn(){$t(2)}function rn(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function on(e){var t=jn[e];return t||$t(18,e),t}function an(){return"production"===process.env.NODE_ENV||En||$t(0),En}function un(e,t){t&&(on("Patches"),e.u=[],e.s=[],e.v=t)}function ln(e){sn(e),e.p.forEach(dn),e.p=null}function sn(e){e===En&&(En=e.l)}function cn(e){return En={p:[],l:En,h:e,m:!0,_:0}}function dn(e){var t=e[Pn];0===t.i||1===t.i?t.j():t.O=!0}function fn(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.g||on("ES5").S(t,e,r),r?(n[Pn].P&&(ln(t),$t(4)),qt(e)&&(e=pn(t,e),t.l||vn(t,e)),t.u&&on("Patches").M(n[Pn].t,e,t.u,t.s)):e=pn(t,n,[]),ln(t),t.u&&t.v(t.u,t.s),e!==On?e:void 0}function pn(e,t,n){if(rn(t))return t;var r=t[Pn];if(!r)return Xt(t,(function(o,i){return hn(e,r,t,o,i,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return vn(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=en(r.k):r.o;Xt(3===r.i?new Set(o):o,(function(t,i){return hn(e,r,o,t,i,n)})),vn(e,o,!1),n&&e.u&&on("Patches").R(r,n,e.u,e.s)}return r.o}function hn(e,t,n,r,o,i){if("production"!==process.env.NODE_ENV&&o===n&&$t(5),Ut(o)){var a=pn(e,o,i&&t&&3!==t.i&&!Yt(t.D,r)?i.concat(r):void 0);if(Gt(n,r,a),!Ut(a))return;e.m=!1}if(qt(o)&&!rn(o)){if(!e.h.F&&e._<1)return;pn(e,o),t&&t.A.l||vn(e,o)}}function vn(e,t,n){void 0===n&&(n=!1),e.h.F&&e.m&&tn(t,n)}function gn(e,t){var n=e[Pn];return(n?Qt(n):e)[t]}function mn(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function yn(e){e.P||(e.P=!0,e.l&&yn(e.l))}function bn(e){e.o||(e.o=en(e.t))}function Cn(e,t,n){var r=Zt(t)?on("MapSet").N(t,n):Jt(t)?on("MapSet").T(t,n):e.g?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:an(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=r,i=In;n&&(o=[r],i=Nn);var a=Proxy.revocable(o,i),u=a.revoke,l=a.proxy;return r.k=l,r.j=u,l}(t,n):on("ES5").J(t,n);return(n?n.A:an()).p.push(r),r}function Dn(e){return Ut(e)||$t(22,e),function e(t){if(!qt(t))return t;var n,r=t[Pn],o=Kt(t);if(r){if(!r.P&&(r.i<4||!on("ES5").K(r)))return r.t;r.I=!0,n=wn(t,o),r.I=!1}else n=wn(t,o);return Xt(n,(function(t,o){r&&function(e,t){return 2===Kt(e)?e.get(t):e[t]}(r.t,t)===o||Gt(n,t,e(o))})),3===o?new Set(n):n}(e)}function wn(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return en(e)}var xn,En,Bn="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),kn="undefined"!=typeof Map,An="undefined"!=typeof Set,Fn="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,On=Bn?Symbol.for("immer-nothing"):((xn={})["immer-nothing"]=!0,xn),Sn=Bn?Symbol.for("immer-draftable"):"__$immer_draftable",Pn=Bn?Symbol.for("immer-state"):"__$immer_state",Tn={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(e){return"Cannot apply patch, path doesn't resolve: "+e},16:'Sets cannot have "replace" patches.',17:function(e){return"Unsupported patch operation: "+e},18:function(e){return"The plugin for '"+e+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+e+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(e){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+e+"'"},22:function(e){return"'current' expects a draft, got: "+e},23:function(e){return"'original' expects a draft, got: "+e},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},Mn=""+Object.prototype.constructor,_n="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Ln=Object.getOwnPropertyDescriptors||function(e){var t={};return _n(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},jn={},In={get:function(e,t){if(t===Pn)return e;var n=Qt(e);if(!Yt(n,t))return function(e,t,n){var r,o=mn(t,n);return o?"value"in o?o.value:null===(r=o.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!qt(r)?r:r===gn(e.t,t)?(bn(e),e.o[t]=Cn(e.A.h,r,e)):r},has:function(e,t){return t in Qt(e)},ownKeys:function(e){return Reflect.ownKeys(Qt(e))},set:function(e,t,n){var r=mn(Qt(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=gn(Qt(e),t),i=null==o?void 0:o[Pn];if(i&&i.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}(n,o)&&(void 0!==n||Yt(e.t,t)))return!0;bn(e),yn(e)}return e.o[t]===n&&"number"!=typeof n&&(void 0!==n||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return void 0!==gn(e.t,t)||t in e.t?(e.D[t]=!1,bn(e),yn(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=Qt(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){$t(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){$t(12)}},Nn={};Xt(In,(function(e,t){Nn[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Nn.deleteProperty=function(e,t){return"production"!==process.env.NODE_ENV&&isNaN(parseInt(t))&&$t(13),Nn.set.call(this,e,t,void 0)},Nn.set=function(e,t,n){return"production"!==process.env.NODE_ENV&&"length"!==t&&isNaN(parseInt(t))&&$t(14),In.set.call(this,e[0],t,n,e[0])};var Rn=function(){function e(e){var t=this;this.g=Fn,this.F=!0,this.produce=function(e,n,r){if("function"==typeof e&&"function"!=typeof n){var o=n;n=e;var i=t;return function(e){var t=this;void 0===e&&(e=o);for(var r=arguments.length,a=Array(r>1?r-1:0),u=1;u<r;u++)a[u-1]=arguments[u];return i.produce(e,(function(e){var r;return(r=n).call.apply(r,[t,e].concat(a))}))}}var a;if("function"!=typeof n&&$t(6),void 0!==r&&"function"!=typeof r&&$t(7),qt(e)){var u=cn(t),l=Cn(t,e,void 0),s=!0;try{a=n(l),s=!1}finally{s?ln(u):sn(u)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(e){return un(u,r),fn(e,u)}),(function(e){throw ln(u),e})):(un(u,r),fn(a,u))}if(!e||"object"!=typeof e){if(void 0===(a=n(e))&&(a=e),a===On&&(a=void 0),t.F&&tn(a,!0),r){var c=[],d=[];on("Patches").M(e,a,c,d),r(c,d)}return a}$t(21,e)},this.produceWithPatches=function(e,n){if("function"==typeof e)return function(n){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return t.produceWithPatches(n,(function(t){return e.apply(void 0,[t].concat(o))}))};var r,o,i=t.produce(e,n,(function(e,t){r=e,o=t}));return"undefined"!=typeof Promise&&i instanceof Promise?i.then((function(e){return[e,r,o]})):[i,r,o]},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){qt(e)||$t(8),Ut(e)&&(e=Dn(e));var t=cn(this),n=Cn(this,e,void 0);return n[Pn].C=!0,sn(t),n},t.finishDraft=function(e,t){var n=e&&e[Pn];"production"!==process.env.NODE_ENV&&(n&&n.C||$t(9),n.I&&$t(10));var r=n.A;return un(r,t),fn(void 0,r)},t.setAutoFreeze=function(e){this.F=e},t.setUseProxies=function(e){e&&!Fn&&$t(20),this.g=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var o=on("Patches").$;return Ut(e)?o(e,t):this.produce(e,(function(e){return o(e,t)}))},e}(),zn=new Rn,Vn=zn.produce;zn.produceWithPatches.bind(zn),zn.setAutoFreeze.bind(zn),zn.setUseProxies.bind(zn),zn.applyPatches.bind(zn);var Wn=zn.createDraft.bind(zn),Hn=zn.finishDraft.bind(zn);function $n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Un=new WeakMap,qn=new WeakMap,Xn=new WeakMap,Kn=new WeakMap,Yn=new WeakMap,Gn=new WeakMap,Zn=new WeakMap;function Jn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jn(Object(n),!0).forEach((function(t){$n(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function er(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var tr,nr=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!t,r=t?lr(e):e,o=tr.None,i=tr.None,a=0,u=null;for(var l of r){var s=l.codePointAt(0);if(!s)break;var c=Cr(l,s);if([o,i]=n?[i,c]:[c,o],Dr(o,tr.ZWJ)&&Dr(i,tr.ExtPict)&&!Br(n?e.substring(0,a):e.substring(0,e.length-a)))break;if(Dr(o,tr.RI)&&Dr(i,tr.RI)&&!(u=null!==u?!u:!!n||Ar(e.substring(0,e.length-a))))break;if(o!==tr.None&&i!==tr.None&&xr(o,i))break;a+=l.length}return a||1},rr=/\s/,or=/[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,ir=/['\u2018\u2019]/,ar=(e,t,n)=>{if(n){var r=e.length-t;return[e.slice(r,e.length),e.slice(0,r)]}return[e.slice(0,t),e.slice(t)]},ur=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(rr.test(t))return!1;if(ir.test(t)){var o=nr(n,r),[i,a]=ar(n,o,r);if(e(i,a,r))return!0}return!or.test(t)},lr=function*(e){for(var t=e.length-1,n=0;n<e.length;n++){var r=e.charAt(t-n);if(cr(r.charCodeAt(0))){var o=e.charAt(t-n-1);if(sr(o.charCodeAt(0))){yield o+r,n++;continue}}yield r}},sr=e=>e>=55296&&e<=56319,cr=e=>e>=56320&&e<=57343;!function(e){e[e.None=0]="None",e[e.Extend=1]="Extend",e[e.ZWJ=2]="ZWJ",e[e.RI=4]="RI",e[e.Prepend=8]="Prepend",e[e.SpacingMark=16]="SpacingMark",e[e.L=32]="L",e[e.V=64]="V",e[e.T=128]="T",e[e.LV=256]="LV",e[e.LVT=512]="LVT",e[e.ExtPict=1024]="ExtPict",e[e.Any=2048]="Any"}(tr||(tr={}));var dr=/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,fr=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,pr=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,hr=/^[\u1100-\u115F\uA960-\uA97C]$/,vr=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,gr=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,mr=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,yr=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,br=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,Cr=(e,t)=>{var n=tr.Any;return-1!==e.search(dr)&&(n|=tr.Extend),8205===t&&(n|=tr.ZWJ),t>=127462&&t<=127487&&(n|=tr.RI),-1!==e.search(fr)&&(n|=tr.Prepend),-1!==e.search(pr)&&(n|=tr.SpacingMark),-1!==e.search(hr)&&(n|=tr.L),-1!==e.search(vr)&&(n|=tr.V),-1!==e.search(gr)&&(n|=tr.T),-1!==e.search(mr)&&(n|=tr.LV),-1!==e.search(yr)&&(n|=tr.LVT),-1!==e.search(br)&&(n|=tr.ExtPict),n};function Dr(e,t){return 0!=(e&t)}var wr=[[tr.L,tr.L|tr.V|tr.LV|tr.LVT],[tr.LV|tr.V,tr.V|tr.T],[tr.LVT|tr.T,tr.T],[tr.Any,tr.Extend|tr.ZWJ],[tr.Any,tr.SpacingMark],[tr.Prepend,tr.Any],[tr.ZWJ,tr.ExtPict],[tr.RI,tr.RI]];function xr(e,t){return-1===wr.findIndex((n=>Dr(e,n[0])&&Dr(t,n[1])))}var Er=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,Br=e=>-1!==e.search(Er),kr=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,Ar=e=>{var t=e.match(kr);return null!==t&&t[0].length/2%2==1},Fr=e=>Ht(e)&&zr.isNodeList(e.children)&&!Lr.isEditor(e),Or={isAncestor:e=>Ht(e)&&zr.isNodeList(e.children),isElement:Fr,isElementList:e=>Array.isArray(e)&&e.every((e=>Or.isElement(e))),isElementProps:e=>void 0!==e.children,isElementType:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"type";return Fr(e)&&e[n]===t},matches(e,t){for(var n in t)if("children"!==n&&e[n]!==t[n])return!1;return!0}},Sr=["text"],Pr=["text"];function Tr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tr(Object(n),!0).forEach((function(t){$n(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _r=new WeakMap,Lr={above(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{voids:n=!1,mode:r="lowest",at:o=e.selection,match:i}=t;if(o){var a=Lr.path(e,o),u="lowest"===r;for(var[l,s]of Lr.levels(e,{at:a,voids:n,match:i,reverse:u})){if(uo.isText(l))return;if(Jr.isRange(o)){if($r.isAncestor(s,o.anchor.path)&&$r.isAncestor(s,o.focus.path))return[l,s]}else if(!$r.equals(a,s))return[l,s]}}},addMark(e,t,n){e.addMark(t,n)},after(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o={anchor:Lr.point(e,t,{edge:"end"}),focus:Lr.end(e,[])},{distance:i=1}=r,a=0;for(var u of Lr.positions(e,Mr(Mr({},r),{},{at:o}))){if(a>i)break;0!==a&&(n=u),a++}return n},before(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o={anchor:Lr.start(e,[]),focus:Lr.point(e,t,{edge:"start"})},{distance:i=1}=r,a=0;for(var u of Lr.positions(e,Mr(Mr({},r),{},{at:o,reverse:!0}))){if(a>i)break;0!==a&&(n=u),a++}return n},deleteBackward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteBackward(n)},deleteForward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteForward(n)},deleteFragment(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{direction:n="forward"}=t;e.deleteFragment(n)},edges:(e,t)=>[Lr.start(e,t),Lr.end(e,t)],end:(e,t)=>Lr.point(e,t,{edge:"end"}),first(e,t){var n=Lr.path(e,t,{edge:"start"});return Lr.node(e,n)},fragment(e,t){var n=Lr.range(e,t);return zr.fragment(e,n)},hasBlocks:(e,t)=>t.children.some((t=>Lr.isBlock(e,t))),hasInlines:(e,t)=>t.children.some((t=>uo.isText(t)||Lr.isInline(e,t))),hasTexts:(e,t)=>t.children.every((e=>uo.isText(e))),insertBreak(e){e.insertBreak()},insertSoftBreak(e){e.insertSoftBreak()},insertFragment(e,t){e.insertFragment(t)},insertNode(e,t){e.insertNode(t)},insertText(e,t){e.insertText(t)},isBlock:(e,t)=>Or.isElement(t)&&!e.isInline(t),isEditor(e){var t=_r.get(e);if(void 0!==t)return t;if(!Ht(e))return!1;var n="function"==typeof e.addMark&&"function"==typeof e.apply&&"function"==typeof e.deleteBackward&&"function"==typeof e.deleteForward&&"function"==typeof e.deleteFragment&&"function"==typeof e.insertBreak&&"function"==typeof e.insertSoftBreak&&"function"==typeof e.insertFragment&&"function"==typeof e.insertNode&&"function"==typeof e.insertText&&"function"==typeof e.isInline&&"function"==typeof e.isVoid&&"function"==typeof e.normalizeNode&&"function"==typeof e.onChange&&"function"==typeof e.removeMark&&"function"==typeof e.getDirtyPaths&&(null===e.marks||Ht(e.marks))&&(null===e.selection||Jr.isRange(e.selection))&&zr.isNodeList(e.children)&&Hr.isOperationList(e.operations);return _r.set(e,n),n},isEnd(e,t,n){var r=Lr.end(e,n);return Kr.equals(t,r)},isEdge:(e,t,n)=>Lr.isStart(e,t,n)||Lr.isEnd(e,t,n),isEmpty(e,t){var{children:n}=t,[r]=n;return 0===n.length||1===n.length&&uo.isText(r)&&""===r.text&&!e.isVoid(t)},isInline:(e,t)=>Or.isElement(t)&&e.isInline(t),isNormalizing(e){var t=Kn.get(e);return void 0===t||t},isStart(e,t,n){if(0!==t.offset)return!1;var r=Lr.start(e,n);return Kr.equals(t,r)},isVoid:(e,t)=>Or.isElement(t)&&e.isVoid(t),last(e,t){var n=Lr.path(e,t,{edge:"end"});return Lr.node(e,n)},leaf(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Lr.path(e,t,n);return[zr.leaf(e,r),r]},*levels(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,reverse:r=!1,voids:o=!1}=t,{match:i}=t;if(null==i&&(i=()=>!0),n){var a=[],u=Lr.path(e,n);for(var[l,s]of zr.levels(e,u))if(i(l,s)&&(a.push([l,s]),!o&&Lr.isVoid(e,l)))break;r&&a.reverse(),yield*a}},marks(e){var{marks:t,selection:n}=e;if(!n)return null;if(t)return t;if(Jr.isExpanded(n)){var[r]=Lr.nodes(e,{match:uo.isText});if(r){var[o]=r;return er(o,Sr)}return{}}var{anchor:i}=n,{path:a}=i,[u]=Lr.leaf(e,a);if(0===i.offset){var l=Lr.previous(e,{at:a,match:uo.isText}),s=Lr.above(e,{match:t=>Lr.isBlock(e,t)});if(l&&s){var[c,d]=l,[,f]=s;$r.isAncestor(f,d)&&(u=c)}}return er(u,Pr)},next(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection}=t;if(i){var a=Lr.after(e,i,{voids:r});if(a){var[,u]=Lr.last(e,[]),l=[a.path,u];if($r.isPath(i)&&0===i.length)throw new Error("Cannot get the next node from the root node!");if(null==o)if($r.isPath(i)){var[s]=Lr.parent(e,i);o=e=>s.children.includes(e)}else o=()=>!0;var[c]=Lr.nodes(e,{at:l,match:o,mode:n,voids:r});return c}}},node(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Lr.path(e,t,n);return[zr.get(e,r),r]},*nodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,mode:r="all",universal:o=!1,reverse:i=!1,voids:a=!1}=t,{match:u}=t;if(u||(u=()=>!0),n){var l,s;if(jr.isSpan(n))l=n[0],s=n[1];else{var c=Lr.path(e,n,{edge:"start"}),d=Lr.path(e,n,{edge:"end"});l=i?d:c,s=i?c:d}var f,p=zr.nodes(e,{reverse:i,from:l,to:s,pass:t=>{var[n]=t;return!a&&Lr.isVoid(e,n)}}),h=[];for(var[v,g]of p){var m=f&&0===$r.compare(g,f[1]);if("highest"!==r||!m)if(u(v,g))if("lowest"===r&&m)f=[v,g];else{var y="lowest"===r?f:[v,g];y&&(o?h.push(y):yield y),f=[v,g]}else if(o&&!m&&uo.isText(v))return}"lowest"===r&&f&&(o?h.push(f):yield f),o&&(yield*h)}},normalize(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{force:n=!1}=t,r=e=>Un.get(e)||[],o=e=>{var t=r(e).pop(),n=t.join(",");return(e=>qn.get(e)||new Set)(e).delete(n),t};if(Lr.isNormalizing(e)){if(n){var i=Array.from(zr.nodes(e),(e=>{var[,t]=e;return t})),a=new Set(i.map((e=>e.join(","))));Un.set(e,i),qn.set(e,a)}0!==r(e).length&&Lr.withoutNormalizing(e,(()=>{for(var t of r(e))if(zr.has(e,t)){var n=Lr.node(e,t),[i,a]=n;Or.isElement(i)&&0===i.children.length&&e.normalizeNode(n)}for(var u=42*r(e).length,l=0;0!==r(e).length;){if(l>u)throw new Error("\n Could not completely normalize the editor after ".concat(u," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.\n "));var s=o(e);if(zr.has(e,s)){var c=Lr.node(e,s);e.normalizeNode(c)}l++}}))}},parent(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Lr.path(e,t,n),o=$r.parent(r);return Lr.node(e,o)},path(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{depth:r,edge:o}=n;if($r.isPath(t))if("start"===o){var[,i]=zr.first(e,t);t=i}else if("end"===o){var[,a]=zr.last(e,t);t=a}return Jr.isRange(t)&&(t="start"===o?Jr.start(t):"end"===o?Jr.end(t):$r.common(t.anchor.path,t.focus.path)),Kr.isPoint(t)&&(t=t.path),null!=r&&(t=t.slice(0,r)),t},hasPath:(e,t)=>zr.has(e,t),pathRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return Lr.pathRefs(e).delete(o),o.current=null,t}};return Lr.pathRefs(e).add(o),o},pathRefs(e){var t=Yn.get(e);return t||(t=new Set,Yn.set(e,t)),t},point(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{edge:r="start"}=n;if($r.isPath(t)){var o;if("end"===r){var[,i]=zr.last(e,t);o=i}else{var[,a]=zr.first(e,t);o=a}var u=zr.get(e,o);if(!uo.isText(u))throw new Error("Cannot get the ".concat(r," point in the node at path [").concat(t,"] because it has no ").concat(r," text node."));return{path:o,offset:"end"===r?u.text.length:0}}if(Jr.isRange(t)){var[l,s]=Jr.edges(t);return"start"===r?l:s}return t},pointRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return Lr.pointRefs(e).delete(o),o.current=null,t}};return Lr.pointRefs(e).add(o),o},pointRefs(e){var t=Gn.get(e);return t||(t=new Set,Gn.set(e,t)),t},*positions(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,unit:r="offset",reverse:o=!1,voids:i=!1}=t;if(n){var a=Lr.range(e,n),[u,l]=Jr.edges(a),s=o?l:u,c=!1,d="",f=0,p=0,h=0;for(var[v,g]of Lr.nodes(e,{at:n,reverse:o,voids:i})){if(Or.isElement(v)){if(!i&&e.isVoid(v)){yield Lr.start(e,g);continue}if(e.isInline(v))continue;if(Lr.hasInlines(e,v)){var m=$r.isAncestor(g,l.path)?l:Lr.end(e,g),y=$r.isAncestor(g,u.path)?u:Lr.start(e,g);d=Lr.string(e,{anchor:y,focus:m},{voids:i}),c=!0}}if(uo.isText(v)){var b=$r.equals(g,s.path);for(b?(p=o?s.offset:v.text.length-s.offset,h=s.offset):(p=v.text.length,h=o?p:0),(b||c||"offset"===r)&&(yield{path:g,offset:h},c=!1);;){if(0===f){if(""===d)break;f=C(d,r,o),d=ar(d,f,o)[1]}if(h=o?h-f:h+f,(p-=f)<0){f=-p;break}f=0,yield{path:g,offset:h}}}}}function C(e,t,n){return"character"===t?nr(e,n):"word"===t?function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=0,r=!1;e.length>0;){var o=nr(e,t),[i,a]=ar(e,o,t);if(ur(i,a,t))r=!0,n+=o;else{if(r)break;n+=o}e=a}return n}(e,n):"line"===t||"block"===t?e.length:1}},previous(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection}=t;if(i){var a=Lr.before(e,i,{voids:r});if(a){var[,u]=Lr.first(e,[]),l=[a.path,u];if($r.isPath(i)&&0===i.length)throw new Error("Cannot get the previous node from the root node!");if(null==o)if($r.isPath(i)){var[s]=Lr.parent(e,i);o=e=>s.children.includes(e)}else o=()=>!0;var[c]=Lr.nodes(e,{reverse:!0,at:l,match:o,mode:n,voids:r});return c}}},range:(e,t,n)=>Jr.isRange(t)&&!n?t:{anchor:Lr.start(e,t),focus:Lr.end(e,n||t)},rangeRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return Lr.rangeRefs(e).delete(o),o.current=null,t}};return Lr.rangeRefs(e).add(o),o},rangeRefs(e){var t=Zn.get(e);return t||(t=new Set,Zn.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){Kn.set(e,t)},start:(e,t)=>Lr.point(e,t,{edge:"start"}),string(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,o=Lr.range(e,t),[i,a]=Jr.edges(o),u="";for(var[l,s]of Lr.nodes(e,{at:o,match:uo.isText,voids:r})){var c=l.text;$r.equals(s,a.path)&&(c=c.slice(0,a.offset)),$r.equals(s,i.path)&&(c=c.slice(i.offset)),u+=c}return u},unhangRange(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,[o,i]=Jr.edges(t);if(0!==o.offset||0!==i.offset||Jr.isCollapsed(t))return t;var a=Lr.above(e,{at:i,match:t=>Lr.isBlock(e,t)}),u=a?a[1]:[],l={anchor:Lr.start(e,o),focus:i},s=!0;for(var[c,d]of Lr.nodes(e,{at:l,match:uo.isText,reverse:!0,voids:r}))if(s)s=!1;else if(""!==c.text||$r.isBefore(d,u)){i={path:d,offset:c.text.length};break}return{anchor:o,focus:i}},void(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Lr.above(e,Mr(Mr({},t),{},{match:t=>Lr.isVoid(e,t)}))},withoutNormalizing(e,t){var n=Lr.isNormalizing(e);Lr.setNormalizing(e,!1);try{t()}finally{Lr.setNormalizing(e,n)}Lr.normalize(e)}},jr={isSpan:e=>Array.isArray(e)&&2===e.length&&e.every($r.isPath)},Ir=["children"],Nr=["text"],Rr=new WeakMap,zr={ancestor(e,t){var n=zr.get(e,t);if(uo.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(to.stringify(n)));return n},*ancestors(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var r of $r.ancestors(t,n)){var o=[zr.ancestor(e,r),r];yield o}},child(e,t){if(uo.isText(e))throw new Error("Cannot get the child of a text node: ".concat(to.stringify(e)));var n=e.children[t];if(null==n)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(to.stringify(e)));return n},*children(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{reverse:r=!1}=n,o=zr.ancestor(e,t),{children:i}=o,a=r?i.length-1:0;r?a>=0:a<i.length;){var u=zr.child(o,a),l=t.concat(a);yield[u,l],a=r?a-1:a+1}},common(e,t,n){var r=$r.common(t,n);return[zr.get(e,r),r]},descendant(e,t){var n=zr.get(e,t);if(Lr.isEditor(n))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(to.stringify(n)));return n},*descendants(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of zr.nodes(e,t))0!==r.length&&(yield[n,r])},*elements(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of zr.nodes(e,t))Or.isElement(n)&&(yield[n,r])},extractProps:e=>Or.isAncestor(e)?er(e,Ir):er(e,Nr),first(e,t){for(var n=t.slice(),r=zr.get(e,n);r&&!uo.isText(r)&&0!==r.children.length;)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(uo.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(to.stringify(e)));var n=Vn({children:e.children},(e=>{var[n,r]=Jr.edges(t),o=zr.nodes(e,{reverse:!0,pass:e=>{var[,n]=e;return!Jr.includes(t,n)}});for(var[,i]of o){if(!Jr.includes(t,i)){var a=zr.parent(e,i),u=i[i.length-1];a.children.splice(u,1)}if($r.equals(i,r.path)){var l=zr.leaf(e,i);l.text=l.text.slice(0,r.offset)}if($r.equals(i,n.path)){var s=zr.leaf(e,i);s.text=s.text.slice(n.offset)}}Lr.isEditor(e)&&(e.selection=null)}));return n.children},get(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(uo.isText(n)||!n.children[o])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(to.stringify(e)));n=n.children[o]}return n},has(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(uo.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isNode:e=>uo.isText(e)||Or.isElement(e)||Lr.isEditor(e),isNodeList(e){if(!Array.isArray(e))return!1;var t=Rr.get(e);if(void 0!==t)return t;var n=e.every((e=>zr.isNode(e)));return Rr.set(e,n),n},last(e,t){for(var n=t.slice(),r=zr.get(e,n);r&&!uo.isText(r)&&0!==r.children.length;){var o=r.children.length-1;r=r.children[o],n.push(o)}return[r,n]},leaf(e,t){var n=zr.get(e,t);if(!uo.isText(n))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(to.stringify(n)));return n},*levels(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var r of $r.levels(t,n)){var o=zr.get(e,r);yield[o,r]}},matches:(e,t)=>Or.isElement(e)&&Or.isElementProps(t)&&Or.matches(e,t)||uo.isText(e)&&uo.isTextProps(t)&&uo.matches(e,t),*nodes(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{pass:n,reverse:r=!1}=t,{from:o=[],to:i}=t,a=new Set,u=[],l=e;!i||!(r?$r.isBefore(u,i):$r.isAfter(u,i));)if(a.has(l)||(yield[l,u]),a.has(l)||uo.isText(l)||0===l.children.length||null!=n&&!1!==n([l,u])){if(0===u.length)break;if(!r){var s=$r.next(u);if(zr.has(e,s)){u=s,l=zr.get(e,u);continue}}if(r&&0!==u[u.length-1])u=$r.previous(u),l=zr.get(e,u);else u=$r.parent(u),l=zr.get(e,u),a.add(l)}else{a.add(l);var c=r?l.children.length-1:0;$r.isAncestor(u,o)&&(c=o[u.length]),u=u.concat(c),l=zr.get(e,u)}},parent(e,t){var n=$r.parent(t),r=zr.get(e,n);if(uo.isText(r))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return r},string:e=>uo.isText(e)?e.text:e.children.map(zr.string).join(""),*texts(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of zr.nodes(e,t))uo.isText(n)&&(yield[n,r])}};function Vr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Wr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vr(Object(n),!0).forEach((function(t){$n(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Hr={isNodeOperation:e=>Hr.isOperation(e)&&e.type.endsWith("_node"),isOperation(e){if(!Ht(e))return!1;switch(e.type){case"insert_node":case"remove_node":return $r.isPath(e.path)&&zr.isNode(e.node);case"insert_text":case"remove_text":return"number"==typeof e.offset&&"string"==typeof e.text&&$r.isPath(e.path);case"merge_node":return"number"==typeof e.position&&$r.isPath(e.path)&&Ht(e.properties);case"move_node":return $r.isPath(e.path)&&$r.isPath(e.newPath);case"set_node":return $r.isPath(e.path)&&Ht(e.properties)&&Ht(e.newProperties);case"set_selection":return null===e.properties&&Jr.isRange(e.newProperties)||null===e.newProperties&&Jr.isRange(e.properties)||Ht(e.properties)&&Ht(e.newProperties);case"split_node":return $r.isPath(e.path)&&"number"==typeof e.position&&Ht(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every((e=>Hr.isOperation(e))),isSelectionOperation:e=>Hr.isOperation(e)&&e.type.endsWith("_selection"),isTextOperation:e=>Hr.isOperation(e)&&e.type.endsWith("_text"),inverse(e){switch(e.type){case"insert_node":return Wr(Wr({},e),{},{type:"remove_node"});case"insert_text":return Wr(Wr({},e),{},{type:"remove_text"});case"merge_node":return Wr(Wr({},e),{},{type:"split_node",path:$r.previous(e.path)});case"move_node":var{newPath:t,path:n}=e;if($r.equals(t,n))return e;if($r.isSibling(n,t))return Wr(Wr({},e),{},{path:t,newPath:n});var r=$r.transform(n,e),o=$r.transform($r.next(n),e);return Wr(Wr({},e),{},{path:r,newPath:o});case"remove_node":return Wr(Wr({},e),{},{type:"insert_node"});case"remove_text":return Wr(Wr({},e),{},{type:"insert_text"});case"set_node":var{properties:i,newProperties:a}=e;return Wr(Wr({},e),{},{properties:a,newProperties:i});case"set_selection":var{properties:u,newProperties:l}=e;return Wr(Wr({},e),{},null==u?{properties:l,newProperties:null}:null==l?{properties:null,newProperties:u}:{properties:l,newProperties:u});case"split_node":return Wr(Wr({},e),{},{type:"merge_node",path:$r.next(e.path)})}}},$r={ancestors(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=$r.levels(e,t);return r=n?r.slice(1):r.slice(0,-1)},common(e,t){for(var n=[],r=0;r<e.length&&r<t.length;r++){var o=e[r];if(o!==t[r])break;n.push(o)}return n},compare(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){if(e[r]<t[r])return-1;if(e[r]>t[r])return 1}return 0},endsAfter(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return $r.equals(r,o)&&i>a},endsAt(e,t){var n=e.length,r=e.slice(0,n),o=t.slice(0,n);return $r.equals(r,o)},endsBefore(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return $r.equals(r,o)&&i<a},equals:(e,t)=>e.length===t.length&&e.every(((e,n)=>e===t[n])),hasPrevious:e=>e[e.length-1]>0,isAfter:(e,t)=>1===$r.compare(e,t),isAncestor:(e,t)=>e.length<t.length&&0===$r.compare(e,t),isBefore:(e,t)=>-1===$r.compare(e,t),isChild:(e,t)=>e.length===t.length+1&&0===$r.compare(e,t),isCommon:(e,t)=>e.length<=t.length&&0===$r.compare(e,t),isDescendant:(e,t)=>e.length>t.length&&0===$r.compare(e,t),isParent:(e,t)=>e.length+1===t.length&&0===$r.compare(e,t),isPath:e=>Array.isArray(e)&&(0===e.length||"number"==typeof e[0]),isSibling(e,t){if(e.length!==t.length)return!1;var n=e.slice(0,-1),r=t.slice(0,-1);return e[e.length-1]!==t[t.length-1]&&$r.equals(n,r)},levels(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=[],o=0;o<=e.length;o++)r.push(e.slice(0,o));return n&&r.reverse(),r},next(e){if(0===e.length)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},operationCanTransformPath(e){switch(e.type){case"insert_node":case"remove_node":case"merge_node":case"split_node":case"move_node":return!0;default:return!1}},parent(e){if(0===e.length)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(0===e.length)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative(e,t){if(!$r.isAncestor(t,e)&&!$r.equals(e,t))throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."));return e.slice(t.length)},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e)return null;var r=[...e],{affinity:o="forward"}=n;if(0===e.length)return r;switch(t.type){case"insert_node":var{path:i}=t;($r.equals(i,r)||$r.endsBefore(i,r)||$r.isAncestor(i,r))&&(r[i.length-1]+=1);break;case"remove_node":var{path:a}=t;if($r.equals(a,r)||$r.isAncestor(a,r))return null;$r.endsBefore(a,r)&&(r[a.length-1]-=1);break;case"merge_node":var{path:u,position:l}=t;$r.equals(u,r)||$r.endsBefore(u,r)?r[u.length-1]-=1:$r.isAncestor(u,r)&&(r[u.length-1]-=1,r[u.length]+=l);break;case"split_node":var{path:s,position:c}=t;if($r.equals(s,r)){if("forward"===o)r[r.length-1]+=1;else if("backward"!==o)return null}else $r.endsBefore(s,r)?r[s.length-1]+=1:$r.isAncestor(s,r)&&e[s.length]>=c&&(r[s.length-1]+=1,r[s.length]-=c);break;case"move_node":var{path:d,newPath:f}=t;if($r.equals(d,f))return r;if($r.isAncestor(d,r)||$r.equals(d,r)){var p=f.slice();return $r.endsBefore(d,f)&&d.length<f.length&&(p[d.length-1]-=1),p.concat(r.slice(d.length))}$r.isSibling(d,f)&&($r.isAncestor(f,r)||$r.equals(f,r))?$r.endsBefore(d,r)?r[d.length-1]-=1:r[d.length-1]+=1:$r.endsBefore(f,r)||$r.equals(f,r)||$r.isAncestor(f,r)?($r.endsBefore(d,r)&&(r[d.length-1]-=1),r[f.length-1]+=1):$r.endsBefore(d,r)&&($r.equals(f,r)&&(r[f.length-1]+=1),r[d.length-1]-=1)}return r}},Ur={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=$r.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}};function qr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qr(Object(n),!0).forEach((function(t){$n(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Kr={compare(e,t){var n=$r.compare(e.path,t.path);return 0===n?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter:(e,t)=>1===Kr.compare(e,t),isBefore:(e,t)=>-1===Kr.compare(e,t),equals:(e,t)=>e.offset===t.offset&&$r.equals(e.path,t.path),isPoint:e=>Ht(e)&&"number"==typeof e.offset&&$r.isPath(e.path),transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Vn(e,(e=>{if(null===e)return null;var{affinity:r="forward"}=n,{path:o,offset:i}=e;switch(t.type){case"insert_node":case"move_node":e.path=$r.transform(o,t,n);break;case"insert_text":$r.equals(t.path,o)&&(t.offset<i||t.offset===i&&"forward"===r)&&(e.offset+=t.text.length);break;case"merge_node":$r.equals(t.path,o)&&(e.offset+=t.position),e.path=$r.transform(o,t,n);break;case"remove_text":$r.equals(t.path,o)&&t.offset<=i&&(e.offset-=Math.min(i-t.offset,t.text.length));break;case"remove_node":if($r.equals(t.path,o)||$r.isAncestor(t.path,o))return null;e.path=$r.transform(o,t,n);break;case"split_node":if($r.equals(t.path,o)){if(t.position===i&&null==r)return null;(t.position<i||t.position===i&&"forward"===r)&&(e.offset-=t.position,e.path=$r.transform(o,t,Xr(Xr({},n),{},{affinity:"forward"})))}else e.path=$r.transform(o,t,n)}}))}},Yr={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=Kr.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}},Gr=["anchor","focus"];function Zr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Jr={edges(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:o}=e;return Jr.isBackward(e)===n?[r,o]:[o,r]},end(e){var[,t]=Jr.edges(e);return t},equals:(e,t)=>Kr.equals(e.anchor,t.anchor)&&Kr.equals(e.focus,t.focus),includes(e,t){if(Jr.isRange(t)){if(Jr.includes(e,t.anchor)||Jr.includes(e,t.focus))return!0;var[n,r]=Jr.edges(e),[o,i]=Jr.edges(t);return Kr.isBefore(n,o)&&Kr.isAfter(r,i)}var[a,u]=Jr.edges(e),l=!1,s=!1;return Kr.isPoint(t)?(l=Kr.compare(t,a)>=0,s=Kr.compare(t,u)<=0):(l=$r.compare(t,a.path)>=0,s=$r.compare(t,u.path)<=0),l&&s},intersection(e,t){var n=er(e,Gr),[r,o]=Jr.edges(e),[i,a]=Jr.edges(t),u=Kr.isBefore(r,i)?i:r,l=Kr.isBefore(o,a)?o:a;return Kr.isBefore(l,u)?null:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zr(Object(n),!0).forEach((function(t){$n(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({anchor:u,focus:l},n)},isBackward(e){var{anchor:t,focus:n}=e;return Kr.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return Kr.equals(t,n)},isExpanded:e=>!Jr.isCollapsed(e),isForward:e=>!Jr.isBackward(e),isRange:e=>Ht(e)&&Kr.isPoint(e.anchor)&&Kr.isPoint(e.focus),*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=Jr.edges(e);return t},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Vn(e,(e=>{if(null===e)return null;var r,o,{affinity:i="inward"}=n;if("inward"===i){var a=Jr.isCollapsed(e);Jr.isForward(e)?(r="forward",o=a?r:"backward"):(r="backward",o=a?r:"forward")}else"outward"===i?Jr.isForward(e)?(r="backward",o="forward"):(r="forward",o="backward"):(r=i,o=i);var u=Kr.transform(e.anchor,t,{affinity:r}),l=Kr.transform(e.focus,t,{affinity:o});if(!u||!l)return null;e.anchor=u,e.focus=l}))}},Qr={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=Jr.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}},eo=void 0,to={setScrubber(e){eo=e},stringify:e=>JSON.stringify(e,eo)},no=(e,t)=>{for(var n in e){var r=e[n],o=t[n];if(Ht(r)&&Ht(o)){if(!no(r,o))return!1}else if(Array.isArray(r)&&Array.isArray(o)){if(r.length!==o.length)return!1;for(var i=0;i<r.length;i++)if(r[i]!==o[i])return!1}else if(r!==o)return!1}for(var a in t)if(void 0===e[a]&&void 0!==t[a])return!1;return!0},ro=["text"],oo=["anchor","focus"];function io(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ao(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?io(Object(n),!0).forEach((function(t){$n(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):io(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var uo={equals(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{loose:r=!1}=n;function o(e){return er(e,ro)}return no(r?o(e):e,r?o(t):t)},isText:e=>Ht(e)&&"string"==typeof e.text,isTextList:e=>Array.isArray(e)&&e.every((e=>uo.isText(e))),isTextProps:e=>void 0!==e.text,matches(e,t){for(var n in t)if("text"!==n&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;return!0},decorations(e,t){var n=[ao({},e)];for(var r of t){var o=er(r,oo),[i,a]=Jr.edges(r),u=[],l=0,s=i.offset,c=a.offset;for(var d of n){var{length:f}=d.text,p=l;if(l+=f,s<=p&&l<=c)Object.assign(d,o),u.push(d);else if(s!==c&&(s===l||c===p)||s>l||c<p||c===p&&0!==p)u.push(d);else{var h=d,v=void 0,g=void 0;if(c<l){var m=c-p;g=ao(ao({},h),{},{text:h.text.slice(m)}),h=ao(ao({},h),{},{text:h.text.slice(0,m)})}if(s>p){var y=s-p;v=ao(ao({},h),{},{text:h.text.slice(0,y)}),h=ao(ao({},h),{},{text:h.text.slice(y)})}Object.assign(h,o),v&&u.push(v),u.push(h),g&&u.push(g)}}n=u}return n}};function lo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function so(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lo(Object(n),!0).forEach((function(t){$n(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var co={transform(e,t){e.children=Wn(e.children);var n=e.selection&&Wn(e.selection);try{n=((e,t,n)=>{switch(n.type){case"insert_node":var{path:r,node:o}=n,i=zr.parent(e,r),a=r[r.length-1];if(a>i.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(r,"] because the destination is past the end of the node."));if(i.children.splice(a,0,o),t)for(var[u,l]of Jr.points(t))t[l]=Kr.transform(u,n);break;case"insert_text":var{path:s,offset:c,text:d}=n;if(0===d.length)break;var f=zr.leaf(e,s),p=f.text.slice(0,c),h=f.text.slice(c);if(f.text=p+d+h,t)for(var[v,g]of Jr.points(t))t[g]=Kr.transform(v,n);break;case"merge_node":var{path:m}=n,y=zr.get(e,m),b=$r.previous(m),C=zr.get(e,b),D=zr.parent(e,m),w=m[m.length-1];if(uo.isText(y)&&uo.isText(C))C.text+=y.text;else{if(uo.isText(y)||uo.isText(C))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(m,"] to nodes of different interfaces: ").concat(to.stringify(y)," ").concat(to.stringify(C)));C.children.push(...y.children)}if(D.children.splice(w,1),t)for(var[x,E]of Jr.points(t))t[E]=Kr.transform(x,n);break;case"move_node":var{path:B,newPath:k}=n;if($r.isAncestor(B,k))throw new Error("Cannot move a path [".concat(B,"] to new path [").concat(k,"] because the destination is inside itself."));var A=zr.get(e,B),F=zr.parent(e,B),O=B[B.length-1];F.children.splice(O,1);var S=$r.transform(B,n),P=zr.get(e,$r.parent(S)),T=S[S.length-1];if(P.children.splice(T,0,A),t)for(var[M,_]of Jr.points(t))t[_]=Kr.transform(M,n);break;case"remove_node":var{path:L}=n,j=L[L.length-1];if(zr.parent(e,L).children.splice(j,1),t)for(var[I,N]of Jr.points(t)){var R=Kr.transform(I,n);if(null!=t&&null!=R)t[N]=R;else{var z=void 0,V=void 0;for(var[W,H]of zr.texts(e)){if(-1!==$r.compare(H,L)){V=[W,H];break}z=[W,H]}var $=!1;z&&V&&($=$r.equals(V[1],L)?!$r.hasPrevious(V[1]):$r.common(z[1],L).length<$r.common(V[1],L).length),z&&!$?(I.path=z[1],I.offset=z[0].text.length):V?(I.path=V[1],I.offset=0):t=null}}break;case"remove_text":var{path:U,offset:q,text:X}=n;if(0===X.length)break;var K=zr.leaf(e,U),Y=K.text.slice(0,q),G=K.text.slice(q+X.length);if(K.text=Y+G,t)for(var[Z,J]of Jr.points(t))t[J]=Kr.transform(Z,n);break;case"set_node":var{path:Q,properties:ee,newProperties:te}=n;if(0===Q.length)throw new Error("Cannot set properties on the root node!");var ne=zr.get(e,Q);for(var re in te){if("children"===re||"text"===re)throw new Error('Cannot set the "'.concat(re,'" property of nodes!'));var oe=te[re];null==oe?delete ne[re]:ne[re]=oe}for(var ie in ee)te.hasOwnProperty(ie)||delete ne[ie];break;case"set_selection":var{newProperties:ae}=n;if(null==ae)t=ae;else{if(null==t){if(!Jr.isRange(ae))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(to.stringify(ae)," when there is no current selection."));t=so({},ae)}for(var ue in ae){var le=ae[ue];if(null==le){if("anchor"===ue||"focus"===ue)throw new Error('Cannot remove the "'.concat(ue,'" selection property'));delete t[ue]}else t[ue]=le}}break;case"split_node":var{path:se,position:ce,properties:de}=n;if(0===se.length)throw new Error('Cannot apply a "split_node" operation at path ['.concat(se,"] because the root node cannot be split."));var fe,pe=zr.get(e,se),he=zr.parent(e,se),ve=se[se.length-1];if(uo.isText(pe)){var ge=pe.text.slice(0,ce),me=pe.text.slice(ce);pe.text=ge,fe=so(so({},de),{},{text:me})}else{var ye=pe.children.slice(0,ce),be=pe.children.slice(ce);pe.children=ye,fe=so(so({},de),{},{children:be})}if(he.children.splice(ve+1,0,fe),t)for(var[Ce,De]of Jr.points(t))t[De]=Kr.transform(Ce,n)}return t})(e,n,t)}finally{e.children=Hn(e.children),e.selection=n?Ut(n)?Hn(n):n:null}}},fo=["text"],po=["children"];function ho(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ho(Object(n),!0).forEach((function(t){$n(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ho(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var go={insertNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Lr.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:o=!1,mode:i="lowest"}=n,{at:a,match:u,select:l}=n;if(zr.isNode(t)&&(t=[t]),0!==t.length){var[s]=t;if(a||(a=e.selection?e.selection:e.children.length>0?Lr.end(e,[]):[0],l=!0),null==l&&(l=!1),Jr.isRange(a))if(r||(a=Lr.unhangRange(e,a)),Jr.isCollapsed(a))a=a.anchor;else{var[,c]=Jr.edges(a),d=Lr.pointRef(e,c);ko.delete(e,{at:a}),a=d.unref()}if(Kr.isPoint(a)){null==u&&(u=uo.isText(s)?e=>uo.isText(e):e.isInline(s)?t=>uo.isText(t)||Lr.isInline(e,t):t=>Lr.isBlock(e,t));var[f]=Lr.nodes(e,{at:a.path,match:u,mode:i,voids:o});if(!f)return;var[,p]=f,h=Lr.pathRef(e,p),v=Lr.isEnd(e,a,p);ko.splitNodes(e,{at:a,match:u,mode:i,voids:o});var g=h.unref();a=v?$r.next(g):g}var m=$r.parent(a),y=a[a.length-1];if(o||!Lr.void(e,{at:m})){for(var b of t){var C=m.concat(y);y++,e.apply({type:"insert_node",path:C,node:b}),a=$r.next(a)}if(a=$r.previous(a),l){var D=Lr.end(e,a);D&&ko.select(e,D)}}}}))},liftNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Lr.withoutNormalizing(e,(()=>{var{at:n=e.selection,mode:r="lowest",voids:o=!1}=t,{match:i}=t;if(null==i&&(i=$r.isPath(n)?bo(e,n):t=>Lr.isBlock(e,t)),n){var a=Lr.nodes(e,{at:n,match:i,mode:r,voids:o}),u=Array.from(a,(t=>{var[,n]=t;return Lr.pathRef(e,n)}));for(var l of u){var s=l.unref();if(s.length<2)throw new Error("Cannot lift node at a path [".concat(s,"] because it has a depth of less than `2`."));var c=Lr.node(e,$r.parent(s)),[d,f]=c,p=s[s.length-1],{length:h}=d.children;if(1===h){var v=$r.next(f);ko.moveNodes(e,{at:s,to:v,voids:o}),ko.removeNodes(e,{at:f,voids:o})}else if(0===p)ko.moveNodes(e,{at:s,to:f,voids:o});else if(p===h-1){var g=$r.next(f);ko.moveNodes(e,{at:s,to:g,voids:o})}else{var m=$r.next(s),y=$r.next(f);ko.splitNodes(e,{at:m,voids:o}),ko.moveNodes(e,{at:s,to:y,voids:o})}}}}))},mergeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Lr.withoutNormalizing(e,(()=>{var{match:n,at:r=e.selection}=t,{hanging:o=!1,voids:i=!1,mode:a="lowest"}=t;if(r){if(null==n)if($r.isPath(r)){var[u]=Lr.parent(e,r);n=e=>u.children.includes(e)}else n=t=>Lr.isBlock(e,t);if(!o&&Jr.isRange(r)&&(r=Lr.unhangRange(e,r)),Jr.isRange(r))if(Jr.isCollapsed(r))r=r.anchor;else{var[,l]=Jr.edges(r),s=Lr.pointRef(e,l);ko.delete(e,{at:r}),r=s.unref(),null==t.at&&ko.select(e,r)}var[c]=Lr.nodes(e,{at:r,match:n,voids:i,mode:a}),d=Lr.previous(e,{at:r,match:n,voids:i,mode:a});if(c&&d){var[f,p]=c,[h,v]=d;if(0!==p.length&&0!==v.length){var g,m,y=$r.next(v),b=$r.common(p,v),C=$r.isSibling(p,v),D=Array.from(Lr.levels(e,{at:p}),(e=>{var[t]=e;return t})).slice(b.length).slice(0,-1),w=Lr.above(e,{at:p,mode:"highest",match:t=>D.includes(t)&&mo(e,t)}),x=w&&Lr.pathRef(e,w[1]);if(uo.isText(f)&&uo.isText(h)){var E=er(f,fo);m=h.text.length,g=E}else{if(!Or.isElement(f)||!Or.isElement(h))throw new Error("Cannot merge the node at path [".concat(p,"] with the previous sibling because it is not the same kind: ").concat(to.stringify(f)," ").concat(to.stringify(h)));E=er(f,po);m=h.children.length,g=E}C||ko.moveNodes(e,{at:p,to:y,voids:i}),x&&ko.removeNodes(e,{at:x.current,voids:i}),Or.isElement(h)&&Lr.isEmpty(e,h)||uo.isText(h)&&""===h.text&&0!==v[v.length-1]?ko.removeNodes(e,{at:v,voids:i}):e.apply({type:"merge_node",path:y,position:m,properties:g}),x&&x.unref()}}}}))},moveNodes(e,t){Lr.withoutNormalizing(e,(()=>{var{to:n,at:r=e.selection,mode:o="lowest",voids:i=!1}=t,{match:a}=t;if(r){null==a&&(a=$r.isPath(r)?bo(e,r):t=>Lr.isBlock(e,t));var u=Lr.pathRef(e,n),l=Lr.nodes(e,{at:r,match:a,mode:o,voids:i}),s=Array.from(l,(t=>{var[,n]=t;return Lr.pathRef(e,n)}));for(var c of s){var d=c.unref(),f=u.current;0!==d.length&&e.apply({type:"move_node",path:d,newPath:f}),u.current&&$r.isSibling(f,d)&&$r.isAfter(f,d)&&(u.current=$r.next(u.current))}u.unref()}}))},removeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Lr.withoutNormalizing(e,(()=>{var{hanging:n=!1,voids:r=!1,mode:o="lowest"}=t,{at:i=e.selection,match:a}=t;if(i){null==a&&(a=$r.isPath(i)?bo(e,i):t=>Lr.isBlock(e,t)),!n&&Jr.isRange(i)&&(i=Lr.unhangRange(e,i));var u=Lr.nodes(e,{at:i,match:a,mode:o,voids:r}),l=Array.from(u,(t=>{var[,n]=t;return Lr.pathRef(e,n)}));for(var s of l){var c=s.unref();if(c){var[d]=Lr.node(e,c);e.apply({type:"remove_node",path:c,node:d})}}}}))},setNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Lr.withoutNormalizing(e,(()=>{var{match:r,at:o=e.selection,compare:i,merge:a}=n,{hanging:u=!1,mode:l="lowest",split:s=!1,voids:c=!1}=n;if(o){if(null==r&&(r=$r.isPath(o)?bo(e,o):t=>Lr.isBlock(e,t)),!u&&Jr.isRange(o)&&(o=Lr.unhangRange(e,o)),s&&Jr.isRange(o)){if(Jr.isCollapsed(o)&&Lr.leaf(e,o.anchor)[0].text.length>0)return;var d=Lr.rangeRef(e,o,{affinity:"inward"}),[f,p]=Jr.edges(o),h="lowest"===l?"lowest":"highest",v=Lr.isEnd(e,p,p.path);ko.splitNodes(e,{at:p,match:r,mode:h,voids:c,always:!v});var g=Lr.isStart(e,f,f.path);ko.splitNodes(e,{at:f,match:r,mode:h,voids:c,always:!g}),o=d.unref(),null==n.at&&ko.select(e,o)}for(var[m,y]of(i||(i=(e,t)=>e!==t),Lr.nodes(e,{at:o,match:r,mode:l,voids:c}))){var b={},C={};if(0!==y.length){var D=!1;for(var w in t)"children"!==w&&"text"!==w&&i(t[w],m[w])&&(D=!0,m.hasOwnProperty(w)&&(b[w]=m[w]),a?null!=t[w]&&(C[w]=a(m[w],t[w])):null!=t[w]&&(C[w]=t[w]));D&&e.apply({type:"set_node",path:y,properties:b,newProperties:C})}}}}))},splitNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Lr.withoutNormalizing(e,(()=>{var{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection,height:a=0,always:u=!1}=t;if(null==o&&(o=t=>Lr.isBlock(e,t)),Jr.isRange(i)&&(i=yo(e,i)),$r.isPath(i)){var l=i,s=Lr.point(e,l),[c]=Lr.parent(e,l);o=e=>e===c,a=s.path.length-l.length+1,i=s,u=!0}if(i){var d,f=Lr.pointRef(e,i,{affinity:"backward"});try{var[p]=Lr.nodes(e,{at:i,match:o,mode:n,voids:r});if(!p)return;var h=Lr.void(e,{at:i,mode:"highest"});if(!r&&h){var[v,g]=h;if(Or.isElement(v)&&e.isInline(v)){var m=Lr.after(e,g);if(!m){var y=$r.next(g);ko.insertNodes(e,{text:""},{at:y,voids:r}),m=Lr.point(e,y)}i=m,u=!0}a=i.path.length-g.length+1,u=!0}d=Lr.pointRef(e,i);var b=i.path.length-a,[,C]=p,D=i.path.slice(0,b),w=0===a?i.offset:i.path[b]+0;for(var[x,E]of Lr.levels(e,{at:D,reverse:!0,voids:r})){var B=!1;if(E.length<C.length||0===E.length||!r&&Lr.isVoid(e,x))break;var k=f.current,A=Lr.isEnd(e,k,E);if(u||!f||!Lr.isEdge(e,k,E)){B=!0;var F=zr.extractProps(x);e.apply({type:"split_node",path:E,position:w,properties:F})}w=E[E.length-1]+(B||A?1:0)}if(null==t.at){var O=d.current||Lr.end(e,[]);ko.select(e,O)}}finally{var S;f.unref(),null===(S=d)||void 0===S||S.unref()}}}))},unsetNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Array.isArray(t)||(t=[t]);var r={};for(var o of t)r[o]=null;ko.setNodes(e,r,n)},unwrapNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Lr.withoutNormalizing(e,(()=>{var{mode:n="lowest",split:r=!1,voids:o=!1}=t,{at:i=e.selection,match:a}=t;if(i){null==a&&(a=$r.isPath(i)?bo(e,i):t=>Lr.isBlock(e,t)),$r.isPath(i)&&(i=Lr.range(e,i));var u=Jr.isRange(i)?Lr.rangeRef(e,i):null,l=Lr.nodes(e,{at:i,match:a,mode:n,voids:o}),s=Array.from(l,(t=>{var[,n]=t;return Lr.pathRef(e,n)})).reverse(),c=function(t){var n=t.unref(),[i]=Lr.node(e,n),a=Lr.range(e,n);r&&u&&(a=Jr.intersection(u.current,a)),ko.liftNodes(e,{at:a,match:e=>Or.isAncestor(i)&&i.children.includes(e),voids:o})};for(var d of s)c(d);u&&u.unref()}}))},wrapNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Lr.withoutNormalizing(e,(()=>{var{mode:r="lowest",split:o=!1,voids:i=!1}=n,{match:a,at:u=e.selection}=n;if(u){if(null==a&&(a=$r.isPath(u)?bo(e,u):e.isInline(t)?t=>Lr.isInline(e,t)||uo.isText(t):t=>Lr.isBlock(e,t)),o&&Jr.isRange(u)){var[l,s]=Jr.edges(u),c=Lr.rangeRef(e,u,{affinity:"inward"});ko.splitNodes(e,{at:s,match:a,voids:i}),ko.splitNodes(e,{at:l,match:a,voids:i}),u=c.unref(),null==n.at&&ko.select(e,u)}var d=Array.from(Lr.nodes(e,{at:u,match:e.isInline(t)?t=>Lr.isBlock(e,t):e=>Lr.isEditor(e),mode:"lowest",voids:i}));for(var[,f]of d){var p=Jr.isRange(u)?Jr.intersection(u,Lr.range(e,f)):u;if(p){var h=Array.from(Lr.nodes(e,{at:p,match:a,mode:r,voids:i}));if(h.length>0){var v=function(){var[n]=h,r=h[h.length-1],[,o]=n,[,a]=r;if(0===o.length&&0===a.length)return"continue";var u=$r.equals(o,a)?$r.parent(o):$r.common(o,a),l=Lr.range(e,o,a),s=Lr.node(e,u),[c]=s,d=u.length+1,f=$r.next(a.slice(0,d)),p=vo(vo({},t),{},{children:[]});ko.insertNodes(e,p,{at:f,voids:i}),ko.moveNodes(e,{at:l,match:e=>Or.isAncestor(c)&&c.children.includes(e),to:f.concat(0),voids:i})}();if("continue"===v)continue}}}}}))}},mo=(e,t)=>{if(Or.isElement(t)){var n=t;return!!Lr.isVoid(e,t)||1===n.children.length&&mo(e,n.children[0])}return!Lr.isEditor(t)},yo=(e,t)=>{if(Jr.isCollapsed(t))return t.anchor;var[,n]=Jr.edges(t),r=Lr.pointRef(e,n);return ko.delete(e,{at:t}),r.unref()},bo=(e,t)=>{var[n]=Lr.node(e,t);return e=>e===n};function Co(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Do(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Co(Object(n),!0).forEach((function(t){$n(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Co(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var wo={collapse(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{edge:n="anchor"}=t,{selection:r}=e;if(r)if("anchor"===n)ko.select(e,r.anchor);else if("focus"===n)ko.select(e,r.focus);else if("start"===n){var[o]=Jr.edges(r);ko.select(e,o)}else if("end"===n){var[,i]=Jr.edges(r);ko.select(e,i)}},deselect(e){var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},move(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{selection:n}=e,{distance:r=1,unit:o="character",reverse:i=!1}=t,{edge:a=null}=t;if(n){"start"===a&&(a=Jr.isBackward(n)?"focus":"anchor"),"end"===a&&(a=Jr.isBackward(n)?"anchor":"focus");var{anchor:u,focus:l}=n,s={distance:r,unit:o},c={};if(null==a||"anchor"===a){var d=i?Lr.before(e,u,s):Lr.after(e,u,s);d&&(c.anchor=d)}if(null==a||"focus"===a){var f=i?Lr.before(e,l,s):Lr.after(e,l,s);f&&(c.focus=f)}ko.setSelection(e,c)}},select(e,t){var{selection:n}=e;if(t=Lr.range(e,t),n)ko.setSelection(e,t);else{if(!Jr.isRange(t))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(to.stringify(t)));e.apply({type:"set_selection",properties:n,newProperties:t})}},setPoint(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{selection:r}=e,{edge:o="both"}=n;if(r){"start"===o&&(o=Jr.isBackward(r)?"focus":"anchor"),"end"===o&&(o=Jr.isBackward(r)?"anchor":"focus");var{anchor:i,focus:a}=r,u="anchor"===o?i:a;ko.setSelection(e,{["anchor"===o?"anchor":"focus"]:Do(Do({},u),t)})}},setSelection(e,t){var{selection:n}=e,r={},o={};if(n){for(var i in t)("anchor"===i&&null!=t.anchor&&!Kr.equals(t.anchor,n.anchor)||"focus"===i&&null!=t.focus&&!Kr.equals(t.focus,n.focus)||"anchor"!==i&&"focus"!==i&&t[i]!==n[i])&&(r[i]=n[i],o[i]=t[i]);Object.keys(r).length>0&&e.apply({type:"set_selection",properties:r,newProperties:o})}}},xo={delete(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Lr.withoutNormalizing(e,(()=>{var{reverse:n=!1,unit:r="character",distance:o=1,voids:i=!1}=t,{at:a=e.selection,hanging:u=!1}=t;if(a){var l=!1;if(Jr.isRange(a)&&Jr.isCollapsed(a)&&(l=!0,a=a.anchor),Kr.isPoint(a)){var s=Lr.void(e,{at:a,mode:"highest"});if(!i&&s){var[,c]=s;a=c}else{var d={unit:r,distance:o};a={anchor:a,focus:n?Lr.before(e,a,d)||Lr.start(e,[]):Lr.after(e,a,d)||Lr.end(e,[])},u=!0}}if($r.isPath(a))ko.removeNodes(e,{at:a,voids:i});else if(!Jr.isCollapsed(a)){if(!u){var[,f]=Jr.edges(a),p=Lr.end(e,[]);Kr.equals(f,p)||(a=Lr.unhangRange(e,a,{voids:i}))}var[h,v]=Jr.edges(a),g=Lr.above(e,{match:t=>Lr.isBlock(e,t),at:h,voids:i}),m=Lr.above(e,{match:t=>Lr.isBlock(e,t),at:v,voids:i}),y=g&&m&&!$r.equals(g[1],m[1]),b=$r.equals(h.path,v.path),C=i?null:Lr.void(e,{at:h,mode:"highest"}),D=i?null:Lr.void(e,{at:v,mode:"highest"});if(C){var w=Lr.before(e,h);w&&g&&$r.isAncestor(g[1],w.path)&&(h=w)}if(D){var x=Lr.after(e,v);x&&m&&$r.isAncestor(m[1],x.path)&&(v=x)}var E,B=[];for(var k of Lr.nodes(e,{at:a,voids:i})){var[A,F]=k;E&&0===$r.compare(F,E)||(!i&&Lr.isVoid(e,A)||!$r.isCommon(F,h.path)&&!$r.isCommon(F,v.path))&&(B.push(k),E=F)}var O=Array.from(B,(t=>{var[,n]=t;return Lr.pathRef(e,n)})),S=Lr.pointRef(e,h),P=Lr.pointRef(e,v),T="";if(!b&&!C){var M=S.current,[_]=Lr.leaf(e,M),{path:L}=M,{offset:j}=h,I=_.text.slice(j);I.length>0&&(e.apply({type:"remove_text",path:L,offset:j,text:I}),T=I)}if(O.reverse().map((e=>e.unref())).filter((e=>null!==e)).forEach((t=>ko.removeNodes(e,{at:t,voids:i}))),!D){var N=P.current,[R]=Lr.leaf(e,N),{path:z}=N,V=b?h.offset:0,W=R.text.slice(V,v.offset);W.length>0&&(e.apply({type:"remove_text",path:z,offset:V,text:W}),T=W)}!b&&y&&P.current&&S.current&&ko.mergeNodes(e,{at:P.current,hanging:!0,voids:i}),l&&n&&"character"===r&&T.length>1&&T.match(/[\u0E00-\u0E7F]+/)&&ko.insertText(e,T.slice(0,T.length-o));var H=S.unref(),$=P.unref(),U=n?H||$:$||H;null==t.at&&U&&ko.select(e,U)}}}))},insertFragment(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Lr.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:o=!1}=n,{at:i=e.selection}=n;if(t.length&&i){if(Jr.isRange(i))if(r||(i=Lr.unhangRange(e,i)),Jr.isCollapsed(i))i=i.anchor;else{var[,a]=Jr.edges(i);if(!o&&Lr.void(e,{at:a}))return;var u=Lr.pointRef(e,a);ko.delete(e,{at:i}),i=u.unref()}else $r.isPath(i)&&(i=Lr.start(e,i));if(o||!Lr.void(e,{at:i})){var l=Lr.above(e,{at:i,match:t=>Lr.isInline(e,t),mode:"highest",voids:o});if(l){var[,s]=l;if(Lr.isEnd(e,i,s))i=Lr.after(e,s);else if(Lr.isStart(e,i,s)){i=Lr.before(e,s)}}var c=Lr.above(e,{match:t=>Lr.isBlock(e,t),at:i,voids:o}),[,d]=c,f=Lr.isStart(e,i,d),p=Lr.isEnd(e,i,d),h=f&&p,v=!f||f&&p,g=!p,[,m]=zr.first({children:t},[]),[,y]=zr.last({children:t},[]),b=[],C=t=>{var[n,r]=t;return!(0===r.length)&&(!!h||!(v&&$r.isAncestor(r,m)&&Or.isElement(n)&&!e.isVoid(n)&&!e.isInline(n))&&!(g&&$r.isAncestor(r,y)&&Or.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)))};for(var D of zr.nodes({children:t},{pass:C}))C(D)&&b.push(D);var w=[],x=[],E=[],B=!0,k=!1;for(var[A]of b)Or.isElement(A)&&!e.isInline(A)?(B=!1,k=!0,x.push(A)):B?w.push(A):E.push(A);var[F]=Lr.nodes(e,{at:i,match:t=>uo.isText(t)||Lr.isInline(e,t),mode:"highest",voids:o}),[,O]=F,S=Lr.isStart(e,i,O),P=Lr.isEnd(e,i,O),T=Lr.pathRef(e,p&&!E.length?$r.next(d):d),M=Lr.pathRef(e,P?$r.next(O):O);ko.splitNodes(e,{at:i,match:t=>k?Lr.isBlock(e,t):uo.isText(t)||Lr.isInline(e,t),mode:k?"lowest":"highest",always:k&&(!f||w.length>0)&&(!p||E.length>0),voids:o});var _,L=Lr.pathRef(e,!S||S&&P?$r.next(O):O);if(ko.insertNodes(e,w,{at:L.current,match:t=>uo.isText(t)||Lr.isInline(e,t),mode:"highest",voids:o}),h&&!w.length&&x.length&&!E.length&&ko.delete(e,{at:d,voids:o}),ko.insertNodes(e,x,{at:T.current,match:t=>Lr.isBlock(e,t),mode:"lowest",voids:o}),ko.insertNodes(e,E,{at:M.current,match:t=>uo.isText(t)||Lr.isInline(e,t),mode:"highest",voids:o}),!n.at)if(E.length>0&&M.current?_=$r.previous(M.current):x.length>0&&T.current?_=$r.previous(T.current):L.current&&(_=$r.previous(L.current)),_){var j=Lr.end(e,_);ko.select(e,j)}L.unref(),T.unref(),M.unref()}}}))},insertText(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Lr.withoutNormalizing(e,(()=>{var{voids:r=!1}=n,{at:o=e.selection}=n;if(o){if($r.isPath(o)&&(o=Lr.range(e,o)),Jr.isRange(o))if(Jr.isCollapsed(o))o=o.anchor;else{var i=Jr.end(o);if(!r&&Lr.void(e,{at:i}))return;var a=Jr.start(o),u=Lr.pointRef(e,a),l=Lr.pointRef(e,i);ko.delete(e,{at:o,voids:r});var s=u.unref(),c=l.unref();o=s||c,ko.setSelection(e,{anchor:o,focus:o})}if(r||!Lr.void(e,{at:o})){var{path:d,offset:f}=o;t.length>0&&e.apply({type:"insert_text",path:d,offset:f,text:t})}}}))}};function Eo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Eo(Object(n),!0).forEach((function(t){$n(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Eo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ko=Bo(Bo(Bo(Bo({},co),go),wo),xo),Ao=function(e){if(e=String(e||""),Oo.test(e))return"rtl";if(So.test(e))return"ltr";return"neutral"},Fo="A-Za-zÀ-ÖØ-öø-ʸ̀-ࠀ-Ⰰ-︀--",Oo=new RegExp("^[^"+Fo+"]*[֑-߿יִ-﷽ﹰ-ﻼ]"),So=new RegExp("^[^֑-߿יִ-﷽ﹰ-ﻼ]*["+Fo+"]");var Po=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},To="object"==typeof ft&&ft&&ft.Object===Object&&ft,Mo=To,_o="object"==typeof self&&self&&self.Object===Object&&self,Lo=Mo||_o||Function("return this")(),jo=Lo,Io=function(){return jo.Date.now()},No=/\s/;var Ro=function(e){for(var t=e.length;t--&&No.test(e.charAt(t)););return t},zo=Ro,Vo=/^\s+/;var Wo=function(e){return e?e.slice(0,zo(e)+1).replace(Vo,""):e},Ho=Lo.Symbol,$o=Ho,Uo=Object.prototype,qo=Uo.hasOwnProperty,Xo=Uo.toString,Ko=$o?$o.toStringTag:void 0;var Yo=function(e){var t=qo.call(e,Ko),n=e[Ko];try{e[Ko]=void 0;var r=!0}catch(e){}var o=Xo.call(e);return r&&(t?e[Ko]=n:delete e[Ko]),o},Go=Object.prototype.toString;var Zo=Yo,Jo=function(e){return Go.call(e)},Qo=Ho?Ho.toStringTag:void 0;var ei=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Qo&&Qo in Object(e)?Zo(e):Jo(e)};var ti=function(e){return null!=e&&"object"==typeof e},ni=ei,ri=ti;var oi=Wo,ii=Po,ai=function(e){return"symbol"==typeof e||ri(e)&&"[object Symbol]"==ni(e)},ui=/^[-+]0x[0-9a-f]+$/i,li=/^0b[01]+$/i,si=/^0o[0-7]+$/i,ci=parseInt;var di=Po,fi=Io,pi=function(e){if("number"==typeof e)return e;if(ai(e))return NaN;if(ii(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ii(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=oi(e);var n=li.test(e);return n||si.test(e)?ci(e.slice(2),n?2:8):ui.test(e)?NaN:+e},hi=Math.max,vi=Math.min;var gi=function(e,t,n){var r,o,i,a,u,l,s=0,c=!1,d=!1,f=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,i=o;return r=o=void 0,s=t,a=e.apply(i,n)}function h(e){return s=e,u=setTimeout(g,t),c?p(e):a}function v(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-s>=i}function g(){var e=fi();if(v(e))return m(e);u=setTimeout(g,function(e){var n=t-(e-l);return d?vi(n,i-(e-s)):n}(e))}function m(e){return u=void 0,f&&r?p(e):(r=o=void 0,a)}function y(){var e=fi(),n=v(e);if(r=arguments,o=this,l=e,n){if(void 0===u)return h(l);if(d)return clearTimeout(u),u=setTimeout(g,t),p(l)}return void 0===u&&(u=setTimeout(g,t)),a}return t=pi(t)||0,di(n)&&(c=!!n.leading,i=(d="maxWait"in n)?hi(pi(n.maxWait)||0,t):i,f="trailing"in n?!!n.trailing:f),y.cancel=function(){void 0!==u&&clearTimeout(u),s=0,r=l=o=u=void 0},y.flush=function(){return void 0===u?a:m(fi())},y},mi=gi,yi=Po;var bi=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return yi(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),mi(e,t,{leading:r,maxWait:t,trailing:o})};function Ci(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function Di(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function wi(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return Di(n.overflowY,t)||Di(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function xi(e,t,n,r,o,i,a,u){return i<e&&a>t||i>e&&a<t?0:i<=e&&u<=n||a>=t&&u>=n?i-e-r:a>t&&u<n||i<e&&u>n?a-t+o:0}function Ei(e,t){var n=window,r=t.scrollMode,o=t.block,i=t.inline,a=t.boundary,u=t.skipOverflowHiddenElements,l="function"==typeof a?a:function(e){return e!==a};if(!Ci(e))throw new TypeError("Invalid target");for(var s=document.scrollingElement||document.documentElement,c=[],d=e;Ci(d)&&l(d);){if((d=d.parentElement)===s){c.push(d);break}null!=d&&d===document.body&&wi(d)&&!wi(document.documentElement)||null!=d&&wi(d,u)&&c.push(d)}for(var f=n.visualViewport?n.visualViewport.width:innerWidth,p=n.visualViewport?n.visualViewport.height:innerHeight,h=window.scrollX||pageXOffset,v=window.scrollY||pageYOffset,g=e.getBoundingClientRect(),m=g.height,y=g.width,b=g.top,C=g.right,D=g.bottom,w=g.left,x="start"===o||"nearest"===o?b:"end"===o?D:b+m/2,E="center"===i?w+y/2:"end"===i?C:w,B=[],k=0;k<c.length;k++){var A=c[k],F=A.getBoundingClientRect(),O=F.height,S=F.width,P=F.top,T=F.right,M=F.bottom,_=F.left;if("if-needed"===r&&b>=0&&w>=0&&D<=p&&C<=f&&b>=P&&D<=M&&w>=_&&C<=T)return B;var L=getComputedStyle(A),j=parseInt(L.borderLeftWidth,10),I=parseInt(L.borderTopWidth,10),N=parseInt(L.borderRightWidth,10),R=parseInt(L.borderBottomWidth,10),z=0,V=0,W="offsetWidth"in A?A.offsetWidth-A.clientWidth-j-N:0,H="offsetHeight"in A?A.offsetHeight-A.clientHeight-I-R:0;if(s===A)z="start"===o?x:"end"===o?x-p:"nearest"===o?xi(v,v+p,p,I,R,v+x,v+x+m,m):x-p/2,V="start"===i?E:"center"===i?E-f/2:"end"===i?E-f:xi(h,h+f,f,j,N,h+E,h+E+y,y),z=Math.max(0,z+v),V=Math.max(0,V+h);else{z="start"===o?x-P-I:"end"===o?x-M+R+H:"nearest"===o?xi(P,M,O,I,R+H,x,x+m,m):x-(P+O/2)+H/2,V="start"===i?E-_-j:"center"===i?E-(_+S/2)+W/2:"end"===i?E-T+N+W:xi(_,T,S,j,N+W,E,E+y,y);var $=A.scrollLeft,U=A.scrollTop;x+=U-(z=Math.max(0,Math.min(U+z,A.scrollHeight-O+H))),E+=$-(V=Math.max(0,Math.min($+V,A.scrollWidth-S+W)))}B.push({el:A,top:z,left:V})}return B}function Bi(e){return e===Object(e)&&0!==Object.keys(e).length}function ki(e,t){var n=e.isConnected||e.ownerDocument.documentElement.contains(e);if(Bi(t)&&"function"==typeof t.behavior)return t.behavior(n?Ei(e,t):[]);if(n){var r=function(e){return!1===e?{block:"end",inline:"nearest"}:Bi(e)?e:{block:"start",inline:"nearest"}}(t);return function(e,t){void 0===t&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach((function(e){var r=e.el,o=e.top,i=e.left;r.scroll&&n?r.scroll({top:o,left:i,behavior:t}):(r.scrollTop=o,r.scrollLeft=i)}))}(Ei(e,r),r.behavior)}}var Ai={};Object.defineProperty(Ai,"__esModule",{value:!0});for(var Fi="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),Oi={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},Si={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:Fi?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},Pi={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},Ti=1;Ti<20;Ti++)Pi["f"+Ti]=111+Ti;function Mi(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map((function(e){return _i(e,t)})),o=function(e){return r.some((function(t){return Li(t,e)}))};return null==n?o:o(n)}function _i(e,t){var n=t&&t.byKey,r={},o=(e=e.replace("++","+add")).split("+"),i=o.length;for(var a in Oi)r[Oi[a]]=!1;var u=!0,l=!1,s=void 0;try{for(var c,d=o[Symbol.iterator]();!(u=(c=d.next()).done);u=!0){var f=c.value,p=f.endsWith("?")&&f.length>1;p&&(f=f.slice(0,-1));var h=Ii(f),v=Oi[h];1!==i&&v||(n?r.key=h:r.which=ji(f)),v&&(r[v]=!p||null)}}catch(e){l=!0,s=e}finally{try{!u&&d.return&&d.return()}finally{if(l)throw s}}return r}function Li(e,t){for(var n in e){var r=e[n],o=void 0;if(null!=r&&((null!=(o="key"===n&&null!=t.key?t.key.toLowerCase():"which"===n?91===r&&93===t.which?91:t.which:t[n])||!1!==r)&&o!==r))return!1}return!0}function ji(e){return e=Ii(e),Pi[e]||e.toUpperCase().charCodeAt(0)}function Ii(e){return e=e.toLowerCase(),e=Si[e]||e}Ai.default=Mi,Ai.isHotkey=Mi,Ai.isCodeHotkey=function(e,t){return Mi(e,t)};var Ni=Ai.isKeyHotkey=function(e,t){return Mi(e,{byKey:!0},t)};function Ri(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zi(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}Ai.parseHotkey=_i,Ai.compareHotkey=Li,Ai.toKeyCode=ji,Ai.toKeyName=Ii;var Vi=0;class Wi{constructor(){this.id="".concat(Vi++)}}var Hi=new WeakMap,$i=new WeakMap,Ui=new WeakMap,qi=new WeakMap,Xi=new WeakMap,Ki=new WeakMap,Yi=new WeakMap,Gi=new WeakMap,Zi=new WeakMap,Ji=new WeakMap,Qi=new WeakMap,ea=new WeakMap,ta=new WeakMap,na=new WeakMap,ra=new WeakMap,oa=new WeakMap,ia=new WeakMap,aa=new WeakMap,ua=new WeakMap,la=new WeakMap,sa=new WeakMap,ca=Symbol("placeholder"),da=Symbol("mark-placeholder"),fa=globalThis.Text,pa=e=>e&&e.ownerDocument&&e.ownerDocument.defaultView||null,ha=e=>va(e)&&1===e.nodeType,va=e=>{var t=pa(e);return!!t&&e instanceof t.Node},ga=e=>{var t=e&&e.anchorNode&&pa(e.anchorNode);return!!t&&e instanceof t.Selection},ma=e=>va(e)&&3===e.nodeType,ya=(e,t,n)=>{for(var r,{childNodes:o}=e,i=o[t],a=t,u=!1,l=!1;(va(r=i)&&8===r.nodeType||ha(i)&&0===i.childNodes.length||ha(i)&&"false"===i.getAttribute("contenteditable"))&&(!u||!l);)a>=o.length?(u=!0,a=t-1,n="backward"):a<0?(l=!0,a=t+1,n="forward"):(i=o[a],t=a,a+="forward"===n?1:-1);return[i,t]},ba=(e,t,n)=>{var[r]=ya(e,t,n);return r},Ca=e=>{var t="";if(ma(e)&&e.nodeValue)return e.nodeValue;if(ha(e)){for(var n of Array.from(e.childNodes))t+=Ca(n);var r=getComputedStyle(e).getPropertyValue("display");"block"!==r&&"list"!==r&&"BR"!==e.tagName||(t+="\n")}return t},Da=/data-slate-fragment="(.+?)"/m,wa=(e,t,n)=>{var{target:r}=t;if(ha(r)&&r.matches('[contentEditable="false"]'))return!1;var{document:o}=Na.getWindow(e);if(o.contains(r))return Na.hasDOMNode(e,r,{editable:!0});var i=n.find((e=>{var{addedNodes:t,removedNodes:n}=e;for(var o of t)if(o===r||o.contains(r))return!0;for(var i of n)if(i===r||i.contains(r))return!0}));return!(!i||i===t)&&wa(e,i,n)},xa=parseInt(c.version.split(".")[0],10)>=17,Ea="undefined"!=typeof navigator&&"undefined"!=typeof window&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Ba="undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent),ka="undefined"!=typeof navigator&&/Android/.test(navigator.userAgent),Aa="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Fa="undefined"!=typeof navigator&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),Oa="undefined"!=typeof navigator&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),Sa="undefined"!=typeof navigator&&/Chrome/i.test(navigator.userAgent),Pa="undefined"!=typeof navigator&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),Ta="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent),Ma="undefined"!=typeof navigator&&/.*QQBrowser/.test(navigator.userAgent),_a="undefined"!=typeof navigator&&/.*UCBrowser/.test(navigator.userAgent),La="undefined"!=typeof navigator&&/.*Wechat/.test(navigator.userAgent),ja=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Ia=!Pa&&!Oa&&"undefined"!=typeof globalThis&&globalThis.InputEvent&&"function"==typeof globalThis.InputEvent.prototype.getTargetRanges,Na={isComposing:e=>!!ea.get(e),getWindow(e){var t=Ui.get(e);if(!t)throw new Error("Unable to find a host window element for this editor");return t},findKey(e,t){var n=Gi.get(t);return n||(n=new Wi,Gi.set(t,n)),n},findPath(e,t){for(var n=[],r=t;;){var o=$i.get(r);if(null==o){if(Lr.isEditor(r))return n;break}var i=Hi.get(r);if(null==i)break;n.unshift(i),r=o}throw new Error("Unable to find the path for Slate node: ".concat(to.stringify(t)))},findDocumentOrShadowRoot(e){var t=Na.toDOMNode(e,e),n=t.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&null!=n.getSelection?n:t.ownerDocument},isFocused:e=>!!Qi.get(e),isReadOnly:e=>!!Ji.get(e),blur(e){var t=Na.toDOMNode(e,e),n=Na.findDocumentOrShadowRoot(e);Qi.set(e,!1),n.activeElement===t&&t.blur()},focus(e){var t=Na.toDOMNode(e,e),n=Na.findDocumentOrShadowRoot(e);Qi.set(e,!0),n.activeElement!==t&&t.focus({preventScroll:!0})},deselect(e){var{selection:t}=e,n=Na.findDocumentOrShadowRoot(e).getSelection();n&&n.rangeCount>0&&n.removeAllRanges(),t&&ko.deselect(e)},hasDOMNode(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{editable:o=!1}=r,i=Na.toDOMNode(e,e);try{n=ha(t)?t:t.parentElement}catch(e){if(!e.message.includes('Permission denied to access property "nodeType"'))throw e}return!!n&&!(n.closest("[data-slate-editor]")!==i||o&&!n.isContentEditable&&("boolean"!=typeof n.isContentEditable||n.closest('[contenteditable="false"]')!==i)&&!n.getAttribute("data-slate-zero-width"))},insertData(e,t){e.insertData(t)},insertFragmentData:(e,t)=>e.insertFragmentData(t),insertTextData:(e,t)=>e.insertTextData(t),setFragmentData(e,t,n){e.setFragmentData(t,n)},toDOMNode(e,t){var n=Zi.get(e),r=Lr.isEditor(t)?qi.get(e):null==n?void 0:n.get(Na.findKey(e,t));if(!r)throw new Error("Cannot resolve a DOM node from Slate node: ".concat(to.stringify(t)));return r},toDOMPoint(e,t){var n,[r]=Lr.node(e,t.path),o=Na.toDOMNode(e,r);Lr.void(e,{at:t})&&(t={path:t.path,offset:0});for(var i=Array.from(o.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),a=0,u=0;u<i.length;u++){var l=i[u],s=l.childNodes[0];if(null!=s&&null!=s.textContent){var{length:c}=s.textContent,d=l.getAttribute("data-slate-length"),f=a+(null==d?c:parseInt(d,10)),p=i[u+1];if(t.offset===f&&null!=p&&p.hasAttribute("data-slate-mark-placeholder")){var h,v=p.childNodes[0];n=[v instanceof fa?v:p,null!==(h=p.textContent)&&void 0!==h&&h.startsWith("\ufeff")?1:0];break}if(t.offset<=f){n=[s,Math.min(c,Math.max(0,t.offset-a))];break}a=f}}if(!n)throw new Error("Cannot resolve a DOM point from Slate point: ".concat(to.stringify(t)));return n},toDOMRange(e,t){var{anchor:n,focus:r}=t,o=Jr.isBackward(t),i=Na.toDOMPoint(e,n),a=Jr.isCollapsed(t)?i:Na.toDOMPoint(e,r),u=Na.getWindow(e).document.createRange(),[l,s]=o?a:i,[c,d]=o?i:a,f=!!(ha(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),p=!!(ha(c)?c:c.parentElement).getAttribute("data-slate-zero-width");return u.setStart(l,f?1:s),u.setEnd(c,p?1:d),u},toSlateNode(e,t){var n=ha(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?Ki.get(n):null;if(!r)throw new Error("Cannot resolve a Slate node from DOM node: ".concat(n));return r},findEventRange(e,t){"nativeEvent"in t&&(t=t.nativeEvent);var{clientX:n,clientY:r,target:o}=t;if(null==n||null==r)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(t));var i,a=Na.toSlateNode(e,t.target),u=Na.findPath(e,a);if(Lr.isVoid(e,a)){var l=o.getBoundingClientRect(),s=e.isInline(a)?n-l.left<l.left+l.width-n:r-l.top<l.top+l.height-r,c=Lr.point(e,u,{edge:s?"start":"end"}),d=s?Lr.before(e,c):Lr.after(e,c);if(d)return Lr.range(e,d)}var{document:f}=Na.getWindow(e);if(f.caretRangeFromPoint)i=f.caretRangeFromPoint(n,r);else{var p=f.caretPositionFromPoint(n,r);p&&((i=f.createRange()).setStart(p.offsetNode,p.offset),i.setEnd(p.offsetNode,p.offset))}if(!i)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(t));return Na.toSlateRange(e,i,{exactMatch:!1,suppressThrow:!1})},toSlatePoint(e,t,n){var{exactMatch:r,suppressThrow:o}=n,[i,a]=r?t:(e=>{var[t,n]=e;if(ha(t)&&t.childNodes.length){var r=n===t.childNodes.length,o=r?n-1:n;for([t,o]=ya(t,o,r?"backward":"forward"),r=o<n;ha(t)&&t.childNodes.length;){var i=r?t.childNodes.length-1:0;t=ba(t,i,r?"backward":"forward")}n=r&&null!=t.textContent?t.textContent.length:0}return[t,n]})(t),u=i.parentNode,l=null,s=0;if(u){var c,d,f=Na.toDOMNode(e,e),p=u.closest('[data-slate-void="true"]'),h=p&&f.contains(p)?p:null,v=u.closest("[data-slate-leaf]"),g=null;if(v){if(l=v.closest('[data-slate-node="text"]')){var m=Na.getWindow(e).document.createRange();m.setStart(l,0),m.setEnd(i,a);var y=m.cloneContents();[...Array.prototype.slice.call(y.querySelectorAll("[data-slate-zero-width]")),...Array.prototype.slice.call(y.querySelectorAll("[contenteditable=false]"))].forEach((e=>{ka&&!r&&e.hasAttribute("data-slate-zero-width")&&e.textContent.length>0&&"\ufeff"!==e.textContext?e.textContent.startsWith("\ufeff")&&(e.textContent=e.textContent.slice(1)):e.parentNode.removeChild(e)})),s=y.textContent.length,g=l}}else if(h){for(var b=h.querySelectorAll("[data-slate-leaf]"),C=0;C<b.length;C++){var D=b[C];if(Na.hasDOMNode(e,D)){v=D;break}}v?(l=v.closest('[data-slate-node="text"]'),s=(g=v).textContent.length,g.querySelectorAll("[data-slate-zero-width]").forEach((e=>{s-=e.textContent.length}))):s=1}g&&s===g.textContent.length&&ka&&"z"===g.getAttribute("data-slate-zero-width")&&null!==(c=g.textContent)&&void 0!==c&&c.startsWith("\ufeff")&&(u.hasAttribute("data-slate-zero-width")||Aa&&null!==(d=g.textContent)&&void 0!==d&&d.endsWith("\n\n"))&&s--}if(ka&&!l&&!r){var w=u.hasAttribute("data-slate-node")?u:u.closest("[data-slate-node]");if(w&&Na.hasDOMNode(e,w,{editable:!0})){var x=Na.toSlateNode(e,w),{path:E,offset:B}=Lr.start(e,Na.findPath(e,x));return w.querySelector("[data-slate-leaf]")||(B=a),{path:E,offset:B}}}if(!l){if(o)return null;throw new Error("Cannot resolve a Slate point from DOM point: ".concat(t))}var k=Na.toSlateNode(e,l);return{path:Na.findPath(e,k),offset:s}},toSlateRange(e,t,n){var r,o,i,a,u,{exactMatch:l,suppressThrow:s}=n;if((ga(t)?t.anchorNode:t.startContainer)&&(ga(t)?(r=t.anchorNode,o=t.anchorOffset,i=t.focusNode,a=t.focusOffset,u=Sa&&window.document.activeElement&&window.document.activeElement.shadowRoot?t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:t.isCollapsed):(r=t.startContainer,o=t.startOffset,i=t.endContainer,a=t.endOffset,u=t.collapsed)),null==r||null==i||null==o||null==a)throw new Error("Cannot resolve a Slate range from DOM range: ".concat(t));var c=Na.toSlatePoint(e,[r,o],{exactMatch:l,suppressThrow:s});if(!c)return null;var d=u?c:Na.toSlatePoint(e,[i,a],{exactMatch:l,suppressThrow:s});if(!d)return null;var f={anchor:c,focus:d};return Jr.isExpanded(f)&&Jr.isForward(f)&&ha(i)&&Lr.void(e,{at:f.focus,mode:"highest"})&&(f=Lr.unhangRange(e,f,{voids:!0})),f},hasRange(e,t){var{anchor:n,focus:r}=t;return Lr.hasPath(e,n.path)&&Lr.hasPath(e,r.path)},androidScheduleFlush(e){var t;null===(t=ra.get(e))||void 0===t||t()},androidPendingDiffs:e=>aa.get(e)},Ra=ja?C:f,za=["anchor","focus"],Va=["anchor","focus"],Wa=(e,t)=>Object.keys(e).length===Object.keys(t).length&&Object.keys(e).every((n=>t.hasOwnProperty(n)&&e[n]===t[n])),Ha=(e,t)=>{if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++){var r=e[n],o=t[n],i=zi(r,za),a=zi(o,Va);if(!Jr.equals(r,o)||r[ca]!==o[ca]||!Wa(i,a))return!1}return!0},$a=e=>{var{isLast:t,leaf:n,parent:r,text:o}=e,i=Ka(),a=Na.findPath(i,o),u=$r.parent(a),l=!0===n[da];return i.isVoid(r)?c.createElement(qa,{length:zr.string(r).length}):""!==n.text||r.children[r.children.length-1]!==o||i.isInline(r)||""!==Lr.string(i,u)?""===n.text?c.createElement(qa,{isMarkPlaceholder:l}):t&&"\n"===n.text.slice(-1)?c.createElement(Ua,{isTrailing:!0,text:n.text}):c.createElement(Ua,{text:n.text}):c.createElement(qa,{isLineBreak:!0,isMarkPlaceholder:l})},Ua=e=>{var{text:t,isTrailing:n=!1}=e,r=g(null),o=()=>"".concat(null!=t?t:"").concat(n?"\n":"");return Ra((()=>{var e=o();r.current&&r.current.textContent!==e&&(r.current.textContent=e)})),r.current?c.createElement("span",{"data-slate-string":!0,ref:r}):c.createElement("span",{"data-slate-string":!0,ref:r},o())},qa=e=>{var{length:t=0,isLineBreak:n=!1,isMarkPlaceholder:r=!1}=e,o={"data-slate-zero-width":n?"n":"z","data-slate-length":t};return r&&(o["data-slate-mark-placeholder"]=!0),c.createElement("span",Object.assign({},o),ka&&n?null:"\ufeff",n?c.createElement("br",null):null)},Xa=p(null),Ka=()=>{var e=h(Xa);if(!e)throw new Error("The `useSlateStatic` hook must be used inside the <Slate> component's context.");return e},Ya=e=>{var{leaf:t,isLast:n,text:r,parent:o,renderPlaceholder:i,renderLeaf:a=(e=>c.createElement(Za,Object.assign({},e)))}=e,u=g(null),l=Ka();f((()=>{var e=null==u?void 0:u.current,t=Na.toDOMNode(l,l);if(e&&t)return t.style.minHeight="".concat(e.clientHeight,"px"),Xi.set(l,e),()=>{t.style.minHeight="auto",Xi.delete(l)}}),[u,t]);var s=c.createElement($a,{isLast:n,leaf:t,parent:o,text:r});if(t[ca]){var d={children:t.placeholder,attributes:{"data-slate-placeholder":!0,style:{position:"absolute",pointerEvents:"none",width:"100%",maxWidth:"100%",display:"block",opacity:"0.333",userSelect:"none",textDecoration:"none"},contentEditable:!1,ref:u}};s=c.createElement(c.Fragment,null,i(d),s)}return a({attributes:{"data-slate-leaf":!0},children:s,leaf:t,text:r})},Ga=c.memo(Ya,((e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.renderPlaceholder===e.renderPlaceholder&&t.text===e.text&&uo.equals(t.leaf,e.leaf)&&t.leaf[ca]===e.leaf[ca])),Za=e=>{var{attributes:t,children:n}=e;return c.createElement("span",Object.assign({},t),n)},Ja=e=>{for(var{decorations:t,isLast:n,parent:r,renderPlaceholder:o,renderLeaf:i,text:a}=e,u=Ka(),l=g(null),s=uo.decorations(a,t),d=Na.findKey(u,a),f=[],p=0;p<s.length;p++){var h=s[p];f.push(c.createElement(Ga,{isLast:n&&p===s.length-1,key:"".concat(d.id,"-").concat(p),renderPlaceholder:o,leaf:h,text:a,parent:r,renderLeaf:i}))}return Ra((()=>{var e=Zi.get(u);l.current?(null==e||e.set(d,l.current),Yi.set(a,l.current),Ki.set(l.current,a)):(null==e||e.delete(d),Yi.delete(a))})),c.createElement("span",{"data-slate-node":"text",ref:l},f)},Qa=c.memo(Ja,((e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.text===e.text&&Ha(t.decorations,e.decorations))),eu=e=>{var{decorations:t,element:n,renderElement:r=(e=>c.createElement(nu,Object.assign({},e))),renderPlaceholder:o,renderLeaf:i,selection:a}=e,u=Ka(),l=uu(),s=u.isInline(n),d=Na.findKey(u,n),f=b((e=>{var t=Zi.get(u);e?(null==t||t.set(d,e),Yi.set(n,e),Ki.set(e,n)):(null==t||t.delete(d),Yi.delete(n))}),[u,d,n]),p=iu({decorations:t,node:n,renderElement:r,renderPlaceholder:o,renderLeaf:i,selection:a}),h={"data-slate-node":"element",ref:f};if(s&&(h["data-slate-inline"]=!0),!s&&Lr.hasInlines(u,n)){var v=zr.string(n),g=Ao(v);"rtl"===g&&(h.dir=g)}if(Lr.isVoid(u,n)){h["data-slate-void"]=!0,!l&&s&&(h.contentEditable=!1);var m=s?"span":"div",[[y]]=zr.texts(n);p=c.createElement(m,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},c.createElement(Qa,{renderPlaceholder:o,decorations:[],isLast:!1,parent:n,text:y})),Hi.set(y,0),$i.set(y,n)}return r({attributes:h,children:p,element:n})},tu=c.memo(eu,((e,t)=>e.element===t.element&&e.renderElement===t.renderElement&&e.renderLeaf===t.renderLeaf&&Ha(e.decorations,t.decorations)&&(e.selection===t.selection||!!e.selection&&!!t.selection&&Jr.equals(e.selection,t.selection)))),nu=e=>{var{attributes:t,children:n,element:r}=e,o=Ka().isInline(r)?"span":"div";return c.createElement(o,Object.assign({},t,{style:{position:"relative"}}),n)},ru=p((()=>[])),ou=p(!1),iu=e=>{for(var{decorations:t,node:n,renderElement:r,renderPlaceholder:o,renderLeaf:i,selection:a}=e,u=h(ru),l=Ka(),s=Na.findPath(l,n),d=[],f=Or.isElement(n)&&!l.isInline(n)&&Lr.hasInlines(l,n),p=0;p<n.children.length;p++){var v=s.concat(p),g=n.children[p],m=Na.findKey(l,g),y=Lr.range(l,v),b=a&&Jr.intersection(y,a),C=u([g,v]);for(var D of t){var w=Jr.intersection(D,y);w&&C.push(w)}Or.isElement(g)?d.push(c.createElement(ou.Provider,{key:"provider-".concat(m.id),value:!!b},c.createElement(tu,{decorations:C,element:g,key:m.id,renderElement:r,renderPlaceholder:o,renderLeaf:i,selection:b}))):d.push(c.createElement(Qa,{decorations:C,key:m.id,isLast:f&&p===n.children.length-1,parent:n,renderPlaceholder:o,renderLeaf:i,text:g})),Hi.set(g,p),$i.set(g,n)}return d},au=p(!1),uu=()=>h(au),lu=p(null),su={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",insertSoftBreak:"shift+enter",splitBlock:"enter",undo:"mod+z"},cu={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},du={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},fu=e=>{var t=su[e],n=cu[e],r=du[e],o=t&&Ni(t),i=n&&Ni(n),a=r&&Ni(r);return e=>!(!o||!o(e))||(!!(Ba&&i&&i(e))||!(Ba||!a||!a(e)))},pu={isBold:fu("bold"),isCompose:fu("compose"),isMoveBackward:fu("moveBackward"),isMoveForward:fu("moveForward"),isDeleteBackward:fu("deleteBackward"),isDeleteForward:fu("deleteForward"),isDeleteLineBackward:fu("deleteLineBackward"),isDeleteLineForward:fu("deleteLineForward"),isDeleteWordBackward:fu("deleteWordBackward"),isDeleteWordForward:fu("deleteWordForward"),isExtendBackward:fu("extendBackward"),isExtendForward:fu("extendForward"),isExtendLineBackward:fu("extendLineBackward"),isExtendLineForward:fu("extendLineForward"),isItalic:fu("italic"),isMoveLineBackward:fu("moveLineBackward"),isMoveLineForward:fu("moveLineForward"),isMoveWordBackward:fu("moveWordBackward"),isMoveWordForward:fu("moveWordForward"),isRedo:fu("redo"),isSoftBreak:fu("insertSoftBreak"),isSplitBlock:fu("splitBlock"),isTransposeCharacter:fu("transposeCharacter"),isUndo:fu("undo")},hu={subtree:!0,childList:!0,characterData:!0,characterDataOldValue:!0};class vu extends v{constructor(){super(...arguments),this.context=null,this.manager=null,this.mutationObserver=null}observe(){var e,{node:t}=this.props;if(!t.current)throw new Error("Failed to attach MutationObserver, `node` is undefined");null===(e=this.mutationObserver)||void 0===e||e.observe(t.current,hu)}componentDidMount(){var{receivedUserInput:e}=this.props,t=this.context;this.manager=((e,t)=>{var n=[],r=()=>{n=[]};return{registerMutations:r=>{if(t.current){var o=r.filter((t=>wa(e,t,r)));n.push(...o)}},restoreDOM:function(){n.reverse().forEach((e=>{"characterData"!==e.type?(e.removedNodes.forEach((t=>{e.target.insertBefore(t,e.nextSibling)})),e.addedNodes.forEach((t=>{e.target.removeChild(t)}))):e.target.textContent=e.oldValue})),r()},clear:r}})(t,e),this.mutationObserver=new MutationObserver(this.manager.registerMutations),this.observe()}getSnapshotBeforeUpdate(){var e,t,n,r,o=null===(e=this.mutationObserver)||void 0===e?void 0:e.takeRecords();null!=o&&o.length&&(null===(r=this.manager)||void 0===r||r.registerMutations(o));return null===(t=this.mutationObserver)||void 0===t||t.disconnect(),null===(n=this.manager)||void 0===n||n.restoreDOM(),null}componentDidUpdate(){var e;null===(e=this.manager)||void 0===e||e.clear(),this.observe()}componentWillUnmount(){var e;null===(e=this.mutationObserver)||void 0===e||e.disconnect()}render(){return this.props.children}}vu.contextType=Xa;var gu=ka?vu:e=>{var{children:t}=e;return c.createElement(c.Fragment,null,t)};function mu(e,t){var{path:n,diff:r}=t;if(!Lr.hasPath(e,n))return!1;var o=zr.get(e,n);if(!uo.isText(o))return!1;if(r.start!==o.text.length||0===r.text.length)return o.text.slice(r.start,r.start+r.text.length)===r.text;var i=$r.next(n);if(!Lr.hasPath(e,i))return!1;var a=zr.get(e,i);return uo.isText(a)&&a.text.startsWith(r.text)}function yu(e,t){var{start:n,end:r,text:o}=t,i=e.slice(n,r),a=function(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++)if(e.charAt(r)!==t.charAt(r))return r;return n}(i,o),u=function(e,t,n){for(var r=Math.min(e.length,t.length,n),o=0;o<r;o++)if(e.charAt(e.length-o-1)!==t.charAt(t.length-o-1))return o;return r}(i,o,Math.min(i.length-a,o.length-a)),l={start:n+a,end:r-u,text:o.slice(a,o.length-u)};return l.start===l.end&&0===l.text.length?null:l}function bu(e,t,n){var r=Math.min(t.start,n.start),o=Math.max(0,Math.min(t.start+t.text.length,n.end)-n.start),i=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.reduce(((e,t)=>e.slice(0,t.start)+t.text+e.slice(t.end)),e)}(e,t,n),a=Math.max(n.start+n.text.length,t.start+t.text.length+(t.start+t.text.length>n.start?n.text.length:0)-o),u=i.slice(r,a);return yu(e,{start:r,end:Math.max(t.end,n.end-t.text.length+(t.end-t.start)),text:u})}function Cu(e){var{path:t,diff:n}=e;return{anchor:{path:t,offset:n.start},focus:{path:t,offset:n.end}}}function Du(e,t){var{path:n,offset:r}=t;if(!Lr.hasPath(e,n))return null;var o=zr.get(e,n);if(!uo.isText(o))return null;var i=Lr.above(e,{match:t=>Lr.isBlock(e,t),at:n});if(!i)return null;for(;r>o.text.length;){var a=Lr.next(e,{at:n,match:uo.isText});if(!a||!$r.isDescendant(a[1],i[1]))return null;r-=o.text.length,o=a[0],n=a[1]}return{path:n,offset:r}}function wu(e,t){var n=Du(e,t.anchor);if(!n)return null;if(Jr.isCollapsed(t))return{anchor:n,focus:n};var r=Du(e,t.focus);return r?{anchor:n,focus:r}:null}function xu(e,t,n){var r=aa.get(e),o=null==r?void 0:r.find((e=>{var{path:n}=e;return $r.equals(n,t.path)}));if(!o||t.offset<=o.diff.start)return Kr.transform(t,n,{affinity:"backward"});var{diff:i}=o;if(t.offset<=i.start+i.text.length){var a={path:t.path,offset:i.start},u=Kr.transform(a,n,{affinity:"backward"});return u?{path:u.path,offset:u.offset+t.offset-i.start}:null}var l={path:t.path,offset:t.offset-i.text.length+i.end-i.start},s=Kr.transform(l,n,{affinity:"backward"});return s?"split_node"===n.type&&$r.equals(n.path,t.path)&&l.offset<n.position&&i.start<n.position?s:{path:s.path,offset:s.offset+i.text.length-i.end+i.start}:null}function Eu(e,t,n){var r=xu(e,t.anchor,n);if(!r)return null;if(Jr.isCollapsed(t))return{anchor:r,focus:r};var o=xu(e,t.focus,n);return o?{anchor:r,focus:o}:null}function Bu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ku(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bu(Object(n),!0).forEach((function(t){Ri(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Au(e){var{editor:t,scheduleOnDOMSelectionChange:n,onDOMSelectionChange:r}=e,o=!1,i=null,a=null,u=null,l=0,s=!1,c=()=>{var e=la.get(t);if(la.delete(t),e){var{selection:n}=t,r=wu(t,e);!r||n&&Jr.equals(r,n)||ko.select(t,r)}},d=()=>{var e;if(a&&(clearTimeout(a),a=null),u&&(clearTimeout(u),u=null),g()||v()){o||(o=!0,setTimeout((()=>o=!1))),v()&&(o="action");var i=t.selection&&Lr.rangeRef(t,t.selection,{affinity:"forward"});ia.set(t,t.marks),ua.get(t),aa.get(t);for(var l,d=!(null===(e=aa.get(t))||void 0===e||!e.length);l=null===(f=aa.get(t))||void 0===f?void 0:f[0];){var f,p,h=oa.get(t);void 0!==h&&(oa.delete(t),t.marks=h),h&&!1===s&&(s=null);var m=Cu(l);t.selection&&Jr.equals(t.selection,m)||ko.select(t,m),l.diff.text?Lr.insertText(t,l.diff.text):Lr.deleteFragment(t),aa.set(t,null===(p=aa.get(t))||void 0===p?void 0:p.filter((e=>{var{id:t}=e;return t!==l.id}))),mu(t,l)||(d=!1,ua.delete(t),ia.delete(t),o="action",la.delete(t),n.cancel(),r.cancel(),null==i||i.unref())}var y=null==i?void 0:i.unref();if(!y||la.get(t)||t.selection&&Jr.equals(y,t.selection)||ko.select(t,y),v())(()=>{var e=ua.get(t);if(ua.delete(t),e){if(e.at){var n=Kr.isPoint(e.at)?Du(t,e.at):wu(t,e.at);if(!n)return;var r=Lr.range(t,n);t.selection&&Jr.equals(t.selection,r)||ko.select(t,n)}e.run()}})();else{d&&n(),n.flush(),r.flush(),c();var b=ia.get(t);ia.delete(t),void 0!==b&&(t.marks=b,t.onChange())}}else c()},f=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=Xi.get(t);n&&(g()||e?n.style.display="none":n.style.removeProperty("display"))},p=(e,n)=>{var r,o=null!==(r=aa.get(t))&&void 0!==r?r:[];aa.set(t,o);var i=zr.leaf(t,e),a=o.findIndex((t=>$r.equals(t.path,e)));if(a<0)return yu(i.text,n)&&o.push({path:e,diff:n,id:l++}),void f();var u=bu(i.text,o[a].diff,n);if(!u)return o.splice(a,1),void f();o[a]=ku(ku({},o[a]),{},{diff:u})},h=function(e){var{at:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s=!1,la.delete(t),n.cancel(),r.cancel(),v()&&d(),ua.set(t,{at:o,run:e}),u=setTimeout(d)},v=()=>!!ua.get(t),g=()=>{var e;return!(null===(e=aa.get(t))||void 0===e||!e.length)},m=()=>{v()||(u=setTimeout(d))};return{flush:d,scheduleFlush:m,hasPendingDiffs:g,hasPendingAction:v,hasPendingChanges:()=>v()||g(),isFlushing:()=>o,handleUserSelect:e=>{la.set(t,e),a&&(clearTimeout(a),a=null);var{selection:n}=t;if(e){var r=!n||!$r.equals(n.anchor.path,e.anchor.path),o=!n||!$r.equals(n.anchor.path.slice(0,-1),e.anchor.path.slice(0,-1));(r&&s||o)&&(s=!1),!r&&g()||(a=setTimeout(d,200))}},handleCompositionEnd:e=>{i&&clearTimeout(i),i=setTimeout((()=>{ea.set(t,!1),d()}),25)},handleCompositionStart:e=>{ea.set(t,!0),i&&(clearTimeout(i),i=null)},handleDOMBeforeInput:e=>{var n;a&&(clearTimeout(a),a=null);var{inputType:r}=e,o=null,i=e.dataTransfer||e.data||void 0;!1!==s&&"insertText"!==r&&"insertCompositionText"!==r&&(s=!1);var[u]=e.getTargetRanges();u&&(o=Na.toSlateRange(t,u,{exactMatch:!1,suppressThrow:!0}));var l=Na.getWindow(t).getSelection();if(!o&&l&&(u=l,o=Na.toSlateRange(t,l,{exactMatch:!1,suppressThrow:!0})),o=null!==(n=o)&&void 0!==n?n:t.selection){if(Jr.isExpanded(o)&&r.startsWith("delete")){var[c,d]=Jr.edges(o);if(zr.leaf(t,c.path).text.length===c.offset&&0===d.offset){var f=Lr.next(t,{at:c.path,match:uo.isText});f&&$r.equals(f[1],d.path)&&(o={anchor:d,focus:d})}}if(Jr.isExpanded(o)&&r.startsWith("delete")){if($r.equals(o.anchor.path,o.focus.path)){var[v,g]=Jr.edges(o);return p(o.anchor.path,{text:"",end:g.offset,start:v.offset})}var y=r.endsWith("Backward")?"backward":"forward";return h((()=>Lr.deleteFragment(t,{direction:y})),{at:o})}switch(r){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":return h((()=>Lr.deleteFragment(t)),{at:o});case"deleteContent":case"deleteContentForward":var{anchor:b}=o;if(Jr.isCollapsed(o)){var C=zr.leaf(t,b.path);if(b.offset<C.text.length)return p(b.path,{text:"",start:b.offset,end:b.offset+1})}return h((()=>Lr.deleteForward(t)),{at:o});case"deleteContentBackward":var D,{anchor:w}=o;return(ga(u)?u.isCollapsed:!(null===(D=u)||void 0===D||!D.collapsed))&&Jr.isCollapsed(o)&&w.offset>0?p(w.path,{text:"",start:w.offset-1,end:w.offset}):h((()=>Lr.deleteBackward(t)),{at:o});case"deleteEntireSoftLine":return h((()=>{Lr.deleteBackward(t,{unit:"line"}),Lr.deleteForward(t,{unit:"line"})}),{at:o});case"deleteHardLineBackward":return h((()=>Lr.deleteBackward(t,{unit:"block"})),{at:o});case"deleteSoftLineBackward":return h((()=>Lr.deleteBackward(t,{unit:"line"})),{at:o});case"deleteHardLineForward":return h((()=>Lr.deleteForward(t,{unit:"block"})),{at:o});case"deleteSoftLineForward":return h((()=>Lr.deleteForward(t,{unit:"line"})),{at:o});case"deleteWordBackward":return h((()=>Lr.deleteBackward(t,{unit:"word"})),{at:o});case"deleteWordForward":return h((()=>Lr.deleteForward(t,{unit:"word"})),{at:o});case"insertLineBreak":return h((()=>Lr.insertSoftBreak(t)),{at:o});case"insertParagraph":return h((()=>Lr.insertBreak(t)),{at:o});case"insertCompositionText":case"deleteCompositionText":case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if("DataTransfer"===(null==i?void 0:i.constructor.name))return h((()=>Na.insertData(t,i)),{at:o});if("string"==typeof i&&i.includes("\n"))return h((()=>Lr.insertSoftBreak(t)),{at:Jr.end(o)});var x=null!=i?i:"";if(oa.get(t)&&(x=x.replace("\ufeff","")),$r.equals(o.anchor.path,o.focus.path)){var[E,B]=Jr.edges(o),k={start:E.offset,end:B.offset,text:x};if(x&&s&&"insertCompositionText"===r){var A=s.start+s.text.search(/\S|$/);k.start+k.text.search(/\S|$/)===A+1&&k.end===s.start+s.text.length?(k.start-=1,s=null,m()):s=!1}else s="insertText"===r&&(null===s?k:!(!s||!Jr.isCollapsed(o)||s.end+s.text.length!==E.offset)&&ku(ku({},s),{},{text:s.text+x}));return void p(E.path,k)}return h((()=>Lr.insertText(t,x)),{at:o})}}},handleKeyDown:e=>{g()||(f(!0),setTimeout(f))},handleDomMutations:e=>{var n;g()||v()||e.some((n=>wa(t,n,e)))&&(null===(n=sa.get(t))||void 0===n||n())},handleInput:()=>{!v()&&g()||d()}}}var Fu=["node"];function Ou(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Su={subtree:!0,childList:!0,characterData:!0};function Pu(e){var{node:t}=e,n=zi(e,Fu);if(!ka)return null;var r,o=Ka(),i=(r=g(!1),f((()=>(r.current=!0,()=>{r.current=!1})),[]),r.current),[a]=d((()=>Au(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ou(Object(n),!0).forEach((function(t){Ri(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ou(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({editor:o},n))));return function(e,t,n){var[r]=d((()=>new MutationObserver(t)));Ra((()=>{r.takeRecords()})),f((()=>{if(!e.current)throw new Error("Failed to attach MutationObserver, `node` is undefined");return r.observe(e.current,n),()=>r.disconnect()}),[])}(t,a.handleDomMutations,Su),ra.set(o,a.scheduleFlush),i&&a.flush(),a}var Tu=["autoFocus","decorate","onDOMBeforeInput","placeholder","readOnly","renderElement","renderLeaf","renderPlaceholder","scrollSelectionIntoView","style","as"],Mu=["text"];function _u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Lu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_u(Object(n),!0).forEach((function(t){Ri(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ju=e=>c.createElement(c.Fragment,null,iu(e)),Iu=e=>{var{autoFocus:t,decorate:n=Ru,onDOMBeforeInput:r,placeholder:o,readOnly:i=!1,renderElement:a,renderLeaf:u,renderPlaceholder:l=(e=>c.createElement(Nu,Object.assign({},e))),scrollSelectionIntoView:s=zu,style:p={},as:v="div"}=e,C=zi(e,Tu),D=(()=>{var e=h(lu);if(!e)throw new Error("The `useSlate` hook must be used inside the <Slate> component's context.");var{editor:t}=e;return t})(),[w,x]=d(!1),E=g(null),B=g([]),{onUserInput:k,receivedUserInput:A}=function(){var e=Ka(),t=g(!1),n=g(0),r=b((()=>{if(!t.current){t.current=!0;var r=Na.getWindow(e);r.cancelAnimationFrame(n.current),n.current=r.requestAnimationFrame((()=>{t.current=!1}))}}),[]);return f((()=>()=>cancelAnimationFrame(n.current)),[]),{receivedUserInput:t,onUserInput:r}}(),[,F]=m((e=>e+1),0);sa.set(D,F),Ji.set(D,i);var O=y((()=>({isDraggingInternally:!1,isUpdatingSelection:!1,latestElement:null,hasMarkPlaceholder:!1})),[]);f((()=>{E.current&&t&&E.current.focus()}),[t]);var S=b(bi((()=>{if((ka||!Na.isComposing(D))&&(!O.isUpdatingSelection||null!=T&&T.isFlushing())&&!O.isDraggingInternally){var e=Na.findDocumentOrShadowRoot(D),{activeElement:t}=e,n=Na.toDOMNode(D,D),r=e.getSelection();if(t===n?(O.latestElement=t,Qi.set(D,!0)):Qi.delete(D),!r)return ko.deselect(D);var{anchorNode:o,focusNode:a}=r,u=Wu(D,o)||Hu(D,o),l=Wu(D,a)||Hu(D,a);if(u&&l){var s=Na.toSlateRange(D,r,{exactMatch:!1,suppressThrow:!0});s&&(Na.isComposing(D)||null!=T&&T.hasPendingChanges()||null!=T&&T.isFlushing()?null==T||T.handleUserSelect(s):ko.select(D,s))}!i||u&&l||ko.deselect(D)}}),100),[i]),P=y((()=>gi(S,0)),[S]),T=Pu({node:E,onDOMSelectionChange:S,scheduleOnDOMSelectionChange:P});Ra((()=>{var e;E.current&&(e=pa(E.current))?(Ui.set(D,e),qi.set(D,E.current),Yi.set(D,E.current),Ki.set(E.current,D)):Yi.delete(D);var{selection:t}=D,n=Na.findDocumentOrShadowRoot(D).getSelection();if(n&&Na.isFocused(D)&&(null==T||!T.hasPendingAction())){var r=e=>{var r="None"!==n.type;if(t||r){var o=qi.get(D),i=!1;if(o.contains(n.anchorNode)&&o.contains(n.focusNode)&&(i=!0),r&&i&&t&&!e){var a=Na.toSlateRange(D,n,{exactMatch:!0,suppressThrow:!0});if(a&&Jr.equals(a,t)){var u;if(!O.hasMarkPlaceholder)return;var{anchorNode:l}=n;if(null!=l&&null!==(u=l.parentElement)&&void 0!==u&&u.hasAttribute("data-slate-mark-placeholder"))return}}if(!t||Na.hasRange(D,t)){O.isUpdatingSelection=!0;var c=t&&Na.toDOMRange(D,t);return c?(Jr.isBackward(t)?n.setBaseAndExtent(c.endContainer,c.endOffset,c.startContainer,c.startOffset):n.setBaseAndExtent(c.startContainer,c.startOffset,c.endContainer,c.endOffset),s(D,c)):n.removeAllRanges(),c}D.selection=Na.toSlateRange(D,n,{exactMatch:!1,suppressThrow:!0})}},o=r(),i="action"===(null==T?void 0:T.isFlushing());if(ka&&i){var a=null,u=requestAnimationFrame((()=>{if(i){var e=e=>{try{Na.toDOMNode(D,D).focus(),r(e)}catch(e){}};e(),a=setTimeout((()=>{e(!0),O.isUpdatingSelection=!1}))}}));return()=>{cancelAnimationFrame(u),a&&clearTimeout(a)}}setTimeout((()=>{o&&Aa&&Na.toDOMNode(D,D).focus();O.isUpdatingSelection=!1}))}}));var M=b((e=>{if(k(),!i&&Wu(D,e.target)&&!Uu(e,r)){var t;if(T)return T.handleDOMBeforeInput(e);P.flush(),S.flush();var{selection:n}=D,{inputType:o}=e,a=e.dataTransfer||e.data||void 0,u="insertCompositionText"===o||"deleteCompositionText"===o;if(u&&Na.isComposing(D))return;var l=!1;if("insertText"===o&&n&&Jr.isCollapsed(n)&&e.data&&1===e.data.length&&/[a-z ]/i.test(e.data)&&0!==n.anchor.offset){var s,c;l=!0,D.marks&&(l=!1);var{anchor:d}=n,[f,p]=Na.toDOMPoint(D,d),h=null===(s=f.parentElement)||void 0===s?void 0:s.closest("a"),v=Na.getWindow(D);if(l&&h&&Na.hasDOMNode(D,h)){var g,m=null==v?void 0:v.document.createTreeWalker(h,NodeFilter.SHOW_TEXT).lastChild();m===f&&(null===(g=m.textContent)||void 0===g?void 0:g.length)===p&&(l=!1)}if(l&&f.parentElement&&"pre"===(null==v||null===(c=v.getComputedStyle(f.parentElement))||void 0===c?void 0:c.whiteSpace)){var y=Lr.above(D,{at:d.path,match:e=>Lr.isBlock(D,e)});y&&zr.string(y[0]).includes("\t")&&(l=!1)}}if(!o.startsWith("delete")||o.startsWith("deleteBy")){var[b]=e.getTargetRanges();if(b){var C=Na.toSlateRange(D,b,{exactMatch:!1,suppressThrow:!1});if(!n||!Jr.equals(n,C)){l=!1;var w=!u&&D.selection&&Lr.rangeRef(D,D.selection);ko.select(D,C),w&&ta.set(D,w)}}}if(u)return;if(l||e.preventDefault(),n&&Jr.isExpanded(n)&&o.startsWith("delete")){var E=o.endsWith("Backward")?"backward":"forward";return void Lr.deleteFragment(D,{direction:E})}switch(o){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":Lr.deleteFragment(D);break;case"deleteContent":case"deleteContentForward":Lr.deleteForward(D);break;case"deleteContentBackward":Lr.deleteBackward(D);break;case"deleteEntireSoftLine":Lr.deleteBackward(D,{unit:"line"}),Lr.deleteForward(D,{unit:"line"});break;case"deleteHardLineBackward":Lr.deleteBackward(D,{unit:"block"});break;case"deleteSoftLineBackward":Lr.deleteBackward(D,{unit:"line"});break;case"deleteHardLineForward":Lr.deleteForward(D,{unit:"block"});break;case"deleteSoftLineForward":Lr.deleteForward(D,{unit:"line"});break;case"deleteWordBackward":Lr.deleteBackward(D,{unit:"word"});break;case"deleteWordForward":Lr.deleteForward(D,{unit:"word"});break;case"insertLineBreak":Lr.insertSoftBreak(D);break;case"insertParagraph":Lr.insertBreak(D);break;case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":"insertFromComposition"===o&&Na.isComposing(D)&&(x(!1),ea.set(D,!1)),"DataTransfer"===(null==a?void 0:a.constructor.name)?Na.insertData(D,a):"string"==typeof a&&(l?B.current.push((()=>Lr.insertText(D,a))):Lr.insertText(D,a))}var A=null===(t=ta.get(D))||void 0===t?void 0:t.unref();ta.delete(D),!A||D.selection&&Jr.equals(D.selection,A)||ko.select(D,A)}}),[i,r]);Ra((()=>(E.current&&Ia&&E.current.addEventListener("beforeinput",M),()=>{E.current&&Ia&&E.current.removeEventListener("beforeinput",M)})),[M]),Ra((()=>{var e=Na.getWindow(D);return e.document.addEventListener("selectionchange",P),()=>{e.document.removeEventListener("selectionchange",P)}}),[P]);var _=n([D,[]]);if(o&&1===D.children.length&&1===Array.from(zr.texts(D)).length&&""===zr.string(D)&&!w){var L=Lr.start(D,[]);_.push({[ca]:!0,placeholder:o,anchor:L,focus:L})}var{marks:j}=D;if(O.hasMarkPlaceholder=!1,D.selection&&Jr.isCollapsed(D.selection)&&j){var{anchor:I}=D.selection,N=zr.leaf(D,I.path),R=zi(N,Mu);if(!uo.equals(N,j,{loose:!0})){O.hasMarkPlaceholder=!0;var z=Object.fromEntries(Object.keys(R).map((e=>[e,null])));_.push(Lu(Lu(Lu({[da]:!0},z),j),{},{anchor:I,focus:I}))}}return f((()=>{setTimeout((()=>{var{selection:e}=D;if(e){var{anchor:t}=e,n=zr.leaf(D,t.path);if(j&&!uo.equals(n,j,{loose:!0}))return void oa.set(D,j)}oa.delete(D)}))})),c.createElement(au.Provider,{value:i},c.createElement(ru.Provider,{value:n},c.createElement(gu,{node:E,receivedUserInput:A},c.createElement(v,Object.assign({role:i?void 0:"textbox","aria-multiline":!i||void 0},C,{spellCheck:!(!Ia&&ja)&&C.spellCheck,autoCorrect:Ia||!ja?C.autoCorrect:"false",autoCapitalize:Ia||!ja?C.autoCapitalize:"false","data-slate-editor":!0,"data-slate-node":"value",contentEditable:!i,zindex:-1,suppressContentEditableWarning:!0,ref:E,style:Lu({position:"relative",outline:"none",whiteSpace:"pre-wrap",wordWrap:"break-word"},p),onBeforeInput:b((e=>{if(!Ia&&!i&&!$u(e,C.onBeforeInput)&&Wu(D,e.target)&&(e.preventDefault(),!Na.isComposing(D))){var t=e.data;Lr.insertText(D,t)}}),[i]),onInput:b((e=>{if(T)T.handleInput();else{for(var t of B.current)t();B.current=[]}}),[]),onBlur:b((e=>{if(!i&&!O.isUpdatingSelection&&Wu(D,e.target)&&!$u(e,C.onBlur)){var t=Na.findDocumentOrShadowRoot(D);if(O.latestElement!==t.activeElement){var{relatedTarget:n}=e;if(!(n===Na.toDOMNode(D,D)||ha(n)&&n.hasAttribute("data-slate-spacer"))){if(null!=n&&va(n)&&Na.hasDOMNode(D,n)){var r=Na.toSlateNode(D,n);if(Or.isElement(r)&&!D.isVoid(r))return}if(Fa){var o=t.getSelection();null==o||o.removeAllRanges()}Qi.delete(D)}}}}),[i,C.onBlur]),onClick:b((e=>{if(Vu(D,e.target)&&!$u(e,C.onClick)&&va(e.target)){var t=Na.toSlateNode(D,e.target),n=Na.findPath(D,t);if(!Lr.hasPath(D,n)||zr.get(D,n)!==t)return;if(3===e.detail&&n.length>=1){var r=n;if(!Lr.isBlock(D,t)){var o,a=Lr.above(D,{match:e=>Lr.isBlock(D,e),at:n});r=null!==(o=null==a?void 0:a[1])&&void 0!==o?o:n.slice(0,1)}var u=Lr.range(D,r);return void ko.select(D,u)}if(i)return;var l=Lr.start(D,n),s=Lr.end(D,n),c=Lr.void(D,{at:l}),d=Lr.void(D,{at:s});if(c&&d&&$r.equals(c[1],d[1])){var f=Lr.range(D,l);ko.select(D,f)}}}),[i,C.onClick]),onCompositionEnd:b((e=>{if(Wu(D,e.target)){if(Na.isComposing(D)&&(x(!1),ea.set(D,!1)),null==T||T.handleCompositionEnd(e),$u(e,C.onCompositionEnd)||ka)return;if(!Fa&&!Ta&&!Ea&&!Ma&&!La&&!_a&&e.data){var t=oa.get(D);oa.delete(D),void 0!==t&&(ia.set(D,D.marks),D.marks=t),Lr.insertText(D,e.data);var n=ia.get(D);ia.delete(D),void 0!==n&&(D.marks=n)}}}),[C.onCompositionEnd]),onCompositionUpdate:b((e=>{Wu(D,e.target)&&!$u(e,C.onCompositionUpdate)&&(Na.isComposing(D)||(x(!0),ea.set(D,!0)))}),[C.onCompositionUpdate]),onCompositionStart:b((e=>{if(Wu(D,e.target)){if(null==T||T.handleCompositionStart(e),$u(e,C.onCompositionStart)||ka)return;x(!0);var{selection:t}=D;if(t){if(Jr.isExpanded(t))return void Lr.deleteFragment(D);var n=Lr.above(D,{match:e=>Lr.isInline(D,e),mode:"highest"});if(n){var[,r]=n;if(Lr.isEnd(D,t.anchor,r)){var o=Lr.after(D,r);ko.setSelection(D,{anchor:o,focus:o})}}}}}),[C.onCompositionStart]),onCopy:b((e=>{Wu(D,e.target)&&!$u(e,C.onCopy)&&(e.preventDefault(),Na.setFragmentData(D,e.clipboardData,"copy"))}),[C.onCopy]),onCut:b((e=>{if(!i&&Wu(D,e.target)&&!$u(e,C.onCut)){e.preventDefault(),Na.setFragmentData(D,e.clipboardData,"cut");var{selection:t}=D;if(t)if(Jr.isExpanded(t))Lr.deleteFragment(D);else{var n=zr.parent(D,t.anchor.path);Lr.isVoid(D,n)&&ko.delete(D)}}}),[i,C.onCut]),onDragOver:b((e=>{if(Vu(D,e.target)&&!$u(e,C.onDragOver)){var t=Na.toSlateNode(D,e.target);Lr.isVoid(D,t)&&e.preventDefault()}}),[C.onDragOver]),onDragStart:b((e=>{if(!i&&Vu(D,e.target)&&!$u(e,C.onDragStart)){var t=Na.toSlateNode(D,e.target),n=Na.findPath(D,t);if(Lr.isVoid(D,t)||Lr.void(D,{at:n,voids:!0})){var r=Lr.range(D,n);ko.select(D,r)}O.isDraggingInternally=!0,Na.setFragmentData(D,e.dataTransfer,"drag")}}),[i,C.onDragStart]),onDrop:b((e=>{if(!i&&Vu(D,e.target)&&!$u(e,C.onDrop)){e.preventDefault();var t=D.selection,n=Na.findEventRange(D,e),r=e.dataTransfer;ko.select(D,n),O.isDraggingInternally&&(!t||Jr.equals(t,n)||Lr.void(D,{at:n,voids:!0})||ko.delete(D,{at:t})),Na.insertData(D,r),Na.isFocused(D)||Na.focus(D)}O.isDraggingInternally=!1}),[i,C.onDrop]),onDragEnd:b((e=>{!i&&O.isDraggingInternally&&C.onDragEnd&&Vu(D,e.target)&&C.onDragEnd(e),O.isDraggingInternally=!1}),[i,C.onDragEnd]),onFocus:b((e=>{if(!i&&!O.isUpdatingSelection&&Wu(D,e.target)&&!$u(e,C.onFocus)){var t=Na.toDOMNode(D,D),n=Na.findDocumentOrShadowRoot(D);if(O.latestElement=n.activeElement,Aa&&e.target!==t)return void t.focus();Qi.set(D,!0)}}),[i,C.onFocus]),onKeyDown:b((e=>{if(!i&&Wu(D,e.target)){null==T||T.handleKeyDown(e);var{nativeEvent:t}=e;if(Na.isComposing(D)&&!1===t.isComposing&&(ea.set(D,!1),x(!1)),$u(e,C.onKeyDown)||Na.isComposing(D))return;var{selection:n}=D,r=D.children[null!==n?n.focus.path[0]:0],o="rtl"===Ao(zr.string(r));if(pu.isRedo(t)){e.preventDefault();var a=D;return void("function"==typeof a.redo&&a.redo())}if(pu.isUndo(t)){e.preventDefault();var u=D;return void("function"==typeof u.undo&&u.undo())}if(pu.isMoveLineBackward(t))return e.preventDefault(),void ko.move(D,{unit:"line",reverse:!0});if(pu.isMoveLineForward(t))return e.preventDefault(),void ko.move(D,{unit:"line"});if(pu.isExtendLineBackward(t))return e.preventDefault(),void ko.move(D,{unit:"line",edge:"focus",reverse:!0});if(pu.isExtendLineForward(t))return e.preventDefault(),void ko.move(D,{unit:"line",edge:"focus"});if(pu.isMoveBackward(t))return e.preventDefault(),void(n&&Jr.isCollapsed(n)?ko.move(D,{reverse:!o}):ko.collapse(D,{edge:"start"}));if(pu.isMoveForward(t))return e.preventDefault(),void(n&&Jr.isCollapsed(n)?ko.move(D,{reverse:o}):ko.collapse(D,{edge:"end"}));if(pu.isMoveWordBackward(t))return e.preventDefault(),n&&Jr.isExpanded(n)&&ko.collapse(D,{edge:"focus"}),void ko.move(D,{unit:"word",reverse:!o});if(pu.isMoveWordForward(t))return e.preventDefault(),n&&Jr.isExpanded(n)&&ko.collapse(D,{edge:"focus"}),void ko.move(D,{unit:"word",reverse:o});if(Ia){if((Sa||Fa)&&n&&(pu.isDeleteBackward(t)||pu.isDeleteForward(t))&&Jr.isCollapsed(n)){var l=zr.parent(D,n.anchor.path);if(Or.isElement(l)&&Lr.isVoid(D,l)&&(Lr.isInline(D,l)||Lr.isBlock(D,l)))return e.preventDefault(),void Lr.deleteBackward(D,{unit:"block"})}}else{if(pu.isBold(t)||pu.isItalic(t)||pu.isTransposeCharacter(t))return void e.preventDefault();if(pu.isSoftBreak(t))return e.preventDefault(),void Lr.insertSoftBreak(D);if(pu.isSplitBlock(t))return e.preventDefault(),void Lr.insertBreak(D);if(pu.isDeleteBackward(t))return e.preventDefault(),void(n&&Jr.isExpanded(n)?Lr.deleteFragment(D,{direction:"backward"}):Lr.deleteBackward(D));if(pu.isDeleteForward(t))return e.preventDefault(),void(n&&Jr.isExpanded(n)?Lr.deleteFragment(D,{direction:"forward"}):Lr.deleteForward(D));if(pu.isDeleteLineBackward(t))return e.preventDefault(),void(n&&Jr.isExpanded(n)?Lr.deleteFragment(D,{direction:"backward"}):Lr.deleteBackward(D,{unit:"line"}));if(pu.isDeleteLineForward(t))return e.preventDefault(),void(n&&Jr.isExpanded(n)?Lr.deleteFragment(D,{direction:"forward"}):Lr.deleteForward(D,{unit:"line"}));if(pu.isDeleteWordBackward(t))return e.preventDefault(),void(n&&Jr.isExpanded(n)?Lr.deleteFragment(D,{direction:"backward"}):Lr.deleteBackward(D,{unit:"word"}));if(pu.isDeleteWordForward(t))return e.preventDefault(),void(n&&Jr.isExpanded(n)?Lr.deleteFragment(D,{direction:"forward"}):Lr.deleteForward(D,{unit:"word"}))}}}),[i,C.onKeyDown]),onPaste:b((e=>{i||!Wu(D,e.target)||$u(e,C.onPaste)||Ia&&!(e=>e.clipboardData&&""!==e.clipboardData.getData("text/plain")&&1===e.clipboardData.types.length)(e.nativeEvent)||(e.preventDefault(),Na.insertData(D,e.clipboardData))}),[i,C.onPaste])}),c.createElement(ju,{decorations:_,node:D,renderElement:a,renderPlaceholder:l,renderLeaf:u,selection:D.selection})))))},Nu=e=>{var{attributes:t,children:n}=e;return c.createElement("span",Object.assign({},t),n,ka&&c.createElement("br",null))},Ru=()=>[],zu=(e,t)=>{if(!e.selection||e.selection&&Jr.isCollapsed(e.selection)){var n=t.startContainer.parentElement;n.getBoundingClientRect=t.getBoundingClientRect.bind(t),ki(n,{scrollMode:"if-needed"}),delete n.getBoundingClientRect}},Vu=(e,t)=>va(t)&&Na.hasDOMNode(e,t),Wu=(e,t)=>va(t)&&Na.hasDOMNode(e,t,{editable:!0}),Hu=(e,t)=>{if(Ji.get(e))return!1;var n=Vu(e,t)&&Na.toSlateNode(e,t);return Lr.isVoid(e,n)},$u=(e,t)=>{if(!t)return!1;var n=t(e);return null!=n?n:e.isDefaultPrevented()||e.isPropagationStopped()},Uu=(e,t)=>{if(!t)return!1;var n=t(e);return null!=n?n:e.defaultPrevented},qu=p(!1),Xu=p({});var Ku=["editor","children","onChange","value"],Yu=e=>{var{editor:t,children:n,onChange:r,value:o}=e,i=zi(e,Ku),a=g(!1),[u,l]=c.useState((()=>{if(!zr.isNodeList(o))throw new Error("[Slate] value is invalid! Expected a list of elements"+"but got: ".concat(to.stringify(o)));if(!Lr.isEditor(t))throw new Error("[Slate] editor is invalid! you passed:"+"".concat(to.stringify(t)));return t.children=o,Object.assign(t,i),{v:0,editor:t}})),{selectorContext:s,onChange:p}=function(e){var t=g([]).current,n=g({editor:e}).current,r=b((e=>{n.editor=e,t.forEach((t=>t(e)))}),[]);return{selectorContext:y((()=>({getSlate:()=>n.editor,addEventListener:e=>(t.push(e),()=>{t.splice(t.indexOf(e),1)})})),[t,n]),onChange:r}}(t),h=b((()=>{r&&r(t.children),l((e=>({v:e.v+1,editor:t}))),p(t)}),[r]);na.set(t,h),f((()=>()=>{na.set(t,(()=>{})),a.current=!0}),[]);var[v,m]=d(Na.isFocused(t));return f((()=>{m(Na.isFocused(t))})),Ra((()=>{var e=()=>m(Na.isFocused(t));return xa?(document.addEventListener("focusin",e),document.addEventListener("focusout",e),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",e)}):(document.addEventListener("focus",e,!0),document.addEventListener("blur",e,!0),()=>{document.removeEventListener("focus",e,!0),document.removeEventListener("blur",e,!0)})}),[]),c.createElement(Xu.Provider,{value:s},c.createElement(lu.Provider,{value:u},c.createElement(Xa.Provider,{value:u.editor},c.createElement(qu.Provider,{value:v},n))))},Gu=(e,t)=>{var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},Zu=(e,t,n)=>{var r=Na.toDOMRange(e,t).getBoundingClientRect(),o=Na.toDOMRange(e,n).getBoundingClientRect();return Gu(r,o)&&Gu(o,r)};function Ju(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ju(Object(n),!0).forEach((function(t){Ri(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ju(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var el,tl,nl,rl,ol,il,al,ul,ll,sl,cl,dl,fl,pl,hl,vl,gl,ml,yl,bl,Cl,Dl,wl,xl,El,Bl,kl,Al,Fl,Ol,Sl,Pl,Tl,Ml,_l,Ll,jl,Il,Nl,Rl,zl,Vl,Wl,Hl,$l,Ul=e=>{var t=e,{apply:n,onChange:r,deleteBackward:o,addMark:i,removeMark:a}=t;return Zi.set(t,new WeakMap),t.addMark=(e,n)=>{var r,o;null===(r=ra.get(t))||void 0===r||r(),!oa.get(t)&&null!==(o=aa.get(t))&&void 0!==o&&o.length&&oa.set(t,null),ia.delete(t),i(e,n)},t.removeMark=e=>{var n;!oa.get(t)&&null!==(n=aa.get(t))&&void 0!==n&&n.length&&oa.set(t,null),ia.delete(t),a(e)},t.deleteBackward=e=>{if("line"!==e)return o(e);if(t.selection&&Jr.isCollapsed(t.selection)){var n=Lr.above(t,{match:e=>Lr.isBlock(t,e),at:t.selection});if(n){var[,r]=n,i=Lr.range(t,r,t.selection.anchor),a=((e,t)=>{var n=Lr.range(e,Jr.end(t)),r=Array.from(Lr.positions(e,{at:t})),o=0,i=r.length,a=Math.floor(i/2);if(Zu(e,Lr.range(e,r[o]),n))return Lr.range(e,r[o],n);if(r.length<2)return Lr.range(e,r[r.length-1],n);for(;a!==r.length&&a!==o;)Zu(e,Lr.range(e,r[a]),n)?i=a:o=a,a=Math.floor((o+i)/2);return Lr.range(e,r[i],n)})(t,i);Jr.isCollapsed(a)||ko.delete(t,{at:a})}}},t.apply=e=>{var r=[],o=aa.get(t);if(null!=o&&o.length){var i=o.map((t=>function(e,t){var{path:n,diff:r,id:o}=e;switch(t.type){case"insert_text":return!$r.equals(t.path,n)||t.offset>=r.end?e:t.offset<=r.start?{diff:{start:t.text.length+r.start,end:t.text.length+r.end,text:r.text},id:o,path:n}:{diff:{start:r.start,end:r.end+t.text.length,text:r.text},id:o,path:n};case"remove_text":return!$r.equals(t.path,n)||t.offset>=r.end?e:t.offset+t.text.length<=r.start?{diff:{start:r.start-t.text.length,end:r.end-t.text.length,text:r.text},id:o,path:n}:{diff:{start:r.start,end:r.end-t.text.length,text:r.text},id:o,path:n};case"split_node":return!$r.equals(t.path,n)||t.position>=r.end?{diff:r,id:o,path:$r.transform(n,t,{affinity:"backward"})}:t.position>r.start?{diff:{start:r.start,end:Math.min(t.position,r.end),text:r.text},id:o,path:n}:{diff:{start:r.start-t.position,end:r.end-t.position,text:r.text},id:o,path:$r.transform(n,t,{affinity:"forward"})};case"merge_node":return $r.equals(t.path,n)?{diff:{start:r.start+t.position,end:r.end+t.position,text:r.text},id:o,path:$r.transform(n,t)}:{diff:r,id:o,path:$r.transform(n,t)}}var i=$r.transform(n,t);return i?{diff:r,path:i,id:o}:null}(t,e))).filter(Boolean);aa.set(t,i)}var a=la.get(t);a&&la.set(t,Eu(t,a,e));var u=ua.get(t);if(null!=u&&u.at){var l=Kr.isPoint(null==u?void 0:u.at)?xu(t,u.at,e):Eu(t,u.at,e);ua.set(t,l?Qu(Qu({},u),{},{at:l}):null)}switch(e.type){case"insert_text":case"remove_text":case"set_node":case"split_node":r.push(...ql(t,e.path));break;case"set_selection":var s;null===(s=ta.get(t))||void 0===s||s.unref(),ta.delete(t);break;case"insert_node":case"remove_node":r.push(...ql(t,$r.parent(e.path)));break;case"merge_node":var c=$r.previous(e.path);r.push(...ql(t,c));break;case"move_node":var d=$r.common($r.parent(e.path),$r.parent(e.newPath));r.push(...ql(t,d))}for(var[f,p]of(n(e),r)){var[h]=Lr.node(t,f);Gi.set(h,p)}},t.setFragmentData=e=>{var{selection:n}=t;if(n){var[r,o]=Jr.edges(n),i=Lr.void(t,{at:r.path}),a=Lr.void(t,{at:o.path});if(!Jr.isCollapsed(n)||i){var u=Na.toDOMRange(t,n),l=u.cloneContents(),s=l.childNodes[0];if(l.childNodes.forEach((e=>{e.textContent&&""!==e.textContent.trim()&&(s=e)})),a){var[c]=a,d=u.cloneRange(),f=Na.toDOMNode(t,c);d.setEndAfter(f),l=d.cloneContents()}if(i&&(s=l.querySelector("[data-slate-spacer]")),Array.from(l.querySelectorAll("[data-slate-zero-width]")).forEach((e=>{var t="n"===e.getAttribute("data-slate-zero-width");e.textContent=t?"\n":""})),ma(s)){var p=s.ownerDocument.createElement("span");p.style.whiteSpace="pre",p.appendChild(s),l.appendChild(p),s=p}var h=t.getFragment(),v=JSON.stringify(h),g=window.btoa(encodeURIComponent(v));s.setAttribute("data-slate-fragment",g),e.setData("application/x-slate-fragment",g);var m=l.ownerDocument.createElement("div");return m.appendChild(l),m.setAttribute("hidden","true"),l.ownerDocument.body.appendChild(m),e.setData("text/html",m.innerHTML),e.setData("text/plain",Ca(m)),l.ownerDocument.body.removeChild(m),e}}},t.insertData=e=>{t.insertFragmentData(e)||t.insertTextData(e)},t.insertFragmentData=e=>{var n=e.getData("application/x-slate-fragment")||(e=>{var t=e.getData("text/html"),[,n]=t.match(Da)||[];return n})(e);if(n){var r=decodeURIComponent(window.atob(n)),o=JSON.parse(r);return t.insertFragment(o),!0}return!1},t.insertTextData=e=>{var n=e.getData("text/plain");if(n){var r=n.split(/\r\n|\r|\n/),o=!1;for(var i of r)o&&ko.splitNodes(t,{always:!0}),t.insertText(i),o=!0;return!0}return!1},t.onChange=()=>{q.unstable_batchedUpdates((()=>{var e=na.get(t);e&&e(),r()}))},t},ql=(e,t)=>{var n=[];for(var[r,o]of Lr.levels(e,{at:t})){var i=Na.findKey(e,r);n.push([o,i])}return n},Xl=function(e){var t=e.element,n=e.children,r=e.attributes,o=e.onClick;switch(t.type){case"list-item":return a("li",te({},r,{children:n}));case"numbered-list":return a(Kl,te({type:"1"},r,{children:n}));case"bulleted-list":return a(Yl,te({},r,{children:n}));default:return a("p",te({},r,{onClick:o},{children:n}))}},Kl=e.ol(el||(el=ae(["\n list-style: decimal;\n list-style-position: inside;\n"],["\n list-style: decimal;\n list-style-position: inside;\n"]))),Yl=e.ul(tl||(tl=ae(["\n list-style: disc;\n list-style-position: inside;\n"],["\n list-style: disc;\n list-style-position: inside;\n"]))),Gl=function(e){var t,n,r,o,i,s,c,d=e.leaf,f=e.children,p=e.attributes,h=Qe(),v=h.showAnnotations,g=h.annotationsList,m=h.isMLRReview,y=tt().isPreview;if(d.tag){var b=g.tags.findIndex((function(e){var t,n=e.id;return(null===(t=d.tag)||void 0===t?void 0:t.id)===n}))+1;m&&v&&b&&(f=u(S,te({component:"span",display:"inline-flex",direction:"row",alignItems:"center",gap:.5,id:Ql},((t={})["data-".concat(ts)]=null===(r=d.tag)||void 0===r?void 0:r.id,t),{children:[a("span",te({style:{backgroundColor:"#FFF0D0B5"}},{children:f})),a(Qy,{index:g.tags.findIndex((function(e){var t,n,r=e.id,o=e.label;return(null===(t=d.tag)||void 0===t?void 0:t.id)===r||(null===(n=d.tag)||void 0===n?void 0:n.label)===o}))+1,type:"message"})]})))}if(d.bold&&(f=a("span",te({style:{fontWeight:"bold"}},{children:f}))),d.strikethrough&&(f=a("s",{children:f})),d.italic&&(f=a("span",te({style:{fontStyle:"italic"}},{children:f}))),d.underline&&(f=a("u",{children:f})),d.variable){var C=null===(s=null===(i=null===(o=null==f?void 0:f.props)||void 0===o?void 0:o.leaf)||void 0===i?void 0:i.variable)||void 0===s?void 0:s.isStateConfigPresent;f=a(Zl,{children:C?a("span",{children:null===(c=null==d?void 0:d.variable)||void 0===c?void 0:c.text}):u(l,{children:[a("span",te({style:{left:0},contentEditable:!1},{children:"["})),a("span",{children:f}),a("span",te({style:{right:0},contentEditable:!1},{children:"]"}))]})})}if(d.communicationLink){var D=d.communicationLink,w=D.type,x=D.url,E="internalLink"===w,B=E?Nt(x,y):x,k=g.links.findIndex((function(e){return x===e.url&&d.text===e.text}))+1;f=a(l,{children:m&&v&&k?u(S,te({component:"span",display:"inline-flex",alignItems:"center",gap:.2,marginBottom:.2,id:es},(n={},n["data-".concat(ns)]=x,n["data-".concat(rs)]=d.text,n),{children:[a("a",te({style:{color:ge.colors.blue}},p,{href:B,target:E?"_self":"_blank"},{children:f})),a(Qy,{index:k,type:"link"})]})):a("a",te({style:{color:ge.colors.blue}},p,{href:B,target:E?"_self":"_blank"},{children:f}))})}return a("span",te({},p,{children:f}))},Zl=e.span(nl||(nl=ae(["\n position: relative;\n white-space: nowrap;\n padding: 0;\n"],["\n position: relative;\n white-space: nowrap;\n padding: 0;\n"]))),Jl=[{type:"paragraph",children:[{text:""}]}],Ql="matrix-message",es="communication-link",ts="matrix-message-id",ns="communication-link-url",rs="communication-link-text",os=function(e){var t=e.value,n=e.font,r=void 0===n?"M":n,o=e.color,i=void 0===o?"gray2":o,u=e.textStyles,l=e.numberOfLines,s=e.extraTextProps,c=e.renderElementWrapperComponent,f=e.renderElementWrapperProps,p=e.htmlElementId,h=e.moleculeId,v=e.isTrigger,g=it({id:h,isTrigger:v}),m=d((function(){return Ul((()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,markableVoid:()=>!1,onChange:()=>{},apply:t=>{for(var n of Lr.pathRefs(e))Ur.transform(n,t);for(var r of Lr.pointRefs(e))Yr.transform(r,t);for(var o of Lr.rangeRefs(e))Qr.transform(o,t);var i,a,u=Un.get(e)||[],l=qn.get(e)||new Set,s=e=>{if(e){var t=e.join(",");a.has(t)||(a.add(t),i.push(e))}};if($r.operationCanTransformPath(t))for(var c of(i=[],a=new Set,u))s($r.transform(c,t));else i=u,a=l;var d=e.getDirtyPaths(t);for(var f of d)s(f);Un.set(e,i),qn.set(e,a),ko.transform(e,t),e.operations.push(t),Lr.normalize(e),"set_selection"===t.type&&(e.marks=null),Xn.get(e)||(Xn.set(e,!0),Promise.resolve().then((()=>{Xn.set(e,!1),e.onChange(),e.operations=[]})))},addMark:(t,n)=>{var{selection:r,markableVoid:o}=e;if(r){var i=(t,n)=>{if(!uo.isText(t))return!1;var[r,o]=Lr.parent(e,n);return!e.isVoid(r)||e.markableVoid(r)},a=Jr.isExpanded(r),u=!1;if(!a){var[l,s]=Lr.node(e,r);if(l&&i(l,s)){var[c]=Lr.parent(e,s);u=c&&e.markableVoid(c)}}if(a||u)ko.setNodes(e,{[t]:n},{match:i,split:!0,voids:!0});else{var d=Qn(Qn({},Lr.marks(e)||{}),{},{[t]:n});e.marks=d,Xn.get(e)||e.onChange()}}},deleteBackward:t=>{var{selection:n}=e;n&&Jr.isCollapsed(n)&&ko.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:n}=e;n&&Jr.isCollapsed(n)&&ko.delete(e,{unit:t})},deleteFragment:t=>{var{selection:n}=e;n&&Jr.isExpanded(n)&&ko.delete(e,{reverse:"backward"===t})},getFragment:()=>{var{selection:t}=e;return t?zr.fragment(e,t):[]},insertBreak:()=>{ko.splitNodes(e,{always:!0})},insertSoftBreak:()=>{ko.splitNodes(e,{always:!0})},insertFragment:t=>{ko.insertFragment(e,t)},insertNode:t=>{ko.insertNodes(e,t)},insertText:t=>{var{selection:n,marks:r}=e;if(n){if(r){var o=Qn({text:t},r);ko.insertNodes(e,o)}else ko.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[n,r]=t;if(!uo.isText(n))if(Or.isElement(n)&&0===n.children.length)ko.insertNodes(e,{text:""},{at:r.concat(0),voids:!0});else for(var o=!Lr.isEditor(n)&&Or.isElement(n)&&(e.isInline(n)||0===n.children.length||uo.isText(n.children[0])||e.isInline(n.children[0])),i=0,a=0;a<n.children.length;a++,i++){var u=zr.get(e,r);if(!uo.isText(u)){var l=n.children[a],s=u.children[i-1],c=a===n.children.length-1;(uo.isText(l)||Or.isElement(l)&&e.isInline(l))!==o?(ko.removeNodes(e,{at:r.concat(i),voids:!0}),i--):Or.isElement(l)?e.isInline(l)&&(null!=s&&uo.isText(s)?c&&(ko.insertNodes(e,{text:""},{at:r.concat(i+1),voids:!0}),i++):(ko.insertNodes(e,{text:""},{at:r.concat(i),voids:!0}),i++)):null!=s&&uo.isText(s)&&(uo.equals(l,s,{loose:!0})?(ko.mergeNodes(e,{at:r.concat(i),voids:!0}),i--):""===s.text?(ko.removeNodes(e,{at:r.concat(i-1),voids:!0}),i--):""===l.text&&(ko.removeNodes(e,{at:r.concat(i),voids:!0}),i--))}}},removeMark:t=>{var{selection:n}=e;if(n){var r=(t,n)=>{if(!uo.isText(t))return!1;var[r,o]=Lr.parent(e,n);return!e.isVoid(r)||e.markableVoid(r)},o=Jr.isExpanded(n),i=!1;if(!o){var[a,u]=Lr.node(e,n);if(a&&r(a,u)){var[l]=Lr.parent(e,u);i=l&&e.markableVoid(l)}}if(o||i)ko.unsetNodes(e,t,{match:r,split:!0,voids:!0});else{var s=Qn({},Lr.marks(e)||{});delete s[t],e.marks=s,Xn.get(e)||e.onChange()}}},getDirtyPaths:e=>{switch(e.type){case"insert_text":case"remove_text":case"set_node":var{path:t}=e;return $r.levels(t);case"insert_node":var{node:n,path:r}=e,o=$r.levels(r),i=uo.isText(n)?[]:Array.from(zr.nodes(n),(e=>{var[,t]=e;return r.concat(t)}));return[...o,...i];case"merge_node":var{path:a}=e;return[...$r.ancestors(a),$r.previous(a)];case"move_node":var{path:u,newPath:l}=e;if($r.equals(u,l))return[];var s=[],c=[];for(var d of $r.ancestors(u)){var f=$r.transform(d,e);s.push(f)}for(var p of $r.ancestors(l)){var h=$r.transform(p,e);c.push(h)}var v=c[c.length-1],g=l[l.length-1],m=v.concat(g);return[...s,...c,m];case"remove_node":var{path:y}=e;return[...$r.ancestors(y)];case"split_node":var{path:b}=e;return[...$r.levels(b),$r.next(b)];default:return[]}}};return e})())}))[0],y=rt().stateConfig,b=c||us,C=Jl;if(null==t||"string"!=typeof t)C=Jl;else{var D=t.replace(/\\/g,"");try{C=JSON.parse(t),Vt(C,y)}catch(e){console.error(e,"Value was parsed incorrectly. Trying to parse it...");try{C=JSON.parse(D),Vt(C,y)}catch(e){console.error(e,"Most probably that it's not possible to parse this value")}}}return a(is,te({id:p,font:r,color:i},{children:a(Yu,te({editor:m,value:C},{children:a(Iu,{readOnly:!0,renderElement:function(e){return a(b,te({numberOfLines:l,styles:u,color:i,variant:r},s,f,{children:a(Xl,te({},e,{onClick:function(){return g("click")}}))}))},renderLeaf:function(e){return a(Gl,te({},e))}})}),JSON.stringify(C))}))},is=e.div(ol||(ol=ae(["\n ",";\n"],["\n ",";\n"])),(function(e){var n=e.theme,r=n.colors,o=n.fonts,i=e.color,a=e.font,u=void 0===a?"M":a;return t(rl||(rl=ae(["\n color: ",";\n ","\n "],["\n color: ",";\n ","\n "])),r[i],o[u])})),as=e.div(al||(al=ae(["\n ","\n"],["\n ","\n"])),(function(e){var n=e.theme.sizes,r=e.height,o=void 0===r?0:r,i=e.width,a=void 0===i?0:i,u=e.layout,l=void 0===u?"div":u;return t(il||(il=ae(["\n height: ","px;\n width: ","px;\n display: ",";\n "],["\n height: ","px;\n width: ","px;\n display: ",";\n "])),"string"==typeof o?n[o]:o,"string"==typeof a?n[a]:a,"span"===l?"inline-flex":"block")})),us=function(e){var t=e.children,n=e.seoTag,r=void 0===n?"div":n,o=ne(e,["children","seoTag"]);return a(ls,te({},o,{as:r},{children:t}))},ls=e.div(sl||(sl=ae(["\n ","\n"],["\n ","\n"])),(function(e){var n=e.theme,r=n.colors,o=n.fonts,i=e.layout,a=void 0===i?"div":i,u=e.variant,l=void 0===u?"L":u,s=e.styles,c=e.color,d=void 0===c?"gray1":c,f=e.type,p=e.numberOfLines,h=e.textAlign,v=void 0===h?"left":h,g=e.behaveAs,m=void 0===g?"text":g;return t(ll||(ll=ae(["\n display: ",";\n ","\n ",";\n ",";\n color: ",";\n text-align: ",";\n &:hover {\n cursor: ",";\n }\n "],["\n display: ",";\n ","\n ",";\n ",";\n color: ",";\n text-align: ",";\n &:hover {\n cursor: ",";\n }\n "])),"span"===a?"inline-flex":"block",o[l],s,function(e){return t(ul||(ul=ae(["\n overflow: ",";\n text-overflow: ellipsis;\n display: ",";\n -webkit-line-clamp: ","; /* number of lines to show */\n line-clamp: ",";\n -webkit-box-orient: vertical;\n white-space: pre-wrap;\n word-wrap: break-word;\n"],["\n overflow: ",";\n text-overflow: ellipsis;\n display: ",";\n -webkit-line-clamp: ","; /* number of lines to show */\n line-clamp: ",";\n -webkit-box-orient: vertical;\n white-space: pre-wrap;\n word-wrap: break-word;\n"])),e?"hidden":"unset",e?"-webkit-box":"unset",e?"".concat(e):"unset",e?"".concat(e):"unset")}(p),r[null!=d?d:f]||d||r.gray1,v,"button"===m?"pointer":"auto")})),ss=function(e){var t=e.text;return u(l,{children:[a(as,{height:"XS"}),a(us,te({variant:"XS",color:"red"},{children:t}))]})},cs={selected:"primary",disabled:"gray4",default:"white",error:"white"},ds={selected:"primary",disabled:"gray4",default:"gray3",error:"red"},fs={selected:"white",disabled:"gray2",default:"white",error:"red"},ps={selected:"gray1",disabled:"gray3",default:"gray1",error:"red"},hs=function(e){var n=e.id,r=e.onClick,o=e.label,i=e.isError,l=void 0!==i&&i,s=e.disabled,c=void 0!==s&&s,f=e.isEditMode,p=void 0===f||f,h=e.isSelected,v=void 0!==h&&h,g=e.isRichText,m=void 0!==g&&g,y=e.notInteractable,b=void 0!==y&&y,C=e.internalConfig,D=d(!1),w=D[0],x=D[1],E=function(e,n,r){var o=r||{},i=o.selectedCheckboxBackgroundColor,a=void 0===i?cs.selected:i,u=o.selectedCheckboxIconColor,l=void 0===u?fs.default:u,s=o.styles,c=o.wrapperStyles,d=o.textPadding,f=void 0===d?0:d,p=o.buttonPadding,h=void 0===p?0:p,v="selected"===n?ge.colors[l]||l:ge.colors[fs[n]||fs.default];return{checkboxIconWrapperColor:t(cl||(cl=ae(["\n border-color: ",";\n background-color: ",";\n "],["\n border-color: ",";\n background-color: ",";\n "])),e?ge.colors.gray2:ge.colors[ds[n]||ds.default],"selected"===n?ge.colors[a]||a:ge.colors[cs[n]||cs.default]),checkboxIconColor:v,checkboxTextStyles:t(dl||(dl=ae(["\n color: "," !important;\n padding: ","px;\n "],["\n color: "," !important;\n padding: ","px;\n "])),e?ge.colors.gray2:ge.colors[ps[n]||ps.default],f),checkboxWrapperStyles:t(fl||(fl=ae(["\n padding: ","px;\n ","\n ","\n "],["\n padding: ","px;\n ","\n ","\n "])),h,s,c)}}(w,l?"error":c?"disabled":v?"selected":"default",C),B=E.checkboxIconWrapperColor,k=E.checkboxIconColor,A=E.checkboxWrapperStyles,F=E.checkboxTextStyles;return u(gs,te({activeOpacity:.8,disabled:c,$styles:te(te({},A),b&&vs),onClick:function(){!c&&p&&r(n)},onMouseEnter:function(){!c&&p&&x(!0)},onMouseLeave:function(){!c&&p&&x(!1)}},{children:[a(ys,te({$styles:B},{children:v&&a(ms,{color:k,name:"Check"})})),a(as,{width:"S"}),o&&a("div",{children:m?a(os,{extraTextProps:{variant:"M",behaveAs:c?"text":"button"},textStyles:F,numberOfLines:2,value:o,font:"M"}):a(us,te({behaveAs:c?"text":"button",styles:F,numberOfLines:2,variant:"M"},{children:o}))})]}))},vs=t(pl||(pl=ae(["\n cursor: unset;\n pointer-events: none;\n opacity: 0.6;\n"],["\n cursor: unset;\n pointer-events: none;\n opacity: 0.6;\n"]))),gs=e(de)(hl||(hl=ae(["\n width: 100%;\n display: flex;\n align-items: center;\n ","\n"],["\n width: 100%;\n display: flex;\n align-items: center;\n ","\n"])),(function(e){return e.$styles})),ms=e(Ke)(vl||(vl=ae(["\n display: flex;\n"],["\n display: flex;\n"]))),ys=e.div(ml||(ml=ae(["\n display: flex;\n border-width: 1px;\n align-items: center;\n justify-content: center;\n border-style: solid;\n ","\n"],["\n display: flex;\n border-width: 1px;\n align-items: center;\n justify-content: center;\n border-style: solid;\n ","\n"])),(function(e){var n=e.theme.sizes,r=e.$styles;return t(gl||(gl=ae(["\n border-radius: ","px;\n ",";\n ","\n "],["\n border-radius: ","px;\n ",";\n ","\n "])),n.XS,fe(n.M),r)})),bs=function(e){return e.map((function(e){return zr.string(e)})).join("\n")},Cs=e.div(yl||(yl=ae(["\n ",";\n\n ",";\n"],["\n ",";\n\n ",";\n"])),(function(e){var t=e.theme,n=t.colors;t.fonts;var r=t.sizes,o=e.hasError,i=e.disabled,a=e.isOpen,u=e.isEditMode;return"\n .select-wrapper {\n text-align: left;\n border: ".concat(u?"1px solid ".concat(n.gray3):"none",";\n position: relative;\n border-radius: ").concat(r.S,"px;\n &:hover,\n &:active,\n &:focus {\n border-color: ").concat(n.gray2,";\n }\n\n .select-input {\n padding: ").concat(u?"10px ".concat(r.S,"px 10px ").concat(r.M,"px"):"0",";\n display: flex;\n user-select: none;\n align-items: center;\n flex-direction: row;\n justify-content: space-between;\n cursor: ").concat(u?"pointer":"default",";\n\n .icon-container {\n max-height: 33px;\n transform: rotate(0deg);\n transition: transform 0.2s ease-in-out;\n ").concat(a&&"transform: rotate(180deg);","\n }\n }\n\n ").concat(i&&"\n border-color: ".concat(n.gray4," !important;\n cursor: not-allowed;\n .select-input {\n background-color: ").concat(n.gray4,";\n pointer-events: none;\n .selected-text-value {\n color: ").concat(n.gray3,";\n }\n .icon-container {\n svg path {\n stroke: ").concat(n.gray3,";\n }\n }\n }\n "),"\n \n ").concat(o&&"\n border-color: ".concat(n.red," !important;\n .select-input {\n .selected-text-value {\n color: ").concat(n.red,";\n }\n .icon-container {\n svg path {\n stroke: ").concat(n.red,";\n }\n }\n }\n "),"\n ")}),(function(e){return e.$styles})),Ds=e.div(bl||(bl=ae(["\n ",";\n"],["\n ",";\n"])),(function(e){var t=e.theme,n=t.colors,r=t.sizes;return"\n position: absolute;\n width: 100%;\n border-radius: ".concat(r.S,"px;\n padding: ").concat(r.L,"px ").concat(r.M,"px;\n box-shadow: 0 0 ").concat(r.XL,"px 0 #0000001a;\n overflow: auto;\n max-height: 150px;\n z-index: 10;\n transform: translateY(").concat(r.S,"px);\n background-color: ").concat(n.white,";\n ")})),ws=e.div(Cl||(Cl=ae(["\n width: 100%;\n cursor: pointer;\n ",";\n"],["\n width: 100%;\n cursor: pointer;\n ",";\n"])),(function(e){var t=e.theme,n=t.sizes,r=t.colors,o=t.fonts,i=e.$selected;return"\n border-radius: ".concat(n.S,"px;\n &:hover {\n background-color: ").concat(r.gray5,";\n }\n padding: ").concat(n.S,"px ").concat(n.M,"px;\n ").concat(o.M,";\n color: ").concat(r.gray2,";\n ").concat(i&&"\n background-color: ".concat(r.gray4," !important;\n color: ").concat(r.black,";\n "),";\n ")})),xs=function(e,n){void 0===n&&(n=!1);var r=e||{},o=r.horizontalPadding,i=void 0===o?0:o,a=r.verticalPadding,u=void 0===a?0:a,l=r.selectedTextColor,s=r.selectedTextFontSize,c=r.placeholderTextColor,d=r.placeholderTextFontSize,f=r.styles,p=r.wrapperStyles;return t(wl||(wl=ae(["\n ",";\n "],["\n ",";\n "])),(function(e){var r=e.theme.colors;return t(Dl||(Dl=ae(["\n .select-wrapper {\n .select-input {\n ",";\n .selected-text-value {\n ",";\n }\n ",";\n }\n ",";\n }\n "],["\n .select-wrapper {\n .select-input {\n ",";\n .selected-text-value {\n ",";\n }\n ",";\n }\n ",";\n }\n "])),u||i?"padding: ".concat(u,"px ").concat(i,"px;"):"",n?"\n ".concat(l?"color: ".concat(r[l]||l,";"):"",";\n ").concat(s?"font-size: ".concat(s,"px;"):"",";\n "):"\n ".concat(c?"color: ".concat(r[c]||c,";"):"",";\n ").concat(d?"font-size: ".concat(d,"px;"):"",";\n "),f,p)}))},Es=function(e){var t=e.ref,n=e.onBlur,r=e.onChange,o=e.value,i=e.placeholder,l=e.options,s=void 0===l?[]:l,c=e.disabled,p=void 0!==c&&c,h=e.optionsPresentation,v=void 0!==h&&h,g=e.isError,m=e.isEditMode,y=void 0===m||m,b=e.selectInternalConfig,C=e.isRichText,D=void 0!==C&&C,w=d(v),x=w[0],E=w[1],B=d(o),k=B[0],A=B[1],F=null==s?void 0:s.find((function(e){return e.id===k}));f((function(){var e=function(){return!v&&E(!1)};return window.addEventListener("click",e),function(){return window.removeEventListener("click",e)}})),f((function(){return E(v)}),[v]),f((function(){return A(o)}),[o]);var O=function(e){return e===k};return a(Cs,te({ref:t,tabIndex:0,onBlur:n,disabled:p,isEditMode:y,hasValue:!!F,isOpen:x,hasError:!!g,$styles:xs(b,!!F)},{children:u("div",te({className:"select-wrapper"},{children:[u("div",te({className:"select-input",onClick:function(e){v||(e.stopPropagation(),E((function(e){return!e})))}},{children:[F?D?a(os,{numberOfLines:1,value:F.label,extraTextProps:{color:"gray1",variant:"M"}}):a(us,te({numberOfLines:1,variant:"M",color:"gray1"},{children:F.label})):a(us,te({numberOfLines:1,variant:"M",color:"gray3"},{children:i})),y&&a("div",te({className:"icon-container"},{children:a(Ke,{name:"CaretDown"})}))]})),x&&y&&a(Ds,{children:s.map((function(e){var t=e.id,n=e.label;return a(ws,te({$selected:O(t),onClick:function(){return function(e){A(e),null==r||r(e)}(t)}},{children:D?bs(JSON.parse(n)):n}),t)}))})]}))}))},Bs={exports:{}},ks=pt(Bs.exports=function(e){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.conformToMask=void 0;var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(3);Object.defineProperty(t,"conformToMask",{enumerable:!0,get:function(){return r(c).default}});var d=r(n(11)),f=r(n(9)),p=r(n(5)),h=n(2),v=function(e){function t(){var e;i(this,t);for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];var u=a(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(r)));return u.setRef=u.setRef.bind(u),u.onBlur=u.onBlur.bind(u),u.onChange=u.onChange.bind(u),u}return u(t,e),s(t,[{key:"setRef",value:function(e){this.inputElement=e}},{key:"initTextMask",value:function(){var e=this.props,t=this.props.value;this.textMaskInputElement=(0,p.default)(l({inputElement:this.inputElement},e)),this.textMaskInputElement.update(t)}},{key:"componentDidMount",value:function(){this.initTextMask()}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.value,r=t.pipe,o=t.mask,i={guide:t.guide,placeholderChar:t.placeholderChar,showMask:t.showMask},a="function"==typeof r&&"function"==typeof e.pipe?r.toString()!==e.pipe.toString():(0,h.isNil)(r)&&!(0,h.isNil)(e.pipe)||!(0,h.isNil)(r)&&(0,h.isNil)(e.pipe),u=o.toString()!==e.mask.toString(),l=Object.keys(i).some((function(t){return i[t]!==e[t]}))||u||a;(n!==this.inputElement.value||l)&&this.initTextMask()}},{key:"render",value:function(){var e=this.props,t=e.render,n=o(e,["render"]);return delete n.mask,delete n.guide,delete n.pipe,delete n.placeholderChar,delete n.keepCharPositions,delete n.value,delete n.onBlur,delete n.onChange,delete n.showMask,t(this.setRef,l({onBlur:this.onBlur,onChange:this.onChange,defaultValue:this.props.value},n))}},{key:"onChange",value:function(e){this.textMaskInputElement.update(),"function"==typeof this.props.onChange&&this.props.onChange(e)}},{key:"onBlur",value:function(e){"function"==typeof this.props.onBlur&&this.props.onBlur(e)}}]),t}(d.default.PureComponent);t.default=v,v.propTypes={mask:f.default.oneOfType([f.default.array,f.default.func,f.default.bool,f.default.shape({mask:f.default.oneOfType([f.default.array,f.default.func]),pipe:f.default.func})]).isRequired,guide:f.default.bool,value:f.default.oneOfType([f.default.string,f.default.number]),pipe:f.default.func,placeholderChar:f.default.string,keepCharPositions:f.default.bool,showMask:f.default.bool},v.defaultProps={render:function(e,t){return d.default.createElement("input",l({ref:e},t))}}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.placeholderChar="_",t.strFunction="function"},function(e,t,n){function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.placeholderChar;if(!o(e))throw new Error("Text-mask:convertMaskToPlaceholder; The mask property must be an array.");if(-1!==e.indexOf(t))throw new Error("Placeholder character must not be used as part of the mask. Please specify a character that is not present in your mask as your placeholder character.\n\nThe placeholder character that was received is: "+JSON.stringify(t)+"\n\nThe mask that was received is: "+JSON.stringify(e));return e.map((function(e){return e instanceof RegExp?t:e})).join("")}function o(e){return Array.isArray&&Array.isArray(e)||e instanceof Array}function i(e){return"string"==typeof e||e instanceof String}function a(e){return"number"==typeof e&&void 0===e.length&&!isNaN(e)}function u(e){return null==e}function l(e){for(var t=[],n=void 0;-1!==(n=e.indexOf(d));)t.push(n),e.splice(n,1);return{maskWithoutCaretTraps:e,indexes:t}}Object.defineProperty(t,"__esModule",{value:!0}),t.convertMaskToPlaceholder=r,t.isArray=o,t.isString=i,t.isNumber=a,t.isNil=u,t.processCaretTraps=l;var s=n(1),c=[],d="[]"},function(e,t,n){function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!(0,i.isArray)(t)){if((void 0===t?"undefined":o(t))!==a.strFunction)throw new Error("Text-mask:conformToMask; The mask property must be an array.");t=t(e,n),t=(0,i.processCaretTraps)(t).maskWithoutCaretTraps}var r=n.guide,s=void 0===r||r,c=n.previousConformedValue,d=void 0===c?l:c,f=n.placeholderChar,p=void 0===f?a.placeholderChar:f,h=n.placeholder,v=void 0===h?(0,i.convertMaskToPlaceholder)(t,p):h,g=n.currentCaretPosition,m=n.keepCharPositions,y=!1===s&&void 0!==d,b=e.length,C=d.length,D=v.length,w=t.length,x=b-C,E=x>0,B=g+(E?-x:0),k=B+Math.abs(x);if(!0===m&&!E){for(var A=l,F=B;F<k;F++)v[F]===p&&(A+=p);e=e.slice(0,B)+A+e.slice(B,b)}for(var O=e.split(l).map((function(e,t){return{char:e,isNew:t>=B&&t<k}})),S=b-1;S>=0;S--){var P=O[S].char;P!==p&&P===v[S>=B&&C===w?S-x:S]&&O.splice(S,1)}var T=l,M=!1;e:for(var _=0;_<D;_++){var L=v[_];if(L===p){if(O.length>0)for(;O.length>0;){var j=O.shift(),I=j.char,N=j.isNew;if(I===p&&!0!==y){T+=p;continue e}if(t[_].test(I)){if(!0===m&&!1!==N&&d!==l&&!1!==s&&E){for(var R=O.length,z=null,V=0;V<R;V++){var W=O[V];if(W.char!==p&&!1===W.isNew)break;if(W.char===p){z=V;break}}null!==z?(T+=I,O.splice(z,1)):_--}else T+=I;continue e}M=!0}!1===y&&(T+=v.substr(_,D));break}T+=L}if(y&&!1===E){for(var H=null,$=0;$<T.length;$++)v[$]===p&&(H=$);T=null!==H?T.substr(0,H+1):l}return{conformedValue:T,meta:{someCharsRejected:M}}}Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=r;var i=n(2),a=n(1),u=[],l=""},function(e,t){function n(e){var t=e.previousConformedValue,n=void 0===t?o:t,i=e.previousPlaceholder,a=void 0===i?o:i,u=e.currentCaretPosition,l=void 0===u?0:u,s=e.conformedValue,c=e.rawValue,d=e.placeholderChar,f=e.placeholder,p=e.indexesOfPipedChars,h=void 0===p?r:p,v=e.caretTrapIndexes,g=void 0===v?r:v;if(0===l||!c.length)return 0;var m=c.length,y=n.length,b=f.length,C=s.length,D=m-y,w=D>0;if(D>1&&!w&&0!==y)return l;var x=0,E=void 0,B=void 0;if(!w||n!==s&&s!==f){var k=s.toLowerCase(),A=c.toLowerCase().substr(0,l).split(o).filter((function(e){return-1!==k.indexOf(e)}));B=A[A.length-1];var F=a.substr(0,A.length).split(o).filter((function(e){return e!==d})).length,O=f.substr(0,A.length).split(o).filter((function(e){return e!==d})).length,S=O!==F,P=void 0!==a[A.length-1]&&void 0!==f[A.length-2]&&a[A.length-1]!==d&&a[A.length-1]!==f[A.length-1]&&a[A.length-1]===f[A.length-2];!w&&(S||P)&&F>0&&f.indexOf(B)>-1&&void 0!==c[l]&&(E=!0,B=c[l]);for(var T=h.map((function(e){return k[e]})),M=T.filter((function(e){return e===B})).length,_=A.filter((function(e){return e===B})).length,L=f.substr(0,f.indexOf(d)).split(o).filter((function(e,t){return e===B&&c[t]!==e})).length,j=L+_+M+(E?1:0),I=0,N=0;N<C&&(x=N+1,k[N]===B&&I++,!(I>=j));N++);}else x=l-D;if(w){for(var R=x,z=x;z<=b;z++)if(f[z]===d&&(R=z),f[z]===d||-1!==g.indexOf(z)||z===b)return R}else if(E){for(var V=x-1;V>=0;V--)if(s[V]===B||-1!==g.indexOf(V)||0===V)return V}else for(var W=x;W>=0;W--)if(f[W-1]===d||-1!==g.indexOf(W)||0===W)return W}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;var r=[],o=""},function(e,t,n){function r(e){return e&&e.__esModule?e:{default:e}}function o(e){var t={previousConformedValue:void 0,previousPlaceholder:void 0};return{state:t,update:function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,o=r.inputElement,h=r.mask,g=r.guide,m=r.pipe,y=r.placeholderChar,b=void 0===y?f.placeholderChar:y,C=r.keepCharPositions,D=void 0!==C&&C,w=r.showMask,x=void 0!==w&&w;if(void 0===n&&(n=o.value),n!==t.previousConformedValue){(void 0===h?"undefined":l(h))===v&&void 0!==h.pipe&&void 0!==h.mask&&(m=h.pipe,h=h.mask);var E=void 0,B=void 0;if(h instanceof Array&&(E=(0,d.convertMaskToPlaceholder)(h,b)),!1!==h){var k=a(n),A=o.selectionEnd,F=t.previousConformedValue,O=t.previousPlaceholder,S=void 0;if((void 0===h?"undefined":l(h))===f.strFunction){if(!1===(B=h(k,{currentCaretPosition:A,previousConformedValue:F,placeholderChar:b})))return;var P=(0,d.processCaretTraps)(B);B=P.maskWithoutCaretTraps,S=P.indexes,E=(0,d.convertMaskToPlaceholder)(B,b)}else B=h;var T={previousConformedValue:F,guide:g,placeholderChar:b,pipe:m,placeholder:E,currentCaretPosition:A,keepCharPositions:D},M=(0,c.default)(k,B,T).conformedValue,_=(void 0===m?"undefined":l(m))===f.strFunction,L={};_&&(!1===(L=m(M,u({rawValue:k},T)))?L={value:F,rejected:!0}:(0,d.isString)(L)&&(L={value:L}));var j=_?L.value:M,I=(0,s.default)({previousConformedValue:F,previousPlaceholder:O,conformedValue:j,placeholder:E,rawValue:k,currentCaretPosition:A,placeholderChar:b,indexesOfPipedChars:L.indexesOfPipedChars,caretTrapIndexes:S}),N=j===E&&0===I?x?E:p:j;t.previousConformedValue=N,t.previousPlaceholder=E,o.value!==N&&(o.value=N,i(o,I))}}}}}function i(e,t){document.activeElement===e&&(g?m((function(){return e.setSelectionRange(t,t,h)}),0):e.setSelectionRange(t,t,h))}function a(e){if((0,d.isString)(e))return e;if((0,d.isNumber)(e))return String(e);if(null==e)return p;throw new Error("The 'value' provided to Text Mask needs to be a string or a number. The value received was:\n\n "+JSON.stringify(e))}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=o;var s=r(n(4)),c=r(n(3)),d=n(2),f=n(1),p="",h="none",v="object",g="undefined"!=typeof navigator&&/Android/i.test(navigator.userAgent),m="undefined"!=typeof requestAnimationFrame?requestAnimationFrame:setTimeout},function(e,t){function n(e){return function(){return e}}var r=function(){};r.thatReturns=n,r.thatReturnsFalse=n(!1),r.thatReturnsTrue=n(!0),r.thatReturnsNull=n(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},function(e,t,n){function r(e,t,n,r,o,i,a,u){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,o,i,a,u],c=0;(l=new Error(t.replace(/%s/g,(function(){return s[c++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}e.exports=r},function(e,t,n){var r=n(6),o=n(7),i=n(10);e.exports=function(){function e(e,t,n,r,a,u){u!==i&&o(!1,"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")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){e.exports=n(8)()},function(e,t){var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";e.exports=n},function(t,n){t.exports=e}])}(c)),As={exports:{}},Fs=pt(As.exports=function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){e.exports=n(3)},,,function(e,t,n){function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){e=e.replace(C,p);var n=t.placeholderChar,r=t.currentCaretPosition,o=e.indexOf(h),c=e.lastIndexOf(f),d=c<o?-1:c,v=i(e,o+1,h),g=i(e,d-1,f),m=a(e,o),y=u(e,o,d,n),b=l(e,d,n,r);return m=s(m),y=s(y),b=s(b,!0),m.concat(v).concat(y).concat(g).concat(b)}function i(e,t,n){var r=[];return e[t]===n?r.push(n):r.push(v,n),r.push(v),r}function a(e,t){return-1===t?e:e.slice(0,t)}function u(e,t,n,r){var o=p;return-1!==t&&(o=-1===n?e.slice(t+1,e.length):e.slice(t+1,n)),(o=o.replace(new RegExp("[\\s"+r+"]",m),p))===h?d:o.length<1?g:o[o.length-1]===f?o.slice(0,o.length-1):o}function l(e,t,n,r){var o=p;return-1!==t&&(o=e.slice(t+1,e.length)),0===(o=o.replace(new RegExp("[\\s"+n+".]",m),p)).length?e[t-1]===f&&r!==e.length?d:p:o}function s(e,t){return e.split(p).map((function(e){return e===g?e:t?b:y}))}Object.defineProperty(t,"__esModule",{value:!0});var c=r(n(4)),d="*",f=".",p="",h="@",v="[]",g=" ",m="g",y=/[^\s]/,b=/[^.\s]/,C=/\s/g;t.default={mask:o,pipe:c.default}},function(e,t){function n(e,t){var n=t.currentCaretPosition,i=t.rawValue,f=t.previousConformedValue,p=t.placeholderChar,h=e,v=(h=r(h)).indexOf(u);if(null===i.match(new RegExp("[^@\\s."+p+"]")))return a;if(-1!==h.indexOf(s)||-1!==v&&n!==v+1||-1===i.indexOf(o)&&f!==a&&-1!==i.indexOf(l))return!1;var g=h.indexOf(o);return(h.slice(g+1,h.length).match(d)||c).length>1&&h.substr(-1)===l&&n!==i.length&&(h=h.slice(0,h.length-1)),h}function r(e){var t=0;return e.replace(i,(function(){return 1==++t?o:a}))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;var o="@",i=/@/g,a="",u="@.",l=".",s="..",c=[],d=/\./g}])),Os={minYear:1930,maxYear:2123},Ss=function(e,t){e.stopPropagation(),null==t||t()},Ps=function(e){var n=e.value,r=e.leftIcon,i=e.rightIcon,l=e.onChange,s=e.onBlur,c=e.disabled,f=e.isError,p=e.placeholder,h=e.isEditMode,v=void 0===h||h,m=e.type,y=void 0===m?"text":m,b=e.internalConfig,C=e.config,D=ne(e,["value","leftIcon","rightIcon","onChange","onBlur","disabled","isError","placeholder","isEditMode","type","internalConfig","config"]),w=d(!1),x=w[0],E=w[1],B=g(null),k=function(e){switch(e){case"text":return{type:"text",inputMode:"text"};case"phone_number":return{type:"tel",inputMode:"tel"};case"password":return{type:"password",inputMode:"text"};default:return{}}}(y),A=function(e,t){var n=(t||{}).maskPlaceholder;switch(e){case"month_year_date":return{keepCharPositions:!0,mask:St,placeholder:n||"09/1970",pipe:ht.exports.createAutoCorrectedDatePipe("mm/yyyy",Os)};case"day_month_year_date":return{keepCharPositions:!0,mask:Ot,placeholder:n||"25/09/1970",pipe:ht.exports.createAutoCorrectedDatePipe("dd/mm/yyyy",Os)};case"month_day_year_date":return{keepCharPositions:!0,mask:Ft,placeholder:n||"09/25/1970",pipe:ht.exports.createAutoCorrectedDatePipe("mm/dd/yyyy",Os)};case"year_month_day_date":return{keepCharPositions:!0,mask:At,placeholder:n||"1970/09/25",pipe:ht.exports.createAutoCorrectedDatePipe("yyyy/mm/dd",Os)};case"phone_number":return{keepCharPositions:!0,mask:Pt,placeholder:n||"(555) 495-3947"};case"email":return{mask:Fs,placeholder:n||"example@mail.com"};case"us_zip_code":return{keepCharPositions:!0,mask:kt,placeholder:n||"12345"};case"integer":return{mask:Tt,placeholder:n||"123"};case"numerical":return{mask:Mt,placeholder:n||"123.45"};default:return{mask:!1}}}(y,C),F=o().colors,O=F[function(e){var t=e.isEditMode,n=e.isFocused,r=e.isError,o=e.disabled;return t?o?"gray3":r?"red":n?"gray1":"gray3":"gray1"}({isFocused:x,isError:f,disabled:c,isEditMode:v})],S=b||{},M=S.horizontalPadding,_=void 0===M?0:M,L=S.verticalPadding,j=void 0===L?0:L,I=S.placeholderTextColor,N=S.placeholderTextFontSize,R=S.textColor,z=S.textFontSize,V=S.styles,W=S.wrapperStyles,H=t(xl||(xl=ae(["\n ",";\n ",";\n ",";\n &::placeholder {\n ",";\n ",";\n }\n ",";\n "],["\n ",";\n ",";\n ",";\n &::placeholder {\n ",";\n ",";\n }\n ",";\n "])),R?"color: ".concat(F[R]||R,";"):"",z?"font-size: ".concat(z,"px;"):"",_||j?"padding: ".concat(j,"px ").concat(_,"px;"):"",N?"font-size: ".concat(N,"px;"):"",I?"color: ".concat(F[I]||I,";"):"",V);return u(Ts,te({withoutOpacityEffect:!0,disabled:!v||c,isEditMode:v,isFocused:x,isError:f,$styles:W,onClick:function(){var e;return null===(e=B.current)||void 0===e?void 0:e.inputElement.focus()}},{children:[!!r&&a(Ls,te({withoutOpacityEffect:!r.onClick,onClick:function(e){return Ss(e,r.onClick)}},{children:a(Ke,{name:r.name,color:O})})),u(P,te({variant:"standard"},{children:[a(T,te({htmlFor:"formatted-text-mask-input"},{children:"react-imask"})),a(Ms,te({id:"formatted-text-mask-input",value:n,$styles:H,onChange:function(e){return null==l?void 0:l(e.target.value)},onFocus:function(){return E(!0)},onBlur:function(){E(!1),null==s||s()},ref:B,isError:f,disabled:!v||c,placeholder:p,isEditMode:v,autoComplete:"off"},D,k,A))]})),!!i&&a(js,te({withoutOpacityEffect:!i.onClick,onClick:function(e){return Ss(e,i.onClick)}},{children:a(Ke,{name:i.name,color:O})}))]}))},Ts=e(de)(kl||(kl=ae(["\n box-sizing: border-box;\n display: flex;\n align-items: center;\n transition: 0.25s;\n\n ","\n"],["\n box-sizing: border-box;\n display: flex;\n align-items: center;\n transition: 0.25s;\n\n ","\n"])),(function(e){var n=e.theme,r=n.sizes,o=n.colors,i=e.isEditMode,a=e.disabled,u=e.isFocused,l=e.isError,s=e.$styles,c=o.gray3,d="1px",f="53px",p="transparent";return i?a?(c="transparent",p=o.gray4):l?c=o.red:u&&(c=o.gray1):(c="transparent",d="0",f="auto"),t(Bl||(Bl=ae(["\n border: "," solid ",";\n border-radius: ","px;\n height: ",";\n padding: ","px;\n cursor: ",";\n background-color: ",";\n\n ","\n ",";\n "],["\n border: "," solid ",";\n border-radius: ","px;\n height: ",";\n padding: ","px;\n cursor: ",";\n background-color: ",";\n\n ","\n ",";\n "])),d,c,r.S,f,i?r.M:0,i&&!a?"text":"unset",p,i&&!a&&t(El||(El=ae(["\n &:hover {\n border-color: ",";\n }\n "],["\n &:hover {\n border-color: ",";\n }\n "])),o.gray1),s)})),Ms=e(ks)(Fl||(Fl=ae(["\n width: 100%;\n height: 100%;\n outline: none;\n border: none;\n transition: 0.25s;\n padding: 0;\n ","\n"],["\n width: 100%;\n height: 100%;\n outline: none;\n border: none;\n transition: 0.25s;\n padding: 0;\n ","\n"])),(function(e){var n=e.theme,r=n.fonts,o=n.colors,i=e.isError,a=e.disabled,u=e.isEditMode,l=e.state,s=e.$styles,c=o.gray1,d=o.gray3,f=u?o.gray4:"transparent";return u?a?(c=o.gray3,d=o.gray3):i?(c=o.red,d=o.red):"success"===l&&(d=o.gray1):(c=o.gray1,d=o.gray3),t(Al||(Al=ae(["\n ",";\n color: ",";\n &::placeholder {\n ","\n color: ",";\n }\n background-color: transparent;\n\n &:disabled {\n background-color: ",";\n }\n ","\n "],["\n ",";\n color: ",";\n &::placeholder {\n ","\n color: ",";\n }\n background-color: transparent;\n\n &:disabled {\n background-color: ",";\n }\n ","\n "])),r.M,c,r.M,d,f,s)})),_s=e(de)(Ol||(Ol=ae(["\n display: flex;\n align-items: center;\n justify-content: center;\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n"]))),Ls=e(_s)(Sl||(Sl=ae(["\n margin-right: ","px;\n"],["\n margin-right: ","px;\n"])),(function(e){return e.theme.sizes.S})),js=e(_s)(Pl||(Pl=ae(["\n margin-left: ","px;\n"],["\n margin-left: ","px;\n"])),(function(e){return e.theme.sizes.S})),Is=i(Tl||(Tl=ae(["\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n"],["\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n"]))),Ns=e.div(Ml||(Ml=ae(["\n border: 0.2em solid rgba(0, 0, 0, 0.1);\n border-top: 0.2em solid ",";\n border-radius: 50%;\n width: ","px;\n height: ","px;\n animation: "," 0.6s linear infinite;\n"],["\n border: 0.2em solid rgba(0, 0, 0, 0.1);\n border-top: 0.2em solid ",";\n border-radius: 50%;\n width: ","px;\n height: ","px;\n animation: "," 0.6s linear infinite;\n"])),(function(e){var t=e.theme,n=e.color,r=void 0===n?"secondary":n;return t.colors[r]}),(function(e){var t=e.theme,n=e.size;return n?t.sizes[n]:12}),(function(e){var t=e.theme,n=e.size;return n?t.sizes[n]:12}),Is),Rs=e.img(Ll||(Ll=ae(["\n display: block;\n user-drag: none; // Safari та Chrome\n -o-user-drag: none; // Opera\n -moz-user-drag: none; // Firefox\n -webkit-user-drag: none; // Webkit-браузерах\n ","\n"],["\n display: block;\n user-drag: none; // Safari та Chrome\n -o-user-drag: none; // Opera\n -moz-user-drag: none; // Firefox\n -webkit-user-drag: none; // Webkit-браузерах\n ","\n"])),(function(e){var n=e.height,r=void 0===n?"100%":n,o=e.width,i=void 0===o?"100%":o,a=e.cornerRadius,u=void 0===a?0:a,l=e.$styles;return t(_l||(_l=ae(["\n width: ",";\n height: ",";\n border-radius: ","px;\n ","\n "],["\n width: ",";\n height: ",";\n border-radius: ","px;\n ","\n "])),"number"==typeof i?"".concat(i,"px"):i,"number"==typeof r?"".concat(r,"px"):r,ge.sizes[u]||u,l)})),zs=e(Rs)(Il||(Il=ae(["\n object-fit: cover;\n position: absolute;\n justify-content: center;\n top: 0;\n left: 0;\n z-index: 0;\n ","\n"],["\n object-fit: cover;\n position: absolute;\n justify-content: center;\n top: 0;\n left: 0;\n z-index: 0;\n ","\n"])),(function(e){var n=e.height,r=void 0===n?"100%":n,o=e.width,i=void 0===o?"100%":o,a=e.cornerRadius,u=void 0===a?0:a,l=e.$styles;return t(jl||(jl=ae(["\n width: ",";\n height: ",";\n border-radius: ","px;\n ","\n "],["\n width: ",";\n height: ",";\n border-radius: ","px;\n ","\n "])),"number"==typeof i?"".concat(i,"px"):i,"number"==typeof r?"".concat(r,"px"):r,ge.sizes[u]||u,l)})),Vs=function(e){var t=e.href,n=ne(e,["href"]),r={target:"_blank"};return t&&""!==t&&(r.href=t),a("a",te({},r,n))},Ws=e(Vs)(Wl||(Wl=ae(["\n ","\n"],["\n ","\n"])),(function(e){var n=e.theme,r=n.colors,o=n.fonts,i=e.disabled,a=e.size,u=void 0===a?"medium":a,l=e.colorTheme,s=void 0===l?"light":l,c=e.$styles,d=e.$variant,f=void 0===d?"link":d,p=e.textColor,h=r["light"===s?"gray4":"indigoTint2"],v=t(Nl||(Nl=ae(["\n ","\n\n &:visited {\n ","\n }\n "],["\n ","\n\n &:visited {\n ","\n }\n "])),c,c),g=p||r.blue,m=ve(g,-.3),y=he(g,.3),b=F(g,.4);return t(Vl||(Vl=ae(["\n ",";\n cursor: pointer;\n text-decoration: none;\n color: ",";\n\n &:link {\n color: ",";\n }\n\n &:visited {\n color: ",";\n }\n\n &:hover {\n color: ",";\n }\n\n &:active {\n color: ",";\n background-color: ",";\n }\n\n ","\n\n ","\n\n ","\n "],["\n ",";\n cursor: pointer;\n text-decoration: none;\n color: ",";\n\n &:link {\n color: ",";\n }\n\n &:visited {\n color: ",";\n }\n\n &:hover {\n color: ",";\n }\n\n &:active {\n color: ",";\n background-color: ",";\n }\n\n ","\n\n ","\n\n ","\n "])),o["medium"===u?"M":"S"],p,p,b,m,y,h,"small"===u&&t(Rl||(Rl=ae(["\n color: ",";\n\n &:link {\n color: ",";\n }\n\n &:visited {\n color: ",";\n }\n\n &:hover {\n color: ",";\n }\n\n &:active {\n background-color: ",";\n color: ",";\n }\n "],["\n color: ",";\n\n &:link {\n color: ",";\n }\n\n &:visited {\n color: ",";\n }\n\n &:hover {\n color: ",";\n }\n\n &:active {\n background-color: ",";\n color: ",";\n }\n "])),r.gray2,r.gray2,r.gray3,r.gray1,r.gray4,r.gray1),i&&t(zl||(zl=ae(["\n cursor: auto;\n color: ",";\n\n &:link {\n color: ",";\n }\n\n &:hover {\n color: ",";\n }\n\n &:active {\n background-color: transparent;\n }\n "],["\n cursor: auto;\n color: ",";\n\n &:link {\n color: ",";\n }\n\n &:hover {\n color: ",";\n }\n\n &:active {\n background-color: transparent;\n }\n "])),r.gray3,r.gray3,r.gray3),"custom"===f&&c&&v)})),Hs={DEFAULT:"Minus",ERROR:"Close",SUCCESS:"Check"},$s=function(e){var t=e.text,n=e.status,r=function(e){var t=o().colors;switch(e){case"SUCCESS":return{color:t.greenShade,backgroundColor:t.greenTint,borderColor:"transparent"};case"ERROR":return{color:t.redShade,backgroundColor:t.redTint,borderColor:"transparent"};default:return{color:t.gray2,backgroundColor:"transparent",borderColor:t.gray3}}}(n),i=r.backgroundColor,l=r.color,s=r.borderColor,c=o().sizes;return u(Us,te({style:{backgroundColor:i,borderColor:s}},{children:[a(Ke,{size:c.M,name:Hs[n],color:l}),a(as,{width:"S"}),a(us,te({variant:"M",color:l},{children:t}))]}))},Us=e.div($l||($l=ae(["\n ","\n"],["\n ","\n"])),(function(e){var n=e.theme.sizes;return t(Hl||(Hl=ae(["\n display: flex;\n width: fit-content;\n align-items: center;\n border-radius: ","px;\n border: 1.5px solid transparent;\n padding: ","px ","px ","px ","px;\n "],["\n display: flex;\n width: fit-content;\n align-items: center;\n border-radius: ","px;\n border: 1.5px solid transparent;\n padding: ","px ","px ","px ","px;\n "])),n.M,n.XS,n.M,n.XS,n.S)}));function qs(){return qs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qs.apply(this,arguments)}function Xs(e){return Xs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xs(e)}function Ks(e){var t=function(e,t){if("object"!==Xs(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Xs(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Xs(t)?t:String(t)}function Ys(e,t,n){return(t=Ks(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gs(Object(n),!0).forEach((function(t){Ys(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Js(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Qs(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ec(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ks(r.key),r)}}function tc(e,t,n){return t&&ec(e.prototype,t),n&&ec(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function nc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rc(e,t){return rc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},rc(e,t)}function oc(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&rc(e,t)}function ic(e){return ic=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ic(e)}function ac(e,t){if(t&&("object"===Xs(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return nc(e)}function uc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ic(e);if(t){var o=ic(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ac(this,n)}}var lc=function(e){return+setTimeout(e,16)},sc=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(lc=function(e){return window.requestAnimationFrame(e)},sc=function(e){return window.cancelAnimationFrame(e)});var cc=0,dc=new Map;function fc(e){dc.delete(e)}function pc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=cc+=1;function r(t){if(0===t)fc(n),e();else{var o=lc((function(){r(t-1)}));dc.set(n,o)}}return r(t),n}function hc(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}function vc(e){return e instanceof HTMLElement?e:q.findDOMNode(e)}pc.cancel=function(e){var t=dc.get(e);return fc(t),sc(t)};var gc,mc={exports:{}},yc={};var bc,Cc,Dc={};
|
9
|
+
/** @license React v16.13.1
|
10
|
+
* react-is.development.js
|
11
|
+
*
|
12
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
13
|
+
*
|
14
|
+
* This source code is licensed under the MIT license found in the
|
15
|
+
* LICENSE file in the root directory of this source tree.
|
16
|
+
*/function wc(e,t){"function"==typeof e?e(t):"object"===Xs(e)&&e&&"current"in e&&(e.current=t)}function xc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter((function(e){return e}));return r.length<=1?r[0]:function(e){t.forEach((function(t){wc(t,e)}))}}function Ec(e){var t,n,r=mc.exports.isMemo(e)?e.type.type:e.type;return!("function"==typeof r&&!(null===(t=r.prototype)||void 0===t?void 0:t.render))&&!("function"==typeof e&&!(null===(n=e.prototype)||void 0===n?void 0:n.render))}function Bc(e,t,n,r){var o=q.unstable_batchedUpdates?function(e){q.unstable_batchedUpdates(n,e)}:n;return e.addEventListener&&e.addEventListener(t,o,r),{remove:function(){e.removeEventListener&&e.removeEventListener(t,o,r)}}}function kc(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}Cc=mc,"production"===process.env.NODE_ENV?Cc.exports=function(){if(gc)return yc;gc=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,a=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,s=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,m=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:switch(e=e.type){case l:case s:case r:case i:case o:case d:return e;default:switch(e=e&&e.$$typeof){case u:case c:case h:case p:case a:return e;default:return f}}case n:return f}}}function C(e){return b(e)===s}return yc.AsyncMode=l,yc.ConcurrentMode=s,yc.ContextConsumer=u,yc.ContextProvider=a,yc.Element=t,yc.ForwardRef=c,yc.Fragment=r,yc.Lazy=h,yc.Memo=p,yc.Portal=n,yc.Profiler=i,yc.StrictMode=o,yc.Suspense=d,yc.isAsyncMode=function(e){return C(e)||b(e)===l},yc.isConcurrentMode=C,yc.isContextConsumer=function(e){return b(e)===u},yc.isContextProvider=function(e){return b(e)===a},yc.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},yc.isForwardRef=function(e){return b(e)===c},yc.isFragment=function(e){return b(e)===r},yc.isLazy=function(e){return b(e)===h},yc.isMemo=function(e){return b(e)===p},yc.isPortal=function(e){return b(e)===n},yc.isProfiler=function(e){return b(e)===i},yc.isStrictMode=function(e){return b(e)===o},yc.isSuspense=function(e){return b(e)===d},yc.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===s||e===i||e===o||e===d||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===a||e.$$typeof===u||e.$$typeof===c||e.$$typeof===g||e.$$typeof===m||e.$$typeof===y||e.$$typeof===v)},yc.typeOf=b,yc}():Cc.exports=(bc||(bc=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,a=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,s=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,m=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:var v=e.type;switch(v){case l:case s:case r:case i:case o:case d:return v;default:var g=v&&v.$$typeof;switch(g){case u:case c:case h:case p:case a:return g;default:return f}}case n:return f}}}var C=l,D=s,w=u,x=a,E=t,B=c,k=r,A=h,F=p,O=n,S=i,P=o,T=d,M=!1;function _(e){return b(e)===s}Dc.AsyncMode=C,Dc.ConcurrentMode=D,Dc.ContextConsumer=w,Dc.ContextProvider=x,Dc.Element=E,Dc.ForwardRef=B,Dc.Fragment=k,Dc.Lazy=A,Dc.Memo=F,Dc.Portal=O,Dc.Profiler=S,Dc.StrictMode=P,Dc.Suspense=T,Dc.isAsyncMode=function(e){return M||(M=!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.")),_(e)||b(e)===l},Dc.isConcurrentMode=_,Dc.isContextConsumer=function(e){return b(e)===u},Dc.isContextProvider=function(e){return b(e)===a},Dc.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Dc.isForwardRef=function(e){return b(e)===c},Dc.isFragment=function(e){return b(e)===r},Dc.isLazy=function(e){return b(e)===h},Dc.isMemo=function(e){return b(e)===p},Dc.isPortal=function(e){return b(e)===n},Dc.isProfiler=function(e){return b(e)===i},Dc.isStrictMode=function(e){return b(e)===o},Dc.isSuspense=function(e){return b(e)===d},Dc.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===s||e===i||e===o||e===d||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===a||e.$$typeof===u||e.$$typeof===c||e.$$typeof===g||e.$$typeof===m||e.$$typeof===y||e.$$typeof===v)},Dc.typeOf=b}()),Dc);var Ac=D((function(e,t){var n=e.didUpdate,r=e.getContainer,o=e.children,i=g(),a=g();w(t,(function(){return{}}));var u=g(!1);return!u.current&&kc()&&(a.current=r(),i.current=a.current.parentNode,u.current=!0),f((function(){null==n||n(e)})),f((function(){return null===a.current.parentNode&&null!==i.current&&i.current.appendChild(a.current),function(){var e,t;null===(e=a.current)||void 0===e||null===(t=e.parentNode)||void 0===t||t.removeChild(a.current)}}),[]),a.current?q.createPortal(o,a.current):null})),Fc={exports:{}};
|
17
|
+
/*!
|
18
|
+
Copyright (c) 2018 Jed Watson.
|
19
|
+
Licensed under the MIT License (MIT), see
|
20
|
+
http://jedwatson.github.io/classnames
|
21
|
+
*/
|
22
|
+
!function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e=[],r=0;r<arguments.length;r++){var o=arguments[r];if(o){var i=typeof o;if("string"===i||"number"===i)e.push(o);else if(Array.isArray(o)){if(o.length){var a=n.apply(null,o);a&&e.push(a)}}else if("object"===i){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){e.push(o.toString());continue}for(var u in o)t.call(o,u)&&o[u]&&e.push(u)}}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}(Fc);var Oc=Fc.exports;function Sc(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function Pc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Tc(e,t){if(e){if("string"==typeof e)return Pc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Pc(e,t):void 0}}function Mc(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],l=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return u}}(e,t)||Tc(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _c(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var Lc,jc,Ic,Nc=(Lc=kc(),jc="undefined"!=typeof window?window:{},Ic={animationend:_c("Animation","AnimationEnd"),transitionend:_c("Transition","TransitionEnd")},Lc&&("AnimationEvent"in jc||delete Ic.animationend.animation,"TransitionEvent"in jc||delete Ic.transitionend.transition),Ic),Rc={};if(kc()){var zc=document.createElement("div");Rc=zc.style}var Vc={};function Wc(e){if(Vc[e])return Vc[e];var t=Nc[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in Rc)return Vc[e]=t[i],Vc[e]}return""}var Hc=Wc("animationend"),$c=Wc("transitionend"),Uc=!(!Hc||!$c),qc=Hc||"animationend",Xc=$c||"transitionend";function Kc(e,t){return e?"object"===Xs(e)?e[t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}))]:"".concat(e,"-").concat(t):null}function Yc(e){var t=s.useRef(!1),n=Mc(s.useState(e),2),r=n[0],o=n[1];return s.useEffect((function(){return t.current=!1,function(){t.current=!0}}),[]),[r,function(e,n){n&&t.current||o(e)}]}var Gc=kc()?C:f,Zc=["prepare","start","active","end"];function Jc(e){return"active"===e||"end"===e}var Qc=function(e,t){var n=Mc(Yc("none"),2),r=n[0],o=n[1],i=function(){var e=s.useRef(null);function t(){pc.cancel(e.current)}return s.useEffect((function(){return function(){t()}}),[]),[function n(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var i=pc((function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)}));e.current=i},t]}(),a=Mc(i,2),u=a[0],l=a[1];return Gc((function(){if("none"!==r&&"end"!==r){var e=Zc.indexOf(r),n=Zc[e+1],i=t(r);false===i?o(n,!0):u((function(e){function t(){e.isCanceled()||o(n,!0)}!0===i?t():Promise.resolve(i).then(t)}))}}),[e,r]),s.useEffect((function(){return function(){l()}}),[]),[function(){o("prepare",!0)},r]};function ed(e,t,n,r){var o=r.motionEnter,i=void 0===o||o,a=r.motionAppear,u=void 0===a||a,l=r.motionLeave,c=void 0===l||l,d=r.motionDeadline,p=r.motionLeaveImmediately,h=r.onAppearPrepare,v=r.onEnterPrepare,m=r.onLeavePrepare,y=r.onAppearStart,b=r.onEnterStart,C=r.onLeaveStart,D=r.onAppearActive,w=r.onEnterActive,x=r.onLeaveActive,E=r.onAppearEnd,B=r.onEnterEnd,k=r.onLeaveEnd,A=r.onVisibleChanged,F=Mc(Yc(),2),O=F[0],S=F[1],P=Mc(Yc("none"),2),T=P[0],M=P[1],_=Mc(Yc(null),2),L=_[0],j=_[1],I=g(!1),N=g(null);function R(){return n()}var z=g(!1);function V(e){var t=R();if(!e||e.deadline||e.target===t){var n,r=z.current;"appear"===T&&r?n=null==E?void 0:E(t,e):"enter"===T&&r?n=null==B?void 0:B(t,e):"leave"===T&&r&&(n=null==k?void 0:k(t,e)),"none"!==T&&r&&!1!==n&&(M("none",!0),j(null,!0))}}var W=function(e){var t=g(),n=g(e);n.current=e;var r=s.useCallback((function(e){n.current(e)}),[]);function o(e){e&&(e.removeEventListener(Xc,r),e.removeEventListener(qc,r))}return s.useEffect((function(){return function(){o(t.current)}}),[]),[function(e){t.current&&t.current!==e&&o(t.current),e&&e!==t.current&&(e.addEventListener(Xc,r),e.addEventListener(qc,r),t.current=e)},o]}(V),H=Mc(W,1)[0],$=s.useMemo((function(){var e,t,n;switch(T){case"appear":return Ys(e={},"prepare",h),Ys(e,"start",y),Ys(e,"active",D),e;case"enter":return Ys(t={},"prepare",v),Ys(t,"start",b),Ys(t,"active",w),t;case"leave":return Ys(n={},"prepare",m),Ys(n,"start",C),Ys(n,"active",x),n;default:return{}}}),[T]),U=Mc(Qc(T,(function(e){if("prepare"===e){var t=$.prepare;return!!t&&t(R())}var n;X in $&&j((null===(n=$[X])||void 0===n?void 0:n.call($,R(),null))||null);return"active"===X&&(H(R()),d>0&&(clearTimeout(N.current),N.current=setTimeout((function(){V({deadline:!0})}),d))),true})),2),q=U[0],X=U[1],K=Jc(X);z.current=K,Gc((function(){S(t);var n,r=I.current;(I.current=!0,e)&&(!r&&t&&u&&(n="appear"),r&&t&&i&&(n="enter"),(r&&!t&&c||!r&&p&&!t&&c)&&(n="leave"),n&&(M(n),q()))}),[t]),f((function(){("appear"===T&&!u||"enter"===T&&!i||"leave"===T&&!c)&&M("none")}),[u,i,c]),f((function(){return function(){I.current=!1,clearTimeout(N.current)}}),[]);var Y=s.useRef(!1);f((function(){O&&(Y.current=!0),void 0!==O&&"none"===T&&((Y.current||O)&&(null==A||A(O)),Y.current=!0)}),[O,T]);var G=L;return $.prepare&&"start"===X&&(G=Zs({transition:"none"},G)),[T,X,G,null!=O?O:t]}var td=function(e){oc(n,s.Component);var t=uc(n);function n(){return Qs(this,n),t.apply(this,arguments)}return tc(n,[{key:"render",value:function(){return this.props.children}}]),n}();var nd=function(e){var t=e;function n(e){return!(!e.motionName||!t)}"object"===Xs(e)&&(t=e.transitionSupport);var r=s.forwardRef((function(e,t){var r=e.visible,o=void 0===r||r,i=e.removeOnLeave,a=void 0===i||i,u=e.forceRender,l=e.children,c=e.motionName,d=e.leavedClassName,f=e.eventProps,p=n(e),h=g(),v=g();var m=Mc(ed(p,o,(function(){try{return h.current instanceof HTMLElement?h.current:vc(v.current)}catch(e){return null}}),e),4),y=m[0],b=m[1],C=m[2],D=m[3],w=s.useRef(D);D&&(w.current=!0);var x,E=s.useCallback((function(e){h.current=e,wc(t,e)}),[t]),B=Zs(Zs({},f),{},{visible:o});if(l)if("none"!==y&&n(e)){var k,A;"prepare"===b?A="prepare":Jc(b)?A="active":"start"===b&&(A="start"),x=l(Zs(Zs({},B),{},{className:Oc(Kc(c,y),(k={},Ys(k,Kc(c,"".concat(y,"-").concat(A)),A),Ys(k,c,"string"==typeof c),k)),style:C}),E)}else x=D?l(Zs({},B),E):!a&&w.current?l(Zs(Zs({},B),{},{className:d}),E):u?l(Zs(Zs({},B),{},{style:{display:"none"}}),E):null;else x=null;s.isValidElement(x)&&Ec(x)&&(x.ref||(x=s.cloneElement(x,{ref:E})));return s.createElement(td,{ref:v},x)}));return r.displayName="CSSMotion",r}(Uc);function rd(e){var t;return Zs(Zs({},t=e&&"object"===Xs(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function od(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(rd)}function id(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,o=t.length,i=od(e),a=od(t);i.forEach((function(e){for(var t=!1,i=r;i<o;i+=1){var u=a[i];if(u.key===e.key){r<i&&(n=n.concat(a.slice(r,i).map((function(e){return Zs(Zs({},e),{},{status:"add"})}))),r=i),n.push(Zs(Zs({},u),{},{status:"keep"})),r+=1,t=!0;break}}t||n.push(Zs(Zs({},e),{},{status:"remove"}))})),r<o&&(n=n.concat(a.slice(r).map((function(e){return Zs(Zs({},e),{},{status:"add"})}))));var u={};n.forEach((function(e){var t=e.key;u[t]=(u[t]||0)+1}));var l=Object.keys(u).filter((function(e){return u[e]>1}));return l.forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||"remove"!==r}))).forEach((function(t){t.key===e&&(t.status="keep")}))})),n}var ad=["component","children","onVisibleChanged","onAllRemoved"],ud=["status"],ld=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];var sd=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:nd,n=function(e){oc(r,s.Component);var n=uc(r);function r(){var e;Qs(this,r);for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return(e=n.call.apply(n,[this].concat(o))).state={keyEntities:[]},e.removeKey=function(t){var n=e.state.keyEntities.map((function(e){return e.key!==t?e:Zs(Zs({},e),{},{status:"removed"})}));return e.setState({keyEntities:n}),n.filter((function(e){return"removed"!==e.status})).length},e}return tc(r,[{key:"render",value:function(){var e=this,n=this.state.keyEntities,r=this.props,o=r.component,i=r.children,a=r.onVisibleChanged,u=r.onAllRemoved,l=Js(r,ad),c=o||s.Fragment,d={};return ld.forEach((function(e){d[e]=l[e],delete l[e]})),delete l.keys,s.createElement(c,l,n.map((function(n){var r=n.status,o=Js(n,ud),l="add"===r||"keep"===r;return s.createElement(t,qs({},d,{key:o.key,visible:l,eventProps:o,onVisibleChanged:function(t){(null==a||a(t,{key:o.key}),t)||0===e.removeKey(o.key)&&u&&u()}}),i)})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,o=od(n);return{keyEntities:id(r,o).filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||"removed"!==t.status||"remove"!==e.status}))}}}]),r}();return n.defaultProps={component:"div"},n}(Uc);function cd(e){var t=e.prefixCls,n=e.motion,r=e.animation,o=e.transitionName;return n||(r?{motionName:"".concat(t,"-").concat(r)}:o?{motionName:o}:null)}function dd(e){var t=e.prefixCls,n=e.visible,r=e.zIndex,o=e.mask,i=e.maskMotion,a=e.maskAnimation,u=e.maskTransitionName;if(!o)return null;var l={};return(i||u||a)&&(l=Zs({motionAppear:!0},cd({motion:i,prefixCls:t,transitionName:u,animation:a}))),s.createElement(nd,qs({},l,{visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return s.createElement("div",{style:{zIndex:r},className:Oc("".concat(t,"-mask"),n)})}))}var fd,pd=function(e){if(!e)return!1;if(e instanceof HTMLElement&&e.offsetParent)return!0;if(e instanceof SVGGraphicsElement&&e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e instanceof HTMLElement&&e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}return!1};function hd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hd(Object(n),!0).forEach((function(t){md(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gd(e){return gd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gd(e)}function md(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yd={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function bd(){if(void 0!==fd)return fd;fd="";var e=document.createElement("p").style;for(var t in yd)t+"Transform"in e&&(fd=t);return fd}function Cd(){return bd()?"".concat(bd(),"TransitionProperty"):"transitionProperty"}function Dd(){return bd()?"".concat(bd(),"Transform"):"transform"}function wd(e,t){var n=Cd();n&&(e.style[n]=t,"transitionProperty"!==n&&(e.style.transitionProperty=t))}function xd(e,t){var n=Dd();n&&(e.style[n]=t,"transform"!==n&&(e.style.transform=t))}var Ed,Bd=/matrix\((.*)\)/,kd=/matrix3d\((.*)\)/;function Ad(e){var t=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=t}function Fd(e,t,n){var r=n;if("object"!==gd(t))return void 0!==r?("number"==typeof r&&(r="".concat(r,"px")),void(e.style[t]=r)):Ed(e,t);for(var o in t)t.hasOwnProperty(o)&&Fd(e,o,t[o])}function Od(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if("number"!=typeof n){var o=e.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}function Sd(e){return Od(e)}function Pd(e){return Od(e,!0)}function Td(e){var t=function(e){var t,n,r,o=e.ownerDocument,i=o.body,a=o&&o.documentElement;return t=e.getBoundingClientRect(),n=Math.floor(t.left),r=Math.floor(t.top),{left:n-=a.clientLeft||i.clientLeft||0,top:r-=a.clientTop||i.clientTop||0}}(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=Sd(r),t.top+=Pd(r),t}function Md(e){return null!=e&&e==e.window}function _d(e){return Md(e)?e.document:9===e.nodeType?e:e.ownerDocument}var Ld=new RegExp("^(".concat(/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,")(?!px)[a-z%]+$"),"i"),jd=/^(top|right|bottom|left)$/;function Id(e,t){return"left"===e?t.useCssRight?"right":e:t.useCssBottom?"bottom":e}function Nd(e){return"left"===e?"right":"right"===e?"left":"top"===e?"bottom":"bottom"===e?"top":void 0}function Rd(e,t,n){"static"===Fd(e,"position")&&(e.style.position="relative");var r=-999,o=-999,i=Id("left",n),a=Id("top",n),u=Nd(i),l=Nd(a);"left"!==i&&(r=999),"top"!==a&&(o=999);var s,c="",d=Td(e);("left"in t||"top"in t)&&(c=(s=e).style.transitionProperty||s.style[Cd()]||"",wd(e,"none")),"left"in t&&(e.style[u]="",e.style[i]="".concat(r,"px")),"top"in t&&(e.style[l]="",e.style[a]="".concat(o,"px")),Ad(e);var f=Td(e),p={};for(var h in t)if(t.hasOwnProperty(h)){var v=Id(h,n),g="left"===h?r:o,m=d[h]-f[h];p[v]=v===h?g+m:g-m}Fd(e,p),Ad(e),("left"in t||"top"in t)&&wd(e,c);var y={};for(var b in t)if(t.hasOwnProperty(b)){var C=Id(b,n),D=t[b]-d[b];y[C]=b===C?p[C]+D:p[C]-D}Fd(e,y)}function zd(e,t){var n=Td(e),r=function(e){var t=window.getComputedStyle(e,null),n=t.getPropertyValue("transform")||t.getPropertyValue(Dd());if(n&&"none"!==n){var r=n.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(r[12]||r[4],0),y:parseFloat(r[13]||r[5],0)}}return{x:0,y:0}}(e),o={x:r.x,y:r.y};"left"in t&&(o.x=r.x+t.left-n.left),"top"in t&&(o.y=r.y+t.top-n.top),function(e,t){var n=window.getComputedStyle(e,null),r=n.getPropertyValue("transform")||n.getPropertyValue(Dd());if(r&&"none"!==r){var o,i=r.match(Bd);i?((o=(i=i[1]).split(",").map((function(e){return parseFloat(e,10)})))[4]=t.x,o[5]=t.y,xd(e,"matrix(".concat(o.join(","),")"))):((o=r.match(kd)[1].split(",").map((function(e){return parseFloat(e,10)})))[12]=t.x,o[13]=t.y,xd(e,"matrix3d(".concat(o.join(","),")")))}else xd(e,"translateX(".concat(t.x,"px) translateY(").concat(t.y,"px) translateZ(0)"))}(e,o)}function Vd(e,t){for(var n=0;n<e.length;n++)t(e[n])}function Wd(e){return"border-box"===Ed(e,"boxSizing")}"undefined"!=typeof window&&(Ed=window.getComputedStyle?function(e,t,n){var r=n,o="",i=_d(e);return(r=r||i.defaultView.getComputedStyle(e,null))&&(o=r.getPropertyValue(t)||r[t]),o}:function(e,t){var n=e.currentStyle&&e.currentStyle[t];if(Ld.test(n)&&!jd.test(t)){var r=e.style,o=r.left,i=e.runtimeStyle.left;e.runtimeStyle.left=e.currentStyle.left,r.left="fontSize"===t?"1em":n||0,n=r.pixelLeft+"px",r.left=o,e.runtimeStyle.left=i}return""===n?"auto":n});var Hd=["margin","border","padding"];function $d(e,t,n){var r,o={},i=e.style;for(r in t)t.hasOwnProperty(r)&&(o[r]=i[r],i[r]=t[r]);for(r in n.call(e),t)t.hasOwnProperty(r)&&(i[r]=o[r])}function Ud(e,t,n){var r,o,i,a=0;for(o=0;o<t.length;o++)if(r=t[o])for(i=0;i<n.length;i++){var u=void 0;u="border"===r?"".concat(r).concat(n[i],"Width"):r+n[i],a+=parseFloat(Ed(e,u))||0}return a}var qd={getParent:function(e){var t=e;do{t=11===t.nodeType&&t.host?t.host:t.parentNode}while(t&&1!==t.nodeType&&9!==t.nodeType);return t}};function Xd(e,t,n){var r=n;if(Md(e))return"width"===t?qd.viewportWidth(e):qd.viewportHeight(e);if(9===e.nodeType)return"width"===t?qd.docWidth(e):qd.docHeight(e);var o="width"===t?["Left","Right"]:["Top","Bottom"],i="width"===t?Math.floor(e.getBoundingClientRect().width):Math.floor(e.getBoundingClientRect().height),a=Wd(e),u=0;(null==i||i<=0)&&(i=void 0,(null==(u=Ed(e,t))||Number(u)<0)&&(u=e.style[t]||0),u=parseFloat(u)||0),void 0===r&&(r=a?1:-1);var l=void 0!==i||a,s=i||u;return-1===r?l?s-Ud(e,["border","padding"],o):u:l?1===r?s:s+(2===r?-Ud(e,["border"],o):Ud(e,["margin"],o)):u+Ud(e,Hd.slice(r),o)}Vd(["Width","Height"],(function(e){qd["doc".concat(e)]=function(t){var n=t.document;return Math.max(n.documentElement["scroll".concat(e)],n.body["scroll".concat(e)],qd["viewport".concat(e)](n))},qd["viewport".concat(e)]=function(t){var n="client".concat(e),r=t.document,o=r.body,i=r.documentElement[n];return"CSS1Compat"===r.compatMode&&i||o&&o[n]||i}}));var Kd={position:"absolute",visibility:"hidden",display:"block"};function Yd(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,o=t[0];return 0!==o.offsetWidth?r=Xd.apply(void 0,t):$d(o,Kd,(function(){r=Xd.apply(void 0,t)})),r}function Gd(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}Vd(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);qd["outer".concat(t)]=function(t,n){return t&&Yd(t,e,n?0:1)};var n="width"===e?["Left","Right"]:["Top","Bottom"];qd[e]=function(t,r){var o=r;return void 0!==o?t?(Wd(t)&&(o+=Ud(t,["padding","border"],n)),Fd(t,e,o)):void 0:t&&Yd(t,e,-1)}}));var Zd={getWindow:function(e){if(e&&e.document&&e.setTimeout)return e;var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},getDocument:_d,offset:function(e,t,n){if(void 0===t)return Td(e);!function(e,t,n){if(n.ignoreShake){var r=Td(e),o=r.left.toFixed(0),i=r.top.toFixed(0),a=t.left.toFixed(0),u=t.top.toFixed(0);if(o===a&&i===u)return}n.useCssRight||n.useCssBottom?Rd(e,t,n):n.useCssTransform&&Dd()in document.body.style?zd(e,t):Rd(e,t,n)}(e,t,n||{})},isWindow:Md,each:Vd,css:Fd,clone:function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);if(e.overflow)for(t in e)e.hasOwnProperty(t)&&(n.overflow[t]=e.overflow[t]);return n},mix:Gd,getWindowScrollLeft:function(e){return Sd(e)},getWindowScrollTop:function(e){return Pd(e)},merge:function(){for(var e={},t=0;t<arguments.length;t++)Zd.mix(e,t<0||arguments.length<=t?void 0:arguments[t]);return e},viewportWidth:0,viewportHeight:0};Gd(Zd,qd);var Jd=Zd.getParent;function Qd(e){if(Zd.isWindow(e)||9===e.nodeType)return null;var t,n=Zd.getDocument(e).body,r=Zd.css(e,"position");if(!("fixed"===r||"absolute"===r))return"html"===e.nodeName.toLowerCase()?null:Jd(e);for(t=Jd(e);t&&t!==n&&9!==t.nodeType;t=Jd(t))if("static"!==(r=Zd.css(t,"position")))return t;return null}var ef=Zd.getParent;function tf(e,t){for(var n={left:0,right:1/0,top:0,bottom:1/0},r=Qd(e),o=Zd.getDocument(e),i=o.defaultView||o.parentWindow,a=o.body,u=o.documentElement;r;){if(-1!==navigator.userAgent.indexOf("MSIE")&&0===r.clientWidth||r===a||r===u||"visible"===Zd.css(r,"overflow")){if(r===a||r===u)break}else{var l=Zd.offset(r);l.left+=r.clientLeft,l.top+=r.clientTop,n.top=Math.max(n.top,l.top),n.right=Math.min(n.right,l.left+r.clientWidth),n.bottom=Math.min(n.bottom,l.top+r.clientHeight),n.left=Math.max(n.left,l.left)}r=Qd(r)}var s=null;Zd.isWindow(e)||9===e.nodeType||(s=e.style.position,"absolute"===Zd.css(e,"position")&&(e.style.position="fixed"));var c=Zd.getWindowScrollLeft(i),d=Zd.getWindowScrollTop(i),f=Zd.viewportWidth(i),p=Zd.viewportHeight(i),h=u.scrollWidth,v=u.scrollHeight,g=window.getComputedStyle(a);if("hidden"===g.overflowX&&(h=i.innerWidth),"hidden"===g.overflowY&&(v=i.innerHeight),e.style&&(e.style.position=s),t||function(e){if(Zd.isWindow(e)||9===e.nodeType)return!1;var t=Zd.getDocument(e),n=t.body,r=null;for(r=ef(e);r&&r!==n&&r!==t;r=ef(r))if("fixed"===Zd.css(r,"position"))return!0;return!1}(e))n.left=Math.max(n.left,c),n.top=Math.max(n.top,d),n.right=Math.min(n.right,c+f),n.bottom=Math.min(n.bottom,d+p);else{var m=Math.max(h,c+f);n.right=Math.min(n.right,m);var y=Math.max(v,d+p);n.bottom=Math.min(n.bottom,y)}return n.top>=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function nf(e){var t,n,r;if(Zd.isWindow(e)||9===e.nodeType){var o=Zd.getWindow(e);t={left:Zd.getWindowScrollLeft(o),top:Zd.getWindowScrollTop(o)},n=Zd.viewportWidth(o),r=Zd.viewportHeight(o)}else t=Zd.offset(e),n=Zd.outerWidth(e),r=Zd.outerHeight(e);return t.width=n,t.height=r,t}function rf(e,t){var n=t.charAt(0),r=t.charAt(1),o=e.width,i=e.height,a=e.left,u=e.top;return"c"===n?u+=i/2:"b"===n&&(u+=i),"c"===r?a+=o/2:"r"===r&&(a+=o),{left:a,top:u}}function of(e,t,n,r,o){var i=rf(t,n[1]),a=rf(e,n[0]),u=[a.left-i.left,a.top-i.top];return{left:Math.round(e.left-u[0]+r[0]-o[0]),top:Math.round(e.top-u[1]+r[1]-o[1])}}function af(e,t,n){return e.left<n.left||e.left+t.width>n.right}function uf(e,t,n){return e.top<n.top||e.top+t.height>n.bottom}function lf(e,t,n){var r=[];return Zd.each(e,(function(e){r.push(e.replace(t,(function(e){return n[e]})))})),r}function sf(e,t){return e[t]=-e[t],e}function cf(e,t){return(/%$/.test(e)?parseInt(e.substring(0,e.length-1),10)/100*t:parseInt(e,10))||0}function df(e,t){e[0]=cf(e[0],t.width),e[1]=cf(e[1],t.height)}function ff(e,t,n,r){var o=n.points,i=n.offset||[0,0],a=n.targetOffset||[0,0],u=n.overflow,l=n.source||e;i=[].concat(i),a=[].concat(a);var s={},c=0,d=tf(l,!(!(u=u||{})||!u.alwaysByViewport)),f=nf(l);df(i,f),df(a,t);var p=of(f,t,o,i,a),h=Zd.merge(f,p);if(d&&(u.adjustX||u.adjustY)&&r){if(u.adjustX&&af(p,f,d)){var v=lf(o,/[lr]/gi,{l:"r",r:"l"}),g=sf(i,0),m=sf(a,0);(function(e,t,n){return e.left>n.right||e.left+t.width<n.left})(of(f,t,v,g,m),f,d)||(c=1,o=v,i=g,a=m)}if(u.adjustY&&uf(p,f,d)){var y=lf(o,/[tb]/gi,{t:"b",b:"t"}),b=sf(i,1),C=sf(a,1);(function(e,t,n){return e.top>n.bottom||e.top+t.height<n.top})(of(f,t,y,b,C),f,d)||(c=1,o=y,i=b,a=C)}c&&(p=of(f,t,o,i,a),Zd.mix(h,p));var D=af(p,f,d),w=uf(p,f,d);if(D||w){var x=o;D&&(x=lf(o,/[lr]/gi,{l:"r",r:"l"})),w&&(x=lf(o,/[tb]/gi,{t:"b",b:"t"})),o=x,i=n.offset||[0,0],a=n.targetOffset||[0,0]}s.adjustX=u.adjustX&&D,s.adjustY=u.adjustY&&w,(s.adjustX||s.adjustY)&&(h=function(e,t,n,r){var o=Zd.clone(e),i={width:t.width,height:t.height};return r.adjustX&&o.left<n.left&&(o.left=n.left),r.resizeWidth&&o.left>=n.left&&o.left+i.width>n.right&&(i.width-=o.left+i.width-n.right),r.adjustX&&o.left+i.width>n.right&&(o.left=Math.max(n.right-i.width,n.left)),r.adjustY&&o.top<n.top&&(o.top=n.top),r.resizeHeight&&o.top>=n.top&&o.top+i.height>n.bottom&&(i.height-=o.top+i.height-n.bottom),r.adjustY&&o.top+i.height>n.bottom&&(o.top=Math.max(n.bottom-i.height,n.top)),Zd.mix(o,i)}(p,f,d,s))}return h.width!==f.width&&Zd.css(l,"width",Zd.width(l)+h.width-f.width),h.height!==f.height&&Zd.css(l,"height",Zd.height(l)+h.height-f.height),Zd.offset(l,{left:h.left,top:h.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:o,offset:i,targetOffset:a,overflow:s}}function pf(e,t,n){var r=n.target||t,o=nf(r),i=!function(e,t){var n=tf(e,t),r=nf(e);return!n||r.left+r.width<=n.left||r.top+r.height<=n.top||r.left>=n.right||r.top>=n.bottom}(r,n.overflow&&n.overflow.alwaysByViewport);return ff(e,o,n,i)}pf.__getOffsetParent=Qd,pf.__getVisibleRectForElement=tf;var hf=function(){this.__data__=[],this.size=0};var vf=function(e,t){return e===t||e!=e&&t!=t},gf=vf;var mf=function(e,t){for(var n=e.length;n--;)if(gf(e[n][0],t))return n;return-1},yf=mf,bf=Array.prototype.splice;var Cf=function(e){var t=this.__data__,n=yf(t,e);return!(n<0)&&(n==t.length-1?t.pop():bf.call(t,n,1),--this.size,!0)},Df=mf;var wf=function(e){var t=this.__data__,n=Df(t,e);return n<0?void 0:t[n][1]},xf=mf;var Ef=mf;var Bf=function(e,t){var n=this.__data__,r=Ef(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},kf=hf,Af=Cf,Ff=wf,Of=function(e){return xf(this.__data__,e)>-1},Sf=Bf;function Pf(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Pf.prototype.clear=kf,Pf.prototype.delete=Af,Pf.prototype.get=Ff,Pf.prototype.has=Of,Pf.prototype.set=Sf;var Tf=Pf,Mf=Tf;var _f=function(){this.__data__=new Mf,this.size=0};var Lf=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var jf=function(e){return this.__data__.get(e)};var If=function(e){return this.__data__.has(e)},Nf=ei,Rf=Po;var zf,Vf=function(e){if(!Rf(e))return!1;var t=Nf(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Wf=Lo["__core-js_shared__"],Hf=(zf=/[^.]+$/.exec(Wf&&Wf.keys&&Wf.keys.IE_PROTO||""))?"Symbol(src)_1."+zf:"";var $f=function(e){return!!Hf&&Hf in e},Uf=Function.prototype.toString;var qf=function(e){if(null!=e){try{return Uf.call(e)}catch(e){}try{return e+""}catch(e){}}return""},Xf=Vf,Kf=$f,Yf=Po,Gf=qf,Zf=/^\[object .+?Constructor\]$/,Jf=Function.prototype,Qf=Object.prototype,ep=Jf.toString,tp=Qf.hasOwnProperty,np=RegExp("^"+ep.call(tp).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var rp=function(e){return!(!Yf(e)||Kf(e))&&(Xf(e)?np:Zf).test(Gf(e))},op=function(e,t){return null==e?void 0:e[t]};var ip=function(e,t){var n=op(e,t);return rp(n)?n:void 0},ap=ip(Lo,"Map"),up=ip(Object,"create"),lp=up;var sp=function(){this.__data__=lp?lp(null):{},this.size=0};var cp=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},dp=up,fp=Object.prototype.hasOwnProperty;var pp=function(e){var t=this.__data__;if(dp){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return fp.call(t,e)?t[e]:void 0},hp=up,vp=Object.prototype.hasOwnProperty;var gp=up;var mp=sp,yp=cp,bp=pp,Cp=function(e){var t=this.__data__;return hp?void 0!==t[e]:vp.call(t,e)},Dp=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=gp&&void 0===t?"__lodash_hash_undefined__":t,this};function wp(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}wp.prototype.clear=mp,wp.prototype.delete=yp,wp.prototype.get=bp,wp.prototype.has=Cp,wp.prototype.set=Dp;var xp=wp,Ep=Tf,Bp=ap;var kp=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Ap=function(e,t){var n=e.__data__;return kp(t)?n["string"==typeof t?"string":"hash"]:n.map},Fp=Ap;var Op=Ap;var Sp=Ap;var Pp=Ap;var Tp=function(){this.size=0,this.__data__={hash:new xp,map:new(Bp||Ep),string:new xp}},Mp=function(e){var t=Fp(this,e).delete(e);return this.size-=t?1:0,t},_p=function(e){return Op(this,e).get(e)},Lp=function(e){return Sp(this,e).has(e)},jp=function(e,t){var n=Pp(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function Ip(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ip.prototype.clear=Tp,Ip.prototype.delete=Mp,Ip.prototype.get=_p,Ip.prototype.has=Lp,Ip.prototype.set=jp;var Np=Ip,Rp=Tf,zp=ap,Vp=Np;var Wp=Tf,Hp=_f,$p=Lf,Up=jf,qp=If,Xp=function(e,t){var n=this.__data__;if(n instanceof Rp){var r=n.__data__;if(!zp||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Vp(r)}return n.set(e,t),this.size=n.size,this};function Kp(e){var t=this.__data__=new Wp(e);this.size=t.size}Kp.prototype.clear=Hp,Kp.prototype.delete=$p,Kp.prototype.get=Up,Kp.prototype.has=qp,Kp.prototype.set=Xp;var Yp=Kp;var Gp=Np,Zp=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Jp=function(e){return this.__data__.has(e)};function Qp(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Gp;++t<n;)this.add(e[t])}Qp.prototype.add=Qp.prototype.push=Zp,Qp.prototype.has=Jp;var eh=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1};var th=Qp,nh=eh,rh=function(e,t){return e.has(t)};var oh=function(e,t,n,r,o,i){var a=1&n,u=e.length,l=t.length;if(u!=l&&!(a&&l>u))return!1;var s=i.get(e),c=i.get(t);if(s&&c)return s==t&&c==e;var d=-1,f=!0,p=2&n?new th:void 0;for(i.set(e,t),i.set(t,e);++d<u;){var h=e[d],v=t[d];if(r)var g=a?r(v,h,d,t,e,i):r(h,v,d,e,t,i);if(void 0!==g){if(g)continue;f=!1;break}if(p){if(!nh(t,(function(e,t){if(!rh(p,t)&&(h===e||o(h,e,n,r,i)))return p.push(t)}))){f=!1;break}}else if(h!==v&&!o(h,v,n,r,i)){f=!1;break}}return i.delete(e),i.delete(t),f};var ih=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n};var ah=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},uh=Lo.Uint8Array,lh=vf,sh=oh,ch=ih,dh=ah,fh=Ho?Ho.prototype:void 0,ph=fh?fh.valueOf:void 0;var hh=function(e,t,n,r,o,i,a){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!i(new uh(e),new uh(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return lh(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var u=ch;case"[object Set]":var l=1&r;if(u||(u=dh),e.size!=t.size&&!l)return!1;var s=a.get(e);if(s)return s==t;r|=2,a.set(e,t);var c=sh(u(e),u(t),r,o,i,a);return a.delete(e),c;case"[object Symbol]":if(ph)return ph.call(e)==ph.call(t)}return!1};var vh=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e},gh=Array.isArray,mh=vh,yh=gh;var bh=function(e,t,n){var r=t(e);return yh(e)?r:mh(r,n(e))};var Ch=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i};var Dh=Ch,wh=function(){return[]},xh=Object.prototype.propertyIsEnumerable,Eh=Object.getOwnPropertySymbols,Bh=Eh?function(e){return null==e?[]:(e=Object(e),Dh(Eh(e),(function(t){return xh.call(e,t)})))}:wh;var kh=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r},Ah=ei,Fh=ti;var Oh=function(e){return Fh(e)&&"[object Arguments]"==Ah(e)},Sh=ti,Ph=Object.prototype,Th=Ph.hasOwnProperty,Mh=Ph.propertyIsEnumerable,_h=Oh(function(){return arguments}())?Oh:function(e){return Sh(e)&&Th.call(e,"callee")&&!Mh.call(e,"callee")},Lh={exports:{}};var jh=function(){return!1};!function(e,t){var n=Lo,r=jh,o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?n.Buffer:void 0,u=(a?a.isBuffer:void 0)||r;e.exports=u}(Lh,Lh.exports);var Ih=/^(?:0|[1-9]\d*)$/;var Nh=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Ih.test(e))&&e>-1&&e%1==0&&e<t};var Rh=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},zh=ei,Vh=Rh,Wh=ti,Hh={};Hh["[object Float32Array]"]=Hh["[object Float64Array]"]=Hh["[object Int8Array]"]=Hh["[object Int16Array]"]=Hh["[object Int32Array]"]=Hh["[object Uint8Array]"]=Hh["[object Uint8ClampedArray]"]=Hh["[object Uint16Array]"]=Hh["[object Uint32Array]"]=!0,Hh["[object Arguments]"]=Hh["[object Array]"]=Hh["[object ArrayBuffer]"]=Hh["[object Boolean]"]=Hh["[object DataView]"]=Hh["[object Date]"]=Hh["[object Error]"]=Hh["[object Function]"]=Hh["[object Map]"]=Hh["[object Number]"]=Hh["[object Object]"]=Hh["[object RegExp]"]=Hh["[object Set]"]=Hh["[object String]"]=Hh["[object WeakMap]"]=!1;var $h=function(e){return Wh(e)&&Vh(e.length)&&!!Hh[zh(e)]};var Uh=function(e){return function(t){return e(t)}},qh={exports:{}};!function(e,t){var n=To,r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,i=o&&o.exports===r&&n.process,a=function(){try{var e=o&&o.require&&o.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=a}(qh,qh.exports);var Xh=$h,Kh=Uh,Yh=qh.exports,Gh=Yh&&Yh.isTypedArray,Zh=Gh?Kh(Gh):Xh,Jh=kh,Qh=_h,ev=gh,tv=Lh.exports,nv=Nh,rv=Zh,ov=Object.prototype.hasOwnProperty;var iv=function(e,t){var n=ev(e),r=!n&&Qh(e),o=!n&&!r&&tv(e),i=!n&&!r&&!o&&rv(e),a=n||r||o||i,u=a?Jh(e.length,String):[],l=u.length;for(var s in e)!t&&!ov.call(e,s)||a&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||nv(s,l))||u.push(s);return u},av=Object.prototype;var uv=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||av)};var lv=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),sv=uv,cv=lv,dv=Object.prototype.hasOwnProperty;var fv=Vf,pv=Rh;var hv=iv,vv=function(e){if(!sv(e))return cv(e);var t=[];for(var n in Object(e))dv.call(e,n)&&"constructor"!=n&&t.push(n);return t},gv=function(e){return null!=e&&pv(e.length)&&!fv(e)};var mv=bh,yv=Bh,bv=function(e){return gv(e)?hv(e):vv(e)};var Cv=function(e){return mv(e,bv,yv)},Dv=Object.prototype.hasOwnProperty;var wv=function(e,t,n,r,o,i){var a=1&n,u=Cv(e),l=u.length;if(l!=Cv(t).length&&!a)return!1;for(var s=l;s--;){var c=u[s];if(!(a?c in t:Dv.call(t,c)))return!1}var d=i.get(e),f=i.get(t);if(d&&f)return d==t&&f==e;var p=!0;i.set(e,t),i.set(t,e);for(var h=a;++s<l;){var v=e[c=u[s]],g=t[c];if(r)var m=a?r(g,v,c,t,e,i):r(v,g,c,e,t,i);if(!(void 0===m?v===g||o(v,g,n,r,i):m)){p=!1;break}h||(h="constructor"==c)}if(p&&!h){var y=e.constructor,b=t.constructor;y==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b||(p=!1)}return i.delete(e),i.delete(t),p},xv=ip(Lo,"DataView"),Ev=ap,Bv=ip(Lo,"Promise"),kv=ip(Lo,"Set"),Av=ip(Lo,"WeakMap"),Fv=ei,Ov=qf,Sv=Ov(xv),Pv=Ov(Ev),Tv=Ov(Bv),Mv=Ov(kv),_v=Ov(Av),Lv=Fv;(xv&&"[object DataView]"!=Lv(new xv(new ArrayBuffer(1)))||Ev&&"[object Map]"!=Lv(new Ev)||Bv&&"[object Promise]"!=Lv(Bv.resolve())||kv&&"[object Set]"!=Lv(new kv)||Av&&"[object WeakMap]"!=Lv(new Av))&&(Lv=function(e){var t=Fv(e),n="[object Object]"==t?e.constructor:void 0,r=n?Ov(n):"";if(r)switch(r){case Sv:return"[object DataView]";case Pv:return"[object Map]";case Tv:return"[object Promise]";case Mv:return"[object Set]";case _v:return"[object WeakMap]"}return t});var jv=Yp,Iv=oh,Nv=hh,Rv=wv,zv=Lv,Vv=gh,Wv=Lh.exports,Hv=Zh,$v="[object Object]",Uv=Object.prototype.hasOwnProperty;var qv=function(e,t,n,r,o,i){var a=Vv(e),u=Vv(t),l=a?"[object Array]":zv(e),s=u?"[object Array]":zv(t),c=(l="[object Arguments]"==l?$v:l)==$v,d=(s="[object Arguments]"==s?$v:s)==$v,f=l==s;if(f&&Wv(e)){if(!Wv(t))return!1;a=!0,c=!1}if(f&&!c)return i||(i=new jv),a||Hv(e)?Iv(e,t,n,r,o,i):Nv(e,t,l,n,r,o,i);if(!(1&n)){var p=c&&Uv.call(e,"__wrapped__"),h=d&&Uv.call(t,"__wrapped__");if(p||h){var v=p?e.value():e,g=h?t.value():t;return i||(i=new jv),o(v,g,n,r,i)}}return!!f&&(i||(i=new jv),Rv(e,t,n,r,o,i))},Xv=ti;var Kv=function e(t,n,r,o,i){return t===n||(null==t||null==n||!Xv(t)&&!Xv(n)?t!=t&&n!=n:qv(t,n,r,o,e,i))},Yv=Kv;var Gv=function(e,t){return Yv(e,t)},Zv=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),Jv="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,Qv="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),eg="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(Qv):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var tg=["top","right","bottom","left","width","height","size","weight"],ng="undefined"!=typeof MutationObserver,rg=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&u()}function a(){eg(i)}function u(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!1,setTimeout(a,t);o=e}return u}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){Jv&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),ng?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){Jv&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;tg.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),og=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},ig=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||Qv},ag=fg(0,0,0,0);function ug(e){return parseFloat(e)||0}function lg(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+ug(e["border-"+n+"-width"])}),0)}function sg(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return ag;var r=ig(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=ug(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,u=ug(r.width),l=ug(r.height);if("border-box"===r.boxSizing&&(Math.round(u+i)!==t&&(u-=lg(r,"left","right")+i),Math.round(l+a)!==n&&(l-=lg(r,"top","bottom")+a)),!function(e){return e===ig(e).document.documentElement}(e)){var s=Math.round(u+i)-t,c=Math.round(l+a)-n;1!==Math.abs(s)&&(u-=s),1!==Math.abs(c)&&(l-=c)}return fg(o.left,o.top,u,l)}var cg="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof ig(e).SVGGraphicsElement}:function(e){return e instanceof ig(e).SVGElement&&"function"==typeof e.getBBox};function dg(e){return Jv?cg(e)?function(e){var t=e.getBBox();return fg(0,0,t.width,t.height)}(e):sg(e):ag}function fg(e,t,n,r){return{x:e,y:t,width:n,height:r}}var pg=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=fg(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=dg(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),hg=function(e,t){var n=function(e){var t=e.x,n=e.y,r=e.width,o=e.height,i="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(i.prototype);return og(a,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),a}(t);og(this,{target:e,contentRect:n})},vg=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new Zv,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof ig(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new pg(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof ig(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new hg(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),gg="undefined"!=typeof WeakMap?new WeakMap:new Zv,mg=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=rg.getInstance(),r=new vg(t,n,this);gg.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){mg.prototype[e]=function(){var t;return(t=gg.get(this))[e].apply(t,arguments)}}));var yg=void 0!==Qv.ResizeObserver?Qv.ResizeObserver:mg;function bg(e,t){var n=null,r=null;var o=new yg((function(e){var o=Mc(e,1)[0].target;if(document.documentElement.contains(o)){var i=o.getBoundingClientRect(),a=i.width,u=i.height,l=Math.floor(a),s=Math.floor(u);n===l&&r===s||Promise.resolve().then((function(){t({width:l,height:s})})),n=l,r=s}}));return e&&o.observe(e),function(){o.disconnect()}}function Cg(e){return"function"!=typeof e?null:e()}function Dg(e){return"object"===Xs(e)&&e?e:null}var wg=function(e,t){var n=e.children,r=e.disabled,o=e.target,i=e.align,a=e.onAlign,u=e.monitorWindowResize,l=e.monitorBufferTime,s=void 0===l?0:l,d=c.useRef({}),f=c.useRef(),p=c.Children.only(n),h=c.useRef({});h.current.disabled=r,h.current.target=o,h.current.align=i,h.current.onAlign=a;var v=function(e,t){var n=c.useRef(!1),r=c.useRef(null);function o(){window.clearTimeout(r.current)}return[function i(a){if(o(),n.current&&!0!==a)r.current=window.setTimeout((function(){n.current=!1,i()}),t);else{if(!1===e())return;n.current=!0,r.current=window.setTimeout((function(){n.current=!1}),t)}},function(){n.current=!1,o()}]}((function(){var e=h.current,t=e.disabled,n=e.target,r=e.align,o=e.onAlign;if(!t&&n){var i,a=f.current,u=Cg(n),l=Dg(n);d.current.element=u,d.current.point=l,d.current.align=r;var s=document.activeElement;return u&&pd(u)?i=pf(a,u,r):l&&(i=function(e,t,n){var r,o,i=Zd.getDocument(e),a=i.defaultView||i.parentWindow,u=Zd.getWindowScrollLeft(a),l=Zd.getWindowScrollTop(a),s=Zd.viewportWidth(a),c=Zd.viewportHeight(a),d={left:r="pageX"in t?t.pageX:u+t.clientX,top:o="pageY"in t?t.pageY:l+t.clientY,width:0,height:0},f=r>=0&&r<=u+s&&o>=0&&o<=l+c,p=[n.points[0],"cc"];return ff(e,d,vd(vd({},n),{},{points:p}),f)}(a,l,r)),function(e,t){e!==document.activeElement&&hc(t,e)&&"function"==typeof e.focus&&e.focus()}(s,a),o&&i&&o(a,i),!0}return!1}),s),g=Mc(v,2),m=g[0],y=g[1],b=c.useRef({cancel:function(){}}),C=c.useRef({cancel:function(){}});c.useEffect((function(){var e,t,n=Cg(o),r=Dg(o);f.current!==C.current.element&&(C.current.cancel(),C.current.element=f.current,C.current.cancel=bg(f.current,m)),d.current.element===n&&((e=d.current.point)===(t=r)||e&&t&&("pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t&&e.clientX===t.clientX&&e.clientY===t.clientY))&&Gv(d.current.align,i)||(m(),b.current.element!==n&&(b.current.cancel(),b.current.element=n,b.current.cancel=bg(n,m)))})),c.useEffect((function(){r?y():m()}),[r]);var D=c.useRef(null);return c.useEffect((function(){u?D.current||(D.current=Bc(window,"resize",m)):D.current&&(D.current.remove(),D.current=null)}),[u]),c.useEffect((function(){return function(){b.current.cancel(),C.current.cancel(),D.current&&D.current.remove(),y()}}),[]),c.useImperativeHandle(t,(function(){return{forceAlign:function(){return m(!0)}}})),c.isValidElement(p)&&(p=c.cloneElement(p,{ref:xc(p.ref,f)})),p},xg=c.forwardRef(wg);xg.displayName="Align";var Eg="test"!==process.env.NODE_ENV&&kc()?s.useLayoutEffect:s.useEffect;function Bg(){Bg=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function s(e,t,n,o){var i=t&&t.prototype instanceof f?t:f,a=Object.create(i.prototype),u=new B(o||[]);return r(a,"_invoke",{value:D(e,n,u)}),a}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var d={};function f(){}function p(){}function h(){}var v={};l(v,i,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(k([])));m&&m!==t&&n.call(m,i)&&(v=m);var y=h.prototype=f.prototype=Object.create(v);function b(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function o(r,i,a,u){var l=c(e[r],e,i);if("throw"!==l.type){var s=l.arg,d=s.value;return d&&"object"==Xs(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,a,u)}),(function(e){o("throw",e,a,u)})):t.resolve(d).then((function(e){s.value=e,a(s)}),(function(e){return o("throw",e,a,u)}))}u(l.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function D(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return A()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=w(a,n);if(u){if(u===d)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=c(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function w(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var o=c(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function B(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function k(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return p.prototype=h,r(y,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=l(h,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,l(e,u,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(C.prototype),l(C.prototype,a,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new C(s(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(y),l(y,u,"Generator"),l(y,i,(function(){return this})),l(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=k,B.prototype={constructor:B,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(u&&l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:k(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function kg(e,t,n,r,o,i,a){try{var u=e[i](a),l=u.value}catch(e){return void n(e)}u.done?t(l):Promise.resolve(l).then(r,o)}function Ag(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){kg(i,r,o,a,u,"next",e)}function u(e){kg(i,r,o,a,u,"throw",e)}a(void 0)}))}}var Fg=["measure","alignPre","align",null,"motion"],Og=s.forwardRef((function(e,t){var n=e.visible,r=e.prefixCls,o=e.className,i=e.style,a=e.children,u=e.zIndex,l=e.stretch,c=e.destroyPopupOnHide,p=e.forceRender,h=e.align,v=e.point,m=e.getRootDomNode,y=e.getClassNameFromAlign,b=e.onAlign,C=e.onMouseEnter,D=e.onMouseLeave,w=e.onMouseDown,x=e.onTouchStart,E=e.onClick,B=g(),k=g(),A=Mc(d(),2),F=A[0],O=A[1],S=function(e){var t=Mc(s.useState({width:0,height:0}),2),n=t[0],r=t[1];return[s.useMemo((function(){var t={};if(e){var r=n.width,o=n.height;-1!==e.indexOf("height")&&o?t.height=o:-1!==e.indexOf("minHeight")&&o&&(t.minHeight=o),-1!==e.indexOf("width")&&r?t.width=r:-1!==e.indexOf("minWidth")&&r&&(t.minWidth=r)}return t}),[e,n]),function(e){r({width:e.offsetWidth,height:e.offsetHeight})}]}(l),P=Mc(S,2),T=P[0],M=P[1];var _=function(e,t){var n=Mc(Yc(null),2),r=n[0],o=n[1],i=g();function a(e){o(e,!0)}function u(){pc.cancel(i.current)}return f((function(){a("measure")}),[e]),f((function(){"measure"===r&&t(),r&&(i.current=pc(Ag(Bg().mark((function e(){var t,n;return Bg().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=Fg.indexOf(r),(n=Fg[t+1])&&-1!==t&&a(n);case 3:case"end":return e.stop()}}),e)})))))}),[r]),f((function(){return function(){u()}}),[]),[r,function(e){u(),i.current=pc((function(){a((function(e){switch(r){case"align":return"motion";case"motion":return"stable"}return e})),null==e||e()}))}]}(n,(function(){l&&M(m())})),L=Mc(_,2),j=L[0],I=L[1],N=Mc(d(0),2),R=N[0],z=N[1],V=g();function W(){var e;null===(e=B.current)||void 0===e||e.forceAlign()}function H(e,t){var n=y(t);F!==n&&O(n),z((function(e){return e+1})),"align"===j&&(null==b||b(e,t))}Eg((function(){"alignPre"===j&&z(0)}),[j]),Eg((function(){"align"===j&&(R<2?W():I((function(){var e;null===(e=V.current)||void 0===e||e.call(V)})))}),[R]);var $=Zs({},cd(e));function U(){return new Promise((function(e){V.current=e}))}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach((function(e){var t=$[e];$[e]=function(e,n){return I(),null==t?void 0:t(e,n)}})),s.useEffect((function(){$.motionName||"motion"!==j||I()}),[$.motionName,j]),s.useImperativeHandle(t,(function(){return{forceAlign:W,getElement:function(){return k.current}}}));var q=Zs(Zs({},T),{},{zIndex:u,opacity:"motion"!==j&&"stable"!==j&&n?0:void 0,pointerEvents:n||"stable"===j?void 0:"none"},i),X=!0;!(null==h?void 0:h.points)||"align"!==j&&"stable"!==j||(X=!1);var K=a;return s.Children.count(a)>1&&(K=s.createElement("div",{className:"".concat(r,"-content")},a)),s.createElement(nd,qs({visible:n,ref:k,leavedClassName:"".concat(r,"-hidden")},$,{onAppearPrepare:U,onEnterPrepare:U,removeOnLeave:c,forceRender:p}),(function(e,t){var n=e.className,i=e.style,a=Oc(r,o,F,n);return s.createElement(xg,{target:v||m,key:"popup",ref:B,monitorWindowResize:!0,disabled:X,align:h,onAlign:H},s.createElement("div",{ref:t,className:a,onMouseEnter:C,onMouseLeave:D,onMouseDownCapture:w,onTouchStartCapture:x,onClick:E,style:Zs(Zs({},i),q)},K))}))}));Og.displayName="PopupInner";var Sg=s.forwardRef((function(e,t){var n=e.prefixCls,r=e.visible,o=e.zIndex,i=e.children,a=e.mobile,u=(a=void 0===a?{}:a).popupClassName,l=a.popupStyle,c=a.popupMotion,d=void 0===c?{}:c,f=a.popupRender,p=e.onClick,h=s.useRef();s.useImperativeHandle(t,(function(){return{forceAlign:function(){},getElement:function(){return h.current}}}));var v=Zs({zIndex:o},l),g=i;return s.Children.count(i)>1&&(g=s.createElement("div",{className:"".concat(n,"-content")},i)),f&&(g=f(g)),s.createElement(nd,qs({visible:r,ref:h,removeOnLeave:!0},d),(function(e,t){var r=e.className,o=e.style,i=Oc(n,u,r);return s.createElement("div",{ref:t,className:i,onClick:p,style:Zs(Zs({},o),v)},g)}))}));Sg.displayName="MobilePopupInner";var Pg=["visible","mobile"],Tg=s.forwardRef((function(e,t){var n=e.visible,r=e.mobile,o=Js(e,Pg),i=Mc(d(n),2),a=i[0],u=i[1],l=Mc(d(!1),2),c=l[0],p=l[1],h=Zs(Zs({},o),{},{visible:a});f((function(){u(n),n&&r&&p(function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))}())}),[n,r]);var v=c?s.createElement(Sg,qs({},h,{mobile:r,ref:t})):s.createElement(Og,qs({},h,{ref:t}));return s.createElement("div",null,s.createElement(dd,h),v)}));Tg.displayName="Popup";var Mg=s.createContext(null);function _g(){}function Lg(){return""}function jg(e){return e?e.ownerDocument:window.document}var Ig=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];var Ng=function(e){var t=function(t){oc(r,s.Component);var n=uc(r);function r(e){var t,o;return Qs(this,r),(t=n.call(this,e)).popupRef=s.createRef(),t.triggerRef=s.createRef(),t.portalContainer=void 0,t.attachId=void 0,t.clickOutsideHandler=void 0,t.touchOutsideHandler=void 0,t.contextMenuOutsideHandler1=void 0,t.contextMenuOutsideHandler2=void 0,t.mouseDownTimeout=void 0,t.focusTime=void 0,t.preClickTime=void 0,t.preTouchTime=void 0,t.delayTimer=void 0,t.hasPopupMouseDown=void 0,t.onMouseEnter=function(e){var n=t.props.mouseEnterDelay;t.fireEvents("onMouseEnter",e),t.delaySetPopupVisible(!0,n,n?null:e)},t.onMouseMove=function(e){t.fireEvents("onMouseMove",e),t.setPoint(e)},t.onMouseLeave=function(e){t.fireEvents("onMouseLeave",e),t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onPopupMouseEnter=function(){t.clearDelayTimer()},t.onPopupMouseLeave=function(e){var n;e.relatedTarget&&!e.relatedTarget.setTimeout&&hc(null===(n=t.popupRef.current)||void 0===n?void 0:n.getElement(),e.relatedTarget)||t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onFocus=function(e){t.fireEvents("onFocus",e),t.clearDelayTimer(),t.isFocusToShow()&&(t.focusTime=Date.now(),t.delaySetPopupVisible(!0,t.props.focusDelay))},t.onMouseDown=function(e){t.fireEvents("onMouseDown",e),t.preClickTime=Date.now()},t.onTouchStart=function(e){t.fireEvents("onTouchStart",e),t.preTouchTime=Date.now()},t.onBlur=function(e){t.fireEvents("onBlur",e),t.clearDelayTimer(),t.isBlurToHide()&&t.delaySetPopupVisible(!1,t.props.blurDelay)},t.onContextMenu=function(e){e.preventDefault(),t.fireEvents("onContextMenu",e),t.setPopupVisible(!0,e)},t.onContextMenuClose=function(){t.isContextMenuToShow()&&t.close()},t.onClick=function(e){if(t.fireEvents("onClick",e),t.focusTime){var n;if(t.preClickTime&&t.preTouchTime?n=Math.min(t.preClickTime,t.preTouchTime):t.preClickTime?n=t.preClickTime:t.preTouchTime&&(n=t.preTouchTime),Math.abs(n-t.focusTime)<20)return;t.focusTime=0}t.preClickTime=0,t.preTouchTime=0,t.isClickToShow()&&(t.isClickToHide()||t.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault();var r=!t.state.popupVisible;(t.isClickToHide()&&!r||r&&t.isClickToShow())&&t.setPopupVisible(!t.state.popupVisible,e)},t.onPopupMouseDown=function(){var e;(t.hasPopupMouseDown=!0,clearTimeout(t.mouseDownTimeout),t.mouseDownTimeout=window.setTimeout((function(){t.hasPopupMouseDown=!1}),0),t.context)&&(e=t.context).onPopupMouseDown.apply(e,arguments)},t.onDocumentClick=function(e){if(!t.props.mask||t.props.maskClosable){var n=e.target,r=t.getRootDomNode(),o=t.getPopupDomNode();hc(r,n)&&!t.isContextMenuOnly()||hc(o,n)||t.hasPopupMouseDown||t.close()}},t.getRootDomNode=function(){var e=t.props.getTriggerDOMNode;if(e)return e(t.triggerRef.current);try{var n=vc(t.triggerRef.current);if(n)return n}catch(e){}return q.findDOMNode(nc(t))},t.getPopupClassNameFromAlign=function(e){var n=[],r=t.props,o=r.popupPlacement,i=r.builtinPlacements,a=r.prefixCls,u=r.alignPoint,l=r.getPopupClassNameFromAlign;return o&&i&&n.push(function(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var u=i[a];if(Sc(e[u].points,o,r))return"".concat(t,"-placement-").concat(u)}return""}(i,a,e,u)),l&&n.push(l(e)),n.join(" ")},t.getComponent=function(){var e=t.props,n=e.prefixCls,r=e.destroyPopupOnHide,o=e.popupClassName,i=e.onPopupAlign,a=e.popupMotion,u=e.popupAnimation,l=e.popupTransitionName,c=e.popupStyle,d=e.mask,f=e.maskAnimation,p=e.maskTransitionName,h=e.maskMotion,v=e.zIndex,g=e.popup,m=e.stretch,y=e.alignPoint,b=e.mobile,C=e.forceRender,D=e.onPopupClick,w=t.state,x=w.popupVisible,E=w.point,B=t.getPopupAlign(),k={};return t.isMouseEnterToShow()&&(k.onMouseEnter=t.onPopupMouseEnter),t.isMouseLeaveToHide()&&(k.onMouseLeave=t.onPopupMouseLeave),k.onMouseDown=t.onPopupMouseDown,k.onTouchStart=t.onPopupMouseDown,s.createElement(Tg,qs({prefixCls:n,destroyPopupOnHide:r,visible:x,point:y&&E,className:o,align:B,onAlign:i,animation:u,getClassNameFromAlign:t.getPopupClassNameFromAlign},k,{stretch:m,getRootDomNode:t.getRootDomNode,style:c,mask:d,zIndex:v,transitionName:l,maskAnimation:f,maskTransitionName:p,maskMotion:h,ref:t.popupRef,motion:a,mobile:b,forceRender:C,onClick:D}),"function"==typeof g?g():g)},t.attachParent=function(e){pc.cancel(t.attachId);var n,r=t.props,o=r.getPopupContainer,i=r.getDocument,a=t.getRootDomNode();o?(a||0===o.length)&&(n=o(a)):n=i(t.getRootDomNode()).body,n?n.appendChild(e):t.attachId=pc((function(){t.attachParent(e)}))},t.getContainer=function(){if(!t.portalContainer){var e=(0,t.props.getDocument)(t.getRootDomNode()).createElement("div");e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",t.portalContainer=e}return t.attachParent(t.portalContainer),t.portalContainer},t.setPoint=function(e){t.props.alignPoint&&e&&t.setState({point:{pageX:e.pageX,pageY:e.pageY}})},t.handlePortalUpdate=function(){t.state.prevPopupVisible!==t.state.popupVisible&&t.props.afterPopupVisibleChange(t.state.popupVisible)},t.triggerContextValue={onPopupMouseDown:t.onPopupMouseDown},o="popupVisible"in e?!!e.popupVisible:!!e.defaultPopupVisible,t.state={prevPopupVisible:o,popupVisible:o},Ig.forEach((function(e){t["fire".concat(e)]=function(n){t.fireEvents(e,n)}})),t}return tc(r,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e,t=this.props;if(this.state.popupVisible)return this.clickOutsideHandler||!this.isClickToHide()&&!this.isContextMenuToShow()||(e=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Bc(e,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(e=e||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Bc(e,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(e=e||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Bc(e,"scroll",this.onContextMenuClose)),void(!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Bc(window,"blur",this.onContextMenuClose)));this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),pc.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var e;return(null===(e=this.popupRef.current)||void 0===e?void 0:e.getElement())||null}},{key:"getPopupAlign",value:function(){var e=this.props,t=e.popupPlacement,n=e.popupAlign,r=e.builtinPlacements;return t&&r?function(e,t,n){return Zs(Zs({},e[t]||{}),n)}(r,t,n):n}},{key:"setPopupVisible",value:function(e,t){var n=this.props.alignPoint,r=this.state.popupVisible;this.clearDelayTimer(),r!==e&&("popupVisible"in this.props||this.setState({popupVisible:e,prevPopupVisible:r}),this.props.onPopupVisibleChange(e)),n&&t&&e&&this.setPoint(t)}},{key:"delaySetPopupVisible",value:function(e,t,n){var r=this,o=1e3*t;if(this.clearDelayTimer(),o){var i=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=window.setTimeout((function(){r.setPopupVisible(e,i),r.clearDelayTimer()}),o)}else this.setPopupVisible(e,n)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(e){var t=this.props.children.props,n=this.props;return t[e]&&n[e]?this["fire".concat(e)]:t[e]||n[e]}},{key:"isClickToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isContextMenuOnly",value:function(){var e=this.props.action;return"contextMenu"===e||1===e.length&&"contextMenu"===e[0]}},{key:"isContextMenuToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("contextMenu")||-1!==n.indexOf("contextMenu")}},{key:"isClickToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isMouseEnterToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseEnter")}},{key:"isMouseLeaveToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseLeave")}},{key:"isFocusToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("focus")}},{key:"isBlurToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("blur")}},{key:"forcePopupAlign",value:function(){var e;this.state.popupVisible&&(null===(e=this.popupRef.current)||void 0===e||e.forceAlign())}},{key:"fireEvents",value:function(e,t){var n=this.props.children.props[e];n&&n(t);var r=this.props[e];r&&r(t)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var t=this.state.popupVisible,n=this.props,r=n.children,o=n.forceRender,i=n.alignPoint,a=n.className,u=n.autoDestroy,l=s.Children.only(r),c={key:"trigger"};this.isContextMenuToShow()?c.onContextMenu=this.onContextMenu:c.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(c.onClick=this.onClick,c.onMouseDown=this.onMouseDown,c.onTouchStart=this.onTouchStart):(c.onClick=this.createTwoChains("onClick"),c.onMouseDown=this.createTwoChains("onMouseDown"),c.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(c.onMouseEnter=this.onMouseEnter,i&&(c.onMouseMove=this.onMouseMove)):c.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?c.onMouseLeave=this.onMouseLeave:c.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(c.onFocus=this.onFocus,c.onBlur=this.onBlur):(c.onFocus=this.createTwoChains("onFocus"),c.onBlur=this.createTwoChains("onBlur"));var d=Oc(l&&l.props&&l.props.className,a);d&&(c.className=d);var f=Zs({},c);Ec(l)&&(f.ref=xc(this.triggerRef,l.ref));var p,h=s.cloneElement(l,f);return(t||this.popupRef.current||o)&&(p=s.createElement(e,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!t&&u&&(p=null),s.createElement(Mg.Provider,{value:this.triggerContextValue},h,p)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.popupVisible,r={};return void 0!==n&&t.popupVisible!==n&&(r.popupVisible=n,r.prevPopupVisible=t.popupVisible),r}}]),r}();return t.contextType=Mg,t.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Lg,getDocument:jg,onPopupVisibleChange:_g,afterPopupVisibleChange:_g,onPopupAlign:_g,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},t}(Ac),Rg={adjustX:1,adjustY:1},zg=[0,0],Vg={left:{points:["cr","cl"],overflow:Rg,offset:[-4,0],targetOffset:zg},right:{points:["cl","cr"],overflow:Rg,offset:[4,0],targetOffset:zg},top:{points:["bc","tc"],overflow:Rg,offset:[0,-4],targetOffset:zg},bottom:{points:["tc","bc"],overflow:Rg,offset:[0,4],targetOffset:zg},topLeft:{points:["bl","tl"],overflow:Rg,offset:[0,-4],targetOffset:zg},leftTop:{points:["tr","tl"],overflow:Rg,offset:[-4,0],targetOffset:zg},topRight:{points:["br","tr"],overflow:Rg,offset:[0,-4],targetOffset:zg},rightTop:{points:["tl","tr"],overflow:Rg,offset:[4,0],targetOffset:zg},bottomRight:{points:["tr","br"],overflow:Rg,offset:[0,4],targetOffset:zg},rightBottom:{points:["bl","br"],overflow:Rg,offset:[4,0],targetOffset:zg},bottomLeft:{points:["tl","bl"],overflow:Rg,offset:[0,4],targetOffset:zg},leftBottom:{points:["br","bl"],overflow:Rg,offset:[-4,0],targetOffset:zg}};function Wg(e){var t=e.showArrow,n=e.arrowContent,r=e.children,o=e.prefixCls,i=e.id,a=e.overlayInnerStyle,u=e.className,l=e.style;return s.createElement("div",{className:Oc("".concat(o,"-content"),u),style:l},!1!==t&&s.createElement("div",{className:"".concat(o,"-arrow"),key:"arrow"},n),s.createElement("div",{className:"".concat(o,"-inner"),id:i,role:"tooltip",style:a},"function"==typeof r?r():r))}var Hg,$g,Ug,qg=D((function(e,t){var n=e.overlayClassName,r=e.trigger,o=void 0===r?["hover"]:r,i=e.mouseEnterDelay,a=void 0===i?0:i,u=e.mouseLeaveDelay,l=void 0===u?.1:u,c=e.overlayStyle,d=e.prefixCls,f=void 0===d?"rc-tooltip":d,p=e.children,h=e.onVisibleChange,v=e.afterVisibleChange,m=e.transitionName,y=e.animation,b=e.motion,C=e.placement,D=void 0===C?"right":C,x=e.align,E=void 0===x?{}:x,B=e.destroyTooltipOnHide,k=void 0!==B&&B,A=e.defaultVisible,F=e.getTooltipContainer,O=e.overlayInnerStyle,S=e.arrowContent,P=e.overlay,T=e.id,M=e.showArrow,_=Js(e,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"]),L=g(null);w(t,(function(){return L.current}));var j=Zs({},_);"visible"in e&&(j.popupVisible=e.visible);var I=!1,N=!1;if("boolean"==typeof k)I=k;else if(k&&"object"===Xs(k)){var R=k.keepParent;I=!0===R,N=!1===R}return s.createElement(Ng,qs({popupClassName:n,prefixCls:f,popup:function(){return s.createElement(Wg,{showArrow:M,arrowContent:S,key:"content",prefixCls:f,id:T,overlayInnerStyle:O},P)},action:o,builtinPlacements:Vg,popupPlacement:D,ref:L,popupAlign:E,getPopupContainer:F,onPopupVisibleChange:h,afterPopupVisibleChange:v,popupTransitionName:m,popupAnimation:y,popupMotion:b,defaultPopupVisible:A,destroyPopupOnHide:I,autoDestroy:N,mouseLeaveDelay:l,popupStyle:c,mouseEnterDelay:a},j),p)})),Xg=e.div($g||($g=ae(["\n ",";\n"],["\n ",";\n"])),(function(e){var n=e.theme,r=n.colors,o=n.sizes,i=n.fonts,a=e.$styles;return t(Hg||(Hg=ae(["\n .rc-tooltip {\n &-arrow {\n display: none;\n }\n &-inner {\n min-height: unset;\n padding: ","px;\n background-color: ",";\n color: ",";\n border-radius: ","px;\n ",";\n ",";\n }\n }\n "],["\n .rc-tooltip {\n &-arrow {\n display: none;\n }\n &-inner {\n min-height: unset;\n padding: ","px;\n background-color: ",";\n color: ",";\n border-radius: ","px;\n ",";\n ",";\n }\n }\n "])),o.S,r.indigo,r.white,o.S,i.S,a)})),Kg=function(e){var t=e.trigger,n=void 0===t?"hover":t,r=e.placement,o=void 0===r?"top":r,i=e.styles,u=ne(e,["trigger","placement","styles"]),l=g(null);return a(Xg,te({ref:l,$styles:i},{children:a(qg,te({},u,{getTooltipContainer:function(){return l.current},trigger:n,placement:o}))}))},Yg=Zs({},U),Gg=Yg.version,Zg=Yg.render,Jg=Yg.unmountComponentAtNode;try{Number((Gg||"").split(".")[0])>=18&&(Ug=Yg.createRoot)}catch(Di){}function Qg(e){var t=Yg.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===Xs(t)&&(t.usingClientEntryPoint=e)}var em="__rc_react_root__";function tm(e,t){Ug?function(e,t){Qg(!0);var n=t[em]||Ug(t);Qg(!1),n.render(e),t[em]=n}(e,t):function(e,t){Zg(e,t)}(e,t)}function nm(e){return rm.apply(this,arguments)}function rm(){return(rm=Ag(Bg().mark((function e(t){return Bg().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[em])||void 0===e||e.unmount(),delete t[em]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function om(e){Jg(e)}function im(){return(im=Ag(Bg().mark((function e(t){return Bg().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===Ug){e.next=2;break}return e.abrupt("return",nm(t));case 2:om(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var am=function(e){oc(n,v);var t=uc(n);function n(){var e;Qs(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).closeTimer=null,e.close=function(t){t&&t.stopPropagation(),e.clearCloseTimer();var n=e.props,r=n.onClose,o=n.noticeKey;r&&r(o)},e.startCloseTimer=function(){e.props.duration&&(e.closeTimer=window.setTimeout((function(){e.close()}),1e3*e.props.duration))},e.clearCloseTimer=function(){e.closeTimer&&(clearTimeout(e.closeTimer),e.closeTimer=null)},e}return tc(n,[{key:"componentDidMount",value:function(){this.startCloseTimer()}},{key:"componentDidUpdate",value:function(e){(this.props.duration!==e.duration||this.props.updateMark!==e.updateMark||this.props.visible!==e.visible&&this.props.visible)&&this.restartCloseTimer()}},{key:"componentWillUnmount",value:function(){this.clearCloseTimer()}},{key:"restartCloseTimer",value:function(){this.clearCloseTimer(),this.startCloseTimer()}},{key:"render",value:function(){var e=this,t=this.props,n=t.prefixCls,r=t.className,o=t.closable,i=t.closeIcon,a=t.style,u=t.onClick,l=t.children,c=t.holder,d="".concat(n,"-notice"),f=Object.keys(this.props).reduce((function(t,n){return"data-"!==n.substr(0,5)&&"aria-"!==n.substr(0,5)&&"role"!==n||(t[n]=e.props[n]),t}),{}),p=s.createElement("div",qs({className:Oc(d,r,Ys({},"".concat(d,"-closable"),o)),style:a,onMouseEnter:this.clearCloseTimer,onMouseLeave:this.startCloseTimer,onClick:u},f),s.createElement("div",{className:"".concat(d,"-content")},l),o?s.createElement("a",{tabIndex:0,onClick:this.close,className:"".concat(d,"-close")},i||s.createElement("span",{className:"".concat(d,"-close-x")})):null);return c?q.createPortal(p,c):p}}]),n}();function um(e){return function(e){if(Array.isArray(e))return Pc(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Tc(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}am.defaultProps={onClose:function(){},duration:1.5};var lm=["getContainer"],sm=0,cm=Date.now();function dm(){var e=sm;return sm+=1,"rcNotification_".concat(cm,"_").concat(e)}var fm=function(e){oc(n,v);var t=uc(n);function n(){var e;Qs(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={notices:[]},e.hookRefs=new Map,e.add=function(t,n){var r=t.key||dm(),o=Zs(Zs({},t),{},{key:r}),i=e.props.maxCount;e.setState((function(e){var t=e.notices,a=t.map((function(e){return e.notice.key})).indexOf(r),u=t.concat();return-1!==a?u.splice(a,1,{notice:o,holderCallback:n}):(i&&t.length>=i&&(o.key=u[0].notice.key,o.updateMark=dm(),o.userPassKey=r,u.shift()),u.push({notice:o,holderCallback:n})),{notices:u}}))},e.remove=function(t){e.setState((function(e){return{notices:e.notices.filter((function(e){var n=e.notice,r=n.key;return(n.userPassKey||r)!==t}))}}))},e.noticePropsMap={},e}return tc(n,[{key:"getTransitionName",value:function(){var e=this.props,t=e.prefixCls,n=e.animation,r=this.props.transitionName;return!r&&n&&(r="".concat(t,"-").concat(n)),r}},{key:"render",value:function(){var e=this,t=this.state.notices,n=this.props,r=n.prefixCls,o=n.className,i=n.closeIcon,a=n.style,u=[];return t.forEach((function(n,o){var a=n.notice,l=n.holderCallback,s=o===t.length-1?a.updateMark:void 0,c=a.key,d=a.userPassKey,f=Zs(Zs(Zs({prefixCls:r,closeIcon:i},a),a.props),{},{key:c,noticeKey:d||c,updateMark:s,onClose:function(t){var n;e.remove(t),null===(n=a.onClose)||void 0===n||n.call(a)},onClick:a.onClick,children:a.content});u.push(c),e.noticePropsMap[c]={props:f,holderCallback:l}})),s.createElement("div",{className:Oc(r,o),style:a},s.createElement(sd,{keys:u,motionName:this.getTransitionName(),onVisibleChanged:function(t,n){var r=n.key;t||delete e.noticePropsMap[r]}},(function(t){var n=t.key,o=t.className,i=t.style,a=t.visible,u=e.noticePropsMap[n],l=u.props,c=u.holderCallback;return c?s.createElement("div",{key:n,className:Oc(o,"".concat(r,"-hook-holder")),style:Zs({},i),ref:function(t){void 0!==n&&(t?(e.hookRefs.set(n,t),c(t,l)):e.hookRefs.delete(n))}}):s.createElement(am,qs({},l,{className:Oc(o,null==l?void 0:l.className),style:Zs(Zs({},i),null==l?void 0:l.style),visible:a}))})))}}]),n}();fm.newInstance=void 0,fm.defaultProps={prefixCls:"rc-notification",animation:"fade",style:{top:65,left:"50%"}},fm.newInstance=function(e,t){var n=e||{},r=n.getContainer,o=Js(n,lm),i=document.createElement("div");r?r().appendChild(i):document.body.appendChild(i);var a=!1;function u(e){a||(a=!0,t({notice:function(t){e.add(t)},removeNotice:function(t){e.remove(t)},component:e,destroy:function(){!function(e){im.apply(this,arguments)}(i),i.parentNode&&i.parentNode.removeChild(i)},useNotification:function(){return t=e,n=s.useRef({}),r=Mc(s.useState([]),2),o=r[0],i=r[1],[function(e){var r=!0;t.add(e,(function(e,t){var o=t.key;if(e&&(!n.current[o]||r)){var a=s.createElement(am,qs({},t,{holder:e}));n.current[o]=a,i((function(e){var n=e.findIndex((function(e){return e.key===t.key}));if(-1===n)return[].concat(um(e),[a]);var r=um(e);return r[n]=a,r}))}r=!1}))},s.createElement(s.Fragment,null,o)];var t,n,r,o,i}}))}"test"===process.env.NODE_ENV&&e.TEST_RENDER?e.TEST_RENDER(s.createElement(fm,qs({},o,{ref:u}))):tm(s.createElement(fm,qs({},o,{ref:u})),i)};var pm,hm,vm,gm=ge.colors,mm=ge.fonts,ym=ge.sizes,bm=e.span(pm||(pm=ae(["\n color: ",";\n ",";\n"],["\n color: ",";\n ",";\n"])),(function(e){return e.textColor}),mm.L),Cm=e.div(hm||(hm=ae(["\n display: flex;\n height: ","px;\n column-gap: ","px;\n align-items: center;\n padding-right: ","px;\n"],["\n display: flex;\n height: ","px;\n column-gap: ","px;\n align-items: center;\n padding-right: ","px;\n"])),ym.XL,ym.M,ym.XL),Dm=e.div(vm||(vm=ae(["\n ",";\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 50%;\n background-color: ",";\n"],["\n ",";\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 50%;\n background-color: ",";\n"])),fe(ym.XL),(function(e){return e.backgroundColor})),wm=function(e){var t=e.type,n=e.message,r=function(e){switch(e){case"success":return{icon:"Check",backgroundColor:gm.green,textColor:gm.greenShade};case"error":return{icon:"Close",backgroundColor:gm.red,textColor:gm.redShade};case"warning":return{icon:"Warning",backgroundColor:gm.yellow,textColor:gm.yellowShade,iconColor:gm.yellowShade,iconSize:18};case"infoTierOne":return{icon:"Bell",backgroundColor:gm.blue,textColor:gm.blueShade,iconSize:18};case"infoTierTwo":return{icon:"Bell",backgroundColor:gm.gray2,textColor:ve(gm.gray2),iconSize:18};default:return{icon:"Bell",backgroundColor:gm.blue,textColor:gm.blueShade}}}(t),o=r.icon,i=r.iconColor,l=r.textColor,s=r.backgroundColor,c=r.iconSize;return u(Cm,{children:[a(Dm,te({backgroundColor:s},{children:a(Ke,{size:c||32,name:o,color:i||gm.white})})),a(bm,te({textColor:l},{children:n}))]})},xm=null;fm.newInstance({maxCount:2},(function(e){return xm=e}));var Em,Bm,km,Am,Fm,Om,Sm,Pm,Tm,Mm,_m,Lm,jm,Im,Nm,Rm,zm,Vm,Wm,Hm,$m,Um,qm,Xm,Km,Ym,Gm,Zm,Jm,Qm,ey,ty,ny,ry,oy,iy,ay,uy,ly,sy,cy,dy,fy,py,hy,vy,gy,my,yy,by,Cy,Dy,wy,xy,Ey,By,ky,Ay,Fy,Oy,Sy,Py,Ty=function(e){var t=e.message,n=e.type,r=void 0===n?"success":n,o=e.duration,i=void 0===o?2.5:o;return null==xm?void 0:xm.notice({content:a(wm,{message:t,type:r}),className:"toast-".concat(r),closable:!0,closeIcon:a(Ke,{name:"Close"}),duration:i})},My=function(e){var t=e.onClick,n=e.disabled,r=e.buttonOptions,o=e.selectedButtonId,i=e.error,u=(null==r?void 0:r.slice(0,2))||[];return a(_y,te({error:i,disabled:n},{children:u.map((function(e){var n=e.value,r=e.id;return a(Ly,te({isActive:r===o,onClick:function(){return t(r)}},{children:n}),r)}))}))},_y=e.div(Bm||(Bm=ae(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n border-width: 0.2px;\n border-style: solid;\n padding: 1px;\n ","\n"],["\n display: flex;\n align-items: center;\n justify-content: space-between;\n border-width: 0.2px;\n border-style: solid;\n padding: 1px;\n ","\n"])),(function(e){var n=e.disabled,r=e.error,o="transparent",i=ge.colors.gray4;return n?i=ge.colors.gray5:o=r?ge.colors.red:ge.colors.gray4,t(Em||(Em=ae(["\n height: ","px;\n border-radius: ","px;\n border-color: ",";\n background-color: ",";\n "],["\n height: ","px;\n border-radius: ","px;\n border-color: ",";\n background-color: ",";\n "])),ge.sizes.XL,ge.sizes.XS,o,i)})),Ly=e(de)(Am||(Am=ae(["\n display: flex;\n text-align: center;\n align-items: center;\n justify-content: center;\n padding: 10px;\n height: 100%;\n width: 50%;\n ","\n"],["\n display: flex;\n text-align: center;\n align-items: center;\n justify-content: center;\n padding: 10px;\n height: 100%;\n width: 50%;\n ","\n"])),(function(e){var n=e.isActive,r=n?ge.colors.white:"transparent";return t(km||(km=ae(["\n background-color: ",";\n border-radius: ","px;\n box-shadow: ",";\n transition: background-color 0.4s ease-out;\n "],["\n background-color: ",";\n border-radius: ","px;\n box-shadow: ",";\n transition: background-color 0.4s ease-out;\n "])),r,ge.sizes.XS,n?"0 0 5px rgba(0, 0, 0, 0.15)":"none")})),jy=function(e){var t=e.size,n=void 0===t?"XL":t,r=e.withShadow,o=e.label,i=e.backgroundColor,l=e.onPress,s=e.content,c=s.initials,d=s.iconName,f=s.imageUrl,p=e.textConfig,h=void 0===p?{}:p,v=h.color,g=void 0===v?"white":v,m=h.font,y=void 0===m?"L":m,b="number"==typeof n?n:ge.sizes[n],C=c?a(zy,te({variant:y,color:g,avatarSize:b},{children:c})):d?a(Ke,{name:d,color:"white",size:b/1.5}):f?a(Vy,{avatarSize:b,src:f}):null;return u(Iy,{children:[a(Ry,te({clickable:!!l,onClick:l,withShadow:r,backgroundColor:f?"white":i,avatarSize:b},{children:C})),!!o&&a(Ny,te({variant:"L"},{children:o}))]})},Iy=e.div(Fm||(Fm=ae(["\n display: flex;\n justify-content: flex-start;\n align-items: center;\n"],["\n display: flex;\n justify-content: flex-start;\n align-items: center;\n"]))),Ny=e(us)(Om||(Om=ae(["\n margin-left: 14px;\n color: ",";\n"],["\n margin-left: 14px;\n color: ",";\n"])),(function(e){return e.theme.colors.gray2})),Ry=e.div(Mm||(Mm=ae(["\n ","\n"],["\n ","\n"])),(function(e){var n=e.theme,r=n.colors,o=n.sizes,i=e.avatarSize,a=e.withShadow,u=e.backgroundColor,l=e.clickable;return t(Tm||(Tm=ae(["\n display: flex;\n justify-content: center;\n overflow: hidden;\n align-items: center;\n transition: 0.1s;\n background-color: ",";\n color: ",";\n border: ","px solid ",";\n border-radius: ","px;\n ",";\n ","\n ","\n "],["\n display: flex;\n justify-content: center;\n overflow: hidden;\n align-items: center;\n transition: 0.1s;\n background-color: ",";\n color: ",";\n border: ","px solid ",";\n border-radius: ","px;\n ",";\n ","\n ","\n "])),r[u||"indigoTint2"],r.white,Math.round(i/o["2XL"]),r.white,i/2,fe(i),a&&t(Sm||(Sm=ae(["\n filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.25));\n "],["\n filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.25));\n "]))),l&&t(Pm||(Pm=ae(["\n cursor: pointer;\n &:hover {\n background-color: ",";\n }\n\n &:active {\n background-color: ",";\n }\n "],["\n cursor: pointer;\n &:hover {\n background-color: ",";\n }\n\n &:active {\n background-color: ",";\n }\n "])),he(r[u||"indigoTint2"]),r[u||"indigoTint2"]))})),zy=e(us)(Lm||(Lm=ae(["\n ","\n"],["\n ","\n"])),(function(e){var n=e.avatarSize;return t(_m||(_m=ae(["\n user-select: none;\n font-size: ","px;\n "],["\n user-select: none;\n font-size: ","px;\n "])),n/2)})),Vy=e(Rs)(Im||(Im=ae(["\n ","\n"],["\n ","\n"])),(function(e){var n=e.avatarSize;return t(jm||(jm=ae(["\n ",";\n object-fit: cover;\n transition: 0.1s;\n\n &:hover {\n opacity: 0.7;\n }\n &:active {\n opacity: 1;\n }\n "],["\n ",";\n object-fit: cover;\n transition: 0.1s;\n\n &:hover {\n opacity: 0.7;\n }\n &:active {\n opacity: 1;\n }\n "])),fe(n))})),Wy=e.div(Nm||(Nm=ae(["\n padding: 0\n ","px;\n"],["\n padding: 0\n ","px;\n"])),(function(e){var t=e.theme,n=e.padding;return"number"==typeof n?n:t.sizes[n]})),Hy=e.div(Rm||(Rm=ae(["\n padding: ","px\n 0;\n"],["\n padding: ","px\n 0;\n"])),(function(e){var t=e.theme,n=e.padding;return"number"==typeof n?n:t.sizes[n]})),$y=e.div(Vm||(Vm=ae(["\n ","\n"],["\n ","\n"])),(function(e){var n=e.theme,r=n.colors,o=n.sizes,i=e.color,a=void 0===i?"gray4":i,u=e.type,l=void 0===u?"horizontal":u,s=e.weight,c=void 0===s?1:s,d=e.marginHorizontal,f=e.marginVertical;return t(zm||(zm=ae(["\n width: ",";\n height: ",";\n background-color: ",";\n margin: ","px\n ","px;\n "],["\n width: ",";\n height: ",";\n background-color: ",";\n margin: ","px\n ","px;\n "])),"vertical"===l?"".concat(c,"px"):"100%","horizontal"===l?"".concat(c,"px"):"100%",r[a]||a,"number"==typeof f?f:o[f]||0,"number"==typeof d?d:o[d]||0)})),Uy=function(e){var n=e.isError,r=e.disabled,o=e.internalConfig||{},i=o.selectedRadioOptionBackgroundColor,a=void 0===i?"transparent":i,u=o.selectedRadioOptionIndicatorColor,l=void 0===u?"primary":u,s=o.styles,c=o.wrapperStyles,d=o.textPadding,f=o.buttonPadding,p=void 0===f?0:f,h=o.radioGroupWrapperStyles,v=o.buttonOptionSpacing,g=void 0===v?"XS":v,m=t(Hm||(Hm=ae(["\n ","\n\n ","\n "],["\n ","\n\n ","\n "])),d&&t(Wm||(Wm=ae(["\n padding: ","px;\n "],["\n padding: ","px;\n "])),d),s),y=t($m||($m=ae(["\n .Mui-checked {\n color: ",";\n svg:nth-child(1) {\n background-color: ",";\n }\n }\n ","\n "],["\n .Mui-checked {\n color: ",";\n svg:nth-child(1) {\n background-color: ",";\n }\n }\n ","\n "])),ge.colors[l]||l,ge.colors[a]||a,s),b=t(Um||(Um=ae(["\n padding: ","px;\n ","\n ","\n "],["\n padding: ","px;\n ","\n ","\n "])),p,s,c);return{textStyles:m,groupWrapperStyles:t(qm||(qm=ae(["\n gap: ","px;\n ","\n "],["\n gap: ","px;\n ","\n "])),ge.sizes[g],h),radioIconWrapperStyles:y,radioLabelWrapperStyles:b,textColor:n?"red":r?"gray3":"gray1"}},qy=e(M)(Km||(Km=ae(["\n ","\n"],["\n ","\n"])),(function(e){var n=e.theme.colors,r=e.$isError,o=e.$styles;return t(Xm||(Xm=ae(["\n color: ",";\n ","\n "],["\n color: ",";\n ","\n "])),r?n.red:n.gray1,o)})),Xy=e(_)(Qm||(Qm=ae(["\n ","\n"],["\n ","\n"])),(function(e){var n=e.theme.colors,r=e.$disabled,o=e.$isError,i=e.$styles,a=e.$isEditMode;return t(Jm||(Jm=ae(["\n color: ",";\n cursor: ",";\n\n & .MuiSvgIcon-root {\n font-size: 16px;\n }\n\n &:hover {\n color: ",";\n ","\n }\n\n &.Mui-checked {\n svg:nth-child(1) {\n color: ",";\n border-radius: 50%;\n }\n }\n ","\n\n ","\n \n ","\n "],["\n color: ",";\n cursor: ",";\n\n & .MuiSvgIcon-root {\n font-size: 16px;\n }\n\n &:hover {\n color: ",";\n ","\n }\n\n &.Mui-checked {\n svg:nth-child(1) {\n color: ",";\n border-radius: 50%;\n }\n }\n ","\n\n ","\n \n ","\n "])),n.gray3,a?"pointer":"default",a?n.gray2:n.gray3,!a&&t(Ym||(Ym=ae(["\n background-color: transparent;\n "],["\n background-color: transparent;\n "]))),n.gray3,r&&t(Gm||(Gm=ae(["\n & .MuiSvgIcon-root {\n color: ",";\n background-color: ",";\n border-radius: 50%;\n }\n "],["\n & .MuiSvgIcon-root {\n color: ",";\n background-color: ",";\n border-radius: 50%;\n }\n "])),n.gray4,n.gray4),o&&t(Zm||(Zm=ae(["\n color: ",";\n &.Mui-checked {\n color: ",";\n }\n "],["\n color: ",";\n &.Mui-checked {\n color: ",";\n }\n "])),n.red,n.red),i)})),Ky=function(e){var t=e.option,n=e.isError,r=void 0!==n&&n,o=e.disabled,i=void 0!==o&&o,u=e.isEditMode,s=e.isRichText,c=void 0===s||s,d=e.internalConfig,f=Uy({isError:r,disabled:i,internalConfig:d}),p=f.textStyles,h=f.radioIconWrapperStyles,v=f.radioLabelWrapperStyles,g=f.textColor,m=t.id,y=t.label;return a(l,{children:a(qy,{value:m,$isError:r,$styles:v,label:c?a(os,{extraTextProps:{behaveAs:i?"text":"button"},textStyles:p,color:g,value:y,font:"M"}):a(us,te({styles:p,behaveAs:i?"text":"button",color:g,variant:"M"},{children:y})),control:a(Xy,{disableRipple:!u,$disabled:i,$isError:r,$isEditMode:u,$styles:h})})})},Yy=function(e){var t=e.ref,n=e.name,r=e.value,o=e.options,i=e.onBlur,u=e.onChange,l=e.isRow,s=void 0!==l&&l,c=e.isError,d=void 0!==c&&c,f=e.disabled,p=void 0!==f&&f,h=e.isEditMode,v=void 0===h||h,g=e.isRichText,m=void 0===g||g,y=e.internalConfig,b=Uy({internalConfig:y}).groupWrapperStyles;return a(Gy,te({ref:t,row:s,$isRow:s,name:n,value:r,onBlur:i,onChange:function(e){v&&(null==u||u(e.target.value))},$styles:b},{children:null==o?void 0:o.map((function(e){return a(Ky,{option:e,isError:d,disabled:p,isRichText:m,isEditMode:v,internalConfig:y},e.id)}))}))},Gy=e(L)(ty||(ty=ae(["\n ","\n"],["\n ","\n"])),(function(e){var n=e.$styles,r=e.$isRow;return t(ey||(ey=ae(["\n justify-content: ",";\n ",";\n "],["\n justify-content: ",";\n ",";\n "])),r?"space-between":"flex-start",n)})),Zy={link:{fontColor:ge.colors.blueShade,backgroundColor:ge.colors.blueTint},message:{fontColor:ge.colors.yellowShade,backgroundColor:ge.colors.yellowTint}},Jy=t(ny||(ny=ae(["\n text-decoration-line: none;\n"],["\n text-decoration-line: none;\n"]))),Qy=function(e){var t=e.index,n=e.type;return a(eb,te({backgroundColor:Zy[n].backgroundColor},{children:a(us,te({styles:Jy,variant:"M",color:Zy[n].fontColor},{children:t}))}))},eb=e.span(oy||(oy=ae(["\n ","\n"],["\n ","\n"])),(function(e){var n=e.theme.sizes,r=e.backgroundColor;return t(ry||(ry=ae(["\n background-color: ",";\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 50%;\n width: ","px;\n height: ","px;\n "],["\n background-color: ",";\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 50%;\n width: ","px;\n height: ","px;\n "])),r,n.L,n.L)})),tb=e.span(iy||(iy=ae(["\n display: inline-flex;\n gap: 2px;\n"],["\n display: inline-flex;\n gap: 2px;\n"]))),nb=function(e){var t=e.activeColor,n=e.inactiveColor,r=ne(e,["activeColor","inactiveColor"]),i=(o()||ge).colors;return a(rb,te({},r,{activeColor:i[t]||t,inactiveColor:i[n]||n}))},rb=e.span(uy||(uy=ae(["\n display: block;\n width: 20px;\n height: 20px;\n margin: 5px;\n border-radius: 100%;\n background-clip: content-box;\n ","\n"],["\n display: block;\n width: 20px;\n height: 20px;\n margin: 5px;\n border-radius: 100%;\n background-clip: content-box;\n ","\n"])),(function(e){var n=e.theme,r=n.colors,o=n.sizes,i=e.active,a=e.activeColor,u=e.inactiveColor;return t(ay||(ay=ae(["\n padding: ","px;\n border: ",";\n background-color: ",";\n box-shadow: ",";\n "],["\n padding: ","px;\n border: ",";\n background-color: ",";\n box-shadow: ",";\n "])),o.XS,i?"1px solid ".concat(a||r.white):"none",i?a||r.white:u||r.gray3,i?"inset 0 0 0 1px rgba(0, 0, 0, 0), inset 0 0 0 4px rgba(0, 0, 0, 0.05)":"unset")})),ob={ArrowRight:qe,Bell:Ie,Bookmark:Ee,CaretDown:Be,CaretLeft:Ae,CaretRight:Fe,CaretUp:ke,Check:Oe,Close:Te,Edit:Ve,Filter:Pe,Hide:_e,Info:Se,InfoBoxIcon:Le,Mail:ze,Menu:He,Minus:je,Mobile:Re,Play:$e,Save:We,Search:Ue,View:Me,Warning:Ne},ib=function(e){var t=e.name,n=e.color,r=e.onClick,i=e.disabled,u=e.activeOpacity,l=e.withoutOpacityEffect,s=ne(e,["name","color","onClick","disabled","activeOpacity","withoutOpacityEffect"]),c=(o()||ge).colors;return a(de,te({onClick:r,disabled:i,activeOpacity:u,withoutOpacityEffect:l},{children:a(ob[t],te({},s,{color:c[n]||n}))}))},ab=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n="light");var r=ge.colors;return t&&e?r[e]||e:t?"dark"===n?r.gray2:r.gray4:"transparent"},ub=e(us)(cy||(cy=ae(["\n width: max-content;\n ","\n"],["\n width: max-content;\n ","\n"])),(function(e){var n=e.theme,r=n.colors,o=n.sizes,i=n.fonts,a=e.tabTheme,u=e.textSize,l=e.defaultTabTextColor,s=void 0===l?"gray2":l,c=e.tabPadding,d=void 0===c?0:c,f=e.tabFont,p=void 0===f?"L":f,h=r[s]||s;return t(sy||(sy=ae(["\n color: ",";\n padding: ","px;\n ",";\n &:hover {\n color: ",";\n }\n "],["\n color: ",";\n padding: ","px;\n ",";\n &:hover {\n color: ",";\n }\n "])),h||("dark"===a?r.gray3:r.gray2),o[d]||d,u?t(ly||(ly=ae(["\n font-size: ","px;\n "],["\n font-size: ","px;\n "])),u):i[p],h||("dark"===a?r.white:r.gray1))})),lb=e.div(hy||(hy=ae(["\n position: relative;\n display: flex;\n align-items: center;\n cursor: pointer;\n ",";\n"],["\n position: relative;\n display: flex;\n align-items: center;\n cursor: pointer;\n ",";\n"])),(function(e){var n=e.theme.colors,r=e.isActive,o=e.disabled,i=e.tabTheme,a=e.selectedTabTextColor,u=e.styles;if(o)return t(dy||(dy=ae(["\n pointer-events: none;\n "," {\n color: ",";\n }\n "],["\n pointer-events: none;\n "," {\n color: ",";\n }\n "])),ub,"dark"===i?n.gray2:n.gray3);if(r){var l=n[a]||a;return t(fy||(fy=ae(["\n "," {\n color: ",";\n }\n "],["\n "," {\n color: ",";\n }\n "])),ub,l||("dark"===i?n.white:n.gray1))}return t(py||(py=ae(["\n ","\n "],["\n ","\n "])),u)})),sb=e.div(gy||(gy=ae(["\n transition: 0.25s;\n margin-left: 10px;\n width: 16px;\n height: 16px;\n display: flex;\n justify-content: center;\n align-items: center;\n svg {\n transform: scale(0.8);\n }\n ",";\n"],["\n transition: 0.25s;\n margin-left: 10px;\n width: 16px;\n height: 16px;\n display: flex;\n justify-content: center;\n align-items: center;\n svg {\n transform: scale(0.8);\n }\n ",";\n"])),(function(e){var n=e.isActive,r=e.disabled,o=e.tabTheme,i=e.defaultTabTextColor,a=void 0===i?"gray2":i;return t(vy||(vy=ae(["\n transform: ",";\n svg path {\n stroke: ",";\n }\n "],["\n transform: ",";\n svg path {\n stroke: ",";\n }\n "])),n?"rotate(180deg)":"rotate(0deg)",function(e,t,n){void 0===e&&(e="gray1"),void 0===t&&(t="light"),void 0===n&&(n=!1);var r=ge.colors;return"dark"===t?n?r.gray2:r.gray3:n?r.gray3:r[e]||e}(a,o,r))})),cb=function(e,t){return e&&t[e]?"".concat(t[e],"px"):e},db=function(e){if(!e)return!1;var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)},fb=function(e){var n=e.$selected,r=e.isConfigurationMode,o=e.theme.colors;return r?t(Cy||(Cy=ae(["\n margin: 3px;\n padding: 3px;\n cursor: pointer;\n outline: 1.5px dashed ",";\n transition: all 0.1s ease-in-out;\n\n ","\n "],["\n margin: 3px;\n padding: 3px;\n cursor: pointer;\n outline: 1.5px dashed ",";\n transition: all 0.1s ease-in-out;\n\n ","\n "])),o.gray4,n?t(yy||(yy=ae(["\n outline: 3px solid ",";\n "],["\n outline: 3px solid ",";\n "])),o.primary):t(by||(by=ae(["\n :hover:not(:has(#configurationWrapper *:hover)):not(:focus-visible) {\n outline: 3px dashed ",";\n }\n "],["\n :hover:not(:has(#configurationWrapper *:hover)):not(:focus-visible) {\n outline: 3px dashed ",";\n }\n "])),ve(o.gray4))):t(my||(my=ae([""],[""])))},pb=["slider","form"],hb=e.div(wy||(wy=ae(["\n ","\n"],["\n ","\n"])),(function(e){var n=e.type,r=void 0===n?"row":n,o=e.containerProps,i=e.metadata,a=e.theme,u=a.sizes,l=a.colors,s=o||{},c=s.border,d=void 0===c?"":c,f=s.alignItems,p=void 0===f?"stretch":f,h=s.position,v=void 0===h?"static":h,g=s.gap,m=void 0===g?0:g,y=s.cornerRadius,b=void 0===y?0:y,C=s.paddingTop,D=void 0===C?0:C,w=s.paddingBottom,x=void 0===w?0:w,E=s.paddingLeft,B=void 0===E?0:E,k=s.paddingRight,A=void 0===k?0:k,F=s.scrollBehaviour,O=s.styles,S=d.split(" "),P=S[0],T=S[1],M=S[2],_=void 0===M?l.gray3:M,L=l[_]||_,j=(null==i?void 0:i.repeater)&&(null==i?void 0:i.childrenAmount)&&(null==i?void 0:i.childrenAmount)>1?"space-between":"center",I=[D,x,B,A].some(Boolean)?function(e,t){return"string"==typeof e?t[e]?"".concat(t[e],"px"):e:["top","right","bottom","left"].map((function(n){return cb(e[n]||0,t)})).join(" ")}({top:D,bottom:x,left:B,right:A},u):"0px";return t(Dy||(Dy=ae(["\n display: flex;\n align-items: ",";\n flex-direction: ",";\n position: ",";\n gap: ","px;\n border: "," "," ",";\n border-radius: ","px;\n justify-content: ",";\n padding: ",";\n ",";\n ",";\n ",";\n "],["\n display: flex;\n align-items: ",";\n flex-direction: ",";\n position: ",";\n gap: ","px;\n border: "," "," ",";\n border-radius: ","px;\n justify-content: ",";\n padding: ",";\n ",";\n ",";\n ",";\n "])),p,"column"===r?"column":"row",v,m&&u[m],P,T,L,u[b]||b,j,I,function(e){return"vertical"===e?"overflow-y: scroll":"horizontal"===e?"overflow-x: scroll":"none"===e?"overflow: visible":"overflow: unset"}(pb.includes(r)?"none":F),O,fb)})),vb=function(e){var n=e.isRichText,r=void 0!==n&&n,o=e.variant,i=void 0===o?"base":o,u=e.text,l=void 0===u?"":u,s=e.seoTag,c=e.fontVariant,d=e.textColor,f=e.textSize,p=e.fontWeight,h=e.lineHeight,v=e.letterSpacing,g=e.styles,m=e.textAlign,y=e.htmlElementId,b=e.configurationItemInfo,C=ne(e,["isRichText","variant","text","seoTag","fontVariant","textColor","textSize","fontWeight","lineHeight","letterSpacing","styles","textAlign","htmlElementId","configurationItemInfo"]),D=t(xy||(xy=ae(["\n ",";\n ",";\n ",";\n ",";\n ","\n "],["\n ",";\n ",";\n ",";\n ",";\n ","\n "])),f?"font-size: ".concat(f,"px;"):"",p?"font-weight: ".concat(p,";"):"",h?"line-height: ".concat(h,"px;"):"",v?"letter-spacing: ".concat(v,"px;"):"",g),w=te({variant:c,color:d,styles:"custom"===i?D:void 0,seoTag:s,textAlign:m,behaveAs:(null==b?void 0:b.isConfigurationMode)?"button":"text"},C),x=r?a(os,{value:l,extraTextProps:w,htmlElementId:y}):a(us,te({},w,{htmlElementId:y},{children:l}));return a(gb,te({id:"configurationWrapper"},b,{children:x}))},gb=e.div(Ey||(Ey=ae(["\n ","\n"],["\n ","\n"])),fb),mb={OPTIONAL:{text:"Optional",color:"gray3"},REQUIRED:{text:"Required",color:"red"}},yb=function(e){var n=e.label,r=void 0===n?"":n,i=e.isTooltipVisible,l=e.isError,s=e.ruleLabel,c=e.tooltipText,d=e.labelInternalConfig,f=e.ruleLabelInternalConfig,p=e.tooltipInternalConfig,h=e.isRichText,v=void 0!==h&&h,g=o().colors,m=d||{},y=m.color,b=m.fontSize,C=m.fontVariant,D=void 0===C?"S":C,w=m.fontWeight,x=m.padding,E=m.styles,B=m.wrapperStyles,k=t(Ay||(Ay=ae(["\n ",";\n ",";\n "],["\n ",";\n ",";\n "])),x?"padding: ".concat(x,";"):"",E),A=g[y]||y,F=f||{},O=F.fontSize,S=F.optionalTextColor,P=F.padding,T=F.requiredTextColor,M=F.styles,_=t(Fy||(Fy=ae(["\n ",";\n ",";\n "],["\n ",";\n ",";\n "])),P?"padding: ".concat(P,";"):"",M),L=s?mb[s]:void 0,j="OPTIONAL"===s?S:T,I=g[j]||j||L&&g[L.color],N=function(e){var n=e||{},r=n.backgroundColor,o=n.color,i=n.fontSize,a=n.fontVariant,u=n.fontWeight,l=n.padding,s=n.styles,c=n.wrapperStyles,d=n.iconColor,f=t(By||(By=ae(["\n ",";\n ",";\n "],["\n ",";\n ",";\n "])),(function(e){var t=e.theme,n=t.colors,s=t.fonts;return"\n ".concat(r?"background-color: ".concat(n[r]||r,";"):"",";\n ").concat(o?"color: ".concat(n[o]||o,";"):"",";\n ").concat(i?"font-size: ".concat(i,"px;"):"",";\n ").concat(a?s[a]:"",";\n ").concat(u?"font-weight: ".concat(u,";"):"",";\n ").concat(l?"padding: ".concat(l,";"):"",";\n ")}),s),p=t(ky||(ky=ae(["\n ",";\n ",";\n "],["\n ",";\n ",";\n "])),(function(e){var t=e.theme.colors;return"\n svg path {\n stroke: ".concat(t[d]||d,";\n }\n ")}),c);return{tooltipStyles:f,tooltipWrapperStyles:p}}(p),R=N.tooltipStyles,z=N.tooltipWrapperStyles;return u(bb,te({$styles:B},{children:[u(Cb,te({$styles:k},{children:[a(vb,{fontVariant:D,textSize:b,fontWeight:w,textColor:l?g.red:A||g.gray2,text:r,variant:"custom",isRichText:v}),!!c&&a(Kg,te({},i&&{visible:!0},{overlay:c,styles:R},{children:a(Db,te({$styles:z},{children:a(Ke,{color:l?g.red:g.gray2,name:"Info"})}))}))]})),!!L&&a(vb,{fontVariant:"XS",textColor:I,textSize:O,text:L.text,styles:_,variant:"custom"})]}))},bb=e.div(Oy||(Oy=ae(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n ",";\n"],["\n display: flex;\n justify-content: space-between;\n align-items: center;\n ",";\n"])),(function(e){return e.$styles})),Cb=e.div(Sy||(Sy=ae(["\n display: flex;\n align-items: center;\n ",";\n"],["\n display: flex;\n align-items: center;\n ",";\n"])),(function(e){return e.$styles})),Db=e.div(Py||(Py=ae(["\n margin-left: 6px;\n display: flex;\n cursor: pointer;\n ",";\n"],["\n margin-left: 6px;\n display: flex;\n cursor: pointer;\n ",";\n"])),(function(e){return e.$styles})),wb=e=>"checkbox"===e.type,xb=e=>e instanceof Date,Eb=e=>null==e;const Bb=e=>"object"==typeof e;var kb=e=>!Eb(e)&&!Array.isArray(e)&&Bb(e)&&!xb(e),Ab=e=>kb(e)&&e.target?wb(e.target)?e.target.checked:e.target.value:e,Fb=(e,t)=>e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(t)),Ob=e=>Array.isArray(e)?e.filter(Boolean):[],Sb=e=>void 0===e,Pb=(e,t,n)=>{if(!t||!kb(e))return n;const r=Ob(t.split(/[,[\].]+?/)).reduce(((e,t)=>Eb(e)?e:e[t]),e);return Sb(r)||r===e?Sb(e[t])?n:e[t]:r};const Tb="blur",Mb="focusout",_b="change",Lb="onBlur",jb="onChange",Ib="onSubmit",Nb="onTouched",Rb="all",zb="max",Vb="min",Wb="maxLength",Hb="minLength",$b="pattern",Ub="required",qb="validate",Xb=c.createContext(null),Kb=()=>c.useContext(Xb),Yb=e=>{const{children:t,...n}=e;return c.createElement(Xb.Provider,{value:n},t)};var Gb=(e,t,n,r=!0)=>{const o={};for(const i in e)Object.defineProperty(o,i,{get:()=>{const o=i;return t[o]!==Rb&&(t[o]=!r||Rb),n&&(n[o]=!0),e[o]}});return o},Zb=e=>kb(e)&&!Object.keys(e).length,Jb=(e,t,n)=>{const{name:r,...o}=e;return Zb(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find((e=>t[e]===(!n||Rb)))},Qb=e=>Array.isArray(e)?e:[e],eC=(e,t,n)=>n&&t?e===t:!e||!t||e===t||Qb(e).some((e=>e&&(e.startsWith(t)||t.startsWith(e))));function tC(e){const t=c.useRef(e);t.current=e,c.useEffect((()=>{const n=!e.disabled&&t.current.subject.subscribe({next:t.current.callback});return()=>(e=>{e&&e.unsubscribe()})(n)}),[e.disabled])}var nC=e=>"string"==typeof e,rC=(e,t,n,r)=>{const o=Array.isArray(e);return nC(e)?(r&&t.watch.add(e),Pb(n,e)):o?e.map((e=>(r&&t.watch.add(e),Pb(n,e)))):(r&&(t.watchAll=!0),n)},oC=e=>"function"==typeof e,iC=e=>{for(const t in e)if(oC(e[t]))return!0;return!1};function aC(e){const t=Kb(),{name:n,control:r=t.control,shouldUnregister:o}=e,i=Fb(r._names.array,n),a=function(e){const t=Kb(),{control:n=t.control,name:r,defaultValue:o,disabled:i,exact:a}=e||{},u=c.useRef(r);u.current=r;const l=c.useCallback((e=>{if(eC(u.current,e.name,a)){const t=rC(u.current,n._names,e.values||n._formValues);d(Sb(u.current)||kb(t)&&!iC(t)?{...t}:Array.isArray(t)?[...t]:Sb(t)?o:t)}}),[n,a,o]);tC({disabled:i,subject:n._subjects.watch,callback:l});const[s,d]=c.useState(Sb(o)?n._getWatch(r):o);return c.useEffect((()=>{n._removeUnmounted()})),s}({control:r,name:n,defaultValue:Pb(r._formValues,n,Pb(r._defaultValues,n,e.defaultValue)),exact:!0}),u=function(e){const t=Kb(),{control:n=t.control,disabled:r,name:o,exact:i}=e||{},[a,u]=c.useState(n._formState),l=c.useRef({isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),s=c.useRef(o),d=c.useRef(!0);return s.current=o,tC({disabled:r,callback:c.useCallback((e=>d.current&&eC(s.current,e.name,i)&&Jb(e,l.current)&&u({...n._formState,...e})),[n,i]),subject:n._subjects.state}),c.useEffect((()=>(d.current=!0,()=>{d.current=!1})),[]),Gb(a,n._proxyFormState,l.current,!1)}({control:r,name:n}),l=c.useRef(r.register(n,{...e.rules,value:a}));return c.useEffect((()=>{const e=(e,t)=>{const n=Pb(r._fields,e);n&&(n._f.mount=t)};return e(n,!0),()=>{const t=r._options.shouldUnregister||o;(i?t&&!r._stateFlags.action:t)?r.unregister(n):e(n,!1)}}),[n,r,i,o]),{field:{name:n,value:a,onChange:c.useCallback((e=>{l.current.onChange({target:{value:Ab(e),name:n},type:_b})}),[n]),onBlur:c.useCallback((()=>{l.current.onBlur({target:{value:Pb(r._formValues,n),name:n},type:Tb})}),[n,r]),ref:c.useCallback((e=>{const t=Pb(r._fields,n);e&&t&&e.focus&&(t._f.ref={focus:()=>e.focus(),select:()=>e.select(),setCustomValidity:t=>e.setCustomValidity(t),reportValidity:()=>e.reportValidity()})}),[n,r._fields])},formState:u,fieldState:Object.defineProperties({},{invalid:{get:()=>!!Pb(u.errors,n)},isDirty:{get:()=>!!Pb(u.dirtyFields,n)},isTouched:{get:()=>!!Pb(u.touchedFields,n)},error:{get:()=>Pb(u.errors,n)}})}}const uC=e=>e.render(aC(e));var lC=(e,t,n,r,o)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:o||!0}}:{},sC=e=>/^\w*$/.test(e),cC=e=>Ob(e.replace(/["|']|\]/g,"").split(/\.|\[/));function dC(e,t,n){let r=-1;const o=sC(t)?[t]:cC(t),i=o.length,a=i-1;for(;++r<i;){const t=o[r];let i=n;if(r!==a){const n=e[t];i=kb(n)||Array.isArray(n)?n:isNaN(+o[r+1])?{}:[]}e[t]=i,e=e[t]}return e}const fC=(e,t,n)=>{for(const r of n||Object.keys(e)){const n=Pb(e,r);if(n){const{_f:e,...r}=n;if(e&&t(e.name)){if(e.ref.focus&&Sb(e.ref.focus()))break;if(e.refs){e.refs[0].focus();break}}else kb(r)&&fC(r,t)}}};var pC=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some((t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length))))),hC=(e,t,n)=>{const r=Ob(Pb(e,n));return dC(r,"root",t[n]),dC(e,n,r),e},vC=e=>"boolean"==typeof e,gC=e=>"file"===e.type,mC=e=>nC(e)||c.isValidElement(e),yC=e=>"radio"===e.type,bC=e=>e instanceof RegExp;const CC={value:!1,isValid:!1},DC={value:!0,isValid:!0};var wC=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter((e=>e&&e.checked&&!e.disabled)).map((e=>e.value));return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Sb(e[0].attributes.value)?Sb(e[0].value)||""===e[0].value?DC:{value:e[0].value,isValid:!0}:DC:CC}return CC};const xC={isValid:!1,value:null};var EC=e=>Array.isArray(e)?e.reduce(((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e),xC):xC;function BC(e,t,n="validate"){if(mC(e)||Array.isArray(e)&&e.every(mC)||vC(e)&&!e)return{type:n,message:mC(e)?e:"",ref:t}}var kC=e=>kb(e)&&!bC(e)?e:{value:e,message:""},AC=async(e,t,n,r,o)=>{const{ref:i,refs:a,required:u,maxLength:l,minLength:s,min:c,max:d,pattern:f,validate:p,name:h,valueAsNumber:v,mount:g,disabled:m}=e._f;if(!g||m)return{};const y=a?a[0]:i,b=e=>{r&&y.reportValidity&&(y.setCustomValidity(vC(e)?"":e||" "),y.reportValidity())},C={},D=yC(i),w=wb(i),x=D||w,E=(v||gC(i))&&!i.value||""===t||Array.isArray(t)&&!t.length,B=lC.bind(null,h,n,C),k=(e,t,n,r=Wb,o=Hb)=>{const a=e?t:n;C[h]={type:e?r:o,message:a,ref:i,...B(e?r:o,a)}};if(o?!Array.isArray(t)||!t.length:u&&(!x&&(E||Eb(t))||vC(t)&&!t||w&&!wC(a).isValid||D&&!EC(a).isValid)){const{value:e,message:t}=mC(u)?{value:!!u,message:u}:kC(u);if(e&&(C[h]={type:Ub,message:t,ref:y,...B(Ub,t)},!n))return b(t),C}if(!(E||Eb(c)&&Eb(d))){let e,r;const o=kC(d),a=kC(c);if(Eb(t)||isNaN(t)){const n=i.valueAsDate||new Date(t);nC(o.value)&&(e=n>new Date(o.value)),nC(a.value)&&(r=n<new Date(a.value))}else{const n=i.valueAsNumber||+t;Eb(o.value)||(e=n>o.value),Eb(a.value)||(r=n<a.value)}if((e||r)&&(k(!!e,o.message,a.message,zb,Vb),!n))return b(C[h].message),C}if((l||s)&&!E&&(nC(t)||o&&Array.isArray(t))){const e=kC(l),r=kC(s),o=!Eb(e.value)&&t.length>e.value,i=!Eb(r.value)&&t.length<r.value;if((o||i)&&(k(o,e.message,r.message),!n))return b(C[h].message),C}if(f&&!E&&nC(t)){const{value:e,message:r}=kC(f);if(bC(e)&&!t.match(e)&&(C[h]={type:$b,message:r,ref:i,...B($b,r)},!n))return b(r),C}if(p)if(oC(p)){const e=BC(await p(t),y);if(e&&(C[h]={...e,...B(qb,e.message)},!n))return b(e.message),C}else if(kb(p)){let e={};for(const r in p){if(!Zb(e)&&!n)break;const o=BC(await p[r](t),y,r);o&&(e={...o,...B(r,o.message)},b(o.message),n&&(C[h]=e))}if(!Zb(e)&&(C[h]={ref:y,...e},!n))return C}return b(!0),C},FC="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function OC(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else{if(FC&&(e instanceof Blob||e instanceof FileList)||!n&&!kb(e))return e;t=n?[]:{};for(const n in e){if(oC(e[n])){t=e;break}t[n]=OC(e[n])}}return t}var SC=e=>({isOnSubmit:!e||e===Ib,isOnBlur:e===Lb,isOnChange:e===jb,isOnAll:e===Rb,isOnTouch:e===Nb});function PC(e){for(const t in e)if(!Sb(e[t]))return!1;return!0}function TC(e,t){const n=sC(t)?[t]:cC(t),r=1==n.length?e:function(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=Sb(e)?r++:e[t[r++]];return e}(e,n),o=n[n.length-1];let i;r&&delete r[o];for(let t=0;t<n.slice(0,-1).length;t++){let r,o=-1;const a=n.slice(0,-(t+1)),u=a.length-1;for(t>0&&(i=e);++o<a.length;){const t=a[o];r=r?r[t]:e[t],u===o&&(kb(r)&&Zb(r)||Array.isArray(r)&&PC(r))&&(i?delete i[t]:delete e[t]),i=r}}return e}function MC(){let e=[];return{get observers(){return e},next:t=>{for(const n of e)n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter((e=>e!==t))}}),unsubscribe:()=>{e=[]}}}var _C=e=>Eb(e)||!Bb(e);function LC(e,t){if(_C(e)||_C(t))return e===t;if(xb(e)&&xb(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const o of n){const n=e[o];if(!r.includes(o))return!1;if("ref"!==o){const e=t[o];if(xb(n)&&xb(e)||kb(n)&&kb(e)||Array.isArray(n)&&Array.isArray(e)?!LC(n,e):n!==e)return!1}}return!0}var jC=e=>{const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},IC=e=>"select-multiple"===e.type,NC=e=>jC(e)&&e.isConnected;function RC(e,t={}){const n=Array.isArray(e);if(kb(e)||n)for(const n in e)Array.isArray(e[n])||kb(e[n])&&!iC(e[n])?(t[n]=Array.isArray(e[n])?[]:{},RC(e[n],t[n])):Eb(e[n])||(t[n]=!0);return t}function zC(e,t,n){const r=Array.isArray(e);if(kb(e)||r)for(const r in e)Array.isArray(e[r])||kb(e[r])&&!iC(e[r])?Sb(t)||_C(n[r])?n[r]=Array.isArray(e[r])?RC(e[r],[]):{...RC(e[r])}:zC(e[r],Eb(t)?{}:t[r],n[r]):n[r]=!LC(e[r],t[r]);return n}var VC=(e,t)=>zC(e,t,RC(t)),WC=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Sb(e)?e:t?""===e||Eb(e)?NaN:+e:n&&nC(e)?new Date(e):r?r(e):e;function HC(e){const t=e.ref;if(!(e.refs?e.refs.every((e=>e.disabled)):t.disabled))return gC(t)?t.files:yC(t)?EC(e.refs).value:IC(t)?[...t.selectedOptions].map((({value:e})=>e)):wb(t)?wC(e.refs).value:WC(Sb(t.value)?e.ref.value:t.value,e)}var $C=e=>Sb(e)?void 0:bC(e)?e.source:kb(e)?bC(e.value)?e.value.source:e.value:e;function UC(e,t,n){const r=Pb(e,n);if(r||sC(n))return{error:r,name:n};const o=n.split(".");for(;o.length;){const r=o.join("."),i=Pb(t,r),a=Pb(e,r);if(i&&!Array.isArray(i)&&n!==r)return{name:n};if(a&&a.type)return{name:r,error:a};o.pop()}return{name:n}}const qC={mode:Ib,reValidateMode:jb,shouldFocusError:!0};function XC(e={}){let t,n={...qC,...e},r={isDirty:!1,isValidating:!1,dirtyFields:{},isSubmitted:!1,submitCount:0,touchedFields:{},isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,errors:{}},o={},i=OC(n.defaultValues)||{},a=n.shouldUnregister?{}:OC(i),u={action:!1,mount:!1,watch:!1},l={mount:new Set,unMount:new Set,array:new Set,watch:new Set},s=0,c={};const d={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},f={watch:MC(),array:MC(),state:MC()},p=SC(n.mode),h=SC(n.reValidateMode),v=n.criteriaMode===Rb,g=async e=>{let t=!1;return d.isValid&&(t=n.resolver?Zb((await C()).errors):await D(o,!0),e||t===r.isValid||(r.isValid=t,f.state.next({isValid:t}))),t},m=(e,t,n,r)=>{const l=Pb(o,e);if(l){const o=Pb(a,e,Sb(n)?Pb(i,e):n);Sb(o)||r&&r.defaultChecked||t?dC(a,e,t?o:HC(l._f)):E(e,o),u.mount&&g()}},y=(e,t,n,o,a)=>{let u=!1;const l={name:e},s=Pb(r.touchedFields,e);if(d.isDirty){const e=r.isDirty;r.isDirty=l.isDirty=w(),u=e!==l.isDirty}if(d.dirtyFields&&(!n||o)){const n=Pb(r.dirtyFields,e);LC(Pb(i,e),t)?TC(r.dirtyFields,e):dC(r.dirtyFields,e,!0),l.dirtyFields=r.dirtyFields,u=u||n!==Pb(r.dirtyFields,e)}return n&&!s&&(dC(r.touchedFields,e,n),l.touchedFields=r.touchedFields,u=u||d.touchedFields&&s!==n),u&&a&&f.state.next(l),u?l:{}},b=async(n,o,i,a)=>{const u=Pb(r.errors,n),l=d.isValid&&r.isValid!==o;var p;if(e.delayError&&i?(p=()=>((e,t)=>{dC(r.errors,e,t),f.state.next({errors:r.errors})})(n,i),t=e=>{clearTimeout(s),s=window.setTimeout(p,e)},t(e.delayError)):(clearTimeout(s),t=null,i?dC(r.errors,n,i):TC(r.errors,n)),(i?!LC(u,i):u)||!Zb(a)||l){const e={...a,...l?{isValid:o}:{},errors:r.errors,name:n};r={...r,...e},f.state.next(e)}c[n]--,d.isValidating&&!Object.values(c).some((e=>e))&&(f.state.next({isValidating:!1}),c={})},C=async e=>n.resolver?await n.resolver({...a},n.context,((e,t,n,r)=>{const o={};for(const n of e){const e=Pb(t,n);e&&dC(o,n,e._f)}return{criteriaMode:n,names:[...e],fields:o,shouldUseNativeValidation:r}})(e||l.mount,o,n.criteriaMode,n.shouldUseNativeValidation)):{},D=async(e,t,o={valid:!0})=>{for(const i in e){const u=e[i];if(u){const{_f:e,...i}=u;if(e){const i=l.array.has(e.name),s=await AC(u,Pb(a,e.name),v,n.shouldUseNativeValidation,i);if(s[e.name]&&(o.valid=!1,t))break;!t&&(Pb(s,e.name)?i?hC(r.errors,s,e.name):dC(r.errors,e.name,s[e.name]):TC(r.errors,e.name))}i&&await D(i,t,o)}}return o.valid},w=(e,t)=>(e&&t&&dC(a,e,t),!LC(O(),i)),x=(e,t,n)=>{const r={...u.mount?a:Sb(t)?i:nC(e)?{[e]:t}:t};return rC(e,l,r,n)},E=(e,t,n={})=>{const r=Pb(o,e);let i=t;if(r){const n=r._f;n&&(!n.disabled&&dC(a,e,WC(t,n)),i=FC&&jC(n.ref)&&Eb(t)?"":t,IC(n.ref)?[...n.ref.options].forEach((e=>e.selected=i.includes(e.value))):n.refs?wb(n.ref)?n.refs.length>1?n.refs.forEach((e=>!e.disabled&&(e.checked=Array.isArray(i)?!!i.find((t=>t===e.value)):i===e.value))):n.refs[0]&&(n.refs[0].checked=!!i):n.refs.forEach((e=>e.checked=e.value===i)):gC(n.ref)?n.ref.value="":(n.ref.value=i,n.ref.type||f.watch.next({name:e})))}(n.shouldDirty||n.shouldTouch)&&y(e,i,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&F(e)},B=(e,t,n)=>{for(const r in t){const i=t[r],a=`${e}.${r}`,u=Pb(o,a);!l.array.has(e)&&_C(i)&&(!u||u._f)||xb(i)?E(a,i,n):B(a,i,n)}},k=(e,t,n={})=>{const u=Pb(o,e),s=l.array.has(e),c=OC(t);dC(a,e,c),s?(f.array.next({name:e,values:a}),(d.isDirty||d.dirtyFields)&&n.shouldDirty&&(r.dirtyFields=VC(i,a),f.state.next({name:e,dirtyFields:r.dirtyFields,isDirty:w(e,c)}))):!u||u._f||Eb(c)?E(e,c,n):B(e,c,n),pC(e,l)&&f.state.next({}),f.watch.next({name:e})},A=async e=>{const i=e.target;let u=i.name;const s=Pb(o,u);if(s){let m,D;const w=i.type?HC(s._f):Ab(e),x=e.type===Tb||e.type===Mb,E=!((d=s._f).mount&&(d.required||d.min||d.max||d.maxLength||d.minLength||d.pattern||d.validate)||n.resolver||Pb(r.errors,u)||s._f.deps)||((e,t,n,r,o)=>!o.isOnAll&&(!n&&o.isOnTouch?!(t||e):(n?r.isOnBlur:o.isOnBlur)?!e:!(n?r.isOnChange:o.isOnChange)||e))(x,Pb(r.touchedFields,u),r.isSubmitted,h,p),B=pC(u,l,x);dC(a,u,w),x?(s._f.onBlur&&s._f.onBlur(e),t&&t(0)):s._f.onChange&&s._f.onChange(e);const k=y(u,w,x,!1),A=!Zb(k)||B;if(!x&&f.watch.next({name:u,type:e.type}),E)return A&&f.state.next({name:u,...B?{}:k});if(!x&&B&&f.state.next({}),c[u]=(c[u],1),f.state.next({isValidating:!0}),n.resolver){const{errors:e}=await C([u]),t=UC(r.errors,o,u),n=UC(e,o,t.name||u);m=n.error,u=n.name,D=Zb(e)}else m=(await AC(s,Pb(a,u),v,n.shouldUseNativeValidation))[u],D=await g(!0);s._f.deps&&F(s._f.deps),b(u,D,m,k)}var d},F=async(e,t={})=>{let i,a;const u=Qb(e);if(f.state.next({isValidating:!0}),n.resolver){const t=await(async e=>{const{errors:t}=await C();if(e)for(const n of e){const e=Pb(t,n);e?dC(r.errors,n,e):TC(r.errors,n)}else r.errors=t;return t})(Sb(e)?e:u);i=Zb(t),a=e?!u.some((e=>Pb(t,e))):i}else e?(a=(await Promise.all(u.map((async e=>{const t=Pb(o,e);return await D(t&&t._f?{[e]:t}:t)})))).every(Boolean),(a||r.isValid)&&g()):a=i=await D(o);return f.state.next({...!nC(e)||d.isValid&&i!==r.isValid?{}:{name:e},...n.resolver?{isValid:i}:{},errors:r.errors,isValidating:!1}),t.shouldFocus&&!a&&fC(o,(e=>Pb(r.errors,e)),e?u:l.mount),a},O=e=>{const t={...i,...u.mount?a:{}};return Sb(e)?t:nC(e)?Pb(t,e):e.map((e=>Pb(t,e)))},S=(e,t)=>({invalid:!!Pb((t||r).errors,e),isDirty:!!Pb((t||r).dirtyFields,e),isTouched:!!Pb((t||r).touchedFields,e),error:Pb((t||r).errors,e)}),P=(e,t={})=>{for(const u of e?Qb(e):l.mount)l.mount.delete(u),l.array.delete(u),Pb(o,u)&&(t.keepValue||(TC(o,u),TC(a,u)),!t.keepError&&TC(r.errors,u),!t.keepDirty&&TC(r.dirtyFields,u),!t.keepTouched&&TC(r.touchedFields,u),!n.shouldUnregister&&!t.keepDefaultValue&&TC(i,u));f.watch.next({}),f.state.next({...r,...t.keepDirty?{isDirty:w()}:{}}),!t.keepIsValid&&g()},T=(e,t={})=>{let r=Pb(o,e);const s=vC(t.disabled);return dC(o,e,{_f:{...r&&r._f?r._f:{ref:{name:e}},name:e,mount:!0,...t}}),l.mount.add(e),r?s&&dC(a,e,t.disabled?void 0:Pb(a,e,HC(r._f))):m(e,!0,t.value),{...s?{disabled:t.disabled}:{},...n.shouldUseNativeValidation?{required:!!t.required,min:$C(t.min),max:$C(t.max),minLength:$C(t.minLength),maxLength:$C(t.maxLength),pattern:$C(t.pattern)}:{},name:e,onChange:A,onBlur:A,ref:a=>{if(a){T(e,t),r=Pb(o,e);const n=Sb(a.value)&&a.querySelectorAll&&a.querySelectorAll("input,select,textarea")[0]||a,u=(e=>yC(e)||wb(e))(n),l=r._f.refs||[];if(u?l.find((e=>e===n)):n===r._f.ref)return;dC(o,e,{_f:{...r._f,...u?{refs:[...l.filter(NC),n,...Array.isArray(Pb(i,e))?[{}]:[]],ref:{type:n.type,name:e}}:{ref:n}}}),m(e,!1,void 0,n)}else r=Pb(o,e,{}),r._f&&(r._f.mount=!1),(n.shouldUnregister||t.shouldUnregister)&&(!Fb(l.array,e)||!u.action)&&l.unMount.add(e)}}};return{control:{register:T,unregister:P,getFieldState:S,_executeSchema:C,_getWatch:x,_getDirty:w,_updateValid:g,_removeUnmounted:()=>{for(const e of l.unMount){const t=Pb(o,e);t&&(t._f.refs?t._f.refs.every((e=>!NC(e))):!NC(t._f.ref))&&P(e)}l.unMount=new Set},_updateFieldArray:(e,t=[],n,l,s=!0,c=!0)=>{if(l&&n){if(u.action=!0,c&&Array.isArray(Pb(o,e))){const t=n(Pb(o,e),l.argA,l.argB);s&&dC(o,e,t)}if(d.errors&&c&&Array.isArray(Pb(r.errors,e))){const t=n(Pb(r.errors,e),l.argA,l.argB);s&&dC(r.errors,e,t),((e,t)=>{!Ob(Pb(e,t)).length&&TC(e,t)})(r.errors,e)}if(d.touchedFields&&c&&Array.isArray(Pb(r.touchedFields,e))){const t=n(Pb(r.touchedFields,e),l.argA,l.argB);s&&dC(r.touchedFields,e,t)}d.dirtyFields&&(r.dirtyFields=VC(i,a)),f.state.next({isDirty:w(e,t),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else dC(a,e,t)},_getFieldArray:t=>Ob(Pb(u.mount?a:i,t,e.shouldUnregister?Pb(i,t,[]):[])),_subjects:f,_proxyFormState:d,get _fields(){return o},get _formValues(){return a},get _stateFlags(){return u},set _stateFlags(e){u=e},get _defaultValues(){return i},get _names(){return l},set _names(e){l=e},get _formState(){return r},set _formState(e){r=e},get _options(){return n},set _options(e){n={...n,...e}}},trigger:F,register:T,handleSubmit:(e,t)=>async i=>{i&&(i.preventDefault&&i.preventDefault(),i.persist&&i.persist());let u=!0,s=OC(a);f.state.next({isSubmitting:!0});try{if(n.resolver){const{errors:e,values:t}=await C();r.errors=e,s=t}else await D(o);Zb(r.errors)?(f.state.next({errors:{},isSubmitting:!0}),await e(s,i)):(t&&await t({...r.errors},i),n.shouldFocusError&&fC(o,(e=>Pb(r.errors,e)),l.mount))}catch(e){throw u=!1,e}finally{r.isSubmitted=!0,f.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Zb(r.errors)&&u,submitCount:r.submitCount+1,errors:r.errors})}},watch:(e,t)=>oC(e)?f.watch.subscribe({next:n=>e(x(void 0,t),n)}):x(e,t,!0),setValue:k,getValues:O,reset:(t,n={})=>{const s=t||i,c=OC(s),p=t&&!Zb(t)?c:i;if(n.keepDefaultValues||(i=s),!n.keepValues){if(n.keepDirtyValues)for(const e of l.mount)Pb(r.dirtyFields,e)?dC(p,e,Pb(a,e)):k(e,Pb(p,e));else{if(FC&&Sb(t))for(const e of l.mount){const t=Pb(o,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;try{if(jC(e)){e.closest("form").reset();break}}catch(e){}}}o={}}a=e.shouldUnregister?n.keepDefaultValues?OC(i):{}:c,f.array.next({values:p}),f.watch.next({values:p})}l={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},u.mount=!d.isValid||!!n.keepIsValid,u.watch=!!e.shouldUnregister,f.state.next({submitCount:n.keepSubmitCount?r.submitCount:0,isDirty:n.keepDirty||n.keepDirtyValues?r.isDirty:!(!n.keepDefaultValues||LC(t,i)),isSubmitted:!!n.keepIsSubmitted&&r.isSubmitted,dirtyFields:n.keepDirty||n.keepDirtyValues?r.dirtyFields:n.keepDefaultValues&&t?VC(i,t):{},touchedFields:n.keepTouched?r.touchedFields:{},errors:n.keepErrors?r.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},resetField:(e,t={})=>{Pb(o,e)&&(Sb(t.defaultValue)?k(e,Pb(i,e)):(k(e,t.defaultValue),dC(i,e,t.defaultValue)),t.keepTouched||TC(r.touchedFields,e),t.keepDirty||(TC(r.dirtyFields,e),r.isDirty=t.defaultValue?w(e,Pb(i,e)):w()),t.keepError||(TC(r.errors,e),d.isValid&&g()),f.state.next({...r}))},clearErrors:e=>{e?Qb(e).forEach((e=>TC(r.errors,e))):r.errors={},f.state.next({errors:r.errors})},unregister:P,setError:(e,t,n)=>{const i=(Pb(o,e,{_f:{}})._f||{}).ref;dC(r.errors,e,{...t,ref:i}),f.state.next({name:e,errors:r.errors,isValid:!1}),n&&n.shouldFocus&&i&&i.focus&&i.focus()},setFocus:(e,t={})=>{const n=Pb(o,e)._f,r=n.refs?n.refs[0]:n.ref;r.focus(),t.shouldSelect&&r.select()},getFieldState:S}}var KC,YC,GC,ZC,JC,QC,eD,tD,nD,rD,oD,iD,aD,uD,lD,sD,cD,dD=function(e,t){var n,r=Kb(),o=e||{},i=o.criteriaList,a=void 0===i?[]:i,u=o.segmentationType;if(!a.length)return!0;var l=null!==(n=null==r?void 0:r.watch())&&void 0!==n?n:t,s=b(fD({criteriaList:a,data:l}),[a,l]);return"simple"!==u||(null==a?void 0:a.every((function(e){return s(e)})))},fD=function(e){var t=e.criteriaList,n=void 0===t?[]:t,r=e.data,o=void 0===r?{}:r,i=function(e){if(!e)return!0;if("condition"===e.type){var t=function(e,t,n){var r=t?e[t]:void 0;return"object"!=typeof r||null===r||Array.isArray(r)?r:n?r[n]:r}(o,null==e?void 0:e.dataFieldId,null==e?void 0:e.subtypeId);if(!t||!(null==t?void 0:t.length)||!e.dataValue)return!1;switch(e.operator){case"is":return Array.isArray(t)?t.includes(e.dataValue):t===e.dataValue;case"is_not":return Array.isArray(t)?!t.includes(e.dataValue):t!==e.dataValue;default:return!0}}else if("operator"===e.type){var r=n.find((function(t){return t.id===e.connectedTo})),a=n.find((function(t){return t.connectedTo===e.id}));if(r&&a)switch(e.operator){case"and":return i(a)&&i(r);case"or":return i(a)||i(r);case"not":return i(a)!==i(r);default:return!1}}return!1};return i},pD=function(e,t){if(!t||!e||"number"==typeof e||"object"==typeof e)return e;var n=e.split("-"),r=n[0],o=n[1],i=n[2];switch(t){case"year_month_day_date":return"".concat(r,"/").concat(o,"/").concat(i);case"month_day_year_date":return"".concat(o,"/").concat(i,"/").concat(r);case"day_month_year_date":return"".concat(i,"/").concat(o,"/").concat(r);case"month_year_date":return"".concat(o,"/").concat(r);default:return e}},hD=function(e){var t=e.setFormData,n=e.defaultValue,r=e.dataModelField,o=rt().stateConfig;f((function(){if(r&&o){var e=null==r?void 0:r.dataModelFieldId,i=null==r?void 0:r.entitySubtypeId,a=null==r?void 0:r.format.value,u=o[e];null==t||t((function(t){var r,o,l,s,c=te({},t);if(i){var d=null!==(l=pD(null===(o=null==u?void 0:u[i])||void 0===o?void 0:o.value,a))&&void 0!==l?l:n;c[e]=te(te({},c[e]||{}),((r={})[i]={value:d},r))}else{var f=null!==(s=pD(null==u?void 0:u.value,a))&&void 0!==s?s:n;c[e]=te(te({},c[e]||{}),{value:f})}return c}))}}),[r,o]),f((function(){var e,o;if(n&&r){var i=null===(o=null==r?void 0:r.dataFieldName)||void 0===o?void 0:o.toLowerCase().replace(/\p{Zs}/gu,"_");null==t||t(((e={})[i]=n,e))}return function(){return null==t?void 0:t({})}}),[r,n])},vD=function(e){var t=e.item,n=e.activeChildrenIds,r=d(),o=r[0],i=r[1],a=y((function(){return n.map((function(e){var n=t.items.find((function(t){return t.id===e}));return n?function(e){var t,n,r,o=(null===(n=null===(t=e.config)||void 0===t?void 0:t.props)||void 0===n?void 0:n.formStepProps)||{};return te(te({},e),{config:te(te({},e.config),{props:te(te({},null===(r=e.config)||void 0===r?void 0:r.props),{formStepProps:te(te({},o),{order:0})})})})}(n):void 0})).filter(Boolean)}),[n,t]);return f((function(){i((function(){return te(te({},t),{items:a})}))}),[t]),o},gD=["day_month_year_date","month_day_year_date","month_year_date"],mD=function(e){var t,n,r=e.control,o=e.name,i=void 0===o?"":o,s=e.inputProps,c=e.styles,p=e.labelsProps,h=e.defaultValue,v=void 0===h?"":h,g=e.optional,m=e.required,y=e.rules,b=e.conditionConfig,C=e.state,D=e.formData,w=e.htmlElementId,x=e.configurationItemInfo,E="password"===(null==s?void 0:s.type),B=d(E),k=B[0],A=B[1],F=Kb(),O=tt(),S=O.setDateFields,P=O.isFormInEditMode,T="format_error"===C||"field_error"===C||"match_error"===C,M=dD(b,D),_="";try{_=(null==p?void 0:p.label)&&(null===(n=null===(t=JSON.parse(null==p?void 0:p.label)[0])||void 0===t?void 0:t.children[0])||void 0===n?void 0:n.text)}catch(e){_="",console.error(e,"Toopltip text was parsed incorrectly")}if(f((function(){(null==b?void 0:b.criteriaList.length)&&M&&F&&F.setValue(i,"")}),[b,M]),f((function(){C&&T&&F&&F.trigger(i)}),[C,F,T]),f((function(){D&&F&&F.reset(D)}),[D]),f((function(){(null==s?void 0:s.type)&&gD.includes(s.type)&&S((function(e){return ie(ie([],e,!0),[{id:i,dateType:s.type}],!1)}))}),[null==s?void 0:s.type]),!M)return null;var L=(null==s?void 0:s.rightIcon)||E?{name:k?"View":"Hide",onClick:function(){return A((function(e){return!e}))}}:void 0,j=E?k?"password":"text":null==s?void 0:s.type;return r?a(uC,{name:i,control:r,rules:te({required:{value:!!m,message:"This field is required"},pattern:Bt(null==s?void 0:s.type)},y),defaultValue:v,render:function(e){var t,n=e.field,r=e.fieldState.error,o=(s||{}).isEditMode,i="format_error"===C&&"any"!==j||(void 0===o||o)&&!!r,d=E&&"match_error"===C&&"Your passwords do not match each other"||("format_error"===C?null===(t=Bt(j))||void 0===t?void 0:t.message:i?null==r?void 0:r.message:void 0),f=null===(null==p?void 0:p.ruleLabel)?p.ruleLabel:m?"REQUIRED":g?"OPTIONAL":void 0;return u(yD,te({id:(null==x?void 0:x.isConfigurationMode)?"configurationWrapper":w,$styles:c},x,{children:[(null==p?void 0:p.label)&&u(l,{children:[a(yb,te({},p,{ruleLabel:P?f:void 0,isError:i,tooltipText:_})),a(as,{height:12})]}),a(Ps,te({},s,n,{onChange:function(e){"phone_number"===j?n.onChange(e.replace(/[()\s-]/g,"")):n.onChange(e)},isError:i,rightIcon:L,type:j,state:C})),!!d&&a(ss,{text:d})]}))}}):u(yD,te({id:(null==x?void 0:x.isConfigurationMode)?"configurationWrapper":w,$styles:c},x,{children:[p&&u(l,{children:[a(yb,te({},p,{tooltipText:_})),a(as,{height:12})]}),a(Ps,te({},s,{rightIcon:L,type:j,state:C}))]}))},yD=e.div(KC||(KC=ae(["\n width: 100%;\n ",";\n ","\n"],["\n width: 100%;\n ",";\n ","\n"])),(function(e){return e.$styles}),fb),bD=function(e,t){switch(void 0===t&&(t=""),e){case"input":return"Enter ".concat(t);case"select":return"Select ".concat(t);default:return t}},CD=function(e){var t={};return e.forEach((function(e){return t[e.name]=e.value})),t},DD=function(e){var t;return!(null===(t=Object.values(e.errors))||void 0===t?void 0:t.length)},wD=function(e){var t=[];return e.forEach((function(e){return t=t.concat.apply(t,e.fields)})),t},xD=function(e){var t=e.field,n=e.isEditMode,r=void 0===n||n,o=e.spacer,i=void 0===o?0:o,s=e.control,c=e.isTooltipVisible,d=e.optionsPresentation,f=e.styles;if(!s)return null;var p=null,h=t.type,v=t.name,g=void 0===v?"":v,m=t.placeholder,y=t.tooltip,b=t.label,C=void 0===b?"":b,D=t.required,w=t.rules;switch(t.type){case"input":var x=t.inputType,E=t.maxLength,B=t.onKeyDown,k=t.inputProps,A=t.labelsProps;p=a(mD,te({},t,{name:g.toString(),control:s,inputProps:te({placeholder:m||bD(h,C),type:x,maxLength:E,isEditMode:r,onKeyDown:B},k),labelsProps:te({label:C,tooltipText:y,isTooltipVisible:c},A),required:D,optional:!D,rules:w,styles:f}));break;case"select":var F=t.options;p=a(FD,{selectProps:{placeholder:m||bD(h,C),options:F,isEditMode:r,optionsPresentation:d},name:g.toString(),control:s,labelsProps:{label:C,tooltipText:y,isTooltipVisible:c},required:D,optional:!D,rules:w,styles:f});break;case"checkbox":var O=t.checkboxLabel;p=u(l,{children:[!!C&&u(l,{children:[a(us,te({variant:"L"},{children:C})),a(as,{height:20})]}),a(kD,{name:g.toString(),control:s,checkboxProps:{label:O}})]})}return u(l,{children:[!!i&&a(as,{height:i}),p]})},ED=e.div(YC||(YC=ae(["\n width: 100%;\n ","\n ","\n"],["\n width: 100%;\n ","\n ","\n"])),(function(e){return e.$styles}),fb),BD=e.div(ZC||(ZC=ae(["\n display: flex;\n flex-direction: column;\n ","\n"],["\n display: flex;\n flex-direction: column;\n ","\n"])),(function(e){var n=e.theme.sizes,r=e.$spacing,o=void 0===r?"S":r,i=e.$styles;return t(GC||(GC=ae(["\n gap: ","px;\n ",";\n "],["\n gap: ","px;\n ",";\n "])),n[o],i)})),kD=function(e){var t,n=e.checkboxesProps,r=e.name,i=void 0===r?"":r,l=e.rules,s=e.control,c=e.optional,d=e.required,p=e.labelsProps,h=e.wrapperStyles,v=e.conditionConfig,g=e.defaultValue,m=e.formData,y=e.htmlElementId,b=e.state,C=e.isTrigger,D=e.moleculeId,w=e.configurationItemInfo,x=o().sizes,E=Kb(),B=dD(v,m);return f((function(){m&&E&&E.reset(m)}),[m]),f((function(){b&&"field_error"===b&&E&&E.trigger(i)}),[b,E]),B?s?a(uC,{name:i,control:s,defaultValue:null!==(t=null==n?void 0:n.selectedIds)&&void 0!==t?t:g,rules:te({required:{value:!!d,message:"This field is required"}},l),render:function(e){var t=e.field,r=e.fieldState.error,o=!!r,i=o?null==r?void 0:r.message:void 0,l=d?"REQUIRED":c?"OPTIONAL":void 0;return u(ED,te({id:(null==w?void 0:w.isConfigurationMode)?"configurationWrapper":y,$styles:h},w,{children:[(null==p?void 0:p.label)&&a(yb,te({},p,{ruleLabel:l,isError:o})),a(as,{height:x.S+x.XS}),a(AD,te({checkboxesProps:te(te({},n),{selectedIds:t.value,isError:o})},t,{isTrigger:C,moleculeId:D})),!!i&&a(ss,{text:i})]}))}}):u(ED,te({id:(null==w?void 0:w.isConfigurationMode)?"configurationWrapper":y,$styles:h},w,{children:[p&&a(yb,te({},p)),a(as,{height:x.S+x.XS}),a(AD,{checkboxesProps:n,isTrigger:C,moleculeId:D})]})):null},AD=function(e){var t=e.ref,n=e.onBlur,r=e.onChange,o=e.checkboxesProps||{},i=o.options,u=o.isError,l=o.disabled,s=o.isRichText,c=void 0===s||s,p=o.isEditMode,h=o.internalConfig,v=o.selectedIds,g=void 0===v?[]:v,m=o.checkboxGroupWrapperStyles,y=d(g),b=y[0],C=y[1];f((function(){return C(g)}),[]);var D=h||{},w=D.buttonOptionSpacing,x=ne(D,["buttonOptionSpacing"]),E=function(e){C((function(t){var n=t.includes(e)?t.filter((function(t){return t!==e})):ie(ie([],t,!0),[e],!1);return null==r||r(n),n}))};return a(BD,te({ref:t,tabIndex:0,onBlur:n,$styles:m,$spacing:w},{children:null==i?void 0:i.map((function(e){var t=b.includes(e.id);return a(j,te({},e,{isError:u,disabled:l,isEditMode:p,isSelected:t,isRichText:c,onClick:E,internalConfig:x}),e.id)}))}))},FD=function(e){var t=e.selectProps,n=e.name,r=void 0===n?"":n,o=e.defaultValue,i=void 0===o?"":o,l=e.optional,s=e.required,c=e.control,d=e.styles,p=e.labelsProps,h=e.rules,v=e.conditionConfig,g=e.formData,m=e.state,y=e.htmlElementId,b=e.configurationItemInfo,C=dD(v,g),D=Kb();return f((function(){(null==v?void 0:v.criteriaList.length)&&C&&D&&D.setValue(r,"")}),[v,C]),f((function(){m&&"field_error"===m&&D&&D.trigger(r)}),[m,D]),f((function(){g&&D&&D.reset(g)}),[g]),C?c?a(uC,{name:r,control:c,rules:te({required:{value:!!s,message:"This field is required"}},h),defaultValue:i,render:function(e){var n=e.field,r=e.fieldState.error,o=!!r,i=o?null==r?void 0:r.message:void 0,c=s?"REQUIRED":l?"OPTIONAL":void 0;return u(OD,te({id:(null==b?void 0:b.isConfigurationMode)?"configurationWrapper":y,$styles:d},b,{children:[(null==p?void 0:p.label)&&a(yb,te({},p,{ruleLabel:c,isError:o})),a(as,{height:12}),a(Es,te({},t,n,{isError:o})),!!i&&a(ss,{text:i})]}))}}):u(OD,te({id:(null==b?void 0:b.isConfigurationMode)?"configurationWrapper":y,$styles:d},b,{children:[p&&a(yb,te({},p)),a(as,{height:12}),a(Es,te({},t))]})):null},OD=e.div(JC||(JC=ae(["\n width: 100%;\n ",";\n ","\n"],["\n width: 100%;\n ",";\n ","\n"])),(function(e){return e.$styles}),fb),SD=function(e){switch(e){case"error":return"ERROR";case"success":return"SUCCESS";default:return"DEFAULT"}},PD=function(e){var t=e.rules,n=e.value,r=e.isSubmitted,o=void 0===r||r,i=e.label,s=e.spacer,c=e.validationState;return u(l,{children:[i&&u(l,{children:[a(MD,te({variant:"S"},{children:i})),s&&a(as,{height:s})]}),a(TD,{children:t.map((function(e,t){return a($s,{status:c?SD(c):o?e.validate(n)?"SUCCESS":"ERROR":"DEFAULT",text:e.text},t)}))})]})},TD=e.div(QC||(QC=ae(["\n display: flex;\n flex-wrap: wrap;\n gap: ","px;\n"],["\n display: flex;\n flex-wrap: wrap;\n gap: ","px;\n"])),(function(e){return e.theme.sizes.M})),MD=e(us)(eD||(eD=ae(["\n color: ",";\n"],["\n color: ",";\n"])),(function(e){return e.theme.colors.gray2})),_D=e(us)(tD||(tD=ae(["\n color: ",";\n"],["\n color: ",";\n"])),(function(e){return e.theme.colors.gray2})),LD=t(nD||(nD=ae(["\n border-color: ",";\n ",",\n svg path {\n stroke: ",";\n color: ",";\n }\n"],["\n border-color: ",";\n ",",\n svg path {\n stroke: ",";\n color: ",";\n }\n"])),(function(e){return e.theme.colors.primary}),_D,(function(e){return e.theme.colors.primary}),(function(e){return e.theme.colors.primary})),jD=t(rD||(rD=ae(["\n &:hover {\n border-color: ",";\n ",",\n svg path {\n stroke: ",";\n color: ",";\n }\n }\n"],["\n &:hover {\n border-color: ",";\n ",",\n svg path {\n stroke: ",";\n color: ",";\n }\n }\n"])),(function(e){return e.theme.colors.gray1}),_D,(function(e){return e.theme.colors.gray1}),(function(e){return e.theme.colors.gray1})),ID=e.div(iD||(iD=ae(["\n display: flex;\n width: 100%;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n transition: 0.25s all;\n ",";\n"],["\n display: flex;\n width: 100%;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n transition: 0.25s all;\n ",";\n"])),(function(e){var n=e.theme,r=n.colors,o=n.sizes,i=e.isActive;return t(oD||(oD=ae(["\n padding: ","px ","px;\n border-radius: ","px;\n border: 1.5px solid ",";\n svg path {\n stroke: ",";\n }\n ",";\n "],["\n padding: ","px ","px;\n border-radius: ","px;\n border: 1.5px solid ",";\n svg path {\n stroke: ",";\n }\n ",";\n "])),o.L,o.M,o.S,r.gray4,r.gray2,i?LD:jD)})),ND=e.div(uD||(uD=ae(["\n display: flex;\n ",";\n"],["\n display: flex;\n ",";\n"])),(function(e){var n=e.theme.sizes,r=e.spacing;return t(aD||(aD=ae(["\n column-gap: ","px;\n "],["\n column-gap: ","px;\n "])),n[r])})),RD=function(e){var t=e.iconName,n=e.infoText,r=e.isActive,o=e.onClick,i=e.value;return u(ID,te({onClick:function(){return null==o?void 0:o(i)},isActive:r},{children:[a(Ke,{name:t}),a(as,{height:12}),a(_D,{children:n})]}))},zD=function(e){var t=e.cards,n=e.handleChange,r=e.spacing,o=void 0===r?"L":r,i=e.initialValue,u=d(i),l=u[0],s=u[1],c=function(e){var t=e===l?void 0:e;null==n||n(t),s(t)};return a(ND,te({spacing:o},{children:t.map((function(e){return a(RD,te({},e,{isActive:l===e.value,onClick:c}),e.value)}))}))},VD=["5XL","4XL","3XL","2XL","XL","L","M","S","XS",0],WD=ge.sizes.L,HD={top:{borderBottomLeftRadius:WD,borderBottomRightRadius:WD},bottom:{borderTopRightRadius:WD,borderTopLeftRadius:WD},left:{borderBottomRightRadius:WD,borderTopRightRadius:WD},right:{borderTopLeftRadius:WD,borderBottomLeftRadius:WD}},$D=e(I)(sD||(sD=ae(["\n ","\n"],["\n ","\n"])),(function(e){var n=e.variant,r=e.anchor,o=e.padding,i=void 0===o?"4XL":o,a=e.height,u=e.width,l=VD.includes(i)?"".concat(ge.sizes[i]||i,"px"):"".concat("number"==typeof i?"".concat(i,"px"):i),s=a?"number"==typeof a?"".concat(a,"px"):a:"auto",c=u?"number"==typeof u?"".concat(u,"px"):u:"auto",d="temporary"===n?"none":"0 2px 5px rgba(0, 0, 0, 0.25)";return t(lD||(lD=ae(["\n .MuiDrawer-paper {\n max-height: -webkit-fill-available;\n ",";\n padding: ",";\n height: ",";\n width: ",";\n box-shadow: ",";\n }\n .MuiBackdrop-root {\n background-color: rgba(0, 0, 0, 0.3);\n }\n "],["\n .MuiDrawer-paper {\n max-height: -webkit-fill-available;\n ",";\n padding: ",";\n height: ",";\n width: ",";\n box-shadow: ",";\n }\n .MuiBackdrop-root {\n background-color: rgba(0, 0, 0, 0.3);\n }\n "])),HD[r],l,s,c,d)})),UD=e(de)(cD||(cD=ae(["\n display: flex;\n cursor: pointer;\n position: absolute;\n align-items: center;\n justify-content: center;\n top: ","px;\n ",";\n right: ","px;\n"],["\n display: flex;\n cursor: pointer;\n position: absolute;\n align-items: center;\n justify-content: center;\n top: ","px;\n ",";\n right: ","px;\n"])),ge.sizes["4XL"],fe(ge.sizes.L),ge.sizes["4XL"]),qD=function(e){var t=e.children,n=e.closeIconColor,r=e.withCloseIcon,o=void 0===r||r,i=ne(e,["children","closeIconColor","withCloseIcon"]);return a($D,te({},i,{children:u(l,{children:[t,o&&a(UD,te({onClick:function(e){var t;return null===(t=i.onClose)||void 0===t?void 0:t.call(i,e,"escapeKeyDown")}},{children:a(Te,{size:32,color:ge.colors.gray2||n})}))]})}))},XD={adjustX:1,adjustY:1},KD=[0,0],YD={topLeft:{points:["bl","tl"],overflow:XD,offset:[0,-4],targetOffset:KD},topCenter:{points:["bc","tc"],overflow:XD,offset:[0,-4],targetOffset:KD},topRight:{points:["br","tr"],overflow:XD,offset:[0,-4],targetOffset:KD},bottomLeft:{points:["tl","bl"],overflow:XD,offset:[0,4],targetOffset:KD},bottomCenter:{points:["tc","bc"],overflow:XD,offset:[0,4],targetOffset:KD},bottomRight:{points:["tr","br"],overflow:XD,offset:[0,4],targetOffset:KD}},GD={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=GD.F1&&t<=GD.F12)return!1;switch(t){case GD.ALT:case GD.CAPS_LOCK:case GD.CONTEXT_MENU:case GD.CTRL:case GD.DOWN:case GD.END:case GD.ESC:case GD.HOME:case GD.INSERT:case GD.LEFT:case GD.MAC_FF_META:case GD.META:case GD.NUMLOCK:case GD.NUM_CENTER:case GD.PAGE_DOWN:case GD.PAGE_UP:case GD.PAUSE:case GD.PRINT_SCREEN:case GD.RIGHT:case GD.SHIFT:case GD.UP:case GD.WIN_KEY:case GD.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=GD.ZERO&&e<=GD.NINE)return!0;if(e>=GD.NUM_ZERO&&e<=GD.NUM_MULTIPLY)return!0;if(e>=GD.A&&e<=GD.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case GD.SPACE:case GD.QUESTION_MARK:case GD.NUM_PLUS:case GD.NUM_MINUS:case GD.NUM_PERIOD:case GD.NUM_DIVISION:case GD.SEMICOLON:case GD.DASH:case GD.EQUALS:case GD.COMMA:case GD.PERIOD:case GD.SLASH:case GD.APOSTROPHE:case GD.SINGLE_QUOTE:case GD.OPEN_SQUARE_BRACKET:case GD.BACKSLASH:case GD.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};function ZD(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(pd(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),a=null;return o&&!Number.isNaN(i)?a=i:r&&null===a&&(a=0),r&&e.disabled&&(a=null),null!==a&&(a>=0||t&&a<0)}return!1}var JD=GD.ESC,QD=GD.TAB;function ew(e){var t=e.visible,n=e.setTriggerVisible,r=e.triggerRef,o=e.onVisibleChange,i=e.autoFocus,a=s.useRef(!1),u=function(){var e,i,a,u;t&&r.current&&(null===(e=r.current)||void 0===e||null===(i=e.triggerRef)||void 0===i||null===(a=i.current)||void 0===a||null===(u=a.focus)||void 0===u||u.call(a),n(!1),"function"==typeof o&&o(!1))},l=function(){var e,t,n,o,i=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=um(e.querySelectorAll("*")).filter((function(e){return ZD(e,t)}));return ZD(e,t)&&n.unshift(e),n}(null===(e=r.current)||void 0===e||null===(t=e.popupRef)||void 0===t||null===(n=t.current)||void 0===n||null===(o=n.getElement)||void 0===o?void 0:o.call(n)),u=i[0];return!!(null==u?void 0:u.focus)&&(u.focus(),a.current=!0,!0)},c=function(e){switch(e.keyCode){case JD:u();break;case QD:var t=!1;a.current||(t=l()),t?e.preventDefault():u()}};s.useEffect((function(){return t?(window.addEventListener("keydown",c),i&&pc(l,3),function(){window.removeEventListener("keydown",c),a.current=!1}):function(){a.current=!1}}),[t])}var tw=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus"];function nw(e,t){var n=e.arrow,r=void 0!==n&&n,o=e.prefixCls,i=void 0===o?"rc-dropdown":o,a=e.transitionName,u=e.animation,l=e.align,c=e.placement,d=void 0===c?"bottomLeft":c,f=e.placements,p=void 0===f?YD:f,h=e.getPopupContainer,v=e.showAction,g=e.hideAction,m=e.overlayClassName,y=e.overlayStyle,b=e.visible,C=e.trigger,D=void 0===C?["hover"]:C,w=e.autoFocus,x=Js(e,tw),E=Mc(s.useState(),2),B=E[0],k=E[1],A="visible"in e?b:B,F=s.useRef(null);s.useImperativeHandle(t,(function(){return F.current})),ew({visible:A,setTriggerVisible:k,triggerRef:F,onVisibleChange:e.onVisibleChange,autoFocus:w});var O,S,P,T,M=function(){var t,n="function"==typeof(t=e.overlay)?t():t;return s.createElement(s.Fragment,null,r&&s.createElement("div",{className:"".concat(i,"-arrow")}),n)},_=g;return _||-1===D.indexOf("contextMenu")||(_=["click"]),s.createElement(Ng,Zs(Zs({builtinPlacements:p},x),{},{prefixCls:i,ref:F,popupClassName:Oc(m,Ys({},"".concat(i,"-show-arrow"),r)),popupStyle:y,action:D,showAction:v,hideAction:_||[],popupPlacement:d,popupAlign:l,popupTransitionName:a,popupAnimation:u,popupVisible:A,stretch:function(){var t=e.minOverlayWidthMatchTrigger,n=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?t:!n}()?"minWidth":"",popup:"function"==typeof e.overlay?M:M(),onPopupVisibleChange:function(t){var n=e.onVisibleChange;k(t),"function"==typeof n&&n(t)},onPopupClick:function(t){var n=e.onOverlayClick;k(!1),n&&n(t)},getPopupContainer:h}),(S=e.children,P=S.props?S.props:{},T=Oc(P.className,void 0!==(O=e.openClassName)?O:"".concat(i,"-open")),A&&S?s.cloneElement(S,{className:T}):S))}var rw,ow,iw,aw,uw,lw,sw,cw,dw,fw,pw,hw,vw,gw,mw,yw,bw,Cw,Dw,ww,xw,Ew,Bw,kw,Aw,Fw,Ow,Sw,Pw,Tw,Mw,_w,Lw,jw,Iw,Nw,Rw,zw,Vw,Ww,Hw,$w,Uw,qw,Xw,Kw,Yw,Gw,Zw,Jw,Qw=s.forwardRef(nw),ex=function(e){var t=e.item,n=e.activeKey,r=e.menuTheme,i=e.itemColor,s=e.activeItemColor,c=e.parentHandleClick,f=o(),p=f.colors,h=f.sizes,v=d(!1),g=v[0],m=v[1],y=t.id,b=t.title,C=t.divider,D=t.disabled,w=t.options,x=t.onClick,E=null==w?void 0:w.length,B=y===n?p[s]||s:p[i]||i;return a(de,te({disabled:D,activeOpacity:.3,onClick:function(){E&&m(!g),E?g&&(null==x||x(y)):null==x||x(y),E?g&&(null==c||c(y)):null==c||c(y)}},{children:u(l,{children:[E?a(Qw,te({overlay:a(tx,{options:w,activeKey:n,itemColor:i,menuTheme:r,onItemPress:c,activeItemColor:s}),onVisibleChange:(null==w?void 0:w.length)?m:void 0,visible:g,overlayStyle:{zIndex:5e3,paddingTop:h.M},trigger:"click",animation:"slide-up"},{children:u("div",te({style:{display:"flex",flexDirection:"row"}},{children:[a(us,te({behaveAs:"button",variant:"M",color:B},{children:b})),a(sb,te({isActive:g,disabled:D,tabTheme:r,defaultTabTextColor:i},{children:a(Ke,{name:"CaretDown",size:h.L})}))]}))})):a(us,te({behaveAs:"button",variant:"M",color:B},{children:b})),C&&a($y,{marginVertical:"S",color:"dark"===r?p.gray2:p.gray4})]})}))},tx=function(e){var t=e.title,n=e.options,r=e.activeKey,o=e.itemColor,i=void 0===o?"gray2":o,s=e.menuTheme,c=e.onItemPress,d=e.activeItemColor,f=void 0===d?"gray1":d;return u(nx,{children:[!!t&&u(l,{children:[a(Wy,te({padding:"M"},{children:a(us,te({variant:"XL"},{children:t}))})),a($y,{marginVertical:"M"})]}),a(Wy,te({padding:"M"},{children:a(rx,{children:null==n?void 0:n.map((function(e){return a(l,{children:a(ex,{item:e,activeKey:r,itemColor:i,menuTheme:s,parentHandleClick:c,activeItemColor:f},e.id)})}))})}))]})},nx=e.div(ow||(ow=ae(["\n ","\n"],["\n ","\n"])),(function(e){var n=e.theme,r=n.sizes,o=n.colors;return t(rw||(rw=ae(["\n background-color: ",";\n padding: ","px ","px;\n box-shadow: 0 0 ","px rgba(0, 0, 0, 0.1);\n border-radius: ","px;\n "],["\n background-color: ",";\n padding: ","px ","px;\n box-shadow: 0 0 ","px rgba(0, 0, 0, 0.1);\n border-radius: ","px;\n "])),o,r.XL,r.M,r.XL,r.S)})),rx=e.div(iw||(iw=ae(["\n display: flex;\n flex-direction: column;\n row-gap: 14px;\n"],["\n display: flex;\n flex-direction: column;\n row-gap: 14px;\n"]))),ox=function(e){var t=e.avatarProps,n=e.menuConfig,r=e.configurationItemInfo,o=d(!1),i=o[0],l=o[1],s=a(tx,te({},n,{onItemPress:function(){return l(!1)}}));return a(ix,te({id:"configurationWrapper"},r,{children:a(Qw,te({overlay:s,onVisibleChange:l,visible:i,trigger:"click",animation:"slide-up"},{children:u(ax,{children:[a(jy,te({},t)),a(as,{width:12}),a(ux,te({isOpen:i},{children:a(Ke,{size:16,name:"CaretDown"})}))]})}))}))},ix=e.div(aw||(aw=ae(["\n width: fit-content;\n ","\n"],["\n width: fit-content;\n ","\n"])),fb),ax=e(de)(uw||(uw=ae(["\n display: flex;\n align-items: center;\n justify-content: flex-start;\n width: fit-content;\n"],["\n display: flex;\n align-items: center;\n justify-content: flex-start;\n width: fit-content;\n"]))),ux=e.div(sw||(sw=ae(["\n display: flex;\n transition: transform, background-color, 0.2s ease-in-out;\n transform: rotate(0deg);\n ","\n"],["\n display: flex;\n transition: transform, background-color, 0.2s ease-in-out;\n transform: rotate(0deg);\n ","\n"])),(function(e){var n=e.isOpen,r=e.theme,o=r.colors,i=r.sizes;return n&&t(lw||(lw=ae(["\n border-radius: ","px;\n background-color: ",";\n transform: rotate(180deg);\n "],["\n border-radius: ","px;\n background-color: ",";\n transform: rotate(180deg);\n "])),i.XS,o.gray4)})),lx=e.div(dw||(dw=ae(["\n display: flex;\n width: fit-content;\n position: relative;\n align-items: flex-start;\n ","\n"],["\n display: flex;\n width: fit-content;\n position: relative;\n align-items: flex-start;\n ","\n"])),(function(e){var n=e.theme.sizes,r=e.$vertical,o=e.$spacing,i=e.$styles;return t(cw||(cw=ae(["\n flex-direction: ",";\n gap: ","px;\n ",";\n "],["\n flex-direction: ",";\n gap: ","px;\n ",";\n "])),r?"column":"row",n[o],i)})),sx=e.div(pw||(pw=ae(["\n ","\n"],["\n ","\n"])),(function(e){var n=e.theme.sizes,r=e.width,o=e.left,i=e.isActiveTab,a=e.tabTheme,u=e.selectedTabIndicatorColor;return t(fw||(fw=ae(["\n position: absolute;\n bottom: -4px;\n left: ","px;\n width: ","px;\n height: ","px;\n background-color: ",";\n border-radius: ","px;\n transition: 0.4s;\n "],["\n position: absolute;\n bottom: -4px;\n left: ","px;\n width: ","px;\n height: ","px;\n background-color: ",";\n border-radius: ","px;\n transition: 0.4s;\n "])),o,r,n.XS,ab(u,i,a),n.XS)})),cx=e(de)(mw||(mw=ae(["\n position: relative;\n &:hover {\n ","\n }\n"],["\n position: relative;\n &:hover {\n ","\n }\n"])),(function(e){var n=e.theme.colors,r=e.disabled,o=e.tabTheme,i=e.selectedTabTextColor,a=e.isActiveTab,u=e.selectedTabIndicatorColor;if(r)return t(hw||(hw=ae(["\n "," {\n color: ",";\n }\n "],["\n "," {\n color: ",";\n }\n "])),ub,"dark"===o?n.gray2:n.gray3);if(a)return t(vw||(vw=ae(["\n "," {\n background-color: ",";\n }\n "],["\n "," {\n background-color: ",";\n }\n "])),sx,ab(u,a,o));var l=n[i]||i;return t(gw||(gw=ae(["\n "," {\n background-color: ",";\n }\n "," {\n color: ",";\n }\n "],["\n "," {\n background-color: ",";\n }\n "," {\n color: ",";\n }\n "])),sx,"dark"===o?n.gray1:n.gray5,ub,l||("dark"===o?n.white:n.gray1))})),dx=function(e){var t=e.menuConfig,n=e.customIconType,r=e.menuIconColor,o=void 0===r?ge.colors.gray2:r,i=d(!1),u=i[0],l=i[1],s=a(tx,te({},t,{onItemPress:function(e){var n;l(!1),null===(n=t.onItemPress)||void 0===n||n.call(t,e)}}));return a(Qw,te({overlay:s,onVisibleChange:l,visible:u,trigger:"click",animation:"slide-up"},{children:a(fx,{children:a(px,te({isOpen:u},{children:a(Ke,{size:16,color:o,name:n||"Menu"})}))})}))},fx=e(de)(yw||(yw=ae(["\n display: flex;\n align-items: center;\n justify-content: flex-start;\n width: fit-content;\n"],["\n display: flex;\n align-items: center;\n justify-content: flex-start;\n width: fit-content;\n"]))),px=e.div(Cw||(Cw=ae(["\n display: flex;\n cursor: pointer;\n ","\n"],["\n display: flex;\n cursor: pointer;\n ","\n"])),(function(e){var n=e.isOpen,r=e.theme;r.colors;var o=r.sizes;return n&&t(bw||(bw=ae(["\n border-radius: ","px;\n "],["\n border-radius: ","px;\n "])),o.XS)})),hx=function(e){var t,n=e.tabs,r=e.vertical,i=void 0!==r&&r,l=e.activeTabKey,s=void 0===l?null===(t=n[0])||void 0===t?void 0:t.tabKey:l,c=e.onTabChange,p=e.tabTheme,h=void 0===p?"light":p,v=e.wide,m=e.compact,y=e.tabSpacing,b=void 0===y?"XL":y,C=e.isMobile,D=e.htmlElementId,w=e.menuIconColor,E=e.configurationItemInfo,B=ne(e,["tabs","vertical","activeTabKey","onTabChange","tabTheme","wide","compact","tabSpacing","isMobile","htmlElementId","menuIconColor","configurationItemInfo"]),k=d(s),A=k[0],F=k[1],O=function(e){var t=d([]),n=t[0],r=t[1],o=d([]),i=o[0],a=o[1],u=g([]);return f((function(){var e=function(){var e,t;r(null===(e=null==u?void 0:u.current)||void 0===e?void 0:e.map((function(e){var t;return null!==(t=null==e?void 0:e.clientWidth)&&void 0!==t?t:0}))),a(null===(t=null==u?void 0:u.current)||void 0===t?void 0:t.map((function(e){var t;return null!==(t=null==e?void 0:e.offsetLeft)&&void 0!==t?t:0})))};return e(),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[e]),{tabsUnderlineLeft:i,tabsUnderlineWidth:n,tabsRef:u}}(A),S=O.tabsRef,P=O.tabsUnderlineLeft,T=O.tabsUnderlineWidth,M=o(),_=M.colors,L=M.sizes,j=v||{},I=j.containerProps,N=void 0===I?{}:I,R=j.containerStyle,z=void 0===R?{}:R,V=m||{},W=V.containerProps,H=void 0===W?{}:W,$=V.containerStyle,U=C?H:N,q=C?void 0===$?{}:$:z,X=function(e){null==c||c(e),F(e)};return a(vx,te({id:"configurationWrapper"},E,{children:C?a(dx,{menuIconColor:w,menuConfig:{title:"Navigation Menu",menuTheme:h,activeKey:A,itemColor:B.defaultTabTextColor,activeItemColor:B.selectedTabTextColor,options:n.map((function(e){return te(te({},e),{id:e.tabKey,title:e.text})})),onItemPress:X}}):a(lx,te({id:D,$vertical:i,$spacing:b},U,{$styles:te(te({},U),q)},{children:n.map((function(e,t){return u(x,{children:[u(cx,te({onClick:function(){e.disabled||X(null==e?void 0:e.tabKey)},disabled:e.disabled,tabTheme:h,selectedTabTextColor:B.selectedTabTextColor,isActiveTab:e.tabKey===A,selectedTabIndicatorColor:B.selectedTabIndicatorColor},{children:[a(ok,te({ref:function(e){return S.current[t]=e},vertical:i},e,{isActive:e.tabKey===A,tabTheme:h},B)),a(as,{height:"S"}),a(sx,{left:P[t],width:T[t],isActiveTab:e.tabKey===A,selectedTabIndicatorColor:B.selectedTabIndicatorColor,tabTheme:h})]})),e.divider&&a($y,{type:"vertical",color:"dark"===h?_.gray2:_.gray4,style:{height:L.XL+L.S}})]},e.tabKey)}))}))}))},vx=e.div(Dw||(Dw=ae(["\n ","\n"],["\n ","\n"])),fb),gx=function(e){var t=e.fields,n=e.label,r=e.isEditMode,i=e.control,s=o().sizes,c=r?20:s.XL;return u(l,{children:[a(us,te({variant:"L",color:"gray2"},{children:n})),a(as,{height:20}),t.map((function(e,t){return a(xD,{isEditMode:r,field:e,control:i,spacer:t?c:0},t)}))]})},mx=function(e){var t=e.textContent,n=e.invertColors;return a(yx,te({invertColors:n},{children:a(os,{color:n?"white":"primary",font:"XL",value:t})}))},yx=e.div(xw||(xw=ae(["\n width: 100%;\n text-align: center;\n ","\n"],["\n width: 100%;\n text-align: center;\n ","\n"])),(function(e){var n=e.theme,r=n.sizes,o=n.colors,i=e.invertColors;return t(ww||(ww=ae(["\n border-radius: ","px;\n padding: ","px;\n background-color: ",";\n "],["\n border-radius: ","px;\n padding: ","px;\n background-color: ",";\n "])),r.S,r.L,i?o.primary:o.gray5)})),bx=function(e){var t=e.name,n=void 0===t?"":t,r=e.rules,i=e.styles,l=e.control,s=e.optional,c=e.required,d=e.labelsProps,p=e.defaultValue,h=void 0===p?"":p,v=e.radioButtonsProps,g=e.conditionConfig,m=e.formData,y=e.htmlElementId,b=e.state,C=e.isTrigger,D=e.moleculeId,w=e.configurationItemInfo,x=o().sizes,E=Kb(),B=dD(g,m);return f((function(){m&&E&&E.reset(m)}),[m]),f((function(){b&&"field_error"===b&&E&&E.trigger(n)}),[b,E]),B?l?a(uC,{name:n,control:l,rules:te({required:{value:!!c,message:"This field is required"}},r),defaultValue:h,render:function(e){var t=e.field,n=e.fieldState.error,r=!!n,o=r?null==n?void 0:n.message:void 0,l=c?"REQUIRED":s?"OPTIONAL":void 0;return u(Cx,te({id:(null==w?void 0:w.isConfigurationMode)?"configurationWrapper":y,$styles:i},w,{children:[(null==d?void 0:d.label)&&a(yb,te({},d,{ruleLabel:l,isError:r})),a(as,{height:x.S+x.XS}),a(Yy,te({},te(te({},v),{isError:r}),t,{isTrigger:C,moleculeId:D})),!!o&&a(ss,{text:o})]}))}}):u(Cx,te({id:(null==w?void 0:w.isConfigurationMode)?"configurationWrapper":y,$styles:i},w,{children:[d&&a(yb,te({},d)),a(as,{height:x.S+x.XS}),a(Yy,te({},v,{isTrigger:C,moleculeId:D}))]})):null},Cx=e.div(Ew||(Ew=ae(["\n width: 100%;\n ","\n ","\n"],["\n width: 100%;\n ","\n ","\n"])),(function(e){return e.$styles}),fb),Dx=function(e){var t=e.logo,n=e.title,r=e.withCloseIcon,o=e.description,i=e.style,l=e.fontColor,s=e.containerStyles,c=e.isMobile,d=ne(e,["logo","title","withCloseIcon","description","style","fontColor","containerStyles","isMobile"]);return a(wx,te({},d,{style:s},{children:u(xx,te({},d,{isMobile:c,style:i},{children:[u(Ex,te({withCloseIcon:r},{children:[!!t&&a(Bx,{src:t,alt:"Alert Logo"}),u("div",{children:[a(os,{font:"XL",color:null!=l?l:"gray1",value:n}),a(as,{height:6}),a(os,{font:"M",color:null!=l?l:"gray1",value:o})]})]})),a(kx,te({},d,{withCloseIcon:r,onClick:function(e){e.stopPropagation(),null==r||r.onClose()}},{children:a(Ke,{size:ge.sizes.L,name:"Close"})}))]}))}))},wx=e.div(Aw||(Aw=ae(["\n ","\n"],["\n ","\n"])),(function(e){var n=e.fullWidth,r=e.color,o=void 0===r?"#dad9e2":r;return t(kw||(kw=ae(["\n min-width: 390px;\n\n ","}\n "],["\n min-width: 390px;\n\n ","}\n "])),n&&t(Bw||(Bw=ae(["\n background-color: ",";\n "],["\n background-color: ",";\n "])),o))})),xx=e.div(Ow||(Ow=ae(["\n ","\n"],["\n ","\n"])),(function(e){var n=e.color,r=void 0===n?"linear-gradient(0deg, rgba(11, 0, 61, 0.15), rgba(11, 0, 61, 0.15)), ".concat(ge.colors.white):n,o=e.isMobile,i=e.fullWidth;return t(Fw||(Fw=ae(["\n position: relative;\n background: ",";\n padding: ","px\n ","px;\n box-shadow: ",";\n border-radius: ","px;\n "],["\n position: relative;\n background: ",";\n padding: ","px\n ","px;\n box-shadow: ",";\n border-radius: ","px;\n "])),r,ge.sizes.XL,o?ge.sizes.XL:ge.sizes["2XL"],i?"none":"0 2px 5px rgba(0, 0, 0, 0.25)",ge.sizes.M)})),Ex=e.div(Pw||(Pw=ae(["\n ",";\n"],["\n ",";\n"])),(function(e){var n=e.withCloseIcon;return t(Sw||(Sw=ae(["\n display: flex;\n column-gap: ","px;\n width: calc(100% - ","px);\n "],["\n display: flex;\n column-gap: ","px;\n width: calc(100% - ","px);\n "])),ge.sizes.M,n?ge.sizes["2XL"]:0)})),Bx=e(Rs)(Tw||(Tw=ae(["\n object-fit: contain;\n width: ","px;\n max-height: ","px;\n"],["\n object-fit: contain;\n width: ","px;\n max-height: ","px;\n"])),ge.sizes.XL,ge.sizes["3XL"]),kx=e(de)(_w||(_w=ae(["\n ","\n"],["\n ","\n"])),(function(e){var n=e.withCloseIcon;return t(Mw||(Mw=ae(["\n display: ",";\n position: absolute;\n top: ","zpx;\n right: ","px;\n "],["\n display: ",";\n position: absolute;\n top: ","zpx;\n right: ","px;\n "])),n?"block":"none",ge.sizes.L,ge.sizes.XL)})),Ax=function(e){var t=e.text,n=e.isRichText,r=e.htmlElementId,o=e.isTrigger,i=e.moleculeId,u=e.variant,l=void 0===u?"outlined":u,s=e.configurationItemInfo,c=ne(e,["text","isRichText","htmlElementId","isTrigger","moleculeId","variant","configurationItemInfo"]),d=it({id:i,isTrigger:o});if(!t)return null;var f=n?a(os,{htmlElementId:r,value:t,renderElementWrapperProps:c,renderElementWrapperComponent:Ws,isTrigger:o,moleculeId:i}):a(Ws,te({},c,{id:r,onClick:function(){var e;null===(e=c.onExternalLink)||void 0===e||e.call(c),d("click")}},{children:t}));return a(Fx,te({variant:l,id:"configurationWrapper"},s,{children:f}))},Fx=e(X)(Lw||(Lw=ae(["\n ","\n"],["\n ","\n"])),fb),Ox=e.ul(Iw||(Iw=ae(["\n ","\n"],["\n ","\n"])),(function(e){var n=e.orientation,r=void 0===n?"horizontal":n;return t(jw||(jw=ae(["\n display: flex;\n flex-flow: nowrap ",";\n justify-content: space-between;\n width: 100%;\n height: 100%;\n "],["\n display: flex;\n flex-flow: nowrap ",";\n justify-content: space-between;\n width: 100%;\n height: 100%;\n "])),"horizontal"===r?"row":"column")})),Sx=e.li(zw||(zw=ae(["\n ","\n"],["\n ","\n"])),(function(e){var n=e.orientation,r=void 0===n?"horizontal":n;return t(Rw||(Rw=ae(["\n height: 100%;\n display: flex;\n flex-flow: column nowrap;\n justify-content: flex-start;\n align-items: flex-start;\n\n :last-child {\n flex: 0;\n }\n\n ","\n "],["\n height: 100%;\n display: flex;\n flex-flow: column nowrap;\n justify-content: flex-start;\n align-items: flex-start;\n\n :last-child {\n flex: 0;\n }\n\n ","\n "])),"horizontal"===r&&t(Nw||(Nw=ae(["\n width: 100%;\n position: relative;\n flex: 1;\n "],["\n width: 100%;\n position: relative;\n flex: 1;\n "]))))})),Px=e.div(Vw||(Vw=ae(["\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n"],["\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n"]))),Tx=e.div(Hw||(Hw=ae(["\n ","\n"],["\n ","\n"])),(function(e){var n=e.orientation,r=void 0===n?"horizontal":n,o=e.isLastChild;return"vertical"===r&&t(Ww||(Ww=ae(["\n min-height: ",";\n height: 100%;\n display: flex;\n flex-direction: column;\n position: relative;\n "],["\n min-height: ",";\n height: 100%;\n display: flex;\n flex-direction: column;\n position: relative;\n "])),o?"100%":"58px")})),Mx=e.span(Xw||(Xw=ae(["\n ","\n"],["\n ","\n"])),(function(e){var n=e.theme,r=n.colors,o=n.sizes,i=e.isComplete,a=e.isProgress,u=e.orientation;return t(qw||(qw=ae(["\n width: ","px;\n height: ","px;\n border-radius: 50%;\n background-color: ",";\n margin-bottom: ","px;\n margin-right: ","px;\n\n ","\n\n ","\n "],["\n width: ","px;\n height: ","px;\n border-radius: 50%;\n background-color: ",";\n margin-bottom: ","px;\n margin-right: ","px;\n\n ","\n\n ","\n "])),"horizontal"===u?o.M:o.S,"horizontal"===u?o.M:o.S,i?r.green:r.gray4,"horizontal"===u?0:o.L,o.S,a&&t($w||($w=ae(["\n border: ","px solid ",";\n background-color: ",";\n "],["\n border: ","px solid ",";\n background-color: ",";\n "])),"horizontal"===u?o.XS:2,r.green,r.white),i&&t(Uw||(Uw=ae(["\n background-color: ",";\n "],["\n background-color: ",";\n "])),r.green))})),_x=e.div(Zw||(Zw=ae(["\n ","\n"],["\n ","\n"])),(function(e){var n=e.orientation,r=void 0===n?"horizontal":n,o=e.isComplete,i=e.theme,a=i.colors,u=i.sizes;return t(Gw||(Gw=ae(["\n position: absolute;\n background-color: ",";\n\n ","\n\n ","\n "],["\n position: absolute;\n background-color: ",";\n\n ","\n\n ","\n "])),o?a.green:a.gray4,"horizontal"===r&&t(Kw||(Kw=ae(["\n height: 2px;\n top: 7px;\n left: 20px;\n right: ","px;\n "],["\n height: 2px;\n top: 7px;\n left: 20px;\n right: ","px;\n "])),u.XS),"vertical"===r&&t(Yw||(Yw=ae(["\n width: 1px;\n height: calc(100% - ","px);\n top: 12px;\n left: 3px;\n "],["\n width: 1px;\n height: calc(100% - ","px);\n top: 12px;\n left: 3px;\n "])),u.M))})),Lx=function(e){var t=e.stepsNumber,n=e.step,r=n.title,o=n.description,i=n.status,l=e.orientation,s=e.order,c=e.htmlElementId,d="complete"===i,f="incomplete"===i;return a(Sx,te({orientation:l},{children:u(Tx,te({isLastChild:s===t,orientation:l},{children:[u(Px,{children:[a(Mx,{orientation:l,isComplete:d,isProgress:"in_progress"===i}),"vertical"===l&&u(S,te({ml:2,gap:.5},{children:[a(os,{htmlElementId:c,value:null==r?void 0:r.text,color:f?"gray3":"gray1"}),a(os,{htmlElementId:c,value:null==o?void 0:o.text,color:f?"gray4":"gray3"})]}))]}),s!==t&&a(_x,{isComplete:d,orientation:l})]}))}))},jx=function(e){var t,n,r=e.steps,o=e.orientation,i=void 0===o?"horizontal":o,l=e.htmlElementId;e.metadata;var s=e.isMobile,c=e.isOnClickDisabled,d=e.configurationItemInfo;if(!r.length)return null;var f=null!==(n=null===(t=r.find((function(e){return"in_progress"===e.status})))||void 0===t?void 0:t.order)&&void 0!==n?n:r[0].order,p=r[f]||{},h=p.title,v=void 0===h?{}:h,g=p.description,m=void 0===g?{}:g,y=p.status,b=p.link,C=(null==b?void 0:b.internalLink)||(null==b?void 0:b.externalLink);return u(Ix,te({id:(null==d?void 0:d.isConfigurationMode)?"configurationWrapper":l},d,{children:[C&&a(Ax,{text:"Learn More",isRichText:!1,htmlElementId:l,onExternalLink:c?void 0:(null==b?void 0:b.externalLink)?function(){return jt(null==b?void 0:b.externalLink)}:void 0}),a(Ox,te({orientation:i},{children:r.map((function(e){return a(Lx,{step:e,stepsNumber:r.length-1,order:e.order,orientation:i,htmlElementId:l},e.id)}))})),"horizontal"===i&&!s&&u(S,te({mt:2,gap:.5},{children:[a(os,{htmlElementId:l,value:null==v?void 0:v.text,color:"incomplete"===y?"gray3":"gray1"}),a(os,{htmlElementId:l,value:null==m?void 0:m.text,color:"incomplete"===y?"gray4":"gray3"})]}))]}))},Ix=e.div(Jw||(Jw=ae(["\n width: 100%;\n ",";\n"],["\n width: 100%;\n ",";\n"])),fb);K.GlobalWorkerOptions.workerSrc="//cdnjs.cloudflare.com/ajax/libs/pdf.js/".concat(K.version,"/pdf.worker.min.js");var Nx,Rx,zx,Vx,Wx,Hx,$x,Ux,qx,Xx,Kx,Yx,Gx,Zx,Jx,Qx,eE,tE,nE,rE,oE,iE,aE,uE,lE,sE,cE,dE,fE,pE,hE,vE,gE,mE,yE,bE,CE,DE,wE,xE,EE,BE,kE,AE,FE,OE,SE,PE,TE,ME,_E,LE,jE,IE,NE,RE,zE,VE,WE,HE,$E,UE=function(e){var t=e.source,n=e.isMobile,r=void 0!==n&&n,o=e.customDocumentStyles,i=d(0),l=i[0],s=i[1],c=d(1),f=c[0],p=c[1],h=d(null),v=h[0],g=h[1],m=o||{},y=m.pageWidth,b=void 0===y?r?342:856:y,C=m.pageHeight,D=v!==f;return a(qE,te({pageWidth:b,pageHeight:void 0===C?r?442:1108:C},{children:u(XE,te({customDocumentStyles:o},{children:[u(Y,te({file:t,renderMode:"canvas",className:"document",onLoadSuccess:function(e){var t=e.numPages;s(t)},loading:a(z,{size:60})},{children:[D&&v?a(G,{pageNumber:v,renderTextLayer:!1,className:"custom-pdf"},v):null,a(G,{pageNumber:f,renderTextLayer:!1,className:"".concat(D?"loadingPage":"custom-pdf"),onRenderSuccess:function(){return g(f)}},f)]})),u(KE,{children:[a(YE,te({disable:f<=1,onClick:function(){return p((function(e){return e+(e<=1?0:-1)}))},customDocumentStyles:o},{children:a(Ke,{name:"CaretLeft",size:33})})),a(GE,{type:"number",size:"small",customDocumentStyles:o,onChange:function(e){var t=e.target.value,n=e.nativeEvent;return function(e,t){if(!Number.isNaN(e)){var n=Math.round(e);n>l?!Number.isNaN(t)&&t>0&&t<=l&&p(t):n<1||p(n)}}(+t,+((null==n?void 0:n.data)||""))},value:f}),a(YE,te({disabled:!0},{children:a(ZE,{})})),a(us,te({variant:"S",color:(null==o?void 0:o.pageNumberColor)||"white"},{children:l})),a(YE,te({disable:f>=l,onClick:function(){return p((function(e){return e+(e>=l?0:1)}))},customDocumentStyles:o},{children:a(Ke,{name:"CaretRight"})}))]})]}))}))},qE=e.div(Rx||(Rx=ae(["\n ","\n"],["\n ","\n"])),(function(e){var n=e.pageWidth,r=e.pageHeight;return t(Nx||(Nx=ae(["\n height: 100%;\n .document {\n display: flex;\n justify-content: center;\n align-items: center;\n height: ","px;\n width: ","px;\n }\n .react-pdf__Page__canvas {\n height: ","px !important;\n width: ","px !important;\n }\n .react-pdf__Page.loadingPage {\n display: none;\n }\n .custom-pdf {\n .annotationLayer {\n height: 0 !important;\n }\n }\n "],["\n height: 100%;\n .document {\n display: flex;\n justify-content: center;\n align-items: center;\n height: ","px;\n width: ","px;\n }\n .react-pdf__Page__canvas {\n height: ","px !important;\n width: ","px !important;\n }\n .react-pdf__Page.loadingPage {\n display: none;\n }\n .custom-pdf {\n .annotationLayer {\n height: 0 !important;\n }\n }\n "])),r,n,r,n)})),XE=e.div(zx||(zx=ae(["\n height: 100%;\n padding: 20px;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n position: relative;\n background-color: ",";\n"],["\n height: 100%;\n padding: 20px;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n position: relative;\n background-color: ",";\n"])),(function(e){var t=e.theme.colors,n=e.customDocumentStyles,r=(void 0===n?{}:n).wrapperBackgroundColor,o=void 0===r?"gray1":r;return t[o]||o})),KE=e.div(Wx||(Wx=ae(["\n ","\n"],["\n ","\n"])),(function(e){var n=e.theme,r=n.colors,o=n.sizes;return t(Vx||(Vx=ae(["\n color: ",";\n padding: ","px;\n border-radius: ","px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n "],["\n color: ",";\n padding: ","px;\n border-radius: ","px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n "])),r.gray4,o.S,o.S)})),YE=e(de)($x||($x=ae(["\n display: flex;\n align-items: center;\n justify-content: center;\n ","\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n ","\n"])),(function(e){var n=e.theme,r=n.colors,o=n.sizes,i=e.disable,a=e.active,u=e.customDocumentStyles,l=void 0===u?{}:u,s=l.paginationArrowColor,c=void 0===s?"gray4":s,d=l.disabledPaginationArrowColor,f=void 0===d?"gray2":d;return t(Hx||(Hx=ae(["\n width: ","px;\n height: ","px;\n border-radius: ","px;\n background-color: ",";\n path,\n line {\n stroke: ",";\n }\n "],["\n width: ","px;\n height: ","px;\n border-radius: ","px;\n background-color: ",";\n path,\n line {\n stroke: ",";\n }\n "])),o.XL,o.XL,o.XS,a?r.gray2:"transparent",i?r[f]||f:r[c]||c)})),GE=e(N)(qx||(qx=ae(["\n ","\n"],["\n ","\n"])),(function(e){var n=e.theme,r=n.colors,o=n.fonts,i=n.sizes,a=e.customDocumentStyles,u=(void 0===a?{}:a).pageNumberColor,l=void 0===u?"white":u;return t(Ux||(Ux=ae(["\n width: ","px;\n fieldset {\n border: 1px solid "," !important;\n border-radius: ","px;\n }\n input {\n padding: ","px ","px;\n color: ",";\n text-align: right;\n\n ",";\n\n &::-webkit-outer-spin-button,\n &::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n // Firefox\n &[type='number'] {\n -moz-appearance: textfield;\n }\n }\n "],["\n width: ","px;\n fieldset {\n border: 1px solid "," !important;\n border-radius: ","px;\n }\n input {\n padding: ","px ","px;\n color: ",";\n text-align: right;\n\n ",";\n\n &::-webkit-outer-spin-button,\n &::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n // Firefox\n &[type='number'] {\n -moz-appearance: textfield;\n }\n }\n "])),i["2XL"],r.gray3,i.XS,i.XS,i.S,r[l]||l,o.S)})),ZE=e(R)(Kx||(Kx=ae(["\n transform: rotate(30deg);\n width: 2px;\n ",";\n"],["\n transform: rotate(30deg);\n width: 2px;\n ",";\n"])),(function(e){var n=e.theme,r=n.colors,o=n.sizes;return t(Xx||(Xx=ae(["\n height: ","px;\n background-color: ",";\n "],["\n height: ","px;\n background-color: ",";\n "])),o.L,r.gray2)})),JE=function(e){var n=e.templateType,r=e.title,o=e.name,i=e.inputProps,l=e.isMobile,s=e.menuConfig,c=ne(e,["templateType","title","name","inputProps","isMobile","menuConfig"]),f=d(!1),p=f[0],h=f[1],v=a(tx,te({},s,{onItemPress:function(){return h(!1)}})),g=t(Yx||(Yx=ae(["\n min-width: ","px;\n "],["\n min-width: ","px;\n "])),l?275:330);return u(QE,te({isMobile:l},{children:[a(os,{value:r,font:"2XL",color:"black"}),"feed_b"===n&&u(S,te({direction:"row",gap:2,alignItems:"center",justifyContent:"center"},{children:[a(mD,te({name:null!=o?o:"",inputProps:te(te({},i),{leftIcon:{name:"Search"},placeholder:"Search"}),styles:g},c)),a(Qw,te({overlay:v,onVisibleChange:h,visible:p,trigger:"click",animation:"slide-up"},{children:a(eB,{children:a(Ke,{name:"Filter"})})}))]}))]}))},QE=e(S)(Jx||(Jx=ae(["\n ","\n"],["\n ","\n"])),(function(e){var n=e.isMobile,r=e.theme.sizes;return t(Zx||(Zx=ae(["\n margin-top: ","px;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n\n ","\n "],["\n margin-top: ","px;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n\n ","\n "])),r.S,n&&t(Gx||(Gx=ae(["\n flex-direction: column;\n align-items: flex-start;\n gap: 20px;\n "],["\n flex-direction: column;\n align-items: flex-start;\n gap: 20px;\n "]))))})),eB=e(de)(eE||(eE=ae(["\n display: flex;\n align-items: center;\n justify-content: center;\n width: 51px;\n height: 51px;\n ",";\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n width: 51px;\n height: 51px;\n ",";\n"])),(function(e){var n=e.theme,r=n.colors,o=n.sizes;return t(Qx||(Qx=ae(["\n border-radius: ","px;\n border: 1.5px solid ",";\n "],["\n border-radius: ","px;\n border: 1.5px solid ",";\n "])),o.S,r.gray2)})),tB=function(e){var t=e.name,n=e.title,r=e.control,o=e.description,i=e.horizontalButtonsProps,l=d(i.selectedButtonId),s=l[0],c=l[1];return r?a(uC,{name:t,control:r,defaultValue:i.selectedButtonId,render:function(e){var t=e.field,r=t.onChange,l=t.value;return a(Wy,te({padding:"M"},{children:u(S,te({gap:2,flexDirection:"row",alignItems:"center",justifyContent:"space-between"},{children:[u(S,te({gap:.2,flexDirection:"column"},{children:[a(us,te({variant:"XL"},{children:n})),o&&a(us,te({variant:"S",color:"gray3"},{children:o}))]})),a(My,te({},i,{selectedButtonId:l,onClick:r}))]}))}))}}):a(Wy,te({padding:"M"},{children:u(S,te({gap:2,flexDirection:"row",alignItems:"center",justifyContent:"space-between"},{children:[u(S,te({gap:.2,flexDirection:"column"},{children:[a(us,te({variant:"XL"},{children:n})),o&&a(us,te({variant:"S",color:"gray3"},{children:o}))]})),a(My,te({},i,{selectedButtonId:s,onClick:function(e){return c(e)}}))]}))}))},nB=function(e){var t=e.name,n=e.icon,r=e.active,o=e.activeColor,i=e.onNavigate;return u(rB,te({activeOpacity:.9,onClick:i},{children:[a(Hy,te({padding:ge.sizes.XS},{children:a(n,{size:32,color:r?o:ge.colors.gray3})})),a(us,te({color:r?o:ge.colors.gray3,variant:"S"},{children:t}))]}))},rB=e(de)(tE||(tE=ae(["\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n"],["\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n"]))),oB=function(e){var n=e.style,r=e.src,o=e.width,i=e.height,l=e.template,s=e.autoplay,c=e.enableCoverImage,p=e.coverImageSrc,h=e.styles,v=e.htmlElementId,m=e.isTrigger,y=e.moleculeId,b=e.isOnClickDisabled,C=e.configurationItemInfo,D=it({id:y,isTrigger:m}),w=g(null),x="auto_play"===l||s,E=d(!1),B=E[0],k=E[1],A=function(){w.current&&(w.current.pause(),w.current.muted=!1,k(!1))},F=function(){var e;null===(e=w.current)||void 0===e||e.play().then((function(){return k(!0)})),D("start")};if(f((function(){x&&w.current?(w.current.muted=!0,F()):A()}),[x]),!r)return null;var O=t(nE||(nE=ae(["\n ","\n "],["\n ","\n "])),h);return u(iB,te({id:(null==C?void 0:C.isConfigurationMode)?"configurationWrapper":v,width:o,height:i,style:n,$styles:O},C,{children:[a(uB,te({muted:!0,ref:w,width:o,style:n,onClick:b?void 0:A,autoPlay:x,$styles:O,poster:c?p:void 0,onEnded:function(){k(!1),D("complete")}},{children:a("source",{width:"100%",height:"100%",src:r})})),!B&&a(aB,te({onClick:b?void 0:F,$styles:O},{children:a(Ke,{name:"Play"})}))]}))},iB=e.div(oE||(oE=ae(["\n position: relative;\n ","\n ","\n"],["\n position: relative;\n ","\n ","\n"])),(function(e){var n=e.width,r=e.height,o=e.$styles;return t(rE||(rE=ae(["\n width: ",";\n height: ",";\n ",";\n "],["\n width: ",";\n height: ",";\n ",";\n "])),n?"".concat(n,"px"):"auto",r?"".concat(r,"px"):"100%",o)}),fb),aB=e(de)(aE||(aE=ae(["\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: center;\n top: 0;\n left: 0;\n right: 0;\n bottom: 5px;\n background-color: rgba(29, 36, 45, 0.7);\n ",";\n"],["\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: center;\n top: 0;\n left: 0;\n right: 0;\n bottom: 5px;\n background-color: rgba(29, 36, 45, 0.7);\n ",";\n"])),(function(e){var n=e.$styles;return t(iE||(iE=ae(["\n ","\n "],["\n ","\n "])),n)})),uB=e.video(lE||(lE=ae(["\n width: 100%;\n cursor: pointer;\n ",";\n"],["\n width: 100%;\n cursor: pointer;\n ",";\n"])),(function(e){var n=e.$styles;return t(uE||(uE=ae(["\n ","\n "],["\n ","\n "])),n)})),lB=function(e){var t=e.children,n=e.isMLRReview,r=e.showAnnotations,o=e.annotationsList;return a(Je.Provider,te({value:{isMLRReview:n,annotationsList:o,showAnnotations:r}},{children:t}))},sB=function(e){var t=new Map;return e.forEach((function(e){var n,r;"container"===e.instance&&(r="","form_step"===(n=e).type&&(r=n.id),n.items.forEach((function(e){var n;r&&(t.has(r)||t.set(r,[]),null===(n=t.get(r))||void 0===n||n.push(e))})))})),t},cB=function(e){var t=e.initItems,n=void 0===t?[]:t,r=e.children,o=e.submitHandler,i=e.formId,u=e.organismId,l=e.validations,s=e.editable,c=void 0===s||s,f=e.isPreview,p=void 0!==f&&f,h=e.isFormInEditMode,v=void 0===h||h,g=e.organismMetadata,m=e.isConfigurationMode,b=e.onConfigurationItemHandler,C=e.selectedConfigurationItemId,D=d([]),w=D[0],x=D[1],E=function(e){e&&(null==b||b(te(te({},e),{organismId:u})))},B=y((function(){return{dateFields:w,setDateFields:x,items:n,groupStepItemsByStepContainer:function(){return sB(n)},submitHandler:o,formId:i,validations:l,editable:c,isPreview:p,isFormInEditMode:v,organismMetadata:g,isConfigurationMode:m,onConfigurationItemClicked:E,selectedConfigurationItemId:C}}),[n,i,l,c,p,w,x,o,v,g,m,E,C]);return a(et.Provider,te({value:B},{children:r}))},dB=function(e){var t=e.stateListenerId,n=e.isAction,r=rt().stateConfig,o=!0,i=!1;if(!t)return{isStateDisabled:i,isStateVisible:o};var a=(null==r?void 0:r[t])||{},u=a||{},l=u.visible,s=void 0===l||l,c=u.disabled,d=void 0!==c&&c;return n&&t in r&&(o=Boolean(s),i=Boolean(d)),{isStateDisabled:i,isStateVisible:o,stateValue:a}},fB=function(e){var t=d(1),n=t[0],r=t[1],o=n+1<=e,i=n-1>=1,a=b((function(t){var o=t instanceof Function?t(n):t;if(!(o>=1&&o<=e))throw new Error("Step not valid");r(o)}),[e,n]);return[n,{goToNextStep:function(){return o&&r((function(e){return e+1}))},goToPrevStep:function(){return i&&r((function(e){return e-1}))},canGoToNextStep:o,canGoToPrevStep:i,setStep:a,reset:function(){return r(1)}}]},pB=function(e){return y((function(){return e.filter((function(e){return e.isRequired})).every((function(e){switch(e.consentCaptureProps.type){case"radioButton":return e.consentCaptureProps.value===e.consentCaptureProps.acceptValue;case"checkbox":return e.consentCaptureProps.value;default:return!0}}))}),[e])},hB=function(e){var t,n=e.initialStepsCount,r=void 0===n?0:n,o=e.children,i=tt(),u=i.items,l=i.groupStepItemsByStepContainer,s=Kb(),c=null==s?void 0:s.watch(),f=l(),p=d(null!==(t=f.size)&&void 0!==t?t:r),h=p[0],v=p[1],g=fB(h),m=g[0],C=g[1],D=C.reset,w=C.setStep,x=C.canGoToPrevStep,E=y((function(){return function(e){return e.map((function(e){var t=[],n=function(e){"container"===e.instance&&"form_step"===e.type?t.push(e):"container"===e.instance&&e.items.forEach(n)};return n(e),t})).flat()}(u)}),[u]),B=b((function(e){var t,n,r,o,i,a=null==s?void 0:s.getValues(),u=null!==(i=null===(o=null===(r=null===(n=null===(t=null==e?void 0:e.config)||void 0===t?void 0:t.props)||void 0===n?void 0:n.formStepProps)||void 0===r?void 0:r.conditionConfig)||void 0===o?void 0:o.criteriaList)&&void 0!==i?i:[],l=fD({criteriaList:u,data:a}),c=u.some((function(e){return l(e)}));return!u.length||c}),[s]),k=y((function(){var e=m,t=function(n){var r=B(n),o=E[e++];return!(!r||m===E.length)||(m+1===E.length?r:o?t(o):e+1<=E.length)},n=E[e];return t(n)}),[m,E,B,JSON.stringify(c)]),A=b((function(){if(k)for(var e=m+1;e<=E.length;){var t=E[e-1];if(B(t))return void w(e);e++}}),[k,m,E]),F=b((function(){if(x)for(var e=m-1;e>=1;){var t=E[e-1];if(B(t))return void w(e);e--}}),[x,m,E,B]),O=y((function(){return{canGoToNextStep:k,canGoToPrevStep:x,goToNextStep:A,goToPrevStep:F,currentStep:m,reset:D,setStep:w,steps:h,setInitSteps:v}}),[m,h,k]);return a(Ye.Provider,te({value:O},{children:o}))},vB={enter:!1},gB=function(e){var t=e.mode,n=void 0===t?"onChange":t,r=e.children,o=e.id,i=e.isTrigger,u=function(e={}){const t=c.useRef(),[n,r]=c.useState({isDirty:!1,isValidating:!1,dirtyFields:{},isSubmitted:!1,submitCount:0,touchedFields:{},isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,errors:{}});t.current?t.current.control._options=e:t.current={...XC(e),formState:n};const o=t.current.control,i=c.useCallback((e=>{Jb(e,o._proxyFormState,!0)&&(o._formState={...o._formState,...e},r({...o._formState}))}),[o]);return tC({subject:o._subjects.state,callback:i}),c.useEffect((()=>{o._stateFlags.mount||(o._proxyFormState.isValid&&o._updateValid(),o._stateFlags.mount=!0),o._stateFlags.watch&&(o._stateFlags.watch=!1,o._subjects.state.next({})),o._removeUnmounted()})),t.current.formState=Gb(n,o._proxyFormState),t.current}({mode:n}),l=it({id:o,isTrigger:i}),s=u.formState.isDirty;return f((function(){s&&!vB.enter&&(l("start"),vB.enter=!0)}),[s]),a(Yb,te({},u,{children:a(hB,{children:r})}))},mB=function(e,t){switch(t){case"month_year_date":var n=e.split("/"),r=n[0],o=n[1];return"".concat(o,"-").concat(r,"-01");case"day_month_year_date":var i=e.split("/"),a=i[0];r=i[1],o=i[2];return"".concat(o,"-").concat(r,"-").concat(a);case"month_day_year_date":var u=e.split("/");r=u[0],a=u[1],o=u[2];return"".concat(o,"-").concat(r,"-").concat(a);case"year_month_day_date":var l=e.split("/");o=l[0],r=l[1],a=l[2];return"".concat(o,"-").concat(r,"-").concat(a);default:return e}},yB=function(e){var t,n=e.order,r=void 0===n?0:n,o=e.id,i=e.metadata,l=e.formStepStyles,s=Kb(),c=d({}),f=c[0],p=c[1],v=tt(),g=v.formId,m=v.submitHandler,y=v.dateFields,b=v.isFormInEditMode,C=v.organismMetadata,D=tt().groupStepItemsByStepContainer,w=Ze().onCloseModal,x=Object.keys(null!==(t=null==C?void 0:C.popupPayload)&&void 0!==t?t:{})[0],E=h(Ye),B=E.currentStep,k=E.canGoToNextStep,A=E.canGoToPrevStep,F=E.goToNextStep,O=E.goToPrevStep,S=E.reset,P=E.setStep,T=r+1,M=D().get(o)||[];return B!==T?null:u("div",te({style:te({display:"flex",flexDirection:"column",width:"100%",gap:"16px"},l)},{children:[M.map((function(e){return a(PB,{item:e,setFormData:p,formData:f},e.id)})),(!(null==i?void 0:i.hasOwnButton)||(null==C?void 0:C.isFormInsidePopUp))&&b&&u("div",te({style:{display:"flex",gap:"16px"}},{children:[a(KB,{fullWidth:!1,text:A?"Back":"Cancel",variant:"secondary",onClick:function(){A?O():(S(),P(1),(null==C?void 0:C.isFormInsidePopUp)&&w(x))}}),a(KB,{fullWidth:!1,text:k?"Next":"Submit",variant:"primary",onClick:function(){return re(void 0,void 0,void 0,(function(){var e,t;return oe(this,(function(n){switch(n.label){case 0:return[4,s.trigger()];case 1:return(e=n.sent())?k?(F(),[2]):(t=s.getValues(),y.forEach((function(e){if(e.id in t){var n=t[e.id];t[e.id]=mB(n,e.dateType)}})),e&&g?[4,null==m?void 0:m({formId:g,data:t})]:[3,3]):(Ty({message:"Please fill all required fields",type:"error"}),[2]);case 2:n.sent(),n.label=3;case 3:return(null==C?void 0:C.isFormInsidePopUp)&&w(x),[2]}}))}))}})]}))]}))},bB=function(e){var t=e.id,n=e.type,r=e.wide,o=e.props,i=e.compact,u=e.children,l=e.metadata,s=e.isMobile,c=tt(),p=c.isConfigurationMode,h=c.onConfigurationItemClicked,v=c.selectedConfigurationItemId,g=r||{},m=g.containerProps,y=void 0===m?{}:m,b=g.containerStyle,C=void 0===b?{}:b,D=i||{},w=D.containerProps,x=void 0===w?{}:w,E=D.containerStyle,B=void 0===E?{}:E,k=s||xe("xs"),A=k?B:C,F=k?x:y,O=te(te({},o),F),S={id:t,isTrigger:null==l?void 0:l.isTrigger},P={slider:a(IB,te({},O,{children:u})),form:a(gB,te({},null==o?void 0:o.formProps,S,{children:u})),form_step:a(yB,te({id:t},null==o?void 0:o.formStepProps,{metadata:l}))},T=dB({isAction:null==l?void 0:l.isAction,id:t}).isStateVisible;it(S);var M=function(e){var t=d(),n=t[0],r=t[1],o=d(!1),i=o[0],a=o[1],u=d(0),l=u[0],s=u[1],c=d(!1),p=c[0],h=c[1],v=rt(),g=v.stateConfig,m=v.stateHandler;return f((function(){if(null==e?void 0:e.length){var t=e.find((function(e){return"stateModifier"===e.role&&"view"===e.event}));r(null==t?void 0:t.stateKey)}}),[e]),f((function(){var e=function(){s(document.documentElement.scrollTop),h(document.documentElement.scrollTop>l)};return n&&window.addEventListener("scroll",e),function(){n&&window.removeEventListener("scroll",e)}}),[l,n]),f((function(){var e;if(n&&!i){var t=document.getElementById(n),r=db(t);r&&(a(r),null==m||m(te(te({},g),((e={})[n]=!g[n],e))))}}),[n,i,db,p,l]),n}(null==l?void 0:l.stateConfig);if(!T)return null;var _=a(hb,te({containerProps:O,metadata:l,style:A,onClick:function(e){e.stopPropagation(),h({entityId:t,entityType:n,entity:"container",entityMetadata:l})},type:n,isConfigurationMode:p,id:p?"configurationWrapper":M,$selected:!!v&&v===t},{children:(null==P?void 0:P[n])||u}),"".concat(t,".").concat(k?"mobile":"desktop"));return _},CB=function(e){var t=e.config,n=e.tabsProps,r=e.id,o=e.type,i=e.items,u=e.metadata,l=e.formData,s=e.setFormData,c=e.isMobile,f=e.isConfigurationMode,p=void 0!==f&&f,h=d(),v=h[0],g=h[1];if(!i||!i.length)return null;var m=c||xe("xs");return a(MB,te({userInitials:"UN",logOutHandler:function(){return console.log("log out")},goToAccountInfo:function(){return console.log("account info page")}},{children:a(cB,te({organismMetadata:u,organismId:r,initItems:i,isConfigurationMode:p,onConfigurationItemHandler:function(e){g(null==e?void 0:e.entityId)},selectedConfigurationItemId:v},{children:a(bB,te({id:r,type:o,metadata:u,isMobile:m},t,{children:i.map((function(e){return a(PB,{item:e,tabsProps:n,formData:l,setFormData:s,isMobile:m},e.id)}))}))}))}),"".concat(r,".").concat(m?"mobile":"desktop"))},DB=function(e){var t=e.formData,n=e.setFormData,r=e.isMobile,o=ne(e,["formData","setFormData","isMobile"]),i=vD(o);return i?a(CB,te({},i,{isMobile:r,formData:t,setFormData:n})):null},wB=function(e){var t=e.attributes,n=e.formData,r=e.config,o=e.htmlElementId,i=e.configurationItemInfo,l=t||{},s=l.consent,c=l.conditionConfig,f=(r||{}).props,p=null==s?void 0:s.consent,h=(null==p?void 0:p.defaultSelection)||"confirmation",v=d(""),g=v[0],m=v[1],b=d(h),C=b[0],D=b[1],w=function(e){return m((function(t){return t?"":e}))},x=function(e){return D(e)},E=dD(null==c?void 0:c.conditionConfig,n),B=y((function(){switch(null==p?void 0:p.methodOfCapture){case"button":return{type:"button",acceptButton:{text:null==p?void 0:p.confirmationButtonText,onClick:function(){return alert("Accepted")}},denyButton:{text:null==p?void 0:p.rejectionButtonText,onClick:function(){return alert("Denied")}}};case"checkbox":return{id:null==p?void 0:p.id,type:"checkbox",label:JSON.stringify(null==p?void 0:p.acknowledgment),value:!!g,onChange:w};default:return{type:"radioButton",acceptValue:"confirmation",value:C,onChange:x,isRow:!0,items:[{id:"confirmation",label:null==p?void 0:p.confirmationButtonText},{id:"rejection",label:null==p?void 0:p.rejectionButtonText}],name:"consent_confirmation"}}}),[s,g,C]);return p&&E?u(xB,te({id:(null==i?void 0:i.isConfigurationMode)?"configurationWrapper":o},i,{children:[a(ek,{text:JSON.stringify(p.language),consentCaptureProps:B,clearStyles:!0}),"field_error"===(null==f?void 0:f.state)&&a(ss,{text:"This field is required"})]})):null},xB=e.div(sE||(sE=ae(["\n width: 100%;\n ","\n"],["\n width: 100%;\n ","\n"])),fb),EB=function(e){var t={text:e.label,validate:function(){return!0}},n=e.rule,r=BB(n);if(r||kB(n)){var o=function(e,t){return function(n){return void 0===n&&(n=0),e?n<=t:n>=t}}(r,r?n.MAX:n.MIN);switch(n.type){case"COUNT":t.validate=function(e){return o(null==e?void 0:e.length)};break;case"NUMBER_COUNT":t.validate=function(e){return o(null==e?void 0:e.replace(/\D/g,"").length)};break;case"CAPITAL_COUNT":t.validate=function(e){return o(((null==e?void 0:e.match(/[A-Z]/g))||[]).length)};break;case"SPECIAL_CHARACTERS_COUNT":t.validate=function(e){return o(null==e?void 0:e.replace(/[a-z]|\d|\s/gi,"").length)};break;case"LOWER_CASE_COUNT":t.validate=function(e){return o(((null==e?void 0:e.match(/[a-z]/g))||[]).length)}}}return t},BB=function(e){return!!(null==e?void 0:e.MAX)},kB=function(e){return!!(null==e?void 0:e.MIN)},AB=function(e){var t=e.fields,n=e.validations,r=e.form,o=e.validationLabel,i=e.validationState,l=e.configurationItemInfo,s=n.map(EB),c=null==r?void 0:r.watch("password.value");return u(FB,te({id:"configurationWrapper"},l,{children:[t.map((function(e){return a(xD,{control:null==r?void 0:r.control,field:e},e.name.toString())})),a(PD,{value:c,isSubmitted:null==r?void 0:r.formState.isDirty,rules:s,label:o,validationState:i})]}))},FB=e.div(cE||(cE=ae(["\n gap: 16px;\n width: 100%;\n display: flex;\n align-items: center;\n flex-direction: column;\n justify-content: center;\n ","\n"],["\n gap: 16px;\n width: 100%;\n display: flex;\n align-items: center;\n flex-direction: column;\n justify-content: center;\n ","\n"])),fb),OB={instance:"container",organismLibraryContainerId:"a27bcdcf-9037-4a5f-a717-991625b2abe2",containerLibraryId:"20580d8e-2e65-4f74-a3e3-8813967c4d47",type:"column",ordering:0,config:{wide:{containerProps:{gap:"M",alignItems:"flex-start",paddingTop:"XL",paddingLeft:"L",paddingRight:"L",paddingBottom:"S"},containerStyle:{width:"100%",flexDirection:"column",justifyContent:"flex-start",backgroundColor:"#ffffff"}},compact:{containerProps:{gap:"M",alignItems:"center"},containerStyle:{width:"100%",flexDirection:"column",backgroundColor:"#fdfcfc"}}},metadata:{group:["form"]},item:[{type:"column",config:{wide:{containerProps:{gap:"0",alignItems:"flex-start",paddingTop:"L",paddingLeft:"XL",cornerRadius:"S",paddingRight:"XL",paddingBottom:"L"},containerStyle:{width:"100%",boxShadow:"0px 2px 8px rgba(0, 0, 0, 0.25)",flexDirection:"column",justifyContent:"flex-start",backgroundColor:"#ffffff"}},compact:{containerProps:{gap:"M",alignItems:"flex-start",paddingTop:"L",paddingLeft:"L",cornerRadius:"S",paddingRight:"L",paddingBottom:"L"},containerStyle:{width:"100%",boxShadow:"0px 1px 5px rgba(0, 0, 0, 0.2)",flexDirection:"column",justifyContent:"flex-start",backgroundColor:"#ffffff"}}},instance:"container",metadata:{group:["form"]},ordering:0,containerLibraryId:"20580d8e-2e65-4f74-a3e3-8813967c4d47",organismLibraryContainerId:"f45c44db-112f-43ef-a23c-569f2f033261",item:[{type:"column",config:{wide:{containerProps:{gap:"S",alignItems:"flex-start",paddingTop:"M",paddingLeft:"XL",paddingRight:"XL",paddingBottom:"S"},containerStyle:{width:"100%",flexDirection:"column"}},compact:{containerProps:{gap:"M",alignItems:"flex-start"},containerStyle:{width:"100%",flexDirection:"column"}}},instance:"container",metadata:{group:["form"]},ordering:0,containerLibraryId:"20580d8e-2e65-4f74-a3e3-8813967c4d47",organismLibraryContainerId:"f78a1853-935b-4bd5-a8fe-e92314049ca5",item:[{type:"process_steps",config:{},instance:"molecule",metadata:{},ordering:0,attributes:{orientation:{id:"26856456-06d0-40bc-9a99-323232f1cc98",value:"horizontal",options:[{id:"horizontal",label:"Horizontal"},{id:"vertical",label:"Vertical"}],required:!1,attributeType:"select"},processSteps:{id:"6b2ea97f-c77b-4da1-ad5d-21838da61f70",steps:[{link:{id:null,attributeType:"link",type:"internal_link",externalLink:"",internalLink:"",name:"",required:!1},order:0,title:{text:'[{"type":"paragraph","children":[{"text":"User Activated"}]}]'},status:"incomplete",description:{text:null},id:"24d47578-4160-43ae-82a4-574a784c1ea6"},{link:{id:null,attributeType:"link",type:"internal_link",externalLink:"",internalLink:"",name:"",required:!1},order:1,title:{text:'[{"type":"paragraph","children":[{"text":"Button 1 Clicked"}]}]'},status:"incomplete",description:{text:null},id:"051506e1-1a72-40db-bed0-b05901242812"},{id:"c37efb0d-0607-42a4-b1d8-30c373a48f3e",link:{id:null,attributeType:"link",type:"internal_link",externalLink:"",internalLink:"",name:"",required:!1},title:{text:'[{"type":"paragraph","children":[{"text":"Button 2 Clicked"}]}]'},description:{text:null},status:"incomplete",order:2}],journeyId:"50978160-7201-440a-bd3d-983e6bf64f72",attributeType:"process_steps"}},moleculeLibraryId:"1575fda9-07c6-4701-93ab-356b5ce8ecd5",organismLibraryMoleculeId:"14cf3042-175b-4266-810f-9a124bceedfc",item:[],id:"2b0ad112-7ec4-4d31-a599-ecb0e9b97a7e"}],id:"680385bf-4035-4ea7-89e9-71417c4d6010"},{type:"row",config:{wide:{containerProps:{gap:"S",alignItems:"center",paddingTop:"M",paddingLeft:"XL",paddingRight:"XL",paddingBottom:"M"},containerStyle:{width:"100%",justifyContent:"space-between"}},compact:{containerProps:{gap:"L",paddingTop:"L",paddingLeft:"5XL",paddingRight:"5XL",paddingBottom:"L"},containerStyle:{width:"100%",flexDirection:"column"}}},instance:"container",metadata:{group:["form"]},ordering:1,containerLibraryId:"997e0b11-2dc6-4252-a36f-adca5328e9af",organismLibraryContainerId:"abfbefe6-5ca9-4478-8616-6aff1b57203e",item:[{type:"button",config:{props:{size:"small",state:"enabled",styles:{},variant:"custom",disabled:!1,textSize:0,textColor:"#050505",buttonFont:"M",colorTheme:"light",buttonColor:"#ffffff",buttonStyle:{},buttonStroke:"#1a434e",cornerRadius:"2XL",containerStyle:{},verticalPadding:"S",hoverButtonColor:"#ffffff",hoverStrokeColor:"#1a434e",horizontalPadding:"XL",inactiveTextColor:"#050505",inactiveButtonColor:"#e5e1e1",inactiveStrokeColor:"#1a434e"}},instance:"molecule",metadata:{group:["form"],isAction:!1,isTrigger:!1},ordering:0,attributes:{title:{id:"f8b9e548-9627-4b87-9266-ef9ed466591e",text:'[{"type":"paragraph","children":[{"text":"Details","id":"f4710141-c448-4d6b-abd4-c3374fca33c5"}],"id":"4d1007c3-f89a-4c64-bf92-d5960d7869bc"}]',required:!1,isRichText:!0,attributeType:"text",showRichTextToolbar:!0},action:{id:"c60165ce-65f2-47ca-ae1d-cd8678280f9c",action:{type:"reset",reset:{}},attributeType:"action"},actionTypes:{id:"130da1fa-03c0-46c0-87e0-93609326979e",value:"reset",options:[{id:"link",label:"Direct to Link",value:"link"},{id:"popup",label:"Open Popup",value:"popup"},{id:"drawer",label:"Open Drawer",value:"drawer"},{id:"download",label:"Download",value:"download"},{id:"submit",label:"Submit Data",value:"submit"},{id:"reset",label:"Reset",value:"reset"},{id:"destroy",label:"Close/Cancel",value:"destroy"}],required:!0,attributeType:"select"}},moleculeLibraryId:"c6bf4dbd-77af-4788-a32d-5b5815bcbfae",organismLibraryMoleculeId:"f93dbc37-3b37-46dc-ac40-0c678e02fcd7",item:[],id:"483b03c0-7335-40a4-baad-24a93b90aa48"},{type:"text",config:{props:{textColor:"#FFFFFF"}},instance:"molecule",metadata:{group:["form","display-only-form"]},ordering:1,attributes:{text:{id:"92552646-4ea8-4e7d-9d77-393345146172",text:'[{"type":"paragraph","children":[{"text":"Estimated Time: 1-2 Days","id":"b78a56a8-82e9-4847-860c-8559b9fc5d58"}],"id":"e2174573-949c-4f2f-8e7d-099ab50e3161"}]',required:!1,isRichText:!0,attributeType:"text",showRichTextToolbar:!0},color:{id:"38f5d006-9657-481e-914a-72f9087ec030",color:"#1a434e",required:!1,attributeType:"color"},seoStyle:{id:"d2e46744-449c-4f54-8edf-6aa64c73cb83",value:"h3",options:[{id:"h1",label:"H1",value:"h1"},{id:"h2",label:"H2",value:"h2"},{id:"h3",label:"H3",value:"h3"},{id:"h4",label:"H4",value:"h4"},{id:"h5",label:"H5",value:"h5"},{id:"h6",label:"H6",value:"h6"}],required:!1,attributeType:"select"},fontVariant:{id:"c57b03cb-b219-4886-a8e7-00969f1dc213",value:"L",options:[{id:"XS",label:"Extra Small Text",value:"XS"},{id:"S",label:"Small Text",value:"S"},{id:"M",label:"Normal Text",value:"M"},{id:"L",label:"Small Sub Title",value:"L"},{id:"XL",label:"Sub Title",value:"XL"},{id:"2XL",label:"Title",value:"2XL"},{id:"3XL",label:"Large Title",value:"3XL"}],attributeType:"select"}},moleculeLibraryId:"f7751571-4313-4443-8aee-13ad6309f7d6",organismLibraryMoleculeId:"d3f78021-674e-47f3-862c-8d41769a23d1",item:[],id:"be4378cd-d04f-43aa-a582-55c861806596"}],id:"bc458c6b-6085-4e3d-90ae-a1c7d5fa5ae5"}],id:"8f1a07f0-da40-4b39-ae6f-699f0c27b744"}],id:"a6682271-e0ff-488e-9eb7-5bd7e3f04697"},SB=function(e){var t,n,r=e.type,o=e.config,i=e.attributes,u=e.tabsProps,s=e.form,c=e.id,d=e.formData,f=e.setFormData,p=e.isMobile,v=e.metadata,g=e.organismLibraryMoleculeId,m=Z(),y=tt(),C=y.formId,D=y.editable,w=void 0===D||D,x=y.isPreview,E=void 0!==x&&x,B=y.dateFields,k=y.validations,A=y.submitHandler,F=y.isFormInEditMode,O=void 0===F||F,S=y.isConfigurationMode,P=y.onConfigurationItemClicked,T=y.selectedConfigurationItemId,M=Boolean(O&&w),_=Ze(),L=_.setActivePopUpById,j=_.setDrawerVisible,I=_.setActionContent,N=h(ot),R=N.userInitials,z=N.logOutHandler,V=N.goToAccountInfo,W=N.username,H=J(),$=H[0],U=H[1],q=(null==i?void 0:i.link)||(null===(n=null===(t=null==i?void 0:i.action)||void 0===t?void 0:t.action)||void 0===n?void 0:n.link),X=b((function(e){if(q&&e){var t=_t(at,e);if(E)U(Lt($,e,E));else{var n={"account-information":"/account-info","forgot-password":"/forgot-password","change-password":"/change-password",login:"/login","account-creation":"/account-creation",landing:"/landing"},r=(null==n?void 0:n[t])||(null==n?void 0:n[e]);m(r||{pathname:"/landing",search:"?".concat(Lt($,e,E).toString())})}}}),[$,U,q,E,m]),K=v||{},Y=K.stateListenerId,G=K.isAction,Q=dB({stateListenerId:Y,isAction:G}),ee=Q.isStateDisabled,ie=Q.isStateVisible,ae=Q.stateValue,ue=b((function(e){null==e||e.stopPropagation(),P({entityType:r,entity:"molecule",entityId:c,entityMetadata:v,organismLibraryMoleculeId:g})}),[P,r,c,v,g]),le={isConfigurationMode:S,onClick:S?ue:void 0,$selected:T===c},se=function(e){(null==le?void 0:le.isConfigurationMode)&&(null==le?void 0:le.onClick)&&(e.preventDefault(),e.stopPropagation(),le.onClick(e))};if(!ie)return null;return function(){var e,t,n,h,g,m,y,b,D,w,x,E,F;switch(r){case"text":var O=i||{},P=O.text,T=O.seoStyle,_=O.fontVariant,N=O.color,H=o.props,$=null==T?void 0:T.value,U=null==_?void 0:_.value,q=null!==(e=null==N?void 0:N.color)&&void 0!==e?e:null==H?void 0:H.textColor;return a(vb,te({},P,H,{seoTag:$,fontVariant:U,textColor:q,htmlElementId:c,configurationItemInfo:le}));case"button":var K=i||{},Y=K.title,G=K.action,Z=(o||{}).props,J=void 0===Z?{}:Z,Q=J.variant,ie=void 0===Q?"primary":Q,ue=ne(J,["variant"]),ce=(null==G?void 0:G.action)||{},de=ce.link,fe=ce.popup;ce.drawer;var pe=ce.download,he={link:function(){return It(de)?X(null==de?void 0:de.internalLink):jt(null==de?void 0:de.externalLink)},popup:function(){(null==fe?void 0:fe.id)&&L(null==fe?void 0:fe.id)},drawer:function(){j(!0),I(OB)},download:function(){return pe?(e=pe.url,t=pe.name,void 0===e&&(e=""),void 0===t&&(t="Downloaded file"),re(void 0,void 0,void 0,(function(){var n,r,o,i;return oe(this,(function(a){switch(a.label){case 0:return a.trys.push([0,3,,4]),[4,fetch(e)];case 1:return[4,a.sent().blob()];case 2:return n=a.sent(),r=URL.createObjectURL(n),(o=document.createElement("a")).href=r,o.download=t,o.click(),URL.revokeObjectURL(r),[3,4];case 3:return i=a.sent(),Ty({message:"Failed to download the file: ".concat(i),type:"error"}),[3,4];case 4:return[2]}}))}))):Ty({message:"File not found to download",type:"warning"});var e,t},submit:function(){return re(void 0,void 0,void 0,(function(){var e,t;return oe(this,(function(n){switch(n.label){case 0:return[4,null==s?void 0:s.trigger()];case 1:return e=n.sent(),t=null==s?void 0:s.getValues(),B.forEach((function(e){if(e.id in t){var n=t[e.id];t[e.id]=mB(n,e.dateType)}})),e&&C&&(null==A||A({formId:C,data:null==s?void 0:s.getValues()})),[2]}}))}))},reset:function(){return null},destroy:function(){return null}};return a(KB,te({text:null==Y?void 0:Y.text,isRichText:!0},ue,{variant:ie,elementId:c,link:S?void 0:Rt(de),onClick:S?function(e){return se(e)}:he[(null===(t=null==G?void 0:G.action)||void 0===t?void 0:t.type)||"link"],disabled:ee,stateConfig:null==v?void 0:v.stateConfig,metadata:v,htmlElementId:c,configurationItemInfo:le}));case"image":var ve=i||{},ge=ve.image,me=ve.link,ye=ve.altText,be=(H=o.props,S||ee),Ce=(null==ge?void 0:ge.imageSource)||(null===(n=null==ge?void 0:ge.imageFile)||void 0===n?void 0:n.url)||"";return a(LB,te({id:c,src:Ce,onClick:be?void 0:function(){return It(me)?X(null==me?void 0:me.internalLink):jt(null==me?void 0:me.externalLink)},link:be?void 0:Rt(me),altText:null==ye?void 0:ye.text},H,{metadata:v,htmlElementId:c,configurationItemInfo:le}));case"video":var De=i||{},we=De.video,xe=De.enableCoverImage,Ee=De.autoPlayVideo,Be=De.coverImage,ke=(H=o.props,(null==we?void 0:we.videoSource)||"");Ce=(null==Be?void 0:Be.imageSource)||"";return a(oB,te({src:ke,isOnClickDisabled:S,enableCoverImage:null==xe?void 0:xe.value,autoplay:null==Ee?void 0:Ee.value,coverImageSrc:Ce},H,{isTrigger:null==v?void 0:v.isTrigger,moleculeId:c,htmlElementId:c,configurationItemInfo:le}));case"header_tab_group":var Ae=(u||{}).onTabChange,Fe=(i||{}).tabGroup,Oe=(H=o.props,o.wide),Se=o.compact,Pe=(null==u?void 0:u.tabs)||(null==Fe?void 0:Fe.tabs)||[],Te=(null==u?void 0:u.activeTabKey)||(null==Fe?void 0:Fe.activeTabKey)||"";return a(hx,te({},H,{wide:Oe,compact:Se,tabs:Pe,activeTabKey:Te,onTabChange:S?void 0:Ae,isMobile:p,htmlElementId:c,configurationItemInfo:le}));case"input_field":var Me=o.props,_e=void 0===Me?{}:Me,Le=_e.inputProps,je=void 0===Le?{}:Le,Ie=_e.labelsProps,Ne=void 0===Ie?{}:Ie,Re=_e.name,ze=void 0===Re?"":Re,Ve=_e.state,We=ne(_e,["inputProps","labelsProps","name","state"]),He=i||{},$e=He.label,Ue=He.required,qe=He.conditionConfig,Xe=(vt=((ht=He.dataModelField)||{}).dataModelField)||{},Ke=Xe.defaultValue,Ye=Xe.entitySubtypeId,Ge=Xe.dataModelFieldId,Ze=Xe.format,Je=(P=null==$e?void 0:$e.text,!!(null==Ue?void 0:Ue.value)),Qe=Ke||"-",et=(null==Ze?void 0:Ze.value)||"any",tt=Je?"REQUIRED":"OPTIONAL",nt=te(te({},null==Ze?void 0:Ze.config),!M&&{maskPlaceholder:Qe}),rt=M?(null==je?void 0:je.placeholder)||"Enter ".concat(P?bs(zt(P)):"placeholder"):Qe,ot="".concat(Ge).concat(Ye?".".concat(Ye):"",".value")||ze||c;return hD({dataModelField:vt,setFormData:f}),a(mD,te({},We,{name:ot,required:Je,optional:!Je,onInput:S?se:void 0,inputProps:te(te({},je),{isEditMode:M,placeholder:rt,type:et,config:nt,disabled:ee}),labelsProps:te({label:P,isRichText:!0,ruleLabel:tt},Ne),conditionConfig:null==qe?void 0:qe.conditionConfig,control:null==s?void 0:s.control,state:Ve,formData:d,htmlElementId:c,configurationItemInfo:le}));case"select_field":var it=(o||{}).props,at=void 0===it?{}:it,ut=at.selectProps,lt=void 0===ut?{}:ut,st=at.labelsProps,ct=(Ne=void 0===st?{}:st,at.name),dt=void 0===ct?"":ct,ft=(We=ne(at,["selectProps","labelsProps","name"]),i||{}),pt=($e=ft.label,Ue=ft.required,ft.options),ht=ft.dataModelField,vt=(qe=ft.conditionConfig,(ht||{}).dataModelField),gt=(P=null==$e?void 0:$e.text,Je=null==Ue?void 0:Ue.value,(null==pt?void 0:pt.options)||[]);ot="".concat(null==vt?void 0:vt.dataModelFieldId).concat((null==vt?void 0:vt.entitySubtypeId)?".".concat(vt.entitySubtypeId):"",".value")||dt||c,Ke=(null==lt?void 0:lt.value)||("success"===(null==We?void 0:We.state)?null===(h=null==gt?void 0:gt[0])||void 0===h?void 0:h.id:void 0);hD({defaultValue:Ke,dataModelField:vt,setFormData:f});rt=P?bs(JSON.parse(P)):"placeholder";return a(FD,te({},We,{name:ot,control:null==s?void 0:s.control,onClick:S?se:void 0,selectProps:te(te({},lt),{optionsPresentation:"open_dropdown"===(null==We?void 0:We.state),options:gt,isRichText:!0,placeholder:(null==lt?void 0:lt.placeholder)||"Select ".concat(rt),disabled:ee}),defaultValue:Ke,required:Je,optional:!Je,labelsProps:te(te({},Ne),{label:P,isRichText:!0,ruleLabel:Je?"REQUIRED":"OPTIONAL"}),conditionConfig:null==qe?void 0:qe.conditionConfig,formData:d,htmlElementId:c,configurationItemInfo:le}));case"radio_button_field":var mt=(o||{}).props,yt=void 0===mt?{}:mt,bt=yt.radioButtonsProps,Ct=void 0===bt?{}:bt,Dt=yt.labelsProps,wt=(Ne=void 0===Dt?{}:Dt,yt.name),xt=void 0===wt?"":wt,Et=(We=ne(yt,["radioButtonsProps","labelsProps","name"]),i||{}),Bt=($e=Et.label,Ue=Et.required,pt=Et.options,ht=Et.dataModelField,qe=Et.conditionConfig,vt=(ht||{}).dataModelField,P=null==$e?void 0:$e.text,Je=null==Ue?void 0:Ue.value,(null==pt?void 0:pt.options)||[]);ot="".concat(null==vt?void 0:vt.dataModelFieldId).concat((null==vt?void 0:vt.entitySubtypeId)?".".concat(vt.entitySubtypeId):"",".value")||xt||c,Ke=(null==Ct?void 0:Ct.value)||("success"===(null==We?void 0:We.state)?null===(g=null==Bt?void 0:Bt[0])||void 0===g?void 0:g.id:void 0);return hD({defaultValue:Ke,dataModelField:vt,setFormData:f}),a(bx,te({},We,{name:ot,control:null==s?void 0:s.control,onClick:S?se:void 0,radioButtonsProps:te(te({},Ct),{options:Bt,disabled:ee}),defaultValue:Ke,required:Je,optional:!Je,labelsProps:te(te({},Ne),{label:P,isRichText:!0,ruleLabel:Je?"REQUIRED":"OPTIONAL"}),conditionConfig:null==qe?void 0:qe.conditionConfig,formData:d,htmlElementId:c,configurationItemInfo:le}));case"checkbox_field":var kt=(o||{}).props,At=void 0===kt?{}:kt,Ft=At.checkboxesProps,Ot=void 0===Ft?{}:Ft,St=At.labelsProps,Pt=(Ne=void 0===St?{}:St,At.name),Tt=void 0===Pt?"":Pt,Mt=(We=ne(At,["checkboxesProps","labelsProps","name"]),i||{}),_t=($e=Mt.label,Ue=Mt.required,pt=Mt.options,ht=Mt.dataModelField,qe=Mt.conditionConfig,vt=(ht||{}).dataModelField,P=null==$e?void 0:$e.text,Je=null==Ue?void 0:Ue.value,ot="".concat(null==vt?void 0:vt.dataModelFieldId).concat((null==vt?void 0:vt.entitySubtypeId)?".".concat(vt.entitySubtypeId):"",".value")||Tt||c,(null==pt?void 0:pt.options)||[]);Ke=(null==Ot?void 0:Ot.selectedIds)||("success"===(null==We?void 0:We.state)?[null===(m=null==_t?void 0:_t[0])||void 0===m?void 0:m.id]:void 0);return hD({defaultValue:Ke,dataModelField:vt,setFormData:f}),a(kD,te({},We,{name:ot,onClick:S?se:void 0,control:null==s?void 0:s.control,checkboxesProps:te(te({},Ot),{options:_t,disabled:ee}),defaultValue:Ke,required:Je,optional:!Je,labelsProps:te(te({ruleLabel:Je?"REQUIRED":"OPTIONAL"},Ne),{label:P,isRichText:!0}),conditionConfig:null==qe?void 0:qe.conditionConfig,formData:d,htmlElementId:c,configurationItemInfo:le}));case"consent":return a(wB,{attributes:i,formData:d,config:o,configurationItemInfo:le});case"link":H=o.props,P=i.text;var Lt=i.link;return a(Ax,te({},H,{onClick:S?se:void 0,$variant:null==H?void 0:H.variant,$styles:null==H?void 0:H.styles,text:P.text,isRichText:P.isRichText,disabled:ee,href:ee?void 0:Rt(Lt),isTrigger:null==v?void 0:v.isTrigger,moleculeId:c,htmlElementId:c,configurationItemInfo:le}));case"password_setup_field":var Nt=i.passwordFieldLabel,Vt=i.reenteredPasswordFieldLabel,Wt=o.props,Ht=Wt.validationLabel,$t=Wt.passwordInputProps,Ut=Wt.reenteredPasswordInputProps,qt=(Ve=Wt.state,[te(te({},$t),{name:"password.value",type:"input",inputType:"password",placeholder:null!==(b=null===(y=null==$t?void 0:$t.inputProps)||void 0===y?void 0:y.placeholder)&&void 0!==b?b:"Enter Your Password",label:null!==(D=null==Nt?void 0:Nt.text)&&void 0!==D?D:"Password",required:!0,rules:{required:"Password is required"},labelsProps:te(te({},Nt),{ruleLabel:null}),state:Ve}),te(te({},Ut),{name:"reenteredPassword.value",type:"input",inputType:"password",placeholder:null!==(x=null===(w=null==Ut?void 0:Ut.inputProps)||void 0===w?void 0:w.placeholder)&&void 0!==x?x:"Re-Enter Your Password",label:null!==(E=null==Vt?void 0:Vt.text)&&void 0!==E?E:"Re-Enter Your Password",required:!0,labelsProps:te(te({},Vt),{ruleLabel:null}),rules:{validate:{passwordMatch:function(e){return e===(null==s?void 0:s.getValues("password.value"))||"Your passwords do not match each other"}}},state:Ve})]);return a(AB,{fields:qt,validations:k||[],form:s,validationState:Ve,onClick:S?se:void 0,validationLabel:(null==k?void 0:k.length)?Ht:void 0,configurationItemInfo:le});case"account_button":var Xt=o.props,Kt=Xt.avatarProps,Yt=Xt.menuConfig,Gt=te(te({},Kt),{content:te(te({},null==Kt?void 0:Kt.content),{initials:R})}),Zt=te(te({},Yt),{title:W||(null==Yt?void 0:Yt.title),options:null===(F=Yt.options)||void 0===F?void 0:F.map((function(e){switch(e.id){case"log-out":return te(te({},e),{onClick:z});case"account-information":return te(te({},e),{onClick:V});default:return e}}))});return a(ox,{onClick:S?se:void 0,avatarProps:Gt,menuConfig:Zt,configurationItemInfo:le});case"process_steps":var Jt=i||{},Qt=Jt.orientation,en=Jt.processSteps,tn=(ae||{}).steps,nn=null==tn?void 0:tn.sort((function(e,t){return e.order-t.order})),rn=en.steps.sort((function(e,t){return e.order-t.order})).map((function(e,t){var n,r,o,i;return te(te({},e),{link:null!==(r=null===(n=null==nn?void 0:nn[t])||void 0===n?void 0:n.link)&&void 0!==r?r:null==e?void 0:e.link,status:null!==(i=null===(o=null==nn?void 0:nn[t])||void 0===o?void 0:o.status)&&void 0!==i?i:null==e?void 0:e.status})}));return a(jx,{isOnClickDisabled:S,orientation:p?"vertical":Qt.value,steps:rn,metadata:v,isMobile:p,htmlElementId:c,configurationItemInfo:le});case"checklist":var on=((i||{}).checklist||{}).items;H=(o||{}).props;return a(nk,{items:on,props:H,configurationItemInfo:le,metadata:v});default:return a(l,{children:"There is no such type of molecule yet."})}}()},PB=function(e){var t,n=e.item,r=e.tabsProps,o=e.formData,i=e.setFormData,u=e.isMobile,l=Kb(),s=Q(),c=tt().organismMetadata;if("molecule"===n.instance)return s?a(SB,te({},n,{tabsProps:r,form:l,formData:o,setFormData:i,isMobile:u,metadata:te(te({},n.metadata),{stateListenerId:(null==c?void 0:c.stateListenerId)||n.id})})):a(ee,{children:a(SB,te({},n,{tabsProps:r,form:l,formData:o,setFormData:i,isMobile:u,metadata:te(te({},n.metadata),{stateListenerId:(null==c?void 0:c.stateListenerId)||n.id})}))});if(!n.items||!n.items.length)return null;var d="form"===n.type&&(null===(t=n.config.props)||void 0===t?void 0:t.activeChildrenIds)||[];return d.length?a(DB,{item:n,activeChildrenIds:d,formData:o,setFormData:i,isMobile:u}):a(bB,te({id:n.id,type:n.type,isMobile:u},n.config,{metadata:n.metadata},{children:n.items.map((function(e){return a(PB,{item:e,tabsProps:r,formData:o,setFormData:i,isMobile:u},e.id)}))}))},TB=function(e){var t,n,r,o=e.children,i=e.popupProps,l=rt(),s=l.stateConfig,c=l.stateHandler,p=d({}),h=p[0],v=p[1],g=d(!1),m=g[0],b=g[1],C=d(!1),D=C[0],w=C[1],x=d(null),E=x[0],B=x[1];it({id:null==E?void 0:E.id,isTrigger:!0});var k=function(e){var t,n,r=null==i?void 0:i.find((function(t){return t.id===e}));B(r||null),b(!0),(null===(n=s[e])||void 0===n?void 0:n.visible)||null==c||c(((t={})[e]={visible:!0},t))};f((function(){null==i||i.forEach((function(e){var t;(null===(t=s[e.id])||void 0===t?void 0:t.visible)&&k(e.id)}))}),[s]);var A=function(e){var t;s[e]&&(null==c||c(((t={})[e]={visible:!1,closed:!0},t))),B(null),b(!1)},F=a(PB,{item:h}),O=y((function(){return{actionContent:h,setActionContent:v,isModalVisible:m,isDrawerVisible:D,setDrawerVisible:w,setActivePopUpById:k,onCloseModal:A}}),[h,m,D]),S=E||{},P=S.config,T=S.content;return u(Ge.Provider,te({value:O},{children:[E&&u(YB,te({size:null==P?void 0:P.size,open:m,onClose:function(){return A(E.id)},popupId:E.id,modalStyles:null==P?void 0:P.styles,withCloseIcon:null==P?void 0:P.withCloseIcon},{children:[null===(t=null==T?void 0:T.embedded)||void 0===t?void 0:t.map((function(e){var t;return a(cB,te({initItems:null===(t=null==e?void 0:e.body)||void 0===t?void 0:t.items},{children:a(PB,{item:null==e?void 0:e.body},e.id)}))})),(null==T?void 0:T.isi)&&a(PB,{item:null===(r=null===(n=null==E?void 0:E.content)||void 0===n?void 0:n.isi)||void 0===r?void 0:r.body})]})),a(qD,te({open:D,onClose:function(){w(!1)},anchor:"right"},{children:F})),o]}))},MB=function(e){var t=e.children,n=e.goToAccountInfo,r=e.userInitials,o=e.logOutHandler,i=e.username,u=y((function(){return{logOutHandler:o,goToAccountInfo:n,userInitials:r,username:i}}),[o,n,r,i]);return a(ot.Provider,te({value:u},{children:t}))},_B=function(e){var t=e.initStateConfig,n=e.children,r=e.stateHandler,o=y((function(){return{stateConfig:t,stateHandler:r}}),[t,r]);return a(nt.Provider,te({value:o},{children:n}))},LB=function(e){var t,n=e.src,r=e.onClick,o=e.link,i=void 0===o?"":o,l=e.altText,s=void 0===l?"":l,c=e.styles,d=e.width,f=e.height,p=e.id,h=void 0===p?"":p,v=e.behaveAs,g=void 0===v?"regular":v,m=e.cornerRadius,y=void 0===m?0:m,b=e.htmlElementId,C=e.metadata,D=e.configurationItemInfo,w=it({id:h,isTrigger:null==C?void 0:C.isTrigger}),x=!!r,E={src:n,width:d,$styles:te({cursor:x?"pointer":"auto"},c),height:f,alt:s,cornerRadius:y,onClick:x?function(){null==r||r(),w("click")}:void 0},B=Qe(),k=B.showAnnotations,A=B.annotationsList,F=B.isMLRReview,O=A.links.findIndex((function(e){return h===e.moleculeId||i===e.url}))+1,S=null!==(t=A.tags.map((function(e,t){var n;return(null===(n=e.moleculeIds)||void 0===n?void 0:n.some((function(e){return e===h})))?t:-1})))&&void 0!==t?t:[],P=S.length>0?S.filter((function(e){return-1!==e})):[];if(!n)return null;var T={background:a(zs,te({},E)),regular:a(Rs,te({},E))};return u(jB,te({id:(null==D?void 0:D.isConfigurationMode)?"configurationWrapper":b,style:{position:"regular"===g?"relative":"static"}},D,{children:[T[g],F&&k&&a("span",te({style:{position:"absolute",bottom:-3,left:"50%",zIndex:1,transform:"translate(-50%, 100%)"}},{children:u(tb,{children:[!!O&&a(Qy,{index:O,type:"link"}),P.length>0&&P.map((function(e){return a(Qy,{index:e+1,type:"message"})}))]})}))]}))},jB=e.div(dE||(dE=ae(["\n ","\n"],["\n ","\n"])),fb),IB=function(e){var t=e.children,n=e.autoplay,r=void 0===n||n,o=e.autoplayDuration,i=void 0===o?5e3:o,l=g(null),s=g(null),c=d(1),p=c[0],h=c[1],v=d(0),m=v[0],D=v[1],w=i<100?1e3*i:i,x=b((function(e){null!==s.current&&"400ms"!==s.current.style.transitionDuration&&(s.current.style.transitionDuration="400ms","prev"===e?p<=1?(D(0),h(null==t?void 0:t.length)):(D(s.current.clientWidth*(p-1)),h((function(e){return e-1}))):"next"===e&&(p>=t.length?(D(s.current.clientWidth*(t.length+1)),h(1)):(D(s.current.clientWidth*(p+1)),h((function(e){return e+1})))))}),[p,t]);f((function(){var e=function(){null!==s.current&&(p<=1&&(s.current.style.transitionDuration="10ms",D(s.current.clientWidth*p)),p>=t.length&&(s.current.style.transitionDuration="10ms",D(s.current.clientWidth*t.length)),s.current.style.transitionDuration="10ms")};return document.addEventListener("transitionend",e),function(){document.removeEventListener("transitionend",e)}}),[p,t]),f((function(){var e=function(){l.current&&clearInterval(l.current),s.current&&D(p>1?s.current.clientWidth*p:s.current.clientWidth),r&&(l.current=setInterval((function(){x("next")}),w))};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[p,r,w,t]),f((function(){return r&&(l.current&&clearInterval(l.current),l.current=setInterval((function(){x("next")}),w)),function(){l.current&&clearInterval(l.current)}}),[x,r,w]);var B=y((function(){if(t.length>1){var e=E.map(t,(function(e,t){return a(zB,{children:e},t)}));return ie(ie([a(zB,{children:t[t.length-1]},t.length+1)],e,!0),[a(zB,{children:t[0]},t.length+2)],!1)}return a(zB,{children:t[0]})}),[t]);C((function(){null!==s.current&&D(s.current.clientWidth*p)}),[]);return u(NB,{children:[a(RB,te({ref:s,translateX:m},{children:B})),u(VB,{children:[a(WB,te({arrowSide:"left"},{children:a(ib,{size:32,color:"white",name:"CaretLeft",withoutOpacityEffect:!0,onClick:function(){return x("prev")}})})),a(HB,{children:E.map(t,(function(e,t){return a(de,te({onClick:function(){return e=t,void(s.current&&(s.current.style.transitionDuration="400ms",h(e+1),D(s.current.clientWidth*(e+1))));var e}},{children:a(nb,{active:t===p-1,activeColor:"white",inactiveColor:"gray3"})}),t)}))}),a(WB,te({arrowSide:"right"},{children:a(ib,{size:32,color:"white",name:"CaretRight",withoutOpacityEffect:!0,onClick:function(){return x("next")}})}))]})]})},NB=e.section(fE||(fE=ae(["\n position: relative;\n overflow: hidden;\n width: 100%;\n height: 100%;\n background-color: ",";\n"],["\n position: relative;\n overflow: hidden;\n width: 100%;\n height: 100%;\n background-color: ",";\n"])),(function(e){return e.theme.colors.white})),RB=e.ul(hE||(hE=ae(["\n display: flex;\n width: 100%;\n height: 100%;\n list-style: none;\n padding: 0;\n margin: 0;\n transition: transform 0.4s ease-in-out;\n ",";\n"],["\n display: flex;\n width: 100%;\n height: 100%;\n list-style: none;\n padding: 0;\n margin: 0;\n transition: transform 0.4s ease-in-out;\n ",";\n"])),(function(e){var n=e.translateX;return t(pE||(pE=ae(["\n transform: translate3d(","px, 0, 0);\n "],["\n transform: translate3d(","px, 0, 0);\n "])),-n)})),zB=e.li(vE||(vE=ae(["\n flex-shrink: 0;\n width: 100%;\n height: 100%;\n"],["\n flex-shrink: 0;\n width: 100%;\n height: 100%;\n"]))),VB=e.div(mE||(mE=ae(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n ","\n"],["\n display: flex;\n justify-content: space-between;\n align-items: center;\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n ","\n"])),(function(e){var n=e.theme.sizes;return t(gE||(gE=ae(["\n margin: ","px 100px;\n "],["\n margin: ","px 100px;\n "])),n.XL)})),WB=e.div(yE||(yE=ae(["\n filter: ",";\n"],["\n filter: ",";\n"])),(function(e){var t=e.theme.colors,n=e.arrowSide;return n?"drop-shadow(".concat("left"===n?"1px":"-1px"," 0 2px ").concat(t.gray1,")"):"unset"})),HB=e.div(bE||(bE=ae(["\n display: flex;\n"],["\n display: flex;\n"]))),$B=e(V)(wE||(wE=ae(["\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.25);\n user-select: none;\n outline: none;\n height: 51px;\n position: relative;\n ",";\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.25);\n user-select: none;\n outline: none;\n height: 51px;\n position: relative;\n ",";\n"])),(function(e){var n=e.theme,r=n.sizes,o=n.colors,i=n.fonts,a=e.disabled,u=e.fullWidth,l=e.variant,s=void 0===l?"primary":l,c=e.size,d=void 0===c?"medium":c,f="primary"===s?o.primary:"transparent",p="primary"===s?o.white:o.gray2,h="medium"===d?"".concat(r.M,"px"):"".concat(r.S,"px ").concat(r.M,"px");return t(DE||(DE=ae(["\n padding: ",";\n height: ","px;\n border: 2.5px solid transparent;\n background-color: ",";\n ",";\n color: ",";\n border-radius: ","px;\n background-position: center;\n transition: box-shadow 0.25s ease-in-out;\n width: ",";\n &:hover {\n box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.25);\n }\n &:focus {\n border: 2.5px solid\n ",";\n box-shadow: none;\n }\n\n ","\n "],["\n padding: ",";\n height: ","px;\n border: 2.5px solid transparent;\n background-color: ",";\n ",";\n color: ",";\n border-radius: ","px;\n background-position: center;\n transition: box-shadow 0.25s ease-in-out;\n width: ",";\n &:hover {\n box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.25);\n }\n &:focus {\n border: 2.5px solid\n ",";\n box-shadow: none;\n }\n\n ","\n "])),h,"medium"===d?51:33,f,"medium"===d?i.XL:i.L,p,r.S,u?"100%":"auto","primary"===s?ve(o.primary,-.38):o.gray2,a&&t(CE||(CE=ae(["\n cursor: unset;\n pointer-events: none;\n background-color: ",";\n box-shadow: none;\n "],["\n cursor: unset;\n pointer-events: none;\n background-color: ",";\n box-shadow: none;\n "])),he(o.primary)))})),UB=e($B)(BE||(BE=ae(["\n ","\n"],["\n ","\n"])),(function(e){var n=e.theme.colors,r=e.disabled;return t(EE||(EE=ae(["\n border: 1.5px solid ",";\n box-shadow: 0 0 0 1.5px transparent inset;\n &:focus {\n border: 1.5px solid ",";\n box-shadow: 0 0 0 1.5px "," inset;\n }\n &:hover {\n box-shadow: 0 0 0 1.5px "," inset;\n }\n\n ","\n "],["\n border: 1.5px solid ",";\n box-shadow: 0 0 0 1.5px transparent inset;\n &:focus {\n border: 1.5px solid ",";\n box-shadow: 0 0 0 1.5px "," inset;\n }\n &:hover {\n box-shadow: 0 0 0 1.5px "," inset;\n }\n\n ","\n "])),n.gray2,n.gray2,n.gray2,n.gray2,r&&t(xE||(xE=ae(["\n box-shadow: 0 0 0 1.5px ",";\n color: ",";\n background-color: transparent;\n "],["\n box-shadow: 0 0 0 1.5px ",";\n color: ",";\n background-color: transparent;\n "])),n.gray3,n.gray3))})),qB=e($B)(PE||(PE=ae(["\n ","\n"],["\n ","\n"])),(function(e){var n=e.theme,r=n.sizes,o=n.colors,i=n.fonts,a=e.disabled,u=e.size,l=void 0===u?"medium":u,s=e.hoverButtonColor,c=void 0===s?"transparent":s,d=e.hoverStrokeColor,f=void 0===d?"transparent":d,p=e.buttonFont,h=void 0===p?"XL":p,v=e.textColor,g=void 0===v?"gray2":v,m=e.textSize,y=void 0===m?16:m,b=e.verticalPadding,C=e.horizontalPadding,D=e.buttonColor,w=void 0===D?"transparent":D,x=e.buttonStroke,E=void 0===x?"transparent":x,B=e.cornerRadius,k=void 0===B?"S":B,A=e.inactiveButtonColor,F=void 0===A?"transparent":A,O=e.inactiveStrokeColor,S=void 0===O?"transparent":O,P=e.inactiveTextColor,T=void 0===P?"gray3":P,M=e.styles,_=o[w]||w,L="medium"===l?"".concat(r.M,"px"):"".concat(r.S,"px ").concat(r.M,"px"),j="medium"===l?i.XL:i.L,I=w?o[w]||w:o[f]||f;return t(SE||(SE=ae(["\n padding: ",";\n border-color: ",";\n background-color: ",";\n font-size: ","px;\n ",";\n color: ",";\n border-radius: ","px;\n box-shadow: none;\n transition: border 0.2s ease-in-out;\n &:focus {\n border: 2.5px solid ",";\n }\n &:hover {\n border: 2.5px solid ",";\n ","\n }\n\n ","\n\n ","\n "],["\n padding: ",";\n border-color: ",";\n background-color: ",";\n font-size: ","px;\n ",";\n color: ",";\n border-radius: ","px;\n box-shadow: none;\n transition: border 0.2s ease-in-out;\n &:focus {\n border: 2.5px solid ",";\n }\n &:hover {\n border: 2.5px solid ",";\n ","\n }\n\n ","\n\n ","\n "])),C||b?"".concat(r[b||"M"],"px ").concat(r[C||"M"],"px"):L,o[E]||E,_,y,h?i[h]:j,o[g]||g,"number"==typeof k?k:r[k],ve(I,-.33),o[f]||f,c&&t(kE||(kE=ae(["\n background-color: ",";\n "],["\n background-color: ",";\n "])),o[c]||c),a&&t(OE||(OE=ae(["\n background-color: ",";\n color: ","\n ","\n ",";\n "],["\n background-color: ",";\n color: ","\n ","\n ",";\n "])),he(_||o.primary),o[T]||T,F&&t(AE||(AE=ae(["\n background-color: ",";\n "],["\n background-color: ",";\n "])),o[F]||F),S&&t(FE||(FE=ae(["\n border: 2.5px solid ",";\n "],["\n border: 2.5px solid ",";\n "])),o[S]||S)),M)})),XB=e.div(ME||(ME=ae(["\n display: inline-flex;\n ","\n ","\n"],["\n display: inline-flex;\n ","\n ","\n"])),(function(e){var n=e.$fullWidth,r=e.$styles;return t(TE||(TE=ae(["\n width: ",";\n ","\n "],["\n width: ",";\n ","\n "])),n?"100%":"auto",r)}),fb),KB=function(e){var n,r=e.text,i=e.onClick,s=e.loading,c=e.disabled,d=e.variant,f=e.isRichText,p=e.fullWidth,h=void 0===p||p,v=e.elementId,g=e.link,m=e.containerStyle,y=e.children,b=e.buttonStyle,C=e.size,D=e.textColor,w=e.inactiveTextColor,x=e.state,E=void 0===x?"enabled":x;e.href,e.stateConfig;var B=e.htmlElementId,k=e.metadata,A=e.configurationItemInfo,F=ne(e,["text","onClick","loading","disabled","variant","isRichText","fullWidth","elementId","link","containerStyle","children","buttonStyle","size","textColor","inactiveTextColor","state","href","stateConfig","htmlElementId","metadata","configurationItemInfo"]),O=function(e){switch(e){case"primary":default:return $B;case"secondary":return UB;case"custom":return qB;case"text":return Ws}}(d),S=c||"disabled"===E,P=o().colors,T=Qe(),M=T.showAnnotations,_=T.annotationsList,L=T.isMLRReview,j=_.links.findIndex((function(e){return v===e.moleculeId||g===e.url}))+1,I=it({isTrigger:null==k?void 0:k.isTrigger,id:v||""});if(!r&&!y)return null;var N={primary:"white",secondary:P[D],custom:P[D]||D,text:"blue"},R={primary:"white",secondary:P[w],custom:P[w]||w,text:P[w]},z=t(LE||(LE=ae(["\n ","\n ","\n ","\n "],["\n ","\n ","\n ","\n "])),(null==F?void 0:F.textSize)&&t(_E||(_E=ae(["\n font-size: ","px;\n "],["\n font-size: ","px;\n "])),F.textSize),b,F.styles),V=f?a(os,{color:S?R[d]:N[d],font:"custom"===d&&F.buttonFont?F.buttonFont:"XL",value:r,extraTextProps:{behaveAs:"button",variant:"custom"===d&&F.buttonFont?F.buttonFont:"XL",styles:z}}):r;return a(XB,te({},j&&((n={id:es})["data-".concat(ns)]=g,n["data-".concat(rs)]=v,n),{id:(null==A?void 0:A.isConfigurationMode)?"configurationWrapper":j?"annotation-link":void 0,"data-link-url":g,"data-link-text":v,className:"z-button-container",$fullWidth:h,$styles:m},A,{children:u(O,te({id:B,fullWidth:h,variant:d,disabled:s||S,onClick:function(){null==i||i(),I("click")},onChange:I,style:te(te({},b),null==F?void 0:F.styles),size:C,textColor:D,inactiveTextColor:w},F,{children:[V||y,s&&u(l,{children:[a(as,{width:6}),a(Ns,{color:"gray1"})]}),L&&M&&!!j&&a("span",te({style:{position:"absolute",bottom:-6,left:"50%",zIndex:1,transform:"translate(-50%, 100%)"}},{children:a(Qy,{index:j,type:"link"})}))]}))}))},YB=function(e){var t=e.children,n=e.wrapperStyles,r=e.padding,o=void 0===r?"32px 0px 0px":r,i=e.onKeyDown,l=e.modalStyles;e.size,e.popupId;var s=e.withCloseIcon,c=void 0!==s&&s,d=ne(e,["children","wrapperStyles","padding","onKeyDown","modalStyles","size","popupId","withCloseIcon"]);return a(W,te({},d,{style:l,onKeyDown:i},{children:u(GB,te({style:te({padding:o},n)},{children:[t,c&&a(ZB,te({onClick:null==d?void 0:d.onClose},{children:a(Ke,{size:32,name:"Close",color:ge.colors.gray1})}))]}))}))},GB=e.div(IE||(IE=ae(["\n position: absolute;\n left: 50%;\n outline: none;\n min-width: 510px;\n max-height: 90vh;\n overflow-y: auto;\n transform: translate(-50%);\n ","\n"],["\n position: absolute;\n left: 50%;\n outline: none;\n min-width: 510px;\n max-height: 90vh;\n overflow-y: auto;\n transform: translate(-50%);\n ","\n"])),(function(e){var n=e.theme,r=n.colors,o=n.sizes,i=e.$styles;return t(jE||(jE=ae(["\n top: ","px;\n box-shadow: ","px;\n border-radius: ","px;\n background-color: ",";\n ","\n "],["\n top: ","px;\n box-shadow: ","px;\n border-radius: ","px;\n background-color: ",";\n ","\n "])),o.XL,o.L,o.M,r.background,i)})),ZB=e(de)(RE||(RE=ae(["\n ",";\n"],["\n ",";\n"])),(function(e){var n=e.theme.sizes;return t(NE||(NE=ae(["\n display: flex;\n ",";\n justify-content: center;\n align-items: center;\n position: absolute;\n top: ","px;\n right: ","px;\n cursor: pointer;\n "],["\n display: flex;\n ",";\n justify-content: center;\n align-items: center;\n position: absolute;\n top: ","px;\n right: ","px;\n cursor: pointer;\n "])),fe(n.L),n["2XL"],n["4XL"])})),JB=function(e){var t;switch(e.type){case"checkbox":t=a(hs,{id:e.id,isSelected:e.value,onClick:e.onChange,label:e.label,isRichText:!0});break;case"button":t=u(S,te({direction:"row",gap:2},{children:[a(KB,te({fullWidth:!1},e.acceptButton)),a(KB,te({variant:"secondary",fullWidth:!1},e.denyButton))]}));break;case"radioButton":t=a(Yy,te({},e));break;default:t=null}return a(QB,{children:t})},QB=e.div(zE||(zE=ae(["\n margin-top: ","px;\n"],["\n margin-top: ","px;\n"])),(function(e){return e.theme.sizes.L})),ek=function(e){var t=e.text,n=e.consentCaptureProps,r=e.containerStyles,o=e.clearStyles;return u(tk,te({clearStyles:void 0!==o&&o,style:r},{children:[a(os,{value:t,font:"M"}),a(JB,te({},n))]}))},tk=e.div(WE||(WE=ae(["\n ","\n"],["\n ","\n"])),(function(e){var n=e.theme,r=n.colors,o=n.sizes;return!e.clearStyles&&t(VE||(VE=ae(["\n background: ",";\n padding: ","px;\n box-shadow: 0 ","px 10px rgba(0, 0, 0, 0.25);\n border-radius: ","px;\n "],["\n background: ",";\n padding: ","px;\n box-shadow: 0 ","px 10px rgba(0, 0, 0, 0.25);\n border-radius: ","px;\n "])),r.white,o["3XL"],o.XS,o.M)})),nk=function(e){var t=e.items,n=void 0===t?[]:t,r=e.props,o=void 0===r?{gap:"XS"}:r,i=o.gap,u=ne(o,["gap"]),l=e.configurationItemInfo,s=e.metadata,c=rt(),p=c.stateConfig,h=c.stateHandler,v=d(n),g=v[0],m=v[1],y=(s||{}).stateListenerId;f((function(){if(y&&(null==p?void 0:p[y])){var e=p[y].items||[],t=(n||[]).map((function(t){return e.find((function(e){return e.id===t.id}))||t}));JSON.stringify(t)===JSON.stringify(g)||m(t)}}),[y,p,n]);return a(rk,te({id:"configurationWrapper",$gap:i},l,{children:g.map((function(e){var t=e||{},n=t.id,r=t.type,o=t.label,i=t.isChecked,l=o||{},s=l.text,c=l.isRichText;return a(hs,{id:n,isEditMode:!0,label:s,onClick:function(){return function(e){var t,n=g.map((function(t){return t.id===e?te(te({},t),{isChecked:!t.isChecked}):t}));m(n),y&&(null==h||h(((t={})[y]={items:n},t)))}(n)},isSelected:i,isRichText:c,internalConfig:u,notInteractable:"system_controlled"===r},n)}))}))},rk=e.div($E||($E=ae(["\n display: flex;\n flex-direction: column;\n ",";\n ","\n"],["\n display: flex;\n flex-direction: column;\n ",";\n ","\n"])),(function(e){var n=e.$gap;return t(HE||(HE=ae(["\n gap: ","px;\n "],["\n gap: ","px;\n "])),ge.sizes[n])}),fb),ok=c.forwardRef((function(e,t){var n,r,i=e.options,l=e.onClick,s=e.text,c=e.tabKey,f=e.vertical,p=e.onOptionClick,h=e.tabTheme,v=void 0===h?"light":h,m=e.tabFont,y=void 0===m?"L":m,b=e.tabPadding,C=e.selectedTabIndicatorColor,D=e.textSize,x=e.defaultTabTextColor,E=ne(e,["options","onClick","text","tabKey","vertical","onOptionClick","tabTheme","tabFont","tabPadding","selectedTabIndicatorColor","textSize","defaultTabTextColor"]),B=d(!1),k=B[0],A=B[1],F=g(null),O=o().sizes;w(t,(function(){return F.current}));var S=!!(null==i?void 0:i.length),P=a(tx,{options:i,onItemPress:function(e){null==p||p(e),A(!1)}});return a(Qw,te({overlay:P,onVisibleChange:S?A:void 0,visible:k,overlayStyle:{zIndex:5e3,paddingTop:O.M},trigger:"click",animation:"slide-up"},{children:u(lb,te({ref:F},E,{tabTheme:v,onClick:function(){null==l||l(c),S&&A(!0)}},{children:[a(ub,te({behaveAs:"button",textSize:D,variant:y,tabFont:y,tabPadding:b,tabTheme:v,defaultTabTextColor:x},{children:s})),S&&a(sb,te({disabled:E.disabled,tabTheme:v,isActive:k,defaultTabTextColor:x},{children:a(Ke,{name:"CaretDown",size:O.L})})),f&&a(sx,{style:{bottom:-O.S},left:0,width:E.isActive&&null!==(r=null===(n=F.current)||void 0===n?void 0:n.clientWidth)&&void 0!==r?r:0,tabTheme:v,selectedTabIndicatorColor:C})]}))}))}));export{ot as AccountButtonContext,MB as AccountButtonProvider,Dx as Alert,jy as Avatar,ox as AvatarDropdown,zs as BackgroundImage,Vs as BaseTextButton,nB as BottomNavBarItem,KB as Button,Ge as ButtonActionsContext,TB as ButtonActionsProvider,rs as COMMUNICATION_LINK_DATA_TEXT,ns as COMMUNICATION_LINK_DATA_URL,es as COMMUNICATION_LINK_ELEMENT_ID,px as CaretIconWrapper,IB as Carousel,hs as Checkbox,kD as CheckboxField,AD as CheckboxGroup,nk as Checklist,rk as ChecklistWrapper,Qy as Circle,tb as CirclesWrapper,nb as CircularIndicator,rb as CircularIndicatorStyledComponent,ek as Consent,bB as Container,CB as ContainerComponent,hb as ContainerWrapper,PD as CustomValidation,$y as Divider,qD as Drawer,mx as EmphasizedText,ss as ErrorText,JE as FeedContentHeader,yb as FieldLabels,xD as FieldMapper,gx as FieldSection,DB as FormOrganismItem,My as HorizontalButtons,tB as HorizontalButtonsField,Wy as HorizontalPadding,Ke as Icon,ib as IconButton,ZB as IconWrapper,LB as Image,Ps as Input,mD as InputField,Ax as Link,ts as MATRIX_MESSAGE_DATA_ID,Ql as MATRIX_MESSAGE_ELEMENT_ID,tx as MenuItems,dx as MenuNavigation,Je as MlrRichTextViewerContext,lB as MlrRichTextViewerProvider,GB as ModalWrapper,et as OrganismContext,cB as OrganismContextProvider,UE as PdfDocument,bx as RadioButtonField,Yy as RadioButtons,Gy as RadioGroupWrapper,Rs as RegularImage,os as RichTextViewer,Es as Select,FD as SelectField,zD as SelectableCardGroup,as as Spacer,Ns as Spinner,nt as StateContext,_B as StateContextProvider,jx as Stepper,Xg as StyleWrapper,ok as Tab,hx as TabGroup,Ws as TextButton,vb as TextMolecule,us as TextWrapper,Kg as Tooltip,de as TouchableOpacity,$s as ValidationTag,Hy as VerticalPadding,oB as Video,we as ZealThemeProvider,YB as ZealUIModal,ge as defaultTheme,Jl as defaultValue,bD as getFieldPlaceholder,wD as getFieldsFromFieldSections,CD as getInitialValuesFromFields,DD as isFormValid,Ty as toast,be as toastStyles,Ze as useButtonActionsContext,xe as useMediaQuery,Qe as useMlrRichTextViewerContext,pB as useRequiredConsentsAcceptedValues,fB as useStep};
|
23
|
+
//# sourceMappingURL=index.js.map
|